mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +00:00
Make NTDLL not bind automatically to the Win32 server.
This will allow other personality subsystem not to depend on Win32. svn path=/trunk/; revision=17411
This commit is contained in:
parent
3bea619a9a
commit
9544a940a9
3 changed files with 12 additions and 4 deletions
|
@ -218,7 +218,7 @@ DllMain(HANDLE hDll,
|
||||||
/*
|
/*
|
||||||
* Connect to the csrss server
|
* Connect to the csrss server
|
||||||
*/
|
*/
|
||||||
Status = CsrClientConnectToServer(NULL,
|
Status = CsrClientConnectToServer(L"\\Windows\\ApiPort",
|
||||||
0,
|
0,
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
|
|
|
@ -109,8 +109,8 @@ CsrClientConnectToServer(PWSTR ObjectDirectory,
|
||||||
ULONG ContextLength,
|
ULONG ContextLength,
|
||||||
PBOOLEAN ServerToServerCall)
|
PBOOLEAN ServerToServerCall)
|
||||||
{
|
{
|
||||||
NTSTATUS Status;
|
NTSTATUS Status = STATUS_SUCCESS;
|
||||||
UNICODE_STRING PortName = RTL_CONSTANT_STRING(L"\\Windows\\ApiPort");
|
UNICODE_STRING PortName;
|
||||||
ULONG ConnectInfoLength;
|
ULONG ConnectInfoLength;
|
||||||
CSR_API_MESSAGE Request;
|
CSR_API_MESSAGE Request;
|
||||||
PORT_VIEW LpcWrite;
|
PORT_VIEW LpcWrite;
|
||||||
|
@ -122,6 +122,13 @@ CsrClientConnectToServer(PWSTR ObjectDirectory,
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (NULL == ObjectDirectory)
|
||||||
|
{
|
||||||
|
return STATUS_INVALID_PARAMETER;
|
||||||
|
}
|
||||||
|
|
||||||
|
RtlInitUnicodeString (& PortName, ObjectDirectory);
|
||||||
|
|
||||||
CsrSectionViewSize.QuadPart = CSR_CSRSS_SECTION_SIZE;
|
CsrSectionViewSize.QuadPart = CSR_CSRSS_SECTION_SIZE;
|
||||||
Status = NtCreateSection(&CsrSectionHandle,
|
Status = NtCreateSection(&CsrSectionHandle,
|
||||||
SECTION_ALL_ACCESS,
|
SECTION_ALL_ACCESS,
|
||||||
|
|
|
@ -458,7 +458,8 @@ CsrpApiRegisterDef (ULONG argc, PWSTR* argv)
|
||||||
static NTSTATUS
|
static NTSTATUS
|
||||||
CsrpCCTS (ULONG argc, PWSTR* argv)
|
CsrpCCTS (ULONG argc, PWSTR* argv)
|
||||||
{
|
{
|
||||||
return CsrClientConnectToServer(NULL, 0, NULL, NULL, 0, NULL);
|
return CsrClientConnectToServer(L"\\Windows\\ApiPort",
|
||||||
|
0, NULL, NULL, 0, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**********************************************************************
|
/**********************************************************************
|
||||||
|
|
Loading…
Reference in a new issue