Share via

Why does EnumDisplayMonitors Still Return just Disconnected Monitor

Harshithraj1871 1,756 Reputation points
2025-02-11T06:48:09.9366667+00:00

I'm working om win32 Desktop application in CPP and I'm checking what happens if I try to fetch Display info with EnumDisplayMonitors when All displays are disconnected! Surprisingly it is giving display info of previously connected Display. Why is this so? Is it returning cached info?

Windows development | Windows API - Win32

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.