IDeviceIoControl::CancelOperation method
The CancelOperation method attempts to cancel a previously issued call by using the DeviceIoControlAsync method.
Syntax
HRESULT CancelOperation(
[in] ULONG_PTR cancelContext
);
Parameters
- cancelContext [in]
-
The cancel context that a previous call to DeviceIoControlAsync returned.
Return value
This method supports standard return values, in addition to these:
| Return code | Description |
|---|---|
|
The operation was still outstanding, and cancellation was attempted. |
|
The operation was no longer outstanding. |
Remarks
Regardless of whether cancellation is successful, the result of the operation is available in the callback that's provided to the asynchronous call.
Requirements
|
Header |
|
|---|---|
|
IDL |
|
|
Library |
|
See also