Home
Quick Jump Menu
Categories
1 I would like to read the registration information (User Name) from my Custom Messages DLL. I can see that I can parse the message string, but the problem is that I'm working with UNICODE and the string is passed as ANSI. What can I do?

You can call the Widows API GetEnvironmentVariable to retrieve the user license information (Name, Company, Custom Data) when a valid license is present for your application. If you have created an UNICODE license, then you should call GetEnvironmentVariableW.…

2 I want to specific the output file name of the generated SmartKey in the "License Manager". Can I do that?

You can edit the Winlicense.ini file and specify the name of the default Text Keys and SmarKey files. Those settings need to go under the "[License Manager]" section. Example: [License Manager] DynSmartKeyFileName = MyDynSmartKey.txt SmartKeyFileName = MyStaticSmartKey.txt…

3 I want that my protected software asks for a license when it runs. If there is no license I don't want that my application starts. Can I do it with WinLicense?

Yes, just follow the next simple steps: 1) In the "Registration panel" you have to check the option "This application can be registered..." 2) Select the key type that you expect for your application (File License, Registry License, SmartKey...) 3) Check…

4 In the License Manager in WinLicense, I want that each time that I paste (ctrl-v) a hardware ID it's checked automatically for validation. Is it possible?

You have to edit the "Winlicense.ini" file and under the "[License Manager]" section you have to add the following line: AutomaticHardwareIDvalidation = yes

5 I want to add an 'add-in' or 'plug-in' to my software that requires payment. Is there anything built-in to WinLicense to support that?

If you want to use a separate license for each plugin, then you just need to put a different "Registration Unique Key" (in Sofware panel) for each plugin that you protect. You can select the expected license name for each plugin in the "Registration" panel.…

6 I'm creating licenses using my own external key generator as an EXE file. I have seen that my key generator (.EXE) depends on WinLicenseSDK.dll to work. Is there any way to avoid the linking with WinLicenseSDK.dll?

The key generation code is implemented inside WinLicenseSDK.dll, that's why you need to have WinlicenseSDK.dll along with your key generator to work. The key generator functions are different from the Trial/Registration APIs that WinLicense offers. The Trial/Registration…

7 I have created a license with expiration date. What happens if my user leaves the application running on memory for months, even after the expiration date occurs?

1) Please, go to the "Customized Dialog" panel and click on the "MsgID26: License Date Expired" and check if you have selected "Will be displayed by WinLicense". 2) If you have checked "Will be displayed by WinLicense", WinLicense will stop execution on your…

8 Please, can you give more information about what the option "Keep Trial Running" (in Advanced Option panel) is for?

WinLicense controls all trial/license events (expirations, licenses invalid, etc) by default. You can go to the Customized Dialog panel and for specific messages you can check the option "Display by SDK or not displayed". When you check that option, WinLicense…

9 How to simulate the CustomData value when application running in non-protected state? I would like to use WinlicenseSDK.ini to specifiy the property.

Please, open the "WinlicenseSDK.ini" file with Notepad.exe (or any text editor) and you can find the following line: WLRegGetLicenseInfo = Peter Brian/Company Name/pbrian@companyname.com The "/" separator in WLRegGetLicenseInfo corresponds to Name/Company/CustomData.…

10 My licenses are locked to a U3 USB pendrive. How can I know if the user unplugs the U3 USB after my application has started?

You can use the function WLHardwareRuntimeCheckU3 to know if the U3 USB is plugged or not. Notice that it can take up to one minute to know if the U3 was unplugged. So, you should check periodically (calling WLHardwareRuntimeCheckU3) if the U3 USB is still…