Subversion Repositories SvarDOS

Rev

Rev 2057 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2057 Rev 2058
Line 29... Line 29...
29
****************************************************************************/
29
****************************************************************************/
30
 
30
 
31
#ifndef W32FDOS_H
31
#ifndef W32FDOS_H
32
#define W32FDOS_H
32
#define W32FDOS_H
33
 
33
 
34
#define FILE_A_READONLY  0x0001
34
#define FILE_A_RDONLY    0x0001
35
#define FILE_A_HIDDEN    0x0002
35
#define FILE_A_HIDDEN    0x0002
36
#define FILE_A_SYSTEM    0x0004
36
#define FILE_A_SYSTEM    0x0004
37
#define FILE_A_VOL       0x0008
37
#define FILE_A_VOLID     0x0008
38
#define FILE_A_DIR       0x0010
38
#define FILE_A_SUBDIR    0x0010
39
#define FILE_A_ARCH      0x0020
39
#define FILE_A_ARCH      0x0020
40
 
40
 
41
 
41
 
42
_Packed struct FFDTA { /* same format as a ffblk struct */
42
_Packed struct FFDTA { /* same format as a ffblk struct */
43
  char reserved[21];        /* dos positioning info */
43
  char reserved[21];        /* dos positioning info */
44
  unsigned char ff_attr;    /* file attributes */
44
  unsigned char attrib;     /* file attributes */
45
  unsigned short ff_ftime;  /* time when file created/modified */
45
  unsigned short wr_ftime;  /* time when file created/modified */
46
  unsigned short ff_fdate;  /* date when file created/modified */
46
  unsigned short wr_fdate;  /* date when file created/modified */
47
  unsigned long ff_fsize;   /* low word followed by high word */
47
  unsigned long size;       /* low word followed by high word */
48
  char ff_name[13];  /* file name, not space padded, period, '\0' terminated, wildcards replaced */
48
  char name[13];  /* file name, not space padded, period, '\0' terminated, wildcards replaced */
49
};
49
};
50
 
50
 
51
 
51
 
52
struct FFDTA *FindFirstFile(const char *pathname, struct FFDTA *dta);
52
struct FFDTA *FindFirstFile(const char *pathname, struct FFDTA *dta);
53
 
53