Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Files /
Chapter 1 - Introduction to File Management / File Management Reference
Volume Access Routines / Obtaining Volume Information


GetVRefNum

You can use the GetVRefNum function 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
The GetVRefNum function 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 the PBGetFCBInfo function.

RESULT CODES
noErr0No error
rfNumErr-51Bad reference number

Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996