Important: The information in this document is obsolete and should not be used for new development.
FSpGetFInfo
You can use theFSpGetFInfofunction to obtain the Finder information about a file or directory.
FUNCTION FSpGetFInfo (spec: FSSpec; VAR fndrInfo: FInfo): OSErr;
spec- An
FSSpecrecord specifying the file or directory whose Finder information is desired.fndrInfo- Information used by the Finder.
DESCRIPTION
TheFSpGetFInfofunction returns the Finder information from the volume catalog entry for the specified file or directory. TheFSpGetFInfofunction provides 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 forFSpGetFInfoare
Trap macro Selector _HighLevelHFSDispatch $0007 RESULT CODES