| Previous | Next |
| DXGI_ERROR_CANNOT_PROTECT_CONTENT | DXGI_ERROR_NAME_ALREADY_EXISTS |
DXGI_ERROR_ACCESS_DENIED
DXGI_ERROR_ACCESS_DENIED means that the application attempted to use a DXGI resource without the required access. Microsoft notes a common case: writing to a shared resource that was opened with read-only access.
What to inspect
- The sharing flags and access rights used when the resource or shared handle was created and opened.
- Which process owns the resource and whether the caller is expected to read, write, or synchronize it.
- The lifecycle of the shared handle, including whether a stale handle now refers to a resource with different policy.
Fix the ownership contract
Changing all resources to broad access is not a safe universal workaround. Make the intended producer-consumer and read-write contract explicit, then create or open the resource with the least privileges that satisfy that contract.
Microsoft: DXGI error codes · Microsoft: IDXGIResource1::CreateSharedHandle
Looking for a different code? Search another status or error code.