VLScgSetCommuterLicense

Syntax

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

iHandle

The instance handle for this library.

codeP

The pointer to the codeT struct.

flag

Valid values are:

>VLScg_NOT_ISSUE_COMMUTER_CODES_STRING = “0”

>VLScg_ISSUE_COMMUTER_CODES_STRING = “1”

Description

Enables commuter licenses.

This function is used to generate license use authorizations for traveling clients. Commuter licensing allows end users to “check out” an authorization from a network-served license group and “check it in” when they are done using the licensed application.

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

The value is not numeric.

VLScg_EXCEEDS_MAX_VALUE

The value exceeds VLScg_ISSUE_COMMUTER_CODES

VLScg_LESS_THAN_MIN_ VALUE

The value is lower than VLScg_NOT_ISSUE_COMMUTER_CODES.

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