Source code of Windows XP (NT5)
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.

66 lines
1.4 KiB

  1. /*++
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name:
  4. csrterm.c
  5. Abstract:
  6. This module implements functions that are used by the Terminal server support functions
  7. to communicate with csrss.
  8. Author:
  9. Michael Zoran (mzoran) 21-Jun-1998
  10. Revision History:
  11. --*/
  12. #include "basedll.h"
  13. NTSTATUS
  14. CsrBasepSetTermsrvAppInstallMode(
  15. BOOL bState
  16. )
  17. {
  18. #if defined(BUILD_WOW6432)
  19. return NtWow64CsrBasepSetTermsrvAppInstallMode(bState);
  20. #else
  21. BASE_API_MSG m;
  22. PBASE_SET_TERMSRVAPPINSTALLMODE c = &m.u.SetTermsrvAppInstallMode;
  23. c->bState = bState;
  24. return CsrClientCallServer((PCSR_API_MSG)&m, NULL,
  25. CSR_MAKE_API_NUMBER(BASESRV_SERVERDLL_INDEX,
  26. BasepSetTermsrvAppInstallMode),
  27. sizeof( *c ));
  28. #endif
  29. }
  30. NTSTATUS
  31. CsrBasepSetClientTimeZoneInformation(
  32. IN PBASE_SET_TERMSRVCLIENTTIMEZONE c
  33. )
  34. {
  35. #if defined(BUILD_WOW6432)
  36. return NtWow64CsrBasepSetClientTimeZoneInformation(c);
  37. #else
  38. BASE_API_MSG m;
  39. RtlCopyMemory(&m.u.SetTermsrvClientTimeZone, c, sizeof(*c));
  40. return CsrClientCallServer((PCSR_API_MSG)&m, NULL,
  41. CSR_MAKE_API_NUMBER(BASESRV_SERVERDLL_INDEX,
  42. BasepSetTermsrvClientTimeZone),
  43. sizeof( *c ));
  44. #endif
  45. }