Important: The information in this document is obsolete and should not be used for new development.
FSpSetFInfo
You can use theFSpSetFInfofunction to set the Finder information about a file
or directory.
FUNCTION FSpSetFInfo (spec: FSSpec; fndrInfo: FInfo): OSErr;
- spec
- An
FSSpecrecord specifying the file or directory whose Finder information will be set.fndrInfo- Information to be used by the Finder.
DESCRIPTION
TheFSpSetFInfofunction changes the Finder information in the volume catalog entry for the specified file or directory.FSpSetFInfoallows you to set only the original Finder information--theFInfoorDInforecords, notFXInfoorDXInfo. (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 forFSpSetFInfoare
Trap macro Selector _HighLevelHFSDispatch $0008 RESULT CODES