Subversion Repositories SvarDOS

Rev

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

Rev 2053 Rev 2054
Line 36... Line 36...
36
#define FILE_A_SYSTEM    0x0004
36
#define FILE_A_SYSTEM    0x0004
37
#define FILE_A_VOL       0x0008
37
#define FILE_A_VOL       0x0008
38
#define FILE_A_DIR       0x0010
38
#define FILE_A_DIR       0x0010
39
#define FILE_A_ARCH      0x0020
39
#define FILE_A_ARCH      0x0020
40
 
40
 
41
typedef short BOOL;
-
 
42
typedef unsigned char BYTE;
-
 
43
typedef unsigned short WORD;
-
 
44
typedef unsigned long DWORD;
-
 
45
 
-
 
46
 
41
 
47
_Packed struct FFDTA { /* same format as a ffblk struct */
42
_Packed struct FFDTA { /* same format as a ffblk struct */
48
  BYTE reserved[21]; /* dos positioning info */
43
  char reserved[21];        /* dos positioning info */
49
  BYTE ff_attr;      /* file attributes */
44
  unsigned char ff_attr;    /* file attributes */
50
  WORD ff_ftime;     /* time when file created/modified */
45
  unsigned short ff_ftime;  /* time when file created/modified */
51
  WORD ff_fdate;     /* date when file created/modified */
46
  unsigned short ff_fdate;  /* date when file created/modified */
52
  DWORD ff_fsize;    /* low word followed by high word */
47
  unsigned long ff_fsize;   /* low word followed by high word */
53
  BYTE ff_name[13];  /* file name, not space padded, period, '\0' terminated, wildcards replaced */
48
  char ff_name[13];  /* file name, not space padded, period, '\0' terminated, wildcards replaced */
54
};
49
};
55
 
50
 
56
 
51
 
57
struct FFDTA *FindFirstFile(const char *pathname, struct FFDTA *findData);
52
struct FFDTA *FindFirstFile(const char *pathname, struct FFDTA *findData);
-
 
53
 
58
int FindNextFile(struct FFDTA *hnd, struct FFDTA *findData);
54
int FindNextFile(struct FFDTA *hnd, struct FFDTA *findData);
-
 
55
 
59
void FindClose(struct FFDTA *hnd);
56
void FindClose(struct FFDTA *hnd);
60
 
57
 
61
int GetFileAttributes(unsigned short *attr, const char *pathname);
58
int GetFileAttributes(unsigned short *attr, const char *pathname);
62
 
59
 
63
/* Only the 1st 4 arguments are used and returns zero on error */
60
/* Only the 1st 4 arguments are used and returns zero on error */
64
int GetVolumeInformation(const char *lpRootPathName, char *lpVolumeNameBuffer,
61
int GetVolumeInformation(const char *lpRootPathName, char *lpVolumeNameBuffer, size_t nVolumeNameSize, unsigned long *lpVolumeSerialNumber);
65
  DWORD nVolumeNameSize, DWORD *lpVolumeSerialNumber);
-
 
66
 
62
 
67
#endif
63
#endif