Important: The information in this document is obsolete and should not be used for new development.
AGFileGetDBCount
Use theAGFileGetDBCountfunction to count the number of guide files in a specified folder.
AGFileCountType AGFileGetDBCount (short vRefNum, long dirID, AGFileDBType databaseType, Boolean wantMixin);
vrRefNum- The volume reference of the volume on which the guide file is located.
dirID- The directory ID of the directory where the guide file is located.
databaseType- The guide file type. Use these constants to specify the type of guide file:
enum { kAGFileDBTypeAny = 0,/*all types*/ kAGFileDBTypeHelp = 1,/*Help*/ kAGFileDBTypeTutorial = 2,/*Tutorial*/ kAGFileDBTypeShortcuts = 3,/*Shortcuts*/ kAGFileDBTypeAbout = 4,/*About*/ kAGFileDBTypeOther = 8 /*Other*/ };
wantMixin- A flag. Set to
TRUEif you want to count the number of main guide files and Mixin guide files. Set toFALSEif you want to count only the number of main guide files.DESCRIPTION
TheAGFileGetDBCountfunction returns the number of guide files available in the folder specified by thevrRefNumanddirIDparameters. This function counts only the guide files of the type specified in thedatabaseTypeparameter.