Re: PowerOff & PowerOn message

From: David Gonzales [MS] (dgonzal_at_online.microsoft.com)
Date: 09/09/04


Date: Thu, 9 Sep 2004 16:40:03 -0700

For Pocket PC 2003, you can register to receive notification from the Power
Manager. The states are called 'suspend' and 'resume' (rather than off and
on).

POWER_STATE_SUSPEND is one of the messages. Search this newsgroup at
http://groups.google.com to see details on how to do this.

David
------
This posting is provided "AS IS" with no warranties, and confers no rights.

"Andrey Yatsyk" <andrew_NO_SPAM_@softspb.com> wrote in message
news:#zJ8EINlEHA.3564@TK2MSFTNGP14.phx.gbl...
> Power on: http://www.pocketpcdn.com/articles/run_at_startup.html
> Power off: search for "XXX_PowerDown" function (applicable for only
> drivers).
>
> --
> Andrey Yatsyk [Windows Embedded MVP]
>
> "Ian" <IREALLY.i.thain@HATESPAMbtconnect.com> wrote in message
> news:eFkbb2MlEHA.596@TK2MSFTNGP11.phx.gbl...
> > Guys
> >
> > Anyone know what messages are sent to an application when the PPC is
about
> > to poweroff and again at power on ?



Relevant Pages

  • Re: Save open files on suspend
    ... POWER_STATE_SUSPEND notification is really sent (the message written ... This code is called only when the system is about to suspend, ... in front of WaitForSingleObject in power manager. ... HANDLE hAckEvent = NULL; ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Service to handle power down
    ... You can get a notification of the power state change, ... closing the COM2 port on a suspend and re-opening it on resume. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Windows vista could not come out from hibernation (error 0xc00
    ... (ie, didnt update or install any drivers, leaving Microsoft's own ... been installing all the Windows Updates in small batches to see if it ... Configure Sleep settings in Power Options ... In the Device Manager. ...
    (microsoft.public.windowsupdate)
  • Re: Fast Start-up
    ... you could theoretically use information in RAM to make a decision on ... CE does not define the power of the board in suspend, ... Most of the boot time and resume time is in the OEM code. ...
    (microsoft.public.windowsce.embedded)
  • Re: Safely SHUTDOWN Device from Application
    ... for power failure situations where you have some form of backup power like ... How you handle suspend is very much hardware dependent, ... It's then up to the app to take ... applications of mine that might deal with the flash and no other user ...
    (microsoft.public.windowsce.platbuilder)