2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS kernel
4 * PURPOSE: Interface to csrss
5 * FILE: subsys/win32k/ntuser/csr.c
6 * PROGRAMER: Ge van Geldorp (ge@gse.nl)
10 DBG_DEFAULT_CHANNEL(UserMisc
);
12 static HANDLE WindowsApiPort
= NULL
;
13 PEPROCESS CsrProcess
= NULL
;
19 UNICODE_STRING PortName
;
20 ULONG ConnectInfoLength
;
21 SECURITY_QUALITY_OF_SERVICE Qos
;
25 RtlInitUnicodeString(&PortName
, L
"\\Windows\\ApiPort");
26 ConnectInfoLength
= 0;
27 Qos
.Length
= sizeof(Qos
);
28 Qos
.ImpersonationLevel
= SecurityDelegation
;
29 Qos
.ContextTrackingMode
= SECURITY_STATIC_TRACKING
;
30 Qos
.EffectiveOnly
= FALSE
;
32 CsrProcess
= PsGetCurrentProcess();
33 ERR("CsrInit - CsrProcess = 0x%p\n", CsrProcess
);
35 Status
= ZwConnectPort(&WindowsApiPort
,
43 if (!NT_SUCCESS(Status
))
45 ERR("CsrInit - Status = 0x%p\n", Status
);
49 return STATUS_SUCCESS
;