Methods_Linux.cs 48 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712
  1. using System;
  2. using System.Runtime.InteropServices;
  3. using static QuickNV.HikvisionNetSDK.Defines;
  4. namespace QuickNV.HikvisionNetSDK
  5. {
  6. internal class Methods_Linux
  7. {
  8. public const string DllPath = "hcnetsdk.so";
  9. [DllImport(DllPath)]
  10. public static extern int NET_DVR_SendWithRecvRemoteConfig(int lHandle, IntPtr lpInBuff, uint dwInBuffSize, IntPtr lpOutBuff, uint dwOutBuffSize, ref uint dwOutDataLen);
  11. [DllImport(DllPath)]
  12. public static extern int NET_DVR_SendWithRecvRemoteConfig(int lHandle, ref NET_DVR_FACE_RECORD lpInBuff, int dwInBuffSize, ref NET_DVR_FACE_STATUS lpOutBuff, int dwOutBuffSize, IntPtr dwOutDataLen);
  13. [DllImport(DllPath)]
  14. public static extern int NET_DVR_SendWithRecvRemoteConfig(int lHandle, ref NET_DVR_FINGERPRINT_RECORD lpInBuff, int dwInBuffSize, ref NET_DVR_FINGERPRINT_STATUS lpOutBuff, int dwOutBuffSize, IntPtr dwOutDataLen);
  15. [DllImport(DllPath)]
  16. public static extern bool NET_DVR_STDXMLConfig(int lUserID, IntPtr lpInputParam, IntPtr lpOutputParam);
  17. [DllImport(DllPath)]
  18. public static extern bool NET_DVR_ControlGateway(int lUserID, int lGatewayIndex, uint dwStaic);
  19. [DllImport(DllPath)]
  20. public static extern bool NET_DVR_SetDVRMessageCallBack_V50(int iIndex, MSGCallBack fMessageCallBack, IntPtr pUser);
  21. [DllImport(DllPath)]
  22. public static extern int NET_DVR_GetNextRemoteConfig(int lHandle, ref NET_DVR_CAPTURE_FACE_CFG lpOutBuff, int dwOutBuffSize);
  23. [DllImport(DllPath)]
  24. public static extern int NET_DVR_GetNextRemoteConfig(int lHandle, ref NET_DVR_FINGER_PRINT_INFO_STATUS_V50 lpOutBuff, int dwOutBuffSize);
  25. [DllImport(DllPath)]
  26. public static extern int NET_DVR_GetNextRemoteConfig(int lHandle, ref NET_DVR_ACS_EVENT_CFG lpOutBuff, int dwOutBuffSize);
  27. [DllImport(DllPath)]
  28. public static extern int NET_DVR_GetNextRemoteConfig(int lHandle, ref NET_DVR_FINGERPRINT_RECORD lpOutBuff, int dwOutBuffSize);
  29. [DllImport(DllPath)]
  30. public static extern int NET_DVR_GetNextRemoteConfig(int lHandle, ref NET_DVR_CAPTURE_FINGERPRINT_CFG lpOutBuff, int dwOutBuffSize);
  31. [DllImport(DllPath)]
  32. public static extern int NET_DVR_GetNextRemoteConfig(int lHandle, ref NET_DVR_FACE_RECORD lpOutBuff, int dwOutBuffSize);
  33. [DllImport(DllPath)]
  34. public static extern bool NET_DVR_Init();
  35. [DllImport(DllPath)]
  36. public static extern bool NET_DVR_Cleanup();
  37. [DllImport(DllPath)]
  38. public static extern bool NET_DVR_SetDVRMessage(uint nMessage, IntPtr hWnd);
  39. [DllImport(DllPath)]
  40. public static extern bool NET_DVR_SetExceptionCallBack_V30(uint nMessage, IntPtr hWnd, EXCEPYIONCALLBACK fExceptionCallBack, IntPtr pUser);
  41. [DllImport(DllPath)]
  42. public static extern bool NET_DVR_SetDVRMessCallBack(MESSCALLBACK fMessCallBack);
  43. [DllImport(DllPath)]
  44. public static extern bool NET_DVR_SetDVRMessCallBack_EX(MESSCALLBACKEX fMessCallBack_EX);
  45. [DllImport(DllPath)]
  46. public static extern bool NET_DVR_SetDVRMessCallBack_NEW(MESSCALLBACKNEW fMessCallBack_NEW);
  47. [DllImport(DllPath)]
  48. public static extern bool NET_DVR_SetDVRMessageCallBack(MESSAGECALLBACK fMessageCallBack, uint dwUser);
  49. [DllImport(DllPath)]
  50. public static extern bool NET_DVR_SetDVRMessageCallBack_V30(MSGCallBack fMessageCallBack, IntPtr pUser);
  51. [DllImport(DllPath)]
  52. public static extern bool NET_DVR_SetDVRMessageCallBack_V31(MSGCallBack_V31 fMessageCallBack, IntPtr pUser);
  53. [DllImport(DllPath)]
  54. public static extern bool NET_DVR_SetSDKLocalCfg(int enumType, IntPtr lpInBuff);
  55. [DllImport(DllPath)]
  56. public static extern bool NET_DVR_GetSDKLocalCfg(int enumType, IntPtr lpOutBuff);
  57. [DllImport(DllPath)]
  58. public static extern bool NET_DVR_SetConnectTime(uint dwWaitTime, uint dwTryTimes);
  59. [DllImport(DllPath)]
  60. public static extern bool NET_DVR_SetReconnect(uint dwInterval, int bEnableRecon);
  61. [DllImport(DllPath)]
  62. public static extern bool NET_DVR_GetLocalIP(byte[] strIP, ref uint pValidNum, ref Boolean pEnableBind);
  63. [DllImport(DllPath)]
  64. public static extern bool NET_DVR_SetValidIP(uint dwIPIndex, Boolean bEnableBind);
  65. [DllImport(DllPath)]
  66. public static extern uint NET_DVR_GetSDKVersion();
  67. [DllImport(DllPath)]
  68. public static extern uint NET_DVR_GetSDKBuildVersion();
  69. [DllImport(DllPath)]
  70. public static extern Int32 NET_DVR_IsSupport();
  71. [DllImport(DllPath)]
  72. public static extern bool NET_DVR_StartListen(string sLocalIP, ushort wLocalPort);
  73. [DllImport(DllPath)]
  74. public static extern bool NET_DVR_StopListen();
  75. [DllImport(DllPath)]
  76. public static extern int NET_DVR_StartListen_V30(String sLocalIP, ushort wLocalPort, MSGCallBack DataCallback, IntPtr pUserData);
  77. [DllImport(DllPath)]
  78. public static extern bool NET_DVR_StopListen_V30(Int32 lListenHandle);
  79. [DllImport(DllPath)]
  80. public static extern Int32 NET_DVR_Login(string sDVRIP, ushort wDVRPort, string sUserName, string sPassword, ref NET_DVR_DEVICEINFO lpDeviceInfo);
  81. [DllImport(DllPath)]
  82. public static extern bool NET_DVR_Logout(int iUserID);
  83. [DllImport(DllPath)]
  84. public static extern uint NET_DVR_GetLastError();
  85. [DllImport(DllPath)]
  86. public static extern IntPtr NET_DVR_GetErrorMsg(ref int pErrorNo);
  87. [DllImport(DllPath)]
  88. public static extern bool NET_DVR_SetShowMode(uint dwShowType, uint colorKey);
  89. [DllImport(DllPath)]
  90. public static extern bool NET_DVR_GetDVRIPByResolveSvr(string sServerIP, ushort wServerPort, string sDVRName, ushort wDVRNameLen, string sDVRSerialNumber, ushort wDVRSerialLen, IntPtr pGetIP);
  91. [DllImport(DllPath)]
  92. public static extern bool NET_DVR_GetDVRIPByResolveSvr_EX(string sServerIP, ushort wServerPort, byte[] sDVRName, ushort wDVRNameLen, byte[] sDVRSerialNumber, ushort wDVRSerialLen, byte[] sGetIP, ref uint dwPort);
  93. [DllImport(DllPath)]
  94. public static extern Int32 NET_DVR_RealPlay(int iUserID, ref NET_DVR_CLIENTINFO lpClientInfo);
  95. [DllImport(DllPath)]
  96. public static extern Int32 NET_SDK_RealPlay(int iUserLogID, ref NET_DVR_CLIENTINFO lpDVRClientInfo);
  97. [DllImport(DllPath)]
  98. /*********************************************************
  99. Function: NET_DVR_RealPlay_V30
  100. Desc: 实时预览。
  101. Input: lUserID [in] NET_DVR_Login()或NET_DVR_Login_V30()的返回值
  102. lpClientInfo [in] 预览参数
  103. cbRealDataCallBack [in] 码流数据回调函数
  104. pUser [in] 用户数据
  105. bBlocked [in] 请求码流过程是否阻塞:0-否;1-是
  106. Output:
  107. Return: 1表示失败,其他值作为NET_DVR_StopRealPlay等函数的句柄参数
  108. **********************************************************/
  109. public static extern int NET_DVR_RealPlay_V30(int iUserID, ref NET_DVR_CLIENTINFO lpClientInfo, REALDATACALLBACK fRealDataCallBack_V30, IntPtr pUser, UInt32 bBlocked);
  110. [DllImport(DllPath)]
  111. public static extern int NET_DVR_RealPlay_V40(int iUserID, ref NET_DVR_PREVIEWINFO lpPreviewInfo, REALDATACALLBACK fRealDataCallBack_V30, IntPtr pUser);
  112. [DllImport(DllPath)]
  113. public static extern bool NET_DVR_StopRealPlay(int iRealHandle);
  114. [DllImport(DllPath)]
  115. public static extern bool NET_DVR_RigisterDrawFun(int lRealHandle, DRAWFUN fDrawFun, uint dwUser);
  116. [DllImport(DllPath)]
  117. public static extern bool NET_DVR_SetPlayerBufNumber(Int32 lRealHandle, uint dwBufNum);
  118. [DllImport(DllPath)]
  119. public static extern bool NET_DVR_ThrowBFrame(Int32 lRealHandle, uint dwNum);
  120. [DllImport(DllPath)]
  121. public static extern bool NET_DVR_SetAudioMode(uint dwMode);
  122. [DllImport(DllPath)]
  123. public static extern bool NET_DVR_OpenSound(Int32 lRealHandle);
  124. [DllImport(DllPath)]
  125. public static extern bool NET_DVR_CloseSound();
  126. [DllImport(DllPath)]
  127. public static extern bool NET_DVR_OpenSoundShare(Int32 lRealHandle);
  128. [DllImport(DllPath)]
  129. public static extern bool NET_DVR_CloseSoundShare(Int32 lRealHandle);
  130. [DllImport(DllPath)]
  131. public static extern bool NET_DVR_Volume(Int32 lRealHandle, ushort wVolume);
  132. [DllImport(DllPath)]
  133. public static extern bool NET_DVR_SaveRealData(Int32 lRealHandle, string sFileName);
  134. [DllImport(DllPath)]
  135. public static extern bool NET_DVR_StopSaveRealData(Int32 lRealHandle);
  136. [DllImport(DllPath)]
  137. public static extern bool NET_DVR_SetRealDataCallBack(int lRealHandle, SETREALDATACALLBACK fRealDataCallBack, uint dwUser);
  138. [DllImport(DllPath)]
  139. public static extern bool NET_DVR_SetStandardDataCallBack(int lRealHandle, STDDATACALLBACK fStdDataCallBack, uint dwUser);
  140. [DllImport(DllPath)]
  141. public static extern bool NET_DVR_CapturePicture(Int32 lRealHandle, string sPicFileName);
  142. [DllImport(DllPath)]
  143. public static extern bool NET_DVR_CapturePictureBlock(Int32 lRealHandle, string sPicFileName, int dwTimeOut);
  144. [DllImport(DllPath)]
  145. public static extern bool NET_DVR_MakeKeyFrame(Int32 lUserID, Int32 lChannel);//主码流
  146. [DllImport(DllPath)]
  147. public static extern bool NET_DVR_MakeKeyFrameSub(Int32 lUserID, Int32 lChannel);//子码流
  148. [DllImport(DllPath)]
  149. public static extern bool NET_DVR_GetPTZCtrl(Int32 lRealHandle);
  150. [DllImport(DllPath)]
  151. public static extern bool NET_DVR_GetPTZCtrl_Other(Int32 lUserID, int lChannel);
  152. [DllImport(DllPath)]
  153. public static extern bool NET_DVR_PTZControl(Int32 lRealHandle, uint dwPTZCommand, uint dwStop);
  154. [DllImport(DllPath)]
  155. public static extern bool NET_DVR_PTZControl_Other(Int32 lUserID, Int32 lChannel, uint dwPTZCommand, uint dwStop);
  156. [DllImport(DllPath)]
  157. public static extern bool NET_DVR_TransPTZ(Int32 lRealHandle, string pPTZCodeBuf, uint dwBufSize);
  158. [DllImport(DllPath)]
  159. public static extern bool NET_DVR_TransPTZ_Other(int lUserID, int lChannel, string pPTZCodeBuf, uint dwBufSize);
  160. [DllImport(DllPath)]
  161. public static extern bool NET_DVR_PTZPreset(int lRealHandle, uint dwPTZPresetCmd, uint dwPresetIndex);
  162. [DllImport(DllPath)]
  163. public static extern bool NET_DVR_PTZPreset_Other(int lUserID, int lChannel, uint dwPTZPresetCmd, uint dwPresetIndex);
  164. [DllImport(DllPath)]
  165. public static extern bool NET_DVR_TransPTZ_EX(int lRealHandle, string pPTZCodeBuf, uint dwBufSize);
  166. [DllImport(DllPath)]
  167. public static extern bool NET_DVR_PTZControl_EX(int lRealHandle, uint dwPTZCommand, uint dwStop);
  168. [DllImport(DllPath)]
  169. public static extern bool NET_DVR_PTZPreset_EX(int lRealHandle, uint dwPTZPresetCmd, uint dwPresetIndex);
  170. [DllImport(DllPath)]
  171. public static extern bool NET_DVR_PTZCruise(int lRealHandle, uint dwPTZCruiseCmd, byte byCruiseRoute, byte byCruisePoint, ushort wInput);
  172. [DllImport(DllPath)]
  173. public static extern bool NET_DVR_PTZCruise_Other(int lUserID, int lChannel, uint dwPTZCruiseCmd, byte byCruiseRoute, byte byCruisePoint, ushort wInput);
  174. [DllImport(DllPath)]
  175. public static extern bool NET_DVR_PTZCruise_EX(int lRealHandle, uint dwPTZCruiseCmd, byte byCruiseRoute, byte byCruisePoint, ushort wInput);
  176. [DllImport(DllPath)]
  177. public static extern bool NET_DVR_PTZTrack(int lRealHandle, uint dwPTZTrackCmd);
  178. [DllImport(DllPath)]
  179. public static extern bool NET_DVR_PTZTrack_Other(int lUserID, int lChannel, uint dwPTZTrackCmd);
  180. [DllImport(DllPath)]
  181. public static extern bool NET_DVR_PTZTrack_EX(int lRealHandle, uint dwPTZTrackCmd);
  182. [DllImport(DllPath)]
  183. public static extern bool NET_DVR_PTZControlWithSpeed(int lRealHandle, uint dwPTZCommand, uint dwStop, uint dwSpeed);
  184. [DllImport(DllPath)]
  185. public static extern bool NET_DVR_PTZControlWithSpeed_Other(int lUserID, int lChannel, uint dwPTZCommand, uint dwStop, uint dwSpeed);
  186. [DllImport(DllPath)]
  187. public static extern bool NET_DVR_PTZControlWithSpeed_EX(int lRealHandle, uint dwPTZCommand, uint dwStop, uint dwSpeed);
  188. [DllImport(DllPath)]
  189. public static extern bool NET_DVR_GetPTZCruise(int lUserID, int lChannel, int lCruiseRoute, ref NET_DVR_CRUISE_RET lpCruiseRet);
  190. [DllImport(DllPath)]
  191. public static extern bool NET_DVR_PTZMltTrack(int lRealHandle, uint dwPTZTrackCmd, uint dwTrackIndex);
  192. [DllImport(DllPath)]
  193. public static extern bool NET_DVR_PTZMltTrack_Other(int lUserID, int lChannel, uint dwPTZTrackCmd, uint dwTrackIndex);
  194. [DllImport(DllPath)]
  195. public static extern bool NET_DVR_PTZMltTrack_EX(int lRealHandle, uint dwPTZTrackCmd, uint dwTrackIndex);
  196. [DllImport(DllPath)]
  197. public static extern int NET_DVR_FindFile(int lUserID, int lChannel, uint dwFileType, ref NET_DVR_TIME lpStartTime, ref NET_DVR_TIME lpStopTime);
  198. [DllImport(DllPath)]
  199. public static extern int NET_DVR_FindNextFile(int lFindHandle, ref NET_DVR_FIND_DATA lpFindData);
  200. [DllImport(DllPath)]
  201. public static extern bool NET_DVR_FindClose(int lFindHandle);
  202. [DllImport(DllPath)]
  203. public static extern int NET_DVR_FindNextFile_V30(int lFindHandle, ref NET_DVR_FINDDATA_V30 lpFindData);
  204. [DllImport(DllPath)]
  205. public static extern int NET_DVR_FindNextFile_V40(int lFindHandle, ref NET_DVR_FINDDATA_V40 lpFindData);
  206. [DllImport(DllPath)]
  207. public static extern int NET_DVR_FindFile_V30(int lUserID, ref NET_DVR_FILECOND pFindCond);
  208. [DllImport(DllPath)]
  209. public static extern int NET_DVR_FindFile_V40(int lUserID, ref NET_DVR_FILECOND_V40 pFindCond);
  210. [DllImport(DllPath)]
  211. public static extern int NET_DVR_FindFileByEvent_V40(int lUserID, ref NET_DVR_SEARCH_EVENT_PARAM_V40 lpSearchEventParam);
  212. [DllImport(DllPath)]
  213. public static extern int NET_DVR_FindNextEvent_V40(int lSearchHandle, ref NET_DVR_SEARCH_EVENT_RET_V40 lpSearchEventRet);
  214. [DllImport(DllPath)]
  215. public static extern bool NET_DVR_FindClose_V30(int lFindHandle);
  216. [DllImport(DllPath)]
  217. public static extern int NET_DVR_FindNextFile_Card(int lFindHandle, ref NET_DVR_FINDDATA_CARD lpFindData);
  218. [DllImport(DllPath)]
  219. public static extern int NET_DVR_FindFile_Card(int lUserID, int lChannel, uint dwFileType, ref NET_DVR_TIME lpStartTime, ref NET_DVR_TIME lpStopTime);
  220. [DllImport(DllPath)]
  221. public static extern bool NET_DVR_LockFileByName(int lUserID, string sLockFileName);
  222. [DllImport(DllPath)]
  223. public static extern bool NET_DVR_UnlockFileByName(int lUserID, string sUnlockFileName);
  224. [DllImport(DllPath)]
  225. public static extern int NET_DVR_PlayBackByName(int lUserID, string sPlayBackFileName, IntPtr hWnd);
  226. [DllImport(DllPath)]
  227. public static extern int NET_DVR_PlayBackByTime(int lUserID, int lChannel, ref NET_DVR_TIME lpStartTime, ref NET_DVR_TIME lpStopTime, System.IntPtr hWnd);
  228. [DllImport(DllPath)]
  229. public static extern int NET_DVR_PlayBackByTime_V40(int lUserID, ref NET_DVR_VOD_PARA pVodPara);
  230. [DllImport(DllPath)]
  231. public static extern int NET_DVR_PlayBackReverseByName(int lUserID, string sPlayBackFileName, IntPtr hWnd);
  232. [DllImport(DllPath)]
  233. public static extern int NET_DVR_PlayBackReverseByTime_V40(int lUserID, IntPtr hWnd, ref NET_DVR_PLAYCOND pPlayCond);
  234. [DllImport(DllPath)]
  235. public static extern bool NET_DVR_PlayBackControl(int lPlayHandle, uint dwControlCode, uint dwInValue, ref uint LPOutValue);
  236. [DllImport(DllPath)]
  237. public static extern bool NET_DVR_PlayBackControl_V40(int lPlayHandle, uint dwControlCode, IntPtr lpInBuffer, uint dwInValue, IntPtr lpOutBuffer, ref uint LPOutValue);
  238. [DllImport(DllPath)]
  239. public static extern bool NET_DVR_StopPlayBack(int lPlayHandle);
  240. [DllImport(DllPath)]
  241. public static extern bool NET_DVR_SetPlayDataCallBack(int lPlayHandle, PLAYDATACALLBACK fPlayDataCallBack, uint dwUser);
  242. [DllImport(DllPath)]
  243. public static extern bool NET_DVR_PlayBackSaveData(int lPlayHandle, string sFileName);
  244. [DllImport(DllPath)]
  245. public static extern bool NET_DVR_StopPlayBackSave(int lPlayHandle);
  246. [DllImport(DllPath)]
  247. public static extern bool NET_DVR_GetPlayBackOsdTime(int lPlayHandle, ref NET_DVR_TIME lpOsdTime);
  248. [DllImport(DllPath)]
  249. public static extern bool NET_DVR_PlayBackCaptureFile(int lPlayHandle, string sFileName);
  250. [DllImport(DllPath)]
  251. public static extern int NET_DVR_GetFileByName(int lUserID, string sDVRFileName, string sSavedFileName);
  252. [DllImport(DllPath)]
  253. public static extern int NET_DVR_GetFileByTime(int lUserID, int lChannel, ref NET_DVR_TIME lpStartTime, ref NET_DVR_TIME lpStopTime, string sSavedFileName);
  254. [DllImport(DllPath)]
  255. public static extern int NET_DVR_GetFileByTime_V40(int lUserID, string sSavedFileName, ref NET_DVR_PLAYCOND pDownloadCond);
  256. [DllImport(DllPath)]
  257. public static extern bool NET_DVR_StopGetFile(int lFileHandle);
  258. [DllImport(DllPath)]
  259. public static extern int NET_DVR_GetDownloadPos(int lFileHandle);
  260. [DllImport(DllPath)]
  261. public static extern int NET_DVR_GetPlayBackPos(int lPlayHandle);
  262. [DllImport(DllPath)]
  263. public static extern int NET_DVR_FindPicture(int lUserID, ref NET_DVR_FIND_PICTURE_PARAM pFindParam);
  264. [DllImport(DllPath)]
  265. public static extern int NET_DVR_FindNextPicture_V50(int lFindHandle, ref NET_DVR_FIND_PICTURE_V50 lpFindData);
  266. [DllImport(DllPath)]
  267. public static extern bool NET_DVR_CloseFindPicture(int lFindHandle);
  268. [DllImport(DllPath)]
  269. public static extern bool NET_DVR_GetPicture(int lUserID, String sDVRFileName, String sSavedFileName);
  270. [DllImport(DllPath)]
  271. public static extern int NET_DVR_Upgrade(int lUserID, string sFileName);
  272. [DllImport(DllPath)]
  273. public static extern int NET_DVR_GetUpgradeState(int lUpgradeHandle);
  274. [DllImport(DllPath)]
  275. public static extern int NET_DVR_GetUpgradeProgress(int lUpgradeHandle);
  276. [DllImport(DllPath)]
  277. public static extern bool NET_DVR_CloseUpgradeHandle(int lUpgradeHandle);
  278. [DllImport(DllPath)]
  279. public static extern bool NET_DVR_SetNetworkEnvironment(uint dwEnvironmentLevel);
  280. [DllImport(DllPath)]
  281. public static extern int NET_DVR_FormatDisk(int lUserID, int lDiskNumber);
  282. [DllImport(DllPath)]
  283. public static extern bool NET_DVR_GetFormatProgress(int lFormatHandle, ref int pCurrentFormatDisk, ref int pCurrentDiskPos, ref int pFormatStatic);
  284. [DllImport(DllPath)]
  285. public static extern bool NET_DVR_CloseFormatHandle(int lFormatHandle);
  286. [DllImport(DllPath)]
  287. public static extern bool NET_DVR_GetIPCProtoList(int lUserID, ref NET_DVR_IPC_PROTO_LIST lpProtoList);
  288. [DllImport(DllPath)]
  289. public static extern bool NET_DVR_GetIPCProtoList_V41(int lUserID, ref NET_DVR_IPC_PROTO_LIST_V41 lpProtoList);
  290. [DllImport(DllPath)]
  291. public static extern int NET_DVR_SetupAlarmChan(int lUserID);
  292. [DllImport(DllPath)]
  293. public static extern bool NET_DVR_CloseAlarmChan(int lAlarmHandle);
  294. [DllImport(DllPath)]
  295. public static extern int NET_DVR_SetupAlarmChan_V30(int lUserID);
  296. [DllImport(DllPath)]
  297. public static extern int NET_DVR_SetupAlarmChan_V41(int lUserID, ref NET_DVR_SETUPALARM_PARAM lpSetupParam);
  298. [DllImport(DllPath)]
  299. public static extern bool NET_DVR_CloseAlarmChan_V30(int lAlarmHandle);
  300. [DllImport(DllPath)]
  301. public static extern int NET_DVR_StartVoiceCom(int lUserID, VOICEDATACALLBACK fVoiceDataCallBack, uint dwUser);
  302. [DllImport(DllPath)]
  303. public static extern int NET_DVR_StartVoiceCom_V30(int lUserID, uint dwVoiceChan, bool bNeedCBNoEncData, VOICEDATACALLBACKV30 fVoiceDataCallBack, IntPtr pUser);
  304. [DllImport(DllPath)]
  305. public static extern bool NET_DVR_SetVoiceComClientVolume(int lVoiceComHandle, ushort wVolume);
  306. [DllImport(DllPath)]
  307. public static extern bool NET_DVR_StopVoiceCom(int lVoiceComHandle);
  308. [DllImport(DllPath)]
  309. public static extern int NET_DVR_StartVoiceCom_MR(int lUserID, VOICEDATACALLBACK fVoiceDataCallBack, uint dwUser);
  310. [DllImport(DllPath)]
  311. public static extern int NET_DVR_StartVoiceCom_MR_V30(int lUserID, uint dwVoiceChan, VOICEDATACALLBACKV30 fVoiceDataCallBack, IntPtr pUser);
  312. [DllImport(DllPath)]
  313. public static extern bool NET_DVR_VoiceComSendData(int lVoiceComHandle, string pSendBuf, uint dwBufSize);
  314. [DllImport(DllPath)]
  315. public static extern bool NET_DVR_ClientAudioStart();
  316. [DllImport(DllPath)]
  317. public static extern bool NET_DVR_ClientAudioStart_V30(VOICEAUDIOSTART fVoiceAudioStart, IntPtr pUser);
  318. [DllImport(DllPath)]
  319. public static extern bool NET_DVR_ClientAudioStop();
  320. [DllImport(DllPath)]
  321. public static extern bool NET_DVR_AddDVR(int lUserID);
  322. [DllImport(DllPath)]
  323. public static extern int NET_DVR_AddDVR_V30(int lUserID, uint dwVoiceChan);
  324. [DllImport(DllPath)]
  325. public static extern bool NET_DVR_DelDVR(int lUserID);
  326. [DllImport(DllPath)]
  327. public static extern bool NET_DVR_DelDVR_V30(int lVoiceHandle);
  328. [DllImport(DllPath)]
  329. public static extern bool NET_DVR_SerialStart(int lUserID, int lSerialPort, SERIALDATACALLBACK fSerialDataCallBack, uint dwUser);
  330. [DllImport(DllPath)]
  331. public static extern bool NET_DVR_SerialSend(int lSerialHandle, int lChannel, string pSendBuf, uint dwBufSize);
  332. [DllImport(DllPath)]
  333. public static extern bool NET_DVR_SerialStop(int lSerialHandle);
  334. [DllImport(DllPath)]
  335. public static extern bool NET_DVR_SendTo232Port(int lUserID, string pSendBuf, uint dwBufSize);
  336. [DllImport(DllPath)]
  337. public static extern bool NET_DVR_SendToSerialPort(int lUserID, uint dwSerialPort, uint dwSerialIndex, string pSendBuf, uint dwBufSize);
  338. [DllImport(DllPath)]
  339. public static extern System.IntPtr NET_DVR_InitG722Decoder(int nBitrate);
  340. [DllImport(DllPath)]
  341. public static extern void NET_DVR_ReleaseG722Decoder(IntPtr pDecHandle);
  342. [DllImport(DllPath)]
  343. public static extern bool NET_DVR_DecodeG722Frame(IntPtr pDecHandle, ref byte pInBuffer, ref byte pOutBuffer);
  344. [DllImport(DllPath)]
  345. public static extern IntPtr NET_DVR_InitG722Encoder();
  346. [DllImport(DllPath)]
  347. public static extern bool NET_DVR_EncodeG722Frame(IntPtr pEncodeHandle, ref byte pInBuffer, ref byte pOutBuffer);
  348. [DllImport(DllPath)]
  349. public static extern void NET_DVR_ReleaseG722Encoder(IntPtr pEncodeHandle);
  350. [DllImport(DllPath)]
  351. public static extern bool NET_DVR_ClickKey(int lUserID, int lKeyIndex);
  352. [DllImport(DllPath)]
  353. public static extern bool NET_DVR_StartDVRRecord(int lUserID, int lChannel, int lRecordType);
  354. [DllImport(DllPath)]
  355. public static extern bool NET_DVR_StopDVRRecord(int lUserID, int lChannel);
  356. [DllImport(DllPath)]
  357. public static extern bool NET_DVR_InitDevice_Card(ref int pDeviceTotalChan);
  358. [DllImport(DllPath)]
  359. public static extern bool NET_DVR_ReleaseDevice_Card();
  360. [DllImport(DllPath)]
  361. public static extern bool NET_DVR_InitDDraw_Card(IntPtr hParent, uint colorKey);
  362. [DllImport(DllPath)]
  363. public static extern bool NET_DVR_ReleaseDDraw_Card();
  364. [DllImport(DllPath)]
  365. public static extern int NET_DVR_RealPlay_Card(int lUserID, ref NET_DVR_CARDINFO lpCardInfo, int lChannelNum);
  366. [DllImport(DllPath)]
  367. public static extern bool NET_DVR_ResetPara_Card(int lRealHandle, ref NET_DVR_DISPLAY_PARA lpDisplayPara);
  368. [DllImport(DllPath)]
  369. public static extern bool NET_DVR_RefreshSurface_Card();
  370. [DllImport(DllPath)]
  371. public static extern bool NET_DVR_ClearSurface_Card();
  372. [DllImport(DllPath)]
  373. public static extern bool NET_DVR_RestoreSurface_Card();
  374. [DllImport(DllPath)]
  375. public static extern bool NET_DVR_OpenSound_Card(int lRealHandle);
  376. [DllImport(DllPath)]
  377. public static extern bool NET_DVR_CloseSound_Card(int lRealHandle);
  378. [DllImport(DllPath)]
  379. public static extern bool NET_DVR_SetVolume_Card(int lRealHandle, ushort wVolume);
  380. [DllImport(DllPath)]
  381. public static extern bool NET_DVR_AudioPreview_Card(int lRealHandle, int bEnable);
  382. [DllImport(DllPath)]
  383. public static extern int NET_DVR_GetCardLastError_Card();
  384. [DllImport(DllPath)]
  385. public static extern System.IntPtr NET_DVR_GetChanHandle_Card(int lRealHandle);
  386. [DllImport(DllPath)]
  387. public static extern bool NET_DVR_CapturePicture_Card(int lRealHandle, string sPicFileName);
  388. [DllImport(DllPath)]
  389. public static extern bool NET_DVR_GetSerialNum_Card(int lChannelNum, ref uint pDeviceSerialNo);
  390. [DllImport(DllPath)]
  391. public static extern int NET_DVR_FindDVRLog(int lUserID, int lSelectMode, uint dwMajorType, uint dwMinorType, ref NET_DVR_TIME lpStartTime, ref NET_DVR_TIME lpStopTime);
  392. [DllImport(DllPath)]
  393. public static extern int NET_DVR_FindNextLog(int lLogHandle, ref NET_DVR_LOG lpLogData);
  394. [DllImport(DllPath)]
  395. public static extern bool NET_DVR_FindLogClose(int lLogHandle);
  396. [DllImport(DllPath)]
  397. public static extern int NET_DVR_FindDVRLog_V30(int lUserID, int lSelectMode, uint dwMajorType, uint dwMinorType, ref NET_DVR_TIME lpStartTime, ref NET_DVR_TIME lpStopTime, bool bOnlySmart);
  398. [DllImport(DllPath)]
  399. public static extern int NET_DVR_FindNextLog_V30(int lLogHandle, ref NET_DVR_LOG_V30 lpLogData);
  400. [DllImport(DllPath)]
  401. public static extern bool NET_DVR_FindLogClose_V30(int lLogHandle);
  402. [DllImport(DllPath)]
  403. public static extern int NET_DVR_FindFileByCard(int lUserID, int lChannel, uint dwFileType, int nFindType, ref byte sCardNumber, ref NET_DVR_TIME lpStartTime, ref NET_DVR_TIME lpStopTime);
  404. [DllImport(DllPath)]
  405. public static extern bool NET_DVR_CaptureJPEGPicture(int lUserID, int lChannel, ref NET_DVR_JPEGPARA lpJpegPara, string sPicFileName);
  406. [DllImport(DllPath)]
  407. public static extern bool NET_DVR_CaptureJPEGPicture_NEW(int lUserID, int lChannel, ref NET_DVR_JPEGPARA lpJpegPara, byte[] sJpegPicBuffer, uint dwPicSize, ref uint lpSizeReturned);
  408. [DllImport(DllPath)]
  409. public static extern int NET_DVR_GetRealPlayerIndex(int lRealHandle);
  410. [DllImport(DllPath)]
  411. public static extern int NET_DVR_GetPlayBackPlayerIndex(int lPlayHandle);
  412. [DllImport(DllPath)]
  413. //人脸识别上传文件发送数据
  414. public static extern Int32 NET_DVR_UploadSend(int lUploadHandle, ref NET_DVR_SEND_PARAM_IN pstruSendParamIN, IntPtr lpOutBuffer);
  415. [DllImport(DllPath)]
  416. //人脸识别上传文件
  417. public static extern Int32 NET_DVR_UploadFile_V40(int lUserID, uint dwUploadType, IntPtr lpInBuffer, uint dwInBufferSize, string sFileName, IntPtr lpOutBuffer, uint dwOutBufferSize);
  418. [DllImport(DllPath)]
  419. public static extern Int32 NET_DVR_GetUploadState(int lUploadHandle, ref uint pProgress);
  420. [DllImport(DllPath)]
  421. public static extern bool NET_DVR_GetUploadResult(int lUploadHandle, IntPtr lpOutBuffer, uint dwOutBufferSize);
  422. [DllImport(DllPath)]
  423. public static extern bool NET_DVR_UploadClose(int lUploadHandle);
  424. [DllImport(DllPath)]
  425. public static extern bool NET_DVR_SetScaleCFG(int lUserID, uint dwScale);
  426. [DllImport(DllPath)]
  427. public static extern bool NET_DVR_GetScaleCFG(int lUserID, ref uint lpOutScale);
  428. [DllImport(DllPath)]
  429. public static extern bool NET_DVR_SetScaleCFG_V30(int lUserID, ref NET_DVR_SCALECFG pScalecfg);
  430. [DllImport(DllPath)]
  431. public static extern bool NET_DVR_GetScaleCFG_V30(int lUserID, ref NET_DVR_SCALECFG pScalecfg);
  432. [DllImport(DllPath)]
  433. public static extern bool NET_DVR_SetATMPortCFG(int lUserID, ushort wATMPort);
  434. [DllImport(DllPath)]
  435. public static extern bool NET_DVR_GetATMPortCFG(int lUserID, ref ushort LPOutATMPort);
  436. [DllImport(DllPath)]
  437. public static extern bool NET_DVR_InitDDrawDevice();
  438. [DllImport(DllPath)]
  439. public static extern bool NET_DVR_ReleaseDDrawDevice();
  440. [DllImport(DllPath)]
  441. public static extern int NET_DVR_GetDDrawDeviceTotalNums();
  442. [DllImport(DllPath)]
  443. public static extern bool NET_DVR_SetDDrawDevice(int lPlayPort, uint nDeviceNum);
  444. [DllImport(DllPath)]
  445. public static extern bool NET_DVR_PTZSelZoomIn(int lRealHandle, ref NET_DVR_POINT_FRAME pStruPointFrame);
  446. [DllImport(DllPath)]
  447. public static extern bool NET_DVR_PTZSelZoomIn_EX(int lUserID, int lChannel, ref NET_DVR_POINT_FRAME pStruPointFrame);
  448. [DllImport(DllPath)]
  449. public static extern bool NET_DVR_StartDecode(int lUserID, int lChannel, ref NET_DVR_DECODERINFO lpDecoderinfo);
  450. [DllImport(DllPath)]
  451. public static extern bool NET_DVR_StopDecode(int lUserID, int lChannel);
  452. [DllImport(DllPath)]
  453. public static extern bool NET_DVR_GetDecoderState(int lUserID, int lChannel, ref NET_DVR_DECODERSTATE lpDecoderState);
  454. [DllImport(DllPath)]
  455. public static extern bool NET_DVR_SetDecInfo(int lUserID, int lChannel, ref NET_DVR_DECCFG lpDecoderinfo);
  456. [DllImport(DllPath)]
  457. public static extern bool NET_DVR_GetDecInfo(int lUserID, int lChannel, ref NET_DVR_DECCFG lpDecoderinfo);
  458. [DllImport(DllPath)]
  459. public static extern bool NET_DVR_SetDecTransPort(int lUserID, ref NET_DVR_PORTCFG lpTransPort);
  460. [DllImport(DllPath)]
  461. public static extern bool NET_DVR_GetDecTransPort(int lUserID, ref NET_DVR_PORTCFG lpTransPort);
  462. [DllImport(DllPath)]
  463. public static extern bool NET_DVR_DecPlayBackCtrl(int lUserID, int lChannel, uint dwControlCode, uint dwInValue, ref uint LPOutValue, ref NET_DVR_PLAYREMOTEFILE lpRemoteFileInfo);
  464. [DllImport(DllPath)]
  465. public static extern bool NET_DVR_StartDecSpecialCon(int lUserID, int lChannel, ref NET_DVR_DECCHANINFO lpDecChanInfo);
  466. [DllImport(DllPath)]
  467. public static extern bool NET_DVR_StopDecSpecialCon(int lUserID, int lChannel, ref NET_DVR_DECCHANINFO lpDecChanInfo);
  468. [DllImport(DllPath)]
  469. public static extern bool NET_DVR_DecCtrlDec(int lUserID, int lChannel, uint dwControlCode);
  470. [DllImport(DllPath)]
  471. public static extern bool NET_DVR_DecCtrlScreen(int lUserID, int lChannel, uint dwControl);
  472. [DllImport(DllPath)]
  473. public static extern bool NET_DVR_GetDecCurLinkStatus(int lUserID, int lChannel, ref NET_DVR_DECSTATUS lpDecStatus);
  474. [DllImport(DllPath)]
  475. public static extern bool NET_DVR_MatrixStartDynamic(int lUserID, uint dwDecChanNum, ref NET_DVR_MATRIX_DYNAMIC_DEC lpDynamicInfo);
  476. [DllImport(DllPath)]
  477. public static extern bool NET_DVR_MatrixStopDynamic(int lUserID, uint dwDecChanNum);
  478. [DllImport(DllPath)]
  479. public static extern bool NET_DVR_MatrixGetDecChanInfo(int lUserID, uint dwDecChanNum, ref NET_DVR_MATRIX_DEC_CHAN_INFO lpInter);
  480. [DllImport(DllPath)]
  481. public static extern bool NET_DVR_MatrixGetDecChanInfo_V41(int lUserID, uint dwDecChanNum, ref NET_DVR_MATRIX_DEC_CHAN_INFO_V41 lpOuter);
  482. [DllImport(DllPath)]
  483. public static extern bool NET_DVR_MatrixSetLoopDecChanInfo(int lUserID, uint dwDecChanNum, ref NET_DVR_MATRIX_LOOP_DECINFO lpInter);
  484. [DllImport(DllPath)]
  485. public static extern bool NET_DVR_MatrixGetLoopDecChanInfo(int lUserID, uint dwDecChanNum, ref NET_DVR_MATRIX_LOOP_DECINFO lpInter);
  486. [DllImport(DllPath)]
  487. public static extern bool NET_DVR_MatrixSetLoopDecChanEnable(int lUserID, uint dwDecChanNum, uint dwEnable);
  488. [DllImport(DllPath)]
  489. public static extern bool NET_DVR_MatrixGetLoopDecChanEnable(int lUserID, uint dwDecChanNum, ref uint lpdwEnable);
  490. [DllImport(DllPath)]
  491. public static extern bool NET_DVR_MatrixGetLoopDecEnable(int lUserID, ref uint lpdwEnable);
  492. [DllImport(DllPath)]
  493. public static extern bool NET_DVR_MatrixSetDecChanEnable(int lUserID, uint dwDecChanNum, uint dwEnable);
  494. [DllImport(DllPath)]
  495. public static extern bool NET_DVR_MatrixGetDecChanEnable(int lUserID, uint dwDecChanNum, ref uint lpdwEnable);
  496. [DllImport(DllPath)]
  497. public static extern bool NET_DVR_MatrixGetDecChanStatus(int lUserID, uint dwDecChanNum, ref NET_DVR_MATRIX_DEC_CHAN_STATUS lpInter);
  498. [DllImport(DllPath)]
  499. public static extern bool NET_DVR_MatrixSetTranInfo(int lUserID, ref NET_DVR_MATRIX_TRAN_CHAN_CONFIG lpTranInfo);
  500. [DllImport(DllPath)]
  501. public static extern bool NET_DVR_MatrixGetTranInfo(int lUserID, ref NET_DVR_MATRIX_TRAN_CHAN_CONFIG lpTranInfo);
  502. [DllImport(DllPath)]
  503. public static extern bool NET_DVR_MatrixSetRemotePlay(int lUserID, uint dwDecChanNum, ref NET_DVR_MATRIX_DEC_REMOTE_PLAY lpInter);
  504. [DllImport(DllPath)]
  505. public static extern bool NET_DVR_MatrixSetRemotePlayControl(int lUserID, uint dwDecChanNum, uint dwControlCode, uint dwInValue, ref uint LPOutValue);
  506. [DllImport(DllPath)]
  507. public static extern bool NET_DVR_MatrixGetRemotePlayStatus(int lUserID, uint dwDecChanNum, ref NET_DVR_MATRIX_DEC_REMOTE_PLAY_STATUS lpOuter);
  508. [DllImport(DllPath)]
  509. public static extern bool NET_DVR_MatrixStartDynamic_V30(int lUserID, uint dwDecChanNum, ref NET_DVR_PU_STREAM_CFG lpDynamicInfo);
  510. [DllImport(DllPath)]
  511. public static extern bool NET_DVR_MatrixStartDynamic_V41(int lUserID, uint dwDecChanNum, ref NET_DVR_PU_STREAM_CFG_V41 lpDynamicInfo);
  512. [DllImport(DllPath)]
  513. public static extern bool NET_DVR_MatrixSetLoopDecChanInfo_V30(int lUserID, uint dwDecChanNum, ref NET_DVR_MATRIX_LOOP_DECINFO_V30 lpInter);
  514. [DllImport(DllPath)]
  515. public static extern bool NET_DVR_MatrixGetLoopDecChanInfo_V30(int lUserID, uint dwDecChanNum, ref NET_DVR_MATRIX_LOOP_DECINFO_V30 lpInter);
  516. [DllImport(DllPath)]
  517. public static extern bool NET_DVR_MatrixGetDecChanInfo_V30(int lUserID, uint dwDecChanNum, ref NET_DVR_MATRIX_DEC_CHAN_INFO_V30 lpInter);
  518. [DllImport(DllPath)]
  519. public static extern bool NET_DVR_MatrixSetTranInfo_V30(int lUserID, ref NET_DVR_MATRIX_TRAN_CHAN_CONFIG_V30 lpTranInfo);
  520. [DllImport(DllPath)]
  521. public static extern bool NET_DVR_MatrixGetTranInfo_V30(int lUserID, ref NET_DVR_MATRIX_TRAN_CHAN_CONFIG_V30 lpTranInfo);
  522. [DllImport(DllPath)]
  523. public static extern bool NET_DVR_MatrixGetDisplayCfg(int lUserID, uint dwDispChanNum, ref NET_DVR_VGA_DISP_CHAN_CFG lpDisplayCfg);
  524. [DllImport(DllPath)]
  525. public static extern bool NET_DVR_MatrixSetDisplayCfg(int lUserID, uint dwDispChanNum, ref NET_DVR_VGA_DISP_CHAN_CFG lpDisplayCfg);
  526. [DllImport(DllPath)]
  527. public static extern bool NET_DVR_MatrixGetDisplayCfg_V41(int lUserID, uint dwDispChanNum, ref NET_DVR_MATRIX_VOUTCFG lpDisplayCfg);
  528. [DllImport(DllPath)]
  529. public static extern bool NET_DVR_MatrixSetDisplayCfg_V41(int lUserID, uint dwDispChanNum, ref NET_DVR_MATRIX_VOUTCFG lpDisplayCfg);
  530. [DllImport(DllPath)]
  531. public static extern int NET_DVR_MatrixStartPassiveDecode(int lUserID, uint dwDecChanNum, ref NET_DVR_MATRIX_PASSIVEMODE lpPassiveMode);
  532. [DllImport(DllPath)]
  533. public static extern bool NET_DVR_MatrixSendData(int lPassiveHandle, System.IntPtr pSendBuf, uint dwBufSize);
  534. [DllImport(DllPath)]
  535. public static extern bool NET_DVR_MatrixStopPassiveDecode(int lPassiveHandle);
  536. [DllImport(DllPath)]
  537. public static extern bool NET_DVR_UploadLogo(int lUserID, uint dwDispChanNum, ref NET_DVR_DISP_LOGOCFG lpDispLogoCfg, System.IntPtr sLogoBuffer);
  538. [DllImport(DllPath)]
  539. public static extern int NET_DVR_PicUpload(int lUserID, String sFileName, ref NET_DVR_PICTURECFG lpPictureCfg);
  540. [DllImport(DllPath)]
  541. public static extern int NET_DVR_GetPicUploadProgress(int lUploadHandle);
  542. [DllImport(DllPath)]
  543. public static extern bool NET_DVR_CloseUploadHandle(int lUploadHandle);
  544. [DllImport(DllPath)]
  545. public static extern int NET_DVR_GetPicUploadState(int lUploadHandle);
  546. [DllImport(DllPath)]
  547. public static extern bool NET_DVR_LogoSwitch(int lUserID, uint dwDecChan, uint dwLogoSwitch);
  548. [DllImport(DllPath)]
  549. public static extern bool NET_DVR_MatrixGetDeviceStatus(int lUserID, ref NET_DVR_DECODER_WORK_STATUS lpDecoderCfg);
  550. [DllImport(DllPath)]
  551. public static extern bool NET_DVR_GetInputSignalList_V40(int lUserID, uint dwDevNum, ref NET_DVR_INPUT_SIGNAL_LIST lpInputSignalList);
  552. [DllImport(DllPath)]
  553. public static extern bool NET_DVR_MatrixDiaplayControl(int lUserID, uint dwDispChanNum, uint dwDispChanCmd, uint dwCmdParam);
  554. [DllImport(DllPath)]
  555. public static extern bool NET_DVR_RefreshPlay(int lPlayHandle);
  556. [DllImport(DllPath)]
  557. public static extern bool NET_DVR_RestoreConfig(int lUserID);
  558. [DllImport(DllPath)]
  559. public static extern bool NET_DVR_SaveConfig(int lUserID);
  560. [DllImport(DllPath)]
  561. public static extern bool NET_DVR_RebootDVR(int lUserID);
  562. [DllImport(DllPath)]
  563. public static extern bool NET_DVR_ShutDownDVR(int lUserID);
  564. [DllImport(DllPath)]
  565. public static extern bool NET_DVR_GetDVRConfig(int lUserID, uint dwCommand, int lChannel, IntPtr lpOutBuffer, uint dwOutBufferSize, ref uint lpBytesReturned);
  566. [DllImport(DllPath)]
  567. public static extern bool NET_DVR_SetDVRConfig(int lUserID, uint dwCommand, int lChannel, System.IntPtr lpInBuffer, uint dwInBufferSize);
  568. [DllImport(DllPath)]
  569. public static extern bool NET_DVR_GetDVRWorkState_V30(int lUserID, IntPtr pWorkState);
  570. [DllImport(DllPath)]
  571. public static extern bool NET_DVR_GetDVRWorkState(int lUserID, ref NET_DVR_WORKSTATE lpWorkState);
  572. [DllImport(DllPath)]
  573. public static extern bool NET_DVR_SetVideoEffect(int lUserID, int lChannel, uint dwBrightValue, uint dwContrastValue, uint dwSaturationValue, uint dwHueValue);
  574. [DllImport(DllPath)]
  575. public static extern bool NET_DVR_GetVideoEffect(int lUserID, int lChannel, ref uint pBrightValue, ref uint pContrastValue, ref uint pSaturationValue, ref uint pHueValue);
  576. [DllImport(DllPath)]
  577. public static extern bool NET_DVR_ClientGetframeformat(int lUserID, ref NET_DVR_FRAMEFORMAT lpFrameFormat);
  578. [DllImport(DllPath)]
  579. public static extern bool NET_DVR_ClientSetframeformat(int lUserID, ref NET_DVR_FRAMEFORMAT lpFrameFormat);
  580. [DllImport(DllPath)]
  581. public static extern bool NET_DVR_GetAtmProtocol(int lUserID, ref NET_DVR_ATM_PROTOCOL lpAtmProtocol);
  582. [DllImport(DllPath)]
  583. public static extern bool NET_DVR_GetAlarmOut_V30(int lUserID, IntPtr lpAlarmOutState);
  584. [DllImport(DllPath)]
  585. public static extern bool NET_DVR_GetAlarmOut(int lUserID, ref NET_DVR_ALARMOUTSTATUS lpAlarmOutState);
  586. [DllImport(DllPath)]
  587. public static extern bool NET_DVR_SetAlarmOut(int lUserID, int lAlarmOutPort, int lAlarmOutStatic);
  588. [DllImport(DllPath)]
  589. public static extern bool NET_DVR_GetUpnpNatState(int lUserID, ref NET_DVR_UPNP_NAT_STATE lpState);
  590. [DllImport(DllPath)]
  591. public static extern bool NET_DVR_ClientSetVideoEffect(int lRealHandle, uint dwBrightValue, uint dwContrastValue, uint dwSaturationValue, uint dwHueValue);
  592. [DllImport(DllPath)]
  593. public static extern bool NET_DVR_ClientGetVideoEffect(int lRealHandle, ref uint pBrightValue, ref uint pContrastValue, ref uint pSaturationValue, ref uint pHueValue);
  594. [DllImport(DllPath)]
  595. public static extern bool NET_DVR_GetConfigFile(int lUserID, string sFileName);
  596. [DllImport(DllPath)]
  597. public static extern bool NET_DVR_SetConfigFile(int lUserID, string sFileName);
  598. [DllImport(DllPath)]
  599. public static extern bool NET_DVR_GetConfigFile_V30(int lUserID, string sOutBuffer, uint dwOutSize, ref uint pReturnSize);
  600. [DllImport(DllPath)]
  601. public static extern bool NET_DVR_GetConfigFile_EX(int lUserID, string sOutBuffer, uint dwOutSize);
  602. [DllImport(DllPath)]
  603. public static extern bool NET_DVR_SetConfigFile_EX(int lUserID, string sInBuffer, uint dwInSize);
  604. [DllImport(DllPath)]
  605. public static extern bool NET_DVR_SetLogToFile(int bLogEnable, string strLogDir, bool bAutoDel);
  606. [DllImport(DllPath)]
  607. public static extern bool NET_DVR_GetSDKState(ref NET_DVR_SDKSTATE pSDKState);
  608. [DllImport(DllPath)]
  609. public static extern bool NET_DVR_GetSDKAbility(ref NET_DVR_SDKABL pSDKAbl);
  610. [DllImport(DllPath)]
  611. public static extern bool NET_DVR_GetPTZProtocol(int lUserID, ref NET_DVR_PTZCFG pPtzcfg);
  612. [DllImport(DllPath)]
  613. public static extern bool NET_DVR_LockPanel(int lUserID);
  614. [DllImport(DllPath)]
  615. public static extern bool NET_DVR_UnLockPanel(int lUserID);
  616. [DllImport(DllPath)]
  617. public static extern bool NET_DVR_SetRtspConfig(int lUserID, uint dwCommand, ref NET_DVR_RTSPCFG lpInBuffer, uint dwInBufferSize);
  618. [DllImport(DllPath)]
  619. public static extern bool NET_DVR_GetRtspConfig(int lUserID, uint dwCommand, ref NET_DVR_RTSPCFG lpOutBuffer, uint dwOutBufferSize);
  620. [DllImport(DllPath)]
  621. public static extern bool NET_DVR_MatrixGetSceneCfg(int lUserID, uint dwSceneNum, ref NET_DVR_MATRIX_SCENECFG lpSceneCfg);
  622. [DllImport(DllPath)]
  623. public static extern bool NET_DVR_MatrixSetSceneCfg(int lUserID, uint dwSceneNum, ref NET_DVR_MATRIX_SCENECFG lpSceneCfg);
  624. [DllImport(DllPath)]
  625. public static extern bool NET_DVR_GetRealHeight(int lUserID, int lChannel, ref NET_VCA_LINE lpLine, ref Single lpHeight);
  626. [DllImport(DllPath)]
  627. public static extern bool NET_DVR_GetRealLength(int lUserID, int lChannel, ref NET_VCA_LINE lpLine, ref Single lpLength);
  628. [DllImport(DllPath)]
  629. public static extern bool NET_DVR_SaveRealData_V30(int lRealHandle, uint dwTransType, string sFileName);
  630. [DllImport(DllPath)]
  631. public static extern IntPtr NET_DVR_InitG711Encoder(ref NET_DVR_AUDIOENC_INFO enc_info);
  632. [DllImport(DllPath)]
  633. public static extern bool NET_DVR_EncodeG711Frame(IntPtr handle, ref NET_DVR_AUDIOENC_PROCESS_PARAM p_enc_proc_param);
  634. [DllImport(DllPath)]
  635. public static extern bool NET_DVR_ReleaseG711Encoder(IntPtr pEncodeHandle);
  636. [DllImport(DllPath)]
  637. public static extern bool NET_DVR_DecodeG711Frame(uint iType, ref byte pInBuffer, ref byte pOutBuffer);
  638. [DllImport(DllPath)]
  639. public static extern bool NET_DVR_EmailTest(int lUserID);
  640. [DllImport(DllPath)]
  641. public static extern int NET_DVR_FindFileByEvent(int lUserID, ref NET_DVR_SEARCH_EVENT_PARAM lpSearchEventParam);
  642. [DllImport(DllPath)]
  643. public static extern int NET_DVR_FindNextEvent(int lSearchHandle, ref NET_DVR_SEARCH_EVENT_RET lpSearchEventRet);
  644. [DllImport(DllPath)]
  645. public static extern Int32 NET_DVR_Login_V30(string sDVRIP, Int32 wDVRPort, string sUserName, string sPassword, ref NET_DVR_DEVICEINFO_V30 lpDeviceInfo);
  646. [DllImport(DllPath)]
  647. public static extern int NET_DVR_Login_V40(ref NET_DVR_USER_LOGIN_INFO pLoginInfo, ref NET_DVR_DEVICEINFO_V40 lpDeviceInfo);
  648. [DllImport(DllPath)]
  649. public static extern bool NET_DVR_Logout_V30(Int32 lUserID);
  650. [DllImport(DllPath)]
  651. public static extern int NET_DVR_FindNextLog_MATRIX(int iLogHandle, ref NET_DVR_LOG_MATRIX lpLogData);
  652. [DllImport(DllPath)]
  653. public static extern int NET_DVR_FindDVRLog_Matrix(int iUserID, int lSelectMode, uint dwMajorType, uint dwMinorType, ref tagVEDIOPLATLOG lpVedioPlatLog, ref NET_DVR_TIME lpStartTime, ref NET_DVR_TIME lpStopTime);
  654. [DllImport(DllPath)]
  655. public static extern bool NET_DVR_STDXMLConfig(int iUserID, ref NET_DVR_XML_CONFIG_INPUT lpInputParam, ref NET_DVR_XML_CONFIG_OUTPUT lpOutputParam);
  656. [DllImport(DllPath)]
  657. public static extern bool NET_DVR_GetDeviceConfig(int lUserID, uint dwCommand, uint dwCount, IntPtr lpInBuffer, uint dwInBufferSize, IntPtr lpStatusList, IntPtr lpOutBuffer, uint dwOutBufferSize);
  658. [DllImport(DllPath)]
  659. public static extern bool NET_DVR_SetDeviceConfig(int lUserID, uint dwCommand, uint dwCount, IntPtr lpInBuffer, uint dwInBufferSize, IntPtr lpStatusList, IntPtr lpInParamBuffer, uint dwInParamBufferSize);
  660. [DllImport(DllPath)]
  661. public static extern bool NET_DVR_SetDeviceConfigEx(Int32 lUserID, uint dwCommand, uint dwCount, ref NET_DVR_IN_PARAM lpInParam, ref NET_DVR_OUT_PARAM lpOutParam);
  662. [DllImport(DllPath)]
  663. public static extern bool NET_DVR_GetSTDConfig(int iUserID, uint dwCommand, ref NET_DVR_STD_CONFIG lpConfigParam);
  664. [DllImport(DllPath)]
  665. public static extern bool NET_DVR_SetSTDConfig(int iUserID, uint dwCommand, ref NET_DVR_STD_CONFIG lpConfigParam);
  666. [DllImport(DllPath)]
  667. public static extern int NET_DVR_StartRemoteConfig(int lUserID, int dwCommand, IntPtr lpInBuffer, Int32 dwInBufferLen, RemoteConfigCallback cbStateCallback, IntPtr pUserData);
  668. [DllImport(DllPath)]
  669. public static extern int NET_DVR_GetNextRemoteConfig(int lHandle, IntPtr lpOutBuff, int dwOutBuffSize);
  670. [DllImport(DllPath)]
  671. public static extern bool NET_DVR_SendRemoteConfig(int lHandle, int dwDataType, IntPtr pSendBuf, int dwBufSize);
  672. [DllImport(DllPath)]
  673. public static extern bool NET_DVR_StopRemoteConfig(int lHandle);
  674. [DllImport(DllPath)]
  675. public static extern bool NET_DVR_RemoteControl(int lUserID, int dwCommand, IntPtr lpInBuffer, int dwInBufferSize);
  676. [DllImport(DllPath)]
  677. public static extern bool NET_DVR_RemoteControl(int lUserID, int dwCommand, ref NET_DVR_FACE_PARAM_CTRL_CARDNO lpInBuffer, int dwInBufferSize);
  678. [DllImport(DllPath)]
  679. public static extern bool NET_DVR_ContinuousShoot(Int32 lUserID, ref NET_DVR_SNAPCFG lpInter);
  680. [DllImport(DllPath)]
  681. public static extern bool NET_DVR_ManualSnap(Int32 lUserID, ref NET_DVR_MANUALSNAP lpInter, ref NET_DVR_PLATE_RESULT lpOuter);
  682. [DllImport(DllPath)]
  683. public static extern bool NET_DVR_GetDeviceAbility(int lUserID, uint dwAbilityType, IntPtr pInBuf, uint dwInLength, IntPtr pOutBuf, uint dwOutLength);
  684. [DllImport(DllPath)]
  685. public static extern bool NET_DVR_SetBehaviorParamKey(int lUserID, int lChannel, uint dwParameterKey, int nValue);
  686. [DllImport(DllPath)]
  687. public static extern bool NET_DVR_GetBehaviorParamKey(int lUserID, int lChannel, uint dwParameterKey, ref int pValue);
  688. [DllImport(DllPath)]
  689. public static extern bool NET_DVR_GetVCADrawMode(int lUserID, int lChannel, ref NET_VCA_DRAW_MODE lpDrawMode);
  690. [DllImport(DllPath)]
  691. public static extern bool NET_DVR_SetVCADrawMode(int lUserID, int lChannel, ref NET_VCA_DRAW_MODE lpDrawMode);
  692. [DllImport(DllPath)]
  693. public static extern bool NET_DVR_SetLFTrackMode(int lUserID, int lChannel, ref NET_DVR_LF_TRACK_MODE lpTrackMode);
  694. [DllImport(DllPath)]
  695. public static extern bool NET_DVR_GetLFTrackMode(int lUserID, int lChannel, ref NET_DVR_LF_TRACK_MODE lpTrackMode);
  696. [DllImport(DllPath)]
  697. public static extern bool NET_DVR_GetCCDCfg(int lUserID, int lChannel, ref NET_DVR_CCD_CFG lpCCDCfg);
  698. [DllImport(DllPath)]
  699. public static extern bool NET_DVR_SetCCDCfg(int lUserID, int lChannel, ref NET_DVR_CCD_CFG lpCCDCfg);
  700. [DllImport(DllPath)]
  701. public static extern bool NET_DVR_GetParamSetMode(int lUserID, ref uint dwParamSetMode);
  702. [DllImport(DllPath)]
  703. public static extern bool NET_DVR_InquestStartCDW_V30(int lUserID, ref NET_DVR_INQUEST_ROOM lpInquestRoom, bool bNotBurn);
  704. [DllImport(DllPath)]
  705. public static extern int PostMessage(IntPtr hWnd, int Msg, int wParam, int lParam);
  706. [DllImport(DllPath)]
  707. public static extern bool NET_VCA_RestartLib(int lUserID, int lChannel);
  708. }
  709. }