xref: /reactos/sdk/include/ucrt/corecrt_wdirect.h (revision 04e0dc4a)
1 //
2 // corecrt_wdirect.h
3 //
4 //      Copyright (c) Microsoft Corporation. All rights reserved.
5 //
6 // This file declares the wide character (wchar_t) directory functionality, shared
7 // by <direct.h> and <wchar.h>.
8 //
9 #pragma once
10 
11 #include <corecrt.h>
12 
13 #pragma warning(push)
14 #pragma warning(disable: _UCRT_DISABLED_WARNINGS)
15 _UCRT_DISABLE_CLANG_WARNINGS
16 
17 _CRT_BEGIN_C_HEADER
18 
19 #pragma push_macro("_wgetcwd")
20 #pragma push_macro("_wgetdcwd")
21 #undef _wgetcwd
22 #undef _wgetdcwd
23 
24 _Success_(return != 0)
25 _Check_return_ _Ret_maybenull_z_
26 _ACRTIMP _CRTALLOCATOR wchar_t* __cdecl _wgetcwd(
27     _Out_writes_opt_z_(_SizeInWords) wchar_t* _DstBuf,
28     _In_                             int      _SizeInWords
29     );
30 
31 _Success_(return != 0)
32 _Check_return_ _Ret_maybenull_z_
33 _ACRTIMP _CRTALLOCATOR wchar_t* __cdecl _wgetdcwd(
34     _In_                             int      _Drive,
35     _Out_writes_opt_z_(_SizeInWords) wchar_t* _DstBuf,
36     _In_                             int      _SizeInWords
37     );
38 
39 #define _wgetdcwd_nolock  _wgetdcwd
40 
41 #pragma pop_macro("_wgetcwd")
42 #pragma pop_macro("_wgetdcwd")
43 
44 _Check_return_
45 _ACRTIMP int __cdecl _wchdir(
46     _In_z_ wchar_t const* _Path
47     );
48 
49 _Check_return_
50 _ACRTIMP int __cdecl _wmkdir(
51     _In_z_ wchar_t const* _Path
52     );
53 
54 _Check_return_
55 _ACRTIMP int __cdecl _wrmdir(
56     _In_z_ wchar_t const* _Path
57     );
58 
59 
60 
61 _CRT_END_C_HEADER
62 _UCRT_RESTORE_CLANG_WARNINGS
63 #pragma warning(pop) // _UCRT_DISABLED_WARNINGS
64