Re: How to prevent user to power off the PDA
- From: "<ctacke/>" <ctacke[@]opennetcf[dot]com>
- Date: Mon, 28 Aug 2006 14:18:29 -0400
In many/most cases there is no way to intercept the interrupt generated by
the push of the power button at an app level and therefore no way to disable
it. You need to put in error handling to prevent a lockup from happening.
You can get notified when the device is powered back up, which is sometimes
useful, but that notification is unlikely to occur before other code begin
executing again.
--
Chris Tacke
OpenNETCF Consulting
Managed Code in the Embedded World
www.opennetcf.com
--
"Harmon" <Harmon@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:61D45948-96FA-4381-9789-F8D5DC25B6B7@xxxxxxxxxxxxxxxx
Dear all,
I'm working with a communication program. I found if I power off the PDA
when my program is in 'talking' state (sending and receiving RTP packets
using socket), the system will freeze and dead when I power on. So I
decide
not to allowed power off during talking.
I could use SystemIdleTimerReset() to disable auto power off, but I don't
know how to prevent the manual power off. I know there must be a way,
because
I see Tomtom could do it. Could anyone give me a hint?
Thanks in advance!
Yun
.
- Follow-Ups:
- Re: How to prevent user to power off the PDA
- From: eugn
- Re: How to prevent user to power off the PDA
- Prev by Date: Re: GPS intermediate driver compatible to old software?
- Next by Date: Re: Editing in a DataGrid
- Previous by thread: Save Bitmap to SQL image field
- Next by thread: Re: How to prevent user to power off the PDA
- Index(es):