Important: The information in this document is obsolete and should not be used for new development.
GetVInfo
You can use theGetVInfo
function to get information about a mounted volume.
FUNCTION GetVInfo (drvNum: Integer; volName: StringPtr; VAR vRefNum: Integer; VAR freeBytes: LongInt): OSErr;
drvNum
- The drive number of the volume for which information is requested.
volName
- On output, a pointer to the name of the specified volume.
vRefNum
- The volume reference number of the specified volume.
freeBytes
- The available space (in bytes) on the specified volume.
DESCRIPTION
TheGetVInfo
function returns the name, volume reference number, and available space (in bytes) for the specified volume. You specify a volume by providing its drive number in thedrvNum
parameter. You can pass 0 in thedrvNum
parameter to get information about the default volume.RESULT CODES
noErr 0 No error nsvErr -35 No such volume paramErr -50 No default volume