I am trying to write a small utility that will enable / disable monitors under Windows 7 with my nVidia graphics card. (i.e., โExtend the desktop on this monitorโ, etc.)
The reason is that my nVidia Geforce GTX 480 has three outputs (2x DVI, 1x Mini-HDMI), but only allows two to be active at any given time, so I need to turn on / off the monitors when I want to switch to my TV (HDMI).
The Win32 EnumDisplayDevices API function does not work because it does not show disabled monitors.
nVidia provides an API (NVAPI) and has the function of listing all monitors (even disabled), and you can turn on the monitor, but you cannot turn off the monitor. (I mean NvAPI_CreateDisplayFromUnAttachedDisplay)
UltraMon seems to understand how to accomplish this, but I cannot find any information.
source share