Compartilhar via


Suspend State (Windows CE 5.0)

Send Feedback

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:

    • Power off GWES process.
    • Power off Filesys.exe.
    • If this is an SHx microprocessor, call OEMFlushCache.
    • Call OEMPowerOff.

See Also

Kernel States | Enabling Power Management | Debugging and Testing

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.