ReactOS 0.4.16-dev-1260-g901af6a
consrv.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: win32ss/user/winsrv/consrv/consrv.h
5 * PURPOSE: Main header - Definitions
6 * PROGRAMMERS: Hermes Belusca-Maito (hermes.belusca@sfr.fr)
7 */
8
9#ifndef __CONSRV_H__
10#define __CONSRV_H__
11
12/* Main header */
13#include "../winsrv.h"
14
15#include <strsafe.h>
16
17/* PSDK/NDK Headers */
18#define WIN32_NO_STATUS
19#define _INC_WINDOWS
20#define COM_NO_WINDOWS_H
21
22#include <winnls.h>
23#include <wincon.h>
24#include <wincon_undoc.h>
25
26#define NTOS_MODE_USER
27#include <ndk/mmfuncs.h>
28
29/* CONSOLE Headers */
30#include <win/conmsg.h>
31
32/* Heap Helpers */
33#include "heap.h"
34
35/* Globals */
37
38#define ConsoleGetPerProcessData(Process) \
39 ((PCONSOLE_PROCESS_DATA)((Process)->ServerData[CONSRV_SERVERDLL_INDEX]))
40
42{
44 PCSR_PROCESS Process; // Process owning this structure.
45
47 BOOLEAN ConsoleApp; // TRUE if it is a CUI app, FALSE otherwise.
48
51 struct _CONSOLE_IO_HANDLE* /* PCONSOLE_IO_HANDLE */ HandleTable; // Length-varying table
52
54 LPTHREAD_START_ROUTINE PropRoutine; // We hold the property dialog handler there, till all the GUI thingie moves out from CSRSS.
55 // LPTHREAD_START_ROUTINE ImeRoutine;
57
58#include "include/conio.h"
60
61#include "api.h" // For the CON_API_* macros.
62#include "include/console.h"
63#include "include/settings.h"
64#include "include/term.h"
65#include "console.h"
66#include "coninput.h"
67#include "conoutput.h"
68#include "handle.h"
69#include "lineinput.h"
70
71/* shutdown.c */
76 IN BOOLEAN FirstPhase);
77
78#endif /* __CONSRV_H__ */
unsigned char BOOLEAN
HINSTANCE ConSrvDllInstance
Definition: init.c:21
struct _CONSOLE_PROCESS_DATA * PCONSOLE_PROCESS_DATA
ULONG NTAPI ConsoleClientShutdown(IN PCSR_PROCESS CsrProcess, IN ULONG Flags, IN BOOLEAN FirstPhase)
Definition: shutdown.c:72
struct _CONSOLE_PROCESS_DATA CONSOLE_PROCESS_DATA
ULONG HandleTableSize
Definition: consrv.h:50
HANDLE ConsoleHandle
Definition: consrv.h:46
LPTHREAD_START_ROUTINE CtrlRoutine
Definition: consrv.h:53
PCSR_PROCESS Process
Definition: consrv.h:44
struct _CONSOLE_IO_HANDLE * HandleTable
Definition: consrv.h:51
RTL_CRITICAL_SECTION HandleTableLock
Definition: consrv.h:49
LPTHREAD_START_ROUTINE PropRoutine
Definition: consrv.h:54
BOOLEAN ConsoleApp
Definition: consrv.h:47
LIST_ENTRY ConsoleLink
Definition: consrv.h:43
Definition: typedefs.h:120
#define NTAPI
Definition: typedefs.h:36
#define IN
Definition: typedefs.h:39
uint32_t ULONG
Definition: typedefs.h:59
PKPROCESS CsrProcess
Definition: videoprt.c:39
DWORD(WINAPI * LPTHREAD_START_ROUTINE)(LPVOID)
Definition: winbase.h:764
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170