PBGetVolMountInfo
PBGetVolMountInfo Places volume mounting information into a buffer
#include <Files.h> File Manager
ParmBlkPtr pb ; address of an ParamBlockRec record
returns Error Code; 0=no error
Use PBGetVolMountInfo to place the mounting information for a specified
volume into the buffer
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 mounting information
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: PBGetVolMountInfo places the mounting information for a specified
volume into the buffer pointed to by the ioBuffer field. The mounting
information for an AppleShare volume is stored as an AFP mounting record.
The length of the buffer is specified by the value pointed to by the ioBuffer
field in a previous call to PBGetVolMountInfoSize.
PBGetVolMountInfo does not return the user password or volume
password in the AFPVolMountInfo record. Your application solicits these
passwords from the user and fills in the record before attempting to mount
the remote volume.