DIWbemCallResult.GetResultString

[This is preliminary documentation and subject to change.]

The DIWbemCallResult.GetResultString method returns the assigned object path of an instance newly created by DIWbemServices.PutInstance.

GetResultString(
  [in] lTimeout As Long,
  [out] pstrResultString As String
)long
 

Parameters

lTimeout
Specifies the maximum time in milliseconds to wait for the call to return. If you use the value WBEM_INFINITE, the call blocks until the object path is available. If you use zero, the call immediately returns either the object path or a status code.
pstrResultString
String containing the assigned object path of the newly created instance . On error, a new string is not returned.

Return Values

WBEM_NO_ERROR The object path was retrieved.
WBEM_S_PENDING The call has not yet completed.
WBEM_E_UNEXPECTED An internal failure occurred.
WBEM_E_ACCESS_DENIED The caller attempted an unauthorized operation.
WBEM_E_INVALID_PARAMETER An invalid parameter was specified, or the namespace could not be parsed.

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

See Also

DIWbemServices.PutInstance