[This is preliminary documentation and subject to change.]
Requests cancellation of an outbound COM method call pending on a specified thread.
HRESULT CoCancelCall(
DWORD dwThreadID //Thread issuing call
);
This function supports the standard return values E_FAIL, E_OUTOFMEMORY, and E_UNEXPECTED, as well as the following:
CoCancelCall calls CoGetCancelObject and then calls ICancelMethodCalls::Cancel on the cancel object for the call being executed.
The object server can determine if the call has been canceled by periodically calling CoTestCancel. If the call has been canceled, the object server should clean up and return control to the client.
This function does not locate cancel objects for asynchronous calls.
Windows NT: Use version 5.0 or later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in objbase.h.
Import Library: Use ole32.lib.