| Previous | Next |
| ERROR_EA_ACCESS_DENIED | ERROR_IO_INCOMPLETE |
ERROR_OPERATION_ABORTED
ERROR_OPERATION_ABORTED is the final completion status of an I/O request that Windows canceled. It is commonly seen after CancelIo, CancelIoEx, or cancellation caused by thread termination.
Cancellation is asynchronous
Requesting cancellation does not make an outstanding operation disappear immediately. The I/O subsystem still has to complete the request and report its final status. A request can complete with ERROR_OPERATION_ABORTED, but it can also complete normally if it won the race with the cancellation request.
Object lifetime still matters
Do not free or reuse the OVERLAPPED structure or the I/O buffer immediately after calling CancelIoEx. Wait for the completion notification or obtain the result with GetOverlappedResult. Only then is it safe to release state that belongs to the canceled request.
How to interpret the status
This code usually means that shutdown, timeout handling, user cancellation, or another deliberate cancellation path interrupted the request. It should not be retried blindly: first determine whether the surrounding operation is still valid and whether a new request is intended.
See Microsoft documentation about canceling pending I/O operations and CancelIoEx.
Looking for a different code? Search another status or error code.