Keith,

Thanx for the suggestions:

>
>
> One approach would be to replace the trap dispatcher with one of your own. This
> trap dispatcher would be looking for dispatch numbers with the right values
> (A801, A802, etc.), and for the appropriate library refNum on the stack.

Is the trap dispatcher a system call that I can patch via SysSetTrapAddress ?

>
> Another approach you could take is patch the SysLibFoo calls so that when the
> library you want to patch is loaded, you then replace it's library table entry
> with one of your own that wraps it.  That way, all calls for that library come
> to you. You can then do whatever you want, call the original function, and then
> do any post-processing you want. This approach is requires getting the pointer
> to the library table from system globals (which is unsupported) and finding and
> replacing the library table entry (which is system-dependent, since the entry
> format has changed over time).

The entire displatch table for the shared library (netlib) appears to be in ROM, so I 
can't change individual entries.

>
>
> All in all, it's a scary-hairy proposition. The best solution is for you to
> convince yourself that you *don't* need to patch those functions.

I can think of no other ways to patch a few calls provided by NetLib.

Thanx!


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