| Previous | Next |
| STATUS_GRAPHICS_DDCCI_INVALID_MESSAGE_CHECKSUM | STATUS_GRAPHICS_MONITOR_NO_LONGER_EXISTS |
STATUS_GRAPHICS_INVALID_PHYSICAL_MONITOR_HANDLE
STATUS_GRAPHICS_INVALID_PHYSICAL_MONITOR_HANDLE is a handle-ownership error in the Windows monitor-configuration API. A physical-monitor handle is not the same thing as an HMONITOR, a device name, or an arbitrary cached numeric value. Windows obtains these handles through physical-monitor enumeration APIs.
One HMONITOR can map to more than one physical monitor. Handles returned by GetPhysicalMonitorsFromHMONITOR must be closed with the corresponding destroy function, so application code must track both their origin and lifetime.
What to correct
- Pass only handles returned by the physical-monitor enumeration API; never cast an
HMONITORinto a physical-monitor handle. - Do not reuse handles after they have been destroyed or after the display path has been rebuilt.
- Associate work queues with a monitor-generation or topology generation so stale requests can be discarded.
References
- Microsoft: GetPhysicalMonitorsFromHMONITOR
- Microsoft: DestroyPhysicalMonitors
- MS-ERREF: NTSTATUS values
Looking for a different code? Search another status or error code.
