"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