File Index Symbol Index

/******************************************************************************** * * * consoleapi3.h -- ApiSet Contract for api-ms-win-core-console-l3 * * * * Copyright (c) Microsoft Corporation. All rights reserved. * * * ********************************************************************************/
#ifdef _MSC_VER
#pragma once
#endif // _MSC_VER
#ifndef _APISETCONSOLEL3_
#define _APISETCONSOLEL3_
#include <apiset.h>
#include <apisetcconv.h>
#include <minwindef.h>
#include <minwinbase.h>
#include <wincontypes.h>
#include <windef.h>
#ifndef NOGDI
#include <wingdi.h> #endif
#ifdef __cplusplus
extern
"C"
{
#endif
#pragma region Application Family or OneCore Family
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM)
BOOL
GetNumberOfConsoleMouseButtons
( );
#if (_WIN32_WINNT >= 0x0500)
COORD
GetConsoleFontSize
( );
BOOL
GetCurrentConsoleFont
( );
#ifndef NOGDI
typedef
struct
_CONSOLE_FONT_INFOEX
{
ULONG
cbSize
;
DWORD
nFont
;
COORD
dwFontSize
;
UINT
FontFamily
;
UINT
FontWeight
; }
CONSOLE_FONT_INFOEX
, *
PCONSOLE_FONT_INFOEX
;
BOOL
GetCurrentConsoleFontEx
( );
BOOL
SetCurrentConsoleFontEx
( );
#endif
//
// Selection flags
//
#define CONSOLE_NO_SELECTION 0x0000
#define CONSOLE_SELECTION_IN_PROGRESS 0x0001 // selection has begun
#define CONSOLE_SELECTION_NOT_EMPTY 0x0002 // non-null select rectangle
#define CONSOLE_MOUSE_SELECTION 0x0004 // selecting with mouse
#define CONSOLE_MOUSE_DOWN 0x0008 // mouse is down
typedef
struct
_CONSOLE_SELECTION_INFO
{
DWORD
dwFlags
;
COORD
dwSelectionAnchor
;
SMALL_RECT
srSelection
; }
CONSOLE_SELECTION_INFO
, *
PCONSOLE_SELECTION_INFO
;
BOOL
GetConsoleSelectionInfo
( );
//
// History flags
//
#define HISTORY_NO_DUP_FLAG 0x1
typedef
struct
_CONSOLE_HISTORY_INFO
{
UINT
cbSize
;
UINT
HistoryBufferSize
;
UINT
NumberOfHistoryBuffers
;
DWORD
dwFlags
; }
CONSOLE_HISTORY_INFO
, *
PCONSOLE_HISTORY_INFO
;
BOOL
GetConsoleHistoryInfo
( );
BOOL
SetConsoleHistoryInfo
( );
#define CONSOLE_FULLSCREEN 1 // fullscreen console
#define CONSOLE_FULLSCREEN_HARDWARE 2 // console owns the hardware
BOOL
GetConsoleDisplayMode
( );
#define CONSOLE_FULLSCREEN_MODE 1
#define CONSOLE_WINDOWED_MODE 2
BOOL
SetConsoleDisplayMode
( );
HWND
GetConsoleWindow
( );
#endif /* _WIN32_WINNT >= 0x0500 */
#if (_WIN32_WINNT >= 0x0501)
BOOL
AddConsoleAliasA
( );
BOOL
AddConsoleAliasW
( );
#ifdef UNICODE
#define AddConsoleAlias AddConsoleAliasW
#else
#define AddConsoleAlias AddConsoleAliasA #endif // !UNICODE
DWORD
GetConsoleAliasA
( );
DWORD
GetConsoleAliasW
( );
#ifdef UNICODE
#define GetConsoleAlias GetConsoleAliasW
#else
#define GetConsoleAlias GetConsoleAliasA #endif // !UNICODE
DWORD
GetConsoleAliasesLengthA
( );
DWORD
GetConsoleAliasesLengthW
( );
#ifdef UNICODE
#define GetConsoleAliasesLength GetConsoleAliasesLengthW
#else
#define GetConsoleAliasesLength GetConsoleAliasesLengthA #endif // !UNICODE
DWORD
GetConsoleAliasExesLengthA
( );
DWORD
GetConsoleAliasExesLengthW
( );
#ifdef UNICODE
#define GetConsoleAliasExesLength GetConsoleAliasExesLengthW
#else
#define GetConsoleAliasExesLength GetConsoleAliasExesLengthA #endif // !UNICODE
DWORD
GetConsoleAliasesA
( );
DWORD
GetConsoleAliasesW
( );
#ifdef UNICODE
#define GetConsoleAliases GetConsoleAliasesW
#else
#define GetConsoleAliases GetConsoleAliasesA #endif // !UNICODE
DWORD
GetConsoleAliasExesA
( );
DWORD
GetConsoleAliasExesW
( );
#ifdef UNICODE
#define GetConsoleAliasExes GetConsoleAliasExesW
#else
#define GetConsoleAliasExes GetConsoleAliasExesA #endif // !UNICODE
#endif /* _WIN32_WINNT >= 0x0501 */
ExpungeConsoleCommandHistoryA
( );
ExpungeConsoleCommandHistoryW
( );
#ifdef UNICODE
#define ExpungeConsoleCommandHistory ExpungeConsoleCommandHistoryW
#else
#define ExpungeConsoleCommandHistory ExpungeConsoleCommandHistoryA #endif // !UNICODE
BOOL
SetConsoleNumberOfCommandsA
( );
BOOL
SetConsoleNumberOfCommandsW
( );
#ifdef UNICODE
#define SetConsoleNumberOfCommands SetConsoleNumberOfCommandsW
#else
#define SetConsoleNumberOfCommands SetConsoleNumberOfCommandsA #endif // !UNICODE
DWORD
GetConsoleCommandHistoryLengthA
( );
DWORD
GetConsoleCommandHistoryLengthW
( );
#ifdef UNICODE
#define GetConsoleCommandHistoryLength GetConsoleCommandHistoryLengthW
#else
#define GetConsoleCommandHistoryLength GetConsoleCommandHistoryLengthA #endif // !UNICODE
DWORD
GetConsoleCommandHistoryA
( );
DWORD
GetConsoleCommandHistoryW
( );
#ifdef UNICODE
#define GetConsoleCommandHistory GetConsoleCommandHistoryW
#else
#define GetConsoleCommandHistory GetConsoleCommandHistoryA #endif // !UNICODE
#if (_WIN32_WINNT >= 0x0501)
DWORD
GetConsoleProcessList
( );
#endif /* _WIN32_WINNT >= 0x0501 */
#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM)
#pragma endregion
#ifdef __cplusplus
}
#endif
#endif // _APISETCONSOLEL3_