I am creating keys using "WLGenLicenseTextKey" API without using the WinLicense itself. But while using this API, it is asking one parameter called "LicenseHash". What shall I give for this parameter?

<< Click to Display Table of Contents >>

Navigation:  WinLicense > FAQ > Registration > Common >

I am creating keys using "WLGenLicenseTextKey" API without using the WinLicense itself. But while using this API, it is asking one parameter called "LicenseHash". What shall I give for this parameter?

The "License Hash" is a unique number (long string) which allows creating licenses for your application. You can find the LicenseHash in the Software Panel in WinLicense. Just press the "Software" button in the WinLicense toolbar menu and select your software that you are going to protect. Go to the License Hash field and you can copy the string into formatted Delphi or C/C++ by right-clicking on it.

 

In the source code of your license generator, you have to pass the License Hash to any of the functions to generate licenses for your application.

 

In the WinLicense folder, you can find examples to generate licenses for your application (%WinLicense folder%/WinLicenseSDK/ExamplesSDK/Generators)