ReactOS  0.4.15-dev-1386-g5cb9f87
wincon.h File Reference
#include "wingdi.h"
Include dependency graph for wincon.h:

Go to the source code of this file.

Classes

struct  _CONSOLE_READCONSOLE_CONTROL
 
struct  _CHAR_INFO
 
struct  _SMALL_RECT
 
struct  _CONSOLE_CURSOR_INFO
 
struct  _COORD
 
struct  _CONSOLE_SELECTION_INFO
 
struct  _CONSOLE_FONT_INFO
 
struct  _CONSOLE_SCREEN_BUFFER_INFO
 
struct  _CONSOLE_GRAPHICS_BUFFER_INFO
 
struct  _KEY_EVENT_RECORD
 
struct  _MOUSE_EVENT_RECORD
 
struct  _WINDOW_BUFFER_SIZE_RECORD
 
struct  _MENU_EVENT_RECORD
 
struct  _FOCUS_EVENT_RECORD
 
struct  _INPUT_RECORD
 
struct  _CONSOLE_HISTORY_INFO
 
struct  _CONSOLE_SCREEN_BUFFER_INFOEX
 
struct  _CONSOLE_FONT_INFOEX
 

Macros

#define ATTACH_PARENT_PROCESS   ((DWORD)-1)
 
#define CONSOLE_WINDOWED   0
 
#define CONSOLE_FULLSCREEN   1
 
#define CONSOLE_FULLSCREEN_HARDWARE   2
 
#define CONSOLE_FULLSCREEN_MODE   1
 
#define CONSOLE_WINDOWED_MODE   2
 
#define FOREGROUND_BLUE   0x0001
 
#define FOREGROUND_GREEN   0x0002
 
#define FOREGROUND_RED   0x0004
 
#define FOREGROUND_INTENSITY   0x0008
 
#define BACKGROUND_BLUE   0x0010
 
#define BACKGROUND_GREEN   0x0020
 
#define BACKGROUND_RED   0x0040
 
#define BACKGROUND_INTENSITY   0x0080
 
#define COMMON_LVB_LEADING_BYTE   0x0100 /* DBCS Leading Byte */
 
#define COMMON_LVB_TRAILING_BYTE   0x0200 /* DBCS Trailing Byte */
 
#define COMMON_LVB_GRID_HORIZONTAL   0x0400 /* Grid attribute: Top Horizontal */
 
#define COMMON_LVB_GRID_LVERTICAL   0x0800 /* Grid attribute: Left Vertical */
 
#define COMMON_LVB_GRID_RVERTICAL   0x1000 /* Grid attribute: Right Vertical */
 
#define COMMON_LVB_REVERSE_VIDEO   0x4000 /* Reverse fore/back ground attribute */
 
#define COMMON_LVB_UNDERSCORE   0x8000 /* Underscore */
 
#define COMMON_LVB_SBCSDBCS   (COMMON_LVB_LEADING_BYTE | COMMON_LVB_TRAILING_BYTE) /* == 0x0300 */
 
#define CONSOLE_TEXTMODE_BUFFER   1
 
#define CONSOLE_GRAPHICS_BUFFER   2 /* Undocumented, see http://blog.airesoft.co.uk/2012/10/things-ms-can-do-that-they-dont-tell-you-about-console-graphics/ */
 
#define CTRL_C_EVENT   0
 
#define CTRL_BREAK_EVENT   1
 
#define CTRL_CLOSE_EVENT   2
 
#define CTRL_LAST_CLOSE_EVENT   3 /* Undocumented */
 
#define CTRL_LOGOFF_EVENT   5
 
#define CTRL_SHUTDOWN_EVENT   6
 
#define ENABLE_PROCESSED_INPUT   0x0001
 
#define ENABLE_LINE_INPUT   0x0002
 
#define ENABLE_ECHO_INPUT   0x0004
 
#define ENABLE_WINDOW_INPUT   0x0008
 
#define ENABLE_MOUSE_INPUT   0x0010
 
#define ENABLE_INSERT_MODE   0x0020
 
#define ENABLE_QUICK_EDIT_MODE   0x0040
 
#define ENABLE_EXTENDED_FLAGS   0x0080
 
#define ENABLE_AUTO_POSITION   0x0100
 
#define ENABLE_VIRTUAL_TERMINAL_INPUT   0x0200
 
#define ENABLE_PROCESSED_OUTPUT   0x0001
 
#define ENABLE_WRAP_AT_EOL_OUTPUT   0x0002
 
#define CONSOLE_NO_SELECTION   0x0000
 
#define CONSOLE_SELECTION_IN_PROGRESS   0x0001
 
#define CONSOLE_SELECTION_NOT_EMPTY   0x0002
 
#define CONSOLE_MOUSE_SELECTION   0x0004
 
#define CONSOLE_MOUSE_DOWN   0x0008
 
#define HISTORY_NO_DUP_FLAG   0x0001
 
#define CONSOLE_OVERSTRIKE   0x0001
 
#define CONSOLE_READ_KEEPEVENT   0x0001
 
#define CONSOLE_READ_CONTINUE   0x0002
 
#define KEY_EVENT   0x0001
 
#define MOUSE_EVENT   0x0002
 
#define WINDOW_BUFFER_SIZE_EVENT   0x0004
 
#define MENU_EVENT   0x0008
 
#define FOCUS_EVENT   0x0010
 
#define RIGHT_ALT_PRESSED   0x0001
 
#define LEFT_ALT_PRESSED   0x0002
 
#define RIGHT_CTRL_PRESSED   0x0004
 
#define LEFT_CTRL_PRESSED   0x0008
 
#define SHIFT_PRESSED   0x0010
 
#define NUMLOCK_ON   0x0020
 
#define SCROLLLOCK_ON   0x0040
 
#define CAPSLOCK_ON   0x0080
 
#define ENHANCED_KEY   0x0100
 
#define NLS_DBCSCHAR   0x00010000 /* SBCS/DBCS mode */
 
#define NLS_ALPHANUMERIC   0x00000000 /* Alphanumeric mode */
 
#define NLS_KATAKANA   0x00020000 /* Katakana mode */
 
#define NLS_HIRAGANA   0x00040000 /* Hiragana mode */
 
#define NLS_ROMAN   0x00400000 /* Roman/Noroman mode */
 
#define NLS_IME_CONVERSION   0x00800000 /* IME conversion */
 
#define NLS_IME_DISABLE   0x20000000 /* IME enable/disable */
 
#define FROM_LEFT_1ST_BUTTON_PRESSED   0x0001
 
#define RIGHTMOST_BUTTON_PRESSED   0x0002
 
#define FROM_LEFT_2ND_BUTTON_PRESSED   0x0004
 
#define FROM_LEFT_3RD_BUTTON_PRESSED   0x0008
 
#define FROM_LEFT_4TH_BUTTON_PRESSED   0x0010
 
#define MOUSE_MOVED   0x0001
 
#define DOUBLE_CLICK   0x0002
 
#define MOUSE_WHEELED   0x0004
 
#define MOUSE_HWHEELED   0x0008
 
#define AddConsoleAlias   AddConsoleAliasA
 
#define GetConsoleAlias   GetConsoleAliasA
 
#define GetConsoleAliases   GetConsoleAliasesA
 
#define GetConsoleAliasesLength   GetConsoleAliasesLengthA
 
#define GetConsoleAliasExes   GetConsoleAliasExesA
 
#define GetConsoleAliasExesLength   GetConsoleAliasExesLengthA
 
#define GetConsoleTitle   GetConsoleTitleA
 
#define PeekConsoleInput   PeekConsoleInputA
 
#define ReadConsole   ReadConsoleA
 
#define ReadConsoleInput   ReadConsoleInputA
 
#define ReadConsoleInputEx   ReadConsoleInputExA
 
#define ReadConsoleOutput   ReadConsoleOutputA
 
#define ReadConsoleOutputCharacter   ReadConsoleOutputCharacterA
 
#define ScrollConsoleScreenBuffer   ScrollConsoleScreenBufferA
 
#define SetConsoleTitle   SetConsoleTitleA
 
#define WriteConsole   WriteConsoleA
 
#define WriteConsoleInput   WriteConsoleInputA
 
#define WriteConsoleInputVDM   WriteConsoleInputVDMA
 
#define WriteConsoleOutput   WriteConsoleOutputA
 
#define FillConsoleOutputCharacter   FillConsoleOutputCharacterA
 
#define WriteConsoleOutputCharacter   WriteConsoleOutputCharacterA
 

Typedefs

typedef struct _CONSOLE_READCONSOLE_CONTROL CONSOLE_READCONSOLE_CONTROL
 
typedef struct _CONSOLE_READCONSOLE_CONTROLPCONSOLE_READCONSOLE_CONTROL
 
typedef struct _CHAR_INFO CHAR_INFO
 
typedef struct _CHAR_INFOPCHAR_INFO
 
typedef struct _SMALL_RECT SMALL_RECT
 
typedef struct _SMALL_RECTPSMALL_RECT
 
typedef struct _CONSOLE_CURSOR_INFO CONSOLE_CURSOR_INFO
 
typedef struct _CONSOLE_CURSOR_INFOPCONSOLE_CURSOR_INFO
 
typedef struct _COORD COORD
 
typedef struct _COORDPCOORD
 
typedef struct _CONSOLE_SELECTION_INFO CONSOLE_SELECTION_INFO
 
typedef struct _CONSOLE_SELECTION_INFOPCONSOLE_SELECTION_INFO
 
typedef struct _CONSOLE_FONT_INFO CONSOLE_FONT_INFO
 
typedef struct _CONSOLE_FONT_INFOPCONSOLE_FONT_INFO
 
typedef struct _CONSOLE_SCREEN_BUFFER_INFO CONSOLE_SCREEN_BUFFER_INFO
 
typedef struct _CONSOLE_SCREEN_BUFFER_INFOPCONSOLE_SCREEN_BUFFER_INFO
 
typedef struct _CONSOLE_GRAPHICS_BUFFER_INFO CONSOLE_GRAPHICS_BUFFER_INFO
 
typedef struct _CONSOLE_GRAPHICS_BUFFER_INFOPCONSOLE_GRAPHICS_BUFFER_INFO
 
typedef BOOL(CALLBACKPHANDLER_ROUTINE) (_In_ DWORD)
 
typedef struct _KEY_EVENT_RECORD KEY_EVENT_RECORD
 
typedef struct _KEY_EVENT_RECORDPKEY_EVENT_RECORD
 
typedef struct _MOUSE_EVENT_RECORD MOUSE_EVENT_RECORD
 
typedef struct _MOUSE_EVENT_RECORDPMOUSE_EVENT_RECORD
 
typedef struct _WINDOW_BUFFER_SIZE_RECORD WINDOW_BUFFER_SIZE_RECORD
 
typedef struct _WINDOW_BUFFER_SIZE_RECORDPWINDOW_BUFFER_SIZE_RECORD
 
typedef struct _MENU_EVENT_RECORD MENU_EVENT_RECORD
 
typedef struct _MENU_EVENT_RECORDPMENU_EVENT_RECORD
 
typedef struct _FOCUS_EVENT_RECORD FOCUS_EVENT_RECORD
 
typedef struct _FOCUS_EVENT_RECORDPFOCUS_EVENT_RECORD
 
typedef struct _INPUT_RECORD INPUT_RECORD
 
typedef struct _INPUT_RECORDPINPUT_RECORD
 
typedef struct _CONSOLE_HISTORY_INFO CONSOLE_HISTORY_INFO
 
typedef struct _CONSOLE_HISTORY_INFOPCONSOLE_HISTORY_INFO
 
typedef struct _CONSOLE_SCREEN_BUFFER_INFOEX CONSOLE_SCREEN_BUFFER_INFOEX
 
typedef struct _CONSOLE_SCREEN_BUFFER_INFOEXPCONSOLE_SCREEN_BUFFER_INFOEX
 
typedef struct _CONSOLE_FONT_INFOEX CONSOLE_FONT_INFOEX
 
typedef struct _CONSOLE_FONT_INFOEXPCONSOLE_FONT_INFOEX
 

Functions

BOOL WINAPI AllocConsole (VOID)
 
BOOL WINAPI AttachConsole (_In_ DWORD)
 
BOOL WINAPI AddConsoleAliasA (_In_ LPCSTR, _In_ LPCSTR, _In_ LPCSTR)
 
BOOL WINAPI AddConsoleAliasW (_In_ LPCWSTR, _In_ LPCWSTR, _In_ LPCWSTR)
 
DWORD WINAPI GetConsoleAliasA (_In_ LPSTR Source, _Out_writes_(TargetBufferLength) LPSTR TargetBuffer, _In_ DWORD TargetBufferLength, _In_ LPSTR ExeName)
 
DWORD WINAPI GetConsoleAliasW (_In_ LPWSTR Source, _Out_writes_(TargetBufferLength) LPWSTR TargetBuffer, _In_ DWORD TargetBufferLength, _In_ LPWSTR ExeName)
 
DWORD WINAPI GetConsoleAliasesA (_Out_writes_(AliasBufferLength) LPSTR AliasBuffer, _In_ DWORD AliasBufferLength, _In_ LPSTR ExeName)
 
DWORD WINAPI GetConsoleAliasesW (_Out_writes_(AliasBufferLength) LPWSTR AliasBuffer, _In_ DWORD AliasBufferLength, _In_ LPWSTR ExeName)
 
DWORD WINAPI GetConsoleAliasesLengthA (_In_ LPSTR ExeName)
 
DWORD WINAPI GetConsoleAliasesLengthW (_In_ LPWSTR ExeName)
 
DWORD WINAPI GetConsoleAliasExesA (_Out_writes_(ExeNameBufferLength) LPSTR ExeNameBuffer, _In_ DWORD ExeNameBufferLength)
 
DWORD WINAPI GetConsoleAliasExesW (_Out_writes_(ExeNameBufferLength) LPWSTR ExeNameBuffer, _In_ DWORD ExeNameBufferLength)
 
DWORD WINAPI GetConsoleAliasExesLengthA (VOID)
 
DWORD WINAPI GetConsoleAliasExesLengthW (VOID)
 
HANDLE WINAPI CreateConsoleScreenBuffer (_In_ DWORD, _In_ DWORD, _In_opt_ CONST SECURITY_ATTRIBUTES *, _In_ DWORD, _Reserved_ LPVOID)
 
BOOL WINAPI FillConsoleOutputAttribute (_In_ HANDLE, _In_ WORD, _In_ DWORD, _In_ COORD, _Out_ PDWORD)
 
BOOL WINAPI FillConsoleOutputCharacterA (_In_ HANDLE, _In_ CHAR, _In_ DWORD, _In_ COORD, _Out_ PDWORD)
 
BOOL WINAPI FillConsoleOutputCharacterW (_In_ HANDLE, _In_ WCHAR, _In_ DWORD, _In_ COORD, _Out_ PDWORD)
 
BOOL WINAPI FlushConsoleInputBuffer (_In_ HANDLE)
 
BOOL WINAPI FreeConsole (VOID)
 
BOOL WINAPI GenerateConsoleCtrlEvent (_In_ DWORD, _In_ DWORD)
 
UINT WINAPI GetConsoleCP (VOID)
 
BOOL WINAPI GetConsoleCursorInfo (_In_ HANDLE, _Out_ PCONSOLE_CURSOR_INFO)
 
BOOL WINAPI GetConsoleMode (_In_ HANDLE, _Out_ PDWORD)
 
UINT WINAPI GetConsoleOutputCP (VOID)
 
BOOL WINAPI GetConsoleScreenBufferInfo (_In_ HANDLE, _Out_ PCONSOLE_SCREEN_BUFFER_INFO)
 
BOOL WINAPI InvalidateConsoleDIBits (_In_ HANDLE, _In_ PSMALL_RECT)
 
DWORD WINAPI GetConsoleTitleA (_Out_writes_(nSize) LPSTR lpConsoleTitle, _In_ DWORD nSize)
 
DWORD WINAPI GetConsoleTitleW (_Out_writes_(nSize) LPWSTR lpConsoleTitle, _In_ DWORD nSize)
 
COORD WINAPI GetConsoleFontSize (_In_ HANDLE hConsoleOutput, _In_ DWORD nFont)
 
BOOL WINAPI GetCurrentConsoleFont (_In_ HANDLE hConsoleOutput, _In_ BOOL bMaximumWindow, _Out_ PCONSOLE_FONT_INFO lpConsoleCurrentFont)
 
HWND WINAPI GetConsoleWindow (VOID)
 
BOOL WINAPI GetConsoleDisplayMode (_Out_ LPDWORD lpModeFlags)
 
BOOL WINAPI SetConsoleDisplayMode (_In_ HANDLE hConsoleOutput, _In_ DWORD dwFlags, _Out_opt_ PCOORD lpNewScreenBufferDimensions)
 
COORD WINAPI GetLargestConsoleWindowSize (_In_ HANDLE)
 
BOOL WINAPI GetNumberOfConsoleInputEvents (_In_ HANDLE, _Out_ PDWORD)
 
BOOL WINAPI GetNumberOfConsoleMouseButtons (_Out_ PDWORD)
 
 _Success_ (return !=0) BOOL WINAPI PeekConsoleInputA(_In_ HANDLE hConsoleInput
 
 _Out_writes_ (nLength) PINPUT_RECORD lpBuffer
 
 _Out_writes_bytes_to_ (nNumberOfCharsToRead *sizeof(CHAR), *lpNumberOfCharsRead *sizeof(CHAR)) LPVOID lpBuffer
 
_In_ DWORD _Out_ _Deref_out_range_ (<=, nNumberOfCharsToRead) LPDWORD lpNumberOfCharsRead
 
 _Out_writes_bytes_to_ (nNumberOfCharsToRead *sizeof(WCHAR), *lpNumberOfCharsRead *sizeof(WCHAR)) LPVOID lpBuffer
 
 _Out_writes_to_ (nLength, *lpNumberOfEventsRead) PINPUT_RECORD lpBuffer
 
_In_ DWORD _Out_ _Deref_out_range_ (<=, nLength) LPDWORD lpNumberOfEventsRead)
 
BOOL WINAPI ReadConsoleOutputAttribute (_In_ HANDLE hConsoleOutput, _Out_writes_(nLength) LPWORD lpAttribute, _In_ DWORD nLength, _In_ COORD dwReadCoord, _Out_ LPDWORD lpNumberOfAttrsRead)
 
BOOL WINAPI ReadConsoleOutputCharacterA (_In_ HANDLE hConsoleOutput, _Out_writes_(nLength) LPSTR lpCharacter, _In_ DWORD nLength, _In_ COORD dwReadCoord, _Out_ LPDWORD lpNumberOfCharsRead)
 
BOOL WINAPI ReadConsoleOutputCharacterW (_In_ HANDLE hConsoleOutput, _Out_writes_(nLength) LPWSTR lpCharacter, _In_ DWORD nLength, _In_ COORD dwReadCoord, _Out_ LPDWORD lpNumberOfCharsRead)
 
BOOL WINAPI ReadConsoleOutputA (_In_ HANDLE hConsoleOutput, _Out_writes_(dwBufferSize.X *dwBufferSize.Y) PCHAR_INFO lpBuffer, _In_ COORD dwBufferSize, _In_ COORD dwBufferCoord, _Inout_ PSMALL_RECT lpReadRegion)
 
BOOL WINAPI ReadConsoleOutputW (_In_ HANDLE hConsoleOutput, _Out_writes_(dwBufferSize.X *dwBufferSize.Y) PCHAR_INFO lpBuffer, _In_ COORD dwBufferSize, _In_ COORD dwBufferCoord, _Inout_ PSMALL_RECT lpReadRegion)
 
BOOL WINAPI ScrollConsoleScreenBufferA (_In_ HANDLE, _In_ const SMALL_RECT *, _In_opt_ const SMALL_RECT *, _In_ COORD, _In_ const CHAR_INFO *)
 
BOOL WINAPI ScrollConsoleScreenBufferW (_In_ HANDLE, _In_ const SMALL_RECT *, _In_opt_ const SMALL_RECT *, _In_ COORD, _In_ const CHAR_INFO *)
 
BOOL WINAPI SetConsoleActiveScreenBuffer (_In_ HANDLE)
 
BOOL WINAPI SetConsoleCP (_In_ UINT)
 
BOOL WINAPI SetConsoleCtrlHandler (_In_opt_ PHANDLER_ROUTINE, _In_ BOOL)
 
BOOL WINAPI SetConsoleCursorInfo (_In_ HANDLE, _In_ const CONSOLE_CURSOR_INFO *)
 
BOOL WINAPI SetConsoleCursorPosition (_In_ HANDLE, _In_ COORD)
 
BOOL WINAPI SetConsoleMode (_In_ HANDLE, _In_ DWORD)
 
BOOL WINAPI SetConsoleOutputCP (_In_ UINT)
 
BOOL WINAPI SetConsoleScreenBufferSize (_In_ HANDLE, _In_ COORD)
 
BOOL WINAPI SetConsoleTextAttribute (_In_ HANDLE, _In_ WORD)
 
BOOL WINAPI SetConsoleTitleA (_In_ LPCSTR)
 
BOOL WINAPI SetConsoleTitleW (_In_ LPCWSTR)
 
BOOL WINAPI SetConsoleWindowInfo (_In_ HANDLE, _In_ BOOL, _In_ const SMALL_RECT *)
 
HMENU WINAPI ConsoleMenuControl (_In_ HANDLE, _In_ DWORD, _In_ DWORD)
 
BOOL WINAPI SetConsoleMenuClose (_In_ BOOL)
 
BOOL WINAPI SetConsoleCursor (_In_ HANDLE, _In_ HCURSOR)
 
INT WINAPI ShowConsoleCursor (_In_ HANDLE, _In_ BOOL)
 
BOOL WINAPI SetConsoleIcon (_In_ HICON)
 
BOOL WINAPI SetConsolePalette (_In_ HANDLE, _In_ HPALETTE, _In_ UINT)
 
BOOL WINAPI CloseConsoleHandle (_In_ HANDLE)
 
HANDLE WINAPI GetConsoleInputWaitHandle (VOID)
 
BOOL WINAPI VerifyConsoleIoHandle (_In_ HANDLE)
 
BOOL WINAPI RegisterConsoleVDM (_In_ DWORD, _In_ HANDLE, _In_ HANDLE, _In_ HANDLE, _In_ DWORD, _Out_ LPDWORD, _Out_ PVOID *, _In_ PVOID, _In_ DWORD, _In_ COORD, _Out_ PVOID *)
 
BOOL WINAPI WriteConsoleA (_In_ HANDLE hConsoleOutput, _In_reads_(nNumberOfCharsToWrite) CONST VOID *lpBuffer, _In_ DWORD nNumberOfCharsToWrite, _Out_opt_ LPDWORD lpNumberOfCharsWritten, _Reserved_ LPVOID lpReserved)
 
BOOL WINAPI WriteConsoleW (_In_ HANDLE hConsoleOutput, _In_reads_(nNumberOfCharsToWrite) CONST VOID *lpBuffer, _In_ DWORD nNumberOfCharsToWrite, _Out_opt_ LPDWORD lpNumberOfCharsWritten, _Reserved_ LPVOID lpReserved)
 
BOOL WINAPI WriteConsoleInputA (_In_ HANDLE hConsoleInput, _In_reads_(nLength) CONST INPUT_RECORD *lpBuffer, _In_ DWORD nLength, _Out_ LPDWORD lpNumberOfEventsWritten)
 
BOOL WINAPI WriteConsoleInputW (_In_ HANDLE hConsoleInput, _In_reads_(nLength) CONST INPUT_RECORD *lpBuffer, _In_ DWORD nLength, _Out_ LPDWORD lpNumberOfEventsWritten)
 
BOOL WINAPI WriteConsoleInputVDMA (_In_ HANDLE hConsoleInput, _In_reads_(nLength) CONST INPUT_RECORD *lpBuffer, _In_ DWORD nLength, _Out_ LPDWORD lpNumberOfEventsWritten)
 
BOOL WINAPI WriteConsoleInputVDMW (_In_ HANDLE hConsoleInput, _In_reads_(nLength) CONST INPUT_RECORD *lpBuffer, _In_ DWORD nLength, _Out_ LPDWORD lpNumberOfEventsWritten)
 
BOOL WINAPI WriteConsoleOutputA (_In_ HANDLE hConsoleOutput, _In_reads_(dwBufferSize.X *dwBufferSize.Y) CONST CHAR_INFO *lpBuffer, _In_ COORD dwBufferSize, _In_ COORD dwBufferCoord, _Inout_ PSMALL_RECT lpWriteRegion)
 
BOOL WINAPI WriteConsoleOutputW (_In_ HANDLE hConsoleOutput, _In_reads_(dwBufferSize.X *dwBufferSize.Y) CONST CHAR_INFO *lpBuffer, _In_ COORD dwBufferSize, _In_ COORD dwBufferCoord, _Inout_ PSMALL_RECT lpWriteRegion)
 
BOOL WINAPI WriteConsoleOutputAttribute (_In_ HANDLE hConsoleOutput, _In_reads_(nLength) CONST WORD *lpAttribute, _In_ DWORD nLength, _In_ COORD dwWriteCoord, _Out_ LPDWORD lpNumberOfAttrsWritten)
 
BOOL WINAPI WriteConsoleOutputCharacterA (_In_ HANDLE hConsoleOutput, _In_reads_(nLength) LPCSTR lpCharacter, _In_ DWORD nLength, _In_ COORD dwWriteCoord, _Out_ LPDWORD lpNumberOfCharsWritten)
 
BOOL WINAPI WriteConsoleOutputCharacterW (_In_ HANDLE hConsoleOutput, _In_reads_(nLength) LPCWSTR lpCharacter, _In_ DWORD nLength, _In_ COORD dwWriteCoord, _Out_ LPDWORD lpNumberOfCharsWritten)
 

Variables

_In_ DWORD nLength
 
_In_ DWORD _Out_ LPDWORD lpNumberOfEventsRead
 
_In_ DWORD nNumberOfCharsToRead
 
_In_ DWORD _Out_ _In_opt_ PCONSOLE_READCONSOLE_CONTROL pInputControl
 
_In_ DWORD _Out_ _In_ WORD wFlags
 

Macro Definition Documentation

◆ AddConsoleAlias

#define AddConsoleAlias   AddConsoleAliasA

Definition at line 772 of file wincon.h.

◆ ATTACH_PARENT_PROCESS

#define ATTACH_PARENT_PROCESS   ((DWORD)-1)

Definition at line 21 of file wincon.h.

◆ BACKGROUND_BLUE

#define BACKGROUND_BLUE   0x0010

Definition at line 43 of file wincon.h.

◆ BACKGROUND_GREEN

#define BACKGROUND_GREEN   0x0020

Definition at line 44 of file wincon.h.

◆ BACKGROUND_INTENSITY

#define BACKGROUND_INTENSITY   0x0080

Definition at line 46 of file wincon.h.

◆ BACKGROUND_RED

#define BACKGROUND_RED   0x0040

Definition at line 45 of file wincon.h.

◆ CAPSLOCK_ON

#define CAPSLOCK_ON   0x0080

Definition at line 144 of file wincon.h.

◆ COMMON_LVB_GRID_HORIZONTAL

#define COMMON_LVB_GRID_HORIZONTAL   0x0400 /* Grid attribute: Top Horizontal */

Definition at line 50 of file wincon.h.

◆ COMMON_LVB_GRID_LVERTICAL

#define COMMON_LVB_GRID_LVERTICAL   0x0800 /* Grid attribute: Left Vertical */

Definition at line 51 of file wincon.h.

◆ COMMON_LVB_GRID_RVERTICAL

#define COMMON_LVB_GRID_RVERTICAL   0x1000 /* Grid attribute: Right Vertical */

Definition at line 52 of file wincon.h.

◆ COMMON_LVB_LEADING_BYTE

#define COMMON_LVB_LEADING_BYTE   0x0100 /* DBCS Leading Byte */

Definition at line 48 of file wincon.h.

◆ COMMON_LVB_REVERSE_VIDEO

#define COMMON_LVB_REVERSE_VIDEO   0x4000 /* Reverse fore/back ground attribute */

Definition at line 53 of file wincon.h.

◆ COMMON_LVB_SBCSDBCS

#define COMMON_LVB_SBCSDBCS   (COMMON_LVB_LEADING_BYTE | COMMON_LVB_TRAILING_BYTE) /* == 0x0300 */

Definition at line 56 of file wincon.h.

◆ COMMON_LVB_TRAILING_BYTE

#define COMMON_LVB_TRAILING_BYTE   0x0200 /* DBCS Trailing Byte */

Definition at line 49 of file wincon.h.

◆ COMMON_LVB_UNDERSCORE

#define COMMON_LVB_UNDERSCORE   0x8000 /* Underscore */

Definition at line 54 of file wincon.h.

◆ CONSOLE_FULLSCREEN

#define CONSOLE_FULLSCREEN   1

Definition at line 29 of file wincon.h.

◆ CONSOLE_FULLSCREEN_HARDWARE

#define CONSOLE_FULLSCREEN_HARDWARE   2

Definition at line 30 of file wincon.h.

◆ CONSOLE_FULLSCREEN_MODE

#define CONSOLE_FULLSCREEN_MODE   1

Definition at line 33 of file wincon.h.

◆ CONSOLE_GRAPHICS_BUFFER

#define CONSOLE_GRAPHICS_BUFFER   2 /* Undocumented, see http://blog.airesoft.co.uk/2012/10/things-ms-can-do-that-they-dont-tell-you-about-console-graphics/ */

Definition at line 63 of file wincon.h.

◆ CONSOLE_MOUSE_DOWN

#define CONSOLE_MOUSE_DOWN   0x0008

Definition at line 106 of file wincon.h.

◆ CONSOLE_MOUSE_SELECTION

#define CONSOLE_MOUSE_SELECTION   0x0004

Definition at line 105 of file wincon.h.

◆ CONSOLE_NO_SELECTION

#define CONSOLE_NO_SELECTION   0x0000

Definition at line 102 of file wincon.h.

◆ CONSOLE_OVERSTRIKE

#define CONSOLE_OVERSTRIKE   0x0001

Definition at line 115 of file wincon.h.

◆ CONSOLE_READ_CONTINUE

#define CONSOLE_READ_CONTINUE   0x0002

Definition at line 123 of file wincon.h.

◆ CONSOLE_READ_KEEPEVENT

#define CONSOLE_READ_KEEPEVENT   0x0001

Definition at line 122 of file wincon.h.

◆ CONSOLE_SELECTION_IN_PROGRESS

#define CONSOLE_SELECTION_IN_PROGRESS   0x0001

Definition at line 103 of file wincon.h.

◆ CONSOLE_SELECTION_NOT_EMPTY

#define CONSOLE_SELECTION_NOT_EMPTY   0x0002

Definition at line 104 of file wincon.h.

◆ CONSOLE_TEXTMODE_BUFFER

#define CONSOLE_TEXTMODE_BUFFER   1

Definition at line 62 of file wincon.h.

◆ CONSOLE_WINDOWED

#define CONSOLE_WINDOWED   0

Definition at line 28 of file wincon.h.

◆ CONSOLE_WINDOWED_MODE

#define CONSOLE_WINDOWED_MODE   2

Definition at line 34 of file wincon.h.

◆ CTRL_BREAK_EVENT

#define CTRL_BREAK_EVENT   1

Definition at line 69 of file wincon.h.

◆ CTRL_C_EVENT

#define CTRL_C_EVENT   0

Definition at line 68 of file wincon.h.

◆ CTRL_CLOSE_EVENT

#define CTRL_CLOSE_EVENT   2

Definition at line 70 of file wincon.h.

◆ CTRL_LAST_CLOSE_EVENT

#define CTRL_LAST_CLOSE_EVENT   3 /* Undocumented */

Definition at line 71 of file wincon.h.

◆ CTRL_LOGOFF_EVENT

#define CTRL_LOGOFF_EVENT   5

Definition at line 72 of file wincon.h.

◆ CTRL_SHUTDOWN_EVENT

#define CTRL_SHUTDOWN_EVENT   6

Definition at line 73 of file wincon.h.

◆ DOUBLE_CLICK

#define DOUBLE_CLICK   0x0002

Definition at line 169 of file wincon.h.

◆ ENABLE_AUTO_POSITION

#define ENABLE_AUTO_POSITION   0x0100

Definition at line 87 of file wincon.h.

◆ ENABLE_ECHO_INPUT

#define ENABLE_ECHO_INPUT   0x0004

Definition at line 80 of file wincon.h.

◆ ENABLE_EXTENDED_FLAGS

#define ENABLE_EXTENDED_FLAGS   0x0080

Definition at line 85 of file wincon.h.

◆ ENABLE_INSERT_MODE

#define ENABLE_INSERT_MODE   0x0020

Definition at line 83 of file wincon.h.

◆ ENABLE_LINE_INPUT

#define ENABLE_LINE_INPUT   0x0002

Definition at line 79 of file wincon.h.

◆ ENABLE_MOUSE_INPUT

#define ENABLE_MOUSE_INPUT   0x0010

Definition at line 82 of file wincon.h.

◆ ENABLE_PROCESSED_INPUT

#define ENABLE_PROCESSED_INPUT   0x0001

Definition at line 78 of file wincon.h.

◆ ENABLE_PROCESSED_OUTPUT

#define ENABLE_PROCESSED_OUTPUT   0x0001

Definition at line 96 of file wincon.h.

◆ ENABLE_QUICK_EDIT_MODE

#define ENABLE_QUICK_EDIT_MODE   0x0040

Definition at line 84 of file wincon.h.

◆ ENABLE_VIRTUAL_TERMINAL_INPUT

#define ENABLE_VIRTUAL_TERMINAL_INPUT   0x0200

Definition at line 90 of file wincon.h.

◆ ENABLE_WINDOW_INPUT

#define ENABLE_WINDOW_INPUT   0x0008

Definition at line 81 of file wincon.h.

◆ ENABLE_WRAP_AT_EOL_OUTPUT

#define ENABLE_WRAP_AT_EOL_OUTPUT   0x0002

Definition at line 97 of file wincon.h.

◆ ENHANCED_KEY

#define ENHANCED_KEY   0x0100

Definition at line 145 of file wincon.h.

◆ FillConsoleOutputCharacter

#define FillConsoleOutputCharacter   FillConsoleOutputCharacterA

Definition at line 791 of file wincon.h.

◆ FOCUS_EVENT

#define FOCUS_EVENT   0x0010

Definition at line 132 of file wincon.h.

◆ FOREGROUND_BLUE

#define FOREGROUND_BLUE   0x0001

Definition at line 39 of file wincon.h.

◆ FOREGROUND_GREEN

#define FOREGROUND_GREEN   0x0002

Definition at line 40 of file wincon.h.

◆ FOREGROUND_INTENSITY

#define FOREGROUND_INTENSITY   0x0008

Definition at line 42 of file wincon.h.

◆ FOREGROUND_RED

#define FOREGROUND_RED   0x0004

Definition at line 41 of file wincon.h.

◆ FROM_LEFT_1ST_BUTTON_PRESSED

#define FROM_LEFT_1ST_BUTTON_PRESSED   0x0001

Definition at line 159 of file wincon.h.

◆ FROM_LEFT_2ND_BUTTON_PRESSED

#define FROM_LEFT_2ND_BUTTON_PRESSED   0x0004

Definition at line 161 of file wincon.h.

◆ FROM_LEFT_3RD_BUTTON_PRESSED

#define FROM_LEFT_3RD_BUTTON_PRESSED   0x0008

Definition at line 162 of file wincon.h.

◆ FROM_LEFT_4TH_BUTTON_PRESSED

#define FROM_LEFT_4TH_BUTTON_PRESSED   0x0010

Definition at line 163 of file wincon.h.

◆ GetConsoleAlias

#define GetConsoleAlias   GetConsoleAliasA

Definition at line 773 of file wincon.h.

◆ GetConsoleAliases

#define GetConsoleAliases   GetConsoleAliasesA

Definition at line 774 of file wincon.h.

◆ GetConsoleAliasesLength

#define GetConsoleAliasesLength   GetConsoleAliasesLengthA

Definition at line 775 of file wincon.h.

◆ GetConsoleAliasExes

#define GetConsoleAliasExes   GetConsoleAliasExesA

Definition at line 776 of file wincon.h.

◆ GetConsoleAliasExesLength

#define GetConsoleAliasExesLength   GetConsoleAliasExesLengthA

Definition at line 777 of file wincon.h.

◆ GetConsoleTitle

#define GetConsoleTitle   GetConsoleTitleA

Definition at line 778 of file wincon.h.

◆ HISTORY_NO_DUP_FLAG

#define HISTORY_NO_DUP_FLAG   0x0001

Definition at line 113 of file wincon.h.

◆ KEY_EVENT

#define KEY_EVENT   0x0001

Definition at line 128 of file wincon.h.

◆ LEFT_ALT_PRESSED

#define LEFT_ALT_PRESSED   0x0002

Definition at line 138 of file wincon.h.

◆ LEFT_CTRL_PRESSED

#define LEFT_CTRL_PRESSED   0x0008

Definition at line 140 of file wincon.h.

◆ MENU_EVENT

#define MENU_EVENT   0x0008

Definition at line 131 of file wincon.h.

◆ MOUSE_EVENT

#define MOUSE_EVENT   0x0002

Definition at line 129 of file wincon.h.

◆ MOUSE_HWHEELED

#define MOUSE_HWHEELED   0x0008

Definition at line 172 of file wincon.h.

◆ MOUSE_MOVED

#define MOUSE_MOVED   0x0001

Definition at line 168 of file wincon.h.

◆ MOUSE_WHEELED

#define MOUSE_WHEELED   0x0004

Definition at line 170 of file wincon.h.

◆ NLS_ALPHANUMERIC

#define NLS_ALPHANUMERIC   0x00000000 /* Alphanumeric mode */

Definition at line 149 of file wincon.h.

◆ NLS_DBCSCHAR

#define NLS_DBCSCHAR   0x00010000 /* SBCS/DBCS mode */

Definition at line 148 of file wincon.h.

◆ NLS_HIRAGANA

#define NLS_HIRAGANA   0x00040000 /* Hiragana mode */

Definition at line 151 of file wincon.h.

◆ NLS_IME_CONVERSION

#define NLS_IME_CONVERSION   0x00800000 /* IME conversion */

Definition at line 153 of file wincon.h.

◆ NLS_IME_DISABLE

#define NLS_IME_DISABLE   0x20000000 /* IME enable/disable */

Definition at line 154 of file wincon.h.

◆ NLS_KATAKANA

#define NLS_KATAKANA   0x00020000 /* Katakana mode */

Definition at line 150 of file wincon.h.

◆ NLS_ROMAN

#define NLS_ROMAN   0x00400000 /* Roman/Noroman mode */

Definition at line 152 of file wincon.h.

◆ NUMLOCK_ON

#define NUMLOCK_ON   0x0020

Definition at line 142 of file wincon.h.

◆ PeekConsoleInput

#define PeekConsoleInput   PeekConsoleInputA

Definition at line 779 of file wincon.h.

◆ ReadConsole

#define ReadConsole   ReadConsoleA

Definition at line 780 of file wincon.h.

◆ ReadConsoleInput

#define ReadConsoleInput   ReadConsoleInputA

Definition at line 781 of file wincon.h.

◆ ReadConsoleInputEx

#define ReadConsoleInputEx   ReadConsoleInputExA

Definition at line 782 of file wincon.h.

◆ ReadConsoleOutput

#define ReadConsoleOutput   ReadConsoleOutputA

Definition at line 783 of file wincon.h.

◆ ReadConsoleOutputCharacter

#define ReadConsoleOutputCharacter   ReadConsoleOutputCharacterA

Definition at line 784 of file wincon.h.

◆ RIGHT_ALT_PRESSED

#define RIGHT_ALT_PRESSED   0x0001

Definition at line 137 of file wincon.h.

◆ RIGHT_CTRL_PRESSED

#define RIGHT_CTRL_PRESSED   0x0004

Definition at line 139 of file wincon.h.

◆ RIGHTMOST_BUTTON_PRESSED

#define RIGHTMOST_BUTTON_PRESSED   0x0002

Definition at line 160 of file wincon.h.

◆ ScrollConsoleScreenBuffer

#define ScrollConsoleScreenBuffer   ScrollConsoleScreenBufferA

Definition at line 785 of file wincon.h.

◆ SCROLLLOCK_ON

#define SCROLLLOCK_ON   0x0040

Definition at line 143 of file wincon.h.

◆ SetConsoleTitle

#define SetConsoleTitle   SetConsoleTitleA

Definition at line 786 of file wincon.h.

◆ SHIFT_PRESSED

#define SHIFT_PRESSED   0x0010

Definition at line 141 of file wincon.h.

◆ WINDOW_BUFFER_SIZE_EVENT

#define WINDOW_BUFFER_SIZE_EVENT   0x0004

Definition at line 130 of file wincon.h.

◆ WriteConsole

#define WriteConsole   WriteConsoleA

Definition at line 787 of file wincon.h.

◆ WriteConsoleInput

#define WriteConsoleInput   WriteConsoleInputA

Definition at line 788 of file wincon.h.

◆ WriteConsoleInputVDM

#define WriteConsoleInputVDM   WriteConsoleInputVDMA

Definition at line 789 of file wincon.h.

◆ WriteConsoleOutput

#define WriteConsoleOutput   WriteConsoleOutputA

Definition at line 790 of file wincon.h.

◆ WriteConsoleOutputCharacter

#define WriteConsoleOutputCharacter   WriteConsoleOutputCharacterA

Definition at line 792 of file wincon.h.

Typedef Documentation

◆ CHAR_INFO

◆ CONSOLE_CURSOR_INFO

◆ CONSOLE_FONT_INFO

◆ CONSOLE_FONT_INFOEX

◆ CONSOLE_GRAPHICS_BUFFER_INFO

◆ CONSOLE_HISTORY_INFO

◆ CONSOLE_READCONSOLE_CONTROL

◆ CONSOLE_SCREEN_BUFFER_INFO

◆ CONSOLE_SCREEN_BUFFER_INFOEX

◆ CONSOLE_SELECTION_INFO

◆ COORD

typedef struct _COORD COORD

◆ FOCUS_EVENT_RECORD

◆ INPUT_RECORD

◆ KEY_EVENT_RECORD

◆ MENU_EVENT_RECORD

◆ MOUSE_EVENT_RECORD

◆ PCHAR_INFO

◆ PCONSOLE_CURSOR_INFO

◆ PCONSOLE_FONT_INFO

◆ PCONSOLE_FONT_INFOEX

◆ PCONSOLE_GRAPHICS_BUFFER_INFO

◆ PCONSOLE_HISTORY_INFO

◆ PCONSOLE_READCONSOLE_CONTROL

◆ PCONSOLE_SCREEN_BUFFER_INFO

◆ PCONSOLE_SCREEN_BUFFER_INFOEX

◆ PCONSOLE_SELECTION_INFO

◆ PCOORD

typedef struct _COORD * PCOORD

◆ PFOCUS_EVENT_RECORD

◆ PHANDLER_ROUTINE

typedef BOOL(CALLBACK * PHANDLER_ROUTINE) (_In_ DWORD)

Definition at line 237 of file wincon.h.

◆ PINPUT_RECORD

◆ PKEY_EVENT_RECORD

◆ PMENU_EVENT_RECORD

◆ PMOUSE_EVENT_RECORD

◆ PSMALL_RECT

◆ PWINDOW_BUFFER_SIZE_RECORD

◆ SMALL_RECT

◆ WINDOW_BUFFER_SIZE_RECORD

Function Documentation

◆ _Deref_out_range_() [1/2]

_In_ DWORD _Out_ _Deref_out_range_ ( <=  ,
nNumberOfCharsToRead   
)

◆ _Deref_out_range_() [2/2]

_In_ DWORD _Out_ _Deref_out_range_ ( <=  ,
nLength   
)

◆ _Out_writes_()

_Out_writes_ ( nLength  )

◆ _Out_writes_bytes_to_() [1/2]

_Out_writes_bytes_to_ ( nNumberOfCharsToRead sizeofCHAR,
*lpNumberOfCharsRead *  sizeofCHAR 
)

◆ _Out_writes_bytes_to_() [2/2]

_Out_writes_bytes_to_ ( nNumberOfCharsToRead sizeofWCHAR,
*lpNumberOfCharsRead *  sizeofWCHAR 
)

◆ _Out_writes_to_()

_Out_writes_to_ ( nLength  ,
lpNumberOfEventsRead 
)

◆ _Success_()

_Success_ ( return = 0)

Definition at line 3139 of file fsctrl.c.

3189 {
3190  PLIST_ENTRY Link;
3191 
3192  PVPB Vpb = Vcb->Vpb;
3193  PVPB OldVpb;
3194 
3195  BOOLEAN Remount = FALSE;
3196 
3197  PAGED_CODE();
3198 
3199  UNREFERENCED_PARAMETER( IrpContext );
3200 
3201  //
3202  // Check whether we are looking for a device only Mvcb.
3203  //
3204 
3205  for (Link = CdData.VcbQueue.Flink;
3206  Link != &CdData.VcbQueue;
3207  Link = Link->Flink) {
3208 
3209  *OldVcb = CONTAINING_RECORD( Link, VCB, VcbLinks );
3210 
3211  //
3212  // Skip ourselves.
3213  //
3214 
3215  if (Vcb == *OldVcb) { continue; }
3216 
3217  //
3218  // Look at the Vpb and state of the previous Vcb.
3219  //
3220 
3221  OldVpb = (*OldVcb)->Vpb;
3222 
3223  if ((OldVpb != Vpb) &&
3224  (OldVpb->RealDevice == Vpb->RealDevice) &&
3225  ((*OldVcb)->VcbCondition == VcbNotMounted)) {
3226 
3227  //
3228  // If the current disk is a raw disk then it can match a previous music or
3229  // raw disk.
3230  //
3231 
3232  if (FlagOn( Vcb->VcbState, VCB_STATE_AUDIO_DISK)) {
3233 
3234  if (FlagOn( (*OldVcb)->VcbState, VCB_STATE_AUDIO_DISK )) {
3235 
3236  //
3237  // If we have both TOC then fail the remount if the lengths
3238  // are different or they don't match.
3239  //
3240 
3241  if ((Vcb->TocLength != (*OldVcb)->TocLength) ||
3242  ((Vcb->TocLength != 0) &&
3243  !RtlEqualMemory( Vcb->CdromToc,
3244  (*OldVcb)->CdromToc,
3245  Vcb->TocLength ))) {
3246 
3247  continue;
3248  }
3249 
3250  Remount = TRUE;
3251  break;
3252  }
3253 
3254  //
3255  // The current disk is not a raw disk. Go ahead and compare
3256  // serial numbers, volume label and TOC.
3257  //
3258 
3259  }
3260  else if ((OldVpb->SerialNumber == Vpb->SerialNumber) &&
3261  (Vcb->TocLength == (*OldVcb)->TocLength) &&
3262  ((Vcb->TocLength == 0) || RtlEqualMemory( Vcb->CdromToc,
3263  (*OldVcb)->CdromToc,
3264  Vcb->TocLength )) &&
3265  (Vpb->VolumeLabelLength == OldVpb->VolumeLabelLength) &&
3266  (RtlEqualMemory( OldVpb->VolumeLabel,
3267  Vpb->VolumeLabel,
3268  Vpb->VolumeLabelLength ))) {
3269  //
3270  // Remember the old Vcb. Then set the return value to
3271  // TRUE and break.
3272  //
3273 
3274  Remount = TRUE;
3275  break;
3276  }
3277  }
3278  }
3279 
3280  return Remount;
3281 }
#define VCB_STATE_AUDIO_DISK
Definition: cdstruc.h:712
WCHAR VolumeLabel[MAXIMUM_VOLUME_LABEL_LENGTH/sizeof(WCHAR)]
Definition: iotypes.h:177
#define TRUE
Definition: types.h:120
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:317
Definition: cdstruc.h:498
static int Link(const char **args)
Definition: vfdcmd.c:2414
#define FALSE
Definition: types.h:117
unsigned char BOOLEAN
PFLT_MESSAGE_WAITER_QUEUE CONTAINING_RECORD(Csq, DEVICE_EXTENSION, IrpQueue)) -> WaiterQ.mLock) _IRQL_raises_(DISPATCH_LEVEL) VOID NTAPI FltpAcquireMessageWaiterLock(_In_ PIO_CSQ Csq, _Out_ PKIRQL Irql)
Definition: Messaging.c:560
struct _LIST_ENTRY * Flink
Definition: typedefs.h:121
CD_DATA CdData
Definition: cddata.c:42
NTSYSAPI ULONG NTAPI RtlEqualMemory(CONST VOID *Source1, CONST VOID *Source2, ULONG Length)
struct _DEVICE_OBJECT * RealDevice
Definition: iotypes.h:174
#define Vcb
Definition: cdprocs.h:1415
Definition: typedefs.h:119
#define FlagOn(_F, _SF)
Definition: ext2fs.h:179
LIST_ENTRY VcbQueue
Definition: cdstruc.h:334
Definition: iotypes.h:168
USHORT VolumeLabelLength
Definition: iotypes.h:172
ULONG SerialNumber
Definition: iotypes.h:175
IN OUT PVCB IN PDEVICE_OBJECT IN PVPB Vpb
Definition: fatprocs.h:1673
#define PAGED_CODE()

◆ AddConsoleAliasA()

BOOL WINAPI AddConsoleAliasA ( _In_  LPCSTR,
_In_  LPCSTR,
_In_  LPCSTR 
)

◆ AddConsoleAliasW()

BOOL WINAPI AddConsoleAliasW ( _In_  LPCWSTR,
_In_  LPCWSTR,
_In_  LPCWSTR 
)

◆ AllocConsole()

BOOL WINAPI AllocConsole ( VOID  )

Definition at line 74 of file console.c.

75 {
77  UNICODE_STRING ScreenName = RTL_CONSTANT_STRING(L"\\??\\BlueScreen");
78  UNICODE_STRING KeyboardName = RTL_CONSTANT_STRING(L"\\Device\\KeyboardClass0");
81  ULONG Enable;
82 
83  /* Open the screen */
85  &ScreenName,
86  0,
87  NULL,
88  NULL);
93  FILE_OPEN,
95  if (!NT_SUCCESS(Status))
96  return FALSE;
97 
98  /* Enable it */
99  Enable = TRUE;
101  NULL,
102  NULL,
103  NULL,
104  &IoStatusBlock,
106  &Enable,
107  sizeof(Enable),
108  NULL,
109  0);
110  if (!NT_SUCCESS(Status))
111  {
113  return FALSE;
114  }
115 
116  /* Open the keyboard */
118  &KeyboardName,
119  0,
120  NULL,
121  NULL);
125  &IoStatusBlock,
126  FILE_OPEN,
127  0);
128  if (!NT_SUCCESS(Status))
129  {
131  return FALSE;
132  }
133 
134  /* Reset the queue state */
137 
138  return TRUE;
139 }
IN PUNICODE_STRING IN POBJECT_ATTRIBUTES ObjectAttributes
Definition: conport.c:35
#define FILE_ALL_ACCESS
Definition: nt_native.h:651
#define TRUE
Definition: types.h:120
LONG NTSTATUS
Definition: precomp.h:26
_In_ ULONGLONG _In_ ULONGLONG _In_ BOOLEAN Enable
Definition: ntddpcm.h:140
HANDLE StdInput
Definition: consup.c:36
static BOOLEAN WaitForInput
Definition: console.c:40
NTSYSAPI NTSTATUS NTAPI NtDeviceIoControlFile(IN HANDLE hFile, IN HANDLE hEvent OPTIONAL, IN PIO_APC_ROUTINE IoApcRoutine OPTIONAL, IN PVOID IoApcContext OPTIONAL, OUT PIO_STATUS_BLOCK pIoStatusBlock, IN ULONG DeviceIoControlCode, IN PVOID InBuffer OPTIONAL, IN ULONG InBufferLength, OUT PVOID OutBuffer OPTIONAL, IN ULONG OutBufferLength)
#define FILE_SYNCHRONOUS_IO_ALERT
Definition: from_kernel.h:30
#define FALSE
Definition: types.h:117
HANDLE StdOutput
Definition: consup.c:37
Status
Definition: gdiplustypes.h:24
NTSYSAPI NTSTATUS NTAPI NtOpenFile(OUT PHANDLE phFile, IN ACCESS_MASK DesiredAccess, IN POBJECT_ATTRIBUTES ObjectAttributes, OUT PIO_STATUS_BLOCK pIoStatusBlock, IN ULONG ShareMode, IN ULONG OpenMode)
Definition: file.c:3951
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
NTSTATUS NTAPI NtClose(IN HANDLE Handle)
Definition: obhandle.c:3399
static BOOLEAN InputQueueEmpty
Definition: console.c:39
static const WCHAR L[]
Definition: oid.c:1250
#define IOCTL_CONSOLE_RESET_SCREEN
Definition: ntddblue.h:4
#define FILE_OPEN
Definition: from_kernel.h:54
static OUT PIO_STATUS_BLOCK IoStatusBlock
Definition: pipe.c:75
#define NULL
Definition: types.h:112
unsigned int ULONG
Definition: retypes.h:1
#define InitializeObjectAttributes(p, n, a, r, s)
Definition: reg.c:106
#define RTL_CONSTANT_STRING(s)
Definition: tunneltest.c:14

Referenced by _tWinMain(), cmd_ctty(), CONSOLE_Init(), DoTest(), InitRappsConsole(), main(), START_TEST(), test_Console(), TUIInitialize(), and wWinMain().

◆ AttachConsole()

BOOL WINAPI AttachConsole ( _In_  DWORD)

◆ CloseConsoleHandle()

BOOL WINAPI CloseConsoleHandle ( _In_  HANDLE)

◆ ConsoleMenuControl()

HMENU WINAPI ConsoleMenuControl ( _In_  HANDLE,
_In_  DWORD,
_In_  DWORD 
)

◆ CreateConsoleScreenBuffer()

HANDLE WINAPI CreateConsoleScreenBuffer ( _In_  DWORD,
_In_  DWORD,
_In_opt_ CONST SECURITY_ATTRIBUTES ,
_In_  DWORD,
_Reserved_  LPVOID 
)

◆ FillConsoleOutputAttribute()

BOOL WINAPI FillConsoleOutputAttribute ( _In_  HANDLE,
_In_  WORD,
_In_  DWORD,
_In_  COORD,
_Out_  PDWORD 
)

◆ FillConsoleOutputCharacterA()

BOOL WINAPI FillConsoleOutputCharacterA ( _In_  HANDLE,
_In_  CHAR,
_In_  DWORD,
_In_  COORD,
_Out_  PDWORD 
)

◆ FillConsoleOutputCharacterW()

BOOL WINAPI FillConsoleOutputCharacterW ( _In_  HANDLE,
_In_  WCHAR,
_In_  DWORD,
_In_  COORD,
_Out_  PDWORD 
)

◆ FlushConsoleInputBuffer()

BOOL WINAPI FlushConsoleInputBuffer ( _In_  HANDLE)

◆ FreeConsole()

BOOL WINAPI FreeConsole ( VOID  )

Definition at line 153 of file console.c.

154 {
155  /* Reset the queue state */
158 
160  NtClose(StdInput);
161 
164 
165  return TRUE;
166 }
#define TRUE
Definition: types.h:120
HANDLE StdInput
Definition: consup.c:36
#define INVALID_HANDLE_VALUE
Definition: compat.h:590
static BOOLEAN WaitForInput
Definition: console.c:40
#define FALSE
Definition: types.h:117
HANDLE StdOutput
Definition: consup.c:37
NTSTATUS NTAPI NtClose(IN HANDLE Handle)
Definition: obhandle.c:3399
static BOOLEAN InputQueueEmpty
Definition: console.c:39

Referenced by cmd_ctty(), RunUSetup(), and START_TEST().

◆ GenerateConsoleCtrlEvent()

BOOL WINAPI GenerateConsoleCtrlEvent ( _In_  DWORD,
_In_  DWORD 
)

◆ GetConsoleAliasA()

DWORD WINAPI GetConsoleAliasA ( _In_ LPSTR  Source,
_Out_writes_(TargetBufferLength) LPSTR  TargetBuffer,
_In_ DWORD  TargetBufferLength,
_In_ LPSTR  ExeName 
)

◆ GetConsoleAliasesA()

DWORD WINAPI GetConsoleAliasesA ( _Out_writes_(AliasBufferLength) LPSTR  AliasBuffer,
_In_ DWORD  AliasBufferLength,
_In_ LPSTR  ExeName 
)

◆ GetConsoleAliasesLengthA()

DWORD WINAPI GetConsoleAliasesLengthA ( _In_ LPSTR  ExeName)

◆ GetConsoleAliasesLengthW()

DWORD WINAPI GetConsoleAliasesLengthW ( _In_ LPWSTR  ExeName)

◆ GetConsoleAliasesW()

DWORD WINAPI GetConsoleAliasesW ( _Out_writes_(AliasBufferLength) LPWSTR  AliasBuffer,
_In_ DWORD  AliasBufferLength,
_In_ LPWSTR  ExeName 
)

◆ GetConsoleAliasExesA()

DWORD WINAPI GetConsoleAliasExesA ( _Out_writes_(ExeNameBufferLength) LPSTR  ExeNameBuffer,
_In_ DWORD  ExeNameBufferLength 
)

◆ GetConsoleAliasExesLengthA()

DWORD WINAPI GetConsoleAliasExesLengthA ( VOID  )

Definition at line 599 of file alias.c.

600 {
601  DPRINT("GetConsoleAliasExesLengthA called\n");
603 }
#define FALSE
Definition: types.h:117
void DPRINT(...)
Definition: polytest.cpp:61
static DWORD IntGetConsoleAliasExesLength(BOOLEAN bUnicode)
Definition: alias.c:558

◆ GetConsoleAliasExesLengthW()

DWORD WINAPI GetConsoleAliasExesLengthW ( VOID  )

Definition at line 586 of file alias.c.

587 {
588  DPRINT("GetConsoleAliasExesLengthW called\n");
590 }
#define TRUE
Definition: types.h:120
void DPRINT(...)
Definition: polytest.cpp:61
static DWORD IntGetConsoleAliasExesLength(BOOLEAN bUnicode)
Definition: alias.c:558

◆ GetConsoleAliasExesW()

DWORD WINAPI GetConsoleAliasExesW ( _Out_writes_(ExeNameBufferLength) LPWSTR  ExeNameBuffer,
_In_ DWORD  ExeNameBufferLength 
)

◆ GetConsoleAliasW()

DWORD WINAPI GetConsoleAliasW ( _In_ LPWSTR  Source,
_Out_writes_(TargetBufferLength) LPWSTR  TargetBuffer,
_In_ DWORD  TargetBufferLength,
_In_ LPWSTR  ExeName 
)

◆ GetConsoleCP()

UINT WINAPI GetConsoleCP ( VOID  )

Definition at line 2393 of file console.c.

2394 {
2395  CONSOLE_API_MESSAGE ApiMessage;
2396  PCONSOLE_GETINPUTOUTPUTCP GetConsoleCPRequest = &ApiMessage.Data.GetConsoleCPRequest;
2397 
2398  /* Get the Input Code Page */
2399  GetConsoleCPRequest->ConsoleHandle = NtCurrentPeb()->ProcessParameters->ConsoleHandle;
2400  GetConsoleCPRequest->OutputCP = FALSE;
2401 
2403  NULL,
2405  sizeof(*GetConsoleCPRequest));
2406  if (!NT_SUCCESS(ApiMessage.Status))
2407  {
2408  BaseSetLastNTError(ApiMessage.Status);
2409  return 0;
2410  }
2411 
2412  return GetConsoleCPRequest->CodePage;
2413 }
NTSTATUS NTAPI CsrClientCallServer(IN OUT PCSR_API_MESSAGE ApiMessage, IN OUT PCSR_CAPTURE_BUFFER CaptureBuffer OPTIONAL, IN CSR_API_NUMBER ApiNumber, IN ULONG DataLength)
Definition: connect.c:365
NTSTATUS Status
Definition: csrmsg.h:112
#define FALSE
Definition: types.h:117
DWORD BaseSetLastNTError(IN NTSTATUS Status)
Definition: reactos.cpp:166
#define CSR_CREATE_API_NUMBER(ServerId, ApiId)
Definition: csrmsg.h:37
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
#define NtCurrentPeb()
Definition: FLS.c:20
#define NULL
Definition: types.h:112
union _CONSOLE_API_MESSAGE::@3521 Data
CONSOLE_GETINPUTOUTPUTCP GetConsoleCPRequest
Definition: conmsg.h:992
#define CONSRV_SERVERDLL_INDEX
Definition: conmsg.h:15

Referenced by _tmain(), cmd_start(), ConInString(), doChild(), Execute(), FileGetString(), test_Console(), and wmain().

◆ GetConsoleCursorInfo()

BOOL WINAPI GetConsoleCursorInfo ( _In_  HANDLE,
_Out_  PCONSOLE_CURSOR_INFO 
)

◆ GetConsoleDisplayMode()

BOOL WINAPI GetConsoleDisplayMode ( _Out_ LPDWORD  lpModeFlags)

◆ GetConsoleFontSize()

COORD WINAPI GetConsoleFontSize ( _In_ HANDLE  hConsoleOutput,
_In_ DWORD  nFont 
)

◆ GetConsoleInputWaitHandle()

HANDLE WINAPI GetConsoleInputWaitHandle ( VOID  )

◆ GetConsoleMode()

BOOL WINAPI GetConsoleMode ( _In_  HANDLE,
_Out_  PDWORD 
)

◆ GetConsoleOutputCP()

UINT WINAPI GetConsoleOutputCP ( VOID  )

Definition at line 2453 of file console.c.

2454 {
2455  CONSOLE_API_MESSAGE ApiMessage;
2456  PCONSOLE_GETINPUTOUTPUTCP GetConsoleCPRequest = &ApiMessage.Data.GetConsoleCPRequest;
2457 
2458  /* Get the Output Code Page */
2459  GetConsoleCPRequest->ConsoleHandle = NtCurrentPeb()->ProcessParameters->ConsoleHandle;
2460  GetConsoleCPRequest->OutputCP = TRUE;
2461 
2463  NULL,
2465  sizeof(*GetConsoleCPRequest));
2466  if (!NT_SUCCESS(ApiMessage.Status))
2467  {
2468  BaseSetLastNTError(ApiMessage.Status);
2469  return 0;
2470  }
2471 
2472  return GetConsoleCPRequest->CodePage;
2473 }
#define TRUE
Definition: types.h:120
NTSTATUS NTAPI CsrClientCallServer(IN OUT PCSR_API_MESSAGE ApiMessage, IN OUT PCSR_CAPTURE_BUFFER CaptureBuffer OPTIONAL, IN CSR_API_NUMBER ApiNumber, IN ULONG DataLength)
Definition: connect.c:365
NTSTATUS Status
Definition: csrmsg.h:112
DWORD BaseSetLastNTError(IN NTSTATUS Status)
Definition: reactos.cpp:166
#define CSR_CREATE_API_NUMBER(ServerId, ApiId)
Definition: csrmsg.h:37
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
#define NtCurrentPeb()
Definition: FLS.c:20
#define NULL
Definition: types.h:112
union _CONSOLE_API_MESSAGE::@3521 Data
CONSOLE_GETINPUTOUTPUTCP GetConsoleCPRequest
Definition: conmsg.h:992
#define CONSRV_SERVERDLL_INDEX
Definition: conmsg.h:15

Referenced by _tmain(), cmd_start(), ConWrite(), doChild(), Execute(), output_writeconsole(), print_string(), ShowConsoleCPStatus(), ShowConsoleStatus(), taskkill_vprintfW(), test_Console(), test_cp855(), test_cp932(), testScreenBuffer(), wmain(), and XCOPY_wprintf().

◆ GetConsoleScreenBufferInfo()

BOOL WINAPI GetConsoleScreenBufferInfo ( _In_  HANDLE,
_Out_  PCONSOLE_SCREEN_BUFFER_INFO 
)

◆ GetConsoleTitleA()

DWORD WINAPI GetConsoleTitleA ( _Out_writes_(nSize) LPSTR  lpConsoleTitle,
_In_ DWORD  nSize 
)

◆ GetConsoleTitleW()

DWORD WINAPI GetConsoleTitleW ( _Out_writes_(nSize) LPWSTR  lpConsoleTitle,
_In_ DWORD  nSize 
)

◆ GetConsoleWindow()

HWND WINAPI GetConsoleWindow ( VOID  )

Definition at line 2730 of file console.c.

2731 {
2732  CONSOLE_API_MESSAGE ApiMessage;
2733  PCONSOLE_GETWINDOW GetWindowRequest = &ApiMessage.Data.GetWindowRequest;
2734 
2735  GetWindowRequest->ConsoleHandle = NtCurrentPeb()->ProcessParameters->ConsoleHandle;
2736 
2738  NULL,
2740  sizeof(*GetWindowRequest));
2741  if (!NT_SUCCESS(ApiMessage.Status))
2742  {
2743  BaseSetLastNTError(ApiMessage.Status);
2744  return (HWND)NULL;
2745  }
2746 
2747  return GetWindowRequest->WindowHandle;
2748 }
NTSTATUS NTAPI CsrClientCallServer(IN OUT PCSR_API_MESSAGE ApiMessage, IN OUT PCSR_CAPTURE_BUFFER CaptureBuffer OPTIONAL, IN CSR_API_NUMBER ApiNumber, IN ULONG DataLength)
Definition: connect.c:365
NTSTATUS Status
Definition: csrmsg.h:112
DWORD BaseSetLastNTError(IN NTSTATUS Status)
Definition: reactos.cpp:166
#define CSR_CREATE_API_NUMBER(ServerId, ApiId)
Definition: csrmsg.h:37
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
HANDLE ConsoleHandle
Definition: conmsg.h:716
#define NtCurrentPeb()
Definition: FLS.c:20
#define NULL
Definition: types.h:112
union _CONSOLE_API_MESSAGE::@3521 Data
CONSOLE_GETWINDOW GetWindowRequest
Definition: conmsg.h:957
#define CONSRV_SERVERDLL_INDEX
Definition: conmsg.h:15

Referenced by ConsoleInitUI(), START_TEST(), test_GetConsoleFontSize(), and WaitWindows().

◆ GetCurrentConsoleFont()

BOOL WINAPI GetCurrentConsoleFont ( _In_ HANDLE  hConsoleOutput,
_In_ BOOL  bMaximumWindow,
_Out_ PCONSOLE_FONT_INFO  lpConsoleCurrentFont 
)

◆ GetLargestConsoleWindowSize()

COORD WINAPI GetLargestConsoleWindowSize ( _In_  HANDLE)

◆ GetNumberOfConsoleInputEvents()

BOOL WINAPI GetNumberOfConsoleInputEvents ( _In_  HANDLE,
_Out_  PDWORD 
)

◆ GetNumberOfConsoleMouseButtons()

BOOL WINAPI GetNumberOfConsoleMouseButtons ( _Out_  PDWORD)

◆ InvalidateConsoleDIBits()

BOOL WINAPI InvalidateConsoleDIBits ( _In_  HANDLE,
_In_  PSMALL_RECT 
)

◆ ReadConsoleOutputA()

BOOL WINAPI ReadConsoleOutputA ( _In_ HANDLE  hConsoleOutput,
_Out_writes_(dwBufferSize.X *dwBufferSize.Y) PCHAR_INFO  lpBuffer,
_In_ COORD  dwBufferSize,
_In_ COORD  dwBufferCoord,
_Inout_ PSMALL_RECT  lpReadRegion 
)

◆ ReadConsoleOutputAttribute()

BOOL WINAPI ReadConsoleOutputAttribute ( _In_ HANDLE  hConsoleOutput,
_Out_writes_(nLength) LPWORD  lpAttribute,
_In_ DWORD  nLength,
_In_ COORD  dwReadCoord,
_Out_ LPDWORD  lpNumberOfAttrsRead 
)

◆ ReadConsoleOutputCharacterA()

BOOL WINAPI ReadConsoleOutputCharacterA ( _In_ HANDLE  hConsoleOutput,
_Out_writes_(nLength) LPSTR  lpCharacter,
_In_ DWORD  nLength,
_In_ COORD  dwReadCoord,
_Out_ LPDWORD  lpNumberOfCharsRead 
)

◆ ReadConsoleOutputCharacterW()

BOOL WINAPI ReadConsoleOutputCharacterW ( _In_ HANDLE  hConsoleOutput,
_Out_writes_(nLength) LPWSTR  lpCharacter,
_In_ DWORD  nLength,
_In_ COORD  dwReadCoord,
_Out_ LPDWORD  lpNumberOfCharsRead 
)

◆ ReadConsoleOutputW()

BOOL WINAPI ReadConsoleOutputW ( _In_ HANDLE  hConsoleOutput,
_Out_writes_(dwBufferSize.X *dwBufferSize.Y) PCHAR_INFO  lpBuffer,
_In_ COORD  dwBufferSize,
_In_ COORD  dwBufferCoord,
_Inout_ PSMALL_RECT  lpReadRegion 
)

◆ RegisterConsoleVDM()

BOOL WINAPI RegisterConsoleVDM ( _In_  DWORD,
_In_  HANDLE,
_In_  HANDLE,
_In_  HANDLE,
_In_  DWORD,
_Out_  LPDWORD,
_Out_ PVOID ,
_In_  PVOID,
_In_  DWORD,
_In_  COORD,
_Out_ PVOID  
)

◆ ScrollConsoleScreenBufferA()

BOOL WINAPI ScrollConsoleScreenBufferA ( _In_  HANDLE,
_In_ const SMALL_RECT ,
_In_opt_ const SMALL_RECT ,
_In_  COORD,
_In_ const CHAR_INFO  
)

◆ ScrollConsoleScreenBufferW()

BOOL WINAPI ScrollConsoleScreenBufferW ( _In_  HANDLE,
_In_ const SMALL_RECT ,
_In_opt_ const SMALL_RECT ,
_In_  COORD,
_In_ const CHAR_INFO  
)

◆ SetConsoleActiveScreenBuffer()

BOOL WINAPI SetConsoleActiveScreenBuffer ( _In_  HANDLE)

◆ SetConsoleCP()

BOOL WINAPI SetConsoleCP ( _In_  UINT)

◆ SetConsoleCtrlHandler()

BOOL WINAPI SetConsoleCtrlHandler ( _In_opt_  PHANDLER_ROUTINE,
_In_  BOOL 
)

◆ SetConsoleCursor()

BOOL WINAPI SetConsoleCursor ( _In_  HANDLE,
_In_  HCURSOR 
)

◆ SetConsoleCursorInfo()

BOOL WINAPI SetConsoleCursorInfo ( _In_  HANDLE,
_In_ const CONSOLE_CURSOR_INFO  
)

◆ SetConsoleCursorPosition()

BOOL WINAPI SetConsoleCursorPosition ( _In_  HANDLE,
_In_  COORD 
)

◆ SetConsoleDisplayMode()

BOOL WINAPI SetConsoleDisplayMode ( _In_ HANDLE  hConsoleOutput,
_In_ DWORD  dwFlags,
_Out_opt_ PCOORD  lpNewScreenBufferDimensions 
)

◆ SetConsoleIcon()

BOOL WINAPI SetConsoleIcon ( _In_  HICON)

◆ SetConsoleMenuClose()

BOOL WINAPI SetConsoleMenuClose ( _In_  BOOL)

◆ SetConsoleMode()

BOOL WINAPI SetConsoleMode ( _In_  HANDLE,
_In_  DWORD 
)

◆ SetConsoleOutputCP()

BOOL WINAPI SetConsoleOutputCP ( _In_  UINT)

◆ SetConsolePalette()

BOOL WINAPI SetConsolePalette ( _In_  HANDLE,
_In_  HPALETTE,
_In_  UINT 
)

◆ SetConsoleScreenBufferSize()

BOOL WINAPI SetConsoleScreenBufferSize ( _In_  HANDLE,
_In_  COORD 
)

◆ SetConsoleTextAttribute()

BOOL WINAPI SetConsoleTextAttribute ( _In_  HANDLE,
_In_  WORD 
)

◆ SetConsoleTitleA()

BOOL WINAPI SetConsoleTitleA ( _In_  LPCSTR)

◆ SetConsoleTitleW()

BOOL WINAPI SetConsoleTitleW ( _In_  LPCWSTR)

◆ SetConsoleWindowInfo()

BOOL WINAPI SetConsoleWindowInfo ( _In_  HANDLE,
_In_  BOOL,
_In_ const SMALL_RECT  
)

◆ ShowConsoleCursor()

INT WINAPI ShowConsoleCursor ( _In_  HANDLE,
_In_  BOOL 
)

◆ VerifyConsoleIoHandle()

BOOL WINAPI VerifyConsoleIoHandle ( _In_  HANDLE)

◆ WriteConsoleA()

BOOL WINAPI WriteConsoleA ( _In_ HANDLE  hConsoleOutput,
_In_reads_(nNumberOfCharsToWrite) CONST VOID lpBuffer,
_In_ DWORD  nNumberOfCharsToWrite,
_Out_opt_ LPDWORD  lpNumberOfCharsWritten,
_Reserved_ LPVOID  lpReserved 
)

◆ WriteConsoleInputA()

BOOL WINAPI WriteConsoleInputA ( _In_ HANDLE  hConsoleInput,
_In_reads_(nLength) CONST INPUT_RECORD lpBuffer,
_In_ DWORD  nLength,
_Out_ LPDWORD  lpNumberOfEventsWritten 
)

◆ WriteConsoleInputVDMA()

BOOL WINAPI WriteConsoleInputVDMA ( _In_ HANDLE  hConsoleInput,
_In_reads_(nLength) CONST INPUT_RECORD lpBuffer,
_In_ DWORD  nLength,
_Out_ LPDWORD  lpNumberOfEventsWritten 
)

◆ WriteConsoleInputVDMW()

BOOL WINAPI WriteConsoleInputVDMW ( _In_ HANDLE  hConsoleInput,
_In_reads_(nLength) CONST INPUT_RECORD lpBuffer,
_In_ DWORD  nLength,
_Out_ LPDWORD  lpNumberOfEventsWritten 
)

◆ WriteConsoleInputW()

BOOL WINAPI WriteConsoleInputW ( _In_ HANDLE  hConsoleInput,
_In_reads_(nLength) CONST INPUT_RECORD lpBuffer,
_In_ DWORD  nLength,
_Out_ LPDWORD  lpNumberOfEventsWritten 
)

◆ WriteConsoleOutputA()

BOOL WINAPI WriteConsoleOutputA ( _In_ HANDLE  hConsoleOutput,
_In_reads_(dwBufferSize.X *dwBufferSize.Y) CONST CHAR_INFO lpBuffer,
_In_ COORD  dwBufferSize,
_In_ COORD  dwBufferCoord,
_Inout_ PSMALL_RECT  lpWriteRegion 
)

◆ WriteConsoleOutputAttribute()

BOOL WINAPI WriteConsoleOutputAttribute ( _In_ HANDLE  hConsoleOutput,
_In_reads_(nLength) CONST WORD lpAttribute,
_In_ DWORD  nLength,
_In_ COORD  dwWriteCoord,
_Out_ LPDWORD  lpNumberOfAttrsWritten 
)

◆ WriteConsoleOutputCharacterA()

BOOL WINAPI WriteConsoleOutputCharacterA ( _In_ HANDLE  hConsoleOutput,
_In_reads_(nLength) LPCSTR  lpCharacter,
_In_ DWORD  nLength,
_In_ COORD  dwWriteCoord,
_Out_ LPDWORD  lpNumberOfCharsWritten 
)

◆ WriteConsoleOutputCharacterW()

BOOL WINAPI WriteConsoleOutputCharacterW ( _In_ HANDLE  hConsoleOutput,
_In_reads_(nLength) LPCWSTR  lpCharacter,
_In_ DWORD  nLength,
_In_ COORD  dwWriteCoord,
_Out_ LPDWORD  lpNumberOfCharsWritten 
)

◆ WriteConsoleOutputW()

BOOL WINAPI WriteConsoleOutputW ( _In_ HANDLE  hConsoleOutput,
_In_reads_(dwBufferSize.X *dwBufferSize.Y) CONST CHAR_INFO lpBuffer,
_In_ COORD  dwBufferSize,
_In_ COORD  dwBufferCoord,
_Inout_ PSMALL_RECT  lpWriteRegion 
)

◆ WriteConsoleW()

BOOL WINAPI WriteConsoleW ( _In_ HANDLE  hConsoleOutput,
_In_reads_(nNumberOfCharsToWrite) CONST VOID lpBuffer,
_In_ DWORD  nNumberOfCharsToWrite,
_Out_opt_ LPDWORD  lpNumberOfCharsWritten,
_Reserved_ LPVOID  lpReserved 
)

Variable Documentation

◆ lpNumberOfEventsRead

◆ nLength

_In_ DWORD nLength

Definition at line 476 of file wincon.h.

Referenced by ATL::CSimpleStringT< BaseType, _CSTRING_IMPL_::_MFCDLLTraitsCheck< BaseType, StringTraits >::c_bIsMFCDLLTraits >::__declspec(), ATL::ChTraitsCRT< _CharType >::AllocSysString(), ATL::ChTraitsCRT< char >::AllocSysString(), ATL::CSimpleStringT< BaseType, _CSTRING_IMPL_::_MFCDLLTraitsCheck< BaseType, StringTraits >::c_bIsMFCDLLTraits >::Append(), BuildWorkstationsList(), ChangePasswordDlgProc(), CHString::CHString(), CMP_RegisterNotification(), ConvertMultiByteToUnicode(), CreateUserProfileA(), CreateUserProfileExA(), ATL::CSimpleStringT< BaseType, _CSTRING_IMPL_::_MFCDLLTraitsCheck< BaseType, StringTraits >::c_bIsMFCDLLTraits >::CSimpleStringT(), DIALOG_GoTo(), EngFileWrite(), CExtractIcon::Extract(), FillConsoleOutputAttribute(), FillConsoleOutputCharacterA(), FillConsoleOutputCharacterW(), ATL::CStringT< BaseType, StringTraits >::Find(), ATL::CStringT< BaseType, StringTraits >::FormatV(), GenerateRandomPassword(), ATL::ChTraitsCRT< _CharType >::GetBaseTypeLength(), ATL::ChTraitsCRT< char >::GetBaseTypeLength(), ATL::CStringT< BaseType, StringTraits >::GetEnvironmentVariable(), GetFileSecurityA(), GetFileSecurityW(), GetKernelObjectSecurity(), GetUserObjectInformationA(), GetUserObjectInformationW(), InitDaysOfWeekArray(), IntFillConsoleOutputCode(), IntGetConsoleInput(), IntReadConsoleOutputCode(), IntWriteConsoleInput(), IntWriteConsoleOutputCode(), IsValidDeviceInstanceID(), ATL::CStringT< BaseType, StringTraits >::Left(), LoadCursorScheme(), ATL::CStringT< BaseType, StringTraits >::LoadString(), LsarpLookupPrivilegeDisplayName(), ATL::CStringT< BaseType, StringTraits >::MakeLower(), ATL::CStringT< BaseType, StringTraits >::MakeUpper(), ME_HandleMessage(), ATL::CStringT< BaseType, StringTraits >::Mid(), NewGroupDlgProc(), NewUserDlgProc(), NtUserGetObjectInformation(), OnCreate(), OnProfileTypeInit(), ParseDaysOfWeek(), ParseFailureActions(), ParseTime(), PeekConsoleInputA(), PeekConsoleInputW(), ATL::CSimpleStringT< BaseType, _CSTRING_IMPL_::_MFCDLLTraitsCheck< BaseType, StringTraits >::c_bIsMFCDLLTraits >::PrepareWrite(), ATL::CSimpleStringT< BaseType, _CSTRING_IMPL_::_MFCDLLTraitsCheck< BaseType, StringTraits >::c_bIsMFCDLLTraits >::PrepareWrite2(), PrintPaddedResourceString(), PROPSHEET_Paint(), pSetupMultiByteToUnicode(), pSetupUnicodeToMultiByte(), ReadConsoleInputA(), ReadConsoleInputExA(), ReadConsoleInputExW(), ReadConsoleInputW(), ReadConsoleOutputAttribute(), ReadConsoleOutputCharacterA(), ReadConsoleOutputCharacterW(), CHttpParser::ReadSpecial(), CHttpParser::ReadString(), ATL::CSimpleStringT< BaseType, _CSTRING_IMPL_::_MFCDLLTraitsCheck< BaseType, StringTraits >::c_bIsMFCDLLTraits >::Reallocate(), CServerClientSocket::Receive(), ATL::CStringT< BaseType, StringTraits >::Replace(), ATL::CStringT< BaseType, StringTraits >::Right(), SaveCursorScheme(), SaveDlgInfo(), SetGeneralGroupData(), ATL::CSimpleStringT< BaseType, _CSTRING_IMPL_::_MFCDLLTraitsCheck< BaseType, StringTraits >::c_bIsMFCDLLTraits >::SetLength(), ATL::CSimpleStringT< BaseType, _CSTRING_IMPL_::_MFCDLLTraitsCheck< BaseType, StringTraits >::c_bIsMFCDLLTraits >::SetString(), SetUserGeneralData(), SetUserProfileData(), ShowCreateShortcutWizard(), test_domdoc(), test_pack_REMSECURITY_ATTRIBUTES(), test_pack_SECURITY_ATTRIBUTES(), test_TransformWithLoadingLocalFile(), CServerClientSocket::Transmit(), ATL::CStringT< BaseType, StringTraits >::TrimLeft(), ATL::CStringT< BaseType, StringTraits >::TrimRight(), VfdGetDeviceName(), WriteConsoleInputA(), WriteConsoleInputVDMA(), WriteConsoleInputVDMW(), WriteConsoleInputW(), WriteConsoleOutputAttribute(), WriteConsoleOutputCharacterA(), and WriteConsoleOutputCharacterW().

◆ nNumberOfCharsToRead

_In_ DWORD nNumberOfCharsToRead

Definition at line 494 of file wincon.h.

Referenced by IntReadConsole(), ReadConsoleA(), and ReadConsoleW().

◆ pInputControl

Definition at line 496 of file wincon.h.

Referenced by IntReadConsole(), and ReadConsoleW().

◆ wFlags

Definition at line 534 of file wincon.h.

Referenced by _test_attached_event_args(), _test_event_args(), _VarChangeTypeExWrap(), Arguments2_Invoke(), AutomationObject_Invoke(), BaseControlVideoImpl_Invoke(), BaseControlWindowImpl_Invoke(), BasicAudio_Invoke(), BasicAudioImpl_Invoke(), BasicVideo_Invoke(), body_onclick(), CDesktopBrowser::BrowseObject(), CShellBrowser::BrowseObject(), CDefaultContextMenu::BrowserFlagsFromVerb(), CascadeWindows(), ClDispatch_Invoke(), Client_Invoke(), collectionObj_InvokeEx(), CreateMappedBitmap(), database_invoke(), DatabaseImpl_LastErrorRecord(), dictionary_Invoke(), Disp_Invoke(), Dispatch_Invoke(), DispatchEx_Invoke(), DispatchEx_InvokeEx(), dispexFunc_InvokeEx(), DispInvoke(), div_onclick(), div_onclick_attached(), div_onclick_disp_Invoke(), doc_onclick_attached(), doccp(), doccp_onclick_cancel(), DocDispatchEx_Invoke(), DocDispatchEx_InvokeEx(), document_onclick(), DrawDibBegin(), DrawDibDraw(), drive_Invoke(), drivecoll_Invoke(), DummyDispatch_Invoke(), elem2_cp(), EventDispatch_Invoke(), ExplorerMessageLoop(), externalDisp_InvokeEx(), file_Invoke(), filecoll_Invoke(), filesys_Invoke(), folder_Invoke(), foldercoll_Invoke(), FontEventsDisp_Invoke(), form_onclick(), form_onsubmit(), funcDisp_InvokeEx(), fw_app_Invoke(), fw_apps_Invoke(), fw_manager_Invoke(), fw_policy_Invoke(), fw_port_Invoke(), fw_ports_Invoke(), fw_profile_Invoke(), fw_service_Invoke(), fw_services_Invoke(), fwpolicy2_Invoke(), Global_InvokeEx(), Host_Invoke(), HTMLAnchorElement_Invoke(), HTMLAreaElement_Invoke(), HTMLAttributeCollection2_Invoke(), HTMLAttributeCollection3_Invoke(), HTMLAttributeCollection_Invoke(), HTMLBodyElement_Invoke(), HTMLButtonElement_Invoke(), HTMLCommentElement_Invoke(), HTMLCurrentStyle2_Invoke(), HTMLCurrentStyle3_Invoke(), HTMLCurrentStyle4_Invoke(), HTMLCurrentStyle_Invoke(), HTMLDocument3_Invoke(), HTMLDocument4_Invoke(), HTMLDocument5_Invoke(), HTMLDocument6_Invoke(), HTMLDocument7_Invoke(), HTMLDocument_Invoke(), HTMLDOMAttribute2_Invoke(), HTMLDOMAttribute_Invoke(), HTMLDOMChildrenCollection_Invoke(), HTMLDOMImplementation_Invoke(), HTMLDOMNode2_Invoke(), HTMLDOMNode_Invoke(), HTMLDOMTextNode2_Invoke(), HTMLDOMTextNode_Invoke(), HTMLElement2_Invoke(), HTMLElement3_Invoke(), HTMLElement4_Invoke(), HTMLElement_Invoke(), HTMLElementCollection_Invoke(), HTMLEmbedElement_Invoke(), HTMLEventObj_Invoke(), HTMLFiltersCollection_Invoke(), HTMLFormElement_Invoke(), HTMLFrameBase_Invoke(), HTMLFrameElement3_Invoke(), HTMLGenericElement_Invoke(), HTMLHeadElement_Invoke(), HTMLIFrameElement2_Invoke(), HTMLIFrameElement3_Invoke(), HTMLIFrameElement_Invoke(), HTMLImageElementFactory_Invoke(), HTMLImgElement_Invoke(), HTMLInputElement_Invoke(), HTMLInputTextElement_Invoke(), HTMLLabelElement_Invoke(), HTMLLinkElement_Invoke(), HTMLLocation_Invoke(), HTMLMetaElement_Invoke(), HTMLMimeTypesCollection_Invoke(), HTMLObjectElement2_Invoke(), HTMLObjectElement_Invoke(), HTMLOptionElement_Invoke(), HTMLOptionElementFactory_Invoke(), HTMLPluginsCollection_Invoke(), HTMLRect_Invoke(), HTMLScreen_Invoke(), HTMLScriptElement_Invoke(), HTMLSelectElement_Invoke(), HTMLSelectionObject2_Invoke(), HTMLSelectionObject_Invoke(), HTMLStorage_Invoke(), HTMLStyle2_Invoke(), HTMLStyle3_Invoke(), HTMLStyle4_Invoke(), HTMLStyle5_Invoke(), HTMLStyle6_Invoke(), HTMLStyle_Invoke(), HTMLStyleElement_Invoke(), HTMLStyleSheet_Invoke(), HTMLStyleSheetRulesCollection_Invoke(), HTMLStyleSheetsCollection_Invoke(), HTMLTable2_Invoke(), HTMLTable3_Invoke(), HTMLTable_Invoke(), HTMLTableCell_Invoke(), HTMLTableRow_Invoke(), HTMLTextAreaElement_Invoke(), HTMLTextContainer_Invoke(), HTMLTitleElement_Invoke(), HTMLTxtRange_Invoke(), HTMLWindow2_Invoke(), HTMLWindow3_Invoke(), HTMLWindow4_Invoke(), HTMLWindow5_Invoke(), HTMLWindow6_Invoke(), HTMLXMLHttpRequest_Invoke(), HTMLXMLHttpRequestFactory_Invoke(), anonymous_namespace{mstscax.cpp}::CAdvancedSettings::IDispatch::Invoke(), SEALED_::SEALED_::IDispatch::Invoke(), SEALED_::IDispatch::Invoke(), IDispatch_Invoke_Proxy(), iframe_onload(), iframe_onreadystatechange(), iframedoc_onreadystatechange(), img_onerror(), img_onload(), input_onblur(), input_onfocus(), installer_invoke(), InstallerImpl_CreateRecord(), InstallerImpl_EnableLog(), InstallerImpl_Environment(), InstallerImpl_FileAttributes(), InstallerImpl_FileSize(), InstallerImpl_FileVersion(), InstallerImpl_InstallProduct(), InstallerImpl_LastErrorRecord(), InstallerImpl_OpenDatabase(), InstallerImpl_OpenPackage(), InstallerImpl_OpenProduct(), InstallerImpl_ProductInfo(), InstallerImpl_ProductState(), InstallerImpl_RegistryValue(), InstallerImpl_SummaryInformation(), InstallerImpl_UILevel(), InstallerImpl_Version(), InternetExplorer_Invoke(), IntGetConsoleInput(), IntRemoveMenuItem(), IntTrackPopupMenuEx(), CSearchBar::Invoke(), invoke(), ATL::IDispatchImpl< IShellFolderViewDual2, &IID_IShellFolderViewDual2 >::Invoke(), anonymous_namespace{mstscax.cpp}::CoClass::Invoke(), CDefaultContextMenu::InvokeRegVerb(), IRecordInfoImpl_PutField(), IRecordInfoImpl_PutFieldNoCopy(), IShellBrowserImpl_BrowseObject(), ITextDocument2Old_fnInvoke(), ITextRange_fnInvoke(), ITextSelection_fnInvoke(), ITypeComp_fnBind(), ITypeInfo_fnInvoke(), ITypeLibComp_fnBind(), list_invoke(), Match2_Invoke(), Match_Invoke(), MatchCollection2_Invoke(), MatchCollection_Invoke(), MediaControl_Invoke(), MediaEvent_Invoke(), MediaPositionPassThru_Invoke(), MENU_DoNextMenu(), MENU_ExitTracking(), MENU_FindItem(), MENU_HideSubPopups(), MENU_InitTracking(), MENU_SwitchTracking(), MENU_TrackKbdMenuBar(), MENU_TrackMenu(), MENU_TrackMouseMenuBar(), MXAttributes_Invoke(), mxwriter_Invoke(), netfw_rules_Invoke(), NtUserToUnicodeEx(), OLEFontImpl_Invoke(), OLEPictureImpl_Invoke(), OmHistory_Invoke(), OmNavigator_Invoke(), parseError_Invoke(), PHDispatch_Invoke(), PHEventSink_Invoke(), pureDisp_Invoke(), ReadConsoleInputExA(), ReadConsoleInputExW(), record_invoke(), RegExp2_Invoke(), RegExp_Invoke(), ScriptDisp_Invoke(), scriptDisp_InvokeEx(), ScriptDisp_InvokeEx(), session_invoke(), ShellBrowser_BrowseObject(), ShellUIHelper2_Invoke(), START_TEST(), StdDispatch_Invoke(), SubMatches_Invoke(), submit_onclick(), submit_onclick_attached(), submit_onclick_attached_check_cancel(), submit_onclick_cancel(), submit_onclick_setret(), summaryinfo_invoke(), test_iconlocation(), Test_InvokeEx(), test_pack_PROCESS_HEAP_ENTRY(), test_pack_RASTERIZER_STATUS(), testObj_InvokeEx(), TextFont_Invoke(), TextPara_Invoke(), textstream_Invoke(), TileWindows(), TIME_SetEventInternal(), timeoutFunc_Invoke(), timeSetEvent(), ToUnicode(), ToUnicodeEx(), CDefaultContextMenu::TryToBrowse(), upnpnat_Invoke(), VARIANT_Coerce(), VariantChangeType(), VariantChangeTypeEx(), vbnamespacemanager_Invoke(), VBSAXAttributes_Invoke(), VBSAXContentHandler_Invoke(), VBSAXDeclHandler_Invoke(), VBSAXDTDHandler_Invoke(), VBSAXErrorHandler_Invoke(), VBSAXLexicalHandler_Invoke(), VideoWindow_Invoke(), view_invoke(), WBE2Sink_Invoke(), WebBrowser_Invoke(), Widget_Invoke(), Window_Invoke(), WindowDispEx_Invoke(), WindowDispEx_InvokeEx(), WshCollection_Invoke(), WshEnvironment_Invoke(), WshExec_Invoke(), WshShell3_Invoke(), WshShortcut_Invoke(), xmlhttprequest_onreadystatechange(), xslprocessor_Invoke(), and xsltemplate_Invoke().