ReactOS 0.4.16-dev-2104-gb84fa49
dos.h
Go to the documentation of this file.
1/*
2 * DOS definitions
3 *
4 * Derived from the mingw header written by Colin Peters.
5 * Modified for Wine use by Jon Griffiths and Francois Gouget.
6 * This file is in the public domain.
7 */
8#ifndef __WINE_DOS_H
9#define __WINE_DOS_H
10
11#include <corecrt.h>
12
13#include <pshpack8.h>
14
15/* The following are also defined in io.h */
16#define _A_NORMAL 0x00000000
17#define _A_RDONLY 0x00000001
18#define _A_HIDDEN 0x00000002
19#define _A_SYSTEM 0x00000004
20#define _A_VOLID 0x00000008
21#define _A_SUBDIR 0x00000010
22#define _A_ARCH 0x00000020
23
24#ifndef _DISKFREE_T_DEFINED
25#define _DISKFREE_T_DEFINED
26struct _diskfree_t {
27 unsigned int total_clusters;
28 unsigned int avail_clusters;
29 unsigned int sectors_per_cluster;
30 unsigned int bytes_per_sector;
31};
32#endif /* _DISKFREE_T_DEFINED */
33
34
35#ifdef __cplusplus
36extern "C" {
37#endif
38
39_ACRTIMP unsigned int __cdecl _getdiskfree(unsigned int, struct _diskfree_t *);
40
41#ifdef __cplusplus
42}
43#endif
44
45
46#define diskfree_t _diskfree_t
47
48#include <poppack.h>
49
50#endif /* __WINE_DOS_H */
#define __cdecl
Definition: corecrt.h:121
#define _ACRTIMP
Definition: corecrt.h:153
_ACRTIMP unsigned int __cdecl _getdiskfree(unsigned int, struct _diskfree_t *)
Definition: dir.c:919
unsigned int bytes_per_sector
Definition: direct.h:25
unsigned int sectors_per_cluster
Definition: direct.h:24
unsigned int total_clusters
Definition: direct.h:22
unsigned int avail_clusters
Definition: direct.h:23