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.

1023 lines
41 KiB

  1. //
  2. // GLOBALS.H
  3. // Global variables
  4. //
  5. // This file included in normal source files generates the extern decls
  6. // for our global variables. In globals.c, because we define
  7. // DC_DEFINE_DATA before including this baby to generate the storage.
  8. //
  9. // Since there are many source files and one globals.c, it saves typing.
  10. //
  11. // Variables prefixed with m_ are per-conference
  12. // Variables prefixed wiht g_ are global
  13. //
  14. // NOTE that by default, all data is initialized to zero when a dll is
  15. // loaded. For other default values, use the DC_DATA_VAL instead of
  16. // DC_DATA macro.
  17. //
  18. #include "dbgzones.h"
  19. #include <ast120.h>
  20. #include <shm.h>
  21. #include <im.h>
  22. #include <control.h>
  23. #include <usr.h>
  24. #include <sc.h>
  25. #include <bcd.h>
  26. #include <ba.h>
  27. #include <ch.h>
  28. #include <cm.h>
  29. #include <oa.h>
  30. #include <fh.h>
  31. #include <oe.h>
  32. #include <od.h>
  33. #include <oe2.h>
  34. #include <ssi.h>
  35. #include <host.h>
  36. #include <s20.h>
  37. #include <gdc.h>
  38. #include <pm.h>
  39. #include <bmc.h>
  40. #include <rbc.h>
  41. #include <sbc.h>
  42. #include <sch.h>
  43. #include <swl.h>
  44. #include <view.h>
  45. // INCLUDE THIS LAST; IT USES DEFINITIONS IN THE ABOVE HEADERS
  46. #include <as.h>
  47. // Utility headers
  48. #include <strutil.h>
  49. //
  50. // GLOBALS ACROSS MULTIPLE CALLS
  51. //
  52. // Utility stuff
  53. // Critical sections
  54. DC_DATA_ARRAY ( CRITICAL_SECTION, g_utLocks, UTLOCK_MAX );
  55. // Event info
  56. DC_DATA ( ATOM, g_utWndClass);
  57. // Task list
  58. DC_DATA_ARRAY ( UT_CLIENT, g_autTasks, UTTASK_MAX );
  59. // UI
  60. DC_DATA ( PUT_CLIENT, g_putUI );
  61. DC_DATA ( HICON, g_hetASIcon );
  62. DC_DATA ( HICON, g_hetASIconSmall );
  63. DC_DATA ( HICON, g_hetDeskIcon );
  64. DC_DATA ( HICON, g_hetDeskIconSmall );
  65. DC_DATA ( HBITMAP, g_hetCheckBitmap );
  66. DC_DATA ( HFONT, g_hetSharedFont );
  67. // Call Manager (T.120)
  68. DC_DATA ( PUT_CLIENT, g_putCMG );
  69. DC_DATA ( PCM_PRIMARY, g_pcmPrimary );
  70. DC_DATA ( UINT, g_mgAttachCount );
  71. DC_DATA_ARRAY ( MG_CLIENT, g_amgClients, MGTASK_MAX);
  72. // App Sharing
  73. DC_DATA ( PUT_CLIENT, g_putAS );
  74. DC_DATA ( HINSTANCE, g_asInstance );
  75. DC_DATA ( BOOL, g_asWin95 );
  76. DC_DATA ( BOOL, g_asNT5 );
  77. DC_DATA ( UINT, g_asOptions );
  78. DC_DATA ( DWORD, g_asMainThreadId );
  79. DC_DATA ( HWND, g_asMainWindow );
  80. DC_DATA ( BOOL, g_asCanHost );
  81. DC_DATA ( UINT, g_asSettings );
  82. //
  83. // Shared Memory FOR DISPLAY DRIVER
  84. //
  85. DC_DATA ( LPSHM_SHARED_MEMORY, g_asSharedMemory );
  86. DC_DATA_ARRAY ( LPOA_SHARED_DATA, g_poaData, 2 );
  87. //
  88. // The BPP our driver is capturing at may NOT be the same as the screen's
  89. // color depth. At > 8 bpp, our driver always captures at 24bpp to avoid
  90. // bitmask conversion nonsense. In other words, in NT 5.0, our shadow
  91. // driver behaves a lot more like a real driver to GDI. We must tell GDI
  92. // what color format we want; GDI will not just hackily give us the same
  93. // goop as the real disply like in NT 4.0 SP-3. NT 5.0 has real multiple
  94. // monitor and driver support.
  95. //
  96. DC_DATA ( UINT, g_usrScreenBPP );
  97. DC_DATA ( UINT, g_usrCaptureBPP );
  98. DC_DATA ( BOOL, g_usrPalettized );
  99. DC_DATA ( ASSession, g_asSession );
  100. DC_DATA ( BOOL, g_osiInitialized );
  101. //
  102. // CPC capabilities
  103. //
  104. DC_DATA ( CPCALLCAPS, g_cpcLocalCaps );
  105. //
  106. // Font Handler
  107. //
  108. //
  109. // List of local fonts
  110. //
  111. DC_DATA ( LPFHLOCALFONTS, g_fhFonts );
  112. //
  113. // General Data Compressor
  114. //
  115. // This is effectively const, it's just too complicated to declare so we
  116. // calculate it once in GDC_Init().
  117. DC_DATA_ARRAY(BYTE, s_gdcDistDecode, GDC_DECODED_SIZE);
  118. // This is effectively const, it's just too big to declare. We calculate
  119. // it once in GDC_Init().
  120. DC_DATA_ARRAY(BYTE, s_gdcLenDecode, GDC_DECODED_SIZE);
  121. //
  122. // Lit: Bits, Codes
  123. // NOTE: These are effectively _const. There's just too many of them
  124. // to put in a const array. So we calculate them once in GDC_Init().
  125. //
  126. //
  127. // Len and Lit codes
  128. //
  129. //
  130. // BOGUS LAURABU
  131. // BUGBUG
  132. // s_gdcLitBits, s_gdcLitCode, s__gdcDistDecode, and s_gdcLenDecode are
  133. // really constant. Instead of computing once at Init time, get the data
  134. // and put it const here.
  135. //
  136. DC_DATA_ARRAY(BYTE, s_gdcLitBits, GDC_LIT_SIZE);
  137. DC_DATA_ARRAY(WORD, s_gdcLitCode, GDC_LIT_SIZE);
  138. //
  139. // Input Manager
  140. //
  141. //
  142. // High level input manager in the core
  143. //
  144. // Pointer to IM variables accessed in NT/Win95 low level implementations
  145. DC_DATA (LPIM_SHARED_DATA, g_lpimSharedData );
  146. //
  147. // Order Decoder
  148. //
  149. //
  150. // Table used to map Windows dword ROP values to logical ROP values.
  151. //
  152. #ifndef DC_DEFINE_DATA
  153. extern const UINT s_odWindowsROPs[256];
  154. #else
  155. const UINT s_odWindowsROPs[256] =
  156. {
  157. 0x00000042, 0x00010289, 0x00020C89, 0x000300AA,
  158. 0x00040C88, 0x000500A9, 0x00060865, 0x000702C5,
  159. 0x00080F08, 0x00090245, 0x000A0329, 0x000B0B2A,
  160. 0x000C0324, 0x000D0B25, 0x000E08A5, 0x000F0001,
  161. 0x00100C85, 0x001100A6, 0x00120868, 0x001302C8,
  162. 0x00140869, 0x001502C9, 0x00165CCA, 0x00171D54,
  163. 0x00180D59, 0x00191CC8, 0x001A06C5, 0x001B0768,
  164. 0x001C06CA, 0x001D0766, 0x001E01A5, 0x001F0385,
  165. 0x00200F09, 0x00210248, 0x00220326, 0x00230B24,
  166. 0x00240D55, 0x00251CC5, 0x002606C8, 0x00271868,
  167. 0x00280369, 0x002916CA, 0x002A0CC9, 0x002B1D58,
  168. 0x002C0784, 0x002D060A, 0x002E064A, 0x002F0E2A,
  169. 0x0030032A, 0x00310B28, 0x00320688, 0x00330008,
  170. 0x003406C4, 0x00351864, 0x003601A8, 0x00370388,
  171. 0x0038078A, 0x00390604, 0x003A0644, 0x003B0E24,
  172. 0x003C004A, 0x003D18A4, 0x003E1B24, 0x003F00EA,
  173. 0x00400F0A, 0x00410249, 0x00420D5D, 0x00431CC4,
  174. 0x00440328, 0x00450B29, 0x004606C6, 0x0047076A,
  175. 0x00480368, 0x004916C5, 0x004A0789, 0x004B0605,
  176. 0x004C0CC8, 0x004D1954, 0x004E0645, 0x004F0E25,
  177. 0x00500325, 0x00510B26, 0x005206C9, 0x00530764,
  178. 0x005408A9, 0x00550009, 0x005601A9, 0x00570389,
  179. 0x00580785, 0x00590609, 0x005A0049, 0x005B18A9,
  180. 0x005C0649, 0x005D0E29, 0x005E1B29, 0x005F00E9,
  181. 0x00600365, 0x006116C6, 0x00620786, 0x00630608,
  182. 0x00640788, 0x00650606, 0x00660046, 0x006718A8,
  183. 0x006858A6, 0x00690145, 0x006A01E9, 0x006B178A,
  184. 0x006C01E8, 0x006D1785, 0x006E1E28, 0x006F0C65,
  185. 0x00700CC5, 0x00711D5C, 0x00720648, 0x00730E28,
  186. 0x00740646, 0x00750E26, 0x00761B28, 0x007700E6,
  187. 0x007801E5, 0x00791786, 0x007A1E29, 0x007B0C68,
  188. 0x007C1E24, 0x007D0C69, 0x007E0955, 0x007F03C9,
  189. 0x008003E9, 0x00810975, 0x00820C49, 0x00831E04,
  190. 0x00840C48, 0x00851E05, 0x008617A6, 0x008701C5,
  191. 0x008800C6, 0x00891B08, 0x008A0E06, 0x008B0666,
  192. 0x008C0E08, 0x008D0668, 0x008E1D7C, 0x008F0CE5,
  193. 0x00900C45, 0x00911E08, 0x009217A9, 0x009301C4,
  194. 0x009417AA, 0x009501C9, 0x00960169, 0x0097588A,
  195. 0x00981888, 0x00990066, 0x009A0709, 0x009B07A8,
  196. 0x009C0704, 0x009D07A6, 0x009E16E6, 0x009F0345,
  197. 0x00A000C9, 0x00A11B05, 0x00A20E09, 0x00A30669,
  198. 0x00A41885, 0x00A50065, 0x00A60706, 0x00A707A5,
  199. 0x00A803A9, 0x00A90189, 0x00AA0029, 0x00AB0889,
  200. 0x00AC0744, 0x00AD06E9, 0x00AE0B06, 0x00AF0229,
  201. 0x00B00E05, 0x00B10665, 0x00B21974, 0x00B30CE8,
  202. 0x00B4070A, 0x00B507A9, 0x00B616E9, 0x00B70348,
  203. 0x00B8074A, 0x00B906E6, 0x00BA0B09, 0x00BB0226,
  204. 0x00BC1CE4, 0x00BD0D7D, 0x00BE0269, 0x00BF08C9,
  205. 0x00C000CA, 0x00C11B04, 0x00C21884, 0x00C3006A,
  206. 0x00C40E04, 0x00C50664, 0x00C60708, 0x00C707AA,
  207. 0x00C803A8, 0x00C90184, 0x00CA0749, 0x00CB06E4,
  208. 0x00CC0020, 0x00CD0888, 0x00CE0B08, 0x00CF0224,
  209. 0x00D00E0A, 0x00D1066A, 0x00D20705, 0x00D307A4,
  210. 0x00D41D78, 0x00D50CE9, 0x00D616EA, 0x00D70349,
  211. 0x00D80745, 0x00D906E8, 0x00DA1CE9, 0x00DB0D75,
  212. 0x00DC0B04, 0x00DD0228, 0x00DE0268, 0x00DF08C8,
  213. 0x00E003A5, 0x00E10185, 0x00E20746, 0x00E306EA,
  214. 0x00E40748, 0x00E506E5, 0x00E61CE8, 0x00E70D79,
  215. 0x00E81D74, 0x00E95CE6, 0x00EA02E9, 0x00EB0849,
  216. 0x00EC02E8, 0x00ED0848, 0x00EE0086, 0x00EF0A08,
  217. 0x00F00021, 0x00F10885, 0x00F20B05, 0x00F3022A,
  218. 0x00F40B0A, 0x00F50225, 0x00F60265, 0x00F708C5,
  219. 0x00F802E5, 0x00F90845, 0x00FA0089, 0x00FB0A09,
  220. 0x00FC008A, 0x00FD0A0A, 0x00FE02A9, 0x00FF0062
  221. };
  222. #endif // !DC_DEFINE_DATA
  223. //
  224. // Table used by ODAdjustVGAColor (qv)
  225. //
  226. // Note that the table is searched from top to bottom, so black, white and
  227. // the two greys are at the top, on the grounds that they will be used more
  228. // often than the other colors.
  229. //
  230. #ifndef DC_DEFINE_DATA
  231. extern const OD_ADJUST_VGA_STRUCT s_odVGAColors[16];
  232. #else
  233. const OD_ADJUST_VGA_STRUCT s_odVGAColors[16] =
  234. {
  235. // color addMask andMask testMask result
  236. { 0x000000, 0x000000, 0xF8F8F8, 0x000000, {0x00, 0x00, 0x00 }}, //
  237. { 0xFFFFFF, 0x000000, 0xF8F8F8, 0xF8F8F8, {0xFF, 0xFF, 0xFF }}, //
  238. { 0x808080, 0x080808, 0xF0F0F0, 0x808080, {0x80, 0x80, 0x80 }}, //
  239. { 0xC0C0C0, 0x080808, 0xF0F0F0, 0xC0C0C0, {0xC0, 0xC0, 0xC0 }}, //
  240. { 0x000080, 0x000008, 0xF8F8F0, 0x000080, {0x00, 0x00, 0x80 }}, //
  241. { 0x008000, 0x000800, 0xF8F0F8, 0x008000, {0x00, 0x80, 0x00 }}, //
  242. { 0x008080, 0x000808, 0xF8F0F0, 0x008080, {0x00, 0x80, 0x80 }}, //
  243. { 0x800000, 0x080000, 0xF0F8F8, 0x800000, {0x80, 0x00, 0x00 }}, //
  244. { 0x800080, 0x080008, 0xF0F8F0, 0x800080, {0x80, 0x00, 0x80 }}, //
  245. { 0x808000, 0x080800, 0xF0F0F8, 0x808000, {0x80, 0x80, 0x00 }}, //
  246. { 0x0000FF, 0x000000, 0xF8F8F8, 0x0000F8, {0x00, 0x00, 0xFF }}, //
  247. { 0x00FF00, 0x000000, 0xF8F8F8, 0x00F800, {0x00, 0xFF, 0x00 }}, //
  248. { 0x00FFFF, 0x000000, 0xF8F8F8, 0x00F8F8, {0x00, 0xFF, 0xFF }}, //
  249. { 0xFF0000, 0x000000, 0xF8F8F8, 0xF80000, {0xFF, 0x00, 0x00 }}, //
  250. { 0xFF00FF, 0x000000, 0xF8F8F8, 0xF800F8, {0xFF, 0x00, 0xFF }}, //
  251. { 0xFFFF00, 0x000000, 0xF8F8F8, 0xF8F800, {0xFF, 0xFF, 0x00 }} //
  252. };
  253. #endif // !DC_DEFINE_DATA
  254. //
  255. // 2nd Level Order Decoder
  256. //
  257. //
  258. // Entries can be of fixed size of variable size. Variable size entries
  259. // must be the last in each order structure. OE2 encodes from packed
  260. // structures containing variable entries. (ie unused bytes are not
  261. // present in the first level encoding structure passed to OE2). OD2
  262. // unencodes variable entries into the unpacked structures.
  263. //
  264. //
  265. // Fields can either be signed or unsigned
  266. //
  267. #define SIGNED_FIELD TRUE
  268. #define UNSIGNED_FIELD FALSE
  269. //
  270. // Field is a fixed size
  271. // type - The unencoded order structure type
  272. // size - The size of the encoded version of the field
  273. // signed - Is the field a signed field ?
  274. // field - The name of the field in the order structure
  275. //
  276. #define ETABLE_FIXED_ENTRY(type,size,signed,field) \
  277. { FIELD_OFFSET(type,field), \
  278. FIELD_SIZE(type,field), \
  279. size, \
  280. signed, \
  281. (UINT)(OE2_ETF_FIXED) }
  282. //
  283. // Field is coordinate of a fixed size
  284. // type - The unencoded order structure type
  285. // size - The size of the encoded version of the field
  286. // signed - Is the field a signed field ?
  287. // field - The name of the field in the order structure
  288. //
  289. #define ETABLE_FIXED_COORDS_ENTRY(type,size,signed,field) \
  290. { FIELD_OFFSET(type,field), \
  291. FIELD_SIZE(type,field), \
  292. size, \
  293. signed, \
  294. (UINT)(OE2_ETF_FIXED|OE2_ETF_COORDINATES) }
  295. //
  296. // Field is a fixed number of bytes (array?)
  297. // type - The unencoded order structure type
  298. // size - The number of bytes in the encoded version of the field
  299. // signed - Is the field a signed field ?
  300. // field - The name of the field in the order structure
  301. //
  302. #define ETABLE_DATA_ENTRY(type,size,signed,field) \
  303. { FIELD_OFFSET(type,field), \
  304. FIELD_SIZE(type,field), \
  305. size, \
  306. signed, \
  307. (UINT)(OE2_ETF_FIXED|OE2_ETF_DATA) }
  308. //
  309. // Field is a variable structure of the form
  310. // typedef struct
  311. // {
  312. // UINT len;
  313. // varType varEntry[len];
  314. // } varStruct
  315. //
  316. // type - The unencoded order structure type
  317. // size - The size of the encoded version of the field
  318. // signed - Is the field a signed field ?
  319. // field - The name of the field in the order structure (varStruct)
  320. // elem - The name of the variable element array (varEntry)
  321. //
  322. #define ETABLE_VARIABLE_ENTRY(type,size,signed,field,elem) \
  323. { FIELD_OFFSET(type,field.len), \
  324. FIELD_SIZE(type,field.elem[0]), \
  325. size, \
  326. signed, \
  327. (UINT)(OE2_ETF_VARIABLE)}
  328. //
  329. // Field is a variable structure of the form
  330. // typedef struct
  331. // {
  332. // UINT len;
  333. // varType varEntry[len];
  334. // } varStruct
  335. //
  336. // type - The unencoded order structure type
  337. // size - The size of the encoded version of the field
  338. // signed - Is the field a signed field ?
  339. // field - The name of the field in the order structure (varStruct)
  340. // elem - The name of the variable element array (varEntry)
  341. //
  342. // This macro is used instead of the ETABLE_VARIABLE_ENTRY macro when the
  343. // elements of the array are of type TSHR_POINT16. Otherwise on bigendian
  344. // machines the flipping macros will reverse the order of the coordinates.
  345. //
  346. #define ETABLE_VARIABLE_ENTRY_POINTS(type,size,signed,field,elem) \
  347. { FIELD_OFFSET(type,field.len), \
  348. FIELD_SIZE(type,field.elem[0].x), \
  349. size, \
  350. signed, \
  351. (UINT)(OE2_ETF_VARIABLE)}
  352. //
  353. // Field is a variable structure containing coords of the form
  354. // typedef struct
  355. // {
  356. // UINT len;
  357. // varCoord varEntry[len];
  358. // } varStruct
  359. //
  360. // type - The unencoded order structure type
  361. // size - The size of the encoded version of the field
  362. // signed - Is the field a signed field ?
  363. // field - The name of the field in the order structure (varStruct)
  364. // elem - The name of the variable element array (varEntry)
  365. //
  366. #define ETABLE_VARIABLE_COORDS_ENTRY(type,size,signed,field,elem) \
  367. { FIELD_OFFSET(type,field.len), \
  368. FIELD_SIZE(type,field.elem[0]), \
  369. size, \
  370. signed, \
  371. (UINT)(OE2_ETF_VARIABLE|OE2_ETF_COORDINATES)}
  372. #ifndef DC_DEFINE_DATA
  373. extern const OE2ETTABLE s_etable;
  374. #else
  375. const OE2ETTABLE s_etable =
  376. {
  377. //
  378. // Pointers to the start of the entries for each order.
  379. //
  380. {
  381. s_etable.DstBltFields,
  382. s_etable.PatBltFields,
  383. s_etable.ScrBltFields,
  384. s_etable.MemBltFields,
  385. s_etable.Mem3BltFields,
  386. s_etable.TextOutFields,
  387. s_etable.ExtTextOutFields,
  388. NULL, // Can be used for next order.
  389. s_etable.RectangleFields,
  390. s_etable.LineToFields,
  391. s_etable.OpaqueRectFields,
  392. s_etable.SaveBitmapFields,
  393. s_etable.DeskScrollFields,
  394. s_etable.MemBltR2Fields,
  395. s_etable.Mem3BltR2Fields,
  396. s_etable.PolygonFields,
  397. s_etable.PieFields,
  398. s_etable.EllipseFields,
  399. s_etable.ArcFields,
  400. s_etable.ChordFields,
  401. s_etable.PolyBezierFields,
  402. s_etable.RoundRectFields
  403. },
  404. //
  405. // Number of fields for each order.
  406. //
  407. {
  408. OE2_NUM_DSTBLT_FIELDS,
  409. OE2_NUM_PATBLT_FIELDS,
  410. OE2_NUM_SCRBLT_FIELDS,
  411. OE2_NUM_MEMBLT_FIELDS,
  412. OE2_NUM_MEM3BLT_FIELDS,
  413. OE2_NUM_TEXTOUT_FIELDS,
  414. OE2_NUM_EXTTEXTOUT_FIELDS,
  415. 0, // Change when installing new order.
  416. OE2_NUM_RECTANGLE_FIELDS,
  417. OE2_NUM_LINETO_FIELDS,
  418. OE2_NUM_OPAQUERECT_FIELDS,
  419. OE2_NUM_SAVEBITMAP_FIELDS,
  420. OE2_NUM_DESKSCROLL_FIELDS,
  421. OE2_NUM_MEMBLT_R2_FIELDS,
  422. OE2_NUM_MEM3BLT_R2_FIELDS,
  423. OE2_NUM_POLYGON_FIELDS,
  424. OE2_NUM_PIE_FIELDS,
  425. OE2_NUM_ELLIPSE_FIELDS,
  426. OE2_NUM_ARC_FIELDS,
  427. OE2_NUM_CHORD_FIELDS,
  428. OE2_NUM_POLYBEZIER_FIELDS,
  429. OE2_NUM_ROUNDRECT_FIELDS
  430. },
  431. //
  432. // Entries for the DSTBLT_ORDER
  433. //
  434. {
  435. ETABLE_FIXED_COORDS_ENTRY(DSTBLT_ORDER, 2, SIGNED_FIELD, nLeftRect),
  436. ETABLE_FIXED_COORDS_ENTRY(DSTBLT_ORDER, 2, SIGNED_FIELD, nTopRect),
  437. ETABLE_FIXED_COORDS_ENTRY(DSTBLT_ORDER, 2, SIGNED_FIELD, nWidth),
  438. ETABLE_FIXED_COORDS_ENTRY(DSTBLT_ORDER, 2, SIGNED_FIELD, nHeight),
  439. ETABLE_FIXED_ENTRY(DSTBLT_ORDER, 1, UNSIGNED_FIELD, bRop),
  440. { 0 }
  441. },
  442. //
  443. // Entries for the PATBLT_ORDER
  444. //
  445. {
  446. ETABLE_FIXED_COORDS_ENTRY(PATBLT_ORDER, 2, SIGNED_FIELD, nLeftRect),
  447. ETABLE_FIXED_COORDS_ENTRY(PATBLT_ORDER, 2, SIGNED_FIELD, nTopRect),
  448. ETABLE_FIXED_COORDS_ENTRY(PATBLT_ORDER, 2, SIGNED_FIELD, nWidth),
  449. ETABLE_FIXED_COORDS_ENTRY(PATBLT_ORDER, 2, SIGNED_FIELD, nHeight),
  450. ETABLE_FIXED_ENTRY(PATBLT_ORDER, 1, UNSIGNED_FIELD, bRop),
  451. ETABLE_DATA_ENTRY(PATBLT_ORDER, 3, UNSIGNED_FIELD, BackColor),
  452. ETABLE_DATA_ENTRY(PATBLT_ORDER, 3, UNSIGNED_FIELD, ForeColor),
  453. ETABLE_FIXED_ENTRY(PATBLT_ORDER, 1, SIGNED_FIELD, BrushOrgX),
  454. ETABLE_FIXED_ENTRY(PATBLT_ORDER, 1, SIGNED_FIELD, BrushOrgY),
  455. ETABLE_FIXED_ENTRY(PATBLT_ORDER, 1, UNSIGNED_FIELD, BrushStyle),
  456. ETABLE_FIXED_ENTRY(PATBLT_ORDER, 1, UNSIGNED_FIELD, BrushHatch),
  457. ETABLE_DATA_ENTRY(PATBLT_ORDER, 7, UNSIGNED_FIELD, BrushExtra),
  458. { 0 }
  459. },
  460. //
  461. // Entries for the SCRBLT_ORDER
  462. //
  463. {
  464. ETABLE_FIXED_COORDS_ENTRY(SCRBLT_ORDER, 2, SIGNED_FIELD, nLeftRect),
  465. ETABLE_FIXED_COORDS_ENTRY(SCRBLT_ORDER, 2, SIGNED_FIELD, nTopRect),
  466. ETABLE_FIXED_COORDS_ENTRY(SCRBLT_ORDER, 2, SIGNED_FIELD, nWidth),
  467. ETABLE_FIXED_COORDS_ENTRY(SCRBLT_ORDER, 2, SIGNED_FIELD, nHeight),
  468. ETABLE_FIXED_ENTRY(SCRBLT_ORDER, 1, UNSIGNED_FIELD, bRop),
  469. ETABLE_FIXED_COORDS_ENTRY(SCRBLT_ORDER, 2, SIGNED_FIELD, nXSrc),
  470. ETABLE_FIXED_COORDS_ENTRY(SCRBLT_ORDER, 2, SIGNED_FIELD, nYSrc),
  471. { 0 }
  472. },
  473. //
  474. // Entries for the MEMBLT_ORDER
  475. //
  476. {
  477. ETABLE_FIXED_ENTRY(MEMBLT_ORDER, 2, UNSIGNED_FIELD, cacheId),
  478. ETABLE_FIXED_COORDS_ENTRY(MEMBLT_ORDER, 2, SIGNED_FIELD, nLeftRect),
  479. ETABLE_FIXED_COORDS_ENTRY(MEMBLT_ORDER, 2, SIGNED_FIELD, nTopRect),
  480. ETABLE_FIXED_COORDS_ENTRY(MEMBLT_ORDER, 2, SIGNED_FIELD, nWidth),
  481. ETABLE_FIXED_COORDS_ENTRY(MEMBLT_ORDER, 2, SIGNED_FIELD, nHeight),
  482. ETABLE_FIXED_ENTRY(MEMBLT_ORDER, 1, UNSIGNED_FIELD, bRop),
  483. ETABLE_FIXED_COORDS_ENTRY(MEMBLT_ORDER, 2, SIGNED_FIELD, nXSrc),
  484. ETABLE_FIXED_COORDS_ENTRY(MEMBLT_ORDER, 2, SIGNED_FIELD, nYSrc),
  485. { 0 }
  486. },
  487. //
  488. // Entries for the MEM3BLT_ORDER
  489. //
  490. {
  491. ETABLE_FIXED_ENTRY(MEM3BLT_ORDER, 2, UNSIGNED_FIELD, cacheId),
  492. ETABLE_FIXED_COORDS_ENTRY(MEM3BLT_ORDER, 2, SIGNED_FIELD, nLeftRect),
  493. ETABLE_FIXED_COORDS_ENTRY(MEM3BLT_ORDER, 2, SIGNED_FIELD, nTopRect),
  494. ETABLE_FIXED_COORDS_ENTRY(MEM3BLT_ORDER, 2, SIGNED_FIELD, nWidth),
  495. ETABLE_FIXED_COORDS_ENTRY(MEM3BLT_ORDER, 2, SIGNED_FIELD, nHeight),
  496. ETABLE_FIXED_ENTRY(MEM3BLT_ORDER, 1, UNSIGNED_FIELD, bRop),
  497. ETABLE_FIXED_COORDS_ENTRY(MEM3BLT_ORDER, 2, SIGNED_FIELD, nXSrc),
  498. ETABLE_FIXED_COORDS_ENTRY(MEM3BLT_ORDER, 2, SIGNED_FIELD, nYSrc),
  499. ETABLE_DATA_ENTRY(MEM3BLT_ORDER, 3, UNSIGNED_FIELD, BackColor),
  500. ETABLE_DATA_ENTRY(MEM3BLT_ORDER, 3, UNSIGNED_FIELD, ForeColor),
  501. ETABLE_FIXED_ENTRY(MEM3BLT_ORDER, 1, SIGNED_FIELD, BrushOrgX),
  502. ETABLE_FIXED_ENTRY(MEM3BLT_ORDER, 1, SIGNED_FIELD, BrushOrgY),
  503. ETABLE_FIXED_ENTRY(MEM3BLT_ORDER, 1, UNSIGNED_FIELD, BrushStyle),
  504. ETABLE_FIXED_ENTRY(MEM3BLT_ORDER, 1, UNSIGNED_FIELD, BrushHatch),
  505. ETABLE_DATA_ENTRY(MEM3BLT_ORDER, 7, UNSIGNED_FIELD, BrushExtra),
  506. { 0 }
  507. },
  508. //
  509. // Entries for the TEXTOUT_ORDER
  510. //
  511. {
  512. ETABLE_FIXED_ENTRY(TEXTOUT_ORDER, 2, SIGNED_FIELD, common.BackMode),
  513. ETABLE_FIXED_COORDS_ENTRY(TEXTOUT_ORDER, 2, SIGNED_FIELD,
  514. common.nXStart),
  515. ETABLE_FIXED_COORDS_ENTRY(TEXTOUT_ORDER, 2, SIGNED_FIELD,
  516. common.nYStart),
  517. ETABLE_DATA_ENTRY(TEXTOUT_ORDER, 3, UNSIGNED_FIELD, common.BackColor),
  518. ETABLE_DATA_ENTRY(TEXTOUT_ORDER, 3, UNSIGNED_FIELD, common.ForeColor),
  519. ETABLE_FIXED_ENTRY(TEXTOUT_ORDER, 2, SIGNED_FIELD, common.CharExtra),
  520. ETABLE_FIXED_ENTRY(TEXTOUT_ORDER, 2, SIGNED_FIELD, common.BreakExtra),
  521. ETABLE_FIXED_ENTRY(TEXTOUT_ORDER, 2, SIGNED_FIELD, common.BreakCount),
  522. ETABLE_FIXED_ENTRY(TEXTOUT_ORDER, 2, SIGNED_FIELD, common.FontHeight),
  523. ETABLE_FIXED_ENTRY(TEXTOUT_ORDER, 2, SIGNED_FIELD, common.FontWidth),
  524. ETABLE_FIXED_ENTRY(TEXTOUT_ORDER, 2, UNSIGNED_FIELD,
  525. common.FontWeight),
  526. ETABLE_FIXED_ENTRY(TEXTOUT_ORDER, 2, UNSIGNED_FIELD,
  527. common.FontFlags),
  528. ETABLE_FIXED_ENTRY(TEXTOUT_ORDER, 2, UNSIGNED_FIELD,
  529. common.FontIndex),
  530. ETABLE_VARIABLE_ENTRY(TEXTOUT_ORDER, 1, UNSIGNED_FIELD,
  531. variableString, string),
  532. { 0 }
  533. },
  534. //
  535. // Entries for the EXTTEXTOUT_ORDER
  536. //
  537. {
  538. ETABLE_FIXED_ENTRY(EXTTEXTOUT_ORDER, 2, SIGNED_FIELD,
  539. common.BackMode),
  540. ETABLE_FIXED_COORDS_ENTRY(EXTTEXTOUT_ORDER, 2, SIGNED_FIELD,
  541. common.nXStart),
  542. ETABLE_FIXED_COORDS_ENTRY(EXTTEXTOUT_ORDER, 2, SIGNED_FIELD,
  543. common.nYStart),
  544. ETABLE_DATA_ENTRY(EXTTEXTOUT_ORDER, 3, UNSIGNED_FIELD,
  545. common.BackColor),
  546. ETABLE_DATA_ENTRY(EXTTEXTOUT_ORDER, 3, UNSIGNED_FIELD,
  547. common.ForeColor),
  548. ETABLE_FIXED_ENTRY(EXTTEXTOUT_ORDER, 2, SIGNED_FIELD,
  549. common.CharExtra),
  550. ETABLE_FIXED_ENTRY(EXTTEXTOUT_ORDER, 2, SIGNED_FIELD,
  551. common.BreakExtra),
  552. ETABLE_FIXED_ENTRY(EXTTEXTOUT_ORDER, 2, SIGNED_FIELD,
  553. common.BreakCount),
  554. ETABLE_FIXED_ENTRY(EXTTEXTOUT_ORDER, 2, SIGNED_FIELD,
  555. common.FontHeight),
  556. ETABLE_FIXED_ENTRY(EXTTEXTOUT_ORDER, 2, SIGNED_FIELD,
  557. common.FontWidth),
  558. ETABLE_FIXED_ENTRY(EXTTEXTOUT_ORDER, 2, UNSIGNED_FIELD,
  559. common.FontWeight),
  560. ETABLE_FIXED_ENTRY(EXTTEXTOUT_ORDER, 2, UNSIGNED_FIELD,
  561. common.FontFlags),
  562. ETABLE_FIXED_ENTRY(EXTTEXTOUT_ORDER, 2, UNSIGNED_FIELD,
  563. common.FontIndex),
  564. ETABLE_FIXED_ENTRY(EXTTEXTOUT_ORDER, 2, UNSIGNED_FIELD, fuOptions),
  565. ETABLE_FIXED_COORDS_ENTRY(EXTTEXTOUT_ORDER, 2, SIGNED_FIELD,
  566. rectangle.left),
  567. ETABLE_FIXED_COORDS_ENTRY(EXTTEXTOUT_ORDER, 2, SIGNED_FIELD,
  568. rectangle.top),
  569. ETABLE_FIXED_COORDS_ENTRY(EXTTEXTOUT_ORDER, 2, SIGNED_FIELD,
  570. rectangle.right),
  571. ETABLE_FIXED_COORDS_ENTRY(EXTTEXTOUT_ORDER, 2, SIGNED_FIELD,
  572. rectangle.bottom),
  573. ETABLE_VARIABLE_ENTRY(EXTTEXTOUT_ORDER, 1, UNSIGNED_FIELD,
  574. variableString, string),
  575. ETABLE_VARIABLE_COORDS_ENTRY(EXTTEXTOUT_ORDER, 2, SIGNED_FIELD,
  576. variableDeltaX, deltaX),
  577. { 0 }
  578. },
  579. //
  580. // Entries for the RECTANGLE_ORDER
  581. //
  582. {
  583. ETABLE_FIXED_ENTRY(RECTANGLE_ORDER, 2, SIGNED_FIELD, BackMode),
  584. ETABLE_FIXED_COORDS_ENTRY(RECTANGLE_ORDER, 2, SIGNED_FIELD,
  585. nLeftRect),
  586. ETABLE_FIXED_COORDS_ENTRY(RECTANGLE_ORDER, 2, SIGNED_FIELD, nTopRect),
  587. ETABLE_FIXED_COORDS_ENTRY(RECTANGLE_ORDER, 2, SIGNED_FIELD,
  588. nRightRect),
  589. ETABLE_FIXED_COORDS_ENTRY(RECTANGLE_ORDER, 2, SIGNED_FIELD,
  590. nBottomRect),
  591. ETABLE_DATA_ENTRY(RECTANGLE_ORDER, 3, UNSIGNED_FIELD, BackColor),
  592. ETABLE_DATA_ENTRY(RECTANGLE_ORDER, 3, UNSIGNED_FIELD, ForeColor),
  593. ETABLE_FIXED_ENTRY(RECTANGLE_ORDER, 1, SIGNED_FIELD, BrushOrgX),
  594. ETABLE_FIXED_ENTRY(RECTANGLE_ORDER, 1, SIGNED_FIELD, BrushOrgY),
  595. ETABLE_FIXED_ENTRY(RECTANGLE_ORDER, 1, UNSIGNED_FIELD, BrushStyle),
  596. ETABLE_FIXED_ENTRY(RECTANGLE_ORDER, 1, UNSIGNED_FIELD, BrushHatch),
  597. ETABLE_DATA_ENTRY(RECTANGLE_ORDER, 7, UNSIGNED_FIELD, BrushExtra),
  598. ETABLE_FIXED_ENTRY(RECTANGLE_ORDER, 1, UNSIGNED_FIELD, ROP2),
  599. ETABLE_FIXED_ENTRY(RECTANGLE_ORDER, 1, UNSIGNED_FIELD, PenStyle),
  600. ETABLE_FIXED_ENTRY(RECTANGLE_ORDER, 1, UNSIGNED_FIELD, PenWidth),
  601. ETABLE_DATA_ENTRY(RECTANGLE_ORDER, 3, UNSIGNED_FIELD, PenColor),
  602. { 0 }
  603. },
  604. //
  605. // Entries for the LINETO_ORDER
  606. //
  607. {
  608. ETABLE_FIXED_ENTRY(LINETO_ORDER, 2, SIGNED_FIELD, BackMode),
  609. ETABLE_FIXED_COORDS_ENTRY(LINETO_ORDER, 2, SIGNED_FIELD, nXStart),
  610. ETABLE_FIXED_COORDS_ENTRY(LINETO_ORDER, 2, SIGNED_FIELD, nYStart),
  611. ETABLE_FIXED_COORDS_ENTRY(LINETO_ORDER, 2, SIGNED_FIELD, nXEnd),
  612. ETABLE_FIXED_COORDS_ENTRY(LINETO_ORDER, 2, SIGNED_FIELD, nYEnd),
  613. ETABLE_DATA_ENTRY(LINETO_ORDER, 3, UNSIGNED_FIELD, BackColor),
  614. ETABLE_FIXED_ENTRY(LINETO_ORDER, 1, UNSIGNED_FIELD, ROP2),
  615. ETABLE_FIXED_ENTRY(LINETO_ORDER, 1, UNSIGNED_FIELD, PenStyle),
  616. ETABLE_FIXED_ENTRY(LINETO_ORDER, 1, UNSIGNED_FIELD, PenWidth),
  617. ETABLE_DATA_ENTRY(LINETO_ORDER, 3, UNSIGNED_FIELD, PenColor),
  618. { 0 }
  619. },
  620. //
  621. // Entries for the OPAQUERECT_ORDER
  622. //
  623. {
  624. ETABLE_FIXED_COORDS_ENTRY(OPAQUERECT_ORDER, 2, SIGNED_FIELD,
  625. nLeftRect),
  626. ETABLE_FIXED_COORDS_ENTRY(OPAQUERECT_ORDER, 2, SIGNED_FIELD,
  627. nTopRect),
  628. ETABLE_FIXED_COORDS_ENTRY(OPAQUERECT_ORDER, 2, SIGNED_FIELD, nWidth),
  629. ETABLE_FIXED_COORDS_ENTRY(OPAQUERECT_ORDER, 2, SIGNED_FIELD, nHeight),
  630. ETABLE_DATA_ENTRY(OPAQUERECT_ORDER, 3, UNSIGNED_FIELD, Color),
  631. { 0 }
  632. },
  633. //
  634. // Entries for the SAVEBITMAP_ORDER
  635. //
  636. {
  637. ETABLE_FIXED_ENTRY(SAVEBITMAP_ORDER, 4, UNSIGNED_FIELD,
  638. SavedBitmapPosition),
  639. ETABLE_FIXED_COORDS_ENTRY(SAVEBITMAP_ORDER, 2, SIGNED_FIELD,
  640. nLeftRect),
  641. ETABLE_FIXED_COORDS_ENTRY(SAVEBITMAP_ORDER, 2, SIGNED_FIELD,
  642. nTopRect),
  643. ETABLE_FIXED_COORDS_ENTRY(SAVEBITMAP_ORDER, 2, SIGNED_FIELD,
  644. nRightRect),
  645. ETABLE_FIXED_COORDS_ENTRY(SAVEBITMAP_ORDER, 2, SIGNED_FIELD,
  646. nBottomRect),
  647. ETABLE_FIXED_ENTRY(SAVEBITMAP_ORDER, 1, UNSIGNED_FIELD, Operation),
  648. { 0 }
  649. },
  650. //
  651. // Entries for the DESKSCROLL_ORDER
  652. //
  653. {
  654. ETABLE_FIXED_COORDS_ENTRY(DESKSCROLL_ORDER, 2, SIGNED_FIELD, xOrigin),
  655. ETABLE_FIXED_COORDS_ENTRY(DESKSCROLL_ORDER, 2, SIGNED_FIELD, yOrigin),
  656. { 0 }
  657. },
  658. //
  659. // Entries for the MEMBLT_R2_ORDER
  660. //
  661. {
  662. ETABLE_FIXED_ENTRY(MEMBLT_R2_ORDER, 2, UNSIGNED_FIELD, cacheId),
  663. ETABLE_FIXED_COORDS_ENTRY(MEMBLT_R2_ORDER, 2, SIGNED_FIELD,
  664. nLeftRect),
  665. ETABLE_FIXED_COORDS_ENTRY(MEMBLT_R2_ORDER, 2, SIGNED_FIELD, nTopRect),
  666. ETABLE_FIXED_COORDS_ENTRY(MEMBLT_R2_ORDER, 2, SIGNED_FIELD, nWidth),
  667. ETABLE_FIXED_COORDS_ENTRY(MEMBLT_R2_ORDER, 2, SIGNED_FIELD, nHeight),
  668. ETABLE_FIXED_ENTRY(MEMBLT_R2_ORDER, 1, UNSIGNED_FIELD, bRop),
  669. ETABLE_FIXED_COORDS_ENTRY(MEMBLT_R2_ORDER, 2, SIGNED_FIELD, nXSrc),
  670. ETABLE_FIXED_COORDS_ENTRY(MEMBLT_R2_ORDER, 2, SIGNED_FIELD, nYSrc),
  671. ETABLE_FIXED_ENTRY(MEMBLT_R2_ORDER, 2, UNSIGNED_FIELD, cacheIndex),
  672. { 0 }
  673. },
  674. //
  675. // Entries for the MEM3BLT_R2_ORDER
  676. //
  677. {
  678. ETABLE_FIXED_ENTRY(MEM3BLT_R2_ORDER, 2, UNSIGNED_FIELD, cacheId),
  679. ETABLE_FIXED_COORDS_ENTRY(MEM3BLT_R2_ORDER, 2, SIGNED_FIELD,
  680. nLeftRect),
  681. ETABLE_FIXED_COORDS_ENTRY(MEM3BLT_R2_ORDER, 2, SIGNED_FIELD,
  682. nTopRect),
  683. ETABLE_FIXED_COORDS_ENTRY(MEM3BLT_R2_ORDER, 2, SIGNED_FIELD, nWidth),
  684. ETABLE_FIXED_COORDS_ENTRY(MEM3BLT_R2_ORDER, 2, SIGNED_FIELD, nHeight),
  685. ETABLE_FIXED_ENTRY(MEM3BLT_R2_ORDER, 1, UNSIGNED_FIELD, bRop),
  686. ETABLE_FIXED_COORDS_ENTRY(MEM3BLT_R2_ORDER, 2, SIGNED_FIELD, nXSrc),
  687. ETABLE_FIXED_COORDS_ENTRY(MEM3BLT_R2_ORDER, 2, SIGNED_FIELD, nYSrc),
  688. ETABLE_FIXED_ENTRY(MEM3BLT_R2_ORDER, 3, UNSIGNED_FIELD, BackColor),
  689. ETABLE_FIXED_ENTRY(MEM3BLT_R2_ORDER, 3, UNSIGNED_FIELD, ForeColor),
  690. ETABLE_FIXED_ENTRY(MEM3BLT_R2_ORDER, 1, SIGNED_FIELD, BrushOrgX),
  691. ETABLE_FIXED_ENTRY(MEM3BLT_R2_ORDER, 1, SIGNED_FIELD, BrushOrgY),
  692. ETABLE_FIXED_ENTRY(MEM3BLT_R2_ORDER, 1, UNSIGNED_FIELD, BrushStyle),
  693. ETABLE_FIXED_ENTRY(MEM3BLT_R2_ORDER, 1, UNSIGNED_FIELD, BrushHatch),
  694. ETABLE_FIXED_ENTRY(MEM3BLT_R2_ORDER, 7, UNSIGNED_FIELD, BrushExtra),
  695. ETABLE_FIXED_ENTRY(MEM3BLT_R2_ORDER, 2, UNSIGNED_FIELD, cacheIndex),
  696. { 0 }
  697. },
  698. //
  699. // Entries for the POLYGON_ORDER
  700. //
  701. {
  702. ETABLE_FIXED_ENTRY(POLYGON_ORDER, 2, SIGNED_FIELD, BackMode),
  703. ETABLE_DATA_ENTRY(POLYGON_ORDER, 3, UNSIGNED_FIELD, BackColor),
  704. ETABLE_DATA_ENTRY(POLYGON_ORDER, 3, UNSIGNED_FIELD, ForeColor),
  705. ETABLE_FIXED_ENTRY(POLYGON_ORDER, 1, SIGNED_FIELD, BrushOrgX),
  706. ETABLE_FIXED_ENTRY(POLYGON_ORDER, 1, SIGNED_FIELD, BrushOrgY),
  707. ETABLE_FIXED_ENTRY(POLYGON_ORDER, 1, UNSIGNED_FIELD, BrushStyle),
  708. ETABLE_FIXED_ENTRY(POLYGON_ORDER, 1, UNSIGNED_FIELD, BrushHatch),
  709. ETABLE_DATA_ENTRY(POLYGON_ORDER, 7, UNSIGNED_FIELD, BrushExtra),
  710. ETABLE_FIXED_ENTRY(POLYGON_ORDER, 1, UNSIGNED_FIELD, ROP2),
  711. ETABLE_FIXED_ENTRY(POLYGON_ORDER, 1, UNSIGNED_FIELD, PenStyle),
  712. ETABLE_FIXED_ENTRY(POLYGON_ORDER, 1, UNSIGNED_FIELD, PenWidth),
  713. ETABLE_DATA_ENTRY(POLYGON_ORDER, 3, UNSIGNED_FIELD, PenColor),
  714. ETABLE_FIXED_ENTRY(POLYGON_ORDER, 1, UNSIGNED_FIELD, FillMode),
  715. ETABLE_VARIABLE_ENTRY_POINTS(POLYGON_ORDER, 2, UNSIGNED_FIELD,
  716. variablePoints, aPoints),
  717. { 0 }
  718. },
  719. //
  720. // Entries for the PIE_ORDER
  721. //
  722. {
  723. ETABLE_FIXED_ENTRY(PIE_ORDER, 2, SIGNED_FIELD, BackMode),
  724. ETABLE_FIXED_COORDS_ENTRY(PIE_ORDER, 2, SIGNED_FIELD, nLeftRect),
  725. ETABLE_FIXED_COORDS_ENTRY(PIE_ORDER, 2, SIGNED_FIELD, nTopRect),
  726. ETABLE_FIXED_COORDS_ENTRY(PIE_ORDER, 2, SIGNED_FIELD, nRightRect),
  727. ETABLE_FIXED_COORDS_ENTRY(PIE_ORDER, 2, SIGNED_FIELD, nBottomRect),
  728. ETABLE_FIXED_COORDS_ENTRY(PIE_ORDER, 2, SIGNED_FIELD, nXStart),
  729. ETABLE_FIXED_COORDS_ENTRY(PIE_ORDER, 2, SIGNED_FIELD, nYStart),
  730. ETABLE_FIXED_COORDS_ENTRY(PIE_ORDER, 2, SIGNED_FIELD, nXEnd),
  731. ETABLE_FIXED_COORDS_ENTRY(PIE_ORDER, 2, SIGNED_FIELD, nYEnd),
  732. ETABLE_FIXED_ENTRY(PIE_ORDER, 3, UNSIGNED_FIELD, BackColor),
  733. ETABLE_FIXED_ENTRY(PIE_ORDER, 3, UNSIGNED_FIELD, ForeColor),
  734. ETABLE_FIXED_ENTRY(PIE_ORDER, 1, SIGNED_FIELD, BrushOrgX),
  735. ETABLE_FIXED_ENTRY(PIE_ORDER, 1, SIGNED_FIELD, BrushOrgY),
  736. ETABLE_FIXED_ENTRY(PIE_ORDER, 1, UNSIGNED_FIELD, BrushStyle),
  737. ETABLE_FIXED_ENTRY(PIE_ORDER, 1, UNSIGNED_FIELD, BrushHatch),
  738. ETABLE_FIXED_ENTRY(PIE_ORDER, 7, UNSIGNED_FIELD, BrushExtra),
  739. ETABLE_FIXED_ENTRY(PIE_ORDER, 1, UNSIGNED_FIELD, ROP2),
  740. ETABLE_FIXED_ENTRY(PIE_ORDER, 1, UNSIGNED_FIELD, PenStyle),
  741. ETABLE_FIXED_ENTRY(PIE_ORDER, 1, UNSIGNED_FIELD, PenWidth),
  742. ETABLE_FIXED_ENTRY(PIE_ORDER, 3, UNSIGNED_FIELD, PenColor),
  743. ETABLE_FIXED_ENTRY(PIE_ORDER, 1, UNSIGNED_FIELD, ArcDirection),
  744. { 0 }
  745. },
  746. //
  747. // Entries for the ELLIPSE_ORDER
  748. //
  749. {
  750. ETABLE_FIXED_ENTRY(ELLIPSE_ORDER, 2, SIGNED_FIELD, BackMode),
  751. ETABLE_FIXED_COORDS_ENTRY(ELLIPSE_ORDER, 2, SIGNED_FIELD, nLeftRect),
  752. ETABLE_FIXED_COORDS_ENTRY(ELLIPSE_ORDER, 2, SIGNED_FIELD, nTopRect),
  753. ETABLE_FIXED_COORDS_ENTRY(ELLIPSE_ORDER, 2, SIGNED_FIELD, nRightRect),
  754. ETABLE_FIXED_COORDS_ENTRY(ELLIPSE_ORDER, 2, SIGNED_FIELD,
  755. nBottomRect),
  756. ETABLE_FIXED_ENTRY(ELLIPSE_ORDER, 3, UNSIGNED_FIELD, BackColor),
  757. ETABLE_FIXED_ENTRY(ELLIPSE_ORDER, 3, UNSIGNED_FIELD, ForeColor),
  758. ETABLE_FIXED_ENTRY(ELLIPSE_ORDER, 1, SIGNED_FIELD, BrushOrgX),
  759. ETABLE_FIXED_ENTRY(ELLIPSE_ORDER, 1, SIGNED_FIELD, BrushOrgY),
  760. ETABLE_FIXED_ENTRY(ELLIPSE_ORDER, 1, UNSIGNED_FIELD, BrushStyle),
  761. ETABLE_FIXED_ENTRY(ELLIPSE_ORDER, 1, UNSIGNED_FIELD, BrushHatch),
  762. ETABLE_FIXED_ENTRY(ELLIPSE_ORDER, 7, UNSIGNED_FIELD, BrushExtra),
  763. ETABLE_FIXED_ENTRY(ELLIPSE_ORDER, 1, UNSIGNED_FIELD, ROP2),
  764. ETABLE_FIXED_ENTRY(ELLIPSE_ORDER, 1, UNSIGNED_FIELD, PenStyle),
  765. ETABLE_FIXED_ENTRY(ELLIPSE_ORDER, 1, UNSIGNED_FIELD, PenWidth),
  766. ETABLE_FIXED_ENTRY(ELLIPSE_ORDER, 3, UNSIGNED_FIELD, PenColor),
  767. { 0 }
  768. },
  769. //
  770. // Entries for the ARC_ORDER
  771. //
  772. {
  773. ETABLE_FIXED_ENTRY(ARC_ORDER, 2, SIGNED_FIELD, BackMode),
  774. ETABLE_FIXED_COORDS_ENTRY(ARC_ORDER, 2, SIGNED_FIELD, nLeftRect),
  775. ETABLE_FIXED_COORDS_ENTRY(ARC_ORDER, 2, SIGNED_FIELD, nTopRect),
  776. ETABLE_FIXED_COORDS_ENTRY(ARC_ORDER, 2, SIGNED_FIELD, nRightRect),
  777. ETABLE_FIXED_COORDS_ENTRY(ARC_ORDER, 2, SIGNED_FIELD, nBottomRect),
  778. ETABLE_FIXED_COORDS_ENTRY(ARC_ORDER, 2, SIGNED_FIELD, nXStart),
  779. ETABLE_FIXED_COORDS_ENTRY(ARC_ORDER, 2, SIGNED_FIELD, nYStart),
  780. ETABLE_FIXED_COORDS_ENTRY(ARC_ORDER, 2, SIGNED_FIELD, nXEnd),
  781. ETABLE_FIXED_COORDS_ENTRY(ARC_ORDER, 2, SIGNED_FIELD, nYEnd),
  782. ETABLE_FIXED_ENTRY(ARC_ORDER, 3, UNSIGNED_FIELD, BackColor),
  783. ETABLE_FIXED_ENTRY(ARC_ORDER, 1, UNSIGNED_FIELD, ROP2),
  784. ETABLE_FIXED_ENTRY(ARC_ORDER, 1, UNSIGNED_FIELD, PenStyle),
  785. ETABLE_FIXED_ENTRY(ARC_ORDER, 1, UNSIGNED_FIELD, PenWidth),
  786. ETABLE_FIXED_ENTRY(ARC_ORDER, 3, UNSIGNED_FIELD, PenColor),
  787. ETABLE_FIXED_ENTRY(ARC_ORDER, 1, UNSIGNED_FIELD, ArcDirection),
  788. { 0 }
  789. },
  790. //
  791. // Entries for the CHORD_ORDER
  792. //
  793. {
  794. ETABLE_FIXED_ENTRY(CHORD_ORDER, 2, SIGNED_FIELD, BackMode),
  795. ETABLE_FIXED_COORDS_ENTRY(CHORD_ORDER, 2, SIGNED_FIELD, nLeftRect),
  796. ETABLE_FIXED_COORDS_ENTRY(CHORD_ORDER, 2, SIGNED_FIELD, nTopRect),
  797. ETABLE_FIXED_COORDS_ENTRY(CHORD_ORDER, 2, SIGNED_FIELD, nRightRect),
  798. ETABLE_FIXED_COORDS_ENTRY(CHORD_ORDER, 2, SIGNED_FIELD, nBottomRect),
  799. ETABLE_FIXED_COORDS_ENTRY(CHORD_ORDER, 2, SIGNED_FIELD, nXStart),
  800. ETABLE_FIXED_COORDS_ENTRY(CHORD_ORDER, 2, SIGNED_FIELD, nYStart),
  801. ETABLE_FIXED_COORDS_ENTRY(CHORD_ORDER, 2, SIGNED_FIELD, nXEnd),
  802. ETABLE_FIXED_COORDS_ENTRY(CHORD_ORDER, 2, SIGNED_FIELD, nYEnd),
  803. ETABLE_FIXED_ENTRY(CHORD_ORDER, 3, UNSIGNED_FIELD, BackColor),
  804. ETABLE_FIXED_ENTRY(CHORD_ORDER, 3, UNSIGNED_FIELD, ForeColor),
  805. ETABLE_FIXED_ENTRY(CHORD_ORDER, 1, SIGNED_FIELD, BrushOrgX),
  806. ETABLE_FIXED_ENTRY(CHORD_ORDER, 1, SIGNED_FIELD, BrushOrgY),
  807. ETABLE_FIXED_ENTRY(CHORD_ORDER, 1, UNSIGNED_FIELD, BrushStyle),
  808. ETABLE_FIXED_ENTRY(CHORD_ORDER, 1, UNSIGNED_FIELD, BrushHatch),
  809. ETABLE_FIXED_ENTRY(CHORD_ORDER, 7, UNSIGNED_FIELD, BrushExtra),
  810. ETABLE_FIXED_ENTRY(CHORD_ORDER, 1, UNSIGNED_FIELD, ROP2),
  811. ETABLE_FIXED_ENTRY(CHORD_ORDER, 1, UNSIGNED_FIELD, PenStyle),
  812. ETABLE_FIXED_ENTRY(CHORD_ORDER, 1, UNSIGNED_FIELD, PenWidth),
  813. ETABLE_FIXED_ENTRY(CHORD_ORDER, 3, UNSIGNED_FIELD, PenColor),
  814. ETABLE_FIXED_ENTRY(CHORD_ORDER, 1, UNSIGNED_FIELD, ArcDirection),
  815. { 0 }
  816. },
  817. //
  818. // Entries for the POLYBEZIER_ORDER
  819. //
  820. {
  821. ETABLE_FIXED_ENTRY(POLYBEZIER_ORDER, 2, SIGNED_FIELD, BackMode),
  822. ETABLE_DATA_ENTRY(POLYBEZIER_ORDER, 3, UNSIGNED_FIELD, BackColor),
  823. ETABLE_DATA_ENTRY(POLYBEZIER_ORDER, 3, UNSIGNED_FIELD, ForeColor),
  824. ETABLE_FIXED_ENTRY(POLYBEZIER_ORDER, 1, UNSIGNED_FIELD, ROP2),
  825. ETABLE_FIXED_ENTRY(POLYBEZIER_ORDER, 1, UNSIGNED_FIELD, PenStyle),
  826. ETABLE_FIXED_ENTRY(POLYBEZIER_ORDER, 1, UNSIGNED_FIELD, PenWidth),
  827. ETABLE_DATA_ENTRY(POLYBEZIER_ORDER, 3, UNSIGNED_FIELD, PenColor),
  828. ETABLE_VARIABLE_ENTRY_POINTS(POLYBEZIER_ORDER, 2, UNSIGNED_FIELD,
  829. variablePoints, aPoints),
  830. { 0 }
  831. },
  832. //
  833. // Entries for the ROUNDRECT_ORDER
  834. //
  835. {
  836. ETABLE_FIXED_ENTRY(ROUNDRECT_ORDER, 2, SIGNED_FIELD, BackMode),
  837. ETABLE_FIXED_COORDS_ENTRY(ROUNDRECT_ORDER, 2, SIGNED_FIELD,
  838. nLeftRect),
  839. ETABLE_FIXED_COORDS_ENTRY(ROUNDRECT_ORDER, 2, SIGNED_FIELD, nTopRect),
  840. ETABLE_FIXED_COORDS_ENTRY(ROUNDRECT_ORDER, 2, SIGNED_FIELD,
  841. nRightRect),
  842. ETABLE_FIXED_COORDS_ENTRY(ROUNDRECT_ORDER, 2, SIGNED_FIELD,
  843. nBottomRect),
  844. ETABLE_FIXED_COORDS_ENTRY(ROUNDRECT_ORDER, 2, SIGNED_FIELD,
  845. nEllipseWidth),
  846. ETABLE_FIXED_COORDS_ENTRY(ROUNDRECT_ORDER, 2, SIGNED_FIELD,
  847. nEllipseHeight),
  848. ETABLE_DATA_ENTRY(ROUNDRECT_ORDER, 3, UNSIGNED_FIELD, BackColor),
  849. ETABLE_DATA_ENTRY(ROUNDRECT_ORDER, 3, UNSIGNED_FIELD, ForeColor),
  850. ETABLE_FIXED_ENTRY(ROUNDRECT_ORDER, 1, SIGNED_FIELD, BrushOrgX),
  851. ETABLE_FIXED_ENTRY(ROUNDRECT_ORDER, 1, SIGNED_FIELD, BrushOrgY),
  852. ETABLE_FIXED_ENTRY(ROUNDRECT_ORDER, 1, UNSIGNED_FIELD, BrushStyle),
  853. ETABLE_FIXED_ENTRY(ROUNDRECT_ORDER, 1, UNSIGNED_FIELD, BrushHatch),
  854. ETABLE_DATA_ENTRY(ROUNDRECT_ORDER, 7, UNSIGNED_FIELD, BrushExtra),
  855. ETABLE_FIXED_ENTRY(ROUNDRECT_ORDER, 1, UNSIGNED_FIELD, ROP2),
  856. ETABLE_FIXED_ENTRY(ROUNDRECT_ORDER, 1, UNSIGNED_FIELD, PenStyle),
  857. ETABLE_FIXED_ENTRY(ROUNDRECT_ORDER, 1, UNSIGNED_FIELD, PenWidth),
  858. ETABLE_DATA_ENTRY(ROUNDRECT_ORDER, 3, UNSIGNED_FIELD, PenColor),
  859. { 0 }
  860. }
  861. };
  862. #endif // !DC_DEFINE_DATA
  863. //
  864. // T.120 S20
  865. //
  866. //
  867. // The S20 MCS channel registered with GCC.
  868. //
  869. DC_DATA( NET_UID, g_s20LocalID );
  870. DC_DATA( NET_CHANNEL_ID, g_s20BroadcastID );
  871. DC_DATA( UINT, g_s20State );
  872. DC_DATA( PMG_CLIENT, g_s20pmgClient );
  873. DC_DATA( BOOL, g_s20JoinedLocal );
  874. DC_DATA( UINT, g_s20ShareCorrelator );
  875. DC_DATA( UINT, g_s20Generation );
  876. //
  877. // This is S20_CREATE or S20_JOIN if we need to issue a create or join when
  878. // we have succesfully joined the channel.
  879. //
  880. DC_DATA( UINT, g_s20Pend );
  881. //
  882. // The control packet queue and indexes. The head is the next packet which
  883. // should be sent, the tail is where the next packet should be added. If
  884. // they are equal there are no packets on the queue.
  885. //
  886. DC_DATA( UINT, g_s20ControlPacketQHead );
  887. DC_DATA( UINT, g_s20ControlPacketQTail );
  888. DC_DATA_ARRAY( S20CONTROLPACKETQENTRY,
  889. g_s20ControlPacketQ,
  890. S20_MAX_QUEUED_CONTROL_PACKETS );
  891. //
  892. // Sent Bitmap Cache
  893. //
  894. DC_DATA ( BOOL, g_sbcEnabled );
  895. DC_DATA_ARRAY ( LPSBC_SHUNT_BUFFER, g_asbcShuntBuffers, SBC_NUM_TILE_SIZES );
  896. DC_DATA_ARRAY ( DWORD, g_asbcBitMasks, 3 );
  897. //
  898. // Share Controller
  899. //
  900. DC_DATA ( PCM_CLIENT, g_pcmClientSc);
  901. //
  902. // Scheduler
  903. //
  904. DC_DATA ( BOOL, g_schTerminating );
  905. DC_DATA ( UINT, g_schCurrentMode );
  906. DC_DATA ( UINT, g_schTimeoutPeriod );
  907. DC_DATA ( UINT, g_schLastTurboModeSwitch );
  908. DC_DATA ( HANDLE, g_schEvent );
  909. DC_DATA ( DWORD, g_schThreadID );
  910. DC_DATA ( BOOL, g_schMessageOutstanding );
  911. DC_DATA ( BOOL, g_schStayAwake );
  912. DC_DATA ( CRITICAL_SECTION, g_schCriticalSection );