2002-10-29 18:40:02 +00:00
|
|
|
/*
|
|
|
|
* ReactOS kernel
|
|
|
|
* Copyright (C) 2002 ReactOS Team
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
2009-10-27 10:34:16 +00:00
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2002-10-29 18:40:02 +00:00
|
|
|
*/
|
|
|
|
/*
|
|
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
|
|
* PROJECT: ReactOS text-mode setup
|
2018-05-15 21:35:17 +00:00
|
|
|
* FILE: base/setup/usetup/console.h
|
2002-10-29 18:40:02 +00:00
|
|
|
* PURPOSE: Console support functions
|
2018-05-27 19:33:07 +00:00
|
|
|
* PROGRAMMER:
|
2002-10-29 18:40:02 +00:00
|
|
|
*/
|
|
|
|
|
2010-02-26 11:43:19 +00:00
|
|
|
#pragma once
|
2006-08-31 06:14:25 +00:00
|
|
|
|
2014-05-15 16:32:30 +00:00
|
|
|
BOOL
|
|
|
|
WINAPI
|
2006-11-10 21:00:24 +00:00
|
|
|
AllocConsole(VOID);
|
2006-08-31 06:14:25 +00:00
|
|
|
|
2014-05-15 16:32:30 +00:00
|
|
|
BOOL
|
|
|
|
WINAPI
|
2006-11-10 21:00:24 +00:00
|
|
|
AttachConsole(
|
2014-05-15 16:32:30 +00:00
|
|
|
IN DWORD dwProcessId);
|
2006-09-01 09:53:33 +00:00
|
|
|
|
2014-05-15 16:32:30 +00:00
|
|
|
BOOL
|
|
|
|
WINAPI
|
2006-11-10 21:00:24 +00:00
|
|
|
FillConsoleOutputAttribute(
|
2014-05-15 16:32:30 +00:00
|
|
|
IN HANDLE hConsoleOutput,
|
|
|
|
IN WORD wAttribute,
|
|
|
|
IN DWORD nLength,
|
|
|
|
IN COORD dwWriteCoord,
|
|
|
|
OUT LPDWORD lpNumberOfAttrsWritten);
|
|
|
|
|
|
|
|
BOOL
|
|
|
|
WINAPI
|
2006-11-10 21:00:24 +00:00
|
|
|
FillConsoleOutputCharacterA(
|
2014-05-15 16:32:30 +00:00
|
|
|
IN HANDLE hConsoleOutput,
|
|
|
|
IN CHAR cCharacter,
|
|
|
|
IN DWORD nLength,
|
|
|
|
IN COORD dwWriteCoord,
|
|
|
|
OUT LPDWORD lpNumberOfCharsWritten);
|
|
|
|
|
|
|
|
BOOL
|
|
|
|
WINAPI
|
2006-11-10 21:00:24 +00:00
|
|
|
FreeConsole(VOID);
|
2002-10-29 18:40:02 +00:00
|
|
|
|
2014-05-15 16:32:30 +00:00
|
|
|
BOOL
|
|
|
|
WINAPI
|
2006-11-10 21:00:24 +00:00
|
|
|
GetConsoleScreenBufferInfo(
|
2014-05-15 16:32:30 +00:00
|
|
|
IN HANDLE hConsoleOutput,
|
|
|
|
OUT PCONSOLE_SCREEN_BUFFER_INFO lpConsoleScreenBufferInfo);
|
2002-10-29 18:40:02 +00:00
|
|
|
|
2014-05-15 16:32:30 +00:00
|
|
|
HANDLE
|
|
|
|
WINAPI
|
2006-11-10 21:00:24 +00:00
|
|
|
GetStdHandle(
|
2014-05-15 16:32:30 +00:00
|
|
|
IN DWORD nStdHandle);
|
2006-08-31 12:35:39 +00:00
|
|
|
|
2014-05-15 16:32:30 +00:00
|
|
|
BOOL
|
|
|
|
WINAPI
|
2006-11-10 21:00:24 +00:00
|
|
|
ReadConsoleInput(
|
2014-05-15 16:32:30 +00:00
|
|
|
IN HANDLE hConsoleInput,
|
|
|
|
OUT PINPUT_RECORD lpBuffer,
|
|
|
|
IN DWORD nLength,
|
|
|
|
OUT LPDWORD lpNumberOfEventsRead);
|
2006-08-31 06:14:25 +00:00
|
|
|
|
2014-05-15 16:32:30 +00:00
|
|
|
BOOL
|
|
|
|
WINAPI
|
2006-11-10 21:00:24 +00:00
|
|
|
SetConsoleCursorInfo(
|
2014-05-15 16:32:30 +00:00
|
|
|
IN HANDLE hConsoleOutput,
|
|
|
|
IN const CONSOLE_CURSOR_INFO *lpConsoleCursorInfo);
|
2002-10-29 18:40:02 +00:00
|
|
|
|
2014-05-15 16:32:30 +00:00
|
|
|
BOOL
|
|
|
|
WINAPI
|
2006-11-10 21:00:24 +00:00
|
|
|
SetConsoleCursorPosition(
|
2014-05-15 16:32:30 +00:00
|
|
|
IN HANDLE hConsoleOutput,
|
|
|
|
IN COORD dwCursorPosition);
|
2002-10-29 18:40:02 +00:00
|
|
|
|
2014-05-15 16:32:30 +00:00
|
|
|
BOOL
|
|
|
|
WINAPI
|
2006-11-10 21:00:24 +00:00
|
|
|
SetConsoleTextAttribute(
|
2014-05-15 16:32:30 +00:00
|
|
|
IN HANDLE hConsoleOutput,
|
|
|
|
IN WORD wAttributes);
|
2002-10-29 18:40:02 +00:00
|
|
|
|
2014-05-15 16:32:30 +00:00
|
|
|
BOOL
|
|
|
|
WINAPI
|
2006-11-10 21:00:24 +00:00
|
|
|
WriteConsole(
|
2014-05-15 16:32:30 +00:00
|
|
|
IN HANDLE hConsoleOutput,
|
|
|
|
IN const VOID *lpBuffer,
|
|
|
|
IN DWORD nNumberOfCharsToWrite,
|
|
|
|
OUT LPDWORD lpNumberOfCharsWritten,
|
|
|
|
IN LPVOID lpReserved);
|
|
|
|
|
|
|
|
BOOL
|
|
|
|
WINAPI
|
2006-11-10 21:00:24 +00:00
|
|
|
WriteConsoleOutputCharacterA(
|
2014-05-15 16:32:30 +00:00
|
|
|
HANDLE hConsoleOutput,
|
|
|
|
IN LPCSTR lpCharacter,
|
|
|
|
IN DWORD nLength,
|
|
|
|
IN COORD dwWriteCoord,
|
|
|
|
OUT LPDWORD lpNumberOfCharsWritten);
|
|
|
|
|
|
|
|
BOOL
|
|
|
|
WINAPI
|
2008-01-19 14:51:12 +00:00
|
|
|
WriteConsoleOutputCharacterW(
|
2014-05-15 16:32:30 +00:00
|
|
|
HANDLE hConsoleOutput,
|
|
|
|
IN LPCSTR lpCharacter,
|
|
|
|
IN DWORD nLength,
|
|
|
|
IN COORD dwWriteCoord,
|
|
|
|
OUT LPDWORD lpNumberOfCharsWritten);
|
|
|
|
|
|
|
|
BOOL
|
|
|
|
WINAPI
|
2008-01-19 14:51:12 +00:00
|
|
|
SetConsoleOutputCP(
|
2018-05-15 21:35:17 +00:00
|
|
|
IN UINT wCodePageID);
|
2008-01-19 14:51:12 +00:00
|
|
|
|
2002-10-29 18:40:02 +00:00
|
|
|
/* EOF */
|