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 |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for