Important: The information in this document is obsolete and should not be used for new development.
HSetFInfo
You can use theHSetFInfo
function to set the Finder information for a file.
FUNCTION HSetFInfo (vRefNum: Integer; dirID: LongInt; fileName: Str255; fndrInfo: FInfo): OSErr;
vRefNum
- A volume reference number, a working directory reference number, or 0 for the default volume.
dirID
- A directory ID.
fileName
- The name of the file.
fndrInfo
- Information used by the Finder.
DESCRIPTION
TheHSetFInfo
function changes the Finder information stored in the volume's catalog for a file.HSetFInfo
changes only the original Finder information--theFInfo
record, notFXInfo
. (See the chapter "Finder Interface" in Inside Macintosh: Macintosh Toolbox Essentials for a discussion of Finder information.)RESULT CODES