Beispiel #1
0
 /// <summary>
 /// Windows系统标准时间格式转为自定义格式
 /// </summary>
 /// <param name="dateTime">系统时间对象</param>
 /// <returns>自定义时间格式的时间数据</returns>
 private static NET_TIME ToNetTime(DateTime dateTime)
 {
     NET_TIME result = new NET_TIME();
     result.dwYear = dateTime.Year;
     result.dwMonth = dateTime.Month;
     result.dwDay = dateTime.Day;
     result.dwHour = dateTime.Hour;
     result.dwMinute = dateTime.Minute;
     result.dwSecond = dateTime.Second;
     return result;
 }
Beispiel #2
0
 private static extern Int32 CLIENT_SetupDeviceTime(int lLoginID, ref NET_TIME pDeviceTime);
Beispiel #3
0
 private static extern bool CLIENT_QueryRecordFile(int lLoginID, int nChannelId, int nRecordFileType, ref NET_TIME tmStart,ref NET_TIME tmEnd, string pchCardid, ref NET_RECORDFILE_INFO nriFileinfo, int maxlen, ref  int filecount, int waittime, bool bTime);
Beispiel #4
0
 private static extern int CLIENT_PlayBackByTimeEx(int lLoginID, int nChannelID, ref NET_TIME lpStartTime,
     ref NET_TIME lpStopTime, IntPtr hWnd,
     fDownLoadPosCallBack cbDownLoadPos, int dwPosUser,
     fDataCallBack fDownLoadDataCallBack, IntPtr dwDataUser);
Beispiel #5
0
 private static extern int CLIENT_PlayBackByTime(int lLoginID, int nChannelID, ref NET_TIME lpStartTime,
     ref NET_TIME lpStopTime, IntPtr hWnd,
     fDownLoadPosCallBack cbDownLoadPos,
     IntPtr dwUserData);
Beispiel #6
0
 private static extern int CLIENT_DownloadByTime(int lLoginID, int nChannelId, int nRecordFileType,
     ref NET_TIME tmStart,
     ref NET_TIME tmEnd, string sSavedFileName,
     fTimeDownLoadPosCallBack cbTimeDownLoadPos, IntPtr dwUserData);