GetVRefNum
You can use theGetVRefNumfunction to get a volume reference number from a file reference number.
FUNCTION GetVRefNum (refNum: Integer; VAR vRefNum: Integer): OSErr;
refNum- The file reference number of an open file.
vRefNum- On exit, the volume reference number of the volume containing the file specified by
refNum.DESCRIPTION
TheGetVRefNumfunction returns the volume reference number of the volume containing the specified file. If you also want to determine the directory ID of the specified file's parent directory, call thePBGetFCBInfofunction.RESULT CODES
noErr 0 No error rfNumErr -51 Bad reference number
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help