返回此会话 的 IUpdateSearcher 接口。
语法
HRESULT CreateUpdateSearcher(
[out] IUpdateSearcher **retval
);
参数
[out] retval
此会话 的 IUpdateSearcher 接口。
返回值
如果成功 , 则返回S_OK。 否则为 COM 或 Windows 错误代码。
此方法还可以返回以下错误代码。
| 返回代码 | 说明 |
|---|---|
|
参数值无效。 |
注解
也可以使用 UpdateSearcher coclass 创建 IUpdateSearcher 接口。
要求
| 最低受支持的客户端 | Windows XP、Windows 2000 Professional SP3 [仅限桌面应用] |
| 最低受支持的服务器 | Windows Server 2003、Windows 2000 Server SP3 [仅限桌面应用] |
| 目标平台 | Windows |
| 标头 | wuapi.h |
| Library | Wuguid.lib |
| DLL | Wuapi.dll |