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.

764 lines
40 KiB

  1. /****************************************************************************/
  2. /* autreg.h */
  3. /* */
  4. /* Registry constants and strings */
  5. /* */
  6. /* Copyright(C) Microsoft Corporation 1997-1999 */
  7. /****************************************************************************/
  8. #ifndef _H_AUTREG
  9. #define _H_AUTREG
  10. #define UTREG_SECTION _T("")
  11. #include "tsperf.h"
  12. //
  13. // BE VERY CAREFUL ABOUT CHANGING ANY OF THESE NAMES
  14. // They might be used to refer to legacy registry entries
  15. // that cannot (obviously) change
  16. //
  17. //
  18. #define TSC_SETTINGS_REG_ROOT TEXT("Software\\Microsoft\\Terminal Server Client\\")
  19. /****************************************************************************/
  20. /* Ducati registry prefix. */
  21. /****************************************************************************/
  22. #define DUCATI_REG_PREFIX _T("SOFTWARE\\Microsoft\\Terminal Server Client\\")
  23. #define DUCATI_REG_PREFIX_FMT _T("SOFTWARE\\Microsoft\\Terminal Server Client\\%s")
  24. /****************************************************************************/
  25. /* Minimum time between sending mouse events (ms) */
  26. /****************************************************************************/
  27. #define UTREG_IH_MIN_SEND_INTERVAL _T("Min Send Interval")
  28. #define UTREG_IH_MIN_SEND_INTERVAL_DFLT 100
  29. /****************************************************************************/
  30. /* Max size of InputPDU packet (number of events) */
  31. /****************************************************************************/
  32. #define UTREG_IH_MAX_EVENT_COUNT _T("Max Event Count")
  33. #define UTREG_IH_MAX_EVENT_COUNT_DFLT 100
  34. /****************************************************************************/
  35. /* Normal max size of InputPDU packet (number of events) */
  36. /****************************************************************************/
  37. #define UTREG_IH_NRM_EVENT_COUNT _T("Normal Event Count")
  38. #define UTREG_IH_NRM_EVENT_COUNT_DFLT 10
  39. /****************************************************************************/
  40. /* KeepAlive rate in seconds. IH sends the mouse position at this rate to */
  41. /* check that the connection is still active. Zero = no keep-alives. */
  42. /****************************************************************************/
  43. #define UTREG_IH_KEEPALIVE_INTERVAL _T("Keep Alive Interval")
  44. #define UTREG_IH_KEEPALIVE_INTERVAL_DFLT 0
  45. #define KEEP_ALIVE_INTERVAL_OFF 0
  46. #define MIN_KEEP_ALIVE_INTERVAL 10 //10 seconds
  47. /****************************************************************************/
  48. /* Indicates whether or not we are allowed to forward any input mesages we */
  49. /* may receive while we don't have the focus. */
  50. /****************************************************************************/
  51. #define UTREG_IH_ALLOWBACKGROUNDINPUT _T("Allow Background Input")
  52. #define UTREG_IH_ALLOWBACKGROUNDINPUT_DFLT 0
  53. #ifdef OS_WINCE
  54. /****************************************************************************/
  55. /* Max Mouse Move -- Enabled when the application relies on Pen/Stylus input*/
  56. /* zero = disable feature, non-zero = enable feature (send max) */
  57. /****************************************************************************/
  58. #define UTREG_IH_MAX_MOUSEMOVE _T("Max Mouse Move")
  59. #define UTREG_IH_MAX_MOUSEMOVE_DFLT 0
  60. #endif
  61. /****************************************************************************/
  62. /* Browse for servers (Default: yes) */
  63. /****************************************************************************/
  64. #define UTREG_UI_EXPAND _T("Expand")
  65. #ifdef OS_WIN32
  66. #define UTREG_UI_EXPAND_DFLT 1
  67. #else //OS_WIN32
  68. #define UTREG_UI_EXPAND_DFLT 0
  69. #endif //OS_WIN32
  70. /****************************************************************************/
  71. /* Desktop Size (default 800x600) */
  72. /****************************************************************************/
  73. #define UTREG_UI_DESKTOP_SIZEID _T("Desktop Size ID")
  74. #define UTREG_UI_DESKTOP_SIZEID_DFLT 1
  75. /****************************************************************************/
  76. /* Screen Mode ID */
  77. /****************************************************************************/
  78. #define UTREG_UI_SCREEN_MODE _T("Screen Mode ID")
  79. #define UTREG_UI_SCREEN_MODE_DFLT UI_FULLSCREEN
  80. //
  81. // DesktopWidth,DesktopHeight (replace ScreenModeID)
  82. //
  83. #define UTREG_UI_DESKTOP_WIDTH _T("DesktopWidth")
  84. #define UTREG_UI_DESKTOP_WIDTH_DFLT 0
  85. #define UTREG_UI_DESKTOP_HEIGHT _T("DesktopHeight")
  86. #define UTREG_UI_DESKTOP_HEIGHT_DFLT 0
  87. #define UTREG_UI_KEYBOARD_HOOK _T("KeyboardHook")
  88. #define UTREG_UI_KEYBOARD_HOOK_NEVER 0
  89. #define UTREG_UI_KEYBOARD_HOOK_ALWAYS 1
  90. #define UTREG_UI_KEYBOARD_HOOK_FULLSCREEN 2
  91. #define UTREG_UI_KEYBOARD_HOOK_DFLT UTREG_UI_KEYBOARD_HOOK_FULLSCREEN
  92. #define UTREG_UI_AUDIO_MODE _T("AudioMode")
  93. #define UTREG_UI_AUDIO_MODE_REDIRECT 0
  94. #define UTREG_UI_AUDIO_MODE_PLAY_ON_SERVER 1
  95. #define UTREG_UI_AUDIO_MODE_NONE 2
  96. #define UTREG_UI_AUDIO_MODE_DFLT UTREG_UI_AUDIO_MODE_REDIRECT
  97. /****************************************************************************/
  98. /* Color Depth ID: must be CO_BITSPERPEL8 */
  99. /****************************************************************************/
  100. #define UTREG_UI_COLOR_DEPTH _T("Color Depth")
  101. #ifdef DC_HICOLOR
  102. /****************************************************************************/
  103. /* Bpp selection - must be 4, 8, 15, 16 or 24 */
  104. /****************************************************************************/
  105. #define UTREG_UI_SESSION_BPP _T("Session Bpp")
  106. #endif
  107. /****************************************************************************/
  108. /* Full Address */
  109. /****************************************************************************/
  110. #define UTREG_UI_FULL_ADDRESS _T("Full Address")
  111. #define UTREG_UI_FULL_ADDRESS_DFLT _T("")
  112. /****************************************************************************/
  113. /*Defines for the MRU list. Should later be implemented as a single string! */
  114. /****************************************************************************/
  115. #define UTREG_UI_SERVER_MRU_DFLT _T("")
  116. #define UTREG_UI_SERVER_MRU0 _T("MRU0")
  117. #define UTREG_UI_SERVER_MRU1 _T("MRU1")
  118. #define UTREG_UI_SERVER_MRU2 _T("MRU2")
  119. #define UTREG_UI_SERVER_MRU3 _T("MRU3")
  120. #define UTREG_UI_SERVER_MRU4 _T("MRU4")
  121. #define UTREG_UI_SERVER_MRU5 _T("MRU5")
  122. #define UTREG_UI_SERVER_MRU6 _T("MRU6")
  123. #define UTREG_UI_SERVER_MRU7 _T("MRU7")
  124. #define UTREG_UI_SERVER_MRU8 _T("MRU8")
  125. #define UTREG_UI_SERVER_MRU9 _T("MRU9")
  126. /****************************************************************************/
  127. /* Auto Connect */
  128. /****************************************************************************/
  129. #define UTREG_UI_AUTO_CONNECT _T("Auto Connect")
  130. #define UTREG_UI_AUTO_CONNECT_DFLT 0
  131. /****************************************************************************/
  132. /* Window positioning information - this consists of the following */
  133. /* parameters to SetWindowPlacement: */
  134. /* flags, showCmd, NormalPosition(rect) */
  135. /* */
  136. /****************************************************************************/
  137. #define UTREG_UI_WIN_POS_STR _T("WinPosStr")
  138. #define UTREG_UI_WIN_POS_STR_DFLT _T("0,3,0,0,800,600")
  139. /****************************************************************************/
  140. /* Smooth scrolling flag */
  141. /****************************************************************************/
  142. #define UTREG_UI_SMOOTH_SCROLL _T("Smooth Scrolling")
  143. #define UTREG_UI_SMOOTH_SCROLL_DFLT 0
  144. /****************************************************************************/
  145. /* Flag denoting whether accelerator passthrough is enabled on startup */
  146. /****************************************************************************/
  147. #define UTREG_UI_ACCELERATOR_PASSTHROUGH_ENABLED \
  148. _T("Accelerator Passthrough Enabled")
  149. #define UTREG_UI_ACCELERATOR_PASSTHROUGH_ENABLED_DFLT 1
  150. /****************************************************************************/
  151. /* Transport type: must be TCP */
  152. /****************************************************************************/
  153. #define UTREG_UI_TRANSPORT_TYPE _T("Transport Type")
  154. #define UTREG_UI_TRANSPORT_TYPE_DFLT CO_TRANSPORT_TCP
  155. #define UI_TRANSPORT_TYPE_TCP 1 //CO_TRANSPORT_TCP
  156. /****************************************************************************/
  157. /* Dedicated Terminal 0:FALSE 1:TRUE */
  158. /* For Windows CE, enable this so that we have SaveScreenBits even when the */
  159. /* shadow bitmap is disabled. The Client is the shell on WinCE. */
  160. /* EXCEPT for the WINCE_HPC case... In that case, the Client is just */
  161. /* another application that can be underneath the taskbar. When that */
  162. /* happens, the ScrBlt call that ends-up being made will scroll the taskbar */
  163. /* bits along with everything else. To avoid that behavior, specify that */
  164. /* the WINCE_HPC client is NOT a dedicated terminal. */
  165. /* On WinCE, we have one binary for both WBT and HPC builds now, so we have */
  166. /* to make this an extern and determine it's value at runtime */
  167. /****************************************************************************/
  168. #define UTREG_UI_DEDICATED_TERMINAL _T("Dedicated Terminal")
  169. #ifdef OS_WINCE
  170. extern BOOL UTREG_UI_DEDICATED_TERMINAL_DFLT;
  171. #else
  172. #ifndef DISABLE_SHADOW_IN_FULLSCREEN
  173. #define UTREG_UI_DEDICATED_TERMINAL_DFLT TRUE
  174. #else
  175. #define UTREG_UI_DEDICATED_TERMINAL_DFLT FALSE
  176. #endif // DISABLE_SHADOW_IN_FULLSCREEN
  177. #endif
  178. #ifdef OS_WINCE
  179. /****************************************************************************/
  180. /* Used to override the TSC's default palette-usage. */
  181. /* This is used on non-WBT configs only. */
  182. /****************************************************************************/
  183. #define UTREG_UI_PALETTE_IS_FIXED _T("PaletteIsFixed")
  184. #endif
  185. /****************************************************************************/
  186. /* SAS sequence: must be RNS_US_SAS_DEL */
  187. /****************************************************************************/
  188. #define UTREG_UI_SAS_SEQUENCE _T("SAS Sequence")
  189. #define UTREG_UI_SAS_SEQUENCE_DFLT RNS_UD_SAS_DEL
  190. /****************************************************************************/
  191. /* Encryption 0:off 1:on */
  192. /****************************************************************************/
  193. #define UTREG_UI_ENCRYPTION_ENABLED _T("Encryption enabled")
  194. #define UTREG_UI_ENCRYPTION_ENABLED_DFLT 1
  195. /****************************************************************************/
  196. /* Hatch bitmap PDU data flag */
  197. /****************************************************************************/
  198. #define UTREG_UI_HATCH_BITMAP_PDU_DATA _T("Hatch BitmapPDU Data")
  199. #define UTREG_UI_HATCH_BITMAP_PDU_DATA_DFLT 0
  200. /****************************************************************************/
  201. /* Hatch index PDU data flag */
  202. /****************************************************************************/
  203. #define UTREG_UI_HATCH_INDEX_PDU_DATA _T("Hatch IndexPDU Data")
  204. #define UTREG_UI_HATCH_INDEX_PDU_DATA_DFLT 0
  205. /****************************************************************************/
  206. /* Hatch SSB data flag */
  207. /****************************************************************************/
  208. #define UTREG_UI_HATCH_SSB_ORDER_DATA _T("Hatch SSB Order Data")
  209. #define UTREG_UI_HATCH_SSB_ORDER_DATA_DFLT 0
  210. /****************************************************************************/
  211. /* Hatch MemBlt orders flag */
  212. /****************************************************************************/
  213. #define UTREG_UI_HATCH_MEMBLT_ORDER_DATA _T("Hatch MemBlt Order Data")
  214. #define UTREG_UI_HATCH_MEMBLT_ORDER_DATA_DFLT 0
  215. /****************************************************************************/
  216. /* Label MemBlt orders flag */
  217. /****************************************************************************/
  218. #define UTREG_UI_LABEL_MEMBLT_ORDERS _T("Label MemBlt Orders")
  219. #define UTREG_UI_LABEL_MEMBLT_ORDERS_DFLT 0
  220. /****************************************************************************/
  221. /* Bitmap Cache Monitor flag */
  222. /****************************************************************************/
  223. #define UTREG_UI_BITMAP_CACHE_MONITOR _T("Bitmap Cache Monitor")
  224. #define UTREG_UI_BITMAP_CACHE_MONITOR_DFLT 0
  225. /****************************************************************************/
  226. /* Shadow bitmap flag */
  227. /****************************************************************************/
  228. #define UTREG_UI_SHADOW_BITMAP _T("Shadow Bitmap Enabled")
  229. #define UTREG_UI_SHADOW_BITMAP_DFLT 1
  230. /****************************************************************************/
  231. /* Define the ms-wbt-server reserved port. */
  232. /****************************************************************************/
  233. #define UTREG_UI_MCS_PORT _T("Server Port")
  234. #define UTREG_UI_MCS_PORT_DFLT 0xD3D
  235. /****************************************************************************/
  236. // Compression flag
  237. /****************************************************************************/
  238. #define UTREG_UI_COMPRESS _T("Compression")
  239. #define UTREG_UI_COMPRESS_DFLT 1
  240. #define UTREG_UI_BITMAP_PERSISTENCE _T("BitmapCachePersistEnable")
  241. #define UTREG_UI_BITMAP_PERSISTENCE_DFLT 1
  242. /****************************************************************************/
  243. /* Timeout (in seconds) for connection to a single IP address. Note that */
  244. /* the UI may attempt to connect to multiple IP addresses during a single */
  245. /* connection attempt. */
  246. /****************************************************************************/
  247. #define UTREG_UI_SINGLE_CONN_TIMEOUT _T("Single Connection Timeout")
  248. #define UTREG_UI_SINGLE_CONN_TIMEOUT_DFLT 30
  249. /****************************************************************************/
  250. /* Overall connection timeout (seconds). This timeout limits the total */
  251. /* time the UI spends attempting to connect to multiple IP addresses. */
  252. /****************************************************************************/
  253. #define UTREG_UI_OVERALL_CONN_TIMEOUT _T("Overall Connection Timeout")
  254. #define UTREG_UI_OVERALL_CONN_TIMEOUT_DFLT 120
  255. #define UTREG_UI_SHUTDOWN_TIMEOUT _T("Shutdown Timeout")
  256. #define UTREG_UI_SHUTDOWN_TIMEOUT_DFLT 10
  257. /****************************************************************************/
  258. /* Keyboard Layout */
  259. /****************************************************************************/
  260. #define UTREG_UI_KEYBOARD_LAYOUT _T("Keyboard Layout")
  261. #define UTREG_UI_KEYBOARD_LAYOUT_DFLT _T("0xffffffff")
  262. #define UTREG_UI_KEYBOARD_LAYOUT_LEN 12
  263. /****************************************************************************/
  264. /* Keyboard Type/Sub Type/Function Key */
  265. /****************************************************************************/
  266. #define UTREG_UI_KEYBOARD_TYPE _T("Keyboard Type")
  267. #define UTREG_UI_KEYBOARD_TYPE_DFLT 4
  268. #define UTREG_UI_KEYBOARD_SUBTYPE _T("Keyboard SubType")
  269. #define UTREG_UI_KEYBOARD_SUBTYPE_DFLT 0
  270. #define UTREG_UI_KEYBOARD_FUNCTIONKEY _T("Keyboard FunctionKeys")
  271. #define UTREG_UI_KEYBOARD_FUNCTIONKEY_DFLT 12
  272. /****************************************************************************/
  273. /* UH registry access parameters/defaults. */
  274. /****************************************************************************/
  275. // Bitmap cache overall params - cache size to alloc, number of cell caches.
  276. /****************************************************************************/
  277. #define UTREG_UH_TOTAL_BM_CACHE _T("BitmapCacheSize") // RAM cache space
  278. #define UTREG_UH_TOTAL_BM_CACHE_DFLT 1500 // 1500 KB
  279. // Whether to scale the RAM and persistent cache sizes by the bit depth of
  280. // the protocol.
  281. #define UTREG_UH_SCALE_BM_CACHE _T("ScaleBitmapCacheForBPP")
  282. #define UTREG_UH_SCALE_BM_CACHE_DFLT 1
  283. #define UTREG_UH_TOTAL_BM_PERSIST_CACHE _T("BitmapPersistCacheSize")
  284. #define UTREG_UH_TOTAL_BM_PERSIST_CACHE_DFLT 10 // 10 MB disk cache
  285. #define TSC_BITMAPCACHE_8BPP_PROPNAME _T("BitmapPersistCacheSize")
  286. #define TSC_BITMAPCACHE_16BPP_PROPNAME _T("BitmapPersistCache16Size")
  287. #define TSC_BITMAPCACHE_24BPP_PROPNAME _T("BitmapPersistCache24Size")
  288. #define TSC_BITMAPCACHEVIRTUALSIZE_8BPP 10
  289. #define TSC_BITMAPCACHEVIRTUALSIZE_16BPP 20
  290. #define TSC_BITMAPCACHEVIRTUALSIZE_24BPP 30
  291. //
  292. // Maximum BMP cache size in MB
  293. //
  294. #define TSC_MAX_BITMAPCACHESIZE 32
  295. #define UTREG_UH_BM_PERSIST_CACHE_LOCATION _T("BitmapPersistCacheLocation")
  296. #define UTREG_UH_BM_NUM_CELL_CACHES _T("BitmapCacheNumCellCaches")
  297. #define UTREG_UH_BM_NUM_CELL_CACHES_DFLT 3
  298. /****************************************************************************/
  299. // Cell cache parameter registry entry templates.
  300. /****************************************************************************/
  301. #define UTREG_UH_BM_CACHE_PROPORTION_TEMPLATE _T("BitmapCache%cProp")
  302. #define UTREG_UH_BM_CACHE_PERSISTENCE_TEMPLATE _T("BitmapCache%cPersistence")
  303. #define UTREG_UH_BM_CACHE_MAXENTRIES_TEMPLATE _T("BitmapCache%cMaxEntries")
  304. /****************************************************************************/
  305. // Cell cache defaults - proportion of cache, persistence, cell entries.
  306. /****************************************************************************/
  307. #define UTREG_UH_BM_CACHE1_PROPORTION_DFLT 2
  308. #define UTREG_UH_BM_CACHE1_PERSISTENCE_DFLT 0
  309. #define UTREG_UH_BM_CACHE1_MAXENTRIES_DFLT 120
  310. #define UTREG_UH_BM_CACHE2_PROPORTION_DFLT 8
  311. #define UTREG_UH_BM_CACHE2_PERSISTENCE_DFLT 0
  312. #define UTREG_UH_BM_CACHE2_MAXENTRIES_DFLT 120
  313. #define UTREG_UH_BM_CACHE3_PROPORTION_DFLT 90
  314. #define UTREG_UH_BM_CACHE3_PERSISTENCE_DFLT 1
  315. #define UTREG_UH_BM_CACHE3_MAXENTRIES_DFLT 65535
  316. #define UTREG_UH_BM_CACHE4_PROPORTION_DFLT 0
  317. #define UTREG_UH_BM_CACHE4_PERSISTENCE_DFLT 0
  318. #define UTREG_UH_BM_CACHE4_MAXENTRIES_DFLT 65535
  319. #define UTREG_UH_BM_CACHE5_PROPORTION_DFLT 0
  320. #define UTREG_UH_BM_CACHE5_PERSISTENCE_DFLT 0
  321. #define UTREG_UH_BM_CACHE5_MAXENTRIES_DFLT 65535
  322. /****************************************************************************/
  323. /* Frequency with which to display output */
  324. /****************************************************************************/
  325. #define UTREG_UH_DRAW_THRESHOLD _T("Order Draw Threshold")
  326. #define UTREG_UH_DRAW_THRESHOLD_DFLT 25
  327. #define UH_GLC_CACHE_MAXIMUMCELLSIZE 2048
  328. /****************************************************************************/
  329. /* GlyphOutput support level */
  330. /****************************************************************************/
  331. #define UTREG_UH_GL_SUPPORT _T("GlyphSupportLevel")
  332. #define UTREG_UH_GL_SUPPORT_DFLT 3
  333. /****************************************************************************/
  334. /* Glyph cache1 cell size */
  335. /****************************************************************************/
  336. #define UTREG_UH_GL_CACHE1_CELLSIZE _T("GlyphCache1CellSize")
  337. #define UTREG_UH_GL_CACHE1_CELLSIZE_DFLT 4
  338. /****************************************************************************/
  339. /* Glyph cache1 cell size */
  340. /****************************************************************************/
  341. #define UTREG_UH_GL_CACHE2_CELLSIZE _T("GlyphCache2CellSize")
  342. #define UTREG_UH_GL_CACHE2_CELLSIZE_DFLT 4
  343. /****************************************************************************/
  344. /* Glyph cache1 cell size */
  345. /****************************************************************************/
  346. #define UTREG_UH_GL_CACHE3_CELLSIZE _T("GlyphCache3CellSize")
  347. #define UTREG_UH_GL_CACHE3_CELLSIZE_DFLT 8
  348. /****************************************************************************/
  349. /* Glyph cache1 cell size */
  350. /****************************************************************************/
  351. #define UTREG_UH_GL_CACHE4_CELLSIZE _T("GlyphCache4CellSize")
  352. #define UTREG_UH_GL_CACHE4_CELLSIZE_DFLT 8
  353. /****************************************************************************/
  354. /* Glyph cache1 cell size */
  355. /****************************************************************************/
  356. #define UTREG_UH_GL_CACHE5_CELLSIZE _T("GlyphCache5CellSize")
  357. #define UTREG_UH_GL_CACHE5_CELLSIZE_DFLT 16
  358. /****************************************************************************/
  359. /* Glyph cache1 cell size */
  360. /****************************************************************************/
  361. #define UTREG_UH_GL_CACHE6_CELLSIZE _T("GlyphCache6CellSize")
  362. #define UTREG_UH_GL_CACHE6_CELLSIZE_DFLT 32
  363. /****************************************************************************/
  364. /* Glyph cache1 cell size */
  365. /****************************************************************************/
  366. #define UTREG_UH_GL_CACHE7_CELLSIZE _T("GlyphCache7CellSize")
  367. #define UTREG_UH_GL_CACHE7_CELLSIZE_DFLT 64
  368. /****************************************************************************/
  369. /* Glyph cache1 cell size */
  370. /****************************************************************************/
  371. #define UTREG_UH_GL_CACHE8_CELLSIZE _T("GlyphCache8CellSize")
  372. #define UTREG_UH_GL_CACHE8_CELLSIZE_DFLT 128
  373. /****************************************************************************/
  374. /* Glyph cache1 cell size */
  375. /****************************************************************************/
  376. #define UTREG_UH_GL_CACHE9_CELLSIZE _T("GlyphCache9CellSize")
  377. #define UTREG_UH_GL_CACHE9_CELLSIZE_DFLT 256
  378. /****************************************************************************/
  379. /* Glyph cache1 cell size */
  380. /****************************************************************************/
  381. #define UTREG_UH_GL_CACHE10_CELLSIZE _T("GlyphCache10CellSize")
  382. #define UTREG_UH_GL_CACHE10_CELLSIZE_DFLT 2048
  383. /****************************************************************************/
  384. /* Text fragment cache cell size */
  385. /****************************************************************************/
  386. #define UTREG_UH_FG_CELLSIZE _T("TextFragmentCellSize")
  387. #define UTREG_UH_FG_CELLSIZE_DFLT 256
  388. /****************************************************************************/
  389. /* Brush support level */
  390. /****************************************************************************/
  391. #define UTREG_UH_BRUSH_SUPPORT _T("BrushSupportLevel")
  392. #define UTREG_UH_BRUSH_SUPPORT_DFLT TS_BRUSH_COLOR8x8
  393. /****************************************************************************/
  394. // Offscreen support level
  395. /****************************************************************************/
  396. #define UTREG_UH_OFFSCREEN_SUPPORT _T("OffscreenSupportLevel")
  397. #define UTREG_UH_OFFSCREEN_SUPPORT_DFLT TS_OFFSCREEN_SUPPORTED
  398. #define UTREG_UH_OFFSCREEN_CACHESIZE _T("OffscreenCacheSize")
  399. #define UTREG_UH_OFFSCREEN_CACHESIZE_DFLT TS_OFFSCREEN_CACHE_SIZE_CLIENT_DEFAULT
  400. #define UTREG_UH_OFFSCREEN_CACHEENTRIES _T("OffscreenCacheEntries")
  401. #define UTREG_UH_OFFSCREEN_CACHEENTRIES_DFLT TS_OFFSCREEN_CACHE_ENTRIES_DEFAULT
  402. #ifdef DRAW_NINEGRID
  403. /****************************************************************************/
  404. // DrawNineGrid support level
  405. /****************************************************************************/
  406. #define UTREG_UH_DRAW_NINEGRID_SUPPORT _T("DrawNineGridSupportLevel")
  407. #define UTREG_UH_DRAW_NINEGRID_SUPPORT_DFLT TS_DRAW_NINEGRID_SUPPORTED_REV2
  408. #define UTREG_UH_DRAW_NINEGRID_EMULATE _T("DrawNineGridEmulate")
  409. #define UTREG_UH_DRAW_NINEGRID_EMULATE_DFLT 0
  410. #define UTREG_UH_DRAW_NINEGRID_CACHESIZE _T("DrawNineGridCacheSize")
  411. #define UTREG_UH_DRAW_NINEGRID_CACHESIZE_DFLT TS_DRAW_NINEGRID_CACHE_SIZE_DEFAULT
  412. #define UTREG_UH_DRAW_NINEGRID_CACHEENTRIES _T("DrawNineGridCacheEntries")
  413. #define UTREG_UH_DRAW_NINEGRID_CACHEENTRIES_DFLT TS_DRAW_NINEGRID_CACHE_ENTRIES_DEFAULT
  414. #endif
  415. #ifdef DRAW_GDIPLUS
  416. /****************************************************************************/
  417. // DrawGdiplus support level
  418. /****************************************************************************/
  419. #define UTREG_UH_DRAW_GDIPLUS_SUPPORT _T("DrawGdiplusSupportLevel")
  420. #define UTREG_UH_DRAW_GDIPLUS_SUPPORT_DFLT TS_DRAW_GDIPLUS_SUPPORTED
  421. #define UTREG_UH_DRAW_GDIPLUS_CACHE_LEVEL _T("DrawGdiplusCacheLevel")
  422. #define UTREG_UH_DRAW_GDIPLUS_CACHE_LEVEL_DFLT TS_DRAW_GDIPLUS_CACHE_LEVEL_ONE
  423. #define UTREG_UH__GDIPLUS_GRAPHICS_CACHEENTRIES _T("DrawGdiplusGraphicsCacheEntries")
  424. #define UTREG_UH_DRAW_GDIP_GRAPHICS_CACHEENTRIES_DFLT TS_GDIP_GRAPHICS_CACHE_ENTRIES_DEFAULT
  425. #define UTREG_UH__GDIPLUS_BRUSH_CACHEENTRIES _T("DrawGdiplusBrushCacheEntries")
  426. #define UTREG_UH_DRAW_GDIP_BRUSH_CACHEENTRIES_DFLT TS_GDIP_BRUSH_CACHE_ENTRIES_DEFAULT
  427. #define UTREG_UH__GDIPLUS_PEN_CACHEENTRIES _T("DrawGdiplusPenCacheEntries")
  428. #define UTREG_UH_DRAW_GDIP_PEN_CACHEENTRIES_DFLT TS_GDIP_PEN_CACHE_ENTRIES_DEFAULT
  429. #define UTREG_UH__GDIPLUS_IMAGE_CACHEENTRIES _T("DrawGdiplusImageCacheEntries")
  430. #define UTREG_UH_DRAW_GDIP_IMAGE_CACHEENTRIES_DFLT TS_GDIP_IMAGE_CACHE_ENTRIES_DEFAULT
  431. #define UTREG_UH__GDIPLUS_GRAPHICS_CACHE_CHUNKSIZE _T("DrawGdiplusGraphicsCacheChunkSize")
  432. #define UTREG_UH_DRAW_GDIP_GRAPHICS_CACHE_CHUNKSIZE_DFLT TS_GDIP_GRAPHICS_CACHE_CHUNK_SIZE_DEFAULT
  433. #define UTREG_UH__GDIPLUS_BRUSH_CACHE_CHUNKSIZE _T("DrawGdiplusBrushCacheChunkSize")
  434. #define UTREG_UH_DRAW_GDIP_BRUSH_CACHE_CHUNKSIZE_DFLT TS_GDIP_BRUSH_CACHE_CHUNK_SIZE_DEFAULT
  435. #define UTREG_UH__GDIPLUS_PEN_CACHE_CHUNKSIZE _T("DrawGdiplusPenCacheChunkSize")
  436. #define UTREG_UH_DRAW_GDIP_PEN_CACHE_CHUNKSIZE_DFLT TS_GDIP_PEN_CACHE_CHUNK_SIZE_DEFAULT
  437. #define UTREG_UH__GDIPLUS_IMAGEATTRIBUTES_CACHE_CHUNKSIZE _T("DrawGdiplusImageAttributesCacheChunkSize")
  438. #define UTREG_UH_DRAW_GDIP_IMAGEATTRIBUTES_CACHE_CHUNKSIZE_DFLT TS_GDIP_IMAGEATTRIBUTES_CACHE_CHUNK_SIZE_DEFAULT
  439. #define UTREG_UH__GDIPLUS_IMAGE_CACHE_CHUNKSIZE _T("DrawGdiplusImageCacheChunkSize")
  440. #define UTREG_UH_DRAW_GDIP_IMAGE_CACHE_CHUNKSIZE_DFLT TS_GDIP_IMAGE_CACHE_CHUNK_SIZE_DEFAULT
  441. #define UTREG_UH__GDIPLUS_IMAGE_CACHE_TOTALSIZE _T("DrawGdiplusImageCacheTotalSize")
  442. #define UTREG_UH_DRAW_GDIP_IMAGE_CACHE_TOTALSIZE_DFLT TS_GDIP_IMAGE_CACHE_TOTAL_SIZE_DEFAULT
  443. #define UTREG_UH__GDIPLUS_IMAGE_CACHE_MAXSIZE _T("DrawGdiplusImageCacheMaxSize")
  444. #define UTREG_UH_DRAW_GDIP_IMAGE_CACHE_MAXSIZE_DFLT TS_GDIP_IMAGE_CACHE_MAX_SIZE_DEFAULT
  445. #define UTREG_UH__GDIPLUS_IMAGEATTRIBUTES_CACHEENTRIES _T("DrawGdiplusImageattributesCacheEntries")
  446. #define UTREG_UH_DRAW_GDIP_IMAGEATTRIBUTES_CACHEENTRIES_DFLT TS_GDIP_IMAGEATTRIBUTES_CACHE_ENTRIES_DEFAULT
  447. #endif // DRAW_GDIPLUS
  448. /****************************************************************************/
  449. /* Disable ctrl-alt-del flag */
  450. /****************************************************************************/
  451. #define UTREG_UI_DISABLE_CTRLALTDEL _T("Disable CTRL+ALT+DEL")
  452. #define UTREG_UI_DISABLE_CTRLALTDEL_DFLT 1
  453. #ifdef SMART_SIZING
  454. /****************************************************************************/
  455. /* Smart Sizing flag
  456. /****************************************************************************/
  457. #define UTREG_UI_SMARTSIZING _T("Smart Sizing")
  458. #define UTREG_UI_SMARTSIZING_DFLT 0
  459. #endif // SMART_SIZING
  460. /****************************************************************************/
  461. /* Connect to console flag
  462. /****************************************************************************/
  463. #define UTREG_UI_CONNECTTOCONSOLE _T("Connect to Console")
  464. #define UTREG_UI_CONNECTTOCONSOLE_DFLT 0
  465. /****************************************************************************/
  466. /* Enable Windows key flag */
  467. /****************************************************************************/
  468. #define UTREG_UI_ENABLE_WINDOWSKEY _T("Enable WindowsKey")
  469. #define UTREG_UI_ENABLE_WINDOWSKEY_DFLT 1
  470. /****************************************************************************/
  471. /* Enable mouse flag */
  472. /****************************************************************************/
  473. #define UTREG_UI_ENABLE_MOUSE _T("Enable Mouse")
  474. #define UTREG_UI_ENABLE_MOUSE_DFLT 1
  475. /****************************************************************************/
  476. /* DoubleDoubleclickclick detect flag */
  477. /****************************************************************************/
  478. #define UTREG_UI_DOUBLECLICK_DETECT _T("DoubleClick Detect")
  479. #define UTREG_UI_DOUBLECLICK_DETECT_DFLT 0
  480. /****************************************************************************/
  481. /* Auto logon flag */
  482. /****************************************************************************/
  483. #define UTREG_UI_AUTOLOGON _T("AutoLogon")
  484. #define UTREG_UI_AUTOLOGON_DFLT 0
  485. #define UTREG_UI_AUTOLOGON50 _T("AutoLogon 50")
  486. #define UTREG_UI_AUTOLOGON50_DFLT 0
  487. /****************************************************************************/
  488. /* Maximize shell flag */
  489. /****************************************************************************/
  490. #define UTREG_UI_MAXIMIZESHELL _T("MaximizeShell")
  491. #define UTREG_UI_MAXIMIZESHELL_DFLT 1
  492. #define UTREG_UI_MAXIMIZESHELL50 _T("MaximizeShell 50")
  493. #define UTREG_UI_MAXIMIZESHELL50_DFLT 1
  494. /****************************************************************************/
  495. /* Domain */
  496. /****************************************************************************/
  497. #define UTREG_UI_DOMAIN _T("Domain")
  498. #define UTREG_UI_DOMAIN_DFLT _T("")
  499. #define UTREG_UI_DOMAIN50 _T("Domain 50")
  500. #define UTREG_UI_DOMAIN50_DFLT _T("")
  501. /****************************************************************************/
  502. /* UserName */
  503. /****************************************************************************/
  504. #define UTREG_UI_USERNAME _T("UserName")
  505. #define UTREG_UI_USERNAME_DFLT _T("")
  506. #define UTREG_UI_USERNAME50 _T("UserName 50")
  507. #define UTREG_UI_USERNAME50_DFLT _T("")
  508. /****************************************************************************/
  509. /* Password */
  510. /****************************************************************************/
  511. #define UTREG_UI_PASSWORD _T("Password")
  512. #define UTREG_UI_PASSWORD_DFLT _T("")
  513. #define UTREG_UI_PASSWORD50 _T("Password 50")
  514. #define UTREG_UI_PASSWORD50_DFLT _T("")
  515. #define UI_SETTING_PASSWORD51 _T("Password 51")
  516. #define UI_SETTING_PASSWORD_CLEAR _T("Clear Password")
  517. /****************************************************************************/
  518. /* Salt */
  519. /****************************************************************************/
  520. #define UTREG_UI_SALT50 _T("Salt 50")
  521. #define UTREG_UI_SALT50_DFLT _T("")
  522. #define UI_SETTING_SALT51 _T("Salt 51")
  523. /****************************************************************************/
  524. /* AlternateShell */
  525. /****************************************************************************/
  526. #define UTREG_UI_ALTERNATESHELL _T("Alternate Shell")
  527. #define UTREG_UI_ALTERNATESHELL_DFLT _T("")
  528. #define UTREG_UI_ALTERNATESHELL50 _T("Alternate Shell 50")
  529. #define UTREG_UI_ALTERNATESHELL50_DFLT _T("")
  530. /****************************************************************************/
  531. /* WorkingDir */
  532. /****************************************************************************/
  533. #define UTREG_UI_WORKINGDIR _T("Shell Working Directory")
  534. #define UTREG_UI_WORKINGDIR_DFLT _T("")
  535. #define UTREG_UI_WORKINGDIR50 _T("Shell Working Directory 50")
  536. #define UTREG_UI_WORKINGDIR50_DFLT _T("")
  537. /****************************************************************************/
  538. /* Subkey for hotkeys */
  539. /****************************************************************************/
  540. #define UTREG_SUB_HOTKEY _T("\\Hotkey")
  541. /****************************************************************************/
  542. /* Hotkey names */
  543. /****************************************************************************/
  544. // Full screen VK code
  545. #define UTREG_UI_FULL_SCREEN_VK_CODE _T("Full Screen Hotkey")
  546. #define UTREG_UI_FULL_SCREEN_VK_CODE_DFLT VK_CANCEL
  547. #define UTREG_UI_FULL_SCREEN_VK_CODE_NEC98_DFLT VK_F12
  548. #define UTREG_UI_CTRL_ESC_VK_CODE _T("CtrlEsc")
  549. #define UTREG_UI_CTRL_ESC_VK_CODE_DFLT VK_HOME
  550. #define UTREG_UI_ALT_ESC_VK_CODE _T("AltEsc")
  551. #define UTREG_UI_ALT_ESC_VK_CODE_DFLT VK_INSERT
  552. #define UTREG_UI_ALT_TAB_VK_CODE _T("AltTab")
  553. #define UTREG_UI_ALT_TAB_VK_CODE_DFLT VK_PRIOR
  554. #define UTREG_UI_ALT_SHFTAB_VK_CODE _T("AltShiftTab")
  555. #define UTREG_UI_ALT_SHFTAB_VK_CODE_DFLT VK_NEXT
  556. #define UTREG_UI_ALT_SPACE_VK_CODE _T("AltSpace")
  557. #define UTREG_UI_ALT_SPACE_VK_CODE_DFLT VK_DELETE
  558. #define UTREG_UI_CTRL_ALTDELETE_VK_CODE _T("CtrlAltDelete")
  559. #define UTREG_UI_CTRL_ALTDELETE_VK_CODE_DFLT VK_END
  560. #define UTREG_UI_CTRL_ALTDELETE_VK_CODE_NEC98_DFLT VK_F11
  561. /****************************************************************************/
  562. /* IME */
  563. /****************************************************************************/
  564. #define UTREG_IME_MAPPING_TABLE_JPN _T("IME Mapping Table\\JPN")
  565. #define UTREG_IME_MAPPING_TABLE_KOR _T("IME Mapping Table\\KOR")
  566. #define UTREG_IME_MAPPING_TABLE_CHT _T("IME Mapping Table\\CHT")
  567. #define UTREG_IME_MAPPING_TABLE_CHS _T("IME Mapping Table\\CHS")
  568. /****************************************************************************/
  569. /* Browse DNS Domain Name */
  570. /****************************************************************************/
  571. #define UTREG_UI_BROWSE_DOMAIN_NAME _T("BrowseDnsDomain")
  572. #define UTREG_UI_BROWSE_DOMAIN_NAME_DFLT _T("")
  573. //
  574. // Drive mapping
  575. //
  576. #define TSCSETTING_REDIRECTDRIVES _T("RedirectDrives")
  577. #define TSCSETTING_REDIRECTDRIVES_DFLT 0
  578. #define TSCSETTING_REDIRECTPRINTERS _T("RedirectPrinters")
  579. #define TSCSETTING_REDIRECTPRINTERS_DFLT 1
  580. #define TSCSETTING_REDIRECTCOMPORTS _T("RedirectCOMPorts")
  581. #define TSCSETTING_REDIRECTCOMPORTS_DFLT 0
  582. #define TSCSETTING_REDIRECTSCARDS _T("RedirectSmartCards")
  583. #define TSCSETTING_REDIRECTSCARDS_DFLT 1
  584. #define TSCSETTING_DISPLAYCONNECTIONBAR _T("DisplayConnectionBar")
  585. #define TSCSETTING_DISPLAYCONNECTIONBAR_DFLT 1
  586. #define TSCSETTING_PINCONNECTIONBAR _T("PinConnectionBar")
  587. #define TSCSETTING_PINCONNECTIONBAR_DFLT 1
  588. #define TSCSETTING_ENABLEAUTORECONNECT _T("AutoReconnection Enabled")
  589. #define TSCSETTING_ENABLEAUTORECONNECT_DFLT 1
  590. #define TSCSETTING_ARC_RETRIES _T("AutoReconnect Max Retries")
  591. #define TSCSETTING_ARC_RETRIES_DFLT 20
  592. #define UTREG_DEBUG_THREADTIMEOUT _T("DebugThreadTimeout")
  593. #define UTREG_THREADTIMEOUT_DFLT -1
  594. #define UTREG_DEBUG_ALLOWDEBUGIFACE _T("AllowDebugInterface")
  595. #define UTREG_DEBUG_ALLOWDEBUGIFACE_DFLT 0
  596. #ifdef PROXY_SERVER
  597. #define UTREG_UI_PROXY_SERVER_NAME _T("ProxyServer")
  598. #define UTREG_UI_PROXY_SERVER_DFLT _T("")
  599. #define UTREG_UI_PROXY_USEHTTPS _T("ProxyUseHttps")
  600. #define UTREG_UI_PROXY_USEHTTPS_DFLT 1
  601. #define UTREG_UI_PROXY_URL _T("ProxyUrl")
  602. #define UTREG_UI_PROXY_URL_DFLT _T("/tsproxy/tsproxy.dll")
  603. #endif //PROXY_SERVER
  604. //
  605. // Redirection security flags
  606. //
  607. #define REG_SECURITY_FILTER_SECTION _T("LocalDevices")
  608. #define REDIRSEC_PROMPT_EVERYTHING 0x0000
  609. #define REDIRSEC_DRIVES 0x0001
  610. #define REDIRSEC_PORTS 0x0002
  611. #define REG_KEYNAME_SECURITYLEVEL _T("SecurityLevel")
  612. #define TSC_SECLEVEL_LOW 0x0000
  613. #define TSC_SECLEVEL_MEDIUM 0x0001
  614. #define TSC_SECLEVEL_HIGH 0x0002
  615. #endif /* _H_AUTREG */