IWbemCallResult::GetResultServices method (wbemcli.h)
The IWbemCallResult::GetResultServices method retrieves the IWbemServices pointer, which results from a semisynchronous call to IWbemServices::OpenNamespace when it becomes available.
Syntax
HRESULT GetResultServices(
[in] long lTimeout,
[out] IWbemServices **ppServices
);
Parameters
[in] lTimeout
The maximum time in milliseconds that this call blocks before it returns. If you use the constant WBEM_INFINITE (0xFFFFFFFF), the call blocks until the interface pointer is available. If you use 0, the call immediately returns either the pointer or a status code.
[out] ppServices
Cannot be NULL. It receives a pointer to the IWbemServices interface requested by the original call to OpenNamespace when it becomes available The caller must call IWbemServices::Release on the returned object when it is no longer required.
On error, a new object is not returned.
Return value
This method returns an HRESULT that indicates the status of the method call. The following list lists the value contained within an HRESULT.
On error, the COM function GetErrorInfo can be called to obtain more error information.
COM-specific error codes may also be returned if network problems cause you to lose the remote connection to Windows Management.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista |
Minimum supported server | Windows Server 2008 |
Target Platform | Windows |
Header | wbemcli.h (include Wbemidl.h) |