ERROR_SET_CONTEXT_DENIED 0x8007067C

Error code 1660 · HRESULT 0x8007067C

WINDOWS

The thread context could not be updated because this has been restricted for the process.

Windows troubleshooting diagram: Device Manager warning and a system file scan
Windows errors: check drivers, system files and Event Viewer, in that order.

What it means

ERROR_SET_CONTEXT_DENIED is a Windows error code (system error 1660, returned as HRESULT 0x8007067C) reported by Windows. Its official message is: “The thread context could not be updated because this has been restricted for the process.”

How to fix ERROR_SET_CONTEXT_DENIED

  1. Run the affected program as administrator (right-click → Run as administrator)
  2. Check permissions on the target resource: Properties → Security → your account
  3. Check Event Viewer → Windows Logs → Security for the matching audit entry

Related errors

Source: Microsoft WinError.h

Last updated: