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.