At 2:24 PM +0200 1999/12/15, Ramel Levin wrote:
>In HandScape we have such an option. We trapped the sysTrapHwrSleep so we
>launch an app when the user turns off his Palm.
>
>I know it's not good practice to trap this one, buy hey... it solved the
>problem!
That's actually a very unsafe thing to do... but as long as you don't try to launch
the app when the emergency parameter to HwrSleep is true, you'll probably experience
the fewest problems. If you ignore the emergency parameter altogether, you're risking
total loss of all the user's data (danger... danger...). Also, this hack will almost
certainly fail in future versions of the Palm OS, so please be sure to check the OS
version number before patching the trap. You are, of course, patching the trap from
within a system extension or via hackmaster, yes?
Regards,
Jim Schram
3Com/Palm Computing
Partner Engineering