UniToken API Reference: Difference between revisions
From SecuTech Wiki
Jump to navigationJump to search
| Line 67: | Line 67: | ||
== UT_Finalize == | == UT_Finalize == | ||
'''API Prototype''' | |||
<p>UT_RV UT_API UT_Finalize()</p> | |||
'''Description''' | |||
<p>Call this function to end any interaction with UniToken and free the memory.</p> | |||
'''Parameters''' | |||
<p>n/a</p> | |||
'''Returned value''' | |||
{| cellspacing="0" cellpadding="0" border="0" width="" | |||
|- | |||
|width="180"|RETURNED VALUE | |||
|DESCRIPTION | |||
|- | |||
|UT_OK | |||
|Successful operation | |||
|- | |||
|UT_NOT_INITIALIZE | |||
|Library not initialized | |||
|} | |||
'''Sample''' | |||
<p> | |||
UT_RV ret; <br> | |||
ret = UT_Finalize(); | |||
</p> | |||
== UT_GetTokenList == | == UT_GetTokenList == | ||
Revision as of 21:23, 11 April 2012
UT_GetLibraryVersion
API Prototype
unsigned long UT_API UT_GetLibraryVersion().
Description
To get the version of the present library
Parameters
n/a
Returned value
| RETURNED VALUE | DESCRIPTION |
| Library version | the version of the current library |
Sample
unsigned long ulLibraryVersion;
ulLibraryVersion = UT_GetLibraryVersion();
UT_Initialize
API Prototype
UT_RV UT_API UT_Initialize()
Description
To initialize the UniToken. It should be called before all the other functions except UT_GetLibraryVersion.
Parameters
n/a
Returned value
| RETURNED VALUE | DESCRIPTION |
| UT_OK | Successful operation |
| UT_ALREADY_INITIALIZE | Library already initialized |
Sample
UT_RV ret;
ret = UT_Initialize();
UT_Finalize
API Prototype
UT_RV UT_API UT_Finalize()
Description
Call this function to end any interaction with UniToken and free the memory.
Parameters
n/a
Returned value
| RETURNED VALUE | DESCRIPTION |
| UT_OK | Successful operation |
| UT_NOT_INITIALIZE | Library not initialized |
Sample
UT_RV ret;
ret = UT_Finalize();