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


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

RESULT CODES
noErr0No error
nsvErr-35No such volume
ioErr-36I/O error
bdNamErr-37Bad filename
fnfErr-43File not found
paramErr-50No default volume
dirNFErr-120Directory not found or incomplete pathname
afpAccessDenied-5000User does not have the correct access
afpObjectTypeErr-5025Directory not found or incomplete pathname

Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996