By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,972 Members | 1,126 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,972 IT Pros & Developers. It's quick & easy.

Screen savers

P: n/a
Hi,

Is there an event I can listen for in WndProc so I know when the screen
saver is active and insactive?

Thanks
Nov 22 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
HOWTO: Know When Your Screen Saver Starts
http://support.microsoft.com/default...b;en-us;238882
Nov 22 '05 #2

P: n/a
HOWTO: Know When Your Screen Saver Starts
http://support.microsoft.com/default...b;en-us;238882
Nov 22 '05 #3

P: n/a
Thats when it starts, is that event fired when it stops also?

If so, how do we know its started or stopped? Nothing in LParam?
"Gabriele G. Ponti" <ggponti.at.hotmail.com> wrote in message
news:ua**************@TK2MSFTNGP11.phx.gbl...
HOWTO: Know When Your Screen Saver Starts
http://support.microsoft.com/default...b;en-us;238882

Nov 22 '05 #4

P: n/a
Thats when it starts, is that event fired when it stops also?

If so, how do we know its started or stopped? Nothing in LParam?
"Gabriele G. Ponti" <ggponti.at.hotmail.com> wrote in message
news:ua**************@TK2MSFTNGP11.phx.gbl...
HOWTO: Know When Your Screen Saver Starts
http://support.microsoft.com/default...b;en-us;238882

Nov 22 '05 #5

P: n/a
I don't believe there's an equivalent for the screen saver being stopped.
However you can use start a timer in your application and call
SystemParametersInfo() with uiAction set to SPI_GETSCREENSAVERRUNNING.

http://msdn.microsoft.com/library/en...metersinfo.asp
Nov 22 '05 #6

P: n/a
I don't believe there's an equivalent for the screen saver being stopped.
However you can use start a timer in your application and call
SystemParametersInfo() with uiAction set to SPI_GETSCREENSAVERRUNNING.

http://msdn.microsoft.com/library/en...metersinfo.asp
Nov 22 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.