This is an old revision of the document!


FIXME This page is not fully translated, yet. Please help completing the translation.
(remove this paragraph once the translation is finished)

USB Exported Control API > BS2_GetUserDatabaseInfoFromDirWithKey


[+2.8.2] USB로 추출한 Data에서 전체 사용자 정보(사용자개수, 카드개수, 지문개수, 얼굴 개수)를 가져옵니다.

함수

#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);

파라미터

  • [In] context : Context
  • [Out] szDir : Data 저장 경로
  • [Out] numUsers : 총 사용자 수
  • [Out] numCards : 총 카드 수
  • [Out] numFingers : 총 지문 수
  • [Out] numFaces : 총 얼굴 수
  • [In] ptrIsAcceptableUserID : 허용할 user ID인지 여부를 서버로 묻기위한 callback 함수
  • [In] key : 암호화 키이며 BS2_SetDataEncryptKey로 지정한 키값입니다.

참고
uidsObjs 변수는 사용 후 BS2_ReleaseObject 함수를 통해 시스템에 메모리를 반환해야 합니다.

반환값

성공적으로 수행될 경우 BS_SDK_SUCCESS를 반환하고, 에러가 발생할 경우 상응하는 에러 코드를 반환합니다.

함께 보기