Monitor Message

  • Thread starter Thread starter Dave
  • Start date Start date
D

Dave

Is there a way to receive a message when the monitor turns on/off?
Such as in wndProc? I want to run some code after the monitor turns
back on. And when the mouse moves or the keyboard moves it turns on
the monitor so i will never know when the monitor turns on unless a
message gets fired back to me. I use sendMessage((int), this.handle,
WM_SYSCOMMAND, SC_MONITORPOWER, MONITOR_OFF) to turn off the monitor.
Maybe can i use same constant in a event handler such as wndProc?

Thanks for any help.
 
Hi,

Not sure ( I bet not) that you can get a notification when the user turn off
the monitor. Another thing is when the system turn it off to preserve energy
 
Dave,

I'm not expert in this area, but I think the new PnP monitors (which are
almost all monitors nowadays) send this information to the display driver. I
believe if such notification is available it will be part of DDK. Probably
you should ask your question in related newsgroups.
 
Back
Top