Show/Hide Toolbars

Licence Protector 5

This command analyzes an Activation Key and gives as a result the value for the Demoversion flag.

 

 

 

Name

GetKeyDemo                                                                                        

Purpose

This command analyzes an Activation Key and gives as a result the value for the Demoversion flag.

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

Key with license per PC, User or Concurrent User

-1

Demo version status is unchanged . Also key without demo version status (turn on/off copy protection, tamper detection, reset run number) - use GetKeyType to get details

1

Demo version status is set to Yes

0

Demo version status is set to No

Usage

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

Sample

 

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

  if iKeydemoversion = 0 then

  << demoversion status is not changed >>

  ...

  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.