VLScgGetLicenseMeterUnits

Syntax

int VLScgGetLicenseMeterUnits (VLScg_HANDLE iHandle, long *initialUnitsP, long *unitsLeftP, int codegen_version);

Argument

Description

iHandle

The instance handle for this library.

initialUnitsP

The number of units that were initially available.

unitsLeftP

The number of units remaining.

codegen_version

Version of the code generator.

Description

Returns the number of license generation units available in the attached license meter key.

Returns

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

Error Code

Description

VLScg_LICMETER_EXCEPTION

Unknown value in accessing the license meter.

VLScg_LICMETER_ACCESS_ERROR

Error accessing the license meter.

VLScg_LICMETER_CORRUPT

License meter is corrupted.

VLScg_LICMETER_VERSION_ MISMATCH

License meter has an invalid version.

VLScg_LICMETER_NOT_ SUPPORTED

Your Sentinel RMS License Meter is not supported.

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

NOTE   On platforms that do not support hardware keys, the function returns V_FAIL.