mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36: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:
parent
d736f0b914
commit
aa77ee7796
1 changed files with 34 additions and 0 deletions
34
include/reactos/subsys/win/console.h
Normal file
34
include/reactos/subsys/win/console.h
Normal file
|
@ -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 (hermes.belusca@sfr.fr)
|
||||
*/
|
||||
|
||||
#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 */
|
Loading…
Reference in a new issue