ReactOS  0.4.14-dev-115-g4576127
direct.h
Go to the documentation of this file.
1 
6 #ifndef _INC_DIRECT
7 #define _INC_DIRECT
8 
9 #include <crtdefs.h>
10 #include <io.h>
11 
12 #pragma pack(push,_CRT_PACKING)
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 #ifndef _DISKFREE_T_DEFINED
19 #define _DISKFREE_T_DEFINED
20  struct _diskfree_t {
21  unsigned total_clusters;
22  unsigned avail_clusters;
24  unsigned bytes_per_sector;
25  };
26 #endif
27 
30  _CRTIMP
31  char*
32  __cdecl
33  _getcwd(
34  _Out_writes_opt_(_SizeInBytes) char *_DstBuf,
35  _In_ int _SizeInBytes);
36 
39  _CRTIMP
40  char*
41  __cdecl
42  _getdcwd(
43  _In_ int _Drive,
44  _Out_writes_opt_(_SizeInBytes) char *_DstBuf,
45  _In_ int _SizeInBytes);
46 
49  char*
50  __cdecl
52  _In_ int _Drive,
53  _Out_writes_opt_(_SizeInBytes) char *_DstBuf,
54  _In_ int _SizeInBytes);
55 
57  _CRTIMP
58  int
59  __cdecl
60  _chdir(
61  _In_z_ const char *_Path);
62 
64  _CRTIMP
65  int
66  __cdecl
67  _mkdir(
68  _In_z_ const char *_Path);
69 
71  _CRTIMP
72  int
73  __cdecl
74  _rmdir(
75  _In_z_ const char *_Path);
76 
78  _CRTIMP
79  int
80  __cdecl
81  _chdrive(
82  _In_ int _Drive);
83 
85  _CRTIMP
86  int
87  __cdecl
88  _getdrive(void);
89 
91  _CRTIMP
92  unsigned long
93  __cdecl
94  _getdrives(void);
95 
96 #ifndef _GETDISKFREE_DEFINED
97 #define _GETDISKFREE_DEFINED
99  _CRTIMP
100  unsigned
101  __cdecl
102  _getdiskfree(
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
115  _wgetcwd(
116  _Out_writes_opt_(_SizeInWords) wchar_t *_DstBuf,
117  _In_ int _SizeInWords);
118 
121  _CRTIMP
122  wchar_t*
123  __cdecl
124  _wgetdcwd(
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
142  _wchdir(
143  _In_z_ const wchar_t *_Path);
144 
146  _CRTIMP
147  int
148  __cdecl
149  _wmkdir(
150  _In_z_ const wchar_t *_Path);
151 
153  _CRTIMP
154  int
155  __cdecl
156  _wrmdir(
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
170  getcwd(
171  _Out_writes_opt_(_SizeInBytes) char *_DstBuf,
172  _In_ int _SizeInBytes);
173 
175  _CRTIMP
176  int
177  __cdecl
178  chdir(
179  _In_z_ const char *_Path);
180 
182  _CRTIMP
183  int
184  __cdecl
185  mkdir(
186  _In_z_ const char *_Path);
187 
189  _CRTIMP
190  int
191  __cdecl
192  rmdir(
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
_Check_return_ _CRTIMP int __cdecl _wrmdir(_In_z_ const wchar_t *_Path)
_Check_return_ _CRTIMP unsigned long __cdecl _getdrives(void)
Definition: getdrive.c:35
#define __cdecl
Definition: accygwin.h:79
_Check_return_ _Ret_opt_z_ _CRTIMP char *__cdecl _getcwd(_Out_writes_opt_(_SizeInBytes) char *_DstBuf, _In_ int _SizeInBytes)
#define _CRTIMP
Definition: crtdefs.h:60
#define _Ret_opt_z_
Definition: no_sal2.h:608
_Check_return_ _CRTIMP int __cdecl _getdrive(void)
Definition: getdrive.c:20
_Check_return_ _CRTIMP int __cdecl _chdir(_In_z_ const char *_Path)
_Check_return_ _Ret_opt_z_ char *__cdecl _getdcwd_nolock(_In_ int _Drive, _Out_writes_opt_(_SizeInBytes) char *_DstBuf, _In_ int _SizeInBytes)
#define _Check_return_
Definition: no_sal2.h:13
_Check_return_ _CRTIMP int __cdecl mkdir(_In_z_ const char *_Path)
_Check_return_ _CRTIMP unsigned __cdecl _getdiskfree(_In_ unsigned _Drive, _Out_ struct _diskfree_t *_DiskFree)
_Check_return_ _CRTIMP int __cdecl _rmdir(_In_z_ const char *_Path)
#define _Out_
Definition: no_sal2.h:323
_In_ size_t _SizeInWords
Definition: time.h:317
_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 chdir(_In_z_ const char *_Path)
unsigned bytes_per_sector
Definition: direct.h:24
_Check_return_ _Ret_opt_z_ _CRTIMP char *__cdecl _getdcwd(_In_ int _Drive, _Out_writes_opt_(_SizeInBytes) char *_DstBuf, _In_ int _SizeInBytes)
_Check_return_ _Ret_opt_z_ _CRTIMP char *__cdecl getcwd(_Out_writes_opt_(_SizeInBytes) char *_DstBuf, _In_ int _SizeInBytes)
unsigned avail_clusters
Definition: direct.h:22
#define _In_
Definition: no_sal2.h:204
unsigned total_clusters
Definition: direct.h:21
#define _In_z_
Definition: no_sal2.h:239
_In_ UINT _Out_writes_opt_(cch) LPSTR lpszFile
_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_ _CRTIMP int __cdecl _mkdir(_In_z_ const char *_Path)
_Check_return_ _CRTIMP int __cdecl rmdir(_In_z_ const char *_Path)
_In_ size_t _SizeInBytes
Definition: time.h:154
unsigned sectors_per_cluster
Definition: direct.h:23
_Check_return_ _CRTIMP int __cdecl _wchdir(_In_z_ const wchar_t *_Path)
_Check_return_ _Ret_opt_z_ _CRTIMP wchar_t *__cdecl _wgetcwd(_Out_writes_opt_(_SizeInWords) wchar_t *_DstBuf, _In_ int _SizeInWords)
_Check_return_ _CRTIMP int __cdecl _wmkdir(_In_z_ const wchar_t *_Path)