|
||
Command to make an online validation of a module, considering a grace period if no Internet connection is available and download a license file. It will connect to the Activation Server, download the license file (if specified) and check if the module / license was locked.
•If a connection to the Activation Server fails, a grace period starts. You will get as a return value = 0 (OK)
•If a connection can be established during the grace period, you get the real return value and the grace period is reset
•If a connection cannot be established after the end of the grace period, you get an error code (e.g. 3001)
The grace period will only start when there is no connection to the Activation Server but not on other errors like license is locked.
You can either set the grace period in the project template using <SubGraceDays> or with the command SetVal, Token SGD
•Use SetSubGraceDays to overwrite the default value of the template <SubGraceDays>
•Use GetVal, Token SGD to retrieve the number of grace time in full days (integer value) - set with SetSubGraceDays
•Use GetRemainingSubgraceDays to retrieve the remaining grace time as an exact double value (e.g. 2.8765 days)
•Use GetVal, Token SGP to retrieve the expiry date/time of the grace period (date/time value)
Name |
CheckModuleSubscription |
||||||||||||||||||||||||||||||||||||
Purpose |
Contacts the Licence Protector Web Activation server to validate a license. This function has to be used to implement “Moving licenses” and ongoing checks (“renting your software”). |
||||||||||||||||||||||||||||||||||||
Params |
|
||||||||||||||||||||||||||||||||||||
Returncode |
|
||||||||||||||||||||||||||||||||||||
Usage |
Used to validate the license. |
||||||||||||||||||||||||||||||||||||
Sample |
iRes := lic.CheckModuleSubscription(‘’, ‘QHD001’, ‘yuGEI-5EPc3-9E7Il-3tI8X-7QU5k-6h14R’,true, true); if iRes = 0 then begin << license successfully validated >> ... end else if iRes = 3001 then begin << Activation Server could not be reached, please check connection >> ... end else if iRes = 3010 then begin << that license is already in usage. First transfer the license from the other PC to use it on this PC >> ... end else if iRes = 3018 then begin << that license is locked on the Activation Server.>> ... end else begin << other errors >>> ...
|
||||||||||||||||||||||||||||||||||||
See also |
GetRemainingSubgraceDays, SetSubGraceDays, Getval - Token SGD, SGP |