PBGetVolMountInfoSize
PBGetVolMountInfoSize Determine space allocation for volume-mounting record
#include <Files.h> File Manager
ParmBlkPtr pb ; address of an ParamBlockRec record
returns Error Code; 0=no error
Use PBGetVolMountInfoSize to determine how much space to allocate for
the volume-mounting record.
pb is a pointer to a IOParam structure.The relevant fields are as
follows:
Out-In Name Type Size Offset Description
Æ ioCompletion ProcPtr 4 12 Completion routine address (if async =TRUE)
¨ ioResult short 2 16 Error Code (0=no error, 1=not done yet)
Æ ioVRefNum short 2 22 Volume or working directory reference
Æ ioBuffer Ptr 4 32 pointer to storage for size (4 bytes of storage)
Returns: an operating system Error Code. It will be one of:
noErr (0) No error
nsvErr (-35) Volume not found
paramErr (-50) Parameter error
extFSErr (-58) External file system error; typically, function is
not available for that volume

Notes: For a specified volume, the PBGetVolMountInfoSize function provides
the size of the record needed to hold the volume's mounting information.
After ascertaining the size of the record needed and allocating storage, you
call the PBGetVolMountInfo function to retrieve a record containing all
the information needed to mount the volume, except for passwords. You can
later pass this record to the PBVolumeMount function to mount the
volume.