Windows Mobile | - |
Windows Embedded CE |
This function is called by an OEM to initiate a power–down or suspend state.
Concepts
Suspend StateOther Resources
System Power State Transitions===================================================================================== http://msdn2.microsoft.com/en-us/library/aa916003.aspx Suspend State Windows
Windows Mobile | - |
Windows Embedded CE |
When a device is asked to suspend, it is being asked to remain powered to the point that RAM is in a self-refresh state where an interrupt can wake the device. The suspend process can occur in three ways:
- The keyboard driver issues a VK_OFF to GWES. This eventually causes GwesPowerOffSystem to be called.
- The OEM can call GwesPowerOffSystem directly.
- The OEM can call SetSystemPowerState.
The GwesPowerOff function performs key operations before a device can suspend.
To suspend a device-
Notify the Taskbar that the device is being suspended.
Post the WM_POWERBROADCAST message with the flag PBT_APMSUSPEND. Only the registered Taskbar will get this message.
-
Abort calibration if the calibration screen is up and in one of the following states:
- Waiting at cross hairs.
- If calibration was waiting at confirmation.
- Waiting at cross hairs.
-
Turn off window message queues, stopping the processing of messages.
-
Determine if the Startup UI screen needs to appear on resume.
-
Save video RAM to system RAM is necessary to preserve state on resume.
-
Call SetSystemPowerState with the arguments (NULL, POWER_STATE_SUSPEND, POWER_FORCE). This calls into the power manager that coordinates the rest of the suspend operation. At this point, GwesPowerOff is not completed until the system resumes.
-
Power manager performs the following actions:
- Calls FileSystemPowerFunction(FSNOTIFY_POWER_OFF) to power off file system drivers.
- Calls PowerOffSystem.
- Calls Sleep(0) to allow the kernel scheduler to run and perform the final suspend process.
- Calls FileSystemPowerFunction(FSNOTIFY_POWER_OFF) to power off file system drivers.
-
The kernel performs the following final steps to suspend:
- Power off GWES process.
- Power off Filesys.exe.
- If this is an SHx microprocessor, call OEMFlushCache.
- Call OEMPowerOff.
- Power off GWES process.
'이것저것 > Windows CE' 카테고리의 다른 글
Windows Embedded CE 6.0 웹 케스팅 시리즈 (0) | 2007.09.02 |
---|---|
초보자를 위한 CE 6.0 플랫폼 빌더 설치 순서 (0) | 2007.09.01 |
Windows Embedded CE 6.0 에뮬레이터 startup 코드 분석 #1 (0) | 2007.04.24 |
Windows Embedded CE 6.0 에뮬레이터 startup 코드 분석 #2 (0) | 2007.04.24 |
Catalog Feature File(.cec File) - (일부 계속 수정 중) (0) | 2007.04.17 |