User Management API > BS2_GetUserListFromDir
Gets enrolled user ID as array from storage path in device.
#include "BS_API.h" int BS2_GetUserListFromDir(void* context, const char* szDir, char** uidsObj, uint32_t* numUid, IsAcceptableUserID ptrIsAcceptableUserID);
context
: ContextszDir
: Storage path in deviceuidsObjs
: Pointer to store the user ID list's addressnumUid
: Number of usersptrIsAcceptableUserID
: TBD
NOTE
The uidsObjs variable needs to return the memory to the system by the BS2_ReleaseObject function after being used.
If successfully done, BS_SDK_SUCCESS
will be returned.
If there is an error, the corresponding error code will be returned.