home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 2 BBS / 02-BBS.zip / MAXMAILP.ZIP / FFIND.H < prev    next >
C/C++ Source or Header  |  1990-10-12  |  3KB  |  73 lines

  1. /***************************************************************************
  2.  *                                                                         *
  3.  *  MAXIMUS-CBCS Source Code, Version 1.02                                 *
  4.  *  Copyright 1989, 1990 by Scott J. Dudley.  All rights reserved.         *
  5.  *                                                                         *
  6.  *  FFIND.C include file.                                                  *
  7.  *                                                                         *
  8.  *  For complete details of the licensing restrictions, please refer to    *
  9.  *  the licence agreement, which is published in its entirety in MAX.C     *
  10.  *  and LICENCE.MAX.                                                       *
  11.  *                                                                         *
  12.  *  USE OF THIS FILE IS SUBJECT TO THE RESTRICTIONS CONTAINED IN THE       *
  13.  *  MAXIMUS-CBCS LICENSING AGREEMENT.  IF YOU DO NOT FIND THE TEXT OF THIS *
  14.  *  AGREEMENT IN ANY OF THE  AFOREMENTIONED FILES, OR IF YOU DO NOT HAVE   *
  15.  *  THESE FILES, YOU SHOULD IMMEDIATELY CONTACT THE AUTHOR AT ONE OF THE   *
  16.  *  ADDRESSES LISTED BELOW.  IN NO EVENT SHOULD YOU PROCEED TO USE THIS    *
  17.  *  FILE WITHOUT HAVING ACCEPTED THE TERMS OF THE MAXIMUS-CBCS LICENSING   *
  18.  *  AGREEMENT, OR SUCH OTHER AGREEMENT AS YOU ARE ABLE TO REACH WITH THE   *
  19.  *  AUTHOR.                                                                *
  20.  *                                                                         *
  21.  *  You can contact the author at one of the address listed below:         *
  22.  *                                                                         *
  23.  *  Scott Dudley           FidoNet  1:249/106                              *
  24.  *  777 Downing St.        IMEXnet  89:483/202                             *
  25.  *  Kingston, Ont.         Internet f106.n249.z1.fidonet.org               *
  26.  *  Canada - K7M 5N3       BBS      (613) 389-8315 - HST/14.4K, 24hrs      *
  27.  *                                                                         *
  28.  *  Thanks to Peter Fitzsimmons for this module.                           *
  29.  *                                                                         *
  30.  ***************************************************************************/
  31.  
  32. #ifndef __FFIND_H_
  33. #define __FFIND_H_
  34.  
  35. #define FFIND struct ffind
  36.  
  37. struct ffind
  38. {
  39. #ifndef OS_2
  40.     char reserved[21];
  41. #endif
  42.  
  43.     char            ff_attrib;
  44.     unsigned short  ff_ftime;
  45.     unsigned short  ff_fdate;
  46.     long            ff_fsize;
  47.     char            ff_name[13];
  48.  
  49. #ifdef OS_2
  50.     unsigned short  hdir;       /* directory handle from DosFindFirst */
  51. #endif
  52. };
  53.  
  54. FFIND *FindOpen(char *filespec,unsigned short attribute);
  55. int FindNext(FFIND *ff);
  56. void FindClose(FFIND *ff);
  57.  
  58. /* The MS-DOS type attributes that can be stored in zipfile.file_attr_ext,
  59.    only when ver_made_by==0.  There are a few more types, but none
  60.    that we use for anything.                                       */
  61.  
  62. #define MSDOS_readonly  0x01
  63. #define MSDOS_hidden    0x02
  64. #define MSDOS_system    0x04
  65. #define MSDOS_volume    0x08
  66. #define MSDOS_subdir    0x10
  67. #define MSDOS_archive   0x20
  68. #define MSDOS_rsvd1     0x40
  69. #define MSDOS_rsvd2     0x80
  70.  
  71. #endif
  72.  
  73.