VLScgSetKeyHoldtimeUnits

Syntax

int VLScgSetKeyHoldtimeUnits (VLScg_HANDLE iHandle, codeT *codeP, char *info);

 

Argument Description

iHandle

The instance handle for this library.

codeP

The pointer to the codeT struct.

info

Hold time 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

A network license may be held for some time after it is released by a user. During that time the user of the license can be granted the license again. This function sets the units of time used to specify the holdtime.

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 .