Author: hbelusca
Date: Tue Jan 15 00:02:07 2013
New Revision: 58177
URL:
http://svn.reactos.org/svn/reactos?rev=58177&view=rev
Log:
[CONSRV]
- Temporary make the property dialog working again (but it's not the ultimate
solution).
- in conio.h : members reorganization only.
Modified:
branches/ros-csrss/win32ss/user/consrv/conio.h
branches/ros-csrss/win32ss/user/consrv/consrv.h
branches/ros-csrss/win32ss/user/consrv/guiconsole.c
branches/ros-csrss/win32ss/user/consrv/init.c
Modified: branches/ros-csrss/win32ss/user/consrv/conio.h
URL:
http://svn.reactos.org/svn/reactos/branches/ros-csrss/win32ss/user/consrv/c…
==============================================================================
--- branches/ros-csrss/win32ss/user/consrv/conio.h [iso-8859-1] (original)
+++ branches/ros-csrss/win32ss/user/consrv/conio.h [iso-8859-1] Tue Jan 15 00:02:07 2013
@@ -44,18 +44,20 @@
typedef struct _CONSOLE
{
Object_t Header; /* Object header */
- LONG ReferenceCount;
+ LONG ReferenceCount; /* Is incremented each time a handle to a
screen-buffer or the input buffer of this console gets referenced, or the console gets
locked */
CRITICAL_SECTION Lock;
- struct _CONSOLE *Prev, *Next; /* Next and Prev consoles in console wheel */
- struct _CONSOLE_VTBL *Vtbl; /* Using CUI or GUI consoles */
-
- CLIENT_ID ConsoleLeaderCID; /* Contains the Console Leader Process CID */
+ struct _CONSOLE *Prev, *Next; /* Next and Prev consoles in console wheel */
+ struct _CONSOLE_VTBL *Vtbl; /* Using CUI or GUI consoles */
+
+ CLIENT_ID ConsoleLeaderCID; /* Contains the Console Leader Process CID for
this console. TODO: Is it possible to compute it via the contents of the ProcessList list
?? */
LIST_ENTRY ProcessList;
+/**************************** Input buffer and data ***************************/
LIST_ENTRY InputEvents; /* List head for input event queue */
HANDLE ActiveEvent; /* Event set when an input event is added in
its queue */
LIST_ENTRY ReadWaitQueue; /* List head for the queue of read wait blocks
*/
+ WORD Mode; /* Console Input Buffer mode flags */
PWCHAR LineBuffer; /* current line being input, in line buffered
mode */
WORD LineMaxSize; /* maximum size of line in characters
(including CR+LF) */
@@ -66,29 +68,33 @@
BOOLEAN LineInsertToggle; /* replace character over cursor instead of
inserting */
ULONG LineWakeupMask; /* bitmap of which control characters will end
line input */
+ UINT CodePage;
+ UINT OutputCodePage;
+
+ CONSOLE_SELECTION_INFO Selection;
+
+/**************************** Aliases and Histories ***************************/
struct _ALIAS_HEADER *Aliases;
LIST_ENTRY HistoryBuffers;
UINT HistoryBufferSize; /* size for newly created history buffers */
UINT NumberOfHistoryBuffers; /* maximum number of history buffers allowed
*/
BOOLEAN HistoryNoDup; /* remove old duplicate history entries */
+/******************************* Screen buffers *******************************/
LIST_ENTRY BufferList; /* List of all screen buffers for this console
*/
- PCONSOLE_SCREEN_BUFFER ActiveBuffer; /* Pointer to currently active screen buffer
*/
+ PCONSOLE_SCREEN_BUFFER ActiveBuffer; /* Pointer to currently active screen buffer
*/
BYTE PauseFlags;
HANDLE UnpauseEvent;
LIST_ENTRY WriteWaitQueue; /* List head for the queue of write wait blocks
*/
- WORD Mode; /* Console mode flags */
+ DWORD HardwareState; /* _GDI_MANAGED, _DIRECT */
+
+/****************************** GUI-related data ******************************/
UNICODE_STRING Title; /* Title of console */
- DWORD HardwareState; /* _GDI_MANAGED, _DIRECT */
HWND hWindow;
COORD Size;
PVOID PrivateData;
- UINT CodePage;
- UINT OutputCodePage;
-
- CONSOLE_SELECTION_INFO Selection;
} CONSOLE, *PCONSOLE;
/**************************************************************\
Modified: branches/ros-csrss/win32ss/user/consrv/consrv.h
URL:
http://svn.reactos.org/svn/reactos/branches/ros-csrss/win32ss/user/consrv/c…
==============================================================================
--- branches/ros-csrss/win32ss/user/consrv/consrv.h [iso-8859-1] (original)
+++ branches/ros-csrss/win32ss/user/consrv/consrv.h [iso-8859-1] Tue Jan 15 00:02:07 2013
@@ -62,8 +62,8 @@
} CONSOLE_IO_HANDLE, *PCONSOLE_IO_HANDLE;
-#define ConsoleGetPerProcessData(pcsrprocess) \
- ((PCONSOLE_PROCESS_DATA)((pcsrprocess)->ServerData[CONSRV_SERVERDLL_INDEX]))
+#define ConsoleGetPerProcessData(Process) \
+ ((PCONSOLE_PROCESS_DATA)((Process)->ServerData[CONSRV_SERVERDLL_INDEX]))
typedef struct _CONSOLE_PROCESS_DATA
{
@@ -78,6 +78,7 @@
RTL_CRITICAL_SECTION HandleTableLock;
ULONG HandleTableSize;
PCONSOLE_IO_HANDLE HandleTable; // Length-varying table
+
LPTHREAD_START_ROUTINE CtrlDispatcher;
} CONSOLE_PROCESS_DATA, *PCONSOLE_PROCESS_DATA;
Modified: branches/ros-csrss/win32ss/user/consrv/guiconsole.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-csrss/win32ss/user/consrv/g…
==============================================================================
--- branches/ros-csrss/win32ss/user/consrv/guiconsole.c [iso-8859-1] (original)
+++ branches/ros-csrss/win32ss/user/consrv/guiconsole.c [iso-8859-1] Tue Jan 15 00:02:07
2013
@@ -1590,6 +1590,7 @@
}
CPLFunc(hWnd, CPL_DBLCLK, (LPARAM)&SharedInfo, Defaults);
+ CPLFunc(hWnd, CPL_EXIT , 0, 0);
}
static LRESULT
GuiConsoleHandleSysMenuCommand(HWND hWnd, WPARAM wParam, LPARAM lParam)
Modified: branches/ros-csrss/win32ss/user/consrv/init.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-csrss/win32ss/user/consrv/i…
==============================================================================
--- branches/ros-csrss/win32ss/user/consrv/init.c [iso-8859-1] (original)
+++ branches/ros-csrss/win32ss/user/consrv/init.c [iso-8859-1] Tue Jan 15 00:02:07 2013
@@ -116,47 +116,47 @@
BOOLEAN ConsoleServerApiServerValidTable[ConsolepMaxApiNumber] =
{
- FALSE, // SrvOpenConsole,
- FALSE, // SrvGetConsoleInput,
- FALSE, // SrvWriteConsoleInput,
- FALSE, // SrvReadConsoleOutput,
- FALSE, // SrvWriteConsoleOutput,
- FALSE, // SrvReadConsoleOutputString,
- FALSE, // SrvWriteConsoleOutputString,
- FALSE, // SrvFillConsoleOutput,
- FALSE, // SrvGetConsoleMode,
+ TRUE /* FALSE */, // SrvOpenConsole,
+ TRUE /* FALSE */, // SrvGetConsoleInput,
+ TRUE /* FALSE */, // SrvWriteConsoleInput,
+ TRUE /* FALSE */, // SrvReadConsoleOutput,
+ TRUE /* FALSE */, // SrvWriteConsoleOutput,
+ TRUE /* FALSE */, // SrvReadConsoleOutputString,
+ TRUE /* FALSE */, // SrvWriteConsoleOutputString,
+ TRUE /* FALSE */, // SrvFillConsoleOutput,
+ TRUE /* FALSE */, // SrvGetConsoleMode,
// FALSE, // SrvGetConsoleNumberOfFonts,
- FALSE, // SrvGetConsoleNumberOfInputEvents,
- FALSE, // SrvGetConsoleScreenBufferInfo,
- FALSE, // SrvGetConsoleCursorInfo,
+ TRUE /* FALSE */, // SrvGetConsoleNumberOfInputEvents,
+ TRUE /* FALSE */, // SrvGetConsoleScreenBufferInfo,
+ TRUE /* FALSE */, // SrvGetConsoleCursorInfo,
// FALSE, // SrvGetConsoleMouseInfo,
// FALSE, // SrvGetConsoleFontInfo,
// FALSE, // SrvGetConsoleFontSize,
// FALSE, // SrvGetConsoleCurrentFont,
- FALSE, // SrvSetConsoleMode,
- FALSE, // SrvSetConsoleActiveScreenBuffer,
- FALSE, // SrvFlushConsoleInputBuffer,
+ TRUE /* FALSE */, // SrvSetConsoleMode,
+ TRUE /* FALSE */, // SrvSetConsoleActiveScreenBuffer,
+ TRUE /* FALSE */, // SrvFlushConsoleInputBuffer,
// FALSE, // SrvGetLargestConsoleWindowSize,
- FALSE, // SrvSetConsoleScreenBufferSize,
- FALSE, // SrvSetConsoleCursorPosition,
- FALSE, // SrvSetConsoleCursorInfo,
+ TRUE /* FALSE */, // SrvSetConsoleScreenBufferSize,
+ TRUE /* FALSE */, // SrvSetConsoleCursorPosition,
+ TRUE /* FALSE */, // SrvSetConsoleCursorInfo,
// FALSE, // SrvSetConsoleWindowInfo,
- FALSE, // SrvScrollConsoleScreenBuffer,
- FALSE, // SrvSetConsoleTextAttribute,
+ TRUE /* FALSE */, // SrvScrollConsoleScreenBuffer,
+ TRUE /* FALSE */, // SrvSetConsoleTextAttribute,
// FALSE, // SrvSetConsoleFont,
- FALSE, // SrvSetConsoleIcon,
- FALSE, // SrvReadConsole,
- FALSE, // SrvWriteConsole,
- FALSE, // SrvDuplicateHandle,
+ TRUE /* FALSE */, // SrvSetConsoleIcon,
+ TRUE /* FALSE */, // SrvReadConsole,
+ TRUE /* FALSE */, // SrvWriteConsole,
+ TRUE /* FALSE */, // SrvDuplicateHandle,
// FALSE, // SrvGetHandleInformation,
// FALSE, // SrvSetHandleInformation,
- FALSE, // SrvCloseHandle,
- FALSE, // SrvVerifyConsoleIoHandle,
- FALSE, // SrvAllocConsole,
- FALSE, // SrvFreeConsole,
- FALSE, // SrvGetConsoleTitle,
- FALSE, // SrvSetConsoleTitle,
- FALSE, // SrvCreateConsoleScreenBuffer,
+ TRUE /* FALSE */, // SrvCloseHandle,
+ TRUE /* FALSE */, // SrvVerifyConsoleIoHandle,
+ TRUE /* FALSE */, // SrvAllocConsole,
+ TRUE /* FALSE */, // SrvFreeConsole,
+ TRUE /* FALSE */, // SrvGetConsoleTitle,
+ TRUE /* FALSE */, // SrvSetConsoleTitle,
+ TRUE /* FALSE */, // SrvCreateConsoleScreenBuffer,
// FALSE, // SrvInvalidateBitMapRect,
// FALSE, // SrvVDMConsoleOperation,
// FALSE, // SrvSetConsoleCursor,
@@ -165,28 +165,28 @@
// FALSE, // SrvSetConsolePalette,
// FALSE, // SrvSetConsoleDisplayMode,
// FALSE, // SrvRegisterConsoleVDM,
- FALSE, // SrvGetConsoleHardwareState,
- FALSE, // SrvSetConsoleHardwareState,
+ TRUE /* FALSE */, // SrvGetConsoleHardwareState,
+ TRUE /* FALSE */, // SrvSetConsoleHardwareState,
// TRUE, // SrvGetConsoleDisplayMode,
- FALSE, // SrvAddConsoleAlias,
- FALSE, // SrvGetConsoleAlias,
- FALSE, // SrvGetConsoleAliasesLength,
- FALSE, // SrvGetConsoleAliasExesLength,
- FALSE, // SrvGetConsoleAliases,
- FALSE, // SrvGetConsoleAliasExes,
- FALSE, // SrvExpungeConsoleCommandHistory,
- FALSE, // SrvSetConsoleNumberOfCommands,
- FALSE, // SrvGetConsoleCommandHistoryLength,
- FALSE, // SrvGetConsoleCommandHistory,
+ TRUE /* FALSE */, // SrvAddConsoleAlias,
+ TRUE /* FALSE */, // SrvGetConsoleAlias,
+ TRUE /* FALSE */, // SrvGetConsoleAliasesLength,
+ TRUE /* FALSE */, // SrvGetConsoleAliasExesLength,
+ TRUE /* FALSE */, // SrvGetConsoleAliases,
+ TRUE /* FALSE */, // SrvGetConsoleAliasExes,
+ TRUE /* FALSE */, // SrvExpungeConsoleCommandHistory,
+ TRUE /* FALSE */, // SrvSetConsoleNumberOfCommands,
+ TRUE /* FALSE */, // SrvGetConsoleCommandHistoryLength,
+ TRUE /* FALSE */, // SrvGetConsoleCommandHistory,
// FALSE, // SrvSetConsoleCommandHistoryMode,
- FALSE, // SrvGetConsoleCP,
- FALSE, // SrvSetConsoleCP,
+ TRUE /* FALSE */, // SrvGetConsoleCP,
+ TRUE /* FALSE */, // SrvSetConsoleCP,
// FALSE, // SrvSetConsoleKeyShortcuts,
// FALSE, // SrvSetConsoleMenuClose,
// FALSE, // SrvConsoleNotifyLastClose,
- FALSE, // SrvGenerateConsoleCtrlEvent,
+ TRUE /* FALSE */, // SrvGenerateConsoleCtrlEvent,
// FALSE, // SrvGetConsoleKeyboardLayoutName,
- FALSE, // SrvGetConsoleWindow,
+ TRUE /* FALSE */, // SrvGetConsoleWindow,
// FALSE, // SrvGetConsoleCharType,
// FALSE, // SrvSetConsoleLocalEUDC,
// FALSE, // SrvSetConsoleCursorMode,
@@ -198,11 +198,11 @@
// FALSE, // SrvRegisterConsoleIME,
// FALSE, // SrvUnregisterConsoleIME,
// FALSE, // SrvGetConsoleLangId,
- FALSE, // SrvAttachConsole,
- FALSE, // SrvGetConsoleSelectionInfo,
- FALSE, // SrvGetConsoleProcessList,
- FALSE, // SrvGetConsoleHistory,
- FALSE, // SrvSetConsoleHistory
+ TRUE /* FALSE */, // SrvAttachConsole,
+ TRUE /* FALSE */, // SrvGetConsoleSelectionInfo,
+ TRUE /* FALSE */, // SrvGetConsoleProcessList,
+ TRUE /* FALSE */, // SrvGetConsoleHistory,
+ TRUE /* FALSE */, // SrvSetConsoleHistory
// FALSE
};