mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 18:52:57 +00:00
[WIN32K]: Some code formatting in csr.c before revampering it.
svn path=/trunk/; revision=65694
This commit is contained in:
parent
423dd92dbd
commit
06c09f7300
2 changed files with 32 additions and 36 deletions
|
@ -1,50 +1,50 @@
|
||||||
/*
|
/*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS Win32k subsystem
|
||||||
* PURPOSE: Interface to csrss
|
* PURPOSE: Interface to CSRSS / USERSRV
|
||||||
* FILE: subsys/win32k/ntuser/csr.c
|
* FILE: subsystems/win32/win32k/ntuser/csr.c
|
||||||
* PROGRAMER: Ge van Geldorp (ge@gse.nl)
|
* PROGRAMER: Ge van Geldorp (ge@gse.nl)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <win32k.h>
|
#include <win32k.h>
|
||||||
|
|
||||||
static HANDLE WindowsApiPort = NULL;
|
static HANDLE WindowsApiPort = NULL;
|
||||||
|
// See gpepCSRSS in ntuser/ntuser.c and its initialization into NtUserInitialize()
|
||||||
PEPROCESS CsrProcess = NULL;
|
PEPROCESS CsrProcess = NULL;
|
||||||
|
|
||||||
NTSTATUS FASTCALL
|
NTSTATUS FASTCALL
|
||||||
CsrInit(void)
|
CsrInit(void)
|
||||||
{
|
{
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
UNICODE_STRING PortName;
|
UNICODE_STRING PortName;
|
||||||
ULONG ConnectInfoLength;
|
ULONG ConnectInfoLength;
|
||||||
SECURITY_QUALITY_OF_SERVICE Qos;
|
SECURITY_QUALITY_OF_SERVICE Qos;
|
||||||
|
|
||||||
RtlInitUnicodeString(&PortName, L"\\Windows\\ApiPort");
|
RtlInitUnicodeString(&PortName, L"\\Windows\\ApiPort");
|
||||||
ConnectInfoLength = 0;
|
ConnectInfoLength = 0;
|
||||||
Qos.Length = sizeof(Qos);
|
Qos.Length = sizeof(Qos);
|
||||||
Qos.ImpersonationLevel = SecurityDelegation;
|
Qos.ImpersonationLevel = SecurityDelegation;
|
||||||
Qos.ContextTrackingMode = SECURITY_STATIC_TRACKING;
|
Qos.ContextTrackingMode = SECURITY_STATIC_TRACKING;
|
||||||
Qos.EffectiveOnly = FALSE;
|
Qos.EffectiveOnly = FALSE;
|
||||||
|
|
||||||
Status = ZwConnectPort(&WindowsApiPort,
|
Status = ZwConnectPort(&WindowsApiPort,
|
||||||
&PortName,
|
&PortName,
|
||||||
&Qos,
|
&Qos,
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
&ConnectInfoLength);
|
&ConnectInfoLength);
|
||||||
if (! NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
CsrProcess = PsGetCurrentProcess();
|
CsrProcess = PsGetCurrentProcess();
|
||||||
|
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
NTSTATUS FASTCALL
|
NTSTATUS FASTCALL
|
||||||
co_CsrNotify(PCSR_API_MESSAGE Request)
|
co_CsrNotify(PCSR_API_MESSAGE Request)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
/*
|
/*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS Win32k subsystem
|
||||||
* PURPOSE: Interface to csrss
|
* PURPOSE: Interface to CSRSS / USERSRV
|
||||||
* FILE: subsys/win32k/include/csr.h
|
* FILE: subsystems/win32/win32k/ntuser/csr.h
|
||||||
* PROGRAMER: Ge van Geldorp (ge@gse.nl)
|
* PROGRAMER: Ge van Geldorp (ge@gse.nl)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -12,9 +12,5 @@ extern PEPROCESS CsrProcess;
|
||||||
|
|
||||||
NTSTATUS FASTCALL CsrInit(void);
|
NTSTATUS FASTCALL CsrInit(void);
|
||||||
NTSTATUS FASTCALL co_CsrNotify(PCSR_API_MESSAGE Request);
|
NTSTATUS FASTCALL co_CsrNotify(PCSR_API_MESSAGE Request);
|
||||||
NTSTATUS FASTCALL CsrCloseHandle(HANDLE Handle);
|
|
||||||
NTSTATUS WINAPI CsrInsertObject(HANDLE ObjectHandle,
|
|
||||||
ACCESS_MASK DesiredAccess,
|
|
||||||
PHANDLE Handle);
|
|
||||||
|
|
||||||
/* EOF */
|
/* EOF */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue