VLScgSetKeysPerNode

Syntax

int VLScgSetKeysPerNode (VLScg_HANDLE iHandle, codeT *codeP, char *keys, int num);
Argument Description

iHandle

The instance handle for this library.

codeP

The pointer to the codeT struct.

keys

Used to set the number of keys per node. Specify any decimal value. Should be from 0. Specify VLScg_NOLIMIT_STRING for no limit.

num

Position of client in the array of clients: should be from 0 to the maximum number of clients -1.

Description

This function sets the number of keys (license tokens) per node for the specified number of clients.

For each client locked and client-server locked node, the number of copies running on each computer is controlled. This is an extra per-host restriction in addition to the overall number of licenses.

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 num is negative.

VLScg_EXCEEDS_MAX_VALUE

If number is greater than num_nl_clients -1. num_nl_clients is a field of CodeT structure storing the number of clients.

VLScg_LESS_THAN_MIN_VALUE

If number is less than 0.

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