Advertisement

Detecting monitor sleep / standby mode

Started by December 25, 2000 09:08 PM
0 comments, last by bishop_pass 24 years, 1 month ago
In MS Windows, is there anyway for a Windows App to detect if the monitor has entered sleep / standby mode, or more importantly, is there a way to detect that the monitor has been ''woken'' up?
_______________________________
"To understand the horse you'll find that you're going to be working on yourself. The horse will give you the answers and he will question you to see if you are sure or not."
- Ray Hunt, in Think Harmony With Horses
ALU - SHRDLU - WORDNET - CYC - SWALE - AM - CD - J.M. - K.S. | CAA - BCHA - AQHA - APHA - R.H. - T.D. | 395 - SPS - GORDIE - SCMA - R.M. - G.R. - V.C. - C.F.
Catch the WM_SYSCOMMAND message and check wParam. If it''s SC_SCREENSAVE the screensaver is trying to start and if its SC_MONITORPOWER the monitor is trying to enter standby mode. I think you can just return 0 on here if you want to prevent either of these.

This topic is closed to new replies.

Advertisement