hi,
i need to take a TRAP to something and release it from a shared library (!)
for an example - i manage to trap the "SysDelayTask" (do a delay),
and whenever an application trying to do a delay,
my trap function is loaded.
i have two questions :
1. i used : SysSetTrapAddress (sysTrapSysTaskDelay,MyTrapFunc);
can i pass any parameter to the function ?
2. in the trap function i need to call :
SysSetTrapAddress (sysTrapSysTaskDelay,(OldTrapAddr));
BUT - the OldTrapAddr is a global variable,
and in shared library i can't use globals.
so i thought to use the method explained in articles
about the handle that holds the struct of globals,
but for that i need to pass a variable of the "RefNum" of the library
loaded,
that is question #1.
So how can i do it (release a trap) from a shared library ?
by the way - no one answered a previous question of mine
about "specific trap", please take a look.
Thanks
shay
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html