zoneNameOffset
#include <Files.h>
short length; 2 0 length of mounting
information, including
standard header and
variable-length data
variable-length location data
short flags; 2 4 reserved; must be set to 0
char nbpInterval; 1 6 NBP retry interval
char nbpCount; 1 7 NBP retry count
short uamType; 2 8 user authentication method
short zoneNameOffset; 2 10 offset from start of record to
zone name
short serverNameOffset; 2 12 offset from start of record to
server name
short volNameOffset; 2 14 offset from start of record to
volume name
short userNameOffset; 2 16 offset from start of record to
user name
short userPassWordOffset; 2 offset from start of record to
user password
short volPassWordOffset; 2 offset from start of record to
volume password
char AFPData [144]; 144 standard AFP mounting info,
optional volume- specific,
variable-length data
typedef AFPVolMountInfo *AFPVolMountInfoPtr;
Notes: The length and media fields in the AFP volume mounting record are the
same as the length and media fields in the generic volume mounting record.
The nbpInterval and nbpCount fields are used by the AppleTalk
Name-Binding Protocol (NBP). Their functions are described in the
The uamType field specifies the access-control method used by the remote
volume. AppleShare uses four methods:
kNoUserAuthentication guest status; no password needed
kPassword 8-byte password
kEncryptPassword encrypted 8-byte password
kTwoWayEncryptPassword two-way random encryption; authenticate both
user and server
The six offset fields contain the offsets from the beginning of the record, in
bytes, to the entries in the data field of the volume's AppleShare zone and
server name, the volume name, the name of the user, the user's password,
and the volume password.
they're returned as blank. Typically, your application asks the user for any
necessary passwords and fills in those fields just before calling
PBVolumeMount. No passwords are required for mounting a volume with guest status.
If you have enough information about the volume, you can fill in the
mounting record yourself and call PBVolumeMount, even if you did not save the mounting information while the volume was mounted. To mount an
AFP volume, you must fill in the record with at least the zone name, server
name, user name, user password, and volume password. You can lay out the
fields in any order within the data field, as long as you specify the correct
offsets.