Carbon


PBGetVolMountInfoSize

Header: Files.h Carbon status: Supported

Determines how much space to allocate for a volume mounting information structure.

OSErr PBGetVolMountInfoSize (
    ParmBlkPtr paramBlock
);
Parameter descriptions
paramBlock

A pointer to a basic File Manager parameter block.

function result

A result code.

DISCUSSION

The relevant fields of the parameter block are:

For a specified volume, the PBGetVolMountInfoSize function provides the size of the structure needed to hold the volume’s mounting information.

This function allows your application to record the mounting information for a volume and then to mount the volume later. This programmatic mounting function stores the mounting information in a structure called the AFPVolMountInfo structure. The programmatic mounting functions use the ioParam variant of the ParamBlockRec structure.

In general, it is easier to mount remote volumes by creating and then resolving alias records that describe those volumes. The Alias Manager displays the standard user interface for user authentication when resolving alias records for remote volumes. As a result, this function is primarily of interest for applications that need to mount remote volumes with no user interface or with some custom user interface.

SPECIAL CONSIDERATIONS

This function executes synchronously. You should not call it at interrupt time.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)