mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 06:16:38 +00:00
- Fix mixed tab/space formatting issues.
svn path=/trunk/; revision=18065
This commit is contained in:
parent
b14657cd56
commit
500c1e7db2
3 changed files with 26 additions and 29 deletions
|
@ -1,5 +1,4 @@
|
||||||
/* $Id$
|
/*
|
||||||
*
|
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
* FILE: lib/ntdll/csr/api.c
|
* FILE: lib/ntdll/csr/api.c
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
/* $Id$
|
/*
|
||||||
*
|
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
* FILE: lib/ntdll/csr/capture.c
|
* FILE: lib/ntdll/csr/capture.c
|
||||||
|
@ -119,8 +118,8 @@ CsrAllocateCaptureBuffer(ULONG ArgumentCount,
|
||||||
ULONG
|
ULONG
|
||||||
NTAPI
|
NTAPI
|
||||||
CsrAllocateMessagePointer(PCSR_CAPTURE_BUFFER CaptureBuffer,
|
CsrAllocateMessagePointer(PCSR_CAPTURE_BUFFER CaptureBuffer,
|
||||||
ULONG MessageLength,
|
ULONG MessageLength,
|
||||||
PVOID *CaptureData)
|
PVOID *CaptureData)
|
||||||
{
|
{
|
||||||
/* If there's no data, our job is easy. */
|
/* If there's no data, our job is easy. */
|
||||||
if (MessageLength == 0)
|
if (MessageLength == 0)
|
||||||
|
@ -159,9 +158,9 @@ CsrAllocateMessagePointer(PCSR_CAPTURE_BUFFER CaptureBuffer,
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
CsrCaptureMessageBuffer(PCSR_CAPTURE_BUFFER CaptureBuffer,
|
CsrCaptureMessageBuffer(PCSR_CAPTURE_BUFFER CaptureBuffer,
|
||||||
PVOID MessageString,
|
PVOID MessageString,
|
||||||
ULONG StringLength,
|
ULONG StringLength,
|
||||||
PVOID *CapturedData)
|
PVOID *CapturedData)
|
||||||
{
|
{
|
||||||
/* Simply allocate a message pointer in the buffer */
|
/* Simply allocate a message pointer in the buffer */
|
||||||
CsrAllocateMessagePointer(CaptureBuffer, StringLength, CapturedData);
|
CsrAllocateMessagePointer(CaptureBuffer, StringLength, CapturedData);
|
||||||
|
@ -255,7 +254,7 @@ CsrCaptureMessageString(PCSR_CAPTURE_BUFFER CaptureBuffer,
|
||||||
PLARGE_INTEGER
|
PLARGE_INTEGER
|
||||||
NTAPI
|
NTAPI
|
||||||
CsrCaptureTimeout(LONG Milliseconds,
|
CsrCaptureTimeout(LONG Milliseconds,
|
||||||
PLARGE_INTEGER Timeout)
|
PLARGE_INTEGER Timeout)
|
||||||
{
|
{
|
||||||
/* Validate the time */
|
/* Validate the time */
|
||||||
if (Milliseconds == -1) return NULL;
|
if (Milliseconds == -1) return NULL;
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
/* $Id$
|
/*
|
||||||
*
|
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
* FILE: lib/ntdll/csr/connect.c
|
* FILE: lib/ntdll/csr/connect.c
|
||||||
|
@ -40,7 +39,7 @@ HANDLE
|
||||||
NTAPI
|
NTAPI
|
||||||
CsrGetProcessId(VOID)
|
CsrGetProcessId(VOID)
|
||||||
{
|
{
|
||||||
return CsrProcessId;
|
return CsrProcessId;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -187,7 +186,7 @@ CsrConnectToServer(IN PWSTR ObjectDirectory)
|
||||||
/* Binary compatibility with MS KERNEL32 */
|
/* Binary compatibility with MS KERNEL32 */
|
||||||
if (NULL == ObjectDirectory)
|
if (NULL == ObjectDirectory)
|
||||||
{
|
{
|
||||||
ObjectDirectory = L"\\Windows";
|
ObjectDirectory = L"\\Windows";
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Calculate the total port name size */
|
/* Calculate the total port name size */
|
||||||
|
@ -209,12 +208,12 @@ CsrConnectToServer(IN PWSTR ObjectDirectory)
|
||||||
/* Create a section for the port memory */
|
/* Create a section for the port memory */
|
||||||
CsrSectionViewSize.QuadPart = CSR_CSRSS_SECTION_SIZE;
|
CsrSectionViewSize.QuadPart = CSR_CSRSS_SECTION_SIZE;
|
||||||
Status = NtCreateSection(&CsrSectionHandle,
|
Status = NtCreateSection(&CsrSectionHandle,
|
||||||
SECTION_ALL_ACCESS,
|
SECTION_ALL_ACCESS,
|
||||||
NULL,
|
NULL,
|
||||||
&CsrSectionViewSize,
|
&CsrSectionViewSize,
|
||||||
PAGE_READWRITE,
|
PAGE_READWRITE,
|
||||||
SEC_COMMIT,
|
SEC_COMMIT,
|
||||||
NULL);
|
NULL);
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
DPRINT1("Failure allocating CSR Section\n");
|
DPRINT1("Failure allocating CSR Section\n");
|
||||||
|
@ -256,13 +255,13 @@ CsrConnectToServer(IN PWSTR ObjectDirectory)
|
||||||
/* Connect to the port */
|
/* Connect to the port */
|
||||||
Status = NtSecureConnectPort(&CsrApiPort,
|
Status = NtSecureConnectPort(&CsrApiPort,
|
||||||
&PortName,
|
&PortName,
|
||||||
&SecurityQos,
|
&SecurityQos,
|
||||||
&LpcWrite,
|
&LpcWrite,
|
||||||
SystemSid,
|
SystemSid,
|
||||||
&LpcRead,
|
&LpcRead,
|
||||||
NULL,
|
NULL,
|
||||||
&ConnectionInfo,
|
&ConnectionInfo,
|
||||||
&ConnectionInfoLength);
|
&ConnectionInfoLength);
|
||||||
NtClose(CsrSectionHandle);
|
NtClose(CsrSectionHandle);
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
|
@ -419,9 +418,9 @@ CsrClientConnectToServer(PWSTR ObjectDirectory,
|
||||||
sizeof(CSR_CLIENT_CONNECT));
|
sizeof(CSR_CLIENT_CONNECT));
|
||||||
#endif
|
#endif
|
||||||
Status = CsrClientCallServer(&RosApiMessage,
|
Status = CsrClientCallServer(&RosApiMessage,
|
||||||
NULL,
|
NULL,
|
||||||
MAKE_CSR_API(CONNECT_PROCESS, CSR_NATIVE),
|
MAKE_CSR_API(CONNECT_PROCESS, CSR_NATIVE),
|
||||||
sizeof(CSR_API_MESSAGE));
|
sizeof(CSR_API_MESSAGE));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue