3 * reactos/subsys/csrss/api/user.c
7 * ReactOS Operating System
10 /* INCLUDES ******************************************************************/
17 /* GLOBALS *******************************************************************/
19 static BOOLEAN ServicesProcessIdValid
= FALSE
;
20 static ULONG ServicesProcessId
;
23 /* FUNCTIONS *****************************************************************/
25 CSR_API(CsrRegisterServicesProcess
)
29 Request
->Header
.u1
.s1
.TotalLength
= sizeof(CSR_API_MESSAGE
);
30 Request
->Header
.u1
.s1
.DataLength
= sizeof(CSR_API_MESSAGE
) - LPC_MESSAGE_BASE_SIZE
;
32 if (ServicesProcessIdValid
== TRUE
)
34 /* Only accept a single call */
35 Status
= STATUS_INVALID_PARAMETER
;
39 ServicesProcessId
= (ULONG
)Request
->Data
.RegisterServicesProcessRequest
.ProcessId
;
40 ServicesProcessIdValid
= TRUE
;
41 Status
= STATUS_SUCCESS
;
44 Request
->Status
= Status
;