VLSgetCommuterCode
Obtains a commuter authorization from the License Manager to be passed on to a remote client that does not have network access to the License Manager. This call checks out a commuter authorization for another machine. It requires a commuter locking code string from the VLSgetMachineIDString call used on the remote computer. After successful completion of the call, the authorization code string should be passed on to the remote computer which will use VLSinstallCommuterCode to install the authorization.
If the machine that requires the commuter authorization has network access to the License Manager, then you should not use this call. Instead, check out the license using VLSgetAndInstallCommuterCode, VLSgetAndInstallCommuterCodeExt API. Once a commuter authorization is checked out for a remote computer, it cannot be checked back in until the commuter authorization expires.
Syntax
LS_STATUS_CODE VLSgetCommuterCode (
unsigned char *feature_name,
unsigned char *feature_version,
unsigned long *units_rqd,
unsigned long *duration,
unsigned long *lock_mask,
unsigned char *log_comment,
unsigned char *machineIDString,
unsigned char *commuter_code,
LS_CHALLENGE *challenge,
VLSserverInfo *requestInfo,
VLSserverInfo *commuterInfo,
unsigned long *extension_in_duration );
Returns
The status code LS_SUCCESS is returned if successful. Otherwise, a specific error code is returned indicating the reason for the failure. Possible error codes that can be returned by this call include VLS_INVALID_MACHINEID_STRING and VLS_OPERATION_NOT_ALLOWED_AFTER_DEFERRED_REVOCATION.
For a complete list of error codes, see Licensing Library Error and Result Codes.