Helloam using notifications
:sysNotifySleepNotifyEventsysNotifyEarlyWakeupEventsysNotifyGotUsersAttentionto
try and detect when the device is woken up using a keypress(user) or an
alarm(system), so that the auto-off timer can be automaticaly set totimes that
will conserve battery power.The notifications for sleep & wake are registered
or unregistered depending ona selection made from a desk accessory, (this means
passing a pointer to a functionfor the notifs handlers as there is no PilotMain
in a desk accessory).The sysNotifyGotUsersAttention notif is registered in the
sleep notif handler, so that if the device wakes with an alarm sysAutoOff can
be set to a few secs.Anyway, the functions work well for the first alarm but on
following alarms (if repeat alarms are set)it resets.Reading the SDK
documention, there is advice there about locking a function pointer,how is this
done ? Is the pointer that is passed to the sysNotifyRegister a pointer to an
abosulte address inthe storage heap, or is it a pointer that is an offset from
the start of the database thatspassed?Any help please, many thanks and
regardsDarren
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/