End of file fix for gcc 3.x
[reactos.git] / reactos / subsys / system / usetup / usetup.h
1 /*
2 */
3
4 #ifndef __CONSOLE_H__
5 #define __CONSOLE_H__
6
7
8 #define DPRINT1(args...) do { DbgPrint("(%s:%d) ",__FILE__,__LINE__); DbgPrint(args); } while(0);
9 #define CHECKPOINT1 do { DbgPrint("%s:%d\n",__FILE__,__LINE__); } while(0);
10
11 #define DPRINT(args...)
12 #define CHECKPOINT
13
14
15 extern HANDLE ProcessHeap;
16
17
18 /* console.c */
19
20 NTSTATUS
21 AllocConsole(VOID);
22
23 VOID
24 FreeConsole(VOID);
25
26
27 NTSTATUS
28 ReadConsoleOutputCharacters(LPSTR lpCharacter,
29 ULONG nLength,
30 COORD dwReadCoord,
31 PULONG lpNumberOfCharsRead);
32
33 NTSTATUS
34 ReadConsoleOutputAttributes(PUSHORT lpAttribute,
35 ULONG nLength,
36 COORD dwReadCoord,
37 PULONG lpNumberOfAttrsRead);
38
39 NTSTATUS
40 WriteConsoleOutputCharacters(LPCSTR lpCharacter,
41 ULONG nLength,
42 COORD dwWriteCoord);
43
44 NTSTATUS
45 WriteConsoleOutputAttributes(CONST USHORT *lpAttribute,
46 ULONG nLength,
47 COORD dwWriteCoord,
48 PULONG lpNumberOfAttrsWritten);
49
50 #if 0
51 NTSTATUS
52 SetConsoleMode(HANDLE hConsoleHandle,
53 ULONG dwMode);
54 #endif
55
56 VOID
57 ConInKey(PINPUT_RECORD Buffer);
58
59 VOID
60 ConOutChar(CHAR c);
61
62 VOID
63 ConOutPuts(LPSTR szText);
64
65 VOID
66 ConOutPrintf(LPSTR szFormat, ...);
67
68 SHORT
69 GetCursorX(VOID);
70
71 SHORT
72 GetCursorY(VOID);
73
74 VOID
75 GetScreenSize(SHORT *maxx,
76 SHORT *maxy);
77
78
79 VOID
80 SetCursorType(BOOL bInsert,
81 BOOL bVisible);
82
83 VOID
84 SetCursorXY(SHORT x,
85 SHORT y);
86
87
88 VOID
89 ClearScreen(VOID);
90
91 VOID
92 SetStatusText(PCHAR Text);
93
94 VOID
95 SetTextXY(SHORT x, SHORT y, PCHAR Text);
96
97 VOID
98 PrintTextXY(SHORT x, SHORT y, char* fmt,...);
99
100 #endif /* __CONSOLE_H__*/
101
102 /* EOF */