| Previous | Next |
| ERROR_BAD_FORMAT | ERROR_INVALID_DATA |
ERROR_INVALID_ACCESS
An unsupported access request was supplied
ERROR_INVALID_ACCESS means the caller supplied an access value that the API does not accept. It differs from ERROR_ACCESS_DENIED: this result points to an invalid request, not necessarily insufficient permission.
Review
- Compare the access flags with the API contract.
- Check for mixed flag sets from unrelated APIs.
- Verify integer widths and structure initialization.
- Log the exact requested mask in hexadecimal.
Fix
Correct the flags and request the minimum supported access. Elevation or ACL changes do not solve an invalid access-mask combination.
References
Looking for a different code? Search another status or error code.