VLScgSetKeyHoldtime
Syntax
int VLScgSetKeyHoldtime (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 values in minutes. Maximum depends on units set by VLScgSetKeyHoldtimeUnits. VLScg_NOLIMIT_STRING sets hold time to 900 minutes. |
Description
Network licenses may be held for a time when released by a specific user. During that time only that user can reclaim the license. This function specifies the hold time. This function sets the value codeP->key_holdtime to the value of info and performs small checks to validate user input.
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. |
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 .