VLScgSetKeyLifetimeUnits

Syntax

int VLScgSetKeyLifetimeUnits (VLScg_HANDLE iHandle, codeT *codeP, char *info);
Argument Description

iHandle

The instance handle for this library.

codeP

The pointer to the codeT struct.

info

Lifetime specification units of license tokens: from 0 to 3. The values are:

>“0” - Multiple of 1 minute(s), maximum 15 minutes.

>“1” - Multiple of 10 minute(s), maximum 150 minutes.

>“2” - Multiple of 30 minute(s), maximum 450 minutes.

>“3” - Multiple of 60 minute(s), maximum 900 minutes.

Description

Specifies the unit of time used to specify the time between renewals.

A license must be renewed by the application on a regular schedule or the license will be reclaimed.

Returns

The status code VLScg_SUCCESS is returned if successful. Otherwise, it will return the following error codes:

Error Code Description

VLScg_INVALID_INT_TYPE

If the value of info is not numeric.

VLScg_EXCEEDS_MAX_VALUE

If value exceeds 3.

VLScg_LESS_THAN_MIN_VALUE

If value is less than 0.

For the complete list of the error codes, refer to License Generation and Revocation Error Codes .