GetVersion Function

Description

Retrieves the version and build number of the Sentinel Licensing API library.

Syntax

hasp_status_t HASP_CALLCONV hasp_get_version(
              unsigned int *major_version,
              unsigned int *minor_version,               unsigned int *generation,
              unsigned int *build_number,
              hasp_vendor_code_t vendor_code
             )

Parameters

major_version

Pointer to the major part of the version number

minor_version

Pointer to the minor part of the version number

generation

Pointer to the generation part of the version number.

>A value of 7 or less indicates that the version-unrestricted option of customized API libraries was selected for download in the Master Wizard.

>A value of 8 or more indicated that the version-restricted option was selected.

For more information, see the Sentinel LDK Software Protection and Licensing Guide.

build_number

Pointer to the build number of the version

vendor_code

Bytes that contain the Vendor Code

Return Values

HASP_STATUS_OK

Usage Notes

Any pointer other than vendor_code can be null if its information is not required.