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.

111 lines
4.5 KiB

  1. /****************************************************************************/
  2. /* asbcdata.c */
  3. /* */
  4. /* Send Bitmap Cache data. */
  5. /* */
  6. /* Copyright(c) Microsoft, PictureTel 1992-1996 */
  7. /* (C) 1997-2000 Microsoft Corp. */
  8. /****************************************************************************/
  9. #include <ndcgdata.h>
  10. DC_DATA(BOOLEAN, sbcBitmapCachingEnabled, FALSE);
  11. DC_DATA(BOOLEAN, sbcGlyphCachingEnabled, FALSE);
  12. DC_DATA(UINT16, sbcGlyphSupportLevel, CAPS_GLYPH_SUPPORT_ENCODE);
  13. DC_DATA(BOOLEAN, sbcNewCapsData, FALSE);
  14. DC_DATA(BOOLEAN, sbcCachingOn, FALSE);
  15. DC_DATA(BOOLEAN, sbcSyncRequired, FALSE);
  16. DC_DATA(BOOLEAN, sbcPersistentKeysReceived, FALSE);
  17. DC_DATA(BOOLEAN, sbcBrushCachingEnabled, FALSE);
  18. DC_DATA_ARRAY_NULL(BOOLEAN, sbcClearCache, TS_BITMAPCACHE_MAX_CELL_CACHES, FALSE);
  19. DC_DATA(UINT32, sbcBrushSupportLevel, 0);
  20. DC_DATA_ARRAY_NULL(SBC_CACHE_SIZE,
  21. sbcGlyphCacheSizes, SBC_NUM_GLYPH_CACHES, 0);
  22. DC_DATA_ARRAY_NULL(SBC_CACHE_SIZE,
  23. sbcFragCacheSizes, SBC_NUM_FRAG_CACHES, 0);
  24. DC_DATA(unsigned, sbcTotalKeysExpected, 0);
  25. DC_DATA_ARRAY_NULL(unsigned, sbcNumKeysExpected,
  26. TS_BITMAPCACHE_MAX_CELL_CACHES, 0);
  27. DC_DATA(unsigned, sbcTotalNumErrorPDUs, 0);
  28. DC_DATA(PSBC_BITMAP_CACHE_KEY_INFO, sbcKeyDatabase, NULL);
  29. DC_DATA(unsigned, sbcKeyDatabaseSize, 0);
  30. DC_DATA_NULL(TS_BITMAPCACHE_CAPABILITYSET_REV2, sbcCurrentBitmapCaps, 0);
  31. DC_DATA_NULL(SBC_OFFSCREEN_BITMAP_CACHE_INFO, sbcOffscreenCacheInfo, 0);
  32. DC_DATA(BOOLEAN, sbcOffscreenCachingEnabled, FALSE);
  33. DC_DATA(BOOLEAN, sbcDisableOffscreenCaching, FALSE);
  34. #ifdef DRAW_NINEGRID
  35. DC_DATA_NULL(SBC_DRAWNINEGRID_BITMAP_CACHE_INFO, sbcDrawNineGridCacheInfo, 0);
  36. DC_DATA(BOOLEAN, sbcDrawNineGridCachingEnabled, FALSE);
  37. DC_DATA(BOOLEAN, sbcDisableDrawNineGridCaching, FALSE);
  38. #endif
  39. #ifdef DRAW_GDIPLUS
  40. DC_DATA(BOOLEAN, sbcDrawGdiplusEnabled, FALSE);
  41. DC_DATA_NULL(SBC_DRAWGDIPLUS_INFO, sbcDrawGdiplusInfo, 0);
  42. DC_DATA(BOOLEAN, sbcDisableDrawGdiplus, FALSE);
  43. #endif
  44. // Default caps which are the basic of sbcCurrentCaps.
  45. DC_CONST_DATA(TS_BITMAPCACHE_CAPABILITYSET_REV2, sbcDefaultBitmapCaps,
  46. DC_STRUCT8(
  47. TS_BITMAPCACHE_REV2, // capabilitySetType is used to store the protocol version in use.
  48. 0, // Don't care about length.
  49. TRUE, // We can handle persistent key lists.
  50. TRUE, // We can handle bitmap cache waiting list.
  51. 0, // Zeroed Pad1.
  52. 0, // Zeroed Pad2.
  53. TS_BITMAPCACHE_SERVER_CELL_CACHES, // We can handle up to the server's current
  54. // limitation.
  55. // Maximum values for each of the bitmap cell caches.
  56. // First value is the number of entries, second is persistence.
  57. // Persistence is set to FALSE because it will become TRUE if any
  58. // client in session sends TRUE in its caps.
  59. DC_STRUCT5(
  60. DC_STRUCT2(600, FALSE),
  61. DC_STRUCT2(600, FALSE),
  62. DC_STRUCT2(65536, FALSE),
  63. DC_STRUCT2(4096, FALSE),
  64. DC_STRUCT2(2048, FALSE))));
  65. DC_CONST_DATA_ARRAY(SBC_CACHE_SIZE,
  66. sbcMaxGlyphCacheSizes, SBC_NUM_GLYPH_CACHES,
  67. DC_STRUCT10(
  68. DC_STRUCT2(SBC_GL_MAX_CACHE_ENTRIES, SBC_GL_CACHE1_MAX_CELL_SIZE),
  69. DC_STRUCT2(SBC_GL_MAX_CACHE_ENTRIES, SBC_GL_CACHE2_MAX_CELL_SIZE),
  70. DC_STRUCT2(SBC_GL_MAX_CACHE_ENTRIES, SBC_GL_CACHE3_MAX_CELL_SIZE),
  71. DC_STRUCT2(SBC_GL_MAX_CACHE_ENTRIES, SBC_GL_CACHE4_MAX_CELL_SIZE),
  72. DC_STRUCT2(SBC_GL_MAX_CACHE_ENTRIES, SBC_GL_CACHE5_MAX_CELL_SIZE),
  73. DC_STRUCT2(SBC_GL_MAX_CACHE_ENTRIES, SBC_GL_CACHE6_MAX_CELL_SIZE),
  74. DC_STRUCT2(SBC_GL_MAX_CACHE_ENTRIES, SBC_GL_CACHE7_MAX_CELL_SIZE),
  75. DC_STRUCT2(SBC_GL_MAX_CACHE_ENTRIES, SBC_GL_CACHE8_MAX_CELL_SIZE),
  76. DC_STRUCT2(SBC_GL_MAX_CACHE_ENTRIES, SBC_GL_CACHE9_MAX_CELL_SIZE),
  77. DC_STRUCT2(SBC_GL_MAX_CACHE_ENTRIES, SBC_GL_CACHE10_MAX_CELL_SIZE)
  78. )
  79. );
  80. DC_CONST_DATA_ARRAY(SBC_CACHE_SIZE,
  81. sbcMaxFragCacheSizes, SBC_NUM_FRAG_CACHES,
  82. DC_STRUCT1(
  83. DC_STRUCT2(SBC_FG_CACHE_MAX_ENTRIES, SBC_FG_CACHE_MAX_CELL_SIZE)
  84. )
  85. );
  86. #ifdef DC_HICOLOR
  87. DC_DATA(unsigned, sbcClientBitsPerPel, 0);
  88. #endif