ReactOS 0.4.15-dev-8061-g57b775e
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
22
23
26
28
29#define ConOutPuts(szStr) \
30 ConPuts(StdOut, (szStr))
31
32#define ConErrPuts(szStr) \
33 ConPuts(StdErr, (szStr))
34
35#define ConOutResPuts(uID) \
36 ConResPuts(StdOut, (uID))
37
38#define ConErrResPuts(uID) \
39 ConResPuts(StdErr, (uID))
40
41#define ConOutPrintf(szStr, ...) \
42 ConPrintf(StdOut, (szStr), ##__VA_ARGS__)
43
44#define ConErrPrintf(szStr, ...) \
45 ConPrintf(StdErr, (szStr), ##__VA_ARGS__)
46
47#define ConOutResPrintf(uID, ...) \
48 ConResPrintf(StdOut, (uID), ##__VA_ARGS__)
49
50#define ConErrResPrintf(uID, ...) \
51 ConResPrintf(StdErr, (uID), ##__VA_ARGS__)
52
53#define ConOutFormatMessage(MessageId, ...) \
54 ConFormatMessage(StdOut, (MessageId), ##__VA_ARGS__)
55
56#define ConErrFormatMessage(MessageId, ...) \
57 ConFormatMessage(StdErr, (MessageId), ##__VA_ARGS__)
58
59
60BOOL ConPrintfVPaging(PCON_PAGER Pager, BOOL StartPaging, LPTSTR szFormat, va_list arg_ptr);
61BOOL __cdecl ConOutPrintfPaging(BOOL StartPaging, LPTSTR szFormat, ...);
62VOID ConOutResPaging(BOOL StartPaging, UINT resID);
63
68
71
72
73#ifdef INCLUDE_CMD_COLOR
75#endif
76
77
78BOOL ConSetTitle(IN LPCTSTR lpConsoleTitle);
79
80#ifdef INCLUDE_CMD_BEEP
81VOID ConRingBell(HANDLE hOutput);
82#endif
83
84#ifdef INCLUDE_CMD_COLOR
86#endif
87
88// TCHAR cgetchar (VOID);
89// BOOL CheckCtrlBreak (INT);
90
91// #define PROMPT_NO 0
92// #define PROMPT_YES 1
93// #define PROMPT_ALL 2
94// #define PROMPT_BREAK 3
95
96// INT FilePromptYN (UINT);
97// INT FilePromptYNA (UINT);
98
101
102#ifdef UNICODE
103 #define ConGetTextWidth ConGetTextWidthW
104#else
105 #define ConGetTextWidth ConGetTextWidthA
106#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 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