Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!sics.se!ollef From: ollef@sics.se (Olle Furberg) Newsgroups: comp.sys.mac.programmer Subject: Re: Standard File and Working directories... Message-ID: <1991Jun29.190126.29936@sics.se> Date: 29 Jun 91 19:01:26 GMT References: <1991Jun26.084825.9019@dartvax.dartmouth.edu> <14312@goofy.Apple.COM> Organization: Satellite Image in Kiruna Corporation Lines: 41 In <14312@goofy.Apple.COM> lsr@Apple.COM (Larry Rosenstein) writes: >Opening a resource file given a volume refnum, dirID, and name is trickier. Why? What's wrong with PBHOpenRF? According to IM IV p. 137: "PBHOpenRF is identical to PBOpenRF except that it accepts a directory ID in ioDirID." FUNCTION PBHOpenRF (paramBlock: HParmBlkPtr; async: BOOLEAN) : OSErr; Trap macro _HOpenRF Parameter block -> 12 ioCompletion pointer <- 16 ioResult word -> 18 ioNamePtr pointer -> 22 ioVRefNum word <- 24 ioRefNum word -> 27 ioPermssn byte -> 28 ioMisc pointer -> 48 ioDirID long word I'm sorry if I'm missing some fundamental fact. /Olle