Important: The information in this document is obsolete and should not be used for new development.
PBSetVInfo
You can use thePBSetVInfofunction 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 LongIntInformation used by the Finder. DESCRIPTION
ThePBSetVInfofunction lets you modify information about volumes. You can specify, inioNamePtr, a pointer to a new name for the volume. Only bit 15 ofioVAtrbcan 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 forPBSetVInfois_SetVolInfo.RESULT CODES
noErr 0 No error nsvErr -35 No such volume paramErr -50 No default volume