ReactOS 0.4.16-dev-297-gc569aee
direct.h
Go to the documentation of this file.
1
6#ifndef _INC_DIRECT
7#define _INC_DIRECT
8
9#include <corecrt.h>
10#include <io.h>
11
12#pragma pack(push,_CRT_PACKING)
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
18#ifndef _DISKFREE_T_DEFINED
19#define _DISKFREE_T_DEFINED
20 struct _diskfree_t {
25 };
26#endif
27
31 char*
34 _Out_writes_opt_(_SizeInBytes) char *_DstBuf,
35 _In_ int _SizeInBytes);
36
40 char*
43 _In_ int _Drive,
44 _Out_writes_opt_(_SizeInBytes) char *_DstBuf,
45 _In_ int _SizeInBytes);
46
49 char*
52 _In_ int _Drive,
53 _Out_writes_opt_(_SizeInBytes) char *_DstBuf,
54 _In_ int _SizeInBytes);
55
58 int
61 _In_z_ const char *_Path);
62
65 int
68 _In_z_ const char *_Path);
69
72 int
75 _In_z_ const char *_Path);
76
79 int
82 _In_ int _Drive);
83
86 int
88 _getdrive(void);
89
92 unsigned long
94 _getdrives(void);
95
96#ifndef _GETDISKFREE_DEFINED
97#define _GETDISKFREE_DEFINED
100 unsigned
101 __cdecl
103 _In_ unsigned _Drive,
104 _Out_ struct _diskfree_t *_DiskFree);
105#endif
106
107#ifndef _WDIRECT_DEFINED
108#define _WDIRECT_DEFINED
109
112 _CRTIMP
113 wchar_t*
114 __cdecl
116 _Out_writes_opt_(_SizeInWords) wchar_t *_DstBuf,
117 _In_ int _SizeInWords);
118
121 _CRTIMP
122 wchar_t*
123 __cdecl
125 _In_ int _Drive,
126 _Out_writes_opt_(_SizeInWords) wchar_t *_DstBuf,
127 _In_ int _SizeInWords);
128
131 wchar_t*
132 __cdecl
134 _In_ int _Drive,
135 _Out_writes_opt_(_SizeInWords) wchar_t *_DstBuf,
136 _In_ int _SizeInWords);
137
139 _CRTIMP
140 int
141 __cdecl
143 _In_z_ const wchar_t *_Path);
144
146 _CRTIMP
147 int
148 __cdecl
150 _In_z_ const wchar_t *_Path);
151
153 _CRTIMP
154 int
155 __cdecl
157 _In_z_ const wchar_t *_Path);
158
159#endif /* _WDIRECT_DEFINED */
160
161#ifndef NO_OLDNAMES
162
163#define diskfree_t _diskfree_t
164
167 _CRTIMP
168 char*
169 __cdecl
171 _Out_writes_opt_(_SizeInBytes) char *_DstBuf,
172 _In_ int _SizeInBytes);
173
175 _CRTIMP
176 int
177 __cdecl
179 _In_z_ const char *_Path);
180
182 _CRTIMP
183 int
184 __cdecl
186 _In_z_ const char *_Path);
187
189 _CRTIMP
190 int
191 __cdecl
193 _In_z_ const char *_Path);
194
195#endif /* NO_OLDNAMES */
196
197#ifdef __cplusplus
198}
199#endif
200
201#pragma pack(pop)
202#endif
#define __cdecl
Definition: accygwin.h:79
#define mkdir
Definition: acwin.h:101
_Check_return_ _Ret_opt_z_ wchar_t *__cdecl _wgetdcwd_nolock(_In_ int _Drive, _Out_writes_opt_(_SizeInWords) wchar_t *_DstBuf, _In_ int _SizeInWords)
_Check_return_ _Ret_opt_z_ _CRTIMP wchar_t *__cdecl _wgetdcwd(_In_ int _Drive, _Out_writes_opt_(_SizeInWords) wchar_t *_DstBuf, _In_ int _SizeInWords)
_Check_return_ _CRTIMP int __cdecl _chdrive(_In_ int _Drive)
_Check_return_ _CRTIMP int __cdecl _getdrive(void)
Definition: getdrive.c:20
_Check_return_ _Ret_opt_z_ _CRTIMP char *__cdecl _getcwd(_Out_writes_opt_(_SizeInBytes) char *_DstBuf, _In_ int _SizeInBytes)
_Check_return_ _CRTIMP int __cdecl _wmkdir(_In_z_ const wchar_t *_Path)
_Check_return_ _CRTIMP int __cdecl _wchdir(_In_z_ const wchar_t *_Path)
_Check_return_ _CRTIMP int __cdecl _wrmdir(_In_z_ const wchar_t *_Path)
_Check_return_ _Ret_opt_z_ char *__cdecl _getdcwd_nolock(_In_ int _Drive, _Out_writes_opt_(_SizeInBytes) char *_DstBuf, _In_ int _SizeInBytes)
_Check_return_ _Ret_opt_z_ _CRTIMP char *__cdecl _getdcwd(_In_ int _Drive, _Out_writes_opt_(_SizeInBytes) char *_DstBuf, _In_ int _SizeInBytes)
_Check_return_ _CRTIMP int __cdecl _rmdir(_In_z_ const char *_Path)
_Check_return_ _CRTIMP int __cdecl _chdir(_In_z_ const char *_Path)
_Check_return_ _CRTIMP int __cdecl _mkdir(_In_z_ const char *_Path)
_Check_return_ _Ret_opt_z_ _CRTIMP char *__cdecl getcwd(_Out_writes_opt_(_SizeInBytes) char *_DstBuf, _In_ int _SizeInBytes)
_Check_return_ _Ret_opt_z_ _CRTIMP wchar_t *__cdecl _wgetcwd(_Out_writes_opt_(_SizeInWords) wchar_t *_DstBuf, _In_ int _SizeInWords)
_Check_return_ _CRTIMP unsigned __cdecl _getdiskfree(_In_ unsigned _Drive, _Out_ struct _diskfree_t *_DiskFree)
_Check_return_ _CRTIMP unsigned long __cdecl _getdrives(void)
Definition: getdrive.c:35
#define _Ret_opt_z_
Definition: ms_sal.h:1220
#define rmdir
Definition: syshdrs.h:70
#define chdir
Definition: syshdrs.h:69
#define _Out_writes_opt_(s)
Definition: no_sal2.h:226
#define _In_z_
Definition: no_sal2.h:164
#define _Check_return_
Definition: no_sal2.h:60
#define _Out_
Definition: no_sal2.h:160
#define _In_
Definition: no_sal2.h:158
_In_ size_t _SizeInBytes
Definition: time.h:146
_In_ size_t _SizeInWords
Definition: time.h:309
unsigned bytes_per_sector
Definition: direct.h:24
unsigned sectors_per_cluster
Definition: direct.h:23
unsigned total_clusters
Definition: direct.h:21
unsigned avail_clusters
Definition: direct.h:22
#define _CRTIMP
Definition: vcruntime.h:54