Using the Sentinel License Generation API

Sentinel LDK ToolBox can be used to familiarize programmers and developers with the Sentinel License Generation API, its functions and implementation.

To work with the Sentinel License Generation API:

1.Launch Sentinel LDK ToolBox.

2.Review the Sentinel LDK ToolBox settings.

3.In the API panel, select License Generation API.

4.In the Function pane, select sntl_lg_initialize.

5.Click Execute. Successful execution of sntl_lg_initialize returns an entry in the Handles pane. The handle is then used for this specific session.

NOTE   You must initialize a session before you can generate or modify a Sentinel protection key.

6.In the Function pane, select sntl_lg_start. Provide the required parameters and click Execute.

7.(Optional) In the Function pane, select sntl_lg_apply_template. Modify the license definition as required and click Execute. You can call this function repeatedly to apply multiple license definitions.

8.In the Function pane, select sntl_lg_generate_license and click Execute. Save the generated V2C file so that it can be applied to the relevant protection key.

Optional: Save the resultant state. You can use it to start a new license generation cycle for the protection key without receiving a C2V file from the relevant computer.

NOTE   A license generation process may include multiple Sentinel license generation threads. You can begin another simultaneous license generation cycle with a separate handle by repeating step 4. The Sentinel License Generation API supports up to 512 separate handles.

9.To terminate a specific session, select sntl_lg_cleanup. Ensure that the handle for the session you are terminating is displayed in the Handle field. Click Execute.

10.To view a list of all your API calls, click the API Call History button . All function calls and their subsequent returns are displayed in the API Call History dialog box.

Related Topics

Sentinel LDK ToolBox Settings

Using Sentinel LDK ToolBox

Generating Source Code

Encrypting and Decrypting Data Buffers

Accessing the Reference Information for an API

API Call History