ERROR_FILE_HANDLE_REVOKED - 806 (0x326)
Access to the specified file handle has been revoked.
Updated: Feb 21, 2026
Technical Meaning
The ERROR_FILE_HANDLE_REVOKED error code indicates that the system has revoked access to a specific file handle. This typically occurs when the operating system determines that further operations on the file handle are no longer permissible.
Error Details
This error is returned by various Windows API functions and indicates that the file handle associated with an operation has been invalidated or closed unexpectedly, leading to a situation where subsequent attempts to use the handle will fail.
Usage Context
The ERROR_FILE_HANDLE_REVOKED can be encountered in scenarios such as:
- Closing of a file handle by another process or the system itself.
- Expiration of a temporary file handle due to policy changes or security updates.
- Revocation of access rights for the user associated with the file handle.
Developer Interpretation
When this error is returned, it signifies that the operation attempted on the file handle cannot proceed as the underlying resource has been revoked. Developers should ensure that all file handles are properly managed and closed when no longer needed to avoid such errors.
Related Errors
FAQ
Q: What causes this error?
A: This error can occur due to various reasons, including the revocation of access rights or the closing of a file handle by another process.
Q: How can I prevent this error from occurring?
A: Ensure that all file handles are properly managed and closed when they are no longer needed. Check for valid handles before performing operations on them.
Summary
The ERROR_FILE_HANDLE_REVOKED is a specific error code indicating the revocation of access to a file handle in Windows. Developers should manage file handles carefully to avoid this issue.