🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #17808

Re: HFS Query

#17808
From: Eric Olson
Date: Mon, 03 Aug 1987 14:20
18 lines
1384 bytes
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
Technical Details
Message-ID: <2637@husc6.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!seismo!gatech!bloom-beacon!husc6!endor!olson
References: <1020@runx.ips.oz> <2496@hoptoad.uucp> <1033@runx.ips.oz>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!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