versNum
#include <SegLoad.h>
typedef struct AppFile { Size Offset Description short vRefNum; 2 0 Volume or working directory
refNum
OSType fType; 4 2 File type, eg, 'TEXT' or 'MSWD', etc. short versNum 2 6 Version number (usually 0)
Str255 fName; 256 8 length-prefixed p-string of file name
} AppFile; 264 (data will probably be shorter)
Notes: The AppFile structure is used in calls to GetAppFiles. Or, if you want, you can parse the Finder information independently: The global variable
AppParmHandle (at 0x0AEC) leads to a block of information as follows: File Action (word) 0=appOpen, 1=appPrint
Count (word) Number of AppFile structures to follow
AppFile 1 Information about first file (variable length)
€.
€ .
€ .
€AppFile n Information about last file Note that the data is packed. Each structure starting on the first
even- numbered byte directly after the last character of the filename of the
previous structure.