Important: The information in this document is obsolete and should not be used for new development.
PBEject
When your application is finished with a volume, you can use thePBEject
function to place the volume offline and eject it.
FUNCTION PBEject (paramBlock: ParmBlkPtr): OSErr;
paramBlock
- A pointer to a basic File Manager parameter block.
--> ioCompletion
ProcPtr
A pointer to a completion routine. <-- ioResult
OSErr
The result code of the function. --> ioNamePtr
StringPtr
A pointer to a pathname. --> ioVRefNum
Integer
A volume specification. DESCRIPTION
ThePBEject
function flushes the specified volume, places it offline, and then ejects
the volume.ASSEMBLY-LANGUAGE INFORMATION
The trap macro forPBEject
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
noErr 0 No error nsvErr -35 No such volume ioErr -36 I/O error bdNamErr -37 Bad volume name paramErr -50 No default volume nsDrvErr -56 No such drive extFSErr -58 External file system