Path: utzoo!attcan!uunet!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!usc!elroy.jpl.nasa.gov!decwrl!shelby!neon!kaufman From: kaufman@Neon.Stanford.EDU (Marc T. Kaufman) Newsgroups: aus.mac,comp.sys.mac.programmer Subject: Re: Restricting printer access Keywords: printing, INIT, trap, PrGlue Message-ID: <1990May28.162130.16730@Neon.Stanford.EDU> Date: 28 May 90 16:21:30 GMT References: <1594@wacsvax.OZ> Organization: Computer Science Department, Stanford University Lines: 19 In article <1594@wacsvax.OZ> peter@wacsvax.OZ (Peter Dodd) writes: -We have recently developed an INIT to restrict access to network printers. -The INIT installs a ToolBox trap in the system heap at startup time. -The installed code is a patch to the PrGlue trap - at print time, it determines -whether the user has correct privileges to use the selected printer. -The problem we encountered lies in the use of the Print Manager -by some applications. We can live with the fact that the older applications -don't use the PrGlue routine described in Inside Macintosh Vol V, -hence don't even "see" our patch... Some applications (notably PageMaker and FreeHand) don't use EITHER PrGlue or the old calls. They have their own drivers built in, and just use the Resources from the standard LW driver. Hence, patching PrGlue in this way is doomed to failure. Why not patch the Chooser and make the restricted printers never appear in the list of printers? Marc Kaufman (kaufman@Neon.stanford.edu)