mirror of
https://github.com/reactos/reactos.git
synced 2024-11-09 08:08:38 +00:00
79 lines
1.9 KiB
C
79 lines
1.9 KiB
C
/*
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
* PROJECT: ReactOS Console Server DLL
|
|
* FILE: win32ss/user/winsrv/consrv_new/consrv.h
|
|
* PURPOSE: Main header - Definitions
|
|
* PROGRAMMERS: Hermes Belusca-Maito (hermes.belusca@sfr.fr)
|
|
*/
|
|
|
|
#ifndef __CONSRV_H__
|
|
#define __CONSRV_H__
|
|
|
|
#pragma once
|
|
|
|
/* PSDK/NDK Headers */
|
|
#include <stdarg.h>
|
|
#define WIN32_NO_STATUS
|
|
#define _INC_WINDOWS
|
|
#define COM_NO_WINDOWS_H
|
|
#include <windef.h>
|
|
#include <winbase.h>
|
|
#include <wingdi.h>
|
|
#include <winnls.h>
|
|
#include <winreg.h>
|
|
#include <wincon.h>
|
|
#include <winuser.h>
|
|
#define NTOS_MODE_USER
|
|
#include <ndk/exfuncs.h>
|
|
#include <ndk/iofuncs.h>
|
|
#include <ndk/mmfuncs.h>
|
|
#include <ndk/obfuncs.h>
|
|
#include <ndk/psfuncs.h>
|
|
#include <ndk/setypes.h>
|
|
#include <ndk/rtlfuncs.h>
|
|
|
|
/* Public Win32K Headers */
|
|
#include <ntuser.h>
|
|
|
|
/* PSEH for SEH Support */
|
|
#include <pseh/pseh2.h>
|
|
|
|
/* CSRSS Header */
|
|
#include <csr/csrsrv.h>
|
|
|
|
/* CONSOLE Headers */
|
|
#include <win/console.h>
|
|
#include <win/conmsg.h>
|
|
|
|
|
|
/* Heap Helpers */
|
|
#include "heap.h"
|
|
|
|
/* Globals */
|
|
extern HINSTANCE ConSrvDllInstance;
|
|
|
|
#define ConsoleGetPerProcessData(Process) \
|
|
((PCONSOLE_PROCESS_DATA)((Process)->ServerData[CONSRV_SERVERDLL_INDEX]))
|
|
|
|
typedef struct _CONSOLE_PROCESS_DATA
|
|
{
|
|
LIST_ENTRY ConsoleLink;
|
|
PCSR_PROCESS Process; // Process owning this structure.
|
|
HANDLE ConsoleEvent;
|
|
|
|
HANDLE ConsoleHandle;
|
|
HANDLE ParentConsoleHandle;
|
|
|
|
BOOL ConsoleApp; // TRUE if it is a CUI app, FALSE otherwise.
|
|
|
|
RTL_CRITICAL_SECTION HandleTableLock;
|
|
ULONG HandleTableSize;
|
|
struct _CONSOLE_IO_HANDLE* /* PCONSOLE_IO_HANDLE */ HandleTable; // Length-varying table
|
|
|
|
LPTHREAD_START_ROUTINE CtrlDispatcher;
|
|
LPTHREAD_START_ROUTINE PropDispatcher; // We hold the property dialog handler there, till all the GUI thingie moves out from CSRSS.
|
|
} CONSOLE_PROCESS_DATA, *PCONSOLE_PROCESS_DATA;
|
|
|
|
#endif // __CONSRV_H__
|
|
|
|
/* EOF */
|