Name

ApplyInvisibleKey                                                                              

Purpose

Insert an Activation Key to change the properties of a module or to change the Copy Protection. The difference to ApplyActivationKey is that this key is displayed in the  License Viewer with *********

Params

Parameter

Type

Example

Note

Activation Key

String

dO8uc-G1iC9-jOGeA-BqgEX-U71lD-0V1VX

A key that is 35 characters long or an empty string to open a window

Returncode

Returncode

Type Integer

Note

0

The Activation Key was successfully added to the license file

258

The Activation Key could not be read, possibly a wrong key

257

This Activation Key was already used

Other return codes

Operation failed, see list of return codes

Usage

Add a received Activation Key to the license file or open a dialog to let the user enter a needed key. Note: Only those keys with appropriate installation codes could be applied. The entered key is in License Viewer only displayed as a sequence of stars not as the real characters. This may be useful to use general keys that should not be copied to other systems.

Sample

 

  iRes := lic.ApplyInvisibleKey(sTheNewKey);

  if iRes <> 0 then

  begin

    << an error occurred >>

     ...

  end

  else

  begin

    << everything is fine, continue >>

     ...

See also

ApplyActivationKey, ApplyActivationKeyForProject

 

 

 

See also
Format of a Key
Create Keys