ReactOS 0.4.15-dev-8390-g075894b
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
29BOOL
32
33BOOL
36 IN DWORD dwProcessId);
37
38BOOL
41 IN HANDLE hConsoleOutput,
42 IN WORD wAttribute,
44 IN COORD dwWriteCoord,
45 OUT LPDWORD lpNumberOfAttrsWritten);
46
47BOOL
50 IN HANDLE hConsoleOutput,
51 IN CHAR cCharacter,
53 IN COORD dwWriteCoord,
54 OUT LPDWORD lpNumberOfCharsWritten);
55
56BOOL
59
60BOOL
63 IN HANDLE hConsoleOutput,
64 OUT PCONSOLE_SCREEN_BUFFER_INFO lpConsoleScreenBufferInfo);
65
69 IN DWORD nStdHandle);
70
71BOOL
74 IN HANDLE hConsoleInput,
78
79BOOL
82 IN HANDLE hConsoleOutput,
83 IN const CONSOLE_CURSOR_INFO *lpConsoleCursorInfo);
84
85BOOL
88 IN HANDLE hConsoleOutput,
89 IN COORD dwCursorPosition);
90
91BOOL
94 IN HANDLE hConsoleOutput,
95 IN WORD wAttributes);
96
97BOOL
100 IN HANDLE hConsoleOutput,
101 IN const VOID *lpBuffer,
102 IN DWORD nNumberOfCharsToWrite,
103 OUT LPDWORD lpNumberOfCharsWritten,
104 IN LPVOID lpReserved);
105
106BOOL
107WINAPI
109 HANDLE hConsoleOutput,
110 IN LPCSTR lpCharacter,
112 IN COORD dwWriteCoord,
113 OUT LPDWORD lpNumberOfCharsWritten);
114
115BOOL
116WINAPI
118 HANDLE hConsoleOutput,
119 IN LPCSTR lpCharacter,
121 IN COORD dwWriteCoord,
122 OUT LPDWORD lpNumberOfCharsWritten);
123
124BOOL
125WINAPI
127 IN UINT wCodePageID);
128
129/* EOF */
BOOL WINAPI WriteConsoleOutputCharacterA(HANDLE hConsoleOutput, IN LPCSTR lpCharacter, IN DWORD nLength, IN COORD dwWriteCoord, OUT LPDWORD lpNumberOfCharsWritten)
Definition: console.c:407
BOOL WINAPI FillConsoleOutputCharacterA(IN HANDLE hConsoleOutput, IN CHAR cCharacter, IN DWORD nLength, IN COORD dwWriteCoord, OUT LPDWORD lpNumberOfCharsWritten)
Definition: console.c:560
BOOL WINAPI SetConsoleOutputCP(IN UINT wCodePageID)
Definition: console.c:695
BOOL WINAPI SetConsoleCursorPosition(IN HANDLE hConsoleOutput, IN COORD dwCursorPosition)
Definition: console.c:641
HANDLE WINAPI GetStdHandle(IN DWORD nStdHandle)
Definition: console.c:203
BOOL WINAPI WriteConsoleOutputCharacterW(HANDLE hConsoleOutput, IN LPCSTR lpCharacter, IN DWORD nLength, IN COORD dwWriteCoord, OUT LPDWORD lpNumberOfCharsWritten)
BOOL WINAPI AllocConsole(VOID)
Definition: console.c:74
BOOL WINAPI FreeConsole(VOID)
Definition: console.c:156
BOOL WINAPI SetConsoleTextAttribute(IN HANDLE hConsoleOutput, IN WORD wAttributes)
Definition: console.c:672
BOOL WINAPI SetConsoleCursorInfo(IN HANDLE hConsoleOutput, IN const CONSOLE_CURSOR_INFO *lpConsoleCursorInfo)
Definition: console.c:618
BOOL WINAPI AttachConsole(IN DWORD dwProcessId)
Definition: console.c:147
BOOL WINAPI FillConsoleOutputAttribute(IN HANDLE hConsoleOutput, IN WORD wAttribute, IN DWORD nLength, IN COORD dwWriteCoord, OUT LPDWORD lpNumberOfAttrsWritten)
Definition: console.c:525
BOOL WINAPI GetConsoleScreenBufferInfo(IN HANDLE hConsoleOutput, OUT PCONSOLE_SCREEN_BUFFER_INFO lpConsoleScreenBufferInfo)
Definition: console.c:595
static TAGREF LPCWSTR LPDWORD LPVOID lpBuffer
Definition: db.cpp:175
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
unsigned short WORD
Definition: ntddk_ex.h:93
unsigned int UINT
Definition: ndis.h:50
Definition: bl.h:1338
uint32_t * LPDWORD
Definition: typedefs.h:59
#define IN
Definition: typedefs.h:39
#define OUT
Definition: typedefs.h:40
_In_ DWORD _Out_ LPDWORD lpNumberOfEventsRead
Definition: wincon.h:474
#define ReadConsoleInput
Definition: wincon.h:778
_In_ DWORD nLength
Definition: wincon.h:473
#define WriteConsole
Definition: wincon.h:784
#define WINAPI
Definition: msvc.h:6
const char * LPCSTR
Definition: xmlstorage.h:183
char CHAR
Definition: xmlstorage.h:175