Show/Hide Toolbars

Licence Protector 5

This command analyzes an Activation Key and gives as a result the number of days the key will add to the expiry date in the license file

 

 

Name

GetKeyDays                                                                                        

Purpose

This command analyzes an Activation Key and gives as a result the number of days the key will add to the expiry date in the license file

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

Unchanged - the expiry date will not be changed in the license file

0-x

Number of days added to the license file. If the expiry date in the license file is in the past, then the days are added to today's date

-1

Value not defined. Key without a date information (turn on/off copy protection, tamper detection, reset run number) - use GetKeyType to get details

Usage

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

Sample

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

 

  << application logic >>

 

  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.