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)
13 #include "../winsrv.h"
15 /* PSDK/NDK Headers */
16 #define WIN32_NO_STATUS
18 #define COM_NO_WINDOWS_H
23 #define NTOS_MODE_USER
24 #include <ndk/mmfuncs.h>
27 #include <win/conmsg.h>
33 extern HINSTANCE ConSrvDllInstance
;
35 #define ConsoleGetPerProcessData(Process) \
36 ((PCONSOLE_PROCESS_DATA)((Process)->ServerData[CONSRV_SERVERDLL_INDEX]))
38 typedef struct _CONSOLE_PROCESS_DATA
40 LIST_ENTRY ConsoleLink
;
41 PCSR_PROCESS Process
; // Process owning this structure.
44 BOOLEAN ConsoleApp
; // TRUE if it is a CUI app, FALSE otherwise.
46 RTL_CRITICAL_SECTION HandleTableLock
;
47 ULONG HandleTableSize
;
48 struct _CONSOLE_IO_HANDLE
* /* PCONSOLE_IO_HANDLE */ HandleTable
; // Length-varying table
50 LPTHREAD_START_ROUTINE CtrlRoutine
;
51 LPTHREAD_START_ROUTINE PropRoutine
; // We hold the property dialog handler there, till all the GUI thingie moves out from CSRSS.
52 // LPTHREAD_START_ROUTINE ImeRoutine;
53 } CONSOLE_PROCESS_DATA
, *PCONSOLE_PROCESS_DATA
;
56 // Helper for code refactoring
57 // #define USE_NEW_CONSOLE_WAY
59 #ifndef USE_NEW_CONSOLE_WAY
60 #include "include/conio.h"
62 #include "include/conio_winsrv.h"
65 #include "include/console.h"
66 #include "include/settings.h"
67 #include "include/term.h"
69 #include "conoutput.h"
71 #include "lineinput.h"
76 ConsoleClientShutdown(IN PCSR_PROCESS CsrProcess
,
78 IN BOOLEAN FirstPhase
);
80 #endif /* __CONSRV_H__ */