> In fact, since the client decided that they didn't
> want Palm OS 4 support I'd be quite happy to sell you the
> implementation pre-written :-). I get the impression you're
> writing this yourself and so that probably isn't an option but
> if it is let me know.

Thanks for the offer but I am writing it myself and I'd like to support as 
lower an OS version as possible. (3.0? 3.5? I think MultiHack supports 3.0.) 
Plus, intercepting application launch is only one of the things I want to 
intercept. I also want to intercept the fact that an application has just been 
beamed to the device, that a HotSync operation has completed, or that a memory 
card has been inserted in the memory expansion slot. I have only a rather vague 
idea how to do these things (especially the application beaming interception; 
for the rest there are at least notifications in OS 5.x), but I'm trying to 
solve the problems one-by-one, as they appear.

> From memory you create a code segment, attach it to your app
> as a resource (Ben's answer to my question on how to do this
> should be in the archive), load and lock it and then redirect the
> trap through that code segment.

Ugh. Why is that necessary? Can't you just use SysSetTrapAddress to intercept 
trap 0xA0A7 (sysTrapsysUIAppSwitch) with a function in your normal code segment?

> The real problem is that HackMaster was created because
> the trap redirection can cause the device to become unstable
> if multiple apps try to hook into the same trap - I can't
> remember if the instability occurs immediately or if the problem
> is related to removing your hack.

I see, thanks for the warning.

> Annoying, but it's the only option - one hack per device
> or only use HackMaster compatible apps.

Oh, I don't mind if my application is HackMaster-compatible. What I want to 
avoid, though, is making it HackMaster-dependent. That is, I don't want to 
require the user to have HackMaster installed, in order to use my application. 
Is that possible?

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

Reply via email to