Show/Hide Toolbars

Licence Protector 5

You can use this function to display the Installation Code / Hardware ID to the user, if you don’t want to use the License Viewer or EasyGo. The hardware IDs are retrieved from the PC, where the license file is stored.

 

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) you get an empty string as return value.

 

 

Name

GetInstCode                                                                                        

Purpose

Gets the installation code for the specified type

Params

Parameter

Type

Example

Note

copy protection type

Integer

2

0 = no copy protection

1 = Volume ID

2 = MAC address etc.

Complete list of all installation codes / hardware IDs

Returncode

Returncode

Type String

Note

Empty

Operation failed, no installation code could be computed

B3F5AA23

Code for no copy protection

Other code (always 8 characters long)

Computed code of the specified type

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

GetCopyProtection

 

 

 

To use this command, the license file must have been opened with one of the prepare commands.