IWbemServices::CancelAsyncCall

[This is preliminary documentation and subject to change.]

The IWbemServices::CancelAsyncCall method cancels any currently pending asynchronous call based on the IWbemObjectSink pointer originally passed to the asynchronous method. Before this method returns, it is guaranteed that the outstanding IWbemObjectSink pointer passed to the original asynchronous call is released using Release.

HRESULT IWbemServices::CancelAsyncCall(
  [in] IWbemObjectSink *pSink 
);
 

Parameters

pSink
The pointer to the IWbemObjectSink implementation provided by the client to any of the asynchronous methods of IWbemServices.

Return Values

WBEM_E_FAILED Unspecified error.
WBEM_E_INVALID_PARAMETER The supplied handle in lAsyncRequestHandle did not correspond to a pending asynchronous request.
WBEM_E_OUT_OF_MEMORY There was not enough memory to complete the operation.
WBEM_E_TRANSPORT_FAILURE The RPC link between the current process and CIMOM has failed.
WBEM_NO_ERROR The call succeeded.

On failure, you can obtain any available information from the COM function GetErrorInfo.

See Also

Asynchronous Methods, IWbemObjectSink