Path: utzoo!utgpu!watserv1!watmath!att!occrsh!uokmax!munnari.oz.au!sirius.ucs.adelaide.edu.au!sthomas From: sthomas@library.adelaide.edu.au (Steve Thomas) Newsgroups: comp.sys.mac.programmer Subject: PBHGetFInfo help needed Message-ID: <1139@sirius.ucs.adelaide.edu.au> Date: 11 Jul 90 00:43:35 GMT Sender: news@ucs.adelaide.edu.au Organization: Barr Smith Library, University of Adelaide, South AUSTRALIA Lines: 36 I am getting an odd result from PGHGetFInfo, using vRefNum and DirID rather than WDRefNum. After my call to PBHGetFInfo, the DirID has been changed to something else. At first I thought it might be the Parent DirID, but I checked that and it's different for different files in the same folder. Can anyone tell me what it is (or what I'm doing wrong)? Here is a fragment of my code: var paramBlock: HParamBlockRec; vRefNum: INTEGER; dirID: LONGINT; fileName: Str255; fndrInfo: FInfo theErr: OSErr; begin with paramBlock do begin ioCompletion := nil; ioFVersNum := 0; ioFDirIndex := 0; ioNamePtr := @fileName; ioVrefNum := vRefNum; ioDirID := dirID; end; theErr := PBHGetFInfo(@paramBlock, FALSE); I also tried it with ioFDirIndex = -1, but got the same result. (-----------------------------------------------------------------------------) ( Stephen Thomas, Senior Systems Analyst ( Mail : Barr Smith Library, University of Adelaide, ( GPO Box 498, Adelaide S.AUSTRALIA 5001 ( Phone : (08) 228 5190 ( Fax : (08) 232 3689 ( E-mail: sthomas@library.adelaide.edu.au (-----------------------------------------------------------------------------)