共用方式為


IMFTrustedOutput::GetOutputTrustAuthorityByIndex 方法 (mfidl.h)

取得由索引指定的輸出信任授權單位 (OTA) 。

語法

HRESULT GetOutputTrustAuthorityByIndex(
  [in]  DWORD                   dwIndex,
  [out] IMFOutputTrustAuthority **ppauthority
);

參數

[in] dwIndex

要擷取之 OTA 以零起始的索引。 若要取得此物件所提供的 OTA 數目,請呼叫 IMFTrustedOutput::GetOutputTrustAuthorityCount

[out] ppauthority

接收 OTA 之 IMFOutputTrustAuthority 介面的指標。 呼叫端必須釋放 介面。

傳回值

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

需求

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

另請參閱

IMFTrustedOutput