Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

SetSystemPowerState (POWER_STATE_RESET)

108 views
Skip to first unread message

John

unread,
Oct 22, 2009, 10:37:02 AM10/22/09
to
Hi,

In my CE-app I use SetSystemPowerState(NULL, POWER_STATE_RESET, 0).
This works as expected, but I need to know:
- Will program flow continue after I call this function? Does the function
return on succes?
- Will code in other threads still be executed (which I don't wont, because
a reboot is about to happen)

Thanks,

John Willemsen

Luca Calligaris [eMVP]

unread,
Oct 22, 2009, 11:12:05 AM10/22/09
to
'This works as expected' means that you have tried it and your system
reboots? In this case you should be able to tell yourself the answer to yor
questions.
What happens when you call SetSystemPowerState(NULL, POWER_STATE_RESET, 0)
depends on the Power Manger implementation and on the OAL.
The PM handles the call and in the standard implementation
(%_WINCEROOT%\PUBLIC\COMMON\OAK\DRIVERS\PM\PDD\DEFAULT) it will simply
set a flag to clean the object store at the next boot and will send
IOCTL_HAL_REBOOT to the OAL.

--
Luca Calligaris (MVP-Windows Embedded)
l.calliga...@eurotech.it.nospam
www.eurotech.it


"John" <Jo...@discussions.microsoft.com> ha scritto nel messaggio
news:68A1F0E5-99AA-4F20...@microsoft.com...

0 new messages