Ejemplo n.º 1
0
        /// <summary>
        /// 返回查找句柄
        /// </summary>
        /// <param name="StartTime">DateTime类开始扫描时间</param>
        /// <param name="EndTime">结束扫描时间</param>
        /// <returns></returns>
        public Int32 getFindHandler(DateTime StartTime, DateTime EndTime)
        {
            PictureParam            = new CHCNetSDK.NET_DVR_FIND_PICTURE_PARAM();
            PictureParam.lChannel   = 1;
            PictureParam.byFileType = 0x25; //人脸抓拍
            PictureParam.byNeedCard = 0;

            //开始时间
            PictureParam.struStartTime.dwYear   = (uint)StartTime.Year;
            PictureParam.struStartTime.dwMonth  = (uint)StartTime.Month;
            PictureParam.struStartTime.dwDay    = (uint)StartTime.Day;
            PictureParam.struStartTime.dwHour   = (uint)StartTime.Hour;
            PictureParam.struStartTime.dwMinute = (uint)StartTime.Minute;
            PictureParam.struStartTime.dwSecond = (uint)StartTime.Second;

            //结束时间
            PictureParam.struStopTime.dwYear   = (uint)EndTime.Year;
            PictureParam.struStopTime.dwMonth  = (uint)EndTime.Month;
            PictureParam.struStopTime.dwDay    = (uint)EndTime.Day;
            PictureParam.struStopTime.dwHour   = (uint)EndTime.Hour;
            PictureParam.struStopTime.dwMinute = (uint)EndTime.Minute;
            PictureParam.struStopTime.dwSecond = (uint)EndTime.Second;

            return(CHCNetSDK.NET_DVR_FindPicture(m_UserID, ref PictureParam));
        }