ReactOS 0.4.16-dev-334-g4d9f67c
conmsg.h
Go to the documentation of this file.
1/*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS Console Server DLL
4 * FILE: include/reactos/subsys/win/conmsg.h
5 * PURPOSE: Public definitions for communication
6 * between Console API Clients and Servers
7 * PROGRAMMERS: Hermes Belusca-Maito (hermes.belusca@sfr.fr)
8 */
9
10#ifndef _CONMSG_H
11#define _CONMSG_H
12
13#pragma once
14
15#define CONSRV_SERVERDLL_INDEX 2
16#define CONSRV_FIRST_API_NUMBER 512
17
18// Windows Server 2003 table from http://j00ru.vexillium.org/csrss_list/api_list.html#Windows_2k3
20{
57 ConsolepAlloc, // Not present in Win7
58 ConsolepFree, // Not present in Win7
83 ConsolepSetCommandHistoryMode, // Not present in Vista+
100 ConsolepRegisterConsoleIME, // Not present in Win7
101 ConsolepUnregisterConsoleIME, // Not present in Win7
102 // ConsolepQueryConsoleIME, // Added only in Vista and Win2k8, not present in Win7
104 ConsolepAttach, // Not present in Win7
107
108 ConsolepGetHistory, // Added in Vista+
109 ConsolepSetHistory, // Added in Vista+
110 // ConsolepSetCurrentFont, // Added in Vista+
111 // ConsolepSetScreenBufferInfo, // Added in Vista+
112 // ConsolepClientConnect, // Added in Win7
113
116
117//
118// See http://msdn.microsoft.com/en-us/library/windows/desktop/bb773359(v=vs.85).aspx
119//
121{
127
128 // NT_CONSOLE_PROPS
131
132 //
133 // Not on MSDN, but show up in binary
134 //
137
156
157 // NT_FE_CONSOLE_PROPS
160
161enum
162{
163 INIT_SUCCESS, // STATUS_WAIT_0
164 INIT_FAILURE, // STATUS_WAIT_1
167
169{
176
179
180#if defined(_M_IX86)
181C_ASSERT(sizeof(CONSOLE_START_INFO) == 0xFC);
182#endif
183
185{
187
190
191 // USHORT Padding;
192
196
198 WCHAR ConsoleTitle[MAX_PATH + 1]; // Console title or full path to the startup shortcut
200 PWCHAR Desktop; // Contrary to the case of CONSOLE_ALLOCCONSOLE, the
201 // desktop string is allocated in the process' heap,
202 // and CSR will read it via NtReadVirtualMemory.
204 WCHAR AppName[128]; // Full path of the launched app
208
209#if defined(_M_IX86)
210C_ASSERT(sizeof(CONSRV_API_CONNECTINFO) == 0x638);
211#endif
212
214{
219
221{
226
228{
231
232
233
235{
238
240 PVOID Buffer; // BufPtr
242
243 // On Windows, the client never uses this member
245
248
249 // On Windows, the client never uses this member
252
254{
257
259
261 PVOID Buffer; // BufPtr
263
265
271
273{
275
277 PWCHAR ConsoleTitle; // Console title or full path to the startup shortcut
281 PWCHAR AppName; // Full path of the launched app
284
288
290{
291 /*
292 * If ProcessId == ATTACH_PARENT_PROCESS == -1, then attach
293 * the current process to its parent process console.
294 */
296
298
302
304{
307
309{
319
321{
326
328{
334
335typedef struct _CONSOLE_SETCURSOR
336{
341
343{
347/*
348 ULONG Size;
349 BOOLEAN Visible;
350*/
352
354{
358
360{
365
367{
372
374{
376 ULONG DisplayMode; // ModeFlags
378
380{
383 ULONG DisplayMode; // ModeFlags
387
388/*
389 * Console hardware states.
390 */
391#define CONSOLE_HARDWARE_STATE_GDI_MANAGED 0
392#define CONSOLE_HARDWARE_STATE_DIRECT 1
393
395{
401
402
404{
408
410{
417
419{
425
427{
434
435typedef struct _CONSOLE_SETFONT
436{
441
442
443
445{
447 ULONG DesiredAccess; // ACCESS_MASK
450 /* Type of the screen buffer: CONSOLE_TEXTMODE_BUFFER or CONSOLE_GRAPHICS_BUFFER */
452 /*
453 * This structure holds the initialization information
454 * for graphics screen buffers.
455 */
459 HANDLE OutputHandle; /* Handle to newly created screen buffer */
461
463{
465 HANDLE OutputHandle; /* Handle to screen buffer to switch to */
467
469{
474
476{
482
484{
490
492{
496
498{
508
509
510/*
511 * An attribute or a character are instances of the same entity, namely
512 * a "code" (what would be called an (ANSI) escape sequence). Therefore
513 * encode them inside the same structure.
514 */
515typedef enum _CODE_TYPE
516{
519 CODE_ATTRIBUTE = 0x03
521
522typedef union _CODE_ELEMENT
523{
528
530{
534
536 CHAR CodeStaticBuffer[80]; // == 40 * sizeof(CODE_ELEMENT)
537 PVOID pCode; // Either a pointer to a character or to an attribute.
538 // union
539 // {
540 // PVOID pCode;
541 // PCHAR AsciiChar;
542 // PWCHAR UnicodeChar;
543 // PWORD Attribute;
544 // } pCode; // Either a pointer to a character or to an attribute.
545
549
551{
555
557 CODE_ELEMENT Code; // Either a character or an attribute.
558
561
562typedef struct _CONSOLE_GETINPUT
563{
572
574{
583
585{
588
591
595
597{
600
603
606
607 /*
608 * If we are going to write too large (>= 64 kB, size of the CSR heap)
609 * data buffers, we allocate a heap buffer in the process' memory, and
610 * CSR will read it via NtReadVirtualMemory.
611 */
614
616{
621
622
623
625{
629
631{
636
638{
641 ULONG DesiredAccess; // ACCESS_MASK
646
648{
653
655{
661
662/*
663 * Type of handles.
664 */
666{
668 HANDLE_OUTPUT = 0x02
670
672{
675 ULONG DesiredAccess; // ACCESS_MASK
680
681
682
684{
689
691{
698
700{
704
706{
710 SMALL_RECT WindowRect; // New console window position in the screen-buffer frame (Absolute == TRUE)
711 // or in the old window position frame (Absolute == FALSE).
713
714typedef struct _CONSOLE_GETWINDOW
715{
719
720typedef struct _CONSOLE_SETICON
721{
725
726
727
729{
732 USHORT TargetLength; // Also used for storing the number of bytes written.
740
742{
751
753{
761
763{
765 ULONG Length ; // ExeLength; // ExesLength
769
771{
776
777
778
780{
789
791{
799
801{
808
810{
815
817{
825
827{
831
832
833
835{
840
842{
846
848{
851 BOOL OutputCP; // TRUE : Output Code Page ; FALSE : Input Code Page
853
855{
858 BOOL OutputCP; // TRUE : Output Code Page ; FALSE : Input Code Page
861
862typedef struct _CONSOLE_GETLANGID
863{
867
869{
871 CHAR LayoutBuffer[KL_NAMELENGTH * sizeof(WCHAR)]; // Can hold up to 9 wchars
874
876{
882
883 /* Unused member */
885
887 PVOID VideoState; // PVIDEO_HARDWARE_STATE_HEADER
888
889 /* Unused members */
892
896
898{
906
908{
912
914{
916
921 union
922 {
923 /* Console initialization and uninitialization */
927
928 /* Processes */
932
933 /* Handles */
940
941 /* Cursor & Mouse */
947
948 /* Screen-buffer */
954
957
958 /* Console mode */
963
964 /* Console fonts */
970
971 /* Console window */
981
982 /* Read */
983 CONSOLE_READCONSOLE ReadConsoleRequest; // SrvReadConsole / ReadConsole
984 CONSOLE_GETINPUT GetInputRequest; // SrvGetConsoleInput / PeekConsoleInput & ReadConsoleInput
985 CONSOLE_READOUTPUT ReadOutputRequest; // SrvReadConsoleOutput / ReadConsoleOutput
986 CONSOLE_READOUTPUTCODE ReadOutputCodeRequest; // SrvReadConsoleOutputString / ReadConsoleOutputAttribute & ReadConsoleOutputCharacter
988
989 /* Write */
990 CONSOLE_WRITECONSOLE WriteConsoleRequest; // SrvWriteConsole / WriteConsole
994
997
998 /* Aliases */
1004
1005 /* History */
1012
1013 /* Input and Output Code Pages; keyboard */
1018
1019 /* Virtual DOS Machine */
1021
1022 /* Console IME */
1027
1028// Check that a CONSOLE_API_MESSAGE can hold in a CSR_API_MESSAGE.
1030
1031#endif // _CONMSG_H
1032
1033/* EOF */
unsigned char BOOLEAN
LONG NTSTATUS
Definition: precomp.h:26
struct _CONSOLE_SETWINDOWINFO * PCONSOLE_SETWINDOWINFO
struct _CONSOLE_READCONSOLE CONSOLE_READCONSOLE
struct _CONSOLE_API_MESSAGE * PCONSOLE_API_MESSAGE
struct _CONSOLE_SETPALETTE * PCONSOLE_SETPALETTE
struct _CONSOLE_GETWINDOW * PCONSOLE_GETWINDOW
struct _CONSOLE_OUTPUTCODE * PCONSOLE_WRITEOUTPUTCODE
struct _CONSOLE_GETCOMMANDHISTORY CONSOLE_GETCOMMANDHISTORY
struct _CONSOLE_GETSETHWSTATE CONSOLE_GETSETHWSTATE
struct _CONSOLE_GETALLALIASES * PCONSOLE_GETALLALIASES
struct _CONSOLE_GETNUMINPUTEVENTS * PCONSOLE_GETNUMINPUTEVENTS
struct _CONSOLE_SETCURSORPOSITION * PCONSOLE_SETCURSORPOSITION
struct _CONSOLE_GETKBDLAYOUTNAME CONSOLE_GETKBDLAYOUTNAME
struct _CONSOLE_SETACTIVESCREENBUFFER CONSOLE_SETACTIVESCREENBUFFER
struct _CONSOLE_SETHISTORYMODE * PCONSOLE_SETHISTORYMODE
union _CODE_ELEMENT CODE_ELEMENT
struct _CONSOLE_ALLOCCONSOLE CONSOLE_ALLOCCONSOLE
struct _CONSOLE_VERIFYHANDLE CONSOLE_VERIFYHANDLE
struct _CONSOLE_WRITEINPUT * PCONSOLE_WRITEINPUT
_CODE_TYPE
Definition: conmsg.h:516
@ CODE_ASCII
Definition: conmsg.h:517
@ CODE_UNICODE
Definition: conmsg.h:518
@ CODE_ATTRIBUTE
Definition: conmsg.h:519
struct _CONSOLE_GETHANDLEINFO CONSOLE_GETHANDLEINFO
struct _CONSOLE_FILLOUTPUTCODE * PCONSOLE_FILLOUTPUTCODE
struct _CONSOLE_CLOSEHANDLE CONSOLE_CLOSEHANDLE
struct _CONSOLE_UNREGISTERCONSOLEIME * PCONSOLE_UNREGISTERCONSOLEIME
struct _CONSOLE_READCONSOLE * PCONSOLE_READCONSOLE
struct _CONSOLE_SETSCREENBUFFERSIZE CONSOLE_SETSCREENBUFFERSIZE
struct _CONSOLE_GETALIASESEXES CONSOLE_GETALIASESEXES
enum _CODE_TYPE CODE_TYPE
struct _CONSOLE_INVALIDATEDIBITS CONSOLE_INVALIDATEDIBITS
struct _CONSOLE_READOUTPUT * PCONSOLE_READOUTPUT
struct _CONSOLE_WRITECONSOLE CONSOLE_WRITECONSOLE
struct _CONSOLE_FILLOUTPUTCODE CONSOLE_FILLOUTPUTCODE
struct _CONSOLE_GETKBDLAYOUTNAME * PCONSOLE_GETKBDLAYOUTNAME
struct _CONSOLE_GETFONTSIZE CONSOLE_GETFONTSIZE
struct _CONSOLE_GETLANGID * PCONSOLE_GETLANGID
struct _CONSOLE_REGISTERCONSOLEIME CONSOLE_REGISTERCONSOLEIME
struct _CONSOLE_OPENCONSOLE CONSOLE_OPENCONSOLE
struct _CONSOLE_GETALLALIASESLENGTH CONSOLE_GETALLALIASESLENGTH
enum _CONSRV_API_NUMBER * PCONSRV_API_NUMBER
struct _CONSOLE_SETFONT CONSOLE_SETFONT
struct _CONSOLE_SETHISTORYMODE CONSOLE_SETHISTORYMODE
struct _CONSOLE_FREECONSOLE * PCONSOLE_FREECONSOLE
struct _CONSOLE_GETSETCONSOLETITLE * PCONSOLE_GETSETCONSOLETITLE
struct _CONSOLE_GETINPUTOUTPUTCP CONSOLE_GETINPUTOUTPUTCP
struct _CONSOLE_READOUTPUT CONSOLE_READOUTPUT
struct _CONSOLE_ADDGETALIAS * PCONSOLE_ADDGETALIAS
struct _CONSOLE_SETACTIVESCREENBUFFER * PCONSOLE_SETACTIVESCREENBUFFER
struct _CONSOLE_START_INFO * PCONSOLE_START_INFO
struct _CONSOLE_GETSCREENBUFFERINFO CONSOLE_GETSCREENBUFFERINFO
struct _CONSOLE_SETHANDLEINFO * PCONSOLE_SETHANDLEINFO
struct _CONSOLE_GETPROCESSLIST CONSOLE_GETPROCESSLIST
struct _CONSOLE_GETALLALIASES CONSOLE_GETALLALIASES
struct _CONSOLE_SETINPUTOUTPUTCP CONSOLE_SETINPUTOUTPUTCP
struct _CONSOLE_ADDGETALIAS CONSOLE_ADDGETALIAS
struct _CONSOLE_GETLARGESTWINDOWSIZE * PCONSOLE_GETLARGESTWINDOWSIZE
struct _CONSOLE_SETTEXTATTRIB * PCONSOLE_SETTEXTATTRIB
struct _CONSOLE_CREATESCREENBUFFER CONSOLE_CREATESCREENBUFFER
struct _CONSOLE_SETICON * PCONSOLE_SETICON
struct _CONSOLE_GETPROCESSLIST * PCONSOLE_GETPROCESSLIST
struct _CONSOLE_GETCOMMANDHISTORY * PCONSOLE_GETCOMMANDHISTORY
struct _CONSOLE_GETLARGESTWINDOWSIZE CONSOLE_GETLARGESTWINDOWSIZE
struct _CONSOLE_GETINPUT CONSOLE_GETINPUT
struct _CONSOLE_GETCURRENTFONT * PCONSOLE_GETCURRENTFONT
struct _CONSOLE_GETMOUSEINFO * PCONSOLE_GETMOUSEINFO
struct _CONSOLE_GETALLALIASESLENGTH * PCONSOLE_GETALLALIASESLENGTH
struct _CONSOLE_GETMOUSEINFO CONSOLE_GETMOUSEINFO
struct _CONSOLE_GETSETCONSOLEMODE * PCONSOLE_GETSETCONSOLEMODE
struct _CONSOLE_SETICON CONSOLE_SETICON
struct _CONSOLE_WRITEINPUT CONSOLE_WRITEINPUT
struct _CONSOLE_GETDISPLAYMODE * PCONSOLE_GETDISPLAYMODE
struct _CONSOLE_GETINPUTOUTPUTCP * PCONSOLE_GETINPUTOUTPUTCP
enum _CONSRV_API_NUMBER CONSRV_API_NUMBER
struct _CONSOLE_START_INFO CONSOLE_START_INFO
struct _CONSOLE_ALLOCCONSOLE * PCONSOLE_ALLOCCONSOLE
struct _CONSOLE_OPENCONSOLE * PCONSOLE_OPENCONSOLE
struct _CONSOLE_DUPLICATEHANDLE * PCONSOLE_DUPLICATEHANDLE
struct _CONSOLE_VERIFYHANDLE * PCONSOLE_VERIFYHANDLE
struct _CONSOLE_FREECONSOLE CONSOLE_FREECONSOLE
struct _CONSOLE_GETWINDOW CONSOLE_GETWINDOW
struct _CONSOLE_FLUSHINPUTBUFFER CONSOLE_FLUSHINPUTBUFFER
struct _CONSOLE_ATTACHCONSOLE CONSOLE_ATTACHCONSOLE
struct _CONSOLE_SETTEXTATTRIB CONSOLE_SETTEXTATTRIB
struct _CONSOLE_GETSETCONSOLETITLE CONSOLE_GETSETCONSOLETITLE
struct _CONSOLE_MENUCONTROL CONSOLE_MENUCONTROL
struct _CONSOLE_SETSCREENBUFFERSIZE * PCONSOLE_SETSCREENBUFFERSIZE
struct _CONSOLE_REGISTERCONSOLEIME * PCONSOLE_REGISTERCONSOLEIME
struct _CONSOLE_WRITEOUTPUT * PCONSOLE_WRITEOUTPUT
struct _CONSOLE_SETCURSOR CONSOLE_SETCURSOR
struct _CONSOLE_SETDISPLAYMODE CONSOLE_SETDISPLAYMODE
struct _CONSOLE_GETCURRENTFONT CONSOLE_GETCURRENTFONT
struct _CONSOLE_GETFONTINFO CONSOLE_GETFONTINFO
_CONSOLE_HANDLE_TYPE
Definition: conmsg.h:666
@ HANDLE_INPUT
Definition: conmsg.h:667
@ HANDLE_OUTPUT
Definition: conmsg.h:668
struct _CONSOLE_SETDISPLAYMODE * PCONSOLE_SETDISPLAYMODE
struct _CONSOLE_INVALIDATEDIBITS * PCONSOLE_INVALIDATEDIBITS
struct _CONSOLE_GETINPUT * PCONSOLE_GETINPUT
struct _CONSOLE_GETALIASESEXESLENGTH * PCONSOLE_GETALIASESEXESLENGTH
struct _CONSOLE_GETDISPLAYMODE CONSOLE_GETDISPLAYMODE
struct _CONSOLE_CLOSEHANDLE * PCONSOLE_CLOSEHANDLE
struct _CONSOLE_REGISTERVDM * PCONSOLE_REGISTERVDM
struct _CONSOLE_EXPUNGECOMMANDHISTORY * PCONSOLE_EXPUNGECOMMANDHISTORY
struct _CONSOLE_SETHANDLEINFO CONSOLE_SETHANDLEINFO
#define CONSRV_FIRST_API_NUMBER
Definition: conmsg.h:16
struct _CONSOLE_SETINPUTOUTPUTCP * PCONSOLE_SETINPUTOUTPUTCP
struct _CONSOLE_SCROLLSCREENBUFFER * PCONSOLE_SCROLLSCREENBUFFER
struct _CONSOLE_GETSETCONSOLEMODE CONSOLE_GETSETCONSOLEMODE
struct _CONSRV_API_CONNECTINFO CONSRV_API_CONNECTINFO
struct _CONSOLE_SETFONT * PCONSOLE_SETFONT
struct _CONSOLE_GETFONTSIZE * PCONSOLE_GETFONTSIZE
struct _CONSOLE_OUTPUTCODE * PCONSOLE_READOUTPUTCODE
struct _CONSOLE_SETCURSORPOSITION CONSOLE_SETCURSORPOSITION
struct _CONSOLE_CREATESCREENBUFFER * PCONSOLE_CREATESCREENBUFFER
struct _CONSOLE_SETHISTORYNUMBERCOMMANDS * PCONSOLE_SETHISTORYNUMBERCOMMANDS
struct _CONSOLE_GETNUMINPUTEVENTS CONSOLE_GETNUMINPUTEVENTS
struct _CONSOLE_GETLANGID CONSOLE_GETLANGID
struct _CONSOLE_GETFONTINFO * PCONSOLE_GETFONTINFO
struct _CONSOLE_GETALIASESEXESLENGTH CONSOLE_GETALIASESEXESLENGTH
struct _CONSOLE_SETMENUCLOSE CONSOLE_SETMENUCLOSE
struct _CONSOLE_DUPLICATEHANDLE CONSOLE_DUPLICATEHANDLE
_CONSRV_API_NUMBER
Definition: conmsg.h:20
@ ConsolepGetCP
Definition: conmsg.h:84
@ ConsolepSetCursorPosition
Definition: conmsg.h:43
@ ConsolepReadConsole
Definition: conmsg.h:50
@ ConsolepCloseHandle
Definition: conmsg.h:55
@ ConsolepMenuControl
Definition: conmsg.h:66
@ ConsolepSetHistory
Definition: conmsg.h:109
@ ConsolepGetHardwareState
Definition: conmsg.h:70
@ ConsolepGetMouseInfo
Definition: conmsg.h:34
@ ConsolepSetActiveScreenBuffer
Definition: conmsg.h:39
@ ConsolepSetCP
Definition: conmsg.h:85
@ ConsolepGetProcessList
Definition: conmsg.h:106
@ ConsolepDuplicateHandle
Definition: conmsg.h:52
@ ConsolepSetFont
Definition: conmsg.h:48
@ ConsolepUnregisterConsoleIME
Definition: conmsg.h:101
@ ConsolepAlloc
Definition: conmsg.h:57
@ ConsolepGetHandleInformation
Definition: conmsg.h:53
@ ConsolepCharType
Definition: conmsg.h:92
@ ConsolepReadConsoleOutputString
Definition: conmsg.h:26
@ ConsolepGetNlsMode
Definition: conmsg.h:98
@ ConsolepSetCursorMode
Definition: conmsg.h:94
@ ConsolepVerifyIoHandle
Definition: conmsg.h:56
@ ConsolepInvalidateBitMapRect
Definition: conmsg.h:62
@ ConsolepGetLangId
Definition: conmsg.h:103
@ ConsolepSetDisplayMode
Definition: conmsg.h:68
@ ConsolepCreateScreenBuffer
Definition: conmsg.h:61
@ ConsolepAttach
Definition: conmsg.h:104
@ ConsolepGenerateCtrlEvent
Definition: conmsg.h:89
@ ConsolepMaxApiNumber
Definition: conmsg.h:114
@ ConsolepSetNlsMode
Definition: conmsg.h:99
@ ConsolepGetConsoleInput
Definition: conmsg.h:22
@ ConsolepGetFontSize
Definition: conmsg.h:36
@ ConsolepWriteConsole
Definition: conmsg.h:51
@ ConsolepGetTitle
Definition: conmsg.h:59
@ ConsolepGetSelectionInfo
Definition: conmsg.h:105
@ ConsolepRegisterConsoleIME
Definition: conmsg.h:100
@ ConsolepGetCommandHistoryLength
Definition: conmsg.h:81
@ ConsolepVDMOperation
Definition: conmsg.h:63
@ ConsolepSetPalette
Definition: conmsg.h:67
@ ConsolepGetAlias
Definition: conmsg.h:74
@ ConsolepFlushInputBuffer
Definition: conmsg.h:40
@ ConsolepGetNumberOfFonts
Definition: conmsg.h:30
@ ConsolepSetLocalEUDC
Definition: conmsg.h:93
@ ConsolepGetAliasesLength
Definition: conmsg.h:75
@ ConsolepSetOS2OemFormat
Definition: conmsg.h:97
@ ConsolepGetAliasExes
Definition: conmsg.h:78
@ ConsolepWriteConsoleInput
Definition: conmsg.h:23
@ ConsolepSetCursor
Definition: conmsg.h:64
@ ConsolepWriteConsoleOutput
Definition: conmsg.h:25
@ ConsolepNotifyLastClose
Definition: conmsg.h:88
@ ConsolepGetCursorInfo
Definition: conmsg.h:33
@ ConsolepGetAliasExesLength
Definition: conmsg.h:76
@ ConsolepGetCursorMode
Definition: conmsg.h:95
@ ConsolepSetTitle
Definition: conmsg.h:60
@ ConsolepSetNumberOfCommands
Definition: conmsg.h:80
@ ConsolepSetWindowInfo
Definition: conmsg.h:45
@ ConsolepGetNumberOfInputEvents
Definition: conmsg.h:31
@ ConsolepGetMode
Definition: conmsg.h:29
@ ConsolepSetMenuClose
Definition: conmsg.h:87
@ ConsolepGetKeyboardLayoutName
Definition: conmsg.h:90
@ ConsolepReadConsoleOutput
Definition: conmsg.h:24
@ ConsolepGetHistory
Definition: conmsg.h:108
@ ConsolepSetCommandHistoryMode
Definition: conmsg.h:83
@ ConsolepSetKeyShortcuts
Definition: conmsg.h:86
@ ConsolepSetCursorInfo
Definition: conmsg.h:44
@ ConsolepGetCurrentFont
Definition: conmsg.h:37
@ ConsolepShowCursor
Definition: conmsg.h:65
@ ConsolepSetHardwareState
Definition: conmsg.h:71
@ ConsolepScrollScreenBuffer
Definition: conmsg.h:46
@ ConsolepOpenConsole
Definition: conmsg.h:21
@ ConsolepSetIcon
Definition: conmsg.h:49
@ ConsolepSetMode
Definition: conmsg.h:38
@ ConsolepGetLargestWindowSize
Definition: conmsg.h:41
@ ConsolepRegisterVDM
Definition: conmsg.h:69
@ ConsolepAddAlias
Definition: conmsg.h:73
@ ConsolepGetConsoleWindow
Definition: conmsg.h:91
@ ConsolepSetTextAttribute
Definition: conmsg.h:47
@ ConsolepGetCommandHistory
Definition: conmsg.h:82
@ ConsolepExpungeCommandHistory
Definition: conmsg.h:79
@ ConsolepGetFontInfo
Definition: conmsg.h:35
@ ConsolepGetDisplayMode
Definition: conmsg.h:72
@ ConsolepWriteConsoleOutputString
Definition: conmsg.h:27
@ ConsolepGetAliases
Definition: conmsg.h:77
@ ConsolepSetScreenBufferSize
Definition: conmsg.h:42
@ ConsolepSetHandleInformation
Definition: conmsg.h:54
@ ConsolepGetScreenBufferInfo
Definition: conmsg.h:32
@ ConsolepFillConsoleOutput
Definition: conmsg.h:28
@ ConsolepRegisterOS2
Definition: conmsg.h:96
@ ConsolepFree
Definition: conmsg.h:58
struct _CONSOLE_SETWINDOWINFO CONSOLE_SETWINDOWINFO
struct _CONSOLE_REGISTERVDM CONSOLE_REGISTERVDM
struct _CONSOLE_NOTIFYLASTCLOSE CONSOLE_NOTIFYLASTCLOSE
struct _CONSOLE_GENERATECTRLEVENT CONSOLE_GENERATECTRLEVENT
struct _CONSOLE_SETHISTORYNUMBERCOMMANDS CONSOLE_SETHISTORYNUMBERCOMMANDS
struct _CONSOLE_EXPUNGECOMMANDHISTORY CONSOLE_EXPUNGECOMMANDHISTORY
struct _CONSOLE_OUTPUTCODE CONSOLE_WRITEOUTPUTCODE
struct _CONSOLE_WRITECONSOLE * PCONSOLE_WRITECONSOLE
struct _CONSOLE_GETSETHWSTATE * PCONSOLE_GETSETHWSTATE
struct _CONSOLE_GENERATECTRLEVENT * PCONSOLE_GENERATECTRLEVENT
struct _CONSOLE_GETSETCURSORINFO CONSOLE_GETSETCURSORINFO
struct _CONSOLE_SCROLLSCREENBUFFER CONSOLE_SCROLLSCREENBUFFER
struct _CONSOLE_FLUSHINPUTBUFFER * PCONSOLE_FLUSHINPUTBUFFER
struct _CONSOLE_SHOWCURSOR CONSOLE_SHOWCURSOR
struct _CONSOLE_GETCOMMANDHISTORYLENGTH CONSOLE_GETCOMMANDHISTORYLENGTH
struct _CONSOLE_GETNUMFONTS * PCONSOLE_GETNUMFONTS
struct _CONSOLE_SETMENUCLOSE * PCONSOLE_SETMENUCLOSE
struct _CONSOLE_GETSETHISTORYINFO CONSOLE_GETSETHISTORYINFO
struct _CONSOLE_SETCURSOR * PCONSOLE_SETCURSOR
struct _CONSOLE_GETSCREENBUFFERINFO * PCONSOLE_GETSCREENBUFFERINFO
struct _CONSOLE_GETCOMMANDHISTORYLENGTH * PCONSOLE_GETCOMMANDHISTORYLENGTH
struct _CONSOLE_UNREGISTERCONSOLEIME CONSOLE_UNREGISTERCONSOLEIME
struct _CONSOLE_PROPERTIES CONSOLE_PROPERTIES
@ MAX_INIT_EVENTS
Definition: conmsg.h:165
@ INIT_SUCCESS
Definition: conmsg.h:163
@ INIT_FAILURE
Definition: conmsg.h:164
struct _CONSOLE_GETSETHISTORYINFO * PCONSOLE_GETSETHISTORYINFO
struct _CONSOLE_WRITEOUTPUT CONSOLE_WRITEOUTPUT
struct _CONSOLE_ATTACHCONSOLE * PCONSOLE_ATTACHCONSOLE
struct _CONSOLE_GETALIASESEXES * PCONSOLE_GETALIASESEXES
struct _CONSOLE_SHOWCURSOR * PCONSOLE_SHOWCURSOR
struct _CONSRV_API_CONNECTINFO * PCONSRV_API_CONNECTINFO
enum _CONSOLE_HANDLE_TYPE CONSOLE_HANDLE_TYPE
struct _CONSOLE_NOTIFYLASTCLOSE * PCONSOLE_NOTIFYLASTCLOSE
struct _CONSOLE_MENUCONTROL * PCONSOLE_MENUCONTROL
struct _CONSOLE_GETSELECTIONINFO CONSOLE_GETSELECTIONINFO
struct _CONSOLE_SETPALETTE CONSOLE_SETPALETTE
struct _CONSOLE_GETHANDLEINFO * PCONSOLE_GETHANDLEINFO
struct _CONSOLE_GETNUMFONTS CONSOLE_GETNUMFONTS
struct _CONSOLE_GETSETCURSORINFO * PCONSOLE_GETSETCURSORINFO
struct _CONSOLE_OUTPUTCODE CONSOLE_READOUTPUTCODE
struct _CONSOLE_GETSELECTIONINFO * PCONSOLE_GETSELECTIONINFO
struct _CONSOLE_API_MESSAGE CONSOLE_API_MESSAGE
#define CHECK_API_MSG_SIZE(type)
Definition: csrmsg.h:148
ULONG CSR_API_NUMBER
Definition: csrmsg.h:35
#define LF_FACESIZE
Definition: dimm.idl:39
#define MAX_PATH
Definition: compat.h:34
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
unsigned short WORD
Definition: ntddk_ex.h:93
#define C_ASSERT(e)
Definition: intsafe.h:73
USHORT LANGID
Definition: mui.h:9
static HICON
Definition: imagelist.c:80
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
Definition: ordinal.c:63
unsigned int UINT
Definition: ndis.h:50
DWORD * PDWORD
Definition: pedump.c:68
unsigned short USHORT
Definition: pedump.c:61
HANDLE ConsoleHandle
Definition: conmsg.h:730
USHORT TargetLength
Definition: conmsg.h:732
USHORT SourceLength
Definition: conmsg.h:731
BOOLEAN Unicode2
Definition: conmsg.h:738
LPTHREAD_START_ROUTINE PropRoutine
Definition: conmsg.h:286
PCONSOLE_START_INFO ConsoleStartInfo
Definition: conmsg.h:274
LPTHREAD_START_ROUTINE CtrlRoutine
Definition: conmsg.h:285
CONSOLE_GETMOUSEINFO GetMouseInfoRequest
Definition: conmsg.h:946
CONSOLE_SETCURSORPOSITION SetCursorPositionRequest
Definition: conmsg.h:945
CONSOLE_GETALIASESEXES GetAliasesExesRequest
Definition: conmsg.h:1002
CONSOLE_OPENCONSOLE OpenConsoleRequest
Definition: conmsg.h:934
CONSOLE_SETHISTORYNUMBERCOMMANDS SetHistoryNumberCommandsRequest
Definition: conmsg.h:1010
CONSOLE_GETCOMMANDHISTORYLENGTH GetCommandHistoryLengthRequest
Definition: conmsg.h:1007
CONSOLE_SETTEXTATTRIB SetTextAttribRequest
Definition: conmsg.h:996
CONSOLE_GETSETHISTORYINFO HistoryInfoRequest
Definition: conmsg.h:1009
CONSOLE_GETSETHWSTATE HardwareStateRequest
Definition: conmsg.h:962
CONSOLE_CLOSEHANDLE CloseHandleRequest
Definition: conmsg.h:935
CONSOLE_GETFONTINFO GetFontInfoRequest
Definition: conmsg.h:966
CONSOLE_ALLOCCONSOLE AllocConsoleRequest
Definition: conmsg.h:924
CONSOLE_READOUTPUT ReadOutputRequest
Definition: conmsg.h:985
CONSOLE_SETPALETTE SetPaletteRequest
Definition: conmsg.h:973
CONSOLE_SETDISPLAYMODE SetDisplayModeRequest
Definition: conmsg.h:961
CONSOLE_REGISTERCONSOLEIME RegisterConsoleIME
Definition: conmsg.h:1023
CONSOLE_GETALLALIASESLENGTH GetAllAliasesLengthRequest
Definition: conmsg.h:1001
NTSTATUS Status
Definition: conmsg.h:919
CONSOLE_ADDGETALIAS ConsoleAliasRequest
Definition: conmsg.h:999
CONSOLE_FILLOUTPUTCODE FillOutputRequest
Definition: conmsg.h:995
CONSOLE_GETNUMINPUTEVENTS GetNumInputEventsRequest
Definition: conmsg.h:987
CONSOLE_GETINPUTOUTPUTCP GetConsoleCPRequest
Definition: conmsg.h:1014
CONSOLE_MENUCONTROL MenuControlRequest
Definition: conmsg.h:976
union _CONSOLE_API_MESSAGE::@3541 Data
CONSOLE_REGISTERVDM RegisterVDMRequest
Definition: conmsg.h:1020
CONSOLE_GETSETCONSOLEMODE ConsoleModeRequest
Definition: conmsg.h:959
CONSOLE_GETSELECTIONINFO GetSelectionInfoRequest
Definition: conmsg.h:955
CONSOLE_GETNUMFONTS GetNumFontsRequest
Definition: conmsg.h:965
CONSOLE_GETSCREENBUFFERINFO ScreenBufferInfoRequest
Definition: conmsg.h:951
CONSOLE_WRITEOUTPUTCODE WriteOutputCodeRequest
Definition: conmsg.h:993
CONSOLE_GETLANGID LangIdRequest
Definition: conmsg.h:1016
CONSOLE_WRITECONSOLE WriteConsoleRequest
Definition: conmsg.h:990
CONSOLE_VERIFYHANDLE VerifyHandleRequest
Definition: conmsg.h:936
CONSOLE_SETACTIVESCREENBUFFER SetScreenBufferRequest
Definition: conmsg.h:950
CONSOLE_GETALIASESEXESLENGTH GetAliasesExesLengthRequest
Definition: conmsg.h:1003
CONSOLE_WRITEOUTPUT WriteOutputRequest
Definition: conmsg.h:992
CONSOLE_SETCURSOR SetCursorRequest
Definition: conmsg.h:943
CONSOLE_FLUSHINPUTBUFFER FlushInputBufferRequest
Definition: conmsg.h:956
CONSOLE_DUPLICATEHANDLE DuplicateHandleRequest
Definition: conmsg.h:937
CONSOLE_GETKBDLAYOUTNAME GetKbdLayoutNameRequest
Definition: conmsg.h:1017
CONSOLE_GETPROCESSLIST GetProcessListRequest
Definition: conmsg.h:929
CONSOLE_GETCOMMANDHISTORY GetCommandHistoryRequest
Definition: conmsg.h:1006
CONSOLE_READOUTPUTCODE ReadOutputCodeRequest
Definition: conmsg.h:986
CONSOLE_SETSCREENBUFFERSIZE SetScreenBufferSizeRequest
Definition: conmsg.h:952
CONSOLE_SETMENUCLOSE SetMenuCloseRequest
Definition: conmsg.h:977
CONSOLE_FREECONSOLE FreeConsoleRequest
Definition: conmsg.h:926
CONSOLE_EXPUNGECOMMANDHISTORY ExpungeCommandHistoryRequest
Definition: conmsg.h:1008
CONSOLE_GETWINDOW GetWindowRequest
Definition: conmsg.h:979
CONSOLE_SETHANDLEINFO SetHandleInfoRequest
Definition: conmsg.h:939
CONSOLE_GETSETCONSOLETITLE TitleRequest
Definition: conmsg.h:974
CONSOLE_GETCURRENTFONT GetCurrentFontRequest
Definition: conmsg.h:968
CONSOLE_NOTIFYLASTCLOSE NotifyLastCloseRequest
Definition: conmsg.h:931
CONSOLE_GETALLALIASES GetAllAliasesRequest
Definition: conmsg.h:1000
CONSOLE_GETDISPLAYMODE GetDisplayModeRequest
Definition: conmsg.h:960
CONSOLE_READCONSOLE ReadConsoleRequest
Definition: conmsg.h:983
CONSOLE_SCROLLSCREENBUFFER ScrollScreenBufferRequest
Definition: conmsg.h:953
CONSOLE_GETFONTSIZE GetFontSizeRequest
Definition: conmsg.h:967
CSR_API_NUMBER ApiNumber
Definition: conmsg.h:918
CONSOLE_ATTACHCONSOLE AttachConsoleRequest
Definition: conmsg.h:925
PORT_MESSAGE Header
Definition: conmsg.h:915
CONSOLE_CREATESCREENBUFFER CreateScreenBufferRequest
Definition: conmsg.h:949
CONSOLE_UNREGISTERCONSOLEIME UnregisterConsoleIME
Definition: conmsg.h:1024
CONSOLE_GETSETCURSORINFO CursorInfoRequest
Definition: conmsg.h:944
PCSR_CAPTURE_BUFFER CsrCaptureData
Definition: conmsg.h:917
CONSOLE_GETINPUT GetInputRequest
Definition: conmsg.h:984
CONSOLE_SETFONT SetFontRequest
Definition: conmsg.h:969
CONSOLE_GETHANDLEINFO GetHandleInfoRequest
Definition: conmsg.h:938
CONSOLE_SETWINDOWINFO SetWindowInfoRequest
Definition: conmsg.h:978
CONSOLE_INVALIDATEDIBITS InvalidateDIBitsRequest
Definition: conmsg.h:972
CONSOLE_GETLARGESTWINDOWSIZE GetLargestWindowSizeRequest
Definition: conmsg.h:975
CONSOLE_SHOWCURSOR ShowCursorRequest
Definition: conmsg.h:942
CONSOLE_SETINPUTOUTPUTCP SetConsoleCPRequest
Definition: conmsg.h:1015
CONSOLE_SETHISTORYMODE SetHistoryModeRequest
Definition: conmsg.h:1011
CONSOLE_SETICON SetIconRequest
Definition: conmsg.h:980
CONSOLE_WRITEINPUT WriteInputRequest
Definition: conmsg.h:991
CONSOLE_GENERATECTRLEVENT GenerateCtrlEventRequest
Definition: conmsg.h:930
LPTHREAD_START_ROUTINE CtrlRoutine
Definition: conmsg.h:299
LPTHREAD_START_ROUTINE PropRoutine
Definition: conmsg.h:300
PCONSOLE_START_INFO ConsoleStartInfo
Definition: conmsg.h:297
HANDLE ConsoleHandle
Definition: conmsg.h:626
CONSOLE_GRAPHICS_BUFFER_INFO GraphicsBufferInfo
Definition: conmsg.h:456
CODE_TYPE CodeType
Definition: conmsg.h:556
CODE_ELEMENT Code
Definition: conmsg.h:557
HANDLE ConsoleHandle
Definition: conmsg.h:305
ULONG AliasesBufferLength
Definition: conmsg.h:748
HANDLE ConsoleHandle
Definition: conmsg.h:411
BOOLEAN MaximumWindow
Definition: conmsg.h:413
HANDLE OutputHandle
Definition: conmsg.h:412
PCONSOLE_FONT_INFO FontInfo
Definition: conmsg.h:414
HANDLE ConsoleHandle
Definition: conmsg.h:420
HANDLE OutputHandle
Definition: conmsg.h:421
ULONG NumRecords
Definition: conmsg.h:568
PINPUT_RECORD RecordBufPtr
Definition: conmsg.h:567
HANDLE ConsoleHandle
Definition: conmsg.h:564
BOOLEAN Unicode
Definition: conmsg.h:570
HANDLE InputHandle
Definition: conmsg.h:565
INPUT_RECORD RecordStaticBuffer[5]
Definition: conmsg.h:566
CHAR LayoutBuffer[KL_NAMELENGTH *sizeof(WCHAR)]
Definition: conmsg.h:871
HANDLE ConsoleHandle
Definition: conmsg.h:864
HANDLE ConsoleHandle
Definition: conmsg.h:355
HANDLE ConsoleHandle
Definition: conmsg.h:405
CONSOLE_SELECTION_INFO Info
Definition: conmsg.h:844
CONSOLE_CURSOR_INFO Info
Definition: conmsg.h:346
HANDLE ConsoleHandle
Definition: conmsg.h:716
HANDLE ConsoleHandle
Definition: conmsg.h:692
HANDLE OutputHandle
Definition: conmsg.h:693
CONSOLE_HANDLE_TYPE HandleType
Definition: conmsg.h:674
HANDLE ConsoleHandle
Definition: conmsg.h:673
CODE_TYPE CodeType
Definition: conmsg.h:535
HANDLE ConsoleHandle
Definition: conmsg.h:531
CHAR CodeStaticBuffer[80]
Definition: conmsg.h:536
HANDLE OutputHandle
Definition: conmsg.h:532
WORD wPopupFillAttribute
Definition: conmsg.h:130
COORD dwWindowSize
Definition: conmsg.h:139
WCHAR FaceName[LF_FACESIZE]
Definition: conmsg.h:146
COORD dwWindowOrigin
Definition: conmsg.h:140
UINT uHistoryBufferSize
Definition: conmsg.h:152
COLORREF ColorTable[16]
Definition: conmsg.h:155
UINT uNumberOfHistoryBuffers
Definition: conmsg.h:153
DWORD dwStartupFlags
Definition: conmsg.h:126
DWORD nInputBufferSize
Definition: conmsg.h:142
COORD dwScreenBufferSize
Definition: conmsg.h:138
ULONG CtrlWakeupMask
Definition: conmsg.h:267
HANDLE InputHandle
Definition: conmsg.h:256
ULONG ControlKeyState
Definition: conmsg.h:268
ULONG CaptureBufferSize
Definition: conmsg.h:264
HANDLE ConsoleHandle
Definition: conmsg.h:255
CHAR StaticBuffer[80]
Definition: conmsg.h:260
ULONG InitialNumBytes
Definition: conmsg.h:266
PCHAR_INFO CharInfo
Definition: conmsg.h:590
BOOLEAN Unicode
Definition: conmsg.h:593
HANDLE OutputHandle
Definition: conmsg.h:587
SMALL_RECT ReadRegion
Definition: conmsg.h:592
CHAR_INFO StaticBuffer
Definition: conmsg.h:589
HANDLE ConsoleHandle
Definition: conmsg.h:586
HANDLE EndHardwareEvent
Definition: conmsg.h:880
HANDLE ErrorHardwareEvent
Definition: conmsg.h:881
ULONG UnusedBufferLength
Definition: conmsg.h:891
HANDLE ConsoleHandle
Definition: conmsg.h:877
ULONG VideoStateLength
Definition: conmsg.h:886
HANDLE StartHardwareEvent
Definition: conmsg.h:879
SMALL_RECT ClipRectangle
Definition: conmsg.h:502
SMALL_RECT ScrollRectangle
Definition: conmsg.h:501
HANDLE ConsoleHandle
Definition: conmsg.h:337
HCURSOR CursorHandle
Definition: conmsg.h:339
HANDLE OutputHandle
Definition: conmsg.h:338
HANDLE ConsoleHandle
Definition: conmsg.h:437
HANDLE OutputHandle
Definition: conmsg.h:438
ULONG FontIndex
Definition: conmsg.h:439
HANDLE ConsoleHandle
Definition: conmsg.h:722
HICON IconHandle
Definition: conmsg.h:723
HANDLE ConsoleHandle
Definition: conmsg.h:701
HANDLE OutputHandle
Definition: conmsg.h:478
HANDLE ConsoleHandle
Definition: conmsg.h:477
HPALETTE PaletteHandle
Definition: conmsg.h:479
SMALL_RECT WindowRect
Definition: conmsg.h:710
HANDLE OutputHandle
Definition: conmsg.h:330
HANDLE ConsoleHandle
Definition: conmsg.h:329
HANDLE ErrorHandle
Definition: conmsg.h:174
HANDLE InputWaitHandle
Definition: conmsg.h:171
HANDLE ConsoleHandle
Definition: conmsg.h:170
HANDLE InputHandle
Definition: conmsg.h:172
HANDLE OutputHandle
Definition: conmsg.h:173
HANDLE InitEvents[MAX_INIT_EVENTS]
Definition: conmsg.h:175
HANDLE ConsoleHandle
Definition: conmsg.h:633
CHAR StaticBuffer[80]
Definition: conmsg.h:239
BOOLEAN UsingStaticBuffer
Definition: conmsg.h:246
HANDLE ConsoleHandle
Definition: conmsg.h:236
BOOLEAN AppendToEnd
Definition: conmsg.h:581
PINPUT_RECORD RecordBufPtr
Definition: conmsg.h:578
HANDLE InputHandle
Definition: conmsg.h:576
BOOLEAN Unicode
Definition: conmsg.h:580
INPUT_RECORD RecordStaticBuffer[5]
Definition: conmsg.h:577
HANDLE ConsoleHandle
Definition: conmsg.h:575
HANDLE ConsoleHandle
Definition: conmsg.h:598
SMALL_RECT WriteRegion
Definition: conmsg.h:604
BOOLEAN UseVirtualMemory
Definition: conmsg.h:612
HANDLE OutputHandle
Definition: conmsg.h:599
CHAR_INFO StaticBuffer
Definition: conmsg.h:601
PCHAR_INFO CharInfo
Definition: conmsg.h:602
BOOLEAN IsWindowVisible
Definition: conmsg.h:189
WCHAR ConsoleTitle[MAX_PATH+1]
Definition: conmsg.h:198
LPTHREAD_START_ROUTINE PropRoutine
Definition: conmsg.h:194
LPTHREAD_START_ROUTINE ImeRoutine
Definition: conmsg.h:195
WCHAR AppName[128]
Definition: conmsg.h:204
WCHAR CurDir[MAX_PATH+1]
Definition: conmsg.h:206
CONSOLE_START_INFO ConsoleStartInfo
Definition: conmsg.h:186
LPTHREAD_START_ROUTINE CtrlRoutine
Definition: conmsg.h:193
Definition: bl.h:1338
int32_t INT
Definition: typedefs.h:58
uint16_t * PWCHAR
Definition: typedefs.h:56
uint32_t ULONG
Definition: typedefs.h:59
WORD Attribute
Definition: conmsg.h:526
WCHAR UnicodeChar
Definition: conmsg.h:525
CHAR AsciiChar
Definition: conmsg.h:524
DWORD(WINAPI * LPTHREAD_START_ROUTINE)(LPVOID)
Definition: winbase.h:754
DWORD COLORREF
Definition: windef.h:300
HICON HCURSOR
Definition: windef.h:299
#define KL_NAMELENGTH
Definition: winuser.h:122
__wchar_t WCHAR
Definition: xmlstorage.h:180
WCHAR * LPWSTR
Definition: xmlstorage.h:184
char CHAR
Definition: xmlstorage.h:175