DIWbemCallResult.GetResultServices

[This is preliminary documentation and subject to change.]

Use the DIWbemCallResult.GetResultServices method to retrieve the DIWbemServices object that resulted from a semisynchronous call to DIWbemServices.OpenNamespace when the object becomes available.

GetResultServices(
  [in] lTimeout As Long,
  [out] ppServices As Object
) As Long
 

Parameters

lTimeout
Specifies the maximum time in milliseconds to waitfor the call to return. If you use the value WBEM_INFINITE, the call blocks until the interface is available. If you use zero, the call immediately returns either the object or a status code.
ppServices
This parameter cannot be NOTHING. It receives a DIWbemServices interface requested by the original call to OpenNamespace when the DIWbemServices object becomes available.

On error, a new object is not returned.

Return Values

WBEM_NO_ERROR The call succeeded, and it returned an DIWbemServices Object.
WBEM_S_PENDING The time-out occurred, and the call has not yet completed.
WBEM_E_UNEXPECTED An internal failure occurred.
WBEM_E_ACCESS_DENIED The user tried to perform an unauthorized operation.

For more information on return values see Visual Basic error handeling and return values

See Also

DIWbemServices.OpenNamespace