Important: The information in this document is obsolete and should not be used for new development.
PBSetCatInfo
You can use thePBSetCatInfofunction to modify information about files and directories.
FUNCTION PBSetCatInfo (paramBlock: CInfoPBPtr; async: Boolean): OSErr;for files
paramBlock- A pointer to a catalog information 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 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
ThePBSetCatInfofunction sets information about a file or directory. When used to set information about a file, it works much asPBHSetFInfodoes, but lets you set some additional information.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector forPBSetCatInfoare
Trap macro Selector _HFSDispatch $000A RESULT CODES