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.

112 lines
3.7 KiB

  1. //
  2. // tscdefines.h
  3. //
  4. // Terminal Services Client defines
  5. //
  6. // Copyright(C) Microsoft Corporation 2000
  7. // Author: Nadim Abdo (nadima)
  8. //
  9. #ifndef _TSCDEFINES_H_
  10. #define _TSCDEFINES_H_
  11. #include "tsperf.h"
  12. #define DEFAULT_DESKTOP_WIDTH 800
  13. #define DEFAULT_DESKTOP_HEIGHT 600
  14. #define MIN_DESKTOP_WIDTH 200
  15. #define MIN_DESKTOP_HEIGHT 200
  16. #define MAX_DESKTOP_WIDTH 1600
  17. #define MAX_DESKTOP_HEIGHT 1200
  18. #define TSC_MAX_DOMAIN_LENGTH 512
  19. #define TSC_MAX_USERNAME_LENGTH 512
  20. #define TSC_MAX_PASSWORD_LENGTH_BYTES 512
  21. #define TSC_WIN2K_PASSWORD_LENGTH_BYTES 32
  22. #define TSC_SALT_LENGTH 20
  23. #define TSC_FILENAME_MAX_LENGTH 15
  24. #define TSC_MAX_WORKINGDIR_LENGTH 512
  25. #define TSC_MAX_ALTERNATESHELL_LENGTH 512
  26. #define TSC_MAX_ADDRESS_LENGTH 256
  27. #define TSC_REGSESSION_MAX_LENGTH 32
  28. #define TSC_MAX_SUBKEY 265
  29. #define TSC_NUM_SERVER_MRU 10
  30. #define TSC_WINDOW_POSITION_STR_LEN 256
  31. #define TSC_FRAME_TITLE_RESOURCE_MAX_LENGTH 256
  32. #define TSC_DISCONNECT_RESOURCE_MAX_LENGTH 256
  33. #define TSC_BUILDNUMBER_STRING_MAX_LENGTH 256
  34. #define TSC_VERSION_STRING_MAX_LENGTH 256
  35. #define TSC_DISPLAY_STRING_MAX_LENGTH 256
  36. #define TSC_INTEGER_STRING_MAX_LENGTH 10
  37. #define TSC_SHORT_STRING_MAX_LENGTH 32
  38. #define TSC_DEFAULT_BPP 8
  39. #define UI_HELP_SERVERNAME_CONTEXT 103
  40. #ifdef DC_DEBUG
  41. #define TSC_NUMBER_STRING_MAX_LENGTH ( 18 * sizeof (DCTCHAR) )
  42. #endif /* DC_DEBUG */
  43. //Screen mode constants
  44. #define UI_WINDOWED 1
  45. #define UI_FULLSCREEN 2
  46. #define TSC_NUMBER_FIELDS_TO_READ 6
  47. #define TSC_WINDOW_POSITION_INI_FORMAT _T("%u,%u,%d,%d,%d,%d")
  48. #define TRANSPORT_TCP 1
  49. #define TSC_ICON_INDEX_DEFAULT 0
  50. #define TSC_ICON_FILE _T("Icon File")
  51. #define TSC_ICON_INDEX _T("Icon Index")
  52. #define TSC_DEFAULT_REG_SESSION _T("Default")
  53. //
  54. // Map the bitmap cache setting internally to a reserved
  55. // bit in the disabled feature list (only used internally)
  56. //
  57. #define TS_PERF_DISABLE_BITMAPCACHING TS_PERF_RESERVED1
  58. #define TSC_MAX_PASSLENGTH_TCHARS (TSC_MAX_PASSWORD_LENGTH_BYTES / sizeof(TCHAR))
  59. //
  60. // Performance options dictate which features to
  61. // enable or disable for a connection
  62. //
  63. #define TSCSETTING_PERFOPTIONS _T("Performance Options")
  64. #define TSCSETTING_PERFOPTIONS_DFLT (TS_PERF_DISABLE_WALLPAPER | \
  65. TS_PERF_DISABLE_FULLWINDOWDRAG | \
  66. TS_PERF_DISABLE_MENUANIMATIONS)
  67. //
  68. // Individual perf option settings
  69. //
  70. // Defaults must match configuration above in TSCSETTING_PERFOPTIONS_DFLT
  71. //
  72. #define PO_DISABLE_WALLPAPER _T("Disable wallpaper")
  73. #define PO_DISABLE_WALLPAPER_DFLT 1
  74. #define PO_DISABLE_FULLWINDOWDRAG _T("Disable full window drag")
  75. #define PO_DISABLE_FULLWINDOWDRAG_DFLT 1
  76. #define PO_DISABLE_MENU_WINDOW_ANIMS _T("Disable menu anims")
  77. #define PO_DISABLE_MENU_WINDOW_ANIMS_DFLT 1
  78. #define PO_DISABLE_THEMES _T("Disable themes")
  79. #define PO_DISABLE_THEMES_DFLT 0
  80. #define PO_ENABLE_ENHANCED_GRAPHICS _T("Enable enhanced graphics")
  81. #define PO_ENABLE_ENHANCED_GRAPHICS_DFLT 0
  82. #define PO_DISABLE_CURSOR_SETTINGS _T("Disable Cursor Setting")
  83. #define PO_DISABLE_CURSOR_SETTINGS_DFLT 0
  84. #endif //_TSCDEFINES_H_