home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 300-399 / ff304.lzh / Gears / fio.h < prev    next >
C/C++ Source or Header  |  1990-01-10  |  2KB  |  65 lines

  1. /*  fio.h
  2.     Abbreviated version of fileio.h from the prosuite sources.
  3.     This version is for use with my MANX library fileio32.lib.
  4.     This lib allows me to use the file requestor with out having
  5.     all the source with every program that uses it.
  6.        Joel Swank 9/20/89                                                  */
  7.  
  8. /* === General FileIO Declarations ======================================= */
  9. #define MAX_NAME_LENGTH         64        /* Includes terminating NULL */
  10. #define MAX_TOOLTYPE_LENGTH    80        /* Includes terminating NULL */
  11. #define VISIBLE_SELECT_LENGTH    16        /* Buffer for visible chars + '\0' */
  12.  
  13. /* The WBENCH_CODE definition is used to define whether to include 
  14.  * or not include the Workbench-style .info file pattern matching code.
  15.  * If you intend on using Workbench pattern matching, or if you are 
  16.  * going to give the user the option, define this constant.
  17.  * This makes sure that the Workbench-style code is in included in the 
  18.  * FileIO files when they are compiled.
  19.  * To attempt to match Workbench patterns at run time, you must set 
  20.  * the WBENCH_MATCH flag in your FileIOSupport structure.
  21.  * 
  22.  * If you aren't interested in Workbench-style pattern matching 
  23.  * and are interested in saving about 500 bytes of code size, 
  24.  * comment out the WBENCH_CODE definition.
  25.  */
  26. #define WBENCH_CODE
  27.  
  28.  
  29.  
  30.  
  31.  
  32. /* === FileIO Support Structure ========================================== */
  33. struct FileIOSupport
  34.     {
  35.     SHORT Flags;
  36.  
  37.     UBYTE *ReqTitle;    /* The text that will be the requester's title */
  38.  
  39.     /* After a successful call to GetFileIOName(), these fields will have
  40.      * the names selected by the user.  You should never have to initialize
  41.      * these fields, only read from them, though initializing them won't hurt.
  42.      */
  43.     UBYTE FileName[MAX_NAME_LENGTH];
  44.     UBYTE DrawerName[MAX_NAME_LENGTH];
  45.     UBYTE DiskName[MAX_NAME_LENGTH];
  46.  
  47.     /* If the LOCK_GOTTEN flag is set, the lock can be found here. */
  48.     ULONG DOSLock;
  49.  
  50.     SHORT NameCount;
  51.     SHORT NameStart;
  52.     SHORT CurrentPick;
  53.     struct Remember *NameKey;
  54.  
  55.     SHORT VolumeIndex;
  56.     SHORT VolumeCount;
  57.     struct Remember *VolumeKey;
  58.  
  59.     SHORT DiskObjectType;
  60.     UBYTE ToolType[MAX_TOOLTYPE_LENGTH];
  61.  
  62.     LONG UserData;        /* Use this for anything you want */
  63.     };
  64.  
  65.