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: 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: General network driver suspend/resume (was e1000 carrier related)
    ... 7.3* version of the driver from sourceforge. ... Changing this to bring up the link would make the card start to consume lots more power, which would automatically suck enormously for anyone using a laptop. ... Perhaps this needs to be fixed upstream in pci_save_state for msi devices, but the api for msi is not capable of detecting this atm. ...
    (Linux-Kernel)
  • Re: SendMessage (in secondary thread) freezes application GUI thre
    ... power left, the application stopped hanging... ... Then, in the non-UI thread, check the flag. ... queue and, again, the third thread will process that. ... will probably suspend before the about-to-suspend message gets to the UI ...
    (microsoft.public.windowsce.app.development)
  • Re: Auto mail-check even if powered off?
    ... It takes seconds to download headers ... The power options don't seem to have an effect. ... > through my bluetooth phone, connect to my vpn here at home and then ... Suspend it again, wait, it downloads ...
    (microsoft.public.pocketpc)