FSpGetFInfo
You can use the FSpGetFInfo function to obtain the Finder information about a file or directory.
FUNCTION FSpGetFInfo (spec: FSSpec; VAR fndrInfo: FInfo): OSErr;
spec
- An
FSSpec record specifying the file or directory whose Finder information is desired.
fndrInfo
- Information used by the Finder.
DESCRIPTION
The FSpGetFInfo function returns the Finder information from the volume catalog entry for the specified file or directory. The FSpGetFInfo function provides only the original Finder information--the FInfo or DInfo records, not FXInfo or DXInfo. (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 for FSpGetFInfo are
| Trap macro | Selector |
| _HighLevelHFSDispatch | $0007 |
RESULT CODES
| noErr | 0 | No error |
| nsvErr | -35 | No such volume |
| ioErr | -36 | I/O error |
| bdNamErr | -37 | Bad filename |
| fnfErr | -43 | File not found |
| paramErr | -50 | No default volume |
| dirNFErr | -120 | Directory not found or incomplete pathname |
| afpAccessDenied | -5000 | User does not have the correct access |
| afpObjectTypeErr | -5025 | Directory not found or incomplete pathname |