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.

76 lines
1.4 KiB

  1. /*++
  2. Copyright (c) 1998-2000, Microsoft Corporation All rights reserved.
  3. Module Name:
  4. csrtables.c
  5. Abstract:
  6. This module implements functions that are used by the functions in tables.c
  7. to communicate with csrss.
  8. Author:
  9. Michael Zoran (mzoran) 21-Jun-1998
  10. Revision History:
  11. --*/
  12. //
  13. // Include Files.
  14. //
  15. #include "nls.h"
  16. #include "ntwow64n.h"
  17. ////////////////////////////////////////////////////////////////////////////
  18. //
  19. // CsrBasepNlsSetUserInfo
  20. //
  21. ////////////////////////////////////////////////////////////////////////////
  22. NTSTATUS CsrBasepNlsCreateSection(
  23. IN UINT uiType,
  24. IN LCID Locale,
  25. OUT PHANDLE phSection)
  26. {
  27. #if defined(BUILD_WOW6432)
  28. return ( NtWow64CsrBasepNlsCreateSection( uiType,
  29. Locale,
  30. phSection ));
  31. #else
  32. BASE_API_MSG m;
  33. PBASE_NLS_CREATE_SECTION_MSG a = &m.u.NlsCreateSection;
  34. a->Locale = Locale;
  35. a->uiType = uiType;
  36. CsrClientCallServer( (PCSR_API_MSG)&m,
  37. NULL,
  38. CSR_MAKE_API_NUMBER(BASESRV_SERVERDLL_INDEX,
  39. BasepNlsCreateSection),
  40. sizeof(*a) );
  41. //
  42. // Save the handle to the new section.
  43. //
  44. *phSection = a->hNewSection;
  45. return (m.ReturnValue);
  46. #endif
  47. }