My code like this:
oldSysHandleEvent = (UInt32)SysGetTrapAddress(sysTrapSysHandleEvent);
if (FtrSet(AppFileCreator, OldSysHandleEventFtr, oldSysHandleEvent))
return Error;
SysSetTrapAddress(sysTrapSysHandleEvent, MySysHandleEvent);
Boolean MySysHandleEvent(EventPtr eventP)
{
if(eventP->eType == nilEvent)
{
int b=10; //set breakpoint here,but never run to this line.
}
if(eventP->eType == penDownEvent)
{
int a =10; // //set breakpoint here, sometimes can run to this line
}
my program want to trap other application'SysEvent, but some software maybe
handled "nilEvent " ,so I cannot trap the" nilEvent". I want to know how to trap
nilEvent before this software do.
thanks in advance!
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/