mirror of
https://github.com/reactos/reactos.git
synced 2025-01-12 17:16:58 +00:00
c424146e2c
svn path=/branches/cmake-bringup/; revision=48236
45 lines
1,017 B
C
45 lines
1,017 B
C
/* $Id$
|
|
*
|
|
* reactos/subsys/csrss/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(CsrRegisterServicesProcess)
|
|
{
|
|
Request->Header.u1.s1.TotalLength = sizeof(CSR_API_MESSAGE);
|
|
Request->Header.u1.s1.DataLength = sizeof(CSR_API_MESSAGE) - sizeof(PORT_MESSAGE);
|
|
|
|
if (ServicesProcessIdValid == TRUE)
|
|
{
|
|
/* Only accept a single call */
|
|
return STATUS_INVALID_PARAMETER;
|
|
}
|
|
else
|
|
{
|
|
ServicesProcessId = (ULONG_PTR)Request->Data.RegisterServicesProcessRequest.ProcessId;
|
|
ServicesProcessIdValid = TRUE;
|
|
return STATUS_SUCCESS;
|
|
}
|
|
}
|
|
|
|
/* EOF */
|