mirror of
https://github.com/reactos/reactos.git
synced 2024-09-06 19:02:32 +00:00
![Hermès Bélusca-Maïto](/assets/img/avatar_default.png)
- Correct an enumeration identificator initialization. - Move the call of CSR for registering the logon application, from kernel-mode win32k to user-mode user32 and therefore remove the unneeded co_CsrNotify function (plus some other unneeded defines). - Comment some non-working code (#if 0) in user32/misc/misc.c and winsrv/shutdown.c. svn path=/branches/ros-csrss/; revision=57664
44 lines
1.1 KiB
C
44 lines
1.1 KiB
C
/*
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
* PROJECT: ReactOS User API Server DLL
|
|
* FILE: win32ss/user/winsrv/server.c
|
|
* PURPOSE: Server APIs
|
|
* PROGRAMMERS: Eric Kohl
|
|
* Hermes Belusca-Maito (hermes.belusca@sfr.fr)
|
|
*/
|
|
|
|
/* INCLUDES ******************************************************************/
|
|
|
|
#include "winsrv.h"
|
|
|
|
#define NDEBUG
|
|
#include <debug.h>
|
|
|
|
|
|
/* GLOBALS *******************************************************************/
|
|
|
|
static BOOLEAN ServicesProcessIdValid = FALSE;
|
|
static ULONG_PTR ServicesProcessId = 0;
|
|
|
|
|
|
/* FUNCTIONS *****************************************************************/
|
|
|
|
CSR_API(SrvRegisterServicesProcess)
|
|
{
|
|
PCSRSS_REGISTER_SERVICES_PROCESS RegisterServicesProcessRequest = &((PUSER_API_MESSAGE)ApiMessage)->Data.RegisterServicesProcessRequest;
|
|
|
|
if (ServicesProcessIdValid == TRUE)
|
|
{
|
|
/* Only accept a single call */
|
|
return STATUS_INVALID_PARAMETER;
|
|
}
|
|
else
|
|
{
|
|
ServicesProcessId = RegisterServicesProcessRequest->ProcessId;
|
|
ServicesProcessIdValid = TRUE;
|
|
return STATUS_SUCCESS;
|
|
}
|
|
}
|
|
|
|
/* EOF */
|