VLScgSetHoldingCrit

Syntax

int VLScgSetHoldingCrit (VLScg_HANDLE iHandle, codeT *codeP, char *flag);
Argument Description
iHandle

The instance handle for this library.

codeP

The pointer to the codeT struct.

flag

The flag is used to set the license holdtime settings.

Values are:

>VLScg_HOLD_NONE_STRING = “0” - No holdtime allowed.

>VLScg_HOLD_VENDOR_STRING = “1” - Client API specifies holdtime.

>VLScg_HOLD_CODE_STRING = “2” - License code specifies holdtime.

Description

Controls holdtime settings for the given feature. Validates and installs the value of the flag in the license code structure.

Holdtime provides a grace period after a license is released, during which only the user will be granted the license.

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 value is not numeric.

VLScg_EXCEEDS_MAX_VALUE

If value exceeds VLScg_HOLD_CODE.

VLScg_LESS_THAN_MIN_VALUE

If the value is lower than VLScg_HOLD_NONE.

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