Re: Service to handle power down

Tech-Archive recommends: Speed Up your PC by fixing your registry





Hello Bruce,
I didn't want to get into it too much because I didn't think it was
necessary, but since you asked ...
My service is a special debug service that, among other things, outputs
special app level debug messages over COM2. The vendor for our BSP appears
to have a bug which will (very rarely) cause the system to crash (or freeze)
when resuming from suspend. My service keeps the COM2 port open during sleep
and we feel that if it is closed during sleep we won't see this issue (we saw
another issue with RAS server over COM1). So changing state for me means -
closing the COM2 port on a suspend and re-opening it on resume.

Thank you for your feedback,
Craig

"Bruce Eitman [eMVP]" wrote:

Why don't you explain more why this service needs to "change state" and what
that really means.

--
Bruce Eitman (eMVP)
Senior Engineer
Bruce.Eitman AT EuroTech DOT com
My BLOG http://geekswithblogs.net/bruceeitman

EuroTech Inc.
www.EuroTech.com

"Craig" <Craig@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:4F28DFAF-9574-4167-A682-212F5E748AB1@xxxxxxxxxxxxxxxx

Hello,
I have written a service in WinCE 5.0. I now need this service to change
its state when the system is suspended and when it resumes.

I have read that the xxx_PowerDown and xxx_PowerUp messages are not
handled
in a service (running in services.exe).

Is there a way that I can get messages that the system is about to power
down within my service? Can a service respond to the IOCTL_POWER_SET
messages?

Thank you for any assistance you can provide,

Craig



.



Relevant Pages

  • Re: Service to handle power down
    ... putting it to sleep and when we resume. ... suspend resume well, so you might be on the right track. ... Bruce.Eitman AT EuroTech DOT com ... closing the COM2 port on a suspend and re-opening it on resume. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Service to handle power down
    ... suspend resume well, so you might be on the right track. ... Bruce.Eitman AT EuroTech DOT com ... My service keeps the COM2 port open during ... closing the COM2 port on a suspend and re-opening it on resume. ...
    (microsoft.public.windowsce.platbuilder)