windows-nt/Source/XPSP1/NT/base/win32/client/csrbinit.c

58 lines
1.1 KiB
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
/*++
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
}