The way I do it is to post the event created by the silk-screened
application's key (it looks like a Home). 
Here's the code:

EventType newEvent;
        
        // Queue exit event
        newEvent.eType = keyDownEvent;
        newEvent.data.keyDown.chr = launchChr;
        newEvent.data.keyDown.modifiers = commandKeyMask;
        EvtAddEventToQueue(&newEvent);

(After a lot of stumbling I think I found this trick deep in the Palm docs
somewhere.)

Thomas McCormick
Centennial Technologies
7 Lopez Road
Wilmington, MA 01887
Phone: (978) 805-2147
e-mail: [EMAIL PROTECTED]

                -----Original Message-----
                From:   Dinesh [mailto:[EMAIL PROTECTED]]
                Sent:   Friday, July 28, 2000 4:48 AM
                To:     Palm Developer Forum
                Subject:        Exit

                hi,
                    sorry for posting this basic question..
                    HOW to exit from an application programmatically?
                    (using SysUIAppSwitch.... how?)
                    Thanks in advance.

                Dinesh





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

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