From 60e03ccee8a1bdcb281f42d0871cd84592597d5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Fri, 23 Nov 2012 19:37:20 +0000 Subject: [PATCH] [KERNEL32] Deactivate the code of GetConsoleInputWaitHandle, because it calls a function that doesn't seem to appear in the console server apis listed in http://j00ru.vexillium.org/csrss_list/api_list.html (and that I haven't included in the console server apis list), until I find a better solution. It fixes compilation. [CONSRV] - Code reorganization - Introduce the CONSOLE_CONNECTION_INFO structure needed for initializing consoles when launching a program (see http://svn.reactos.org/svn/reactos/trunk/reactos/lib/kernel32/misc/dllmain.c?r1=16826&r2=16825&pathrev=16826), instead of calling AllocConsole. Not used at this time. Now the branch compiles. svn path=/branches/ros-csrss/; revision=57749 --- dll/win32/kernel32/client/console/console.c | 20 +++++++++++++------- include/reactos/subsys/win/conmsg.h | 12 +++++++++--- 2 files changed, 22 insertions(+), 10 deletions(-) diff --git a/dll/win32/kernel32/client/console/console.c b/dll/win32/kernel32/client/console/console.c index d5f7187ae22..025c3c1de5f 100644 --- a/dll/win32/kernel32/client/console/console.c +++ b/dll/win32/kernel32/client/console/console.c @@ -321,20 +321,26 @@ HANDLE WINAPI GetConsoleInputWaitHandle(VOID) { - CSR_API_MESSAGE Request; - NTSTATUS Status; +/// HACK !!!!!!!!!!!!! + ASSERT(FALSE); + return NULL; - Status = CsrClientCallServer(&Request, +#if 0 + NTSTATUS Status; + CONSOLE_API_MESSAGE ApiMessage; + + Status = CsrClientCallServer((PCSR_API_MESSAGE)&ApiMessage, NULL, - CSR_CREATE_API_NUMBER(CSR_CONSOLE, GET_INPUT_WAIT_HANDLE), - sizeof(CSR_API_MESSAGE)); - if (!NT_SUCCESS(Status) || !NT_SUCCESS(Status = Request.Status)) + CSR_CREATE_API_NUMBER(CONSRV_SERVERDLL_INDEX, GET_INPUT_WAIT_HANDLE), + sizeof(CSRSS_GET_INPUT_WAIT_HANDLE)); + if (!NT_SUCCESS(Status) || !NT_SUCCESS(Status = ApiMessage.Status)) { BaseSetLastNTError(Status); return 0; } - return Request.Data.GetConsoleInputWaitHandle.InputWaitHandle; + return ApiMessage.Data.GetConsoleInputWaitHandle.InputWaitHandle; +#endif } diff --git a/include/reactos/subsys/win/conmsg.h b/include/reactos/subsys/win/conmsg.h index 32b1faee6f4..8fa4ddf2ff4 100644 --- a/include/reactos/subsys/win/conmsg.h +++ b/include/reactos/subsys/win/conmsg.h @@ -112,15 +112,21 @@ typedef enum _CONSRV_API_NUMBER } CONSRV_API_NUMBER, *PCONSRV_API_NUMBER; -#define CONSOLE_INPUT_MODE_VALID (0x0f) -#define CONSOLE_OUTPUT_MODE_VALID (0x03) +typedef struct _CONSOLE_CONNECTION_INFO +{ + +} CONSOLE_CONNECTION_INFO, *PCONSOLE_CONNECTION_INFO; + + +#define CONSOLE_INPUT_MODE_VALID 0x0f +#define CONSOLE_OUTPUT_MODE_VALID 0x03 typedef struct { USHORT nMaxIds; + ULONG nProcessIdsTotal; PDWORD pProcessIds; - ULONG nProcessIdsTotal; } CSRSS_GET_PROCESS_LIST, *PCSRSS_GET_PROCESS_LIST; typedef struct