[CSRSRV/WINSRV]
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Wed, 24 Oct 2012 22:07:46 +0000 (22:07 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Wed, 24 Oct 2012 22:07:46 +0000 (22:07 +0000)
- Move the last User CSR api which was in csrsrv instead of in winsrv.
- Remove unneeded file.

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

subsystems/win32/csrsrv/CMakeLists.txt
subsystems/win32/csrsrv/include/api.h
subsystems/win32/csrsrv/init.c
subsystems/win32/csrsrv/user.c [deleted file]
win32ss/user/winsrv/server.c
win32ss/user/winsrv/winsrv.h

index 16fb659..62a864a 100644 (file)
@@ -11,7 +11,6 @@ list(APPEND SOURCE
     server.c
     session.c
     thredsup.c
-    user.c
     wait.c
     csrsrv.rc
     ${CMAKE_CURRENT_BINARY_DIR}/csrsrv.def)
index ea22ddc..f6ffb1a 100644 (file)
@@ -104,7 +104,6 @@ CSR_API(CsrSrvClientConnect);
 CSR_API(CsrSrvUnusedFunction);
 CSR_API(CsrSrvIdentifyAlertableThread);
 CSR_API(CsrSrvSetPriorityClass);
-CSR_API(SrvRegisterServicesProcess);
 
 
 /***
@@ -156,7 +155,10 @@ CsrInsertProcess(IN PCSR_PROCESS Parent OPTIONAL,
                  IN PCSR_PROCESS CsrProcess);
 
 
+#if 0
 NTSTATUS FASTCALL CsrApiRegisterDefinitions(PCSRSS_API_DEFINITION NewDefinitions);
+#endif
+
 VOID FASTCALL CsrApiCallHandler(IN OUT PCSR_API_MESSAGE ApiMessage, OUT PULONG Reply);
 
 NTSTATUS
index a15bfda..d7e0896 100644 (file)
@@ -61,11 +61,6 @@ CallHardError(IN PCSR_THREAD ThreadData,
     }
 }
 
-CSRSS_API_DEFINITION NativeDefinitions[] =
-{
-    CSRSS_DEFINE_API(REGISTER_SERVICES_PROCESS, SrvRegisterServicesProcess), // winsrv.dll
-};
-
 /* === INIT ROUTINES === */
 
 /*++
@@ -994,14 +989,6 @@ CsrServerInitialization(IN ULONG ArgumentCount,
         return Status;
     }
 
-#if 0
-    Status = CsrApiRegisterDefinitions(NativeDefinitions);
-    if (!NT_SUCCESS(Status))
-    {
-        DPRINT1("CSRSRV failed in %s with status %lx\n", "CsrApiRegisterDefinitions", Status);
-    }
-#endif
-
     /* Now initialize our API Port */
     Status = CsrApiPortInitialize();
     if (!NT_SUCCESS(Status))
diff --git a/subsystems/win32/csrsrv/user.c b/subsystems/win32/csrsrv/user.c
deleted file mode 100644 (file)
index dbd3fd4..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * subsystems/win32/csrss/csrsrv/api/user.c
- *
- * User functions
- *
- * ReactOS Operating System
- *
- * PROGRAMMER: Eric Kohl
- */
-
-/* INCLUDES ******************************************************************/
-
-#include <srv.h>
-
-#define NDEBUG
-#include <debug.h>
-
-/* GLOBALS *******************************************************************/
-
-static BOOLEAN ServicesProcessIdValid = FALSE;
-static ULONG_PTR ServicesProcessId;
-
-
-/* FUNCTIONS *****************************************************************/
-
-CSR_API(SrvRegisterServicesProcess)
-{
-    if (ServicesProcessIdValid == TRUE)
-    {
-        /* Only accept a single call */
-        return STATUS_INVALID_PARAMETER;
-    }
-    else
-    {
-        ServicesProcessId = (ULONG_PTR)ApiMessage->Data.RegisterServicesProcessRequest.ProcessId;
-        ServicesProcessIdValid = TRUE;
-        return STATUS_SUCCESS;
-    }
-}
-
-/* EOF */
index 22b768e..70bc906 100644 (file)
@@ -1,5 +1,4 @@
-/* $Id: server.c 43790 2009-10-27 10:34:16Z dgorbachev $
- *
+/*
  * server.c - ReactOS/Win32 Console+User Enviroment Subsystem Server - Initialization
  *
  * ReactOS Operating System
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  *
  * --------------------------------------------------------------------
+ *
+ * PROGRAMMER: Eric Kohl
  */
+
+/* INCLUDES ******************************************************************/
+
 #include "winsrv.h"
 
 //#define NDEBUG
 #include <debug.h>
 
 
+/* GLOBALS *******************************************************************/
+
+static BOOLEAN ServicesProcessIdValid = FALSE;
+static ULONG_PTR ServicesProcessId;
+
+
+/* FUNCTIONS *****************************************************************/
+
+CSR_API(SrvRegisterServicesProcess)
+{
+    if (ServicesProcessIdValid == TRUE)
+    {
+        /* Only accept a single call */
+        return STATUS_INVALID_PARAMETER;
+    }
+    else
+    {
+        ServicesProcessId = (ULONG_PTR)ApiMessage->Data.RegisterServicesProcessRequest.ProcessId;
+        ServicesProcessIdValid = TRUE;
+        return STATUS_SUCCESS;
+    }
+}
+
 /* EOF */
index 53d9f8d..99dcb6a 100644 (file)
@@ -10,3 +10,8 @@
 #include <csr/server.h>
 #include <win/base.h>
 #include <win/windows.h>
+
+
+CSR_API(SrvRegisterServicesProcess);
+
+/* EOF */