Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.1 KiB

  1. /*++
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name:
  4. csrbinit.c
  5. Abstract:
  6. This module implements functions that are used during Win32 base initialization to
  7. communicate with csrss.
  8. Author:
  9. Michael Zoran (mzoran) 21-Jun-1998
  10. Revision History:
  11. --*/
  12. #include "basedll.h"
  13. NTSTATUS
  14. CsrBaseClientConnectToServer(
  15. PWSTR szSessionDir,
  16. PHANDLE phMutant,
  17. PBOOLEAN pServerProcess
  18. )
  19. {
  20. #if defined(BUILD_WOW6432)
  21. return NtWow64CsrBaseClientConnectToServer(szSessionDir,
  22. phMutant,
  23. pServerProcess
  24. );
  25. #else
  26. NTSTATUS Status;
  27. ULONG SizeMutant;
  28. SizeMutant = sizeof(HANDLE);
  29. Status = CsrClientConnectToServer( szSessionDir,
  30. BASESRV_SERVERDLL_INDEX,
  31. phMutant,
  32. &SizeMutant,
  33. pServerProcess
  34. );
  35. return Status;
  36. #endif
  37. }