Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!gatech!bloom-beacon!husc6!endor!olson From: olson@endor.harvard.edu (Eric Olson) Newsgroups: comp.sys.mac Subject: Re: HFS Query Message-ID: <2637@husc6.UUCP> Date: Mon, 3-Aug-87 10:20:34 EDT Article-I.D.: husc6.2637 Posted: Mon Aug 3 10:20:34 1987 Date-Received: Tue, 4-Aug-87 02:17:12 EDT References: <1020@runx.ips.oz> <2496@hoptoad.uucp> <1033@runx.ips.oz> Sender: news@husc6.UUCP Reply-To: olson@endor.UUCP (Eric Olson) Organization: Aiken Computation Lab Harvard, Cambridge, MA Lines: 18 In article <1033@runx.ips.oz> clubmac@runx.OZ (Macintosh Users Group - Sydney, Australia) writes: >Thanks to some help from a friend, I discovered that the simplest way of >calculating a WDRefNum was to call PBOpenWD() with procID set to 'ERIK'. By >setting the procID to 'ERIK', I know that when I open the file in the volume >in question, HFS will not duplicate working directory entries, using the one >I created when I made the WDRefNum calculation. You also don't have to close WDs opened with a ProcID of 'ERIK'. They are all closed by the system at some point (probably during ExitToShell). This is the ProcID that Standard File uses when it opens a WD to pass to programs as a VRefNum. -Eric Eric K. Olson olson@endor.harvard.edu harvard!endor!olson