Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Files /
Chapter 2 - File Manager / File Manager Reference
Low-Level Volume Access Routines / Obtaining Volume Information


PBSetVInfo

You can use the PBSetVInfo function to change information about a volume.

FUNCTION PBSetVInfo (paramBlock: HParmBlkPtr; async: Boolean): 
                     OSErr;
paramBlock
A pointer to a basic HFS parameter block.
async
A Boolean value that specifies asynchronous (TRUE) or synchronous (FALSE) execution.
-->ioCompletionProcPtrA pointer to a completion routine.
<--ioResultOSErrThe result code of the function.
-->ioNamePtrStringPtrA pointer to the volume's name.
-->ioVRefNumIntegerA volume specification.
-->ioVCrDateLongIntThe date and time of initialization.
-->ioVLsModLongIntThe date and time of last modification.
-->ioVAtrbIntegerThe volume attributes.
-->ioVBkUpLongIntThe date and time of the last backup.
-->ioVSeqNumIntegerUsed internally.
-->ioVFndrInfoARRAY[1..8] OF LongInt
   Information used by the Finder.

DESCRIPTION
The PBSetVInfo function lets you modify information about volumes. You can specify, in ioNamePtr, a pointer to a new name for the volume. Only bit 15 of ioVAtrb can be changed; setting it locks the volume.

Note
You cannot specify the volume by name; you must use either the
volume reference number, the drive number, or a working directory reference number.
ASSEMBLY-LANGUAGE INFORMATION
The trap macro for PBSetVInfo is _SetVolInfo.

RESULT CODES
noErr0No error
nsvErr-35No such volume
paramErr-50No default volume

Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996