IWbemCallResult::GetResultString method (wbemcli.h)
The IWbemCallResult::GetResultString method returns the assigned object path of an instance newly created by IWbemServices::PutInstance.
Syntax
HRESULT GetResultString(
[in] long lTimeout,
[out] BSTR *pstrResultString
);
Parameters
[in] lTimeout
Specifies the maximum time in milliseconds that this call blocks before returning. If you use the constant WBEM_INFINITE (0xFFFFFFFF), the call blocks until the object path is available. If you use 0, the call immediately returns either the object path or a status code.
[out] pstrResultString
Cannot be NULL. This parameter receives a pointer to the object path, which, in turn, leads to the newly created object. The returned string must be deallocated using the system call SysFreeString. On error, a new string is not returned.
Return value
This method returns an HRESULT indicating the status of the method call. The following list lists the value contained within an HRESULT.
On error, you can call the COM function GetErrorInfo to obtain more error information.
COM-specific error codes may also be returned if network problems cause you to lose the remote connection to Windows Management.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista |
Minimum supported server | Windows Server 2008 |
Target Platform | Windows |
Header | wbemcli.h (include Wbemidl.h) |