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/

Reply via email to