ReactOS  0.4.14-dev-593-g1793dcc
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
19 typedef enum _CONSRV_API_NUMBER
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 //
120 typedef struct _CONSOLE_PROPERTIES
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 
161 enum
162 {
163  INIT_SUCCESS, // STATUS_WAIT_0
164  INIT_FAILURE, // STATUS_WAIT_1
166 };
167 
168 typedef struct _CONSOLE_START_INFO
169 {
176 
179 
180 #if defined(_M_IX86)
181 C_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)
210 C_ASSERT(sizeof(CONSRV_API_CONNECTINFO) == 0x638);
211 #endif
212 
214 {
219 
221 {
226 
228 {
231 
232 
233 
234 typedef struct _CONSOLE_WRITECONSOLE
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 
253 typedef struct _CONSOLE_READCONSOLE
254 {
257 
259 
261  PVOID Buffer; // BufPtr
263 
265 
271 
272 typedef struct _CONSOLE_ALLOCCONSOLE
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 
303 typedef struct _CONSOLE_FREECONSOLE
304 {
307 
309 {
319 
321 {
326 
327 typedef struct _CONSOLE_SHOWCURSOR
328 {
334 
335 typedef struct _CONSOLE_SETCURSOR
336 {
341 
343 {
347 /*
348  DWORD Size;
349  BOOLEAN Visible;
350 */
352 
353 typedef struct _CONSOLE_GETMOUSEINFO
354 {
358 
360 {
365 
367 {
372 
374 {
376  DWORD DisplayMode; // ModeFlags
378 
380 {
383  DWORD 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 
403 typedef struct _CONSOLE_GETNUMFONTS
404 {
408 
409 typedef struct _CONSOLE_GETFONTINFO
410 {
417 
418 typedef struct _CONSOLE_GETFONTSIZE
419 {
425 
427 {
434 
435 typedef struct _CONSOLE_SETFONT
436 {
441 
442 
443 
445 {
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  */
456  CONSOLE_GRAPHICS_BUFFER_INFO GraphicsBufferInfo;
459  HANDLE OutputHandle; /* Handle to newly created screen buffer */
461 
463 {
465  HANDLE OutputHandle; /* Handle to screen buffer to switch to */
467 
469 {
474 
475 typedef struct _CONSOLE_SETPALETTE
476 {
479  HPALETTE PaletteHandle;
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  */
515 typedef enum _CODE_TYPE
516 {
517  CODE_ASCII = 0x01,
518  CODE_UNICODE = 0x02,
520 } CODE_TYPE;
521 
522 typedef union _CODE_ELEMENT
523 {
527 } CODE_ELEMENT;
528 
529 typedef struct _CONSOLE_OUTPUTCODE
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 
562 typedef struct _CONSOLE_GETINPUT
563 {
572 
573 typedef struct _CONSOLE_WRITEINPUT
574 {
583 
584 typedef struct _CONSOLE_READOUTPUT
585 {
588 
591 
595 
596 typedef struct _CONSOLE_WRITEOUTPUT
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 
624 typedef struct _CONSOLE_CLOSEHANDLE
625 {
629 
630 typedef struct _CONSOLE_VERIFYHANDLE
631 {
636 
638 {
646 
648 {
653 
655 {
661 
662 /*
663  * Type of handles.
664  */
666 {
667  HANDLE_INPUT = 0x01,
670 
671 typedef struct _CONSOLE_OPENCONSOLE
672 {
680 
681 
682 
684 {
689 
690 typedef struct _CONSOLE_MENUCONTROL
691 {
698 
699 typedef struct _CONSOLE_SETMENUCLOSE
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 
714 typedef struct _CONSOLE_GETWINDOW
715 {
719 
720 typedef struct _CONSOLE_SETICON
721 {
725 
726 
727 
728 typedef struct _CONSOLE_ADDGETALIAS
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 
863 {
865  CHAR LayoutBuffer[KL_NAMELENGTH * sizeof(WCHAR)]; // Can hold up to 9 wchars
868 
869 typedef struct _CONSOLE_REGISTERVDM
870 {
876 
877  /* Unused member */
879 
881  PVOID VideoState; // PVIDEO_HARDWARE_STATE_HEADER
882 
883  /* Unused members */
886 
890 
891 typedef struct _CONSOLE_API_MESSAGE
892 {
894 
899  union
900  {
901  /* Console initialization and uninitialization */
905 
906  /* Processes */
910 
911  /* Handles */
918 
919  /* Cursor & Mouse */
925 
926  /* Screen-buffer */
932 
935 
936  /* Console mode */
941 
942  /* Console fonts */
948 
949  /* Console window */
959 
960  /* Read */
961  CONSOLE_READCONSOLE ReadConsoleRequest; // SrvReadConsole / ReadConsole
962  CONSOLE_GETINPUT GetInputRequest; // SrvGetConsoleInput / PeekConsoleInput & ReadConsoleInput
963  CONSOLE_READOUTPUT ReadOutputRequest; // SrvReadConsoleOutput / ReadConsoleOutput
964  CONSOLE_READOUTPUTCODE ReadOutputCodeRequest; // SrvReadConsoleOutputString / ReadConsoleOutputAttribute & ReadConsoleOutputCharacter
966 
967  /* Write */
968  CONSOLE_WRITECONSOLE WriteConsoleRequest; // SrvWriteConsole / WriteConsole
972 
975 
976  /* Aliases */
982 
983  /* History */
990 
991  /* Input and Output Code Pages; keyboard */
995 
996  /* Virtual DOS Machine */
998  } Data;
1000 
1001 // Check that a CONSOLE_API_MESSAGE can hold in a CSR_API_MESSAGE.
1003 
1004 #endif // _CONMSG_H
1005 
1006 /* EOF */
CONSOLE_SETHANDLEINFO SetHandleInfoRequest
Definition: conmsg.h:917
HANDLE OutputHandle
Definition: conmsg.h:587
CONSOLE_VERIFYHANDLE VerifyHandleRequest
Definition: conmsg.h:914
UINT uHistoryBufferSize
Definition: conmsg.h:152
struct _CONSOLE_OPENCONSOLE CONSOLE_OPENCONSOLE
struct _CONSOLE_SETTEXTATTRIB CONSOLE_SETTEXTATTRIB
ULONG CSR_API_NUMBER
Definition: csrmsg.h:35
CONSOLE_GETNUMFONTS GetNumFontsRequest
Definition: conmsg.h:943
HANDLE OutputHandle
Definition: conmsg.h:173
HANDLE ConsoleHandle
Definition: conmsg.h:598
HANDLE ErrorHandle
Definition: conmsg.h:174
SMALL_RECT ScrollRectangle
Definition: conmsg.h:501
struct _CONSOLE_GETHANDLEINFO CONSOLE_GETHANDLEINFO
SMALL_RECT ClipRectangle
Definition: conmsg.h:502
CONSOLE_DUPLICATEHANDLE DuplicateHandleRequest
Definition: conmsg.h:915
struct _CONSOLE_SETCURSOR CONSOLE_SETCURSOR
HANDLE EndHardwareEvent
Definition: conmsg.h:874
struct _CONSOLE_FILLOUTPUTCODE CONSOLE_FILLOUTPUTCODE
struct _CONSOLE_GETSELECTIONINFO CONSOLE_GETSELECTIONINFO
static HICON
Definition: imagelist.c:84
CONSOLE_HANDLE_TYPE HandleType
Definition: conmsg.h:674
ULONG NumRecords
Definition: conmsg.h:568
LPTHREAD_START_ROUTINE PropRoutine
Definition: conmsg.h:286
DWORD(WINAPI * LPTHREAD_START_ROUTINE)(LPVOID)
Definition: winbase.h:707
BOOLEAN IsWindowVisible
Definition: conmsg.h:189
struct _CONSOLE_GETALLALIASES CONSOLE_GETALLALIASES
#define KL_NAMELENGTH
Definition: winuser.h:122
struct _CONSOLE_EXPUNGECOMMANDHISTORY CONSOLE_EXPUNGECOMMANDHISTORY
struct _CONSOLE_GETALLALIASES * PCONSOLE_GETALLALIASES
#define LF_FACESIZE
Definition: dimm.idl:39
struct _CONSOLE_SHOWCURSOR * PCONSOLE_SHOWCURSOR
struct _CONSOLE_GETSETHWSTATE CONSOLE_GETSETHWSTATE
struct _CONSOLE_SETHANDLEINFO * PCONSOLE_SETHANDLEINFO
CONSOLE_MENUCONTROL MenuControlRequest
Definition: conmsg.h:954
struct _CONSOLE_FREECONSOLE * PCONSOLE_FREECONSOLE
struct _CONSOLE_GETMOUSEINFO * PCONSOLE_GETMOUSEINFO
_CODE_TYPE
Definition: conmsg.h:515
enum _CONSRV_API_NUMBER CONSRV_API_NUMBER
struct _CONSOLE_CLOSEHANDLE * PCONSOLE_CLOSEHANDLE
CONSOLE_GENERATECTRLEVENT GenerateCtrlEventRequest
Definition: conmsg.h:908
CONSOLE_CREATESCREENBUFFER CreateScreenBufferRequest
Definition: conmsg.h:927
struct _CONSOLE_OPENCONSOLE * PCONSOLE_OPENCONSOLE
struct _CONSOLE_GETPROCESSLIST * PCONSOLE_GETPROCESSLIST
CONSOLE_START_INFO ConsoleStartInfo
Definition: conmsg.h:186
HANDLE InputHandle
Definition: conmsg.h:256
struct _CONSOLE_PROPERTIES CONSOLE_PROPERTIES
CONSOLE_GETSETHWSTATE HardwareStateRequest
Definition: conmsg.h:940
struct _CONSOLE_GETCURRENTFONT * PCONSOLE_GETCURRENTFONT
CONSOLE_SHOWCURSOR ShowCursorRequest
Definition: conmsg.h:920
LPTHREAD_START_ROUTINE CtrlRoutine
Definition: conmsg.h:299
COLORREF ColorTable[16]
Definition: conmsg.h:155
struct _CONSOLE_GETCOMMANDHISTORY CONSOLE_GETCOMMANDHISTORY
struct _CONSOLE_START_INFO * PCONSOLE_START_INFO
struct _CONSOLE_VERIFYHANDLE CONSOLE_VERIFYHANDLE
struct _CONSOLE_NOTIFYLASTCLOSE CONSOLE_NOTIFYLASTCLOSE
struct _CONSOLE_GETALIASESEXES * PCONSOLE_GETALIASESEXES
HPALETTE PaletteHandle
Definition: conmsg.h:479
CODE_TYPE CodeType
Definition: conmsg.h:535
struct _CONSOLE_GETKBDLAYOUTNAME CONSOLE_GETKBDLAYOUTNAME
HANDLE OutputHandle
Definition: conmsg.h:438
WCHAR UnicodeChar
Definition: conmsg.h:525
_CONSOLE_HANDLE_TYPE
Definition: conmsg.h:665
HANDLE ConsoleHandle
Definition: conmsg.h:871
char CHAR
Definition: xmlstorage.h:175
HANDLE ConsoleHandle
Definition: conmsg.h:564
struct _CONSOLE_SETHISTORYNUMBERCOMMANDS CONSOLE_SETHISTORYNUMBERCOMMANDS
struct _CONSOLE_API_MESSAGE * PCONSOLE_API_MESSAGE
HANDLE ConsoleHandle
Definition: conmsg.h:305
ULONG ControlKeyState
Definition: conmsg.h:268
CONSOLE_GETFONTSIZE GetFontSizeRequest
Definition: conmsg.h:945
CONSOLE_ALLOCCONSOLE AllocConsoleRequest
Definition: conmsg.h:902
LONG NTSTATUS
Definition: precomp.h:26
HANDLE InitEvents[MAX_INIT_EVENTS]
Definition: conmsg.h:175
struct _CONSOLE_SETPALETTE CONSOLE_SETPALETTE
HANDLE InputHandle
Definition: conmsg.h:576
LPTHREAD_START_ROUTINE CtrlRoutine
Definition: conmsg.h:285
struct _CONSOLE_SETICON * PCONSOLE_SETICON
struct _CONSOLE_SETPALETTE * PCONSOLE_SETPALETTE
CSR_API_NUMBER ApiNumber
Definition: conmsg.h:896
BOOLEAN Unicode2
Definition: conmsg.h:738
CONSOLE_GETALLALIASES GetAllAliasesRequest
Definition: conmsg.h:978
struct _CONSOLE_REGISTERVDM * PCONSOLE_REGISTERVDM
struct _CONSOLE_GETSETHWSTATE * PCONSOLE_GETSETHWSTATE
struct _CONSOLE_SETFONT CONSOLE_SETFONT
CONSOLE_GETSETHISTORYINFO HistoryInfoRequest
Definition: conmsg.h:987
CONSOLE_SETICON SetIconRequest
Definition: conmsg.h:958
struct _CONSOLE_GETDISPLAYMODE * PCONSOLE_GETDISPLAYMODE
struct _CONSOLE_GETINPUTOUTPUTCP * PCONSOLE_GETINPUTOUTPUTCP
struct _CONSOLE_SETCURSORPOSITION * PCONSOLE_SETCURSORPOSITION
struct _CONSOLE_OUTPUTCODE * PCONSOLE_WRITEOUTPUTCODE
struct _CONSOLE_GETDISPLAYMODE CONSOLE_GETDISPLAYMODE
BOOLEAN Unicode
Definition: conmsg.h:593
struct _CONSOLE_GETINPUT CONSOLE_GETINPUT
struct _CONSOLE_EXPUNGECOMMANDHISTORY * PCONSOLE_EXPUNGECOMMANDHISTORY
uint16_t * PWCHAR
Definition: typedefs.h:54
HICON HCURSOR
Definition: windef.h:299
struct _CONSOLE_SETTEXTATTRIB * PCONSOLE_SETTEXTATTRIB
WCHAR AppName[128]
Definition: conmsg.h:204
CODE_ELEMENT Code
Definition: conmsg.h:557
HANDLE OutputHandle
Definition: conmsg.h:693
HCURSOR CursorHandle
Definition: conmsg.h:339
HANDLE OutputHandle
Definition: conmsg.h:478
INPUT_RECORD RecordStaticBuffer[5]
Definition: conmsg.h:566
struct _CONSOLE_SETDISPLAYMODE CONSOLE_SETDISPLAYMODE
struct _CONSOLE_READCONSOLE * PCONSOLE_READCONSOLE
int32_t INT
Definition: typedefs.h:56
HANDLE InputHandle
Definition: conmsg.h:565
struct _CONSOLE_GENERATECTRLEVENT CONSOLE_GENERATECTRLEVENT
struct _CONSOLE_GETWINDOW CONSOLE_GETWINDOW
CHAR StaticBuffer[80]
Definition: conmsg.h:260
struct _CONSOLE_GETSELECTIONINFO * PCONSOLE_GETSELECTIONINFO
struct _CONSOLE_SCROLLSCREENBUFFER * PCONSOLE_SCROLLSCREENBUFFER
CONSOLE_GETSETCURSORINFO CursorInfoRequest
Definition: conmsg.h:922
struct _CONSOLE_WRITEINPUT CONSOLE_WRITEINPUT
CONSOLE_SETMENUCLOSE SetMenuCloseRequest
Definition: conmsg.h:955
struct _CONSOLE_GETCOMMANDHISTORYLENGTH CONSOLE_GETCOMMANDHISTORYLENGTH
struct _CONSOLE_GETALIASESEXESLENGTH CONSOLE_GETALIASESEXESLENGTH
struct _CONSOLE_SETMENUCLOSE CONSOLE_SETMENUCLOSE
struct _CONSOLE_CREATESCREENBUFFER CONSOLE_CREATESCREENBUFFER
struct _CONSOLE_GETSETCONSOLEMODE * PCONSOLE_GETSETCONSOLEMODE
struct _CONSOLE_SETHISTORYMODE * PCONSOLE_SETHISTORYMODE
CONSOLE_GETLARGESTWINDOWSIZE GetLargestWindowSizeRequest
Definition: conmsg.h:953
BOOLEAN UseVirtualMemory
Definition: conmsg.h:612
PCSR_CAPTURE_BUFFER CsrCaptureData
Definition: conmsg.h:895
CONSOLE_WRITEOUTPUT WriteOutputRequest
Definition: conmsg.h:970
CONSOLE_SCROLLSCREENBUFFER ScrollScreenBufferRequest
Definition: conmsg.h:931
struct _CONSOLE_GETALLALIASESLENGTH CONSOLE_GETALLALIASESLENGTH
CONSOLE_OPENCONSOLE OpenConsoleRequest
Definition: conmsg.h:912
struct _CONSOLE_GETCURRENTFONT CONSOLE_GETCURRENTFONT
LPTHREAD_START_ROUTINE CtrlRoutine
Definition: conmsg.h:193
HANDLE ConsoleHandle
Definition: conmsg.h:477
struct _CONSOLE_DUPLICATEHANDLE * PCONSOLE_DUPLICATEHANDLE
struct _CONSOLE_READOUTPUT * PCONSOLE_READOUTPUT
struct _CONSOLE_ALLOCCONSOLE * PCONSOLE_ALLOCCONSOLE
HANDLE ConsoleHandle
Definition: conmsg.h:692
ULONG CtrlWakeupMask
Definition: conmsg.h:267
CONSOLE_REGISTERVDM RegisterVDMRequest
Definition: conmsg.h:997
struct _CONSOLE_SETWINDOWINFO CONSOLE_SETWINDOWINFO
unsigned int BOOL
Definition: ntddk_ex.h:94
struct _CONSOLE_CLOSEHANDLE CONSOLE_CLOSEHANDLE
struct _CONSOLE_GETPROCESSLIST CONSOLE_GETPROCESSLIST
CONSOLE_READOUTPUT ReadOutputRequest
Definition: conmsg.h:963
struct _CONSOLE_WRITEOUTPUT * PCONSOLE_WRITEOUTPUT
CODE_TYPE CodeType
Definition: conmsg.h:556
struct _CONSOLE_GETHANDLEINFO * PCONSOLE_GETHANDLEINFO
SMALL_RECT WindowRect
Definition: conmsg.h:710
struct _CONSOLE_SETHISTORYNUMBERCOMMANDS * PCONSOLE_SETHISTORYNUMBERCOMMANDS
CONSOLE_SETACTIVESCREENBUFFER SetScreenBufferRequest
Definition: conmsg.h:928
ULONG AliasesBufferLength
Definition: conmsg.h:748
struct _CONSOLE_GETNUMINPUTEVENTS CONSOLE_GETNUMINPUTEVENTS
CONSOLE_SETCURSORPOSITION SetCursorPositionRequest
Definition: conmsg.h:923
HANDLE ConsoleHandle
Definition: conmsg.h:633
struct _CONSOLE_GETSETHISTORYINFO CONSOLE_GETSETHISTORYINFO
enum _CONSRV_API_NUMBER * PCONSRV_API_NUMBER
struct _CONSOLE_SETACTIVESCREENBUFFER * PCONSOLE_SETACTIVESCREENBUFFER
CONSOLE_NOTIFYLASTCLOSE NotifyLastCloseRequest
Definition: conmsg.h:909
unsigned char BOOLEAN
struct _CONSOLE_ADDGETALIAS CONSOLE_ADDGETALIAS
HANDLE ConsoleHandle
Definition: conmsg.h:626
struct _CONSOLE_GETMOUSEINFO CONSOLE_GETMOUSEINFO
struct _CONSOLE_SETINPUTOUTPUTCP CONSOLE_SETINPUTOUTPUTCP
CHAR AsciiChar
Definition: conmsg.h:524
struct _CONSOLE_GETALIASESEXES CONSOLE_GETALIASESEXES
HANDLE ConsoleHandle
Definition: conmsg.h:329
ULONG CaptureBufferSize
Definition: conmsg.h:264
HANDLE ConsoleHandle
Definition: conmsg.h:420
HANDLE OutputHandle
Definition: conmsg.h:599
struct _CONSOLE_SETDISPLAYMODE * PCONSOLE_SETDISPLAYMODE
HANDLE ConsoleHandle
Definition: conmsg.h:722
#define C_ASSERT(e)
Definition: intsafe.h:79
HANDLE ConsoleHandle
Definition: conmsg.h:405
struct _CONSOLE_GETALLALIASESLENGTH * PCONSOLE_GETALLALIASESLENGTH
struct _CONSOLE_SETMENUCLOSE * PCONSOLE_SETMENUCLOSE
COORD dwWindowSize
Definition: conmsg.h:139
CONSOLE_CURSOR_INFO Info
Definition: conmsg.h:346
struct _CONSOLE_WRITECONSOLE CONSOLE_WRITECONSOLE
struct _CONSOLE_GETFONTSIZE CONSOLE_GETFONTSIZE
struct _CONSOLE_FLUSHINPUTBUFFER CONSOLE_FLUSHINPUTBUFFER
CHAR_INFO StaticBuffer
Definition: conmsg.h:601
CONSOLE_SETDISPLAYMODE SetDisplayModeRequest
Definition: conmsg.h:939
PCONSOLE_FONT_INFO FontInfo
Definition: conmsg.h:414
struct _CONSOLE_SHOWCURSOR CONSOLE_SHOWCURSOR
struct _CONSOLE_WRITEINPUT * PCONSOLE_WRITEINPUT
CONSOLE_GETDISPLAYMODE GetDisplayModeRequest
Definition: conmsg.h:938
struct _CONSOLE_GETSETCURSORINFO CONSOLE_GETSETCURSORINFO
CONSOLE_GETCURRENTFONT GetCurrentFontRequest
Definition: conmsg.h:946
CONSOLE_SETINPUTOUTPUTCP SetConsoleCPRequest
Definition: conmsg.h:993
struct _CONSOLE_SETCURSOR * PCONSOLE_SETCURSOR
CONSOLE_SETHISTORYMODE SetHistoryModeRequest
Definition: conmsg.h:989
enum _CONSOLE_HANDLE_TYPE CONSOLE_HANDLE_TYPE
CONSOLE_GETINPUT GetInputRequest
Definition: conmsg.h:962
__wchar_t WCHAR
Definition: xmlstorage.h:180
SMALL_RECT WriteRegion
Definition: conmsg.h:604
CONSOLE_INVALIDATEDIBITS InvalidateDIBitsRequest
Definition: conmsg.h:950
CONSOLE_SETPALETTE SetPaletteRequest
Definition: conmsg.h:951
WCHAR FaceName[LF_FACESIZE]
Definition: conmsg.h:146
USHORT SourceLength
Definition: conmsg.h:731
struct _CONSOLE_WRITECONSOLE * PCONSOLE_WRITECONSOLE
CONSOLE_GETFONTINFO GetFontInfoRequest
Definition: conmsg.h:944
DWORD COLORREF
Definition: windef.h:300
struct _CONSOLE_GETLARGESTWINDOWSIZE * PCONSOLE_GETLARGESTWINDOWSIZE
CONSOLE_READOUTPUTCODE ReadOutputCodeRequest
Definition: conmsg.h:964
struct _CONSOLE_SCROLLSCREENBUFFER CONSOLE_SCROLLSCREENBUFFER
HANDLE ConsoleHandle
Definition: conmsg.h:170
#define MAX_PATH
Definition: compat.h:26
CONSOLE_SELECTION_INFO Info
Definition: conmsg.h:844
ULONG InitialNumBytes
Definition: conmsg.h:266
DWORD nInputBufferSize
Definition: conmsg.h:142
CHAR CodeStaticBuffer[80]
Definition: conmsg.h:536
struct _CONSOLE_GETSCREENBUFFERINFO CONSOLE_GETSCREENBUFFERINFO
CONSOLE_GETSELECTIONINFO GetSelectionInfoRequest
Definition: conmsg.h:933
unsigned short WORD
Definition: ntddk_ex.h:93
PORT_MESSAGE Header
Definition: conmsg.h:893
unsigned long DWORD
Definition: ntddk_ex.h:95
PINPUT_RECORD RecordBufPtr
Definition: conmsg.h:567
struct _CONSOLE_GETCOMMANDHISTORY * PCONSOLE_GETCOMMANDHISTORY
CONSOLE_FILLOUTPUTCODE FillOutputRequest
Definition: conmsg.h:973
PCHAR_INFO CharInfo
Definition: conmsg.h:590
struct _CONSOLE_SETFONT * PCONSOLE_SETFONT
PINPUT_RECORD RecordBufPtr
Definition: conmsg.h:578
CONSOLE_GETCOMMANDHISTORYLENGTH GetCommandHistoryLengthRequest
Definition: conmsg.h:985
CONSOLE_GETSETCONSOLEMODE ConsoleModeRequest
Definition: conmsg.h:937
CONSOLE_SETFONT SetFontRequest
Definition: conmsg.h:947
struct _CONSOLE_GETKBDLAYOUTNAME * PCONSOLE_GETKBDLAYOUTNAME
INPUT_RECORD RecordStaticBuffer[5]
Definition: conmsg.h:577
struct _CONSOLE_GETWINDOW * PCONSOLE_GETWINDOW
struct _CONSOLE_ALLOCCONSOLE CONSOLE_ALLOCCONSOLE
ULONG VideoStateLength
Definition: conmsg.h:880
struct _CONSOLE_GETNUMINPUTEVENTS * PCONSOLE_GETNUMINPUTEVENTS
struct _CONSOLE_GETFONTINFO * PCONSOLE_GETFONTINFO
UINT uNumberOfHistoryBuffers
Definition: conmsg.h:153
CONSOLE_GETALLALIASESLENGTH GetAllAliasesLengthRequest
Definition: conmsg.h:979
struct _CONSOLE_MENUCONTROL * PCONSOLE_MENUCONTROL
NTSTATUS Status
Definition: conmsg.h:897
CONSOLE_READCONSOLE ReadConsoleRequest
Definition: conmsg.h:961
BOOLEAN AppendToEnd
Definition: conmsg.h:581
HANDLE OutputHandle
Definition: conmsg.h:338
HANDLE ConsoleHandle
Definition: conmsg.h:730
struct _CONSOLE_SETHANDLEINFO CONSOLE_SETHANDLEINFO
struct _CONSOLE_GETSCREENBUFFERINFO * PCONSOLE_GETSCREENBUFFERINFO
struct _CONSOLE_INVALIDATEDIBITS * PCONSOLE_INVALIDATEDIBITS
struct _CONSOLE_SETACTIVESCREENBUFFER CONSOLE_SETACTIVESCREENBUFFER
struct _CONSOLE_OUTPUTCODE CONSOLE_WRITEOUTPUTCODE
COORD dwWindowOrigin
Definition: conmsg.h:140
SMALL_RECT ReadRegion
Definition: conmsg.h:592
CONSOLE_WRITECONSOLE WriteConsoleRequest
Definition: conmsg.h:968
LPTHREAD_START_ROUTINE ImeRoutine
Definition: conmsg.h:195
struct _CONSOLE_INVALIDATEDIBITS CONSOLE_INVALIDATEDIBITS
CONSOLE_GRAPHICS_BUFFER_INFO GraphicsBufferInfo
Definition: conmsg.h:456
CONSOLE_GETCOMMANDHISTORY GetCommandHistoryRequest
Definition: conmsg.h:984
HANDLE ConsoleHandle
Definition: conmsg.h:716
CONSOLE_ATTACHCONSOLE AttachConsoleRequest
Definition: conmsg.h:903
struct _CONSOLE_VERIFYHANDLE * PCONSOLE_VERIFYHANDLE
LPTHREAD_START_ROUTINE PropRoutine
Definition: conmsg.h:300
struct _CONSOLE_OUTPUTCODE CONSOLE_READOUTPUTCODE
Definition: bl.h:1338
HANDLE ConsoleHandle
Definition: conmsg.h:236
CONSOLE_FREECONSOLE FreeConsoleRequest
Definition: conmsg.h:904
LPTHREAD_START_ROUTINE PropRoutine
Definition: conmsg.h:194
HANDLE ErrorHardwareEvent
Definition: conmsg.h:875
CHECK_API_MSG_SIZE(CONSOLE_API_MESSAGE)
struct _CONSOLE_GETSETCONSOLEMODE CONSOLE_GETSETCONSOLEMODE
HANDLE StartHardwareEvent
Definition: conmsg.h:873
struct _CONSOLE_GETINPUTOUTPUTCP CONSOLE_GETINPUTOUTPUTCP
struct _CONSOLE_FLUSHINPUTBUFFER * PCONSOLE_FLUSHINPUTBUFFER
BOOLEAN UsingStaticBuffer
Definition: conmsg.h:246
HANDLE OutputHandle
Definition: conmsg.h:330
struct _CONSOLE_REGISTERVDM CONSOLE_REGISTERVDM
CONSOLE_GETHANDLEINFO GetHandleInfoRequest
Definition: conmsg.h:916
struct _CONSOLE_SETCURSORPOSITION CONSOLE_SETCURSORPOSITION
WORD wPopupFillAttribute
Definition: conmsg.h:130
BOOLEAN Unicode
Definition: conmsg.h:580
HANDLE ConsoleHandle
Definition: conmsg.h:355
BOOLEAN Unicode
Definition: conmsg.h:570
CONSOLE_SETHISTORYNUMBERCOMMANDS SetHistoryNumberCommandsRequest
Definition: conmsg.h:988
HANDLE OutputHandle
Definition: conmsg.h:421
struct _CONSOLE_NOTIFYLASTCLOSE * PCONSOLE_NOTIFYLASTCLOSE
CONSOLE_GETALIASESEXES GetAliasesExesRequest
Definition: conmsg.h:980
struct _CONSOLE_SETICON CONSOLE_SETICON
WCHAR ConsoleTitle[MAX_PATH+1]
Definition: conmsg.h:198
HANDLE InputHandle
Definition: conmsg.h:172
struct _CONSOLE_CREATESCREENBUFFER * PCONSOLE_CREATESCREENBUFFER
CONSOLE_SETWINDOWINFO SetWindowInfoRequest
Definition: conmsg.h:956
unsigned short USHORT
Definition: pedump.c:61
HANDLE ConsoleHandle
Definition: conmsg.h:411
struct _CONSOLE_GENERATECTRLEVENT * PCONSOLE_GENERATECTRLEVENT
CONSOLE_FLUSHINPUTBUFFER FlushInputBufferRequest
Definition: conmsg.h:934
HANDLE ConsoleHandle
Definition: conmsg.h:701
WCHAR CurDir[MAX_PATH+1]
Definition: conmsg.h:206
BOOLEAN MaximumWindow
Definition: conmsg.h:413
struct _CONSOLE_GETSETCURSORINFO * PCONSOLE_GETSETCURSORINFO
struct _CONSOLE_READCONSOLE CONSOLE_READCONSOLE
HANDLE ConsoleHandle
Definition: conmsg.h:575
CONSOLE_GETSCREENBUFFERINFO ScreenBufferInfoRequest
Definition: conmsg.h:929
CONSOLE_SETTEXTATTRIB SetTextAttribRequest
Definition: conmsg.h:974
struct _CONSOLE_API_MESSAGE CONSOLE_API_MESSAGE
unsigned int UINT
Definition: ndis.h:50
struct _CONSOLE_ADDGETALIAS * PCONSOLE_ADDGETALIAS
CONSOLE_CLOSEHANDLE CloseHandleRequest
Definition: conmsg.h:913
struct _CONSOLE_SETWINDOWINFO * PCONSOLE_SETWINDOWINFO
struct _CONSOLE_GETSETCONSOLETITLE CONSOLE_GETSETCONSOLETITLE
struct _CONSOLE_START_INFO CONSOLE_START_INFO
HANDLE ConsoleHandle
Definition: conmsg.h:255
DWORD * PDWORD
Definition: pedump.c:68
HANDLE InputWaitHandle
Definition: conmsg.h:171
struct _CONSOLE_OUTPUTCODE * PCONSOLE_READOUTPUTCODE
union _CONSOLE_API_MESSAGE::@3413 Data
CONSOLE_EXPUNGECOMMANDHISTORY ExpungeCommandHistoryRequest
Definition: conmsg.h:986
struct _CONSOLE_GETNUMFONTS * PCONSOLE_GETNUMFONTS
struct _CONSRV_API_CONNECTINFO CONSRV_API_CONNECTINFO
_CONSRV_API_NUMBER
Definition: conmsg.h:19
#define CONSRV_FIRST_API_NUMBER
Definition: conmsg.h:16
CONSOLE_ADDGETALIAS ConsoleAliasRequest
Definition: conmsg.h:977
struct _CONSOLE_READOUTPUT CONSOLE_READOUTPUT
CONSOLE_WRITEINPUT WriteInputRequest
Definition: conmsg.h:969
struct _CONSOLE_ATTACHCONSOLE * PCONSOLE_ATTACHCONSOLE
struct _CONSOLE_GETLARGESTWINDOWSIZE CONSOLE_GETLARGESTWINDOWSIZE
DWORD dwStartupFlags
Definition: conmsg.h:126
PCONSOLE_START_INFO ConsoleStartInfo
Definition: conmsg.h:297
struct _CONSOLE_SETHISTORYMODE CONSOLE_SETHISTORYMODE
CONSOLE_GETNUMINPUTEVENTS GetNumInputEventsRequest
Definition: conmsg.h:965
struct _CONSOLE_GETSETHISTORYINFO * PCONSOLE_GETSETHISTORYINFO
CHAR StaticBuffer[80]
Definition: conmsg.h:239
struct _CONSOLE_WRITEOUTPUT CONSOLE_WRITEOUTPUT
unsigned int ULONG
Definition: retypes.h:1
USHORT TargetLength
Definition: conmsg.h:732
WORD Attribute
Definition: conmsg.h:526
CONSOLE_SETCURSOR SetCursorRequest
Definition: conmsg.h:921
struct _CONSOLE_GETINPUT * PCONSOLE_GETINPUT
CONSOLE_GETPROCESSLIST GetProcessListRequest
Definition: conmsg.h:907
union _CODE_ELEMENT CODE_ELEMENT
HANDLE ConsoleHandle
Definition: conmsg.h:437
CONSOLE_WRITEOUTPUTCODE WriteOutputCodeRequest
Definition: conmsg.h:971
HANDLE OutputHandle
Definition: conmsg.h:532
DWORD FontIndex
Definition: conmsg.h:439
HANDLE ConsoleHandle
Definition: conmsg.h:337
HANDLE ConsoleHandle
Definition: conmsg.h:673
HANDLE ConsoleHandle
Definition: conmsg.h:586
struct _CONSOLE_GETNUMFONTS CONSOLE_GETNUMFONTS
CONSOLE_GETINPUTOUTPUTCP GetConsoleCPRequest
Definition: conmsg.h:992
CONSOLE_GETKBDLAYOUTNAME GetKbdLayoutNameRequest
Definition: conmsg.h:994
struct _CONSOLE_FILLOUTPUTCODE * PCONSOLE_FILLOUTPUTCODE
CONSOLE_SETSCREENBUFFERSIZE SetScreenBufferSizeRequest
Definition: conmsg.h:930
CONSOLE_GETSETCONSOLETITLE TitleRequest
Definition: conmsg.h:952
struct _CONSOLE_GETALIASESEXESLENGTH * PCONSOLE_GETALIASESEXESLENGTH
struct _CONSOLE_GETCOMMANDHISTORYLENGTH * PCONSOLE_GETCOMMANDHISTORYLENGTH
CONSOLE_GETWINDOW GetWindowRequest
Definition: conmsg.h:957
struct _CONSOLE_SETINPUTOUTPUTCP * PCONSOLE_SETINPUTOUTPUTCP
HICON IconHandle
Definition: conmsg.h:723
COORD dwScreenBufferSize
Definition: conmsg.h:138
struct _CONSOLE_GETFONTINFO CONSOLE_GETFONTINFO
struct _CONSOLE_GETFONTSIZE * PCONSOLE_GETFONTSIZE
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
Definition: ordinal.c:60
CONSOLE_GETALIASESEXESLENGTH GetAliasesExesLengthRequest
Definition: conmsg.h:981
CHAR LayoutBuffer[KL_NAMELENGTH *sizeof(WCHAR)]
Definition: conmsg.h:865
struct _CONSOLE_ATTACHCONSOLE CONSOLE_ATTACHCONSOLE
enum _CODE_TYPE CODE_TYPE
HANDLE OutputHandle
Definition: conmsg.h:412
ULONG UnusedBufferLength
Definition: conmsg.h:885
HANDLE ConsoleHandle
Definition: conmsg.h:531
struct _CONSOLE_SETSCREENBUFFERSIZE CONSOLE_SETSCREENBUFFERSIZE
struct _CONSOLE_SETSCREENBUFFERSIZE * PCONSOLE_SETSCREENBUFFERSIZE
CHAR_INFO StaticBuffer
Definition: conmsg.h:589
PCONSOLE_START_INFO ConsoleStartInfo
Definition: conmsg.h:274
struct _CONSOLE_FREECONSOLE CONSOLE_FREECONSOLE
struct _CONSOLE_GETSETCONSOLETITLE * PCONSOLE_GETSETCONSOLETITLE
PCHAR_INFO CharInfo
Definition: conmsg.h:602
struct _CONSRV_API_CONNECTINFO * PCONSRV_API_CONNECTINFO
CONSOLE_GETMOUSEINFO GetMouseInfoRequest
Definition: conmsg.h:924
struct _CONSOLE_MENUCONTROL CONSOLE_MENUCONTROL
struct _CONSOLE_DUPLICATEHANDLE CONSOLE_DUPLICATEHANDLE