ReactOS 0.4.16-dev-1059-gb1cf981
corecrt_wconio.h
Go to the documentation of this file.
1//
2// corecrt_wconio.h
3//
4// Copyright (c) Microsoft Corporation. All rights reserved.
5//
6// This file declares the wide character (wchar_t) console I/O functionality,
7// shared by both <conio.h> and <wchar.h>
8//
9#pragma once
10
11#include <corecrt.h>
13
14#pragma warning(push)
15#pragma warning(disable: _UCRT_DISABLED_WARNINGS)
17
19
20#define WEOF ((wint_t)(0xFFFF))
21
22
23
24#ifdef _CRT_USE_WINAPI_FAMILY_DESKTOP_APP
25
30 _In_ size_t _BufferCount,
31 _Out_ size_t* _SizeRead
32 );
33
35 _Success_(return == 0)
38 _In_ size_t*, _SizeRead
39 )
40
43 _In_z_ wchar_t const* _Buffer
44 );
45
50
55
56
57
58 //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
59 //
60 // Wide Character Formatted Output Functions (Console)
61 //
62 //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
65 _In_ unsigned __int64 _Options,
69 );
70
73 _In_ unsigned __int64 _Options,
77 );
78
81 _In_ unsigned __int64 _Options,
85 );
86
92 )
93#if defined _NO_CRT_STDIO_INLINE
94;
95#else
96 {
98 }
99#endif
100
103 _In_z_ _Printf_format_string_ wchar_t const* const _Format,
105 )
106#if defined _NO_CRT_STDIO_INLINE
107;
108#else
109 {
111 }
112#endif
113
115 _CRT_STDIO_INLINE int __CRTDECL _vcwprintf_s_l(
116 _In_z_ _Printf_format_string_params_(2) wchar_t const* const _Format,
119 )
120#if defined _NO_CRT_STDIO_INLINE
121;
122#else
123 {
125 }
126#endif
127
129 _CRT_STDIO_INLINE int __CRTDECL _vcwprintf_s(
130 _In_z_ _Printf_format_string_ wchar_t const* const _Format,
132 )
133#if defined _NO_CRT_STDIO_INLINE
134;
135#else
136 {
137 return _vcwprintf_s_l(_Format, NULL, _ArgList);
138 }
139#endif
140
143 _In_z_ _Printf_format_string_params_(2) wchar_t const* const _Format,
146 )
147#if defined _NO_CRT_STDIO_INLINE
148;
149#else
150 {
152 }
153#endif
154
157 _In_z_ _Printf_format_string_ const wchar_t* const _Format,
159 )
160#if defined _NO_CRT_STDIO_INLINE
161;
162#else
163 {
165 }
166#endif
167
170 _In_z_ _Printf_format_string_params_(0) wchar_t const* const _Format,
172 ...)
173#if defined _NO_CRT_STDIO_INLINE
174;
175#else
176 {
177 int _Result;
182 return _Result;
183 }
184#endif
185
188 _In_z_ _Printf_format_string_ wchar_t const* const _Format,
189 ...)
190#if defined _NO_CRT_STDIO_INLINE
191;
192#else
193 {
194 int _Result;
199 return _Result;
200 }
201#endif
202
204 _CRT_STDIO_INLINE int __CRTDECL _cwprintf_s_l(
205 _In_z_ _Printf_format_string_params_(0) wchar_t const* const _Format,
207 ...)
208#if defined _NO_CRT_STDIO_INLINE
209;
210#else
211 {
212 int _Result;
215 _Result = _vcwprintf_s_l(_Format, _Locale, _ArgList);
217 return _Result;
218 }
219#endif
220
222 _CRT_STDIO_INLINE int __CRTDECL _cwprintf_s(
223 _In_z_ _Printf_format_string_ wchar_t const* const _Format,
224 ...)
225#if defined _NO_CRT_STDIO_INLINE
226;
227#else
228 {
229 int _Result;
232 _Result = _vcwprintf_s_l(_Format, NULL, _ArgList);
234 return _Result;
235 }
236#endif
237
240 _In_z_ _Printf_format_string_params_(0) wchar_t const* const _Format,
242 ...)
243#if defined _NO_CRT_STDIO_INLINE
244;
245#else
246 {
247 int _Result;
252 return _Result;
253 }
254#endif
255
258 _In_z_ _Printf_format_string_ wchar_t const* const _Format,
259 ...)
260#if defined _NO_CRT_STDIO_INLINE
261;
262#else
263 {
264 int _Result;
269 return _Result;
270 }
271#endif
272
273
274
275 //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
276 //
277 // Wide Character Formatted Input Functions (Console)
278 //
279 //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
282 _In_ unsigned __int64 _Options,
286 );
287
289 _CRT_STDIO_INLINE int __CRTDECL _vcwscanf_l(
290 _In_z_ _Scanf_format_string_params_(2) wchar_t const* const _Format,
293 )
294#if defined _NO_CRT_STDIO_INLINE
295;
296#else
297 {
301 }
302#endif
303
305 _CRT_STDIO_INLINE int __CRTDECL _vcwscanf(
306 _In_z_ _Scanf_format_string_params_(1) wchar_t const* const _Format,
308 )
309#if defined _NO_CRT_STDIO_INLINE
310;
311#else
312 {
313 return _vcwscanf_l(_Format, NULL, _ArgList);
314 }
315#endif
316
318 _CRT_STDIO_INLINE int __CRTDECL _vcwscanf_s_l(
319 _In_z_ _Scanf_format_string_params_(2) wchar_t const* const _Format,
322 )
323#if defined _NO_CRT_STDIO_INLINE
324;
325#else
326 {
330 }
331#endif
332
334 _CRT_STDIO_INLINE int __CRTDECL _vcwscanf_s(
335 _In_z_ _Scanf_format_string_params_(1) wchar_t const* const _Format,
337 )
338#if defined _NO_CRT_STDIO_INLINE
339;
340#else
341 {
342 return _vcwscanf_s_l(_Format, NULL, _ArgList);
343 }
344#endif
345
348 _In_z_ _Scanf_format_string_params_(0) wchar_t const* const _Format,
350 ...)
351#if defined _NO_CRT_STDIO_INLINE
352;
353#else
354 {
355 int _Result;
358
359 _Result = _vcwscanf_l(_Format, _Locale, _ArgList);
360
362 return _Result;
363 }
364#endif
365
368 _In_z_ _Scanf_format_string_ wchar_t const* const _Format,
369 ...)
370#if defined _NO_CRT_STDIO_INLINE
371;
372#else
373 {
374 int _Result;
377
378 _Result = _vcwscanf_l(_Format, NULL, _ArgList);
379
381 return _Result;
382 }
383#endif
384
386 _CRT_STDIO_INLINE int __CRTDECL _cwscanf_s_l(
387 _In_z_ _Scanf_format_string_params_(0) wchar_t const* const _Format,
389 ...)
390#if defined _NO_CRT_STDIO_INLINE
391;
392#else
393 {
394 int _Result;
397 _Result = _vcwscanf_s_l(_Format, _Locale, _ArgList);
399 return _Result;
400 }
401#endif
402
404 _CRT_STDIO_INLINE int __CRTDECL _cwscanf_s(
405 _In_z_ _Scanf_format_string_ wchar_t const* const _Format,
406 ...)
407#if defined _NO_CRT_STDIO_INLINE
408;
409#else
410 {
411 int _Result;
414 _Result = _vcwscanf_s_l(_Format, NULL, _ArgList);
416 return _Result;
417 }
418#endif
419
420#endif // _CRT_USE_WINAPI_FAMILY_DESKTOP_APP
421
424#pragma warning(pop) // _UCRT_DISABLED_WARNINGS
int wint_t
Definition: _apple.h:38
#define __cdecl
Definition: accygwin.h:79
char * va_list
Definition: acmsvcex.h:78
#define __int64
Definition: basetyps.h:16
return
Definition: dirsup.c:529
errno_t __cdecl _cgetws_s(wchar_t *const string_buffer, size_t const size_in_words, size_t *const size_read)
Definition: cgetws.cpp:25
#define _CRT_STDIO_INLINE
#define _CRT_INTERNAL_SCANF_SECURECRT
#define _CRT_INTERNAL_LOCAL_SCANF_OPTIONS
#define _CRT_INTERNAL_LOCAL_PRINTF_OPTIONS
int __cdecl __conio_common_vcwprintf_s(unsigned __int64 const options, wchar_t const *const format, _locale_t const locale, va_list const arglist)
Definition: cprintf.cpp:84
int __cdecl __conio_common_vcwprintf(unsigned __int64 const options, wchar_t const *const format, _locale_t const locale, va_list const arglist)
Definition: cprintf.cpp:73
int __cdecl __conio_common_vcwprintf_p(unsigned __int64 const options, wchar_t const *const format, _locale_t const locale, va_list const arglist)
Definition: cprintf.cpp:95
#define __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1(_ReturnType, _FuncName, _DstType, _Dst, _TType1, _TArg1)
Definition: corecrt.h:177
int __cdecl __conio_common_vcwscanf(unsigned __int64 const options, wchar_t const *const format, _locale_t const locale, va_list const arglist)
Definition: cscanf.cpp:48
#define NULL
Definition: types.h:112
__crt_va_start(_ArgList, _Format)
_In_z_ _Printf_format_string_ char const *const _Format
Definition: printf.c:19
_Result
Definition: printf.c:27
__crt_va_end(_ArgList)
_In_z_ _Printf_format_string_ char const *const va_list _ArgList
Definition: printf.c:23
_In_ _Pre_notnull_ _Buffer
Definition: stdlib.h:644
int __cdecl _cwprintf(const MSVCRT_wchar_t *,...)
#define _Out_writes_z_(s)
Definition: no_sal2.h:180
#define _Success_(c)
Definition: no_sal2.h:84
#define _In_z_
Definition: no_sal2.h:164
#define _Scanf_format_string_params_(x)
Definition: no_sal2.h:364
#define _Check_return_
Definition: no_sal2.h:60
#define _Out_
Definition: no_sal2.h:160
#define _In_
Definition: no_sal2.h:158
#define _In_opt_
Definition: no_sal2.h:212
#define _Out_writes_to_(s, c)
Definition: no_sal2.h:188
#define _Printf_format_string_params_(x)
Definition: no_sal2.h:362
#define _Scanf_format_string_
Definition: no_sal2.h:358
#define _Printf_format_string_
Definition: no_sal2.h:356
_CRTIMP int __cdecl _cwprintf_p_l(_In_z_ _Printf_format_string_ const wchar_t *_Format, _In_opt_ _locale_t _Locale,...)
#define _getwch()
Definition: conio.h:339
_Check_return_opt_ _CRTIMP int __cdecl _cwprintf_p(_In_z_ _Printf_format_string_ const wchar_t *_Format,...)
_Check_return_ _CRTIMP wint_t __cdecl _getwche_nolock(void)
Definition: getwch.cpp:151
#define _putwch()
Definition: conio.h:338
_Check_return_opt_ _CRTIMP int __cdecl _cputws(_In_z_ const wchar_t *_String)
_Check_return_opt_ _CRTIMP int __cdecl _vcwprintf_p(_In_z_ _Printf_format_string_ const wchar_t *_Format, va_list _ArgList)
_Check_return_opt_ _CRTIMP wint_t __cdecl _putwch_nolock(wchar_t _WCh)
Definition: putwch.cpp:22
_Check_return_ _CRTIMP wint_t __cdecl _getwch_nolock(void)
Definition: getwch.cpp:77
_Check_return_opt_ _CRTIMP int __cdecl _cwscanf_l(_In_z_ _Scanf_format_string_ const wchar_t *_Format, _In_opt_ _locale_t _Locale,...)
_CRTIMP int __cdecl _cwprintf_l(_In_z_ _Printf_format_string_ const wchar_t *_Format, _In_opt_ _locale_t _Locale,...)
_Check_return_opt_ _CRTIMP int __cdecl _cwscanf(_In_z_ _Scanf_format_string_ const wchar_t *_Format,...)
_CRTIMP int __cdecl _vcwprintf_l(_In_z_ _Printf_format_string_ const wchar_t *_Format, _In_opt_ _locale_t _Locale, va_list _ArgList)
#define _getwche()
Definition: conio.h:340
#define _ungetwch()
Definition: conio.h:341
_CRTIMP int __cdecl _vcwprintf_p_l(_In_z_ _Printf_format_string_ const wchar_t *_Format, _In_opt_ _locale_t _Locale, va_list _ArgList)
_Check_return_opt_ _CRTIMP int __cdecl _vcwprintf(_In_z_ _Printf_format_string_ const wchar_t *_Format, va_list _ArgList)
_Check_return_opt_ _CRTIMP wint_t __cdecl _ungetwch_nolock(wint_t _WCh)
Definition: getwch.cpp:197
_In_ size_t _In_z_ _Printf_format_string_ const char _In_ const struct tm _In_opt_ _locale_t _Locale
Definition: time.h:159
_UCRT_DISABLE_CLANG_WARNINGS _CRT_BEGIN_C_HEADER _Check_return_wat_ _In_ size_t _BufferCount
Definition: conio.h:25
_UCRT_DISABLE_CLANG_WARNINGS _CRT_BEGIN_C_HEADER _Check_return_wat_ _In_ size_t _Out_ size_t * _SizeRead
Definition: conio.h:27
int errno_t
Definition: corecrt.h:615
#define _Check_return_opt_
Definition: corecrt.h:224
#define _DCRTIMP
Definition: corecrt.h:154
#define _UCRT_DISABLE_CLANG_WARNINGS
Definition: corecrt.h:109
#define _UCRT_RESTORE_CLANG_WARNINGS
Definition: corecrt.h:117
#define _Check_return_wat_
Definition: corecrt.h:230
#define _CRT_END_C_HEADER
Definition: vcruntime.h:42
#define _CRT_BEGIN_C_HEADER
Definition: vcruntime.h:40
#define _CRT_INSECURE_DEPRECATE(_Replacement)
Definition: vcruntime.h:99
#define __CRTDECL
Definition: yvals.h:17
#define const
Definition: zconf.h:233