Show/Hide Toolbars

Licence Protector 5

 

Name

CheckLicenceID                                                                                  

Purpose

Compares the delivered ID with the license file ID.

Params

Parameter

Type

Example

Note

licenseID

Integer

123

The license file ID can be displayed with the License Viewer or in the License Generator

Returncode

Returncode

Type Integer

Note

0

The license ID matches the license ID in the license file

1024

The license ID does not matches the license ID in the license file

All other values – see return codes

The operation was not successful

Usage

E.g. if you want to implement a hardware independent copy protectionCopy Protection mechanism.

Sample

 

  iRes := lic. CheckLicenceID(iNr);

  if iRes = 0 then

  begin

     << it matches, you can continue…>>

     ...

  end

  else

  begin

    << it does not match or there was an error >>

     ...

See also

Copy ProtectionCopy Protection, GetLicFileID