[This is preliminary documentation and subject to change.]
The IWbemServices::GetObjectAsync method retrieves an object, either a class definition or instance, based on its path. This is similar to IWbemServices::GetObject except that the call returns immediately and the object is provided to the supplied object sink.
Currently, this method retrieves objects only from the namespace associated with the IWbemServices pointer.
HRESULT IWbemServices::GetObjectAsync(
[in] BSTR bstrObjectPath,
[in] LONG lFlags,
[in] IWbemContext *pCtx,
[in] CALLBACK *pResponseHandler
);
WBEM_E_FAILED | Other error codes are returned asynchronously to the IWbemObjectSink. |
WBEM_E_INVALID_PARAMETER | An invalid parameter was specified, or the namespace could not be parsed. |
WBEM_E_INVALID_PATH | The specified object path was invalid. |
WBEM_NO_ERROR | The call succeeded. |
On failure, you can obtain any available information from the COM function GetErrorInfo.
Asynchronous Methods, Class Creation, IWbemServices::GetObject, Object Paths