2012-10-24 22:07:46 +00:00
|
|
|
/*
|
2012-10-25 20:40:41 +00:00
|
|
|
* 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)
|
2005-08-12 12:22:02 +00:00
|
|
|
*/
|
2012-10-24 22:07:46 +00:00
|
|
|
|
|
|
|
/* INCLUDES ******************************************************************/
|
|
|
|
|
2005-08-12 12:22:02 +00:00
|
|
|
#include "winsrv.h"
|
|
|
|
|
2012-10-24 23:19:54 +00:00
|
|
|
#define NDEBUG
|
2005-08-12 12:22:02 +00:00
|
|
|
#include <debug.h>
|
|
|
|
|
|
|
|
|
2012-10-24 22:07:46 +00:00
|
|
|
/* GLOBALS *******************************************************************/
|
|
|
|
|
|
|
|
static BOOLEAN ServicesProcessIdValid = FALSE;
|
|
|
|
static ULONG_PTR ServicesProcessId;
|
|
|
|
|
|
|
|
|
|
|
|
/* FUNCTIONS *****************************************************************/
|
|
|
|
|
|
|
|
CSR_API(SrvRegisterServicesProcess)
|
|
|
|
{
|
2012-10-25 22:14:46 +00:00
|
|
|
PCSRSS_REGISTER_SERVICES_PROCESS RegisterServicesProcessRequest = &((PUSER_API_MESSAGE)ApiMessage)->Data.RegisterServicesProcessRequest;
|
|
|
|
|
2012-10-24 22:07:46 +00:00
|
|
|
if (ServicesProcessIdValid == TRUE)
|
|
|
|
{
|
|
|
|
/* Only accept a single call */
|
|
|
|
return STATUS_INVALID_PARAMETER;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2012-10-25 22:14:46 +00:00
|
|
|
ServicesProcessId = (ULONG_PTR)RegisterServicesProcessRequest->ProcessId;
|
2012-10-24 22:07:46 +00:00
|
|
|
ServicesProcessIdValid = TRUE;
|
|
|
|
return STATUS_SUCCESS;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2005-08-12 12:22:02 +00:00
|
|
|
/* EOF */
|