I have two monitors connected to my Windows PC -- one is a normal monitor and the other is a projector. Because Windows doesn\'t consistently assign one or the other as the
The EnumDisplayMonitors passes a monitor handle to the MonitorEnumProc callback function. You can pass that handle to GetMonitorInfo, being sure to pass a pointer to a MonitorInfoEx structure and setting the cbSize member accordingly.
Upon return, the szDevice field in the MonitorInfoEx structure will contain the name of the monitor.