General-purpose Guardant API functions
General-purpose functions allow implementing service operations related to initialization, setup and deinitialization of Guardant API as well as performing the main operations with dongles:
- Search for a dongle meeting specified search criteria
- Initialize the dongle memory
- Read data from dongle memory
- Write data into dongle memory
- Set read/write locks on dongle memory
- Encrypt information using dongle hardware algorithms
List of general-purpose Guardant API functions:
| Name of function | Access code | Short description |
|---|---|---|
| GrdStartup | None | Initialize Guardant API |
| GrdStartupEx | None | Initialize a Guardant API copy with indicating path to GnClient.ini |
| GrdCleanup | None | Deinitializes Guardant API |
| GrdDllMain | None | Initializes network functions to be used in DLL |
| GrdGetLastError | None | Retrieves information on the last error from the secured container |
| GrdFormatMessage | None | Converts the error code into a text message |
| GrdGetInfo | None | Retrieves information from the secured container |
| GrdIsValidHandle | None | Checks validity of the secured container handle |
| GrdCreateHandle | None | Creates the secured container handle |
| GrdCloseHandle | None | Closes the secured container handle |
| GrdSetAccessCodes | Public and Read required, others - on demand | Places access codes into the secured container |
| GrdSetWorkMode | None | Sets the Guardant API operating mode |
| GrdSetFindMode | None | Sets the dongle search mode |
| GrdFind | Private Read | Finds a dongle meeting the search criteria |
| GrdLogin | Private Read | Logs in to the dongle |
| GrdLogout | Private Read | Logs out of the dongle |
| GrdLock | Private Read | Locks the dongle for the period of performing dongle op-erations requiring monopoly running mode |
| GrdUnlock | Private Read | Unlocks the dongle |
| GrdCheck | Private Read | Checks for dongle availability |
| GrdDecGP | Private Read+ Private Write | Decrements the GP counter |
| GrdRead | Private Read | Reads data from the dongle memory |
| GrdWrite | Private Write | Writes data into the dongle memory |
| GrdSign | Private Read | Calculate the digital signature of data array |