基于协议名称创建 IMFNetProxyLocator 接口代理定位器对象。
语法
HRESULT CreateProxyLocator(
[in] LPCWSTR pszProtocol,
[out] IMFNetProxyLocator **ppProxyLocator
);
parameters
[in] pszProtocol
包含协议名称(例如 RTSP 或 HTTP) ) (以 Null 结尾的宽字符字符串。
[out] ppProxyLocator
接收指向 IMFNetProxyLocator 接口的指针。 调用方必须释放接口。
返回值
该方法返回 HRESULT。 可能的值包括(但并不限于)下表中的项。
| 返回代码 | 说明 |
|---|---|
|
方法成功。 |
要求
| 最低受支持的客户端 | Windows Vista [仅限桌面应用] |
| 最低受支持的服务器 | Windows Server 2008 [仅限桌面应用] |
| 目标平台 | Windows |
| 标头 | mfidl.h |
| Library | Mfuuid.lib |