Using the Sentinel Licensing API
Sentinel LDK ToolBox can be used to familiarize programmers and developers with the Sentinel Licensing API, its functions and implementation.
To work with the Sentinel Licensing API:
1.Connect the appropriate Sentinel protection key to your computer.
2.Launch Sentinel LDK ToolBox.
3.Review the Sentinel LDK ToolBox settings.
4.In the API panel, select Licensing API.
5.In
the Function pane,
select
hasp_login
.
6.Click Execute.
Successful execution of hasp_login
returns an
entry in the Handles pane. The handle is then used for this specific login session.
NOTE You must log in to a Sentinel protection key before you can access its properties via any of the other Sentinel Licensing API functions. The exception to this requirement is when you log in to the hasp_get_info function.
7.Select hasp_get_info
and click Execute. Identifiers
of all the keys that are present on the machine are displayed.
8.Select another function in the Function pane. A description is displayed in the right pane.
9.Enter appropriate values for the input
parameters, and click Execute.
Alternatively, you can begin another login session by repeating step 4.
A typical protection scheme will probably include multiple Sentinel Licensing
API calls. The Sentinel Licensing API supports up to 512 separate login
sessions.
10.To
terminate a specific session, select hasp_logout
.
Ensure that the handle for the session you are terminating is displayed
in the Handle field. Click Execute.
11.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
Encrypting and Decrypting Data Buffers
Accessing the Reference Information for an API