public static extern int ISMS_StartPlaybackEx(int lQueryHandle, IntPtr pWnd, DelegateDef.StreamCallBack fnTranformedData, DelegateDef.PlayMsgCallBack fnPlayMsg, DelegateDef.DecodedDataCallBack fnDecodedData, IntPtr pUserData); // C++中是long C#中为int
void InitDelegates() { _OnPreviewDecodedDataCallBack = new DelegateDef.DecodedDataCallBack(OnPreviewDecodedDataCallBack); _OnPreviewMsgCallBack = new DelegateDef.PlayMsgCallBack(OnPreviewMsgCallBack); _OnPreviewStreamCallBack = new DelegateDef.StreamCallBack(OnPreviewCallBack); }
public static extern int ISMS_StartPreviewEx(string szCameraUuid, IntPtr pWnd, streamType enStreamType, DelegateDef.StreamCallBack fnTranformedData, DelegateDef.PlayMsgCallBack fnPlayMsg, DelegateDef.DecodedDataCallBack fnDecodedData, IntPtr pUserData);