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: Apple Guide Complete / Part 3 - Integrating Guide Files
Chapter 9 - Apple Guide API / Getting Information About Guide Files
/


AGFileGetDBType

Use the AGFileGetDBType function to determine the type of a guide file.

 OSErr AGFileGetDBType 
                     (AGFileFSSpecType *fileSpec,
                      AGFileDBType *databaseType);
fileSpec
A pointer to the file system specification record for the guide file.
databaseType
A pointer to the type of the guide file. The AGFileGetDBType functions returns, through this parameter, a value that indicates the guide file type. The guide file type is indicated by one of these constants:
           enum {
            kAGFileDBTypeHelp       = 1,/*Help*/
            kAGFileDBTypeTutorial   = 2,/*Tutorial*/
            kAGFileDBTypeShortcuts  = 3,/*Shortcuts*/
            kAGFileDBTypeAbout      = 4,/*About*/
            kAGFileDBTypeOther      = 8 /*Other*/
           };
DESCRIPTION
The AGFileGetDBType function returns, in its databaseType parameter, the type of the specified guide file.

RESULT CODES
noErr0No error
nsvErr-35Volume doesn't exist
ioErr-36I/O error
fnOpnErr-38File not open
fnfErr-43File or directory does not exist
fLckdErr-45File is locked
rfNumErr-51Bad reference number
dirNFErr-120Directory not found or incomplete pathname
afpAccessDenied-5000User does not have the correct access to the file

Previous Book Contents Book Index Next

© Apple Computer, Inc.
12 JUL 1996