feb898292455491ca26e35a73217bf8b78de020f
[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 WINAPI
30 AllocConsole(VOID);
31
32 BOOL WINAPI
33 AttachConsole(
34 IN DWORD dwProcessId);
35
36 BOOL WINAPI
37 FillConsoleOutputAttribute(
38 IN HANDLE hConsoleOutput,
39 IN WORD wAttribute,
40 IN DWORD nLength,
41 IN COORD dwWriteCoord,
42 OUT LPDWORD lpNumberOfAttrsWritten);
43
44 BOOL WINAPI
45 FillConsoleOutputCharacterA(
46 IN HANDLE hConsoleOutput,
47 IN CHAR cCharacter,
48 IN DWORD nLength,
49 IN COORD dwWriteCoord,
50 OUT LPDWORD lpNumberOfCharsWritten);
51
52 BOOL WINAPI
53 FreeConsole(VOID);
54
55 BOOL WINAPI
56 GetConsoleScreenBufferInfo(
57 IN HANDLE hConsoleOutput,
58 OUT PCONSOLE_SCREEN_BUFFER_INFO lpConsoleScreenBufferInfo);
59
60 HANDLE WINAPI
61 GetStdHandle(
62 IN DWORD nStdHandle);
63
64 BOOL WINAPI
65 ReadConsoleInput(
66 IN HANDLE hConsoleInput,
67 OUT PINPUT_RECORD lpBuffer,
68 IN DWORD nLength,
69 OUT LPDWORD lpNumberOfEventsRead);
70
71 BOOL WINAPI
72 SetConsoleCursorInfo(
73 IN HANDLE hConsoleOutput,
74 IN const CONSOLE_CURSOR_INFO* lpConsoleCursorInfo);
75
76 BOOL WINAPI
77 SetConsoleCursorPosition(
78 IN HANDLE hConsoleOutput,
79 IN COORD dwCursorPosition);
80
81 BOOL WINAPI
82 SetConsoleTextAttribute(
83 IN HANDLE hConsoleOutput,
84 IN WORD wAttributes);
85
86 BOOL WINAPI
87 WriteConsole(
88 IN HANDLE hConsoleOutput,
89 IN const VOID* lpBuffer,
90 IN DWORD nNumberOfCharsToWrite,
91 OUT LPDWORD lpNumberOfCharsWritten,
92 IN LPVOID lpReserved);
93
94 BOOL WINAPI
95 WriteConsoleOutputCharacterA(
96 HANDLE hConsoleOutput,
97 IN LPCSTR lpCharacter,
98 IN DWORD nLength,
99 IN COORD dwWriteCoord,
100 OUT LPDWORD lpNumberOfCharsWritten);
101
102 BOOL WINAPI
103 WriteConsoleOutputCharacterW(
104 HANDLE hConsoleOutput,
105 IN LPCSTR lpCharacter,
106 IN DWORD nLength,
107 IN COORD dwWriteCoord,
108 OUT LPDWORD lpNumberOfCharsWritten);
109
110 BOOL WINAPI
111 SetConsoleOutputCP(
112 IN UINT wCodePageID
113 );
114
115 /* EOF */