ICancelMethodCalls::TestCancel method (objidl.h)

Determines whether a call has been canceled.

Syntax

HRESULT TestCancel();

Return value

If the call was canceled, the return value is RPC_E_CALL_CANCELED. Otherwise, it is RPC_S_CALLPENDING.

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 the client and the server.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header objidl.h (include ObjIdl.h)

See also

CoTestCancel

ICancelMethodCalls