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.
Thanks, -Jon ------------------------------------------- Jonathan Hays Palm OS Certified Developer http://hazelware.luggle.com ------------------------------------------- -----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/
