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:
Emanuele Aliberti 2005-08-16 14:24:00 +00:00
parent 3bea619a9a
commit 9544a940a9
3 changed files with 12 additions and 4 deletions

View file

@ -218,7 +218,7 @@ DllMain(HANDLE hDll,
/*
* Connect to the csrss server
*/
Status = CsrClientConnectToServer(NULL,
Status = CsrClientConnectToServer(L"\\Windows\\ApiPort",
0,
NULL,
NULL,

View file

@ -109,8 +109,8 @@ CsrClientConnectToServer(PWSTR ObjectDirectory,
ULONG ContextLength,
PBOOLEAN ServerToServerCall)
{
NTSTATUS Status;
UNICODE_STRING PortName = RTL_CONSTANT_STRING(L"\\Windows\\ApiPort");
NTSTATUS Status = STATUS_SUCCESS;
UNICODE_STRING PortName;
ULONG ConnectInfoLength;
CSR_API_MESSAGE Request;
PORT_VIEW LpcWrite;
@ -122,6 +122,13 @@ CsrClientConnectToServer(PWSTR ObjectDirectory,
return STATUS_SUCCESS;
}
if (NULL == ObjectDirectory)
{
return STATUS_INVALID_PARAMETER;
}
RtlInitUnicodeString (& PortName, ObjectDirectory);
CsrSectionViewSize.QuadPart = CSR_CSRSS_SECTION_SIZE;
Status = NtCreateSection(&CsrSectionHandle,
SECTION_ALL_ACCESS,

View file

@ -458,7 +458,8 @@ CsrpApiRegisterDef (ULONG argc, PWSTR* argv)
static NTSTATUS
CsrpCCTS (ULONG argc, PWSTR* argv)
{
return CsrClientConnectToServer(NULL, 0, NULL, NULL, 0, NULL);
return CsrClientConnectToServer(L"\\Windows\\ApiPort",
0, NULL, NULL, 0, NULL);
}
/**********************************************************************