Author: hbelusca
Date: Wed Nov 7 21:04:47 2012
New Revision: 57685
URL:
http://svn.reactos.org/svn/reactos?rev=57685&view=rev
Log:
[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.
Added:
branches/ros-csrss/include/reactos/subsys/win/console.h (with props)
Added: branches/ros-csrss/include/reactos/subsys/win/console.h
URL:
http://svn.reactos.org/svn/reactos/branches/ros-csrss/include/reactos/subsy…
==============================================================================
--- branches/ros-csrss/include/reactos/subsys/win/console.h (added)
+++ branches/ros-csrss/include/reactos/subsys/win/console.h [iso-8859-1] Wed Nov 7
21:04:47 2012
@@ -1,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(a)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 */
Propchange: branches/ros-csrss/include/reactos/subsys/win/console.h
------------------------------------------------------------------------------
svn:eol-style = native