File Index Symbol Index

/******************************************************************************** * * * consoleapi2.h -- ApiSet Contract for api-ms-win-core-console-l2 * * * * Copyright (c) Microsoft Corporation. All rights reserved. * * * ********************************************************************************/
#ifdef _MSC_VER
#pragma once
#endif // _MSC_VER
#ifndef _APISETCONSOLEL2_
#define _APISETCONSOLEL2_
#include <apiset.h>
#include <apisetcconv.h>
#include <minwindef.h>
#include <minwinbase.h>
#include <wincontypes.h>
#include <windef.h>
#ifdef __cplusplus
extern
"C"
{
#endif
#pragma region Application Family or OneCore Family
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM)
//
// Attributes flags:
//
#define FOREGROUND_BLUE 0x0001 // text color contains blue.
#define FOREGROUND_GREEN 0x0002 // text color contains green.
#define FOREGROUND_RED 0x0004 // text color contains red.
#define FOREGROUND_INTENSITY 0x0008 // text color is intensified.
#define BACKGROUND_BLUE 0x0010 // background color contains blue.
#define BACKGROUND_GREEN 0x0020 // background color contains green.
#define BACKGROUND_RED 0x0040 // background color contains red.
#define BACKGROUND_INTENSITY 0x0080 // background color is intensified.
#define COMMON_LVB_LEADING_BYTE 0x0100 // Leading Byte of DBCS
#define COMMON_LVB_TRAILING_BYTE 0x0200 // Trailing Byte of DBCS
#define COMMON_LVB_GRID_HORIZONTAL 0x0400 // DBCS: Grid attribute: top horizontal.
#define COMMON_LVB_GRID_LVERTICAL 0x0800 // DBCS: Grid attribute: left vertical.
#define COMMON_LVB_GRID_RVERTICAL 0x1000 // DBCS: Grid attribute: right vertical.
#define COMMON_LVB_REVERSE_VIDEO 0x4000 // DBCS: Reverse fore/back ground attribute.
#define COMMON_LVB_UNDERSCORE 0x8000 // DBCS: Underscore.
#define COMMON_LVB_SBCSDBCS 0x0300 // SBCS or DBCS flag.
BOOL
FillConsoleOutputCharacterA
( );
BOOL
FillConsoleOutputCharacterW
( );
#ifdef UNICODE
#define FillConsoleOutputCharacter FillConsoleOutputCharacterW
#else
#define FillConsoleOutputCharacter FillConsoleOutputCharacterA #endif // !UNICODE
BOOL
FillConsoleOutputAttribute
( );
BOOL
GenerateConsoleCtrlEvent
( );
HANDLE
CreateConsoleScreenBuffer
( );
BOOL
SetConsoleActiveScreenBuffer
( );
BOOL
FlushConsoleInputBuffer
( );
BOOL
SetConsoleCP
( );
BOOL
SetConsoleOutputCP
( );
typedef
struct
_CONSOLE_CURSOR_INFO
{
DWORD
dwSize
;
BOOL
bVisible
; }
CONSOLE_CURSOR_INFO
, *
PCONSOLE_CURSOR_INFO
;
BOOL
GetConsoleCursorInfo
( );
BOOL
SetConsoleCursorInfo
( );
typedef
struct
_CONSOLE_SCREEN_BUFFER_INFO
{
COORD
dwSize
;
COORD
dwCursorPosition
;
WORD
wAttributes
;
SMALL_RECT
srWindow
;
COORD
dwMaximumWindowSize
; }
CONSOLE_SCREEN_BUFFER_INFO
, *
PCONSOLE_SCREEN_BUFFER_INFO
;
BOOL
GetConsoleScreenBufferInfo
( );
typedef
struct
_CONSOLE_SCREEN_BUFFER_INFOEX
{
ULONG
cbSize
;
COORD
dwSize
;
COORD
dwCursorPosition
;
WORD
wAttributes
;
SMALL_RECT
srWindow
;
COORD
dwMaximumWindowSize
;
WORD
wPopupAttributes
;
BOOL
bFullscreenSupported
;
COLORREF
ColorTable
[
16
]; }
CONSOLE_SCREEN_BUFFER_INFOEX
, *
PCONSOLE_SCREEN_BUFFER_INFOEX
;
BOOL
GetConsoleScreenBufferInfoEx
( );
BOOL
SetConsoleScreenBufferInfoEx
( );
BOOL
SetConsoleScreenBufferSize
( );
BOOL
SetConsoleCursorPosition
( );
COORD
GetLargestConsoleWindowSize
( );
BOOL
SetConsoleTextAttribute
( );
BOOL
SetConsoleWindowInfo
( );
BOOL
WriteConsoleOutputCharacterA
( );
BOOL
WriteConsoleOutputCharacterW
( );
#ifdef UNICODE
#define WriteConsoleOutputCharacter WriteConsoleOutputCharacterW
#else
#define WriteConsoleOutputCharacter WriteConsoleOutputCharacterA #endif // !UNICODE
BOOL
WriteConsoleOutputAttribute
( );
BOOL
ReadConsoleOutputCharacterA
( );
BOOL
ReadConsoleOutputCharacterW
( );
#ifdef UNICODE
#define ReadConsoleOutputCharacter ReadConsoleOutputCharacterW
#else
#define ReadConsoleOutputCharacter ReadConsoleOutputCharacterA #endif // !UNICODE
BOOL
ReadConsoleOutputAttribute
( );
BOOL
WriteConsoleInputA
( );
BOOL
WriteConsoleInputW
( );
#ifdef UNICODE
#define WriteConsoleInput WriteConsoleInputW
#else
#define WriteConsoleInput WriteConsoleInputA #endif // !UNICODE
BOOL
ScrollConsoleScreenBufferA
( );
BOOL
ScrollConsoleScreenBufferW
( );
#ifdef UNICODE
#define ScrollConsoleScreenBuffer ScrollConsoleScreenBufferW
#else
#define ScrollConsoleScreenBuffer ScrollConsoleScreenBufferA #endif // !UNICODE
BOOL
WriteConsoleOutputA
( );
BOOL
WriteConsoleOutputW
( );
#ifdef UNICODE
#define WriteConsoleOutput WriteConsoleOutputW
#else
#define WriteConsoleOutput WriteConsoleOutputA #endif // !UNICODE
BOOL
ReadConsoleOutputA
( );
BOOL
ReadConsoleOutputW
( );
#ifdef UNICODE
#define ReadConsoleOutput ReadConsoleOutputW
#else
#define ReadConsoleOutput ReadConsoleOutputA #endif // !UNICODE
DWORD
GetConsoleTitleA
( );
DWORD
GetConsoleTitleW
( );
#ifdef UNICODE
#define GetConsoleTitle GetConsoleTitleW
#else
#define GetConsoleTitle GetConsoleTitleA #endif // !UNICODE
#if (_WIN32_WINNT >= 0x0600)
DWORD
GetConsoleOriginalTitleA
( );
DWORD
GetConsoleOriginalTitleW
( );
#ifdef UNICODE
#define GetConsoleOriginalTitle GetConsoleOriginalTitleW
#else
#define GetConsoleOriginalTitle GetConsoleOriginalTitleA #endif // !UNICODE
#endif /* _WIN32_WINNT >= 0x0600 */
BOOL
SetConsoleTitleA
( );
BOOL
SetConsoleTitleW
( );
#ifdef UNICODE
#define SetConsoleTitle SetConsoleTitleW
#else
#define SetConsoleTitle SetConsoleTitleA #endif // !UNICODE
#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM)
#pragma endregion
#ifdef __cplusplus
}
#endif
#endif // _APISETCONSOLEL2_