<< Click to Display Table of Contents >>
Navigation: WinLicense > Licensing with WinLicense >
Customizing features in licenses
A common question by developers when using WinLicense is how they can set up specific options for each license that they generate. For example, a developer sells different types of licenses to allow some features to be present or not depending on the type of license. He wants to create licenses to put the application in Basic Mode, Advance Mode and Enterprise Mode. Most licensing systems on the market allow doing that by setting special bits when creating the license, so the developer has to interpret which bits are active in the current license to know which type of license is present.
WinLicense offers a more flexible approach and allows you to insert a buffer (ASCII or UNICODE) of up to 6400 bytes when generating the license (in the Custom Data field). You can put any information that you want and you can check it in runtime by calling the function WLRegGetLicenseInfo. There are not restrictions about the format of the Custom Data information that you insert. The information that you set in the Custom Data when creating the license, it's the one that it's returned by the WLRegGetLicenseInfo function.