thanx! but i am writing a device driver which i guess does not have any event loop as such. so what should i do? do u know how to use syssleep.it seems to be the only way.
On Wed, 06 Feb 2002 Jim Schram wrote : > 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/tec- > h/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
