I write a hack in OS5 with YAHM, the hack only trap SysUIAppSwitchV40()
Err MySysUIAppSwitchV40(UInt16 cardNo, LocalID dbID, UInt16 cmd,
                     MemPtr cmdPBP)
{
 pfnMySysUIAppSwitchV40 oldTrap;

 SndPlaySystemSound(sndError);

 FtrGet(appCreator, resSysUIAppSwitchV40, (UInt32 *)&oldTrap);
 return oldTrap(cardNo, dbID, cmd, cmdPBP);
}

The hack works well except when press the hard-key to run a application.
e.g: When I set the "AddressBook" key to run a application, my trap hasn't
been run, there's no sound to play, so the SysUIAppSwitchV40() not be run,
but in OS4, the hack works well too.

I think there's other function/way to run applicaton instead of
SysUIAppSwitchV40(), but what's it? Anybody can help me?

Thanks!





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

Reply via email to