Article ID: 207988
Article Last Modified on 7/1/2004
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 2.11
- Microsoft Windows CE Platform Builder 2.12
This article was previously published under Q207988
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: kbhowto KB207988