📄 mstve.idl
字号:
[ id(COLLECTID_Remove), helpstring("method Remove")] HRESULT Remove([in] VARIANT var);
[ id(COLLECTID_RemoveAll), helpstring("method RemoveAll")] HRESULT RemoveAll();
[ id(COLLECTID_Update), helpstring("method Update")] HRESULT Update([in] DATE dateKey, [in] IUnknown *pUnk);
[ id(9), helpstring("method LockRead")] HRESULT LockRead();
[ id(10), helpstring("method LockWrite")] HRESULT LockWrite();
[ id(11), helpstring("method Unlock")] HRESULT Unlock();
[ id(12), helpstring("method RemoveSimple")] HRESULT RemoveSimple([in] VARIANT var); // remove without calling var->RemoveYourself()
[ id(13), helpstring("method DumpToBSTR")] HRESULT DumpToBSTR([out] BSTR *pDump);
};
// ---------------------------------------------------
[
object,
uuid(05500130-FAA5-4df9-8246-BFC23AC5CEA8),
dual,
helpstring("ITVEMCast Interface"),
pointer_default(unique)
]
interface ITVEMCast : IDispatch
{
[propget, id(1), helpstring("property IPAdapter")] HRESULT IPAdapter([out, retval] BSTR *pVal);
[propput, id(1), helpstring("property IPAdapter")] HRESULT IPAdapter([in] BSTR newVal);
[propget, id(2), helpstring("property IPAddress")] HRESULT IPAddress([out, retval] BSTR *pVal);
[propput, id(2), helpstring("property IPAddress")] HRESULT IPAddress([in] BSTR newVal);
[propget, id(3), helpstring("property IPPort")] HRESULT IPPort([out, retval] long *pVal);
[propput, id(3), helpstring("property IPPort")] HRESULT IPPort([in] long newVal);
[ id(4), helpstring("method Join")] HRESULT Join();
[ id(5), helpstring("method Leave")] HRESULT Leave();
[propget, id(6), helpstring("property IsJoined")] HRESULT IsJoined([out, retval] VARIANT_BOOL *pVal);
[propget, id(7), helpstring("property IsSuspended")] HRESULT IsSuspended([out, retval] VARIANT_BOOL *pVal);
[ id(8), helpstring("method Suspend")] HRESULT Suspend(VARIANT_BOOL fSuspend);
[propget, id(9), helpstring("property PacketCount")] HRESULT PacketCount([out, retval] long *pVal);
[propget, id(10), helpstring("property ByteCount")] HRESULT ByteCount([out, retval] long *pVal);
[ id(11), helpstring("method KeepStats")] HRESULT KeepStats(VARIANT_BOOL fKeepStats);
[ id(12), helpstring("method ResetStats")] HRESULT ResetStats();
[ id(13), helpstring("method SetReadCallback")] HRESULT SetReadCallback([in] int nBuffers, [in] int iPrioritySetback, [in] IUnknown *pVal);
[ id(14), helpstring("method ConnectManager")] HRESULT ConnectManager([in] ITVEMCastManager* pVal);
[propget, id(15), helpstring("property Manager")] HRESULT Manager([out, retval] IUnknown* *ppVal);
[propget, id(16), helpstring("property QueueThreadId")] HRESULT QueueThreadId([out, retval] long* pVal);
[propput, id(16), helpstring("property QueueThreadId")] HRESULT QueueThreadId([in] long pVal);
[propget, id(17), helpstring("property WhatType")] HRESULT WhatType([out, retval] NWHAT_Mode *pWhatType);
[propput, id(17), helpstring("property WhatType")] HRESULT WhatType([in] NWHAT_Mode whatType);
};
[
object,
uuid(05500131-FAA5-4df9-8246-BFC23AC5CEA8),
dual,
helpstring("ITVEMCasts Interface"),
pointer_default(unique)
]
interface ITVEMCasts : IDispatch
{
[propget, id(DISPID_NEWENUM), restricted, helpstring("property _NewEnum")] HRESULT _NewEnum([out, retval] IUnknown **pCollection);
[propget, id(COLLECTID_Count), helpstring("property Count")] HRESULT Count([out, retval] long *pVal);
[propget, id(COLLECTID_Item), helpstring("property Item")] HRESULT Item([in] VARIANT var, [out, retval] ITVEMCast * *pVal);
[ id(COLLECTID_Add), helpstring("method Add")] HRESULT Add([in] ITVEMCast *punk);
[ id(COLLECTID_Remove), helpstring("method Remove")] HRESULT Remove([in] VARIANT var);
[ id(COLLECTID_RemoveAll), helpstring("method RemoveAll")] HRESULT RemoveAll();
};
[
object,
uuid(05500132-FAA5-4df9-8246-BFC23AC5CEA8),
dual,
helpstring("ITVEMCastManager Interface"),
pointer_default(unique)
]
interface ITVEMCastManager : IDispatch
{
[propget, id(1), helpstring("property MCasts")] HRESULT MCasts([out, retval] ITVEMCasts* *pVal);
[propget, id(2), helpstring("property Supervisor")] HRESULT Supervisor([out, retval] ITVESupervisor* *ppSupervisor);
[propput, id(2), helpstring("property Supervisor")] HRESULT Supervisor([in] ITVESupervisor *pSupervisor);
[ id(3), helpstring("method AddMulticast")] HRESULT AddMulticast([in] NWHAT_Mode whatType, [in] BSTR bsAdapter, [in] BSTR bsIPAddress, [in] LONG ulIPPort, [in] LONG cBuffers, [in] IUnknown *pICallback, [out] ITVEMCast **ppMCastAdded);
[ id(4), helpstring("method FindMulticast")] HRESULT FindMulticast([in] BSTR bstrIPAdapter, [in] BSTR bstrIPAddress, [in] LONG sPort, [out] ITVEMCast **ppMCast, [out] LONG *pcMatches);
[ id(5), helpstring("method RemoveMulticast")] HRESULT RemoveMulticast(ITVEMCast *pMCast);
[ id(6), helpstring("method JoinAll")] HRESULT JoinAll();
[ id(7), helpstring("method LeaveAll")] HRESULT LeaveAll();
[ id(8), helpstring("method SuspendAll")] HRESULT SuspendAll([in] VARIANT_BOOL fSuspend);
[ id(9), helpstring("method Lock_")] HRESULT Lock_();
[ id(10), helpstring("method Unlock_")] HRESULT Unlock_();
[ id(11), helpstring("method DumpStatsToBSTR")] HRESULT DumpStatsToBSTR(int iType, BSTR *pBSTR);
[propget, id(13), helpstring("property HaltFlags")] HRESULT HaltFlags([out, retval] LONG *plGrfHaltFlags);
[propput, id(13), helpstring("property HaltFlags")] HRESULT HaltFlags([in] LONG lGrfHaltFlags);
};
[
object,
uuid(05500232-FAA5-4df9-8246-BFC23AC5CEA8),
// dual,
hidden,
helpstring("ITVEMCastManager_Helper Interface"),
pointer_default(unique)
]
interface ITVEMCastManager_Helper : IUnknown
{
[ id(1), helpstring("method DumpString")] HRESULT DumpString(BSTR bstrDump); // writes string to a Dump.txt
[ id(2), helpstring("method CreateQueueThread")] HRESULT CreateQueueThread();
[ id(3), helpstring("method KillQueueThread")] HRESULT KillQueueThread();
[ id(4), helpstring("method PostToQueueThread")] HRESULT PostToQueueThread(UINT uiMsg, WPARAM wParam, LPARAM lParam);
[ id(5), helpstring("method GetPacketCounts")] HRESULT GetPacketCounts([out] LONG *pCPackets, [out] LONG *pCPacketsDropped, [out] LONG *pCPacketsDroppedTotal);
};
[
object,
uuid(05500133-FAA5-4df9-8246-BFC23AC5CEA8),
dual,
helpstring("ITVEMCastCallback Interface"),
pointer_default(unique)
]
interface ITVEMCastCallback : IDispatch
{
[id(1), helpstring("method SetMCast")] HRESULT SetMCast(ITVEMCast *pMCast);
[id(2), helpstring("method ProcessPacket")] HRESULT ProcessPacket(unsigned char *pchBuffer, long cBytes, long lPacketId);
[id(3), helpstring("method PostPacket")] HRESULT PostPacket(unsigned char *pchBuffer, long cBytes, long wPacketId);
};
// ................ specific callbacks ..............
[
object,
uuid(05500141-FAA5-4df9-8246-BFC23AC5CEA8),
dual,
helpstring("ITVECBAnnc Interface"),
pointer_default(unique)
]
interface ITVECBAnnc : IDispatch
{
[id(1), helpstring("method Init")] HRESULT Init(BSTR bstrFileTrigAdapter, ITVEService *pService); // want ITVEService here
};
[
object,
uuid(05500142-FAA5-4df9-8246-BFC23AC5CEA8),
dual,
helpstring("ITVECBTrig Interface"),
pointer_default(unique)
]
interface ITVECBTrig : IDispatch
{
[id(1), helpstring("method Init")] HRESULT Init(ITVEVariation *pIVariation);
};
[
object,
uuid(05500143-FAA5-4df9-8246-BFC23AC5CEA8),
dual,
helpstring("ITVECBFile Interface"),
pointer_default(unique)
]
interface ITVECBFile : IDispatch
{
[id(1), helpstring("method Init")] HRESULT Init(ITVEVariation *pIVariation, ITVEService *pIService);
};
[
object,
uuid(05500144-FAA5-4df9-8246-BFC23AC5CEA8),
dual,
helpstring("ITVECBDummy Interface"),
pointer_default(unique)
]
interface ITVECBDummy : IDispatch
{
[id(1), helpstring("method Init")] HRESULT Init(int i);
};
// ----------------------------------------------------
[
object,
uuid(05500151-FAA5-4df9-8246-BFC23AC5CEA8),
dual,
helpstring("ITVEFile Interface"),
pointer_default(unique)
]
interface ITVEFile : IDispatch
{
[ id(1), helpstring("method InitializeFile")] HRESULT InitializeFile([in] ITVEVariation *pVaria, [in] BSTR bsName, [in] BSTR bsLoc, [in] DATE dateExpires);
[ id(2), helpstring("method InitializePackage")] HRESULT InitializePackage([in] ITVEVariation *pVaria, [in] BSTR bsName, [in] BSTR bsLoc, [in] DATE dateExpires);
[propget, id(3), helpstring("property Description")] HRESULT Description([out, retval] BSTR* pBstrDesc);
[propget, id(4), helpstring("property Location")] HRESULT Location([out, retval] BSTR* pBstrLoc);
[propget, id(5), helpstring("property ExpireTime")] HRESULT ExpireTime([out, retval] DATE* pDateExpires);
[propget, id(6), helpstring("property IsPackage")] HRESULT IsPackage([out, retval] BOOL* pfVal);
[propget, id(7), helpstring("property Variation")] HRESULT Variation([out, retval] ITVEVariation* *pVal);
[propget, id(8), helpstring("property Service")] HRESULT Service([out, retval] ITVEService* *pVal);
[ id(9), helpstring("method RemoveYourself")] HRESULT RemoveYourself();
[ id(10), helpstring("method DumpToBSTR")] HRESULT DumpToBSTR([out] BSTR *pBstrDump);
};
// ----------------------------------------------------
// ITVENavAid
// ----------------------------------------------------
[
object,
uuid (05500160-FAA5-4df9-8246-BFC23AC5CEA8),
dual,
helpstring("ITVENavAid Interface"),
pointer_default(unique)
]
interface ITVENavAid : IDispatch
{
[propput, id(1), helpstring("property WebBrowserApp")] HRESULT WebBrowserApp([in] IDispatch *pWebBrowser);
[propget, id(1), helpstring("property WebBrowserApp")] HRESULT WebBrowserApp([out, retval] IDispatch **ppWebBrowser);
[propget, id(2), helpstring("property TVETriggerCtrl")] HRESULT TVETriggerCtrl([out, retval] ITVETriggerCtrl **ppTriggerCtrl);
[propput, id(3), helpstring("property EnableAutoTriggering")] HRESULT EnableAutoTriggering([in] long lAutoTriggers);
[propget, id(3), helpstring("property EnableAutoTriggering")] HRESULT EnableAutoTriggering([out, retval] long *plAutoTriggers);
[propget, id(4), helpstring("property ActiveVariation")] HRESULT ActiveVariation([out, retval] ITVEVariation **ppActiveVariation);
[propput, id(4), helpstring("property ActiveVariation")] HRESULT ActiveVariation([in] ITVEVariation *pActiveVariation);
[propget, id(5), helpstring("property TVEFeature")] HRESULT TVEFeature([out, retval] ITVEFeature **ppTVEFeature);
[propget, id(6), helpstring("property CacheState")] HRESULT CacheState([out, retval] BSTR *pbstrBuff);
[propput, id(6), helpstring("property CacheState")] HRESULT CacheState([in] BSTR bstrBuff);
[ , id(7), helpstring("method NavUsingTVETrigger")] HRESULT NavUsingTVETrigger([in] ITVETrigger *pTrigger, [in] long lForceNav, [in] long lForceExec);
[ , id(8), helpstring("method ExecScript")] HRESULT ExecScript([in] BSTR bstrScript, [in] BSTR bstrLanguage);
[ , id(9), helpstring("method Navigate")] HRESULT Navigate([in] VARIANT *URL,[in] VARIANT *Flags,[in] VARIANT *TargetFrameName, [in] VARIANT *PostData, [in] VARIANT *Headers);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -