"Pilot Pogrammer" <[EMAIL PROTECTED]> wrote in message
news:21922@palm-dev-forum...
> My big problem is that I want to know for how long the Palm has been in
> sleep mode. My idea was to get the TimGetSeconds when the Palm goes to
sleep
> and the do the same when it returns..... The problem for me is to know
when
> the device enters sleep mode......

Two ideas:

1) See how long it takes for SysHandleEvent to execute. If it takes a while,
the device must have been off during that time. Of course, you only find out
that the device WAS off, not that it's about to be turned off.

2) Write a shared library. Shared libraries have standard sleep and wake
entry points.
--
Danny Epstein
OS Engineer, Palm Inc.


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