[KERNEL32-CONSRV]
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sat, 9 Mar 2013 21:21:37 +0000 (21:21 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sat, 9 Mar 2013 21:21:37 +0000 (21:21 +0000)
Remove the old implementation of GetConsoleInputWaitHandle which was commented-out for some time.

[BASESRV]
Correct few names.

svn path=/branches/ros-csrss/; revision=58454

dll/win32/kernel32/client/console/console.c
include/reactos/subsys/win/conmsg.h
subsystems/win/basesrv/dosdev.c
subsystems/win/basesrv/proc.c
win32ss/user/consrv/consrv.h
win32ss/user/consrv/handle.c

index 9dc5629..d27b8d5 100644 (file)
@@ -381,23 +381,6 @@ HANDLE
 WINAPI
 GetConsoleInputWaitHandle(VOID)
 {
-#if 0
-    NTSTATUS Status;
-    CONSOLE_API_MESSAGE ApiMessage;
-
-    Status = CsrClientCallServer((PCSR_API_MESSAGE)&ApiMessage,
-                                 NULL,
-                                 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 ApiMessage.Data.GetConsoleInputWaitHandle.InputWaitHandle;
-#endif
-
     return InputWaitHandle;
 }
 
index 2417aef..9b8fe74 100644 (file)
@@ -425,13 +425,6 @@ typedef struct
     DWORD ShareMode;
 } CONSOLE_OPENCONSOLE, *PCONSOLE_OPENCONSOLE;
 
-#if 0
-typedef struct
-{
-    HANDLE InputWaitHandle;
-} CSRSS_GET_INPUT_WAIT_HANDLE, *PCSRSS_GET_INPUT_WAIT_HANDLE;
-#endif
-
 
 /*
  * Console hardware states.
@@ -576,9 +569,6 @@ typedef struct _CONSOLE_API_MESSAGE
         CONSOLE_CLOSEHANDLE CloseHandleRequest;
         CONSOLE_VERIFYHANDLE VerifyHandleRequest;
         CONSOLE_DUPLICATEHANDLE DuplicateHandleRequest;
-#if 0
-        CSRSS_GET_INPUT_WAIT_HANDLE GetConsoleInputWaitHandle;
-#endif
 
         /* Cursor */
         CONSOLE_GETSETCURSORINFO CursorInfoRequest;
index dd31b8f..dd4a801 100644 (file)
@@ -99,7 +99,7 @@ CSR_API(BaseSrvDefineDosDevice)
     DWORD dwFlags;
     PWSTR lpBuffer;
 
-    DPRINT("CsrDefineDosDevice entered, Flags:%d, DeviceName:%wZ, TargetName:%wZ\n",
+    DPRINT("BaseSrvDefineDosDevice entered, Flags:%d, DeviceName:%wZ, TargetName:%wZ\n",
            DefineDosDeviceRequest->dwFlags,
            &DefineDosDeviceRequest->DeviceName,
            &DefineDosDeviceRequest->TargetName);
@@ -549,7 +549,7 @@ CSR_API(BaseSrvDefineDosDevice)
     }
     _SEH2_END
 
-    DPRINT("CsrDefineDosDevice Exit, Statux: 0x%x\n", Status);
+    DPRINT("BaseSrvDefineDosDevice exit, Status: 0x%x\n", Status);
     return Status;
 }
 
index 41a0dea..b302260 100644 (file)
 
 CSR_API(BaseSrvGetTempFile)
 {
-    static UINT CsrGetTempFileUnique = 0;
+    static UINT BaseGetTempFileUnique = 0;
     PBASE_GET_TEMP_FILE GetTempFile = &((PBASE_API_MESSAGE)ApiMessage)->Data.GetTempFile;
 
     /* Return 16-bits ID */
-    GetTempFile->UniqueID = (++CsrGetTempFileUnique & 0xFFFF);
+    GetTempFile->UniqueID = (++BaseGetTempFileUnique & 0xFFFF);
 
     DPRINT("Returning: %u\n", GetTempFile->UniqueID);
 
index 67c64ab..442eda7 100644 (file)
@@ -148,7 +148,6 @@ CSR_API(SrvGetConsoleSelectionInfo);
 CSR_API(SrvCloseHandle);
 CSR_API(SrvVerifyConsoleIoHandle);
 CSR_API(SrvDuplicateHandle);
-/// CSR_API(CsrGetInputWaitHandle);
 
 NTSTATUS FASTCALL ConSrvInitHandlesTable(IN OUT PCONSOLE_PROCESS_DATA ProcessData,
                                          OUT PHANDLE pInputHandle,
index 44a4fba..9c1536c 100644 (file)
@@ -856,16 +856,4 @@ CSR_API(SrvDuplicateHandle)
     return ApiMessage->Status;
 }
 
-/**
-CSR_API(CsrGetInputWaitHandle)
-{
-    PCSRSS_GET_INPUT_WAIT_HANDLE GetConsoleInputWaitHandle = &((PCONSOLE_API_MESSAGE)ApiMessage)->Data.GetConsoleInputWaitHandle;
-
-    GetConsoleInputWaitHandle->InputWaitHandle =
-        ConsoleGetPerProcessData(CsrGetClientThread()->Process)->ConsoleEvent;
-
-    return STATUS_SUCCESS;
-}
-**/
-
 /* EOF */