MFCreateProxyLocator function (mfidl.h)

Creates a default proxy locator.


HRESULT MFCreateProxyLocator(
  [in]  LPCWSTR            pszProtocol,
  [in]  IPropertyStore     *pProxyConfig,
  [out] IMFNetProxyLocator **ppProxyLocator


[in] pszProtocol

The name of the protocol.

Note  In this release of Media Foundation, the default proxy locator does not support RTSP.

[in] pProxyConfig

Pointer to the IPropertyStore interface of a property store that contains the proxy configuration in the MFNETSOURCE_PROXYSETTINGS property.

[out] ppProxyLocator

Receives a pointer to the IMFNetProxyLocator interface. The caller must release the interface.

Return value

The function returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
The function succeeded.


Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header mfidl.h
Library Mf.lib
DLL Mf.dll

See also

Media Foundation Functions

Proxy Support for Network Sources