22#define OUTPUT_BUFFER_SIZE 4096
42 dwMode &= ~ENABLE_PROCESSED_INPUT;
67 WARN (
"Invalid input handle!!!\n");
103 for (
p = lpInput; *
p;
p++)
157 if (szFormat ==
NULL)
249#ifdef INCLUDE_CMD_COLOR
282#ifdef INCLUDE_CMD_BEEP
297#ifdef INCLUDE_CMD_COLOR
333#define IS_FULL_WIDTH(wch) \
334 (((USHORT)(wch) >= 0x0080) && (mk_wcwidth_cjk(wch) == 2))
343 for (ich = cxWidth = 0; pszText[ich]; ++ich)
#define STRING_CONSOLE_ERROR
void ConResPrintf(FILE *fp, UINT nID,...)
BOOL WINAPI FlushConsoleInputBuffer(IN HANDLE hConsoleInput)
BOOL WINAPI SetConsoleCursorPosition(IN HANDLE hConsoleOutput, IN COORD dwCursorPosition)
HANDLE WINAPI GetStdHandle(IN DWORD nStdHandle)
BOOL WINAPI SetConsoleTextAttribute(IN HANDLE hConsoleOutput, IN WORD wAttributes)
BOOL WINAPI SetConsoleCursorInfo(IN HANDLE hConsoleOutput, IN const CONSOLE_CURSOR_INFO *lpConsoleCursorInfo)
BOOL WINAPI FillConsoleOutputAttribute(IN HANDLE hConsoleOutput, IN WORD wAttribute, IN DWORD nLength, IN COORD dwWriteCoord, OUT LPDWORD lpNumberOfAttrsWritten)
BOOL WINAPI GetConsoleScreenBufferInfo(IN HANDLE hConsoleOutput, OUT PCONSOLE_SCREEN_BUFFER_INFO lpConsoleScreenBufferInfo)
VOID SetCursorXY(SHORT x, SHORT y)
VOID __cdecl ConFormatMessage(PCON_STREAM Stream, DWORD MessageId,...)
BOOL ConSetScreenColor(HANDLE hOutput, WORD wColor, BOOL bFill)
VOID ConOutResPaging(BOOL StartPaging, UINT resID)
#define OUTPUT_BUFFER_SIZE
VOID ConInString(LPWSTR lpInput, DWORD dwLength)
VOID GetCursorXY(PSHORT x, PSHORT y)
VOID ConRingBell(HANDLE hOutput)
SIZE_T ConGetTextWidthW(PCWSTR pszText)
VOID ConInKey(PINPUT_RECORD lpBuffer)
BOOL ConSetTitle(IN LPCWSTR lpConsoleTitle)
VOID GetScreenSize(PSHORT maxx, PSHORT maxy)
BOOL ConGetDefaultAttributes(PWORD pwDefAttr)
#define IS_FULL_WIDTH(wch)
BOOL ConPrintfVPaging(PCON_PAGER Pager, BOOL StartPaging, LPWSTR szFormat, va_list arg_ptr)
SIZE_T ConGetTextWidthA(PCSTR pszText)
BOOL __cdecl ConOutPrintfPaging(BOOL StartPaging, LPWSTR szFormat,...)
VOID SetCursorType(BOOL bInsert, BOOL bVisible)
#define ConOutPuts(szStr)
#define IsCJKCodePage(CodePage)
static TAGREF LPCWSTR LPDWORD LPVOID lpBuffer
BOOL WINAPI Beep(IN DWORD dwFreq, IN DWORD dwDuration)
#define ReadFile(a, b, c, d, e)
#define INVALID_HANDLE_VALUE
#define MultiByteToWideChar
static DWORD DWORD * dwLength
BOOL WINAPI GetConsoleMode(HANDLE hConsoleHandle, LPDWORD lpMode)
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleMode(HANDLE hConsoleHandle, DWORD dwMode)
GLint GLint GLint GLint GLint x
GLint GLint GLint GLint GLint GLint y
static _Check_return_opt_ int __cdecl vswprintf(_Out_writes_z_(_SizeInWords) wchar_t *_DstBuf, _In_ size_t _SizeInWords, _In_z_ _Printf_format_string_ const wchar_t *_Format, va_list _ArgList)
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
static BOOL __stdcall PagePrompt(PCON_PAGER Pager, DWORD Done, DWORD Total)
INT __stdcall ConWrite(IN PCON_STREAM Stream, IN PCTCH szStr, IN DWORD len)
INT ConMsgPrintfV(IN PCON_STREAM Stream, IN DWORD dwFlags, IN LPCVOID lpSource OPTIONAL, IN DWORD dwMessageId, IN DWORD dwLanguageId, IN va_list *Arguments OPTIONAL)
#define INIT_CON_SCREEN(pStream)
#define IsConsoleHandle(h)
BOOL IsTTYHandle(IN HANDLE hHandle)
#define LANG_USER_DEFAULT
#define STD_OUTPUT_HANDLE
#define FORMAT_MESSAGE_FROM_SYSTEM
#define ENABLE_ECHO_INPUT
#define ENABLE_LINE_INPUT
#define ENABLE_PROCESSED_INPUT
BOOL WINAPI MessageBeep(_In_ UINT uType)