From: Samantha on
Hi

How can I detect if the monitor is off or on?

I searched as much as I can -- but can not find a way.

Any idea?

Many thanks
From: David Ching on
"Samantha" <herisson12(a)gmail.com> wrote in message
news:2310d8d8-d1b1-4bee-9757-45ebf4bda8e2(a)b1g2000hsg.googlegroups.com...
> Hi
>
> How can I detect if the monitor is off or on?
>
> I searched as much as I can -- but can not find a way.
>
> Any idea?
>
> Many thanks

See http://support.microsoft.com/kb/311272 to get the DevCon utility and the
source to it. If you type:

c:\> devcon hwids *

and search the output for "display" you can find out the proper hwid to look
for in your code.


-- David