Exactly Dan I am looking for the ability to identify the reason for wake
regardless of who caused the wake.

The sysNotifySleepNotifyEvent identifies the reason for sleep but
unfortunately they didn't do the same for the
sysNotifyLateWakeupEvent/sysNotifyEarlyWakeupEvent calls.  I am considering
trying something like you suggest however I wonder how reliable it is.  I
think it may cause race conditions.  I was also trying to figure out if I
can use the sysNotifyVirtualCharHandlingEvent and look for the virtual
alarmChar.  Again possible race conditions.

Can anyone from Palm tell me the order in which these calls will happen ?
Can I count on getting the sysNotifyVirtualCharHandlingEvent before the
sysNotifyLateWakeupEvent call ?

Ron

>
> I think that Ronald does not necessarily mean that the alarm is for his
> own application.
>
> In my case I need the exact same thing - knowing why the device has
> turned on. And one common situation are alarms for other applications.
>
> For example one solution I could think of is getting hold of the
> information when the next alarm is supposed to be going of (how?) and
> comparing to the current time. If they match it's probable that the
> alarm caused the wakeup.
> --
> Daniel Seifert <[EMAIL PROTECTED]>


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

Reply via email to