[This is preliminary documentation and subject to change.]
The IWbemObjectSink::SetStatus method is called by sources to indicate the end of a notification sequence or the end of a result code of an asynchronous method of IWbemServices.
Normally, a client implements the IWbemObjectSink interface, and executes IWbemServices methods that return their results using this interface. During this operation, CIMOM calls Indicate as many times as required, followed by a final call to SetStatus, and in many cases, Release.
HRESULT IWbemObjectSink::SetStatus(
[in] LONG lFlags,
[in] HRESULT hResult,
[in] BSTR bstrParam,
[in] IWbemClassObject *pObjParam
);
WBEM_E_FAILED | The receiver was not able to process the notification properly. |
WBEM_E_INVALID_PARAMETER | An invalid parameter was specified, or the namespace could not be parsed. |
WBEM_E_OUT_OF_MEMORY | There was not enough memory to complete the operation. |
WBEM_NO_ERROR | The call succeeded; the receiver acknowledges the notification. |