Methods.cs 120 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Runtime.InteropServices;
  4. using System.Text;
  5. using static QuickNV.HikvisionNetSDK.Defines;
  6. namespace QuickNV.HikvisionNetSDK
  7. {
  8. public class Methods
  9. {
  10. private static bool IsWindows = Environment.OSVersion.Platform == PlatformID.Win32NT;
  11. public static int Invoke(int result)
  12. {
  13. if (result < 0)
  14. {
  15. uint lastErrorCode = NET_DVR_GetLastError();
  16. throw new HikvisionException(lastErrorCode);
  17. }
  18. return result;
  19. }
  20. public static bool Invoke(bool result)
  21. {
  22. if (!result)
  23. {
  24. uint lastErrorCode = NET_DVR_GetLastError();
  25. throw new HikvisionException(lastErrorCode);
  26. }
  27. return result;
  28. }
  29. public static int NET_DVR_SendWithRecvRemoteConfig(int lHandle, IntPtr lpInBuff, uint dwInBuffSize, IntPtr lpOutBuff, uint dwOutBuffSize, ref uint dwOutDataLen)
  30. {
  31. if (IsWindows)
  32. return Methods_Win.NET_DVR_SendWithRecvRemoteConfig(lHandle, lpInBuff, dwInBuffSize, lpOutBuff, dwOutBuffSize, ref dwOutDataLen);
  33. else
  34. return Methods_Linux.NET_DVR_SendWithRecvRemoteConfig(lHandle, lpInBuff, dwInBuffSize, lpOutBuff, dwOutBuffSize, ref dwOutDataLen);
  35. }
  36. public static int NET_DVR_SendWithRecvRemoteConfig(int lHandle, ref NET_DVR_FACE_RECORD lpInBuff, int dwInBuffSize, ref NET_DVR_FACE_STATUS lpOutBuff, int dwOutBuffSize, IntPtr dwOutDataLen)
  37. {
  38. if (IsWindows)
  39. return Methods_Win.NET_DVR_SendWithRecvRemoteConfig(lHandle, ref lpInBuff, dwInBuffSize, ref lpOutBuff, dwOutBuffSize, dwOutDataLen);
  40. else
  41. return Methods_Linux.NET_DVR_SendWithRecvRemoteConfig(lHandle, ref lpInBuff, dwInBuffSize, ref lpOutBuff, dwOutBuffSize, dwOutDataLen);
  42. }
  43. public static int NET_DVR_SendWithRecvRemoteConfig(int lHandle, ref NET_DVR_FINGERPRINT_RECORD lpInBuff, int dwInBuffSize, ref NET_DVR_FINGERPRINT_STATUS lpOutBuff, int dwOutBuffSize, IntPtr dwOutDataLen)
  44. {
  45. if (IsWindows)
  46. return Methods_Win.NET_DVR_SendWithRecvRemoteConfig(lHandle, ref lpInBuff, dwInBuffSize, ref lpOutBuff, dwOutBuffSize, dwOutDataLen);
  47. else
  48. return Methods_Linux.NET_DVR_SendWithRecvRemoteConfig(lHandle, ref lpInBuff, dwInBuffSize, ref lpOutBuff, dwOutBuffSize, dwOutDataLen);
  49. }
  50. public static bool NET_DVR_STDXMLConfig(int lUserID, IntPtr lpInputParam, IntPtr lpOutputParam)
  51. {
  52. if (IsWindows)
  53. return Methods_Win.NET_DVR_STDXMLConfig(lUserID, lpInputParam, lpOutputParam);
  54. else
  55. return Methods_Linux.NET_DVR_STDXMLConfig(lUserID, lpInputParam, lpOutputParam);
  56. }
  57. public static bool NET_DVR_ControlGateway(int lUserID, int lGatewayIndex, uint dwStaic)
  58. {
  59. if (IsWindows)
  60. return Methods_Win.NET_DVR_ControlGateway(lUserID, lGatewayIndex, dwStaic);
  61. else
  62. return Methods_Linux.NET_DVR_ControlGateway(lUserID, lGatewayIndex, dwStaic);
  63. }
  64. public static bool NET_DVR_SetDVRMessageCallBack_V50(int iIndex, MSGCallBack fMessageCallBack, IntPtr pUser)
  65. {
  66. if (IsWindows)
  67. return Methods_Win.NET_DVR_SetDVRMessageCallBack_V50(iIndex, fMessageCallBack, pUser);
  68. else
  69. return Methods_Linux.NET_DVR_SetDVRMessageCallBack_V50(iIndex, fMessageCallBack, pUser);
  70. }
  71. public static int NET_DVR_GetNextRemoteConfig(int lHandle, ref NET_DVR_CAPTURE_FACE_CFG lpOutBuff, int dwOutBuffSize)
  72. {
  73. if (IsWindows)
  74. return Methods_Win.NET_DVR_GetNextRemoteConfig(lHandle, ref lpOutBuff, dwOutBuffSize);
  75. else
  76. return Methods_Linux.NET_DVR_GetNextRemoteConfig(lHandle, ref lpOutBuff, dwOutBuffSize);
  77. }
  78. public static int NET_DVR_GetNextRemoteConfig(int lHandle, ref NET_DVR_FINGER_PRINT_INFO_STATUS_V50 lpOutBuff, int dwOutBuffSize)
  79. {
  80. if (IsWindows)
  81. return Methods_Win.NET_DVR_GetNextRemoteConfig(lHandle, ref lpOutBuff, dwOutBuffSize);
  82. else
  83. return Methods_Linux.NET_DVR_GetNextRemoteConfig(lHandle, ref lpOutBuff, dwOutBuffSize);
  84. }
  85. public static int NET_DVR_GetNextRemoteConfig(int lHandle, ref NET_DVR_ACS_EVENT_CFG lpOutBuff, int dwOutBuffSize)
  86. {
  87. if (IsWindows)
  88. return Methods_Win.NET_DVR_GetNextRemoteConfig(lHandle, ref lpOutBuff, dwOutBuffSize);
  89. else
  90. return Methods_Linux.NET_DVR_GetNextRemoteConfig(lHandle, ref lpOutBuff, dwOutBuffSize);
  91. }
  92. public static int NET_DVR_GetNextRemoteConfig(int lHandle, ref NET_DVR_FINGERPRINT_RECORD lpOutBuff, int dwOutBuffSize)
  93. {
  94. if (IsWindows)
  95. return Methods_Win.NET_DVR_GetNextRemoteConfig(lHandle, ref lpOutBuff, dwOutBuffSize);
  96. else
  97. return Methods_Linux.NET_DVR_GetNextRemoteConfig(lHandle, ref lpOutBuff, dwOutBuffSize);
  98. }
  99. public static int NET_DVR_GetNextRemoteConfig(int lHandle, ref NET_DVR_CAPTURE_FINGERPRINT_CFG lpOutBuff, int dwOutBuffSize)
  100. {
  101. if (IsWindows)
  102. return Methods_Win.NET_DVR_GetNextRemoteConfig(lHandle, ref lpOutBuff, dwOutBuffSize);
  103. else
  104. return Methods_Linux.NET_DVR_GetNextRemoteConfig(lHandle, ref lpOutBuff, dwOutBuffSize);
  105. }
  106. public static int NET_DVR_GetNextRemoteConfig(int lHandle, ref NET_DVR_FACE_RECORD lpOutBuff, int dwOutBuffSize)
  107. {
  108. if (IsWindows)
  109. return Methods_Win.NET_DVR_GetNextRemoteConfig(lHandle, ref lpOutBuff, dwOutBuffSize);
  110. else
  111. return Methods_Linux.NET_DVR_GetNextRemoteConfig(lHandle, ref lpOutBuff, dwOutBuffSize);
  112. }
  113. public static bool NET_DVR_Init()
  114. {
  115. if (IsWindows)
  116. return Methods_Win.NET_DVR_Init();
  117. else
  118. return Methods_Linux.NET_DVR_Init();
  119. }
  120. public static bool NET_DVR_Cleanup()
  121. {
  122. if (IsWindows)
  123. return Methods_Win.NET_DVR_Cleanup();
  124. else
  125. return Methods_Linux.NET_DVR_Cleanup();
  126. }
  127. public static bool NET_DVR_SetDVRMessage(uint nMessage, IntPtr hWnd)
  128. {
  129. if (IsWindows)
  130. return Methods_Win.NET_DVR_SetDVRMessage(nMessage, hWnd);
  131. else
  132. return Methods_Linux.NET_DVR_SetDVRMessage(nMessage, hWnd);
  133. }
  134. public static bool NET_DVR_SetExceptionCallBack_V30(uint nMessage, IntPtr hWnd, EXCEPYIONCALLBACK fExceptionCallBack, IntPtr pUser)
  135. {
  136. if (IsWindows)
  137. return Methods_Win.NET_DVR_SetExceptionCallBack_V30(nMessage, hWnd, fExceptionCallBack, pUser);
  138. else
  139. return Methods_Linux.NET_DVR_SetExceptionCallBack_V30(nMessage, hWnd, fExceptionCallBack, pUser);
  140. }
  141. public static bool NET_DVR_SetDVRMessCallBack(MESSCALLBACK fMessCallBack)
  142. {
  143. if (IsWindows)
  144. return Methods_Win.NET_DVR_SetDVRMessCallBack(fMessCallBack);
  145. else
  146. return Methods_Linux.NET_DVR_SetDVRMessCallBack(fMessCallBack);
  147. }
  148. public static bool NET_DVR_SetDVRMessCallBack_EX(MESSCALLBACKEX fMessCallBack_EX)
  149. {
  150. if (IsWindows)
  151. return Methods_Win.NET_DVR_SetDVRMessCallBack_EX(fMessCallBack_EX);
  152. else
  153. return Methods_Linux.NET_DVR_SetDVRMessCallBack_EX(fMessCallBack_EX);
  154. }
  155. public static bool NET_DVR_SetDVRMessCallBack_NEW(MESSCALLBACKNEW fMessCallBack_NEW)
  156. {
  157. if (IsWindows)
  158. return Methods_Win.NET_DVR_SetDVRMessCallBack_NEW(fMessCallBack_NEW);
  159. else
  160. return Methods_Linux.NET_DVR_SetDVRMessCallBack_NEW(fMessCallBack_NEW);
  161. }
  162. public static bool NET_DVR_SetDVRMessageCallBack(MESSAGECALLBACK fMessageCallBack, uint dwUser)
  163. {
  164. if (IsWindows)
  165. return Methods_Win.NET_DVR_SetDVRMessageCallBack(fMessageCallBack, dwUser);
  166. else
  167. return Methods_Linux.NET_DVR_SetDVRMessageCallBack(fMessageCallBack, dwUser);
  168. }
  169. public static bool NET_DVR_SetDVRMessageCallBack_V30(MSGCallBack fMessageCallBack, IntPtr pUser)
  170. {
  171. if (IsWindows)
  172. return Methods_Win.NET_DVR_SetDVRMessageCallBack_V30(fMessageCallBack, pUser);
  173. else
  174. return Methods_Linux.NET_DVR_SetDVRMessageCallBack_V30(fMessageCallBack, pUser);
  175. }
  176. public static bool NET_DVR_SetDVRMessageCallBack_V31(MSGCallBack_V31 fMessageCallBack, IntPtr pUser)
  177. {
  178. if (IsWindows)
  179. return Methods_Win.NET_DVR_SetDVRMessageCallBack_V31(fMessageCallBack, pUser);
  180. else
  181. return Methods_Linux.NET_DVR_SetDVRMessageCallBack_V31(fMessageCallBack, pUser);
  182. }
  183. public static bool NET_DVR_SetSDKLocalCfg(int enumType, IntPtr lpInBuff)
  184. {
  185. if (IsWindows)
  186. return Methods_Win.NET_DVR_SetSDKLocalCfg(enumType, lpInBuff);
  187. else
  188. return Methods_Linux.NET_DVR_SetSDKLocalCfg(enumType, lpInBuff);
  189. }
  190. public static bool NET_DVR_GetSDKLocalCfg(int enumType, IntPtr lpOutBuff)
  191. {
  192. if (IsWindows)
  193. return Methods_Win.NET_DVR_GetSDKLocalCfg(enumType, lpOutBuff);
  194. else
  195. return Methods_Linux.NET_DVR_GetSDKLocalCfg(enumType, lpOutBuff);
  196. }
  197. public static bool NET_DVR_SetConnectTime(uint dwWaitTime, uint dwTryTimes)
  198. {
  199. if (IsWindows)
  200. return Methods_Win.NET_DVR_SetConnectTime(dwWaitTime, dwTryTimes);
  201. else
  202. return Methods_Linux.NET_DVR_SetConnectTime(dwWaitTime, dwTryTimes);
  203. }
  204. public static bool NET_DVR_SetReconnect(uint dwInterval, int bEnableRecon)
  205. {
  206. if (IsWindows)
  207. return Methods_Win.NET_DVR_SetReconnect(dwInterval, bEnableRecon);
  208. else
  209. return Methods_Linux.NET_DVR_SetReconnect(dwInterval, bEnableRecon);
  210. }
  211. public static bool NET_DVR_GetLocalIP(byte[] strIP, ref uint pValidNum, ref Boolean pEnableBind)
  212. {
  213. if (IsWindows)
  214. return Methods_Win.NET_DVR_GetLocalIP(strIP, ref pValidNum, ref pEnableBind);
  215. else
  216. return Methods_Linux.NET_DVR_GetLocalIP(strIP, ref pValidNum, ref pEnableBind);
  217. }
  218. public static bool NET_DVR_SetValidIP(uint dwIPIndex, Boolean bEnableBind)
  219. {
  220. if (IsWindows)
  221. return Methods_Win.NET_DVR_SetValidIP(dwIPIndex, bEnableBind);
  222. else
  223. return Methods_Linux.NET_DVR_SetValidIP(dwIPIndex, bEnableBind);
  224. }
  225. public static uint NET_DVR_GetSDKVersion()
  226. {
  227. if (IsWindows)
  228. return Methods_Win.NET_DVR_GetSDKVersion();
  229. else
  230. return Methods_Linux.NET_DVR_GetSDKVersion();
  231. }
  232. public static uint NET_DVR_GetSDKBuildVersion()
  233. {
  234. if (IsWindows)
  235. return Methods_Win.NET_DVR_GetSDKBuildVersion();
  236. else
  237. return Methods_Linux.NET_DVR_GetSDKBuildVersion();
  238. }
  239. public static Int32 NET_DVR_IsSupport()
  240. {
  241. if (IsWindows)
  242. return Methods_Win.NET_DVR_IsSupport();
  243. else
  244. return Methods_Linux.NET_DVR_IsSupport();
  245. }
  246. public static bool NET_DVR_StartListen(string sLocalIP, ushort wLocalPort)
  247. {
  248. if (IsWindows)
  249. return Methods_Win.NET_DVR_StartListen(sLocalIP, wLocalPort);
  250. else
  251. return Methods_Linux.NET_DVR_StartListen(sLocalIP, wLocalPort);
  252. }
  253. public static bool NET_DVR_StopListen()
  254. {
  255. if (IsWindows)
  256. return Methods_Win.NET_DVR_StopListen();
  257. else
  258. return Methods_Linux.NET_DVR_StopListen();
  259. }
  260. public static int NET_DVR_StartListen_V30(String sLocalIP, ushort wLocalPort, MSGCallBack DataCallback, IntPtr pUserData)
  261. {
  262. if (IsWindows)
  263. return Methods_Win.NET_DVR_StartListen_V30(sLocalIP, wLocalPort, DataCallback, pUserData);
  264. else
  265. return Methods_Linux.NET_DVR_StartListen_V30(sLocalIP, wLocalPort, DataCallback, pUserData);
  266. }
  267. public static bool NET_DVR_StopListen_V30(Int32 lListenHandle)
  268. {
  269. if (IsWindows)
  270. return Methods_Win.NET_DVR_StopListen_V30(lListenHandle);
  271. else
  272. return Methods_Linux.NET_DVR_StopListen_V30(lListenHandle);
  273. }
  274. public static Int32 NET_DVR_Login(string sDVRIP, ushort wDVRPort, string sUserName, string sPassword, ref NET_DVR_DEVICEINFO lpDeviceInfo)
  275. {
  276. if (IsWindows)
  277. return Methods_Win.NET_DVR_Login(sDVRIP, wDVRPort, sUserName, sPassword, ref lpDeviceInfo);
  278. else
  279. return Methods_Linux.NET_DVR_Login(sDVRIP, wDVRPort, sUserName, sPassword, ref lpDeviceInfo);
  280. }
  281. public static bool NET_DVR_Logout(int iUserID)
  282. {
  283. if (IsWindows)
  284. return Methods_Win.NET_DVR_Logout(iUserID);
  285. else
  286. return Methods_Linux.NET_DVR_Logout(iUserID);
  287. }
  288. public static uint NET_DVR_GetLastError()
  289. {
  290. if (IsWindows)
  291. return Methods_Win.NET_DVR_GetLastError();
  292. else
  293. return Methods_Linux.NET_DVR_GetLastError();
  294. }
  295. public static IntPtr NET_DVR_GetErrorMsg(ref int pErrorNo)
  296. {
  297. if (IsWindows)
  298. return Methods_Win.NET_DVR_GetErrorMsg(ref pErrorNo);
  299. else
  300. return Methods_Linux.NET_DVR_GetErrorMsg(ref pErrorNo);
  301. }
  302. public static bool NET_DVR_SetShowMode(uint dwShowType, uint colorKey)
  303. {
  304. if (IsWindows)
  305. return Methods_Win.NET_DVR_SetShowMode(dwShowType, colorKey);
  306. else
  307. return Methods_Linux.NET_DVR_SetShowMode(dwShowType, colorKey);
  308. }
  309. public static bool NET_DVR_GetDVRIPByResolveSvr(string sServerIP, ushort wServerPort, string sDVRName, ushort wDVRNameLen, string sDVRSerialNumber, ushort wDVRSerialLen, IntPtr pGetIP)
  310. {
  311. if (IsWindows)
  312. return Methods_Win.NET_DVR_GetDVRIPByResolveSvr(sServerIP, wServerPort, sDVRName, wDVRNameLen, sDVRSerialNumber, wDVRSerialLen, pGetIP);
  313. else
  314. return Methods_Linux.NET_DVR_GetDVRIPByResolveSvr(sServerIP, wServerPort, sDVRName, wDVRNameLen, sDVRSerialNumber, wDVRSerialLen, pGetIP);
  315. }
  316. public static bool NET_DVR_GetDVRIPByResolveSvr_EX(string sServerIP, ushort wServerPort, byte[] sDVRName, ushort wDVRNameLen, byte[] sDVRSerialNumber, ushort wDVRSerialLen, byte[] sGetIP, ref uint dwPort)
  317. {
  318. if (IsWindows)
  319. return Methods_Win.NET_DVR_GetDVRIPByResolveSvr_EX(sServerIP, wServerPort, sDVRName, wDVRNameLen, sDVRSerialNumber, wDVRSerialLen, sGetIP, ref dwPort);
  320. else
  321. return Methods_Linux.NET_DVR_GetDVRIPByResolveSvr_EX(sServerIP, wServerPort, sDVRName, wDVRNameLen, sDVRSerialNumber, wDVRSerialLen, sGetIP, ref dwPort);
  322. }
  323. public static Int32 NET_DVR_RealPlay(int iUserID, ref NET_DVR_CLIENTINFO lpClientInfo)
  324. {
  325. if (IsWindows)
  326. return Methods_Win.NET_DVR_RealPlay(iUserID, ref lpClientInfo);
  327. else
  328. return Methods_Linux.NET_DVR_RealPlay(iUserID, ref lpClientInfo);
  329. }
  330. public static Int32 NET_SDK_RealPlay(int iUserLogID, ref NET_DVR_CLIENTINFO lpDVRClientInfo)
  331. {
  332. if (IsWindows)
  333. return Methods_Win.NET_SDK_RealPlay(iUserLogID, ref lpDVRClientInfo);
  334. else
  335. return Methods_Linux.NET_SDK_RealPlay(iUserLogID, ref lpDVRClientInfo);
  336. }
  337. public static int NET_DVR_RealPlay_V30(int iUserID, ref NET_DVR_CLIENTINFO lpClientInfo, REALDATACALLBACK fRealDataCallBack_V30, IntPtr pUser, UInt32 bBlocked)
  338. {
  339. if (IsWindows)
  340. return Methods_Win.NET_DVR_RealPlay_V30(iUserID, ref lpClientInfo, fRealDataCallBack_V30, pUser, bBlocked);
  341. else
  342. return Methods_Linux.NET_DVR_RealPlay_V30(iUserID, ref lpClientInfo, fRealDataCallBack_V30, pUser, bBlocked);
  343. }
  344. public static int NET_DVR_RealPlay_V40(int iUserID, ref NET_DVR_PREVIEWINFO lpPreviewInfo, REALDATACALLBACK fRealDataCallBack_V30, IntPtr pUser)
  345. {
  346. if (IsWindows)
  347. return Methods_Win.NET_DVR_RealPlay_V40(iUserID, ref lpPreviewInfo, fRealDataCallBack_V30, pUser);
  348. else
  349. return Methods_Linux.NET_DVR_RealPlay_V40(iUserID, ref lpPreviewInfo, fRealDataCallBack_V30, pUser);
  350. }
  351. public static bool NET_DVR_StopRealPlay(int iRealHandle)
  352. {
  353. if (IsWindows)
  354. return Methods_Win.NET_DVR_StopRealPlay(iRealHandle);
  355. else
  356. return Methods_Linux.NET_DVR_StopRealPlay(iRealHandle);
  357. }
  358. public static bool NET_DVR_RigisterDrawFun(int lRealHandle, DRAWFUN fDrawFun, uint dwUser)
  359. {
  360. if (IsWindows)
  361. return Methods_Win.NET_DVR_RigisterDrawFun(lRealHandle, fDrawFun, dwUser);
  362. else
  363. return Methods_Linux.NET_DVR_RigisterDrawFun(lRealHandle, fDrawFun, dwUser);
  364. }
  365. public static bool NET_DVR_SetPlayerBufNumber(Int32 lRealHandle, uint dwBufNum)
  366. {
  367. if (IsWindows)
  368. return Methods_Win.NET_DVR_SetPlayerBufNumber(lRealHandle, dwBufNum);
  369. else
  370. return Methods_Linux.NET_DVR_SetPlayerBufNumber(lRealHandle, dwBufNum);
  371. }
  372. public static bool NET_DVR_ThrowBFrame(Int32 lRealHandle, uint dwNum)
  373. {
  374. if (IsWindows)
  375. return Methods_Win.NET_DVR_ThrowBFrame(lRealHandle, dwNum);
  376. else
  377. return Methods_Linux.NET_DVR_ThrowBFrame(lRealHandle, dwNum);
  378. }
  379. public static bool NET_DVR_SetAudioMode(uint dwMode)
  380. {
  381. if (IsWindows)
  382. return Methods_Win.NET_DVR_SetAudioMode(dwMode);
  383. else
  384. return Methods_Linux.NET_DVR_SetAudioMode(dwMode);
  385. }
  386. public static bool NET_DVR_OpenSound(Int32 lRealHandle)
  387. {
  388. if (IsWindows)
  389. return Methods_Win.NET_DVR_OpenSound(lRealHandle);
  390. else
  391. return Methods_Linux.NET_DVR_OpenSound(lRealHandle);
  392. }
  393. public static bool NET_DVR_CloseSound()
  394. {
  395. if (IsWindows)
  396. return Methods_Win.NET_DVR_CloseSound();
  397. else
  398. return Methods_Linux.NET_DVR_CloseSound();
  399. }
  400. public static bool NET_DVR_OpenSoundShare(Int32 lRealHandle)
  401. {
  402. if (IsWindows)
  403. return Methods_Win.NET_DVR_OpenSoundShare(lRealHandle);
  404. else
  405. return Methods_Linux.NET_DVR_OpenSoundShare(lRealHandle);
  406. }
  407. public static bool NET_DVR_CloseSoundShare(Int32 lRealHandle)
  408. {
  409. if (IsWindows)
  410. return Methods_Win.NET_DVR_CloseSoundShare(lRealHandle);
  411. else
  412. return Methods_Linux.NET_DVR_CloseSoundShare(lRealHandle);
  413. }
  414. public static bool NET_DVR_Volume(Int32 lRealHandle, ushort wVolume)
  415. {
  416. if (IsWindows)
  417. return Methods_Win.NET_DVR_Volume(lRealHandle, wVolume);
  418. else
  419. return Methods_Linux.NET_DVR_Volume(lRealHandle, wVolume);
  420. }
  421. public static bool NET_DVR_SaveRealData(Int32 lRealHandle, string sFileName)
  422. {
  423. if (IsWindows)
  424. return Methods_Win.NET_DVR_SaveRealData(lRealHandle, sFileName);
  425. else
  426. return Methods_Linux.NET_DVR_SaveRealData(lRealHandle, sFileName);
  427. }
  428. public static bool NET_DVR_StopSaveRealData(Int32 lRealHandle)
  429. {
  430. if (IsWindows)
  431. return Methods_Win.NET_DVR_StopSaveRealData(lRealHandle);
  432. else
  433. return Methods_Linux.NET_DVR_StopSaveRealData(lRealHandle);
  434. }
  435. public static bool NET_DVR_SetRealDataCallBack(int lRealHandle, SETREALDATACALLBACK fRealDataCallBack, uint dwUser)
  436. {
  437. if (IsWindows)
  438. return Methods_Win.NET_DVR_SetRealDataCallBack(lRealHandle, fRealDataCallBack, dwUser);
  439. else
  440. return Methods_Linux.NET_DVR_SetRealDataCallBack(lRealHandle, fRealDataCallBack, dwUser);
  441. }
  442. public static bool NET_DVR_SetStandardDataCallBack(int lRealHandle, STDDATACALLBACK fStdDataCallBack, uint dwUser)
  443. {
  444. if (IsWindows)
  445. return Methods_Win.NET_DVR_SetStandardDataCallBack(lRealHandle, fStdDataCallBack, dwUser);
  446. else
  447. return Methods_Linux.NET_DVR_SetStandardDataCallBack(lRealHandle, fStdDataCallBack, dwUser);
  448. }
  449. public static bool NET_DVR_CapturePicture(Int32 lRealHandle, string sPicFileName)
  450. {
  451. if (IsWindows)
  452. return Methods_Win.NET_DVR_CapturePicture(lRealHandle, sPicFileName);
  453. else
  454. return Methods_Linux.NET_DVR_CapturePicture(lRealHandle, sPicFileName);
  455. }
  456. public static bool NET_DVR_CapturePictureBlock(Int32 lRealHandle, string sPicFileName, int dwTimeOut)
  457. {
  458. if (IsWindows)
  459. return Methods_Win.NET_DVR_CapturePictureBlock(lRealHandle, sPicFileName, dwTimeOut);
  460. else
  461. return Methods_Linux.NET_DVR_CapturePictureBlock(lRealHandle, sPicFileName, dwTimeOut);
  462. }
  463. public static bool NET_DVR_MakeKeyFrame(Int32 lUserID, Int32 lChannel)//主码流
  464. {
  465. if (IsWindows)
  466. return Methods_Win.NET_DVR_MakeKeyFrame(lUserID, lChannel);
  467. else
  468. return Methods_Linux.NET_DVR_MakeKeyFrame(lUserID, lChannel);
  469. }
  470. public static bool NET_DVR_MakeKeyFrameSub(Int32 lUserID, Int32 lChannel)//子码流
  471. {
  472. if (IsWindows)
  473. return Methods_Win.NET_DVR_MakeKeyFrameSub(lUserID, lChannel);
  474. else
  475. return Methods_Linux.NET_DVR_MakeKeyFrameSub(lUserID, lChannel);
  476. }
  477. public static bool NET_DVR_GetPTZCtrl(Int32 lRealHandle)
  478. {
  479. if (IsWindows)
  480. return Methods_Win.NET_DVR_GetPTZCtrl(lRealHandle);
  481. else
  482. return Methods_Linux.NET_DVR_GetPTZCtrl(lRealHandle);
  483. }
  484. public static bool NET_DVR_GetPTZCtrl_Other(Int32 lUserID, int lChannel)
  485. {
  486. if (IsWindows)
  487. return Methods_Win.NET_DVR_GetPTZCtrl_Other(lUserID, lChannel);
  488. else
  489. return Methods_Linux.NET_DVR_GetPTZCtrl_Other(lUserID, lChannel);
  490. }
  491. public static bool NET_DVR_PTZControl(Int32 lRealHandle, uint dwPTZCommand, uint dwStop)
  492. {
  493. if (IsWindows)
  494. return Methods_Win.NET_DVR_PTZControl(lRealHandle, dwPTZCommand, dwStop);
  495. else
  496. return Methods_Linux.NET_DVR_PTZControl(lRealHandle, dwPTZCommand, dwStop);
  497. }
  498. public static bool NET_DVR_PTZControl_Other(Int32 lUserID, Int32 lChannel, uint dwPTZCommand, uint dwStop)
  499. {
  500. if (IsWindows)
  501. return Methods_Win.NET_DVR_PTZControl_Other(lUserID, lChannel, dwPTZCommand, dwStop);
  502. else
  503. return Methods_Linux.NET_DVR_PTZControl_Other(lUserID, lChannel, dwPTZCommand, dwStop);
  504. }
  505. public static bool NET_DVR_TransPTZ(Int32 lRealHandle, string pPTZCodeBuf, uint dwBufSize)
  506. {
  507. if (IsWindows)
  508. return Methods_Win.NET_DVR_TransPTZ(lRealHandle, pPTZCodeBuf, dwBufSize);
  509. else
  510. return Methods_Linux.NET_DVR_TransPTZ(lRealHandle, pPTZCodeBuf, dwBufSize);
  511. }
  512. public static bool NET_DVR_TransPTZ_Other(int lUserID, int lChannel, string pPTZCodeBuf, uint dwBufSize)
  513. {
  514. if (IsWindows)
  515. return Methods_Win.NET_DVR_TransPTZ_Other(lUserID, lChannel, pPTZCodeBuf, dwBufSize);
  516. else
  517. return Methods_Linux.NET_DVR_TransPTZ_Other(lUserID, lChannel, pPTZCodeBuf, dwBufSize);
  518. }
  519. public static bool NET_DVR_PTZPreset(int lRealHandle, uint dwPTZPresetCmd, uint dwPresetIndex)
  520. {
  521. if (IsWindows)
  522. return Methods_Win.NET_DVR_PTZPreset(lRealHandle, dwPTZPresetCmd, dwPresetIndex);
  523. else
  524. return Methods_Linux.NET_DVR_PTZPreset(lRealHandle, dwPTZPresetCmd, dwPresetIndex);
  525. }
  526. public static bool NET_DVR_PTZPreset_Other(int lUserID, int lChannel, uint dwPTZPresetCmd, uint dwPresetIndex)
  527. {
  528. if (IsWindows)
  529. return Methods_Win.NET_DVR_PTZPreset_Other(lUserID, lChannel, dwPTZPresetCmd, dwPresetIndex);
  530. else
  531. return Methods_Linux.NET_DVR_PTZPreset_Other(lUserID, lChannel, dwPTZPresetCmd, dwPresetIndex);
  532. }
  533. public static bool NET_DVR_TransPTZ_EX(int lRealHandle, string pPTZCodeBuf, uint dwBufSize)
  534. {
  535. if (IsWindows)
  536. return Methods_Win.NET_DVR_TransPTZ_EX(lRealHandle, pPTZCodeBuf, dwBufSize);
  537. else
  538. return Methods_Linux.NET_DVR_TransPTZ_EX(lRealHandle, pPTZCodeBuf, dwBufSize);
  539. }
  540. public static bool NET_DVR_PTZControl_EX(int lRealHandle, uint dwPTZCommand, uint dwStop)
  541. {
  542. if (IsWindows)
  543. return Methods_Win.NET_DVR_PTZControl_EX(lRealHandle, dwPTZCommand, dwStop);
  544. else
  545. return Methods_Linux.NET_DVR_PTZControl_EX(lRealHandle, dwPTZCommand, dwStop);
  546. }
  547. public static bool NET_DVR_PTZPreset_EX(int lRealHandle, uint dwPTZPresetCmd, uint dwPresetIndex)
  548. {
  549. if (IsWindows)
  550. return Methods_Win.NET_DVR_PTZPreset_EX(lRealHandle, dwPTZPresetCmd, dwPresetIndex);
  551. else
  552. return Methods_Linux.NET_DVR_PTZPreset_EX(lRealHandle, dwPTZPresetCmd, dwPresetIndex);
  553. }
  554. public static bool NET_DVR_PTZCruise(int lRealHandle, uint dwPTZCruiseCmd, byte byCruiseRoute, byte byCruisePoint, ushort wInput)
  555. {
  556. if (IsWindows)
  557. return Methods_Win.NET_DVR_PTZCruise(lRealHandle, dwPTZCruiseCmd, byCruiseRoute, byCruisePoint, wInput);
  558. else
  559. return Methods_Linux.NET_DVR_PTZCruise(lRealHandle, dwPTZCruiseCmd, byCruiseRoute, byCruisePoint, wInput);
  560. }
  561. public static bool NET_DVR_PTZCruise_Other(int lUserID, int lChannel, uint dwPTZCruiseCmd, byte byCruiseRoute, byte byCruisePoint, ushort wInput)
  562. {
  563. if (IsWindows)
  564. return Methods_Win.NET_DVR_PTZCruise_Other(lUserID, lChannel, dwPTZCruiseCmd, byCruiseRoute, byCruisePoint, wInput);
  565. else
  566. return Methods_Linux.NET_DVR_PTZCruise_Other(lUserID, lChannel, dwPTZCruiseCmd, byCruiseRoute, byCruisePoint, wInput);
  567. }
  568. public static bool NET_DVR_PTZCruise_EX(int lRealHandle, uint dwPTZCruiseCmd, byte byCruiseRoute, byte byCruisePoint, ushort wInput)
  569. {
  570. if (IsWindows)
  571. return Methods_Win.NET_DVR_PTZCruise_EX(lRealHandle, dwPTZCruiseCmd, byCruiseRoute, byCruisePoint, wInput);
  572. else
  573. return Methods_Linux.NET_DVR_PTZCruise_EX(lRealHandle, dwPTZCruiseCmd, byCruiseRoute, byCruisePoint, wInput);
  574. }
  575. public static bool NET_DVR_PTZTrack(int lRealHandle, uint dwPTZTrackCmd)
  576. {
  577. if (IsWindows)
  578. return Methods_Win.NET_DVR_PTZTrack(lRealHandle, dwPTZTrackCmd);
  579. else
  580. return Methods_Linux.NET_DVR_PTZTrack(lRealHandle, dwPTZTrackCmd);
  581. }
  582. public static bool NET_DVR_PTZTrack_Other(int lUserID, int lChannel, uint dwPTZTrackCmd)
  583. {
  584. if (IsWindows)
  585. return Methods_Win.NET_DVR_PTZTrack_Other(lUserID, lChannel, dwPTZTrackCmd);
  586. else
  587. return Methods_Linux.NET_DVR_PTZTrack_Other(lUserID, lChannel, dwPTZTrackCmd);
  588. }
  589. public static bool NET_DVR_PTZTrack_EX(int lRealHandle, uint dwPTZTrackCmd)
  590. {
  591. if (IsWindows)
  592. return Methods_Win.NET_DVR_PTZTrack_EX(lRealHandle, dwPTZTrackCmd);
  593. else
  594. return Methods_Linux.NET_DVR_PTZTrack_EX(lRealHandle, dwPTZTrackCmd);
  595. }
  596. public static bool NET_DVR_PTZControlWithSpeed(int lRealHandle, uint dwPTZCommand, uint dwStop, uint dwSpeed)
  597. {
  598. if (IsWindows)
  599. return Methods_Win.NET_DVR_PTZControlWithSpeed(lRealHandle, dwPTZCommand, dwStop, dwSpeed);
  600. else
  601. return Methods_Linux.NET_DVR_PTZControlWithSpeed(lRealHandle, dwPTZCommand, dwStop, dwSpeed);
  602. }
  603. public static bool NET_DVR_PTZControlWithSpeed_Other(int lUserID, int lChannel, uint dwPTZCommand, uint dwStop, uint dwSpeed)
  604. {
  605. if (IsWindows)
  606. return Methods_Win.NET_DVR_PTZControlWithSpeed_Other(lUserID, lChannel, dwPTZCommand, dwStop, dwSpeed);
  607. else
  608. return Methods_Linux.NET_DVR_PTZControlWithSpeed_Other(lUserID, lChannel, dwPTZCommand, dwStop, dwSpeed);
  609. }
  610. public static bool NET_DVR_PTZControlWithSpeed_EX(int lRealHandle, uint dwPTZCommand, uint dwStop, uint dwSpeed)
  611. {
  612. if (IsWindows)
  613. return Methods_Win.NET_DVR_PTZControlWithSpeed_EX(lRealHandle, dwPTZCommand, dwStop, dwSpeed);
  614. else
  615. return Methods_Linux.NET_DVR_PTZControlWithSpeed_EX(lRealHandle, dwPTZCommand, dwStop, dwSpeed);
  616. }
  617. public static bool NET_DVR_GetPTZCruise(int lUserID, int lChannel, int lCruiseRoute, ref NET_DVR_CRUISE_RET lpCruiseRet)
  618. {
  619. if (IsWindows)
  620. return Methods_Win.NET_DVR_GetPTZCruise(lUserID, lChannel, lCruiseRoute, ref lpCruiseRet);
  621. else
  622. return Methods_Linux.NET_DVR_GetPTZCruise(lUserID, lChannel, lCruiseRoute, ref lpCruiseRet);
  623. }
  624. public static bool NET_DVR_PTZMltTrack(int lRealHandle, uint dwPTZTrackCmd, uint dwTrackIndex)
  625. {
  626. if (IsWindows)
  627. return Methods_Win.NET_DVR_PTZMltTrack(lRealHandle, dwPTZTrackCmd, dwTrackIndex);
  628. else
  629. return Methods_Linux.NET_DVR_PTZMltTrack(lRealHandle, dwPTZTrackCmd, dwTrackIndex);
  630. }
  631. public static bool NET_DVR_PTZMltTrack_Other(int lUserID, int lChannel, uint dwPTZTrackCmd, uint dwTrackIndex)
  632. {
  633. if (IsWindows)
  634. return Methods_Win.NET_DVR_PTZMltTrack_Other(lUserID, lChannel, dwPTZTrackCmd, dwTrackIndex);
  635. else
  636. return Methods_Linux.NET_DVR_PTZMltTrack_Other(lUserID, lChannel, dwPTZTrackCmd, dwTrackIndex);
  637. }
  638. public static bool NET_DVR_PTZMltTrack_EX(int lRealHandle, uint dwPTZTrackCmd, uint dwTrackIndex)
  639. {
  640. if (IsWindows)
  641. return Methods_Win.NET_DVR_PTZMltTrack_EX(lRealHandle, dwPTZTrackCmd, dwTrackIndex);
  642. else
  643. return Methods_Linux.NET_DVR_PTZMltTrack_EX(lRealHandle, dwPTZTrackCmd, dwTrackIndex);
  644. }
  645. public static int NET_DVR_FindFile(int lUserID, int lChannel, uint dwFileType, ref NET_DVR_TIME lpStartTime, ref NET_DVR_TIME lpStopTime)
  646. {
  647. if (IsWindows)
  648. return Methods_Win.NET_DVR_FindFile(lUserID, lChannel, dwFileType, ref lpStartTime, ref lpStopTime);
  649. else
  650. return Methods_Linux.NET_DVR_FindFile(lUserID, lChannel, dwFileType, ref lpStartTime, ref lpStopTime);
  651. }
  652. public static int NET_DVR_FindNextFile(int lFindHandle, ref NET_DVR_FIND_DATA lpFindData)
  653. {
  654. if (IsWindows)
  655. return Methods_Win.NET_DVR_FindNextFile(lFindHandle, ref lpFindData);
  656. else
  657. return Methods_Linux.NET_DVR_FindNextFile(lFindHandle, ref lpFindData);
  658. }
  659. public static bool NET_DVR_FindClose(int lFindHandle)
  660. {
  661. if (IsWindows)
  662. return Methods_Win.NET_DVR_FindClose(lFindHandle);
  663. else
  664. return Methods_Linux.NET_DVR_FindClose(lFindHandle);
  665. }
  666. public static int NET_DVR_FindNextFile_V30(int lFindHandle, ref NET_DVR_FINDDATA_V30 lpFindData)
  667. {
  668. if (IsWindows)
  669. return Methods_Win.NET_DVR_FindNextFile_V30(lFindHandle, ref lpFindData);
  670. else
  671. return Methods_Linux.NET_DVR_FindNextFile_V30(lFindHandle, ref lpFindData);
  672. }
  673. public static int NET_DVR_FindNextFile_V40(int lFindHandle, ref NET_DVR_FINDDATA_V40 lpFindData)
  674. {
  675. if (IsWindows)
  676. return Methods_Win.NET_DVR_FindNextFile_V40(lFindHandle, ref lpFindData);
  677. else
  678. return Methods_Linux.NET_DVR_FindNextFile_V40(lFindHandle, ref lpFindData);
  679. }
  680. public static int NET_DVR_FindFile_V30(int lUserID, ref NET_DVR_FILECOND pFindCond)
  681. {
  682. if (IsWindows)
  683. return Methods_Win.NET_DVR_FindFile_V30(lUserID, ref pFindCond);
  684. else
  685. return Methods_Linux.NET_DVR_FindFile_V30(lUserID, ref pFindCond);
  686. }
  687. public static int NET_DVR_FindFile_V40(int lUserID, ref NET_DVR_FILECOND_V40 pFindCond)
  688. {
  689. if (IsWindows)
  690. return Methods_Win.NET_DVR_FindFile_V40(lUserID, ref pFindCond);
  691. else
  692. return Methods_Linux.NET_DVR_FindFile_V40(lUserID, ref pFindCond);
  693. }
  694. public static int NET_DVR_FindFileByEvent_V40(int lUserID, ref NET_DVR_SEARCH_EVENT_PARAM_V40 lpSearchEventParam)
  695. {
  696. if (IsWindows)
  697. return Methods_Win.NET_DVR_FindFileByEvent_V40(lUserID, ref lpSearchEventParam);
  698. else
  699. return Methods_Linux.NET_DVR_FindFileByEvent_V40(lUserID, ref lpSearchEventParam);
  700. }
  701. public static int NET_DVR_FindNextEvent_V40(int lSearchHandle, ref NET_DVR_SEARCH_EVENT_RET_V40 lpSearchEventRet)
  702. {
  703. if (IsWindows)
  704. return Methods_Win.NET_DVR_FindNextEvent_V40(lSearchHandle, ref lpSearchEventRet);
  705. else
  706. return Methods_Linux.NET_DVR_FindNextEvent_V40(lSearchHandle, ref lpSearchEventRet);
  707. }
  708. public static bool NET_DVR_FindClose_V30(int lFindHandle)
  709. {
  710. if (IsWindows)
  711. return Methods_Win.NET_DVR_FindClose_V30(lFindHandle);
  712. else
  713. return Methods_Linux.NET_DVR_FindClose_V30(lFindHandle);
  714. }
  715. public static int NET_DVR_FindNextFile_Card(int lFindHandle, ref NET_DVR_FINDDATA_CARD lpFindData)
  716. {
  717. if (IsWindows)
  718. return Methods_Win.NET_DVR_FindNextFile_Card(lFindHandle, ref lpFindData);
  719. else
  720. return Methods_Linux.NET_DVR_FindNextFile_Card(lFindHandle, ref lpFindData);
  721. }
  722. public static int NET_DVR_FindFile_Card(int lUserID, int lChannel, uint dwFileType, ref NET_DVR_TIME lpStartTime, ref NET_DVR_TIME lpStopTime)
  723. {
  724. if (IsWindows)
  725. return Methods_Win.NET_DVR_FindFile_Card(lUserID, lChannel, dwFileType, ref lpStartTime, ref lpStopTime);
  726. else
  727. return Methods_Linux.NET_DVR_FindFile_Card(lUserID, lChannel, dwFileType, ref lpStartTime, ref lpStopTime);
  728. }
  729. public static bool NET_DVR_LockFileByName(int lUserID, string sLockFileName)
  730. {
  731. if (IsWindows)
  732. return Methods_Win.NET_DVR_LockFileByName(lUserID, sLockFileName);
  733. else
  734. return Methods_Linux.NET_DVR_LockFileByName(lUserID, sLockFileName);
  735. }
  736. public static bool NET_DVR_UnlockFileByName(int lUserID, string sUnlockFileName)
  737. {
  738. if (IsWindows)
  739. return Methods_Win.NET_DVR_UnlockFileByName(lUserID, sUnlockFileName);
  740. else
  741. return Methods_Linux.NET_DVR_UnlockFileByName(lUserID, sUnlockFileName);
  742. }
  743. public static int NET_DVR_PlayBackByName(int lUserID, string sPlayBackFileName, IntPtr hWnd)
  744. {
  745. if (IsWindows)
  746. return Methods_Win.NET_DVR_PlayBackByName(lUserID, sPlayBackFileName, hWnd);
  747. else
  748. return Methods_Linux.NET_DVR_PlayBackByName(lUserID, sPlayBackFileName, hWnd);
  749. }
  750. public static int NET_DVR_PlayBackByTime(int lUserID, int lChannel, ref NET_DVR_TIME lpStartTime, ref NET_DVR_TIME lpStopTime, System.IntPtr hWnd)
  751. {
  752. if (IsWindows)
  753. return Methods_Win.NET_DVR_PlayBackByTime(lUserID, lChannel, ref lpStartTime, ref lpStopTime, hWnd);
  754. else
  755. return Methods_Linux.NET_DVR_PlayBackByTime(lUserID, lChannel, ref lpStartTime, ref lpStopTime, hWnd);
  756. }
  757. public static int NET_DVR_PlayBackByTime_V40(int lUserID, ref NET_DVR_VOD_PARA pVodPara)
  758. {
  759. if (IsWindows)
  760. return Methods_Win.NET_DVR_PlayBackByTime_V40(lUserID, ref pVodPara);
  761. else
  762. return Methods_Linux.NET_DVR_PlayBackByTime_V40(lUserID, ref pVodPara);
  763. }
  764. public static int NET_DVR_PlayBackReverseByName(int lUserID, string sPlayBackFileName, IntPtr hWnd)
  765. {
  766. if (IsWindows)
  767. return Methods_Win.NET_DVR_PlayBackReverseByName(lUserID, sPlayBackFileName, hWnd);
  768. else
  769. return Methods_Linux.NET_DVR_PlayBackReverseByName(lUserID, sPlayBackFileName, hWnd);
  770. }
  771. public static int NET_DVR_PlayBackReverseByTime_V40(int lUserID, IntPtr hWnd, ref NET_DVR_PLAYCOND pPlayCond)
  772. {
  773. if (IsWindows)
  774. return Methods_Win.NET_DVR_PlayBackReverseByTime_V40(lUserID, hWnd, ref pPlayCond);
  775. else
  776. return Methods_Linux.NET_DVR_PlayBackReverseByTime_V40(lUserID, hWnd, ref pPlayCond);
  777. }
  778. public static bool NET_DVR_PlayBackControl(int lPlayHandle, uint dwControlCode, uint dwInValue, ref uint LPOutValue)
  779. {
  780. if (IsWindows)
  781. return Methods_Win.NET_DVR_PlayBackControl(lPlayHandle, dwControlCode, dwInValue, ref LPOutValue);
  782. else
  783. return Methods_Linux.NET_DVR_PlayBackControl(lPlayHandle, dwControlCode, dwInValue, ref LPOutValue);
  784. }
  785. public static bool NET_DVR_PlayBackControl_V40(int lPlayHandle, uint dwControlCode, IntPtr lpInBuffer, uint dwInValue, IntPtr lpOutBuffer, ref uint LPOutValue)
  786. {
  787. if (IsWindows)
  788. return Methods_Win.NET_DVR_PlayBackControl_V40(lPlayHandle, dwControlCode, lpInBuffer, dwInValue, lpOutBuffer, ref LPOutValue);
  789. else
  790. return Methods_Linux.NET_DVR_PlayBackControl_V40(lPlayHandle, dwControlCode, lpInBuffer, dwInValue, lpOutBuffer, ref LPOutValue);
  791. }
  792. public static bool NET_DVR_StopPlayBack(int lPlayHandle)
  793. {
  794. if (IsWindows)
  795. return Methods_Win.NET_DVR_StopPlayBack(lPlayHandle);
  796. else
  797. return Methods_Linux.NET_DVR_StopPlayBack(lPlayHandle);
  798. }
  799. public static bool NET_DVR_SetPlayDataCallBack(int lPlayHandle, PLAYDATACALLBACK fPlayDataCallBack, uint dwUser)
  800. {
  801. if (IsWindows)
  802. return Methods_Win.NET_DVR_SetPlayDataCallBack(lPlayHandle, fPlayDataCallBack, dwUser);
  803. else
  804. return Methods_Linux.NET_DVR_SetPlayDataCallBack(lPlayHandle, fPlayDataCallBack, dwUser);
  805. }
  806. public static bool NET_DVR_PlayBackSaveData(int lPlayHandle, string sFileName)
  807. {
  808. if (IsWindows)
  809. return Methods_Win.NET_DVR_PlayBackSaveData(lPlayHandle, sFileName);
  810. else
  811. return Methods_Linux.NET_DVR_PlayBackSaveData(lPlayHandle, sFileName);
  812. }
  813. public static bool NET_DVR_StopPlayBackSave(int lPlayHandle)
  814. {
  815. if (IsWindows)
  816. return Methods_Win.NET_DVR_StopPlayBackSave(lPlayHandle);
  817. else
  818. return Methods_Linux.NET_DVR_StopPlayBackSave(lPlayHandle);
  819. }
  820. public static bool NET_DVR_GetPlayBackOsdTime(int lPlayHandle, ref NET_DVR_TIME lpOsdTime)
  821. {
  822. if (IsWindows)
  823. return Methods_Win.NET_DVR_GetPlayBackOsdTime(lPlayHandle, ref lpOsdTime);
  824. else
  825. return Methods_Linux.NET_DVR_GetPlayBackOsdTime(lPlayHandle, ref lpOsdTime);
  826. }
  827. public static bool NET_DVR_PlayBackCaptureFile(int lPlayHandle, string sFileName)
  828. {
  829. if (IsWindows)
  830. return Methods_Win.NET_DVR_PlayBackCaptureFile(lPlayHandle, sFileName);
  831. else
  832. return Methods_Linux.NET_DVR_PlayBackCaptureFile(lPlayHandle, sFileName);
  833. }
  834. public static int NET_DVR_GetFileByName(int lUserID, string sDVRFileName, string sSavedFileName)
  835. {
  836. if (IsWindows)
  837. return Methods_Win.NET_DVR_GetFileByName(lUserID, sDVRFileName, sSavedFileName);
  838. else
  839. return Methods_Linux.NET_DVR_GetFileByName(lUserID, sDVRFileName, sSavedFileName);
  840. }
  841. public static int NET_DVR_GetFileByTime(int lUserID, int lChannel, ref NET_DVR_TIME lpStartTime, ref NET_DVR_TIME lpStopTime, string sSavedFileName)
  842. {
  843. if (IsWindows)
  844. return Methods_Win.NET_DVR_GetFileByTime(lUserID, lChannel, ref lpStartTime, ref lpStopTime, sSavedFileName);
  845. else
  846. return Methods_Linux.NET_DVR_GetFileByTime(lUserID, lChannel, ref lpStartTime, ref lpStopTime, sSavedFileName);
  847. }
  848. public static int NET_DVR_GetFileByTime_V40(int lUserID, string sSavedFileName, ref NET_DVR_PLAYCOND pDownloadCond)
  849. {
  850. if (IsWindows)
  851. return Methods_Win.NET_DVR_GetFileByTime_V40(lUserID, sSavedFileName, ref pDownloadCond);
  852. else
  853. return Methods_Linux.NET_DVR_GetFileByTime_V40(lUserID, sSavedFileName, ref pDownloadCond);
  854. }
  855. public static bool NET_DVR_StopGetFile(int lFileHandle)
  856. {
  857. if (IsWindows)
  858. return Methods_Win.NET_DVR_StopGetFile(lFileHandle);
  859. else
  860. return Methods_Linux.NET_DVR_StopGetFile(lFileHandle);
  861. }
  862. public static int NET_DVR_GetDownloadPos(int lFileHandle)
  863. {
  864. if (IsWindows)
  865. return Methods_Win.NET_DVR_GetDownloadPos(lFileHandle);
  866. else
  867. return Methods_Linux.NET_DVR_GetDownloadPos(lFileHandle);
  868. }
  869. public static int NET_DVR_GetPlayBackPos(int lPlayHandle)
  870. {
  871. if (IsWindows)
  872. return Methods_Win.NET_DVR_GetPlayBackPos(lPlayHandle);
  873. else
  874. return Methods_Linux.NET_DVR_GetPlayBackPos(lPlayHandle);
  875. }
  876. public static int NET_DVR_FindPicture(int lUserID, ref NET_DVR_FIND_PICTURE_PARAM pFindParam)
  877. {
  878. if (IsWindows)
  879. return Methods_Win.NET_DVR_FindPicture(lUserID, ref pFindParam);
  880. else
  881. return Methods_Linux.NET_DVR_FindPicture(lUserID, ref pFindParam);
  882. }
  883. public static int NET_DVR_FindNextPicture_V50(int lFindHandle, ref NET_DVR_FIND_PICTURE_V50 lpFindData)
  884. {
  885. if (IsWindows)
  886. return Methods_Win.NET_DVR_FindNextPicture_V50(lFindHandle, ref lpFindData);
  887. else
  888. return Methods_Linux.NET_DVR_FindNextPicture_V50(lFindHandle, ref lpFindData);
  889. }
  890. public static bool NET_DVR_CloseFindPicture(int lFindHandle)
  891. {
  892. if (IsWindows)
  893. return Methods_Win.NET_DVR_CloseFindPicture(lFindHandle);
  894. else
  895. return Methods_Linux.NET_DVR_CloseFindPicture(lFindHandle);
  896. }
  897. public static bool NET_DVR_GetPicture(int lUserID, String sDVRFileName, String sSavedFileName)
  898. {
  899. if (IsWindows)
  900. return Methods_Win.NET_DVR_GetPicture(lUserID, sDVRFileName, sSavedFileName);
  901. else
  902. return Methods_Linux.NET_DVR_GetPicture(lUserID, sDVRFileName, sSavedFileName);
  903. }
  904. public static int NET_DVR_Upgrade(int lUserID, string sFileName)
  905. {
  906. if (IsWindows)
  907. return Methods_Win.NET_DVR_Upgrade(lUserID, sFileName);
  908. else
  909. return Methods_Linux.NET_DVR_Upgrade(lUserID, sFileName);
  910. }
  911. public static int NET_DVR_GetUpgradeState(int lUpgradeHandle)
  912. {
  913. if (IsWindows)
  914. return Methods_Win.NET_DVR_GetUpgradeState(lUpgradeHandle);
  915. else
  916. return Methods_Linux.NET_DVR_GetUpgradeState(lUpgradeHandle);
  917. }
  918. public static int NET_DVR_GetUpgradeProgress(int lUpgradeHandle)
  919. {
  920. if (IsWindows)
  921. return Methods_Win.NET_DVR_GetUpgradeProgress(lUpgradeHandle);
  922. else
  923. return Methods_Linux.NET_DVR_GetUpgradeProgress(lUpgradeHandle);
  924. }
  925. public static bool NET_DVR_CloseUpgradeHandle(int lUpgradeHandle)
  926. {
  927. if (IsWindows)
  928. return Methods_Win.NET_DVR_CloseUpgradeHandle(lUpgradeHandle);
  929. else
  930. return Methods_Linux.NET_DVR_CloseUpgradeHandle(lUpgradeHandle);
  931. }
  932. public static bool NET_DVR_SetNetworkEnvironment(uint dwEnvironmentLevel)
  933. {
  934. if (IsWindows)
  935. return Methods_Win.NET_DVR_SetNetworkEnvironment(dwEnvironmentLevel);
  936. else
  937. return Methods_Linux.NET_DVR_SetNetworkEnvironment(dwEnvironmentLevel);
  938. }
  939. public static int NET_DVR_FormatDisk(int lUserID, int lDiskNumber)
  940. {
  941. if (IsWindows)
  942. return Methods_Win.NET_DVR_FormatDisk(lUserID, lDiskNumber);
  943. else
  944. return Methods_Linux.NET_DVR_FormatDisk(lUserID, lDiskNumber);
  945. }
  946. public static bool NET_DVR_GetFormatProgress(int lFormatHandle, ref int pCurrentFormatDisk, ref int pCurrentDiskPos, ref int pFormatStatic)
  947. {
  948. if (IsWindows)
  949. return Methods_Win.NET_DVR_GetFormatProgress(lFormatHandle, ref pCurrentFormatDisk, ref pCurrentDiskPos, ref pFormatStatic);
  950. else
  951. return Methods_Linux.NET_DVR_GetFormatProgress(lFormatHandle, ref pCurrentFormatDisk, ref pCurrentDiskPos, ref pFormatStatic);
  952. }
  953. public static bool NET_DVR_CloseFormatHandle(int lFormatHandle)
  954. {
  955. if (IsWindows)
  956. return Methods_Win.NET_DVR_CloseFormatHandle(lFormatHandle);
  957. else
  958. return Methods_Linux.NET_DVR_CloseFormatHandle(lFormatHandle);
  959. }
  960. public static bool NET_DVR_GetIPCProtoList(int lUserID, ref NET_DVR_IPC_PROTO_LIST lpProtoList)
  961. {
  962. if (IsWindows)
  963. return Methods_Win.NET_DVR_GetIPCProtoList(lUserID, ref lpProtoList);
  964. else
  965. return Methods_Linux.NET_DVR_GetIPCProtoList(lUserID, ref lpProtoList);
  966. }
  967. public static bool NET_DVR_GetIPCProtoList_V41(int lUserID, ref NET_DVR_IPC_PROTO_LIST_V41 lpProtoList)
  968. {
  969. if (IsWindows)
  970. return Methods_Win.NET_DVR_GetIPCProtoList_V41(lUserID, ref lpProtoList);
  971. else
  972. return Methods_Linux.NET_DVR_GetIPCProtoList_V41(lUserID, ref lpProtoList);
  973. }
  974. public static int NET_DVR_SetupAlarmChan(int lUserID)
  975. {
  976. if (IsWindows)
  977. return Methods_Win.NET_DVR_SetupAlarmChan(lUserID);
  978. else
  979. return Methods_Linux.NET_DVR_SetupAlarmChan(lUserID);
  980. }
  981. public static bool NET_DVR_CloseAlarmChan(int lAlarmHandle)
  982. {
  983. if (IsWindows)
  984. return Methods_Win.NET_DVR_CloseAlarmChan(lAlarmHandle);
  985. else
  986. return Methods_Linux.NET_DVR_CloseAlarmChan(lAlarmHandle);
  987. }
  988. public static int NET_DVR_SetupAlarmChan_V30(int lUserID)
  989. {
  990. if (IsWindows)
  991. return Methods_Win.NET_DVR_SetupAlarmChan_V30(lUserID);
  992. else
  993. return Methods_Linux.NET_DVR_SetupAlarmChan_V30(lUserID);
  994. }
  995. public static int NET_DVR_SetupAlarmChan_V41(int lUserID, ref NET_DVR_SETUPALARM_PARAM lpSetupParam)
  996. {
  997. if (IsWindows)
  998. return Methods_Win.NET_DVR_SetupAlarmChan_V41(lUserID, ref lpSetupParam);
  999. else
  1000. return Methods_Linux.NET_DVR_SetupAlarmChan_V41(lUserID, ref lpSetupParam);
  1001. }
  1002. public static bool NET_DVR_CloseAlarmChan_V30(int lAlarmHandle)
  1003. {
  1004. if (IsWindows)
  1005. return Methods_Win.NET_DVR_CloseAlarmChan_V30(lAlarmHandle);
  1006. else
  1007. return Methods_Linux.NET_DVR_CloseAlarmChan_V30(lAlarmHandle);
  1008. }
  1009. public static int NET_DVR_StartVoiceCom(int lUserID, VOICEDATACALLBACK fVoiceDataCallBack, uint dwUser)
  1010. {
  1011. if (IsWindows)
  1012. return Methods_Win.NET_DVR_StartVoiceCom(lUserID, fVoiceDataCallBack, dwUser);
  1013. else
  1014. return Methods_Linux.NET_DVR_StartVoiceCom(lUserID, fVoiceDataCallBack, dwUser);
  1015. }
  1016. public static int NET_DVR_StartVoiceCom_V30(int lUserID, uint dwVoiceChan, bool bNeedCBNoEncData, VOICEDATACALLBACKV30 fVoiceDataCallBack, IntPtr pUser)
  1017. {
  1018. if (IsWindows)
  1019. return Methods_Win.NET_DVR_StartVoiceCom_V30(lUserID, dwVoiceChan, bNeedCBNoEncData, fVoiceDataCallBack, pUser);
  1020. else
  1021. return Methods_Linux.NET_DVR_StartVoiceCom_V30(lUserID, dwVoiceChan, bNeedCBNoEncData, fVoiceDataCallBack, pUser);
  1022. }
  1023. public static bool NET_DVR_SetVoiceComClientVolume(int lVoiceComHandle, ushort wVolume)
  1024. {
  1025. if (IsWindows)
  1026. return Methods_Win.NET_DVR_SetVoiceComClientVolume(lVoiceComHandle, wVolume);
  1027. else
  1028. return Methods_Linux.NET_DVR_SetVoiceComClientVolume(lVoiceComHandle, wVolume);
  1029. }
  1030. public static bool NET_DVR_StopVoiceCom(int lVoiceComHandle)
  1031. {
  1032. if (IsWindows)
  1033. return Methods_Win.NET_DVR_StopVoiceCom(lVoiceComHandle);
  1034. else
  1035. return Methods_Linux.NET_DVR_StopVoiceCom(lVoiceComHandle);
  1036. }
  1037. public static int NET_DVR_StartVoiceCom_MR(int lUserID, VOICEDATACALLBACK fVoiceDataCallBack, uint dwUser)
  1038. {
  1039. if (IsWindows)
  1040. return Methods_Win.NET_DVR_StartVoiceCom_MR(lUserID, fVoiceDataCallBack, dwUser);
  1041. else
  1042. return Methods_Linux.NET_DVR_StartVoiceCom_MR(lUserID, fVoiceDataCallBack, dwUser);
  1043. }
  1044. public static int NET_DVR_StartVoiceCom_MR_V30(int lUserID, uint dwVoiceChan, VOICEDATACALLBACKV30 fVoiceDataCallBack, IntPtr pUser)
  1045. {
  1046. if (IsWindows)
  1047. return Methods_Win.NET_DVR_StartVoiceCom_MR_V30(lUserID, dwVoiceChan, fVoiceDataCallBack, pUser);
  1048. else
  1049. return Methods_Linux.NET_DVR_StartVoiceCom_MR_V30(lUserID, dwVoiceChan, fVoiceDataCallBack, pUser);
  1050. }
  1051. public static bool NET_DVR_VoiceComSendData(int lVoiceComHandle, string pSendBuf, uint dwBufSize)
  1052. {
  1053. if (IsWindows)
  1054. return Methods_Win.NET_DVR_VoiceComSendData(lVoiceComHandle, pSendBuf, dwBufSize);
  1055. else
  1056. return Methods_Linux.NET_DVR_VoiceComSendData(lVoiceComHandle, pSendBuf, dwBufSize);
  1057. }
  1058. public static bool NET_DVR_ClientAudioStart()
  1059. {
  1060. if (IsWindows)
  1061. return Methods_Win.NET_DVR_ClientAudioStart();
  1062. else
  1063. return Methods_Linux.NET_DVR_ClientAudioStart();
  1064. }
  1065. public static bool NET_DVR_ClientAudioStart_V30(VOICEAUDIOSTART fVoiceAudioStart, IntPtr pUser)
  1066. {
  1067. if (IsWindows)
  1068. return Methods_Win.NET_DVR_ClientAudioStart_V30(fVoiceAudioStart, pUser);
  1069. else
  1070. return Methods_Linux.NET_DVR_ClientAudioStart_V30(fVoiceAudioStart, pUser);
  1071. }
  1072. public static bool NET_DVR_ClientAudioStop()
  1073. {
  1074. if (IsWindows)
  1075. return Methods_Win.NET_DVR_ClientAudioStop();
  1076. else
  1077. return Methods_Linux.NET_DVR_ClientAudioStop();
  1078. }
  1079. public static bool NET_DVR_AddDVR(int lUserID)
  1080. {
  1081. if (IsWindows)
  1082. return Methods_Win.NET_DVR_AddDVR(lUserID);
  1083. else
  1084. return Methods_Linux.NET_DVR_AddDVR(lUserID);
  1085. }
  1086. public static int NET_DVR_AddDVR_V30(int lUserID, uint dwVoiceChan)
  1087. {
  1088. if (IsWindows)
  1089. return Methods_Win.NET_DVR_AddDVR_V30(lUserID, dwVoiceChan);
  1090. else
  1091. return Methods_Linux.NET_DVR_AddDVR_V30(lUserID, dwVoiceChan);
  1092. }
  1093. public static bool NET_DVR_DelDVR(int lUserID)
  1094. {
  1095. if (IsWindows)
  1096. return Methods_Win.NET_DVR_DelDVR(lUserID);
  1097. else
  1098. return Methods_Linux.NET_DVR_DelDVR(lUserID);
  1099. }
  1100. public static bool NET_DVR_DelDVR_V30(int lVoiceHandle)
  1101. {
  1102. if (IsWindows)
  1103. return Methods_Win.NET_DVR_DelDVR_V30(lVoiceHandle);
  1104. else
  1105. return Methods_Linux.NET_DVR_DelDVR_V30(lVoiceHandle);
  1106. }
  1107. public static bool NET_DVR_SerialStart(int lUserID, int lSerialPort, SERIALDATACALLBACK fSerialDataCallBack, uint dwUser)
  1108. {
  1109. if (IsWindows)
  1110. return Methods_Win.NET_DVR_SerialStart(lUserID, lSerialPort, fSerialDataCallBack, dwUser);
  1111. else
  1112. return Methods_Linux.NET_DVR_SerialStart(lUserID, lSerialPort, fSerialDataCallBack, dwUser);
  1113. }
  1114. public static bool NET_DVR_SerialSend(int lSerialHandle, int lChannel, string pSendBuf, uint dwBufSize)
  1115. {
  1116. if (IsWindows)
  1117. return Methods_Win.NET_DVR_SerialSend(lSerialHandle, lChannel, pSendBuf, dwBufSize);
  1118. else
  1119. return Methods_Linux.NET_DVR_SerialSend(lSerialHandle, lChannel, pSendBuf, dwBufSize);
  1120. }
  1121. public static bool NET_DVR_SerialStop(int lSerialHandle)
  1122. {
  1123. if (IsWindows)
  1124. return Methods_Win.NET_DVR_SerialStop(lSerialHandle);
  1125. else
  1126. return Methods_Linux.NET_DVR_SerialStop(lSerialHandle);
  1127. }
  1128. public static bool NET_DVR_SendTo232Port(int lUserID, string pSendBuf, uint dwBufSize)
  1129. {
  1130. if (IsWindows)
  1131. return Methods_Win.NET_DVR_SendTo232Port(lUserID, pSendBuf, dwBufSize);
  1132. else
  1133. return Methods_Linux.NET_DVR_SendTo232Port(lUserID, pSendBuf, dwBufSize);
  1134. }
  1135. public static bool NET_DVR_SendToSerialPort(int lUserID, uint dwSerialPort, uint dwSerialIndex, string pSendBuf, uint dwBufSize)
  1136. {
  1137. if (IsWindows)
  1138. return Methods_Win.NET_DVR_SendToSerialPort(lUserID, dwSerialPort, dwSerialIndex, pSendBuf, dwBufSize);
  1139. else
  1140. return Methods_Linux.NET_DVR_SendToSerialPort(lUserID, dwSerialPort, dwSerialIndex, pSendBuf, dwBufSize);
  1141. }
  1142. public static System.IntPtr NET_DVR_InitG722Decoder(int nBitrate)
  1143. {
  1144. if (IsWindows)
  1145. return Methods_Win.NET_DVR_InitG722Decoder(nBitrate);
  1146. else
  1147. return Methods_Linux.NET_DVR_InitG722Decoder(nBitrate);
  1148. }
  1149. public static void NET_DVR_ReleaseG722Decoder(IntPtr pDecHandle)
  1150. {
  1151. if (IsWindows)
  1152. Methods_Win.NET_DVR_ReleaseG722Decoder(pDecHandle);
  1153. else
  1154. Methods_Linux.NET_DVR_ReleaseG722Decoder(pDecHandle);
  1155. }
  1156. public static bool NET_DVR_DecodeG722Frame(IntPtr pDecHandle, ref byte pInBuffer, ref byte pOutBuffer)
  1157. {
  1158. if (IsWindows)
  1159. return Methods_Win.NET_DVR_DecodeG722Frame(pDecHandle, ref pInBuffer, ref pOutBuffer);
  1160. else
  1161. return Methods_Linux.NET_DVR_DecodeG722Frame(pDecHandle, ref pInBuffer, ref pOutBuffer);
  1162. }
  1163. public static IntPtr NET_DVR_InitG722Encoder()
  1164. {
  1165. if (IsWindows)
  1166. return Methods_Win.NET_DVR_InitG722Encoder();
  1167. else
  1168. return Methods_Linux.NET_DVR_InitG722Encoder();
  1169. }
  1170. public static bool NET_DVR_EncodeG722Frame(IntPtr pEncodeHandle, ref byte pInBuffer, ref byte pOutBuffer)
  1171. {
  1172. if (IsWindows)
  1173. return Methods_Win.NET_DVR_EncodeG722Frame(pEncodeHandle, ref pInBuffer, ref pOutBuffer);
  1174. else
  1175. return Methods_Linux.NET_DVR_EncodeG722Frame(pEncodeHandle, ref pInBuffer, ref pOutBuffer);
  1176. }
  1177. public static void NET_DVR_ReleaseG722Encoder(IntPtr pEncodeHandle)
  1178. {
  1179. if (IsWindows)
  1180. Methods_Win.NET_DVR_ReleaseG722Encoder(pEncodeHandle);
  1181. else
  1182. Methods_Linux.NET_DVR_ReleaseG722Encoder(pEncodeHandle);
  1183. }
  1184. public static bool NET_DVR_ClickKey(int lUserID, int lKeyIndex)
  1185. {
  1186. if (IsWindows)
  1187. return Methods_Win.NET_DVR_ClickKey(lUserID, lKeyIndex);
  1188. else
  1189. return Methods_Linux.NET_DVR_ClickKey(lUserID, lKeyIndex);
  1190. }
  1191. public static bool NET_DVR_StartDVRRecord(int lUserID, int lChannel, int lRecordType)
  1192. {
  1193. if (IsWindows)
  1194. return Methods_Win.NET_DVR_StartDVRRecord(lUserID, lChannel, lRecordType);
  1195. else
  1196. return Methods_Linux.NET_DVR_StartDVRRecord(lUserID, lChannel, lRecordType);
  1197. }
  1198. public static bool NET_DVR_StopDVRRecord(int lUserID, int lChannel)
  1199. {
  1200. if (IsWindows)
  1201. return Methods_Win.NET_DVR_StopDVRRecord(lUserID, lChannel);
  1202. else
  1203. return Methods_Linux.NET_DVR_StopDVRRecord(lUserID, lChannel);
  1204. }
  1205. public static bool NET_DVR_InitDevice_Card(ref int pDeviceTotalChan)
  1206. {
  1207. if (IsWindows)
  1208. return Methods_Win.NET_DVR_InitDevice_Card(ref pDeviceTotalChan);
  1209. else
  1210. return Methods_Linux.NET_DVR_InitDevice_Card(ref pDeviceTotalChan);
  1211. }
  1212. public static bool NET_DVR_ReleaseDevice_Card()
  1213. {
  1214. if (IsWindows)
  1215. return Methods_Win.NET_DVR_ReleaseDevice_Card();
  1216. else
  1217. return Methods_Linux.NET_DVR_ReleaseDevice_Card();
  1218. }
  1219. public static bool NET_DVR_InitDDraw_Card(IntPtr hParent, uint colorKey)
  1220. {
  1221. if (IsWindows)
  1222. return Methods_Win.NET_DVR_InitDDraw_Card(hParent, colorKey);
  1223. else
  1224. return Methods_Linux.NET_DVR_InitDDraw_Card(hParent, colorKey);
  1225. }
  1226. public static bool NET_DVR_ReleaseDDraw_Card()
  1227. {
  1228. if (IsWindows)
  1229. return Methods_Win.NET_DVR_ReleaseDDraw_Card();
  1230. else
  1231. return Methods_Linux.NET_DVR_ReleaseDDraw_Card();
  1232. }
  1233. public static int NET_DVR_RealPlay_Card(int lUserID, ref NET_DVR_CARDINFO lpCardInfo, int lChannelNum)
  1234. {
  1235. if (IsWindows)
  1236. return Methods_Win.NET_DVR_RealPlay_Card(lUserID, ref lpCardInfo, lChannelNum);
  1237. else
  1238. return Methods_Linux.NET_DVR_RealPlay_Card(lUserID, ref lpCardInfo, lChannelNum);
  1239. }
  1240. public static bool NET_DVR_ResetPara_Card(int lRealHandle, ref NET_DVR_DISPLAY_PARA lpDisplayPara)
  1241. {
  1242. if (IsWindows)
  1243. return Methods_Win.NET_DVR_ResetPara_Card(lRealHandle, ref lpDisplayPara);
  1244. else
  1245. return Methods_Linux.NET_DVR_ResetPara_Card(lRealHandle, ref lpDisplayPara);
  1246. }
  1247. public static bool NET_DVR_RefreshSurface_Card()
  1248. {
  1249. if (IsWindows)
  1250. return Methods_Win.NET_DVR_RefreshSurface_Card();
  1251. else
  1252. return Methods_Linux.NET_DVR_RefreshSurface_Card();
  1253. }
  1254. public static bool NET_DVR_ClearSurface_Card()
  1255. {
  1256. if (IsWindows)
  1257. return Methods_Win.NET_DVR_ClearSurface_Card();
  1258. else
  1259. return Methods_Linux.NET_DVR_ClearSurface_Card();
  1260. }
  1261. public static bool NET_DVR_RestoreSurface_Card()
  1262. {
  1263. if (IsWindows)
  1264. return Methods_Win.NET_DVR_RestoreSurface_Card();
  1265. else
  1266. return Methods_Linux.NET_DVR_RestoreSurface_Card();
  1267. }
  1268. public static bool NET_DVR_OpenSound_Card(int lRealHandle)
  1269. {
  1270. if (IsWindows)
  1271. return Methods_Win.NET_DVR_OpenSound_Card(lRealHandle);
  1272. else
  1273. return Methods_Linux.NET_DVR_OpenSound_Card(lRealHandle);
  1274. }
  1275. public static bool NET_DVR_CloseSound_Card(int lRealHandle)
  1276. {
  1277. if (IsWindows)
  1278. return Methods_Win.NET_DVR_CloseSound_Card(lRealHandle);
  1279. else
  1280. return Methods_Linux.NET_DVR_CloseSound_Card(lRealHandle);
  1281. }
  1282. public static bool NET_DVR_SetVolume_Card(int lRealHandle, ushort wVolume)
  1283. {
  1284. if (IsWindows)
  1285. return Methods_Win.NET_DVR_SetVolume_Card(lRealHandle, wVolume);
  1286. else
  1287. return Methods_Linux.NET_DVR_SetVolume_Card(lRealHandle, wVolume);
  1288. }
  1289. public static bool NET_DVR_AudioPreview_Card(int lRealHandle, int bEnable)
  1290. {
  1291. if (IsWindows)
  1292. return Methods_Win.NET_DVR_AudioPreview_Card(lRealHandle, bEnable);
  1293. else
  1294. return Methods_Linux.NET_DVR_AudioPreview_Card(lRealHandle, bEnable);
  1295. }
  1296. public static int NET_DVR_GetCardLastError_Card()
  1297. {
  1298. if (IsWindows)
  1299. return Methods_Win.NET_DVR_GetCardLastError_Card();
  1300. else
  1301. return Methods_Linux.NET_DVR_GetCardLastError_Card();
  1302. }
  1303. public static System.IntPtr NET_DVR_GetChanHandle_Card(int lRealHandle)
  1304. {
  1305. if (IsWindows)
  1306. return Methods_Win.NET_DVR_GetChanHandle_Card(lRealHandle);
  1307. else
  1308. return Methods_Linux.NET_DVR_GetChanHandle_Card(lRealHandle);
  1309. }
  1310. public static bool NET_DVR_CapturePicture_Card(int lRealHandle, string sPicFileName)
  1311. {
  1312. if (IsWindows)
  1313. return Methods_Win.NET_DVR_CapturePicture_Card(lRealHandle, sPicFileName);
  1314. else
  1315. return Methods_Linux.NET_DVR_CapturePicture_Card(lRealHandle, sPicFileName);
  1316. }
  1317. public static bool NET_DVR_GetSerialNum_Card(int lChannelNum, ref uint pDeviceSerialNo)
  1318. {
  1319. if (IsWindows)
  1320. return Methods_Win.NET_DVR_GetSerialNum_Card(lChannelNum, ref pDeviceSerialNo);
  1321. else
  1322. return Methods_Linux.NET_DVR_GetSerialNum_Card(lChannelNum, ref pDeviceSerialNo);
  1323. }
  1324. public static int NET_DVR_FindDVRLog(int lUserID, int lSelectMode, uint dwMajorType, uint dwMinorType, ref NET_DVR_TIME lpStartTime, ref NET_DVR_TIME lpStopTime)
  1325. {
  1326. if (IsWindows)
  1327. return Methods_Win.NET_DVR_FindDVRLog(lUserID, lSelectMode, dwMajorType, dwMinorType, ref lpStartTime, ref lpStopTime);
  1328. else
  1329. return Methods_Linux.NET_DVR_FindDVRLog(lUserID, lSelectMode, dwMajorType, dwMinorType, ref lpStartTime, ref lpStopTime);
  1330. }
  1331. public static int NET_DVR_FindNextLog(int lLogHandle, ref NET_DVR_LOG lpLogData)
  1332. {
  1333. if (IsWindows)
  1334. return Methods_Win.NET_DVR_FindNextLog(lLogHandle, ref lpLogData);
  1335. else
  1336. return Methods_Linux.NET_DVR_FindNextLog(lLogHandle, ref lpLogData);
  1337. }
  1338. public static bool NET_DVR_FindLogClose(int lLogHandle)
  1339. {
  1340. if (IsWindows)
  1341. return Methods_Win.NET_DVR_FindLogClose(lLogHandle);
  1342. else
  1343. return Methods_Linux.NET_DVR_FindLogClose(lLogHandle);
  1344. }
  1345. public static 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)
  1346. {
  1347. if (IsWindows)
  1348. return Methods_Win.NET_DVR_FindDVRLog_V30(lUserID, lSelectMode, dwMajorType, dwMinorType, ref lpStartTime, ref lpStopTime, bOnlySmart);
  1349. else
  1350. return Methods_Linux.NET_DVR_FindDVRLog_V30(lUserID, lSelectMode, dwMajorType, dwMinorType, ref lpStartTime, ref lpStopTime, bOnlySmart);
  1351. }
  1352. public static int NET_DVR_FindNextLog_V30(int lLogHandle, ref NET_DVR_LOG_V30 lpLogData)
  1353. {
  1354. if (IsWindows)
  1355. return Methods_Win.NET_DVR_FindNextLog_V30(lLogHandle, ref lpLogData);
  1356. else
  1357. return Methods_Linux.NET_DVR_FindNextLog_V30(lLogHandle, ref lpLogData);
  1358. }
  1359. public static bool NET_DVR_FindLogClose_V30(int lLogHandle)
  1360. {
  1361. if (IsWindows)
  1362. return Methods_Win.NET_DVR_FindLogClose_V30(lLogHandle);
  1363. else
  1364. return Methods_Linux.NET_DVR_FindLogClose_V30(lLogHandle);
  1365. }
  1366. public static 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)
  1367. {
  1368. if (IsWindows)
  1369. return Methods_Win.NET_DVR_FindFileByCard(lUserID, lChannel, dwFileType, nFindType, ref sCardNumber, ref lpStartTime, ref lpStopTime);
  1370. else
  1371. return Methods_Linux.NET_DVR_FindFileByCard(lUserID, lChannel, dwFileType, nFindType, ref sCardNumber, ref lpStartTime, ref lpStopTime);
  1372. }
  1373. public static bool NET_DVR_CaptureJPEGPicture(int lUserID, int lChannel, ref NET_DVR_JPEGPARA lpJpegPara, string sPicFileName)
  1374. {
  1375. if (IsWindows)
  1376. return Methods_Win.NET_DVR_CaptureJPEGPicture(lUserID, lChannel, ref lpJpegPara, sPicFileName);
  1377. else
  1378. return Methods_Linux.NET_DVR_CaptureJPEGPicture(lUserID, lChannel, ref lpJpegPara, sPicFileName);
  1379. }
  1380. public static bool NET_DVR_CaptureJPEGPicture_NEW(int lUserID, int lChannel, ref NET_DVR_JPEGPARA lpJpegPara, byte[] sJpegPicBuffer, uint dwPicSize, ref uint lpSizeReturned)
  1381. {
  1382. if (IsWindows)
  1383. return Methods_Win.NET_DVR_CaptureJPEGPicture_NEW(lUserID, lChannel, ref lpJpegPara, sJpegPicBuffer, dwPicSize, ref lpSizeReturned);
  1384. else
  1385. return Methods_Linux.NET_DVR_CaptureJPEGPicture_NEW(lUserID, lChannel, ref lpJpegPara, sJpegPicBuffer, dwPicSize, ref lpSizeReturned);
  1386. }
  1387. public static int NET_DVR_GetRealPlayerIndex(int lRealHandle)
  1388. {
  1389. if (IsWindows)
  1390. return Methods_Win.NET_DVR_GetRealPlayerIndex(lRealHandle);
  1391. else
  1392. return Methods_Linux.NET_DVR_GetRealPlayerIndex(lRealHandle);
  1393. }
  1394. public static int NET_DVR_GetPlayBackPlayerIndex(int lPlayHandle)
  1395. {
  1396. if (IsWindows)
  1397. return Methods_Win.NET_DVR_GetPlayBackPlayerIndex(lPlayHandle);
  1398. else
  1399. return Methods_Linux.NET_DVR_GetPlayBackPlayerIndex(lPlayHandle);
  1400. }
  1401. public static Int32 NET_DVR_UploadSend(int lUploadHandle, ref NET_DVR_SEND_PARAM_IN pstruSendParamIN, IntPtr lpOutBuffer)
  1402. {
  1403. if (IsWindows)
  1404. return Methods_Win.NET_DVR_UploadSend(lUploadHandle, ref pstruSendParamIN, lpOutBuffer);
  1405. else
  1406. return Methods_Linux.NET_DVR_UploadSend(lUploadHandle, ref pstruSendParamIN, lpOutBuffer);
  1407. }
  1408. public static Int32 NET_DVR_UploadFile_V40(int lUserID, uint dwUploadType, IntPtr lpInBuffer, uint dwInBufferSize, string sFileName, IntPtr lpOutBuffer, uint dwOutBufferSize)
  1409. {
  1410. if (IsWindows)
  1411. return Methods_Win.NET_DVR_UploadFile_V40(lUserID, dwUploadType, lpInBuffer, dwInBufferSize, sFileName, lpOutBuffer, dwOutBufferSize);
  1412. else
  1413. return Methods_Linux.NET_DVR_UploadFile_V40(lUserID, dwUploadType, lpInBuffer, dwInBufferSize, sFileName, lpOutBuffer, dwOutBufferSize);
  1414. }
  1415. public static Int32 NET_DVR_GetUploadState(int lUploadHandle, ref uint pProgress)
  1416. {
  1417. if (IsWindows)
  1418. return Methods_Win.NET_DVR_GetUploadState(lUploadHandle, ref pProgress);
  1419. else
  1420. return Methods_Linux.NET_DVR_GetUploadState(lUploadHandle, ref pProgress);
  1421. }
  1422. public static bool NET_DVR_GetUploadResult(int lUploadHandle, IntPtr lpOutBuffer, uint dwOutBufferSize)
  1423. {
  1424. if (IsWindows)
  1425. return Methods_Win.NET_DVR_GetUploadResult(lUploadHandle, lpOutBuffer, dwOutBufferSize);
  1426. else
  1427. return Methods_Linux.NET_DVR_GetUploadResult(lUploadHandle, lpOutBuffer, dwOutBufferSize);
  1428. }
  1429. public static bool NET_DVR_UploadClose(int lUploadHandle)
  1430. {
  1431. if (IsWindows)
  1432. return Methods_Win.NET_DVR_UploadClose(lUploadHandle);
  1433. else
  1434. return Methods_Linux.NET_DVR_UploadClose(lUploadHandle);
  1435. }
  1436. public static bool NET_DVR_SetScaleCFG(int lUserID, uint dwScale)
  1437. {
  1438. if (IsWindows)
  1439. return Methods_Win.NET_DVR_SetScaleCFG(lUserID, dwScale);
  1440. else
  1441. return Methods_Linux.NET_DVR_SetScaleCFG(lUserID, dwScale);
  1442. }
  1443. public static bool NET_DVR_GetScaleCFG(int lUserID, ref uint lpOutScale)
  1444. {
  1445. if (IsWindows)
  1446. return Methods_Win.NET_DVR_GetScaleCFG(lUserID, ref lpOutScale);
  1447. else
  1448. return Methods_Linux.NET_DVR_GetScaleCFG(lUserID, ref lpOutScale);
  1449. }
  1450. public static bool NET_DVR_SetScaleCFG_V30(int lUserID, ref NET_DVR_SCALECFG pScalecfg)
  1451. {
  1452. if (IsWindows)
  1453. return Methods_Win.NET_DVR_SetScaleCFG_V30(lUserID, ref pScalecfg);
  1454. else
  1455. return Methods_Linux.NET_DVR_SetScaleCFG_V30(lUserID, ref pScalecfg);
  1456. }
  1457. public static bool NET_DVR_GetScaleCFG_V30(int lUserID, ref NET_DVR_SCALECFG pScalecfg)
  1458. {
  1459. if (IsWindows)
  1460. return Methods_Win.NET_DVR_GetScaleCFG_V30(lUserID, ref pScalecfg);
  1461. else
  1462. return Methods_Linux.NET_DVR_GetScaleCFG_V30(lUserID, ref pScalecfg);
  1463. }
  1464. public static bool NET_DVR_SetATMPortCFG(int lUserID, ushort wATMPort)
  1465. {
  1466. if (IsWindows)
  1467. return Methods_Win.NET_DVR_SetATMPortCFG(lUserID, wATMPort);
  1468. else
  1469. return Methods_Linux.NET_DVR_SetATMPortCFG(lUserID, wATMPort);
  1470. }
  1471. public static bool NET_DVR_GetATMPortCFG(int lUserID, ref ushort LPOutATMPort)
  1472. {
  1473. if (IsWindows)
  1474. return Methods_Win.NET_DVR_GetATMPortCFG(lUserID, ref LPOutATMPort);
  1475. else
  1476. return Methods_Linux.NET_DVR_GetATMPortCFG(lUserID, ref LPOutATMPort);
  1477. }
  1478. public static bool NET_DVR_InitDDrawDevice()
  1479. {
  1480. if (IsWindows)
  1481. return Methods_Win.NET_DVR_InitDDrawDevice();
  1482. else
  1483. return Methods_Linux.NET_DVR_InitDDrawDevice();
  1484. }
  1485. public static bool NET_DVR_ReleaseDDrawDevice()
  1486. {
  1487. if (IsWindows)
  1488. return Methods_Win.NET_DVR_ReleaseDDrawDevice();
  1489. else
  1490. return Methods_Linux.NET_DVR_ReleaseDDrawDevice();
  1491. }
  1492. public static int NET_DVR_GetDDrawDeviceTotalNums()
  1493. {
  1494. if (IsWindows)
  1495. return Methods_Win.NET_DVR_GetDDrawDeviceTotalNums();
  1496. else
  1497. return Methods_Linux.NET_DVR_GetDDrawDeviceTotalNums();
  1498. }
  1499. public static bool NET_DVR_SetDDrawDevice(int lPlayPort, uint nDeviceNum)
  1500. {
  1501. if (IsWindows)
  1502. return Methods_Win.NET_DVR_SetDDrawDevice(lPlayPort, nDeviceNum);
  1503. else
  1504. return Methods_Linux.NET_DVR_SetDDrawDevice(lPlayPort, nDeviceNum);
  1505. }
  1506. public static bool NET_DVR_PTZSelZoomIn(int lRealHandle, ref NET_DVR_POINT_FRAME pStruPointFrame)
  1507. {
  1508. if (IsWindows)
  1509. return Methods_Win.NET_DVR_PTZSelZoomIn(lRealHandle, ref pStruPointFrame);
  1510. else
  1511. return Methods_Linux.NET_DVR_PTZSelZoomIn(lRealHandle, ref pStruPointFrame);
  1512. }
  1513. public static bool NET_DVR_PTZSelZoomIn_EX(int lUserID, int lChannel, ref NET_DVR_POINT_FRAME pStruPointFrame)
  1514. {
  1515. if (IsWindows)
  1516. return Methods_Win.NET_DVR_PTZSelZoomIn_EX(lUserID, lChannel, ref pStruPointFrame);
  1517. else
  1518. return Methods_Linux.NET_DVR_PTZSelZoomIn_EX(lUserID, lChannel, ref pStruPointFrame);
  1519. }
  1520. public static bool NET_DVR_StartDecode(int lUserID, int lChannel, ref NET_DVR_DECODERINFO lpDecoderinfo)
  1521. {
  1522. if (IsWindows)
  1523. return Methods_Win.NET_DVR_StartDecode(lUserID, lChannel, ref lpDecoderinfo);
  1524. else
  1525. return Methods_Linux.NET_DVR_StartDecode(lUserID, lChannel, ref lpDecoderinfo);
  1526. }
  1527. public static bool NET_DVR_StopDecode(int lUserID, int lChannel)
  1528. {
  1529. if (IsWindows)
  1530. return Methods_Win.NET_DVR_StopDecode(lUserID, lChannel);
  1531. else
  1532. return Methods_Linux.NET_DVR_StopDecode(lUserID, lChannel);
  1533. }
  1534. public static bool NET_DVR_GetDecoderState(int lUserID, int lChannel, ref NET_DVR_DECODERSTATE lpDecoderState)
  1535. {
  1536. if (IsWindows)
  1537. return Methods_Win.NET_DVR_GetDecoderState(lUserID, lChannel, ref lpDecoderState);
  1538. else
  1539. return Methods_Linux.NET_DVR_GetDecoderState(lUserID, lChannel, ref lpDecoderState);
  1540. }
  1541. public static bool NET_DVR_SetDecInfo(int lUserID, int lChannel, ref NET_DVR_DECCFG lpDecoderinfo)
  1542. {
  1543. if (IsWindows)
  1544. return Methods_Win.NET_DVR_SetDecInfo(lUserID, lChannel, ref lpDecoderinfo);
  1545. else
  1546. return Methods_Linux.NET_DVR_SetDecInfo(lUserID, lChannel, ref lpDecoderinfo);
  1547. }
  1548. public static bool NET_DVR_GetDecInfo(int lUserID, int lChannel, ref NET_DVR_DECCFG lpDecoderinfo)
  1549. {
  1550. if (IsWindows)
  1551. return Methods_Win.NET_DVR_GetDecInfo(lUserID, lChannel, ref lpDecoderinfo);
  1552. else
  1553. return Methods_Linux.NET_DVR_GetDecInfo(lUserID, lChannel, ref lpDecoderinfo);
  1554. }
  1555. public static bool NET_DVR_SetDecTransPort(int lUserID, ref NET_DVR_PORTCFG lpTransPort)
  1556. {
  1557. if (IsWindows)
  1558. return Methods_Win.NET_DVR_SetDecTransPort(lUserID, ref lpTransPort);
  1559. else
  1560. return Methods_Linux.NET_DVR_SetDecTransPort(lUserID, ref lpTransPort);
  1561. }
  1562. public static bool NET_DVR_GetDecTransPort(int lUserID, ref NET_DVR_PORTCFG lpTransPort)
  1563. {
  1564. if (IsWindows)
  1565. return Methods_Win.NET_DVR_GetDecTransPort(lUserID, ref lpTransPort);
  1566. else
  1567. return Methods_Linux.NET_DVR_GetDecTransPort(lUserID, ref lpTransPort);
  1568. }
  1569. public static bool NET_DVR_DecPlayBackCtrl(int lUserID, int lChannel, uint dwControlCode, uint dwInValue, ref uint LPOutValue, ref NET_DVR_PLAYREMOTEFILE lpRemoteFileInfo)
  1570. {
  1571. if (IsWindows)
  1572. return Methods_Win.NET_DVR_DecPlayBackCtrl(lUserID, lChannel, dwControlCode, dwInValue, ref LPOutValue, ref lpRemoteFileInfo);
  1573. else
  1574. return Methods_Linux.NET_DVR_DecPlayBackCtrl(lUserID, lChannel, dwControlCode, dwInValue, ref LPOutValue, ref lpRemoteFileInfo);
  1575. }
  1576. public static bool NET_DVR_StartDecSpecialCon(int lUserID, int lChannel, ref NET_DVR_DECCHANINFO lpDecChanInfo)
  1577. {
  1578. if (IsWindows)
  1579. return Methods_Win.NET_DVR_StartDecSpecialCon(lUserID, lChannel, ref lpDecChanInfo);
  1580. else
  1581. return Methods_Linux.NET_DVR_StartDecSpecialCon(lUserID, lChannel, ref lpDecChanInfo);
  1582. }
  1583. public static bool NET_DVR_StopDecSpecialCon(int lUserID, int lChannel, ref NET_DVR_DECCHANINFO lpDecChanInfo)
  1584. {
  1585. if (IsWindows)
  1586. return Methods_Win.NET_DVR_StopDecSpecialCon(lUserID, lChannel, ref lpDecChanInfo);
  1587. else
  1588. return Methods_Linux.NET_DVR_StopDecSpecialCon(lUserID, lChannel, ref lpDecChanInfo);
  1589. }
  1590. public static bool NET_DVR_DecCtrlDec(int lUserID, int lChannel, uint dwControlCode)
  1591. {
  1592. if (IsWindows)
  1593. return Methods_Win.NET_DVR_DecCtrlDec(lUserID, lChannel, dwControlCode);
  1594. else
  1595. return Methods_Linux.NET_DVR_DecCtrlDec(lUserID, lChannel, dwControlCode);
  1596. }
  1597. public static bool NET_DVR_DecCtrlScreen(int lUserID, int lChannel, uint dwControl)
  1598. {
  1599. if (IsWindows)
  1600. return Methods_Win.NET_DVR_DecCtrlScreen(lUserID, lChannel, dwControl);
  1601. else
  1602. return Methods_Linux.NET_DVR_DecCtrlScreen(lUserID, lChannel, dwControl);
  1603. }
  1604. public static bool NET_DVR_GetDecCurLinkStatus(int lUserID, int lChannel, ref NET_DVR_DECSTATUS lpDecStatus)
  1605. {
  1606. if (IsWindows)
  1607. return Methods_Win.NET_DVR_GetDecCurLinkStatus(lUserID, lChannel, ref lpDecStatus);
  1608. else
  1609. return Methods_Linux.NET_DVR_GetDecCurLinkStatus(lUserID, lChannel, ref lpDecStatus);
  1610. }
  1611. public static bool NET_DVR_MatrixStartDynamic(int lUserID, uint dwDecChanNum, ref NET_DVR_MATRIX_DYNAMIC_DEC lpDynamicInfo)
  1612. {
  1613. if (IsWindows)
  1614. return Methods_Win.NET_DVR_MatrixStartDynamic(lUserID, dwDecChanNum, ref lpDynamicInfo);
  1615. else
  1616. return Methods_Linux.NET_DVR_MatrixStartDynamic(lUserID, dwDecChanNum, ref lpDynamicInfo);
  1617. }
  1618. public static bool NET_DVR_MatrixStopDynamic(int lUserID, uint dwDecChanNum)
  1619. {
  1620. if (IsWindows)
  1621. return Methods_Win.NET_DVR_MatrixStopDynamic(lUserID, dwDecChanNum);
  1622. else
  1623. return Methods_Linux.NET_DVR_MatrixStopDynamic(lUserID, dwDecChanNum);
  1624. }
  1625. public static bool NET_DVR_MatrixGetDecChanInfo(int lUserID, uint dwDecChanNum, ref NET_DVR_MATRIX_DEC_CHAN_INFO lpInter)
  1626. {
  1627. if (IsWindows)
  1628. return Methods_Win.NET_DVR_MatrixGetDecChanInfo(lUserID, dwDecChanNum, ref lpInter);
  1629. else
  1630. return Methods_Linux.NET_DVR_MatrixGetDecChanInfo(lUserID, dwDecChanNum, ref lpInter);
  1631. }
  1632. public static bool NET_DVR_MatrixGetDecChanInfo_V41(int lUserID, uint dwDecChanNum, ref NET_DVR_MATRIX_DEC_CHAN_INFO_V41 lpOuter)
  1633. {
  1634. if (IsWindows)
  1635. return Methods_Win.NET_DVR_MatrixGetDecChanInfo_V41(lUserID, dwDecChanNum, ref lpOuter);
  1636. else
  1637. return Methods_Linux.NET_DVR_MatrixGetDecChanInfo_V41(lUserID, dwDecChanNum, ref lpOuter);
  1638. }
  1639. public static bool NET_DVR_MatrixSetLoopDecChanInfo(int lUserID, uint dwDecChanNum, ref NET_DVR_MATRIX_LOOP_DECINFO lpInter)
  1640. {
  1641. if (IsWindows)
  1642. return Methods_Win.NET_DVR_MatrixSetLoopDecChanInfo(lUserID, dwDecChanNum, ref lpInter);
  1643. else
  1644. return Methods_Linux.NET_DVR_MatrixSetLoopDecChanInfo(lUserID, dwDecChanNum, ref lpInter);
  1645. }
  1646. public static bool NET_DVR_MatrixGetLoopDecChanInfo(int lUserID, uint dwDecChanNum, ref NET_DVR_MATRIX_LOOP_DECINFO lpInter)
  1647. {
  1648. if (IsWindows)
  1649. return Methods_Win.NET_DVR_MatrixGetLoopDecChanInfo(lUserID, dwDecChanNum, ref lpInter);
  1650. else
  1651. return Methods_Linux.NET_DVR_MatrixGetLoopDecChanInfo(lUserID, dwDecChanNum, ref lpInter);
  1652. }
  1653. public static bool NET_DVR_MatrixSetLoopDecChanEnable(int lUserID, uint dwDecChanNum, uint dwEnable)
  1654. {
  1655. if (IsWindows)
  1656. return Methods_Win.NET_DVR_MatrixSetLoopDecChanEnable(lUserID, dwDecChanNum, dwEnable);
  1657. else
  1658. return Methods_Linux.NET_DVR_MatrixSetLoopDecChanEnable(lUserID, dwDecChanNum, dwEnable);
  1659. }
  1660. public static bool NET_DVR_MatrixGetLoopDecChanEnable(int lUserID, uint dwDecChanNum, ref uint lpdwEnable)
  1661. {
  1662. if (IsWindows)
  1663. return Methods_Win.NET_DVR_MatrixGetLoopDecChanEnable(lUserID, dwDecChanNum, ref lpdwEnable);
  1664. else
  1665. return Methods_Linux.NET_DVR_MatrixGetLoopDecChanEnable(lUserID, dwDecChanNum, ref lpdwEnable);
  1666. }
  1667. public static bool NET_DVR_MatrixGetLoopDecEnable(int lUserID, ref uint lpdwEnable)
  1668. {
  1669. if (IsWindows)
  1670. return Methods_Win.NET_DVR_MatrixGetLoopDecEnable(lUserID, ref lpdwEnable);
  1671. else
  1672. return Methods_Linux.NET_DVR_MatrixGetLoopDecEnable(lUserID, ref lpdwEnable);
  1673. }
  1674. public static bool NET_DVR_MatrixSetDecChanEnable(int lUserID, uint dwDecChanNum, uint dwEnable)
  1675. {
  1676. if (IsWindows)
  1677. return Methods_Win.NET_DVR_MatrixSetDecChanEnable(lUserID, dwDecChanNum, dwEnable);
  1678. else
  1679. return Methods_Linux.NET_DVR_MatrixSetDecChanEnable(lUserID, dwDecChanNum, dwEnable);
  1680. }
  1681. public static bool NET_DVR_MatrixGetDecChanEnable(int lUserID, uint dwDecChanNum, ref uint lpdwEnable)
  1682. {
  1683. if (IsWindows)
  1684. return Methods_Win.NET_DVR_MatrixGetDecChanEnable(lUserID, dwDecChanNum, ref lpdwEnable);
  1685. else
  1686. return Methods_Linux.NET_DVR_MatrixGetDecChanEnable(lUserID, dwDecChanNum, ref lpdwEnable);
  1687. }
  1688. public static bool NET_DVR_MatrixGetDecChanStatus(int lUserID, uint dwDecChanNum, ref NET_DVR_MATRIX_DEC_CHAN_STATUS lpInter)
  1689. {
  1690. if (IsWindows)
  1691. return Methods_Win.NET_DVR_MatrixGetDecChanStatus(lUserID, dwDecChanNum, ref lpInter);
  1692. else
  1693. return Methods_Linux.NET_DVR_MatrixGetDecChanStatus(lUserID, dwDecChanNum, ref lpInter);
  1694. }
  1695. public static bool NET_DVR_MatrixSetTranInfo(int lUserID, ref NET_DVR_MATRIX_TRAN_CHAN_CONFIG lpTranInfo)
  1696. {
  1697. if (IsWindows)
  1698. return Methods_Win.NET_DVR_MatrixSetTranInfo(lUserID, ref lpTranInfo);
  1699. else
  1700. return Methods_Linux.NET_DVR_MatrixSetTranInfo(lUserID, ref lpTranInfo);
  1701. }
  1702. public static bool NET_DVR_MatrixGetTranInfo(int lUserID, ref NET_DVR_MATRIX_TRAN_CHAN_CONFIG lpTranInfo)
  1703. {
  1704. if (IsWindows)
  1705. return Methods_Win.NET_DVR_MatrixGetTranInfo(lUserID, ref lpTranInfo);
  1706. else
  1707. return Methods_Linux.NET_DVR_MatrixGetTranInfo(lUserID, ref lpTranInfo);
  1708. }
  1709. public static bool NET_DVR_MatrixSetRemotePlay(int lUserID, uint dwDecChanNum, ref NET_DVR_MATRIX_DEC_REMOTE_PLAY lpInter)
  1710. {
  1711. if (IsWindows)
  1712. return Methods_Win.NET_DVR_MatrixSetRemotePlay(lUserID, dwDecChanNum, ref lpInter);
  1713. else
  1714. return Methods_Linux.NET_DVR_MatrixSetRemotePlay(lUserID, dwDecChanNum, ref lpInter);
  1715. }
  1716. public static bool NET_DVR_MatrixSetRemotePlayControl(int lUserID, uint dwDecChanNum, uint dwControlCode, uint dwInValue, ref uint LPOutValue)
  1717. {
  1718. if (IsWindows)
  1719. return Methods_Win.NET_DVR_MatrixSetRemotePlayControl(lUserID, dwDecChanNum, dwControlCode, dwInValue, ref LPOutValue);
  1720. else
  1721. return Methods_Linux.NET_DVR_MatrixSetRemotePlayControl(lUserID, dwDecChanNum, dwControlCode, dwInValue, ref LPOutValue);
  1722. }
  1723. public static bool NET_DVR_MatrixGetRemotePlayStatus(int lUserID, uint dwDecChanNum, ref NET_DVR_MATRIX_DEC_REMOTE_PLAY_STATUS lpOuter)
  1724. {
  1725. if (IsWindows)
  1726. return Methods_Win.NET_DVR_MatrixGetRemotePlayStatus(lUserID, dwDecChanNum, ref lpOuter);
  1727. else
  1728. return Methods_Linux.NET_DVR_MatrixGetRemotePlayStatus(lUserID, dwDecChanNum, ref lpOuter);
  1729. }
  1730. public static bool NET_DVR_MatrixStartDynamic_V30(int lUserID, uint dwDecChanNum, ref NET_DVR_PU_STREAM_CFG lpDynamicInfo)
  1731. {
  1732. if (IsWindows)
  1733. return Methods_Win.NET_DVR_MatrixStartDynamic_V30(lUserID, dwDecChanNum, ref lpDynamicInfo);
  1734. else
  1735. return Methods_Linux.NET_DVR_MatrixStartDynamic_V30(lUserID, dwDecChanNum, ref lpDynamicInfo);
  1736. }
  1737. public static bool NET_DVR_MatrixStartDynamic_V41(int lUserID, uint dwDecChanNum, ref NET_DVR_PU_STREAM_CFG_V41 lpDynamicInfo)
  1738. {
  1739. if (IsWindows)
  1740. return Methods_Win.NET_DVR_MatrixStartDynamic_V41(lUserID, dwDecChanNum, ref lpDynamicInfo);
  1741. else
  1742. return Methods_Linux.NET_DVR_MatrixStartDynamic_V41(lUserID, dwDecChanNum, ref lpDynamicInfo);
  1743. }
  1744. public static bool NET_DVR_MatrixSetLoopDecChanInfo_V30(int lUserID, uint dwDecChanNum, ref NET_DVR_MATRIX_LOOP_DECINFO_V30 lpInter)
  1745. {
  1746. if (IsWindows)
  1747. return Methods_Win.NET_DVR_MatrixSetLoopDecChanInfo_V30(lUserID, dwDecChanNum, ref lpInter);
  1748. else
  1749. return Methods_Linux.NET_DVR_MatrixSetLoopDecChanInfo_V30(lUserID, dwDecChanNum, ref lpInter);
  1750. }
  1751. public static bool NET_DVR_MatrixGetLoopDecChanInfo_V30(int lUserID, uint dwDecChanNum, ref NET_DVR_MATRIX_LOOP_DECINFO_V30 lpInter)
  1752. {
  1753. if (IsWindows)
  1754. return Methods_Win.NET_DVR_MatrixGetLoopDecChanInfo_V30(lUserID, dwDecChanNum, ref lpInter);
  1755. else
  1756. return Methods_Linux.NET_DVR_MatrixGetLoopDecChanInfo_V30(lUserID, dwDecChanNum, ref lpInter);
  1757. }
  1758. public static bool NET_DVR_MatrixGetDecChanInfo_V30(int lUserID, uint dwDecChanNum, ref NET_DVR_MATRIX_DEC_CHAN_INFO_V30 lpInter)
  1759. {
  1760. if (IsWindows)
  1761. return Methods_Win.NET_DVR_MatrixGetDecChanInfo_V30(lUserID, dwDecChanNum, ref lpInter);
  1762. else
  1763. return Methods_Linux.NET_DVR_MatrixGetDecChanInfo_V30(lUserID, dwDecChanNum, ref lpInter);
  1764. }
  1765. public static bool NET_DVR_MatrixSetTranInfo_V30(int lUserID, ref NET_DVR_MATRIX_TRAN_CHAN_CONFIG_V30 lpTranInfo)
  1766. {
  1767. if (IsWindows)
  1768. return Methods_Win.NET_DVR_MatrixSetTranInfo_V30(lUserID, ref lpTranInfo);
  1769. else
  1770. return Methods_Linux.NET_DVR_MatrixSetTranInfo_V30(lUserID, ref lpTranInfo);
  1771. }
  1772. public static bool NET_DVR_MatrixGetTranInfo_V30(int lUserID, ref NET_DVR_MATRIX_TRAN_CHAN_CONFIG_V30 lpTranInfo)
  1773. {
  1774. if (IsWindows)
  1775. return Methods_Win.NET_DVR_MatrixGetTranInfo_V30(lUserID, ref lpTranInfo);
  1776. else
  1777. return Methods_Linux.NET_DVR_MatrixGetTranInfo_V30(lUserID, ref lpTranInfo);
  1778. }
  1779. public static bool NET_DVR_MatrixGetDisplayCfg(int lUserID, uint dwDispChanNum, ref NET_DVR_VGA_DISP_CHAN_CFG lpDisplayCfg)
  1780. {
  1781. if (IsWindows)
  1782. return Methods_Win.NET_DVR_MatrixGetDisplayCfg(lUserID, dwDispChanNum, ref lpDisplayCfg);
  1783. else
  1784. return Methods_Linux.NET_DVR_MatrixGetDisplayCfg(lUserID, dwDispChanNum, ref lpDisplayCfg);
  1785. }
  1786. public static bool NET_DVR_MatrixSetDisplayCfg(int lUserID, uint dwDispChanNum, ref NET_DVR_VGA_DISP_CHAN_CFG lpDisplayCfg)
  1787. {
  1788. if (IsWindows)
  1789. return Methods_Win.NET_DVR_MatrixSetDisplayCfg(lUserID, dwDispChanNum, ref lpDisplayCfg);
  1790. else
  1791. return Methods_Linux.NET_DVR_MatrixSetDisplayCfg(lUserID, dwDispChanNum, ref lpDisplayCfg);
  1792. }
  1793. public static bool NET_DVR_MatrixGetDisplayCfg_V41(int lUserID, uint dwDispChanNum, ref NET_DVR_MATRIX_VOUTCFG lpDisplayCfg)
  1794. {
  1795. if (IsWindows)
  1796. return Methods_Win.NET_DVR_MatrixGetDisplayCfg_V41(lUserID, dwDispChanNum, ref lpDisplayCfg);
  1797. else
  1798. return Methods_Linux.NET_DVR_MatrixGetDisplayCfg_V41(lUserID, dwDispChanNum, ref lpDisplayCfg);
  1799. }
  1800. public static bool NET_DVR_MatrixSetDisplayCfg_V41(int lUserID, uint dwDispChanNum, ref NET_DVR_MATRIX_VOUTCFG lpDisplayCfg)
  1801. {
  1802. if (IsWindows)
  1803. return Methods_Win.NET_DVR_MatrixSetDisplayCfg_V41(lUserID, dwDispChanNum, ref lpDisplayCfg);
  1804. else
  1805. return Methods_Linux.NET_DVR_MatrixSetDisplayCfg_V41(lUserID, dwDispChanNum, ref lpDisplayCfg);
  1806. }
  1807. public static int NET_DVR_MatrixStartPassiveDecode(int lUserID, uint dwDecChanNum, ref NET_DVR_MATRIX_PASSIVEMODE lpPassiveMode)
  1808. {
  1809. if (IsWindows)
  1810. return Methods_Win.NET_DVR_MatrixStartPassiveDecode(lUserID, dwDecChanNum, ref lpPassiveMode);
  1811. else
  1812. return Methods_Linux.NET_DVR_MatrixStartPassiveDecode(lUserID, dwDecChanNum, ref lpPassiveMode);
  1813. }
  1814. public static bool NET_DVR_MatrixSendData(int lPassiveHandle, System.IntPtr pSendBuf, uint dwBufSize)
  1815. {
  1816. if (IsWindows)
  1817. return Methods_Win.NET_DVR_MatrixSendData(lPassiveHandle, pSendBuf, dwBufSize);
  1818. else
  1819. return Methods_Linux.NET_DVR_MatrixSendData(lPassiveHandle, pSendBuf, dwBufSize);
  1820. }
  1821. public static bool NET_DVR_MatrixStopPassiveDecode(int lPassiveHandle)
  1822. {
  1823. if (IsWindows)
  1824. return Methods_Win.NET_DVR_MatrixStopPassiveDecode(lPassiveHandle);
  1825. else
  1826. return Methods_Linux.NET_DVR_MatrixStopPassiveDecode(lPassiveHandle);
  1827. }
  1828. public static bool NET_DVR_UploadLogo(int lUserID, uint dwDispChanNum, ref NET_DVR_DISP_LOGOCFG lpDispLogoCfg, System.IntPtr sLogoBuffer)
  1829. {
  1830. if (IsWindows)
  1831. return Methods_Win.NET_DVR_UploadLogo(lUserID, dwDispChanNum, ref lpDispLogoCfg, sLogoBuffer);
  1832. else
  1833. return Methods_Linux.NET_DVR_UploadLogo(lUserID, dwDispChanNum, ref lpDispLogoCfg, sLogoBuffer);
  1834. }
  1835. public static int NET_DVR_PicUpload(int lUserID, String sFileName, ref NET_DVR_PICTURECFG lpPictureCfg)
  1836. {
  1837. if (IsWindows)
  1838. return Methods_Win.NET_DVR_PicUpload(lUserID, sFileName, ref lpPictureCfg);
  1839. else
  1840. return Methods_Linux.NET_DVR_PicUpload(lUserID, sFileName, ref lpPictureCfg);
  1841. }
  1842. public static int NET_DVR_GetPicUploadProgress(int lUploadHandle)
  1843. {
  1844. if (IsWindows)
  1845. return Methods_Win.NET_DVR_GetPicUploadProgress(lUploadHandle);
  1846. else
  1847. return Methods_Linux.NET_DVR_GetPicUploadProgress(lUploadHandle);
  1848. }
  1849. public static bool NET_DVR_CloseUploadHandle(int lUploadHandle)
  1850. {
  1851. if (IsWindows)
  1852. return Methods_Win.NET_DVR_CloseUploadHandle(lUploadHandle);
  1853. else
  1854. return Methods_Linux.NET_DVR_CloseUploadHandle(lUploadHandle);
  1855. }
  1856. public static int NET_DVR_GetPicUploadState(int lUploadHandle)
  1857. {
  1858. if (IsWindows)
  1859. return Methods_Win.NET_DVR_GetPicUploadState(lUploadHandle);
  1860. else
  1861. return Methods_Linux.NET_DVR_GetPicUploadState(lUploadHandle);
  1862. }
  1863. public static bool NET_DVR_LogoSwitch(int lUserID, uint dwDecChan, uint dwLogoSwitch)
  1864. {
  1865. if (IsWindows)
  1866. return Methods_Win.NET_DVR_LogoSwitch(lUserID, dwDecChan, dwLogoSwitch);
  1867. else
  1868. return Methods_Linux.NET_DVR_LogoSwitch(lUserID, dwDecChan, dwLogoSwitch);
  1869. }
  1870. public static bool NET_DVR_MatrixGetDeviceStatus(int lUserID, ref NET_DVR_DECODER_WORK_STATUS lpDecoderCfg)
  1871. {
  1872. if (IsWindows)
  1873. return Methods_Win.NET_DVR_MatrixGetDeviceStatus(lUserID, ref lpDecoderCfg);
  1874. else
  1875. return Methods_Linux.NET_DVR_MatrixGetDeviceStatus(lUserID, ref lpDecoderCfg);
  1876. }
  1877. public static bool NET_DVR_GetInputSignalList_V40(int lUserID, uint dwDevNum, ref NET_DVR_INPUT_SIGNAL_LIST lpInputSignalList)
  1878. {
  1879. if (IsWindows)
  1880. return Methods_Win.NET_DVR_GetInputSignalList_V40(lUserID, dwDevNum, ref lpInputSignalList);
  1881. else
  1882. return Methods_Linux.NET_DVR_GetInputSignalList_V40(lUserID, dwDevNum, ref lpInputSignalList);
  1883. }
  1884. public static bool NET_DVR_MatrixDiaplayControl(int lUserID, uint dwDispChanNum, uint dwDispChanCmd, uint dwCmdParam)
  1885. {
  1886. if (IsWindows)
  1887. return Methods_Win.NET_DVR_MatrixDiaplayControl(lUserID, dwDispChanNum, dwDispChanCmd, dwCmdParam);
  1888. else
  1889. return Methods_Linux.NET_DVR_MatrixDiaplayControl(lUserID, dwDispChanNum, dwDispChanCmd, dwCmdParam);
  1890. }
  1891. public static bool NET_DVR_RefreshPlay(int lPlayHandle)
  1892. {
  1893. if (IsWindows)
  1894. return Methods_Win.NET_DVR_RefreshPlay(lPlayHandle);
  1895. else
  1896. return Methods_Linux.NET_DVR_RefreshPlay(lPlayHandle);
  1897. }
  1898. public static bool NET_DVR_RestoreConfig(int lUserID)
  1899. {
  1900. if (IsWindows)
  1901. return Methods_Win.NET_DVR_RestoreConfig(lUserID);
  1902. else
  1903. return Methods_Linux.NET_DVR_RestoreConfig(lUserID);
  1904. }
  1905. public static bool NET_DVR_SaveConfig(int lUserID)
  1906. {
  1907. if (IsWindows)
  1908. return Methods_Win.NET_DVR_SaveConfig(lUserID);
  1909. else
  1910. return Methods_Linux.NET_DVR_SaveConfig(lUserID);
  1911. }
  1912. public static bool NET_DVR_RebootDVR(int lUserID)
  1913. {
  1914. if (IsWindows)
  1915. return Methods_Win.NET_DVR_RebootDVR(lUserID);
  1916. else
  1917. return Methods_Linux.NET_DVR_RebootDVR(lUserID);
  1918. }
  1919. public static bool NET_DVR_ShutDownDVR(int lUserID)
  1920. {
  1921. if (IsWindows)
  1922. return Methods_Win.NET_DVR_ShutDownDVR(lUserID);
  1923. else
  1924. return Methods_Linux.NET_DVR_ShutDownDVR(lUserID);
  1925. }
  1926. public static bool NET_DVR_GetDVRConfig(int lUserID, uint dwCommand, int lChannel, IntPtr lpOutBuffer, uint dwOutBufferSize, ref uint lpBytesReturned)
  1927. {
  1928. if (IsWindows)
  1929. return Methods_Win.NET_DVR_GetDVRConfig(lUserID, dwCommand, lChannel, lpOutBuffer, dwOutBufferSize, ref lpBytesReturned);
  1930. else
  1931. return Methods_Linux.NET_DVR_GetDVRConfig(lUserID, dwCommand, lChannel, lpOutBuffer, dwOutBufferSize, ref lpBytesReturned);
  1932. }
  1933. public static bool NET_DVR_SetDVRConfig(int lUserID, uint dwCommand, int lChannel, System.IntPtr lpInBuffer, uint dwInBufferSize)
  1934. {
  1935. if (IsWindows)
  1936. return Methods_Win.NET_DVR_SetDVRConfig(lUserID, dwCommand, lChannel, lpInBuffer, dwInBufferSize);
  1937. else
  1938. return Methods_Linux.NET_DVR_SetDVRConfig(lUserID, dwCommand, lChannel, lpInBuffer, dwInBufferSize);
  1939. }
  1940. public static bool NET_DVR_GetDVRWorkState_V30(int lUserID, IntPtr pWorkState)
  1941. {
  1942. if (IsWindows)
  1943. return Methods_Win.NET_DVR_GetDVRWorkState_V30(lUserID, pWorkState);
  1944. else
  1945. return Methods_Linux.NET_DVR_GetDVRWorkState_V30(lUserID, pWorkState);
  1946. }
  1947. public static bool NET_DVR_GetDVRWorkState(int lUserID, ref NET_DVR_WORKSTATE lpWorkState)
  1948. {
  1949. if (IsWindows)
  1950. return Methods_Win.NET_DVR_GetDVRWorkState(lUserID, ref lpWorkState);
  1951. else
  1952. return Methods_Linux.NET_DVR_GetDVRWorkState(lUserID, ref lpWorkState);
  1953. }
  1954. public static bool NET_DVR_SetVideoEffect(int lUserID, int lChannel, uint dwBrightValue, uint dwContrastValue, uint dwSaturationValue, uint dwHueValue)
  1955. {
  1956. if (IsWindows)
  1957. return Methods_Win.NET_DVR_SetVideoEffect(lUserID, lChannel, dwBrightValue, dwContrastValue, dwSaturationValue, dwHueValue);
  1958. else
  1959. return Methods_Linux.NET_DVR_SetVideoEffect(lUserID, lChannel, dwBrightValue, dwContrastValue, dwSaturationValue, dwHueValue);
  1960. }
  1961. public static bool NET_DVR_GetVideoEffect(int lUserID, int lChannel, ref uint pBrightValue, ref uint pContrastValue, ref uint pSaturationValue, ref uint pHueValue)
  1962. {
  1963. if (IsWindows)
  1964. return Methods_Win.NET_DVR_GetVideoEffect(lUserID, lChannel, ref pBrightValue, ref pContrastValue, ref pSaturationValue, ref pHueValue);
  1965. else
  1966. return Methods_Linux.NET_DVR_GetVideoEffect(lUserID, lChannel, ref pBrightValue, ref pContrastValue, ref pSaturationValue, ref pHueValue);
  1967. }
  1968. public static bool NET_DVR_ClientGetframeformat(int lUserID, ref NET_DVR_FRAMEFORMAT lpFrameFormat)
  1969. {
  1970. if (IsWindows)
  1971. return Methods_Win.NET_DVR_ClientGetframeformat(lUserID, ref lpFrameFormat);
  1972. else
  1973. return Methods_Linux.NET_DVR_ClientGetframeformat(lUserID, ref lpFrameFormat);
  1974. }
  1975. public static bool NET_DVR_ClientSetframeformat(int lUserID, ref NET_DVR_FRAMEFORMAT lpFrameFormat)
  1976. {
  1977. if (IsWindows)
  1978. return Methods_Win.NET_DVR_ClientSetframeformat(lUserID, ref lpFrameFormat);
  1979. else
  1980. return Methods_Linux.NET_DVR_ClientSetframeformat(lUserID, ref lpFrameFormat);
  1981. }
  1982. public static bool NET_DVR_GetAtmProtocol(int lUserID, ref NET_DVR_ATM_PROTOCOL lpAtmProtocol)
  1983. {
  1984. if (IsWindows)
  1985. return Methods_Win.NET_DVR_GetAtmProtocol(lUserID, ref lpAtmProtocol);
  1986. else
  1987. return Methods_Linux.NET_DVR_GetAtmProtocol(lUserID, ref lpAtmProtocol);
  1988. }
  1989. public static bool NET_DVR_GetAlarmOut_V30(int lUserID, IntPtr lpAlarmOutState)
  1990. {
  1991. if (IsWindows)
  1992. return Methods_Win.NET_DVR_GetAlarmOut_V30(lUserID, lpAlarmOutState);
  1993. else
  1994. return Methods_Linux.NET_DVR_GetAlarmOut_V30(lUserID, lpAlarmOutState);
  1995. }
  1996. public static bool NET_DVR_GetAlarmOut(int lUserID, ref NET_DVR_ALARMOUTSTATUS lpAlarmOutState)
  1997. {
  1998. if (IsWindows)
  1999. return Methods_Win.NET_DVR_GetAlarmOut(lUserID, ref lpAlarmOutState);
  2000. else
  2001. return Methods_Linux.NET_DVR_GetAlarmOut(lUserID, ref lpAlarmOutState);
  2002. }
  2003. public static bool NET_DVR_SetAlarmOut(int lUserID, int lAlarmOutPort, int lAlarmOutStatic)
  2004. {
  2005. if (IsWindows)
  2006. return Methods_Win.NET_DVR_SetAlarmOut(lUserID, lAlarmOutPort, lAlarmOutStatic);
  2007. else
  2008. return Methods_Linux.NET_DVR_SetAlarmOut(lUserID, lAlarmOutPort, lAlarmOutStatic);
  2009. }
  2010. public static bool NET_DVR_GetUpnpNatState(int lUserID, ref NET_DVR_UPNP_NAT_STATE lpState)
  2011. {
  2012. if (IsWindows)
  2013. return Methods_Win.NET_DVR_GetUpnpNatState(lUserID, ref lpState);
  2014. else
  2015. return Methods_Linux.NET_DVR_GetUpnpNatState(lUserID, ref lpState);
  2016. }
  2017. public static bool NET_DVR_ClientSetVideoEffect(int lRealHandle, uint dwBrightValue, uint dwContrastValue, uint dwSaturationValue, uint dwHueValue)
  2018. {
  2019. if (IsWindows)
  2020. return Methods_Win.NET_DVR_ClientSetVideoEffect(lRealHandle, dwBrightValue, dwContrastValue, dwSaturationValue, dwHueValue);
  2021. else
  2022. return Methods_Linux.NET_DVR_ClientSetVideoEffect(lRealHandle, dwBrightValue, dwContrastValue, dwSaturationValue, dwHueValue);
  2023. }
  2024. public static bool NET_DVR_ClientGetVideoEffect(int lRealHandle, ref uint pBrightValue, ref uint pContrastValue, ref uint pSaturationValue, ref uint pHueValue)
  2025. {
  2026. if (IsWindows)
  2027. return Methods_Win.NET_DVR_ClientGetVideoEffect(lRealHandle, ref pBrightValue, ref pContrastValue, ref pSaturationValue, ref pHueValue);
  2028. else
  2029. return Methods_Linux.NET_DVR_ClientGetVideoEffect(lRealHandle, ref pBrightValue, ref pContrastValue, ref pSaturationValue, ref pHueValue);
  2030. }
  2031. public static bool NET_DVR_GetConfigFile(int lUserID, string sFileName)
  2032. {
  2033. if (IsWindows)
  2034. return Methods_Win.NET_DVR_GetConfigFile(lUserID, sFileName);
  2035. else
  2036. return Methods_Linux.NET_DVR_GetConfigFile(lUserID, sFileName);
  2037. }
  2038. public static bool NET_DVR_SetConfigFile(int lUserID, string sFileName)
  2039. {
  2040. if (IsWindows)
  2041. return Methods_Win.NET_DVR_SetConfigFile(lUserID, sFileName);
  2042. else
  2043. return Methods_Linux.NET_DVR_SetConfigFile(lUserID, sFileName);
  2044. }
  2045. public static bool NET_DVR_GetConfigFile_V30(int lUserID, string sOutBuffer, uint dwOutSize, ref uint pReturnSize)
  2046. {
  2047. if (IsWindows)
  2048. return Methods_Win.NET_DVR_GetConfigFile_V30(lUserID, sOutBuffer, dwOutSize, ref pReturnSize);
  2049. else
  2050. return Methods_Linux.NET_DVR_GetConfigFile_V30(lUserID, sOutBuffer, dwOutSize, ref pReturnSize);
  2051. }
  2052. public static bool NET_DVR_GetConfigFile_EX(int lUserID, string sOutBuffer, uint dwOutSize)
  2053. {
  2054. if (IsWindows)
  2055. return Methods_Win.NET_DVR_GetConfigFile_EX(lUserID, sOutBuffer, dwOutSize);
  2056. else
  2057. return Methods_Linux.NET_DVR_GetConfigFile_EX(lUserID, sOutBuffer, dwOutSize);
  2058. }
  2059. public static bool NET_DVR_SetConfigFile_EX(int lUserID, string sInBuffer, uint dwInSize)
  2060. {
  2061. if (IsWindows)
  2062. return Methods_Win.NET_DVR_SetConfigFile_EX(lUserID, sInBuffer, dwInSize);
  2063. else
  2064. return Methods_Linux.NET_DVR_SetConfigFile_EX(lUserID, sInBuffer, dwInSize);
  2065. }
  2066. public static bool NET_DVR_SetLogToFile(int bLogEnable, string strLogDir, bool bAutoDel)
  2067. {
  2068. if (IsWindows)
  2069. return Methods_Win.NET_DVR_SetLogToFile(bLogEnable, strLogDir, bAutoDel);
  2070. else
  2071. return Methods_Linux.NET_DVR_SetLogToFile(bLogEnable, strLogDir, bAutoDel);
  2072. }
  2073. public static bool NET_DVR_GetSDKState(ref NET_DVR_SDKSTATE pSDKState)
  2074. {
  2075. if (IsWindows)
  2076. return Methods_Win.NET_DVR_GetSDKState(ref pSDKState);
  2077. else
  2078. return Methods_Linux.NET_DVR_GetSDKState(ref pSDKState);
  2079. }
  2080. public static bool NET_DVR_GetSDKAbility(ref NET_DVR_SDKABL pSDKAbl)
  2081. {
  2082. if (IsWindows)
  2083. return Methods_Win.NET_DVR_GetSDKAbility(ref pSDKAbl);
  2084. else
  2085. return Methods_Linux.NET_DVR_GetSDKAbility(ref pSDKAbl);
  2086. }
  2087. public static bool NET_DVR_GetPTZProtocol(int lUserID, ref NET_DVR_PTZCFG pPtzcfg)
  2088. {
  2089. if (IsWindows)
  2090. return Methods_Win.NET_DVR_GetPTZProtocol(lUserID, ref pPtzcfg);
  2091. else
  2092. return Methods_Linux.NET_DVR_GetPTZProtocol(lUserID, ref pPtzcfg);
  2093. }
  2094. public static bool NET_DVR_LockPanel(int lUserID)
  2095. {
  2096. if (IsWindows)
  2097. return Methods_Win.NET_DVR_LockPanel(lUserID);
  2098. else
  2099. return Methods_Linux.NET_DVR_LockPanel(lUserID);
  2100. }
  2101. public static bool NET_DVR_UnLockPanel(int lUserID)
  2102. {
  2103. if (IsWindows)
  2104. return Methods_Win.NET_DVR_UnLockPanel(lUserID);
  2105. else
  2106. return Methods_Linux.NET_DVR_UnLockPanel(lUserID);
  2107. }
  2108. public static bool NET_DVR_SetRtspConfig(int lUserID, uint dwCommand, ref NET_DVR_RTSPCFG lpInBuffer, uint dwInBufferSize)
  2109. {
  2110. if (IsWindows)
  2111. return Methods_Win.NET_DVR_SetRtspConfig(lUserID, dwCommand, ref lpInBuffer, dwInBufferSize);
  2112. else
  2113. return Methods_Linux.NET_DVR_SetRtspConfig(lUserID, dwCommand, ref lpInBuffer, dwInBufferSize);
  2114. }
  2115. public static bool NET_DVR_GetRtspConfig(int lUserID, uint dwCommand, ref NET_DVR_RTSPCFG lpOutBuffer, uint dwOutBufferSize)
  2116. {
  2117. if (IsWindows)
  2118. return Methods_Win.NET_DVR_GetRtspConfig(lUserID, dwCommand, ref lpOutBuffer, dwOutBufferSize);
  2119. else
  2120. return Methods_Linux.NET_DVR_GetRtspConfig(lUserID, dwCommand, ref lpOutBuffer, dwOutBufferSize);
  2121. }
  2122. public static bool NET_DVR_MatrixGetSceneCfg(int lUserID, uint dwSceneNum, ref NET_DVR_MATRIX_SCENECFG lpSceneCfg)
  2123. {
  2124. if (IsWindows)
  2125. return Methods_Win.NET_DVR_MatrixGetSceneCfg(lUserID, dwSceneNum, ref lpSceneCfg);
  2126. else
  2127. return Methods_Linux.NET_DVR_MatrixGetSceneCfg(lUserID, dwSceneNum, ref lpSceneCfg);
  2128. }
  2129. public static bool NET_DVR_MatrixSetSceneCfg(int lUserID, uint dwSceneNum, ref NET_DVR_MATRIX_SCENECFG lpSceneCfg)
  2130. {
  2131. if (IsWindows)
  2132. return Methods_Win.NET_DVR_MatrixSetSceneCfg(lUserID, dwSceneNum, ref lpSceneCfg);
  2133. else
  2134. return Methods_Linux.NET_DVR_MatrixSetSceneCfg(lUserID, dwSceneNum, ref lpSceneCfg);
  2135. }
  2136. public static bool NET_DVR_GetRealHeight(int lUserID, int lChannel, ref NET_VCA_LINE lpLine, ref Single lpHeight)
  2137. {
  2138. if (IsWindows)
  2139. return Methods_Win.NET_DVR_GetRealHeight(lUserID, lChannel, ref lpLine, ref lpHeight);
  2140. else
  2141. return Methods_Linux.NET_DVR_GetRealHeight(lUserID, lChannel, ref lpLine, ref lpHeight);
  2142. }
  2143. public static bool NET_DVR_GetRealLength(int lUserID, int lChannel, ref NET_VCA_LINE lpLine, ref Single lpLength)
  2144. {
  2145. if (IsWindows)
  2146. return Methods_Win.NET_DVR_GetRealLength(lUserID, lChannel, ref lpLine, ref lpLength);
  2147. else
  2148. return Methods_Linux.NET_DVR_GetRealLength(lUserID, lChannel, ref lpLine, ref lpLength);
  2149. }
  2150. public static bool NET_DVR_SaveRealData_V30(int lRealHandle, uint dwTransType, string sFileName)
  2151. {
  2152. if (IsWindows)
  2153. return Methods_Win.NET_DVR_SaveRealData_V30(lRealHandle, dwTransType, sFileName);
  2154. else
  2155. return Methods_Linux.NET_DVR_SaveRealData_V30(lRealHandle, dwTransType, sFileName);
  2156. }
  2157. public static IntPtr NET_DVR_InitG711Encoder(ref NET_DVR_AUDIOENC_INFO enc_info)
  2158. {
  2159. if (IsWindows)
  2160. return Methods_Win.NET_DVR_InitG711Encoder(ref enc_info);
  2161. else
  2162. return Methods_Linux.NET_DVR_InitG711Encoder(ref enc_info);
  2163. }
  2164. public static bool NET_DVR_EncodeG711Frame(IntPtr handle, ref NET_DVR_AUDIOENC_PROCESS_PARAM p_enc_proc_param)
  2165. {
  2166. if (IsWindows)
  2167. return Methods_Win.NET_DVR_EncodeG711Frame(handle, ref p_enc_proc_param);
  2168. else
  2169. return Methods_Linux.NET_DVR_EncodeG711Frame(handle, ref p_enc_proc_param);
  2170. }
  2171. public static bool NET_DVR_ReleaseG711Encoder(IntPtr pEncodeHandle)
  2172. {
  2173. if (IsWindows)
  2174. return Methods_Win.NET_DVR_ReleaseG711Encoder(pEncodeHandle);
  2175. else
  2176. return Methods_Linux.NET_DVR_ReleaseG711Encoder(pEncodeHandle);
  2177. }
  2178. public static bool NET_DVR_DecodeG711Frame(uint iType, ref byte pInBuffer, ref byte pOutBuffer)
  2179. {
  2180. if (IsWindows)
  2181. return Methods_Win.NET_DVR_DecodeG711Frame(iType, ref pInBuffer, ref pOutBuffer);
  2182. else
  2183. return Methods_Linux.NET_DVR_DecodeG711Frame(iType, ref pInBuffer, ref pOutBuffer);
  2184. }
  2185. public static bool NET_DVR_EmailTest(int lUserID)
  2186. {
  2187. if (IsWindows)
  2188. return Methods_Win.NET_DVR_EmailTest(lUserID);
  2189. else
  2190. return Methods_Linux.NET_DVR_EmailTest(lUserID);
  2191. }
  2192. public static int NET_DVR_FindFileByEvent(int lUserID, ref NET_DVR_SEARCH_EVENT_PARAM lpSearchEventParam)
  2193. {
  2194. if (IsWindows)
  2195. return Methods_Win.NET_DVR_FindFileByEvent(lUserID, ref lpSearchEventParam);
  2196. else
  2197. return Methods_Linux.NET_DVR_FindFileByEvent(lUserID, ref lpSearchEventParam);
  2198. }
  2199. public static int NET_DVR_FindNextEvent(int lSearchHandle, ref NET_DVR_SEARCH_EVENT_RET lpSearchEventRet)
  2200. {
  2201. if (IsWindows)
  2202. return Methods_Win.NET_DVR_FindNextEvent(lSearchHandle, ref lpSearchEventRet);
  2203. else
  2204. return Methods_Linux.NET_DVR_FindNextEvent(lSearchHandle, ref lpSearchEventRet);
  2205. }
  2206. public static Int32 NET_DVR_Login_V30(string sDVRIP, Int32 wDVRPort, string sUserName, string sPassword, ref NET_DVR_DEVICEINFO_V30 lpDeviceInfo)
  2207. {
  2208. if (IsWindows)
  2209. return Methods_Win.NET_DVR_Login_V30(sDVRIP, wDVRPort, sUserName, sPassword, ref lpDeviceInfo);
  2210. else
  2211. return Methods_Linux.NET_DVR_Login_V30(sDVRIP, wDVRPort, sUserName, sPassword, ref lpDeviceInfo);
  2212. }
  2213. public static int NET_DVR_Login_V40(ref NET_DVR_USER_LOGIN_INFO pLoginInfo, ref NET_DVR_DEVICEINFO_V40 lpDeviceInfo)
  2214. {
  2215. if (IsWindows)
  2216. return Methods_Win.NET_DVR_Login_V40(ref pLoginInfo, ref lpDeviceInfo);
  2217. else
  2218. return Methods_Linux.NET_DVR_Login_V40(ref pLoginInfo, ref lpDeviceInfo);
  2219. }
  2220. public static bool NET_DVR_Logout_V30(Int32 lUserID)
  2221. {
  2222. if (IsWindows)
  2223. return Methods_Win.NET_DVR_Logout_V30(lUserID);
  2224. else
  2225. return Methods_Linux.NET_DVR_Logout_V30(lUserID);
  2226. }
  2227. public static int NET_DVR_FindNextLog_MATRIX(int iLogHandle, ref NET_DVR_LOG_MATRIX lpLogData)
  2228. {
  2229. if (IsWindows)
  2230. return Methods_Win.NET_DVR_FindNextLog_MATRIX(iLogHandle, ref lpLogData);
  2231. else
  2232. return Methods_Linux.NET_DVR_FindNextLog_MATRIX(iLogHandle, ref lpLogData);
  2233. }
  2234. public static 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)
  2235. {
  2236. if (IsWindows)
  2237. return Methods_Win.NET_DVR_FindDVRLog_Matrix(iUserID, lSelectMode, dwMajorType, dwMinorType, ref lpVedioPlatLog, ref lpStartTime, ref lpStopTime);
  2238. else
  2239. return Methods_Linux.NET_DVR_FindDVRLog_Matrix(iUserID, lSelectMode, dwMajorType, dwMinorType, ref lpVedioPlatLog, ref lpStartTime, ref lpStopTime);
  2240. }
  2241. public static bool NET_DVR_STDXMLConfig(int iUserID, ref NET_DVR_XML_CONFIG_INPUT lpInputParam, ref NET_DVR_XML_CONFIG_OUTPUT lpOutputParam)
  2242. {
  2243. if (IsWindows)
  2244. return Methods_Win.NET_DVR_STDXMLConfig(iUserID, ref lpInputParam, ref lpOutputParam);
  2245. else
  2246. return Methods_Linux.NET_DVR_STDXMLConfig(iUserID, ref lpInputParam, ref lpOutputParam);
  2247. }
  2248. public static bool NET_DVR_GetDeviceConfig(int lUserID, uint dwCommand, uint dwCount, IntPtr lpInBuffer, uint dwInBufferSize, IntPtr lpStatusList, IntPtr lpOutBuffer, uint dwOutBufferSize)
  2249. {
  2250. if (IsWindows)
  2251. return Methods_Win.NET_DVR_GetDeviceConfig(lUserID, dwCommand, dwCount, lpInBuffer, dwInBufferSize, lpStatusList, lpOutBuffer, dwOutBufferSize);
  2252. else
  2253. return Methods_Linux.NET_DVR_GetDeviceConfig(lUserID, dwCommand, dwCount, lpInBuffer, dwInBufferSize, lpStatusList, lpOutBuffer, dwOutBufferSize);
  2254. }
  2255. public static bool NET_DVR_SetDeviceConfig(int lUserID, uint dwCommand, uint dwCount, IntPtr lpInBuffer, uint dwInBufferSize, IntPtr lpStatusList, IntPtr lpInParamBuffer, uint dwInParamBufferSize)
  2256. {
  2257. if (IsWindows)
  2258. return Methods_Win.NET_DVR_SetDeviceConfig(lUserID, dwCommand, dwCount, lpInBuffer, dwInBufferSize, lpStatusList, lpInParamBuffer, dwInParamBufferSize);
  2259. else
  2260. return Methods_Linux.NET_DVR_SetDeviceConfig(lUserID, dwCommand, dwCount, lpInBuffer, dwInBufferSize, lpStatusList, lpInParamBuffer, dwInParamBufferSize);
  2261. }
  2262. public static bool NET_DVR_SetDeviceConfigEx(Int32 lUserID, uint dwCommand, uint dwCount, ref NET_DVR_IN_PARAM lpInParam, ref NET_DVR_OUT_PARAM lpOutParam)
  2263. {
  2264. if (IsWindows)
  2265. return Methods_Win.NET_DVR_SetDeviceConfigEx(lUserID, dwCommand, dwCount, ref lpInParam, ref lpOutParam);
  2266. else
  2267. return Methods_Linux.NET_DVR_SetDeviceConfigEx(lUserID, dwCommand, dwCount, ref lpInParam, ref lpOutParam);
  2268. }
  2269. public static bool NET_DVR_GetSTDConfig(int iUserID, uint dwCommand, ref NET_DVR_STD_CONFIG lpConfigParam)
  2270. {
  2271. if (IsWindows)
  2272. return Methods_Win.NET_DVR_GetSTDConfig(iUserID, dwCommand, ref lpConfigParam);
  2273. else
  2274. return Methods_Linux.NET_DVR_GetSTDConfig(iUserID, dwCommand, ref lpConfigParam);
  2275. }
  2276. public static bool NET_DVR_SetSTDConfig(int iUserID, uint dwCommand, ref NET_DVR_STD_CONFIG lpConfigParam)
  2277. {
  2278. if (IsWindows)
  2279. return Methods_Win.NET_DVR_SetSTDConfig(iUserID, dwCommand, ref lpConfigParam);
  2280. else
  2281. return Methods_Linux.NET_DVR_SetSTDConfig(iUserID, dwCommand, ref lpConfigParam);
  2282. }
  2283. public static int NET_DVR_StartRemoteConfig(int lUserID, int dwCommand, IntPtr lpInBuffer, Int32 dwInBufferLen, RemoteConfigCallback cbStateCallback, IntPtr pUserData)
  2284. {
  2285. if (IsWindows)
  2286. return Methods_Win.NET_DVR_StartRemoteConfig(lUserID, dwCommand, lpInBuffer, dwInBufferLen, cbStateCallback, pUserData);
  2287. else
  2288. return Methods_Linux.NET_DVR_StartRemoteConfig(lUserID, dwCommand, lpInBuffer, dwInBufferLen, cbStateCallback, pUserData);
  2289. }
  2290. public static int NET_DVR_GetNextRemoteConfig(int lHandle, IntPtr lpOutBuff, int dwOutBuffSize)
  2291. {
  2292. if (IsWindows)
  2293. return Methods_Win.NET_DVR_GetNextRemoteConfig(lHandle, lpOutBuff, dwOutBuffSize);
  2294. else
  2295. return Methods_Linux.NET_DVR_GetNextRemoteConfig(lHandle, lpOutBuff, dwOutBuffSize);
  2296. }
  2297. public static bool NET_DVR_SendRemoteConfig(int lHandle, int dwDataType, IntPtr pSendBuf, int dwBufSize)
  2298. {
  2299. if (IsWindows)
  2300. return Methods_Win.NET_DVR_SendRemoteConfig(lHandle, dwDataType, pSendBuf, dwBufSize);
  2301. else
  2302. return Methods_Linux.NET_DVR_SendRemoteConfig(lHandle, dwDataType, pSendBuf, dwBufSize);
  2303. }
  2304. public static bool NET_DVR_StopRemoteConfig(int lHandle)
  2305. {
  2306. if (IsWindows)
  2307. return Methods_Win.NET_DVR_StopRemoteConfig(lHandle);
  2308. else
  2309. return Methods_Linux.NET_DVR_StopRemoteConfig(lHandle);
  2310. }
  2311. public static bool NET_DVR_RemoteControl(int lUserID, int dwCommand, IntPtr lpInBuffer, int dwInBufferSize)
  2312. {
  2313. if (IsWindows)
  2314. return Methods_Win.NET_DVR_RemoteControl(lUserID, dwCommand, lpInBuffer, dwInBufferSize);
  2315. else
  2316. return Methods_Linux.NET_DVR_RemoteControl(lUserID, dwCommand, lpInBuffer, dwInBufferSize);
  2317. }
  2318. public static bool NET_DVR_RemoteControl(int lUserID, int dwCommand, ref NET_DVR_FACE_PARAM_CTRL_CARDNO lpInBuffer, int dwInBufferSize)
  2319. {
  2320. if (IsWindows)
  2321. return Methods_Win.NET_DVR_RemoteControl(lUserID, dwCommand, ref lpInBuffer, dwInBufferSize);
  2322. else
  2323. return Methods_Linux.NET_DVR_RemoteControl(lUserID, dwCommand, ref lpInBuffer, dwInBufferSize);
  2324. }
  2325. public static bool NET_DVR_ContinuousShoot(Int32 lUserID, ref NET_DVR_SNAPCFG lpInter)
  2326. {
  2327. if (IsWindows)
  2328. return Methods_Win.NET_DVR_ContinuousShoot(lUserID, ref lpInter);
  2329. else
  2330. return Methods_Linux.NET_DVR_ContinuousShoot(lUserID, ref lpInter);
  2331. }
  2332. public static bool NET_DVR_ManualSnap(Int32 lUserID, ref NET_DVR_MANUALSNAP lpInter, ref NET_DVR_PLATE_RESULT lpOuter)
  2333. {
  2334. if (IsWindows)
  2335. return Methods_Win.NET_DVR_ManualSnap(lUserID, ref lpInter, ref lpOuter);
  2336. else
  2337. return Methods_Linux.NET_DVR_ManualSnap(lUserID, ref lpInter, ref lpOuter);
  2338. }
  2339. public static bool NET_DVR_GetDeviceAbility(int lUserID, uint dwAbilityType, IntPtr pInBuf, uint dwInLength, IntPtr pOutBuf, uint dwOutLength)
  2340. {
  2341. if (IsWindows)
  2342. return Methods_Win.NET_DVR_GetDeviceAbility(lUserID, dwAbilityType, pInBuf, dwInLength, pOutBuf, dwOutLength);
  2343. else
  2344. return Methods_Linux.NET_DVR_GetDeviceAbility(lUserID, dwAbilityType, pInBuf, dwInLength, pOutBuf, dwOutLength);
  2345. }
  2346. public static bool NET_DVR_SetBehaviorParamKey(int lUserID, int lChannel, uint dwParameterKey, int nValue)
  2347. {
  2348. if (IsWindows)
  2349. return Methods_Win.NET_DVR_SetBehaviorParamKey(lUserID, lChannel, dwParameterKey, nValue);
  2350. else
  2351. return Methods_Linux.NET_DVR_SetBehaviorParamKey(lUserID, lChannel, dwParameterKey, nValue);
  2352. }
  2353. public static bool NET_DVR_GetBehaviorParamKey(int lUserID, int lChannel, uint dwParameterKey, ref int pValue)
  2354. {
  2355. if (IsWindows)
  2356. return Methods_Win.NET_DVR_GetBehaviorParamKey(lUserID, lChannel, dwParameterKey, ref pValue);
  2357. else
  2358. return Methods_Linux.NET_DVR_GetBehaviorParamKey(lUserID, lChannel, dwParameterKey, ref pValue);
  2359. }
  2360. public static bool NET_DVR_GetVCADrawMode(int lUserID, int lChannel, ref NET_VCA_DRAW_MODE lpDrawMode)
  2361. {
  2362. if (IsWindows)
  2363. return Methods_Win.NET_DVR_GetVCADrawMode(lUserID, lChannel, ref lpDrawMode);
  2364. else
  2365. return Methods_Linux.NET_DVR_GetVCADrawMode(lUserID, lChannel, ref lpDrawMode);
  2366. }
  2367. public static bool NET_DVR_SetVCADrawMode(int lUserID, int lChannel, ref NET_VCA_DRAW_MODE lpDrawMode)
  2368. {
  2369. if (IsWindows)
  2370. return Methods_Win.NET_DVR_SetVCADrawMode(lUserID, lChannel, ref lpDrawMode);
  2371. else
  2372. return Methods_Linux.NET_DVR_SetVCADrawMode(lUserID, lChannel, ref lpDrawMode);
  2373. }
  2374. public static bool NET_DVR_SetLFTrackMode(int lUserID, int lChannel, ref NET_DVR_LF_TRACK_MODE lpTrackMode)
  2375. {
  2376. if (IsWindows)
  2377. return Methods_Win.NET_DVR_SetLFTrackMode(lUserID, lChannel, ref lpTrackMode);
  2378. else
  2379. return Methods_Linux.NET_DVR_SetLFTrackMode(lUserID, lChannel, ref lpTrackMode);
  2380. }
  2381. public static bool NET_DVR_GetLFTrackMode(int lUserID, int lChannel, ref NET_DVR_LF_TRACK_MODE lpTrackMode)
  2382. {
  2383. if (IsWindows)
  2384. return Methods_Win.NET_DVR_GetLFTrackMode(lUserID, lChannel, ref lpTrackMode);
  2385. else
  2386. return Methods_Linux.NET_DVR_GetLFTrackMode(lUserID, lChannel, ref lpTrackMode);
  2387. }
  2388. public static bool NET_DVR_GetCCDCfg(int lUserID, int lChannel, ref NET_DVR_CCD_CFG lpCCDCfg)
  2389. {
  2390. if (IsWindows)
  2391. return Methods_Win.NET_DVR_GetCCDCfg(lUserID, lChannel, ref lpCCDCfg);
  2392. else
  2393. return Methods_Linux.NET_DVR_GetCCDCfg(lUserID, lChannel, ref lpCCDCfg);
  2394. }
  2395. public static bool NET_DVR_SetCCDCfg(int lUserID, int lChannel, ref NET_DVR_CCD_CFG lpCCDCfg)
  2396. {
  2397. if (IsWindows)
  2398. return Methods_Win.NET_DVR_SetCCDCfg(lUserID, lChannel, ref lpCCDCfg);
  2399. else
  2400. return Methods_Linux.NET_DVR_SetCCDCfg(lUserID, lChannel, ref lpCCDCfg);
  2401. }
  2402. public static bool NET_DVR_GetParamSetMode(int lUserID, ref uint dwParamSetMode)
  2403. {
  2404. if (IsWindows)
  2405. return Methods_Win.NET_DVR_GetParamSetMode(lUserID, ref dwParamSetMode);
  2406. else
  2407. return Methods_Linux.NET_DVR_GetParamSetMode(lUserID, ref dwParamSetMode);
  2408. }
  2409. public static bool NET_DVR_InquestStartCDW_V30(int lUserID, ref NET_DVR_INQUEST_ROOM lpInquestRoom, bool bNotBurn)
  2410. {
  2411. if (IsWindows)
  2412. return Methods_Win.NET_DVR_InquestStartCDW_V30(lUserID, ref lpInquestRoom, bNotBurn);
  2413. else
  2414. return Methods_Linux.NET_DVR_InquestStartCDW_V30(lUserID, ref lpInquestRoom, bNotBurn);
  2415. }
  2416. public static int PostMessage(IntPtr hWnd, int Msg, int wParam, int lParam)
  2417. {
  2418. if (IsWindows)
  2419. return Methods_Win.PostMessage(hWnd, Msg, wParam, lParam);
  2420. else
  2421. return Methods_Linux.PostMessage(hWnd, Msg, wParam, lParam);
  2422. }
  2423. public static bool NET_VCA_RestartLib(int lUserID, int lChannel)
  2424. {
  2425. if (IsWindows)
  2426. return Methods_Win.NET_VCA_RestartLib(lUserID, lChannel);
  2427. else
  2428. return Methods_Linux.NET_VCA_RestartLib(lUserID, lChannel);
  2429. }
  2430. }
  2431. }