|
|
1.1 root 1: /***
2: *dos.h - definitions for MS-DOS interface routines
3: *
4: * Copyright (c) 1985-1991, Microsoft Corporation. All rights reserved.
5: *
6: *Purpose:
7: * Defines the structs and unions used for the direct DOS interface
8: * routines; includes macros to access the segment and offset
9: * values of far pointers, so that they may be used by the routines; and
10: * provides function prototypes for direct DOS interface functions.
11: *
12: ****/
13:
14: #ifndef _INC_DOS
15:
16: #ifdef __cplusplus
17: extern "C" {
18: #endif
19:
20:
21: #if (_MSC_VER <= 600)
22: #define __cdecl _cdecl
23: #endif
24:
25:
26:
27: /* _getdiskfree structure (duplicated in DIRECT.H) */
28:
29: #ifndef _DISKFREE_T_DEFINED
30:
31: struct _diskfree_t {
32: unsigned total_clusters;
33: unsigned avail_clusters;
34: unsigned sectors_per_cluster;
35: unsigned bytes_per_sector;
36: };
37:
38: #define _DISKFREE_T_DEFINED
39:
40: #endif
41:
42:
43:
44: /* File attribute constants */
45:
46: #define _A_NORMAL 0x00 /* Normal file - No read/write restrictions */
47: #define _A_RDONLY 0x01 /* Read only file */
48: #define _A_HIDDEN 0x02 /* Hidden file */
49: #define _A_SYSTEM 0x04 /* System file */
50: #define _A_SUBDIR 0x10 /* Subdirectory */
51: #define _A_ARCH 0x20 /* Archive file */
52:
53: /* external variable declarations */
54:
55: extern unsigned int _osversion;
56:
57: extern unsigned int _osmajor;
58: extern unsigned int _osminor;
59: extern unsigned int _baseversion;
60: extern unsigned int _basemajor;
61: extern unsigned int _baseminor;
62:
63: /* function prototypes */
64:
65: unsigned _getdiskfree(unsigned, struct _diskfree_t *);
66:
67: #if !__STDC__
68: /* Non-ANSI name for compatibility */
69: #define diskfree_t _diskfree_t
70: #endif /* __STDC__ */
71:
72: /* restore default alignment */
73:
74:
75: #ifdef __cplusplus
76: }
77: #endif
78:
79: #define _INC_DOS
80: #endif /* _INC_DOS */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.