IMFPresentationDescriptor::GetStreamDescriptorCount 方法 (mfidl.h)

擷取簡報中的資料流程描述項數目。 每個資料流程描述元都包含媒體來源中一個資料流程的相關資訊。 若要擷取資料流程描述元,請呼叫 IMFPresentationDescriptor::GetStreamDescriptorByIndex 方法。

語法

HRESULT GetStreamDescriptorCount(
  [out] DWORD *pdwDescriptorCount
);

參數

[out] pdwDescriptorCount

接收資料流程描述項的數目。

傳回值

如果此方法成功,則會傳回 S_OK。 否則,它會傳回 HRESULT 錯誤碼。

備註

如果已安裝 Windows Media Format 11 SDK 可轉散發元件,此介面可在下列平臺上使用:

  • Windows XP with Service Pack 2 (SP2) 和更新版本。
  • 已安裝 Windows XP Media Center 版本 2005 200325 (Windows XP Media Center Edition 2005) 和 KB925766 (2006 年 10 月 Windows XP Media Center Edition 更新彙總套件) 。

需求

   
最低支援的用戶端 Windows Vista [傳統型應用程式 |UWP 應用程式]
最低支援的伺服器 Windows Server 2008 [傳統型應用程式 |UWP 應用程式]
目標平台 Windows
標頭 mfidl.h
程式庫 Mfuuid.lib

另請參閱

IMFPresentationDescriptor

簡報描述項