Previous Book Contents Book Index Next

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


You can use the FlushVol function to write the contents of the volume buffer and update information about the volume.

FUNCTION FlushVol (volName: StringPtr; vRefNum: Integer): OSErr;
A pointer to the name of a mounted volume.
A volume reference number, a working directory reference number, a drive number, or 0 for the default volume.
On the specified volume, the FlushVol function writes the contents of the associated volume buffer and descriptive information about the volume (if they've changed since the last time FlushVol was called). This information is written to the volume.

noErr0No error
nsvErr-35No such volume
ioErr-36I/O error
bdNamErr-37Bad volume name
paramErr-50No default volume
nsDrvErr-56No such drive

Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996