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

How to catch power-management messages in my c# app?

P: n/a
How can I catch Windows WM_POWERBROADCAST in my C# application to prevent
the PC from hibernating?
Thanks!
Nov 15 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Look @ Microsoft.Win32 namespace and you will find your anwser.

"Owen Woo" <wo*****@163.net> wrote in message
news:OE**************@tk2msftngp13.phx.gbl...
How can I catch Windows WM_POWERBROADCAST in my C# application to prevent
the PC from hibernating?
Thanks!

Nov 15 '05 #2

P: n/a
By Microsoft.Win32.PowerModeChangedEventHandler my application can only
receive suspending event. But how can I prevent from suspending?

"Questa.NET" <qu****@zonnet.nl> 写入消息新闻:c0**********@reader11.wxs.nl...
Look @ Microsoft.Win32 namespace and you will find your anwser.

"Owen Woo" <wo*****@163.net> wrote in message
news:OE**************@tk2msftngp13.phx.gbl...
How can I catch Windows WM_POWERBROADCAST in my C# application to prevent the PC from hibernating?
Thanks!


Nov 15 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.