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 2 - File Manager / File Manager Reference
High-Level Volume Access Routines / Unmounting Volumes


Eject

You can use the Eject function to place a volume offline and eject it.

FUNCTION Eject (volName: StringPtr; vRefNum: Integer): OSErr;
volName
A pointer to the name of a volume.
vRefNum
A volume reference number, a working directory reference number, a drive number, or 0 for the default volume.
DESCRIPTION
The Eject function flushes the specified volume, places it offline, and then ejects
the volume.

RESULT CODES
noErr0No error
nsvErr-35No such volume
ioErr-36I/O error
bdNamErr-37Bad volume name
paramErr-50No default volume
nsDrvErr-56No such drive
extFSErr-58External file system

Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996