public static extern bool NET_DVR_SetExceptionCallBack_V30(int nMessage, IntPtr hWnd, fExceptionCallBack cbExceptionCallBack, IntPtr pUser);
public static extern int IP_NET_DVR_SetExceptionCallBack(UInt32 nMessage, IntPtr hWnd, fExceptionCallBack cbExceptionCallBack, IntPtr pUser);
/// <summary> /// 注册接收异常、重连等消息的窗口句柄或回调函数。 /// </summary> /// <param name="nMessage">消息</param> /// <param name="hWnd">接收异常信息消息的窗口句柄</param> /// <param name="pUser">用户数据</param> /// <param name="exceptionCallBack">回调函数委托</param> /// <returns>TRUE表示成功,FALSE表示失败</returns> public static bool SetExceptionCallBack_V30(int nMessage, IntPtr hWnd, IntPtr pUser, fExceptionCallBack exceptionCallBack) { if (exceptionCallBack == null) { return(false); } return(HikApi.NET_DVR_SetExceptionCallBack_V30(nMessage, hWnd, exceptionCallBack, pUser)); }