IMFPresentationDescriptor::D eselectStream 方法 (mfidl.h)

取消選取簡報中的資料流程。

語法

HRESULT DeselectStream(
  [in] DWORD dwDescriptorIndex
);

參數

[in] dwDescriptorIndex

要取消選取的資料流程編號,從零編制索引。 若要尋找簡報中的資料流程數目,請呼叫 IMFPresentationDescriptor::GetStreamDescriptorCount 方法。

傳回值

方法會傳回 HRESULT。 可能的值包括 (但不限於) 下表中的這些值。

傳回碼 描述
S_OK
此方法已成功。
E_INVALIDARG
dwDescriptorIndex 超出範圍。

備註

如果取消選取資料流程,則不會針對該資料流程產生任何資料。 若要再次選取資料流程,請呼叫 IMFPresentationDescriptor::SelectStream

若要查詢是否已選取資料流程,請呼叫 IMFPresentationDescriptor::GetStreamDescriptorByIndex

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

  • Windows XP with Service Pack 2 (SP2) 和更新版本。
  • Windows XP Media Center Edition 2005,KB900325 (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

簡報描述項