At 9:22 AM -0500 2002/02/06, Dave Lippincott wrote: >post a power key event to the event queue.
Yup -- vchrPowerOff to be exact. Pass that event to SysHandleEvent and SysHandleEvent won't return until the user (or an alarm, or certain types of external interrupts in the case of some Licensee's devices) powers the device back on for you. All registrations for sysNotifySleepNotifyEvent will be called before the device falls asleep, as will all registrations for sysNotifyEarlyWakeupEvent immediately after the device turns back on. Please DO NOT call SysSleep yourself(!) That would cause behavioral sleep problems. Regards, Jim Schram PalmSource Inc. Partner Engineering -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/