ICancelMethodCalls interface
Manages cancellation requests on an outbound method call and monitors the current state of that method call on the server thread.
When to implement
For objects that use standard marshaling, COM automatically creates cancel objects and implements ICancelMethodCalls on them. For objects that use custom marshaling, you must implement your own corresponding cancel object and implement ICancelMethodCalls on that object.
When to use
A thread that is blocked because an outbound synchronous method call is pending calls the methods of ICancelMethodCalls on its corresponding cancel object to determine the current state of the pending call or to request that the call be canceled.
Members
The ICancelMethodCalls interface inherits from the IUnknown interface. ICancelMethodCalls also has these types of members:
Methods
The ICancelMethodCalls interface has these methods.
| Method | Description |
|---|---|
| Cancel |
Requests that a method call be canceled. |
| TestCancel |
Determines whether a call has been canceled. |
Requirements
|
Minimum supported client |
Windows 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows 2000 Server [desktop apps only] |
|
Header |
|
|
IDL |
|
|
IID |
IID_ICancelMethodCalls is defined as 00000029-0000-0000-C000-000000000046 |
See also