IDvdInfo2::GetCurrentVideoAttributes 方法 (strmif.h)

[与此页面关联的功能 DirectShow 是一项旧功能。 它已被 MediaPlayerIMFMediaEngine媒体基金会中的音频/视频捕获取代。 这些功能已针对Windows 10和Windows 11进行了优化。 Microsoft 强烈建议新代码尽可能使用 MediaPlayerIMFMediaEngineMedia Foundation 中的音频/视频捕获 ,而不是 DirectShow。 如果可能,Microsoft 建议重写使用旧 API 的现有代码以使用新 API。]

方法 GetCurrentVideoAttributes 检索当前标题或菜单的视频属性。

语法

HRESULT GetCurrentVideoAttributes(
  [out] DVD_VideoAttributes *pATR
);

参数

[out] pATR

指向接收属性 的DVD_VideoAttributes 结构的指针。

返回值

返回以下 HRESULT 值之一。

返回代码 说明
S_OK
成功。
E_POINTER
无效的参数。
E_UNEXPECTED
DVD 导航器未初始化。

注解

CDvdCore::GetVideoAttributes () 中的 DVDSample 应用程序中演示了此方法的使用。

要求

要求
最低受支持的客户端 Windows XP [仅限桌面应用]
最低受支持的服务器 Windows Server 2003 [仅限桌面应用]
目标平台 Windows
标头 strmif.h (包括 Dshow.h)
Library Strmiids.lib

另请参阅

DVD 应用程序

错误和成功代码

IDvdInfo2 接口