2019 |
mateusz.vi |
1 |
/****************************************************************************
|
|
|
2 |
|
2028 |
mateusz.vi |
3 |
Win32 File compatibility for DOS.
|
2019 |
mateusz.vi |
4 |
[This version does support LFNs, if available.]
|
|
|
5 |
|
|
|
6 |
Written by: Kenneth J. Davis
|
|
|
7 |
Date: August, 2000
|
|
|
8 |
Contact: jeremyd@computer.org
|
|
|
9 |
|
|
|
10 |
|
|
|
11 |
Copyright (c): Public Domain [United States Definition]
|
|
|
12 |
|
|
|
13 |
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
14 |
of this software and associated documentation files (the "Software"), to deal
|
|
|
15 |
in the Software without restriction, including without limitation the rights
|
|
|
16 |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
17 |
copies of the Software, and to permit persons to whom the Software is
|
|
|
18 |
furnished to do so, subject to the following conditions:
|
|
|
19 |
|
|
|
20 |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
|
21 |
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
|
22 |
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
|
23 |
NONINFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR AUTHORS BE
|
|
|
24 |
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
|
25 |
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT
|
|
|
26 |
OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
|
27 |
DEALINGS IN THE SOFTWARE.
|
|
|
28 |
|
|
|
29 |
****************************************************************************/
|
|
|
30 |
|
|
|
31 |
#ifndef W32FDOS_H
|
|
|
32 |
#define W32FDOS_H
|
|
|
33 |
|
2058 |
mateusz.vi |
34 |
#define FILE_A_RDONLY 0x0001
|
2047 |
mateusz.vi |
35 |
#define FILE_A_HIDDEN 0x0002
|
|
|
36 |
#define FILE_A_SYSTEM 0x0004
|
2058 |
mateusz.vi |
37 |
#define FILE_A_VOLID 0x0008
|
|
|
38 |
#define FILE_A_SUBDIR 0x0010
|
2047 |
mateusz.vi |
39 |
#define FILE_A_ARCH 0x0020
|
2019 |
mateusz.vi |
40 |
|
|
|
41 |
|
2044 |
mateusz.vi |
42 |
_Packed struct FFDTA { /* same format as a ffblk struct */
|
2054 |
mateusz.vi |
43 |
char reserved[21]; /* dos positioning info */
|
2058 |
mateusz.vi |
44 |
unsigned char attrib; /* file attributes */
|
|
|
45 |
unsigned short wr_ftime; /* time when file created/modified */
|
|
|
46 |
unsigned short wr_fdate; /* date when file created/modified */
|
|
|
47 |
unsigned long size; /* low word followed by high word */
|
|
|
48 |
char name[13]; /* file name, not space padded, period, '\0' terminated, wildcards replaced */
|
2041 |
mateusz.vi |
49 |
};
|
2019 |
mateusz.vi |
50 |
|
|
|
51 |
|
2059 |
mateusz.vi |
52 |
int FindFirstFile(const char *pathname, struct FFDTA *dta);
|
2054 |
mateusz.vi |
53 |
|
2057 |
mateusz.vi |
54 |
int FindNextFile(struct FFDTA *hnd);
|
2054 |
mateusz.vi |
55 |
|
2046 |
mateusz.vi |
56 |
void FindClose(struct FFDTA *hnd);
|
2019 |
mateusz.vi |
57 |
|
|
|
58 |
/* Only the 1st 4 arguments are used and returns zero on error */
|
2054 |
mateusz.vi |
59 |
int GetVolumeInformation(const char *lpRootPathName, char *lpVolumeNameBuffer, size_t nVolumeNameSize, unsigned long *lpVolumeSerialNumber);
|
2019 |
mateusz.vi |
60 |
|
|
|
61 |
#endif
|