本文介绍了如何在收到WM_POWERBROADCAST消息时暂停Hibernate或Sleep?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我需要我的软件在运行时暂停休眠或睡眠状态。我做了一些测试,发现它在更改状态之前收到WM_POWERBROADCAST消息。我试图返回FALSE并返回  BROADCAST_QUERY_DENY
并且都不起作用?有任何想法吗?谢谢

Hello, I need my software to suspend Hibernation or Sleep while running. I did some tests and discovered that it is receiving a WM_POWERBROADCAST message before it changes states. I tried to return FALSE and also return BROADCAST_QUERY_DENY and neither work? Any Ideas? Thank you

推荐答案

http://msdn.microsoft.com/en-us/library/aa373208%28VS.85%29.aspx

您不能再回复WM_POWERBROADCAST。

You can no longer just respond to WM_POWERBROADCAST.


这篇关于如何在收到WM_POWERBROADCAST消息时暂停Hibernate或Sleep?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-18 23:35