차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 양쪽 이전 판 이전 판 다음 판 | 이전 판 | ||
|
ko:bs2_getuserinfos [2021/12/29 10:10] mark [반환값] |
ko:bs2_getuserinfos [2021/12/30 10:43] (현재) mark [샘플코드] |
||
|---|---|---|---|
| 줄 26: | 줄 26: | ||
| 성공적으로 수행될 경우 ''BS_SDK_SUCCESS''를 반환하고, 에러가 발생할 경우 상응하는 에러 코드를 반환합니다. | 성공적으로 수행될 경우 ''BS_SDK_SUCCESS''를 반환하고, 에러가 발생할 경우 상응하는 에러 코드를 반환합니다. | ||
| \\ | \\ | ||
| - | ==== 샘플코드 ==== | ||
| - | C# | ||
| - | <code cpp> | ||
| - | BS2User user = userList[selection]; | ||
| - | BS2UserBlobEx[] userBlob = Util.AllocateStructureArray<BS2UserBlobEx>(1); | ||
| - | if (dbHandler.GetUserBlob(ref deviceInfo, ref user, ref userBlob[0])) | ||
| - | { | ||
| - | ///사용자 등록 및 함수추가 | ||
| - | } | ||
| - | 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); | ||
| - | } | ||
| - | </code> | ||
| - | |||
| ==== 함께 보기 ==== | ==== 함께 보기 ==== | ||