> I need to be able to execute some code when a system reset or a power on
> occurs. I am able to trap the launch code for system reset just fine. But,
> there is no launch code for power on. I know I can register to receive a
> notification when power is turned on (I assume I should use
> sysNotifyLateWakeupEvent), but the Notification Manager was added only in
OS
> 3.5. If I need to be able to run on older versions of the OS (say, 3.0+),
is
> there some other way of detecting a power on?
This has been discussed here many times... the quick answer: you need to set
up a shared library with which your application can register. The library
will get a notification on all versions of PalmOS, and it can then sublaunch
your application to notify it that the power on happened.
To catch a system reset, just handle the sysAppLaunchCmdSystemReset launch
code.
--
Ben Combee
Veriprise Wireless <http://www.veriprise.com>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/