PBMountVol
PBMountVol Mount a volume
#include <Files.h> File Manager (PBxxx)
ParmBlkPtr pb; address of a 64-byte VolumeParam structure
returns Error Code; 0=no error
PBMountVol mounts the volume in the specified drive; i.e., it reads the
volume information and prepares for subsequent access. If no other volumes
are mounted, it becomes the default volume.
pb is the address of a 64-byte VolumeParam structure or any of the
variants which contain all the relevant fields:
Out-In Name Type Size Offset Description
<-> ioVRefNum short 2 22 Drive number (1=internal floppy, etc.)
<- ioResult OSErr 2 16 Error Code (0=no error)
Returns: an operating system Error Code. It will be one of:
noErr (0) No error
badMDBErr (-60) Bad master directory block
extFSErr (-58) External file system
ioErr (-36) I/O error
memFulErr (-108) Not enough room in heap
noMacDskErr (-57) Not a Mac diskette (bad signature bytes)
nsDrvErr (-56) No such drive
paramErr (-50) Bad drive number
tmfoErr (-42) Too many files open (with HFS volumes)
volOnLinErr (-55) Volume already on-line

Notes: PBMountVol is needed only by applications that don't use GetNextEvent
(i.e., they rely, instead, on the lower-level GetOSEvent). By the time
GetNextEvent has returned a disk-insert event, the diskette has already
been mounted, initialized, or rejected.