[FORMATTING]
[reactos.git] / reactos / base / setup / usetup / native / utils / console.h
1 /*
2 * ReactOS kernel
3 * Copyright (C) 2002 ReactOS Team
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 */
19 /*
20 * COPYRIGHT: See COPYING in the top level directory
21 * PROJECT: ReactOS text-mode setup
22 * FILE: subsys/system/usetup/console.h
23 * PURPOSE: Console support functions
24 * PROGRAMMER: Eric Kohl
25 */
26
27 #pragma once
28
29 BOOL
30 WINAPI
31 AllocConsole(VOID);
32
33 BOOL
34 WINAPI
35 AttachConsole(
36 IN DWORD dwProcessId);
37
38 BOOL
39 WINAPI
40 FillConsoleOutputAttribute(
41 IN HANDLE hConsoleOutput,
42 IN WORD wAttribute,
43 IN DWORD nLength,
44 IN COORD dwWriteCoord,
45 OUT LPDWORD lpNumberOfAttrsWritten);
46
47 BOOL
48 WINAPI
49 FillConsoleOutputCharacterA(
50 IN HANDLE hConsoleOutput,
51 IN CHAR cCharacter,
52 IN DWORD nLength,
53 IN COORD dwWriteCoord,
54 OUT LPDWORD lpNumberOfCharsWritten);
55
56 BOOL
57 WINAPI
58 FreeConsole(VOID);
59
60 BOOL
61 WINAPI
62 GetConsoleScreenBufferInfo(
63 IN HANDLE hConsoleOutput,
64 OUT PCONSOLE_SCREEN_BUFFER_INFO lpConsoleScreenBufferInfo);
65
66 HANDLE
67 WINAPI
68 GetStdHandle(
69 IN DWORD nStdHandle);
70
71 BOOL
72 WINAPI
73 ReadConsoleInput(
74 IN HANDLE hConsoleInput,
75 OUT PINPUT_RECORD lpBuffer,
76 IN DWORD nLength,
77 OUT LPDWORD lpNumberOfEventsRead);
78
79 BOOL
80 WINAPI
81 SetConsoleCursorInfo(
82 IN HANDLE hConsoleOutput,
83 IN const CONSOLE_CURSOR_INFO *lpConsoleCursorInfo);
84
85 BOOL
86 WINAPI
87 SetConsoleCursorPosition(
88 IN HANDLE hConsoleOutput,
89 IN COORD dwCursorPosition);
90
91 BOOL
92 WINAPI
93 SetConsoleTextAttribute(
94 IN HANDLE hConsoleOutput,
95 IN WORD wAttributes);
96
97 BOOL
98 WINAPI
99 WriteConsole(
100 IN HANDLE hConsoleOutput,
101 IN const VOID *lpBuffer,
102 IN DWORD nNumberOfCharsToWrite,
103 OUT LPDWORD lpNumberOfCharsWritten,
104 IN LPVOID lpReserved);
105
106 BOOL
107 WINAPI
108 WriteConsoleOutputCharacterA(
109 HANDLE hConsoleOutput,
110 IN LPCSTR lpCharacter,
111 IN DWORD nLength,
112 IN COORD dwWriteCoord,
113 OUT LPDWORD lpNumberOfCharsWritten);
114
115 BOOL
116 WINAPI
117 WriteConsoleOutputCharacterW(
118 HANDLE hConsoleOutput,
119 IN LPCSTR lpCharacter,
120 IN DWORD nLength,
121 IN COORD dwWriteCoord,
122 OUT LPDWORD lpNumberOfCharsWritten);
123
124 BOOL
125 WINAPI
126 SetConsoleOutputCP(
127 IN UINT wCodePageID
128 );
129
130 /* EOF */