Xref: utzoo comp.sys.mac.programmer:10828 comp.sys.mac:43323 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!usc!apple!apple.com!goldman From: goldman@apple.com (Phil Goldman) Newsgroups: comp.sys.mac.programmer,comp.sys.mac Subject: Re: HELP!!! MultiFinder EXPERT NEEDED!!! Message-ID: <5555@internal.Apple.COM> Date: 2 Dec 89 03:52:45 GMT References: <328@hermix.UUCP> Sender: usenet@Apple.COM Organization: Apple Computer Lines: 15 In article <328@hermix.UUCP> lance@hermix.UUCP (Lance Ellinghouse) writes: > What we need is to ask MultiFinder if a program is still running.. > Apple cannot tell me, and I cannot find the information anywhere.. You certainly can do this, without even breaking. However, it must be done with the help of an init. You can simply patch some trap that is guaranteed to get called at Launch time, such as _OpenResFile(CurApName), and also patch _ExitToShell (after MF does). With this, you can watch each and every app launch and quit. It's not pretty, but it's simple and it works. My views aren't necessarily Apple's, especially the part about never breaking. -Phil Goldman