📄 tuner.idl
字号:
[helpstring("Seek to the previous valid selection")]
HRESULT SeekDown(
);
[helpstring("Scan for valid selections upward")]
HRESULT ScanUp(
[in] long MillisecondsPause
);
[helpstring("Scan for valid selections downward")]
HRESULT ScanDown(
[in] long MillisecondsPause
);
[helpstring("Enter the device's autoprogram mode")]
HRESULT AutoProgram(
);
};
//////////////////////////////////////////////////////////////////////////////////////
// Component Type Interfaces
//////////////////////////////////////////////////////////////////////////////////////
// Component Category
[
object,
hidden,
nonextensible,
uuid(6A340DC0-0311-11d3-9D8E-00C04F72D980),
dual,
oleautomation,
helpstring("Component Type Interface"),
pointer_default(unique)
]
interface IComponentType : IDispatch
{
[propget, id(DISPID_TUNER_CT_CATEGORY),
helpstring("General category of component")]
HRESULT Category(
[out, retval] ComponentCategory *Category
);
[propput, id(DISPID_TUNER_CT_CATEGORY),
helpstring("General category of component")]
HRESULT Category(
[in] ComponentCategory Category
);
[propget, id(DISPID_TUNER_CT_MEDIAMAJORTYPE),
helpstring("DirectShow MediaType Major Type Guid")]
HRESULT MediaMajorType(
[out, retval] BSTR *MediaMajorType
);
[propput, id(DISPID_TUNER_CT_MEDIAMAJORTYPE),
helpstring("DirectShow MediaType Major Type Guid")]
HRESULT MediaMajorType(
[in] BSTR MediaMajorType
);
[propget, id(DISPID_TUNER_CT__MEDIAMAJORTYPE),
helpstring("DirectShow MediaType Major Type Guid"), hidden, restricted]
HRESULT _MediaMajorType(
[out, retval] GUID* MediaMajorTypeGuid
);
[propput, id(DISPID_TUNER_CT__MEDIAMAJORTYPE),
helpstring("DirectShow MediaType Major Type Guid"), hidden, restricted]
HRESULT _MediaMajorType(
[in] REFCLSID MediaMajorTypeGuid
);
[propget, id(DISPID_TUNER_CT_MEDIASUBTYPE),
helpstring("DirectShow MediaType Sub Type Guid")]
HRESULT MediaSubType(
[out, retval] BSTR *MediaSubType
);
[propput, id(DISPID_TUNER_CT_MEDIASUBTYPE),
helpstring("DirectShow MediaType Sub Type Guid")]
HRESULT MediaSubType(
[in] BSTR MediaSubType
);
[propget, id(DISPID_TUNER_CT__MEDIASUBTYPE),
helpstring("DirectShow MediaType Sub Type Guid"), hidden, restricted]
HRESULT _MediaSubType(
[out, retval] GUID* MediaSubTypeGuid
);
[propput, id(DISPID_TUNER_CT__MEDIASUBTYPE),
helpstring("DirectShow MediaType Sub Type Guid"), hidden, restricted]
HRESULT _MediaSubType(
[in] REFCLSID MediaSubTypeGuid
);
[propget, id(DISPID_TUNER_CT_MEDIAFORMATTYPE),
helpstring("DirectShow MediaType Format Guid")]
HRESULT MediaFormatType(
[out, retval] BSTR *MediaFormatType
);
[propput, id(DISPID_TUNER_CT_MEDIAFORMATTYPE),
helpstring("DirectShow MediaType Format Guid")]
HRESULT MediaFormatType(
[in] BSTR MediaFormatType
);
[propget, id(DISPID_TUNER_CT__MEDIAFORMATTYPE),
helpstring("DirectShow MediaType Format Guid"), hidden, restricted]
HRESULT _MediaFormatType(
[out, retval] GUID* MediaFormatTypeGuid
);
[propput, id(DISPID_TUNER_CT__MEDIAFORMATTYPE),
helpstring("DirectShow MediaType Format Guid"), hidden, restricted]
HRESULT _MediaFormatType(
[in] REFCLSID MediaFormatTypeGuid
);
[propget, id(DISPID_TUNER_CT_MEDIATYPE), hidden, restricted,
helpstring("DirectShow MediaType Guid, this only retrieves major, sub, format guids not the entire struct")]
HRESULT MediaType(
[out, retval] AM_MEDIA_TYPE *MediaType
);
[propput, id(DISPID_TUNER_CT_MEDIATYPE), hidden, restricted,
helpstring("DirectShow MediaType Guid, this only retrieves major, sub, format guids not the entire struct")]
HRESULT MediaType(
[in] AM_MEDIA_TYPE *MediaType
);
[id(DISPID_TUNER_CT_CLONE),
helpstring("Create a copy of this component type")]
HRESULT Clone(
[out, retval] IComponentType **NewCT
);
};
//////////////////////////////////////////////////////////////////////////////////////
[
object,
hidden,
nonextensible,
uuid(B874C8BA-0FA2-11d3-9D8E-00C04F72D980),
dual,
oleautomation,
helpstring("Language Component Type Interface"),
pointer_default(unique)
]
interface ILanguageComponentType : IComponentType
{
[propget, id(DISPID_TUNER_LCT_LANGID),
helpstring("Language Identifier for Substream Content Language")]
HRESULT LangID(
[out, retval] long *LangID
);
[propput, id(DISPID_TUNER_LCT_LANGID),
helpstring("Language Identifier for Substream Content Language")]
HRESULT LangID(
[in] long LangID
);
};
//////////////////////////////////////////////////////////////////////////////////////
[
object,
hidden,
nonextensible,
uuid(2C073D84-B51C-48c9-AA9F-68971E1F6E38),
dual,
oleautomation,
helpstring("MPEG2 Component Type Interface"),
pointer_default(unique)
]
interface IMPEG2ComponentType : ILanguageComponentType
{
[propget, id(DISPID_TUNER_MP2CT_TYPE),
helpstring("MPEG2 Stream Type")]
HRESULT StreamType(
[out, retval] MPEG2StreamType *MP2StreamType
);
[propput, id(DISPID_TUNER_MP2CT_TYPE),
helpstring("MPEG2 Stream Type")]
HRESULT StreamType(
[in] MPEG2StreamType MP2StreamType
);
};
//////////////////////////////////////////////////////////////////////////////////////
[
object,
hidden,
nonextensible,
uuid(FC189E4D-7BD4-4125-B3B3-3A76A332CC96),
dual,
oleautomation,
helpstring("ATSC Component Type Interface"),
pointer_default(unique)
]
interface IATSCComponentType : IMPEG2ComponentType
{
[propget, id(DISPID_TUNER_ATSCCT_FLAGS),
helpstring("ATSC Component Type Flags")]
HRESULT Flags(
[out, retval] long *Flags
);
[propput, id(DISPID_TUNER_ATSCCT_FLAGS),
helpstring("ATSC Component Type Flags")]
HRESULT Flags(
[in] long flags
);
};
//////////////////////////////////////////////////////////////////////////////////////
[
hidden, restricted,
object,
uuid(8A674B4A-1F63-11d3-B64C-00C04F79498E),
pointer_default(unique)
]
interface IEnumComponentTypes : IUnknown
{
HRESULT Next(
[in] ULONG celt,
[out, size_is(celt), length_is(*pceltFetched)]
IComponentType** rgelt,
[out] ULONG* pceltFetched
);
HRESULT Skip(
[in] ULONG celt
);
HRESULT Reset(void);
HRESULT Clone(
[out] IEnumComponentTypes** ppEnum
);
}
//////////////////////////////////////////////////////////////////////////////////////
// Component Type Container
//////////////////////////////////////////////////////////////////////////////////////
[
object,
hidden,
nonextensible,
uuid(0DC13D4A-0313-11d3-9D8E-00C04F72D980),
dual,
oleautomation,
helpstring("ComponentType Collection Interface"),
pointer_default(unique)
]
interface IComponentTypes : IDispatch
{
[propget, helpstring("Number of items in the collection")]
HRESULT Count(
[out, retval] long *Count
);
[propget, id(DISPID_NEWENUM), hidden, restricted]
HRESULT _NewEnum(
[out, retval] IEnumVARIANT **ppNewEnum
);
[hidden, restricted, helpstring("Convenience Function for Use with C")]
HRESULT EnumComponentTypes(
[out, retval] IEnumComponentTypes **ppNewEnum
);
[id(DISPID_VALUE),
propget,
helpstring("Get the ComponentType at the specified index")]
HRESULT Item(
[in] VARIANT Index,
[out, retval] IComponentType **ComponentType
);
[id(DISPID_VALUE),
propput,
helpstring("Get the ComponentType at the specified index")]
HRESULT Item(
[in] VARIANT Index,
[in] IComponentType *ComponentType
);
[id(DISPID_ADDITEM),
helpstring("Append the ComponentType to the collection")]
HRESULT Add(
[in] IComponentType *ComponentType,
[out, retval] VARIANT *NewIndex
);
[id(DISPID_REMOVEITEM),
helpstring("Clear the collection")]
HRESULT Remove(
[in] VARIANT Index
);
[helpstring("Copy the collection")]
HRESULT Clone([out, retval] IComponentTypes **NewList);
};
//////////////////////////////////////////////////////////////////////////////////////
// Component Interfaces
//////////////////////////////////////////////////////////////////////////////////////
[
object,
nonextensible,
uuid(1A5576FC-0E19-11d3-9D8E-00C04F72D980),
dual,
oleautomation,
helpstring("Component Interface"),
pointer_default(unique)
]
interface IComponent : IDispatch
{
[propget, id(DISPID_TUNER_C_TYPE),
helpstring("Component Type")]
HRESULT Type(
[out, retval] IComponentType** CT
);
// only loaders initialize components
[hidden, restricted, propput, id(DISPID_TUNER_C_TYPE),
helpstring("Component Type")]
HRESULT Type(
[in] IComponentType* CT
);
// NOTE: this langid is *not* the same as the langid
// in the componenttype(if the componenttype is a languagecomponenttype)
// the langid in the component type is the language of the content this
// component is describing. the following langid in the component is the
// language of the descriptive info in the component object.
[propget, id(DISPID_TUNER_C_LANGID),
helpstring("Language Identifier for Description Language")]
HRESULT DescLangID(
[out, retval] long *LangID
);
[propput, id(DISPID_TUNER_C_LANGID),
helpstring("Language Identifier for Description Language")]
HRESULT DescLangID(
[in] long LangID
);
[propget, id(DISPID_TUNER_C_STATUS),
helpstring("Component Status")]
HRESULT Status(
[out, retval] ComponentStatus *Status
);
[propput, id(DISPID_TUNER_C_STATUS),
helpstring("Component Status")]
HRESULT Status(
[in] ComponentStatus Status
);
[propget, id(DISPID_TUNER_C_DESCRIPTION),
helpstring("Component Description")]
HRESULT Description(
[out, retval] BSTR *Description
);
// restricted: only loaders will initialize components
[hidden, restricted, propput, id(DISPID_TUNER_C_DESCRIPTION),
helpstring("Component Description")]
HRESULT Description(
[in] BSTR Description
);
[id(DISPID_TUNER_C_CLONE),
helpstring("Copy Component")]
HRESULT Clone(
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -