|
||
This is the main command to invoke the EasyGo dialogs and perform the complete basic license testing:
•open the license file with the EasyGo screens
•check if it is a time limited trial version - in case the trial expired, displays the screen: Evaluation period expired
•check if the system date was tampered with (only if CheckSysdateChangedwas used). In case of an error displays the screen: System date was tampered
•check if the product is activated - otherwise offers to use one of the specified activation methods
•check if copy protection is OK - in case of an error displays the screen: copy protection violation and try an automatic reactivation
•check if network license is OK - in case of an error displays the screen: No free license available
•check if a user / PC was deactivated -in in case of an error displays the screen: Network license -deactivated
See List of Return / Error Codes and Other Errors.
Name |
PrepareAndCheck |
||||||||||||||||||||||||||||||||
Purpose |
Opens the license file and executes the EasyGo form. |
||||||||||||||||||||||||||||||||
Params |
|
||||||||||||||||||||||||||||||||
Returncode |
|
||||||||||||||||||||||||||||||||
Usage |
Important function in order to use the Licence Protector |
||||||||||||||||||||||||||||||||
Sample |
iRes := lic.PrepareAndCheck(sMyLicfile, ‘I am a project secure key’, ‘D1001’, ‘’, true, false, sTagVariable); if iRes <> 0 then begin << an error occurred >> ... end else begin << everything is fine, continue >> ... |
||||||||||||||||||||||||||||||||
See also |
EasyGo, SetRegisterSettings, SetRegisterHelp, SysdateChanged, CheckSysdateChanged, Validate, ValidateEx, Quit, PrepareForce, PrepareAdvanced |
You can terminate your application if the error code is not 0. 0 means that everything is OK. The activation does not indicate the status of the license (e.g. trial version, activation done) because EasyGo handles everything automatically.
If you do a manual system date modification check with SysDateChanged, you have to call this command even if the status code of PrepareAndCheck is not 0. SysDateChanged generates an internal flag that the application was started today even when the start fails, e.g. because the license expired. The flag is set automatically if CheckSysDateChanged is used instead.
If you need status information about a module, use GetWebActivation, RemainingDays, RemainigLicenses - list of commands to retrieve module information.
If the version expires, the number of licenses are not sufficient or copy protection is violated, this is indicated with an different error code.
You have to set the SecurityLevel before you can use this command
The PrepareAndCheck command would display screens indicating that an online validation is done. The screens can be suppressed using ShowWAStartPage, ShowWAProgressPage and ShowWAResultPage
The command SetRegisterSerialNo would display this Serial Number as a default value in the activation dialogues
See also
Module ID
Read Key
Open multiple license files at the same time