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 HFS Routines / Accessing Information About Files and Directories


PBSetCatInfo

You can use the PBSetCatInfo function to modify information about files and directories.

FUNCTION PBSetCatInfo (paramBlock: CInfoPBPtr; async: Boolean): 
                        OSErr;
paramBlock
A pointer to a catalog information parameter block.
async
A Boolean value that specifies asynchronous (TRUE) or synchronous (FALSE) execution.
for files
-->ioCompletionProcPtrA pointer to a completion routine.
<--ioResultOSErrThe result code of the function.
-->ioNamePtr StringPtrA pointer to a pathname.
-->ioVRefNumIntegerA volume specification.
-->ioFlFndrInfoFInfoInformation used by the Finder.
-->ioDirIDLongIntThe directory ID.
-->ioFlCrDatLongIntThe date and time of creation.
-->ioFlMdDatLongIntThe date and time of the last modification.
-->ioFlBkDatLongIntThe date and time of the last backup.
-->ioFlXFndrInfoFXInfoAdditional information used by
the Finder.

for directories
-->ioCompletionProcPtrA pointer to a completion routine.
<--ioResultOSErrThe result code of the function.
-->ioNamePtrStringPtrA pointer to a pathname.
-->ioVRefNumIntegerA volume specification.
-->ioDrUsrWdsDInfoInformation used by the Finder.
-->ioDrDirIDLongIntThe directory ID.
-->ioDrCrDatLongIntThe date and time of creation.
-->ioDrMdDatLongIntThe date and time of the last modification.
-->ioDrBkDatLongIntThe date and time of the last backup.
-->ioDrFndrInfoDXInfoAdditional information used by
the Finder.

DESCRIPTION
The PBSetCatInfo function sets information about a file or directory. When used to set information about a file, it works much as PBHSetFInfo does, but lets you set some additional information.

ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for PBSetCatInfo are
Trap macroSelector
_HFSDispatch$000A

RESULT CODES
noErr0No error
nsvErr-35No such volume
ioErr-36I/O error
bdNamErr-37Bad filename
fnfErr-43File not found
fLckdErr-45File is locked
vLckdErr-46Volume is locked or read-only
paramErr-50No default volume
dirNFErr-120Directory not found or incomplete pathname
afpAccessDenied-5000User does not have the correct access

Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996