Go to the source code of this file.
|
| _UCRT_DISABLE_CLANG_WARNINGS _CRT_BEGIN_C_HEADER _Check_return_wat_ | _Success_ (_BufferCount > 0) _DCRTIMP errno_t __cdecl _cgets_s(_Out_writes_z_(_BufferCount) char *_Buffer |
| |
| | __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1 (_Success_(return==0) errno_t, _cgets_s, _Out_writes_z_(*_Buffer) char, _Buffer, _Out_ size_t *, _SizeRead) _Check_return_opt_ _DCRTIMP int __cdecl _cputs(_In_z_ char const *_Buffer) |
| |
| _Check_return_opt_ _DCRTIMP int __cdecl | __conio_common_vcprintf (_In_ unsigned __int64 _Options, _In_z_ _Printf_format_string_params_(2) char const *_Format, _In_opt_ _locale_t _Locale, va_list _ArgList) |
| |
| _Check_return_opt_ _DCRTIMP int __cdecl | __conio_common_vcprintf_s (_In_ unsigned __int64 _Options, _In_z_ _Printf_format_string_params_(2) char const *_Format, _In_opt_ _locale_t _Locale, va_list _ArgList) |
| |
| _Check_return_opt_ _DCRTIMP int __cdecl | __conio_common_vcprintf_p (_In_ unsigned __int64 _Options, _In_z_ _Printf_format_string_params_(2) char const *_Format, _In_opt_ _locale_t _Locale, 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) |
| |
| _Check_return_opt_ _CRT_STDIO_INLINE int __CRTDECL | _vcprintf (_In_z_ _Printf_format_string_ char const *const _Format, va_list _ArgList) |
| |
| _Check_return_opt_ _CRT_STDIO_INLINE int __CRTDECL | _vcprintf_s_l (_In_z_ _Printf_format_string_params_(2) char const *const _Format, _In_opt_ _locale_t const _Locale, va_list _ArgList) |
| |
| _Check_return_opt_ _CRT_STDIO_INLINE int __CRTDECL | _vcprintf_s (_In_z_ _Printf_format_string_ char const *const _Format, va_list _ArgList) |
| |
| _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) |
| |
| _Check_return_opt_ _CRT_STDIO_INLINE int __CRTDECL | _vcprintf_p (_In_z_ char const *const _Format, va_list _ArgList) |
| |
| _Check_return_opt_ _CRT_STDIO_INLINE int __CRTDECL | _cprintf_l (_In_z_ _Printf_format_string_params_(0) char const *const _Format, _In_opt_ _locale_t const _Locale,...) |
| |
| _Check_return_opt_ _CRT_STDIO_INLINE int __CRTDECL | _cprintf (_In_z_ _Printf_format_string_ char const *const _Format,...) |
| |
| _Check_return_opt_ _CRT_STDIO_INLINE int __CRTDECL | _cprintf_s_l (_In_z_ _Printf_format_string_params_(0) char const *const _Format, _In_opt_ _locale_t const _Locale,...) |
| |
| _Check_return_opt_ _CRT_STDIO_INLINE int __CRTDECL | _cprintf_s (_In_z_ _Printf_format_string_ char const *const _Format,...) |
| |
| _Check_return_opt_ _CRT_STDIO_INLINE int __CRTDECL | _cprintf_p_l (_In_z_ _Printf_format_string_params_(0) char const *const _Format, _In_opt_ _locale_t const _Locale,...) |
| |
| _Check_return_opt_ _CRT_STDIO_INLINE int __CRTDECL | _cprintf_p (_In_z_ _Printf_format_string_ char const *const _Format,...) |
| |
| _Check_return_opt_ _DCRTIMP int __cdecl | __conio_common_vcscanf (_In_ unsigned __int64 _Options, _In_z_ _Scanf_format_string_params_(2) char const *_Format, _In_opt_ _locale_t _Locale, va_list _ArgList) |
| |
| _Check_return_opt_ | _CRT_INSECURE_DEPRECATE (_vcscanf_s_l) _CRT_STDIO_INLINE int __CRTDECL _vcscanf_l(_In_z_ _Scanf_format_string_params_(2) char const *const _Format |
| |
| _Check_return_opt_ | _CRT_INSECURE_DEPRECATE (_vcscanf_s) _CRT_STDIO_INLINE int __CRTDECL _vcscanf(_In_z_ _Scanf_format_string_params_(1) char const *const _Format |
| |
| _Check_return_opt_ _CRT_STDIO_INLINE int __CRTDECL | _vcscanf_s_l (_In_z_ _Scanf_format_string_params_(2) char const *const _Format, _In_opt_ _locale_t const _Locale, va_list _ArgList) |
| |
| _Check_return_opt_ _CRT_STDIO_INLINE int __CRTDECL | _vcscanf_s (_In_z_ _Scanf_format_string_params_(1) char const *const _Format, va_list _ArgList) |
| |
| _Check_return_opt_ | _CRT_INSECURE_DEPRECATE (_cscanf_s_l) _CRT_STDIO_INLINE int __CRTDECL _cscanf_l(_In_z_ _Scanf_format_string_params_(0) char const *const _Format |
| |
| | __crt_va_start (_ArgList, _Locale) |
| |
| | __crt_va_end (_ArgList) |
| |
| _Check_return_opt_ | _CRT_INSECURE_DEPRECATE (_cscanf_s) _CRT_STDIO_INLINE int __CRTDECL _cscanf(_In_z_ _Scanf_format_string_ char const *const _Format |
| |
| | __crt_va_start (_ArgList, _Format) |
| |
| _Check_return_opt_ _CRT_STDIO_INLINE int __CRTDECL | _cscanf_s_l (_In_z_ _Scanf_format_string_params_(0) char const *const _Format, _In_opt_ _locale_t const _Locale,...) |
| |
| _Check_return_opt_ _CRT_STDIO_INLINE int __CRTDECL | _cscanf_s (_In_z_ _Scanf_format_string_ char const *const _Format,...) |
| |
| _DCRTIMP int __cdecl | _kbhit (void) |
| |
| _Check_return_ _DCRTIMP int __cdecl | _getch (void) |
| |
| _Check_return_ _DCRTIMP int __cdecl | _getche (void) |
| |
| _Check_return_opt_ _DCRTIMP int __cdecl | _putch (_In_ int _Ch) |
| |
| _Check_return_opt_ _DCRTIMP int __cdecl | _ungetch (_In_ int _Ch) |
| |
| _Check_return_ _DCRTIMP int __cdecl | _getch_nolock (void) |
| |
| _Check_return_ _DCRTIMP int __cdecl | _getche_nolock (void) |
| |
| _Check_return_opt_ _DCRTIMP int __cdecl | _putch_nolock (_In_ int _Ch) |
| |
| _Check_return_opt_ _DCRTIMP int __cdecl | _ungetch_nolock (_In_ int _Ch) |
| |
◆ _INC_CONIO
◆ __conio_common_vcprintf()
◆ __conio_common_vcprintf_p()
◆ __conio_common_vcprintf_s()
◆ __conio_common_vcscanf()
◆ __crt_va_end()
◆ __crt_va_start() [1/2]
◆ __crt_va_start() [2/2]
◆ __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1()
◆ _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()
Definition at line 158 of file conio.h.
165 {
172 }
_Check_return_opt_ _In_opt_ _locale_t const _Locale
◆ _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()
◆ _cprintf_s()
Definition at line 211 of file conio.h.
217 {
224 }
_Check_return_opt_ _CRT_STDIO_INLINE int __CRTDECL _vcprintf_s_l(_In_z_ _Printf_format_string_params_(2) char const *const _Format, _In_opt_ _locale_t const _Locale, va_list _ArgList)
◆ _cprintf_s_l()
◆ _CRT_INSECURE_DEPRECATE() [1/4]
◆ _CRT_INSECURE_DEPRECATE() [2/4]
◆ _CRT_INSECURE_DEPRECATE() [3/4]
◆ _CRT_INSECURE_DEPRECATE() [4/4]
◆ _cscanf_s()
Definition at line 392 of file conio.h.
398 {
405 }
_Check_return_opt_ _CRT_STDIO_INLINE int __CRTDECL _vcscanf_s_l(_In_z_ _Scanf_format_string_params_(2) char const *const _Format, _In_opt_ _locale_t const _Locale, va_list _ArgList)
◆ _cscanf_s_l()
◆ _getch()
Definition at line 218 of file console.c.
219{
221
226}
int CDECL _getch_nolock(void)
Referenced by _cgets(), _getche(), _tmain(), abort(), DumpFont(), GetPass(), gl_getc(), gl_getcx(), gl_getpass(), main(), MainUsage(), PrintHelp(), ShowAppList(), TestEventsGeneration(), Wait(), and wmain().
◆ _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
Referenced by _getch(), _getche_nolock(), and _getwche_nolock().
◆ _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)
Referenced by _getche().
◆ _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
Referenced by gl_getcx(), and main().
◆ _putch()
◆ _putch_nolock()
◆ _Success_()
◆ _ungetch()
◆ _ungetch_nolock()
◆ _vcprintf()
◆ _vcprintf_l()
Definition at line 71 of file conio.h.
79 {
83 }
#define _CRT_INTERNAL_LOCAL_PRINTF_OPTIONS
_Check_return_opt_ _DCRTIMP int __cdecl __conio_common_vcprintf(_In_ unsigned __int64 _Options, _In_z_ _Printf_format_string_params_(2) char const *_Format, _In_opt_ _locale_t _Locale, va_list _ArgList)
◆ _vcprintf_p()
◆ _vcprintf_p_l()
Definition at line 129 of file conio.h.
137 {
141 }
_Check_return_opt_ _DCRTIMP int __cdecl __conio_common_vcprintf_p(_In_ unsigned __int64 _Options, _In_z_ _Printf_format_string_params_(2) char const *_Format, _In_opt_ _locale_t _Locale, va_list _ArgList)
◆ _vcprintf_s()
◆ _vcprintf_s_l()
Definition at line 100 of file conio.h.
108 {
112 }
_Check_return_opt_ _DCRTIMP int __cdecl __conio_common_vcprintf_s(_In_ unsigned __int64 _Options, _In_z_ _Printf_format_string_params_(2) char const *_Format, _In_opt_ _locale_t _Locale, va_list _ArgList)
Referenced by _cprintf_s(), _cprintf_s_l(), and _vcprintf_s().
◆ _vcscanf_s()
◆ _vcscanf_s_l()
Definition at line 306 of file conio.h.
314 {
318 }
#define _CRT_INTERNAL_SCANF_SECURECRT
#define _CRT_INTERNAL_LOCAL_SCANF_OPTIONS
_Check_return_opt_ _DCRTIMP int __cdecl __conio_common_vcscanf(_In_ unsigned __int64 _Options, _In_z_ _Scanf_format_string_params_(2) char const *_Format, _In_opt_ _locale_t _Locale, va_list _ArgList)
Referenced by _cscanf_s(), _cscanf_s_l(), and _vcscanf_s().
◆ _ArgList
Initial value:
Definition at line 280 of file conio.h.
◆ _BufferCount
◆ _Locale
◆ _Result
◆ _SizeRead