Thursday, January 14, 2016
Will the WM5 platform how to monitor into hibernation power-saving state or press the power button (usually by pressing this button also into hibernation)
Phone after entering the power saving mode processing program needs to be done. Registry status value (HCU / system / state) does not seem to include these.
Reply:
Which Big Brother know help out, thank you
Reply:
keybd_event (VK_OFF, 0, KEYEVENTF_SILENT, 0);
keybd_event (VK_OFF, 0, KEYEVENTF_SILENT | KEYEVENTF_KEYUP, 0);
Reply:
Upstairs brothers, this method does not work, press the power button and the program is not receiving any messages.
Reply:
His top
Reply:
keybd_event (VK_OFF, 0, KEYEVENTF_SILENT, 0);
keybd_event (VK_OFF, 0, KEYEVENTF_SILENT | KEYEVENTF_KEYUP, 0);
Analog button to turn off power
Your requirements may use the following method:
CreateMsgQueue
RequestPowerNotifications
CreateThread
ReadMsgQueue // get POWER_BROADCAST news
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment