Show/Hide Toolbars

Licence Protector 5

 

This command analyzes an Activation Key and retrieves the moduleID.

 

 

Name

GetKeyModule                                                                                      

Purpose

Retrieve the module ID 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 String

Note

Empty

This key has no module ID. It could e.g. be an Unlock Key or a key to turn on/off Copy Protection. You could use GetKeyType to find out, what type of key it is

QHD001

The module ID the Activation Key was made for

Usage

When the user types in a key you could use this information for which module the key was made for

Sample

 

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

  if sKeymodule = ‘’ then

  begin

    << this is a key without a module ID >>

     ...

  end

  else

  begin

    << use the module ID >>

     ...

 

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.