Important: The information in this document is obsolete and should not be used for new development.
PBHSetFInfo
You can use thePBHSetFInfo
function 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.
--> 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
A directory ID. --> ioFlCrDat
LongInt
The date and time of creation. --> ioFlMdDat
LongInt
The date and time of last modification. DESCRIPTION
ThePBHSetFInfo
function 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 byioNamePtr
on the volume specified byioVRefNum
. You should callPBHGetFInfo
just beforePBHSetFInfo
, so that the current information is present in the parameter block.ASSEMBLY-LANGUAGE INFORMATION
The trap macro forPBHSetFInfo
is_HSetFileInfo
.RESULT CODES