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.

61 lines
1.3 KiB

  1. /*************************************************************************
  2. *
  3. * inimap.c
  4. *
  5. * Functions to query/set ini file mapping for the WinStation and set the
  6. * application
  7. *
  8. * Copyright Microsoft, 1998
  9. *
  10. *
  11. *************************************************************************/
  12. #include <nt.h>
  13. #include <ntrtl.h>
  14. #include <nturtl.h>
  15. #include <windows.h>
  16. #include "winsta.h"
  17. #include "syslib.h"
  18. #if DBG
  19. #define DBGPRINT(x) DbgPrint x
  20. #if DBGTRACE
  21. #define TRACE0(x) DbgPrint x
  22. #define TRACE1(x) DbgPrint x
  23. #else
  24. #define TRACE0(x)
  25. #define TRACE1(x)
  26. #endif
  27. #else
  28. #define DBGPRINT(x)
  29. #define TRACE0(x)
  30. #define TRACE1(x)
  31. #endif
  32. #define CITRIX_COMPAT_TEBVALID 0x80000000 // Compat flags in Teb are valid
  33. /*****************************************************************************
  34. *
  35. * SetCtxAppCompatFlags
  36. *
  37. * Set the application's current compatibility flags, this will only update
  38. * the current compatibility flags, not the flags in the registry.
  39. *
  40. * ENTRY:
  41. * ULONG ulAppFlags (IN) - Desired compatibility flags
  42. *
  43. * EXIT:
  44. * Returns TRUE to indicate success
  45. *
  46. ****************************************************************************/
  47. BOOL SetCtxAppCompatFlags(ULONG ulAppFlags)
  48. {
  49. #if 0
  50. NtCurrentTeb()->CtxCompatFlags = ulAppFlags;
  51. NtCurrentTeb()->CtxCompatFlags |= CITRIX_COMPAT_TEBVALID;
  52. #endif
  53. return(TRUE);
  54. }