mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[CSRSRV/WINSRV]
- Move the last User CSR api which was in csrsrv instead of in winsrv. - Remove unneeded file. svn path=/branches/ros-csrss/; revision=57610
This commit is contained in:
parent
e2b29aaaf5
commit
2d61015804
6 changed files with 37 additions and 58 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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 */
|
|
@ -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
|
||||
|
@ -21,11 +20,39 @@
|
|||
* 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 */
|
||||
|
|
|
@ -10,3 +10,8 @@
|
|||
#include <csr/server.h>
|
||||
#include <win/base.h>
|
||||
#include <win/windows.h>
|
||||
|
||||
|
||||
CSR_API(SrvRegisterServicesProcess);
|
||||
|
||||
/* EOF */
|
||||
|
|
Loading…
Reference in a new issue