ReactOS  0.4.14-dev-55-g2da92ac
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
15 extern "C" {
16 #endif
17 
18  _CRTIMP
19  char*
20  __cdecl
21  _cgets(
22  _Pre_notnull_ _Post_z_ char *_Buffer);
23 
25  _CRTIMP
26  int
27  __cdecl
28  _cprintf(
30  ...);
31 
33  _CRTIMP
34  int
35  __cdecl
36  _cputs(
37  _In_z_ const char *_Str);
38 
40  _CRT_INSECURE_DEPRECATE(_cscanf_s)
41  _CRTIMP
42  int
43  __cdecl
44  _cscanf(
46  ...);
47 
49  _CRT_INSECURE_DEPRECATE(_cscanf_s_l)
50  _CRTIMP
51  int
52  __cdecl
53  _cscanf_l(
56  ...);
57 
59  _CRTIMP
60  int
61  __cdecl
62  _getch(void);
63 
65  _CRTIMP
66  int
67  __cdecl
68  _getche(void);
69 
71  _CRTIMP
72  int
73  __cdecl
74  _vcprintf(
76  va_list _ArgList);
77 
79  _CRTIMP
80  int
81  __cdecl
82  _cprintf_p(
84  ...);
85 
87  _CRTIMP
88  int
89  __cdecl
92  va_list _ArgList);
93 
95  _CRTIMP
96  int
97  __cdecl
98  _cprintf_l(
101  ...);
102 
104  _CRTIMP
105  int
106  __cdecl
107  _vcprintf_l(
110  va_list _ArgList);
111 
113  _CRTIMP
114  int
115  __cdecl
116  _cprintf_p_l(
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
138  _putch(
139  _In_ int _Ch);
140 
141  _CRTIMP
142  int
143  __cdecl
144  _ungetch(
145  _In_ int _Ch);
146 
148  _CRTIMP
149  int
150  __cdecl
151  _getch_nolock(void);
152 
154  _CRTIMP
155  int
156  __cdecl
157  _getche_nolock(void);
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*
190  _cgetws(
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
216  _ungetwch(
217  wint_t _WCh);
218 
220  _CRTIMP
221  int
222  __cdecl
223  _cputws(
224  _In_z_ const wchar_t *_String);
225 
227  _CRTIMP
228  int
229  __cdecl
230  _cwprintf(
231  _In_z_ _Printf_format_string_ const wchar_t *_Format,
232  ...);
233 
235  _CRT_INSECURE_DEPRECATE(_cwscanf_s)
236  _CRTIMP
237  int
238  __cdecl
239  _cwscanf(
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
248  _cwscanf_l(
249  _In_z_ _Scanf_format_string_ const wchar_t *_Format,
251  ...);
252 
254  _CRTIMP
255  int
256  __cdecl
257  _vcwprintf(
258  _In_z_ _Printf_format_string_ const wchar_t *_Format,
259  va_list _ArgList);
260 
262  _CRTIMP
263  int
264  __cdecl
265  _cwprintf_p(
266  _In_z_ _Printf_format_string_ const wchar_t *_Format,
267  ...);
268 
270  _CRTIMP
271  int
272  __cdecl
273  _vcwprintf_p(
274  _In_z_ _Printf_format_string_ const wchar_t *_Format,
275  va_list _ArgList);
276 
277  _CRTIMP
278  int
279  __cdecl
280  _cwprintf_l(
281  _In_z_ _Printf_format_string_ const wchar_t *_Format,
283  ...);
284 
285  _CRTIMP
286  int
287  __cdecl
288  _vcwprintf_l(
289  _In_z_ _Printf_format_string_ const wchar_t *_Format,
291  va_list _ArgList);
292 
293  _CRTIMP
294  int
295  __cdecl
297  _In_z_ _Printf_format_string_ const wchar_t *_Format,
299  ...);
300 
301  _CRTIMP
302  int
303  __cdecl
305  _In_z_ _Printf_format_string_ const wchar_t *_Format,
307  va_list _ArgList);
308 
310  _CRTIMP
311  wint_t
312  __cdecl
314  wchar_t _WCh);
315 
317  _CRTIMP
318  wint_t
319  __cdecl
320  _getwch_nolock(void);
321 
323  _CRTIMP
324  wint_t
325  __cdecl
326  _getwche_nolock(void);
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 
348  _CRT_INSECURE_DEPRECATE(_cgets_s)
349  _CRTIMP
350  char*
351  __cdecl
352  cgets(
353  _Out_writes_z_(_Inexpressible_(*_Buffer + 2)) char *_Buffer);
354 
357  _CRTIMP
358  int
359  __cdecl
360  cprintf(
362  ...);
363 
366  _CRTIMP
367  int
368  __cdecl
369  cputs(
370  _In_z_ const char *_Str);
371 
374  _CRTIMP
375  int
376  __cdecl
377  cscanf(
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
407  putch(
408  int _Ch);
409 
412  _CRTIMP
413  int
414  __cdecl
415  ungetch(
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 */
_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)
__INTRIN_INLINE unsigned short __cdecl _inpw(unsigned short Port)
Definition: intrin_x86.h:1494
_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_ _CRTIMP int __cdecl _getch_nolock(void)
_Check_return_ wchar_t _Ch
Definition: string.h:647
_Check_return_opt_ _CRTIMP wint_t __cdecl _putwch_nolock(wchar_t _WCh)
_Check_return_opt_ _CRTIMP int __cdecl _vcprintf(_In_z_ _Printf_format_string_ const char *_Format, va_list _ArgList)
#define __cdecl
Definition: accygwin.h:79
_Check_return_opt_ _CRTIMP int __cdecl _cprintf_l(_In_z_ _Printf_format_string_ const char *_Format, _In_opt_ _locale_t _Locale,...)
_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_opt_ _CRTIMP int __cdecl _cscanf(_In_z_ _Scanf_format_string_ const char *_Format,...)
#define _CRTIMP
Definition: crtdefs.h:60
_Check_return_opt_ _CRTIMP int __cdecl _vcwprintf_p(_In_z_ _Printf_format_string_ const wchar_t *_Format, va_list _ArgList)
_Check_return_opt_ _CRTIMP int __cdecl cprintf(_In_z_ _Printf_format_string_ const char *_Format,...)
_CRTIMP wchar_t * _cgetws(_Pre_notnull_ _Post_z_ wchar_t *_Buffer)
#define _Scanf_format_string_
Definition: no_sal2.h:631
#define _Check_return_
Definition: no_sal2.h:13
_Check_return_opt_ _CRTIMP int __cdecl _cprintf(_In_z_ _Printf_format_string_ const char *_Format,...)
#define _In_opt_
Definition: no_sal2.h:213
_Check_return_opt_ _CRTIMP char *__cdecl cgets(_Out_writes_z_(_Inexpressible_(*_Buffer+2)) char *_Buffer)
#define _Out_writes_z_(size)
Definition: no_sal2.h:384
__INTRIN_INLINE int __cdecl _inp(unsigned short Port)
Definition: intrin_x86.h:1489
_CRTIMP int __cdecl _cwprintf_p_l(_In_z_ _Printf_format_string_ const wchar_t *_Format, _In_opt_ _locale_t _Locale,...)
_CRTIMP int __cdecl _kbhit(void)
Definition: kbhit.c:21
_In_ size_t _In_z_ _Printf_format_string_ const char * _Format
Definition: time.h:154
_Check_return_ _CRTIMP int __cdecl getche(void)
_Check_return_ _CRTIMP wint_t __cdecl _getwche_nolock(void)
_Check_return_ _CRTIMP wint_t __cdecl _getwch_nolock(void)
int wint_t
Definition: _apple.h:38
char * va_list
Definition: acmsvcex.h:78
_Check_return_opt_ _CRTIMP int __cdecl _cwprintf(_In_z_ _Printf_format_string_ const wchar_t *_Format,...)
_CRTIMP int __cdecl _ungetch(_In_ int _Ch)
_Check_return_opt_ _CRTIMP int __cdecl ungetch(int _Ch)
_Check_return_opt_ _CRTIMP int __cdecl putch(int _Ch)
_Check_return_ _CRTIMP int __cdecl _getche_nolock(void)
_Check_return_opt_ _CRTIMP int __cdecl _cwscanf_l(_In_z_ _Scanf_format_string_ const wchar_t *_Format, _In_opt_ _locale_t _Locale,...)
_Check_return_ _CRTIMP int __cdecl _getche(void)
Definition: getche.c:15
_In_ size_t _In_z_ _Printf_format_string_ const char _In_ const struct tm _In_opt_ _locale_t _Locale
Definition: time.h:166
#define _CRT_NONSTDC_DEPRECATE(_Replacement)
Definition: crtdefs.h:210
_Check_return_opt_ _CRTIMP int __cdecl _cprintf_p(_In_z_ _Printf_format_string_ const char *_Format,...)
__INTRIN_INLINE unsigned long __cdecl _inpd(unsigned short Port)
Definition: intrin_x86.h:1499
#define _putwch()
Definition: conio.h:338
_CRTIMP int __cdecl _putch_nolock(_In_ int _Ch)
_Check_return_opt_ _CRTIMP int __cdecl _vcwprintf(_In_z_ _Printf_format_string_ const wchar_t *_Format, va_list _ArgList)
_Check_return_ _CRTIMP int __cdecl kbhit(void)
#define _getwch()
Definition: conio.h:339
#define _Pre_notnull_
Definition: no_sal2.h:496
_Check_return_opt_ _CRTIMP int __cdecl _vcprintf_l(_In_z_ _Printf_format_string_ const char *_Format, _In_opt_ _locale_t _Locale, va_list _ArgList)
#define _Post_z_
Definition: no_sal2.h:469
#define _In_
Definition: no_sal2.h:204
_Check_return_opt_ _CRTIMP int __cdecl _cputs(_In_z_ const char *_Str)
_CRTIMP int __cdecl _putch(_In_ int _Ch)
_Check_return_opt_ _CRTIMP int __cdecl _cscanf_l(_In_z_ _Scanf_format_string_ const char *_Format, _In_opt_ _locale_t _Locale,...)
#define _Check_return_opt_
Definition: specstrings.h:68
#define _ungetwch()
Definition: conio.h:341
_CRTIMP int __cdecl _cwprintf_l(_In_z_ _Printf_format_string_ const wchar_t *_Format, _In_opt_ _locale_t _Locale,...)
#define _In_z_
Definition: no_sal2.h:239
_Check_return_opt_ _CRTIMP int __cdecl cputs(_In_z_ const char *_Str)
#define _CRT_INSECURE_DEPRECATE(_Replacement)
Definition: crtdefs.h:190
_Check_return_ _CRTIMP int __cdecl getch(void)
__INTRIN_INLINE unsigned short __cdecl _outpw(unsigned short Port, unsigned short dataword)
Definition: intrin_x86.h:1510
_Check_return_opt_ _CRTIMP int __cdecl cscanf(_In_z_ _Scanf_format_string_ const char *_Format,...)
__INTRIN_INLINE int __cdecl _outp(unsigned short Port, int databyte)
Definition: intrin_x86.h:1504
_Check_return_opt_ _CRTIMP int __cdecl _vcprintf_p(_In_z_ _Printf_format_string_ const char *_Format, va_list _ArgList)
__INTRIN_INLINE unsigned long __cdecl _outpd(unsigned short Port, unsigned long dataword)
Definition: intrin_x86.h:1516
_Check_return_opt_ _CRTIMP int __cdecl _cwprintf_p(_In_z_ _Printf_format_string_ const wchar_t *_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 int __cdecl _getch(void)
Definition: getch.c:16
_Check_return_opt_ _CRTIMP wint_t __cdecl _ungetwch_nolock(wint_t _WCh)
#define _Printf_format_string_
Definition: no_sal2.h:569
#define _getwche()
Definition: conio.h:340
_CRTIMP char *__cdecl _cgets(_Pre_notnull_ _Post_z_ char *_Buffer)
_Check_return_opt_ _CRTIMP int __cdecl _cputws(_In_z_ const wchar_t *_String)
_CRTIMP int __cdecl _ungetch_nolock(_In_ int _Ch)