home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 2 BBS / 02-BBS.zip / msgapi38.zip / INCLUDE / FFIND.H < prev    next >
C/C++ Source or Header  |  1994-02-27  |  4KB  |  82 lines

  1. /***************************************************************************
  2.  *                                                                         *
  3.  *  MSGAPI Source Code, Version 2.00                                       *
  4.  *  Copyright 1989-1991 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           *
  10.  *  README.1ST.                                                            *
  11.  *                                                                         *
  12.  *  USE OF THIS FILE IS SUBJECT TO THE RESTRICTIONS CONTAINED IN THE       *
  13.  *  MSGAPI 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 MSGAPI 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.        Internet f106.n249.z1.fidonet.org               *
  25.  *  Kingston, Ont.         BBS      (613) 389-8315   HST/14.4k, 24hrs      *
  26.  *  Canada - K7M 5N3                                                       *
  27.  *                                                                         *
  28.  *  Thanks to Peter Fitzsimmons for this module.                           *
  29.  *                                                                         *
  30.  ***************************************************************************/
  31.  
  32. /* $Id: ffind.h_v 1.0 1991/11/16 16:16:51 sjd Rel sjd $ */
  33.  
  34. #ifndef __FFIND_H_
  35. #define __FFIND_H_
  36.  
  37. #include "compiler.h"
  38.  
  39. #define FFIND struct ffind
  40.  
  41. struct ffind
  42. {
  43. #ifndef OS_2
  44.     char reserved[21];
  45. #endif
  46.  
  47.     char            ff_attrib;
  48.     unsigned short  ff_ftime;
  49.     unsigned short  ff_fdate;
  50.     long            ff_fsize;
  51.     char            ff_name[13];
  52.  
  53. #ifdef OS_2
  54. #if defined(__386__) || defined(__FLAT__)
  55.     unsigned long   hdir;       /* directory handle from DosFindFirst */
  56. #else
  57.     unsigned short  hdir;       /* directory handle from DosFindFirst */
  58. #endif
  59. #endif
  60. };
  61.  
  62. FFIND * _fast FindOpen(char *filespec,unsigned short attribute);
  63. FFIND * _fast FindInfo(char *filespec); /*PLF Thu  10-17-1991  18:03:09 */
  64. int _fast FindNext(FFIND *ff);
  65. void _fast FindClose(FFIND *ff);
  66.  
  67. /* The MS-DOS type attributes that can be stored in zipfile.file_attr_ext,
  68.    only when ver_made_by==0.  There are a few more types, but none
  69.    that we use for anything.                                       */
  70.  
  71. #define MSDOS_READONLY  0x01
  72. #define MSDOS_HIDDEN    0x02
  73. #define MSDOS_SYSTEM    0x04
  74. #define MSDOS_VOLUME    0x08
  75. #define MSDOS_SUBDIR    0x10
  76. #define MSDOS_ARCHIVE   0x20
  77. #define MSDOS_RSVD1     0x40
  78. #define MSDOS_RSVD2     0x80
  79.  
  80. #endif
  81.  
  82.