License status message
Hi,
I'm building a Windows C++ application.
What's the easiest way to display to the user the status of the license (say from an "about" dialog)?
Something like "This product is registered to XXX", or "This product is in trial mode and will expire in 32 days".
I thought to use the licenseInfo methods of the LicenseValidator class, but they all return zero information.
Is there a code sample for something similar?
Thanks,
Assaf
-
Official comment
Hi Assaf
When your application starts up, you should call LicenseValidator::ValidateLicenseAtStartup.
If the call to ValidateLicenseAtStartup is successful, you can then call IsEvaluation, EvaluationExpired or EvaluationRemainingDays to get the information you are looking for.
We do not store the name of the user on the cilent system. If you would like to get the name associated to a license, you need to query this information from the License Server. You can do so by calling GetCustomerInfo.
Regards
John
Comment actions
Please sign in to leave a comment.
Comments
1 comment