Important: The information in this document is obsolete and should not be used for new development.
PBUnmountVol
You can use thePBUnmountVol
function to unmount a volume.
FUNCTION PBUnmountVol (paramBlock: ParmBlkPtr): OSErr;
paramBlock
- A pointer to a basic File Manager parameter block.
<-- ioResult
OSErr
The result code of the function. --> ioNamePtr
StringPtr
A pointer to a pathname. --> ioVRefNum
Integer
A volume reference number, a working directory reference number, or 0 for the default volume. DESCRIPTION
ThePBUnmountVol
function unmounts the specified volume. All user files on the volume must be closed. Then,PBUnmountVol
callsPBFlushVol
to flush the volume and releases the memory used for the volume.The
PBUnmountVol
function always executes synchronously.
- WARNING
- Don't unmount the startup volume. Doing so will cause a
system crash.- Note
- Unmounting a volume does not close working directories; to release the memory allocated to a working directory, call
PBCloseWD
.ASSEMBLY-LANGUAGE INFORMATION
The trap macro forPBUnmountVol
is_UnmountVol
.RESULT CODES