2012-10-13 20:32:44 +00:00
|
|
|
/*
|
2011-07-25 05:54:37 +00:00
|
|
|
* subsystems/win32/csrss/csrsrv/api/user.c
|
2002-10-20 14:54:34 +00:00
|
|
|
*
|
|
|
|
* User functions
|
|
|
|
*
|
|
|
|
* ReactOS Operating System
|
2006-05-20 10:49:56 +00:00
|
|
|
*
|
|
|
|
* PROGRAMMER: Eric Kohl
|
2002-10-20 14:54:34 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/* INCLUDES ******************************************************************/
|
|
|
|
|
2010-03-10 04:59:39 +00:00
|
|
|
#include <srv.h>
|
2002-10-20 14:54:34 +00:00
|
|
|
|
|
|
|
#define NDEBUG
|
|
|
|
#include <debug.h>
|
|
|
|
|
|
|
|
/* GLOBALS *******************************************************************/
|
|
|
|
|
|
|
|
static BOOLEAN ServicesProcessIdValid = FALSE;
|
2008-10-26 15:23:00 +00:00
|
|
|
static ULONG_PTR ServicesProcessId;
|
2002-10-20 14:54:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
/* FUNCTIONS *****************************************************************/
|
|
|
|
|
|
|
|
CSR_API(CsrRegisterServicesProcess)
|
|
|
|
{
|
|
|
|
if (ServicesProcessIdValid == TRUE)
|
|
|
|
{
|
|
|
|
/* Only accept a single call */
|
2008-08-02 22:09:22 +00:00
|
|
|
return STATUS_INVALID_PARAMETER;
|
2002-10-20 14:54:34 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2012-10-17 23:10:40 +00:00
|
|
|
ServicesProcessId = (ULONG_PTR)ApiMessage->Data.RegisterServicesProcessRequest.ProcessId;
|
2002-10-20 14:54:34 +00:00
|
|
|
ServicesProcessIdValid = TRUE;
|
2008-08-02 22:09:22 +00:00
|
|
|
return STATUS_SUCCESS;
|
2002-10-20 14:54:34 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* EOF */
|