VLScgSetKeyLifetime
Syntax
int VLScgSetKeyLifetime(VLScg_HANDLE iHandle, codeT *codeP, char *info);
Argument | Description |
iHandle |
The instance handle for this library. |
codeP |
The pointer to the codeT struct. |
info |
Absolute value, in minutes, of license lifetime. The maximum value depends on the lifetime units set by VLScgSetKeyLifetimeUnits. |
Description
A license must be renewed by the application on a regular schedule, else the license is reclaimed. This function specifies the number of minutes between renewals. The maximum value and granularity depends on VLScgSetKeyLifetimeUnits.
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_NOT_MULTIPLE |
If value is not a correct multiple. |
VLScg_EXCEEDS_MAX_VALUE |
if value exceeds maximum allowed hold time (4). |
VLScg_LESS_THAN_MIN_VALUE |
If value is less than or equal to 0. |
For the complete list of the error codes, refer to License Generation and Revocation Error Codes .