At 06:31 PM 3/18/2002 -0600, Richard Bell wrote:
>How do I detect when the PDA has powered down (auto or manually) and when 
>it powers back on?  I've got an application that needs to put up security 
>if the PDA has been inactive for more than a given amount of time.

In PilotMain you receive the sysAppLaunchCmdNotify launch code:

             case sysAppLaunchCmdNotify:
             {
                 if (sysAppLaunchFlagSubCall & launchFlags)
                 {
                     SysNotifyParamType* parm = (SysNotifyParamType*) cmdPBP;
                     if (sysNotifyLateWakeupEvent == parm->notifyType)
                     {
                 ... device turned on while I was active app ...
                     }
                 }

                 break;
             }

Bob


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to