mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[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
This commit is contained in:
parent
b942b837af
commit
60e03ccee8
2 changed files with 22 additions and 10 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue