이것저것/Windows CE

GwesPowerOffSystem (), Suspend State

우담바라 2007. 5. 22. 18:00
http://msdn2.microsoft.com/en-us/library/aa916003.aspx GwesPowerOffSystem
 
GwesPowerOffSystem
Windows Mobile -
Windows Embedded CE
4/9/2007

This function is called by an OEM to initiate a power–down or suspend state.

SyntaxSyntax
void GwesPowerOffSystem(void);
ParametersParameters
See AlsoSee Also

Concepts

Suspend State

Other Resources

System Power State Transitions
===================================================================================== http://msdn2.microsoft.com/en-us/library/aa916003.aspx Suspend State Windows

Suspend State
Windows Mobile -
Windows Embedded CE
4/9/2007

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
  1. 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.

  2. 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.
  3. Turn off window message queues, stopping the processing of messages.

  4. Determine if the Startup UI screen needs to appear on resume.

  5. Save video RAM to system RAM is necessary to preserve state on resume.

  6. 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.

  7. Power manager performs the following actions:

  8. The kernel performs the following final steps to suspend:

See AlsoSee Also