sntl_lg_get_info() Function

Description

Retrieves information associated with a handle, such as the list of compatible protection keys. The function also retrieves the last error message thrown by the last function that was called.

Syntax

sntl_lg_status_t SNTL_LG_CALLCONV sntl_lg_get_info ( 
        sntl_lg_handle_t handle,         sntl_lg_info_type_t  info_type,  
        char **info)

Parameters

handle

[IN] License generation handle.

info_type

[IN] Type of information. Possible types are:

SNTL_LG_INFO_CAPABLE_DEVICES

Retrieve a list of the types of Sentinel protection keys that are compatible with the current license definition.

SNTL_LG_INFO_LAST_ERROR_MESSAGE

Retrieve the last error message associated with a handle.

info

[OUT] Pointer to the information retrieved.

For capable device information, possible key types are as described below.

Sentinel SL keys:

SL-AdminMode
SL-UserMode

SL-Legacy

HASP HL keys:

HL-NetTime-250+
HL-NetTime-50
HL-NetTime-10
HL-Net-250+
HL-Net-50
HL-Net-10
HL-Time
HL-Max
HL-Max-Micro
HL-Drive
HL-Express-Card
HL-Pro

Sentinel HL keys:

Sentinel-HL-NetTime-250+
Sentinel-HL-NetTime-50
Sentinel-HL-NetTime-10
Sentinel-HL-Net-250+
Sentinel-HL-Net-50
Sentinel-HL-Net-10
Sentinel-HL-Time
Sentinel-HL-Max
Sentinel-HL-Max-Micro
Sentinel-HL-Drive
Sentinel-HL-Express-Card
Sentinel-HL-Pro
Sentinel-HL-Max-Chip
Sentinel-HL-Max-Board
Sentinel-HL-Drive-microSD

The configuration of compatible Sentinel HL key is indicated by the configuration attribute. Possible values are:

>HASP configuration:    configuration="sentinelhl, hasphl"

>Driverless configuration: configuration="sentinelhl, driverless"

Return Values

SNTL_LG_STATUS_OK

SNTL_LG_LIB_INITIALIZATION_FAILED

SNTL_LG_INVALID_HANDLE

SNTL_LG_RESOURCE_LOCK_FAILURE

SNTL_LG_OUT_OF_MEMORY

SNTL_LG_INVALID_PARAMETER

SNTL_LG_INTERNAL_ERROR

Related Topics