Subversion Repositories SvarDOS

Rev

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

Rev 2045 Rev 2046
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 INVALID_HANDLE_VALUE ((HANDLE)-1)
34
#define INVALID_HANDLE_VALUE (NULL)
35
 
35
 
36
#define FILE_ATTRIBUTE_READONLY  0x0001
36
#define FILE_ATTRIBUTE_READONLY  0x0001
37
#define FILE_ATTRIBUTE_HIDDEN    0x0002
37
#define FILE_ATTRIBUTE_HIDDEN    0x0002
38
#define FILE_ATTRIBUTE_SYSTEM    0x0004
38
#define FILE_ATTRIBUTE_SYSTEM    0x0004
39
#define FILE_ATTRIBUTE_LABEL     0x0008
39
#define FILE_ATTRIBUTE_LABEL     0x0008
Line 73... Line 73...
73
  DWORD ff_fsize;    /* low word followed by high word */
73
  DWORD ff_fsize;    /* low word followed by high word */
74
  BYTE ff_name[13];  /* file name, not space padded, period, '\0' terminated, wildcards replaced */
74
  BYTE ff_name[13];  /* file name, not space padded, period, '\0' terminated, wildcards replaced */
75
};
75
};
76
 
76
 
77
 
77
 
78
#define FINDFILELFN 1
-
 
79
#define FINDFILEOLD 0
-
 
80
 
-
 
81
typedef union FHND  /* Stores either a handle (LFN) or FFDTA (oldstyle) */
-
 
82
{
-
 
83
  WORD handle;
-
 
84
  struct FFDTA *ffdtaptr;
-
 
85
} FHND;
-
 
86
 
-
 
87
typedef struct FindFileStruct
-
 
88
{
-
 
89
  short flag;        /* indicates whether this is for the old or new style find file & thus contents */
-
 
90
  FHND fhnd;         /* The data stored */
-
 
91
} FindFileStruct;
-
 
92
 
-
 
93
typedef FindFileStruct *HANDLE;
-
 
94
 
-
 
95
HANDLE FindFirstFile(const char *pathname, struct WIN32_FIND_DATA *findData);
78
struct FFDTA *FindFirstFile(const char *pathname, struct WIN32_FIND_DATA *findData);
96
int FindNextFile(HANDLE hnd, struct WIN32_FIND_DATA *findData);
79
int FindNextFile(struct FFDTA *hnd, struct WIN32_FIND_DATA *findData);
97
void FindClose(HANDLE hnd);
80
void FindClose(struct FFDTA *hnd);
98
 
81
 
99
DWORD GetFileAttributes(const char *pathname);
82
DWORD GetFileAttributes(const char *pathname);
100
 
83
 
101
/* Only the 1st 4 arguments are used and returns zero on error */
84
/* Only the 1st 4 arguments are used and returns zero on error */
102
int GetVolumeInformation(const char *lpRootPathName, char *lpVolumeNameBuffer,
85
int GetVolumeInformation(const char *lpRootPathName, char *lpVolumeNameBuffer,