What does HRESULT 0x88990005 (D2DERR_SCREEN_ACCESS_DENIED) mean?

 
Previous Next
D2DERR_SCANNER_FAILED D2DERR_DISPLAY_STATE_INVALID

D2DERR_SCREEN_ACCESS_DENIED

D2DERR_SCREEN_ACCESS_DENIED means that Direct2D could not obtain the display access needed by the operation. It can occur when the display environment changes, access is restricted, or the target is no longer usable for presentation.

What to check

  • Check whether the window, monitor, session, or display configuration changed while rendering was active.
  • Recreate the affected render target if it has become invalid.
  • Keep rendering on the correct interactive desktop and avoid assuming that every process can present to every session.

Treat this as a display-target failure rather than a problem in the drawing commands themselves.

Microsoft: Direct2D error codes


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