📄 mstve.idl
字号:
// ................ 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);
[propget, id(10), helpstring("property CurrTVEName")] HRESULT CurrTVEName([out, retval] BSTR *pbstrName);
[propget, id(11), helpstring("property CurrTVEURL")] HRESULT CurrTVEURL([out, retval] BSTR *pbstrURL);
// these are incoming sinkn events called by Supervisor ((_ITVEvents).. ID's Must match (I think)
// &DIID__ITVEEvents
[id(2101), helpstring("method NotifyTVETune")] HRESULT NotifyTVETune([in] NTUN_Mode tuneMode, [in] ITVEService *pService, [in] BSTR bstrDescription, [in] BSTR bstrIPAdapter);
[id(2102), helpstring("method NotifyTVEEnhancementNew")] HRESULT NotifyTVEEnhancementNew([in] ITVEEnhancement *pEnh);
[id(2103), helpstring("method NotifyTVEEnhancementUpdated")] HRESULT NotifyTVEEnhancementUpdated([in] ITVEEnhancement *pEnh, [in] long lChangedFlags); // changedFlags : NENH_grfDiff
[id(2104), helpstring("method NotifyTVEEnhancementStarting")] HRESULT NotifyTVEEnhancementStarting([in] ITVEEnhancement *pEnh);
[id(2105), helpstring("method NotifyTVEEnhancementExpired")] HRESULT NotifyTVEEnhancementExpired([in] ITVEEnhancement *pEnh);
[id(2106), helpstring("method NotifyTVETriggerNew")] HRESULT NotifyTVETriggerNew([in] ITVETrigger *pTrigger,[in] BOOL fActive);
[id(2107), helpstring("method NotifyTVETriggerUpdated")] HRESULT NotifyTVETriggerUpdated([in] ITVETrigger *pTrigger,[in] BOOL fActive, [in] long lChangedFlags); // changedFlags : NTRK_grfDiff
[id(2108), helpstring("method NotifyTVETriggerExpired")] HRESULT NotifyTVETriggerExpired([in] ITVETrigger *pTrigger,[in] BOOL fActive);
[id(2109), helpstring("method NotifyTVEPackage")] HRESULT NotifyTVEPackage([in] NPKG_Mode engPkgMode, [in] ITVEVariation *pVariation, [in] BSTR bstrUUID, [in] long cBytesTotal, [in] long cBytesReceived);
[id(2110), helpstring("method NotifyTVEFile")] HRESULT NotifyTVEFile([in] NFLE_Mode engFileMode, [in] ITVEVariation *pVariation, [in] BSTR bstrUrlName, [in] BSTR bstrFileName);
[id(2111), helpstring("method NotifyTVEAuxInfo")] HRESULT NotifyTVEAuxInfo([in] NWHAT_Mode engAuxInfoMode, [in] BSTR bstrAuxInfoString, [in] long lChangedFlags, [in] long lErrorLine); // WhatIsIt is NWHAT_Mode - lChangedFlags is NENH_grfDiff or NTRK_grfDiff treated as error bits
// &DIID_DWebBrowserEvents2,
[id(0x66), helpstring("method NotifyStatusTextChange")] HRESULT NotifyStatusTextChange(BSTR Text);
[id(0x6c), helpstring("method NotifyProgressChange")] HRESULT NotifyProgressChange(LONG Progress, LONG ProgressMax);
[id(0x69), helpstring("method NotifyCommandStateChange")] HRESULT NotifyCommandStateChange(LONG Command, VARIANT_BOOL Enable);
[id(0x6a), helpstring("method NotifyDownloadBegin")] HRESULT NotifyDownloadBegin();
[id(0x68), helpstring("method NotifyDownloadComplete")] HRESULT NotifyDownloadComplete();
[id(0x71), helpstring("method NotifyTitleChange")] HRESULT NotifyTitleChange(BSTR Text);
[id(0x70), helpstring("method NotifyPropertyChange")] HRESULT NotifyPropertyChange(BSTR szProperty);
[id(0xfa), helpstring("method NotifyBeforeNavigate2")] HRESULT NotifyBeforeNavigate2(IDispatch * pDisp, VARIANT * URL, VARIANT * Flags, VARIANT * TargetFrameName, VARIANT * PostData, VARIANT * Headers, VARIANT_BOOL * Cancel);
[id(0xfb), helpstring("method NotifyNewWindow2")] HRESULT NotifyNewWindow2(IDispatch * * ppDisp, VARIANT_BOOL * Cancel);
[id(0xfc), helpstring("method NotifyNavigateComplete2")] HRESULT NotifyNavigateComplete2(IDispatch * pDisp, VARIANT * URL);
[id(0x103), helpstring("method NotifyDocumentComplete")] HRESULT NotifyDocumentComplete(IDispatch * pDisp, VARIANT * URL);
[id(0xfd), helpstring("method NotifyOnQuit")] HRESULT NotifyOnQuit();
[id(0xfe), helpstring("method NotifyOnVisible")] HRESULT NotifyOnVisible(VARIANT_BOOL Visible);
[id(0xff), helpstring("method NotifyOnToolBar")] HRESULT NotifyOnToolBar(VARIANT_BOOL ToolBar);
[id(0x100), helpstring("method NotifyOnMenuBar")] HRESULT NotifyOnMenuBar(VARIANT_BOOL MenuBar);
[id(0x101), helpstring("method NotifyOnStatusBar")] HRESULT NotifyOnStatusBar(VARIANT_BOOL StatusBar);
[id(0x102), helpstring("method NotifyOnFullScreen")] HRESULT NotifyOnFullScreen(VARIANT_BOOL FullScreen);
[id(0x104), helpstring("method NotifyOnTheaterMode")] HRESULT NotifyOnTheaterMode(VARIANT_BOOL TheaterMode);
} ;
// ------
// these interfaces for running without the VidControl
// - idea is to create CoCreate supervisor, and 'put' it here.
[
object,
uuid (05500360-FAA5-4df9-8246-BFC23AC5CEA8),
hidden,
// dual,
helpstring("ITVENavAid_NoVidCtl Interface"),
pointer_default(unique)
]
interface ITVENavAid_NoVidCtl : IUnknown
{
[propput ,id(1), helpstring("property NoVidCtl_Supervisor")] HRESULT NoVidCtl_Supervisor([in] ITVESupervisor *pSuper);
[propget ,id(1), helpstring("property NoVidCtl_Supervisor")] HRESULT NoVidCtl_Supervisor([out,retval] ITVESupervisor **ppSuper);
} ;
// ------
[
object,
uuid (05500260-FAA5-4df9-8246-BFC23AC5CEA8),
hidden,
dual, // - used in proxying, must be marked Dual regardless of what .net says
helpstring("ITVENavAid_Helper Interface"),
pointer_default(unique)
]
interface ITVENavAid_Helper : IUnknown
{
[ id(1), helpstring("method LocateVidAndTriggerCtrls")] HRESULT LocateVidAndTriggerCtrls([out] IDispatch **pVidCtrl, [out] IDispatch **pTrigCtrl);
[ id(2), helpstring("method NotifyTVETriggerUpdated_XProxy")] HRESULT NotifyTVETriggerUpdated_XProxy([in] ITVETrigger *pTrigger,[in] BOOL fActive, [in] long lChangedFlags); // changedFlags : NTRK_grfDiff
[ id(3), helpstring("method ReInitCurrNavState")] HRESULT ReInitCurrNavState([in] long lReserved);
} ;
// ----------------------------------------------------
// Filter interfaces
// -----------------------------------------------------
[
object,
uuid (05500180-FAA5-4df9-8246-BFC23AC5CEA8),
// dual,
helpstring("TVEFilter Interface"),
pointer_default(unique)
]
interface ITVEFilter : IUnknown
{
// [propget, id(2), helpstring("property Supervisor")] HRESULT Supervisor([out, retval] IDispatch **ppSuperDsp);
[propget, id(3), helpstring("property SupervisorPunk")] HRESULT SupervisorPunk([out, retval] IUnknown **ppSuperPunk);
[propget, id(4), helpstring("property IPAdapterAddress")] HRESULT IPAdapterAddress([out, retval] BSTR *pbstrIPAddr);
[propput, id(4), helpstring("property IPAdapterAddress")] HRESULT IPAdapterAddress([in] BSTR bstrIPAddr);
[propget, id(5), helpstring("property StationID")] HRESULT StationID([out, retval] BSTR *pbstrStationID);
[propput, id(5), helpstring("property StationID")] HRESULT StationID([in] BSTR bstrStationID);
[propget, id(6), helpstring("property MulticastList")] HRESULT MulticastList([out, retval] BSTR *pbstrMulticastList);
[propget, id(7), helpstring("property AdapterDescription")] HRESULT AdapterDescription([out, retval] BSTR *pbstrAdapterDescription);
[ id(8), helpstring("method ReTune")] HRESULT ReTune();
// should move to FilterHelper
[propget, id(9), helpstring("property HaltFlags")] HRESULT HaltFlags([out, retval] LONG *plGrfHaltFlags);
[propput, id(9), helpstring("property HaltFlags")] HRESULT HaltFlags([in] LONG lGrfHaltFlags);
[ id(10), helpstring("method ParseCCBytePair")] HRESULT ParseCCBytePair([in] LONG lByteType, [in] BYTE byte1, [in] BYTE byte2);
[propget, id(11), helpstring("property IPSinkAdapterAddress")] HRESULT IPSinkAdapterAddress([out, retval] BSTR *pbstrIPAddr);
// [propput, id(12), helpstring("property SupervisorHelperPunk")] HRESULT get_SupervisorHelperPunk([out] IUnknown **ppSuperHelper);
};
// ------------------------------------------------------
[
object,
uuid (05500280-FAA5-4df9-8246-BFC23AC5CEA8),
hidden,
helpstring("ITVEFilter_Helper Interface"),
pointer_default(unique)
]
interface ITVEFilter_Helper : IUnknown
{
// [id(1),helpstring("method ConnectParent")] HRESULT ConnectParent([in] ITVEEnhancement *pEnhancement);
} ;
[
object,
uuid (05500190-FAA5-4df9-8246-BFC23AC5CEA8),
dual,
helpstring("ITVETriggerCtrl Interface"),
pointer_default(unique)
]
interface ITVETriggerCtrl : IDispatch
{
[propput, id(1)] HRESULT enabled([in] VARIANT_BOOL newVal);
[propget, id(1)] HRESULT enabled([out, retval] VARIANT_BOOL* pVal);
[propget, id(2)] HRESULT sourceID([out, retval] BSTR* pbstrID);
[propput, id(3)] HRESULT releasable([in] VARIANT_BOOL newVal);
[propget, id(3)] HRESULT releasable([out, retval] VARIANT_BOOL* pVal);
[propget, id(4)] HRESULT backChannel([out, retval] BSTR* pVal);
[propget, id(5)] HRESULT contentLevel([out, retval] double* pVal);
} ;
[
object,
uuid (05500191-FAA5-4df9-8246-BFC23AC5CEA8),
hidden,
helpstring("ITVETriggerCtrl_Helper Interface"),
pointer_default(unique)
]
interface ITVETriggerCtrl_Helper : IUnknown
{
[propput, id(1)] HRESULT sourceID([in] BSTR pSourceUUID); // cache the SourceID
[propget, id(2)] HRESULT TopLevelPage([out, retval] BSTR *pURL); // return the cached URL (???) of the top web page
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -