/IntVideoSurv.VideoSource/HCNetSDK.cs
http://longchang.codeplex.com · C# · 11008 lines · 3139 code · 83 blank · 7786 comment · 0 complexity · 24e616ba3cb66e9f359516ba2852f7dc MD5 · raw file
Large files are truncated click here to view the full file
- /// ? ??????
- /// ? ??over140@gmail.com
- /// ? ??http://over140.cnblogs.com/
- /// ? ??2009-10-4 —— 2009-10-22
- /// ? ???????API??
-
- using System;
- using System.Collections.Generic;
- using System.Text;
- using System.Runtime.InteropServices;
-
- namespace DigitMatrix.VideoProcess
- {
-
- public delegate void RealDataCallBack_V30(int lRealHandle, uint dwDataType, byte[] pBuffer, uint dwBufSize, IntPtr pUser);
- /// <summary>
- /// 5.1.2 ?????????[??connect????????]
- /// ??
- /// ??????????????????????????????????????????????????????????????????????????NET_DVR_RealPlay?????
- /// ???????????????????
- /// NET_DVR_API LONG __stdcall NET_DVR_RealPlay_V30(LONG lUserID, LPNET_DVR_CLIENTINFO lpClientInfo, void(CALLBACK *fRealDataCallBack_V30) (LONG lRealHandle, DWORD dwDataType, BYTE *pBuffer, DWORD dwBufSize, void* pUser) = NULL, void* pUser = NULL, BOOL bBlocked = FALSE);
- /// </summary>
- /// <param name="lUserID">[in]NET_DVR_Login??NET_DVR_Login_V30????</param>
- /// <param name="lpClientInfo">[in]NET_DVR_CLIENTINFO?????</param>
- /// <param name="fRealDataCallBack_V30">[in]????????</param>
- /// <param name="pUser">[in]????</param>
- /// <param name="bBlocked">[in]???????????0???1??</param>
- /// <returns>-1??????????NET_DVR_StopRealPlay??????</returns>
- ///
- #region 2.2 ????
- /// <summary>
- /// 2.2.1 ???????
- /// NET_DVR_Login_V30()????
- /// NET_DVR_DEVICEINFO_V30, *LPNET_DVR_DEVICEINFO_V30;
- /// </summary>
- public struct NET_DVR_DEVICEINFO_V30
- {
- /// <summary>
- /// ???
- /// public byte sSerialNumber[SERIALNO_LEN];
- /// </summary>
- [MarshalAs(UnmanagedType.ByValArray, SizeConst = HCNetSDK.SERIALNO_LEN)]
- public byte[] sSerialNumber;
- /// <summary>
- /// ??????
- /// </summary>
- public byte byAlarmInPortNum;
- /// <summary>
- /// ??????
- /// </summary>
- public byte byAlarmOutPortNum;
- /// <summary>
- /// ????
- /// </summary>
- public byte byDiskNum;
- /// <summary>
- /// ????, 1:DVR 2:ATM DVR 3:DVS ......
- /// </summary>
- public byte byDVRType;
- /// <summary>
- /// ??????
- /// </summary>
- public byte byChanNum;
- /// <summary>
- /// ?????,??DVS-1,DVR - 1
- /// </summary>
- public byte byStartChan;
- /// <summary>
- /// ?????
- /// </summary>
- public byte byAudioChanNum;
- /// <summary>
- /// ????????
- /// </summary>
- public byte byIPChanNum;
- /// <summary>
- /// ??
- /// public byte byRes1[24];
- /// </summary>
- [MarshalAs(UnmanagedType.ByValArray, SizeConst = 24)]
- public byte[] byRes1;
- }
- /// <summary>
- /// ???????
- /// NET_DVR_Login()????
- /// NET_DVR_DEVICEINFO, *LPNET_DVR_DEVICEINFO;
- /// </summary>
- public struct NET_DVR_DEVICEINFO
- {
- /// <summary>
- /// ???
- /// public byte sSerialNumber[SERIALNO_LEN];
- /// </summary>
- [MarshalAs(UnmanagedType.ByValArray, SizeConst = HCNetSDK.SERIALNO_LEN)]
- public byte[] sSerialNumber;
- /// <summary>
- /// DVR??????
- /// </summary>
- public byte byAlarmInPortNum;
- /// <summary>
- /// DVR??????
- /// </summary>
- public byte byAlarmOutPortNum;
- /// <summary>
- /// DVR????
- /// </summary>
- public byte byDiskNum;
- /// <summary>
- /// DVR??, 1:DVR 2:ATM DVR 3:DVS ......
- /// </summary>
- public byte byDVRType;
- /// <summary>
- /// DVR ????
- /// </summary>
- public byte byChanNum;
- /// <summary>
- /// ?????,??DVS-1,DVR - 1
- /// </summary>
- public byte byStartChan;
- }
- #endregion
- #region 3.2 SDK??
- /// <summary>
- /// 3.2.1 SDK???????(9000??)
- /// NET_DVR_SDKSTATE, *LPNET_DVR_SDKSTATE;
- /// </summary>
- public struct NET_DVR_SDKSTATE
- {
- /// <summary>
- /// ??login???
- /// </summary>
- public uint dwTotalLoginNum;
- /// <summary>
- /// ??realplay??
- /// </summary>
- public uint dwTotalRealPlayNum;
- /// <summary>
- /// ?????????
- /// </summary>
- public uint dwTotalPlayBackNum;
- /// <summary>
- /// ??????????
- /// </summary>
- public uint dwTotalAlarmChanNum;
- /// <summary>
- /// ?????????
- /// </summary>
- public uint dwTotalFormatNum;
- /// <summary>
- /// ???????????
- /// </summary>
- public uint dwTotalFileSearchNum;
- /// <summary>
- /// ???????????
- /// </summary>
- public uint dwTotalLogSearchNum;
- /// <summary>
- /// ????????
- /// </summary>
- public uint dwTotalSerialNum;
- /// <summary>
- /// ??????
- /// </summary>
- public uint dwTotalUpgradeNum;
- /// <summary>
- /// ????????
- /// </summary>
- public uint dwTotalVoiceComNum;
- /// <summary>
- /// ????????
- /// </summary>
- public uint dwTotalBroadCastNum;
- /// <summary>
- /// ??
- /// public uint dwRes[10];
- /// </summary>
- [MarshalAs(UnmanagedType.ByValArray, SizeConst = 10)]
- public uint[] dwRes;
- }
- /// <summary>
- /// 3.2.2 SDK?????????(9000??)
- /// NET_DVR_SDKABL, *LPNET_DVR_SDKABL;
- /// </summary>
- public struct NET_DVR_SDKABL
- {
- /// <summary>
- /// ??login??? MAX_LOGIN_USERS
- /// </summary>
- public uint dwMaxLoginNum;
- /// <summary>
- /// ??realplay?? WATCH_NUM
- /// </summary>
- public uint dwMaxRealPlayNum;
- /// <summary>
- /// ????????? WATCH_NUM
- /// </summary>
- public uint dwMaxPlayBackNum;
- /// <summary>
- /// ?????????? ALARM_NUM
- /// </summary>
- public uint dwMaxAlarmChanNum;
- /// <summary>
- /// ????????? SERVER_NUM
- /// </summary>
- public uint dwMaxFormatNum;
- /// <summary>
- /// ???????? SERVER_NUM
- /// </summary>
- public uint dwMaxFileSearchNum;
- /// <summary>
- /// ???????? SERVER_NUM
- /// </summary>
- public uint dwMaxLogSearchNum;
- /// <summary>
- /// ???????? SERVER_NUM
- /// </summary>
- public uint dwMaxSerialNum;
- /// <summary>
- /// ?????? SERVER_NUM
- /// </summary>
- public uint dwMaxUpgradeNum;
- /// <summary>
- /// ???????? SERVER_NUM
- /// </summary>
- public uint dwMaxVoiceComNum;
- /// <summary>
- /// ???????? MAX_CASTNUM
- /// </summary>
- public uint dwMaxBroadCastNum;
- /// <summary>
- /// ??
- /// public uint dwRes[10];
- /// </summary>
- [MarshalAs(UnmanagedType.ByValArray, SizeConst = 10)]
- public uint[] dwRes;
- }
- #endregion
- #region 5.2 ????
- /// <summary>
- /// 5.2.1 ???????
- /// ??
- /// ???hPlayWnd?????NULL?????????????????????????
- /// NET_DVR_CLIENTINFO, *LPNET_DVR_CLIENTINFO;
- /// </summary>
- public struct NET_DVR_CLIENTINFO
- {
- /// <summary>
- /// ???
- /// </summary>
- public int lChannel;
- /// <summary>
- /// ???(31)?0???????1????0?30?????????: 0?TCP??,1?UDP??,2?????,3 - RTP???4-?????(TCP)
- /// </summary>
- public int lLinkMode;
- /// <summary>
- /// ???????,?NULL???????
- /// IntPtr hPlayWnd;
- /// </summary>
- public IntPtr hPlayWnd;
- /// <summary>
- /// ?????
- /// char* sMultiCastIP;
- /// </summary>
- public string sMultiCastIP;
- }
- /// <summary>
- /// ????
- /// </summary>
- public enum SEND_MODE
- {
- /// <summary>
- /// TCP ??
- /// </summary>
- PTOPTCPMODE = 0,
- /// <summary>
- /// UDP ??
- /// </summary>
- PTOPUDPMODE,
- /// <summary>
- /// ????
- /// </summary>
- MULTIMODE,
- /// <summary>
- /// RTP??
- /// </summary>
- RTPMODE,
- /// <summary>
- /// ??
- /// </summary>
- RESERVEDMODE
- }
- #endregion
- /// <summary>
- /// NET_DVR_API????????
- /// DS-90xx????????
- /// DS-91xx?DS-81xx?DS-80xx?DS-70xx?DS-71xx?DS-7116?DS-72xx?????
- /// DS-60xx?DS-61xx???????/???
- /// IP?????IP???IP????????“IPC”??IP???
- /// </summary>
- public sealed class HCNetSDK
- {
- #region ???
- /// <summary>
- /// DVR?????
- /// </summary>
- public const int MAX_NAMELEN = 16;
- /// <summary>
- /// ????????1-12???????13-32???????
- /// </summary>
- public const int MAX_RIGHT = 32;
- /// <summary>
- /// ?????
- /// </summary>
- public const int NAME_LEN = 32;
- /// <summary>
- /// /????
- /// </summary>
- public const int PASSWD_LEN = 16;
- /// <summary>
- /// ?????
- /// </summary>
- public const int SERIALNO_LEN = 48;
- /// <summary>
- /// mac????
- /// </summary>
- public const int MACADDR_LEN = 6;
- /// <summary>
- /// ????????
- /// </summary>
- public const int MAX_ETHERNET = 2;
- /// <summary>
- /// ????
- /// </summary>
- public const int PATHNAME_LEN = 128;
-
- /// <summary>
- /// 9000????????
- /// </summary>
- public const int MAX_TIMESEGMENT_V30 = 8;
- /// <summary>
- /// 8000????????
- /// </summary>
- public const int MAX_TIMESEGMENT = 4;
-
- /// <summary>
- /// 8000?????????
- /// </summary>
- public const int MAX_SHELTERNUM = 4;
- /// <summary>
- /// ????
- /// </summary>
- public const int MAX_DAYS = 7;
- /// <summary>
- /// pppoe????????
- /// </summary>
- public const int PHONENUMBER_LEN = 32;
-
- /// <summary>
- /// 9000???????/* ??33???(??16???SATA???1?eSATA???16?NFS?) */
- /// </summary>
- public const int MAX_DISKNUM_V30 = 33;
- /// <summary>
- /// 8000???????
- /// </summary>
- public const int MAX_DISKNUM = 16;
- /// <summary>
- /// 1.2??????
- /// </summary>
- public const int MAX_DISKNUM_V10 = 8;
-
- /// <summary>
- /// 9000?????????????
- /// </summary>
- public const int MAX_WINDOW_V30 = 32;
- /// <summary>
- /// 8000???????
- /// </summary>
- public const int MAX_WINDOW = 16;
- /// <summary>
- /// 9000??????VGA?
- /// </summary>
- public const int MAX_VGA_V30 = 4;
- /// <summary>
- /// 8000??????VGA?
- /// </summary>
- public const int MAX_VGA = 1;
-
- /// <summary>
- /// 9000???????
- /// </summary>
- public const int MAX_USERNUM_V30 = 32;
- /// <summary>
- /// 8000???????
- /// </summary>
- public const int MAX_USERNUM = 16;
- /// <summary>
- /// 9000?????????
- /// </summary>
- public const int MAX_EXCEPTIONNUM_V30 = 32;
- /// <summary>
- /// 8000?????????
- /// </summary>
- public const int MAX_EXCEPTIONNUM = 16;
- /// <summary>
- /// 8000?????????????
- /// </summary>
- public const int MAX_LINK = 6;
-
- /// <summary>
- /// ???????????????????
- /// </summary>
- public const int MAX_DECPOOLNUM = 4;
- /// <summary>
- /// ????????????????????????????
- /// </summary>
- public const int MAX_DECNUM = 4;
- /// <summary>
- /// ???????????????
- /// </summary>
- public const int MAX_TRANSPARENTNUM = 2;
- /// <summary>
- /// ????????????
- /// </summary>
- public const int MAX_CYCLE_CHAN = 16;
- /// <summary>
- /// ??????
- /// </summary>
- public const int MAX_DIRNAME_LENGTH = 80;
- /// <summary>
- /// 9000????OSD?????
- /// </summary>
- public const int MAX_STRINGNUM_V30 = 8;
- /// <summary>
- /// 8000????OSD?????
- /// </summary>
- public const int MAX_STRINGNUM = 4;
- /// <summary>
- /// 8000????
- /// </summary>
- public const int MAX_STRINGNUM_EX = 8;
- /// <summary>
- /// 9000?????????
- /// </summary>
- public const int MAX_AUXOUT_V30 = 16;
- /// <summary>
- /// 8000?????????
- /// </summary>
- public const int MAX_AUXOUT = 4;
- /// <summary>
- /// 9000????????
- /// </summary>
- public const int MAX_HD_GROUP = 16;
- /// <summary>
- /// 8000????NFS???
- /// </summary>
- public const int MAX_NFS_DISK = 8;
-
- /// <summary>
- /// WIFI?SSID???
- /// </summary>
- public const int IW_ESSID_MAX_SIZE = 32;
- /// <summary>
- /// WIFI???????
- /// </summary>
- public const int IW_ENCODING_TOKEN_MAX = 32;
- /// <summary>
- /// ???????????
- /// </summary>
- public const int MAX_SERIAL_NUM = 64;
- /// <summary>
- /// 9000??????ddns?
- /// </summary>
- public const int MAX_DDNS_NUMS = 10;
- /// <summary>
- /// /* ?????? */
- /// </summary>
- public const int MAX_DOMAIN_NAME = 64;
- /// <summary>
- /// ??email????
- /// </summary>
- public const int MAX_EMAIL_ADDR_LEN = 48;
- /// <summary>
- /// ??email????
- /// </summary>
- public const int MAX_EMAIL_PWD_LEN = 32;
-
- /// <summary>
- /// ?????????
- /// </summary>
- public const int MAXPROGRESS = 100;
- /// <summary>
- /// 8000???????? 1-232? 2-485
- /// </summary>
- public const int MAX_SERIALNUM = 2;
- /// <summary>
- /// ????
- /// </summary>
- public const int CARDNUM_LEN = 20;
- /// <summary>
- /// 9000????????
- /// </summary>
- public const int MAX_VIDEOOUT_V30 = 4;
- /// <summary>
- /// 8000????????
- /// </summary>
- public const int MAX_VIDEOOUT = 2;
- #region ????
- /// <summary>
- /// 9000???????????
- /// </summary>
- public const int MAX_PRESET_V30 = 256;
- /// <summary>
- /// 9000??????????
- /// </summary>
- public const int MAX_TRACK_V30 = 256;
- /// <summary>
- /// 9000??????????
- /// </summary>
- public const int MAX_CRUISE_V30 = 256;
- /// <summary>
- /// 8000???????????
- /// </summary>
- public const int MAX_PRESET = 128;
- /// <summary>
- /// 8000??????????
- /// </summary>
- public const int MAX_TRACK = 128;
- /// <summary>
- /// 8000??????????
- /// </summary>
- public const int MAX_CRUISE = 128;
-
- /// <summary>
- /// ??????????
- /// </summary>
- public const int CRUISE_MAX_PRESET_NUMS = 32;
-
- /// <summary>
- /// 9000????232???
- /// </summary>
- public const int MAX_SERIAL_PORT = 8;
- /// <summary>
- /// ???????????? 1??,4??,9??,16??....
- /// </summary>
- public const int MAX_PREVIEW_MODE = 8;
- /// <summary>
- /// ??????????
- /// </summary>
- public const int MAX_MATRIXOUT = 16;
- /// <summary>
- /// ??????
- /// </summary>
- public const int LOG_INFO_LEN = 11840;
- /// <summary>
- /// ?????????
- /// </summary>
- public const int DESC_LEN = 16;
- /// <summary>
- /// 9000??????????
- /// </summary>
- public const int PTZ_PROTOCOL_NUM = 200;
-
- /// <summary>
- /// 8000???????
- /// </summary>
- public const int MAX_AUDIO = 1;
- /// <summary>
- /// 9000???????
- /// </summary>
- public const int MAX_AUDIO_V30 = 2;
- /// <summary>
- /// 8000???????
- /// </summary>
- public const int MAX_CHANNUM = 16;
- /// <summary>
- /// 8000?????????
- /// </summary>
- public const int MAX_ALARMIN = 16;
- /// <summary>
- /// 8000?????????
- /// </summary>
- public const int MAX_ALARMOUT = 4;
- #endregion
- #region 9000 IPC??
- /// <summary>
- /// ??32?????
- /// </summary>
- public const int MAX_ANALOG_CHANNUM = 32;
- /// <summary>
- /// ??32???????
- /// </summary>
- public const int MAX_ANALOG_ALARMOUT = 32;
- /// <summary>
- /// ??32???????
- /// </summary>
- public const int MAX_ANALOG_ALARMIN = 32;
- /// <summary>
- /// ???????IP???
- /// </summary>
- public const int MAX_IP_DEVICE = 32;
- /// <summary>
- /// ???????IP???
- /// </summary>
- public const int MAX_IP_CHANNEL = 32;
- /// <summary>
- /// ????????????
- /// </summary>
- public const int MAX_IP_ALARMIN = 128;
- /// <summary>
- /// ????????????
- /// </summary>
- public const int MAX_IP_ALARMOUT = 64;
-
- /* ???????? ????????IP?? */
- public const int MAX_CHANNUM_V30 = (MAX_ANALOG_CHANNUM + MAX_IP_CHANNEL);//64
- public const int MAX_ALARMOUT_V30 = (MAX_ANALOG_ALARMOUT + MAX_IP_ALARMOUT);//96
- public const int MAX_ALARMIN_V30 = (MAX_ANALOG_ALARMIN + MAX_IP_ALARMIN);//160
- #endregion
-
-
- #endregion
-
-
-
- #region 1. ???
- #region 1.1 ???
- /// <summary>
- /// 1.1.1 ???SDK
- /// </summary>
- /// <returns>TRUE?????FALSE????</returns>
- [DllImport("HCNetSDK.dll")]
- public static extern bool NET_DVR_Init();
- /// <summary>
- /// 1.1.2 ??SDK??
- /// </summary>
- /// <returns>TRUE?????FALSE????</returns>
- [DllImport("HCNetSDK.dll")]
- public static extern bool NET_DVR_Cleanup();
- #region 1.1.3 NET_DVR_IsSupport
- /*************************************************
- NET_DVR_IsSupport()???
- 1?9?????????????TRUE)?????
- **************************************************/
- /// <summary>
- /// ??DIRECTDRAW????????????????
- /// </summary>
- public const int NET_DVR_SUPPORT_DDRAW = 0x01;//
- /// <summary>
- /// ????BLT??????????????????
- /// </summary>
- public const int NET_DVR_SUPPORT_BLT = 0x02;//
- /// <summary>
- /// ??BLT???????????????????????RGB???
- /// </summary>
- public const int NET_DVR_SUPPORT_BLTFOURCC = 0x04;//
- /// <summary>
- /// ??BLT??X?????????????????????
- /// </summary>
- public const int NET_DVR_SUPPORT_BLTSHRINKX = 0x08;//
- /// <summary>
- /// ??BLT??Y?????????????????????
- /// </summary>
- public const int NET_DVR_SUPPORT_BLTSHRINKY = 0x10;//
- /// <summary>
- /// ??BLT??X?????????????????????
- /// </summary>
- public const int NET_DVR_SUPPORT_BLTSTRETCHX = 0x20;//
- /// <summary>
- /// ??BLT??Y?????????????????????
- /// </summary>
- public const int NET_DVR_SUPPORT_BLTSTRETCHY = 0x40;//
- /// <summary>
- /// CPU??SSE???Intel Pentium3????SSE???
- /// </summary>
- public const int NET_DVR_SUPPORT_SSE = 0x80;//
- /// <summary>
- /// CPU??MMX????Intel Pentium3????SSE???
- /// </summary>
- public const int NET_DVR_SUPPORT_MMX = 0x100;//
- /// <summary>
- /// 1.1.3 ????????PC????????(?????)
- /// NET_DVR_API int __stdcall NET_DVR_IsSupport();
- /// </summary>
- /// <returns>
- /// 1?9?????????????TRUE??????
- /// #define NET_DVR_SUPPORT_DDRAW 0x01 ??DIRECTDRAW???????????????
- /// #define NET_DVR_SUPPORT_BLT 0x02 ????BLT?????????????????
- /// #define NET_DVR_SUPPORT_BLTFOURCC 0x04 ??BLT???????????????????????RGB??
- /// #define NET_DVR_SUPPORT_BLTSHRINKX 0x08 ??BLT??X????????????????????
- /// #define NET_DVR_SUPPORT_BLTSHRINKY 0x10 ??BLT??Y????????????????????
- /// #define NET_DVR_SUPPORT_BLTSTRETCHX 0x20 ??BLT??X????????????????????
- /// #define NET_DVR_SUPPORT_BLTSTRETCHY 0x40 ??BLT??Y????????????????????
- /// #define NET_DVR_SUPPORT_SSE 0x80 CPU??SSE???Intel Pentium3????SSE??
- /// #define NET_DVR_SUPPORT_MMX 0x100 CPU??MMX????Intel Pentium3????SSE??
- /// </returns>
- [DllImport("HCNetSDK.dll")]
- public static extern int NET_DVR_IsSupport();
- #endregion
- /// <summary>
- /// 1.1.4 ???????????????
- /// NET_DVR_API BOOL __stdcall NET_DVR_SetConnectTime(DWORD dwWaitTime = 5000, DWORD dwTryTimes = 3);
- /// </summary>
- /// <param name="dwWaitTime">[in]?????????? ??????>300?<60*1000?</param>
- /// <param name="dwTryTimes">[in]????????????</param>
- /// <returns></returns>
- [DllImport("HCNetSDK.dll")]
- public static extern bool NET_DVR_SetConnectTime(uint dwWaitTime, uint dwTryTimes);
- /// <summary>
- /// 1.1.5 ??IPServer??????IP??
- /// ??
- /// ?????????????????
- /// IPServer???????????????????
- /// NET_DVR_API BOOL __stdcall NET_DVR_GetDVRIPByResolveSvr(char *sServerIP, WORD wServerPort, BYTE *sDVRName,WORD wDVRNameLen,BYTE *sDVRSerialNumber,WORD wDVRSerialLen,char* sGetIP);
- /// </summary>
- /// <param name="sServerIP">[in]??????IP??</param>
- /// <param name="wServerPort">[in]?????????????????????IPServer?????7071</param>
- /// <param name="sDVRName">[in]????????NULL</param>
- /// <param name="wDVRNameLen">[in]???????</param>
- /// <param name="sDVRSerialNumber">[in]??????????NULL</param>
- /// <param name="wDVRSerialLen">[in]????????</param>
- /// <param name="sGetIP">[out]??????IP?????</param>
- /// <returns></returns>
- [DllImport("HCNetSDK.dll")]
- public static extern bool NET_DVR_GetDVRIPByResolveSvr(string sServerIP, ushort wServerPort, string sDVRName, ushort wDVRNameLen, string sDVRSerialNumber, ushort wDVRSerialLen, StringBuilder sGetIP);
- #endregion
- #region 1.2 ??????
- #region 1.2.1 ???????
- /// <summary>
- /// ???????
- /// </summary>
- public const int EXCEPTION_EXCHANGE = 0x8000;
- /// <summary>
- /// ??????
- /// </summary>
- public const int EXCEPTION_AUDIOEXCHANGE = 0x8001;
- /// <summary>
- /// ????
- /// </summary>
- public const int EXCEPTION_ALARM = 0x8002;
- /// <summary>
- /// ??????
- /// </summary>
- public const int EXCEPTION_PREVIEW = 0x8003;
- /// <summary>
- /// ??????
- /// </summary>
- public const int EXCEPTION_SERIAL = 0x8004;
- /// <summary>
- /// ?????
- /// </summary>
- public const int EXCEPTION_RECONNECT = 0x8005;
- /// <summary>
- /// ?????
- /// </summary>
- public const int EXCEPTION_ALARMRECONNECT = 0x8006;
- /// <summary>
- /// ??????
- /// </summary>
- public const int EXCEPTION_SERIALRECONNECT = 0x8007;
- /// <summary>
- /// ????
- /// </summary>
- public const int EXCEPTION_PLAYBACK = 0x8010;
- /// <summary>
- /// ?????
- /// </summary>
- public const int EXCEPTION_DISKFMT = 0x8011;
- #endregion
- /// <summary>
- /// ????????
- /// void (CALLBACK* fExceptionCallBack)(uint dwType, int lUserID, int lHandle, void *pUser)
- /// </summary>
- /// <param name="dwType">???????????</param>
- /// <param name="lUserID">??ID</param>
- /// <param name="lHandle">????????????</param>
- /// <param name="pUser">???????</param>
- public delegate void ExceptionCallBack(uint dwType, int lUserID, int lHandle, int pUser);
- /// <summary>
- /// 1.2.2 ??????????????????????
- /// NET_DVR_API BOOL __stdcall NET_DVR_SetExceptionCallBack_V30(UINT nMessage, HWND hWnd, void (CALLBACK* fExceptionCallBack)(DWORD dwType, LONG lUserID, LONG lHandle, void *pUser), void *pUser);
- /// </summary>
- /// <param name="nMessage">[in]???????WM_USER + 1</param>
- /// <param name="hWnd">[in]?????????</param>
- /// <param name="fExceptionCallBack">[in]????????</param>
- /// <param name="pUser">[in]????</param>
- /// <returns></returns>
- [DllImport("HCNetSDK.dll")]
- public static extern bool NET_DVR_SetExceptionCallBack_V30(uint nMessage, IntPtr hWnd, ExceptionCallBack fExceptionCallBack, IntPtr pUser);
- /// <summary>
- /// 1.2.3 ???????????????
- /// NET_DVR_API BOOL __stdcall NET_DVR_SetDVRMessage(UINT nMessage,HWND hWnd);
- /// </summary>
- /// <param name="nMessage">[in]??</param>
- /// <param name="hWnd">[in]?????????????</param>
- /// <returns></returns>
- [DllImport("HCNetSDK.dll")]
- public static extern bool NET_DVR_SetDVRMessage(uint nMessage, IntPtr hWnd);
-
- #endregion
- #endregion
-
-
- #region 2. ????
- #region 2.1 ????
- #region 2.1.1 ????
- /// <summary>
- /// 2.1.1 ????(????)
- /// NET_DVR_API LONG __stdcall NET_DVR_Login_V30(char *sDVRIP, WORD wDVRPort, char *sUserName, char *sPassword, LPNET_DVR_DEVICEINFO_V30 lpDeviceInfo);
- /// </summary>
- /// <param name="sDVRIP">[in]???IP??</param>
- /// <param name="wDVRPort">[in]??????</param>
- /// <param name="sUserName">[in]??????</param>
- /// <param name="sPassword">[in]????</param>
- /// <param name="lpDeviceInfo">[out]??NET_DVR_DEVICEINFO_V30??</param>
- /// <returns>?????ID?</returns>
- [DllImport("HCNetSDK.dll")]
- public static extern int NET_DVR_Login_V30(string sDVRIP, ushort wDVRPort, string sUserName, string sPassword, out NET_DVR_DEVICEINFO_V30 lpDeviceInfo);
- /// <summary>
- /// ????(????)
- /// NET_DVR_API LONG __stdcall NET_DVR_Login(char *sDVRIP,WORD wDVRPort,char *sUserName,char *sPassword,LPNET_DVR_DEVICEINFO lpDeviceInfo);
- /// </summary>
- /// <param name="sDVRIP">[in]???IP??</param>
- /// <param name="wDVRPort">[in]??????</param>
- /// <param name="sUserName">[in]??????</param>
- /// <param name="sPassword">[in]????</param>
- /// <param name="lpDeviceInfo">[out]??NET_DVR_DEVICEINFO??</param>
- /// <returns>-1???????????????ID???ID???SDK???????ID?????????</returns>
- [DllImport("HCNetSDK.dll")]
- public static extern int NET_DVR_Login(string sDVRIP, ushort wDVRPort, string sUserName, string sPassword, out NET_DVR_DEVICEINFO lpDeviceInfo);
- #endregion
- #region 2.1.2 ????
- /// <summary>
- /// 2.1.2 ????
- /// ??
- /// ????????????????????????ID??????????????????
- /// ??
- /// NET_DVR_Logout_V30?????????????????????????????
- /// ? NET_DVR_Logout????????????????????
- /// NET_DVR_API BOOL __stdcall NET_DVR_Logout_V30(LONG lUserID);
- /// </summary>
- /// <param name="lUserID">[in] NET_DVR_Login??NET_DVR_Login_V30????</param>
- /// <returns></returns>
- [DllImport("HCNetSDK.dll")]
- public static extern bool NET_DVR_Logout_V30(int lUserID);
- /// <summary>
- /// ????
- /// NET_DVR_API BOOL __stdcall NET_DVR_Logout(LONG lUserID);
- /// </summary>
- /// <param name="lUserID">[in]??ID???NET_DVR_Login??NET_DVR_Login_V30???ID?</param>
- /// <returns></returns>
- [DllImport("HCNetSDK.dll")]
- public static extern bool NET_DVR_Logout(int lUserID);
- #endregion
- #endregion
- #endregion
- #region 3. SDK??
- #region 3.1 SDK??
- /// <summary>
- /// 3.1.1 ??SDK???
- /// NET_DVR_API DWORD __stdcall NET_DVR_GetSDKVersion();
- /// </summary>
- /// <returns>2??????????2????????????0x00020001????2.1</returns>
- [DllImport("HCNetSDK.dll")]
- public static extern uint NET_DVR_GetSDKVersion();
- /// <summary>
- /// 3.1.2 ??SDK build?
- /// NET_DVR_API DWORD __stdcall NET_DVR_GetSDKBuildVersion();
- /// </summary>
- /// <returns></returns>
- [DllImport("HCNetSDK.dll")]
- public static extern uint NET_DVR_GetSDKBuildVersion();
- /// <summary>
- /// 3.1.3 ????SDK???
- /// NET_DVR_API BOOL __stdcall NET_DVR_GetSDKState(LPNET_DVR_SDKSTATE pSDKState);
- /// </summary>
- /// <param name="pSDKState">[out]??NET_DVR_SDKSTATE????</param>
- /// <returns></returns>
- [DllImport("HCNetSDK.dll")]
- public static extern bool NET_DVR_GetSDKState(out NET_DVR_SDKSTATE pSDKState);
- /// <summary>
- /// 3.1.4 ??SDK?????
- /// NET_DVR_API BOOL __stdcall NET_DVR_GetSDKAbility(LPNET_DVR_SDKABL pSDKAbl);
- /// </summary>
- /// <param name="pSDKAbl">[out]??NET_DVR_SDKABL????</param>
- /// <returns></returns>
- [DllImport("HCNetSDK.dll")]
- public static extern bool NET_DVR_GetSDKAbility(out NET_DVR_SDKABL pSDKAbl);
- /// <summary>
- /// 3.1.5 SDK?????????????
- /// NET_DVR_API BOOL __stdcall NET_DVR_SetLogToFile(BOOL bLogEnable = FALSE, char * strLogDir = NULL, BOOL bAutoDel = TRUE);
- /// ??
- /// ????????? ???????????????????
- /// ???????????????"\\"??, ??"C:\\SdkLog\\"
- /// ?????????????????????????
- /// ????strLogDir?NULL????????"C:\\SdkLog\\"
- /// ???????????????????????????????????????????????????????????????????
- /// ????SDK??????10????????bAutoDel?TRUE????????????
- /// </summary>
- /// <param name="bLogEnable">[in]????</param>
- /// <param name="strLogDir">[in]???????</param>
- /// <param name="bAutoDel">[in]??????????</param>
- /// <returns></returns>
- [DllImport("HCNetSDK.dll")]
- public static extern bool NET_DVR_SetLogToFile(bool bLogEnable, string strLogDir, bool bAutoDel);
- #endregion
- #endregion
- #region 4. ??????
- #region 4.1 ??????
- /// <summary>
- /// 4.1.1 ??????
- /// ?????[4.2.1 ????????]
- /// </summary>
- /// <returns></returns>
- [DllImport("HCNetSDK.dll")]
- public static extern uint NET_DVR_GetLastError();
- /// <summary>
- /// 4.1.2 ???????
- /// NET_DVR_API char* __stdcall NET_DVR_GetErrorMsg(LONG *pErrorNo = NULL);
- /// </summary>
- /// <param name="pErrorNo">[out]????????????????????????</param>
- /// <returns></returns>
- [DllImport("HCNetSDK.dll")]
- public static extern string NET_DVR_GetErrorMsg(out int pErrorNo);
- #endregion
- #region 4.2 ????
- #region 4.2.1 ????????
- public const int NET_DVR_FAIL = -1;
- /// <summary>
- /// ????
- /// </summary>
- public const int NET_DVR_NOERROR = 0;
- /// <summary>
- /// ???????
- /// </summary>
- public const int NET_DVR_PASSWORD_ERROR = 1;
- /// <summary>
- /// ????
- /// </summary>
- public const int NET_DVR_NOENOUGHPRI = 2;
- /// <summary>
- /// ?????
- /// </summary>
- public const int NET_DVR_NOINIT = 3;
- /// <summary>
- /// ?????
- /// </summary>
- public const int NET_DVR_CHANNEL_ERROR = 4;
- /// <summary>
- /// ???DVR??????????
- /// </summary>
- public const int NET_DVR_OVER_MAXLINK = 5;
- /// <summary>
- /// ?????
- /// </summary>
- public const int NET_DVR_VERSIONNOMATCH = 6;
- /// <summary>
- /// ???????
- /// </summary>
- public const int NET_DVR_NETWORK_FAIL_CONNECT = 7;
- /// <summary>
- /// ????????
- /// </summary>
- public const int NET_DVR_NETWORK_SEND_ERROR = 8;
- /// <summary>
- /// ??????????
- /// </summary>
- public const int NET_DVR_NETWORK_RECV_ERROR = 9;
- /// <summary>
- /// ??????????
- /// </summary>
- public const int NET_DVR_NETWORK_RECV_TIMEOUT = 10;
- /// <summary>
- /// ???????
- /// </summary>
- public const int NET_DVR_NETWORK_ERRORDATA = 11;
- /// <summary>
- /// ??????
- /// </summary>
- public const int NET_DVR_ORDER_ERROR = 12;
- /// <summary>
- /// ????
- /// </summary>
- public const int NET_DVR_OPERNOPERMIT = 13;
- /// <summary>
- /// DVR??????
- /// </summary>
- public const int NET_DVR_COMMANDTIMEOUT = 14;
- /// <summary>
- /// ?????
- /// </summary>
- public const int NET_DVR_ERRORSERIALPORT = 15;
- /// <summary>
- /// ??????
- /// </summary>
- public const int NET_DVR_ERRORALARMPORT = 16;
- /// <summary>
- /// ????
- /// </summary>
- public const int NET_DVR_PARAMETER_ERROR = 17;
- /// <summary>
- /// ???????????
- /// </summary>
- public const int NET_DVR_CHAN_EXCEPTION = 18;
- /// <summary>
- /// ????
- /// </summary>
- public const int NET_DVR_NODISK = 19;
- /// <summary>
- /// ?????
- /// </summary>
- public const int NET_DVR_ERRORDISKNUM = 20;
- /// <summary>
- /// ??????
- /// </summary>
- public const int NET_DVR_DISK_FULL = 21;
- /// <summary>
- /// ???????
- /// </summary>
- public const int NET_DVR_DISK_ERROR = 22;
- /// <summary>
- /// ??????
- /// </summary>
- public const int NET_DVR_NOSUPPORT = 23;
- /// <summary>
- /// ????
- /// </summary>
- public const int NET_DVR_BUSY = 24;
- /// <summary>
- /// ????????
- /// </summary>
- public const int NET_DVR_MODIFY_FAIL = 25;
- /// <summary>
- /// ?????????
- /// </summary>
- public const int NET_DVR_PASSWORD_FORMAT_ERROR = 26;
- /// <summary>
- /// ??????????????
- /// </summary>
- public const int NET_DVR_DISK_FORMATING = 27;
- /// <summary>
- /// DVR????
- /// </summary>
- public const int NET_DVR_DVRNORESOURCE = 28;
- /// <summary>
- /// DVR????
- /// </summary>
- public const int NET_DVR_DVROPRATEFAILED = 29;
- /// <summary>
- /// ??PC????
- /// </summary>
- public const int NET_DVR_OPENHOSTSOUND_FAIL = 30;
- /// <summary>
- /// ??????????
- /// </summary>
- public const int NET_DVR_DVRVOICEOPENED = 31;
- /// <summary>
- /// ???????
- /// </summary>
- public const int NET_DVR_TIMEINPUTERROR = 32;
- /// <summary>
- /// ?????????????
- /// </summary>
- public const int NET_DVR_NOSPECFILE = 33;
- /// <summary>
- /// ??????
- /// </summary>
- public const int NET_DVR_CREATEFILE_ERROR = 34;
- /// <summary>
- /// ??????
- /// </summary>
- public const int NET_DVR_FILEOPENFAIL = 35;
- /// <summary>
- /// ??????????
- /// </summary>
- public const int NET_DVR_OPERNOTFINISH = 36;
- /// <summary>
- /// ???????????
- /// </summary>
- public const int NET_DVR_GETPLAYTIMEFAIL = 37;
- /// <summary>
- /// ????
- /// </summary>
- public const int NET_DVR_PLAYFAIL = 38;
- /// <summary>
- /// ???????
- /// </summary>
- public const int NET_DVR_FILEFORMAT_ERROR = 39;
- /// <summary>
- /// ????
- /// </summary>
- public const int NET_DVR_DIR_ERROR = 40;
- /// <summary>
- /// ??????
- /// </summary>
- public const int NET_DVR_ALLOC_RESOURCE_ERROR = 41;
- /// <summary>
- /// ??????
- /// </summary>
- public const int NET_DVR_AUDIO_MODE_ERROR = 42;
- /// <summary>
- /// ?????
- /// </summary>
- public const int NET_DVR_NOENOUGH_BUF = 43;
- /// <summary>
- /// ??SOCKET??
- /// </summary>
- public const int NET_DVR_CREATESOCKET_ERROR = 44;
- /// <summary>
- /// ??SOCKET??
- /// </summary>
- public const int NET_DVR_SETSOCKET_ERROR = 45;
- /// <summary>
- /// ??????
- /// </summary>
- public const int NET_DVR_MAX_NUM = 46;
- /// <summary>
- /// ?????
- /// </summary>
- public const int NET_DVR_USERNOTEXIST = 47;
- /// <summary>
- /// ?FLASH??
- /// </summary>
- public const int NET_DVR_WRITEFLASHERROR = 48;
- /// <summary>
- /// DVR????
- /// </summary>
- public const int NET_DVR_UPGRADEFAIL = 49;
- /// <summary>
- /// ?????????
- /// </summary>
- public const int NET_DVR_CARDHAVEINIT = 50;
- /// <summary>
- /// ????????????
- /// </summary>
- public const int NET_DVR_PLAYERFAILED = 51;
- /// <summary>
- /// ??????????
- /// </summary>
- public const int NET_DVR_MAX_USERNUM = 52;
- /// <summary>
- /// ??????IP?????????
- /// </summary>
- public const int NET_DVR_GETLOCALIPANDMACFAIL = 53;
- /// <summary>
- /// ???????
- /// </summary>
- public const int NET_DVR_NOENCODEING = 54;
- /// <summary>
- /// IP?????
- /// </summary>
- public const int NET_DVR_IPMISMATCH = 55;
- /// <summary>
- /// MAC?????
- /// </summary>
- public const int NET_DVR_MACMISMATCH = 56;
- /// <summary>
- /// ?????????
- /// </summary>
- public const int NET_DVR_UPGRADELANGMISMATCH = 57;
- /// <summary>
- /// ?????????
- /// </summary>
- public const int NET_DVR_MAX_PLAYERPORT = 58;
- /// <summary>
- /// ???????????????
- /// </summary>
- public const int NET_DVR_NOSPACEBACKUP = 59;
- /// <summary>
- /// ???????????
- /// </summary>
- public const int NET_DVR_NODEVICEBACKUP = 60;
- /// <summary>
- /// ?????????24?
- /// </summary>
- public const int NET_DVR_PICTURE_BITS_ERROR = 61;
- /// <summary>
- /// ???*???? ?128*256
- /// </summary>
- public const int NET_DVR_PICTURE_DIMENSION_ERROR = 62;
- /// <summary>
- /// ????????100K
- /// </summary>
- public const int NET_DVR_PICTURE_SIZ_ERROR = 63;
- /// <summary>
- /// ???????Player Sdk??
- /// </summary>
- public const int NET_DVR_LOADPLAYERSDKFAILED = 64;
- /// <summary>
- /// ???Player Sdk???????
- /// </summary>
- public const int NET_DVR_LOADPLAYERSDKPROC_ERROR = 65;
- /// <summary>
- /// ???????DSsdk??
- /// </summary>
- public const int NET_DVR_LOADDSSDKFAILED = 66;
- /// <summary>
- /// ???DsSdk???????
- /// </summary>
- public const int NET_DVR_LOADDSSDKPROC_ERROR = 67;
- /// <summary>
- /// ??????DsSdk???????
- /// </summary>
- public const int NET_DVR_DSSDK_ERROR = 68;
- /// <summary>
- /// ?????
- /// </summary>
- public const int NET_DVR_VOICEMONOPOLIZE = 69;
- /// <summary>
- /// ???????
- /// </summary>
- public const int NET_DVR_JOINMULTICASTFAILED = 70;
- /// <summary>
- /// ??????????
- /// </summary>
- public const int NET_DVR_CREATEDIR_ERROR = 71;
- /// <summary>
- /// ???????
- /// </summary>
- public const int NET_DVR_BINDSOCKET_ERROR = 72;
- /// <summary>
- /// socket????????????????????????
- /// </summary>
- public const int NET_DVR_SOCKETCLOSE_ERROR = 73;
- /// <summary>
- /// ?????ID???????
- /// </summary>
- public const int NET_DVR_USERID_ISUSING = 74;
- /// <summary>
- /// ????
- /// </summary>
- public const int NET_DVR_SOCKETLISTEN_ERROR = 75;
- /// <summary>
- /// ????
- /// </summary>
- public const int NET_DVR_PROGRAM_EXCEPTION = 76;
- /// <summary>
- /// ?????
- /// </summary>
- public const int NET_DVR_WRITEFILE_FAILED = 77;
- /// <summary>
- /// ?????????
- /// </summary>
- public const int NET_DVR_FORMAT_READONLY = 78;
- /// <summary>
- /// ???????????????
- /// </summary>
- public const int NET_DVR_WITHSAMEUSERNAME = 79;
- /// <summary>
- /// ????????????
- /// </summary>
- public const int NET_DVR_DEVICETYPE_ERROR = 80;
- /// <summary>
- /// ??????????
- /// </summary>
- public const int NET_DVR_LANGUAGE_ERROR = 81;
- /// <summary>
- /// ????????????
- /// </summary>
- public const int NET_DVR_PARAVERSION_ERROR = 82;
- /// <summary>
- /// ?????IP?????
- /// </summary>
- public const int NET_DVR_IPCHAN_NOTALIVE = 83;
- /// <summary>
- /// ????IPC???StreamTransClient??
- /// </summary>
- public const int NET_DVR_RTSP_SDK_ERROR = 84;
- /// <summary>
- /// ?????CVT_StdToHik??
- /// </summary>
- public const int NET_DVR_CONVERT_SDK_ERROR = 85;
- /// <summary>
- /// ?????ip?????
- /// </summary>
- public const int NET_DVR_IPC_COUNT_OVERFLOW = 86;
- #endregion
- #region 4.2.1 ???????
- /// <summary>
- /// no error.
- /// </summary>
- public const int NET_PLAYM4_NOERROR = 500;
- /// <summary>
- /// input parameter is invalid.
- /// </summary>
- public const int NET_PLAYM4_PARA_OVER = 501;
- /// <summary>
- /// The order of the function to be called is error.
- /// </summary>
- public const int NET_PLAYM4_ORDER_ERROR = 502;
- /// <summary>
- /// Create multimedia clock failed.
- /// </summary>
- public const int NET_PLAYM4_TIMER_ERROR = 503;
- /// <summary>
- /// Decode video data failed.
- /// </summary>
- public const int NET_PLAYM4_DEC_VIDEO_ERROR = 504;
- /// <summary>
- /// Decode audio data failed.
- /// </summary>
- public const int NET_PLAYM4_DEC_AUDIO_ERROR = 505;
- /// <summary>
- /// Allocate memory failed.
- /// </summary>
- public const int NET_PLAYM4_ALLOC_MEMORY_ERROR = 506;
- /// <summary>
- /// Open the file failed.
- /// </summary>
- public const int NET_PLAYM4_OPEN_FILE_ERROR = 507;
- /// <summary>
- /// Create thread or event failed.
- /// </summary>
- public const int NET_PLAYM4_CREATE_OBJ_ERROR = 508;
- /// <summary>
- /// Create DirectDraw object failed.
- /// </summary>
- public const int NET_PLAYM4_CREATE_DDRAW_ERROR = 509;
- /// <summary>
- /// failed when creating off-screen surface.
- /// </summary>
- public const int NET_PLAYM4_CREATE_OFFSCREEN_ERROR = 510;
- /// <summary>
- /// buffer is overflow.
- /// </summary>
- public const int NET_PLAYM4_BUF_OVER = 511;
- /// <summary>
- /// failed when creating audio device.
- /// </summary>
- public const int NET_PLAYM4_CREATE_SOUND_ERROR = 512;
- /// <summary>
- /// Set volume failed.
- /// </summary>
- public const int NET_PLAYM4_SET_VOLUME_ERROR = 513;
- /// <summary>
- /// The function only support play file.
- /// </summary>
- public const int NET_PLAYM4_SUPPORT_FILE_ONLY = 514;
- /// <summary>
- /// The function only support play stream.
- /// </summary>
- public const int NET_PLAYM4_SUPPORT_STREAM_ONLY = 515;
- /// <summary>
- /// System not support.
- /// </summary>
- public const int NET_PLAYM4_SYS_NOT_SUPPORT = 516;
- /// <summary>
- /// No file header.
- /// </summary>
- public const int NET_PLAYM4_FILEHEADER_UNKNOWN = 517;
- /// <summary>
- /// The version of decoder and encoder is not adapted.
- /// </summary>
- public const int NET_PLAYM4_VERSION_INCORRECT = 518;
- /// <summary>
- /// Initialize decoder failed.
- /// </summary>
- public const int NET_PALYM4_INIT_DECODER_ERROR = 519;
- /// <summary>
- /// The file data is unknown.
- /// </summary>
- public const int NET_PLAYM4_CHECK_FILE_ERROR = 520;
- /// <summary>
- /// Initialize multimedia clock failed.
- /// </summary>
- public const int NET_PLAYM4_INIT_TIMER_ERROR = 521;
- /// <summary>
- /// Blt failed.
- /// </summary>
- public const int NET_PLAYM4_BLT_ERROR = 522;
- /// <summary>
- /// Update failed.
- /// </summary>
- public const int NET_PLAYM4_UPDATE_ERROR = 523;
- /// <summary>
- /// openfile error, streamtype is multi.
- /// </summary>
- public const int NET_PLAYM4_OPEN_FILE_ERROR_MULTI = 524;
- /// <summary>
- /// openfile error, streamtype is video.
- /// </summary>
- public const int NET_PLAYM4_OPEN_FILE_ERROR_VIDEO = 525;
- /// <summary>
- /// JPEG compress error
- /// </summary>
- public const int NET_PLAYM4_JPEG_COMPRESS_ERROR = 526;
- /// <summary>
- /// Don't support the version of this file.
- /// </summary>
- public const int NET_PLAYM4_EXTRACT_NOT_SUPPORT = 527;
- /// <summary>
- /// extract video data failed.
- /// </summary>
- public const int NET_PLAYM4_EXTRACT_DATA_ERROR = 528;
- #endregion
- #endregion
- #endregion
- #region 5. ?????
- #region 5.1 ?????
- /// <summary>
- /// ????
- /// </summary>
- public enum DISPLAY_MODE : uint
- {
- /// <summary>
- /// ?????????????????????
- /// </summary>
- NORMALMODE = 0,
- /// <summary>
- /// ??????????????????????
- /// </summary>
- OVERLAYMODE
- }
- /// <summary>
- /// 5.1.1 ????????
- /// ??
- /// ??????????????????????????????????????????????????????????????????????????
- /// ????????????colorKey???32???0x00rrggbb??????0??????????r?g?b???
- /// ???????????????????????????????????OVERLAY?????OVERLAY???????????????OVERLAY???????BLT?????????????(?SIS????)??OVERLAY?????????CPU??????????(??????????????)????????????????????????????
- /// ???????????????OVERLAY????????????????????????OVERLAY????????????OVERLAY???????????????????FALSE????????????????????????OVERLAY???????????SDK????OVERALY????????????????OVERLAY???
- /// NET_DVR_API BOOL __stdcall NET_DVR_SetShowMode(DWORD dwShowType,COLORREF colorKey);
- /// </summary>
- /// <param name="dwShowType">[in]???????????????{NORMALMODE = 0,OVERLAYMODE}</param>
- /// <param name="colorKey">[in]??????????OVERLAY???????</param>
- /// <returns></returns>
- [DllImport("HCNetSDK.dll")]
- public static extern bool NET_DVR_SetShowMode(DISPLAY_MODE dwShowType, int colorKey);
- #region ???????
- /// <summary>
- /// ?????
- /// </summary>
- public const int NET_DVR_SYSHEAD = 1;
- /// <summary>
- /// ????????????????????????
- /// </summary>
- public const int NET_DVR_STREAMDATA = 2;
- /// <summary>
- /// ?????
- /// </summary>
- public const int NET_DVR_AUDIOSTREAMDATA = 3;
- /// <summary>
- /// void(CALLBACK *fRealDataCallBack_V30) (LONG lRealHandle, DWORD dwDataType, BYTE *pBuffer, DWORD dwBufSize, void* pUser)
- /// </summary>
- /// <param name="lRealHandle">NET_DVR_RealPlay_V30???</param>
- /// <param name="dwDat…