<< Click to Display Table of Contents >>
Navigation: WinLicense > FAQ > Registration > Common >
When I call the function WLRegGetLicenseInfo, it works fine when the license is not expired. BUT when the license is expired, the user name/company are filled with garbage data. What's happening?
Notice that this is not a bug, but the current design of the licensing system in WinLicense. When a license is expired, the application goes into Trial Mode. As your license is expired, your application is in Trial Mode, so the function WLRegGetLicenseInfo will return FALSE as there is no valid and not expired license installed. So, you will not get the license information when the license is expired.
You should first call the function WLRegGetStatus to know if your application is registered with a valid and not expired license. When you know that your application is correctly registered then you can call the function WLRegGetLicenseInfo.
To display the registration information once that your license is expired, you could store the license information in any place in the system when the application is registered (and not expired), so you can read it at a later time. If you want to store information in an encrypted way, you can use our functions "WLTrialStringRead/WLTrialStringWrite" which are available in either Trial or Registered state.