register for display on/off events

Giganews Newsgroups
Subject: register for display on/off events
Posted by:  Priyko (Priko@newsgroup.nospam)
Date: Mon, 14 Jul 2008

How can I do this? Tried looking for WM_SYSCOMMAND message with wparam =
SC_MONITIORPOWER, but dont get this when the display comes back ON. Any
ideas? I need to do this for XP and Vista.

Replies