Important: The information in this document is obsolete and should not be used for new development.
PBSetCatInfo
You can use thePBSetCatInfo
function 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.
--> ioCompletion
ProcPtr
A pointer to a completion routine. <-- ioResult
OSErr
The result code of the function. --> ioNamePtr
StringPtr
A pointer to a pathname. --> ioVRefNum
Integer
A volume specification. --> ioFlFndrInfo
FInfo
Information used by the Finder. --> ioDirID
LongInt
The directory ID. --> ioFlCrDat
LongInt
The date and time of creation. --> ioFlMdDat
LongInt
The date and time of the last modification. --> ioFlBkDat
LongInt
The date and time of the last backup. --> ioFlXFndrInfo
FXInfo
Additional information used by
the Finder.for directories
--> ioCompletion
ProcPtr
A pointer to a completion routine. <-- ioResult
OSErr
The result code of the function. --> ioNamePtr
StringPtr
A pointer to a pathname. --> ioVRefNum
Integer
A volume specification. --> ioDrUsrWds
DInfo
Information used by the Finder. --> ioDrDirID
LongInt
The directory ID. --> ioDrCrDat
LongInt
The date and time of creation. --> ioDrMdDat
LongInt
The date and time of the last modification. --> ioDrBkDat
LongInt
The date and time of the last backup. --> ioDrFndrInfo
DXInfo
Additional information used by
the Finder.DESCRIPTION
ThePBSetCatInfo
function sets information about a file or directory. When used to set information about a file, it works much asPBHSetFInfo
does, but lets you set some additional information.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector forPBSetCatInfo
are
Trap macro Selector _HFSDispatch $000A RESULT CODES