ReactOS 0.4.15-dev-7924-g5949c20
conio.h
Go to the documentation of this file.
1
6#ifndef _INC_CONIO
7#define _INC_CONIO
8
9#include <crtdefs.h>
10
11#define __need___va_list
12#include <stdarg.h>
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
19 char*
22 _Pre_notnull_ _Post_z_ char *_Buffer);
23
26 int
30 ...);
31
34 int
37 _In_z_ const char *_Str);
38
42 int
46 ...);
47
49 _CRT_INSECURE_DEPRECATE(_cscanf_s_l)
51 int
56 ...);
57
60 int
62 _getch(void);
63
66 int
68 _getche(void);
69
72 int
76 va_list _ArgList);
77
80 int
84 ...);
85
88 int
92 va_list _ArgList);
93
96 int
101 ...);
102
104 _CRTIMP
105 int
106 __cdecl
110 va_list _ArgList);
111
113 _CRTIMP
114 int
115 __cdecl
119 ...);
120
122 _CRTIMP
123 int
124 __cdecl
128 va_list _ArgList);
129
130 _CRTIMP
131 int
132 __cdecl
133 _kbhit(void);
134
135 _CRTIMP
136 int
137 __cdecl
139 _In_ int _Ch);
140
141 _CRTIMP
142 int
143 __cdecl
145 _In_ int _Ch);
146
148 _CRTIMP
149 int
150 __cdecl
152
154 _CRTIMP
155 int
156 __cdecl
158
159 _CRTIMP
160 int
161 __cdecl
163 _In_ int _Ch);
164
165 _CRTIMP
166 int
167 __cdecl
169 _In_ int _Ch);
170
171#if defined(_X86_) && !defined(__x86_64)
172 int __cdecl _inp(unsigned short);
173 unsigned short __cdecl _inpw(unsigned short);
174 unsigned long __cdecl _inpd(unsigned short);
175 int __cdecl _outp(unsigned short,int);
176 unsigned short __cdecl _outpw(unsigned short,unsigned short);
177 unsigned long __cdecl _outpd(unsigned short,unsigned long);
178#endif
179
180
181#ifndef _WCONIO_DEFINED
182#define _WCONIO_DEFINED
183
184#ifndef WEOF
185#define WEOF (wint_t)(0xFFFF)
186#endif
187
188 _CRTIMP
189 wchar_t*
191 _Pre_notnull_ _Post_z_ wchar_t *_Buffer);
192
194 _CRTIMP
195 wint_t
196 __cdecl
197 _getwch(void);
198
200 _CRTIMP
201 wint_t
202 __cdecl
203 _getwche(void);
204
206 _CRTIMP
207 wint_t
208 __cdecl
209 _putwch(
210 wchar_t _WCh);
211
213 _CRTIMP
214 wint_t
215 __cdecl
217 wint_t _WCh);
218
220 _CRTIMP
221 int
222 __cdecl
224 _In_z_ const wchar_t *_String);
225
227 _CRTIMP
228 int
229 __cdecl
232 ...);
233
235 _CRT_INSECURE_DEPRECATE(_cwscanf_s)
236 _CRTIMP
237 int
238 __cdecl
240 _In_z_ _Scanf_format_string_ const wchar_t *_Format,
241 ...);
242
244 _CRT_INSECURE_DEPRECATE(_cwscanf_s_l)
245 _CRTIMP
246 int
247 __cdecl
249 _In_z_ _Scanf_format_string_ const wchar_t *_Format,
251 ...);
252
254 _CRTIMP
255 int
256 __cdecl
259 va_list _ArgList);
260
262 _CRTIMP
263 int
264 __cdecl
267 ...);
268
270 _CRTIMP
271 int
272 __cdecl
275 va_list _ArgList);
276
277 _CRTIMP
278 int
279 __cdecl
283 ...);
284
285 _CRTIMP
286 int
287 __cdecl
291 va_list _ArgList);
292
293 _CRTIMP
294 int
295 __cdecl
299 ...);
300
301 _CRTIMP
302 int
303 __cdecl
307 va_list _ArgList);
308
310 _CRTIMP
311 wint_t
312 __cdecl
314 wchar_t _WCh);
315
317 _CRTIMP
318 wint_t
319 __cdecl
321
323 _CRTIMP
324 wint_t
325 __cdecl
327
329 _CRTIMP
330 wint_t
331 __cdecl
333 wint_t _WCh);
334
335#endif /* _WCONIO_DEFINED */
336
337#ifndef _MT
338#define _putwch() _putwch_nolock()
339#define _getwch() _getwch_nolock()
340#define _getwche() _getwche_nolock()
341#define _ungetwch() _ungetwch_nolock()
342#endif
343
344#ifndef NO_OLDNAMES
345
349 _CRTIMP
350 char*
351 __cdecl
353 _Out_writes_z_(_Inexpressible_(*_Buffer + 2)) char *_Buffer);
354
357 _CRTIMP
358 int
359 __cdecl
362 ...);
363
366 _CRTIMP
367 int
368 __cdecl
370 _In_z_ const char *_Str);
371
374 _CRTIMP
375 int
376 __cdecl
379 ...);
380
383 _CRTIMP
384 int
385 __cdecl
386 getch(void);
387
390 _CRTIMP
391 int
392 __cdecl
393 getche(void);
394
397 _CRTIMP
398 int
399 __cdecl
400 kbhit(void);
401
404 _CRTIMP
405 int
406 __cdecl
408 int _Ch);
409
412 _CRTIMP
413 int
414 __cdecl
416 int _Ch);
417
418#if (defined(_X86_) && !defined(__x86_64))
419 _CRT_NONSTDC_DEPRECATE(_inp) int __cdecl inp(unsigned short);
420 _CRT_NONSTDC_DEPRECATE(_inpw) unsigned short __cdecl inpw(unsigned short);
421 _CRT_NONSTDC_DEPRECATE(_outp) int __cdecl outp(unsigned short,int);
422 _CRT_NONSTDC_DEPRECATE(_outpw) unsigned short __cdecl outpw(unsigned short,unsigned short);
423#endif
424
425#endif /* !NO_OLDNAMES */
426
427#ifdef __cplusplus
428}
429#endif
430
431#include <sec_api/conio_s.h>
432
433#endif /* _INC_CONIO */
int wint_t
Definition: _apple.h:38
#define __cdecl
Definition: accygwin.h:79
char * va_list
Definition: acmsvcex.h:78
#define _Check_return_opt_
Definition: crtdefs.h:456
#define _CRT_INSECURE_DEPRECATE(_Replacement)
Definition: crtdefs.h:213
#define _CRTIMP
Definition: crtdefs.h:72
#define _CRT_NONSTDC_DEPRECATE(_Replacement)
Definition: crtdefs.h:231
__INTRIN_INLINE unsigned long __cdecl _inpd(unsigned short Port)
Definition: intrin_x86.h:1618
__INTRIN_INLINE unsigned long __cdecl _outpd(unsigned short Port, unsigned long dataword)
Definition: intrin_x86.h:1635
__INTRIN_INLINE int __cdecl _outp(unsigned short Port, int databyte)
Definition: intrin_x86.h:1623
__INTRIN_INLINE unsigned short __cdecl _inpw(unsigned short Port)
Definition: intrin_x86.h:1613
__INTRIN_INLINE unsigned short __cdecl _outpw(unsigned short Port, unsigned short dataword)
Definition: intrin_x86.h:1629
__INTRIN_INLINE int __cdecl _inp(unsigned short Port)
Definition: intrin_x86.h:1608
#define _Post_z_
Definition: ms_sal.h:691
#define _Out_writes_z_(size)
Definition: ms_sal.h:352
#define _In_z_
Definition: ms_sal.h:313
#define _Check_return_
Definition: ms_sal.h:557
#define _Pre_notnull_
Definition: ms_sal.h:680
#define _In_
Definition: ms_sal.h:308
#define _In_opt_
Definition: ms_sal.h:309
#define _Scanf_format_string_
Definition: ms_sal.h:562
#define _Printf_format_string_
Definition: ms_sal.h:561
_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 _cprintf_p(_In_z_ _Printf_format_string_ const char *_Format,...)
_Check_return_ _CRTIMP int __cdecl _getch(void)
Definition: getch.c:16
_Check_return_opt_ _CRTIMP int __cdecl ungetch(int _Ch)
_Check_return_ _CRTIMP int __cdecl _getche(void)
Definition: getche.c:15
_Check_return_opt_ _CRTIMP int __cdecl cprintf(_In_z_ _Printf_format_string_ const char *_Format,...)
_Check_return_opt_ _CRTIMP int __cdecl _cwprintf_p(_In_z_ _Printf_format_string_ const wchar_t *_Format,...)
_CRTIMP wchar_t * _cgetws(_Pre_notnull_ _Post_z_ wchar_t *_Buffer)
_Check_return_opt_ _CRTIMP int __cdecl _cscanf(_In_z_ _Scanf_format_string_ const char *_Format,...)
_Check_return_opt_ _CRTIMP int __cdecl _vcprintf_p_l(_In_z_ _Printf_format_string_ const char *_Format, _In_opt_ _locale_t _Locale, va_list _ArgList)
_Check_return_ _CRTIMP wint_t __cdecl _getwche_nolock(void)
_Check_return_ _CRTIMP int __cdecl kbhit(void)
_Check_return_ _CRTIMP int __cdecl getch(void)
#define _putwch()
Definition: conio.h:338
_Check_return_opt_ _CRTIMP int __cdecl _cwprintf(_In_z_ _Printf_format_string_ const wchar_t *_Format,...)
_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)
_CRTIMP int __cdecl _putch_nolock(_In_ int _Ch)
_CRTIMP int __cdecl _putch(_In_ int _Ch)
_Check_return_ _CRTIMP int __cdecl _getch_nolock(void)
_Check_return_opt_ _CRTIMP int __cdecl _vcprintf_l(_In_z_ _Printf_format_string_ const char *_Format, _In_opt_ _locale_t _Locale, va_list _ArgList)
_CRTIMP int __cdecl _kbhit(void)
Definition: kbhit.c:21
_Check_return_opt_ _CRTIMP wint_t __cdecl _putwch_nolock(wchar_t _WCh)
_CRTIMP int __cdecl _ungetch_nolock(_In_ int _Ch)
_Check_return_opt_ _CRTIMP int __cdecl cscanf(_In_z_ _Scanf_format_string_ const char *_Format,...)
_Check_return_opt_ _CRTIMP int __cdecl _cprintf_p_l(_In_z_ _Printf_format_string_ const char *_Format, _In_opt_ _locale_t _Locale,...)
_Check_return_ _CRTIMP wint_t __cdecl _getwch_nolock(void)
_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,...)
_Check_return_opt_ _CRTIMP char *__cdecl cgets(_Out_writes_z_(_Inexpressible_(*_Buffer+2)) char *_Buffer)
_Check_return_opt_ _CRTIMP int __cdecl _cscanf_l(_In_z_ _Scanf_format_string_ const char *_Format, _In_opt_ _locale_t _Locale,...)
_Check_return_opt_ _CRTIMP int __cdecl _cputs(_In_z_ const char *_Str)
_CRTIMP int __cdecl _vcwprintf_l(_In_z_ _Printf_format_string_ const wchar_t *_Format, _In_opt_ _locale_t _Locale, va_list _ArgList)
_Check_return_opt_ _CRTIMP int __cdecl _cprintf(_In_z_ _Printf_format_string_ const char *_Format,...)
#define _getwche()
Definition: conio.h:340
_Check_return_opt_ _CRTIMP int __cdecl _vcprintf(_In_z_ _Printf_format_string_ const char *_Format, va_list _ArgList)
_Check_return_opt_ _CRTIMP int __cdecl _cprintf_l(_In_z_ _Printf_format_string_ const char *_Format, _In_opt_ _locale_t _Locale,...)
_CRTIMP int __cdecl _ungetch(_In_ int _Ch)
_Check_return_ _CRTIMP int __cdecl _getche_nolock(void)
_CRTIMP char *__cdecl _cgets(_Pre_notnull_ _Post_z_ char *_Buffer)
_Check_return_ _CRTIMP int __cdecl getche(void)
#define _ungetwch()
Definition: conio.h:341
_Check_return_opt_ _CRTIMP int __cdecl putch(int _Ch)
_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 int __cdecl _vcprintf_p(_In_z_ _Printf_format_string_ const char *_Format, va_list _ArgList)
_Check_return_opt_ _CRTIMP int __cdecl cputs(_In_z_ const char *_Str)
_Check_return_opt_ _CRTIMP wint_t __cdecl _ungetwch_nolock(wint_t _WCh)
_Check_return_ wchar_t _Ch
Definition: string.h:640
_In_ size_t _In_z_ _Printf_format_string_ const char * _Format
Definition: time.h:147
_In_ size_t _In_z_ _Printf_format_string_ const char _In_ const struct tm _In_opt_ _locale_t _Locale
Definition: time.h:159