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
Low-Level Volume Access Routines / Mounting and Unmounting Volumes


PBEject

When your application is finished with a volume, you can use the PBEject function to place the volume offline and eject it.

FUNCTION PBEject (paramBlock: ParmBlkPtr): OSErr;
paramBlock
A pointer to a basic File Manager parameter block.
-->ioCompletionProcPtrA pointer to a completion routine.
<--ioResultOSErrThe result code of the function.
-->ioNamePtrStringPtrA pointer to a pathname.
-->ioVRefNumIntegerA volume specification.

DESCRIPTION
The PBEject function flushes the specified volume, places it offline, and then ejects
the volume.

ASSEMBLY-LANGUAGE INFORMATION
The trap macro for PBEject is _Eject. You can invoke the _Eject macro asynchro- nously; the first two parts of the call are executed synchronously, and the actual ejection is executed asynchronously.

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