sntl_lg_initialize() Function

Description

Initializes the license generator library and returns a handle that is used for subsequent functions.

Usage Notes

This should be the first function called to start a license generation session. You can initialize up to 512 simultaneous license generator handles.

 

>The handles returned by Sentinel Licensing API and Sentinel License Generation API cannot be used interchangeably.

>The handles are not thread safe; multiple threads should not work on the same handle simultaneously.

Syntax

sntl_lg_status_t SNTL_LG_CALLCONV sntl_lg_initialize( 
                 const char *  init_param,
                 sntl_lg_handle_t *  handle
                 )

Parameters

init_param

[IN] Reserved for future use. Set this parameter to NULL

handle

[OUT] Pointer to the resulting license generation handle.

Return Values

SNTL_LG_STATUS_OK

SNTL_LG_LIB_INITIALIZATION_FAILED

SNTL_LG_RESOURCE_LOCK_FAILURE

SNTL_LG_OUT_OF_MEMORY

SNTL_LG_INVALID_PARAMETER

SNTL_LG_TOO_MANY_OPEN_HANDLES

SNTL_LG_INTERNAL_ERROR

Related Topics