Creates a non-computer bound license key. If the ExpiryDate is NULL and the ExpiryDuration is -1, the license key is a permanent non-evaluation license key.
Prior to calling this function, you must call DefineProduct and set the PrivateKey property. Note that including the PrivateKey in your code is not recommended. Creation of license keys should not typically be done from within the application but rather from a server that the user does not have access to.
C++: _bstr_t CreateLicenseKey (DATE ExpiryDate, int ExpiryDuration)
C#: string CreateLicenseKey (System.DateTime ExpiryDate, int ExpiryDuration)
ExpiryDate - The date when the license will expire. Use NULL if you do not want to specify an expiry date.
ExpiryDuration - The duration of the evaluation period in days. Use -1 if you do not want to specify a duration.
A non-computer bound license key.