I have a notebook with VGA port and HDMI port. Therefore I'm able to switch between three displays with max. 2 displays active the same time.
I tried to find a way switching active displays programmatically using the Windows API or the .NET framework. But it seems to be impossible. According to other forum posts in the WWW this can only be achieved by using libraries which belong to the graphics card, e.g. the "AMD Display Library" (ADL) or the NVAPI for nVidia devices.
But I wonder how Windows is able to provide settings for switching monitors in the system settings, although there is no programming interface. Is Windows also using ADL / NVAPI?
Edit
As Deanna pointed out in the comments, there is probably no documented API for switching active displays. How are display driver developers able to know how to develop their drivers? What would be a reason for not making such things public available?