HOWTO: Programmatically Suspend Windows CE

ID: Q207988


The information in this article applies to:
  • Microsoft Windows CE Embedded Toolkit for Visual C++ 5.0
  • Microsoft Windows CE 2.10 Enhancement Pack for Windows CE Embedded Toolkit for Visual C++ 5.0
  • Microsoft Windows CE Platform Builder, versions 2.11, 2.12


SUMMARY

In addition to use of the power button or idle counter timeout, Windows CE can be switched from the on state to the suspend state programmatically.


MORE INFORMATION

There are two ways that to activate the suspend state programmatically. The most direct way is to call the function (this is not documented in the online documentation):


void GwesPowerOffSystem(void); 
The alternate and more indirect way is to simulate the pressing of the Off button by sending the VK_OFF keydown event into the input queue (with the SendInput() function). The user input queue handler will recognize this key and initiate the GwesPowerOff()System sequence.

Additional query words: kbDSupport

Keywords : kbETK201 kbVC500 kbWinCE kbWinCE211 kbWinCE212
Version : N\A:2.11,2.12; WINDOWS:
Platform : N\A WINDOWS
Issue type : kbhowto


Last Reviewed: December 23, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.