Multiple-Monitor Support in an XDDM Display Driver
Multiple-monitor support is provided by Windows 2000 and later; therefore, display driver writers must not implement any special code to provide this support.
Display drivers must be implemented without using global variables. All state must exist in the PDEV for a particular display driver. GDI will call DrvEnablePDEV for every hardware device extension that is created by the video miniport driver.
To track window changes in a multiple-monitor system, a driver can request GDI to create WNDOBJ objects with desktop coordinates. The driver does this by calling EngCreateWnd using the flag WO_RGN_DESKTOP_COORD. See Tracking Window Changes for more information.
In a multiple-monitor system, GDI stores the device's desktop position in the dmPosition member of the DEVMODEW structure.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for