Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!blkcat!Uucp From: Edward.Rice@p4214.f421.n109.z1.FidoNet.Org (Edward Rice) Newsgroups: comp.sys.mac.programmer Subject: Volume Name + dirID == ? Message-ID: <677239715.1@blkcat.FidoNet> Date: 17 Jun 91 22:48:00 GMT Lines: 29 JE> I've been following the discussion on how to obtain permanent file JE> references. I now know how to obtain the file's volume name and JE> and directory ID. How do I use them to open the file? In particular, JE> how do I use them to open a file on an unmounted volume whose absolute JE> pathname is > 255 characters long? Inside Mac again... FUNCTION PBOpen (paramBlock: ParmBlkPtr; async: BOOLEAN) : OSErr; Parameter block Q> 12 ioCompletion pointer 18 ioNamePtr pointer Q> 22 ioVRefNum word 26 ioVersNum byte Q> 27 ioPermssn byte Q> 28 ioMisc pointer PBOpen creates an access path to the file having the name pointed to by ioNamePtr (and on flat volumes, the version number ioVersNum) on the volume specified by ioVRefNum. A path reference number is returned in ioRefNum. IOMisc either points to a portion of memory (522 bytes) to be used as the access pathUs buffer, or is NIL if you want the volume buffer to be used instead. Of course, on S/7, you can use aliases to shorten pathnames, if you're trying to handle the ">255 character pathname" in that environment. * Origin: "It's still in beta testing," Tom said pointedly. (1:109/421.4214)