차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
ko:bs2_getlogblob [2017/06/28 11:49] 127.0.0.1 바깥 편집 |
ko:bs2_getlogblob [2021/12/30 12:55] (현재) mark [반환값] |
||
---|---|---|---|
줄 33: | 줄 33: | ||
==== 반환값 ==== | ==== 반환값 ==== | ||
성공적으로 수행될 경우 ''BS_SDK_SUCCESS''를 반환하고, 에러가 발생할 경우 상응하는 에러 코드를 반환합니다. | 성공적으로 수행될 경우 ''BS_SDK_SUCCESS''를 반환하고, 에러가 발생할 경우 상응하는 에러 코드를 반환합니다. | ||
+ | |||
+ | ==== 샘플코드 ==== | ||
+ | C# | ||
+ | <code cpp> | ||
+ | UInt32 lastEventId = 0; | ||
+ | UInt32 amount; | ||
+ | IntPtr outEventLogObjs = IntPtr.Zero; | ||
+ | UInt32 outNumEventLogs = 0; | ||
+ | cbOnLogReceived = new API.OnLogReceived(NormalLogReceived); | ||
+ | lastEventId = Util.GetInput((UInt32)0); | ||
+ | outEventLogObjs = IntPtr.Zero; | ||
+ | |||
+ | BS2ErrorCode result = (BS2ErrorCode)API.BS2_GetLogBlob(sdkContext, deviceID, (ushort)BS2EventMaskEnum.ALL, lastEventId, amount, out outEventLogObjs, out outNumEventLogs); | ||
+ | if (result != BS2ErrorCode.BS_SDK_SUCCESS) | ||
+ | { | ||
+ | Console.WriteLine("Got error({0}).", result); | ||
+ | break; | ||
+ | } | ||
+ | |||
+ | </code> | ||
==== 함께 보기 ==== | ==== 함께 보기 ==== | ||
[[BS2_GetLog]]\\ [[BS2_GetFilteredLog]]\\ [[BS2_ClearLog]] | [[BS2_GetLog]]\\ [[BS2_GetFilteredLog]]\\ [[BS2_ClearLog]] |