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.