VLSucgGetLicenseMeterUnits

Syntax

int VLSucgGetLicenseMeterUnits ( VLSucg_HANDLE iHandle, long *initialUnitsP,long *unitsLeftP, 
                                 int ucodegen_version );
Argument Description
iHandle

Instance handle for this library.

initialUnitsP

After the API call, this parameter contains the original license generation units of the attached dongle.

unitsLeftP

After the API call, this parameter contains the current/available license generation units of the attached dongle.

ucodegen_version

Version of the ucodegen library.

Description

Returns the number of license generation units available in the attached dongle.

Returns

The status code VLScg_SUCCESS is returned if successful. Otherwise, it will return the following error codes:

Error Code Description

VLSucg_INVALID_VENDOR_CODE

If vendor identification is invalid.

VLSucg_VENDOR_ENCRYPTION_ FAIL

If vendor-customized encryption fails.

VLSucg_MALLOC_FAILURE

If an error occurred while allocating internal memory for ucodeT struct.

VLSucg_FAIL

On failure.

VLSucg_LICMETER_NOT_ SUPPORTED

Your Sentinel RMS License Meter is not supported.

For the complete list of the error codes, refer to Upgrade License Error Codes.