Hi all,
If you look at the documentation and think around the corner a bit, you
shall realize that there is no historical but rather a practical purpose
behind this. This is my private explanation:
A Palm handheld can shut down for two reasons:
Power Button pressed-vchrPowerOff
Automatical Power off-autoOffChar
The developers probably want to be able to decide if the User or the System
wants to power off....
I only use the vchrpoweroff rather than the Autooff. Who knows how the
System reacts to this command when the user enters the shortcut .3 on his
system do disable autooff.
All best
Tam Hanna

Luc Le Blanc wrote:

"Hays, Jonathan (GE Infrastructure)" a �crit :

> This isn't my question, but I'm curious about the vchrPowerOff/autoOffChr
switch.  I assume by your code that vchrPowerOff and autoOffChr aren't
mapped to each other.  I assume there's some history on this?  Just curious.

Ben probably knows this historical detail like the contents of his front
pockets, but I can't recall. vchrPowerOff is 0x11E while autoOffChr is
0x114. I must have read about that somewhere and coded it 2 years ago. But
it
works :)

--
Luc Le Blanc



> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Luc Le
> Blanc
> Sent: Wednesday, November 03, 2004 8:46 PM
> To: Palm Developer Forum
> Subject: Re: Palm Shut Down
>
> KC a �crit :
>
> > Is there a way to programmatically turn off a Palm device?
> >
> > So far I have not found anything in this forum or in the reference
material or maybe I am just be reading the docs incorrectly.
>
> UInt8   gRomVersion;
> UInt32  romVersion;
>
> FtrGet( sysFtrCreator, sysFtrNumROMVersion, &romVersion );   // find OS
version and store it
> gROMVersion = ( UInt8 ) ( romVersion >> 20 );                // into a
byte for general use
>
> EvtEnqueueKey( gROMVersion >= 0x32 ? vchrPowerOff : autoOffChr,
evtNulKeycode, commandKeyMask );
>
> --
> Luc Le Blanc
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/



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

Reply via email to