USB Exported Control API > BS2_GetUserDatabaseInfoFromDirWithKey
BS2_GetUserDatabaseInfoFromDirWithKey
[+2.8.2] Get full user information (number of users, number of cards, number of fingerprints, number of faces) from the data extracted by USB.
Declaration
#include "BS_API.h" int BS2_GetUserDatabaseInfoFromDirWithKey(void* context, const char* szDir, uint32_t* numUsers, uint32_t* numCards, uint32_t* numFingers, uint32_t* numFaces, IsAcceptableUserID ptrIsAcceptableUserID, const BS2EncryptKey* key);
Parameter
- [In]
context
: Context - [Out]
szDir
: Data Storage Path - [Out]
numUsers
: Total number of users - [Out]
numCards
: Total number of cards - [Out]
numFingers
: Total number of fingerprints - [Out]
numFaces
: Total number of faces - [In]
ptrIsAcceptableUserID
: Callback function to ask the server if it is the user ID to allow - [In]
key
: Encryption key and the key value specified by BS2_SetDataEncryptKey.
Note
The uidsObjs variable must return memory to the system after using via the BS2_ReleaseObject function.
Return value
Returns BS_SDK_SUCCESS
if performed successfully, or a corresponding error code if an error occurs.