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