IMFTransform::GetAttributes 方法 (mftransform.h)

取得此 Media Foundation 轉換的全域屬性存放區, (MFT) 。

語法

HRESULT GetAttributes(
  [out] IMFAttributes **pAttributes
);

參數

[out] pAttributes

接收 IMFAttributes 介面的指標。 呼叫端必須釋放 介面。

傳回值

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

傳回碼 描述
S_OK
此方法已成功。
E_NOTIMPL
MFT 不支援屬性。

備註

使用此方法所擷取的 IMFAttributes 指標來取得或設定套用至整個MFT的屬性。 若要取得輸入數據流的屬性存放區,請呼叫 IMFTransform::GetInputStreamAttributes。 若要取得輸出數據流的屬性存放區,請呼叫 IMFTransform::GetOutputStreamAttributes

除非 MFT 需要支援一組特定的屬性,否則此方法的實作是選擇性的。 例外狀況:硬體型 MFT 必須實作這個方法。 請參閱 硬體 MFT

規格需求

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

另請參閱

IMFTransform

媒體基礎轉換

轉換屬性