tags:

views:

607

answers:

2

Does windows provide any api calls to detect if a monitor is presently connected on the VGA port by using DDC I or DCC 2?

I am trying to figure out a way to know if a monitor is connected and turned on.

+1  A: 

Call the EnumDisplayDevices function.

Raul Agrait
Unfortuently that function does not change in real time. I trying to detect when someone unplugs a monitor. MSDN seems to indicate use of DDC was only added to winapi in Vista.
Myforwik
A: 

Not a free solution but the only one that I've been able to find so far:

http://www.nicomsoft.com/wini2cddc/

Simon Elliott