2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS Console Server DLL
4 * FILE: win32ss/user/consrv/consrv.h
5 * PURPOSE: Main header - Definitions
6 * PROGRAMMERS: Hermes Belusca-Maito (hermes.belusca@sfr.fr)
14 /* PSDK/NDK Headers */
16 #define WIN32_NO_STATUS
18 #define COM_NO_WINDOWS_H
26 #define NTOS_MODE_USER
27 #include <ndk/iofuncs.h>
28 #include <ndk/mmfuncs.h>
29 #include <ndk/obfuncs.h>
30 #include <ndk/psfuncs.h>
31 #include <ndk/setypes.h>
32 #include <ndk/rtlfuncs.h>
34 /* Public Win32K Headers */
37 /* PSEH for SEH Support */
38 #include <pseh/pseh2.h>
41 #include <csr/csrsrv.h>
44 #include <win/console.h>
45 #include <win/conmsg.h>
52 extern HINSTANCE ConSrvDllInstance
;
54 #define ConsoleGetPerProcessData(Process) \
55 ((PCONSOLE_PROCESS_DATA)((Process)->ServerData[CONSRV_SERVERDLL_INDEX]))
57 typedef struct _CONSOLE_PROCESS_DATA
59 LIST_ENTRY ConsoleLink
;
60 PCSR_PROCESS Process
; // Process owning this structure.
62 struct _CONSOLE
* /* PCONSOLE */ Console
;
63 struct _CONSOLE
* /* PCONSOLE */ ParentConsole
;
65 BOOL ConsoleApp
; // TRUE if it is a CUI app, FALSE otherwise.
67 RTL_CRITICAL_SECTION HandleTableLock
;
68 ULONG HandleTableSize
;
69 struct _CONSOLE_IO_HANDLE
* /* PCONSOLE_IO_HANDLE */ HandleTable
; // Length-varying table
71 LPTHREAD_START_ROUTINE CtrlDispatcher
;
72 LPTHREAD_START_ROUTINE PropDispatcher
; // We hold the property dialog handler there, till all the GUI thingie moves out from CSRSS.
73 } CONSOLE_PROCESS_DATA
, *PCONSOLE_PROCESS_DATA
;
75 #endif // __CONSRV_H__