Important: The information in this document is obsolete and should not be used for new development.
PBHSetFInfo
You can use thePBHSetFInfofunction to set information for a file.
FUNCTION PBHSetFInfo (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 a pathname. --> ioVRefNumIntegerA volume specification. --> ioFlFndrInfoFInfoInformation used by the Finder. --> ioDirIDLongIntA directory ID. --> ioFlCrDatLongIntThe date and time of creation. --> ioFlMdDatLongIntThe date and time of last modification. DESCRIPTION
ThePBHSetFInfofunction sets information (including the date and time of creation and modification, and information needed by the Finder) about the file having the name pointed to byioNamePtron the volume specified byioVRefNum. You should callPBHGetFInfojust beforePBHSetFInfo, so that the current information is present in the parameter block.ASSEMBLY-LANGUAGE INFORMATION
The trap macro forPBHSetFInfois_HSetFileInfo.RESULT CODES