mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-29 19:26:33 +00:00
[CONSRV]
Add a new header containing per-process console-specific structure CSRSS_CON_PROCESS_DATA (it is stored inside one of the element of the ServerData array inside the CSR_PROCESS structure). It was deleted from csrsrv.h in revision r57673 and reappears here. Also add a macro in order to facilitate its access inside consrv. svn path=/branches/ros-csrss/; revision=57685
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS Client/Server Runtime SubSystem
|
||||
* FILE: include/reactos/subsys/win/console.h
|
||||
* PURPOSE: Public definitions for Console API Clients
|
||||
* PROGRAMMERS: Hermes Belusca-Maito ([email protected])
|
||||
*/
|
||||
|
||||
#ifndef _CONSOLE_H
|
||||
#define _CONSOLE_H
|
||||
|
||||
#pragma once
|
||||
|
||||
#define ConsoleGetPerProcessData(pcsrprocess) \
|
||||
((PCONSOLE_PROCESS_DATA)((pcsrprocess)->ServerData[CONSRV_SERVERDLL_INDEX]))
|
||||
|
||||
|
||||
typedef struct _CONSOLE_PROCESS_DATA
|
||||
{
|
||||
LIST_ENTRY ConsoleLink;
|
||||
PCSR_PROCESS Process; // Parent process.
|
||||
HANDLE ConsoleEvent;
|
||||
/* PCSRSS_CONSOLE */ struct tagCSRSS_CONSOLE* Console;
|
||||
/* PCSRSS_CONSOLE */ struct tagCSRSS_CONSOLE* ParentConsole;
|
||||
BOOL bInheritHandles;
|
||||
RTL_CRITICAL_SECTION HandleTableLock;
|
||||
ULONG HandleTableSize;
|
||||
/* PCSRSS_HANDLE */ struct _CSRSS_HANDLE* HandleTable; // Is it a length-varying table or length-fixed ??
|
||||
LPTHREAD_START_ROUTINE CtrlDispatcher;
|
||||
} CONSOLE_PROCESS_DATA, *PCONSOLE_PROCESS_DATA;
|
||||
|
||||
#endif // _CONSOLE_H
|
||||
|
||||
/* EOF */
|
||||
Reference in New Issue
Block a user