示例#1
0
        // 结束查找文件
        private bool FindClose()
        {
            bool ret = HCNetSDK.NET_DVR_FindClose_V30(_find_handle);

            _find_handle = -1;
            return(ret);
        }
示例#2
0
        //2012-04-05  add by [bhb] reason : 增加回放功能
        // 查找录像文件
        public bool FindFile(int channel, DateTime startTime, DateTime stopTime)
        {
            HCNetSDK.NET_DVR_FILECOND cond = new HCNetSDK.NET_DVR_FILECOND();
            cond.dwFileType    = 0xFF;
            cond.lChannel      = channel;
            cond.dwIsLocked    = 0xFF;
            cond.dwUseCardNo   = 0;
            cond.sCardNumber   = "";
            cond.struStartTime = DateTimeToDvrTime(startTime);
            cond.struStopTime  = DateTimeToDvrTime(stopTime);
            int findHandle = HCNetSDK.NET_DVR_FindFile_V30(_user_id, ref cond);

            if (findHandle < 0)
            {
                return(false);              // msg = GetErrorMessage();
            }
            _find_files.Clear();
            FindDvrFiles(findHandle);
            bool ret = HCNetSDK.NET_DVR_FindClose_V30(findHandle);

            return(ret);
        }