home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / call32.zip / filefind.h < prev    next >
Text File  |  1992-08-15  |  1KB  |  58 lines

  1. /* File time and date types */
  2. #ifdef __IBMC__
  3. typedef struct _FTIME           /* ftime */
  4. {
  5.     UINT   twosecs : 5;
  6.     UINT   minutes : 6;
  7.     UINT   hours   : 5;
  8. } FTIME;
  9. typedef FTIME *PFTIME;
  10.  
  11. #else
  12.  
  13. typedef struct _FTIME           /* ftime */
  14. {
  15.     USHORT   twosecs : 5;
  16.     USHORT   minutes : 6;
  17.     USHORT   hours   : 5;
  18. } FTIME;
  19. typedef FTIME *PFTIME;
  20. #endif
  21.  
  22. #ifdef __IBMC__
  23. typedef struct _FDATE           /* fdate */
  24. {
  25.     UINT   day     : 5;
  26.     UINT   month   : 4;
  27.     UINT   year    : 7;
  28. } FDATE;
  29. typedef FDATE   *PFDATE;
  30.  
  31. #else
  32. typedef struct _FDATE           /* fdate */
  33. {
  34.     USHORT   day     : 5;
  35.     USHORT   month   : 4;
  36.     USHORT   year    : 7;
  37. } FDATE;
  38. typedef FDATE   *PFDATE;
  39. #endif
  40.  
  41. typedef struct _FILEFINDBUF3                 /* findbuf3 */
  42. {
  43.     ULONG   oNextEntryOffset;            /* new field */
  44.     FDATE   fdateCreation;
  45.     FTIME   ftimeCreation;
  46.     FDATE   fdateLastAccess;
  47.     FTIME   ftimeLastAccess;
  48.     FDATE   fdateLastWrite;
  49.     FTIME   ftimeLastWrite;
  50.     ULONG   cbFile;
  51.     ULONG   cbFileAlloc;
  52.     ULONG   attrFile;                    /* widened field */
  53.     UCHAR   cchName;
  54.     CHAR    achName[CCHMAXPATHCOMP];
  55. } FILEFINDBUF3;
  56. typedef FILEFINDBUF3 *PFILEFINDBUF3;
  57.  
  58.