Important: The information in this document is obsolete and should not be used for new development.
PBMountVol
You can use thePBMountVol
function to mount a volume.
FUNCTION PBMountVol (paramBlock: ParmBlkPtr): OSErr;
paramBlock
- A pointer to a basic FIle Manager parameter block.
<-- ioResult
OSErr
The result code of the function. <-> ioVRefNum
Integer
On input, a drive number. On output, the volume reference number. DESCRIPTION
ThePBMountVol
function mounts the volume in the specified drive. If there are no volumes already mounted, this volume becomes the default volume.Because you specify the volume to be mounted by providing a drive number, you can use
PBMountVol
to mount only one volume per disk.The
PBMountVol
function always executes synchronously.
- Note
- The
PBMountVol
function opens two files needed for maintaining
file catalog and file mapping information. If no access paths are available for these two files,PBMountVol
fails and returnstmfoErr
as its function result.ASSEMBLY-LANGUAGE INFORMATION
The trap macro forPBMountVol
is_MountVol
.RESULT CODES