[NTDLL]
[reactos.git] / subsystems / win32 / csrsrv / user.c
1 /*
2 * subsystems/win32/csrss/csrsrv/api/user.c
3 *
4 * User functions
5 *
6 * ReactOS Operating System
7 *
8 * PROGRAMMER: Eric Kohl
9 */
10
11 /* INCLUDES ******************************************************************/
12
13 #include <srv.h>
14
15 #define NDEBUG
16 #include <debug.h>
17
18 /* GLOBALS *******************************************************************/
19
20 static BOOLEAN ServicesProcessIdValid = FALSE;
21 static ULONG_PTR ServicesProcessId;
22
23
24 /* FUNCTIONS *****************************************************************/
25
26 CSR_API(SrvRegisterServicesProcess)
27 {
28 if (ServicesProcessIdValid == TRUE)
29 {
30 /* Only accept a single call */
31 return STATUS_INVALID_PARAMETER;
32 }
33 else
34 {
35 ServicesProcessId = (ULONG_PTR)ApiMessage->Data.RegisterServicesProcessRequest.ProcessId;
36 ServicesProcessIdValid = TRUE;
37 return STATUS_SUCCESS;
38 }
39 }
40
41 /* EOF */