IWbemDecoupledBasicEventProvider::GetService 方法 (wbemprov.h)
IWbemDecoupledBasicEventProvider::GetService 方法检索要用于回调 WMI 的 IWbemService 对象。 此方法提供完全并发访问。
语法
HRESULT GetService(
[in] long a_Flags,
[in] IWbemContext *a_Context,
[out] IWbemServices **a_Service
);
参数
[in] a_Flags
保留供将来使用。
[in] a_Context
留待将来使用。
[out] a_Service
指向可用于从 WMI 检索信息的 IWbemService 对象的指针。
返回值
此方法返回指示方法调用状态的 HRESULT。 以下列表列出了 HRESULT 中包含的值。
要求
要求 | 值 |
---|---|
最低受支持的客户端 | Windows Vista |
最低受支持的服务器 | Windows Server 2008 |
目标平台 | Windows |
标头 | wbemprov.h (包括 Wbemidl.h) |
Library | Wbemuuid.lib |
DLL | Wmidcprv.dll |