What does Windows error code 12 (ERROR_INVALID_ACCESS) mean?

 
Could be also:
ConstantTypeOS
KERN_NOT_IN_SETKern returnMac
ippStsOverflowIntel Ipp StatusAny
ENOMEMerrnoAny
MAXIMUM_WAIT_OBJECTS_EXCEEDEDBugCheck CodeWindows
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.