If the LOG command is placed after a manual awakening, it is not executed.
This bug will be fixed in future releases
The code to resolve the problem may be something like this:
protected override void WndProc(ref System.Windows.Forms.Message m) { /* http://msdn.microsoft.com/en-us/library/aa373247%28VS.85%29.aspx PBT_APMRESUMEAUTOMATIC * http://msdn.microsoft.com/en-us/library/aa372718%28VS.85%29.aspx PBT_APMRESUMEAUTOMATIC * http://msdn.microsoft.com/en-us/library/aa372720%28VS.85%29.aspx PBT_APMRESUMESUSPEND */ if (m.Msg == 0x218) //WM_POWERBROADCAST { //if ((int)m.WParam == 0x12) //PBT_APMRESUMEAUTOMATIC if ((int)m.WParam == 0x7) //PBT_APMRESUMESUSPEND { // the code } } base.WndProc(ref m); }
Log in to post a comment.
This bug will be fixed in future releases
The code to resolve the problem may be something like this:
protected override void WndProc(ref System.Windows.Forms.Message m)
{
/* http://msdn.microsoft.com/en-us/library/aa373247%28VS.85%29.aspx PBT_APMRESUMEAUTOMATIC
* http://msdn.microsoft.com/en-us/library/aa372718%28VS.85%29.aspx PBT_APMRESUMEAUTOMATIC
* http://msdn.microsoft.com/en-us/library/aa372720%28VS.85%29.aspx PBT_APMRESUMESUSPEND
*/
if (m.Msg == 0x218) //WM_POWERBROADCAST
{
//if ((int)m.WParam == 0x12) //PBT_APMRESUMEAUTOMATIC
if ((int)m.WParam == 0x7) //PBT_APMRESUMESUSPEND
{
// the code
}
}
base.WndProc(ref m);
}