// nvUnifiedControl.idl : type library source for ActiveX Control project. // This file will be processed by the MIDL compiler tool to // produce the type library (nvUnifiedControl.tlb) that will become a resource in // nvUnifiedControl.ocx. #include #include [ uuid(47118D44-416F-4D4C-A4F2-92CD5367A1ED), version(1.0), helpfile("nvUnifiedControl.hlp"), helpstring("nvUnifiedControl ActiveX Control module"), control ] library nvUnifiedControlLib { importlib(STDOLE_TLB); [helpstring("QuadDevice Mode")] typedef [v1_enum] enum { QUAD_MODE = 0, SINGLE_MODE = 1, SEQUENTIAL_MODE = 2, AUTO_DETECT = 3 }QuadDeviceMode; [helpstring("Device Type")] typedef [v1_enum] enum { _SINGLE_CHANNEL_VIDEO_SERVER = 0, _ACD2000Q_VIDEO_SERVER=1, _SED2300Q_VIDEO_SERVER=2, _AUTO_DETECT = 3 }DeviceType; // Primary dispatch interface for CnvUnifiedControlCtrl [ uuid(C7E7031B-9995-4978-9042-87D8BF0572D0), helpstring("Dispatch interface for nvUnifiedControl Control")] dispinterface _DnvUnifiedControl { properties: [id(1), helpstring("property ID")] LONG ID; [id(2), helpstring("property MediaSource")] BSTR MediaSource; [id(3), helpstring("property MediaUsername")] BSTR MediaUsername; [id(4), helpstring("property MediaPassword")] BSTR MediaPassword; [id(5), helpstring("property HttpPort")] LONG HttpPort; [id(6), helpstring("property Resolution")] LONG Resolution; [id(7), helpstring("property Volume")] LONG Volume; [id(8), helpstring("property StretchToFit")] LONG StretchToFit; [id(9), helpstring("property Brightness")] LONG Brightness; [id(10), helpstring("property Contrast")] LONG Contrast; [id(11), helpstring("property Hue")] LONG Hue; [id(12), helpstring("property Saturation")] LONG Saturation; [id(13), helpstring("property RegisterPort")] LONG RegisterPort; [id(14), helpstring("property ControlPort")] LONG ControlPort; [id(15), helpstring("property StreamingPort")] LONG StreamingPort; [id(16), helpstring("property AutoReconnect")] LONG AutoReconnect; [id(44), helpstring("property Caption")] BSTR Caption; [id(45), helpstring("property MotionDetectionInterval")] LONG MotionDetectionInterval; [id(46), helpstring("property DigitalInputInterval")] LONG DigitalInputInterval; [id(52), helpstring("property Mute")] LONG Mute; [id(53), helpstring("property MediaChannel")] LONG MediaChannel; [id(54), helpstring("property StreamType")] LONG StreamType; [id(58), helpstring("property MediaType")] LONG MediaType; [id(59), helpstring("property MulticastPort")] LONG MulticastPort; [id(60), helpstring("property MulticastIP")] BSTR MulticastIP; [id(64), helpstring("property DebugInfoPassword")] LONG DebugInfoPassword; [id(65), helpstring("property EnableASE")] VARIANT_BOOL EnableASE; [id(66), helpstring("property ASEMediaSource")] BSTR ASEMediaSource; [id(67), helpstring("property ASEMediaUserName")] BSTR ASEMediaUserName; [id(68), helpstring("property ASEMediaPassword")] BSTR ASEMediaPassword; [id(69), helpstring("property ASEControlPort")] LONG ASEControlPort; [id(70), helpstring("property ASEStreamingPort")] LONG ASEStreamingPort; [id(73), helpstring("property BeginTime")] LONG BeginTime; [id(74), helpstring("property EndTime")] LONG EndTime; [id(81), helpstring("property Vendor")] BSTR Vendor; [id(82), helpstring("property Protocol")] BSTR Protocol; [id(83), helpstring("property PTZFile")] BSTR PTZFile; [id(84), helpstring("property AddressID")] LONG AddressID; [id(85), helpstring("property Parity")] BSTR Parity; [id(86), helpstring("property BoudRate")] LONG BaudRate; [id(91), helpstring("property MotionDetectionAlertDuration")] LONG MotionDetectionAlertDuration; [id(92), helpstring("property PTZTiltSpeed")] LONG PTZTiltSpeed; [id(93), helpstring("property PTZPanSpeed")] LONG PTZPanSpeed; [id(105), helpstring("property RecordType")] LONG RecordType; [id(108), helpstring("property NetworkStatus")] LONG NetworkStatus; [id(109), helpstring("property PTZStatus")] LONG PTZStatus; [id(110), helpstring("property ContentStatus")] LONG ContentStatus; [id(111), helpstring("property CodecType")] LONG CodecType; [id(113), helpstring("property EnableBorder")] VARIANT_BOOL EnableBorder; [id(114), helpstring("property Version")] BSTR Version; [id(115), helpstring("property PreRecordTime")] LONG PreRecordTime; [id(116), helpstring("property AutoReconnectInterval")] LONG AutoReconnectInterval; [id(117), helpstring("property BitRate")] LONG BitRate; [id(118), helpstring("property FrameRateMode")] LONG FrameRateMode; [id(119), helpstring("property Fps")] LONG Fps; [id(124), helpstring("property PostRecordingTime")] LONG PostRecordingTime; [id(127), helpstring("property Duration")] LONG Duration; [id(134), helpstring("property VariableFPS")] LONG VariableFPS; [id(136), helpstring("property DeviceChipType")] LONG DeviceChipType; [id(146), helpstring("property LastRecFileSize")] ULONGLONG LastRecFileSize; [id(147), helpstring("property longLastRecFileSize")] LONG longLastRecFileSize; [id(148), helpstring("property strLastRecFileSize")] BSTR strLastRecFileSize; [id(152), helpstring("property RTSPPort")] LONG RTSPPort; [id(161), helpstring("property RenderInterface")] LONG RenderInterface; [id(164), helpstring("property ReplaceTimeCodeByLocalTime")] LONG ReplaceTimeCodeByLocalTime; [id(165), helpstring("property ConnectTimeout")] LONG ConnectTimeout; [id(174), helpstring("property DeviceType")] DeviceType DeviceType; [id(175), helpstring("property QuadDeviceMode")] QuadDeviceMode QuadDeviceMode; [id(176), helpstring("property TCPVideoStreamID")] ULONG TCPVideoStreamID; [id(177), helpstring("property RTPVideoTrackNumber")] ULONG RTPVideoTrackNumber; [id(178), helpstring("property RTPAudioTrackNumber")] ULONG RTPAudioTrackNumber; [id(179), helpstring("property PlayFileName")] BSTR PlayFileName; methods: [id(17), helpstring("method Connect")] LONG Connect(LONG AsyncConnection); [id(18), helpstring("method Play")] void Play(void); [id(19), helpstring("method Disconnect")] void Disconnect(void); [id(20), helpstring("method GetAudioToken")] LONG GetAudioToken(void); [id(21), helpstring("method FreeAudioToken")] void FreeAudioToken(void); [id(22), helpstring("method StartAudioTransfer")] LONG StartAudioTransfer(void); [id(23), helpstring("method StopAudioTransfer")] void StopAudioTransfer(void); [id(24), helpstring("method DigitalZoomIn")] LONG DigitalZoomIn(LONG nSteps); [id(25), helpstring("method DigitalZoomOut")] LONG DigitalZoomOut(LONG nSteps); [id(26), helpstring("method DigitalMoveLeft")] LONG DigitalMoveLeft(LONG nSteps); [id(27), helpstring("method DigitalMoveRight")] LONG DigitalMoveRight(LONG nSteps); [id(28), helpstring("method DigitalMoveUp")] LONG DigitalMoveUp(LONG nSteps); [id(29), helpstring("method DigitalMoveDown")] LONG DigitalMoveDown(LONG nSteps); [id(30), helpstring("method DigitalZoomOutMax")] void DigitalZoomOutMax(void); [id(31), helpstring("method Stop")] void Stop(void); [id(32), helpstring("method StartMDSetup")] LONG StartMDSetup(void); [id(33), helpstring("method StopMDSetup")] void StopMDSetup(void); [id(34), helpstring("method GetMotionSensitive")] LONG GetMotionSensitive(LONG nRegionNumber); [id(35), helpstring("method GetMotionStartX")] LONG GetMotionStartX(LONG nRegionNumber); [id(36), helpstring("method GetMotionStartY")] LONG GetMotionStartY(LONG nRegionNumber); [id(37), helpstring("method GetMotionEndX")] LONG GetMotionEndX(LONG nRegionNumber); [id(38), helpstring("method GetMotionEndY")] LONG GetMotionEndY(LONG nRegionNumber); [id(39), helpstring("method SetMotionSetting")] void SetMotionSetting(LONG nMotionRegionNumber, LONG nStartX, LONG nStartY, LONG nEndX, LONG nEndY, LONG nSensitive); [id(40), helpstring("method SetMotionSensitivity")] void SetMotionSensitivity(LONG nMotionRegionNumber, LONG nSensitive); [id(41), helpstring("method EnableMotionDetection")] LONG EnableMotionDetection(void); [id(42), helpstring("method DisableMotionDetection")] void DisableMotionDetection(void); [id(43), helpstring("method SetTitleBarTextLayout")] void SetTitleBarTextLayout(LONG n1, LONG n2, LONG n3, LONG n4, LONG n5, LONG n6, LONG n7, LONG n8, LONG n9, LONG n10, LONG n11, LONG n12, LONG n13, LONG n14, LONG n15, LONG n16, LONG n17, LONG n18, LONG n19, LONG n20); [id(47), helpstring("method EnableMouseDigitalPTZ")] void EnableMouseDigitalPTZ(void); [id(48), helpstring("method DisableMouseDigitalPTZ")] void DisableMouseDigitalPTZ(void); [id(49), helpstring("method DisplayTitleBar")] void DisplayTitleBar(LONG Display); [id(50), helpstring("method EnableFullScreen")] void EnableFullScreen(void); [id(51), helpstring("method SnapShot")] LONG SnapShot(LONG IFormat, BSTR FileName, LONG ReduplicateTitleBarText, LONG R_TextColor, LONG G_TextColor, LONG B_TextColor); [id(55), helpstring("method SetControlActive")] void SetControlActive(LONG nActive); [id(56), helpstring("method DigitalOutput")] void DigitalOutput(LONG nDO1, LONG nDO2, LONG nDO3, LONG nDO4); [id(57), helpstring("method ExecuteURLCommand")] LONG ExecuteURLCommand(BSTR szCommand); [id(61), helpstring("method SyncMDInfoFromDevice")] LONG SyncMDInfoFromDevice(void); [id(62), helpstring("method EnableDigitalInput")] LONG EnableDigitalInput(void); [id(63), helpstring("method DisableDigitalInput")] void DisableDigitalInput(void); [id(71), helpstring("method SendURLCmdToSE")] BSTR SendURLCmdToSE(BSTR szCommand); [id(72), helpstring("method SendURLCmd")] BSTR SendURLCmd(BSTR szCommand); [id(75), helpstring("method SetCurrentTime")] void SetCurrentTime(LONG nCurrentTime); [id(76), helpstring("method SetPlayDirection")] void SetPlayDirection(SHORT shDirection); [id(77), helpstring("method SetPlayRate")] void SetPlayRate(LONG nPlayRate); [id(78), helpstring("method Pause")] void Pause(void); [id(79), helpstring("method PlayByFrame")] void PlayByFrame(SHORT nDirection); [id(80), helpstring("method SetDecodeI")] void SetDecodeI(SHORT DecodeIOnly); [id(87), helpstring("method EnablePTZ")] LONG EnablePTZ(void); [id(88), helpstring("method DisablePTZ")] void DisablePTZ(void); [id(89), helpstring("method EnableMousePTZ")] LONG EnableMousePTZ(void); [id(90), helpstring("method DisableMousePTZ")] void DisableMousePTZ(void); [id(94), helpstring("method PTZMove")] void PTZMove(BSTR szInputCommand); [id(95), helpstring("method PTZZoom")] void PTZZoom(BSTR szInputCommand); [id(96), helpstring("method PTZFocus")] void PTZFocus(BSTR szInputCommand); [id(97), helpstring("method PTZIris")] void PTZIris(BSTR szInputCommand); [id(98), helpstring("method PTZOSD")] void PTZOSD(BSTR szInputCommand); [id(99), helpstring("method PTZPreset")] void PTZPreset(BSTR szInputCommand, LONG nPresetIndex); [id(100), helpstring("method SendPTZCommand")] void SendPTZCommand(BSTR szHEXStringCommand); [id(101), helpstring("method StartDecodeMode")] LONG StartDecodeMode(void); [id(102), helpstring("method DecodeFrame")] LONG DecodeFrame(BYTE* pFrameData, LONG nDataLen, LONG nDataType); [id(103), helpstring("method StopDecodeMode")] void StopDecodeMode(void); [id(104), helpstring("method EnableMoudeMoveEvent")] void EnableMoudeMoveEvent(LONG nEnable); [id(106), helpstring("method StartRecord")] LONG StartRecord(BSTR szFileName); [id(107), helpstring("method StopRecord")] void StopRecord(void); [id(120), helpstring("method SetQuadMotionDetection")] LONG SetQuadMotionDetection(BYTE byEnable); [id(121), helpstring("method SendAudio")] LONG SendAudio(BYTE* pbyAudioBuffer, LONG nLength); [id(122), helpstring("method StartStream")] void StartStream(void); [id(123), helpstring("method StopStream")] void StopStream(void); [id(125), helpstring("method StartAlarmRecord")] LONG StartAlarmRecord(BSTR szFileName); [id(126), helpstring("method StopAlarmRecord")] void StopAlarmRecord(void); [id(128), helpstring("method EnumerateVendor")] BSTR EnumerateVendor(void); [id(129), helpstring("method EnumerateProtocol")] BSTR EnumerateProtocol(BSTR szVendor); [id(130), helpstring("method PTZBLC")] void PTZBLC(BSTR szInputCommand); [id(131), helpstring("method PTZDayNight")] void PTZDayNight(BSTR szInputCommand); [id(132), helpstring("method GetBeginTimeString")] BSTR GetBeginTimeString(void); [id(133), helpstring("method GetEndTimeString")] BSTR GetEndTimeString(void); [id(135), helpstring("method RequestsToCheckDeviceChipType")] void RequestsToCheckDeviceChipType(LONG nCheckIt); [id(137), helpstring("method DecodeFrameEx")] LONG DecodeFrameEx(OLE_HANDLE Int32BufferPointer, LONG nDataLen, LONG nDataType); [id(138), helpstring("method SendPTZCmd")] LONG SendPTZCmd(BSTR szCommand, LONG nParam1, LONG nParam2); [id(139), helpstring("method SetTextOut")] LONG SetTextOut(LONG nX, LONG nY, BSTR szText, BSTR szFontName, SHORT nBold, LONG nFontWidth, LONG nFontHeight, LONG nFontR, LONG nFontG, LONG nFontB ); [id(140), helpstring("method MirrorImage")] void MirrorImage(LONG nEnable); [id(141), helpstring("method FlipImage")] void FlipImage(LONG nEnable); [id(142), helpstring("method EnablePrivacyMask")] void EnablePrivacyMask(LONG nEnable, LONG R, LONG G, LONG B); [id(143), helpstring("method SetPrivacyMask")] void SetPrivacyMask(LONG nIndex, LONG nXStart, LONG nYStart, LONG nXEnd, LONG nYEnd); [id(144), helpstring("method EnableAbsPosition")] LONG EnableAbsPosition(void); [id(145), helpstring("method DisableAbsPosition")] void DisableAbsPosition(void); [id(149), helpstring("method AddMultiplePlaybackFile")] LONG AddMultiplePlaybackFile(BSTR szFileName); [id(150), helpstring("method RemoveAllMultiplePlaybackFile")] void RemoveAllMultiplePlaybackFile(void); [id(151), helpstring("method PlayAudioFileToDevice")] LONG PlayAudioFileToDevice(BSTR szFileName); [id(153), helpstring("method SetTitleActiveColor")] void SetTitleActiveColor(LONG nIndex, LONG R, LONG G, LONG B); [id(154), helpstring("method SetTitleNonActiveColor")] void SetTitleNonActiveColor(LONG nIndex, LONG R, LONG G, LONG B); [id(155), helpstring("method SetTitleEventColor")] void SetTitleEventColor(LONG nIndex, LONG R, LONG G, LONG B); [id(156), helpstring("method SetPlayingBackgroundColor")] void SetPlayingBackgroundColor(LONG R, LONG G, LONG B); [id(157), helpstring("method SetDefaultBackgroundColor")] void SetDefaultBackgroundColor(LONG R, LONG G, LONG B); [id(158), helpstring("method SetAutoDropFrame")] LONG SetAutoDropFrame(LONG nEnable, LONG nCPUPerformance); [id(159), helpstring("method StopPlayingAudioFile")] void StopPlayingAudioFile(void); [id(160), helpstring("method EnableFullScreenEx")] void EnableFullScreenEx(LONG nUseSecondMonitor); [id(163), helpstring("method TxRS232Data")] LONG TxRS232Data(OLE_HANDLE pData, LONG numBytes); [id(166), helpstring("method AsyncDisconnect")] LONG AsyncDisconnect(void); [id(167), helpstring("method AsyncSendURLCmd")] LONG AsyncSendURLCmd(LONG nIndex, BSTR szCommand); //[id(168), helpstring("method DisplayChildScreen")] LONG DisplayChildScreen(LONG nEnable, LONG nStartX, LONG nStartY, LONG nWidth, LONG nHeight); [id(169), helpstring("method EnableOnNewImageEvent")] LONG EnableOnNewImageEvent(LONG nEnable); [id(170), helpstring("method GetCurrentImage")] LONG GetCurrentImage(BYTE* pBuffer, LONG nBufferLen); [id(171), helpstring("method GetCurrentImageEx")] LONG GetCurrentImageEx(OLE_HANDLE Int32BufferPointer, LONG nBufferLen); [id(172), helpstring("method EnableDecoder")] LONG EnableDecoder(LONG nEnable); [id(173), helpstring("method EnableMouseMoveEvent")] void EnableMouseMoveEvent(LONG nEnable); [id(180), helpstring("method GetMotionRegionEnable")] ULONG GetMotionRegionEnable(LONG nRegionNumber); [id(181), helpstring("method SetMotionRegionEnable")] void SetMotionRegionEnable(LONG nRegionNumber, ULONG ulEnable); [id(182), helpstring("method OpenFolderDialog")] BSTR OpenFolderDialog(BSTR info, BSTR rootDir); [id(183), helpstring("method OpenFileDialog")] BSTR OpenFileDialog(USHORT isOpen, BSTR ext, BSTR filter); [id(184), helpstring("method ShowMenu")] void ShowMenu(USHORT bShow); [id(185), helpstring("method SetGlobalMotionEnable")] void SetGlobalMotionEnable(ULONG bEnable); [id(186), helpstring("method GetGlobalMotionEnable")] ULONG GetGlobalMotionEnable(void); [id(187), helpstring("method SnapshotWithTitleBar")] void SnapshotWithTitleBar(ULONG bEnable); }; // Event dispatch interface for CnvUnifiedControlCtrl [ uuid(3CFE03C8-2AFD-4F78-9958-1FA103998364), helpstring("Event interface for nvUnifiedControl Control") ] dispinterface _DnvUnifiedControlEvents { properties: // Event interface has no properties methods: [id(1)] void OnConnect(LONG nID, LONG ConnectSuccessful); [id(2)] void OnNetworkLoss(LONG nID); [id(3)] void OnSaveImage(LONG nID, LONG Successful, BSTR FileName); [id(4)] void OnTimeCode(LONG nID, BSTR szTimeCode); [id(5)] void OnMouseKeyDoubleClick(LONG nID, LONG nBtn, LONG nX, LONG nY); [id(6)] void OnDIEvent(LONG nID, LONG nDI); [id(7)] void OnDIEventEnd(LONG nID); [id(8)] void OnMDEventStart(LONG nID, LONG nMD); [id(9)] void OnMDEventEnd(LONG nID); [id(10)] void OnPlay(LONG nID); [id(11)] void OnMouseKeyDown(LONG nID, LONG nBtn, LONG nX, LONG nY); [id(12)] void OnMouseKeyUp(LONG nID, LONG nBtn, LONG nX, LONG nY); [id(13)] void OnMouseMoveNotify(LONG nID, LONG nX, LONG nY); [id(14)] void OnConnectionRecorvery(LONG nID, BSTR szMediaSourceName); [id(15)] void OnStartRecord(LONG nID, LONG nSuccessful, BSTR szFileName); [id(16)] void OnStopRecord(LONG nID, BSTR szFileName); [id(17)] void OnVideoLoss(LONG nID); [id(18)] void OnVideoRecorvery(LONG nID); [id(19)] void OnMDSetting(LONG nID, LONG nIndex, LONG nX, LONG nY, LONG nW, LONG nH, LONG nSens, LONG enable); [id(20)] void OnMDSettingChange(LONG nID, LONG nIndex); [id(21)] void OnStop(LONG nID); [id(22)] void OnDisconnect(LONG m_nID); [id(23)] void OnRS232Event(LONG nID, BSTR szData, LONG nDataLen); [id(24)] void OnPlaybackComplete(LONG nID); [id(25)] void OnPlayAudioFileComplete(LONG nID); [id(DISPID_MOUSEMOVE)] void MouseMove(SHORT Button, SHORT Shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y); [id(26)] void OnAsyncURLCommandDone(LONG nID, LONG nIndex, BSTR szResult); [id(27)] void OnNewImage(LONG nID); }; // Class information for CnvUnifiedControlCtrl [ uuid(F8E691A0-C92E-4E42-9CDA-62FC07A9483B), helpstring("nvUnifiedControl Control"), control ] coclass nvUnifiedControl { [default] dispinterface _DnvUnifiedControl; [default, source] dispinterface _DnvUnifiedControlEvents; }; };