True, the same is for sleep notification.

Should I undestand it in a way that you can't
rely on on/off events even via a hack ?
Remember, pressing power btn is not a
necessary condition for a system to go
to sleep. It can be timeout or anything
else I can't think of now.

Anyway, for me Power On/Off doesn't make 
sence for a non-hack: if you are after a
nag screen (this is probably what the
original author really meant), you can
do it with a normal launch. I don't think
someone can write something so useful, that
the user would call it and never switch
back to launcher (a port of Windows CE
running under Palm OS :-) ?! )

Anyway, if I ever write a commercial app,
(I will have to eventually, unless I find
a better place) I will do it without nagging -
there are much more elegant ways.

Michael



-----Original Message-----
From: Joe Programmer [mailto:[EMAIL PROTECTED]]
Sent: Monday, 3 December 2001 12:33 PM
To: Palm Developer Forum
Subject: RE: Power On/Off


--- Michael Glickman wrote:
> Meanwhile, I found a non-hacking way:
> use 'sysNotifyLateWakeupEvent'. 

The Notification Manager is present if value!=0 after
executing this line:

  err = FtrGet(sysFtrCreator,
sysFtrNumNotifyMgrVersion, &value);

However, note that the docs for
sysNotifyLateWakeupEvent say "IMPORTANT: This
notification is not guaranteed to be broadcast."  So
that doesn't sound like a reliable method to use.


__________________________________________________
Do You Yahoo!?
Buy the perfect holiday gifts at Yahoo! Shopping.
http://shopping.yahoo.com

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

-- 
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