ReactOS  0.4.14-dev-55-g2da92ac
console.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 /* Cache codepage for text streams */
5 extern UINT InputCodePage;
6 extern UINT OutputCodePage;
7 
8 /* Global console Screen and Pager */
10 extern CON_PAGER StdOutPager;
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 
61 BOOL ConPrintfVPaging(PCON_PAGER Pager, BOOL StartPaging, LPTSTR szFormat, va_list arg_ptr);
62 BOOL __cdecl ConOutPrintfPaging(BOOL StartPaging, LPTSTR szFormat, ...);
63 VOID ConOutResPaging(BOOL StartPaging, UINT resID);
64 
69 
72 
73 
74 #ifdef INCLUDE_CMD_COLOR
76 #endif
77 
78 
79 BOOL ConSetTitle(IN LPCTSTR lpConsoleTitle);
80 
81 #ifdef INCLUDE_CMD_BEEP
82 VOID ConRingBell(HANDLE hOutput);
83 #endif
84 
85 #ifdef INCLUDE_CMD_COLOR
86 BOOL ConSetScreenColor(HANDLE hOutput, WORD wColor, BOOL bFill);
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);
VOID ConInKey(PINPUT_RECORD)
Definition: console.c:61
#define IN
Definition: typedefs.h:38
UINT InputCodePage
Definition: console.c:25
CON_SCREEN StdOutScreen
Definition: attrib.c:47
const CHAR * LPCTSTR
Definition: xmlstorage.h:193
BOOL ConSetTitle(IN LPCTSTR lpConsoleTitle)
Definition: console.c:280
BOOL __cdecl ConOutPrintfPaging(BOOL StartPaging, LPTSTR szFormat,...)
Definition: console.c:171
#define __cdecl
Definition: accygwin.h:79
signed short * PSHORT
Definition: retypes.h:6
VOID ConInFlush(VOID)
Definition: console.c:56
CHAR * LPTSTR
Definition: xmlstorage.h:192
VOID ConInDummy(VOID)
CON_PAGER StdOutPager
Definition: console.c:30
VOID SetCursorType(BOOL, BOOL)
Definition: console.c:226
BOOL ConPrintfVPaging(PCON_PAGER Pager, BOOL StartPaging, LPTSTR szFormat, va_list arg_ptr)
Definition: console.c:155
VOID ConInDisable(VOID)
Definition: console.c:36
unsigned int BOOL
Definition: ntddk_ex.h:94
short SHORT
Definition: pedump.c:59
VOID SetCursorXY(SHORT, SHORT)
Definition: console.c:191
char * va_list
Definition: acmsvcex.h:78
VOID __cdecl ConFormatMessage(PCON_STREAM Stream, DWORD MessageId,...)
Definition: console.c:133
WORD * PWORD
Definition: pedump.c:67
char TCHAR
Definition: xmlstorage.h:189
VOID ConInString(LPTSTR, DWORD)
Definition: console.c:81
unsigned short WORD
Definition: ntddk_ex.h:93
unsigned long DWORD
Definition: ntddk_ex.h:95
VOID ConRingBell(HANDLE hOutput)
Definition: console.c:287
VOID GetCursorXY(PSHORT, PSHORT)
Definition: console.c:200
SHORT GetCursorY(VOID)
Definition: console.c:218
WORD wColor
SHORT GetCursorX(VOID)
Definition: console.c:210
VOID GetScreenSize(PSHORT, PSHORT)
Definition: console.c:236
VOID ConOutChar(TCHAR)
Definition: console.c:123
UINT OutputCodePage
Definition: console.c:26
unsigned int UINT
Definition: ndis.h:50
VOID ConOutResPaging(BOOL StartPaging, UINT resID)
Definition: console.c:182
VOID ConErrChar(TCHAR)
Definition: console.c:128
VOID ConInEnable(VOID)
Definition: console.c:46
_Inout_opt_ PUNICODE_STRING _Inout_opt_ PUNICODE_STRING Stream
Definition: fltkernel.h:1092
BOOL ConSetScreenColor(HANDLE hOutput, WORD wColor, BOOL bFill)
Definition: console.c:302
BOOL ConGetDefaultAttributes(PWORD pwDefAttr)
Definition: console.c:255