. Setup: A PC is connected to 2 DisplayPort monitors, running Windows 7.
. Symptom: When one of the monitors is unplugged, Windows 7 moves all windows and other desktop contents to the remaining monitor.
* Desired solution: Write a Video Filter Driver for Windows 7 to intercept the Monitor Unplug event and prevent it from reaching the OS kernel, keeping the Windows desktop layout the same. Specifically,
. The filter driver sits between the real video driver and the OS kernel.
. For a new monitor connection, the filter driver passes through all events.
. For a monitor disconnection event, the filter driver saves the configuration of the disconnected monitor but does not pass any information to the OS kernel.
. For a hot plug event, if the monitor is the same as the last one, the filter driver will continue to pass through all events except for the Hot Plug event. Otherwise, it will pass the hot plug event for Windows to re-arrange the desktop layout.