FSpSetFInfo
You can use the FSpSetFInfo 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
The FSpSetFInfo 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--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 FSpSetFInfo are
| Trap macro | Selector |
| _HighLevelHFSDispatch | $0008 |
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 |
| wPrErr | -44 | Hardware volume lock |
| fLckdErr | -45 | File is locked |
| vLckdErr | -46 | Software volume lock |
| dirNFErr | -120 | Directory not found or incomplete pathname |
| afpAccessDenied | -5000 | User does not have the correct access |
| afpObjectTypeErr | -5025 | Object was a directory |