ReactOS  0.4.15-dev-5615-gc3644fd
console.h
Go to the documentation of this file.
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: base/setup/usetup/console.h
23  * PURPOSE: Console support functions
24  * PROGRAMMER:
25  */
26 
27 #pragma once
28 
29 BOOL
30 WINAPI
32 
33 BOOL
34 WINAPI
36  IN DWORD dwProcessId);
37 
38 BOOL
39 WINAPI
41  IN HANDLE hConsoleOutput,
42  IN WORD wAttribute,
44  IN COORD dwWriteCoord,
45  OUT LPDWORD lpNumberOfAttrsWritten);
46 
47 BOOL
48 WINAPI
50  IN HANDLE hConsoleOutput,
51  IN CHAR cCharacter,
53  IN COORD dwWriteCoord,
54  OUT LPDWORD lpNumberOfCharsWritten);
55 
56 BOOL
57 WINAPI
59 
60 BOOL
61 WINAPI
63  IN HANDLE hConsoleOutput,
64  OUT PCONSOLE_SCREEN_BUFFER_INFO lpConsoleScreenBufferInfo);
65 
66 HANDLE
67 WINAPI
69  IN DWORD nStdHandle);
70 
71 BOOL
72 WINAPI
74  IN HANDLE hConsoleInput,
78 
79 BOOL
80 WINAPI
82  IN HANDLE hConsoleOutput,
83  IN const CONSOLE_CURSOR_INFO *lpConsoleCursorInfo);
84 
85 BOOL
86 WINAPI
88  IN HANDLE hConsoleOutput,
89  IN COORD dwCursorPosition);
90 
91 BOOL
92 WINAPI
94  IN HANDLE hConsoleOutput,
95  IN WORD wAttributes);
96 
97 BOOL
98 WINAPI
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
109  HANDLE hConsoleOutput,
110  IN LPCSTR lpCharacter,
111  IN DWORD nLength,
112  IN COORD dwWriteCoord,
113  OUT LPDWORD lpNumberOfCharsWritten);
114 
115 BOOL
116 WINAPI
118  HANDLE hConsoleOutput,
119  IN LPCSTR lpCharacter,
120  IN DWORD nLength,
121  IN COORD dwWriteCoord,
122  OUT LPDWORD lpNumberOfCharsWritten);
123 
124 BOOL
125 WINAPI
127  IN UINT wCodePageID);
128 
129 /* EOF */
#define IN
Definition: typedefs.h:39
_In_ DWORD _Out_ LPDWORD lpNumberOfEventsRead
Definition: wincon.h:473
BOOL WINAPI SetConsoleCursorInfo(IN HANDLE hConsoleOutput, IN const CONSOLE_CURSOR_INFO *lpConsoleCursorInfo)
Definition: console.c:618
BOOL WINAPI FillConsoleOutputAttribute(IN HANDLE hConsoleOutput, IN WORD wAttribute, IN DWORD nLength, IN COORD dwWriteCoord, OUT LPDWORD lpNumberOfAttrsWritten)
Definition: console.c:525
BOOL WINAPI WriteConsole(IN HANDLE hConsoleOutput, IN const VOID *lpBuffer, IN DWORD nNumberOfCharsToWrite, OUT LPDWORD lpNumberOfCharsWritten, IN LPVOID lpReserved)
Definition: console.c:174
BOOL WINAPI FillConsoleOutputCharacterA(IN HANDLE hConsoleOutput, IN CHAR cCharacter, IN DWORD nLength, IN COORD dwWriteCoord, OUT LPDWORD lpNumberOfCharsWritten)
Definition: console.c:560
char CHAR
Definition: xmlstorage.h:175
_In_ DWORD nLength
Definition: wincon.h:473
HANDLE WINAPI GetStdHandle(IN DWORD nStdHandle)
Definition: console.c:203
BOOL WINAPI AttachConsole(IN DWORD dwProcessId)
Definition: console.c:147
BOOL WINAPI SetConsoleTextAttribute(IN HANDLE hConsoleOutput, IN WORD wAttributes)
Definition: console.c:672
unsigned int BOOL
Definition: ntddk_ex.h:94
BOOL WINAPI SetConsoleOutputCP(IN UINT wCodePageID)
Definition: console.c:695
static TAGREF LPCWSTR LPDWORD LPVOID lpBuffer
Definition: db.cpp:175
BOOL WINAPI WriteConsoleOutputCharacterW(HANDLE hConsoleOutput, IN LPCSTR lpCharacter, IN DWORD nLength, IN COORD dwWriteCoord, OUT LPDWORD lpNumberOfCharsWritten)
const char * LPCSTR
Definition: xmlstorage.h:183
BOOL WINAPI GetConsoleScreenBufferInfo(IN HANDLE hConsoleOutput, OUT PCONSOLE_SCREEN_BUFFER_INFO lpConsoleScreenBufferInfo)
Definition: console.c:595
BOOL WINAPI SetConsoleCursorPosition(IN HANDLE hConsoleOutput, IN COORD dwCursorPosition)
Definition: console.c:641
#define WINAPI
Definition: msvc.h:6
unsigned short WORD
Definition: ntddk_ex.h:93
unsigned long DWORD
Definition: ntddk_ex.h:95
BOOL WINAPI AllocConsole(VOID)
Definition: console.c:74
BOOL WINAPI WriteConsoleOutputCharacterA(HANDLE hConsoleOutput, IN LPCSTR lpCharacter, IN DWORD nLength, IN COORD dwWriteCoord, OUT LPDWORD lpNumberOfCharsWritten)
Definition: console.c:407
Definition: bl.h:1337
unsigned int UINT
Definition: ndis.h:50
#define OUT
Definition: typedefs.h:40
uint32_t * LPDWORD
Definition: typedefs.h:59
BOOL WINAPI FreeConsole(VOID)
Definition: console.c:156
BOOL WINAPI ReadConsoleInput(IN HANDLE hConsoleInput, OUT PINPUT_RECORD lpBuffer, IN DWORD nLength, OUT LPDWORD lpNumberOfEventsRead)
Definition: console.c:341