What does Windows error code 130 (ERROR_DIRECT_ACCESS_HANDLE) mean?

 
Could be also:
ConstantTypeOS
ECONNABORTEDerrnoSolaris
EOPNOTSUPPerrnoWindows
DFS_FILE_SYSTEMBugCheck CodeWindows
Previous Next
ERROR_CHILD_NOT_COMPLETE ERROR_NEGATIVE_SEEK

ERROR_DIRECT_ACCESS_HANDLE

The handle type is incompatible with the operation

ERROR_DIRECT_ACCESS_HANDLE indicates that an API received a direct-access disk or volume handle in a context that expects another kind of object. The handle itself may be open, but its semantics do not match the request.

Checks

  • Identify how the handle was opened and which object it represents.
  • Do not pass volume handles to file-oriented APIs.
  • Keep raw-device I/O paths separate from ordinary file I/O.
  • Validate wrapper types at module boundaries.

Resolution

Open the correct object type with the access and sharing flags documented for the target API.

References


Looking for a different code? Search another status or error code.