Show/Hide Toolbars

Licence Protector 5

This command analyzes an Activation Key and gives as a result the type of a key (e.g. turn on Copy Protection).

 

 

 

Name

GetKeyType                                                                                        

Purpose

Retrieve the type of an Activation 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

0

it is a standard Activation Key for a module

1

key to turn on copy protection (Unlock Key) - see also GetKeyInstCode, GetKeyCopyProtectionType

2

key to turn off copy protection

3

key to reset the local run number

4

key to reset the global run number

5

key to turn on tamper detection

6

key to turn off tamper detection

Usage

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

Sample

 

  iKeytype := lic.GetKeyType(HX4a7-5CYE0-11CFy-6sjwX-kcC3Q-Aj8Eh);

  if iKeytype = 0 then

  << analyze the key >>

  ...

  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.