ICancelMethodCalls::TestCancel

[This is preliminary documentation and subject to change.]

Determines if a call has been canceled.

HRESULT TestCancel(void);
 

Return Values

RPC_S_CALLPENDING
The call has not been canceled.
RPC_E_CALL_CANCELED
The call was canceled.

Remarks

The server object calls TestCancel to determine if the call has been canceled. If the call has been canceled, the server should clean up the necessary resources and return control to the client.

This method can be called from both client and server.

QuickInfo

  Windows NT: Use version 5.0 or later.
  Windows: Unsupported.
  Windows CE: Unsupported.
  Header: Declared in objidl.h.

See Also

CoTestCancel