What does HRESULT 0xC026200D (ERROR_GRAPHICS_WINDOWDC_NOT_AVAILABLE) mean?

 
Previous Next
ERROR_GRAPHICS_PRESENT_UNOCCLUDED ERROR_GRAPHICS_WINDOWLESS_PRESENT_DISABLED

ERROR_GRAPHICS_WINDOWDC_NOT_AVAILABLE

ERROR_GRAPHICS_WINDOWDC_NOT_AVAILABLE (0xC026200D) means the window device context required for presentation was unavailable. The window may have been destroyed, recreated, moved between desktops, or changed while the application held stale state.

What to check

  • Validate the window lifetime and reacquire its device context after recreation, resize, or display changes.
  • Do not present from a background or invalid window handle.
  • Correlate the failure with WM_DISPLAYCHANGE, window recreation, or session state changes.

Useful command

Get-CimInstance Win32_VideoController | Select-Object Name, CurrentRefreshRate, CurrentHorizontalResolution, CurrentVerticalResolution

Microsoft: Direct3D presentation status values

Microsoft: SetDisplayConfig

Microsoft: Graphics error codes


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