58 lines
1.1 KiB
C
58 lines
1.1 KiB
C
|
/*++
|
||
|
|
||
|
Copyright (c) 1998 Microsoft Corporation
|
||
|
|
||
|
Module Name:
|
||
|
|
||
|
csrbinit.c
|
||
|
|
||
|
Abstract:
|
||
|
|
||
|
This module implements functions that are used during Win32 base initialization to
|
||
|
communicate with csrss.
|
||
|
|
||
|
Author:
|
||
|
|
||
|
Michael Zoran (mzoran) 21-Jun-1998
|
||
|
|
||
|
Revision History:
|
||
|
|
||
|
--*/
|
||
|
|
||
|
#include "basedll.h"
|
||
|
|
||
|
NTSTATUS
|
||
|
CsrBaseClientConnectToServer(
|
||
|
PWSTR szSessionDir,
|
||
|
PHANDLE phMutant,
|
||
|
PBOOLEAN pServerProcess
|
||
|
)
|
||
|
{
|
||
|
|
||
|
#if defined(BUILD_WOW6432)
|
||
|
return NtWow64CsrBaseClientConnectToServer(szSessionDir,
|
||
|
phMutant,
|
||
|
pServerProcess
|
||
|
);
|
||
|
#else
|
||
|
|
||
|
NTSTATUS Status;
|
||
|
ULONG SizeMutant;
|
||
|
SizeMutant = sizeof(HANDLE);
|
||
|
|
||
|
Status = CsrClientConnectToServer( szSessionDir,
|
||
|
BASESRV_SERVERDLL_INDEX,
|
||
|
phMutant,
|
||
|
&SizeMutant,
|
||
|
pServerProcess
|
||
|
);
|
||
|
|
||
|
|
||
|
return Status;
|
||
|
|
||
|
#endif
|
||
|
|
||
|
}
|
||
|
|
||
|
|