이전 판 책에 추가 PDF로 내보내기 목차 BS2_GetUserInfosEx 함수 파라미터 반환값 함께 보기 문서의 이전 판입니다! BS2_GetUserInfosEx 사용자 식별자에 해당하는 사용자 정보를 가져옵니다. 함수 #include "BS_API.h" int BS2_GetUserInfosEx(void* context, uint32_t deviceId, char* uids, uint32_t uidCount, BS2UserBlobEx* userBlob); BS2UserBlobEx 구조체 보기 파라미터 [In] context : Context [In] deviceId : 장치 식별자 [In] uids : 가져오고자 하는 사용자 식별자 리스트 [In] uidCount : 사용자 식별자 개수 [Out] userBlob : 사용자 정보를 저장할 포인터 반환값 성공적으로 수행될 경우 BS_SDK_SUCCESS를 반환하고, 에러가 발생할 경우 상응하는 에러 코드를 반환합니다. BS2User user = userList[selection]; BS2UserBlobEx[] userBlob = Util.AllocateStructureArray<BS2UserBlobEx>(1); if (dbHandler.GetUserBlobEx(ref deviceInfo, ref user, ref userBlob[0])) { Console.WriteLine("Trying to enroll user."); BS2ErrorCode result = (BS2ErrorCode)API.BS2_EnrolUserEx(sdkContext, deviceID, userBlob, 1, 1); //BS2ErrorCode result = (BS2ErrorCode)API.BS2_EnrollUserEx(sdkContext, deviceID, userBlob, 1, 1); if (result != BS2ErrorCode.BS_SDK_SUCCESS) { Console.WriteLine("Got error({0}).", result); } if (userBlob[0].cardObjs != IntPtr.Zero) { Marshal.FreeHGlobal(userBlob[0].cardObjs); } if (userBlob[0].fingerObjs != IntPtr.Zero) { Marshal.FreeHGlobal(userBlob[0].fingerObjs); } if (userBlob[0].faceObjs != IntPtr.Zero) { Marshal.FreeHGlobal(userBlob[0].faceObjs); } } 함께 보기 BS2_GetUserList BS2_RemoveUser BS2_RemoveAllUser BS2_GetUserInfos BS2_GetUserInfosEx BS2_EnrolUser BS2_EnrolUserEx BS2_GetUserDatas BS2_GetUserDatasEx