public static unsafe int cbSDKEventCallback(ref EVENTINFO status, UInt32 userData) { if (status.m_emWork == 12 && status.m_dwErrorCode == 0) { mRecorderInfoList.Clear(); uint errorCode = 0; TimeSpan ts = m_startTime - TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970, 1, 1)); UInt32 time = Convert.ToUInt32(ts.TotalSeconds); TRecordInfo tri = new TRecordInfo(); tri.m_dwRecID = new byte[max_str_len]; tri.m_recordDomainName = new byte[max_str_len]; uint ret = myAPI.Kdm_GetRecordNext(mcuHandle, mCurrentRecordTask, time, ref tri, ref errorCode); while (ret != 0) { mRecorderInfoList.Add(tri); time = tri.m_tRecPeriod.m_dwEndTime + 1; tri = new TRecordInfo(); tri.m_dwRecID = new byte[max_str_len]; tri.m_recordDomainName = new byte[max_str_len]; ret = myAPI.Kdm_GetRecordNext(mcuHandle, mCurrentRecordTask, time, ref tri, ref errorCode); } } return(1); }
public extern static uint Kdm_GetRecordNext(IntPtr pMcuHandle, UInt32 dwTaskID, UInt32 dwSeekTime, ref TRecordInfo pRecordInfo, ref uint pErrorCode);