Christian Studer 2000-02-28 09:16
On Win2000, use the ChangeDisplaySettingsEx function to set the height, width and position to 0. Win98 is a bit more involved: HKEY_CURRENT_CONFIG\Display\Settings has the settings for the primary monitor. Subkeys of this key store settings for secondary monitors. To disable a monitor, set the AttachToDesktop value to "0", then call ChangeDisplaySettingsEx with the name of the monitor and all other parameters set to 0.
See the Programming section for more info on multimon programming. To see this stuff in action, download the Realtime Soft Multimon beta.
Christian Studer http://www.realtimesoft.com
|