IDeviceIoControl::CancelOperation method (deviceaccess.h)
The CancelOperation method attempts to cancel a previously issued call by using the DeviceIoControlAsync method.
Syntax
HRESULT CancelOperation(
[in] ULONG_PTR cancelContext
);
Parameters
[in] cancelContext
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
Requirement | Value |
---|---|
Target Platform | Windows |
Header | deviceaccess.h |
Library | Deviceaccess.lib |