My machine has dual monitors with the desktop spanned across them.

I've just bought Doom 3 and find that it's really jerky unless I disable the second display.

The second display can be turned on and off using the "Extend my Windows desktop onto this monitor." checkbox in the display properties control panel.

Being the lazy git I am, I want to have a program do this for me, launch Doom then turn the monitor back on afterwards.

Anybody got any ideas of the API calls required (or .NET framework method) to do this?