This command analyzes an Activation Key and gives as a result the type of copy protection (installation code number), which will be set with this key. This command can only be used for keys which turn copy protection on (Unlock Key).

 

Use GetKeyType to analyze if the key is from type = 1

Use GetKeyInstCode to retrieve the value of the installation code

 

 

 

Name

GetKeyCopyProtectionType                                                                  

Purpose

This command analyzes an Activation Key and gives as a result the type of copy protection (installation code number), which will be set with this key. This command can only be used for keys which turn copy protection on (Unlock Key).

Params

Parameter

Type

Example

Note

Key

String

HX4a7-5CYE0-11CFy-6sjwX-kcC3Q-Aj8Eh

Must be a Licence Protector Activation Key

Returncode

Returncode

Type Integer

Note

-1

Key without copy protection

0

Key which turns off copy protection

1 to X

Key which turns on copy protection

1 = Volume ID

2 = MAC address etc.

Complete list of all installation codes / hardware IDs

Usage

When the user types in a key you could use this information in your application logic

Sample

 

  iKeyinstcodetype := lic.GetKeyCopyProtectionType(‘HX4a7-5CYE0-11CFy-6sjwX-kcC3Q-Aj8Eh’);

  << in iKeyinstcodetype will change the copy protection to type x >>

  end

See also

Commands to analyze an Activation Key

 

 

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

 

See Analyze an Activation Key for an overview about all commands.