Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Files /
Chapter 2 - File Manager / File Manager Reference
File System Specification Routines / Accessing Information About Files and Directories


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 macroSelector
_HighLevelHFSDispatch$0008

RESULT CODES
noErr0No error
nsvErr-35No such volume
ioErr-36I/O error
bdNamErr-37Bad filename
fnfErr-43File not found
wPrErr-44Hardware volume lock
fLckdErr-45File is locked
vLckdErr-46Software volume lock
dirNFErr-120Directory not found or incomplete pathname
afpAccessDenied-5000User does not have the correct access
afpObjectTypeErr-5025Object was a directory

Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996