2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS Console Server DLL
4 * FILE: win32ss/user/winsrv/consrv/consrv.h
5 * PURPOSE: Main header - Definitions
6 * PROGRAMMERS: Hermes Belusca-Maito (hermes.belusca@sfr.fr)
12 /* PSDK/NDK Headers */
14 #define WIN32_NO_STATUS
16 #define COM_NO_WINDOWS_H
23 #define NTOS_MODE_USER
24 #include <ndk/exfuncs.h>
25 #include <ndk/mmfuncs.h>
26 #include <ndk/obfuncs.h>
27 #include <ndk/rtlfuncs.h>
29 /* Public Win32K Headers */
32 /* PSEH for SEH Support */
33 #include <pseh/pseh2.h>
36 #include <csr/csrsrv.h>
39 #include <win/conmsg.h>
45 extern HINSTANCE ConSrvDllInstance
;
47 #define ConsoleGetPerProcessData(Process) \
48 ((PCONSOLE_PROCESS_DATA)((Process)->ServerData[CONSRV_SERVERDLL_INDEX]))
50 typedef struct _CONSOLE_PROCESS_DATA
52 LIST_ENTRY ConsoleLink
;
53 PCSR_PROCESS Process
; // Process owning this structure.
54 HANDLE InputWaitHandle
;
57 HANDLE ParentConsoleHandle
;
59 BOOL ConsoleApp
; // TRUE if it is a CUI app, FALSE otherwise.
61 RTL_CRITICAL_SECTION HandleTableLock
;
62 ULONG HandleTableSize
;
63 struct _CONSOLE_IO_HANDLE
* /* PCONSOLE_IO_HANDLE */ HandleTable
; // Length-varying table
65 LPTHREAD_START_ROUTINE CtrlDispatcher
;
66 LPTHREAD_START_ROUTINE PropDispatcher
; // We hold the property dialog handler there, till all the GUI thingie moves out from CSRSS.
67 } CONSOLE_PROCESS_DATA
, *PCONSOLE_PROCESS_DATA
;
69 #include "include/conio.h"
70 #include "include/console.h"
71 #include "include/settings.h"
72 #include "include/term.h"
74 #include "conoutput.h"
76 #include "lineinput.h"
78 #endif /* __CONSRV_H__ */