You can use this function to display the Installation Code to the user, if you don’t want to use the License Viewer or EasyGo.
InstallationCode = GetInstCode(CopyProtectType)
The value 0 (No Copy Protection) in the function GetInstCode retrieves a default value. The value is B3F5AA23. You can use it as an indication, that the license file has no Copy Protection. A better and recommended way to determine the type of activated copy protection is to use GetCopyProtection() which delivers 0 for none, 1 for VolumeID, 2 for MAC address and 3 for Hostname.
Note
If an installation code can not be retrieved (e.g. no MAC address available) then you get back an empty string.
Name |
GetInstCode |
||||||||
Purpose |
Gets the installation code for the specified type |
||||||||
Params |
|
||||||||
Returncode |
|
||||||||
Usage |
E.g. compute installation code for a routine to request a new license file |
||||||||
Sample |
sCode := lic.GetInstCode(1); if sCode = ‘’ then begin << computing the installation code failed >> ... end else begin << use the installation code >> ...
|
||||||||
See also |
Page url: http://www.helpserver.biz/onlinehelp/lp/easygo/2.7/help2000/index.html?fr_getinstocode.htm