Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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 |