VLScgSetNumKeys

Syntax

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

iHandle

The instance handle for this library.

codeP

The pointer to the codeT struct.

info

Sets the number of concurrent licenses: should be from 0 to VLScg_NOLIMIT_STRING for no limit.

NOTE   From RMS v9.5, the maximum value for VLScg_NOLIMIT_STRING can be 4,294,967,294. This is applicable for license version 20 and above.

num

Should be 0 in case of single feature and from 0 to “no_of_features -1” in case of multi-feature.

Description

Can be used to set the hard limit or (the number of concurrent licenses allowed) for both a standalone as well as a network 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 of info is non numeric.

VLScg_EXCEEDS_MAX_VALUE

If value of info exceeds maximum number of license tokens allowed. Maximum value for long codes is 32766 and maximum value for short codes is 254.

VLScg_LESS_THAN_MIN_VALUE

If value of info is less than 0.

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