ReactOS 0.4.15-dev-6675-gcbc63d8
console.h
Go to the documentation of this file.
1
2#pragma once
3
4/* Cache codepage for text streams */
7
8/* Global console Screen and Pager */
11
12// /* Global variables */
13// extern BOOL bCtrlBreak;
14// extern BOOL bIgnoreEcho;
15// extern BOOL bExit;
16
23
24
27
29
30#define ConOutPuts(szStr) \
31 ConPuts(StdOut, (szStr))
32
33#define ConErrPuts(szStr) \
34 ConPuts(StdErr, (szStr))
35
36#define ConOutResPuts(uID) \
37 ConResPuts(StdOut, (uID))
38
39#define ConErrResPuts(uID) \
40 ConResPuts(StdErr, (uID))
41
42#define ConOutPrintf(szStr, ...) \
43 ConPrintf(StdOut, (szStr), ##__VA_ARGS__)
44
45#define ConErrPrintf(szStr, ...) \
46 ConPrintf(StdErr, (szStr), ##__VA_ARGS__)
47
48#define ConOutResPrintf(uID, ...) \
49 ConResPrintf(StdOut, (uID), ##__VA_ARGS__)
50
51#define ConErrResPrintf(uID, ...) \
52 ConResPrintf(StdErr, (uID), ##__VA_ARGS__)
53
54#define ConOutFormatMessage(MessageId, ...) \
55 ConFormatMessage(StdOut, (MessageId), ##__VA_ARGS__)
56
57#define ConErrFormatMessage(MessageId, ...) \
58 ConFormatMessage(StdErr, (MessageId), ##__VA_ARGS__)
59
60
61BOOL ConPrintfVPaging(PCON_PAGER Pager, BOOL StartPaging, LPTSTR szFormat, va_list arg_ptr);
62BOOL __cdecl ConOutPrintfPaging(BOOL StartPaging, LPTSTR szFormat, ...);
63VOID ConOutResPaging(BOOL StartPaging, UINT resID);
64
69
72
73
74#ifdef INCLUDE_CMD_COLOR
76#endif
77
78
79BOOL ConSetTitle(IN LPCTSTR lpConsoleTitle);
80
81#ifdef INCLUDE_CMD_BEEP
82VOID ConRingBell(HANDLE hOutput);
83#endif
84
85#ifdef INCLUDE_CMD_COLOR
87#endif
88
89// TCHAR cgetchar (VOID);
90// BOOL CheckCtrlBreak (INT);
91
92// #define PROMPT_NO 0
93// #define PROMPT_YES 1
94// #define PROMPT_ALL 2
95// #define PROMPT_BREAK 3
96
97// INT FilePromptYN (UINT);
98// INT FilePromptYNA (UINT);
99
102
103#ifdef UNICODE
104 #define ConGetTextWidth ConGetTextWidthW
105#else
106 #define ConGetTextWidth ConGetTextWidthA
107#endif
#define __cdecl
Definition: accygwin.h:79
char * va_list
Definition: acmsvcex.h:78
WORD wColor
BOOL ConSetScreenColor(HANDLE hOutput, WORD wColor, BOOL bFill)
Definition: console.c:302
VOID ConRingBell(HANDLE hOutput)
Definition: console.c:287
BOOL ConGetDefaultAttributes(PWORD pwDefAttr)
Definition: console.c:255
VOID GetCursorXY(PSHORT, PSHORT)
Definition: console.c:200
VOID GetScreenSize(PSHORT, PSHORT)
Definition: console.c:236
VOID __cdecl ConFormatMessage(PCON_STREAM Stream, DWORD MessageId,...)
Definition: console.c:133
VOID ConOutChar(TCHAR)
Definition: console.c:123
SHORT GetCursorY(VOID)
Definition: console.c:218
UINT InputCodePage
Definition: console.c:25
BOOL __cdecl ConOutPrintfPaging(BOOL StartPaging, LPTSTR szFormat,...)
Definition: console.c:171
VOID ConOutResPaging(BOOL StartPaging, UINT resID)
Definition: console.c:182
VOID ConInDisable(VOID)
Definition: console.c:36
SHORT GetCursorX(VOID)
Definition: console.c:210
VOID ConInEnable(VOID)
Definition: console.c:46
SIZE_T ConGetTextWidthW(PCWSTR pszText)
Definition: console.c:340
UINT OutputCodePage
Definition: console.c:26
VOID SetCursorType(BOOL, BOOL)
Definition: console.c:226
BOOL ConSetTitle(IN LPCTSTR lpConsoleTitle)
Definition: console.c:280
CON_PAGER StdOutPager
Definition: console.c:30
VOID SetCursorXY(SHORT, SHORT)
Definition: console.c:191
BOOL ConPrintfVPaging(PCON_PAGER Pager, BOOL StartPaging, LPTSTR szFormat, va_list arg_ptr)
Definition: console.c:155
CON_SCREEN StdOutScreen
Definition: attrib.c:30
VOID ConErrChar(TCHAR)
Definition: console.c:128
VOID ConInDummy(VOID)
VOID ConInString(LPTSTR, DWORD)
Definition: console.c:81
SIZE_T ConGetTextWidthA(PCSTR pszText)
Definition: console.c:358
VOID ConInFlush(VOID)
Definition: console.c:56
VOID ConInKey(PINPUT_RECORD)
Definition: console.c:61
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
unsigned short WORD
Definition: ntddk_ex.h:93
static IStream Stream
Definition: htmldoc.c:1115
unsigned int UINT
Definition: ndis.h:50
WORD * PWORD
Definition: pedump.c:67
short SHORT
Definition: pedump.c:59
const uint16_t * PCWSTR
Definition: typedefs.h:57
int16_t * PSHORT
Definition: typedefs.h:55
ULONG_PTR SIZE_T
Definition: typedefs.h:80
const char * PCSTR
Definition: typedefs.h:52
#define IN
Definition: typedefs.h:39
char TCHAR
Definition: xmlstorage.h:189
const CHAR * LPCTSTR
Definition: xmlstorage.h:193
CHAR * LPTSTR
Definition: xmlstorage.h:192