Hi,
My application consist of a Windows Service and a Client using WCF on the same machine.
I would like to use the Licensing installation option for this project.
In your C# example you have the following initialization code:
InitTrial(kLibraryKey, process.MainWindowHandle);
However, a Windows Service does not have a MainWindowHandle.
As you may know, a Windows Service does have a ServiceHandle which is an IntPtr.
Question 1: Can I use InitTrial with a ServiceHandle?
Another problem is that the InitTrial will display a dialog and also kill the application at the end of the trial period.
It seems that I can use the InitTrialReturn function (see below) as this function will not kill my service.
However, it is unclear if this function will or not, display a dialog.
Question 2: Will this function display a dialog or requires any "desktop" resource?
Finally, if I am able to use the AI Licensing scheme on my Windows Service, will I be able to use the DisplayRegistration function in the client and the result be available to the service?
Question 3: Is the registration global to the machine?
Thanks,
Jean-Marc Da Pozzo
FOLLOW US
Get the latest news in Application Packaging