/// <summary> /// Create a TS_COLORCACHE_CAPABILITYSET type Capability, 2.2.1.1 in RDPGDI /// Problem: but in TD TS_COLORCACHE_CAPABILITYSET name TS_COLORTABLE_CAPABILITYSET /// Problem: field not implemented in SDK /// </summary> /// <returns>TS_COLORCACHE_CAPABILITYSET type Capability</returns> public TS_COLORCACHE_CAPABILITYSET CreateColorTableCapSet() { TS_COLORCACHE_CAPABILITYSET colorSet = new TS_COLORCACHE_CAPABILITYSET(); //rawData[4:5]colorTableCacheSize (2 bytes): A 16-bit, unsigned integer. //The number of entries in the color table cache (each entry stores a color table). //This value MUST be ignored during capability exchange and is assumed to be 0x0006. colorSet.rawData = new byte[] { 10, 0, 8, 0, 6, 0, 0, 0 }; return colorSet; }
/// <summary> /// Parse TS_COLORCACHE_CAPABILITYSET /// </summary> /// <param name="data">data to be parsed</param> /// <returns>TS_COLORCACHE_CAPABILITYSET</returns> private TS_COLORCACHE_CAPABILITYSET ParseCapsTypeColorCache(byte[] data) { TS_COLORCACHE_CAPABILITYSET set = new TS_COLORCACHE_CAPABILITYSET(); // TS_COLORCACHE_CAPABILITYSET: rawData set.rawData = data; return set; }