Important: The information in this document is obsolete and should not be used for new development.
FSpSetFInfo
You can use theFSpSetFInfo
function to set the Finder information about a file
or directory.
FUNCTION FSpSetFInfo (spec: FSSpec; fndrInfo: FInfo): OSErr;
- spec
- An
FSSpec
record specifying the file or directory whose Finder information will be set.fndrInfo
- Information to be used by the Finder.
DESCRIPTION
TheFSpSetFInfo
function changes the Finder information in the volume catalog entry for the specified file or directory.FSpSetFInfo
allows you to set only the original Finder information--theFInfo
orDInfo
records, notFXInfo
orDXInfo
. (See the chapter "Finder Interface" in Inside Macintosh: Macintosh Toolbox Essentials for a discussion of Finder information.)ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector forFSpSetFInfo
are
Trap macro Selector _HighLevelHFSDispatch $0008 RESULT CODES