#include <corecrt.h>
#include <stdarg.h>
#include <sec_api/conio_s.h>
Go to the source code of this file.
|
| _CRTIMP char *__cdecl | _cgets (_Pre_notnull_ _Post_z_ char *_Buffer) |
| |
| _Check_return_opt_ _CRTIMP int __cdecl | _cprintf (_In_z_ _Printf_format_string_ const char *_Format,...) |
| |
| _Check_return_opt_ _CRTIMP int __cdecl | _cputs (_In_z_ const char *_Str) |
| |
| _Check_return_opt_ _CRTIMP int __cdecl | _cscanf (_In_z_ _Scanf_format_string_ const char *_Format,...) |
| |
| _Check_return_opt_ _CRTIMP int __cdecl | _cscanf_l (_In_z_ _Scanf_format_string_ const char *_Format, _In_opt_ _locale_t _Locale,...) |
| |
| _Check_return_ _CRTIMP int __cdecl | _getch (void) |
| |
| _Check_return_ _CRTIMP int __cdecl | _getche (void) |
| |
| _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_p (_In_z_ _Printf_format_string_ const char *_Format,...) |
| |
| _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 | _cprintf_l (_In_z_ _Printf_format_string_ const char *_Format, _In_opt_ _locale_t _Locale,...) |
| |
| _Check_return_opt_ _CRTIMP int __cdecl | _vcprintf_l (_In_z_ _Printf_format_string_ const char *_Format, _In_opt_ _locale_t _Locale, va_list _ArgList) |
| |
| _Check_return_opt_ _CRTIMP int __cdecl | _cprintf_p_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) |
| |
| _CRTIMP int __cdecl | _kbhit (void) |
| |
| _CRTIMP int __cdecl | _putch (_In_ int _Ch) |
| |
| _CRTIMP int __cdecl | _ungetch (_In_ int _Ch) |
| |
| _Check_return_ _CRTIMP int __cdecl | _getch_nolock (void) |
| |
| _Check_return_ _CRTIMP int __cdecl | _getche_nolock (void) |
| |
| _CRTIMP int __cdecl | _putch_nolock (_In_ int _Ch) |
| |
| _CRTIMP int __cdecl | _ungetch_nolock (_In_ int _Ch) |
| |
| _CRTIMP wchar_t * | _cgetws (_Pre_notnull_ _Post_z_ wchar_t *_Buffer) |
| |
| _Check_return_ _CRTIMP wint_t __cdecl | _putwch (wchar_t _WCh) |
| |
| _Check_return_ _CRTIMP wint_t __cdecl | _ungetwch (wint_t _WCh) |
| |
| _Check_return_opt_ _CRTIMP int __cdecl | _cputws (_In_z_ const wchar_t *_String) |
| |
| _Check_return_opt_ _CRTIMP int __cdecl | _cwprintf (_In_z_ _Printf_format_string_ const wchar_t *_Format,...) |
| |
| _Check_return_opt_ _CRTIMP int __cdecl | _cwscanf (_In_z_ _Scanf_format_string_ const wchar_t *_Format,...) |
| |
| _Check_return_opt_ _CRTIMP int __cdecl | _cwscanf_l (_In_z_ _Scanf_format_string_ const wchar_t *_Format, _In_opt_ _locale_t _Locale,...) |
| |
| _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 | _cwprintf_p (_In_z_ _Printf_format_string_ const wchar_t *_Format,...) |
| |
| _Check_return_opt_ _CRTIMP int __cdecl | _vcwprintf_p (_In_z_ _Printf_format_string_ const wchar_t *_Format, va_list _ArgList) |
| |
| _CRTIMP int __cdecl | _cwprintf_l (_In_z_ _Printf_format_string_ const wchar_t *_Format, _In_opt_ _locale_t _Locale,...) |
| |
| _CRTIMP int __cdecl | _vcwprintf_l (_In_z_ _Printf_format_string_ const wchar_t *_Format, _In_opt_ _locale_t _Locale, va_list _ArgList) |
| |
| _CRTIMP int __cdecl | _cwprintf_p_l (_In_z_ _Printf_format_string_ const wchar_t *_Format, _In_opt_ _locale_t _Locale,...) |
| |
| _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 wint_t __cdecl | _putwch_nolock (wchar_t _WCh) |
| |
| _Check_return_ _CRTIMP wint_t __cdecl | _getwch_nolock (void) |
| |
| _Check_return_ _CRTIMP wint_t __cdecl | _getwche_nolock (void) |
| |
| _Check_return_opt_ _CRTIMP wint_t __cdecl | _ungetwch_nolock (wint_t _WCh) |
| |
| _Check_return_opt_ _CRTIMP char *__cdecl | cgets (_Out_writes_z_(_Inexpressible_(*_Buffer+2)) char *_Buffer) |
| |
| _Check_return_opt_ _CRTIMP int __cdecl | cprintf (_In_z_ _Printf_format_string_ const char *_Format,...) |
| |
| _Check_return_opt_ _CRTIMP int __cdecl | cputs (_In_z_ const char *_Str) |
| |
| _Check_return_opt_ _CRTIMP int __cdecl | cscanf (_In_z_ _Scanf_format_string_ const char *_Format,...) |
| |
| _Check_return_ _CRTIMP int __cdecl | getch (void) |
| |
| _Check_return_ _CRTIMP int __cdecl | getche (void) |
| |
| _Check_return_ _CRTIMP int __cdecl | kbhit (void) |
| |
| _Check_return_opt_ _CRTIMP int __cdecl | putch (int _Ch) |
| |
| _Check_return_opt_ _CRTIMP int __cdecl | ungetch (int _Ch) |
| |
◆ __need___va_list
This file has no copyright assigned and is placed in the Public Domain. This file is part of the w64 mingw-runtime package. No warranty is given; refer to the file DISCLAIMER within this package.
Definition at line 11 of file conio.h.
◆ _getwch
◆ _getwche
◆ _putwch
◆ _ungetwch
◆ _WCONIO_DEFINED
◆ WEOF
◆ _cgets()
◆ _cgetws()
◆ _cprintf()
Definition at line 176 of file conio.h.
182 {
189 }
_In_z_ _Printf_format_string_ char const *const _Format
_Check_return_opt_ _In_opt_ _locale_t const va_list _ArgList
_Check_return_opt_ _CRT_STDIO_INLINE int __CRTDECL _vcprintf_l(_In_z_ _Printf_format_string_params_(2) char const *const _Format, _In_opt_ _locale_t const _Locale, va_list _ArgList)
__crt_va_start(_ArgList, _Locale)
◆ _cprintf_l()
◆ _cprintf_p()
Definition at line 246 of file conio.h.
252 {
259 }
_Check_return_opt_ _CRT_STDIO_INLINE int __CRTDECL _vcprintf_p_l(_In_z_ _Printf_format_string_params_(2) char const *const _Format, _In_opt_ _locale_t const _Locale, va_list _ArgList)
◆ _cprintf_p_l()
◆ _cputs()
◆ _cputws()
◆ _cscanf()
◆ _cscanf_l()
◆ _cwprintf()
◆ _cwprintf_l()
◆ _cwprintf_p()
◆ _cwprintf_p_l()
◆ _cwscanf()
◆ _cwscanf_l()
◆ _getch()
Definition at line 218 of file console.c.
219{
221
226}
int CDECL _getch_nolock(void)
◆ _getch_nolock()
Definition at line 164 of file console.c.
165{
167
169 {
172 }
173 else
174 {
178
182
183 do {
185 {
186
189 {
190 unsigned char ch1, ch2;
191
193 {
195 break;
196 }
197
199 {
202 break;
203 }
204 }
205 }
206 else
207 break;
208 } while(1);
211 }
213}
BOOL WINAPI GetConsoleMode(HANDLE hConsoleHandle, LPDWORD lpMode)
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleMode(HANDLE hConsoleHandle, DWORD dwMode)
BOOL WINAPI DECLSPEC_HOTPATCH ReadConsoleInputA(IN HANDLE hConsoleInput, OUT PINPUT_RECORD lpBuffer, IN DWORD nLength, OUT LPDWORD lpNumberOfEventsRead)
static BOOL handle_enhanced_keys(INPUT_RECORD *ir, unsigned char *ch1, unsigned char *ch2)
static HANDLE msvcrt_input_console(void)
static int __MSVCRT_console_buffer
GLuint GLuint GLsizei count
union _KEY_EVENT_RECORD::@3502 uChar
◆ _getche()
Definition at line 354 of file console.c.
355{
357
362}
int CDECL _getche_nolock(void)
◆ _getche_nolock()
Definition at line 342 of file console.c.
343{
349}
int CDECL _putch_nolock(int c)
◆ _getwch_nolock()
Definition at line 231 of file console.c.
232{
234
236 {
239 }
240 else
241 {
245
249
250 do {
252 {
253
256 {
257 unsigned char ch1, ch2;
258
260 {
262 break;
263 }
264
266 {
269 break;
270 }
271 }
272 }
273 else
274 break;
275 } while(1);
278 }
280}
BOOL WINAPI ReadConsoleInputW(HANDLE handle, INPUT_RECORD *buffer, DWORD length, DWORD *count)
static wchar_t __MSVCRT_console_buffer_w
◆ _getwche_nolock()
Definition at line 367 of file console.c.
368{
369 wchar_t wch;
372 return wch;
374}
wchar_t CDECL _putwch_nolock(wchar_t c)
◆ _kbhit()
Definition at line 474 of file console.c.
475{
477
481 else
482 {
483
486
488
492 {
494 ir[
i].
Event.KeyEvent.bKeyDown &&
495 ir[
i].Event.KeyEvent.uChar.AsciiChar)
496 {
498 break;
499 }
500 }
502 }
505}
BOOL WINAPI GetNumberOfConsoleInputEvents(HANDLE hConsoleInput, LPDWORD lpNumberOfEvents)
BOOL WINAPI DECLSPEC_HOTPATCH PeekConsoleInputA(IN HANDLE hConsoleInput, OUT PINPUT_RECORD lpBuffer, IN DWORD nLength, OUT LPDWORD lpNumberOfEventsRead)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
_In_ ACCESS_MASK _In_opt_ POBJECT_ATTRIBUTES _In_ EVENT_TYPE EventType
◆ _putch()
◆ _putch_nolock()
◆ _putwch()
◆ _putwch_nolock()
Definition at line 320 of file console.c.
321{
326}
BOOL WINAPI DECLSPEC_HOTPATCH WriteConsoleW(IN HANDLE hConsoleOutput, IN CONST VOID *lpBuffer, IN DWORD nNumberOfCharsToWrite, OUT LPDWORD lpNumberOfCharsWritten, LPVOID lpReserved)
static HANDLE msvcrt_output_console(void)
◆ _ungetch()
◆ _ungetch_nolock()
◆ _ungetwch()
Definition at line 463 of file console.c.
464{
469}
wchar_t CDECL _ungetwch_nolock(wchar_t c)
◆ _ungetwch_nolock()
◆ _vcprintf()
◆ _vcprintf_l()
◆ _vcprintf_p()
◆ _vcprintf_p_l()
◆ _vcwprintf()
◆ _vcwprintf_l()
◆ _vcwprintf_p()
◆ _vcwprintf_p_l()
◆ cgets()
◆ cprintf()
◆ cputs()
◆ cscanf()
◆ getch()
◆ getche()
◆ kbhit()
◆ putch()
◆ ungetch()