Hello,

My program needs to be able to detect if an alarm is responsible for
waking the system up, and to do this I use the notification manager to
register for sysNotifyEarlyWakeupEvent, and then when that happens I
store the value of KeyCurrentState() in a value in my app pref struct.
Theoretically, next my program gets a sysAppLaunchCmdAlarmTriggered
launch code, during the handling of which I can either set the next
alarm and  let the system handle the current one next with
sysAppLaunchCmdDisplayAlarm, or I can set the purgeAlarm return value to
true and put the system to sleep, depending on whether or not the alarm
woke the system up.  However, my problem is that this happens in the
reverse order.  The system seems to send out
sysAppLaunchCmdAlarmTriggered for my program to handle _before_ it sends
out the sysNotifyEarlyWakeupEvent.  Do I have any recourse in setting
the priority lower (which doesn't seem to help) when I register for this
notification?  Or will the system always act in this order?  I've looked
(I don't have access to the OS source) and I can't find any reference
that details the order of action the system goes through when it wakes
up.  I suppose I could just do my check when the system receives the
sysAppLaunchCmdDisplayAlarm, which I'm sure happens _after_ it gets the
early wakeup notification, but it just seems that this whole process is
more convoluted than it needs to be, but maybe it is.

Thanks,

David Vediner
[EMAIL PROTECTED]


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

Reply via email to