[This is preliminary documentation and subject to change.]
The DIWbemCallResult.GetResultObject method returns the object. This results from a semisynchronous invocation of DIWbemServices.GetObject or DIWbemServices.ExecMethod. If the object is not yet available, the call returns WBEM_S_PENDING. Before invoking this method to get the object you want, you may also call DIWbemCallResult.GetCallStatus until it returns WBEM_NO_ERROR.
GetResultObject(
[in] lTimeout AS Long ,
[out] ppResultObject As Object
) As Long
On error, a new object is not returned.
WBEM_NO_ERROR | The object was returned successfully. |
WBEM_S_PENDING | The object was not yet available after the lTimeout value expired. |
WBEM_E_NOT_FOUND | The object did not exist. |
WBEM_E_UNEXPECTED | The call failed, and is not expected to complete. |
WBEM_E_INVALID_PARAMETER | An invalid parameter was specified, or the namespace could not be parsed. |
WBEM_E_ACCESS_DENIED | The caller attempted an unauthorized operation. |
For more information on return values see Visual Basic error handeling and return values.
DIWbemServices.GetObject DIWbemServices.ExecMethod.