Power Management (2) of WM/wince code Study Series)

Source: Internet
Author: User

System Power status change

 

1.Backlightoff timeout

2.User activity or appbuttonpressed

3.Useridle timeout

4.User activity or appbuttonpressed

5.Powerbuttonpressed or suspend timeout

6.Powerbuttonpressed or appbuttonpressed

7.Useridle timeout

8.Powerbuttonpressed or suspend timeout

9.Powerbuttonpressed or suspend timeout

10.Unattendedrefcount = 0 or suspendtimeout

11.Wakeup from susponded status

12.Resumingsuspendtimeout

13.Powerbuttonpressed or appbuttonpressed

14.Suspend timeout

15.Powerbuttonpressed or appbuttonpressed

 

Setsystempowerstate ()

16.Setsystempowerstate (null, power_state_on, power_force) or setsystempowerstate (L "on", 0, 0 );

17.Setsystempowerstate (null, power_state_useridle, power_force) or setsystempowerstate (L "useridle", 0, 0 );

18.Setsystempowerstate (null, power_state_reset, power_force) or setsystempowerstate (L "reboot", 0, 0 );

19.Setsystempowerstate (null, empty, power_force) or setsystempowerstate (null, power_state_off, power_force) or setsystempowerstate (null, power_state_critical, power_force) or setsystempowerstate (L "Suspend );

20.Setsystempowerstate (null, power_state_idle, power_force) or setsystempowerstate (L "screenoff", 0, 0 );

21.Setsystempowerstate (L "coldreboot", power_state_reset, power_force)

Note:

1. In Windows Mobile 6 Professional and Windows Mobile 6 classic (pocketpc), there are no migration lines in the useridle status, such as 3, 4, 7, 8, 9, and 17.

2. In Windows Mobile 6 Standard (smartphone), there are no unattended, resuming, and susponded statuses, and the Migration lines 5, 6, 8, 9, 10, 11, 12, 13, and 14 do not exist.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.