You are going to have to write your own alerts to keep control. I would be careful about preventing the unit from shutting down. The power off message is also used when the unit is in a critical power situation and you could cause the lose of all data on the unit very quickly. I had an issue years ago where an app that intercepted the power off event and didn't pass it to the OS quick enough in certain situations. The net effect was a hard reset within a few seconds of intercepting the event.
----- Original Message ----- From: "K.Ferrero" <[EMAIL PROTECTED]> To: "Palm Developer Forum" <[EMAIL PROTECTED]> Sent: Tuesday, May 18, 2004 12:15 PM Subject: Cancelling Power Off > I'm trying to cancel a power off. I'm already eating the vchrPowerOff key > in the app's event handler. Of course that doesn't catch vchrPowerOff while > the OS is handling the events (e.g. alerts) For that, I can register for > the sysNotifySleepRequestEvent notifier and see if the reason is > sysSleepPowerButton. So now I know, but how do I stop it? I tried using > EvtEnqueueKey to queue a vchrPowerOff thinking it would turn back on, but no > such luck. Anyone have an idea of how to stop the power off? > > Thanks, > Karen > > > -- > For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
