[This is preliminary documentation and subject to change.]
You can use the IWbemCallResult::GetResultServices method to retrieve the IWbemServices pointer, which resulted from a semisynchronous call to IWbemServices::OpenNamespace when it becomes available.
HRESULT GetResultServices(
[in] LONG lTimeout,
[out] IWbemServices **ppServices
);
On error, a new object is not returned.
WBEM_NO_ERROR | The call succeeded and returned an IWbemServices pointer. |
WBEM_S_PENDING | The time-out occurred and the call has not yet completed. |
WBEM_E_UNEXPECTED | An internal failure occurred. |
WBEM_E_TRANSPORT_FAILURE | The network transport to CIMOM has failed. |
WBEM_E_ACCESS_DENIED | The user attempted to perform an unauthorized operation. |
On error, the COM function GetErrorInfo can be called to obtain more error information.