ERRORACCESSDENIED
ERRORACCESSDENIED is the informal name for the Windows error commonly known as ERROR_ACCESS_DENIED. This Win32 error code has the numeric value 5 and indicates that the caller does not have sufficient privileges to perform the requested operation. In the Windows API, the condition is often surfaced as the Win32 error 5 or as the corresponding HRESULT 0x80070005, which is also defined as E_ACCESSDENIED.
Causes of this error include attempting to read or write a file, folder, or registry key for
Common contexts where ERROR_ACCESS_DENIED appears include file input/output, registry access, service management, and network shares where
Resolution typically involves validating and adjusting permissions. This may include running the operation with administrative privileges,