IMFNetProxyLocator 介面 (mfidl.h)

決定連線到伺服器時要使用的 Proxy。 網路來源會使用此介面。

應用程式可以實作 IMFNetProxyLocatorFactory 介面,並在來源解析程式上設定 MFNETSOURCE_PROXYLOCATORFACTORY 屬性,以建立應用程式所設定的 Proxy 定位器。 否則,網路來源會使用預設的 Media Foundation 實作。

若要建立預設 Proxy 定位器,請呼叫 MFCreateProxyLocator

繼承

IMFNetProxyLocator 介面繼承自 IUnknown 介面。 IMFNetProxyLocator 也有下列類型的成員:

方法

IMFNetProxyLocator 介面具有這些方法。

 
IMFNetProxyLocator::Clone

建立預設 Proxy 定位器的新實例。
IMFNetProxyLocator::FindFirstProxy

初始化 Proxy 定位器物件。
IMFNetProxyLocator::FindNextProxy

決定要使用的下一個 Proxy。
IMFNetProxyLocator::GetCurrentProxy

擷取目前的 Proxy 資訊,包括主機名和埠。
IMFNetProxyLocator::RegisterProxyResult

保留使用目前 Proxy 成功或失敗的記錄。

規格需求

需求
最低支援的用戶端 Windows Vista [僅限傳統型應用程式]
最低支援的伺服器 Windows Server 2008 [僅限傳統型應用程式]
目標平台 Windows
標頭 mfidl.h

另請參閱

媒體基礎介面

網路來源的 Proxy 支援