gdi32: Add support for DIBINDEX colors in 1-bpp blits.
[wine.git] / dlls / gdi32 / tests / generated.c
blob019524df86c9bf656acc1c1a40bba80172aab6a0
1 /* File generated automatically from tools/winapi/tests.dat; do not edit! */
2 /* This file can be copied, modified and distributed without restriction. */
4 /*
5 * Unit tests for data structure packing
6 */
8 #define WINVER 0x0501
9 #define _WIN32_IE 0x0501
10 #define _WIN32_WINNT 0x0501
12 #define WINE_NOWINSOCK
14 #include "windows.h"
16 #include "wine/test.h"
18 /***********************************************************************
19 * Compatibility macros
22 #define DWORD_PTR UINT_PTR
23 #define LONG_PTR INT_PTR
24 #define ULONG_PTR UINT_PTR
26 /***********************************************************************
27 * Windows API extension
30 #if defined(_MSC_VER) && (_MSC_VER >= 1300) && defined(__cplusplus)
31 # define _TYPE_ALIGNMENT(type) __alignof(type)
32 #elif defined(__GNUC__)
33 # define _TYPE_ALIGNMENT(type) __alignof__(type)
34 #else
36 * FIXME: May not be possible without a compiler extension
37 * (if type is not just a name that is, otherwise the normal
38 * TYPE_ALIGNMENT can be used)
40 #endif
42 #if defined(TYPE_ALIGNMENT) && defined(_MSC_VER) && _MSC_VER >= 800 && !defined(__cplusplus)
43 #pragma warning(disable:4116)
44 #endif
46 #if !defined(TYPE_ALIGNMENT) && defined(_TYPE_ALIGNMENT)
47 # define TYPE_ALIGNMENT _TYPE_ALIGNMENT
48 #endif
50 /***********************************************************************
51 * Test helper macros
54 #define TEST_TYPE_SIZE(type, size) C_ASSERT(sizeof(type) == size);
56 #ifdef TYPE_ALIGNMENT
57 # define TEST_TYPE_ALIGN(type, align) C_ASSERT(TYPE_ALIGNMENT(type) == align);
58 #else
59 # define TEST_TYPE_ALIGN(type, align)
60 #endif
62 #ifdef _TYPE_ALIGNMENT
63 # define TEST_TARGET_ALIGN(type, align) C_ASSERT(_TYPE_ALIGNMENT(*(type)0) == align);
64 # define TEST_FIELD_ALIGN(type, field, align) C_ASSERT(_TYPE_ALIGNMENT(((type*)0)->field) == align);
65 #else
66 # define TEST_TARGET_ALIGN(type, align)
67 # define TEST_FIELD_ALIGN(type, field, align)
68 #endif
70 #define TEST_FIELD_OFFSET(type, field, offset) C_ASSERT(FIELD_OFFSET(type, field) == offset);
72 #define TEST_TARGET_SIZE(type, size) TEST_TYPE_SIZE(*(type)0, size)
73 #define TEST_FIELD_SIZE(type, field, size) TEST_TYPE_SIZE((((type*)0)->field), size)
74 #define TEST_TYPE_SIGNED(type) C_ASSERT((type) -1 < 0);
75 #define TEST_TYPE_UNSIGNED(type) C_ASSERT((type) -1 > 0);
78 #ifdef _WIN64
80 static void test_pack_ABC(void)
82 /* ABC */
83 TEST_TYPE_SIZE (ABC, 12)
84 TEST_TYPE_ALIGN (ABC, 4)
85 TEST_FIELD_SIZE (ABC, abcA, 4)
86 TEST_FIELD_ALIGN (ABC, abcA, 4)
87 TEST_FIELD_OFFSET(ABC, abcA, 0)
88 TEST_FIELD_SIZE (ABC, abcB, 4)
89 TEST_FIELD_ALIGN (ABC, abcB, 4)
90 TEST_FIELD_OFFSET(ABC, abcB, 4)
91 TEST_FIELD_SIZE (ABC, abcC, 4)
92 TEST_FIELD_ALIGN (ABC, abcC, 4)
93 TEST_FIELD_OFFSET(ABC, abcC, 8)
96 static void test_pack_ABCFLOAT(void)
98 /* ABCFLOAT */
99 TEST_TYPE_SIZE (ABCFLOAT, 12)
100 TEST_TYPE_ALIGN (ABCFLOAT, 4)
101 TEST_FIELD_SIZE (ABCFLOAT, abcfA, 4)
102 TEST_FIELD_ALIGN (ABCFLOAT, abcfA, 4)
103 TEST_FIELD_OFFSET(ABCFLOAT, abcfA, 0)
104 TEST_FIELD_SIZE (ABCFLOAT, abcfB, 4)
105 TEST_FIELD_ALIGN (ABCFLOAT, abcfB, 4)
106 TEST_FIELD_OFFSET(ABCFLOAT, abcfB, 4)
107 TEST_FIELD_SIZE (ABCFLOAT, abcfC, 4)
108 TEST_FIELD_ALIGN (ABCFLOAT, abcfC, 4)
109 TEST_FIELD_OFFSET(ABCFLOAT, abcfC, 8)
112 static void test_pack_ABORTPROC(void)
114 /* ABORTPROC */
115 TEST_TYPE_SIZE (ABORTPROC, 8)
116 TEST_TYPE_ALIGN (ABORTPROC, 8)
119 static void test_pack_BITMAP(void)
121 /* BITMAP */
122 TEST_TYPE_SIZE (BITMAP, 32)
123 TEST_TYPE_ALIGN (BITMAP, 8)
124 TEST_FIELD_SIZE (BITMAP, bmType, 4)
125 TEST_FIELD_ALIGN (BITMAP, bmType, 4)
126 TEST_FIELD_OFFSET(BITMAP, bmType, 0)
127 TEST_FIELD_SIZE (BITMAP, bmWidth, 4)
128 TEST_FIELD_ALIGN (BITMAP, bmWidth, 4)
129 TEST_FIELD_OFFSET(BITMAP, bmWidth, 4)
130 TEST_FIELD_SIZE (BITMAP, bmHeight, 4)
131 TEST_FIELD_ALIGN (BITMAP, bmHeight, 4)
132 TEST_FIELD_OFFSET(BITMAP, bmHeight, 8)
133 TEST_FIELD_SIZE (BITMAP, bmWidthBytes, 4)
134 TEST_FIELD_ALIGN (BITMAP, bmWidthBytes, 4)
135 TEST_FIELD_OFFSET(BITMAP, bmWidthBytes, 12)
136 TEST_FIELD_SIZE (BITMAP, bmPlanes, 2)
137 TEST_FIELD_ALIGN (BITMAP, bmPlanes, 2)
138 TEST_FIELD_OFFSET(BITMAP, bmPlanes, 16)
139 TEST_FIELD_SIZE (BITMAP, bmBitsPixel, 2)
140 TEST_FIELD_ALIGN (BITMAP, bmBitsPixel, 2)
141 TEST_FIELD_OFFSET(BITMAP, bmBitsPixel, 18)
142 TEST_FIELD_SIZE (BITMAP, bmBits, 8)
143 TEST_FIELD_ALIGN (BITMAP, bmBits, 8)
144 TEST_FIELD_OFFSET(BITMAP, bmBits, 24)
147 static void test_pack_BITMAPCOREHEADER(void)
149 /* BITMAPCOREHEADER */
150 TEST_TYPE_SIZE (BITMAPCOREHEADER, 12)
151 TEST_TYPE_ALIGN (BITMAPCOREHEADER, 4)
152 TEST_FIELD_SIZE (BITMAPCOREHEADER, bcSize, 4)
153 TEST_FIELD_ALIGN (BITMAPCOREHEADER, bcSize, 4)
154 TEST_FIELD_OFFSET(BITMAPCOREHEADER, bcSize, 0)
155 TEST_FIELD_SIZE (BITMAPCOREHEADER, bcWidth, 2)
156 TEST_FIELD_ALIGN (BITMAPCOREHEADER, bcWidth, 2)
157 TEST_FIELD_OFFSET(BITMAPCOREHEADER, bcWidth, 4)
158 TEST_FIELD_SIZE (BITMAPCOREHEADER, bcHeight, 2)
159 TEST_FIELD_ALIGN (BITMAPCOREHEADER, bcHeight, 2)
160 TEST_FIELD_OFFSET(BITMAPCOREHEADER, bcHeight, 6)
161 TEST_FIELD_SIZE (BITMAPCOREHEADER, bcPlanes, 2)
162 TEST_FIELD_ALIGN (BITMAPCOREHEADER, bcPlanes, 2)
163 TEST_FIELD_OFFSET(BITMAPCOREHEADER, bcPlanes, 8)
164 TEST_FIELD_SIZE (BITMAPCOREHEADER, bcBitCount, 2)
165 TEST_FIELD_ALIGN (BITMAPCOREHEADER, bcBitCount, 2)
166 TEST_FIELD_OFFSET(BITMAPCOREHEADER, bcBitCount, 10)
169 static void test_pack_BITMAPCOREINFO(void)
171 /* BITMAPCOREINFO */
172 TEST_TYPE_SIZE (BITMAPCOREINFO, 16)
173 TEST_TYPE_ALIGN (BITMAPCOREINFO, 4)
174 TEST_FIELD_SIZE (BITMAPCOREINFO, bmciHeader, 12)
175 TEST_FIELD_ALIGN (BITMAPCOREINFO, bmciHeader, 4)
176 TEST_FIELD_OFFSET(BITMAPCOREINFO, bmciHeader, 0)
177 TEST_FIELD_SIZE (BITMAPCOREINFO, bmciColors, 3)
178 TEST_FIELD_ALIGN (BITMAPCOREINFO, bmciColors, 1)
179 TEST_FIELD_OFFSET(BITMAPCOREINFO, bmciColors, 12)
182 static void test_pack_BITMAPFILEHEADER(void)
184 /* BITMAPFILEHEADER (pack 2) */
185 TEST_TYPE_SIZE (BITMAPFILEHEADER, 14)
186 TEST_TYPE_ALIGN (BITMAPFILEHEADER, 2)
187 TEST_FIELD_SIZE (BITMAPFILEHEADER, bfType, 2)
188 TEST_FIELD_ALIGN (BITMAPFILEHEADER, bfType, 2)
189 TEST_FIELD_OFFSET(BITMAPFILEHEADER, bfType, 0)
190 TEST_FIELD_SIZE (BITMAPFILEHEADER, bfSize, 4)
191 TEST_FIELD_ALIGN (BITMAPFILEHEADER, bfSize, 2)
192 TEST_FIELD_OFFSET(BITMAPFILEHEADER, bfSize, 2)
193 TEST_FIELD_SIZE (BITMAPFILEHEADER, bfReserved1, 2)
194 TEST_FIELD_ALIGN (BITMAPFILEHEADER, bfReserved1, 2)
195 TEST_FIELD_OFFSET(BITMAPFILEHEADER, bfReserved1, 6)
196 TEST_FIELD_SIZE (BITMAPFILEHEADER, bfReserved2, 2)
197 TEST_FIELD_ALIGN (BITMAPFILEHEADER, bfReserved2, 2)
198 TEST_FIELD_OFFSET(BITMAPFILEHEADER, bfReserved2, 8)
199 TEST_FIELD_SIZE (BITMAPFILEHEADER, bfOffBits, 4)
200 TEST_FIELD_ALIGN (BITMAPFILEHEADER, bfOffBits, 2)
201 TEST_FIELD_OFFSET(BITMAPFILEHEADER, bfOffBits, 10)
204 static void test_pack_BITMAPINFO(void)
206 /* BITMAPINFO */
207 TEST_TYPE_SIZE (BITMAPINFO, 44)
208 TEST_TYPE_ALIGN (BITMAPINFO, 4)
209 TEST_FIELD_SIZE (BITMAPINFO, bmiHeader, 40)
210 TEST_FIELD_ALIGN (BITMAPINFO, bmiHeader, 4)
211 TEST_FIELD_OFFSET(BITMAPINFO, bmiHeader, 0)
212 TEST_FIELD_SIZE (BITMAPINFO, bmiColors, 4)
213 TEST_FIELD_ALIGN (BITMAPINFO, bmiColors, 1)
214 TEST_FIELD_OFFSET(BITMAPINFO, bmiColors, 40)
217 static void test_pack_BITMAPINFOHEADER(void)
219 /* BITMAPINFOHEADER */
220 TEST_TYPE_SIZE (BITMAPINFOHEADER, 40)
221 TEST_TYPE_ALIGN (BITMAPINFOHEADER, 4)
222 TEST_FIELD_SIZE (BITMAPINFOHEADER, biSize, 4)
223 TEST_FIELD_ALIGN (BITMAPINFOHEADER, biSize, 4)
224 TEST_FIELD_OFFSET(BITMAPINFOHEADER, biSize, 0)
225 TEST_FIELD_SIZE (BITMAPINFOHEADER, biWidth, 4)
226 TEST_FIELD_ALIGN (BITMAPINFOHEADER, biWidth, 4)
227 TEST_FIELD_OFFSET(BITMAPINFOHEADER, biWidth, 4)
228 TEST_FIELD_SIZE (BITMAPINFOHEADER, biHeight, 4)
229 TEST_FIELD_ALIGN (BITMAPINFOHEADER, biHeight, 4)
230 TEST_FIELD_OFFSET(BITMAPINFOHEADER, biHeight, 8)
231 TEST_FIELD_SIZE (BITMAPINFOHEADER, biPlanes, 2)
232 TEST_FIELD_ALIGN (BITMAPINFOHEADER, biPlanes, 2)
233 TEST_FIELD_OFFSET(BITMAPINFOHEADER, biPlanes, 12)
234 TEST_FIELD_SIZE (BITMAPINFOHEADER, biBitCount, 2)
235 TEST_FIELD_ALIGN (BITMAPINFOHEADER, biBitCount, 2)
236 TEST_FIELD_OFFSET(BITMAPINFOHEADER, biBitCount, 14)
237 TEST_FIELD_SIZE (BITMAPINFOHEADER, biCompression, 4)
238 TEST_FIELD_ALIGN (BITMAPINFOHEADER, biCompression, 4)
239 TEST_FIELD_OFFSET(BITMAPINFOHEADER, biCompression, 16)
240 TEST_FIELD_SIZE (BITMAPINFOHEADER, biSizeImage, 4)
241 TEST_FIELD_ALIGN (BITMAPINFOHEADER, biSizeImage, 4)
242 TEST_FIELD_OFFSET(BITMAPINFOHEADER, biSizeImage, 20)
243 TEST_FIELD_SIZE (BITMAPINFOHEADER, biXPelsPerMeter, 4)
244 TEST_FIELD_ALIGN (BITMAPINFOHEADER, biXPelsPerMeter, 4)
245 TEST_FIELD_OFFSET(BITMAPINFOHEADER, biXPelsPerMeter, 24)
246 TEST_FIELD_SIZE (BITMAPINFOHEADER, biYPelsPerMeter, 4)
247 TEST_FIELD_ALIGN (BITMAPINFOHEADER, biYPelsPerMeter, 4)
248 TEST_FIELD_OFFSET(BITMAPINFOHEADER, biYPelsPerMeter, 28)
249 TEST_FIELD_SIZE (BITMAPINFOHEADER, biClrUsed, 4)
250 TEST_FIELD_ALIGN (BITMAPINFOHEADER, biClrUsed, 4)
251 TEST_FIELD_OFFSET(BITMAPINFOHEADER, biClrUsed, 32)
252 TEST_FIELD_SIZE (BITMAPINFOHEADER, biClrImportant, 4)
253 TEST_FIELD_ALIGN (BITMAPINFOHEADER, biClrImportant, 4)
254 TEST_FIELD_OFFSET(BITMAPINFOHEADER, biClrImportant, 36)
257 static void test_pack_BITMAPV4HEADER(void)
259 /* BITMAPV4HEADER */
260 TEST_TYPE_SIZE (BITMAPV4HEADER, 108)
261 TEST_TYPE_ALIGN (BITMAPV4HEADER, 4)
262 TEST_FIELD_SIZE (BITMAPV4HEADER, bV4Size, 4)
263 TEST_FIELD_ALIGN (BITMAPV4HEADER, bV4Size, 4)
264 TEST_FIELD_OFFSET(BITMAPV4HEADER, bV4Size, 0)
265 TEST_FIELD_SIZE (BITMAPV4HEADER, bV4Width, 4)
266 TEST_FIELD_ALIGN (BITMAPV4HEADER, bV4Width, 4)
267 TEST_FIELD_OFFSET(BITMAPV4HEADER, bV4Width, 4)
268 TEST_FIELD_SIZE (BITMAPV4HEADER, bV4Height, 4)
269 TEST_FIELD_ALIGN (BITMAPV4HEADER, bV4Height, 4)
270 TEST_FIELD_OFFSET(BITMAPV4HEADER, bV4Height, 8)
271 TEST_FIELD_SIZE (BITMAPV4HEADER, bV4Planes, 2)
272 TEST_FIELD_ALIGN (BITMAPV4HEADER, bV4Planes, 2)
273 TEST_FIELD_OFFSET(BITMAPV4HEADER, bV4Planes, 12)
274 TEST_FIELD_SIZE (BITMAPV4HEADER, bV4BitCount, 2)
275 TEST_FIELD_ALIGN (BITMAPV4HEADER, bV4BitCount, 2)
276 TEST_FIELD_OFFSET(BITMAPV4HEADER, bV4BitCount, 14)
277 TEST_FIELD_SIZE (BITMAPV4HEADER, bV4V4Compression, 4)
278 TEST_FIELD_ALIGN (BITMAPV4HEADER, bV4V4Compression, 4)
279 TEST_FIELD_OFFSET(BITMAPV4HEADER, bV4V4Compression, 16)
280 TEST_FIELD_SIZE (BITMAPV4HEADER, bV4SizeImage, 4)
281 TEST_FIELD_ALIGN (BITMAPV4HEADER, bV4SizeImage, 4)
282 TEST_FIELD_OFFSET(BITMAPV4HEADER, bV4SizeImage, 20)
283 TEST_FIELD_SIZE (BITMAPV4HEADER, bV4XPelsPerMeter, 4)
284 TEST_FIELD_ALIGN (BITMAPV4HEADER, bV4XPelsPerMeter, 4)
285 TEST_FIELD_OFFSET(BITMAPV4HEADER, bV4XPelsPerMeter, 24)
286 TEST_FIELD_SIZE (BITMAPV4HEADER, bV4YPelsPerMeter, 4)
287 TEST_FIELD_ALIGN (BITMAPV4HEADER, bV4YPelsPerMeter, 4)
288 TEST_FIELD_OFFSET(BITMAPV4HEADER, bV4YPelsPerMeter, 28)
289 TEST_FIELD_SIZE (BITMAPV4HEADER, bV4ClrUsed, 4)
290 TEST_FIELD_ALIGN (BITMAPV4HEADER, bV4ClrUsed, 4)
291 TEST_FIELD_OFFSET(BITMAPV4HEADER, bV4ClrUsed, 32)
292 TEST_FIELD_SIZE (BITMAPV4HEADER, bV4ClrImportant, 4)
293 TEST_FIELD_ALIGN (BITMAPV4HEADER, bV4ClrImportant, 4)
294 TEST_FIELD_OFFSET(BITMAPV4HEADER, bV4ClrImportant, 36)
295 TEST_FIELD_SIZE (BITMAPV4HEADER, bV4RedMask, 4)
296 TEST_FIELD_ALIGN (BITMAPV4HEADER, bV4RedMask, 4)
297 TEST_FIELD_OFFSET(BITMAPV4HEADER, bV4RedMask, 40)
298 TEST_FIELD_SIZE (BITMAPV4HEADER, bV4GreenMask, 4)
299 TEST_FIELD_ALIGN (BITMAPV4HEADER, bV4GreenMask, 4)
300 TEST_FIELD_OFFSET(BITMAPV4HEADER, bV4GreenMask, 44)
301 TEST_FIELD_SIZE (BITMAPV4HEADER, bV4BlueMask, 4)
302 TEST_FIELD_ALIGN (BITMAPV4HEADER, bV4BlueMask, 4)
303 TEST_FIELD_OFFSET(BITMAPV4HEADER, bV4BlueMask, 48)
304 TEST_FIELD_SIZE (BITMAPV4HEADER, bV4AlphaMask, 4)
305 TEST_FIELD_ALIGN (BITMAPV4HEADER, bV4AlphaMask, 4)
306 TEST_FIELD_OFFSET(BITMAPV4HEADER, bV4AlphaMask, 52)
307 TEST_FIELD_SIZE (BITMAPV4HEADER, bV4CSType, 4)
308 TEST_FIELD_ALIGN (BITMAPV4HEADER, bV4CSType, 4)
309 TEST_FIELD_OFFSET(BITMAPV4HEADER, bV4CSType, 56)
310 TEST_FIELD_SIZE (BITMAPV4HEADER, bV4Endpoints, 36)
311 TEST_FIELD_ALIGN (BITMAPV4HEADER, bV4Endpoints, 4)
312 TEST_FIELD_OFFSET(BITMAPV4HEADER, bV4Endpoints, 60)
313 TEST_FIELD_SIZE (BITMAPV4HEADER, bV4GammaRed, 4)
314 TEST_FIELD_ALIGN (BITMAPV4HEADER, bV4GammaRed, 4)
315 TEST_FIELD_OFFSET(BITMAPV4HEADER, bV4GammaRed, 96)
316 TEST_FIELD_SIZE (BITMAPV4HEADER, bV4GammaGreen, 4)
317 TEST_FIELD_ALIGN (BITMAPV4HEADER, bV4GammaGreen, 4)
318 TEST_FIELD_OFFSET(BITMAPV4HEADER, bV4GammaGreen, 100)
319 TEST_FIELD_SIZE (BITMAPV4HEADER, bV4GammaBlue, 4)
320 TEST_FIELD_ALIGN (BITMAPV4HEADER, bV4GammaBlue, 4)
321 TEST_FIELD_OFFSET(BITMAPV4HEADER, bV4GammaBlue, 104)
324 static void test_pack_BITMAPV5HEADER(void)
326 /* BITMAPV5HEADER */
327 TEST_TYPE_SIZE (BITMAPV5HEADER, 124)
328 TEST_TYPE_ALIGN (BITMAPV5HEADER, 4)
329 TEST_FIELD_SIZE (BITMAPV5HEADER, bV5Size, 4)
330 TEST_FIELD_ALIGN (BITMAPV5HEADER, bV5Size, 4)
331 TEST_FIELD_OFFSET(BITMAPV5HEADER, bV5Size, 0)
332 TEST_FIELD_SIZE (BITMAPV5HEADER, bV5Width, 4)
333 TEST_FIELD_ALIGN (BITMAPV5HEADER, bV5Width, 4)
334 TEST_FIELD_OFFSET(BITMAPV5HEADER, bV5Width, 4)
335 TEST_FIELD_SIZE (BITMAPV5HEADER, bV5Height, 4)
336 TEST_FIELD_ALIGN (BITMAPV5HEADER, bV5Height, 4)
337 TEST_FIELD_OFFSET(BITMAPV5HEADER, bV5Height, 8)
338 TEST_FIELD_SIZE (BITMAPV5HEADER, bV5Planes, 2)
339 TEST_FIELD_ALIGN (BITMAPV5HEADER, bV5Planes, 2)
340 TEST_FIELD_OFFSET(BITMAPV5HEADER, bV5Planes, 12)
341 TEST_FIELD_SIZE (BITMAPV5HEADER, bV5BitCount, 2)
342 TEST_FIELD_ALIGN (BITMAPV5HEADER, bV5BitCount, 2)
343 TEST_FIELD_OFFSET(BITMAPV5HEADER, bV5BitCount, 14)
344 TEST_FIELD_SIZE (BITMAPV5HEADER, bV5Compression, 4)
345 TEST_FIELD_ALIGN (BITMAPV5HEADER, bV5Compression, 4)
346 TEST_FIELD_OFFSET(BITMAPV5HEADER, bV5Compression, 16)
347 TEST_FIELD_SIZE (BITMAPV5HEADER, bV5SizeImage, 4)
348 TEST_FIELD_ALIGN (BITMAPV5HEADER, bV5SizeImage, 4)
349 TEST_FIELD_OFFSET(BITMAPV5HEADER, bV5SizeImage, 20)
350 TEST_FIELD_SIZE (BITMAPV5HEADER, bV5XPelsPerMeter, 4)
351 TEST_FIELD_ALIGN (BITMAPV5HEADER, bV5XPelsPerMeter, 4)
352 TEST_FIELD_OFFSET(BITMAPV5HEADER, bV5XPelsPerMeter, 24)
353 TEST_FIELD_SIZE (BITMAPV5HEADER, bV5YPelsPerMeter, 4)
354 TEST_FIELD_ALIGN (BITMAPV5HEADER, bV5YPelsPerMeter, 4)
355 TEST_FIELD_OFFSET(BITMAPV5HEADER, bV5YPelsPerMeter, 28)
356 TEST_FIELD_SIZE (BITMAPV5HEADER, bV5ClrUsed, 4)
357 TEST_FIELD_ALIGN (BITMAPV5HEADER, bV5ClrUsed, 4)
358 TEST_FIELD_OFFSET(BITMAPV5HEADER, bV5ClrUsed, 32)
359 TEST_FIELD_SIZE (BITMAPV5HEADER, bV5ClrImportant, 4)
360 TEST_FIELD_ALIGN (BITMAPV5HEADER, bV5ClrImportant, 4)
361 TEST_FIELD_OFFSET(BITMAPV5HEADER, bV5ClrImportant, 36)
362 TEST_FIELD_SIZE (BITMAPV5HEADER, bV5RedMask, 4)
363 TEST_FIELD_ALIGN (BITMAPV5HEADER, bV5RedMask, 4)
364 TEST_FIELD_OFFSET(BITMAPV5HEADER, bV5RedMask, 40)
365 TEST_FIELD_SIZE (BITMAPV5HEADER, bV5GreenMask, 4)
366 TEST_FIELD_ALIGN (BITMAPV5HEADER, bV5GreenMask, 4)
367 TEST_FIELD_OFFSET(BITMAPV5HEADER, bV5GreenMask, 44)
368 TEST_FIELD_SIZE (BITMAPV5HEADER, bV5BlueMask, 4)
369 TEST_FIELD_ALIGN (BITMAPV5HEADER, bV5BlueMask, 4)
370 TEST_FIELD_OFFSET(BITMAPV5HEADER, bV5BlueMask, 48)
371 TEST_FIELD_SIZE (BITMAPV5HEADER, bV5AlphaMask, 4)
372 TEST_FIELD_ALIGN (BITMAPV5HEADER, bV5AlphaMask, 4)
373 TEST_FIELD_OFFSET(BITMAPV5HEADER, bV5AlphaMask, 52)
374 TEST_FIELD_SIZE (BITMAPV5HEADER, bV5CSType, 4)
375 TEST_FIELD_ALIGN (BITMAPV5HEADER, bV5CSType, 4)
376 TEST_FIELD_OFFSET(BITMAPV5HEADER, bV5CSType, 56)
377 TEST_FIELD_SIZE (BITMAPV5HEADER, bV5Endpoints, 36)
378 TEST_FIELD_ALIGN (BITMAPV5HEADER, bV5Endpoints, 4)
379 TEST_FIELD_OFFSET(BITMAPV5HEADER, bV5Endpoints, 60)
380 TEST_FIELD_SIZE (BITMAPV5HEADER, bV5GammaRed, 4)
381 TEST_FIELD_ALIGN (BITMAPV5HEADER, bV5GammaRed, 4)
382 TEST_FIELD_OFFSET(BITMAPV5HEADER, bV5GammaRed, 96)
383 TEST_FIELD_SIZE (BITMAPV5HEADER, bV5GammaGreen, 4)
384 TEST_FIELD_ALIGN (BITMAPV5HEADER, bV5GammaGreen, 4)
385 TEST_FIELD_OFFSET(BITMAPV5HEADER, bV5GammaGreen, 100)
386 TEST_FIELD_SIZE (BITMAPV5HEADER, bV5GammaBlue, 4)
387 TEST_FIELD_ALIGN (BITMAPV5HEADER, bV5GammaBlue, 4)
388 TEST_FIELD_OFFSET(BITMAPV5HEADER, bV5GammaBlue, 104)
389 TEST_FIELD_SIZE (BITMAPV5HEADER, bV5Intent, 4)
390 TEST_FIELD_ALIGN (BITMAPV5HEADER, bV5Intent, 4)
391 TEST_FIELD_OFFSET(BITMAPV5HEADER, bV5Intent, 108)
392 TEST_FIELD_SIZE (BITMAPV5HEADER, bV5ProfileData, 4)
393 TEST_FIELD_ALIGN (BITMAPV5HEADER, bV5ProfileData, 4)
394 TEST_FIELD_OFFSET(BITMAPV5HEADER, bV5ProfileData, 112)
395 TEST_FIELD_SIZE (BITMAPV5HEADER, bV5ProfileSize, 4)
396 TEST_FIELD_ALIGN (BITMAPV5HEADER, bV5ProfileSize, 4)
397 TEST_FIELD_OFFSET(BITMAPV5HEADER, bV5ProfileSize, 116)
398 TEST_FIELD_SIZE (BITMAPV5HEADER, bV5Reserved, 4)
399 TEST_FIELD_ALIGN (BITMAPV5HEADER, bV5Reserved, 4)
400 TEST_FIELD_OFFSET(BITMAPV5HEADER, bV5Reserved, 120)
403 static void test_pack_BLENDFUNCTION(void)
405 /* BLENDFUNCTION */
406 TEST_TYPE_SIZE (BLENDFUNCTION, 4)
407 TEST_TYPE_ALIGN (BLENDFUNCTION, 1)
408 TEST_FIELD_SIZE (BLENDFUNCTION, BlendOp, 1)
409 TEST_FIELD_ALIGN (BLENDFUNCTION, BlendOp, 1)
410 TEST_FIELD_OFFSET(BLENDFUNCTION, BlendOp, 0)
411 TEST_FIELD_SIZE (BLENDFUNCTION, BlendFlags, 1)
412 TEST_FIELD_ALIGN (BLENDFUNCTION, BlendFlags, 1)
413 TEST_FIELD_OFFSET(BLENDFUNCTION, BlendFlags, 1)
414 TEST_FIELD_SIZE (BLENDFUNCTION, SourceConstantAlpha, 1)
415 TEST_FIELD_ALIGN (BLENDFUNCTION, SourceConstantAlpha, 1)
416 TEST_FIELD_OFFSET(BLENDFUNCTION, SourceConstantAlpha, 2)
417 TEST_FIELD_SIZE (BLENDFUNCTION, AlphaFormat, 1)
418 TEST_FIELD_ALIGN (BLENDFUNCTION, AlphaFormat, 1)
419 TEST_FIELD_OFFSET(BLENDFUNCTION, AlphaFormat, 3)
422 static void test_pack_CHARSETINFO(void)
424 /* CHARSETINFO */
425 TEST_TYPE_SIZE (CHARSETINFO, 32)
426 TEST_TYPE_ALIGN (CHARSETINFO, 4)
427 TEST_FIELD_SIZE (CHARSETINFO, ciCharset, 4)
428 TEST_FIELD_ALIGN (CHARSETINFO, ciCharset, 4)
429 TEST_FIELD_OFFSET(CHARSETINFO, ciCharset, 0)
430 TEST_FIELD_SIZE (CHARSETINFO, ciACP, 4)
431 TEST_FIELD_ALIGN (CHARSETINFO, ciACP, 4)
432 TEST_FIELD_OFFSET(CHARSETINFO, ciACP, 4)
433 TEST_FIELD_SIZE (CHARSETINFO, fs, 24)
434 TEST_FIELD_ALIGN (CHARSETINFO, fs, 4)
435 TEST_FIELD_OFFSET(CHARSETINFO, fs, 8)
438 static void test_pack_CIEXYZ(void)
440 /* CIEXYZ */
441 TEST_TYPE_SIZE (CIEXYZ, 12)
442 TEST_TYPE_ALIGN (CIEXYZ, 4)
443 TEST_FIELD_SIZE (CIEXYZ, ciexyzX, 4)
444 TEST_FIELD_ALIGN (CIEXYZ, ciexyzX, 4)
445 TEST_FIELD_OFFSET(CIEXYZ, ciexyzX, 0)
446 TEST_FIELD_SIZE (CIEXYZ, ciexyzY, 4)
447 TEST_FIELD_ALIGN (CIEXYZ, ciexyzY, 4)
448 TEST_FIELD_OFFSET(CIEXYZ, ciexyzY, 4)
449 TEST_FIELD_SIZE (CIEXYZ, ciexyzZ, 4)
450 TEST_FIELD_ALIGN (CIEXYZ, ciexyzZ, 4)
451 TEST_FIELD_OFFSET(CIEXYZ, ciexyzZ, 8)
454 static void test_pack_CIEXYZTRIPLE(void)
456 /* CIEXYZTRIPLE */
457 TEST_TYPE_SIZE (CIEXYZTRIPLE, 36)
458 TEST_TYPE_ALIGN (CIEXYZTRIPLE, 4)
459 TEST_FIELD_SIZE (CIEXYZTRIPLE, ciexyzRed, 12)
460 TEST_FIELD_ALIGN (CIEXYZTRIPLE, ciexyzRed, 4)
461 TEST_FIELD_OFFSET(CIEXYZTRIPLE, ciexyzRed, 0)
462 TEST_FIELD_SIZE (CIEXYZTRIPLE, ciexyzGreen, 12)
463 TEST_FIELD_ALIGN (CIEXYZTRIPLE, ciexyzGreen, 4)
464 TEST_FIELD_OFFSET(CIEXYZTRIPLE, ciexyzGreen, 12)
465 TEST_FIELD_SIZE (CIEXYZTRIPLE, ciexyzBlue, 12)
466 TEST_FIELD_ALIGN (CIEXYZTRIPLE, ciexyzBlue, 4)
467 TEST_FIELD_OFFSET(CIEXYZTRIPLE, ciexyzBlue, 24)
470 static void test_pack_COLOR16(void)
472 /* COLOR16 */
473 TEST_TYPE_SIZE (COLOR16, 2)
474 TEST_TYPE_ALIGN (COLOR16, 2)
477 static void test_pack_COLORADJUSTMENT(void)
479 /* COLORADJUSTMENT */
480 TEST_TYPE_SIZE (COLORADJUSTMENT, 24)
481 TEST_TYPE_ALIGN (COLORADJUSTMENT, 2)
482 TEST_FIELD_SIZE (COLORADJUSTMENT, caSize, 2)
483 TEST_FIELD_ALIGN (COLORADJUSTMENT, caSize, 2)
484 TEST_FIELD_OFFSET(COLORADJUSTMENT, caSize, 0)
485 TEST_FIELD_SIZE (COLORADJUSTMENT, caFlags, 2)
486 TEST_FIELD_ALIGN (COLORADJUSTMENT, caFlags, 2)
487 TEST_FIELD_OFFSET(COLORADJUSTMENT, caFlags, 2)
488 TEST_FIELD_SIZE (COLORADJUSTMENT, caIlluminantIndex, 2)
489 TEST_FIELD_ALIGN (COLORADJUSTMENT, caIlluminantIndex, 2)
490 TEST_FIELD_OFFSET(COLORADJUSTMENT, caIlluminantIndex, 4)
491 TEST_FIELD_SIZE (COLORADJUSTMENT, caRedGamma, 2)
492 TEST_FIELD_ALIGN (COLORADJUSTMENT, caRedGamma, 2)
493 TEST_FIELD_OFFSET(COLORADJUSTMENT, caRedGamma, 6)
494 TEST_FIELD_SIZE (COLORADJUSTMENT, caGreenGamma, 2)
495 TEST_FIELD_ALIGN (COLORADJUSTMENT, caGreenGamma, 2)
496 TEST_FIELD_OFFSET(COLORADJUSTMENT, caGreenGamma, 8)
497 TEST_FIELD_SIZE (COLORADJUSTMENT, caBlueGamma, 2)
498 TEST_FIELD_ALIGN (COLORADJUSTMENT, caBlueGamma, 2)
499 TEST_FIELD_OFFSET(COLORADJUSTMENT, caBlueGamma, 10)
500 TEST_FIELD_SIZE (COLORADJUSTMENT, caReferenceBlack, 2)
501 TEST_FIELD_ALIGN (COLORADJUSTMENT, caReferenceBlack, 2)
502 TEST_FIELD_OFFSET(COLORADJUSTMENT, caReferenceBlack, 12)
503 TEST_FIELD_SIZE (COLORADJUSTMENT, caReferenceWhite, 2)
504 TEST_FIELD_ALIGN (COLORADJUSTMENT, caReferenceWhite, 2)
505 TEST_FIELD_OFFSET(COLORADJUSTMENT, caReferenceWhite, 14)
506 TEST_FIELD_SIZE (COLORADJUSTMENT, caContrast, 2)
507 TEST_FIELD_ALIGN (COLORADJUSTMENT, caContrast, 2)
508 TEST_FIELD_OFFSET(COLORADJUSTMENT, caContrast, 16)
509 TEST_FIELD_SIZE (COLORADJUSTMENT, caBrightness, 2)
510 TEST_FIELD_ALIGN (COLORADJUSTMENT, caBrightness, 2)
511 TEST_FIELD_OFFSET(COLORADJUSTMENT, caBrightness, 18)
512 TEST_FIELD_SIZE (COLORADJUSTMENT, caColorfulness, 2)
513 TEST_FIELD_ALIGN (COLORADJUSTMENT, caColorfulness, 2)
514 TEST_FIELD_OFFSET(COLORADJUSTMENT, caColorfulness, 20)
515 TEST_FIELD_SIZE (COLORADJUSTMENT, caRedGreenTint, 2)
516 TEST_FIELD_ALIGN (COLORADJUSTMENT, caRedGreenTint, 2)
517 TEST_FIELD_OFFSET(COLORADJUSTMENT, caRedGreenTint, 22)
520 static void test_pack_DEVMODEA(void)
522 /* DEVMODEA */
523 TEST_FIELD_SIZE (DEVMODEA, dmDeviceName, 32)
524 TEST_FIELD_ALIGN (DEVMODEA, dmDeviceName, 1)
525 TEST_FIELD_OFFSET(DEVMODEA, dmDeviceName, 0)
526 TEST_FIELD_SIZE (DEVMODEA, dmSpecVersion, 2)
527 TEST_FIELD_ALIGN (DEVMODEA, dmSpecVersion, 2)
528 TEST_FIELD_OFFSET(DEVMODEA, dmSpecVersion, 32)
529 TEST_FIELD_SIZE (DEVMODEA, dmDriverVersion, 2)
530 TEST_FIELD_ALIGN (DEVMODEA, dmDriverVersion, 2)
531 TEST_FIELD_OFFSET(DEVMODEA, dmDriverVersion, 34)
532 TEST_FIELD_SIZE (DEVMODEA, dmSize, 2)
533 TEST_FIELD_ALIGN (DEVMODEA, dmSize, 2)
534 TEST_FIELD_OFFSET(DEVMODEA, dmSize, 36)
535 TEST_FIELD_SIZE (DEVMODEA, dmDriverExtra, 2)
536 TEST_FIELD_ALIGN (DEVMODEA, dmDriverExtra, 2)
537 TEST_FIELD_OFFSET(DEVMODEA, dmDriverExtra, 38)
538 TEST_FIELD_SIZE (DEVMODEA, dmFields, 4)
539 TEST_FIELD_ALIGN (DEVMODEA, dmFields, 4)
540 TEST_FIELD_OFFSET(DEVMODEA, dmFields, 40)
543 static void test_pack_DEVMODEW(void)
545 /* DEVMODEW */
546 TEST_FIELD_SIZE (DEVMODEW, dmDeviceName, 64)
547 TEST_FIELD_ALIGN (DEVMODEW, dmDeviceName, 2)
548 TEST_FIELD_OFFSET(DEVMODEW, dmDeviceName, 0)
549 TEST_FIELD_SIZE (DEVMODEW, dmSpecVersion, 2)
550 TEST_FIELD_ALIGN (DEVMODEW, dmSpecVersion, 2)
551 TEST_FIELD_OFFSET(DEVMODEW, dmSpecVersion, 64)
552 TEST_FIELD_SIZE (DEVMODEW, dmDriverVersion, 2)
553 TEST_FIELD_ALIGN (DEVMODEW, dmDriverVersion, 2)
554 TEST_FIELD_OFFSET(DEVMODEW, dmDriverVersion, 66)
555 TEST_FIELD_SIZE (DEVMODEW, dmSize, 2)
556 TEST_FIELD_ALIGN (DEVMODEW, dmSize, 2)
557 TEST_FIELD_OFFSET(DEVMODEW, dmSize, 68)
558 TEST_FIELD_SIZE (DEVMODEW, dmDriverExtra, 2)
559 TEST_FIELD_ALIGN (DEVMODEW, dmDriverExtra, 2)
560 TEST_FIELD_OFFSET(DEVMODEW, dmDriverExtra, 70)
561 TEST_FIELD_SIZE (DEVMODEW, dmFields, 4)
562 TEST_FIELD_ALIGN (DEVMODEW, dmFields, 4)
563 TEST_FIELD_OFFSET(DEVMODEW, dmFields, 72)
566 static void test_pack_DIBSECTION(void)
568 /* DIBSECTION */
569 TEST_TYPE_SIZE (DIBSECTION, 104)
570 TEST_TYPE_ALIGN (DIBSECTION, 8)
571 TEST_FIELD_SIZE (DIBSECTION, dsBm, 32)
572 TEST_FIELD_ALIGN (DIBSECTION, dsBm, 8)
573 TEST_FIELD_OFFSET(DIBSECTION, dsBm, 0)
574 TEST_FIELD_SIZE (DIBSECTION, dsBmih, 40)
575 TEST_FIELD_ALIGN (DIBSECTION, dsBmih, 4)
576 TEST_FIELD_OFFSET(DIBSECTION, dsBmih, 32)
577 TEST_FIELD_SIZE (DIBSECTION, dsBitfields, 12)
578 TEST_FIELD_ALIGN (DIBSECTION, dsBitfields, 4)
579 TEST_FIELD_OFFSET(DIBSECTION, dsBitfields, 72)
580 TEST_FIELD_SIZE (DIBSECTION, dshSection, 8)
581 TEST_FIELD_ALIGN (DIBSECTION, dshSection, 8)
582 TEST_FIELD_OFFSET(DIBSECTION, dshSection, 88)
583 TEST_FIELD_SIZE (DIBSECTION, dsOffset, 4)
584 TEST_FIELD_ALIGN (DIBSECTION, dsOffset, 4)
585 TEST_FIELD_OFFSET(DIBSECTION, dsOffset, 96)
588 static void test_pack_DISPLAY_DEVICEA(void)
590 /* DISPLAY_DEVICEA */
591 TEST_TYPE_SIZE (DISPLAY_DEVICEA, 424)
592 TEST_TYPE_ALIGN (DISPLAY_DEVICEA, 4)
593 TEST_FIELD_SIZE (DISPLAY_DEVICEA, cb, 4)
594 TEST_FIELD_ALIGN (DISPLAY_DEVICEA, cb, 4)
595 TEST_FIELD_OFFSET(DISPLAY_DEVICEA, cb, 0)
596 TEST_FIELD_SIZE (DISPLAY_DEVICEA, DeviceName, 32)
597 TEST_FIELD_ALIGN (DISPLAY_DEVICEA, DeviceName, 1)
598 TEST_FIELD_OFFSET(DISPLAY_DEVICEA, DeviceName, 4)
599 TEST_FIELD_SIZE (DISPLAY_DEVICEA, DeviceString, 128)
600 TEST_FIELD_ALIGN (DISPLAY_DEVICEA, DeviceString, 1)
601 TEST_FIELD_OFFSET(DISPLAY_DEVICEA, DeviceString, 36)
602 TEST_FIELD_SIZE (DISPLAY_DEVICEA, StateFlags, 4)
603 TEST_FIELD_ALIGN (DISPLAY_DEVICEA, StateFlags, 4)
604 TEST_FIELD_OFFSET(DISPLAY_DEVICEA, StateFlags, 164)
605 TEST_FIELD_SIZE (DISPLAY_DEVICEA, DeviceID, 128)
606 TEST_FIELD_ALIGN (DISPLAY_DEVICEA, DeviceID, 1)
607 TEST_FIELD_OFFSET(DISPLAY_DEVICEA, DeviceID, 168)
608 TEST_FIELD_SIZE (DISPLAY_DEVICEA, DeviceKey, 128)
609 TEST_FIELD_ALIGN (DISPLAY_DEVICEA, DeviceKey, 1)
610 TEST_FIELD_OFFSET(DISPLAY_DEVICEA, DeviceKey, 296)
613 static void test_pack_DISPLAY_DEVICEW(void)
615 /* DISPLAY_DEVICEW */
616 TEST_TYPE_SIZE (DISPLAY_DEVICEW, 840)
617 TEST_TYPE_ALIGN (DISPLAY_DEVICEW, 4)
618 TEST_FIELD_SIZE (DISPLAY_DEVICEW, cb, 4)
619 TEST_FIELD_ALIGN (DISPLAY_DEVICEW, cb, 4)
620 TEST_FIELD_OFFSET(DISPLAY_DEVICEW, cb, 0)
621 TEST_FIELD_SIZE (DISPLAY_DEVICEW, DeviceName, 64)
622 TEST_FIELD_ALIGN (DISPLAY_DEVICEW, DeviceName, 2)
623 TEST_FIELD_OFFSET(DISPLAY_DEVICEW, DeviceName, 4)
624 TEST_FIELD_SIZE (DISPLAY_DEVICEW, DeviceString, 256)
625 TEST_FIELD_ALIGN (DISPLAY_DEVICEW, DeviceString, 2)
626 TEST_FIELD_OFFSET(DISPLAY_DEVICEW, DeviceString, 68)
627 TEST_FIELD_SIZE (DISPLAY_DEVICEW, StateFlags, 4)
628 TEST_FIELD_ALIGN (DISPLAY_DEVICEW, StateFlags, 4)
629 TEST_FIELD_OFFSET(DISPLAY_DEVICEW, StateFlags, 324)
630 TEST_FIELD_SIZE (DISPLAY_DEVICEW, DeviceID, 256)
631 TEST_FIELD_ALIGN (DISPLAY_DEVICEW, DeviceID, 2)
632 TEST_FIELD_OFFSET(DISPLAY_DEVICEW, DeviceID, 328)
633 TEST_FIELD_SIZE (DISPLAY_DEVICEW, DeviceKey, 256)
634 TEST_FIELD_ALIGN (DISPLAY_DEVICEW, DeviceKey, 2)
635 TEST_FIELD_OFFSET(DISPLAY_DEVICEW, DeviceKey, 584)
638 static void test_pack_DOCINFOA(void)
640 /* DOCINFOA */
641 TEST_TYPE_SIZE (DOCINFOA, 40)
642 TEST_TYPE_ALIGN (DOCINFOA, 8)
643 TEST_FIELD_SIZE (DOCINFOA, cbSize, 4)
644 TEST_FIELD_ALIGN (DOCINFOA, cbSize, 4)
645 TEST_FIELD_OFFSET(DOCINFOA, cbSize, 0)
646 TEST_FIELD_SIZE (DOCINFOA, lpszDocName, 8)
647 TEST_FIELD_ALIGN (DOCINFOA, lpszDocName, 8)
648 TEST_FIELD_OFFSET(DOCINFOA, lpszDocName, 8)
649 TEST_FIELD_SIZE (DOCINFOA, lpszOutput, 8)
650 TEST_FIELD_ALIGN (DOCINFOA, lpszOutput, 8)
651 TEST_FIELD_OFFSET(DOCINFOA, lpszOutput, 16)
652 TEST_FIELD_SIZE (DOCINFOA, lpszDatatype, 8)
653 TEST_FIELD_ALIGN (DOCINFOA, lpszDatatype, 8)
654 TEST_FIELD_OFFSET(DOCINFOA, lpszDatatype, 24)
655 TEST_FIELD_SIZE (DOCINFOA, fwType, 4)
656 TEST_FIELD_ALIGN (DOCINFOA, fwType, 4)
657 TEST_FIELD_OFFSET(DOCINFOA, fwType, 32)
660 static void test_pack_DOCINFOW(void)
662 /* DOCINFOW */
663 TEST_TYPE_SIZE (DOCINFOW, 40)
664 TEST_TYPE_ALIGN (DOCINFOW, 8)
665 TEST_FIELD_SIZE (DOCINFOW, cbSize, 4)
666 TEST_FIELD_ALIGN (DOCINFOW, cbSize, 4)
667 TEST_FIELD_OFFSET(DOCINFOW, cbSize, 0)
668 TEST_FIELD_SIZE (DOCINFOW, lpszDocName, 8)
669 TEST_FIELD_ALIGN (DOCINFOW, lpszDocName, 8)
670 TEST_FIELD_OFFSET(DOCINFOW, lpszDocName, 8)
671 TEST_FIELD_SIZE (DOCINFOW, lpszOutput, 8)
672 TEST_FIELD_ALIGN (DOCINFOW, lpszOutput, 8)
673 TEST_FIELD_OFFSET(DOCINFOW, lpszOutput, 16)
674 TEST_FIELD_SIZE (DOCINFOW, lpszDatatype, 8)
675 TEST_FIELD_ALIGN (DOCINFOW, lpszDatatype, 8)
676 TEST_FIELD_OFFSET(DOCINFOW, lpszDatatype, 24)
677 TEST_FIELD_SIZE (DOCINFOW, fwType, 4)
678 TEST_FIELD_ALIGN (DOCINFOW, fwType, 4)
679 TEST_FIELD_OFFSET(DOCINFOW, fwType, 32)
682 static void test_pack_EMR(void)
684 /* EMR */
685 TEST_TYPE_SIZE (EMR, 8)
686 TEST_TYPE_ALIGN (EMR, 4)
687 TEST_FIELD_SIZE (EMR, iType, 4)
688 TEST_FIELD_ALIGN (EMR, iType, 4)
689 TEST_FIELD_OFFSET(EMR, iType, 0)
690 TEST_FIELD_SIZE (EMR, nSize, 4)
691 TEST_FIELD_ALIGN (EMR, nSize, 4)
692 TEST_FIELD_OFFSET(EMR, nSize, 4)
695 static void test_pack_EMRABORTPATH(void)
697 /* EMRABORTPATH */
698 TEST_TYPE_SIZE (EMRABORTPATH, 8)
699 TEST_TYPE_ALIGN (EMRABORTPATH, 4)
700 TEST_FIELD_SIZE (EMRABORTPATH, emr, 8)
701 TEST_FIELD_ALIGN (EMRABORTPATH, emr, 4)
702 TEST_FIELD_OFFSET(EMRABORTPATH, emr, 0)
705 static void test_pack_EMRANGLEARC(void)
707 /* EMRANGLEARC */
708 TEST_TYPE_SIZE (EMRANGLEARC, 28)
709 TEST_TYPE_ALIGN (EMRANGLEARC, 4)
710 TEST_FIELD_SIZE (EMRANGLEARC, emr, 8)
711 TEST_FIELD_ALIGN (EMRANGLEARC, emr, 4)
712 TEST_FIELD_OFFSET(EMRANGLEARC, emr, 0)
713 TEST_FIELD_SIZE (EMRANGLEARC, ptlCenter, 8)
714 TEST_FIELD_ALIGN (EMRANGLEARC, ptlCenter, 4)
715 TEST_FIELD_OFFSET(EMRANGLEARC, ptlCenter, 8)
716 TEST_FIELD_SIZE (EMRANGLEARC, nRadius, 4)
717 TEST_FIELD_ALIGN (EMRANGLEARC, nRadius, 4)
718 TEST_FIELD_OFFSET(EMRANGLEARC, nRadius, 16)
719 TEST_FIELD_SIZE (EMRANGLEARC, eStartAngle, 4)
720 TEST_FIELD_ALIGN (EMRANGLEARC, eStartAngle, 4)
721 TEST_FIELD_OFFSET(EMRANGLEARC, eStartAngle, 20)
722 TEST_FIELD_SIZE (EMRANGLEARC, eSweepAngle, 4)
723 TEST_FIELD_ALIGN (EMRANGLEARC, eSweepAngle, 4)
724 TEST_FIELD_OFFSET(EMRANGLEARC, eSweepAngle, 24)
727 static void test_pack_EMRARC(void)
729 /* EMRARC */
730 TEST_TYPE_SIZE (EMRARC, 40)
731 TEST_TYPE_ALIGN (EMRARC, 4)
732 TEST_FIELD_SIZE (EMRARC, emr, 8)
733 TEST_FIELD_ALIGN (EMRARC, emr, 4)
734 TEST_FIELD_OFFSET(EMRARC, emr, 0)
735 TEST_FIELD_SIZE (EMRARC, rclBox, 16)
736 TEST_FIELD_ALIGN (EMRARC, rclBox, 4)
737 TEST_FIELD_OFFSET(EMRARC, rclBox, 8)
738 TEST_FIELD_SIZE (EMRARC, ptlStart, 8)
739 TEST_FIELD_ALIGN (EMRARC, ptlStart, 4)
740 TEST_FIELD_OFFSET(EMRARC, ptlStart, 24)
741 TEST_FIELD_SIZE (EMRARC, ptlEnd, 8)
742 TEST_FIELD_ALIGN (EMRARC, ptlEnd, 4)
743 TEST_FIELD_OFFSET(EMRARC, ptlEnd, 32)
746 static void test_pack_EMRARCTO(void)
748 /* EMRARCTO */
749 TEST_TYPE_SIZE (EMRARCTO, 40)
750 TEST_TYPE_ALIGN (EMRARCTO, 4)
751 TEST_FIELD_SIZE (EMRARCTO, emr, 8)
752 TEST_FIELD_ALIGN (EMRARCTO, emr, 4)
753 TEST_FIELD_OFFSET(EMRARCTO, emr, 0)
754 TEST_FIELD_SIZE (EMRARCTO, rclBox, 16)
755 TEST_FIELD_ALIGN (EMRARCTO, rclBox, 4)
756 TEST_FIELD_OFFSET(EMRARCTO, rclBox, 8)
757 TEST_FIELD_SIZE (EMRARCTO, ptlStart, 8)
758 TEST_FIELD_ALIGN (EMRARCTO, ptlStart, 4)
759 TEST_FIELD_OFFSET(EMRARCTO, ptlStart, 24)
760 TEST_FIELD_SIZE (EMRARCTO, ptlEnd, 8)
761 TEST_FIELD_ALIGN (EMRARCTO, ptlEnd, 4)
762 TEST_FIELD_OFFSET(EMRARCTO, ptlEnd, 32)
765 static void test_pack_EMRBEGINPATH(void)
767 /* EMRBEGINPATH */
768 TEST_TYPE_SIZE (EMRBEGINPATH, 8)
769 TEST_TYPE_ALIGN (EMRBEGINPATH, 4)
770 TEST_FIELD_SIZE (EMRBEGINPATH, emr, 8)
771 TEST_FIELD_ALIGN (EMRBEGINPATH, emr, 4)
772 TEST_FIELD_OFFSET(EMRBEGINPATH, emr, 0)
775 static void test_pack_EMRBITBLT(void)
777 /* EMRBITBLT */
778 TEST_TYPE_SIZE (EMRBITBLT, 100)
779 TEST_TYPE_ALIGN (EMRBITBLT, 4)
780 TEST_FIELD_SIZE (EMRBITBLT, emr, 8)
781 TEST_FIELD_ALIGN (EMRBITBLT, emr, 4)
782 TEST_FIELD_OFFSET(EMRBITBLT, emr, 0)
783 TEST_FIELD_SIZE (EMRBITBLT, rclBounds, 16)
784 TEST_FIELD_ALIGN (EMRBITBLT, rclBounds, 4)
785 TEST_FIELD_OFFSET(EMRBITBLT, rclBounds, 8)
786 TEST_FIELD_SIZE (EMRBITBLT, xDest, 4)
787 TEST_FIELD_ALIGN (EMRBITBLT, xDest, 4)
788 TEST_FIELD_OFFSET(EMRBITBLT, xDest, 24)
789 TEST_FIELD_SIZE (EMRBITBLT, yDest, 4)
790 TEST_FIELD_ALIGN (EMRBITBLT, yDest, 4)
791 TEST_FIELD_OFFSET(EMRBITBLT, yDest, 28)
792 TEST_FIELD_SIZE (EMRBITBLT, cxDest, 4)
793 TEST_FIELD_ALIGN (EMRBITBLT, cxDest, 4)
794 TEST_FIELD_OFFSET(EMRBITBLT, cxDest, 32)
795 TEST_FIELD_SIZE (EMRBITBLT, cyDest, 4)
796 TEST_FIELD_ALIGN (EMRBITBLT, cyDest, 4)
797 TEST_FIELD_OFFSET(EMRBITBLT, cyDest, 36)
798 TEST_FIELD_SIZE (EMRBITBLT, dwRop, 4)
799 TEST_FIELD_ALIGN (EMRBITBLT, dwRop, 4)
800 TEST_FIELD_OFFSET(EMRBITBLT, dwRop, 40)
801 TEST_FIELD_SIZE (EMRBITBLT, xSrc, 4)
802 TEST_FIELD_ALIGN (EMRBITBLT, xSrc, 4)
803 TEST_FIELD_OFFSET(EMRBITBLT, xSrc, 44)
804 TEST_FIELD_SIZE (EMRBITBLT, ySrc, 4)
805 TEST_FIELD_ALIGN (EMRBITBLT, ySrc, 4)
806 TEST_FIELD_OFFSET(EMRBITBLT, ySrc, 48)
807 TEST_FIELD_SIZE (EMRBITBLT, xformSrc, 24)
808 TEST_FIELD_ALIGN (EMRBITBLT, xformSrc, 4)
809 TEST_FIELD_OFFSET(EMRBITBLT, xformSrc, 52)
810 TEST_FIELD_SIZE (EMRBITBLT, crBkColorSrc, 4)
811 TEST_FIELD_ALIGN (EMRBITBLT, crBkColorSrc, 4)
812 TEST_FIELD_OFFSET(EMRBITBLT, crBkColorSrc, 76)
813 TEST_FIELD_SIZE (EMRBITBLT, iUsageSrc, 4)
814 TEST_FIELD_ALIGN (EMRBITBLT, iUsageSrc, 4)
815 TEST_FIELD_OFFSET(EMRBITBLT, iUsageSrc, 80)
816 TEST_FIELD_SIZE (EMRBITBLT, offBmiSrc, 4)
817 TEST_FIELD_ALIGN (EMRBITBLT, offBmiSrc, 4)
818 TEST_FIELD_OFFSET(EMRBITBLT, offBmiSrc, 84)
819 TEST_FIELD_SIZE (EMRBITBLT, cbBmiSrc, 4)
820 TEST_FIELD_ALIGN (EMRBITBLT, cbBmiSrc, 4)
821 TEST_FIELD_OFFSET(EMRBITBLT, cbBmiSrc, 88)
822 TEST_FIELD_SIZE (EMRBITBLT, offBitsSrc, 4)
823 TEST_FIELD_ALIGN (EMRBITBLT, offBitsSrc, 4)
824 TEST_FIELD_OFFSET(EMRBITBLT, offBitsSrc, 92)
825 TEST_FIELD_SIZE (EMRBITBLT, cbBitsSrc, 4)
826 TEST_FIELD_ALIGN (EMRBITBLT, cbBitsSrc, 4)
827 TEST_FIELD_OFFSET(EMRBITBLT, cbBitsSrc, 96)
830 static void test_pack_EMRCHORD(void)
832 /* EMRCHORD */
833 TEST_TYPE_SIZE (EMRCHORD, 40)
834 TEST_TYPE_ALIGN (EMRCHORD, 4)
835 TEST_FIELD_SIZE (EMRCHORD, emr, 8)
836 TEST_FIELD_ALIGN (EMRCHORD, emr, 4)
837 TEST_FIELD_OFFSET(EMRCHORD, emr, 0)
838 TEST_FIELD_SIZE (EMRCHORD, rclBox, 16)
839 TEST_FIELD_ALIGN (EMRCHORD, rclBox, 4)
840 TEST_FIELD_OFFSET(EMRCHORD, rclBox, 8)
841 TEST_FIELD_SIZE (EMRCHORD, ptlStart, 8)
842 TEST_FIELD_ALIGN (EMRCHORD, ptlStart, 4)
843 TEST_FIELD_OFFSET(EMRCHORD, ptlStart, 24)
844 TEST_FIELD_SIZE (EMRCHORD, ptlEnd, 8)
845 TEST_FIELD_ALIGN (EMRCHORD, ptlEnd, 4)
846 TEST_FIELD_OFFSET(EMRCHORD, ptlEnd, 32)
849 static void test_pack_EMRCLOSEFIGURE(void)
851 /* EMRCLOSEFIGURE */
852 TEST_TYPE_SIZE (EMRCLOSEFIGURE, 8)
853 TEST_TYPE_ALIGN (EMRCLOSEFIGURE, 4)
854 TEST_FIELD_SIZE (EMRCLOSEFIGURE, emr, 8)
855 TEST_FIELD_ALIGN (EMRCLOSEFIGURE, emr, 4)
856 TEST_FIELD_OFFSET(EMRCLOSEFIGURE, emr, 0)
859 static void test_pack_EMRCREATEBRUSHINDIRECT(void)
861 /* EMRCREATEBRUSHINDIRECT */
862 TEST_TYPE_SIZE (EMRCREATEBRUSHINDIRECT, 24)
863 TEST_TYPE_ALIGN (EMRCREATEBRUSHINDIRECT, 4)
864 TEST_FIELD_SIZE (EMRCREATEBRUSHINDIRECT, emr, 8)
865 TEST_FIELD_ALIGN (EMRCREATEBRUSHINDIRECT, emr, 4)
866 TEST_FIELD_OFFSET(EMRCREATEBRUSHINDIRECT, emr, 0)
867 TEST_FIELD_SIZE (EMRCREATEBRUSHINDIRECT, ihBrush, 4)
868 TEST_FIELD_ALIGN (EMRCREATEBRUSHINDIRECT, ihBrush, 4)
869 TEST_FIELD_OFFSET(EMRCREATEBRUSHINDIRECT, ihBrush, 8)
870 TEST_FIELD_SIZE (EMRCREATEBRUSHINDIRECT, lb, 12)
871 TEST_FIELD_ALIGN (EMRCREATEBRUSHINDIRECT, lb, 4)
872 TEST_FIELD_OFFSET(EMRCREATEBRUSHINDIRECT, lb, 12)
875 static void test_pack_EMRCREATECOLORSPACE(void)
877 /* EMRCREATECOLORSPACE */
878 TEST_TYPE_SIZE (EMRCREATECOLORSPACE, 340)
879 TEST_TYPE_ALIGN (EMRCREATECOLORSPACE, 4)
880 TEST_FIELD_SIZE (EMRCREATECOLORSPACE, emr, 8)
881 TEST_FIELD_ALIGN (EMRCREATECOLORSPACE, emr, 4)
882 TEST_FIELD_OFFSET(EMRCREATECOLORSPACE, emr, 0)
883 TEST_FIELD_SIZE (EMRCREATECOLORSPACE, ihCS, 4)
884 TEST_FIELD_ALIGN (EMRCREATECOLORSPACE, ihCS, 4)
885 TEST_FIELD_OFFSET(EMRCREATECOLORSPACE, ihCS, 8)
886 TEST_FIELD_SIZE (EMRCREATECOLORSPACE, lcs, 328)
887 TEST_FIELD_ALIGN (EMRCREATECOLORSPACE, lcs, 4)
888 TEST_FIELD_OFFSET(EMRCREATECOLORSPACE, lcs, 12)
891 static void test_pack_EMRCREATECOLORSPACEW(void)
893 /* EMRCREATECOLORSPACEW */
894 TEST_TYPE_SIZE (EMRCREATECOLORSPACEW, 612)
895 TEST_TYPE_ALIGN (EMRCREATECOLORSPACEW, 4)
896 TEST_FIELD_SIZE (EMRCREATECOLORSPACEW, emr, 8)
897 TEST_FIELD_ALIGN (EMRCREATECOLORSPACEW, emr, 4)
898 TEST_FIELD_OFFSET(EMRCREATECOLORSPACEW, emr, 0)
899 TEST_FIELD_SIZE (EMRCREATECOLORSPACEW, ihCS, 4)
900 TEST_FIELD_ALIGN (EMRCREATECOLORSPACEW, ihCS, 4)
901 TEST_FIELD_OFFSET(EMRCREATECOLORSPACEW, ihCS, 8)
902 TEST_FIELD_SIZE (EMRCREATECOLORSPACEW, lcs, 588)
903 TEST_FIELD_ALIGN (EMRCREATECOLORSPACEW, lcs, 4)
904 TEST_FIELD_OFFSET(EMRCREATECOLORSPACEW, lcs, 12)
905 TEST_FIELD_SIZE (EMRCREATECOLORSPACEW, dwFlags, 4)
906 TEST_FIELD_ALIGN (EMRCREATECOLORSPACEW, dwFlags, 4)
907 TEST_FIELD_OFFSET(EMRCREATECOLORSPACEW, dwFlags, 600)
908 TEST_FIELD_SIZE (EMRCREATECOLORSPACEW, cbData, 4)
909 TEST_FIELD_ALIGN (EMRCREATECOLORSPACEW, cbData, 4)
910 TEST_FIELD_OFFSET(EMRCREATECOLORSPACEW, cbData, 604)
911 TEST_FIELD_SIZE (EMRCREATECOLORSPACEW, Data, 1)
912 TEST_FIELD_ALIGN (EMRCREATECOLORSPACEW, Data, 1)
913 TEST_FIELD_OFFSET(EMRCREATECOLORSPACEW, Data, 608)
916 static void test_pack_EMRCREATEDIBPATTERNBRUSHPT(void)
918 /* EMRCREATEDIBPATTERNBRUSHPT */
919 TEST_TYPE_SIZE (EMRCREATEDIBPATTERNBRUSHPT, 32)
920 TEST_TYPE_ALIGN (EMRCREATEDIBPATTERNBRUSHPT, 4)
921 TEST_FIELD_SIZE (EMRCREATEDIBPATTERNBRUSHPT, emr, 8)
922 TEST_FIELD_ALIGN (EMRCREATEDIBPATTERNBRUSHPT, emr, 4)
923 TEST_FIELD_OFFSET(EMRCREATEDIBPATTERNBRUSHPT, emr, 0)
924 TEST_FIELD_SIZE (EMRCREATEDIBPATTERNBRUSHPT, ihBrush, 4)
925 TEST_FIELD_ALIGN (EMRCREATEDIBPATTERNBRUSHPT, ihBrush, 4)
926 TEST_FIELD_OFFSET(EMRCREATEDIBPATTERNBRUSHPT, ihBrush, 8)
927 TEST_FIELD_SIZE (EMRCREATEDIBPATTERNBRUSHPT, iUsage, 4)
928 TEST_FIELD_ALIGN (EMRCREATEDIBPATTERNBRUSHPT, iUsage, 4)
929 TEST_FIELD_OFFSET(EMRCREATEDIBPATTERNBRUSHPT, iUsage, 12)
930 TEST_FIELD_SIZE (EMRCREATEDIBPATTERNBRUSHPT, offBmi, 4)
931 TEST_FIELD_ALIGN (EMRCREATEDIBPATTERNBRUSHPT, offBmi, 4)
932 TEST_FIELD_OFFSET(EMRCREATEDIBPATTERNBRUSHPT, offBmi, 16)
933 TEST_FIELD_SIZE (EMRCREATEDIBPATTERNBRUSHPT, cbBmi, 4)
934 TEST_FIELD_ALIGN (EMRCREATEDIBPATTERNBRUSHPT, cbBmi, 4)
935 TEST_FIELD_OFFSET(EMRCREATEDIBPATTERNBRUSHPT, cbBmi, 20)
936 TEST_FIELD_SIZE (EMRCREATEDIBPATTERNBRUSHPT, offBits, 4)
937 TEST_FIELD_ALIGN (EMRCREATEDIBPATTERNBRUSHPT, offBits, 4)
938 TEST_FIELD_OFFSET(EMRCREATEDIBPATTERNBRUSHPT, offBits, 24)
939 TEST_FIELD_SIZE (EMRCREATEDIBPATTERNBRUSHPT, cbBits, 4)
940 TEST_FIELD_ALIGN (EMRCREATEDIBPATTERNBRUSHPT, cbBits, 4)
941 TEST_FIELD_OFFSET(EMRCREATEDIBPATTERNBRUSHPT, cbBits, 28)
944 static void test_pack_EMRCREATEMONOBRUSH(void)
946 /* EMRCREATEMONOBRUSH */
947 TEST_TYPE_SIZE (EMRCREATEMONOBRUSH, 32)
948 TEST_TYPE_ALIGN (EMRCREATEMONOBRUSH, 4)
949 TEST_FIELD_SIZE (EMRCREATEMONOBRUSH, emr, 8)
950 TEST_FIELD_ALIGN (EMRCREATEMONOBRUSH, emr, 4)
951 TEST_FIELD_OFFSET(EMRCREATEMONOBRUSH, emr, 0)
952 TEST_FIELD_SIZE (EMRCREATEMONOBRUSH, ihBrush, 4)
953 TEST_FIELD_ALIGN (EMRCREATEMONOBRUSH, ihBrush, 4)
954 TEST_FIELD_OFFSET(EMRCREATEMONOBRUSH, ihBrush, 8)
955 TEST_FIELD_SIZE (EMRCREATEMONOBRUSH, iUsage, 4)
956 TEST_FIELD_ALIGN (EMRCREATEMONOBRUSH, iUsage, 4)
957 TEST_FIELD_OFFSET(EMRCREATEMONOBRUSH, iUsage, 12)
958 TEST_FIELD_SIZE (EMRCREATEMONOBRUSH, offBmi, 4)
959 TEST_FIELD_ALIGN (EMRCREATEMONOBRUSH, offBmi, 4)
960 TEST_FIELD_OFFSET(EMRCREATEMONOBRUSH, offBmi, 16)
961 TEST_FIELD_SIZE (EMRCREATEMONOBRUSH, cbBmi, 4)
962 TEST_FIELD_ALIGN (EMRCREATEMONOBRUSH, cbBmi, 4)
963 TEST_FIELD_OFFSET(EMRCREATEMONOBRUSH, cbBmi, 20)
964 TEST_FIELD_SIZE (EMRCREATEMONOBRUSH, offBits, 4)
965 TEST_FIELD_ALIGN (EMRCREATEMONOBRUSH, offBits, 4)
966 TEST_FIELD_OFFSET(EMRCREATEMONOBRUSH, offBits, 24)
967 TEST_FIELD_SIZE (EMRCREATEMONOBRUSH, cbBits, 4)
968 TEST_FIELD_ALIGN (EMRCREATEMONOBRUSH, cbBits, 4)
969 TEST_FIELD_OFFSET(EMRCREATEMONOBRUSH, cbBits, 28)
972 static void test_pack_EMRCREATEPEN(void)
974 /* EMRCREATEPEN */
975 TEST_TYPE_SIZE (EMRCREATEPEN, 28)
976 TEST_TYPE_ALIGN (EMRCREATEPEN, 4)
977 TEST_FIELD_SIZE (EMRCREATEPEN, emr, 8)
978 TEST_FIELD_ALIGN (EMRCREATEPEN, emr, 4)
979 TEST_FIELD_OFFSET(EMRCREATEPEN, emr, 0)
980 TEST_FIELD_SIZE (EMRCREATEPEN, ihPen, 4)
981 TEST_FIELD_ALIGN (EMRCREATEPEN, ihPen, 4)
982 TEST_FIELD_OFFSET(EMRCREATEPEN, ihPen, 8)
983 TEST_FIELD_SIZE (EMRCREATEPEN, lopn, 16)
984 TEST_FIELD_ALIGN (EMRCREATEPEN, lopn, 4)
985 TEST_FIELD_OFFSET(EMRCREATEPEN, lopn, 12)
988 static void test_pack_EMRDELETECOLORSPACE(void)
990 /* EMRDELETECOLORSPACE */
991 TEST_TYPE_SIZE (EMRDELETECOLORSPACE, 12)
992 TEST_TYPE_ALIGN (EMRDELETECOLORSPACE, 4)
993 TEST_FIELD_SIZE (EMRDELETECOLORSPACE, emr, 8)
994 TEST_FIELD_ALIGN (EMRDELETECOLORSPACE, emr, 4)
995 TEST_FIELD_OFFSET(EMRDELETECOLORSPACE, emr, 0)
996 TEST_FIELD_SIZE (EMRDELETECOLORSPACE, ihCS, 4)
997 TEST_FIELD_ALIGN (EMRDELETECOLORSPACE, ihCS, 4)
998 TEST_FIELD_OFFSET(EMRDELETECOLORSPACE, ihCS, 8)
1001 static void test_pack_EMRDELETEOBJECT(void)
1003 /* EMRDELETEOBJECT */
1004 TEST_TYPE_SIZE (EMRDELETEOBJECT, 12)
1005 TEST_TYPE_ALIGN (EMRDELETEOBJECT, 4)
1006 TEST_FIELD_SIZE (EMRDELETEOBJECT, emr, 8)
1007 TEST_FIELD_ALIGN (EMRDELETEOBJECT, emr, 4)
1008 TEST_FIELD_OFFSET(EMRDELETEOBJECT, emr, 0)
1009 TEST_FIELD_SIZE (EMRDELETEOBJECT, ihObject, 4)
1010 TEST_FIELD_ALIGN (EMRDELETEOBJECT, ihObject, 4)
1011 TEST_FIELD_OFFSET(EMRDELETEOBJECT, ihObject, 8)
1014 static void test_pack_EMRELLIPSE(void)
1016 /* EMRELLIPSE */
1017 TEST_TYPE_SIZE (EMRELLIPSE, 24)
1018 TEST_TYPE_ALIGN (EMRELLIPSE, 4)
1019 TEST_FIELD_SIZE (EMRELLIPSE, emr, 8)
1020 TEST_FIELD_ALIGN (EMRELLIPSE, emr, 4)
1021 TEST_FIELD_OFFSET(EMRELLIPSE, emr, 0)
1022 TEST_FIELD_SIZE (EMRELLIPSE, rclBox, 16)
1023 TEST_FIELD_ALIGN (EMRELLIPSE, rclBox, 4)
1024 TEST_FIELD_OFFSET(EMRELLIPSE, rclBox, 8)
1027 static void test_pack_EMRENDPATH(void)
1029 /* EMRENDPATH */
1030 TEST_TYPE_SIZE (EMRENDPATH, 8)
1031 TEST_TYPE_ALIGN (EMRENDPATH, 4)
1032 TEST_FIELD_SIZE (EMRENDPATH, emr, 8)
1033 TEST_FIELD_ALIGN (EMRENDPATH, emr, 4)
1034 TEST_FIELD_OFFSET(EMRENDPATH, emr, 0)
1037 static void test_pack_EMREOF(void)
1039 /* EMREOF */
1040 TEST_TYPE_SIZE (EMREOF, 20)
1041 TEST_TYPE_ALIGN (EMREOF, 4)
1042 TEST_FIELD_SIZE (EMREOF, emr, 8)
1043 TEST_FIELD_ALIGN (EMREOF, emr, 4)
1044 TEST_FIELD_OFFSET(EMREOF, emr, 0)
1045 TEST_FIELD_SIZE (EMREOF, nPalEntries, 4)
1046 TEST_FIELD_ALIGN (EMREOF, nPalEntries, 4)
1047 TEST_FIELD_OFFSET(EMREOF, nPalEntries, 8)
1048 TEST_FIELD_SIZE (EMREOF, offPalEntries, 4)
1049 TEST_FIELD_ALIGN (EMREOF, offPalEntries, 4)
1050 TEST_FIELD_OFFSET(EMREOF, offPalEntries, 12)
1051 TEST_FIELD_SIZE (EMREOF, nSizeLast, 4)
1052 TEST_FIELD_ALIGN (EMREOF, nSizeLast, 4)
1053 TEST_FIELD_OFFSET(EMREOF, nSizeLast, 16)
1056 static void test_pack_EMREXCLUDECLIPRECT(void)
1058 /* EMREXCLUDECLIPRECT */
1059 TEST_TYPE_SIZE (EMREXCLUDECLIPRECT, 24)
1060 TEST_TYPE_ALIGN (EMREXCLUDECLIPRECT, 4)
1061 TEST_FIELD_SIZE (EMREXCLUDECLIPRECT, emr, 8)
1062 TEST_FIELD_ALIGN (EMREXCLUDECLIPRECT, emr, 4)
1063 TEST_FIELD_OFFSET(EMREXCLUDECLIPRECT, emr, 0)
1064 TEST_FIELD_SIZE (EMREXCLUDECLIPRECT, rclClip, 16)
1065 TEST_FIELD_ALIGN (EMREXCLUDECLIPRECT, rclClip, 4)
1066 TEST_FIELD_OFFSET(EMREXCLUDECLIPRECT, rclClip, 8)
1069 static void test_pack_EMREXTCREATEFONTINDIRECTW(void)
1071 /* EMREXTCREATEFONTINDIRECTW */
1072 TEST_TYPE_SIZE (EMREXTCREATEFONTINDIRECTW, 332)
1073 TEST_TYPE_ALIGN (EMREXTCREATEFONTINDIRECTW, 4)
1074 TEST_FIELD_SIZE (EMREXTCREATEFONTINDIRECTW, emr, 8)
1075 TEST_FIELD_ALIGN (EMREXTCREATEFONTINDIRECTW, emr, 4)
1076 TEST_FIELD_OFFSET(EMREXTCREATEFONTINDIRECTW, emr, 0)
1077 TEST_FIELD_SIZE (EMREXTCREATEFONTINDIRECTW, ihFont, 4)
1078 TEST_FIELD_ALIGN (EMREXTCREATEFONTINDIRECTW, ihFont, 4)
1079 TEST_FIELD_OFFSET(EMREXTCREATEFONTINDIRECTW, ihFont, 8)
1080 TEST_FIELD_SIZE (EMREXTCREATEFONTINDIRECTW, elfw, 320)
1081 TEST_FIELD_ALIGN (EMREXTCREATEFONTINDIRECTW, elfw, 4)
1082 TEST_FIELD_OFFSET(EMREXTCREATEFONTINDIRECTW, elfw, 12)
1085 static void test_pack_EMREXTCREATEPEN(void)
1087 /* EMREXTCREATEPEN */
1088 TEST_TYPE_SIZE (EMREXTCREATEPEN, 64)
1089 TEST_TYPE_ALIGN (EMREXTCREATEPEN, 8)
1090 TEST_FIELD_SIZE (EMREXTCREATEPEN, emr, 8)
1091 TEST_FIELD_ALIGN (EMREXTCREATEPEN, emr, 4)
1092 TEST_FIELD_OFFSET(EMREXTCREATEPEN, emr, 0)
1093 TEST_FIELD_SIZE (EMREXTCREATEPEN, ihPen, 4)
1094 TEST_FIELD_ALIGN (EMREXTCREATEPEN, ihPen, 4)
1095 TEST_FIELD_OFFSET(EMREXTCREATEPEN, ihPen, 8)
1096 TEST_FIELD_SIZE (EMREXTCREATEPEN, offBmi, 4)
1097 TEST_FIELD_ALIGN (EMREXTCREATEPEN, offBmi, 4)
1098 TEST_FIELD_OFFSET(EMREXTCREATEPEN, offBmi, 12)
1099 TEST_FIELD_SIZE (EMREXTCREATEPEN, cbBmi, 4)
1100 TEST_FIELD_ALIGN (EMREXTCREATEPEN, cbBmi, 4)
1101 TEST_FIELD_OFFSET(EMREXTCREATEPEN, cbBmi, 16)
1102 TEST_FIELD_SIZE (EMREXTCREATEPEN, offBits, 4)
1103 TEST_FIELD_ALIGN (EMREXTCREATEPEN, offBits, 4)
1104 TEST_FIELD_OFFSET(EMREXTCREATEPEN, offBits, 20)
1105 TEST_FIELD_SIZE (EMREXTCREATEPEN, cbBits, 4)
1106 TEST_FIELD_ALIGN (EMREXTCREATEPEN, cbBits, 4)
1107 TEST_FIELD_OFFSET(EMREXTCREATEPEN, cbBits, 24)
1108 TEST_FIELD_SIZE (EMREXTCREATEPEN, elp, 32)
1109 TEST_FIELD_ALIGN (EMREXTCREATEPEN, elp, 8)
1110 TEST_FIELD_OFFSET(EMREXTCREATEPEN, elp, 32)
1113 static void test_pack_EMREXTFLOODFILL(void)
1115 /* EMREXTFLOODFILL */
1116 TEST_TYPE_SIZE (EMREXTFLOODFILL, 24)
1117 TEST_TYPE_ALIGN (EMREXTFLOODFILL, 4)
1118 TEST_FIELD_SIZE (EMREXTFLOODFILL, emr, 8)
1119 TEST_FIELD_ALIGN (EMREXTFLOODFILL, emr, 4)
1120 TEST_FIELD_OFFSET(EMREXTFLOODFILL, emr, 0)
1121 TEST_FIELD_SIZE (EMREXTFLOODFILL, ptlStart, 8)
1122 TEST_FIELD_ALIGN (EMREXTFLOODFILL, ptlStart, 4)
1123 TEST_FIELD_OFFSET(EMREXTFLOODFILL, ptlStart, 8)
1124 TEST_FIELD_SIZE (EMREXTFLOODFILL, crColor, 4)
1125 TEST_FIELD_ALIGN (EMREXTFLOODFILL, crColor, 4)
1126 TEST_FIELD_OFFSET(EMREXTFLOODFILL, crColor, 16)
1127 TEST_FIELD_SIZE (EMREXTFLOODFILL, iMode, 4)
1128 TEST_FIELD_ALIGN (EMREXTFLOODFILL, iMode, 4)
1129 TEST_FIELD_OFFSET(EMREXTFLOODFILL, iMode, 20)
1132 static void test_pack_EMREXTSELECTCLIPRGN(void)
1134 /* EMREXTSELECTCLIPRGN */
1135 TEST_TYPE_SIZE (EMREXTSELECTCLIPRGN, 20)
1136 TEST_TYPE_ALIGN (EMREXTSELECTCLIPRGN, 4)
1137 TEST_FIELD_SIZE (EMREXTSELECTCLIPRGN, emr, 8)
1138 TEST_FIELD_ALIGN (EMREXTSELECTCLIPRGN, emr, 4)
1139 TEST_FIELD_OFFSET(EMREXTSELECTCLIPRGN, emr, 0)
1140 TEST_FIELD_SIZE (EMREXTSELECTCLIPRGN, cbRgnData, 4)
1141 TEST_FIELD_ALIGN (EMREXTSELECTCLIPRGN, cbRgnData, 4)
1142 TEST_FIELD_OFFSET(EMREXTSELECTCLIPRGN, cbRgnData, 8)
1143 TEST_FIELD_SIZE (EMREXTSELECTCLIPRGN, iMode, 4)
1144 TEST_FIELD_ALIGN (EMREXTSELECTCLIPRGN, iMode, 4)
1145 TEST_FIELD_OFFSET(EMREXTSELECTCLIPRGN, iMode, 12)
1146 TEST_FIELD_SIZE (EMREXTSELECTCLIPRGN, RgnData, 1)
1147 TEST_FIELD_ALIGN (EMREXTSELECTCLIPRGN, RgnData, 1)
1148 TEST_FIELD_OFFSET(EMREXTSELECTCLIPRGN, RgnData, 16)
1151 static void test_pack_EMREXTTEXTOUTA(void)
1153 /* EMREXTTEXTOUTA */
1154 TEST_TYPE_SIZE (EMREXTTEXTOUTA, 76)
1155 TEST_TYPE_ALIGN (EMREXTTEXTOUTA, 4)
1156 TEST_FIELD_SIZE (EMREXTTEXTOUTA, emr, 8)
1157 TEST_FIELD_ALIGN (EMREXTTEXTOUTA, emr, 4)
1158 TEST_FIELD_OFFSET(EMREXTTEXTOUTA, emr, 0)
1159 TEST_FIELD_SIZE (EMREXTTEXTOUTA, rclBounds, 16)
1160 TEST_FIELD_ALIGN (EMREXTTEXTOUTA, rclBounds, 4)
1161 TEST_FIELD_OFFSET(EMREXTTEXTOUTA, rclBounds, 8)
1162 TEST_FIELD_SIZE (EMREXTTEXTOUTA, iGraphicsMode, 4)
1163 TEST_FIELD_ALIGN (EMREXTTEXTOUTA, iGraphicsMode, 4)
1164 TEST_FIELD_OFFSET(EMREXTTEXTOUTA, iGraphicsMode, 24)
1165 TEST_FIELD_SIZE (EMREXTTEXTOUTA, exScale, 4)
1166 TEST_FIELD_ALIGN (EMREXTTEXTOUTA, exScale, 4)
1167 TEST_FIELD_OFFSET(EMREXTTEXTOUTA, exScale, 28)
1168 TEST_FIELD_SIZE (EMREXTTEXTOUTA, eyScale, 4)
1169 TEST_FIELD_ALIGN (EMREXTTEXTOUTA, eyScale, 4)
1170 TEST_FIELD_OFFSET(EMREXTTEXTOUTA, eyScale, 32)
1171 TEST_FIELD_SIZE (EMREXTTEXTOUTA, emrtext, 40)
1172 TEST_FIELD_ALIGN (EMREXTTEXTOUTA, emrtext, 4)
1173 TEST_FIELD_OFFSET(EMREXTTEXTOUTA, emrtext, 36)
1176 static void test_pack_EMREXTTEXTOUTW(void)
1178 /* EMREXTTEXTOUTW */
1179 TEST_TYPE_SIZE (EMREXTTEXTOUTW, 76)
1180 TEST_TYPE_ALIGN (EMREXTTEXTOUTW, 4)
1181 TEST_FIELD_SIZE (EMREXTTEXTOUTW, emr, 8)
1182 TEST_FIELD_ALIGN (EMREXTTEXTOUTW, emr, 4)
1183 TEST_FIELD_OFFSET(EMREXTTEXTOUTW, emr, 0)
1184 TEST_FIELD_SIZE (EMREXTTEXTOUTW, rclBounds, 16)
1185 TEST_FIELD_ALIGN (EMREXTTEXTOUTW, rclBounds, 4)
1186 TEST_FIELD_OFFSET(EMREXTTEXTOUTW, rclBounds, 8)
1187 TEST_FIELD_SIZE (EMREXTTEXTOUTW, iGraphicsMode, 4)
1188 TEST_FIELD_ALIGN (EMREXTTEXTOUTW, iGraphicsMode, 4)
1189 TEST_FIELD_OFFSET(EMREXTTEXTOUTW, iGraphicsMode, 24)
1190 TEST_FIELD_SIZE (EMREXTTEXTOUTW, exScale, 4)
1191 TEST_FIELD_ALIGN (EMREXTTEXTOUTW, exScale, 4)
1192 TEST_FIELD_OFFSET(EMREXTTEXTOUTW, exScale, 28)
1193 TEST_FIELD_SIZE (EMREXTTEXTOUTW, eyScale, 4)
1194 TEST_FIELD_ALIGN (EMREXTTEXTOUTW, eyScale, 4)
1195 TEST_FIELD_OFFSET(EMREXTTEXTOUTW, eyScale, 32)
1196 TEST_FIELD_SIZE (EMREXTTEXTOUTW, emrtext, 40)
1197 TEST_FIELD_ALIGN (EMREXTTEXTOUTW, emrtext, 4)
1198 TEST_FIELD_OFFSET(EMREXTTEXTOUTW, emrtext, 36)
1201 static void test_pack_EMRFILLPATH(void)
1203 /* EMRFILLPATH */
1204 TEST_TYPE_SIZE (EMRFILLPATH, 24)
1205 TEST_TYPE_ALIGN (EMRFILLPATH, 4)
1206 TEST_FIELD_SIZE (EMRFILLPATH, emr, 8)
1207 TEST_FIELD_ALIGN (EMRFILLPATH, emr, 4)
1208 TEST_FIELD_OFFSET(EMRFILLPATH, emr, 0)
1209 TEST_FIELD_SIZE (EMRFILLPATH, rclBounds, 16)
1210 TEST_FIELD_ALIGN (EMRFILLPATH, rclBounds, 4)
1211 TEST_FIELD_OFFSET(EMRFILLPATH, rclBounds, 8)
1214 static void test_pack_EMRFILLRGN(void)
1216 /* EMRFILLRGN */
1217 TEST_TYPE_SIZE (EMRFILLRGN, 36)
1218 TEST_TYPE_ALIGN (EMRFILLRGN, 4)
1219 TEST_FIELD_SIZE (EMRFILLRGN, emr, 8)
1220 TEST_FIELD_ALIGN (EMRFILLRGN, emr, 4)
1221 TEST_FIELD_OFFSET(EMRFILLRGN, emr, 0)
1222 TEST_FIELD_SIZE (EMRFILLRGN, rclBounds, 16)
1223 TEST_FIELD_ALIGN (EMRFILLRGN, rclBounds, 4)
1224 TEST_FIELD_OFFSET(EMRFILLRGN, rclBounds, 8)
1225 TEST_FIELD_SIZE (EMRFILLRGN, cbRgnData, 4)
1226 TEST_FIELD_ALIGN (EMRFILLRGN, cbRgnData, 4)
1227 TEST_FIELD_OFFSET(EMRFILLRGN, cbRgnData, 24)
1228 TEST_FIELD_SIZE (EMRFILLRGN, ihBrush, 4)
1229 TEST_FIELD_ALIGN (EMRFILLRGN, ihBrush, 4)
1230 TEST_FIELD_OFFSET(EMRFILLRGN, ihBrush, 28)
1231 TEST_FIELD_SIZE (EMRFILLRGN, RgnData, 1)
1232 TEST_FIELD_ALIGN (EMRFILLRGN, RgnData, 1)
1233 TEST_FIELD_OFFSET(EMRFILLRGN, RgnData, 32)
1236 static void test_pack_EMRFLATTENPATH(void)
1238 /* EMRFLATTENPATH */
1239 TEST_TYPE_SIZE (EMRFLATTENPATH, 8)
1240 TEST_TYPE_ALIGN (EMRFLATTENPATH, 4)
1241 TEST_FIELD_SIZE (EMRFLATTENPATH, emr, 8)
1242 TEST_FIELD_ALIGN (EMRFLATTENPATH, emr, 4)
1243 TEST_FIELD_OFFSET(EMRFLATTENPATH, emr, 0)
1246 static void test_pack_EMRFORMAT(void)
1248 /* EMRFORMAT */
1249 TEST_TYPE_SIZE (EMRFORMAT, 16)
1250 TEST_TYPE_ALIGN (EMRFORMAT, 4)
1251 TEST_FIELD_SIZE (EMRFORMAT, dSignature, 4)
1252 TEST_FIELD_ALIGN (EMRFORMAT, dSignature, 4)
1253 TEST_FIELD_OFFSET(EMRFORMAT, dSignature, 0)
1254 TEST_FIELD_SIZE (EMRFORMAT, nVersion, 4)
1255 TEST_FIELD_ALIGN (EMRFORMAT, nVersion, 4)
1256 TEST_FIELD_OFFSET(EMRFORMAT, nVersion, 4)
1257 TEST_FIELD_SIZE (EMRFORMAT, cbData, 4)
1258 TEST_FIELD_ALIGN (EMRFORMAT, cbData, 4)
1259 TEST_FIELD_OFFSET(EMRFORMAT, cbData, 8)
1260 TEST_FIELD_SIZE (EMRFORMAT, offData, 4)
1261 TEST_FIELD_ALIGN (EMRFORMAT, offData, 4)
1262 TEST_FIELD_OFFSET(EMRFORMAT, offData, 12)
1265 static void test_pack_EMRFRAMERGN(void)
1267 /* EMRFRAMERGN */
1268 TEST_TYPE_SIZE (EMRFRAMERGN, 44)
1269 TEST_TYPE_ALIGN (EMRFRAMERGN, 4)
1270 TEST_FIELD_SIZE (EMRFRAMERGN, emr, 8)
1271 TEST_FIELD_ALIGN (EMRFRAMERGN, emr, 4)
1272 TEST_FIELD_OFFSET(EMRFRAMERGN, emr, 0)
1273 TEST_FIELD_SIZE (EMRFRAMERGN, rclBounds, 16)
1274 TEST_FIELD_ALIGN (EMRFRAMERGN, rclBounds, 4)
1275 TEST_FIELD_OFFSET(EMRFRAMERGN, rclBounds, 8)
1276 TEST_FIELD_SIZE (EMRFRAMERGN, cbRgnData, 4)
1277 TEST_FIELD_ALIGN (EMRFRAMERGN, cbRgnData, 4)
1278 TEST_FIELD_OFFSET(EMRFRAMERGN, cbRgnData, 24)
1279 TEST_FIELD_SIZE (EMRFRAMERGN, ihBrush, 4)
1280 TEST_FIELD_ALIGN (EMRFRAMERGN, ihBrush, 4)
1281 TEST_FIELD_OFFSET(EMRFRAMERGN, ihBrush, 28)
1282 TEST_FIELD_SIZE (EMRFRAMERGN, szlStroke, 8)
1283 TEST_FIELD_ALIGN (EMRFRAMERGN, szlStroke, 4)
1284 TEST_FIELD_OFFSET(EMRFRAMERGN, szlStroke, 32)
1285 TEST_FIELD_SIZE (EMRFRAMERGN, RgnData, 1)
1286 TEST_FIELD_ALIGN (EMRFRAMERGN, RgnData, 1)
1287 TEST_FIELD_OFFSET(EMRFRAMERGN, RgnData, 40)
1290 static void test_pack_EMRGDICOMMENT(void)
1292 /* EMRGDICOMMENT */
1293 TEST_TYPE_SIZE (EMRGDICOMMENT, 16)
1294 TEST_TYPE_ALIGN (EMRGDICOMMENT, 4)
1295 TEST_FIELD_SIZE (EMRGDICOMMENT, emr, 8)
1296 TEST_FIELD_ALIGN (EMRGDICOMMENT, emr, 4)
1297 TEST_FIELD_OFFSET(EMRGDICOMMENT, emr, 0)
1298 TEST_FIELD_SIZE (EMRGDICOMMENT, cbData, 4)
1299 TEST_FIELD_ALIGN (EMRGDICOMMENT, cbData, 4)
1300 TEST_FIELD_OFFSET(EMRGDICOMMENT, cbData, 8)
1301 TEST_FIELD_SIZE (EMRGDICOMMENT, Data, 1)
1302 TEST_FIELD_ALIGN (EMRGDICOMMENT, Data, 1)
1303 TEST_FIELD_OFFSET(EMRGDICOMMENT, Data, 12)
1306 static void test_pack_EMRGLSBOUNDEDRECORD(void)
1308 /* EMRGLSBOUNDEDRECORD */
1309 TEST_TYPE_SIZE (EMRGLSBOUNDEDRECORD, 32)
1310 TEST_TYPE_ALIGN (EMRGLSBOUNDEDRECORD, 4)
1311 TEST_FIELD_SIZE (EMRGLSBOUNDEDRECORD, emr, 8)
1312 TEST_FIELD_ALIGN (EMRGLSBOUNDEDRECORD, emr, 4)
1313 TEST_FIELD_OFFSET(EMRGLSBOUNDEDRECORD, emr, 0)
1314 TEST_FIELD_SIZE (EMRGLSBOUNDEDRECORD, rclBounds, 16)
1315 TEST_FIELD_ALIGN (EMRGLSBOUNDEDRECORD, rclBounds, 4)
1316 TEST_FIELD_OFFSET(EMRGLSBOUNDEDRECORD, rclBounds, 8)
1317 TEST_FIELD_SIZE (EMRGLSBOUNDEDRECORD, cbData, 4)
1318 TEST_FIELD_ALIGN (EMRGLSBOUNDEDRECORD, cbData, 4)
1319 TEST_FIELD_OFFSET(EMRGLSBOUNDEDRECORD, cbData, 24)
1320 TEST_FIELD_SIZE (EMRGLSBOUNDEDRECORD, Data, 1)
1321 TEST_FIELD_ALIGN (EMRGLSBOUNDEDRECORD, Data, 1)
1322 TEST_FIELD_OFFSET(EMRGLSBOUNDEDRECORD, Data, 28)
1325 static void test_pack_EMRGLSRECORD(void)
1327 /* EMRGLSRECORD */
1328 TEST_TYPE_SIZE (EMRGLSRECORD, 16)
1329 TEST_TYPE_ALIGN (EMRGLSRECORD, 4)
1330 TEST_FIELD_SIZE (EMRGLSRECORD, emr, 8)
1331 TEST_FIELD_ALIGN (EMRGLSRECORD, emr, 4)
1332 TEST_FIELD_OFFSET(EMRGLSRECORD, emr, 0)
1333 TEST_FIELD_SIZE (EMRGLSRECORD, cbData, 4)
1334 TEST_FIELD_ALIGN (EMRGLSRECORD, cbData, 4)
1335 TEST_FIELD_OFFSET(EMRGLSRECORD, cbData, 8)
1336 TEST_FIELD_SIZE (EMRGLSRECORD, Data, 1)
1337 TEST_FIELD_ALIGN (EMRGLSRECORD, Data, 1)
1338 TEST_FIELD_OFFSET(EMRGLSRECORD, Data, 12)
1341 static void test_pack_EMRINTERSECTCLIPRECT(void)
1343 /* EMRINTERSECTCLIPRECT */
1344 TEST_TYPE_SIZE (EMRINTERSECTCLIPRECT, 24)
1345 TEST_TYPE_ALIGN (EMRINTERSECTCLIPRECT, 4)
1346 TEST_FIELD_SIZE (EMRINTERSECTCLIPRECT, emr, 8)
1347 TEST_FIELD_ALIGN (EMRINTERSECTCLIPRECT, emr, 4)
1348 TEST_FIELD_OFFSET(EMRINTERSECTCLIPRECT, emr, 0)
1349 TEST_FIELD_SIZE (EMRINTERSECTCLIPRECT, rclClip, 16)
1350 TEST_FIELD_ALIGN (EMRINTERSECTCLIPRECT, rclClip, 4)
1351 TEST_FIELD_OFFSET(EMRINTERSECTCLIPRECT, rclClip, 8)
1354 static void test_pack_EMRINVERTRGN(void)
1356 /* EMRINVERTRGN */
1357 TEST_TYPE_SIZE (EMRINVERTRGN, 32)
1358 TEST_TYPE_ALIGN (EMRINVERTRGN, 4)
1359 TEST_FIELD_SIZE (EMRINVERTRGN, emr, 8)
1360 TEST_FIELD_ALIGN (EMRINVERTRGN, emr, 4)
1361 TEST_FIELD_OFFSET(EMRINVERTRGN, emr, 0)
1362 TEST_FIELD_SIZE (EMRINVERTRGN, rclBounds, 16)
1363 TEST_FIELD_ALIGN (EMRINVERTRGN, rclBounds, 4)
1364 TEST_FIELD_OFFSET(EMRINVERTRGN, rclBounds, 8)
1365 TEST_FIELD_SIZE (EMRINVERTRGN, cbRgnData, 4)
1366 TEST_FIELD_ALIGN (EMRINVERTRGN, cbRgnData, 4)
1367 TEST_FIELD_OFFSET(EMRINVERTRGN, cbRgnData, 24)
1368 TEST_FIELD_SIZE (EMRINVERTRGN, RgnData, 1)
1369 TEST_FIELD_ALIGN (EMRINVERTRGN, RgnData, 1)
1370 TEST_FIELD_OFFSET(EMRINVERTRGN, RgnData, 28)
1373 static void test_pack_EMRLINETO(void)
1375 /* EMRLINETO */
1376 TEST_TYPE_SIZE (EMRLINETO, 16)
1377 TEST_TYPE_ALIGN (EMRLINETO, 4)
1378 TEST_FIELD_SIZE (EMRLINETO, emr, 8)
1379 TEST_FIELD_ALIGN (EMRLINETO, emr, 4)
1380 TEST_FIELD_OFFSET(EMRLINETO, emr, 0)
1381 TEST_FIELD_SIZE (EMRLINETO, ptl, 8)
1382 TEST_FIELD_ALIGN (EMRLINETO, ptl, 4)
1383 TEST_FIELD_OFFSET(EMRLINETO, ptl, 8)
1386 static void test_pack_EMRMASKBLT(void)
1388 /* EMRMASKBLT */
1389 TEST_TYPE_SIZE (EMRMASKBLT, 128)
1390 TEST_TYPE_ALIGN (EMRMASKBLT, 4)
1391 TEST_FIELD_SIZE (EMRMASKBLT, emr, 8)
1392 TEST_FIELD_ALIGN (EMRMASKBLT, emr, 4)
1393 TEST_FIELD_OFFSET(EMRMASKBLT, emr, 0)
1394 TEST_FIELD_SIZE (EMRMASKBLT, rclBounds, 16)
1395 TEST_FIELD_ALIGN (EMRMASKBLT, rclBounds, 4)
1396 TEST_FIELD_OFFSET(EMRMASKBLT, rclBounds, 8)
1397 TEST_FIELD_SIZE (EMRMASKBLT, xDest, 4)
1398 TEST_FIELD_ALIGN (EMRMASKBLT, xDest, 4)
1399 TEST_FIELD_OFFSET(EMRMASKBLT, xDest, 24)
1400 TEST_FIELD_SIZE (EMRMASKBLT, yDest, 4)
1401 TEST_FIELD_ALIGN (EMRMASKBLT, yDest, 4)
1402 TEST_FIELD_OFFSET(EMRMASKBLT, yDest, 28)
1403 TEST_FIELD_SIZE (EMRMASKBLT, cxDest, 4)
1404 TEST_FIELD_ALIGN (EMRMASKBLT, cxDest, 4)
1405 TEST_FIELD_OFFSET(EMRMASKBLT, cxDest, 32)
1406 TEST_FIELD_SIZE (EMRMASKBLT, cyDest, 4)
1407 TEST_FIELD_ALIGN (EMRMASKBLT, cyDest, 4)
1408 TEST_FIELD_OFFSET(EMRMASKBLT, cyDest, 36)
1409 TEST_FIELD_SIZE (EMRMASKBLT, dwRop, 4)
1410 TEST_FIELD_ALIGN (EMRMASKBLT, dwRop, 4)
1411 TEST_FIELD_OFFSET(EMRMASKBLT, dwRop, 40)
1412 TEST_FIELD_SIZE (EMRMASKBLT, xSrc, 4)
1413 TEST_FIELD_ALIGN (EMRMASKBLT, xSrc, 4)
1414 TEST_FIELD_OFFSET(EMRMASKBLT, xSrc, 44)
1415 TEST_FIELD_SIZE (EMRMASKBLT, ySrc, 4)
1416 TEST_FIELD_ALIGN (EMRMASKBLT, ySrc, 4)
1417 TEST_FIELD_OFFSET(EMRMASKBLT, ySrc, 48)
1418 TEST_FIELD_SIZE (EMRMASKBLT, xformSrc, 24)
1419 TEST_FIELD_ALIGN (EMRMASKBLT, xformSrc, 4)
1420 TEST_FIELD_OFFSET(EMRMASKBLT, xformSrc, 52)
1421 TEST_FIELD_SIZE (EMRMASKBLT, crBkColorSrc, 4)
1422 TEST_FIELD_ALIGN (EMRMASKBLT, crBkColorSrc, 4)
1423 TEST_FIELD_OFFSET(EMRMASKBLT, crBkColorSrc, 76)
1424 TEST_FIELD_SIZE (EMRMASKBLT, iUsageSrc, 4)
1425 TEST_FIELD_ALIGN (EMRMASKBLT, iUsageSrc, 4)
1426 TEST_FIELD_OFFSET(EMRMASKBLT, iUsageSrc, 80)
1427 TEST_FIELD_SIZE (EMRMASKBLT, offBmiSrc, 4)
1428 TEST_FIELD_ALIGN (EMRMASKBLT, offBmiSrc, 4)
1429 TEST_FIELD_OFFSET(EMRMASKBLT, offBmiSrc, 84)
1430 TEST_FIELD_SIZE (EMRMASKBLT, cbBmiSrc, 4)
1431 TEST_FIELD_ALIGN (EMRMASKBLT, cbBmiSrc, 4)
1432 TEST_FIELD_OFFSET(EMRMASKBLT, cbBmiSrc, 88)
1433 TEST_FIELD_SIZE (EMRMASKBLT, offBitsSrc, 4)
1434 TEST_FIELD_ALIGN (EMRMASKBLT, offBitsSrc, 4)
1435 TEST_FIELD_OFFSET(EMRMASKBLT, offBitsSrc, 92)
1436 TEST_FIELD_SIZE (EMRMASKBLT, cbBitsSrc, 4)
1437 TEST_FIELD_ALIGN (EMRMASKBLT, cbBitsSrc, 4)
1438 TEST_FIELD_OFFSET(EMRMASKBLT, cbBitsSrc, 96)
1439 TEST_FIELD_SIZE (EMRMASKBLT, xMask, 4)
1440 TEST_FIELD_ALIGN (EMRMASKBLT, xMask, 4)
1441 TEST_FIELD_OFFSET(EMRMASKBLT, xMask, 100)
1442 TEST_FIELD_SIZE (EMRMASKBLT, yMask, 4)
1443 TEST_FIELD_ALIGN (EMRMASKBLT, yMask, 4)
1444 TEST_FIELD_OFFSET(EMRMASKBLT, yMask, 104)
1445 TEST_FIELD_SIZE (EMRMASKBLT, iUsageMask, 4)
1446 TEST_FIELD_ALIGN (EMRMASKBLT, iUsageMask, 4)
1447 TEST_FIELD_OFFSET(EMRMASKBLT, iUsageMask, 108)
1448 TEST_FIELD_SIZE (EMRMASKBLT, offBmiMask, 4)
1449 TEST_FIELD_ALIGN (EMRMASKBLT, offBmiMask, 4)
1450 TEST_FIELD_OFFSET(EMRMASKBLT, offBmiMask, 112)
1451 TEST_FIELD_SIZE (EMRMASKBLT, cbBmiMask, 4)
1452 TEST_FIELD_ALIGN (EMRMASKBLT, cbBmiMask, 4)
1453 TEST_FIELD_OFFSET(EMRMASKBLT, cbBmiMask, 116)
1454 TEST_FIELD_SIZE (EMRMASKBLT, offBitsMask, 4)
1455 TEST_FIELD_ALIGN (EMRMASKBLT, offBitsMask, 4)
1456 TEST_FIELD_OFFSET(EMRMASKBLT, offBitsMask, 120)
1457 TEST_FIELD_SIZE (EMRMASKBLT, cbBitsMask, 4)
1458 TEST_FIELD_ALIGN (EMRMASKBLT, cbBitsMask, 4)
1459 TEST_FIELD_OFFSET(EMRMASKBLT, cbBitsMask, 124)
1462 static void test_pack_EMRMODIFYWORLDTRANSFORM(void)
1464 /* EMRMODIFYWORLDTRANSFORM */
1465 TEST_TYPE_SIZE (EMRMODIFYWORLDTRANSFORM, 36)
1466 TEST_TYPE_ALIGN (EMRMODIFYWORLDTRANSFORM, 4)
1467 TEST_FIELD_SIZE (EMRMODIFYWORLDTRANSFORM, emr, 8)
1468 TEST_FIELD_ALIGN (EMRMODIFYWORLDTRANSFORM, emr, 4)
1469 TEST_FIELD_OFFSET(EMRMODIFYWORLDTRANSFORM, emr, 0)
1470 TEST_FIELD_SIZE (EMRMODIFYWORLDTRANSFORM, xform, 24)
1471 TEST_FIELD_ALIGN (EMRMODIFYWORLDTRANSFORM, xform, 4)
1472 TEST_FIELD_OFFSET(EMRMODIFYWORLDTRANSFORM, xform, 8)
1473 TEST_FIELD_SIZE (EMRMODIFYWORLDTRANSFORM, iMode, 4)
1474 TEST_FIELD_ALIGN (EMRMODIFYWORLDTRANSFORM, iMode, 4)
1475 TEST_FIELD_OFFSET(EMRMODIFYWORLDTRANSFORM, iMode, 32)
1478 static void test_pack_EMRMOVETOEX(void)
1480 /* EMRMOVETOEX */
1481 TEST_TYPE_SIZE (EMRMOVETOEX, 16)
1482 TEST_TYPE_ALIGN (EMRMOVETOEX, 4)
1483 TEST_FIELD_SIZE (EMRMOVETOEX, emr, 8)
1484 TEST_FIELD_ALIGN (EMRMOVETOEX, emr, 4)
1485 TEST_FIELD_OFFSET(EMRMOVETOEX, emr, 0)
1486 TEST_FIELD_SIZE (EMRMOVETOEX, ptl, 8)
1487 TEST_FIELD_ALIGN (EMRMOVETOEX, ptl, 4)
1488 TEST_FIELD_OFFSET(EMRMOVETOEX, ptl, 8)
1491 static void test_pack_EMROFFSETCLIPRGN(void)
1493 /* EMROFFSETCLIPRGN */
1494 TEST_TYPE_SIZE (EMROFFSETCLIPRGN, 16)
1495 TEST_TYPE_ALIGN (EMROFFSETCLIPRGN, 4)
1496 TEST_FIELD_SIZE (EMROFFSETCLIPRGN, emr, 8)
1497 TEST_FIELD_ALIGN (EMROFFSETCLIPRGN, emr, 4)
1498 TEST_FIELD_OFFSET(EMROFFSETCLIPRGN, emr, 0)
1499 TEST_FIELD_SIZE (EMROFFSETCLIPRGN, ptlOffset, 8)
1500 TEST_FIELD_ALIGN (EMROFFSETCLIPRGN, ptlOffset, 4)
1501 TEST_FIELD_OFFSET(EMROFFSETCLIPRGN, ptlOffset, 8)
1504 static void test_pack_EMRPAINTRGN(void)
1506 /* EMRPAINTRGN */
1507 TEST_TYPE_SIZE (EMRPAINTRGN, 32)
1508 TEST_TYPE_ALIGN (EMRPAINTRGN, 4)
1509 TEST_FIELD_SIZE (EMRPAINTRGN, emr, 8)
1510 TEST_FIELD_ALIGN (EMRPAINTRGN, emr, 4)
1511 TEST_FIELD_OFFSET(EMRPAINTRGN, emr, 0)
1512 TEST_FIELD_SIZE (EMRPAINTRGN, rclBounds, 16)
1513 TEST_FIELD_ALIGN (EMRPAINTRGN, rclBounds, 4)
1514 TEST_FIELD_OFFSET(EMRPAINTRGN, rclBounds, 8)
1515 TEST_FIELD_SIZE (EMRPAINTRGN, cbRgnData, 4)
1516 TEST_FIELD_ALIGN (EMRPAINTRGN, cbRgnData, 4)
1517 TEST_FIELD_OFFSET(EMRPAINTRGN, cbRgnData, 24)
1518 TEST_FIELD_SIZE (EMRPAINTRGN, RgnData, 1)
1519 TEST_FIELD_ALIGN (EMRPAINTRGN, RgnData, 1)
1520 TEST_FIELD_OFFSET(EMRPAINTRGN, RgnData, 28)
1523 static void test_pack_EMRPIE(void)
1525 /* EMRPIE */
1526 TEST_TYPE_SIZE (EMRPIE, 40)
1527 TEST_TYPE_ALIGN (EMRPIE, 4)
1528 TEST_FIELD_SIZE (EMRPIE, emr, 8)
1529 TEST_FIELD_ALIGN (EMRPIE, emr, 4)
1530 TEST_FIELD_OFFSET(EMRPIE, emr, 0)
1531 TEST_FIELD_SIZE (EMRPIE, rclBox, 16)
1532 TEST_FIELD_ALIGN (EMRPIE, rclBox, 4)
1533 TEST_FIELD_OFFSET(EMRPIE, rclBox, 8)
1534 TEST_FIELD_SIZE (EMRPIE, ptlStart, 8)
1535 TEST_FIELD_ALIGN (EMRPIE, ptlStart, 4)
1536 TEST_FIELD_OFFSET(EMRPIE, ptlStart, 24)
1537 TEST_FIELD_SIZE (EMRPIE, ptlEnd, 8)
1538 TEST_FIELD_ALIGN (EMRPIE, ptlEnd, 4)
1539 TEST_FIELD_OFFSET(EMRPIE, ptlEnd, 32)
1542 static void test_pack_EMRPIXELFORMAT(void)
1544 /* EMRPIXELFORMAT */
1545 TEST_TYPE_SIZE (EMRPIXELFORMAT, 48)
1546 TEST_TYPE_ALIGN (EMRPIXELFORMAT, 4)
1547 TEST_FIELD_SIZE (EMRPIXELFORMAT, emr, 8)
1548 TEST_FIELD_ALIGN (EMRPIXELFORMAT, emr, 4)
1549 TEST_FIELD_OFFSET(EMRPIXELFORMAT, emr, 0)
1550 TEST_FIELD_SIZE (EMRPIXELFORMAT, pfd, 40)
1551 TEST_FIELD_ALIGN (EMRPIXELFORMAT, pfd, 4)
1552 TEST_FIELD_OFFSET(EMRPIXELFORMAT, pfd, 8)
1555 static void test_pack_EMRPLGBLT(void)
1557 /* EMRPLGBLT */
1558 TEST_TYPE_SIZE (EMRPLGBLT, 140)
1559 TEST_TYPE_ALIGN (EMRPLGBLT, 4)
1560 TEST_FIELD_SIZE (EMRPLGBLT, emr, 8)
1561 TEST_FIELD_ALIGN (EMRPLGBLT, emr, 4)
1562 TEST_FIELD_OFFSET(EMRPLGBLT, emr, 0)
1563 TEST_FIELD_SIZE (EMRPLGBLT, rclBounds, 16)
1564 TEST_FIELD_ALIGN (EMRPLGBLT, rclBounds, 4)
1565 TEST_FIELD_OFFSET(EMRPLGBLT, rclBounds, 8)
1566 TEST_FIELD_SIZE (EMRPLGBLT, aptlDest, 24)
1567 TEST_FIELD_ALIGN (EMRPLGBLT, aptlDest, 4)
1568 TEST_FIELD_OFFSET(EMRPLGBLT, aptlDest, 24)
1569 TEST_FIELD_SIZE (EMRPLGBLT, xSrc, 4)
1570 TEST_FIELD_ALIGN (EMRPLGBLT, xSrc, 4)
1571 TEST_FIELD_OFFSET(EMRPLGBLT, xSrc, 48)
1572 TEST_FIELD_SIZE (EMRPLGBLT, ySrc, 4)
1573 TEST_FIELD_ALIGN (EMRPLGBLT, ySrc, 4)
1574 TEST_FIELD_OFFSET(EMRPLGBLT, ySrc, 52)
1575 TEST_FIELD_SIZE (EMRPLGBLT, cxSrc, 4)
1576 TEST_FIELD_ALIGN (EMRPLGBLT, cxSrc, 4)
1577 TEST_FIELD_OFFSET(EMRPLGBLT, cxSrc, 56)
1578 TEST_FIELD_SIZE (EMRPLGBLT, cySrc, 4)
1579 TEST_FIELD_ALIGN (EMRPLGBLT, cySrc, 4)
1580 TEST_FIELD_OFFSET(EMRPLGBLT, cySrc, 60)
1581 TEST_FIELD_SIZE (EMRPLGBLT, xformSrc, 24)
1582 TEST_FIELD_ALIGN (EMRPLGBLT, xformSrc, 4)
1583 TEST_FIELD_OFFSET(EMRPLGBLT, xformSrc, 64)
1584 TEST_FIELD_SIZE (EMRPLGBLT, crBkColorSrc, 4)
1585 TEST_FIELD_ALIGN (EMRPLGBLT, crBkColorSrc, 4)
1586 TEST_FIELD_OFFSET(EMRPLGBLT, crBkColorSrc, 88)
1587 TEST_FIELD_SIZE (EMRPLGBLT, iUsageSrc, 4)
1588 TEST_FIELD_ALIGN (EMRPLGBLT, iUsageSrc, 4)
1589 TEST_FIELD_OFFSET(EMRPLGBLT, iUsageSrc, 92)
1590 TEST_FIELD_SIZE (EMRPLGBLT, offBmiSrc, 4)
1591 TEST_FIELD_ALIGN (EMRPLGBLT, offBmiSrc, 4)
1592 TEST_FIELD_OFFSET(EMRPLGBLT, offBmiSrc, 96)
1593 TEST_FIELD_SIZE (EMRPLGBLT, cbBmiSrc, 4)
1594 TEST_FIELD_ALIGN (EMRPLGBLT, cbBmiSrc, 4)
1595 TEST_FIELD_OFFSET(EMRPLGBLT, cbBmiSrc, 100)
1596 TEST_FIELD_SIZE (EMRPLGBLT, offBitsSrc, 4)
1597 TEST_FIELD_ALIGN (EMRPLGBLT, offBitsSrc, 4)
1598 TEST_FIELD_OFFSET(EMRPLGBLT, offBitsSrc, 104)
1599 TEST_FIELD_SIZE (EMRPLGBLT, cbBitsSrc, 4)
1600 TEST_FIELD_ALIGN (EMRPLGBLT, cbBitsSrc, 4)
1601 TEST_FIELD_OFFSET(EMRPLGBLT, cbBitsSrc, 108)
1602 TEST_FIELD_SIZE (EMRPLGBLT, xMask, 4)
1603 TEST_FIELD_ALIGN (EMRPLGBLT, xMask, 4)
1604 TEST_FIELD_OFFSET(EMRPLGBLT, xMask, 112)
1605 TEST_FIELD_SIZE (EMRPLGBLT, yMask, 4)
1606 TEST_FIELD_ALIGN (EMRPLGBLT, yMask, 4)
1607 TEST_FIELD_OFFSET(EMRPLGBLT, yMask, 116)
1608 TEST_FIELD_SIZE (EMRPLGBLT, iUsageMask, 4)
1609 TEST_FIELD_ALIGN (EMRPLGBLT, iUsageMask, 4)
1610 TEST_FIELD_OFFSET(EMRPLGBLT, iUsageMask, 120)
1611 TEST_FIELD_SIZE (EMRPLGBLT, offBmiMask, 4)
1612 TEST_FIELD_ALIGN (EMRPLGBLT, offBmiMask, 4)
1613 TEST_FIELD_OFFSET(EMRPLGBLT, offBmiMask, 124)
1614 TEST_FIELD_SIZE (EMRPLGBLT, cbBmiMask, 4)
1615 TEST_FIELD_ALIGN (EMRPLGBLT, cbBmiMask, 4)
1616 TEST_FIELD_OFFSET(EMRPLGBLT, cbBmiMask, 128)
1617 TEST_FIELD_SIZE (EMRPLGBLT, offBitsMask, 4)
1618 TEST_FIELD_ALIGN (EMRPLGBLT, offBitsMask, 4)
1619 TEST_FIELD_OFFSET(EMRPLGBLT, offBitsMask, 132)
1620 TEST_FIELD_SIZE (EMRPLGBLT, cbBitsMask, 4)
1621 TEST_FIELD_ALIGN (EMRPLGBLT, cbBitsMask, 4)
1622 TEST_FIELD_OFFSET(EMRPLGBLT, cbBitsMask, 136)
1625 static void test_pack_EMRPOLYBEZIER(void)
1627 /* EMRPOLYBEZIER */
1628 TEST_TYPE_SIZE (EMRPOLYBEZIER, 36)
1629 TEST_TYPE_ALIGN (EMRPOLYBEZIER, 4)
1630 TEST_FIELD_SIZE (EMRPOLYBEZIER, emr, 8)
1631 TEST_FIELD_ALIGN (EMRPOLYBEZIER, emr, 4)
1632 TEST_FIELD_OFFSET(EMRPOLYBEZIER, emr, 0)
1633 TEST_FIELD_SIZE (EMRPOLYBEZIER, rclBounds, 16)
1634 TEST_FIELD_ALIGN (EMRPOLYBEZIER, rclBounds, 4)
1635 TEST_FIELD_OFFSET(EMRPOLYBEZIER, rclBounds, 8)
1636 TEST_FIELD_SIZE (EMRPOLYBEZIER, cptl, 4)
1637 TEST_FIELD_ALIGN (EMRPOLYBEZIER, cptl, 4)
1638 TEST_FIELD_OFFSET(EMRPOLYBEZIER, cptl, 24)
1639 TEST_FIELD_SIZE (EMRPOLYBEZIER, aptl, 8)
1640 TEST_FIELD_ALIGN (EMRPOLYBEZIER, aptl, 4)
1641 TEST_FIELD_OFFSET(EMRPOLYBEZIER, aptl, 28)
1644 static void test_pack_EMRPOLYBEZIER16(void)
1646 /* EMRPOLYBEZIER16 */
1647 TEST_TYPE_SIZE (EMRPOLYBEZIER16, 32)
1648 TEST_TYPE_ALIGN (EMRPOLYBEZIER16, 4)
1649 TEST_FIELD_SIZE (EMRPOLYBEZIER16, emr, 8)
1650 TEST_FIELD_ALIGN (EMRPOLYBEZIER16, emr, 4)
1651 TEST_FIELD_OFFSET(EMRPOLYBEZIER16, emr, 0)
1652 TEST_FIELD_SIZE (EMRPOLYBEZIER16, rclBounds, 16)
1653 TEST_FIELD_ALIGN (EMRPOLYBEZIER16, rclBounds, 4)
1654 TEST_FIELD_OFFSET(EMRPOLYBEZIER16, rclBounds, 8)
1655 TEST_FIELD_SIZE (EMRPOLYBEZIER16, cpts, 4)
1656 TEST_FIELD_ALIGN (EMRPOLYBEZIER16, cpts, 4)
1657 TEST_FIELD_OFFSET(EMRPOLYBEZIER16, cpts, 24)
1658 TEST_FIELD_SIZE (EMRPOLYBEZIER16, apts, 4)
1659 TEST_FIELD_ALIGN (EMRPOLYBEZIER16, apts, 2)
1660 TEST_FIELD_OFFSET(EMRPOLYBEZIER16, apts, 28)
1663 static void test_pack_EMRPOLYBEZIERTO(void)
1665 /* EMRPOLYBEZIERTO */
1666 TEST_TYPE_SIZE (EMRPOLYBEZIERTO, 36)
1667 TEST_TYPE_ALIGN (EMRPOLYBEZIERTO, 4)
1668 TEST_FIELD_SIZE (EMRPOLYBEZIERTO, emr, 8)
1669 TEST_FIELD_ALIGN (EMRPOLYBEZIERTO, emr, 4)
1670 TEST_FIELD_OFFSET(EMRPOLYBEZIERTO, emr, 0)
1671 TEST_FIELD_SIZE (EMRPOLYBEZIERTO, rclBounds, 16)
1672 TEST_FIELD_ALIGN (EMRPOLYBEZIERTO, rclBounds, 4)
1673 TEST_FIELD_OFFSET(EMRPOLYBEZIERTO, rclBounds, 8)
1674 TEST_FIELD_SIZE (EMRPOLYBEZIERTO, cptl, 4)
1675 TEST_FIELD_ALIGN (EMRPOLYBEZIERTO, cptl, 4)
1676 TEST_FIELD_OFFSET(EMRPOLYBEZIERTO, cptl, 24)
1677 TEST_FIELD_SIZE (EMRPOLYBEZIERTO, aptl, 8)
1678 TEST_FIELD_ALIGN (EMRPOLYBEZIERTO, aptl, 4)
1679 TEST_FIELD_OFFSET(EMRPOLYBEZIERTO, aptl, 28)
1682 static void test_pack_EMRPOLYBEZIERTO16(void)
1684 /* EMRPOLYBEZIERTO16 */
1685 TEST_TYPE_SIZE (EMRPOLYBEZIERTO16, 32)
1686 TEST_TYPE_ALIGN (EMRPOLYBEZIERTO16, 4)
1687 TEST_FIELD_SIZE (EMRPOLYBEZIERTO16, emr, 8)
1688 TEST_FIELD_ALIGN (EMRPOLYBEZIERTO16, emr, 4)
1689 TEST_FIELD_OFFSET(EMRPOLYBEZIERTO16, emr, 0)
1690 TEST_FIELD_SIZE (EMRPOLYBEZIERTO16, rclBounds, 16)
1691 TEST_FIELD_ALIGN (EMRPOLYBEZIERTO16, rclBounds, 4)
1692 TEST_FIELD_OFFSET(EMRPOLYBEZIERTO16, rclBounds, 8)
1693 TEST_FIELD_SIZE (EMRPOLYBEZIERTO16, cpts, 4)
1694 TEST_FIELD_ALIGN (EMRPOLYBEZIERTO16, cpts, 4)
1695 TEST_FIELD_OFFSET(EMRPOLYBEZIERTO16, cpts, 24)
1696 TEST_FIELD_SIZE (EMRPOLYBEZIERTO16, apts, 4)
1697 TEST_FIELD_ALIGN (EMRPOLYBEZIERTO16, apts, 2)
1698 TEST_FIELD_OFFSET(EMRPOLYBEZIERTO16, apts, 28)
1701 static void test_pack_EMRPOLYDRAW(void)
1703 /* EMRPOLYDRAW */
1704 TEST_TYPE_SIZE (EMRPOLYDRAW, 40)
1705 TEST_TYPE_ALIGN (EMRPOLYDRAW, 4)
1706 TEST_FIELD_SIZE (EMRPOLYDRAW, emr, 8)
1707 TEST_FIELD_ALIGN (EMRPOLYDRAW, emr, 4)
1708 TEST_FIELD_OFFSET(EMRPOLYDRAW, emr, 0)
1709 TEST_FIELD_SIZE (EMRPOLYDRAW, rclBounds, 16)
1710 TEST_FIELD_ALIGN (EMRPOLYDRAW, rclBounds, 4)
1711 TEST_FIELD_OFFSET(EMRPOLYDRAW, rclBounds, 8)
1712 TEST_FIELD_SIZE (EMRPOLYDRAW, cptl, 4)
1713 TEST_FIELD_ALIGN (EMRPOLYDRAW, cptl, 4)
1714 TEST_FIELD_OFFSET(EMRPOLYDRAW, cptl, 24)
1715 TEST_FIELD_SIZE (EMRPOLYDRAW, aptl, 8)
1716 TEST_FIELD_ALIGN (EMRPOLYDRAW, aptl, 4)
1717 TEST_FIELD_OFFSET(EMRPOLYDRAW, aptl, 28)
1718 TEST_FIELD_SIZE (EMRPOLYDRAW, abTypes, 1)
1719 TEST_FIELD_ALIGN (EMRPOLYDRAW, abTypes, 1)
1720 TEST_FIELD_OFFSET(EMRPOLYDRAW, abTypes, 36)
1723 static void test_pack_EMRPOLYDRAW16(void)
1725 /* EMRPOLYDRAW16 */
1726 TEST_TYPE_SIZE (EMRPOLYDRAW16, 36)
1727 TEST_TYPE_ALIGN (EMRPOLYDRAW16, 4)
1728 TEST_FIELD_SIZE (EMRPOLYDRAW16, emr, 8)
1729 TEST_FIELD_ALIGN (EMRPOLYDRAW16, emr, 4)
1730 TEST_FIELD_OFFSET(EMRPOLYDRAW16, emr, 0)
1731 TEST_FIELD_SIZE (EMRPOLYDRAW16, rclBounds, 16)
1732 TEST_FIELD_ALIGN (EMRPOLYDRAW16, rclBounds, 4)
1733 TEST_FIELD_OFFSET(EMRPOLYDRAW16, rclBounds, 8)
1734 TEST_FIELD_SIZE (EMRPOLYDRAW16, cpts, 4)
1735 TEST_FIELD_ALIGN (EMRPOLYDRAW16, cpts, 4)
1736 TEST_FIELD_OFFSET(EMRPOLYDRAW16, cpts, 24)
1737 TEST_FIELD_SIZE (EMRPOLYDRAW16, apts, 4)
1738 TEST_FIELD_ALIGN (EMRPOLYDRAW16, apts, 2)
1739 TEST_FIELD_OFFSET(EMRPOLYDRAW16, apts, 28)
1740 TEST_FIELD_SIZE (EMRPOLYDRAW16, abTypes, 1)
1741 TEST_FIELD_ALIGN (EMRPOLYDRAW16, abTypes, 1)
1742 TEST_FIELD_OFFSET(EMRPOLYDRAW16, abTypes, 32)
1745 static void test_pack_EMRPOLYGON(void)
1747 /* EMRPOLYGON */
1748 TEST_TYPE_SIZE (EMRPOLYGON, 36)
1749 TEST_TYPE_ALIGN (EMRPOLYGON, 4)
1750 TEST_FIELD_SIZE (EMRPOLYGON, emr, 8)
1751 TEST_FIELD_ALIGN (EMRPOLYGON, emr, 4)
1752 TEST_FIELD_OFFSET(EMRPOLYGON, emr, 0)
1753 TEST_FIELD_SIZE (EMRPOLYGON, rclBounds, 16)
1754 TEST_FIELD_ALIGN (EMRPOLYGON, rclBounds, 4)
1755 TEST_FIELD_OFFSET(EMRPOLYGON, rclBounds, 8)
1756 TEST_FIELD_SIZE (EMRPOLYGON, cptl, 4)
1757 TEST_FIELD_ALIGN (EMRPOLYGON, cptl, 4)
1758 TEST_FIELD_OFFSET(EMRPOLYGON, cptl, 24)
1759 TEST_FIELD_SIZE (EMRPOLYGON, aptl, 8)
1760 TEST_FIELD_ALIGN (EMRPOLYGON, aptl, 4)
1761 TEST_FIELD_OFFSET(EMRPOLYGON, aptl, 28)
1764 static void test_pack_EMRPOLYGON16(void)
1766 /* EMRPOLYGON16 */
1767 TEST_TYPE_SIZE (EMRPOLYGON16, 32)
1768 TEST_TYPE_ALIGN (EMRPOLYGON16, 4)
1769 TEST_FIELD_SIZE (EMRPOLYGON16, emr, 8)
1770 TEST_FIELD_ALIGN (EMRPOLYGON16, emr, 4)
1771 TEST_FIELD_OFFSET(EMRPOLYGON16, emr, 0)
1772 TEST_FIELD_SIZE (EMRPOLYGON16, rclBounds, 16)
1773 TEST_FIELD_ALIGN (EMRPOLYGON16, rclBounds, 4)
1774 TEST_FIELD_OFFSET(EMRPOLYGON16, rclBounds, 8)
1775 TEST_FIELD_SIZE (EMRPOLYGON16, cpts, 4)
1776 TEST_FIELD_ALIGN (EMRPOLYGON16, cpts, 4)
1777 TEST_FIELD_OFFSET(EMRPOLYGON16, cpts, 24)
1778 TEST_FIELD_SIZE (EMRPOLYGON16, apts, 4)
1779 TEST_FIELD_ALIGN (EMRPOLYGON16, apts, 2)
1780 TEST_FIELD_OFFSET(EMRPOLYGON16, apts, 28)
1783 static void test_pack_EMRPOLYLINE(void)
1785 /* EMRPOLYLINE */
1786 TEST_TYPE_SIZE (EMRPOLYLINE, 36)
1787 TEST_TYPE_ALIGN (EMRPOLYLINE, 4)
1788 TEST_FIELD_SIZE (EMRPOLYLINE, emr, 8)
1789 TEST_FIELD_ALIGN (EMRPOLYLINE, emr, 4)
1790 TEST_FIELD_OFFSET(EMRPOLYLINE, emr, 0)
1791 TEST_FIELD_SIZE (EMRPOLYLINE, rclBounds, 16)
1792 TEST_FIELD_ALIGN (EMRPOLYLINE, rclBounds, 4)
1793 TEST_FIELD_OFFSET(EMRPOLYLINE, rclBounds, 8)
1794 TEST_FIELD_SIZE (EMRPOLYLINE, cptl, 4)
1795 TEST_FIELD_ALIGN (EMRPOLYLINE, cptl, 4)
1796 TEST_FIELD_OFFSET(EMRPOLYLINE, cptl, 24)
1797 TEST_FIELD_SIZE (EMRPOLYLINE, aptl, 8)
1798 TEST_FIELD_ALIGN (EMRPOLYLINE, aptl, 4)
1799 TEST_FIELD_OFFSET(EMRPOLYLINE, aptl, 28)
1802 static void test_pack_EMRPOLYLINE16(void)
1804 /* EMRPOLYLINE16 */
1805 TEST_TYPE_SIZE (EMRPOLYLINE16, 32)
1806 TEST_TYPE_ALIGN (EMRPOLYLINE16, 4)
1807 TEST_FIELD_SIZE (EMRPOLYLINE16, emr, 8)
1808 TEST_FIELD_ALIGN (EMRPOLYLINE16, emr, 4)
1809 TEST_FIELD_OFFSET(EMRPOLYLINE16, emr, 0)
1810 TEST_FIELD_SIZE (EMRPOLYLINE16, rclBounds, 16)
1811 TEST_FIELD_ALIGN (EMRPOLYLINE16, rclBounds, 4)
1812 TEST_FIELD_OFFSET(EMRPOLYLINE16, rclBounds, 8)
1813 TEST_FIELD_SIZE (EMRPOLYLINE16, cpts, 4)
1814 TEST_FIELD_ALIGN (EMRPOLYLINE16, cpts, 4)
1815 TEST_FIELD_OFFSET(EMRPOLYLINE16, cpts, 24)
1816 TEST_FIELD_SIZE (EMRPOLYLINE16, apts, 4)
1817 TEST_FIELD_ALIGN (EMRPOLYLINE16, apts, 2)
1818 TEST_FIELD_OFFSET(EMRPOLYLINE16, apts, 28)
1821 static void test_pack_EMRPOLYLINETO(void)
1823 /* EMRPOLYLINETO */
1824 TEST_TYPE_SIZE (EMRPOLYLINETO, 36)
1825 TEST_TYPE_ALIGN (EMRPOLYLINETO, 4)
1826 TEST_FIELD_SIZE (EMRPOLYLINETO, emr, 8)
1827 TEST_FIELD_ALIGN (EMRPOLYLINETO, emr, 4)
1828 TEST_FIELD_OFFSET(EMRPOLYLINETO, emr, 0)
1829 TEST_FIELD_SIZE (EMRPOLYLINETO, rclBounds, 16)
1830 TEST_FIELD_ALIGN (EMRPOLYLINETO, rclBounds, 4)
1831 TEST_FIELD_OFFSET(EMRPOLYLINETO, rclBounds, 8)
1832 TEST_FIELD_SIZE (EMRPOLYLINETO, cptl, 4)
1833 TEST_FIELD_ALIGN (EMRPOLYLINETO, cptl, 4)
1834 TEST_FIELD_OFFSET(EMRPOLYLINETO, cptl, 24)
1835 TEST_FIELD_SIZE (EMRPOLYLINETO, aptl, 8)
1836 TEST_FIELD_ALIGN (EMRPOLYLINETO, aptl, 4)
1837 TEST_FIELD_OFFSET(EMRPOLYLINETO, aptl, 28)
1840 static void test_pack_EMRPOLYLINETO16(void)
1842 /* EMRPOLYLINETO16 */
1843 TEST_TYPE_SIZE (EMRPOLYLINETO16, 32)
1844 TEST_TYPE_ALIGN (EMRPOLYLINETO16, 4)
1845 TEST_FIELD_SIZE (EMRPOLYLINETO16, emr, 8)
1846 TEST_FIELD_ALIGN (EMRPOLYLINETO16, emr, 4)
1847 TEST_FIELD_OFFSET(EMRPOLYLINETO16, emr, 0)
1848 TEST_FIELD_SIZE (EMRPOLYLINETO16, rclBounds, 16)
1849 TEST_FIELD_ALIGN (EMRPOLYLINETO16, rclBounds, 4)
1850 TEST_FIELD_OFFSET(EMRPOLYLINETO16, rclBounds, 8)
1851 TEST_FIELD_SIZE (EMRPOLYLINETO16, cpts, 4)
1852 TEST_FIELD_ALIGN (EMRPOLYLINETO16, cpts, 4)
1853 TEST_FIELD_OFFSET(EMRPOLYLINETO16, cpts, 24)
1854 TEST_FIELD_SIZE (EMRPOLYLINETO16, apts, 4)
1855 TEST_FIELD_ALIGN (EMRPOLYLINETO16, apts, 2)
1856 TEST_FIELD_OFFSET(EMRPOLYLINETO16, apts, 28)
1859 static void test_pack_EMRPOLYPOLYGON(void)
1861 /* EMRPOLYPOLYGON */
1862 TEST_TYPE_SIZE (EMRPOLYPOLYGON, 44)
1863 TEST_TYPE_ALIGN (EMRPOLYPOLYGON, 4)
1864 TEST_FIELD_SIZE (EMRPOLYPOLYGON, emr, 8)
1865 TEST_FIELD_ALIGN (EMRPOLYPOLYGON, emr, 4)
1866 TEST_FIELD_OFFSET(EMRPOLYPOLYGON, emr, 0)
1867 TEST_FIELD_SIZE (EMRPOLYPOLYGON, rclBounds, 16)
1868 TEST_FIELD_ALIGN (EMRPOLYPOLYGON, rclBounds, 4)
1869 TEST_FIELD_OFFSET(EMRPOLYPOLYGON, rclBounds, 8)
1870 TEST_FIELD_SIZE (EMRPOLYPOLYGON, nPolys, 4)
1871 TEST_FIELD_ALIGN (EMRPOLYPOLYGON, nPolys, 4)
1872 TEST_FIELD_OFFSET(EMRPOLYPOLYGON, nPolys, 24)
1873 TEST_FIELD_SIZE (EMRPOLYPOLYGON, cptl, 4)
1874 TEST_FIELD_ALIGN (EMRPOLYPOLYGON, cptl, 4)
1875 TEST_FIELD_OFFSET(EMRPOLYPOLYGON, cptl, 28)
1876 TEST_FIELD_SIZE (EMRPOLYPOLYGON, aPolyCounts, 4)
1877 TEST_FIELD_ALIGN (EMRPOLYPOLYGON, aPolyCounts, 4)
1878 TEST_FIELD_OFFSET(EMRPOLYPOLYGON, aPolyCounts, 32)
1879 TEST_FIELD_SIZE (EMRPOLYPOLYGON, aptl, 8)
1880 TEST_FIELD_ALIGN (EMRPOLYPOLYGON, aptl, 4)
1881 TEST_FIELD_OFFSET(EMRPOLYPOLYGON, aptl, 36)
1884 static void test_pack_EMRPOLYPOLYGON16(void)
1886 /* EMRPOLYPOLYGON16 */
1887 TEST_TYPE_SIZE (EMRPOLYPOLYGON16, 40)
1888 TEST_TYPE_ALIGN (EMRPOLYPOLYGON16, 4)
1889 TEST_FIELD_SIZE (EMRPOLYPOLYGON16, emr, 8)
1890 TEST_FIELD_ALIGN (EMRPOLYPOLYGON16, emr, 4)
1891 TEST_FIELD_OFFSET(EMRPOLYPOLYGON16, emr, 0)
1892 TEST_FIELD_SIZE (EMRPOLYPOLYGON16, rclBounds, 16)
1893 TEST_FIELD_ALIGN (EMRPOLYPOLYGON16, rclBounds, 4)
1894 TEST_FIELD_OFFSET(EMRPOLYPOLYGON16, rclBounds, 8)
1895 TEST_FIELD_SIZE (EMRPOLYPOLYGON16, nPolys, 4)
1896 TEST_FIELD_ALIGN (EMRPOLYPOLYGON16, nPolys, 4)
1897 TEST_FIELD_OFFSET(EMRPOLYPOLYGON16, nPolys, 24)
1898 TEST_FIELD_SIZE (EMRPOLYPOLYGON16, cpts, 4)
1899 TEST_FIELD_ALIGN (EMRPOLYPOLYGON16, cpts, 4)
1900 TEST_FIELD_OFFSET(EMRPOLYPOLYGON16, cpts, 28)
1901 TEST_FIELD_SIZE (EMRPOLYPOLYGON16, aPolyCounts, 4)
1902 TEST_FIELD_ALIGN (EMRPOLYPOLYGON16, aPolyCounts, 4)
1903 TEST_FIELD_OFFSET(EMRPOLYPOLYGON16, aPolyCounts, 32)
1904 TEST_FIELD_SIZE (EMRPOLYPOLYGON16, apts, 4)
1905 TEST_FIELD_ALIGN (EMRPOLYPOLYGON16, apts, 2)
1906 TEST_FIELD_OFFSET(EMRPOLYPOLYGON16, apts, 36)
1909 static void test_pack_EMRPOLYPOLYLINE(void)
1911 /* EMRPOLYPOLYLINE */
1912 TEST_TYPE_SIZE (EMRPOLYPOLYLINE, 44)
1913 TEST_TYPE_ALIGN (EMRPOLYPOLYLINE, 4)
1914 TEST_FIELD_SIZE (EMRPOLYPOLYLINE, emr, 8)
1915 TEST_FIELD_ALIGN (EMRPOLYPOLYLINE, emr, 4)
1916 TEST_FIELD_OFFSET(EMRPOLYPOLYLINE, emr, 0)
1917 TEST_FIELD_SIZE (EMRPOLYPOLYLINE, rclBounds, 16)
1918 TEST_FIELD_ALIGN (EMRPOLYPOLYLINE, rclBounds, 4)
1919 TEST_FIELD_OFFSET(EMRPOLYPOLYLINE, rclBounds, 8)
1920 TEST_FIELD_SIZE (EMRPOLYPOLYLINE, nPolys, 4)
1921 TEST_FIELD_ALIGN (EMRPOLYPOLYLINE, nPolys, 4)
1922 TEST_FIELD_OFFSET(EMRPOLYPOLYLINE, nPolys, 24)
1923 TEST_FIELD_SIZE (EMRPOLYPOLYLINE, cptl, 4)
1924 TEST_FIELD_ALIGN (EMRPOLYPOLYLINE, cptl, 4)
1925 TEST_FIELD_OFFSET(EMRPOLYPOLYLINE, cptl, 28)
1926 TEST_FIELD_SIZE (EMRPOLYPOLYLINE, aPolyCounts, 4)
1927 TEST_FIELD_ALIGN (EMRPOLYPOLYLINE, aPolyCounts, 4)
1928 TEST_FIELD_OFFSET(EMRPOLYPOLYLINE, aPolyCounts, 32)
1929 TEST_FIELD_SIZE (EMRPOLYPOLYLINE, aptl, 8)
1930 TEST_FIELD_ALIGN (EMRPOLYPOLYLINE, aptl, 4)
1931 TEST_FIELD_OFFSET(EMRPOLYPOLYLINE, aptl, 36)
1934 static void test_pack_EMRPOLYPOLYLINE16(void)
1936 /* EMRPOLYPOLYLINE16 */
1937 TEST_TYPE_SIZE (EMRPOLYPOLYLINE16, 40)
1938 TEST_TYPE_ALIGN (EMRPOLYPOLYLINE16, 4)
1939 TEST_FIELD_SIZE (EMRPOLYPOLYLINE16, emr, 8)
1940 TEST_FIELD_ALIGN (EMRPOLYPOLYLINE16, emr, 4)
1941 TEST_FIELD_OFFSET(EMRPOLYPOLYLINE16, emr, 0)
1942 TEST_FIELD_SIZE (EMRPOLYPOLYLINE16, rclBounds, 16)
1943 TEST_FIELD_ALIGN (EMRPOLYPOLYLINE16, rclBounds, 4)
1944 TEST_FIELD_OFFSET(EMRPOLYPOLYLINE16, rclBounds, 8)
1945 TEST_FIELD_SIZE (EMRPOLYPOLYLINE16, nPolys, 4)
1946 TEST_FIELD_ALIGN (EMRPOLYPOLYLINE16, nPolys, 4)
1947 TEST_FIELD_OFFSET(EMRPOLYPOLYLINE16, nPolys, 24)
1948 TEST_FIELD_SIZE (EMRPOLYPOLYLINE16, cpts, 4)
1949 TEST_FIELD_ALIGN (EMRPOLYPOLYLINE16, cpts, 4)
1950 TEST_FIELD_OFFSET(EMRPOLYPOLYLINE16, cpts, 28)
1951 TEST_FIELD_SIZE (EMRPOLYPOLYLINE16, aPolyCounts, 4)
1952 TEST_FIELD_ALIGN (EMRPOLYPOLYLINE16, aPolyCounts, 4)
1953 TEST_FIELD_OFFSET(EMRPOLYPOLYLINE16, aPolyCounts, 32)
1954 TEST_FIELD_SIZE (EMRPOLYPOLYLINE16, apts, 4)
1955 TEST_FIELD_ALIGN (EMRPOLYPOLYLINE16, apts, 2)
1956 TEST_FIELD_OFFSET(EMRPOLYPOLYLINE16, apts, 36)
1959 static void test_pack_EMRPOLYTEXTOUTA(void)
1961 /* EMRPOLYTEXTOUTA */
1962 TEST_TYPE_SIZE (EMRPOLYTEXTOUTA, 80)
1963 TEST_TYPE_ALIGN (EMRPOLYTEXTOUTA, 4)
1964 TEST_FIELD_SIZE (EMRPOLYTEXTOUTA, emr, 8)
1965 TEST_FIELD_ALIGN (EMRPOLYTEXTOUTA, emr, 4)
1966 TEST_FIELD_OFFSET(EMRPOLYTEXTOUTA, emr, 0)
1967 TEST_FIELD_SIZE (EMRPOLYTEXTOUTA, rclBounds, 16)
1968 TEST_FIELD_ALIGN (EMRPOLYTEXTOUTA, rclBounds, 4)
1969 TEST_FIELD_OFFSET(EMRPOLYTEXTOUTA, rclBounds, 8)
1970 TEST_FIELD_SIZE (EMRPOLYTEXTOUTA, iGraphicsMode, 4)
1971 TEST_FIELD_ALIGN (EMRPOLYTEXTOUTA, iGraphicsMode, 4)
1972 TEST_FIELD_OFFSET(EMRPOLYTEXTOUTA, iGraphicsMode, 24)
1973 TEST_FIELD_SIZE (EMRPOLYTEXTOUTA, exScale, 4)
1974 TEST_FIELD_ALIGN (EMRPOLYTEXTOUTA, exScale, 4)
1975 TEST_FIELD_OFFSET(EMRPOLYTEXTOUTA, exScale, 28)
1976 TEST_FIELD_SIZE (EMRPOLYTEXTOUTA, eyScale, 4)
1977 TEST_FIELD_ALIGN (EMRPOLYTEXTOUTA, eyScale, 4)
1978 TEST_FIELD_OFFSET(EMRPOLYTEXTOUTA, eyScale, 32)
1979 TEST_FIELD_SIZE (EMRPOLYTEXTOUTA, cStrings, 4)
1980 TEST_FIELD_ALIGN (EMRPOLYTEXTOUTA, cStrings, 4)
1981 TEST_FIELD_OFFSET(EMRPOLYTEXTOUTA, cStrings, 36)
1982 TEST_FIELD_SIZE (EMRPOLYTEXTOUTA, aemrtext, 40)
1983 TEST_FIELD_ALIGN (EMRPOLYTEXTOUTA, aemrtext, 4)
1984 TEST_FIELD_OFFSET(EMRPOLYTEXTOUTA, aemrtext, 40)
1987 static void test_pack_EMRPOLYTEXTOUTW(void)
1989 /* EMRPOLYTEXTOUTW */
1990 TEST_TYPE_SIZE (EMRPOLYTEXTOUTW, 80)
1991 TEST_TYPE_ALIGN (EMRPOLYTEXTOUTW, 4)
1992 TEST_FIELD_SIZE (EMRPOLYTEXTOUTW, emr, 8)
1993 TEST_FIELD_ALIGN (EMRPOLYTEXTOUTW, emr, 4)
1994 TEST_FIELD_OFFSET(EMRPOLYTEXTOUTW, emr, 0)
1995 TEST_FIELD_SIZE (EMRPOLYTEXTOUTW, rclBounds, 16)
1996 TEST_FIELD_ALIGN (EMRPOLYTEXTOUTW, rclBounds, 4)
1997 TEST_FIELD_OFFSET(EMRPOLYTEXTOUTW, rclBounds, 8)
1998 TEST_FIELD_SIZE (EMRPOLYTEXTOUTW, iGraphicsMode, 4)
1999 TEST_FIELD_ALIGN (EMRPOLYTEXTOUTW, iGraphicsMode, 4)
2000 TEST_FIELD_OFFSET(EMRPOLYTEXTOUTW, iGraphicsMode, 24)
2001 TEST_FIELD_SIZE (EMRPOLYTEXTOUTW, exScale, 4)
2002 TEST_FIELD_ALIGN (EMRPOLYTEXTOUTW, exScale, 4)
2003 TEST_FIELD_OFFSET(EMRPOLYTEXTOUTW, exScale, 28)
2004 TEST_FIELD_SIZE (EMRPOLYTEXTOUTW, eyScale, 4)
2005 TEST_FIELD_ALIGN (EMRPOLYTEXTOUTW, eyScale, 4)
2006 TEST_FIELD_OFFSET(EMRPOLYTEXTOUTW, eyScale, 32)
2007 TEST_FIELD_SIZE (EMRPOLYTEXTOUTW, cStrings, 4)
2008 TEST_FIELD_ALIGN (EMRPOLYTEXTOUTW, cStrings, 4)
2009 TEST_FIELD_OFFSET(EMRPOLYTEXTOUTW, cStrings, 36)
2010 TEST_FIELD_SIZE (EMRPOLYTEXTOUTW, aemrtext, 40)
2011 TEST_FIELD_ALIGN (EMRPOLYTEXTOUTW, aemrtext, 4)
2012 TEST_FIELD_OFFSET(EMRPOLYTEXTOUTW, aemrtext, 40)
2015 static void test_pack_EMRREALIZEPALETTE(void)
2017 /* EMRREALIZEPALETTE */
2018 TEST_TYPE_SIZE (EMRREALIZEPALETTE, 8)
2019 TEST_TYPE_ALIGN (EMRREALIZEPALETTE, 4)
2020 TEST_FIELD_SIZE (EMRREALIZEPALETTE, emr, 8)
2021 TEST_FIELD_ALIGN (EMRREALIZEPALETTE, emr, 4)
2022 TEST_FIELD_OFFSET(EMRREALIZEPALETTE, emr, 0)
2025 static void test_pack_EMRRECTANGLE(void)
2027 /* EMRRECTANGLE */
2028 TEST_TYPE_SIZE (EMRRECTANGLE, 24)
2029 TEST_TYPE_ALIGN (EMRRECTANGLE, 4)
2030 TEST_FIELD_SIZE (EMRRECTANGLE, emr, 8)
2031 TEST_FIELD_ALIGN (EMRRECTANGLE, emr, 4)
2032 TEST_FIELD_OFFSET(EMRRECTANGLE, emr, 0)
2033 TEST_FIELD_SIZE (EMRRECTANGLE, rclBox, 16)
2034 TEST_FIELD_ALIGN (EMRRECTANGLE, rclBox, 4)
2035 TEST_FIELD_OFFSET(EMRRECTANGLE, rclBox, 8)
2038 static void test_pack_EMRRESIZEPALETTE(void)
2040 /* EMRRESIZEPALETTE */
2041 TEST_TYPE_SIZE (EMRRESIZEPALETTE, 16)
2042 TEST_TYPE_ALIGN (EMRRESIZEPALETTE, 4)
2043 TEST_FIELD_SIZE (EMRRESIZEPALETTE, emr, 8)
2044 TEST_FIELD_ALIGN (EMRRESIZEPALETTE, emr, 4)
2045 TEST_FIELD_OFFSET(EMRRESIZEPALETTE, emr, 0)
2046 TEST_FIELD_SIZE (EMRRESIZEPALETTE, ihPal, 4)
2047 TEST_FIELD_ALIGN (EMRRESIZEPALETTE, ihPal, 4)
2048 TEST_FIELD_OFFSET(EMRRESIZEPALETTE, ihPal, 8)
2049 TEST_FIELD_SIZE (EMRRESIZEPALETTE, cEntries, 4)
2050 TEST_FIELD_ALIGN (EMRRESIZEPALETTE, cEntries, 4)
2051 TEST_FIELD_OFFSET(EMRRESIZEPALETTE, cEntries, 12)
2054 static void test_pack_EMRRESTOREDC(void)
2056 /* EMRRESTOREDC */
2057 TEST_TYPE_SIZE (EMRRESTOREDC, 12)
2058 TEST_TYPE_ALIGN (EMRRESTOREDC, 4)
2059 TEST_FIELD_SIZE (EMRRESTOREDC, emr, 8)
2060 TEST_FIELD_ALIGN (EMRRESTOREDC, emr, 4)
2061 TEST_FIELD_OFFSET(EMRRESTOREDC, emr, 0)
2062 TEST_FIELD_SIZE (EMRRESTOREDC, iRelative, 4)
2063 TEST_FIELD_ALIGN (EMRRESTOREDC, iRelative, 4)
2064 TEST_FIELD_OFFSET(EMRRESTOREDC, iRelative, 8)
2067 static void test_pack_EMRROUNDRECT(void)
2069 /* EMRROUNDRECT */
2070 TEST_TYPE_SIZE (EMRROUNDRECT, 32)
2071 TEST_TYPE_ALIGN (EMRROUNDRECT, 4)
2072 TEST_FIELD_SIZE (EMRROUNDRECT, emr, 8)
2073 TEST_FIELD_ALIGN (EMRROUNDRECT, emr, 4)
2074 TEST_FIELD_OFFSET(EMRROUNDRECT, emr, 0)
2075 TEST_FIELD_SIZE (EMRROUNDRECT, rclBox, 16)
2076 TEST_FIELD_ALIGN (EMRROUNDRECT, rclBox, 4)
2077 TEST_FIELD_OFFSET(EMRROUNDRECT, rclBox, 8)
2078 TEST_FIELD_SIZE (EMRROUNDRECT, szlCorner, 8)
2079 TEST_FIELD_ALIGN (EMRROUNDRECT, szlCorner, 4)
2080 TEST_FIELD_OFFSET(EMRROUNDRECT, szlCorner, 24)
2083 static void test_pack_EMRSAVEDC(void)
2085 /* EMRSAVEDC */
2086 TEST_TYPE_SIZE (EMRSAVEDC, 8)
2087 TEST_TYPE_ALIGN (EMRSAVEDC, 4)
2088 TEST_FIELD_SIZE (EMRSAVEDC, emr, 8)
2089 TEST_FIELD_ALIGN (EMRSAVEDC, emr, 4)
2090 TEST_FIELD_OFFSET(EMRSAVEDC, emr, 0)
2093 static void test_pack_EMRSCALEVIEWPORTEXTEX(void)
2095 /* EMRSCALEVIEWPORTEXTEX */
2096 TEST_TYPE_SIZE (EMRSCALEVIEWPORTEXTEX, 24)
2097 TEST_TYPE_ALIGN (EMRSCALEVIEWPORTEXTEX, 4)
2098 TEST_FIELD_SIZE (EMRSCALEVIEWPORTEXTEX, emr, 8)
2099 TEST_FIELD_ALIGN (EMRSCALEVIEWPORTEXTEX, emr, 4)
2100 TEST_FIELD_OFFSET(EMRSCALEVIEWPORTEXTEX, emr, 0)
2101 TEST_FIELD_SIZE (EMRSCALEVIEWPORTEXTEX, xNum, 4)
2102 TEST_FIELD_ALIGN (EMRSCALEVIEWPORTEXTEX, xNum, 4)
2103 TEST_FIELD_OFFSET(EMRSCALEVIEWPORTEXTEX, xNum, 8)
2104 TEST_FIELD_SIZE (EMRSCALEVIEWPORTEXTEX, xDenom, 4)
2105 TEST_FIELD_ALIGN (EMRSCALEVIEWPORTEXTEX, xDenom, 4)
2106 TEST_FIELD_OFFSET(EMRSCALEVIEWPORTEXTEX, xDenom, 12)
2107 TEST_FIELD_SIZE (EMRSCALEVIEWPORTEXTEX, yNum, 4)
2108 TEST_FIELD_ALIGN (EMRSCALEVIEWPORTEXTEX, yNum, 4)
2109 TEST_FIELD_OFFSET(EMRSCALEVIEWPORTEXTEX, yNum, 16)
2110 TEST_FIELD_SIZE (EMRSCALEVIEWPORTEXTEX, yDenom, 4)
2111 TEST_FIELD_ALIGN (EMRSCALEVIEWPORTEXTEX, yDenom, 4)
2112 TEST_FIELD_OFFSET(EMRSCALEVIEWPORTEXTEX, yDenom, 20)
2115 static void test_pack_EMRSCALEWINDOWEXTEX(void)
2117 /* EMRSCALEWINDOWEXTEX */
2118 TEST_TYPE_SIZE (EMRSCALEWINDOWEXTEX, 24)
2119 TEST_TYPE_ALIGN (EMRSCALEWINDOWEXTEX, 4)
2120 TEST_FIELD_SIZE (EMRSCALEWINDOWEXTEX, emr, 8)
2121 TEST_FIELD_ALIGN (EMRSCALEWINDOWEXTEX, emr, 4)
2122 TEST_FIELD_OFFSET(EMRSCALEWINDOWEXTEX, emr, 0)
2123 TEST_FIELD_SIZE (EMRSCALEWINDOWEXTEX, xNum, 4)
2124 TEST_FIELD_ALIGN (EMRSCALEWINDOWEXTEX, xNum, 4)
2125 TEST_FIELD_OFFSET(EMRSCALEWINDOWEXTEX, xNum, 8)
2126 TEST_FIELD_SIZE (EMRSCALEWINDOWEXTEX, xDenom, 4)
2127 TEST_FIELD_ALIGN (EMRSCALEWINDOWEXTEX, xDenom, 4)
2128 TEST_FIELD_OFFSET(EMRSCALEWINDOWEXTEX, xDenom, 12)
2129 TEST_FIELD_SIZE (EMRSCALEWINDOWEXTEX, yNum, 4)
2130 TEST_FIELD_ALIGN (EMRSCALEWINDOWEXTEX, yNum, 4)
2131 TEST_FIELD_OFFSET(EMRSCALEWINDOWEXTEX, yNum, 16)
2132 TEST_FIELD_SIZE (EMRSCALEWINDOWEXTEX, yDenom, 4)
2133 TEST_FIELD_ALIGN (EMRSCALEWINDOWEXTEX, yDenom, 4)
2134 TEST_FIELD_OFFSET(EMRSCALEWINDOWEXTEX, yDenom, 20)
2137 static void test_pack_EMRSELECTCLIPPATH(void)
2139 /* EMRSELECTCLIPPATH */
2140 TEST_TYPE_SIZE (EMRSELECTCLIPPATH, 12)
2141 TEST_TYPE_ALIGN (EMRSELECTCLIPPATH, 4)
2142 TEST_FIELD_SIZE (EMRSELECTCLIPPATH, emr, 8)
2143 TEST_FIELD_ALIGN (EMRSELECTCLIPPATH, emr, 4)
2144 TEST_FIELD_OFFSET(EMRSELECTCLIPPATH, emr, 0)
2145 TEST_FIELD_SIZE (EMRSELECTCLIPPATH, iMode, 4)
2146 TEST_FIELD_ALIGN (EMRSELECTCLIPPATH, iMode, 4)
2147 TEST_FIELD_OFFSET(EMRSELECTCLIPPATH, iMode, 8)
2150 static void test_pack_EMRSELECTCOLORSPACE(void)
2152 /* EMRSELECTCOLORSPACE */
2153 TEST_TYPE_SIZE (EMRSELECTCOLORSPACE, 12)
2154 TEST_TYPE_ALIGN (EMRSELECTCOLORSPACE, 4)
2155 TEST_FIELD_SIZE (EMRSELECTCOLORSPACE, emr, 8)
2156 TEST_FIELD_ALIGN (EMRSELECTCOLORSPACE, emr, 4)
2157 TEST_FIELD_OFFSET(EMRSELECTCOLORSPACE, emr, 0)
2158 TEST_FIELD_SIZE (EMRSELECTCOLORSPACE, ihCS, 4)
2159 TEST_FIELD_ALIGN (EMRSELECTCOLORSPACE, ihCS, 4)
2160 TEST_FIELD_OFFSET(EMRSELECTCOLORSPACE, ihCS, 8)
2163 static void test_pack_EMRSELECTOBJECT(void)
2165 /* EMRSELECTOBJECT */
2166 TEST_TYPE_SIZE (EMRSELECTOBJECT, 12)
2167 TEST_TYPE_ALIGN (EMRSELECTOBJECT, 4)
2168 TEST_FIELD_SIZE (EMRSELECTOBJECT, emr, 8)
2169 TEST_FIELD_ALIGN (EMRSELECTOBJECT, emr, 4)
2170 TEST_FIELD_OFFSET(EMRSELECTOBJECT, emr, 0)
2171 TEST_FIELD_SIZE (EMRSELECTOBJECT, ihObject, 4)
2172 TEST_FIELD_ALIGN (EMRSELECTOBJECT, ihObject, 4)
2173 TEST_FIELD_OFFSET(EMRSELECTOBJECT, ihObject, 8)
2176 static void test_pack_EMRSELECTPALETTE(void)
2178 /* EMRSELECTPALETTE */
2179 TEST_TYPE_SIZE (EMRSELECTPALETTE, 12)
2180 TEST_TYPE_ALIGN (EMRSELECTPALETTE, 4)
2181 TEST_FIELD_SIZE (EMRSELECTPALETTE, emr, 8)
2182 TEST_FIELD_ALIGN (EMRSELECTPALETTE, emr, 4)
2183 TEST_FIELD_OFFSET(EMRSELECTPALETTE, emr, 0)
2184 TEST_FIELD_SIZE (EMRSELECTPALETTE, ihPal, 4)
2185 TEST_FIELD_ALIGN (EMRSELECTPALETTE, ihPal, 4)
2186 TEST_FIELD_OFFSET(EMRSELECTPALETTE, ihPal, 8)
2189 static void test_pack_EMRSETARCDIRECTION(void)
2191 /* EMRSETARCDIRECTION */
2192 TEST_TYPE_SIZE (EMRSETARCDIRECTION, 12)
2193 TEST_TYPE_ALIGN (EMRSETARCDIRECTION, 4)
2194 TEST_FIELD_SIZE (EMRSETARCDIRECTION, emr, 8)
2195 TEST_FIELD_ALIGN (EMRSETARCDIRECTION, emr, 4)
2196 TEST_FIELD_OFFSET(EMRSETARCDIRECTION, emr, 0)
2197 TEST_FIELD_SIZE (EMRSETARCDIRECTION, iArcDirection, 4)
2198 TEST_FIELD_ALIGN (EMRSETARCDIRECTION, iArcDirection, 4)
2199 TEST_FIELD_OFFSET(EMRSETARCDIRECTION, iArcDirection, 8)
2202 static void test_pack_EMRSETBKCOLOR(void)
2204 /* EMRSETBKCOLOR */
2205 TEST_TYPE_SIZE (EMRSETBKCOLOR, 12)
2206 TEST_TYPE_ALIGN (EMRSETBKCOLOR, 4)
2207 TEST_FIELD_SIZE (EMRSETBKCOLOR, emr, 8)
2208 TEST_FIELD_ALIGN (EMRSETBKCOLOR, emr, 4)
2209 TEST_FIELD_OFFSET(EMRSETBKCOLOR, emr, 0)
2210 TEST_FIELD_SIZE (EMRSETBKCOLOR, crColor, 4)
2211 TEST_FIELD_ALIGN (EMRSETBKCOLOR, crColor, 4)
2212 TEST_FIELD_OFFSET(EMRSETBKCOLOR, crColor, 8)
2215 static void test_pack_EMRSETBKMODE(void)
2217 /* EMRSETBKMODE */
2218 TEST_TYPE_SIZE (EMRSETBKMODE, 12)
2219 TEST_TYPE_ALIGN (EMRSETBKMODE, 4)
2220 TEST_FIELD_SIZE (EMRSETBKMODE, emr, 8)
2221 TEST_FIELD_ALIGN (EMRSETBKMODE, emr, 4)
2222 TEST_FIELD_OFFSET(EMRSETBKMODE, emr, 0)
2223 TEST_FIELD_SIZE (EMRSETBKMODE, iMode, 4)
2224 TEST_FIELD_ALIGN (EMRSETBKMODE, iMode, 4)
2225 TEST_FIELD_OFFSET(EMRSETBKMODE, iMode, 8)
2228 static void test_pack_EMRSETBRUSHORGEX(void)
2230 /* EMRSETBRUSHORGEX */
2231 TEST_TYPE_SIZE (EMRSETBRUSHORGEX, 16)
2232 TEST_TYPE_ALIGN (EMRSETBRUSHORGEX, 4)
2233 TEST_FIELD_SIZE (EMRSETBRUSHORGEX, emr, 8)
2234 TEST_FIELD_ALIGN (EMRSETBRUSHORGEX, emr, 4)
2235 TEST_FIELD_OFFSET(EMRSETBRUSHORGEX, emr, 0)
2236 TEST_FIELD_SIZE (EMRSETBRUSHORGEX, ptlOrigin, 8)
2237 TEST_FIELD_ALIGN (EMRSETBRUSHORGEX, ptlOrigin, 4)
2238 TEST_FIELD_OFFSET(EMRSETBRUSHORGEX, ptlOrigin, 8)
2241 static void test_pack_EMRSETCOLORADJUSTMENT(void)
2243 /* EMRSETCOLORADJUSTMENT */
2244 TEST_TYPE_SIZE (EMRSETCOLORADJUSTMENT, 32)
2245 TEST_TYPE_ALIGN (EMRSETCOLORADJUSTMENT, 4)
2246 TEST_FIELD_SIZE (EMRSETCOLORADJUSTMENT, emr, 8)
2247 TEST_FIELD_ALIGN (EMRSETCOLORADJUSTMENT, emr, 4)
2248 TEST_FIELD_OFFSET(EMRSETCOLORADJUSTMENT, emr, 0)
2249 TEST_FIELD_SIZE (EMRSETCOLORADJUSTMENT, ColorAdjustment, 24)
2250 TEST_FIELD_ALIGN (EMRSETCOLORADJUSTMENT, ColorAdjustment, 2)
2251 TEST_FIELD_OFFSET(EMRSETCOLORADJUSTMENT, ColorAdjustment, 8)
2254 static void test_pack_EMRSETCOLORSPACE(void)
2256 /* EMRSETCOLORSPACE */
2257 TEST_TYPE_SIZE (EMRSETCOLORSPACE, 12)
2258 TEST_TYPE_ALIGN (EMRSETCOLORSPACE, 4)
2259 TEST_FIELD_SIZE (EMRSETCOLORSPACE, emr, 8)
2260 TEST_FIELD_ALIGN (EMRSETCOLORSPACE, emr, 4)
2261 TEST_FIELD_OFFSET(EMRSETCOLORSPACE, emr, 0)
2262 TEST_FIELD_SIZE (EMRSETCOLORSPACE, ihCS, 4)
2263 TEST_FIELD_ALIGN (EMRSETCOLORSPACE, ihCS, 4)
2264 TEST_FIELD_OFFSET(EMRSETCOLORSPACE, ihCS, 8)
2267 static void test_pack_EMRSETDIBITSTODEVICE(void)
2269 /* EMRSETDIBITSTODEVICE */
2270 TEST_TYPE_SIZE (EMRSETDIBITSTODEVICE, 76)
2271 TEST_TYPE_ALIGN (EMRSETDIBITSTODEVICE, 4)
2272 TEST_FIELD_SIZE (EMRSETDIBITSTODEVICE, emr, 8)
2273 TEST_FIELD_ALIGN (EMRSETDIBITSTODEVICE, emr, 4)
2274 TEST_FIELD_OFFSET(EMRSETDIBITSTODEVICE, emr, 0)
2275 TEST_FIELD_SIZE (EMRSETDIBITSTODEVICE, rclBounds, 16)
2276 TEST_FIELD_ALIGN (EMRSETDIBITSTODEVICE, rclBounds, 4)
2277 TEST_FIELD_OFFSET(EMRSETDIBITSTODEVICE, rclBounds, 8)
2278 TEST_FIELD_SIZE (EMRSETDIBITSTODEVICE, xDest, 4)
2279 TEST_FIELD_ALIGN (EMRSETDIBITSTODEVICE, xDest, 4)
2280 TEST_FIELD_OFFSET(EMRSETDIBITSTODEVICE, xDest, 24)
2281 TEST_FIELD_SIZE (EMRSETDIBITSTODEVICE, yDest, 4)
2282 TEST_FIELD_ALIGN (EMRSETDIBITSTODEVICE, yDest, 4)
2283 TEST_FIELD_OFFSET(EMRSETDIBITSTODEVICE, yDest, 28)
2284 TEST_FIELD_SIZE (EMRSETDIBITSTODEVICE, xSrc, 4)
2285 TEST_FIELD_ALIGN (EMRSETDIBITSTODEVICE, xSrc, 4)
2286 TEST_FIELD_OFFSET(EMRSETDIBITSTODEVICE, xSrc, 32)
2287 TEST_FIELD_SIZE (EMRSETDIBITSTODEVICE, ySrc, 4)
2288 TEST_FIELD_ALIGN (EMRSETDIBITSTODEVICE, ySrc, 4)
2289 TEST_FIELD_OFFSET(EMRSETDIBITSTODEVICE, ySrc, 36)
2290 TEST_FIELD_SIZE (EMRSETDIBITSTODEVICE, cxSrc, 4)
2291 TEST_FIELD_ALIGN (EMRSETDIBITSTODEVICE, cxSrc, 4)
2292 TEST_FIELD_OFFSET(EMRSETDIBITSTODEVICE, cxSrc, 40)
2293 TEST_FIELD_SIZE (EMRSETDIBITSTODEVICE, cySrc, 4)
2294 TEST_FIELD_ALIGN (EMRSETDIBITSTODEVICE, cySrc, 4)
2295 TEST_FIELD_OFFSET(EMRSETDIBITSTODEVICE, cySrc, 44)
2296 TEST_FIELD_SIZE (EMRSETDIBITSTODEVICE, offBmiSrc, 4)
2297 TEST_FIELD_ALIGN (EMRSETDIBITSTODEVICE, offBmiSrc, 4)
2298 TEST_FIELD_OFFSET(EMRSETDIBITSTODEVICE, offBmiSrc, 48)
2299 TEST_FIELD_SIZE (EMRSETDIBITSTODEVICE, cbBmiSrc, 4)
2300 TEST_FIELD_ALIGN (EMRSETDIBITSTODEVICE, cbBmiSrc, 4)
2301 TEST_FIELD_OFFSET(EMRSETDIBITSTODEVICE, cbBmiSrc, 52)
2302 TEST_FIELD_SIZE (EMRSETDIBITSTODEVICE, offBitsSrc, 4)
2303 TEST_FIELD_ALIGN (EMRSETDIBITSTODEVICE, offBitsSrc, 4)
2304 TEST_FIELD_OFFSET(EMRSETDIBITSTODEVICE, offBitsSrc, 56)
2305 TEST_FIELD_SIZE (EMRSETDIBITSTODEVICE, cbBitsSrc, 4)
2306 TEST_FIELD_ALIGN (EMRSETDIBITSTODEVICE, cbBitsSrc, 4)
2307 TEST_FIELD_OFFSET(EMRSETDIBITSTODEVICE, cbBitsSrc, 60)
2308 TEST_FIELD_SIZE (EMRSETDIBITSTODEVICE, iUsageSrc, 4)
2309 TEST_FIELD_ALIGN (EMRSETDIBITSTODEVICE, iUsageSrc, 4)
2310 TEST_FIELD_OFFSET(EMRSETDIBITSTODEVICE, iUsageSrc, 64)
2311 TEST_FIELD_SIZE (EMRSETDIBITSTODEVICE, iStartScan, 4)
2312 TEST_FIELD_ALIGN (EMRSETDIBITSTODEVICE, iStartScan, 4)
2313 TEST_FIELD_OFFSET(EMRSETDIBITSTODEVICE, iStartScan, 68)
2314 TEST_FIELD_SIZE (EMRSETDIBITSTODEVICE, cScans, 4)
2315 TEST_FIELD_ALIGN (EMRSETDIBITSTODEVICE, cScans, 4)
2316 TEST_FIELD_OFFSET(EMRSETDIBITSTODEVICE, cScans, 72)
2319 static void test_pack_EMRSETICMMODE(void)
2321 /* EMRSETICMMODE */
2322 TEST_TYPE_SIZE (EMRSETICMMODE, 12)
2323 TEST_TYPE_ALIGN (EMRSETICMMODE, 4)
2324 TEST_FIELD_SIZE (EMRSETICMMODE, emr, 8)
2325 TEST_FIELD_ALIGN (EMRSETICMMODE, emr, 4)
2326 TEST_FIELD_OFFSET(EMRSETICMMODE, emr, 0)
2327 TEST_FIELD_SIZE (EMRSETICMMODE, iMode, 4)
2328 TEST_FIELD_ALIGN (EMRSETICMMODE, iMode, 4)
2329 TEST_FIELD_OFFSET(EMRSETICMMODE, iMode, 8)
2332 static void test_pack_EMRSETLAYOUT(void)
2334 /* EMRSETLAYOUT */
2335 TEST_TYPE_SIZE (EMRSETLAYOUT, 12)
2336 TEST_TYPE_ALIGN (EMRSETLAYOUT, 4)
2337 TEST_FIELD_SIZE (EMRSETLAYOUT, emr, 8)
2338 TEST_FIELD_ALIGN (EMRSETLAYOUT, emr, 4)
2339 TEST_FIELD_OFFSET(EMRSETLAYOUT, emr, 0)
2340 TEST_FIELD_SIZE (EMRSETLAYOUT, iMode, 4)
2341 TEST_FIELD_ALIGN (EMRSETLAYOUT, iMode, 4)
2342 TEST_FIELD_OFFSET(EMRSETLAYOUT, iMode, 8)
2345 static void test_pack_EMRSETMAPMODE(void)
2347 /* EMRSETMAPMODE */
2348 TEST_TYPE_SIZE (EMRSETMAPMODE, 12)
2349 TEST_TYPE_ALIGN (EMRSETMAPMODE, 4)
2350 TEST_FIELD_SIZE (EMRSETMAPMODE, emr, 8)
2351 TEST_FIELD_ALIGN (EMRSETMAPMODE, emr, 4)
2352 TEST_FIELD_OFFSET(EMRSETMAPMODE, emr, 0)
2353 TEST_FIELD_SIZE (EMRSETMAPMODE, iMode, 4)
2354 TEST_FIELD_ALIGN (EMRSETMAPMODE, iMode, 4)
2355 TEST_FIELD_OFFSET(EMRSETMAPMODE, iMode, 8)
2358 static void test_pack_EMRSETMAPPERFLAGS(void)
2360 /* EMRSETMAPPERFLAGS */
2361 TEST_TYPE_SIZE (EMRSETMAPPERFLAGS, 12)
2362 TEST_TYPE_ALIGN (EMRSETMAPPERFLAGS, 4)
2363 TEST_FIELD_SIZE (EMRSETMAPPERFLAGS, emr, 8)
2364 TEST_FIELD_ALIGN (EMRSETMAPPERFLAGS, emr, 4)
2365 TEST_FIELD_OFFSET(EMRSETMAPPERFLAGS, emr, 0)
2366 TEST_FIELD_SIZE (EMRSETMAPPERFLAGS, dwFlags, 4)
2367 TEST_FIELD_ALIGN (EMRSETMAPPERFLAGS, dwFlags, 4)
2368 TEST_FIELD_OFFSET(EMRSETMAPPERFLAGS, dwFlags, 8)
2371 static void test_pack_EMRSETMETARGN(void)
2373 /* EMRSETMETARGN */
2374 TEST_TYPE_SIZE (EMRSETMETARGN, 8)
2375 TEST_TYPE_ALIGN (EMRSETMETARGN, 4)
2376 TEST_FIELD_SIZE (EMRSETMETARGN, emr, 8)
2377 TEST_FIELD_ALIGN (EMRSETMETARGN, emr, 4)
2378 TEST_FIELD_OFFSET(EMRSETMETARGN, emr, 0)
2381 static void test_pack_EMRSETMITERLIMIT(void)
2383 /* EMRSETMITERLIMIT */
2384 TEST_TYPE_SIZE (EMRSETMITERLIMIT, 12)
2385 TEST_TYPE_ALIGN (EMRSETMITERLIMIT, 4)
2386 TEST_FIELD_SIZE (EMRSETMITERLIMIT, emr, 8)
2387 TEST_FIELD_ALIGN (EMRSETMITERLIMIT, emr, 4)
2388 TEST_FIELD_OFFSET(EMRSETMITERLIMIT, emr, 0)
2389 TEST_FIELD_SIZE (EMRSETMITERLIMIT, eMiterLimit, 4)
2390 TEST_FIELD_ALIGN (EMRSETMITERLIMIT, eMiterLimit, 4)
2391 TEST_FIELD_OFFSET(EMRSETMITERLIMIT, eMiterLimit, 8)
2394 static void test_pack_EMRSETPIXELV(void)
2396 /* EMRSETPIXELV */
2397 TEST_TYPE_SIZE (EMRSETPIXELV, 20)
2398 TEST_TYPE_ALIGN (EMRSETPIXELV, 4)
2399 TEST_FIELD_SIZE (EMRSETPIXELV, emr, 8)
2400 TEST_FIELD_ALIGN (EMRSETPIXELV, emr, 4)
2401 TEST_FIELD_OFFSET(EMRSETPIXELV, emr, 0)
2402 TEST_FIELD_SIZE (EMRSETPIXELV, ptlPixel, 8)
2403 TEST_FIELD_ALIGN (EMRSETPIXELV, ptlPixel, 4)
2404 TEST_FIELD_OFFSET(EMRSETPIXELV, ptlPixel, 8)
2405 TEST_FIELD_SIZE (EMRSETPIXELV, crColor, 4)
2406 TEST_FIELD_ALIGN (EMRSETPIXELV, crColor, 4)
2407 TEST_FIELD_OFFSET(EMRSETPIXELV, crColor, 16)
2410 static void test_pack_EMRSETPOLYFILLMODE(void)
2412 /* EMRSETPOLYFILLMODE */
2413 TEST_TYPE_SIZE (EMRSETPOLYFILLMODE, 12)
2414 TEST_TYPE_ALIGN (EMRSETPOLYFILLMODE, 4)
2415 TEST_FIELD_SIZE (EMRSETPOLYFILLMODE, emr, 8)
2416 TEST_FIELD_ALIGN (EMRSETPOLYFILLMODE, emr, 4)
2417 TEST_FIELD_OFFSET(EMRSETPOLYFILLMODE, emr, 0)
2418 TEST_FIELD_SIZE (EMRSETPOLYFILLMODE, iMode, 4)
2419 TEST_FIELD_ALIGN (EMRSETPOLYFILLMODE, iMode, 4)
2420 TEST_FIELD_OFFSET(EMRSETPOLYFILLMODE, iMode, 8)
2423 static void test_pack_EMRSETROP2(void)
2425 /* EMRSETROP2 */
2426 TEST_TYPE_SIZE (EMRSETROP2, 12)
2427 TEST_TYPE_ALIGN (EMRSETROP2, 4)
2428 TEST_FIELD_SIZE (EMRSETROP2, emr, 8)
2429 TEST_FIELD_ALIGN (EMRSETROP2, emr, 4)
2430 TEST_FIELD_OFFSET(EMRSETROP2, emr, 0)
2431 TEST_FIELD_SIZE (EMRSETROP2, iMode, 4)
2432 TEST_FIELD_ALIGN (EMRSETROP2, iMode, 4)
2433 TEST_FIELD_OFFSET(EMRSETROP2, iMode, 8)
2436 static void test_pack_EMRSETSTRETCHBLTMODE(void)
2438 /* EMRSETSTRETCHBLTMODE */
2439 TEST_TYPE_SIZE (EMRSETSTRETCHBLTMODE, 12)
2440 TEST_TYPE_ALIGN (EMRSETSTRETCHBLTMODE, 4)
2441 TEST_FIELD_SIZE (EMRSETSTRETCHBLTMODE, emr, 8)
2442 TEST_FIELD_ALIGN (EMRSETSTRETCHBLTMODE, emr, 4)
2443 TEST_FIELD_OFFSET(EMRSETSTRETCHBLTMODE, emr, 0)
2444 TEST_FIELD_SIZE (EMRSETSTRETCHBLTMODE, iMode, 4)
2445 TEST_FIELD_ALIGN (EMRSETSTRETCHBLTMODE, iMode, 4)
2446 TEST_FIELD_OFFSET(EMRSETSTRETCHBLTMODE, iMode, 8)
2449 static void test_pack_EMRSETTEXTALIGN(void)
2451 /* EMRSETTEXTALIGN */
2452 TEST_TYPE_SIZE (EMRSETTEXTALIGN, 12)
2453 TEST_TYPE_ALIGN (EMRSETTEXTALIGN, 4)
2454 TEST_FIELD_SIZE (EMRSETTEXTALIGN, emr, 8)
2455 TEST_FIELD_ALIGN (EMRSETTEXTALIGN, emr, 4)
2456 TEST_FIELD_OFFSET(EMRSETTEXTALIGN, emr, 0)
2457 TEST_FIELD_SIZE (EMRSETTEXTALIGN, iMode, 4)
2458 TEST_FIELD_ALIGN (EMRSETTEXTALIGN, iMode, 4)
2459 TEST_FIELD_OFFSET(EMRSETTEXTALIGN, iMode, 8)
2462 static void test_pack_EMRSETTEXTCOLOR(void)
2464 /* EMRSETTEXTCOLOR */
2465 TEST_TYPE_SIZE (EMRSETTEXTCOLOR, 12)
2466 TEST_TYPE_ALIGN (EMRSETTEXTCOLOR, 4)
2467 TEST_FIELD_SIZE (EMRSETTEXTCOLOR, emr, 8)
2468 TEST_FIELD_ALIGN (EMRSETTEXTCOLOR, emr, 4)
2469 TEST_FIELD_OFFSET(EMRSETTEXTCOLOR, emr, 0)
2470 TEST_FIELD_SIZE (EMRSETTEXTCOLOR, crColor, 4)
2471 TEST_FIELD_ALIGN (EMRSETTEXTCOLOR, crColor, 4)
2472 TEST_FIELD_OFFSET(EMRSETTEXTCOLOR, crColor, 8)
2475 static void test_pack_EMRSETVIEWPORTEXTEX(void)
2477 /* EMRSETVIEWPORTEXTEX */
2478 TEST_TYPE_SIZE (EMRSETVIEWPORTEXTEX, 16)
2479 TEST_TYPE_ALIGN (EMRSETVIEWPORTEXTEX, 4)
2480 TEST_FIELD_SIZE (EMRSETVIEWPORTEXTEX, emr, 8)
2481 TEST_FIELD_ALIGN (EMRSETVIEWPORTEXTEX, emr, 4)
2482 TEST_FIELD_OFFSET(EMRSETVIEWPORTEXTEX, emr, 0)
2483 TEST_FIELD_SIZE (EMRSETVIEWPORTEXTEX, szlExtent, 8)
2484 TEST_FIELD_ALIGN (EMRSETVIEWPORTEXTEX, szlExtent, 4)
2485 TEST_FIELD_OFFSET(EMRSETVIEWPORTEXTEX, szlExtent, 8)
2488 static void test_pack_EMRSETVIEWPORTORGEX(void)
2490 /* EMRSETVIEWPORTORGEX */
2491 TEST_TYPE_SIZE (EMRSETVIEWPORTORGEX, 16)
2492 TEST_TYPE_ALIGN (EMRSETVIEWPORTORGEX, 4)
2493 TEST_FIELD_SIZE (EMRSETVIEWPORTORGEX, emr, 8)
2494 TEST_FIELD_ALIGN (EMRSETVIEWPORTORGEX, emr, 4)
2495 TEST_FIELD_OFFSET(EMRSETVIEWPORTORGEX, emr, 0)
2496 TEST_FIELD_SIZE (EMRSETVIEWPORTORGEX, ptlOrigin, 8)
2497 TEST_FIELD_ALIGN (EMRSETVIEWPORTORGEX, ptlOrigin, 4)
2498 TEST_FIELD_OFFSET(EMRSETVIEWPORTORGEX, ptlOrigin, 8)
2501 static void test_pack_EMRSETWINDOWEXTEX(void)
2503 /* EMRSETWINDOWEXTEX */
2504 TEST_TYPE_SIZE (EMRSETWINDOWEXTEX, 16)
2505 TEST_TYPE_ALIGN (EMRSETWINDOWEXTEX, 4)
2506 TEST_FIELD_SIZE (EMRSETWINDOWEXTEX, emr, 8)
2507 TEST_FIELD_ALIGN (EMRSETWINDOWEXTEX, emr, 4)
2508 TEST_FIELD_OFFSET(EMRSETWINDOWEXTEX, emr, 0)
2509 TEST_FIELD_SIZE (EMRSETWINDOWEXTEX, szlExtent, 8)
2510 TEST_FIELD_ALIGN (EMRSETWINDOWEXTEX, szlExtent, 4)
2511 TEST_FIELD_OFFSET(EMRSETWINDOWEXTEX, szlExtent, 8)
2514 static void test_pack_EMRSETWINDOWORGEX(void)
2516 /* EMRSETWINDOWORGEX */
2517 TEST_TYPE_SIZE (EMRSETWINDOWORGEX, 16)
2518 TEST_TYPE_ALIGN (EMRSETWINDOWORGEX, 4)
2519 TEST_FIELD_SIZE (EMRSETWINDOWORGEX, emr, 8)
2520 TEST_FIELD_ALIGN (EMRSETWINDOWORGEX, emr, 4)
2521 TEST_FIELD_OFFSET(EMRSETWINDOWORGEX, emr, 0)
2522 TEST_FIELD_SIZE (EMRSETWINDOWORGEX, ptlOrigin, 8)
2523 TEST_FIELD_ALIGN (EMRSETWINDOWORGEX, ptlOrigin, 4)
2524 TEST_FIELD_OFFSET(EMRSETWINDOWORGEX, ptlOrigin, 8)
2527 static void test_pack_EMRSETWORLDTRANSFORM(void)
2529 /* EMRSETWORLDTRANSFORM */
2530 TEST_TYPE_SIZE (EMRSETWORLDTRANSFORM, 32)
2531 TEST_TYPE_ALIGN (EMRSETWORLDTRANSFORM, 4)
2532 TEST_FIELD_SIZE (EMRSETWORLDTRANSFORM, emr, 8)
2533 TEST_FIELD_ALIGN (EMRSETWORLDTRANSFORM, emr, 4)
2534 TEST_FIELD_OFFSET(EMRSETWORLDTRANSFORM, emr, 0)
2535 TEST_FIELD_SIZE (EMRSETWORLDTRANSFORM, xform, 24)
2536 TEST_FIELD_ALIGN (EMRSETWORLDTRANSFORM, xform, 4)
2537 TEST_FIELD_OFFSET(EMRSETWORLDTRANSFORM, xform, 8)
2540 static void test_pack_EMRSTRETCHBLT(void)
2542 /* EMRSTRETCHBLT */
2543 TEST_TYPE_SIZE (EMRSTRETCHBLT, 108)
2544 TEST_TYPE_ALIGN (EMRSTRETCHBLT, 4)
2545 TEST_FIELD_SIZE (EMRSTRETCHBLT, emr, 8)
2546 TEST_FIELD_ALIGN (EMRSTRETCHBLT, emr, 4)
2547 TEST_FIELD_OFFSET(EMRSTRETCHBLT, emr, 0)
2548 TEST_FIELD_SIZE (EMRSTRETCHBLT, rclBounds, 16)
2549 TEST_FIELD_ALIGN (EMRSTRETCHBLT, rclBounds, 4)
2550 TEST_FIELD_OFFSET(EMRSTRETCHBLT, rclBounds, 8)
2551 TEST_FIELD_SIZE (EMRSTRETCHBLT, xDest, 4)
2552 TEST_FIELD_ALIGN (EMRSTRETCHBLT, xDest, 4)
2553 TEST_FIELD_OFFSET(EMRSTRETCHBLT, xDest, 24)
2554 TEST_FIELD_SIZE (EMRSTRETCHBLT, yDest, 4)
2555 TEST_FIELD_ALIGN (EMRSTRETCHBLT, yDest, 4)
2556 TEST_FIELD_OFFSET(EMRSTRETCHBLT, yDest, 28)
2557 TEST_FIELD_SIZE (EMRSTRETCHBLT, cxDest, 4)
2558 TEST_FIELD_ALIGN (EMRSTRETCHBLT, cxDest, 4)
2559 TEST_FIELD_OFFSET(EMRSTRETCHBLT, cxDest, 32)
2560 TEST_FIELD_SIZE (EMRSTRETCHBLT, cyDest, 4)
2561 TEST_FIELD_ALIGN (EMRSTRETCHBLT, cyDest, 4)
2562 TEST_FIELD_OFFSET(EMRSTRETCHBLT, cyDest, 36)
2563 TEST_FIELD_SIZE (EMRSTRETCHBLT, dwRop, 4)
2564 TEST_FIELD_ALIGN (EMRSTRETCHBLT, dwRop, 4)
2565 TEST_FIELD_OFFSET(EMRSTRETCHBLT, dwRop, 40)
2566 TEST_FIELD_SIZE (EMRSTRETCHBLT, xSrc, 4)
2567 TEST_FIELD_ALIGN (EMRSTRETCHBLT, xSrc, 4)
2568 TEST_FIELD_OFFSET(EMRSTRETCHBLT, xSrc, 44)
2569 TEST_FIELD_SIZE (EMRSTRETCHBLT, ySrc, 4)
2570 TEST_FIELD_ALIGN (EMRSTRETCHBLT, ySrc, 4)
2571 TEST_FIELD_OFFSET(EMRSTRETCHBLT, ySrc, 48)
2572 TEST_FIELD_SIZE (EMRSTRETCHBLT, xformSrc, 24)
2573 TEST_FIELD_ALIGN (EMRSTRETCHBLT, xformSrc, 4)
2574 TEST_FIELD_OFFSET(EMRSTRETCHBLT, xformSrc, 52)
2575 TEST_FIELD_SIZE (EMRSTRETCHBLT, crBkColorSrc, 4)
2576 TEST_FIELD_ALIGN (EMRSTRETCHBLT, crBkColorSrc, 4)
2577 TEST_FIELD_OFFSET(EMRSTRETCHBLT, crBkColorSrc, 76)
2578 TEST_FIELD_SIZE (EMRSTRETCHBLT, iUsageSrc, 4)
2579 TEST_FIELD_ALIGN (EMRSTRETCHBLT, iUsageSrc, 4)
2580 TEST_FIELD_OFFSET(EMRSTRETCHBLT, iUsageSrc, 80)
2581 TEST_FIELD_SIZE (EMRSTRETCHBLT, offBmiSrc, 4)
2582 TEST_FIELD_ALIGN (EMRSTRETCHBLT, offBmiSrc, 4)
2583 TEST_FIELD_OFFSET(EMRSTRETCHBLT, offBmiSrc, 84)
2584 TEST_FIELD_SIZE (EMRSTRETCHBLT, cbBmiSrc, 4)
2585 TEST_FIELD_ALIGN (EMRSTRETCHBLT, cbBmiSrc, 4)
2586 TEST_FIELD_OFFSET(EMRSTRETCHBLT, cbBmiSrc, 88)
2587 TEST_FIELD_SIZE (EMRSTRETCHBLT, offBitsSrc, 4)
2588 TEST_FIELD_ALIGN (EMRSTRETCHBLT, offBitsSrc, 4)
2589 TEST_FIELD_OFFSET(EMRSTRETCHBLT, offBitsSrc, 92)
2590 TEST_FIELD_SIZE (EMRSTRETCHBLT, cbBitsSrc, 4)
2591 TEST_FIELD_ALIGN (EMRSTRETCHBLT, cbBitsSrc, 4)
2592 TEST_FIELD_OFFSET(EMRSTRETCHBLT, cbBitsSrc, 96)
2593 TEST_FIELD_SIZE (EMRSTRETCHBLT, cxSrc, 4)
2594 TEST_FIELD_ALIGN (EMRSTRETCHBLT, cxSrc, 4)
2595 TEST_FIELD_OFFSET(EMRSTRETCHBLT, cxSrc, 100)
2596 TEST_FIELD_SIZE (EMRSTRETCHBLT, cySrc, 4)
2597 TEST_FIELD_ALIGN (EMRSTRETCHBLT, cySrc, 4)
2598 TEST_FIELD_OFFSET(EMRSTRETCHBLT, cySrc, 104)
2601 static void test_pack_EMRSTRETCHDIBITS(void)
2603 /* EMRSTRETCHDIBITS */
2604 TEST_TYPE_SIZE (EMRSTRETCHDIBITS, 80)
2605 TEST_TYPE_ALIGN (EMRSTRETCHDIBITS, 4)
2606 TEST_FIELD_SIZE (EMRSTRETCHDIBITS, emr, 8)
2607 TEST_FIELD_ALIGN (EMRSTRETCHDIBITS, emr, 4)
2608 TEST_FIELD_OFFSET(EMRSTRETCHDIBITS, emr, 0)
2609 TEST_FIELD_SIZE (EMRSTRETCHDIBITS, rclBounds, 16)
2610 TEST_FIELD_ALIGN (EMRSTRETCHDIBITS, rclBounds, 4)
2611 TEST_FIELD_OFFSET(EMRSTRETCHDIBITS, rclBounds, 8)
2612 TEST_FIELD_SIZE (EMRSTRETCHDIBITS, xDest, 4)
2613 TEST_FIELD_ALIGN (EMRSTRETCHDIBITS, xDest, 4)
2614 TEST_FIELD_OFFSET(EMRSTRETCHDIBITS, xDest, 24)
2615 TEST_FIELD_SIZE (EMRSTRETCHDIBITS, yDest, 4)
2616 TEST_FIELD_ALIGN (EMRSTRETCHDIBITS, yDest, 4)
2617 TEST_FIELD_OFFSET(EMRSTRETCHDIBITS, yDest, 28)
2618 TEST_FIELD_SIZE (EMRSTRETCHDIBITS, xSrc, 4)
2619 TEST_FIELD_ALIGN (EMRSTRETCHDIBITS, xSrc, 4)
2620 TEST_FIELD_OFFSET(EMRSTRETCHDIBITS, xSrc, 32)
2621 TEST_FIELD_SIZE (EMRSTRETCHDIBITS, ySrc, 4)
2622 TEST_FIELD_ALIGN (EMRSTRETCHDIBITS, ySrc, 4)
2623 TEST_FIELD_OFFSET(EMRSTRETCHDIBITS, ySrc, 36)
2624 TEST_FIELD_SIZE (EMRSTRETCHDIBITS, cxSrc, 4)
2625 TEST_FIELD_ALIGN (EMRSTRETCHDIBITS, cxSrc, 4)
2626 TEST_FIELD_OFFSET(EMRSTRETCHDIBITS, cxSrc, 40)
2627 TEST_FIELD_SIZE (EMRSTRETCHDIBITS, cySrc, 4)
2628 TEST_FIELD_ALIGN (EMRSTRETCHDIBITS, cySrc, 4)
2629 TEST_FIELD_OFFSET(EMRSTRETCHDIBITS, cySrc, 44)
2630 TEST_FIELD_SIZE (EMRSTRETCHDIBITS, offBmiSrc, 4)
2631 TEST_FIELD_ALIGN (EMRSTRETCHDIBITS, offBmiSrc, 4)
2632 TEST_FIELD_OFFSET(EMRSTRETCHDIBITS, offBmiSrc, 48)
2633 TEST_FIELD_SIZE (EMRSTRETCHDIBITS, cbBmiSrc, 4)
2634 TEST_FIELD_ALIGN (EMRSTRETCHDIBITS, cbBmiSrc, 4)
2635 TEST_FIELD_OFFSET(EMRSTRETCHDIBITS, cbBmiSrc, 52)
2636 TEST_FIELD_SIZE (EMRSTRETCHDIBITS, offBitsSrc, 4)
2637 TEST_FIELD_ALIGN (EMRSTRETCHDIBITS, offBitsSrc, 4)
2638 TEST_FIELD_OFFSET(EMRSTRETCHDIBITS, offBitsSrc, 56)
2639 TEST_FIELD_SIZE (EMRSTRETCHDIBITS, cbBitsSrc, 4)
2640 TEST_FIELD_ALIGN (EMRSTRETCHDIBITS, cbBitsSrc, 4)
2641 TEST_FIELD_OFFSET(EMRSTRETCHDIBITS, cbBitsSrc, 60)
2642 TEST_FIELD_SIZE (EMRSTRETCHDIBITS, iUsageSrc, 4)
2643 TEST_FIELD_ALIGN (EMRSTRETCHDIBITS, iUsageSrc, 4)
2644 TEST_FIELD_OFFSET(EMRSTRETCHDIBITS, iUsageSrc, 64)
2645 TEST_FIELD_SIZE (EMRSTRETCHDIBITS, dwRop, 4)
2646 TEST_FIELD_ALIGN (EMRSTRETCHDIBITS, dwRop, 4)
2647 TEST_FIELD_OFFSET(EMRSTRETCHDIBITS, dwRop, 68)
2648 TEST_FIELD_SIZE (EMRSTRETCHDIBITS, cxDest, 4)
2649 TEST_FIELD_ALIGN (EMRSTRETCHDIBITS, cxDest, 4)
2650 TEST_FIELD_OFFSET(EMRSTRETCHDIBITS, cxDest, 72)
2651 TEST_FIELD_SIZE (EMRSTRETCHDIBITS, cyDest, 4)
2652 TEST_FIELD_ALIGN (EMRSTRETCHDIBITS, cyDest, 4)
2653 TEST_FIELD_OFFSET(EMRSTRETCHDIBITS, cyDest, 76)
2656 static void test_pack_EMRSTROKEANDFILLPATH(void)
2658 /* EMRSTROKEANDFILLPATH */
2659 TEST_TYPE_SIZE (EMRSTROKEANDFILLPATH, 24)
2660 TEST_TYPE_ALIGN (EMRSTROKEANDFILLPATH, 4)
2661 TEST_FIELD_SIZE (EMRSTROKEANDFILLPATH, emr, 8)
2662 TEST_FIELD_ALIGN (EMRSTROKEANDFILLPATH, emr, 4)
2663 TEST_FIELD_OFFSET(EMRSTROKEANDFILLPATH, emr, 0)
2664 TEST_FIELD_SIZE (EMRSTROKEANDFILLPATH, rclBounds, 16)
2665 TEST_FIELD_ALIGN (EMRSTROKEANDFILLPATH, rclBounds, 4)
2666 TEST_FIELD_OFFSET(EMRSTROKEANDFILLPATH, rclBounds, 8)
2669 static void test_pack_EMRSTROKEPATH(void)
2671 /* EMRSTROKEPATH */
2672 TEST_TYPE_SIZE (EMRSTROKEPATH, 24)
2673 TEST_TYPE_ALIGN (EMRSTROKEPATH, 4)
2674 TEST_FIELD_SIZE (EMRSTROKEPATH, emr, 8)
2675 TEST_FIELD_ALIGN (EMRSTROKEPATH, emr, 4)
2676 TEST_FIELD_OFFSET(EMRSTROKEPATH, emr, 0)
2677 TEST_FIELD_SIZE (EMRSTROKEPATH, rclBounds, 16)
2678 TEST_FIELD_ALIGN (EMRSTROKEPATH, rclBounds, 4)
2679 TEST_FIELD_OFFSET(EMRSTROKEPATH, rclBounds, 8)
2682 static void test_pack_EMRTEXT(void)
2684 /* EMRTEXT */
2685 TEST_TYPE_SIZE (EMRTEXT, 40)
2686 TEST_TYPE_ALIGN (EMRTEXT, 4)
2687 TEST_FIELD_SIZE (EMRTEXT, ptlReference, 8)
2688 TEST_FIELD_ALIGN (EMRTEXT, ptlReference, 4)
2689 TEST_FIELD_OFFSET(EMRTEXT, ptlReference, 0)
2690 TEST_FIELD_SIZE (EMRTEXT, nChars, 4)
2691 TEST_FIELD_ALIGN (EMRTEXT, nChars, 4)
2692 TEST_FIELD_OFFSET(EMRTEXT, nChars, 8)
2693 TEST_FIELD_SIZE (EMRTEXT, offString, 4)
2694 TEST_FIELD_ALIGN (EMRTEXT, offString, 4)
2695 TEST_FIELD_OFFSET(EMRTEXT, offString, 12)
2696 TEST_FIELD_SIZE (EMRTEXT, fOptions, 4)
2697 TEST_FIELD_ALIGN (EMRTEXT, fOptions, 4)
2698 TEST_FIELD_OFFSET(EMRTEXT, fOptions, 16)
2699 TEST_FIELD_SIZE (EMRTEXT, rcl, 16)
2700 TEST_FIELD_ALIGN (EMRTEXT, rcl, 4)
2701 TEST_FIELD_OFFSET(EMRTEXT, rcl, 20)
2702 TEST_FIELD_SIZE (EMRTEXT, offDx, 4)
2703 TEST_FIELD_ALIGN (EMRTEXT, offDx, 4)
2704 TEST_FIELD_OFFSET(EMRTEXT, offDx, 36)
2707 static void test_pack_EMRWIDENPATH(void)
2709 /* EMRWIDENPATH */
2710 TEST_TYPE_SIZE (EMRWIDENPATH, 8)
2711 TEST_TYPE_ALIGN (EMRWIDENPATH, 4)
2712 TEST_FIELD_SIZE (EMRWIDENPATH, emr, 8)
2713 TEST_FIELD_ALIGN (EMRWIDENPATH, emr, 4)
2714 TEST_FIELD_OFFSET(EMRWIDENPATH, emr, 0)
2717 static void test_pack_ENHMETAHEADER(void)
2719 /* ENHMETAHEADER */
2720 TEST_TYPE_SIZE (ENHMETAHEADER, 108)
2721 TEST_TYPE_ALIGN (ENHMETAHEADER, 4)
2722 TEST_FIELD_SIZE (ENHMETAHEADER, iType, 4)
2723 TEST_FIELD_ALIGN (ENHMETAHEADER, iType, 4)
2724 TEST_FIELD_OFFSET(ENHMETAHEADER, iType, 0)
2725 TEST_FIELD_SIZE (ENHMETAHEADER, nSize, 4)
2726 TEST_FIELD_ALIGN (ENHMETAHEADER, nSize, 4)
2727 TEST_FIELD_OFFSET(ENHMETAHEADER, nSize, 4)
2728 TEST_FIELD_SIZE (ENHMETAHEADER, rclBounds, 16)
2729 TEST_FIELD_ALIGN (ENHMETAHEADER, rclBounds, 4)
2730 TEST_FIELD_OFFSET(ENHMETAHEADER, rclBounds, 8)
2731 TEST_FIELD_SIZE (ENHMETAHEADER, rclFrame, 16)
2732 TEST_FIELD_ALIGN (ENHMETAHEADER, rclFrame, 4)
2733 TEST_FIELD_OFFSET(ENHMETAHEADER, rclFrame, 24)
2734 TEST_FIELD_SIZE (ENHMETAHEADER, dSignature, 4)
2735 TEST_FIELD_ALIGN (ENHMETAHEADER, dSignature, 4)
2736 TEST_FIELD_OFFSET(ENHMETAHEADER, dSignature, 40)
2737 TEST_FIELD_SIZE (ENHMETAHEADER, nVersion, 4)
2738 TEST_FIELD_ALIGN (ENHMETAHEADER, nVersion, 4)
2739 TEST_FIELD_OFFSET(ENHMETAHEADER, nVersion, 44)
2740 TEST_FIELD_SIZE (ENHMETAHEADER, nBytes, 4)
2741 TEST_FIELD_ALIGN (ENHMETAHEADER, nBytes, 4)
2742 TEST_FIELD_OFFSET(ENHMETAHEADER, nBytes, 48)
2743 TEST_FIELD_SIZE (ENHMETAHEADER, nRecords, 4)
2744 TEST_FIELD_ALIGN (ENHMETAHEADER, nRecords, 4)
2745 TEST_FIELD_OFFSET(ENHMETAHEADER, nRecords, 52)
2746 TEST_FIELD_SIZE (ENHMETAHEADER, nHandles, 2)
2747 TEST_FIELD_ALIGN (ENHMETAHEADER, nHandles, 2)
2748 TEST_FIELD_OFFSET(ENHMETAHEADER, nHandles, 56)
2749 TEST_FIELD_SIZE (ENHMETAHEADER, sReserved, 2)
2750 TEST_FIELD_ALIGN (ENHMETAHEADER, sReserved, 2)
2751 TEST_FIELD_OFFSET(ENHMETAHEADER, sReserved, 58)
2752 TEST_FIELD_SIZE (ENHMETAHEADER, nDescription, 4)
2753 TEST_FIELD_ALIGN (ENHMETAHEADER, nDescription, 4)
2754 TEST_FIELD_OFFSET(ENHMETAHEADER, nDescription, 60)
2755 TEST_FIELD_SIZE (ENHMETAHEADER, offDescription, 4)
2756 TEST_FIELD_ALIGN (ENHMETAHEADER, offDescription, 4)
2757 TEST_FIELD_OFFSET(ENHMETAHEADER, offDescription, 64)
2758 TEST_FIELD_SIZE (ENHMETAHEADER, nPalEntries, 4)
2759 TEST_FIELD_ALIGN (ENHMETAHEADER, nPalEntries, 4)
2760 TEST_FIELD_OFFSET(ENHMETAHEADER, nPalEntries, 68)
2761 TEST_FIELD_SIZE (ENHMETAHEADER, szlDevice, 8)
2762 TEST_FIELD_ALIGN (ENHMETAHEADER, szlDevice, 4)
2763 TEST_FIELD_OFFSET(ENHMETAHEADER, szlDevice, 72)
2764 TEST_FIELD_SIZE (ENHMETAHEADER, szlMillimeters, 8)
2765 TEST_FIELD_ALIGN (ENHMETAHEADER, szlMillimeters, 4)
2766 TEST_FIELD_OFFSET(ENHMETAHEADER, szlMillimeters, 80)
2767 TEST_FIELD_SIZE (ENHMETAHEADER, cbPixelFormat, 4)
2768 TEST_FIELD_ALIGN (ENHMETAHEADER, cbPixelFormat, 4)
2769 TEST_FIELD_OFFSET(ENHMETAHEADER, cbPixelFormat, 88)
2770 TEST_FIELD_SIZE (ENHMETAHEADER, offPixelFormat, 4)
2771 TEST_FIELD_ALIGN (ENHMETAHEADER, offPixelFormat, 4)
2772 TEST_FIELD_OFFSET(ENHMETAHEADER, offPixelFormat, 92)
2773 TEST_FIELD_SIZE (ENHMETAHEADER, bOpenGL, 4)
2774 TEST_FIELD_ALIGN (ENHMETAHEADER, bOpenGL, 4)
2775 TEST_FIELD_OFFSET(ENHMETAHEADER, bOpenGL, 96)
2776 TEST_FIELD_SIZE (ENHMETAHEADER, szlMicrometers, 8)
2777 TEST_FIELD_ALIGN (ENHMETAHEADER, szlMicrometers, 4)
2778 TEST_FIELD_OFFSET(ENHMETAHEADER, szlMicrometers, 100)
2781 static void test_pack_ENHMETARECORD(void)
2783 /* ENHMETARECORD */
2784 TEST_TYPE_SIZE (ENHMETARECORD, 12)
2785 TEST_TYPE_ALIGN (ENHMETARECORD, 4)
2786 TEST_FIELD_SIZE (ENHMETARECORD, iType, 4)
2787 TEST_FIELD_ALIGN (ENHMETARECORD, iType, 4)
2788 TEST_FIELD_OFFSET(ENHMETARECORD, iType, 0)
2789 TEST_FIELD_SIZE (ENHMETARECORD, nSize, 4)
2790 TEST_FIELD_ALIGN (ENHMETARECORD, nSize, 4)
2791 TEST_FIELD_OFFSET(ENHMETARECORD, nSize, 4)
2792 TEST_FIELD_SIZE (ENHMETARECORD, dParm, 4)
2793 TEST_FIELD_ALIGN (ENHMETARECORD, dParm, 4)
2794 TEST_FIELD_OFFSET(ENHMETARECORD, dParm, 8)
2797 static void test_pack_ENHMFENUMPROC(void)
2799 /* ENHMFENUMPROC */
2800 TEST_TYPE_SIZE (ENHMFENUMPROC, 8)
2801 TEST_TYPE_ALIGN (ENHMFENUMPROC, 8)
2804 static void test_pack_ENUMLOGFONTA(void)
2806 /* ENUMLOGFONTA */
2807 TEST_TYPE_SIZE (ENUMLOGFONTA, 156)
2808 TEST_TYPE_ALIGN (ENUMLOGFONTA, 4)
2809 TEST_FIELD_SIZE (ENUMLOGFONTA, elfLogFont, 60)
2810 TEST_FIELD_ALIGN (ENUMLOGFONTA, elfLogFont, 4)
2811 TEST_FIELD_OFFSET(ENUMLOGFONTA, elfLogFont, 0)
2812 TEST_FIELD_SIZE (ENUMLOGFONTA, elfFullName, 64)
2813 TEST_FIELD_ALIGN (ENUMLOGFONTA, elfFullName, 1)
2814 TEST_FIELD_OFFSET(ENUMLOGFONTA, elfFullName, 60)
2815 TEST_FIELD_SIZE (ENUMLOGFONTA, elfStyle, 32)
2816 TEST_FIELD_ALIGN (ENUMLOGFONTA, elfStyle, 1)
2817 TEST_FIELD_OFFSET(ENUMLOGFONTA, elfStyle, 124)
2820 static void test_pack_ENUMLOGFONTEXA(void)
2822 /* ENUMLOGFONTEXA */
2823 TEST_TYPE_SIZE (ENUMLOGFONTEXA, 188)
2824 TEST_TYPE_ALIGN (ENUMLOGFONTEXA, 4)
2825 TEST_FIELD_SIZE (ENUMLOGFONTEXA, elfLogFont, 60)
2826 TEST_FIELD_ALIGN (ENUMLOGFONTEXA, elfLogFont, 4)
2827 TEST_FIELD_OFFSET(ENUMLOGFONTEXA, elfLogFont, 0)
2828 TEST_FIELD_SIZE (ENUMLOGFONTEXA, elfFullName, 64)
2829 TEST_FIELD_ALIGN (ENUMLOGFONTEXA, elfFullName, 1)
2830 TEST_FIELD_OFFSET(ENUMLOGFONTEXA, elfFullName, 60)
2831 TEST_FIELD_SIZE (ENUMLOGFONTEXA, elfStyle, 32)
2832 TEST_FIELD_ALIGN (ENUMLOGFONTEXA, elfStyle, 1)
2833 TEST_FIELD_OFFSET(ENUMLOGFONTEXA, elfStyle, 124)
2834 TEST_FIELD_SIZE (ENUMLOGFONTEXA, elfScript, 32)
2835 TEST_FIELD_ALIGN (ENUMLOGFONTEXA, elfScript, 1)
2836 TEST_FIELD_OFFSET(ENUMLOGFONTEXA, elfScript, 156)
2839 static void test_pack_ENUMLOGFONTEXW(void)
2841 /* ENUMLOGFONTEXW */
2842 TEST_TYPE_SIZE (ENUMLOGFONTEXW, 348)
2843 TEST_TYPE_ALIGN (ENUMLOGFONTEXW, 4)
2844 TEST_FIELD_SIZE (ENUMLOGFONTEXW, elfLogFont, 92)
2845 TEST_FIELD_ALIGN (ENUMLOGFONTEXW, elfLogFont, 4)
2846 TEST_FIELD_OFFSET(ENUMLOGFONTEXW, elfLogFont, 0)
2847 TEST_FIELD_SIZE (ENUMLOGFONTEXW, elfFullName, 128)
2848 TEST_FIELD_ALIGN (ENUMLOGFONTEXW, elfFullName, 2)
2849 TEST_FIELD_OFFSET(ENUMLOGFONTEXW, elfFullName, 92)
2850 TEST_FIELD_SIZE (ENUMLOGFONTEXW, elfStyle, 64)
2851 TEST_FIELD_ALIGN (ENUMLOGFONTEXW, elfStyle, 2)
2852 TEST_FIELD_OFFSET(ENUMLOGFONTEXW, elfStyle, 220)
2853 TEST_FIELD_SIZE (ENUMLOGFONTEXW, elfScript, 64)
2854 TEST_FIELD_ALIGN (ENUMLOGFONTEXW, elfScript, 2)
2855 TEST_FIELD_OFFSET(ENUMLOGFONTEXW, elfScript, 284)
2858 static void test_pack_ENUMLOGFONTW(void)
2860 /* ENUMLOGFONTW */
2861 TEST_TYPE_SIZE (ENUMLOGFONTW, 284)
2862 TEST_TYPE_ALIGN (ENUMLOGFONTW, 4)
2863 TEST_FIELD_SIZE (ENUMLOGFONTW, elfLogFont, 92)
2864 TEST_FIELD_ALIGN (ENUMLOGFONTW, elfLogFont, 4)
2865 TEST_FIELD_OFFSET(ENUMLOGFONTW, elfLogFont, 0)
2866 TEST_FIELD_SIZE (ENUMLOGFONTW, elfFullName, 128)
2867 TEST_FIELD_ALIGN (ENUMLOGFONTW, elfFullName, 2)
2868 TEST_FIELD_OFFSET(ENUMLOGFONTW, elfFullName, 92)
2869 TEST_FIELD_SIZE (ENUMLOGFONTW, elfStyle, 64)
2870 TEST_FIELD_ALIGN (ENUMLOGFONTW, elfStyle, 2)
2871 TEST_FIELD_OFFSET(ENUMLOGFONTW, elfStyle, 220)
2874 static void test_pack_EXTLOGFONTA(void)
2876 /* EXTLOGFONTA */
2877 TEST_TYPE_SIZE (EXTLOGFONTA, 192)
2878 TEST_TYPE_ALIGN (EXTLOGFONTA, 4)
2879 TEST_FIELD_SIZE (EXTLOGFONTA, elfLogFont, 60)
2880 TEST_FIELD_ALIGN (EXTLOGFONTA, elfLogFont, 4)
2881 TEST_FIELD_OFFSET(EXTLOGFONTA, elfLogFont, 0)
2882 TEST_FIELD_SIZE (EXTLOGFONTA, elfFullName, 64)
2883 TEST_FIELD_ALIGN (EXTLOGFONTA, elfFullName, 1)
2884 TEST_FIELD_OFFSET(EXTLOGFONTA, elfFullName, 60)
2885 TEST_FIELD_SIZE (EXTLOGFONTA, elfStyle, 32)
2886 TEST_FIELD_ALIGN (EXTLOGFONTA, elfStyle, 1)
2887 TEST_FIELD_OFFSET(EXTLOGFONTA, elfStyle, 124)
2888 TEST_FIELD_SIZE (EXTLOGFONTA, elfVersion, 4)
2889 TEST_FIELD_ALIGN (EXTLOGFONTA, elfVersion, 4)
2890 TEST_FIELD_OFFSET(EXTLOGFONTA, elfVersion, 156)
2891 TEST_FIELD_SIZE (EXTLOGFONTA, elfStyleSize, 4)
2892 TEST_FIELD_ALIGN (EXTLOGFONTA, elfStyleSize, 4)
2893 TEST_FIELD_OFFSET(EXTLOGFONTA, elfStyleSize, 160)
2894 TEST_FIELD_SIZE (EXTLOGFONTA, elfMatch, 4)
2895 TEST_FIELD_ALIGN (EXTLOGFONTA, elfMatch, 4)
2896 TEST_FIELD_OFFSET(EXTLOGFONTA, elfMatch, 164)
2897 TEST_FIELD_SIZE (EXTLOGFONTA, elfReserved, 4)
2898 TEST_FIELD_ALIGN (EXTLOGFONTA, elfReserved, 4)
2899 TEST_FIELD_OFFSET(EXTLOGFONTA, elfReserved, 168)
2900 TEST_FIELD_SIZE (EXTLOGFONTA, elfVendorId, 4)
2901 TEST_FIELD_ALIGN (EXTLOGFONTA, elfVendorId, 1)
2902 TEST_FIELD_OFFSET(EXTLOGFONTA, elfVendorId, 172)
2903 TEST_FIELD_SIZE (EXTLOGFONTA, elfCulture, 4)
2904 TEST_FIELD_ALIGN (EXTLOGFONTA, elfCulture, 4)
2905 TEST_FIELD_OFFSET(EXTLOGFONTA, elfCulture, 176)
2906 TEST_FIELD_SIZE (EXTLOGFONTA, elfPanose, 10)
2907 TEST_FIELD_ALIGN (EXTLOGFONTA, elfPanose, 1)
2908 TEST_FIELD_OFFSET(EXTLOGFONTA, elfPanose, 180)
2911 static void test_pack_EXTLOGFONTW(void)
2913 /* EXTLOGFONTW */
2914 TEST_TYPE_SIZE (EXTLOGFONTW, 320)
2915 TEST_TYPE_ALIGN (EXTLOGFONTW, 4)
2916 TEST_FIELD_SIZE (EXTLOGFONTW, elfLogFont, 92)
2917 TEST_FIELD_ALIGN (EXTLOGFONTW, elfLogFont, 4)
2918 TEST_FIELD_OFFSET(EXTLOGFONTW, elfLogFont, 0)
2919 TEST_FIELD_SIZE (EXTLOGFONTW, elfFullName, 128)
2920 TEST_FIELD_ALIGN (EXTLOGFONTW, elfFullName, 2)
2921 TEST_FIELD_OFFSET(EXTLOGFONTW, elfFullName, 92)
2922 TEST_FIELD_SIZE (EXTLOGFONTW, elfStyle, 64)
2923 TEST_FIELD_ALIGN (EXTLOGFONTW, elfStyle, 2)
2924 TEST_FIELD_OFFSET(EXTLOGFONTW, elfStyle, 220)
2925 TEST_FIELD_SIZE (EXTLOGFONTW, elfVersion, 4)
2926 TEST_FIELD_ALIGN (EXTLOGFONTW, elfVersion, 4)
2927 TEST_FIELD_OFFSET(EXTLOGFONTW, elfVersion, 284)
2928 TEST_FIELD_SIZE (EXTLOGFONTW, elfStyleSize, 4)
2929 TEST_FIELD_ALIGN (EXTLOGFONTW, elfStyleSize, 4)
2930 TEST_FIELD_OFFSET(EXTLOGFONTW, elfStyleSize, 288)
2931 TEST_FIELD_SIZE (EXTLOGFONTW, elfMatch, 4)
2932 TEST_FIELD_ALIGN (EXTLOGFONTW, elfMatch, 4)
2933 TEST_FIELD_OFFSET(EXTLOGFONTW, elfMatch, 292)
2934 TEST_FIELD_SIZE (EXTLOGFONTW, elfReserved, 4)
2935 TEST_FIELD_ALIGN (EXTLOGFONTW, elfReserved, 4)
2936 TEST_FIELD_OFFSET(EXTLOGFONTW, elfReserved, 296)
2937 TEST_FIELD_SIZE (EXTLOGFONTW, elfVendorId, 4)
2938 TEST_FIELD_ALIGN (EXTLOGFONTW, elfVendorId, 1)
2939 TEST_FIELD_OFFSET(EXTLOGFONTW, elfVendorId, 300)
2940 TEST_FIELD_SIZE (EXTLOGFONTW, elfCulture, 4)
2941 TEST_FIELD_ALIGN (EXTLOGFONTW, elfCulture, 4)
2942 TEST_FIELD_OFFSET(EXTLOGFONTW, elfCulture, 304)
2943 TEST_FIELD_SIZE (EXTLOGFONTW, elfPanose, 10)
2944 TEST_FIELD_ALIGN (EXTLOGFONTW, elfPanose, 1)
2945 TEST_FIELD_OFFSET(EXTLOGFONTW, elfPanose, 308)
2948 static void test_pack_EXTLOGPEN(void)
2950 /* EXTLOGPEN */
2951 TEST_TYPE_SIZE (EXTLOGPEN, 32)
2952 TEST_TYPE_ALIGN (EXTLOGPEN, 8)
2953 TEST_FIELD_SIZE (EXTLOGPEN, elpPenStyle, 4)
2954 TEST_FIELD_ALIGN (EXTLOGPEN, elpPenStyle, 4)
2955 TEST_FIELD_OFFSET(EXTLOGPEN, elpPenStyle, 0)
2956 TEST_FIELD_SIZE (EXTLOGPEN, elpWidth, 4)
2957 TEST_FIELD_ALIGN (EXTLOGPEN, elpWidth, 4)
2958 TEST_FIELD_OFFSET(EXTLOGPEN, elpWidth, 4)
2959 TEST_FIELD_SIZE (EXTLOGPEN, elpBrushStyle, 4)
2960 TEST_FIELD_ALIGN (EXTLOGPEN, elpBrushStyle, 4)
2961 TEST_FIELD_OFFSET(EXTLOGPEN, elpBrushStyle, 8)
2962 TEST_FIELD_SIZE (EXTLOGPEN, elpColor, 4)
2963 TEST_FIELD_ALIGN (EXTLOGPEN, elpColor, 4)
2964 TEST_FIELD_OFFSET(EXTLOGPEN, elpColor, 12)
2965 TEST_FIELD_SIZE (EXTLOGPEN, elpHatch, 8)
2966 TEST_FIELD_ALIGN (EXTLOGPEN, elpHatch, 8)
2967 TEST_FIELD_OFFSET(EXTLOGPEN, elpHatch, 16)
2968 TEST_FIELD_SIZE (EXTLOGPEN, elpNumEntries, 4)
2969 TEST_FIELD_ALIGN (EXTLOGPEN, elpNumEntries, 4)
2970 TEST_FIELD_OFFSET(EXTLOGPEN, elpNumEntries, 24)
2971 TEST_FIELD_SIZE (EXTLOGPEN, elpStyleEntry, 4)
2972 TEST_FIELD_ALIGN (EXTLOGPEN, elpStyleEntry, 4)
2973 TEST_FIELD_OFFSET(EXTLOGPEN, elpStyleEntry, 28)
2976 static void test_pack_FIXED(void)
2978 /* FIXED */
2979 TEST_TYPE_SIZE (FIXED, 4)
2980 TEST_TYPE_ALIGN (FIXED, 2)
2981 TEST_FIELD_SIZE (FIXED, fract, 2)
2982 TEST_FIELD_ALIGN (FIXED, fract, 2)
2983 TEST_FIELD_OFFSET(FIXED, fract, 0)
2984 TEST_FIELD_SIZE (FIXED, value, 2)
2985 TEST_FIELD_ALIGN (FIXED, value, 2)
2986 TEST_FIELD_OFFSET(FIXED, value, 2)
2989 static void test_pack_FONTENUMPROCA(void)
2991 /* FONTENUMPROCA */
2992 TEST_TYPE_SIZE (FONTENUMPROCA, 8)
2993 TEST_TYPE_ALIGN (FONTENUMPROCA, 8)
2996 static void test_pack_FONTENUMPROCW(void)
2998 /* FONTENUMPROCW */
2999 TEST_TYPE_SIZE (FONTENUMPROCW, 8)
3000 TEST_TYPE_ALIGN (FONTENUMPROCW, 8)
3003 static void test_pack_FONTSIGNATURE(void)
3005 /* FONTSIGNATURE */
3006 TEST_TYPE_SIZE (FONTSIGNATURE, 24)
3007 TEST_TYPE_ALIGN (FONTSIGNATURE, 4)
3008 TEST_FIELD_SIZE (FONTSIGNATURE, fsUsb, 16)
3009 TEST_FIELD_ALIGN (FONTSIGNATURE, fsUsb, 4)
3010 TEST_FIELD_OFFSET(FONTSIGNATURE, fsUsb, 0)
3011 TEST_FIELD_SIZE (FONTSIGNATURE, fsCsb, 8)
3012 TEST_FIELD_ALIGN (FONTSIGNATURE, fsCsb, 4)
3013 TEST_FIELD_OFFSET(FONTSIGNATURE, fsCsb, 16)
3016 static void test_pack_FXPT16DOT16(void)
3018 /* FXPT16DOT16 */
3019 TEST_TYPE_SIZE (FXPT16DOT16, 4)
3020 TEST_TYPE_ALIGN (FXPT16DOT16, 4)
3023 static void test_pack_FXPT2DOT30(void)
3025 /* FXPT2DOT30 */
3026 TEST_TYPE_SIZE (FXPT2DOT30, 4)
3027 TEST_TYPE_ALIGN (FXPT2DOT30, 4)
3030 static void test_pack_GCP_RESULTSA(void)
3032 /* GCP_RESULTSA */
3033 TEST_TYPE_SIZE (GCP_RESULTSA, 64)
3034 TEST_TYPE_ALIGN (GCP_RESULTSA, 8)
3035 TEST_FIELD_SIZE (GCP_RESULTSA, lStructSize, 4)
3036 TEST_FIELD_ALIGN (GCP_RESULTSA, lStructSize, 4)
3037 TEST_FIELD_OFFSET(GCP_RESULTSA, lStructSize, 0)
3038 TEST_FIELD_SIZE (GCP_RESULTSA, lpOutString, 8)
3039 TEST_FIELD_ALIGN (GCP_RESULTSA, lpOutString, 8)
3040 TEST_FIELD_OFFSET(GCP_RESULTSA, lpOutString, 8)
3041 TEST_FIELD_SIZE (GCP_RESULTSA, lpOrder, 8)
3042 TEST_FIELD_ALIGN (GCP_RESULTSA, lpOrder, 8)
3043 TEST_FIELD_OFFSET(GCP_RESULTSA, lpOrder, 16)
3044 TEST_FIELD_SIZE (GCP_RESULTSA, lpDx, 8)
3045 TEST_FIELD_ALIGN (GCP_RESULTSA, lpDx, 8)
3046 TEST_FIELD_OFFSET(GCP_RESULTSA, lpDx, 24)
3047 TEST_FIELD_SIZE (GCP_RESULTSA, lpCaretPos, 8)
3048 TEST_FIELD_ALIGN (GCP_RESULTSA, lpCaretPos, 8)
3049 TEST_FIELD_OFFSET(GCP_RESULTSA, lpCaretPos, 32)
3050 TEST_FIELD_SIZE (GCP_RESULTSA, lpClass, 8)
3051 TEST_FIELD_ALIGN (GCP_RESULTSA, lpClass, 8)
3052 TEST_FIELD_OFFSET(GCP_RESULTSA, lpClass, 40)
3053 TEST_FIELD_SIZE (GCP_RESULTSA, lpGlyphs, 8)
3054 TEST_FIELD_ALIGN (GCP_RESULTSA, lpGlyphs, 8)
3055 TEST_FIELD_OFFSET(GCP_RESULTSA, lpGlyphs, 48)
3056 TEST_FIELD_SIZE (GCP_RESULTSA, nGlyphs, 4)
3057 TEST_FIELD_ALIGN (GCP_RESULTSA, nGlyphs, 4)
3058 TEST_FIELD_OFFSET(GCP_RESULTSA, nGlyphs, 56)
3059 TEST_FIELD_SIZE (GCP_RESULTSA, nMaxFit, 4)
3060 TEST_FIELD_ALIGN (GCP_RESULTSA, nMaxFit, 4)
3061 TEST_FIELD_OFFSET(GCP_RESULTSA, nMaxFit, 60)
3064 static void test_pack_GCP_RESULTSW(void)
3066 /* GCP_RESULTSW */
3067 TEST_TYPE_SIZE (GCP_RESULTSW, 64)
3068 TEST_TYPE_ALIGN (GCP_RESULTSW, 8)
3069 TEST_FIELD_SIZE (GCP_RESULTSW, lStructSize, 4)
3070 TEST_FIELD_ALIGN (GCP_RESULTSW, lStructSize, 4)
3071 TEST_FIELD_OFFSET(GCP_RESULTSW, lStructSize, 0)
3072 TEST_FIELD_SIZE (GCP_RESULTSW, lpOutString, 8)
3073 TEST_FIELD_ALIGN (GCP_RESULTSW, lpOutString, 8)
3074 TEST_FIELD_OFFSET(GCP_RESULTSW, lpOutString, 8)
3075 TEST_FIELD_SIZE (GCP_RESULTSW, lpOrder, 8)
3076 TEST_FIELD_ALIGN (GCP_RESULTSW, lpOrder, 8)
3077 TEST_FIELD_OFFSET(GCP_RESULTSW, lpOrder, 16)
3078 TEST_FIELD_SIZE (GCP_RESULTSW, lpDx, 8)
3079 TEST_FIELD_ALIGN (GCP_RESULTSW, lpDx, 8)
3080 TEST_FIELD_OFFSET(GCP_RESULTSW, lpDx, 24)
3081 TEST_FIELD_SIZE (GCP_RESULTSW, lpCaretPos, 8)
3082 TEST_FIELD_ALIGN (GCP_RESULTSW, lpCaretPos, 8)
3083 TEST_FIELD_OFFSET(GCP_RESULTSW, lpCaretPos, 32)
3084 TEST_FIELD_SIZE (GCP_RESULTSW, lpClass, 8)
3085 TEST_FIELD_ALIGN (GCP_RESULTSW, lpClass, 8)
3086 TEST_FIELD_OFFSET(GCP_RESULTSW, lpClass, 40)
3087 TEST_FIELD_SIZE (GCP_RESULTSW, lpGlyphs, 8)
3088 TEST_FIELD_ALIGN (GCP_RESULTSW, lpGlyphs, 8)
3089 TEST_FIELD_OFFSET(GCP_RESULTSW, lpGlyphs, 48)
3090 TEST_FIELD_SIZE (GCP_RESULTSW, nGlyphs, 4)
3091 TEST_FIELD_ALIGN (GCP_RESULTSW, nGlyphs, 4)
3092 TEST_FIELD_OFFSET(GCP_RESULTSW, nGlyphs, 56)
3093 TEST_FIELD_SIZE (GCP_RESULTSW, nMaxFit, 4)
3094 TEST_FIELD_ALIGN (GCP_RESULTSW, nMaxFit, 4)
3095 TEST_FIELD_OFFSET(GCP_RESULTSW, nMaxFit, 60)
3098 static void test_pack_GLYPHMETRICS(void)
3100 /* GLYPHMETRICS */
3101 TEST_TYPE_SIZE (GLYPHMETRICS, 20)
3102 TEST_TYPE_ALIGN (GLYPHMETRICS, 4)
3103 TEST_FIELD_SIZE (GLYPHMETRICS, gmBlackBoxX, 4)
3104 TEST_FIELD_ALIGN (GLYPHMETRICS, gmBlackBoxX, 4)
3105 TEST_FIELD_OFFSET(GLYPHMETRICS, gmBlackBoxX, 0)
3106 TEST_FIELD_SIZE (GLYPHMETRICS, gmBlackBoxY, 4)
3107 TEST_FIELD_ALIGN (GLYPHMETRICS, gmBlackBoxY, 4)
3108 TEST_FIELD_OFFSET(GLYPHMETRICS, gmBlackBoxY, 4)
3109 TEST_FIELD_SIZE (GLYPHMETRICS, gmptGlyphOrigin, 8)
3110 TEST_FIELD_ALIGN (GLYPHMETRICS, gmptGlyphOrigin, 4)
3111 TEST_FIELD_OFFSET(GLYPHMETRICS, gmptGlyphOrigin, 8)
3112 TEST_FIELD_SIZE (GLYPHMETRICS, gmCellIncX, 2)
3113 TEST_FIELD_ALIGN (GLYPHMETRICS, gmCellIncX, 2)
3114 TEST_FIELD_OFFSET(GLYPHMETRICS, gmCellIncX, 16)
3115 TEST_FIELD_SIZE (GLYPHMETRICS, gmCellIncY, 2)
3116 TEST_FIELD_ALIGN (GLYPHMETRICS, gmCellIncY, 2)
3117 TEST_FIELD_OFFSET(GLYPHMETRICS, gmCellIncY, 18)
3120 static void test_pack_GLYPHMETRICSFLOAT(void)
3122 /* GLYPHMETRICSFLOAT */
3123 TEST_TYPE_SIZE (GLYPHMETRICSFLOAT, 24)
3124 TEST_TYPE_ALIGN (GLYPHMETRICSFLOAT, 4)
3125 TEST_FIELD_SIZE (GLYPHMETRICSFLOAT, gmfBlackBoxX, 4)
3126 TEST_FIELD_ALIGN (GLYPHMETRICSFLOAT, gmfBlackBoxX, 4)
3127 TEST_FIELD_OFFSET(GLYPHMETRICSFLOAT, gmfBlackBoxX, 0)
3128 TEST_FIELD_SIZE (GLYPHMETRICSFLOAT, gmfBlackBoxY, 4)
3129 TEST_FIELD_ALIGN (GLYPHMETRICSFLOAT, gmfBlackBoxY, 4)
3130 TEST_FIELD_OFFSET(GLYPHMETRICSFLOAT, gmfBlackBoxY, 4)
3131 TEST_FIELD_SIZE (GLYPHMETRICSFLOAT, gmfptGlyphOrigin, 8)
3132 TEST_FIELD_ALIGN (GLYPHMETRICSFLOAT, gmfptGlyphOrigin, 4)
3133 TEST_FIELD_OFFSET(GLYPHMETRICSFLOAT, gmfptGlyphOrigin, 8)
3134 TEST_FIELD_SIZE (GLYPHMETRICSFLOAT, gmfCellIncX, 4)
3135 TEST_FIELD_ALIGN (GLYPHMETRICSFLOAT, gmfCellIncX, 4)
3136 TEST_FIELD_OFFSET(GLYPHMETRICSFLOAT, gmfCellIncX, 16)
3137 TEST_FIELD_SIZE (GLYPHMETRICSFLOAT, gmfCellIncY, 4)
3138 TEST_FIELD_ALIGN (GLYPHMETRICSFLOAT, gmfCellIncY, 4)
3139 TEST_FIELD_OFFSET(GLYPHMETRICSFLOAT, gmfCellIncY, 20)
3142 static void test_pack_GOBJENUMPROC(void)
3144 /* GOBJENUMPROC */
3145 TEST_TYPE_SIZE (GOBJENUMPROC, 8)
3146 TEST_TYPE_ALIGN (GOBJENUMPROC, 8)
3149 static void test_pack_GRADIENT_RECT(void)
3151 /* GRADIENT_RECT */
3152 TEST_TYPE_SIZE (GRADIENT_RECT, 8)
3153 TEST_TYPE_ALIGN (GRADIENT_RECT, 4)
3154 TEST_FIELD_SIZE (GRADIENT_RECT, UpperLeft, 4)
3155 TEST_FIELD_ALIGN (GRADIENT_RECT, UpperLeft, 4)
3156 TEST_FIELD_OFFSET(GRADIENT_RECT, UpperLeft, 0)
3157 TEST_FIELD_SIZE (GRADIENT_RECT, LowerRight, 4)
3158 TEST_FIELD_ALIGN (GRADIENT_RECT, LowerRight, 4)
3159 TEST_FIELD_OFFSET(GRADIENT_RECT, LowerRight, 4)
3162 static void test_pack_GRADIENT_TRIANGLE(void)
3164 /* GRADIENT_TRIANGLE */
3165 TEST_TYPE_SIZE (GRADIENT_TRIANGLE, 12)
3166 TEST_TYPE_ALIGN (GRADIENT_TRIANGLE, 4)
3167 TEST_FIELD_SIZE (GRADIENT_TRIANGLE, Vertex1, 4)
3168 TEST_FIELD_ALIGN (GRADIENT_TRIANGLE, Vertex1, 4)
3169 TEST_FIELD_OFFSET(GRADIENT_TRIANGLE, Vertex1, 0)
3170 TEST_FIELD_SIZE (GRADIENT_TRIANGLE, Vertex2, 4)
3171 TEST_FIELD_ALIGN (GRADIENT_TRIANGLE, Vertex2, 4)
3172 TEST_FIELD_OFFSET(GRADIENT_TRIANGLE, Vertex2, 4)
3173 TEST_FIELD_SIZE (GRADIENT_TRIANGLE, Vertex3, 4)
3174 TEST_FIELD_ALIGN (GRADIENT_TRIANGLE, Vertex3, 4)
3175 TEST_FIELD_OFFSET(GRADIENT_TRIANGLE, Vertex3, 8)
3178 static void test_pack_HANDLETABLE(void)
3180 /* HANDLETABLE */
3181 TEST_TYPE_SIZE (HANDLETABLE, 8)
3182 TEST_TYPE_ALIGN (HANDLETABLE, 8)
3183 TEST_FIELD_SIZE (HANDLETABLE, objectHandle, 8)
3184 TEST_FIELD_ALIGN (HANDLETABLE, objectHandle, 8)
3185 TEST_FIELD_OFFSET(HANDLETABLE, objectHandle, 0)
3188 static void test_pack_ICMENUMPROCA(void)
3190 /* ICMENUMPROCA */
3191 TEST_TYPE_SIZE (ICMENUMPROCA, 8)
3192 TEST_TYPE_ALIGN (ICMENUMPROCA, 8)
3195 static void test_pack_ICMENUMPROCW(void)
3197 /* ICMENUMPROCW */
3198 TEST_TYPE_SIZE (ICMENUMPROCW, 8)
3199 TEST_TYPE_ALIGN (ICMENUMPROCW, 8)
3202 static void test_pack_KERNINGPAIR(void)
3204 /* KERNINGPAIR */
3205 TEST_TYPE_SIZE (KERNINGPAIR, 8)
3206 TEST_TYPE_ALIGN (KERNINGPAIR, 4)
3207 TEST_FIELD_SIZE (KERNINGPAIR, wFirst, 2)
3208 TEST_FIELD_ALIGN (KERNINGPAIR, wFirst, 2)
3209 TEST_FIELD_OFFSET(KERNINGPAIR, wFirst, 0)
3210 TEST_FIELD_SIZE (KERNINGPAIR, wSecond, 2)
3211 TEST_FIELD_ALIGN (KERNINGPAIR, wSecond, 2)
3212 TEST_FIELD_OFFSET(KERNINGPAIR, wSecond, 2)
3213 TEST_FIELD_SIZE (KERNINGPAIR, iKernAmount, 4)
3214 TEST_FIELD_ALIGN (KERNINGPAIR, iKernAmount, 4)
3215 TEST_FIELD_OFFSET(KERNINGPAIR, iKernAmount, 4)
3218 static void test_pack_LAYERPLANEDESCRIPTOR(void)
3220 /* LAYERPLANEDESCRIPTOR */
3221 TEST_TYPE_SIZE (LAYERPLANEDESCRIPTOR, 32)
3222 TEST_TYPE_ALIGN (LAYERPLANEDESCRIPTOR, 4)
3223 TEST_FIELD_SIZE (LAYERPLANEDESCRIPTOR, nSize, 2)
3224 TEST_FIELD_ALIGN (LAYERPLANEDESCRIPTOR, nSize, 2)
3225 TEST_FIELD_OFFSET(LAYERPLANEDESCRIPTOR, nSize, 0)
3226 TEST_FIELD_SIZE (LAYERPLANEDESCRIPTOR, nVersion, 2)
3227 TEST_FIELD_ALIGN (LAYERPLANEDESCRIPTOR, nVersion, 2)
3228 TEST_FIELD_OFFSET(LAYERPLANEDESCRIPTOR, nVersion, 2)
3229 TEST_FIELD_SIZE (LAYERPLANEDESCRIPTOR, dwFlags, 4)
3230 TEST_FIELD_ALIGN (LAYERPLANEDESCRIPTOR, dwFlags, 4)
3231 TEST_FIELD_OFFSET(LAYERPLANEDESCRIPTOR, dwFlags, 4)
3232 TEST_FIELD_SIZE (LAYERPLANEDESCRIPTOR, iPixelType, 1)
3233 TEST_FIELD_ALIGN (LAYERPLANEDESCRIPTOR, iPixelType, 1)
3234 TEST_FIELD_OFFSET(LAYERPLANEDESCRIPTOR, iPixelType, 8)
3235 TEST_FIELD_SIZE (LAYERPLANEDESCRIPTOR, cColorBits, 1)
3236 TEST_FIELD_ALIGN (LAYERPLANEDESCRIPTOR, cColorBits, 1)
3237 TEST_FIELD_OFFSET(LAYERPLANEDESCRIPTOR, cColorBits, 9)
3238 TEST_FIELD_SIZE (LAYERPLANEDESCRIPTOR, cRedBits, 1)
3239 TEST_FIELD_ALIGN (LAYERPLANEDESCRIPTOR, cRedBits, 1)
3240 TEST_FIELD_OFFSET(LAYERPLANEDESCRIPTOR, cRedBits, 10)
3241 TEST_FIELD_SIZE (LAYERPLANEDESCRIPTOR, cRedShift, 1)
3242 TEST_FIELD_ALIGN (LAYERPLANEDESCRIPTOR, cRedShift, 1)
3243 TEST_FIELD_OFFSET(LAYERPLANEDESCRIPTOR, cRedShift, 11)
3244 TEST_FIELD_SIZE (LAYERPLANEDESCRIPTOR, cGreenBits, 1)
3245 TEST_FIELD_ALIGN (LAYERPLANEDESCRIPTOR, cGreenBits, 1)
3246 TEST_FIELD_OFFSET(LAYERPLANEDESCRIPTOR, cGreenBits, 12)
3247 TEST_FIELD_SIZE (LAYERPLANEDESCRIPTOR, cGreenShift, 1)
3248 TEST_FIELD_ALIGN (LAYERPLANEDESCRIPTOR, cGreenShift, 1)
3249 TEST_FIELD_OFFSET(LAYERPLANEDESCRIPTOR, cGreenShift, 13)
3250 TEST_FIELD_SIZE (LAYERPLANEDESCRIPTOR, cBlueBits, 1)
3251 TEST_FIELD_ALIGN (LAYERPLANEDESCRIPTOR, cBlueBits, 1)
3252 TEST_FIELD_OFFSET(LAYERPLANEDESCRIPTOR, cBlueBits, 14)
3253 TEST_FIELD_SIZE (LAYERPLANEDESCRIPTOR, cBlueShift, 1)
3254 TEST_FIELD_ALIGN (LAYERPLANEDESCRIPTOR, cBlueShift, 1)
3255 TEST_FIELD_OFFSET(LAYERPLANEDESCRIPTOR, cBlueShift, 15)
3256 TEST_FIELD_SIZE (LAYERPLANEDESCRIPTOR, cAlphaBits, 1)
3257 TEST_FIELD_ALIGN (LAYERPLANEDESCRIPTOR, cAlphaBits, 1)
3258 TEST_FIELD_OFFSET(LAYERPLANEDESCRIPTOR, cAlphaBits, 16)
3259 TEST_FIELD_SIZE (LAYERPLANEDESCRIPTOR, cAlphaShift, 1)
3260 TEST_FIELD_ALIGN (LAYERPLANEDESCRIPTOR, cAlphaShift, 1)
3261 TEST_FIELD_OFFSET(LAYERPLANEDESCRIPTOR, cAlphaShift, 17)
3262 TEST_FIELD_SIZE (LAYERPLANEDESCRIPTOR, cAccumBits, 1)
3263 TEST_FIELD_ALIGN (LAYERPLANEDESCRIPTOR, cAccumBits, 1)
3264 TEST_FIELD_OFFSET(LAYERPLANEDESCRIPTOR, cAccumBits, 18)
3265 TEST_FIELD_SIZE (LAYERPLANEDESCRIPTOR, cAccumRedBits, 1)
3266 TEST_FIELD_ALIGN (LAYERPLANEDESCRIPTOR, cAccumRedBits, 1)
3267 TEST_FIELD_OFFSET(LAYERPLANEDESCRIPTOR, cAccumRedBits, 19)
3268 TEST_FIELD_SIZE (LAYERPLANEDESCRIPTOR, cAccumGreenBits, 1)
3269 TEST_FIELD_ALIGN (LAYERPLANEDESCRIPTOR, cAccumGreenBits, 1)
3270 TEST_FIELD_OFFSET(LAYERPLANEDESCRIPTOR, cAccumGreenBits, 20)
3271 TEST_FIELD_SIZE (LAYERPLANEDESCRIPTOR, cAccumBlueBits, 1)
3272 TEST_FIELD_ALIGN (LAYERPLANEDESCRIPTOR, cAccumBlueBits, 1)
3273 TEST_FIELD_OFFSET(LAYERPLANEDESCRIPTOR, cAccumBlueBits, 21)
3274 TEST_FIELD_SIZE (LAYERPLANEDESCRIPTOR, cAccumAlphaBits, 1)
3275 TEST_FIELD_ALIGN (LAYERPLANEDESCRIPTOR, cAccumAlphaBits, 1)
3276 TEST_FIELD_OFFSET(LAYERPLANEDESCRIPTOR, cAccumAlphaBits, 22)
3277 TEST_FIELD_SIZE (LAYERPLANEDESCRIPTOR, cDepthBits, 1)
3278 TEST_FIELD_ALIGN (LAYERPLANEDESCRIPTOR, cDepthBits, 1)
3279 TEST_FIELD_OFFSET(LAYERPLANEDESCRIPTOR, cDepthBits, 23)
3280 TEST_FIELD_SIZE (LAYERPLANEDESCRIPTOR, cStencilBits, 1)
3281 TEST_FIELD_ALIGN (LAYERPLANEDESCRIPTOR, cStencilBits, 1)
3282 TEST_FIELD_OFFSET(LAYERPLANEDESCRIPTOR, cStencilBits, 24)
3283 TEST_FIELD_SIZE (LAYERPLANEDESCRIPTOR, cAuxBuffers, 1)
3284 TEST_FIELD_ALIGN (LAYERPLANEDESCRIPTOR, cAuxBuffers, 1)
3285 TEST_FIELD_OFFSET(LAYERPLANEDESCRIPTOR, cAuxBuffers, 25)
3286 TEST_FIELD_SIZE (LAYERPLANEDESCRIPTOR, iLayerPlane, 1)
3287 TEST_FIELD_ALIGN (LAYERPLANEDESCRIPTOR, iLayerPlane, 1)
3288 TEST_FIELD_OFFSET(LAYERPLANEDESCRIPTOR, iLayerPlane, 26)
3289 TEST_FIELD_SIZE (LAYERPLANEDESCRIPTOR, bReserved, 1)
3290 TEST_FIELD_ALIGN (LAYERPLANEDESCRIPTOR, bReserved, 1)
3291 TEST_FIELD_OFFSET(LAYERPLANEDESCRIPTOR, bReserved, 27)
3292 TEST_FIELD_SIZE (LAYERPLANEDESCRIPTOR, crTransparent, 4)
3293 TEST_FIELD_ALIGN (LAYERPLANEDESCRIPTOR, crTransparent, 4)
3294 TEST_FIELD_OFFSET(LAYERPLANEDESCRIPTOR, crTransparent, 28)
3297 static void test_pack_LCSCSTYPE(void)
3299 /* LCSCSTYPE */
3300 TEST_TYPE_SIZE (LCSCSTYPE, 4)
3301 TEST_TYPE_ALIGN (LCSCSTYPE, 4)
3304 static void test_pack_LCSGAMUTMATCH(void)
3306 /* LCSGAMUTMATCH */
3307 TEST_TYPE_SIZE (LCSGAMUTMATCH, 4)
3308 TEST_TYPE_ALIGN (LCSGAMUTMATCH, 4)
3311 static void test_pack_LINEDDAPROC(void)
3313 /* LINEDDAPROC */
3314 TEST_TYPE_SIZE (LINEDDAPROC, 8)
3315 TEST_TYPE_ALIGN (LINEDDAPROC, 8)
3318 static void test_pack_LOCALESIGNATURE(void)
3320 /* LOCALESIGNATURE */
3321 TEST_TYPE_SIZE (LOCALESIGNATURE, 32)
3322 TEST_TYPE_ALIGN (LOCALESIGNATURE, 4)
3323 TEST_FIELD_SIZE (LOCALESIGNATURE, lsUsb, 16)
3324 TEST_FIELD_ALIGN (LOCALESIGNATURE, lsUsb, 4)
3325 TEST_FIELD_OFFSET(LOCALESIGNATURE, lsUsb, 0)
3326 TEST_FIELD_SIZE (LOCALESIGNATURE, lsCsbDefault, 8)
3327 TEST_FIELD_ALIGN (LOCALESIGNATURE, lsCsbDefault, 4)
3328 TEST_FIELD_OFFSET(LOCALESIGNATURE, lsCsbDefault, 16)
3329 TEST_FIELD_SIZE (LOCALESIGNATURE, lsCsbSupported, 8)
3330 TEST_FIELD_ALIGN (LOCALESIGNATURE, lsCsbSupported, 4)
3331 TEST_FIELD_OFFSET(LOCALESIGNATURE, lsCsbSupported, 24)
3334 static void test_pack_LOGBRUSH(void)
3336 /* LOGBRUSH */
3337 TEST_TYPE_SIZE (LOGBRUSH, 16)
3338 TEST_TYPE_ALIGN (LOGBRUSH, 8)
3339 TEST_FIELD_SIZE (LOGBRUSH, lbStyle, 4)
3340 TEST_FIELD_ALIGN (LOGBRUSH, lbStyle, 4)
3341 TEST_FIELD_OFFSET(LOGBRUSH, lbStyle, 0)
3342 TEST_FIELD_SIZE (LOGBRUSH, lbColor, 4)
3343 TEST_FIELD_ALIGN (LOGBRUSH, lbColor, 4)
3344 TEST_FIELD_OFFSET(LOGBRUSH, lbColor, 4)
3345 TEST_FIELD_SIZE (LOGBRUSH, lbHatch, 8)
3346 TEST_FIELD_ALIGN (LOGBRUSH, lbHatch, 8)
3347 TEST_FIELD_OFFSET(LOGBRUSH, lbHatch, 8)
3350 static void test_pack_LOGCOLORSPACEA(void)
3352 /* LOGCOLORSPACEA */
3353 TEST_TYPE_SIZE (LOGCOLORSPACEA, 328)
3354 TEST_TYPE_ALIGN (LOGCOLORSPACEA, 4)
3355 TEST_FIELD_SIZE (LOGCOLORSPACEA, lcsSignature, 4)
3356 TEST_FIELD_ALIGN (LOGCOLORSPACEA, lcsSignature, 4)
3357 TEST_FIELD_OFFSET(LOGCOLORSPACEA, lcsSignature, 0)
3358 TEST_FIELD_SIZE (LOGCOLORSPACEA, lcsVersion, 4)
3359 TEST_FIELD_ALIGN (LOGCOLORSPACEA, lcsVersion, 4)
3360 TEST_FIELD_OFFSET(LOGCOLORSPACEA, lcsVersion, 4)
3361 TEST_FIELD_SIZE (LOGCOLORSPACEA, lcsSize, 4)
3362 TEST_FIELD_ALIGN (LOGCOLORSPACEA, lcsSize, 4)
3363 TEST_FIELD_OFFSET(LOGCOLORSPACEA, lcsSize, 8)
3364 TEST_FIELD_SIZE (LOGCOLORSPACEA, lcsCSType, 4)
3365 TEST_FIELD_ALIGN (LOGCOLORSPACEA, lcsCSType, 4)
3366 TEST_FIELD_OFFSET(LOGCOLORSPACEA, lcsCSType, 12)
3367 TEST_FIELD_SIZE (LOGCOLORSPACEA, lcsIntent, 4)
3368 TEST_FIELD_ALIGN (LOGCOLORSPACEA, lcsIntent, 4)
3369 TEST_FIELD_OFFSET(LOGCOLORSPACEA, lcsIntent, 16)
3370 TEST_FIELD_SIZE (LOGCOLORSPACEA, lcsEndpoints, 36)
3371 TEST_FIELD_ALIGN (LOGCOLORSPACEA, lcsEndpoints, 4)
3372 TEST_FIELD_OFFSET(LOGCOLORSPACEA, lcsEndpoints, 20)
3373 TEST_FIELD_SIZE (LOGCOLORSPACEA, lcsGammaRed, 4)
3374 TEST_FIELD_ALIGN (LOGCOLORSPACEA, lcsGammaRed, 4)
3375 TEST_FIELD_OFFSET(LOGCOLORSPACEA, lcsGammaRed, 56)
3376 TEST_FIELD_SIZE (LOGCOLORSPACEA, lcsGammaGreen, 4)
3377 TEST_FIELD_ALIGN (LOGCOLORSPACEA, lcsGammaGreen, 4)
3378 TEST_FIELD_OFFSET(LOGCOLORSPACEA, lcsGammaGreen, 60)
3379 TEST_FIELD_SIZE (LOGCOLORSPACEA, lcsGammaBlue, 4)
3380 TEST_FIELD_ALIGN (LOGCOLORSPACEA, lcsGammaBlue, 4)
3381 TEST_FIELD_OFFSET(LOGCOLORSPACEA, lcsGammaBlue, 64)
3382 TEST_FIELD_SIZE (LOGCOLORSPACEA, lcsFilename, 260)
3383 TEST_FIELD_ALIGN (LOGCOLORSPACEA, lcsFilename, 1)
3384 TEST_FIELD_OFFSET(LOGCOLORSPACEA, lcsFilename, 68)
3387 static void test_pack_LOGCOLORSPACEW(void)
3389 /* LOGCOLORSPACEW */
3390 TEST_TYPE_SIZE (LOGCOLORSPACEW, 588)
3391 TEST_TYPE_ALIGN (LOGCOLORSPACEW, 4)
3392 TEST_FIELD_SIZE (LOGCOLORSPACEW, lcsSignature, 4)
3393 TEST_FIELD_ALIGN (LOGCOLORSPACEW, lcsSignature, 4)
3394 TEST_FIELD_OFFSET(LOGCOLORSPACEW, lcsSignature, 0)
3395 TEST_FIELD_SIZE (LOGCOLORSPACEW, lcsVersion, 4)
3396 TEST_FIELD_ALIGN (LOGCOLORSPACEW, lcsVersion, 4)
3397 TEST_FIELD_OFFSET(LOGCOLORSPACEW, lcsVersion, 4)
3398 TEST_FIELD_SIZE (LOGCOLORSPACEW, lcsSize, 4)
3399 TEST_FIELD_ALIGN (LOGCOLORSPACEW, lcsSize, 4)
3400 TEST_FIELD_OFFSET(LOGCOLORSPACEW, lcsSize, 8)
3401 TEST_FIELD_SIZE (LOGCOLORSPACEW, lcsCSType, 4)
3402 TEST_FIELD_ALIGN (LOGCOLORSPACEW, lcsCSType, 4)
3403 TEST_FIELD_OFFSET(LOGCOLORSPACEW, lcsCSType, 12)
3404 TEST_FIELD_SIZE (LOGCOLORSPACEW, lcsIntent, 4)
3405 TEST_FIELD_ALIGN (LOGCOLORSPACEW, lcsIntent, 4)
3406 TEST_FIELD_OFFSET(LOGCOLORSPACEW, lcsIntent, 16)
3407 TEST_FIELD_SIZE (LOGCOLORSPACEW, lcsEndpoints, 36)
3408 TEST_FIELD_ALIGN (LOGCOLORSPACEW, lcsEndpoints, 4)
3409 TEST_FIELD_OFFSET(LOGCOLORSPACEW, lcsEndpoints, 20)
3410 TEST_FIELD_SIZE (LOGCOLORSPACEW, lcsGammaRed, 4)
3411 TEST_FIELD_ALIGN (LOGCOLORSPACEW, lcsGammaRed, 4)
3412 TEST_FIELD_OFFSET(LOGCOLORSPACEW, lcsGammaRed, 56)
3413 TEST_FIELD_SIZE (LOGCOLORSPACEW, lcsGammaGreen, 4)
3414 TEST_FIELD_ALIGN (LOGCOLORSPACEW, lcsGammaGreen, 4)
3415 TEST_FIELD_OFFSET(LOGCOLORSPACEW, lcsGammaGreen, 60)
3416 TEST_FIELD_SIZE (LOGCOLORSPACEW, lcsGammaBlue, 4)
3417 TEST_FIELD_ALIGN (LOGCOLORSPACEW, lcsGammaBlue, 4)
3418 TEST_FIELD_OFFSET(LOGCOLORSPACEW, lcsGammaBlue, 64)
3419 TEST_FIELD_SIZE (LOGCOLORSPACEW, lcsFilename, 520)
3420 TEST_FIELD_ALIGN (LOGCOLORSPACEW, lcsFilename, 2)
3421 TEST_FIELD_OFFSET(LOGCOLORSPACEW, lcsFilename, 68)
3424 static void test_pack_LOGFONTA(void)
3426 /* LOGFONTA */
3427 TEST_TYPE_SIZE (LOGFONTA, 60)
3428 TEST_TYPE_ALIGN (LOGFONTA, 4)
3429 TEST_FIELD_SIZE (LOGFONTA, lfHeight, 4)
3430 TEST_FIELD_ALIGN (LOGFONTA, lfHeight, 4)
3431 TEST_FIELD_OFFSET(LOGFONTA, lfHeight, 0)
3432 TEST_FIELD_SIZE (LOGFONTA, lfWidth, 4)
3433 TEST_FIELD_ALIGN (LOGFONTA, lfWidth, 4)
3434 TEST_FIELD_OFFSET(LOGFONTA, lfWidth, 4)
3435 TEST_FIELD_SIZE (LOGFONTA, lfEscapement, 4)
3436 TEST_FIELD_ALIGN (LOGFONTA, lfEscapement, 4)
3437 TEST_FIELD_OFFSET(LOGFONTA, lfEscapement, 8)
3438 TEST_FIELD_SIZE (LOGFONTA, lfOrientation, 4)
3439 TEST_FIELD_ALIGN (LOGFONTA, lfOrientation, 4)
3440 TEST_FIELD_OFFSET(LOGFONTA, lfOrientation, 12)
3441 TEST_FIELD_SIZE (LOGFONTA, lfWeight, 4)
3442 TEST_FIELD_ALIGN (LOGFONTA, lfWeight, 4)
3443 TEST_FIELD_OFFSET(LOGFONTA, lfWeight, 16)
3444 TEST_FIELD_SIZE (LOGFONTA, lfItalic, 1)
3445 TEST_FIELD_ALIGN (LOGFONTA, lfItalic, 1)
3446 TEST_FIELD_OFFSET(LOGFONTA, lfItalic, 20)
3447 TEST_FIELD_SIZE (LOGFONTA, lfUnderline, 1)
3448 TEST_FIELD_ALIGN (LOGFONTA, lfUnderline, 1)
3449 TEST_FIELD_OFFSET(LOGFONTA, lfUnderline, 21)
3450 TEST_FIELD_SIZE (LOGFONTA, lfStrikeOut, 1)
3451 TEST_FIELD_ALIGN (LOGFONTA, lfStrikeOut, 1)
3452 TEST_FIELD_OFFSET(LOGFONTA, lfStrikeOut, 22)
3453 TEST_FIELD_SIZE (LOGFONTA, lfCharSet, 1)
3454 TEST_FIELD_ALIGN (LOGFONTA, lfCharSet, 1)
3455 TEST_FIELD_OFFSET(LOGFONTA, lfCharSet, 23)
3456 TEST_FIELD_SIZE (LOGFONTA, lfOutPrecision, 1)
3457 TEST_FIELD_ALIGN (LOGFONTA, lfOutPrecision, 1)
3458 TEST_FIELD_OFFSET(LOGFONTA, lfOutPrecision, 24)
3459 TEST_FIELD_SIZE (LOGFONTA, lfClipPrecision, 1)
3460 TEST_FIELD_ALIGN (LOGFONTA, lfClipPrecision, 1)
3461 TEST_FIELD_OFFSET(LOGFONTA, lfClipPrecision, 25)
3462 TEST_FIELD_SIZE (LOGFONTA, lfQuality, 1)
3463 TEST_FIELD_ALIGN (LOGFONTA, lfQuality, 1)
3464 TEST_FIELD_OFFSET(LOGFONTA, lfQuality, 26)
3465 TEST_FIELD_SIZE (LOGFONTA, lfPitchAndFamily, 1)
3466 TEST_FIELD_ALIGN (LOGFONTA, lfPitchAndFamily, 1)
3467 TEST_FIELD_OFFSET(LOGFONTA, lfPitchAndFamily, 27)
3468 TEST_FIELD_SIZE (LOGFONTA, lfFaceName, 32)
3469 TEST_FIELD_ALIGN (LOGFONTA, lfFaceName, 1)
3470 TEST_FIELD_OFFSET(LOGFONTA, lfFaceName, 28)
3473 static void test_pack_LOGFONTW(void)
3475 /* LOGFONTW */
3476 TEST_TYPE_SIZE (LOGFONTW, 92)
3477 TEST_TYPE_ALIGN (LOGFONTW, 4)
3478 TEST_FIELD_SIZE (LOGFONTW, lfHeight, 4)
3479 TEST_FIELD_ALIGN (LOGFONTW, lfHeight, 4)
3480 TEST_FIELD_OFFSET(LOGFONTW, lfHeight, 0)
3481 TEST_FIELD_SIZE (LOGFONTW, lfWidth, 4)
3482 TEST_FIELD_ALIGN (LOGFONTW, lfWidth, 4)
3483 TEST_FIELD_OFFSET(LOGFONTW, lfWidth, 4)
3484 TEST_FIELD_SIZE (LOGFONTW, lfEscapement, 4)
3485 TEST_FIELD_ALIGN (LOGFONTW, lfEscapement, 4)
3486 TEST_FIELD_OFFSET(LOGFONTW, lfEscapement, 8)
3487 TEST_FIELD_SIZE (LOGFONTW, lfOrientation, 4)
3488 TEST_FIELD_ALIGN (LOGFONTW, lfOrientation, 4)
3489 TEST_FIELD_OFFSET(LOGFONTW, lfOrientation, 12)
3490 TEST_FIELD_SIZE (LOGFONTW, lfWeight, 4)
3491 TEST_FIELD_ALIGN (LOGFONTW, lfWeight, 4)
3492 TEST_FIELD_OFFSET(LOGFONTW, lfWeight, 16)
3493 TEST_FIELD_SIZE (LOGFONTW, lfItalic, 1)
3494 TEST_FIELD_ALIGN (LOGFONTW, lfItalic, 1)
3495 TEST_FIELD_OFFSET(LOGFONTW, lfItalic, 20)
3496 TEST_FIELD_SIZE (LOGFONTW, lfUnderline, 1)
3497 TEST_FIELD_ALIGN (LOGFONTW, lfUnderline, 1)
3498 TEST_FIELD_OFFSET(LOGFONTW, lfUnderline, 21)
3499 TEST_FIELD_SIZE (LOGFONTW, lfStrikeOut, 1)
3500 TEST_FIELD_ALIGN (LOGFONTW, lfStrikeOut, 1)
3501 TEST_FIELD_OFFSET(LOGFONTW, lfStrikeOut, 22)
3502 TEST_FIELD_SIZE (LOGFONTW, lfCharSet, 1)
3503 TEST_FIELD_ALIGN (LOGFONTW, lfCharSet, 1)
3504 TEST_FIELD_OFFSET(LOGFONTW, lfCharSet, 23)
3505 TEST_FIELD_SIZE (LOGFONTW, lfOutPrecision, 1)
3506 TEST_FIELD_ALIGN (LOGFONTW, lfOutPrecision, 1)
3507 TEST_FIELD_OFFSET(LOGFONTW, lfOutPrecision, 24)
3508 TEST_FIELD_SIZE (LOGFONTW, lfClipPrecision, 1)
3509 TEST_FIELD_ALIGN (LOGFONTW, lfClipPrecision, 1)
3510 TEST_FIELD_OFFSET(LOGFONTW, lfClipPrecision, 25)
3511 TEST_FIELD_SIZE (LOGFONTW, lfQuality, 1)
3512 TEST_FIELD_ALIGN (LOGFONTW, lfQuality, 1)
3513 TEST_FIELD_OFFSET(LOGFONTW, lfQuality, 26)
3514 TEST_FIELD_SIZE (LOGFONTW, lfPitchAndFamily, 1)
3515 TEST_FIELD_ALIGN (LOGFONTW, lfPitchAndFamily, 1)
3516 TEST_FIELD_OFFSET(LOGFONTW, lfPitchAndFamily, 27)
3517 TEST_FIELD_SIZE (LOGFONTW, lfFaceName, 64)
3518 TEST_FIELD_ALIGN (LOGFONTW, lfFaceName, 2)
3519 TEST_FIELD_OFFSET(LOGFONTW, lfFaceName, 28)
3522 static void test_pack_LOGPEN(void)
3524 /* LOGPEN */
3525 TEST_TYPE_SIZE (LOGPEN, 16)
3526 TEST_TYPE_ALIGN (LOGPEN, 4)
3527 TEST_FIELD_SIZE (LOGPEN, lopnStyle, 4)
3528 TEST_FIELD_ALIGN (LOGPEN, lopnStyle, 4)
3529 TEST_FIELD_OFFSET(LOGPEN, lopnStyle, 0)
3530 TEST_FIELD_SIZE (LOGPEN, lopnWidth, 8)
3531 TEST_FIELD_ALIGN (LOGPEN, lopnWidth, 4)
3532 TEST_FIELD_OFFSET(LOGPEN, lopnWidth, 4)
3533 TEST_FIELD_SIZE (LOGPEN, lopnColor, 4)
3534 TEST_FIELD_ALIGN (LOGPEN, lopnColor, 4)
3535 TEST_FIELD_OFFSET(LOGPEN, lopnColor, 12)
3538 static void test_pack_LPABC(void)
3540 /* LPABC */
3541 TEST_TYPE_SIZE (LPABC, 8)
3542 TEST_TYPE_ALIGN (LPABC, 8)
3543 TEST_TARGET_SIZE (LPABC, 12)
3544 TEST_TARGET_ALIGN(LPABC, 4)
3547 static void test_pack_LPABCFLOAT(void)
3549 /* LPABCFLOAT */
3550 TEST_TYPE_SIZE (LPABCFLOAT, 8)
3551 TEST_TYPE_ALIGN (LPABCFLOAT, 8)
3552 TEST_TARGET_SIZE (LPABCFLOAT, 12)
3553 TEST_TARGET_ALIGN(LPABCFLOAT, 4)
3556 static void test_pack_LPBITMAP(void)
3558 /* LPBITMAP */
3559 TEST_TYPE_SIZE (LPBITMAP, 8)
3560 TEST_TYPE_ALIGN (LPBITMAP, 8)
3561 TEST_TARGET_SIZE (LPBITMAP, 32)
3562 TEST_TARGET_ALIGN(LPBITMAP, 8)
3565 static void test_pack_LPBITMAPCOREHEADER(void)
3567 /* LPBITMAPCOREHEADER */
3568 TEST_TYPE_SIZE (LPBITMAPCOREHEADER, 8)
3569 TEST_TYPE_ALIGN (LPBITMAPCOREHEADER, 8)
3570 TEST_TARGET_SIZE (LPBITMAPCOREHEADER, 12)
3571 TEST_TARGET_ALIGN(LPBITMAPCOREHEADER, 4)
3574 static void test_pack_LPBITMAPCOREINFO(void)
3576 /* LPBITMAPCOREINFO */
3577 TEST_TYPE_SIZE (LPBITMAPCOREINFO, 8)
3578 TEST_TYPE_ALIGN (LPBITMAPCOREINFO, 8)
3579 TEST_TARGET_SIZE (LPBITMAPCOREINFO, 16)
3580 TEST_TARGET_ALIGN(LPBITMAPCOREINFO, 4)
3583 static void test_pack_LPBITMAPFILEHEADER(void)
3585 /* LPBITMAPFILEHEADER */
3586 TEST_TYPE_SIZE (LPBITMAPFILEHEADER, 8)
3587 TEST_TYPE_ALIGN (LPBITMAPFILEHEADER, 8)
3588 TEST_TARGET_SIZE (LPBITMAPFILEHEADER, 14)
3589 TEST_TARGET_ALIGN(LPBITMAPFILEHEADER, 2)
3592 static void test_pack_LPBITMAPINFO(void)
3594 /* LPBITMAPINFO */
3595 TEST_TYPE_SIZE (LPBITMAPINFO, 8)
3596 TEST_TYPE_ALIGN (LPBITMAPINFO, 8)
3597 TEST_TARGET_SIZE (LPBITMAPINFO, 44)
3598 TEST_TARGET_ALIGN(LPBITMAPINFO, 4)
3601 static void test_pack_LPBITMAPINFOHEADER(void)
3603 /* LPBITMAPINFOHEADER */
3604 TEST_TYPE_SIZE (LPBITMAPINFOHEADER, 8)
3605 TEST_TYPE_ALIGN (LPBITMAPINFOHEADER, 8)
3606 TEST_TARGET_SIZE (LPBITMAPINFOHEADER, 40)
3607 TEST_TARGET_ALIGN(LPBITMAPINFOHEADER, 4)
3610 static void test_pack_LPBITMAPV5HEADER(void)
3612 /* LPBITMAPV5HEADER */
3613 TEST_TYPE_SIZE (LPBITMAPV5HEADER, 8)
3614 TEST_TYPE_ALIGN (LPBITMAPV5HEADER, 8)
3615 TEST_TARGET_SIZE (LPBITMAPV5HEADER, 124)
3616 TEST_TARGET_ALIGN(LPBITMAPV5HEADER, 4)
3619 static void test_pack_LPCHARSETINFO(void)
3621 /* LPCHARSETINFO */
3622 TEST_TYPE_SIZE (LPCHARSETINFO, 8)
3623 TEST_TYPE_ALIGN (LPCHARSETINFO, 8)
3624 TEST_TARGET_SIZE (LPCHARSETINFO, 32)
3625 TEST_TARGET_ALIGN(LPCHARSETINFO, 4)
3628 static void test_pack_LPCIEXYZ(void)
3630 /* LPCIEXYZ */
3631 TEST_TYPE_SIZE (LPCIEXYZ, 8)
3632 TEST_TYPE_ALIGN (LPCIEXYZ, 8)
3633 TEST_TARGET_SIZE (LPCIEXYZ, 12)
3634 TEST_TARGET_ALIGN(LPCIEXYZ, 4)
3637 static void test_pack_LPCIEXYZTRIPLE(void)
3639 /* LPCIEXYZTRIPLE */
3640 TEST_TYPE_SIZE (LPCIEXYZTRIPLE, 8)
3641 TEST_TYPE_ALIGN (LPCIEXYZTRIPLE, 8)
3642 TEST_TARGET_SIZE (LPCIEXYZTRIPLE, 36)
3643 TEST_TARGET_ALIGN(LPCIEXYZTRIPLE, 4)
3646 static void test_pack_LPCOLORADJUSTMENT(void)
3648 /* LPCOLORADJUSTMENT */
3649 TEST_TYPE_SIZE (LPCOLORADJUSTMENT, 8)
3650 TEST_TYPE_ALIGN (LPCOLORADJUSTMENT, 8)
3651 TEST_TARGET_SIZE (LPCOLORADJUSTMENT, 24)
3652 TEST_TARGET_ALIGN(LPCOLORADJUSTMENT, 2)
3655 static void test_pack_LPDEVMODEA(void)
3657 /* LPDEVMODEA */
3658 TEST_TYPE_SIZE (LPDEVMODEA, 8)
3659 TEST_TYPE_ALIGN (LPDEVMODEA, 8)
3662 static void test_pack_LPDEVMODEW(void)
3664 /* LPDEVMODEW */
3665 TEST_TYPE_SIZE (LPDEVMODEW, 8)
3666 TEST_TYPE_ALIGN (LPDEVMODEW, 8)
3669 static void test_pack_LPDIBSECTION(void)
3671 /* LPDIBSECTION */
3672 TEST_TYPE_SIZE (LPDIBSECTION, 8)
3673 TEST_TYPE_ALIGN (LPDIBSECTION, 8)
3674 TEST_TARGET_SIZE (LPDIBSECTION, 104)
3675 TEST_TARGET_ALIGN(LPDIBSECTION, 8)
3678 static void test_pack_LPDISPLAY_DEVICEA(void)
3680 /* LPDISPLAY_DEVICEA */
3681 TEST_TYPE_SIZE (LPDISPLAY_DEVICEA, 8)
3682 TEST_TYPE_ALIGN (LPDISPLAY_DEVICEA, 8)
3683 TEST_TARGET_SIZE (LPDISPLAY_DEVICEA, 424)
3684 TEST_TARGET_ALIGN(LPDISPLAY_DEVICEA, 4)
3687 static void test_pack_LPDISPLAY_DEVICEW(void)
3689 /* LPDISPLAY_DEVICEW */
3690 TEST_TYPE_SIZE (LPDISPLAY_DEVICEW, 8)
3691 TEST_TYPE_ALIGN (LPDISPLAY_DEVICEW, 8)
3692 TEST_TARGET_SIZE (LPDISPLAY_DEVICEW, 840)
3693 TEST_TARGET_ALIGN(LPDISPLAY_DEVICEW, 4)
3696 static void test_pack_LPDOCINFOA(void)
3698 /* LPDOCINFOA */
3699 TEST_TYPE_SIZE (LPDOCINFOA, 8)
3700 TEST_TYPE_ALIGN (LPDOCINFOA, 8)
3701 TEST_TARGET_SIZE (LPDOCINFOA, 40)
3702 TEST_TARGET_ALIGN(LPDOCINFOA, 8)
3705 static void test_pack_LPDOCINFOW(void)
3707 /* LPDOCINFOW */
3708 TEST_TYPE_SIZE (LPDOCINFOW, 8)
3709 TEST_TYPE_ALIGN (LPDOCINFOW, 8)
3710 TEST_TARGET_SIZE (LPDOCINFOW, 40)
3711 TEST_TARGET_ALIGN(LPDOCINFOW, 8)
3714 static void test_pack_LPENHMETAHEADER(void)
3716 /* LPENHMETAHEADER */
3717 TEST_TYPE_SIZE (LPENHMETAHEADER, 8)
3718 TEST_TYPE_ALIGN (LPENHMETAHEADER, 8)
3719 TEST_TARGET_SIZE (LPENHMETAHEADER, 108)
3720 TEST_TARGET_ALIGN(LPENHMETAHEADER, 4)
3723 static void test_pack_LPENHMETARECORD(void)
3725 /* LPENHMETARECORD */
3726 TEST_TYPE_SIZE (LPENHMETARECORD, 8)
3727 TEST_TYPE_ALIGN (LPENHMETARECORD, 8)
3728 TEST_TARGET_SIZE (LPENHMETARECORD, 12)
3729 TEST_TARGET_ALIGN(LPENHMETARECORD, 4)
3732 static void test_pack_LPENUMLOGFONTA(void)
3734 /* LPENUMLOGFONTA */
3735 TEST_TYPE_SIZE (LPENUMLOGFONTA, 8)
3736 TEST_TYPE_ALIGN (LPENUMLOGFONTA, 8)
3737 TEST_TARGET_SIZE (LPENUMLOGFONTA, 156)
3738 TEST_TARGET_ALIGN(LPENUMLOGFONTA, 4)
3741 static void test_pack_LPENUMLOGFONTEXA(void)
3743 /* LPENUMLOGFONTEXA */
3744 TEST_TYPE_SIZE (LPENUMLOGFONTEXA, 8)
3745 TEST_TYPE_ALIGN (LPENUMLOGFONTEXA, 8)
3746 TEST_TARGET_SIZE (LPENUMLOGFONTEXA, 188)
3747 TEST_TARGET_ALIGN(LPENUMLOGFONTEXA, 4)
3750 static void test_pack_LPENUMLOGFONTEXW(void)
3752 /* LPENUMLOGFONTEXW */
3753 TEST_TYPE_SIZE (LPENUMLOGFONTEXW, 8)
3754 TEST_TYPE_ALIGN (LPENUMLOGFONTEXW, 8)
3755 TEST_TARGET_SIZE (LPENUMLOGFONTEXW, 348)
3756 TEST_TARGET_ALIGN(LPENUMLOGFONTEXW, 4)
3759 static void test_pack_LPENUMLOGFONTW(void)
3761 /* LPENUMLOGFONTW */
3762 TEST_TYPE_SIZE (LPENUMLOGFONTW, 8)
3763 TEST_TYPE_ALIGN (LPENUMLOGFONTW, 8)
3764 TEST_TARGET_SIZE (LPENUMLOGFONTW, 284)
3765 TEST_TARGET_ALIGN(LPENUMLOGFONTW, 4)
3768 static void test_pack_LPEXTLOGFONTA(void)
3770 /* LPEXTLOGFONTA */
3771 TEST_TYPE_SIZE (LPEXTLOGFONTA, 8)
3772 TEST_TYPE_ALIGN (LPEXTLOGFONTA, 8)
3773 TEST_TARGET_SIZE (LPEXTLOGFONTA, 192)
3774 TEST_TARGET_ALIGN(LPEXTLOGFONTA, 4)
3777 static void test_pack_LPEXTLOGFONTW(void)
3779 /* LPEXTLOGFONTW */
3780 TEST_TYPE_SIZE (LPEXTLOGFONTW, 8)
3781 TEST_TYPE_ALIGN (LPEXTLOGFONTW, 8)
3782 TEST_TARGET_SIZE (LPEXTLOGFONTW, 320)
3783 TEST_TARGET_ALIGN(LPEXTLOGFONTW, 4)
3786 static void test_pack_LPEXTLOGPEN(void)
3788 /* LPEXTLOGPEN */
3789 TEST_TYPE_SIZE (LPEXTLOGPEN, 8)
3790 TEST_TYPE_ALIGN (LPEXTLOGPEN, 8)
3791 TEST_TARGET_SIZE (LPEXTLOGPEN, 32)
3792 TEST_TARGET_ALIGN(LPEXTLOGPEN, 8)
3795 static void test_pack_LPFONTSIGNATURE(void)
3797 /* LPFONTSIGNATURE */
3798 TEST_TYPE_SIZE (LPFONTSIGNATURE, 8)
3799 TEST_TYPE_ALIGN (LPFONTSIGNATURE, 8)
3800 TEST_TARGET_SIZE (LPFONTSIGNATURE, 24)
3801 TEST_TARGET_ALIGN(LPFONTSIGNATURE, 4)
3804 static void test_pack_LPGCP_RESULTSA(void)
3806 /* LPGCP_RESULTSA */
3807 TEST_TYPE_SIZE (LPGCP_RESULTSA, 8)
3808 TEST_TYPE_ALIGN (LPGCP_RESULTSA, 8)
3809 TEST_TARGET_SIZE (LPGCP_RESULTSA, 64)
3810 TEST_TARGET_ALIGN(LPGCP_RESULTSA, 8)
3813 static void test_pack_LPGCP_RESULTSW(void)
3815 /* LPGCP_RESULTSW */
3816 TEST_TYPE_SIZE (LPGCP_RESULTSW, 8)
3817 TEST_TYPE_ALIGN (LPGCP_RESULTSW, 8)
3818 TEST_TARGET_SIZE (LPGCP_RESULTSW, 64)
3819 TEST_TARGET_ALIGN(LPGCP_RESULTSW, 8)
3822 static void test_pack_LPGLYPHMETRICS(void)
3824 /* LPGLYPHMETRICS */
3825 TEST_TYPE_SIZE (LPGLYPHMETRICS, 8)
3826 TEST_TYPE_ALIGN (LPGLYPHMETRICS, 8)
3827 TEST_TARGET_SIZE (LPGLYPHMETRICS, 20)
3828 TEST_TARGET_ALIGN(LPGLYPHMETRICS, 4)
3831 static void test_pack_LPGLYPHMETRICSFLOAT(void)
3833 /* LPGLYPHMETRICSFLOAT */
3834 TEST_TYPE_SIZE (LPGLYPHMETRICSFLOAT, 8)
3835 TEST_TYPE_ALIGN (LPGLYPHMETRICSFLOAT, 8)
3836 TEST_TARGET_SIZE (LPGLYPHMETRICSFLOAT, 24)
3837 TEST_TARGET_ALIGN(LPGLYPHMETRICSFLOAT, 4)
3840 static void test_pack_LPGRADIENT_RECT(void)
3842 /* LPGRADIENT_RECT */
3843 TEST_TYPE_SIZE (LPGRADIENT_RECT, 8)
3844 TEST_TYPE_ALIGN (LPGRADIENT_RECT, 8)
3845 TEST_TARGET_SIZE (LPGRADIENT_RECT, 8)
3846 TEST_TARGET_ALIGN(LPGRADIENT_RECT, 4)
3849 static void test_pack_LPGRADIENT_TRIANGLE(void)
3851 /* LPGRADIENT_TRIANGLE */
3852 TEST_TYPE_SIZE (LPGRADIENT_TRIANGLE, 8)
3853 TEST_TYPE_ALIGN (LPGRADIENT_TRIANGLE, 8)
3854 TEST_TARGET_SIZE (LPGRADIENT_TRIANGLE, 12)
3855 TEST_TARGET_ALIGN(LPGRADIENT_TRIANGLE, 4)
3858 static void test_pack_LPHANDLETABLE(void)
3860 /* LPHANDLETABLE */
3861 TEST_TYPE_SIZE (LPHANDLETABLE, 8)
3862 TEST_TYPE_ALIGN (LPHANDLETABLE, 8)
3863 TEST_TARGET_SIZE (LPHANDLETABLE, 8)
3864 TEST_TARGET_ALIGN(LPHANDLETABLE, 8)
3867 static void test_pack_LPKERNINGPAIR(void)
3869 /* LPKERNINGPAIR */
3870 TEST_TYPE_SIZE (LPKERNINGPAIR, 8)
3871 TEST_TYPE_ALIGN (LPKERNINGPAIR, 8)
3872 TEST_TARGET_SIZE (LPKERNINGPAIR, 8)
3873 TEST_TARGET_ALIGN(LPKERNINGPAIR, 4)
3876 static void test_pack_LPLAYERPLANEDESCRIPTOR(void)
3878 /* LPLAYERPLANEDESCRIPTOR */
3879 TEST_TYPE_SIZE (LPLAYERPLANEDESCRIPTOR, 8)
3880 TEST_TYPE_ALIGN (LPLAYERPLANEDESCRIPTOR, 8)
3881 TEST_TARGET_SIZE (LPLAYERPLANEDESCRIPTOR, 32)
3882 TEST_TARGET_ALIGN(LPLAYERPLANEDESCRIPTOR, 4)
3885 static void test_pack_LPLOCALESIGNATURE(void)
3887 /* LPLOCALESIGNATURE */
3888 TEST_TYPE_SIZE (LPLOCALESIGNATURE, 8)
3889 TEST_TYPE_ALIGN (LPLOCALESIGNATURE, 8)
3890 TEST_TARGET_SIZE (LPLOCALESIGNATURE, 32)
3891 TEST_TARGET_ALIGN(LPLOCALESIGNATURE, 4)
3894 static void test_pack_LPLOGBRUSH(void)
3896 /* LPLOGBRUSH */
3897 TEST_TYPE_SIZE (LPLOGBRUSH, 8)
3898 TEST_TYPE_ALIGN (LPLOGBRUSH, 8)
3899 TEST_TARGET_SIZE (LPLOGBRUSH, 16)
3900 TEST_TARGET_ALIGN(LPLOGBRUSH, 8)
3903 static void test_pack_LPLOGCOLORSPACEA(void)
3905 /* LPLOGCOLORSPACEA */
3906 TEST_TYPE_SIZE (LPLOGCOLORSPACEA, 8)
3907 TEST_TYPE_ALIGN (LPLOGCOLORSPACEA, 8)
3908 TEST_TARGET_SIZE (LPLOGCOLORSPACEA, 328)
3909 TEST_TARGET_ALIGN(LPLOGCOLORSPACEA, 4)
3912 static void test_pack_LPLOGCOLORSPACEW(void)
3914 /* LPLOGCOLORSPACEW */
3915 TEST_TYPE_SIZE (LPLOGCOLORSPACEW, 8)
3916 TEST_TYPE_ALIGN (LPLOGCOLORSPACEW, 8)
3917 TEST_TARGET_SIZE (LPLOGCOLORSPACEW, 588)
3918 TEST_TARGET_ALIGN(LPLOGCOLORSPACEW, 4)
3921 static void test_pack_LPLOGFONTA(void)
3923 /* LPLOGFONTA */
3924 TEST_TYPE_SIZE (LPLOGFONTA, 8)
3925 TEST_TYPE_ALIGN (LPLOGFONTA, 8)
3926 TEST_TARGET_SIZE (LPLOGFONTA, 60)
3927 TEST_TARGET_ALIGN(LPLOGFONTA, 4)
3930 static void test_pack_LPLOGFONTW(void)
3932 /* LPLOGFONTW */
3933 TEST_TYPE_SIZE (LPLOGFONTW, 8)
3934 TEST_TYPE_ALIGN (LPLOGFONTW, 8)
3935 TEST_TARGET_SIZE (LPLOGFONTW, 92)
3936 TEST_TARGET_ALIGN(LPLOGFONTW, 4)
3939 static void test_pack_LPLOGPEN(void)
3941 /* LPLOGPEN */
3942 TEST_TYPE_SIZE (LPLOGPEN, 8)
3943 TEST_TYPE_ALIGN (LPLOGPEN, 8)
3944 TEST_TARGET_SIZE (LPLOGPEN, 16)
3945 TEST_TARGET_ALIGN(LPLOGPEN, 4)
3948 static void test_pack_LPMAT2(void)
3950 /* LPMAT2 */
3951 TEST_TYPE_SIZE (LPMAT2, 8)
3952 TEST_TYPE_ALIGN (LPMAT2, 8)
3953 TEST_TARGET_SIZE (LPMAT2, 16)
3954 TEST_TARGET_ALIGN(LPMAT2, 2)
3957 static void test_pack_LPMETAFILEPICT(void)
3959 /* LPMETAFILEPICT */
3960 TEST_TYPE_SIZE (LPMETAFILEPICT, 8)
3961 TEST_TYPE_ALIGN (LPMETAFILEPICT, 8)
3962 TEST_TARGET_SIZE (LPMETAFILEPICT, 24)
3963 TEST_TARGET_ALIGN(LPMETAFILEPICT, 8)
3966 static void test_pack_LPMETAHEADER(void)
3968 /* LPMETAHEADER */
3969 TEST_TYPE_SIZE (LPMETAHEADER, 8)
3970 TEST_TYPE_ALIGN (LPMETAHEADER, 8)
3971 TEST_TARGET_SIZE (LPMETAHEADER, 18)
3972 TEST_TARGET_ALIGN(LPMETAHEADER, 2)
3975 static void test_pack_LPMETARECORD(void)
3977 /* LPMETARECORD */
3978 TEST_TYPE_SIZE (LPMETARECORD, 8)
3979 TEST_TYPE_ALIGN (LPMETARECORD, 8)
3980 TEST_TARGET_SIZE (LPMETARECORD, 8)
3981 TEST_TARGET_ALIGN(LPMETARECORD, 4)
3984 static void test_pack_LPNEWTEXTMETRICA(void)
3986 /* LPNEWTEXTMETRICA */
3987 TEST_TYPE_SIZE (LPNEWTEXTMETRICA, 8)
3988 TEST_TYPE_ALIGN (LPNEWTEXTMETRICA, 8)
3989 TEST_TARGET_SIZE (LPNEWTEXTMETRICA, 72)
3990 TEST_TARGET_ALIGN(LPNEWTEXTMETRICA, 4)
3993 static void test_pack_LPNEWTEXTMETRICW(void)
3995 /* LPNEWTEXTMETRICW */
3996 TEST_TYPE_SIZE (LPNEWTEXTMETRICW, 8)
3997 TEST_TYPE_ALIGN (LPNEWTEXTMETRICW, 8)
3998 TEST_TARGET_SIZE (LPNEWTEXTMETRICW, 76)
3999 TEST_TARGET_ALIGN(LPNEWTEXTMETRICW, 4)
4002 static void test_pack_LPOUTLINETEXTMETRICA(void)
4004 /* LPOUTLINETEXTMETRICA */
4005 TEST_TYPE_SIZE (LPOUTLINETEXTMETRICA, 8)
4006 TEST_TYPE_ALIGN (LPOUTLINETEXTMETRICA, 8)
4007 TEST_TARGET_SIZE (LPOUTLINETEXTMETRICA, 232)
4008 TEST_TARGET_ALIGN(LPOUTLINETEXTMETRICA, 8)
4011 static void test_pack_LPOUTLINETEXTMETRICW(void)
4013 /* LPOUTLINETEXTMETRICW */
4014 TEST_TYPE_SIZE (LPOUTLINETEXTMETRICW, 8)
4015 TEST_TYPE_ALIGN (LPOUTLINETEXTMETRICW, 8)
4016 TEST_TARGET_SIZE (LPOUTLINETEXTMETRICW, 232)
4017 TEST_TARGET_ALIGN(LPOUTLINETEXTMETRICW, 8)
4020 static void test_pack_LPPANOSE(void)
4022 /* LPPANOSE */
4023 TEST_TYPE_SIZE (LPPANOSE, 8)
4024 TEST_TYPE_ALIGN (LPPANOSE, 8)
4025 TEST_TARGET_SIZE (LPPANOSE, 10)
4026 TEST_TARGET_ALIGN(LPPANOSE, 1)
4029 static void test_pack_LPPELARRAY(void)
4031 /* LPPELARRAY */
4032 TEST_TYPE_SIZE (LPPELARRAY, 8)
4033 TEST_TYPE_ALIGN (LPPELARRAY, 8)
4034 TEST_TARGET_SIZE (LPPELARRAY, 20)
4035 TEST_TARGET_ALIGN(LPPELARRAY, 4)
4038 static void test_pack_LPPIXELFORMATDESCRIPTOR(void)
4040 /* LPPIXELFORMATDESCRIPTOR */
4041 TEST_TYPE_SIZE (LPPIXELFORMATDESCRIPTOR, 8)
4042 TEST_TYPE_ALIGN (LPPIXELFORMATDESCRIPTOR, 8)
4043 TEST_TARGET_SIZE (LPPIXELFORMATDESCRIPTOR, 40)
4044 TEST_TARGET_ALIGN(LPPIXELFORMATDESCRIPTOR, 4)
4047 static void test_pack_LPPOINTFX(void)
4049 /* LPPOINTFX */
4050 TEST_TYPE_SIZE (LPPOINTFX, 8)
4051 TEST_TYPE_ALIGN (LPPOINTFX, 8)
4052 TEST_TARGET_SIZE (LPPOINTFX, 8)
4053 TEST_TARGET_ALIGN(LPPOINTFX, 2)
4056 static void test_pack_LPPOLYTEXTA(void)
4058 /* LPPOLYTEXTA */
4059 TEST_TYPE_SIZE (LPPOLYTEXTA, 8)
4060 TEST_TYPE_ALIGN (LPPOLYTEXTA, 8)
4061 TEST_TARGET_SIZE (LPPOLYTEXTA, 56)
4062 TEST_TARGET_ALIGN(LPPOLYTEXTA, 8)
4065 static void test_pack_LPPOLYTEXTW(void)
4067 /* LPPOLYTEXTW */
4068 TEST_TYPE_SIZE (LPPOLYTEXTW, 8)
4069 TEST_TYPE_ALIGN (LPPOLYTEXTW, 8)
4070 TEST_TARGET_SIZE (LPPOLYTEXTW, 56)
4071 TEST_TARGET_ALIGN(LPPOLYTEXTW, 8)
4074 static void test_pack_LPRASTERIZER_STATUS(void)
4076 /* LPRASTERIZER_STATUS */
4077 TEST_TYPE_SIZE (LPRASTERIZER_STATUS, 8)
4078 TEST_TYPE_ALIGN (LPRASTERIZER_STATUS, 8)
4079 TEST_TARGET_SIZE (LPRASTERIZER_STATUS, 6)
4080 TEST_TARGET_ALIGN(LPRASTERIZER_STATUS, 2)
4083 static void test_pack_LPRGBQUAD(void)
4085 /* LPRGBQUAD */
4086 TEST_TYPE_SIZE (LPRGBQUAD, 8)
4087 TEST_TYPE_ALIGN (LPRGBQUAD, 8)
4088 TEST_TARGET_SIZE (LPRGBQUAD, 4)
4089 TEST_TARGET_ALIGN(LPRGBQUAD, 1)
4092 static void test_pack_LPRGNDATA(void)
4094 /* LPRGNDATA */
4095 TEST_TYPE_SIZE (LPRGNDATA, 8)
4096 TEST_TYPE_ALIGN (LPRGNDATA, 8)
4097 TEST_TARGET_SIZE (LPRGNDATA, 36)
4098 TEST_TARGET_ALIGN(LPRGNDATA, 4)
4101 static void test_pack_LPTEXTMETRICA(void)
4103 /* LPTEXTMETRICA */
4104 TEST_TYPE_SIZE (LPTEXTMETRICA, 8)
4105 TEST_TYPE_ALIGN (LPTEXTMETRICA, 8)
4106 TEST_TARGET_SIZE (LPTEXTMETRICA, 56)
4107 TEST_TARGET_ALIGN(LPTEXTMETRICA, 4)
4110 static void test_pack_LPTEXTMETRICW(void)
4112 /* LPTEXTMETRICW */
4113 TEST_TYPE_SIZE (LPTEXTMETRICW, 8)
4114 TEST_TYPE_ALIGN (LPTEXTMETRICW, 8)
4115 TEST_TARGET_SIZE (LPTEXTMETRICW, 60)
4116 TEST_TARGET_ALIGN(LPTEXTMETRICW, 4)
4119 static void test_pack_LPTRIVERTEX(void)
4121 /* LPTRIVERTEX */
4122 TEST_TYPE_SIZE (LPTRIVERTEX, 8)
4123 TEST_TYPE_ALIGN (LPTRIVERTEX, 8)
4124 TEST_TARGET_SIZE (LPTRIVERTEX, 16)
4125 TEST_TARGET_ALIGN(LPTRIVERTEX, 4)
4128 static void test_pack_LPTTPOLYCURVE(void)
4130 /* LPTTPOLYCURVE */
4131 TEST_TYPE_SIZE (LPTTPOLYCURVE, 8)
4132 TEST_TYPE_ALIGN (LPTTPOLYCURVE, 8)
4133 TEST_TARGET_SIZE (LPTTPOLYCURVE, 12)
4134 TEST_TARGET_ALIGN(LPTTPOLYCURVE, 2)
4137 static void test_pack_LPTTPOLYGONHEADER(void)
4139 /* LPTTPOLYGONHEADER */
4140 TEST_TYPE_SIZE (LPTTPOLYGONHEADER, 8)
4141 TEST_TYPE_ALIGN (LPTTPOLYGONHEADER, 8)
4142 TEST_TARGET_SIZE (LPTTPOLYGONHEADER, 16)
4143 TEST_TARGET_ALIGN(LPTTPOLYGONHEADER, 4)
4146 static void test_pack_LPXFORM(void)
4148 /* LPXFORM */
4149 TEST_TYPE_SIZE (LPXFORM, 8)
4150 TEST_TYPE_ALIGN (LPXFORM, 8)
4151 TEST_TARGET_SIZE (LPXFORM, 24)
4152 TEST_TARGET_ALIGN(LPXFORM, 4)
4155 static void test_pack_MAT2(void)
4157 /* MAT2 */
4158 TEST_TYPE_SIZE (MAT2, 16)
4159 TEST_TYPE_ALIGN (MAT2, 2)
4160 TEST_FIELD_SIZE (MAT2, eM11, 4)
4161 TEST_FIELD_ALIGN (MAT2, eM11, 2)
4162 TEST_FIELD_OFFSET(MAT2, eM11, 0)
4163 TEST_FIELD_SIZE (MAT2, eM12, 4)
4164 TEST_FIELD_ALIGN (MAT2, eM12, 2)
4165 TEST_FIELD_OFFSET(MAT2, eM12, 4)
4166 TEST_FIELD_SIZE (MAT2, eM21, 4)
4167 TEST_FIELD_ALIGN (MAT2, eM21, 2)
4168 TEST_FIELD_OFFSET(MAT2, eM21, 8)
4169 TEST_FIELD_SIZE (MAT2, eM22, 4)
4170 TEST_FIELD_ALIGN (MAT2, eM22, 2)
4171 TEST_FIELD_OFFSET(MAT2, eM22, 12)
4174 static void test_pack_METAFILEPICT(void)
4176 /* METAFILEPICT */
4177 TEST_TYPE_SIZE (METAFILEPICT, 24)
4178 TEST_TYPE_ALIGN (METAFILEPICT, 8)
4179 TEST_FIELD_SIZE (METAFILEPICT, mm, 4)
4180 TEST_FIELD_ALIGN (METAFILEPICT, mm, 4)
4181 TEST_FIELD_OFFSET(METAFILEPICT, mm, 0)
4182 TEST_FIELD_SIZE (METAFILEPICT, xExt, 4)
4183 TEST_FIELD_ALIGN (METAFILEPICT, xExt, 4)
4184 TEST_FIELD_OFFSET(METAFILEPICT, xExt, 4)
4185 TEST_FIELD_SIZE (METAFILEPICT, yExt, 4)
4186 TEST_FIELD_ALIGN (METAFILEPICT, yExt, 4)
4187 TEST_FIELD_OFFSET(METAFILEPICT, yExt, 8)
4188 TEST_FIELD_SIZE (METAFILEPICT, hMF, 8)
4189 TEST_FIELD_ALIGN (METAFILEPICT, hMF, 8)
4190 TEST_FIELD_OFFSET(METAFILEPICT, hMF, 16)
4193 static void test_pack_METAHEADER(void)
4195 /* METAHEADER (pack 2) */
4196 TEST_TYPE_SIZE (METAHEADER, 18)
4197 TEST_TYPE_ALIGN (METAHEADER, 2)
4198 TEST_FIELD_SIZE (METAHEADER, mtType, 2)
4199 TEST_FIELD_ALIGN (METAHEADER, mtType, 2)
4200 TEST_FIELD_OFFSET(METAHEADER, mtType, 0)
4201 TEST_FIELD_SIZE (METAHEADER, mtHeaderSize, 2)
4202 TEST_FIELD_ALIGN (METAHEADER, mtHeaderSize, 2)
4203 TEST_FIELD_OFFSET(METAHEADER, mtHeaderSize, 2)
4204 TEST_FIELD_SIZE (METAHEADER, mtVersion, 2)
4205 TEST_FIELD_ALIGN (METAHEADER, mtVersion, 2)
4206 TEST_FIELD_OFFSET(METAHEADER, mtVersion, 4)
4207 TEST_FIELD_SIZE (METAHEADER, mtSize, 4)
4208 TEST_FIELD_ALIGN (METAHEADER, mtSize, 2)
4209 TEST_FIELD_OFFSET(METAHEADER, mtSize, 6)
4210 TEST_FIELD_SIZE (METAHEADER, mtNoObjects, 2)
4211 TEST_FIELD_ALIGN (METAHEADER, mtNoObjects, 2)
4212 TEST_FIELD_OFFSET(METAHEADER, mtNoObjects, 10)
4213 TEST_FIELD_SIZE (METAHEADER, mtMaxRecord, 4)
4214 TEST_FIELD_ALIGN (METAHEADER, mtMaxRecord, 2)
4215 TEST_FIELD_OFFSET(METAHEADER, mtMaxRecord, 12)
4216 TEST_FIELD_SIZE (METAHEADER, mtNoParameters, 2)
4217 TEST_FIELD_ALIGN (METAHEADER, mtNoParameters, 2)
4218 TEST_FIELD_OFFSET(METAHEADER, mtNoParameters, 16)
4221 static void test_pack_METARECORD(void)
4223 /* METARECORD */
4224 TEST_TYPE_SIZE (METARECORD, 8)
4225 TEST_TYPE_ALIGN (METARECORD, 4)
4226 TEST_FIELD_SIZE (METARECORD, rdSize, 4)
4227 TEST_FIELD_ALIGN (METARECORD, rdSize, 4)
4228 TEST_FIELD_OFFSET(METARECORD, rdSize, 0)
4229 TEST_FIELD_SIZE (METARECORD, rdFunction, 2)
4230 TEST_FIELD_ALIGN (METARECORD, rdFunction, 2)
4231 TEST_FIELD_OFFSET(METARECORD, rdFunction, 4)
4232 TEST_FIELD_SIZE (METARECORD, rdParm, 2)
4233 TEST_FIELD_ALIGN (METARECORD, rdParm, 2)
4234 TEST_FIELD_OFFSET(METARECORD, rdParm, 6)
4237 static void test_pack_MFENUMPROC(void)
4239 /* MFENUMPROC */
4240 TEST_TYPE_SIZE (MFENUMPROC, 8)
4241 TEST_TYPE_ALIGN (MFENUMPROC, 8)
4244 static void test_pack_NEWTEXTMETRICA(void)
4246 /* NEWTEXTMETRICA */
4247 TEST_TYPE_SIZE (NEWTEXTMETRICA, 72)
4248 TEST_TYPE_ALIGN (NEWTEXTMETRICA, 4)
4249 TEST_FIELD_SIZE (NEWTEXTMETRICA, tmHeight, 4)
4250 TEST_FIELD_ALIGN (NEWTEXTMETRICA, tmHeight, 4)
4251 TEST_FIELD_OFFSET(NEWTEXTMETRICA, tmHeight, 0)
4252 TEST_FIELD_SIZE (NEWTEXTMETRICA, tmAscent, 4)
4253 TEST_FIELD_ALIGN (NEWTEXTMETRICA, tmAscent, 4)
4254 TEST_FIELD_OFFSET(NEWTEXTMETRICA, tmAscent, 4)
4255 TEST_FIELD_SIZE (NEWTEXTMETRICA, tmDescent, 4)
4256 TEST_FIELD_ALIGN (NEWTEXTMETRICA, tmDescent, 4)
4257 TEST_FIELD_OFFSET(NEWTEXTMETRICA, tmDescent, 8)
4258 TEST_FIELD_SIZE (NEWTEXTMETRICA, tmInternalLeading, 4)
4259 TEST_FIELD_ALIGN (NEWTEXTMETRICA, tmInternalLeading, 4)
4260 TEST_FIELD_OFFSET(NEWTEXTMETRICA, tmInternalLeading, 12)
4261 TEST_FIELD_SIZE (NEWTEXTMETRICA, tmExternalLeading, 4)
4262 TEST_FIELD_ALIGN (NEWTEXTMETRICA, tmExternalLeading, 4)
4263 TEST_FIELD_OFFSET(NEWTEXTMETRICA, tmExternalLeading, 16)
4264 TEST_FIELD_SIZE (NEWTEXTMETRICA, tmAveCharWidth, 4)
4265 TEST_FIELD_ALIGN (NEWTEXTMETRICA, tmAveCharWidth, 4)
4266 TEST_FIELD_OFFSET(NEWTEXTMETRICA, tmAveCharWidth, 20)
4267 TEST_FIELD_SIZE (NEWTEXTMETRICA, tmMaxCharWidth, 4)
4268 TEST_FIELD_ALIGN (NEWTEXTMETRICA, tmMaxCharWidth, 4)
4269 TEST_FIELD_OFFSET(NEWTEXTMETRICA, tmMaxCharWidth, 24)
4270 TEST_FIELD_SIZE (NEWTEXTMETRICA, tmWeight, 4)
4271 TEST_FIELD_ALIGN (NEWTEXTMETRICA, tmWeight, 4)
4272 TEST_FIELD_OFFSET(NEWTEXTMETRICA, tmWeight, 28)
4273 TEST_FIELD_SIZE (NEWTEXTMETRICA, tmOverhang, 4)
4274 TEST_FIELD_ALIGN (NEWTEXTMETRICA, tmOverhang, 4)
4275 TEST_FIELD_OFFSET(NEWTEXTMETRICA, tmOverhang, 32)
4276 TEST_FIELD_SIZE (NEWTEXTMETRICA, tmDigitizedAspectX, 4)
4277 TEST_FIELD_ALIGN (NEWTEXTMETRICA, tmDigitizedAspectX, 4)
4278 TEST_FIELD_OFFSET(NEWTEXTMETRICA, tmDigitizedAspectX, 36)
4279 TEST_FIELD_SIZE (NEWTEXTMETRICA, tmDigitizedAspectY, 4)
4280 TEST_FIELD_ALIGN (NEWTEXTMETRICA, tmDigitizedAspectY, 4)
4281 TEST_FIELD_OFFSET(NEWTEXTMETRICA, tmDigitizedAspectY, 40)
4282 TEST_FIELD_SIZE (NEWTEXTMETRICA, tmFirstChar, 1)
4283 TEST_FIELD_ALIGN (NEWTEXTMETRICA, tmFirstChar, 1)
4284 TEST_FIELD_OFFSET(NEWTEXTMETRICA, tmFirstChar, 44)
4285 TEST_FIELD_SIZE (NEWTEXTMETRICA, tmLastChar, 1)
4286 TEST_FIELD_ALIGN (NEWTEXTMETRICA, tmLastChar, 1)
4287 TEST_FIELD_OFFSET(NEWTEXTMETRICA, tmLastChar, 45)
4288 TEST_FIELD_SIZE (NEWTEXTMETRICA, tmDefaultChar, 1)
4289 TEST_FIELD_ALIGN (NEWTEXTMETRICA, tmDefaultChar, 1)
4290 TEST_FIELD_OFFSET(NEWTEXTMETRICA, tmDefaultChar, 46)
4291 TEST_FIELD_SIZE (NEWTEXTMETRICA, tmBreakChar, 1)
4292 TEST_FIELD_ALIGN (NEWTEXTMETRICA, tmBreakChar, 1)
4293 TEST_FIELD_OFFSET(NEWTEXTMETRICA, tmBreakChar, 47)
4294 TEST_FIELD_SIZE (NEWTEXTMETRICA, tmItalic, 1)
4295 TEST_FIELD_ALIGN (NEWTEXTMETRICA, tmItalic, 1)
4296 TEST_FIELD_OFFSET(NEWTEXTMETRICA, tmItalic, 48)
4297 TEST_FIELD_SIZE (NEWTEXTMETRICA, tmUnderlined, 1)
4298 TEST_FIELD_ALIGN (NEWTEXTMETRICA, tmUnderlined, 1)
4299 TEST_FIELD_OFFSET(NEWTEXTMETRICA, tmUnderlined, 49)
4300 TEST_FIELD_SIZE (NEWTEXTMETRICA, tmStruckOut, 1)
4301 TEST_FIELD_ALIGN (NEWTEXTMETRICA, tmStruckOut, 1)
4302 TEST_FIELD_OFFSET(NEWTEXTMETRICA, tmStruckOut, 50)
4303 TEST_FIELD_SIZE (NEWTEXTMETRICA, tmPitchAndFamily, 1)
4304 TEST_FIELD_ALIGN (NEWTEXTMETRICA, tmPitchAndFamily, 1)
4305 TEST_FIELD_OFFSET(NEWTEXTMETRICA, tmPitchAndFamily, 51)
4306 TEST_FIELD_SIZE (NEWTEXTMETRICA, tmCharSet, 1)
4307 TEST_FIELD_ALIGN (NEWTEXTMETRICA, tmCharSet, 1)
4308 TEST_FIELD_OFFSET(NEWTEXTMETRICA, tmCharSet, 52)
4309 TEST_FIELD_SIZE (NEWTEXTMETRICA, ntmFlags, 4)
4310 TEST_FIELD_ALIGN (NEWTEXTMETRICA, ntmFlags, 4)
4311 TEST_FIELD_OFFSET(NEWTEXTMETRICA, ntmFlags, 56)
4312 TEST_FIELD_SIZE (NEWTEXTMETRICA, ntmSizeEM, 4)
4313 TEST_FIELD_ALIGN (NEWTEXTMETRICA, ntmSizeEM, 4)
4314 TEST_FIELD_OFFSET(NEWTEXTMETRICA, ntmSizeEM, 60)
4315 TEST_FIELD_SIZE (NEWTEXTMETRICA, ntmCellHeight, 4)
4316 TEST_FIELD_ALIGN (NEWTEXTMETRICA, ntmCellHeight, 4)
4317 TEST_FIELD_OFFSET(NEWTEXTMETRICA, ntmCellHeight, 64)
4318 TEST_FIELD_SIZE (NEWTEXTMETRICA, ntmAvgWidth, 4)
4319 TEST_FIELD_ALIGN (NEWTEXTMETRICA, ntmAvgWidth, 4)
4320 TEST_FIELD_OFFSET(NEWTEXTMETRICA, ntmAvgWidth, 68)
4323 static void test_pack_NEWTEXTMETRICEXA(void)
4325 /* NEWTEXTMETRICEXA */
4326 TEST_TYPE_SIZE (NEWTEXTMETRICEXA, 96)
4327 TEST_TYPE_ALIGN (NEWTEXTMETRICEXA, 4)
4328 TEST_FIELD_SIZE (NEWTEXTMETRICEXA, ntmTm, 72)
4329 TEST_FIELD_ALIGN (NEWTEXTMETRICEXA, ntmTm, 4)
4330 TEST_FIELD_OFFSET(NEWTEXTMETRICEXA, ntmTm, 0)
4331 TEST_FIELD_SIZE (NEWTEXTMETRICEXA, ntmFontSig, 24)
4332 TEST_FIELD_ALIGN (NEWTEXTMETRICEXA, ntmFontSig, 4)
4333 TEST_FIELD_OFFSET(NEWTEXTMETRICEXA, ntmFontSig, 72)
4336 static void test_pack_NEWTEXTMETRICEXW(void)
4338 /* NEWTEXTMETRICEXW */
4339 TEST_TYPE_SIZE (NEWTEXTMETRICEXW, 100)
4340 TEST_TYPE_ALIGN (NEWTEXTMETRICEXW, 4)
4341 TEST_FIELD_SIZE (NEWTEXTMETRICEXW, ntmTm, 76)
4342 TEST_FIELD_ALIGN (NEWTEXTMETRICEXW, ntmTm, 4)
4343 TEST_FIELD_OFFSET(NEWTEXTMETRICEXW, ntmTm, 0)
4344 TEST_FIELD_SIZE (NEWTEXTMETRICEXW, ntmFontSig, 24)
4345 TEST_FIELD_ALIGN (NEWTEXTMETRICEXW, ntmFontSig, 4)
4346 TEST_FIELD_OFFSET(NEWTEXTMETRICEXW, ntmFontSig, 76)
4349 static void test_pack_NEWTEXTMETRICW(void)
4351 /* NEWTEXTMETRICW */
4352 TEST_TYPE_SIZE (NEWTEXTMETRICW, 76)
4353 TEST_TYPE_ALIGN (NEWTEXTMETRICW, 4)
4354 TEST_FIELD_SIZE (NEWTEXTMETRICW, tmHeight, 4)
4355 TEST_FIELD_ALIGN (NEWTEXTMETRICW, tmHeight, 4)
4356 TEST_FIELD_OFFSET(NEWTEXTMETRICW, tmHeight, 0)
4357 TEST_FIELD_SIZE (NEWTEXTMETRICW, tmAscent, 4)
4358 TEST_FIELD_ALIGN (NEWTEXTMETRICW, tmAscent, 4)
4359 TEST_FIELD_OFFSET(NEWTEXTMETRICW, tmAscent, 4)
4360 TEST_FIELD_SIZE (NEWTEXTMETRICW, tmDescent, 4)
4361 TEST_FIELD_ALIGN (NEWTEXTMETRICW, tmDescent, 4)
4362 TEST_FIELD_OFFSET(NEWTEXTMETRICW, tmDescent, 8)
4363 TEST_FIELD_SIZE (NEWTEXTMETRICW, tmInternalLeading, 4)
4364 TEST_FIELD_ALIGN (NEWTEXTMETRICW, tmInternalLeading, 4)
4365 TEST_FIELD_OFFSET(NEWTEXTMETRICW, tmInternalLeading, 12)
4366 TEST_FIELD_SIZE (NEWTEXTMETRICW, tmExternalLeading, 4)
4367 TEST_FIELD_ALIGN (NEWTEXTMETRICW, tmExternalLeading, 4)
4368 TEST_FIELD_OFFSET(NEWTEXTMETRICW, tmExternalLeading, 16)
4369 TEST_FIELD_SIZE (NEWTEXTMETRICW, tmAveCharWidth, 4)
4370 TEST_FIELD_ALIGN (NEWTEXTMETRICW, tmAveCharWidth, 4)
4371 TEST_FIELD_OFFSET(NEWTEXTMETRICW, tmAveCharWidth, 20)
4372 TEST_FIELD_SIZE (NEWTEXTMETRICW, tmMaxCharWidth, 4)
4373 TEST_FIELD_ALIGN (NEWTEXTMETRICW, tmMaxCharWidth, 4)
4374 TEST_FIELD_OFFSET(NEWTEXTMETRICW, tmMaxCharWidth, 24)
4375 TEST_FIELD_SIZE (NEWTEXTMETRICW, tmWeight, 4)
4376 TEST_FIELD_ALIGN (NEWTEXTMETRICW, tmWeight, 4)
4377 TEST_FIELD_OFFSET(NEWTEXTMETRICW, tmWeight, 28)
4378 TEST_FIELD_SIZE (NEWTEXTMETRICW, tmOverhang, 4)
4379 TEST_FIELD_ALIGN (NEWTEXTMETRICW, tmOverhang, 4)
4380 TEST_FIELD_OFFSET(NEWTEXTMETRICW, tmOverhang, 32)
4381 TEST_FIELD_SIZE (NEWTEXTMETRICW, tmDigitizedAspectX, 4)
4382 TEST_FIELD_ALIGN (NEWTEXTMETRICW, tmDigitizedAspectX, 4)
4383 TEST_FIELD_OFFSET(NEWTEXTMETRICW, tmDigitizedAspectX, 36)
4384 TEST_FIELD_SIZE (NEWTEXTMETRICW, tmDigitizedAspectY, 4)
4385 TEST_FIELD_ALIGN (NEWTEXTMETRICW, tmDigitizedAspectY, 4)
4386 TEST_FIELD_OFFSET(NEWTEXTMETRICW, tmDigitizedAspectY, 40)
4387 TEST_FIELD_SIZE (NEWTEXTMETRICW, tmFirstChar, 2)
4388 TEST_FIELD_ALIGN (NEWTEXTMETRICW, tmFirstChar, 2)
4389 TEST_FIELD_OFFSET(NEWTEXTMETRICW, tmFirstChar, 44)
4390 TEST_FIELD_SIZE (NEWTEXTMETRICW, tmLastChar, 2)
4391 TEST_FIELD_ALIGN (NEWTEXTMETRICW, tmLastChar, 2)
4392 TEST_FIELD_OFFSET(NEWTEXTMETRICW, tmLastChar, 46)
4393 TEST_FIELD_SIZE (NEWTEXTMETRICW, tmDefaultChar, 2)
4394 TEST_FIELD_ALIGN (NEWTEXTMETRICW, tmDefaultChar, 2)
4395 TEST_FIELD_OFFSET(NEWTEXTMETRICW, tmDefaultChar, 48)
4396 TEST_FIELD_SIZE (NEWTEXTMETRICW, tmBreakChar, 2)
4397 TEST_FIELD_ALIGN (NEWTEXTMETRICW, tmBreakChar, 2)
4398 TEST_FIELD_OFFSET(NEWTEXTMETRICW, tmBreakChar, 50)
4399 TEST_FIELD_SIZE (NEWTEXTMETRICW, tmItalic, 1)
4400 TEST_FIELD_ALIGN (NEWTEXTMETRICW, tmItalic, 1)
4401 TEST_FIELD_OFFSET(NEWTEXTMETRICW, tmItalic, 52)
4402 TEST_FIELD_SIZE (NEWTEXTMETRICW, tmUnderlined, 1)
4403 TEST_FIELD_ALIGN (NEWTEXTMETRICW, tmUnderlined, 1)
4404 TEST_FIELD_OFFSET(NEWTEXTMETRICW, tmUnderlined, 53)
4405 TEST_FIELD_SIZE (NEWTEXTMETRICW, tmStruckOut, 1)
4406 TEST_FIELD_ALIGN (NEWTEXTMETRICW, tmStruckOut, 1)
4407 TEST_FIELD_OFFSET(NEWTEXTMETRICW, tmStruckOut, 54)
4408 TEST_FIELD_SIZE (NEWTEXTMETRICW, tmPitchAndFamily, 1)
4409 TEST_FIELD_ALIGN (NEWTEXTMETRICW, tmPitchAndFamily, 1)
4410 TEST_FIELD_OFFSET(NEWTEXTMETRICW, tmPitchAndFamily, 55)
4411 TEST_FIELD_SIZE (NEWTEXTMETRICW, tmCharSet, 1)
4412 TEST_FIELD_ALIGN (NEWTEXTMETRICW, tmCharSet, 1)
4413 TEST_FIELD_OFFSET(NEWTEXTMETRICW, tmCharSet, 56)
4414 TEST_FIELD_SIZE (NEWTEXTMETRICW, ntmFlags, 4)
4415 TEST_FIELD_ALIGN (NEWTEXTMETRICW, ntmFlags, 4)
4416 TEST_FIELD_OFFSET(NEWTEXTMETRICW, ntmFlags, 60)
4417 TEST_FIELD_SIZE (NEWTEXTMETRICW, ntmSizeEM, 4)
4418 TEST_FIELD_ALIGN (NEWTEXTMETRICW, ntmSizeEM, 4)
4419 TEST_FIELD_OFFSET(NEWTEXTMETRICW, ntmSizeEM, 64)
4420 TEST_FIELD_SIZE (NEWTEXTMETRICW, ntmCellHeight, 4)
4421 TEST_FIELD_ALIGN (NEWTEXTMETRICW, ntmCellHeight, 4)
4422 TEST_FIELD_OFFSET(NEWTEXTMETRICW, ntmCellHeight, 68)
4423 TEST_FIELD_SIZE (NEWTEXTMETRICW, ntmAvgWidth, 4)
4424 TEST_FIELD_ALIGN (NEWTEXTMETRICW, ntmAvgWidth, 4)
4425 TEST_FIELD_OFFSET(NEWTEXTMETRICW, ntmAvgWidth, 72)
4428 static void test_pack_NPEXTLOGPEN(void)
4430 /* NPEXTLOGPEN */
4431 TEST_TYPE_SIZE (NPEXTLOGPEN, 8)
4432 TEST_TYPE_ALIGN (NPEXTLOGPEN, 8)
4433 TEST_TARGET_SIZE (NPEXTLOGPEN, 32)
4434 TEST_TARGET_ALIGN(NPEXTLOGPEN, 8)
4437 static void test_pack_OLDFONTENUMPROCA(void)
4439 /* OLDFONTENUMPROCA */
4440 TEST_TYPE_SIZE (OLDFONTENUMPROCA, 8)
4441 TEST_TYPE_ALIGN (OLDFONTENUMPROCA, 8)
4444 static void test_pack_OLDFONTENUMPROCW(void)
4446 /* OLDFONTENUMPROCW */
4447 TEST_TYPE_SIZE (OLDFONTENUMPROCW, 8)
4448 TEST_TYPE_ALIGN (OLDFONTENUMPROCW, 8)
4451 static void test_pack_OUTLINETEXTMETRICA(void)
4453 /* OUTLINETEXTMETRICA */
4454 TEST_TYPE_SIZE (OUTLINETEXTMETRICA, 232)
4455 TEST_TYPE_ALIGN (OUTLINETEXTMETRICA, 8)
4456 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmSize, 4)
4457 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmSize, 4)
4458 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmSize, 0)
4459 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmTextMetrics, 56)
4460 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmTextMetrics, 4)
4461 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmTextMetrics, 4)
4462 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmFiller, 1)
4463 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmFiller, 1)
4464 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmFiller, 60)
4465 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmPanoseNumber, 10)
4466 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmPanoseNumber, 1)
4467 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmPanoseNumber, 61)
4468 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmfsSelection, 4)
4469 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmfsSelection, 4)
4470 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmfsSelection, 72)
4471 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmfsType, 4)
4472 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmfsType, 4)
4473 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmfsType, 76)
4474 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmsCharSlopeRise, 4)
4475 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmsCharSlopeRise, 4)
4476 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmsCharSlopeRise, 80)
4477 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmsCharSlopeRun, 4)
4478 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmsCharSlopeRun, 4)
4479 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmsCharSlopeRun, 84)
4480 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmItalicAngle, 4)
4481 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmItalicAngle, 4)
4482 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmItalicAngle, 88)
4483 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmEMSquare, 4)
4484 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmEMSquare, 4)
4485 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmEMSquare, 92)
4486 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmAscent, 4)
4487 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmAscent, 4)
4488 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmAscent, 96)
4489 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmDescent, 4)
4490 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmDescent, 4)
4491 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmDescent, 100)
4492 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmLineGap, 4)
4493 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmLineGap, 4)
4494 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmLineGap, 104)
4495 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmsCapEmHeight, 4)
4496 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmsCapEmHeight, 4)
4497 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmsCapEmHeight, 108)
4498 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmsXHeight, 4)
4499 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmsXHeight, 4)
4500 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmsXHeight, 112)
4501 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmrcFontBox, 16)
4502 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmrcFontBox, 4)
4503 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmrcFontBox, 116)
4504 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmMacAscent, 4)
4505 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmMacAscent, 4)
4506 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmMacAscent, 132)
4507 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmMacDescent, 4)
4508 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmMacDescent, 4)
4509 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmMacDescent, 136)
4510 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmMacLineGap, 4)
4511 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmMacLineGap, 4)
4512 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmMacLineGap, 140)
4513 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmusMinimumPPEM, 4)
4514 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmusMinimumPPEM, 4)
4515 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmusMinimumPPEM, 144)
4516 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmptSubscriptSize, 8)
4517 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmptSubscriptSize, 4)
4518 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmptSubscriptSize, 148)
4519 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmptSubscriptOffset, 8)
4520 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmptSubscriptOffset, 4)
4521 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmptSubscriptOffset, 156)
4522 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmptSuperscriptSize, 8)
4523 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmptSuperscriptSize, 4)
4524 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmptSuperscriptSize, 164)
4525 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmptSuperscriptOffset, 8)
4526 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmptSuperscriptOffset, 4)
4527 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmptSuperscriptOffset, 172)
4528 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmsStrikeoutSize, 4)
4529 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmsStrikeoutSize, 4)
4530 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmsStrikeoutSize, 180)
4531 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmsStrikeoutPosition, 4)
4532 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmsStrikeoutPosition, 4)
4533 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmsStrikeoutPosition, 184)
4534 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmsUnderscoreSize, 4)
4535 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmsUnderscoreSize, 4)
4536 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmsUnderscoreSize, 188)
4537 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmsUnderscorePosition, 4)
4538 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmsUnderscorePosition, 4)
4539 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmsUnderscorePosition, 192)
4540 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmpFamilyName, 8)
4541 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmpFamilyName, 8)
4542 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmpFamilyName, 200)
4543 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmpFaceName, 8)
4544 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmpFaceName, 8)
4545 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmpFaceName, 208)
4546 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmpStyleName, 8)
4547 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmpStyleName, 8)
4548 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmpStyleName, 216)
4549 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmpFullName, 8)
4550 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmpFullName, 8)
4551 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmpFullName, 224)
4554 static void test_pack_OUTLINETEXTMETRICW(void)
4556 /* OUTLINETEXTMETRICW */
4557 TEST_TYPE_SIZE (OUTLINETEXTMETRICW, 232)
4558 TEST_TYPE_ALIGN (OUTLINETEXTMETRICW, 8)
4559 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmSize, 4)
4560 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmSize, 4)
4561 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmSize, 0)
4562 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmTextMetrics, 60)
4563 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmTextMetrics, 4)
4564 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmTextMetrics, 4)
4565 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmFiller, 1)
4566 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmFiller, 1)
4567 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmFiller, 64)
4568 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmPanoseNumber, 10)
4569 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmPanoseNumber, 1)
4570 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmPanoseNumber, 65)
4571 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmfsSelection, 4)
4572 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmfsSelection, 4)
4573 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmfsSelection, 76)
4574 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmfsType, 4)
4575 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmfsType, 4)
4576 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmfsType, 80)
4577 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmsCharSlopeRise, 4)
4578 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmsCharSlopeRise, 4)
4579 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmsCharSlopeRise, 84)
4580 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmsCharSlopeRun, 4)
4581 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmsCharSlopeRun, 4)
4582 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmsCharSlopeRun, 88)
4583 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmItalicAngle, 4)
4584 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmItalicAngle, 4)
4585 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmItalicAngle, 92)
4586 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmEMSquare, 4)
4587 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmEMSquare, 4)
4588 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmEMSquare, 96)
4589 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmAscent, 4)
4590 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmAscent, 4)
4591 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmAscent, 100)
4592 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmDescent, 4)
4593 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmDescent, 4)
4594 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmDescent, 104)
4595 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmLineGap, 4)
4596 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmLineGap, 4)
4597 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmLineGap, 108)
4598 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmsCapEmHeight, 4)
4599 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmsCapEmHeight, 4)
4600 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmsCapEmHeight, 112)
4601 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmsXHeight, 4)
4602 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmsXHeight, 4)
4603 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmsXHeight, 116)
4604 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmrcFontBox, 16)
4605 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmrcFontBox, 4)
4606 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmrcFontBox, 120)
4607 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmMacAscent, 4)
4608 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmMacAscent, 4)
4609 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmMacAscent, 136)
4610 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmMacDescent, 4)
4611 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmMacDescent, 4)
4612 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmMacDescent, 140)
4613 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmMacLineGap, 4)
4614 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmMacLineGap, 4)
4615 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmMacLineGap, 144)
4616 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmusMinimumPPEM, 4)
4617 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmusMinimumPPEM, 4)
4618 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmusMinimumPPEM, 148)
4619 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmptSubscriptSize, 8)
4620 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmptSubscriptSize, 4)
4621 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmptSubscriptSize, 152)
4622 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmptSubscriptOffset, 8)
4623 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmptSubscriptOffset, 4)
4624 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmptSubscriptOffset, 160)
4625 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmptSuperscriptSize, 8)
4626 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmptSuperscriptSize, 4)
4627 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmptSuperscriptSize, 168)
4628 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmptSuperscriptOffset, 8)
4629 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmptSuperscriptOffset, 4)
4630 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmptSuperscriptOffset, 176)
4631 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmsStrikeoutSize, 4)
4632 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmsStrikeoutSize, 4)
4633 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmsStrikeoutSize, 184)
4634 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmsStrikeoutPosition, 4)
4635 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmsStrikeoutPosition, 4)
4636 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmsStrikeoutPosition, 188)
4637 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmsUnderscoreSize, 4)
4638 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmsUnderscoreSize, 4)
4639 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmsUnderscoreSize, 192)
4640 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmsUnderscorePosition, 4)
4641 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmsUnderscorePosition, 4)
4642 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmsUnderscorePosition, 196)
4643 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmpFamilyName, 8)
4644 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmpFamilyName, 8)
4645 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmpFamilyName, 200)
4646 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmpFaceName, 8)
4647 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmpFaceName, 8)
4648 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmpFaceName, 208)
4649 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmpStyleName, 8)
4650 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmpStyleName, 8)
4651 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmpStyleName, 216)
4652 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmpFullName, 8)
4653 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmpFullName, 8)
4654 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmpFullName, 224)
4657 static void test_pack_PABC(void)
4659 /* PABC */
4660 TEST_TYPE_SIZE (PABC, 8)
4661 TEST_TYPE_ALIGN (PABC, 8)
4662 TEST_TARGET_SIZE (PABC, 12)
4663 TEST_TARGET_ALIGN(PABC, 4)
4666 static void test_pack_PABCFLOAT(void)
4668 /* PABCFLOAT */
4669 TEST_TYPE_SIZE (PABCFLOAT, 8)
4670 TEST_TYPE_ALIGN (PABCFLOAT, 8)
4671 TEST_TARGET_SIZE (PABCFLOAT, 12)
4672 TEST_TARGET_ALIGN(PABCFLOAT, 4)
4675 static void test_pack_PANOSE(void)
4677 /* PANOSE */
4678 TEST_TYPE_SIZE (PANOSE, 10)
4679 TEST_TYPE_ALIGN (PANOSE, 1)
4680 TEST_FIELD_SIZE (PANOSE, bFamilyType, 1)
4681 TEST_FIELD_ALIGN (PANOSE, bFamilyType, 1)
4682 TEST_FIELD_OFFSET(PANOSE, bFamilyType, 0)
4683 TEST_FIELD_SIZE (PANOSE, bSerifStyle, 1)
4684 TEST_FIELD_ALIGN (PANOSE, bSerifStyle, 1)
4685 TEST_FIELD_OFFSET(PANOSE, bSerifStyle, 1)
4686 TEST_FIELD_SIZE (PANOSE, bWeight, 1)
4687 TEST_FIELD_ALIGN (PANOSE, bWeight, 1)
4688 TEST_FIELD_OFFSET(PANOSE, bWeight, 2)
4689 TEST_FIELD_SIZE (PANOSE, bProportion, 1)
4690 TEST_FIELD_ALIGN (PANOSE, bProportion, 1)
4691 TEST_FIELD_OFFSET(PANOSE, bProportion, 3)
4692 TEST_FIELD_SIZE (PANOSE, bContrast, 1)
4693 TEST_FIELD_ALIGN (PANOSE, bContrast, 1)
4694 TEST_FIELD_OFFSET(PANOSE, bContrast, 4)
4695 TEST_FIELD_SIZE (PANOSE, bStrokeVariation, 1)
4696 TEST_FIELD_ALIGN (PANOSE, bStrokeVariation, 1)
4697 TEST_FIELD_OFFSET(PANOSE, bStrokeVariation, 5)
4698 TEST_FIELD_SIZE (PANOSE, bArmStyle, 1)
4699 TEST_FIELD_ALIGN (PANOSE, bArmStyle, 1)
4700 TEST_FIELD_OFFSET(PANOSE, bArmStyle, 6)
4701 TEST_FIELD_SIZE (PANOSE, bLetterform, 1)
4702 TEST_FIELD_ALIGN (PANOSE, bLetterform, 1)
4703 TEST_FIELD_OFFSET(PANOSE, bLetterform, 7)
4704 TEST_FIELD_SIZE (PANOSE, bMidline, 1)
4705 TEST_FIELD_ALIGN (PANOSE, bMidline, 1)
4706 TEST_FIELD_OFFSET(PANOSE, bMidline, 8)
4707 TEST_FIELD_SIZE (PANOSE, bXHeight, 1)
4708 TEST_FIELD_ALIGN (PANOSE, bXHeight, 1)
4709 TEST_FIELD_OFFSET(PANOSE, bXHeight, 9)
4712 static void test_pack_PATTERN(void)
4714 /* PATTERN */
4715 TEST_TYPE_SIZE (PATTERN, 16)
4716 TEST_TYPE_ALIGN (PATTERN, 8)
4719 static void test_pack_PBITMAP(void)
4721 /* PBITMAP */
4722 TEST_TYPE_SIZE (PBITMAP, 8)
4723 TEST_TYPE_ALIGN (PBITMAP, 8)
4724 TEST_TARGET_SIZE (PBITMAP, 32)
4725 TEST_TARGET_ALIGN(PBITMAP, 8)
4728 static void test_pack_PBITMAPCOREHEADER(void)
4730 /* PBITMAPCOREHEADER */
4731 TEST_TYPE_SIZE (PBITMAPCOREHEADER, 8)
4732 TEST_TYPE_ALIGN (PBITMAPCOREHEADER, 8)
4733 TEST_TARGET_SIZE (PBITMAPCOREHEADER, 12)
4734 TEST_TARGET_ALIGN(PBITMAPCOREHEADER, 4)
4737 static void test_pack_PBITMAPCOREINFO(void)
4739 /* PBITMAPCOREINFO */
4740 TEST_TYPE_SIZE (PBITMAPCOREINFO, 8)
4741 TEST_TYPE_ALIGN (PBITMAPCOREINFO, 8)
4742 TEST_TARGET_SIZE (PBITMAPCOREINFO, 16)
4743 TEST_TARGET_ALIGN(PBITMAPCOREINFO, 4)
4746 static void test_pack_PBITMAPFILEHEADER(void)
4748 /* PBITMAPFILEHEADER */
4749 TEST_TYPE_SIZE (PBITMAPFILEHEADER, 8)
4750 TEST_TYPE_ALIGN (PBITMAPFILEHEADER, 8)
4751 TEST_TARGET_SIZE (PBITMAPFILEHEADER, 14)
4752 TEST_TARGET_ALIGN(PBITMAPFILEHEADER, 2)
4755 static void test_pack_PBITMAPINFO(void)
4757 /* PBITMAPINFO */
4758 TEST_TYPE_SIZE (PBITMAPINFO, 8)
4759 TEST_TYPE_ALIGN (PBITMAPINFO, 8)
4760 TEST_TARGET_SIZE (PBITMAPINFO, 44)
4761 TEST_TARGET_ALIGN(PBITMAPINFO, 4)
4764 static void test_pack_PBITMAPINFOHEADER(void)
4766 /* PBITMAPINFOHEADER */
4767 TEST_TYPE_SIZE (PBITMAPINFOHEADER, 8)
4768 TEST_TYPE_ALIGN (PBITMAPINFOHEADER, 8)
4769 TEST_TARGET_SIZE (PBITMAPINFOHEADER, 40)
4770 TEST_TARGET_ALIGN(PBITMAPINFOHEADER, 4)
4773 static void test_pack_PBITMAPV4HEADER(void)
4775 /* PBITMAPV4HEADER */
4776 TEST_TYPE_SIZE (PBITMAPV4HEADER, 8)
4777 TEST_TYPE_ALIGN (PBITMAPV4HEADER, 8)
4778 TEST_TARGET_SIZE (PBITMAPV4HEADER, 108)
4779 TEST_TARGET_ALIGN(PBITMAPV4HEADER, 4)
4782 static void test_pack_PBITMAPV5HEADER(void)
4784 /* PBITMAPV5HEADER */
4785 TEST_TYPE_SIZE (PBITMAPV5HEADER, 8)
4786 TEST_TYPE_ALIGN (PBITMAPV5HEADER, 8)
4787 TEST_TARGET_SIZE (PBITMAPV5HEADER, 124)
4788 TEST_TARGET_ALIGN(PBITMAPV5HEADER, 4)
4791 static void test_pack_PBLENDFUNCTION(void)
4793 /* PBLENDFUNCTION */
4794 TEST_TYPE_SIZE (PBLENDFUNCTION, 8)
4795 TEST_TYPE_ALIGN (PBLENDFUNCTION, 8)
4796 TEST_TARGET_SIZE (PBLENDFUNCTION, 4)
4797 TEST_TARGET_ALIGN(PBLENDFUNCTION, 1)
4800 static void test_pack_PCHARSETINFO(void)
4802 /* PCHARSETINFO */
4803 TEST_TYPE_SIZE (PCHARSETINFO, 8)
4804 TEST_TYPE_ALIGN (PCHARSETINFO, 8)
4805 TEST_TARGET_SIZE (PCHARSETINFO, 32)
4806 TEST_TARGET_ALIGN(PCHARSETINFO, 4)
4809 static void test_pack_PCOLORADJUSTMENT(void)
4811 /* PCOLORADJUSTMENT */
4812 TEST_TYPE_SIZE (PCOLORADJUSTMENT, 8)
4813 TEST_TYPE_ALIGN (PCOLORADJUSTMENT, 8)
4814 TEST_TARGET_SIZE (PCOLORADJUSTMENT, 24)
4815 TEST_TARGET_ALIGN(PCOLORADJUSTMENT, 2)
4818 static void test_pack_PDEVMODEA(void)
4820 /* PDEVMODEA */
4821 TEST_TYPE_SIZE (PDEVMODEA, 8)
4822 TEST_TYPE_ALIGN (PDEVMODEA, 8)
4825 static void test_pack_PDEVMODEW(void)
4827 /* PDEVMODEW */
4828 TEST_TYPE_SIZE (PDEVMODEW, 8)
4829 TEST_TYPE_ALIGN (PDEVMODEW, 8)
4832 static void test_pack_PDIBSECTION(void)
4834 /* PDIBSECTION */
4835 TEST_TYPE_SIZE (PDIBSECTION, 8)
4836 TEST_TYPE_ALIGN (PDIBSECTION, 8)
4837 TEST_TARGET_SIZE (PDIBSECTION, 104)
4838 TEST_TARGET_ALIGN(PDIBSECTION, 8)
4841 static void test_pack_PDISPLAY_DEVICEA(void)
4843 /* PDISPLAY_DEVICEA */
4844 TEST_TYPE_SIZE (PDISPLAY_DEVICEA, 8)
4845 TEST_TYPE_ALIGN (PDISPLAY_DEVICEA, 8)
4846 TEST_TARGET_SIZE (PDISPLAY_DEVICEA, 424)
4847 TEST_TARGET_ALIGN(PDISPLAY_DEVICEA, 4)
4850 static void test_pack_PDISPLAY_DEVICEW(void)
4852 /* PDISPLAY_DEVICEW */
4853 TEST_TYPE_SIZE (PDISPLAY_DEVICEW, 8)
4854 TEST_TYPE_ALIGN (PDISPLAY_DEVICEW, 8)
4855 TEST_TARGET_SIZE (PDISPLAY_DEVICEW, 840)
4856 TEST_TARGET_ALIGN(PDISPLAY_DEVICEW, 4)
4859 static void test_pack_PELARRAY(void)
4861 /* PELARRAY */
4862 TEST_TYPE_SIZE (PELARRAY, 20)
4863 TEST_TYPE_ALIGN (PELARRAY, 4)
4864 TEST_FIELD_SIZE (PELARRAY, paXCount, 4)
4865 TEST_FIELD_ALIGN (PELARRAY, paXCount, 4)
4866 TEST_FIELD_OFFSET(PELARRAY, paXCount, 0)
4867 TEST_FIELD_SIZE (PELARRAY, paYCount, 4)
4868 TEST_FIELD_ALIGN (PELARRAY, paYCount, 4)
4869 TEST_FIELD_OFFSET(PELARRAY, paYCount, 4)
4870 TEST_FIELD_SIZE (PELARRAY, paXExt, 4)
4871 TEST_FIELD_ALIGN (PELARRAY, paXExt, 4)
4872 TEST_FIELD_OFFSET(PELARRAY, paXExt, 8)
4873 TEST_FIELD_SIZE (PELARRAY, paYExt, 4)
4874 TEST_FIELD_ALIGN (PELARRAY, paYExt, 4)
4875 TEST_FIELD_OFFSET(PELARRAY, paYExt, 12)
4876 TEST_FIELD_SIZE (PELARRAY, paRGBs, 1)
4877 TEST_FIELD_ALIGN (PELARRAY, paRGBs, 1)
4878 TEST_FIELD_OFFSET(PELARRAY, paRGBs, 16)
4881 static void test_pack_PEMR(void)
4883 /* PEMR */
4884 TEST_TYPE_SIZE (PEMR, 8)
4885 TEST_TYPE_ALIGN (PEMR, 8)
4886 TEST_TARGET_SIZE (PEMR, 8)
4887 TEST_TARGET_ALIGN(PEMR, 4)
4890 static void test_pack_PEMRABORTPATH(void)
4892 /* PEMRABORTPATH */
4893 TEST_TYPE_SIZE (PEMRABORTPATH, 8)
4894 TEST_TYPE_ALIGN (PEMRABORTPATH, 8)
4895 TEST_TARGET_SIZE (PEMRABORTPATH, 8)
4896 TEST_TARGET_ALIGN(PEMRABORTPATH, 4)
4899 static void test_pack_PEMRANGLEARC(void)
4901 /* PEMRANGLEARC */
4902 TEST_TYPE_SIZE (PEMRANGLEARC, 8)
4903 TEST_TYPE_ALIGN (PEMRANGLEARC, 8)
4904 TEST_TARGET_SIZE (PEMRANGLEARC, 28)
4905 TEST_TARGET_ALIGN(PEMRANGLEARC, 4)
4908 static void test_pack_PEMRARC(void)
4910 /* PEMRARC */
4911 TEST_TYPE_SIZE (PEMRARC, 8)
4912 TEST_TYPE_ALIGN (PEMRARC, 8)
4913 TEST_TARGET_SIZE (PEMRARC, 40)
4914 TEST_TARGET_ALIGN(PEMRARC, 4)
4917 static void test_pack_PEMRARCTO(void)
4919 /* PEMRARCTO */
4920 TEST_TYPE_SIZE (PEMRARCTO, 8)
4921 TEST_TYPE_ALIGN (PEMRARCTO, 8)
4922 TEST_TARGET_SIZE (PEMRARCTO, 40)
4923 TEST_TARGET_ALIGN(PEMRARCTO, 4)
4926 static void test_pack_PEMRBEGINPATH(void)
4928 /* PEMRBEGINPATH */
4929 TEST_TYPE_SIZE (PEMRBEGINPATH, 8)
4930 TEST_TYPE_ALIGN (PEMRBEGINPATH, 8)
4931 TEST_TARGET_SIZE (PEMRBEGINPATH, 8)
4932 TEST_TARGET_ALIGN(PEMRBEGINPATH, 4)
4935 static void test_pack_PEMRBITBLT(void)
4937 /* PEMRBITBLT */
4938 TEST_TYPE_SIZE (PEMRBITBLT, 8)
4939 TEST_TYPE_ALIGN (PEMRBITBLT, 8)
4940 TEST_TARGET_SIZE (PEMRBITBLT, 100)
4941 TEST_TARGET_ALIGN(PEMRBITBLT, 4)
4944 static void test_pack_PEMRCHORD(void)
4946 /* PEMRCHORD */
4947 TEST_TYPE_SIZE (PEMRCHORD, 8)
4948 TEST_TYPE_ALIGN (PEMRCHORD, 8)
4949 TEST_TARGET_SIZE (PEMRCHORD, 40)
4950 TEST_TARGET_ALIGN(PEMRCHORD, 4)
4953 static void test_pack_PEMRCLOSEFIGURE(void)
4955 /* PEMRCLOSEFIGURE */
4956 TEST_TYPE_SIZE (PEMRCLOSEFIGURE, 8)
4957 TEST_TYPE_ALIGN (PEMRCLOSEFIGURE, 8)
4958 TEST_TARGET_SIZE (PEMRCLOSEFIGURE, 8)
4959 TEST_TARGET_ALIGN(PEMRCLOSEFIGURE, 4)
4962 static void test_pack_PEMRCREATEBRUSHINDIRECT(void)
4964 /* PEMRCREATEBRUSHINDIRECT */
4965 TEST_TYPE_SIZE (PEMRCREATEBRUSHINDIRECT, 8)
4966 TEST_TYPE_ALIGN (PEMRCREATEBRUSHINDIRECT, 8)
4967 TEST_TARGET_SIZE (PEMRCREATEBRUSHINDIRECT, 24)
4968 TEST_TARGET_ALIGN(PEMRCREATEBRUSHINDIRECT, 4)
4971 static void test_pack_PEMRCREATECOLORSPACE(void)
4973 /* PEMRCREATECOLORSPACE */
4974 TEST_TYPE_SIZE (PEMRCREATECOLORSPACE, 8)
4975 TEST_TYPE_ALIGN (PEMRCREATECOLORSPACE, 8)
4976 TEST_TARGET_SIZE (PEMRCREATECOLORSPACE, 340)
4977 TEST_TARGET_ALIGN(PEMRCREATECOLORSPACE, 4)
4980 static void test_pack_PEMRCREATECOLORSPACEW(void)
4982 /* PEMRCREATECOLORSPACEW */
4983 TEST_TYPE_SIZE (PEMRCREATECOLORSPACEW, 8)
4984 TEST_TYPE_ALIGN (PEMRCREATECOLORSPACEW, 8)
4985 TEST_TARGET_SIZE (PEMRCREATECOLORSPACEW, 612)
4986 TEST_TARGET_ALIGN(PEMRCREATECOLORSPACEW, 4)
4989 static void test_pack_PEMRCREATEDIBPATTERNBRUSHPT(void)
4991 /* PEMRCREATEDIBPATTERNBRUSHPT */
4992 TEST_TYPE_SIZE (PEMRCREATEDIBPATTERNBRUSHPT, 8)
4993 TEST_TYPE_ALIGN (PEMRCREATEDIBPATTERNBRUSHPT, 8)
4994 TEST_TARGET_SIZE (PEMRCREATEDIBPATTERNBRUSHPT, 32)
4995 TEST_TARGET_ALIGN(PEMRCREATEDIBPATTERNBRUSHPT, 4)
4998 static void test_pack_PEMRCREATEMONOBRUSH(void)
5000 /* PEMRCREATEMONOBRUSH */
5001 TEST_TYPE_SIZE (PEMRCREATEMONOBRUSH, 8)
5002 TEST_TYPE_ALIGN (PEMRCREATEMONOBRUSH, 8)
5003 TEST_TARGET_SIZE (PEMRCREATEMONOBRUSH, 32)
5004 TEST_TARGET_ALIGN(PEMRCREATEMONOBRUSH, 4)
5007 static void test_pack_PEMRCREATEPALETTE(void)
5009 /* PEMRCREATEPALETTE */
5010 TEST_TYPE_SIZE (PEMRCREATEPALETTE, 8)
5011 TEST_TYPE_ALIGN (PEMRCREATEPALETTE, 8)
5012 TEST_TARGET_SIZE (PEMRCREATEPALETTE, 20)
5013 TEST_TARGET_ALIGN(PEMRCREATEPALETTE, 4)
5016 static void test_pack_PEMRCREATEPEN(void)
5018 /* PEMRCREATEPEN */
5019 TEST_TYPE_SIZE (PEMRCREATEPEN, 8)
5020 TEST_TYPE_ALIGN (PEMRCREATEPEN, 8)
5021 TEST_TARGET_SIZE (PEMRCREATEPEN, 28)
5022 TEST_TARGET_ALIGN(PEMRCREATEPEN, 4)
5025 static void test_pack_PEMRDELETECOLORSPACE(void)
5027 /* PEMRDELETECOLORSPACE */
5028 TEST_TYPE_SIZE (PEMRDELETECOLORSPACE, 8)
5029 TEST_TYPE_ALIGN (PEMRDELETECOLORSPACE, 8)
5030 TEST_TARGET_SIZE (PEMRDELETECOLORSPACE, 12)
5031 TEST_TARGET_ALIGN(PEMRDELETECOLORSPACE, 4)
5034 static void test_pack_PEMRDELETEOBJECT(void)
5036 /* PEMRDELETEOBJECT */
5037 TEST_TYPE_SIZE (PEMRDELETEOBJECT, 8)
5038 TEST_TYPE_ALIGN (PEMRDELETEOBJECT, 8)
5039 TEST_TARGET_SIZE (PEMRDELETEOBJECT, 12)
5040 TEST_TARGET_ALIGN(PEMRDELETEOBJECT, 4)
5043 static void test_pack_PEMRELLIPSE(void)
5045 /* PEMRELLIPSE */
5046 TEST_TYPE_SIZE (PEMRELLIPSE, 8)
5047 TEST_TYPE_ALIGN (PEMRELLIPSE, 8)
5048 TEST_TARGET_SIZE (PEMRELLIPSE, 24)
5049 TEST_TARGET_ALIGN(PEMRELLIPSE, 4)
5052 static void test_pack_PEMRENDPATH(void)
5054 /* PEMRENDPATH */
5055 TEST_TYPE_SIZE (PEMRENDPATH, 8)
5056 TEST_TYPE_ALIGN (PEMRENDPATH, 8)
5057 TEST_TARGET_SIZE (PEMRENDPATH, 8)
5058 TEST_TARGET_ALIGN(PEMRENDPATH, 4)
5061 static void test_pack_PEMREOF(void)
5063 /* PEMREOF */
5064 TEST_TYPE_SIZE (PEMREOF, 8)
5065 TEST_TYPE_ALIGN (PEMREOF, 8)
5066 TEST_TARGET_SIZE (PEMREOF, 20)
5067 TEST_TARGET_ALIGN(PEMREOF, 4)
5070 static void test_pack_PEMREXCLUDECLIPRECT(void)
5072 /* PEMREXCLUDECLIPRECT */
5073 TEST_TYPE_SIZE (PEMREXCLUDECLIPRECT, 8)
5074 TEST_TYPE_ALIGN (PEMREXCLUDECLIPRECT, 8)
5075 TEST_TARGET_SIZE (PEMREXCLUDECLIPRECT, 24)
5076 TEST_TARGET_ALIGN(PEMREXCLUDECLIPRECT, 4)
5079 static void test_pack_PEMREXTCREATEFONTINDIRECTW(void)
5081 /* PEMREXTCREATEFONTINDIRECTW */
5082 TEST_TYPE_SIZE (PEMREXTCREATEFONTINDIRECTW, 8)
5083 TEST_TYPE_ALIGN (PEMREXTCREATEFONTINDIRECTW, 8)
5084 TEST_TARGET_SIZE (PEMREXTCREATEFONTINDIRECTW, 332)
5085 TEST_TARGET_ALIGN(PEMREXTCREATEFONTINDIRECTW, 4)
5088 static void test_pack_PEMREXTCREATEPEN(void)
5090 /* PEMREXTCREATEPEN */
5091 TEST_TYPE_SIZE (PEMREXTCREATEPEN, 8)
5092 TEST_TYPE_ALIGN (PEMREXTCREATEPEN, 8)
5093 TEST_TARGET_SIZE (PEMREXTCREATEPEN, 64)
5094 TEST_TARGET_ALIGN(PEMREXTCREATEPEN, 8)
5097 static void test_pack_PEMREXTFLOODFILL(void)
5099 /* PEMREXTFLOODFILL */
5100 TEST_TYPE_SIZE (PEMREXTFLOODFILL, 8)
5101 TEST_TYPE_ALIGN (PEMREXTFLOODFILL, 8)
5102 TEST_TARGET_SIZE (PEMREXTFLOODFILL, 24)
5103 TEST_TARGET_ALIGN(PEMREXTFLOODFILL, 4)
5106 static void test_pack_PEMREXTSELECTCLIPRGN(void)
5108 /* PEMREXTSELECTCLIPRGN */
5109 TEST_TYPE_SIZE (PEMREXTSELECTCLIPRGN, 8)
5110 TEST_TYPE_ALIGN (PEMREXTSELECTCLIPRGN, 8)
5111 TEST_TARGET_SIZE (PEMREXTSELECTCLIPRGN, 20)
5112 TEST_TARGET_ALIGN(PEMREXTSELECTCLIPRGN, 4)
5115 static void test_pack_PEMREXTTEXTOUTA(void)
5117 /* PEMREXTTEXTOUTA */
5118 TEST_TYPE_SIZE (PEMREXTTEXTOUTA, 8)
5119 TEST_TYPE_ALIGN (PEMREXTTEXTOUTA, 8)
5120 TEST_TARGET_SIZE (PEMREXTTEXTOUTA, 76)
5121 TEST_TARGET_ALIGN(PEMREXTTEXTOUTA, 4)
5124 static void test_pack_PEMREXTTEXTOUTW(void)
5126 /* PEMREXTTEXTOUTW */
5127 TEST_TYPE_SIZE (PEMREXTTEXTOUTW, 8)
5128 TEST_TYPE_ALIGN (PEMREXTTEXTOUTW, 8)
5129 TEST_TARGET_SIZE (PEMREXTTEXTOUTW, 76)
5130 TEST_TARGET_ALIGN(PEMREXTTEXTOUTW, 4)
5133 static void test_pack_PEMRFILLPATH(void)
5135 /* PEMRFILLPATH */
5136 TEST_TYPE_SIZE (PEMRFILLPATH, 8)
5137 TEST_TYPE_ALIGN (PEMRFILLPATH, 8)
5138 TEST_TARGET_SIZE (PEMRFILLPATH, 24)
5139 TEST_TARGET_ALIGN(PEMRFILLPATH, 4)
5142 static void test_pack_PEMRFILLRGN(void)
5144 /* PEMRFILLRGN */
5145 TEST_TYPE_SIZE (PEMRFILLRGN, 8)
5146 TEST_TYPE_ALIGN (PEMRFILLRGN, 8)
5147 TEST_TARGET_SIZE (PEMRFILLRGN, 36)
5148 TEST_TARGET_ALIGN(PEMRFILLRGN, 4)
5151 static void test_pack_PEMRFLATTENPATH(void)
5153 /* PEMRFLATTENPATH */
5154 TEST_TYPE_SIZE (PEMRFLATTENPATH, 8)
5155 TEST_TYPE_ALIGN (PEMRFLATTENPATH, 8)
5156 TEST_TARGET_SIZE (PEMRFLATTENPATH, 8)
5157 TEST_TARGET_ALIGN(PEMRFLATTENPATH, 4)
5160 static void test_pack_PEMRFORMAT(void)
5162 /* PEMRFORMAT */
5163 TEST_TYPE_SIZE (PEMRFORMAT, 8)
5164 TEST_TYPE_ALIGN (PEMRFORMAT, 8)
5165 TEST_TARGET_SIZE (PEMRFORMAT, 16)
5166 TEST_TARGET_ALIGN(PEMRFORMAT, 4)
5169 static void test_pack_PEMRFRAMERGN(void)
5171 /* PEMRFRAMERGN */
5172 TEST_TYPE_SIZE (PEMRFRAMERGN, 8)
5173 TEST_TYPE_ALIGN (PEMRFRAMERGN, 8)
5174 TEST_TARGET_SIZE (PEMRFRAMERGN, 44)
5175 TEST_TARGET_ALIGN(PEMRFRAMERGN, 4)
5178 static void test_pack_PEMRGDICOMMENT(void)
5180 /* PEMRGDICOMMENT */
5181 TEST_TYPE_SIZE (PEMRGDICOMMENT, 8)
5182 TEST_TYPE_ALIGN (PEMRGDICOMMENT, 8)
5183 TEST_TARGET_SIZE (PEMRGDICOMMENT, 16)
5184 TEST_TARGET_ALIGN(PEMRGDICOMMENT, 4)
5187 static void test_pack_PEMRGLSBOUNDEDRECORD(void)
5189 /* PEMRGLSBOUNDEDRECORD */
5190 TEST_TYPE_SIZE (PEMRGLSBOUNDEDRECORD, 8)
5191 TEST_TYPE_ALIGN (PEMRGLSBOUNDEDRECORD, 8)
5192 TEST_TARGET_SIZE (PEMRGLSBOUNDEDRECORD, 32)
5193 TEST_TARGET_ALIGN(PEMRGLSBOUNDEDRECORD, 4)
5196 static void test_pack_PEMRGLSRECORD(void)
5198 /* PEMRGLSRECORD */
5199 TEST_TYPE_SIZE (PEMRGLSRECORD, 8)
5200 TEST_TYPE_ALIGN (PEMRGLSRECORD, 8)
5201 TEST_TARGET_SIZE (PEMRGLSRECORD, 16)
5202 TEST_TARGET_ALIGN(PEMRGLSRECORD, 4)
5205 static void test_pack_PEMRINTERSECTCLIPRECT(void)
5207 /* PEMRINTERSECTCLIPRECT */
5208 TEST_TYPE_SIZE (PEMRINTERSECTCLIPRECT, 8)
5209 TEST_TYPE_ALIGN (PEMRINTERSECTCLIPRECT, 8)
5210 TEST_TARGET_SIZE (PEMRINTERSECTCLIPRECT, 24)
5211 TEST_TARGET_ALIGN(PEMRINTERSECTCLIPRECT, 4)
5214 static void test_pack_PEMRINVERTRGN(void)
5216 /* PEMRINVERTRGN */
5217 TEST_TYPE_SIZE (PEMRINVERTRGN, 8)
5218 TEST_TYPE_ALIGN (PEMRINVERTRGN, 8)
5219 TEST_TARGET_SIZE (PEMRINVERTRGN, 32)
5220 TEST_TARGET_ALIGN(PEMRINVERTRGN, 4)
5223 static void test_pack_PEMRLINETO(void)
5225 /* PEMRLINETO */
5226 TEST_TYPE_SIZE (PEMRLINETO, 8)
5227 TEST_TYPE_ALIGN (PEMRLINETO, 8)
5228 TEST_TARGET_SIZE (PEMRLINETO, 16)
5229 TEST_TARGET_ALIGN(PEMRLINETO, 4)
5232 static void test_pack_PEMRMASKBLT(void)
5234 /* PEMRMASKBLT */
5235 TEST_TYPE_SIZE (PEMRMASKBLT, 8)
5236 TEST_TYPE_ALIGN (PEMRMASKBLT, 8)
5237 TEST_TARGET_SIZE (PEMRMASKBLT, 128)
5238 TEST_TARGET_ALIGN(PEMRMASKBLT, 4)
5241 static void test_pack_PEMRMODIFYWORLDTRANSFORM(void)
5243 /* PEMRMODIFYWORLDTRANSFORM */
5244 TEST_TYPE_SIZE (PEMRMODIFYWORLDTRANSFORM, 8)
5245 TEST_TYPE_ALIGN (PEMRMODIFYWORLDTRANSFORM, 8)
5246 TEST_TARGET_SIZE (PEMRMODIFYWORLDTRANSFORM, 36)
5247 TEST_TARGET_ALIGN(PEMRMODIFYWORLDTRANSFORM, 4)
5250 static void test_pack_PEMRMOVETOEX(void)
5252 /* PEMRMOVETOEX */
5253 TEST_TYPE_SIZE (PEMRMOVETOEX, 8)
5254 TEST_TYPE_ALIGN (PEMRMOVETOEX, 8)
5255 TEST_TARGET_SIZE (PEMRMOVETOEX, 16)
5256 TEST_TARGET_ALIGN(PEMRMOVETOEX, 4)
5259 static void test_pack_PEMROFFSETCLIPRGN(void)
5261 /* PEMROFFSETCLIPRGN */
5262 TEST_TYPE_SIZE (PEMROFFSETCLIPRGN, 8)
5263 TEST_TYPE_ALIGN (PEMROFFSETCLIPRGN, 8)
5264 TEST_TARGET_SIZE (PEMROFFSETCLIPRGN, 16)
5265 TEST_TARGET_ALIGN(PEMROFFSETCLIPRGN, 4)
5268 static void test_pack_PEMRPAINTRGN(void)
5270 /* PEMRPAINTRGN */
5271 TEST_TYPE_SIZE (PEMRPAINTRGN, 8)
5272 TEST_TYPE_ALIGN (PEMRPAINTRGN, 8)
5273 TEST_TARGET_SIZE (PEMRPAINTRGN, 32)
5274 TEST_TARGET_ALIGN(PEMRPAINTRGN, 4)
5277 static void test_pack_PEMRPIE(void)
5279 /* PEMRPIE */
5280 TEST_TYPE_SIZE (PEMRPIE, 8)
5281 TEST_TYPE_ALIGN (PEMRPIE, 8)
5282 TEST_TARGET_SIZE (PEMRPIE, 40)
5283 TEST_TARGET_ALIGN(PEMRPIE, 4)
5286 static void test_pack_PEMRPIXELFORMAT(void)
5288 /* PEMRPIXELFORMAT */
5289 TEST_TYPE_SIZE (PEMRPIXELFORMAT, 8)
5290 TEST_TYPE_ALIGN (PEMRPIXELFORMAT, 8)
5291 TEST_TARGET_SIZE (PEMRPIXELFORMAT, 48)
5292 TEST_TARGET_ALIGN(PEMRPIXELFORMAT, 4)
5295 static void test_pack_PEMRPLGBLT(void)
5297 /* PEMRPLGBLT */
5298 TEST_TYPE_SIZE (PEMRPLGBLT, 8)
5299 TEST_TYPE_ALIGN (PEMRPLGBLT, 8)
5300 TEST_TARGET_SIZE (PEMRPLGBLT, 140)
5301 TEST_TARGET_ALIGN(PEMRPLGBLT, 4)
5304 static void test_pack_PEMRPOLYBEZIER(void)
5306 /* PEMRPOLYBEZIER */
5307 TEST_TYPE_SIZE (PEMRPOLYBEZIER, 8)
5308 TEST_TYPE_ALIGN (PEMRPOLYBEZIER, 8)
5309 TEST_TARGET_SIZE (PEMRPOLYBEZIER, 36)
5310 TEST_TARGET_ALIGN(PEMRPOLYBEZIER, 4)
5313 static void test_pack_PEMRPOLYBEZIER16(void)
5315 /* PEMRPOLYBEZIER16 */
5316 TEST_TYPE_SIZE (PEMRPOLYBEZIER16, 8)
5317 TEST_TYPE_ALIGN (PEMRPOLYBEZIER16, 8)
5318 TEST_TARGET_SIZE (PEMRPOLYBEZIER16, 32)
5319 TEST_TARGET_ALIGN(PEMRPOLYBEZIER16, 4)
5322 static void test_pack_PEMRPOLYBEZIERTO(void)
5324 /* PEMRPOLYBEZIERTO */
5325 TEST_TYPE_SIZE (PEMRPOLYBEZIERTO, 8)
5326 TEST_TYPE_ALIGN (PEMRPOLYBEZIERTO, 8)
5327 TEST_TARGET_SIZE (PEMRPOLYBEZIERTO, 36)
5328 TEST_TARGET_ALIGN(PEMRPOLYBEZIERTO, 4)
5331 static void test_pack_PEMRPOLYBEZIERTO16(void)
5333 /* PEMRPOLYBEZIERTO16 */
5334 TEST_TYPE_SIZE (PEMRPOLYBEZIERTO16, 8)
5335 TEST_TYPE_ALIGN (PEMRPOLYBEZIERTO16, 8)
5336 TEST_TARGET_SIZE (PEMRPOLYBEZIERTO16, 32)
5337 TEST_TARGET_ALIGN(PEMRPOLYBEZIERTO16, 4)
5340 static void test_pack_PEMRPOLYDRAW(void)
5342 /* PEMRPOLYDRAW */
5343 TEST_TYPE_SIZE (PEMRPOLYDRAW, 8)
5344 TEST_TYPE_ALIGN (PEMRPOLYDRAW, 8)
5345 TEST_TARGET_SIZE (PEMRPOLYDRAW, 40)
5346 TEST_TARGET_ALIGN(PEMRPOLYDRAW, 4)
5349 static void test_pack_PEMRPOLYDRAW16(void)
5351 /* PEMRPOLYDRAW16 */
5352 TEST_TYPE_SIZE (PEMRPOLYDRAW16, 8)
5353 TEST_TYPE_ALIGN (PEMRPOLYDRAW16, 8)
5354 TEST_TARGET_SIZE (PEMRPOLYDRAW16, 36)
5355 TEST_TARGET_ALIGN(PEMRPOLYDRAW16, 4)
5358 static void test_pack_PEMRPOLYGON(void)
5360 /* PEMRPOLYGON */
5361 TEST_TYPE_SIZE (PEMRPOLYGON, 8)
5362 TEST_TYPE_ALIGN (PEMRPOLYGON, 8)
5363 TEST_TARGET_SIZE (PEMRPOLYGON, 36)
5364 TEST_TARGET_ALIGN(PEMRPOLYGON, 4)
5367 static void test_pack_PEMRPOLYGON16(void)
5369 /* PEMRPOLYGON16 */
5370 TEST_TYPE_SIZE (PEMRPOLYGON16, 8)
5371 TEST_TYPE_ALIGN (PEMRPOLYGON16, 8)
5372 TEST_TARGET_SIZE (PEMRPOLYGON16, 32)
5373 TEST_TARGET_ALIGN(PEMRPOLYGON16, 4)
5376 static void test_pack_PEMRPOLYLINE(void)
5378 /* PEMRPOLYLINE */
5379 TEST_TYPE_SIZE (PEMRPOLYLINE, 8)
5380 TEST_TYPE_ALIGN (PEMRPOLYLINE, 8)
5381 TEST_TARGET_SIZE (PEMRPOLYLINE, 36)
5382 TEST_TARGET_ALIGN(PEMRPOLYLINE, 4)
5385 static void test_pack_PEMRPOLYLINE16(void)
5387 /* PEMRPOLYLINE16 */
5388 TEST_TYPE_SIZE (PEMRPOLYLINE16, 8)
5389 TEST_TYPE_ALIGN (PEMRPOLYLINE16, 8)
5390 TEST_TARGET_SIZE (PEMRPOLYLINE16, 32)
5391 TEST_TARGET_ALIGN(PEMRPOLYLINE16, 4)
5394 static void test_pack_PEMRPOLYLINETO(void)
5396 /* PEMRPOLYLINETO */
5397 TEST_TYPE_SIZE (PEMRPOLYLINETO, 8)
5398 TEST_TYPE_ALIGN (PEMRPOLYLINETO, 8)
5399 TEST_TARGET_SIZE (PEMRPOLYLINETO, 36)
5400 TEST_TARGET_ALIGN(PEMRPOLYLINETO, 4)
5403 static void test_pack_PEMRPOLYLINETO16(void)
5405 /* PEMRPOLYLINETO16 */
5406 TEST_TYPE_SIZE (PEMRPOLYLINETO16, 8)
5407 TEST_TYPE_ALIGN (PEMRPOLYLINETO16, 8)
5408 TEST_TARGET_SIZE (PEMRPOLYLINETO16, 32)
5409 TEST_TARGET_ALIGN(PEMRPOLYLINETO16, 4)
5412 static void test_pack_PEMRPOLYPOLYGON(void)
5414 /* PEMRPOLYPOLYGON */
5415 TEST_TYPE_SIZE (PEMRPOLYPOLYGON, 8)
5416 TEST_TYPE_ALIGN (PEMRPOLYPOLYGON, 8)
5417 TEST_TARGET_SIZE (PEMRPOLYPOLYGON, 44)
5418 TEST_TARGET_ALIGN(PEMRPOLYPOLYGON, 4)
5421 static void test_pack_PEMRPOLYPOLYGON16(void)
5423 /* PEMRPOLYPOLYGON16 */
5424 TEST_TYPE_SIZE (PEMRPOLYPOLYGON16, 8)
5425 TEST_TYPE_ALIGN (PEMRPOLYPOLYGON16, 8)
5426 TEST_TARGET_SIZE (PEMRPOLYPOLYGON16, 40)
5427 TEST_TARGET_ALIGN(PEMRPOLYPOLYGON16, 4)
5430 static void test_pack_PEMRPOLYPOLYLINE(void)
5432 /* PEMRPOLYPOLYLINE */
5433 TEST_TYPE_SIZE (PEMRPOLYPOLYLINE, 8)
5434 TEST_TYPE_ALIGN (PEMRPOLYPOLYLINE, 8)
5435 TEST_TARGET_SIZE (PEMRPOLYPOLYLINE, 44)
5436 TEST_TARGET_ALIGN(PEMRPOLYPOLYLINE, 4)
5439 static void test_pack_PEMRPOLYPOLYLINE16(void)
5441 /* PEMRPOLYPOLYLINE16 */
5442 TEST_TYPE_SIZE (PEMRPOLYPOLYLINE16, 8)
5443 TEST_TYPE_ALIGN (PEMRPOLYPOLYLINE16, 8)
5444 TEST_TARGET_SIZE (PEMRPOLYPOLYLINE16, 40)
5445 TEST_TARGET_ALIGN(PEMRPOLYPOLYLINE16, 4)
5448 static void test_pack_PEMRPOLYTEXTOUTA(void)
5450 /* PEMRPOLYTEXTOUTA */
5451 TEST_TYPE_SIZE (PEMRPOLYTEXTOUTA, 8)
5452 TEST_TYPE_ALIGN (PEMRPOLYTEXTOUTA, 8)
5453 TEST_TARGET_SIZE (PEMRPOLYTEXTOUTA, 80)
5454 TEST_TARGET_ALIGN(PEMRPOLYTEXTOUTA, 4)
5457 static void test_pack_PEMRPOLYTEXTOUTW(void)
5459 /* PEMRPOLYTEXTOUTW */
5460 TEST_TYPE_SIZE (PEMRPOLYTEXTOUTW, 8)
5461 TEST_TYPE_ALIGN (PEMRPOLYTEXTOUTW, 8)
5462 TEST_TARGET_SIZE (PEMRPOLYTEXTOUTW, 80)
5463 TEST_TARGET_ALIGN(PEMRPOLYTEXTOUTW, 4)
5466 static void test_pack_PEMRREALIZEPALETTE(void)
5468 /* PEMRREALIZEPALETTE */
5469 TEST_TYPE_SIZE (PEMRREALIZEPALETTE, 8)
5470 TEST_TYPE_ALIGN (PEMRREALIZEPALETTE, 8)
5471 TEST_TARGET_SIZE (PEMRREALIZEPALETTE, 8)
5472 TEST_TARGET_ALIGN(PEMRREALIZEPALETTE, 4)
5475 static void test_pack_PEMRRECTANGLE(void)
5477 /* PEMRRECTANGLE */
5478 TEST_TYPE_SIZE (PEMRRECTANGLE, 8)
5479 TEST_TYPE_ALIGN (PEMRRECTANGLE, 8)
5480 TEST_TARGET_SIZE (PEMRRECTANGLE, 24)
5481 TEST_TARGET_ALIGN(PEMRRECTANGLE, 4)
5484 static void test_pack_PEMRRESIZEPALETTE(void)
5486 /* PEMRRESIZEPALETTE */
5487 TEST_TYPE_SIZE (PEMRRESIZEPALETTE, 8)
5488 TEST_TYPE_ALIGN (PEMRRESIZEPALETTE, 8)
5489 TEST_TARGET_SIZE (PEMRRESIZEPALETTE, 16)
5490 TEST_TARGET_ALIGN(PEMRRESIZEPALETTE, 4)
5493 static void test_pack_PEMRRESTOREDC(void)
5495 /* PEMRRESTOREDC */
5496 TEST_TYPE_SIZE (PEMRRESTOREDC, 8)
5497 TEST_TYPE_ALIGN (PEMRRESTOREDC, 8)
5498 TEST_TARGET_SIZE (PEMRRESTOREDC, 12)
5499 TEST_TARGET_ALIGN(PEMRRESTOREDC, 4)
5502 static void test_pack_PEMRROUNDRECT(void)
5504 /* PEMRROUNDRECT */
5505 TEST_TYPE_SIZE (PEMRROUNDRECT, 8)
5506 TEST_TYPE_ALIGN (PEMRROUNDRECT, 8)
5507 TEST_TARGET_SIZE (PEMRROUNDRECT, 32)
5508 TEST_TARGET_ALIGN(PEMRROUNDRECT, 4)
5511 static void test_pack_PEMRSAVEDC(void)
5513 /* PEMRSAVEDC */
5514 TEST_TYPE_SIZE (PEMRSAVEDC, 8)
5515 TEST_TYPE_ALIGN (PEMRSAVEDC, 8)
5516 TEST_TARGET_SIZE (PEMRSAVEDC, 8)
5517 TEST_TARGET_ALIGN(PEMRSAVEDC, 4)
5520 static void test_pack_PEMRSCALEVIEWPORTEXTEX(void)
5522 /* PEMRSCALEVIEWPORTEXTEX */
5523 TEST_TYPE_SIZE (PEMRSCALEVIEWPORTEXTEX, 8)
5524 TEST_TYPE_ALIGN (PEMRSCALEVIEWPORTEXTEX, 8)
5525 TEST_TARGET_SIZE (PEMRSCALEVIEWPORTEXTEX, 24)
5526 TEST_TARGET_ALIGN(PEMRSCALEVIEWPORTEXTEX, 4)
5529 static void test_pack_PEMRSCALEWINDOWEXTEX(void)
5531 /* PEMRSCALEWINDOWEXTEX */
5532 TEST_TYPE_SIZE (PEMRSCALEWINDOWEXTEX, 8)
5533 TEST_TYPE_ALIGN (PEMRSCALEWINDOWEXTEX, 8)
5534 TEST_TARGET_SIZE (PEMRSCALEWINDOWEXTEX, 24)
5535 TEST_TARGET_ALIGN(PEMRSCALEWINDOWEXTEX, 4)
5538 static void test_pack_PEMRSELECTCLIPPATH(void)
5540 /* PEMRSELECTCLIPPATH */
5541 TEST_TYPE_SIZE (PEMRSELECTCLIPPATH, 8)
5542 TEST_TYPE_ALIGN (PEMRSELECTCLIPPATH, 8)
5543 TEST_TARGET_SIZE (PEMRSELECTCLIPPATH, 12)
5544 TEST_TARGET_ALIGN(PEMRSELECTCLIPPATH, 4)
5547 static void test_pack_PEMRSELECTCOLORSPACE(void)
5549 /* PEMRSELECTCOLORSPACE */
5550 TEST_TYPE_SIZE (PEMRSELECTCOLORSPACE, 8)
5551 TEST_TYPE_ALIGN (PEMRSELECTCOLORSPACE, 8)
5552 TEST_TARGET_SIZE (PEMRSELECTCOLORSPACE, 12)
5553 TEST_TARGET_ALIGN(PEMRSELECTCOLORSPACE, 4)
5556 static void test_pack_PEMRSELECTOBJECT(void)
5558 /* PEMRSELECTOBJECT */
5559 TEST_TYPE_SIZE (PEMRSELECTOBJECT, 8)
5560 TEST_TYPE_ALIGN (PEMRSELECTOBJECT, 8)
5561 TEST_TARGET_SIZE (PEMRSELECTOBJECT, 12)
5562 TEST_TARGET_ALIGN(PEMRSELECTOBJECT, 4)
5565 static void test_pack_PEMRSELECTPALETTE(void)
5567 /* PEMRSELECTPALETTE */
5568 TEST_TYPE_SIZE (PEMRSELECTPALETTE, 8)
5569 TEST_TYPE_ALIGN (PEMRSELECTPALETTE, 8)
5570 TEST_TARGET_SIZE (PEMRSELECTPALETTE, 12)
5571 TEST_TARGET_ALIGN(PEMRSELECTPALETTE, 4)
5574 static void test_pack_PEMRSETARCDIRECTION(void)
5576 /* PEMRSETARCDIRECTION */
5577 TEST_TYPE_SIZE (PEMRSETARCDIRECTION, 8)
5578 TEST_TYPE_ALIGN (PEMRSETARCDIRECTION, 8)
5579 TEST_TARGET_SIZE (PEMRSETARCDIRECTION, 12)
5580 TEST_TARGET_ALIGN(PEMRSETARCDIRECTION, 4)
5583 static void test_pack_PEMRSETBKCOLOR(void)
5585 /* PEMRSETBKCOLOR */
5586 TEST_TYPE_SIZE (PEMRSETBKCOLOR, 8)
5587 TEST_TYPE_ALIGN (PEMRSETBKCOLOR, 8)
5588 TEST_TARGET_SIZE (PEMRSETBKCOLOR, 12)
5589 TEST_TARGET_ALIGN(PEMRSETBKCOLOR, 4)
5592 static void test_pack_PEMRSETBKMODE(void)
5594 /* PEMRSETBKMODE */
5595 TEST_TYPE_SIZE (PEMRSETBKMODE, 8)
5596 TEST_TYPE_ALIGN (PEMRSETBKMODE, 8)
5597 TEST_TARGET_SIZE (PEMRSETBKMODE, 12)
5598 TEST_TARGET_ALIGN(PEMRSETBKMODE, 4)
5601 static void test_pack_PEMRSETBRUSHORGEX(void)
5603 /* PEMRSETBRUSHORGEX */
5604 TEST_TYPE_SIZE (PEMRSETBRUSHORGEX, 8)
5605 TEST_TYPE_ALIGN (PEMRSETBRUSHORGEX, 8)
5606 TEST_TARGET_SIZE (PEMRSETBRUSHORGEX, 16)
5607 TEST_TARGET_ALIGN(PEMRSETBRUSHORGEX, 4)
5610 static void test_pack_PEMRSETCOLORADJUSTMENT(void)
5612 /* PEMRSETCOLORADJUSTMENT */
5613 TEST_TYPE_SIZE (PEMRSETCOLORADJUSTMENT, 8)
5614 TEST_TYPE_ALIGN (PEMRSETCOLORADJUSTMENT, 8)
5615 TEST_TARGET_SIZE (PEMRSETCOLORADJUSTMENT, 32)
5616 TEST_TARGET_ALIGN(PEMRSETCOLORADJUSTMENT, 4)
5619 static void test_pack_PEMRSETCOLORSPACE(void)
5621 /* PEMRSETCOLORSPACE */
5622 TEST_TYPE_SIZE (PEMRSETCOLORSPACE, 8)
5623 TEST_TYPE_ALIGN (PEMRSETCOLORSPACE, 8)
5624 TEST_TARGET_SIZE (PEMRSETCOLORSPACE, 12)
5625 TEST_TARGET_ALIGN(PEMRSETCOLORSPACE, 4)
5628 static void test_pack_PEMRSETDIBITSTODEVICE(void)
5630 /* PEMRSETDIBITSTODEVICE */
5631 TEST_TYPE_SIZE (PEMRSETDIBITSTODEVICE, 8)
5632 TEST_TYPE_ALIGN (PEMRSETDIBITSTODEVICE, 8)
5633 TEST_TARGET_SIZE (PEMRSETDIBITSTODEVICE, 76)
5634 TEST_TARGET_ALIGN(PEMRSETDIBITSTODEVICE, 4)
5637 static void test_pack_PEMRSETICMMODE(void)
5639 /* PEMRSETICMMODE */
5640 TEST_TYPE_SIZE (PEMRSETICMMODE, 8)
5641 TEST_TYPE_ALIGN (PEMRSETICMMODE, 8)
5642 TEST_TARGET_SIZE (PEMRSETICMMODE, 12)
5643 TEST_TARGET_ALIGN(PEMRSETICMMODE, 4)
5646 static void test_pack_PEMRSETLAYOUT(void)
5648 /* PEMRSETLAYOUT */
5649 TEST_TYPE_SIZE (PEMRSETLAYOUT, 8)
5650 TEST_TYPE_ALIGN (PEMRSETLAYOUT, 8)
5651 TEST_TARGET_SIZE (PEMRSETLAYOUT, 12)
5652 TEST_TARGET_ALIGN(PEMRSETLAYOUT, 4)
5655 static void test_pack_PEMRSETMAPMODE(void)
5657 /* PEMRSETMAPMODE */
5658 TEST_TYPE_SIZE (PEMRSETMAPMODE, 8)
5659 TEST_TYPE_ALIGN (PEMRSETMAPMODE, 8)
5660 TEST_TARGET_SIZE (PEMRSETMAPMODE, 12)
5661 TEST_TARGET_ALIGN(PEMRSETMAPMODE, 4)
5664 static void test_pack_PEMRSETMAPPERFLAGS(void)
5666 /* PEMRSETMAPPERFLAGS */
5667 TEST_TYPE_SIZE (PEMRSETMAPPERFLAGS, 8)
5668 TEST_TYPE_ALIGN (PEMRSETMAPPERFLAGS, 8)
5669 TEST_TARGET_SIZE (PEMRSETMAPPERFLAGS, 12)
5670 TEST_TARGET_ALIGN(PEMRSETMAPPERFLAGS, 4)
5673 static void test_pack_PEMRSETMETARGN(void)
5675 /* PEMRSETMETARGN */
5676 TEST_TYPE_SIZE (PEMRSETMETARGN, 8)
5677 TEST_TYPE_ALIGN (PEMRSETMETARGN, 8)
5678 TEST_TARGET_SIZE (PEMRSETMETARGN, 8)
5679 TEST_TARGET_ALIGN(PEMRSETMETARGN, 4)
5682 static void test_pack_PEMRSETMITERLIMIT(void)
5684 /* PEMRSETMITERLIMIT */
5685 TEST_TYPE_SIZE (PEMRSETMITERLIMIT, 8)
5686 TEST_TYPE_ALIGN (PEMRSETMITERLIMIT, 8)
5687 TEST_TARGET_SIZE (PEMRSETMITERLIMIT, 12)
5688 TEST_TARGET_ALIGN(PEMRSETMITERLIMIT, 4)
5691 static void test_pack_PEMRSETPALETTEENTRIES(void)
5693 /* PEMRSETPALETTEENTRIES */
5694 TEST_TYPE_SIZE (PEMRSETPALETTEENTRIES, 8)
5695 TEST_TYPE_ALIGN (PEMRSETPALETTEENTRIES, 8)
5696 TEST_TARGET_SIZE (PEMRSETPALETTEENTRIES, 24)
5697 TEST_TARGET_ALIGN(PEMRSETPALETTEENTRIES, 4)
5700 static void test_pack_PEMRSETPIXELV(void)
5702 /* PEMRSETPIXELV */
5703 TEST_TYPE_SIZE (PEMRSETPIXELV, 8)
5704 TEST_TYPE_ALIGN (PEMRSETPIXELV, 8)
5705 TEST_TARGET_SIZE (PEMRSETPIXELV, 20)
5706 TEST_TARGET_ALIGN(PEMRSETPIXELV, 4)
5709 static void test_pack_PEMRSETPOLYFILLMODE(void)
5711 /* PEMRSETPOLYFILLMODE */
5712 TEST_TYPE_SIZE (PEMRSETPOLYFILLMODE, 8)
5713 TEST_TYPE_ALIGN (PEMRSETPOLYFILLMODE, 8)
5714 TEST_TARGET_SIZE (PEMRSETPOLYFILLMODE, 12)
5715 TEST_TARGET_ALIGN(PEMRSETPOLYFILLMODE, 4)
5718 static void test_pack_PEMRSETROP2(void)
5720 /* PEMRSETROP2 */
5721 TEST_TYPE_SIZE (PEMRSETROP2, 8)
5722 TEST_TYPE_ALIGN (PEMRSETROP2, 8)
5723 TEST_TARGET_SIZE (PEMRSETROP2, 12)
5724 TEST_TARGET_ALIGN(PEMRSETROP2, 4)
5727 static void test_pack_PEMRSETSTRETCHBLTMODE(void)
5729 /* PEMRSETSTRETCHBLTMODE */
5730 TEST_TYPE_SIZE (PEMRSETSTRETCHBLTMODE, 8)
5731 TEST_TYPE_ALIGN (PEMRSETSTRETCHBLTMODE, 8)
5732 TEST_TARGET_SIZE (PEMRSETSTRETCHBLTMODE, 12)
5733 TEST_TARGET_ALIGN(PEMRSETSTRETCHBLTMODE, 4)
5736 static void test_pack_PEMRSETTEXTALIGN(void)
5738 /* PEMRSETTEXTALIGN */
5739 TEST_TYPE_SIZE (PEMRSETTEXTALIGN, 8)
5740 TEST_TYPE_ALIGN (PEMRSETTEXTALIGN, 8)
5741 TEST_TARGET_SIZE (PEMRSETTEXTALIGN, 12)
5742 TEST_TARGET_ALIGN(PEMRSETTEXTALIGN, 4)
5745 static void test_pack_PEMRSETTEXTCOLOR(void)
5747 /* PEMRSETTEXTCOLOR */
5748 TEST_TYPE_SIZE (PEMRSETTEXTCOLOR, 8)
5749 TEST_TYPE_ALIGN (PEMRSETTEXTCOLOR, 8)
5750 TEST_TARGET_SIZE (PEMRSETTEXTCOLOR, 12)
5751 TEST_TARGET_ALIGN(PEMRSETTEXTCOLOR, 4)
5754 static void test_pack_PEMRSETVIEWPORTEXTEX(void)
5756 /* PEMRSETVIEWPORTEXTEX */
5757 TEST_TYPE_SIZE (PEMRSETVIEWPORTEXTEX, 8)
5758 TEST_TYPE_ALIGN (PEMRSETVIEWPORTEXTEX, 8)
5759 TEST_TARGET_SIZE (PEMRSETVIEWPORTEXTEX, 16)
5760 TEST_TARGET_ALIGN(PEMRSETVIEWPORTEXTEX, 4)
5763 static void test_pack_PEMRSETVIEWPORTORGEX(void)
5765 /* PEMRSETVIEWPORTORGEX */
5766 TEST_TYPE_SIZE (PEMRSETVIEWPORTORGEX, 8)
5767 TEST_TYPE_ALIGN (PEMRSETVIEWPORTORGEX, 8)
5768 TEST_TARGET_SIZE (PEMRSETVIEWPORTORGEX, 16)
5769 TEST_TARGET_ALIGN(PEMRSETVIEWPORTORGEX, 4)
5772 static void test_pack_PEMRSETWINDOWEXTEX(void)
5774 /* PEMRSETWINDOWEXTEX */
5775 TEST_TYPE_SIZE (PEMRSETWINDOWEXTEX, 8)
5776 TEST_TYPE_ALIGN (PEMRSETWINDOWEXTEX, 8)
5777 TEST_TARGET_SIZE (PEMRSETWINDOWEXTEX, 16)
5778 TEST_TARGET_ALIGN(PEMRSETWINDOWEXTEX, 4)
5781 static void test_pack_PEMRSETWINDOWORGEX(void)
5783 /* PEMRSETWINDOWORGEX */
5784 TEST_TYPE_SIZE (PEMRSETWINDOWORGEX, 8)
5785 TEST_TYPE_ALIGN (PEMRSETWINDOWORGEX, 8)
5786 TEST_TARGET_SIZE (PEMRSETWINDOWORGEX, 16)
5787 TEST_TARGET_ALIGN(PEMRSETWINDOWORGEX, 4)
5790 static void test_pack_PEMRSETWORLDTRANSFORM(void)
5792 /* PEMRSETWORLDTRANSFORM */
5793 TEST_TYPE_SIZE (PEMRSETWORLDTRANSFORM, 8)
5794 TEST_TYPE_ALIGN (PEMRSETWORLDTRANSFORM, 8)
5795 TEST_TARGET_SIZE (PEMRSETWORLDTRANSFORM, 32)
5796 TEST_TARGET_ALIGN(PEMRSETWORLDTRANSFORM, 4)
5799 static void test_pack_PEMRSTRETCHBLT(void)
5801 /* PEMRSTRETCHBLT */
5802 TEST_TYPE_SIZE (PEMRSTRETCHBLT, 8)
5803 TEST_TYPE_ALIGN (PEMRSTRETCHBLT, 8)
5804 TEST_TARGET_SIZE (PEMRSTRETCHBLT, 108)
5805 TEST_TARGET_ALIGN(PEMRSTRETCHBLT, 4)
5808 static void test_pack_PEMRSTRETCHDIBITS(void)
5810 /* PEMRSTRETCHDIBITS */
5811 TEST_TYPE_SIZE (PEMRSTRETCHDIBITS, 8)
5812 TEST_TYPE_ALIGN (PEMRSTRETCHDIBITS, 8)
5813 TEST_TARGET_SIZE (PEMRSTRETCHDIBITS, 80)
5814 TEST_TARGET_ALIGN(PEMRSTRETCHDIBITS, 4)
5817 static void test_pack_PEMRSTROKEANDFILLPATH(void)
5819 /* PEMRSTROKEANDFILLPATH */
5820 TEST_TYPE_SIZE (PEMRSTROKEANDFILLPATH, 8)
5821 TEST_TYPE_ALIGN (PEMRSTROKEANDFILLPATH, 8)
5822 TEST_TARGET_SIZE (PEMRSTROKEANDFILLPATH, 24)
5823 TEST_TARGET_ALIGN(PEMRSTROKEANDFILLPATH, 4)
5826 static void test_pack_PEMRSTROKEPATH(void)
5828 /* PEMRSTROKEPATH */
5829 TEST_TYPE_SIZE (PEMRSTROKEPATH, 8)
5830 TEST_TYPE_ALIGN (PEMRSTROKEPATH, 8)
5831 TEST_TARGET_SIZE (PEMRSTROKEPATH, 24)
5832 TEST_TARGET_ALIGN(PEMRSTROKEPATH, 4)
5835 static void test_pack_PEMRTEXT(void)
5837 /* PEMRTEXT */
5838 TEST_TYPE_SIZE (PEMRTEXT, 8)
5839 TEST_TYPE_ALIGN (PEMRTEXT, 8)
5840 TEST_TARGET_SIZE (PEMRTEXT, 40)
5841 TEST_TARGET_ALIGN(PEMRTEXT, 4)
5844 static void test_pack_PEMRWIDENPATH(void)
5846 /* PEMRWIDENPATH */
5847 TEST_TYPE_SIZE (PEMRWIDENPATH, 8)
5848 TEST_TYPE_ALIGN (PEMRWIDENPATH, 8)
5849 TEST_TARGET_SIZE (PEMRWIDENPATH, 8)
5850 TEST_TARGET_ALIGN(PEMRWIDENPATH, 4)
5853 static void test_pack_PENHMETAHEADER(void)
5855 /* PENHMETAHEADER */
5856 TEST_TYPE_SIZE (PENHMETAHEADER, 8)
5857 TEST_TYPE_ALIGN (PENHMETAHEADER, 8)
5858 TEST_TARGET_SIZE (PENHMETAHEADER, 108)
5859 TEST_TARGET_ALIGN(PENHMETAHEADER, 4)
5862 static void test_pack_PEXTLOGFONTA(void)
5864 /* PEXTLOGFONTA */
5865 TEST_TYPE_SIZE (PEXTLOGFONTA, 8)
5866 TEST_TYPE_ALIGN (PEXTLOGFONTA, 8)
5867 TEST_TARGET_SIZE (PEXTLOGFONTA, 192)
5868 TEST_TARGET_ALIGN(PEXTLOGFONTA, 4)
5871 static void test_pack_PEXTLOGFONTW(void)
5873 /* PEXTLOGFONTW */
5874 TEST_TYPE_SIZE (PEXTLOGFONTW, 8)
5875 TEST_TYPE_ALIGN (PEXTLOGFONTW, 8)
5876 TEST_TARGET_SIZE (PEXTLOGFONTW, 320)
5877 TEST_TARGET_ALIGN(PEXTLOGFONTW, 4)
5880 static void test_pack_PEXTLOGPEN(void)
5882 /* PEXTLOGPEN */
5883 TEST_TYPE_SIZE (PEXTLOGPEN, 8)
5884 TEST_TYPE_ALIGN (PEXTLOGPEN, 8)
5885 TEST_TARGET_SIZE (PEXTLOGPEN, 32)
5886 TEST_TARGET_ALIGN(PEXTLOGPEN, 8)
5889 static void test_pack_PFONTSIGNATURE(void)
5891 /* PFONTSIGNATURE */
5892 TEST_TYPE_SIZE (PFONTSIGNATURE, 8)
5893 TEST_TYPE_ALIGN (PFONTSIGNATURE, 8)
5894 TEST_TARGET_SIZE (PFONTSIGNATURE, 24)
5895 TEST_TARGET_ALIGN(PFONTSIGNATURE, 4)
5898 static void test_pack_PGLYPHMETRICSFLOAT(void)
5900 /* PGLYPHMETRICSFLOAT */
5901 TEST_TYPE_SIZE (PGLYPHMETRICSFLOAT, 8)
5902 TEST_TYPE_ALIGN (PGLYPHMETRICSFLOAT, 8)
5903 TEST_TARGET_SIZE (PGLYPHMETRICSFLOAT, 24)
5904 TEST_TARGET_ALIGN(PGLYPHMETRICSFLOAT, 4)
5907 static void test_pack_PGRADIENT_RECT(void)
5909 /* PGRADIENT_RECT */
5910 TEST_TYPE_SIZE (PGRADIENT_RECT, 8)
5911 TEST_TYPE_ALIGN (PGRADIENT_RECT, 8)
5912 TEST_TARGET_SIZE (PGRADIENT_RECT, 8)
5913 TEST_TARGET_ALIGN(PGRADIENT_RECT, 4)
5916 static void test_pack_PGRADIENT_TRIANGLE(void)
5918 /* PGRADIENT_TRIANGLE */
5919 TEST_TYPE_SIZE (PGRADIENT_TRIANGLE, 8)
5920 TEST_TYPE_ALIGN (PGRADIENT_TRIANGLE, 8)
5921 TEST_TARGET_SIZE (PGRADIENT_TRIANGLE, 12)
5922 TEST_TARGET_ALIGN(PGRADIENT_TRIANGLE, 4)
5925 static void test_pack_PHANDLETABLE(void)
5927 /* PHANDLETABLE */
5928 TEST_TYPE_SIZE (PHANDLETABLE, 8)
5929 TEST_TYPE_ALIGN (PHANDLETABLE, 8)
5930 TEST_TARGET_SIZE (PHANDLETABLE, 8)
5931 TEST_TARGET_ALIGN(PHANDLETABLE, 8)
5934 static void test_pack_PIXELFORMATDESCRIPTOR(void)
5936 /* PIXELFORMATDESCRIPTOR */
5937 TEST_TYPE_SIZE (PIXELFORMATDESCRIPTOR, 40)
5938 TEST_TYPE_ALIGN (PIXELFORMATDESCRIPTOR, 4)
5939 TEST_FIELD_SIZE (PIXELFORMATDESCRIPTOR, nSize, 2)
5940 TEST_FIELD_ALIGN (PIXELFORMATDESCRIPTOR, nSize, 2)
5941 TEST_FIELD_OFFSET(PIXELFORMATDESCRIPTOR, nSize, 0)
5942 TEST_FIELD_SIZE (PIXELFORMATDESCRIPTOR, nVersion, 2)
5943 TEST_FIELD_ALIGN (PIXELFORMATDESCRIPTOR, nVersion, 2)
5944 TEST_FIELD_OFFSET(PIXELFORMATDESCRIPTOR, nVersion, 2)
5945 TEST_FIELD_SIZE (PIXELFORMATDESCRIPTOR, dwFlags, 4)
5946 TEST_FIELD_ALIGN (PIXELFORMATDESCRIPTOR, dwFlags, 4)
5947 TEST_FIELD_OFFSET(PIXELFORMATDESCRIPTOR, dwFlags, 4)
5948 TEST_FIELD_SIZE (PIXELFORMATDESCRIPTOR, iPixelType, 1)
5949 TEST_FIELD_ALIGN (PIXELFORMATDESCRIPTOR, iPixelType, 1)
5950 TEST_FIELD_OFFSET(PIXELFORMATDESCRIPTOR, iPixelType, 8)
5951 TEST_FIELD_SIZE (PIXELFORMATDESCRIPTOR, cColorBits, 1)
5952 TEST_FIELD_ALIGN (PIXELFORMATDESCRIPTOR, cColorBits, 1)
5953 TEST_FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cColorBits, 9)
5954 TEST_FIELD_SIZE (PIXELFORMATDESCRIPTOR, cRedBits, 1)
5955 TEST_FIELD_ALIGN (PIXELFORMATDESCRIPTOR, cRedBits, 1)
5956 TEST_FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cRedBits, 10)
5957 TEST_FIELD_SIZE (PIXELFORMATDESCRIPTOR, cRedShift, 1)
5958 TEST_FIELD_ALIGN (PIXELFORMATDESCRIPTOR, cRedShift, 1)
5959 TEST_FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cRedShift, 11)
5960 TEST_FIELD_SIZE (PIXELFORMATDESCRIPTOR, cGreenBits, 1)
5961 TEST_FIELD_ALIGN (PIXELFORMATDESCRIPTOR, cGreenBits, 1)
5962 TEST_FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cGreenBits, 12)
5963 TEST_FIELD_SIZE (PIXELFORMATDESCRIPTOR, cGreenShift, 1)
5964 TEST_FIELD_ALIGN (PIXELFORMATDESCRIPTOR, cGreenShift, 1)
5965 TEST_FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cGreenShift, 13)
5966 TEST_FIELD_SIZE (PIXELFORMATDESCRIPTOR, cBlueBits, 1)
5967 TEST_FIELD_ALIGN (PIXELFORMATDESCRIPTOR, cBlueBits, 1)
5968 TEST_FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cBlueBits, 14)
5969 TEST_FIELD_SIZE (PIXELFORMATDESCRIPTOR, cBlueShift, 1)
5970 TEST_FIELD_ALIGN (PIXELFORMATDESCRIPTOR, cBlueShift, 1)
5971 TEST_FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cBlueShift, 15)
5972 TEST_FIELD_SIZE (PIXELFORMATDESCRIPTOR, cAlphaBits, 1)
5973 TEST_FIELD_ALIGN (PIXELFORMATDESCRIPTOR, cAlphaBits, 1)
5974 TEST_FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cAlphaBits, 16)
5975 TEST_FIELD_SIZE (PIXELFORMATDESCRIPTOR, cAlphaShift, 1)
5976 TEST_FIELD_ALIGN (PIXELFORMATDESCRIPTOR, cAlphaShift, 1)
5977 TEST_FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cAlphaShift, 17)
5978 TEST_FIELD_SIZE (PIXELFORMATDESCRIPTOR, cAccumBits, 1)
5979 TEST_FIELD_ALIGN (PIXELFORMATDESCRIPTOR, cAccumBits, 1)
5980 TEST_FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cAccumBits, 18)
5981 TEST_FIELD_SIZE (PIXELFORMATDESCRIPTOR, cAccumRedBits, 1)
5982 TEST_FIELD_ALIGN (PIXELFORMATDESCRIPTOR, cAccumRedBits, 1)
5983 TEST_FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cAccumRedBits, 19)
5984 TEST_FIELD_SIZE (PIXELFORMATDESCRIPTOR, cAccumGreenBits, 1)
5985 TEST_FIELD_ALIGN (PIXELFORMATDESCRIPTOR, cAccumGreenBits, 1)
5986 TEST_FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cAccumGreenBits, 20)
5987 TEST_FIELD_SIZE (PIXELFORMATDESCRIPTOR, cAccumBlueBits, 1)
5988 TEST_FIELD_ALIGN (PIXELFORMATDESCRIPTOR, cAccumBlueBits, 1)
5989 TEST_FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cAccumBlueBits, 21)
5990 TEST_FIELD_SIZE (PIXELFORMATDESCRIPTOR, cAccumAlphaBits, 1)
5991 TEST_FIELD_ALIGN (PIXELFORMATDESCRIPTOR, cAccumAlphaBits, 1)
5992 TEST_FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cAccumAlphaBits, 22)
5993 TEST_FIELD_SIZE (PIXELFORMATDESCRIPTOR, cDepthBits, 1)
5994 TEST_FIELD_ALIGN (PIXELFORMATDESCRIPTOR, cDepthBits, 1)
5995 TEST_FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cDepthBits, 23)
5996 TEST_FIELD_SIZE (PIXELFORMATDESCRIPTOR, cStencilBits, 1)
5997 TEST_FIELD_ALIGN (PIXELFORMATDESCRIPTOR, cStencilBits, 1)
5998 TEST_FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cStencilBits, 24)
5999 TEST_FIELD_SIZE (PIXELFORMATDESCRIPTOR, cAuxBuffers, 1)
6000 TEST_FIELD_ALIGN (PIXELFORMATDESCRIPTOR, cAuxBuffers, 1)
6001 TEST_FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cAuxBuffers, 25)
6002 TEST_FIELD_SIZE (PIXELFORMATDESCRIPTOR, iLayerType, 1)
6003 TEST_FIELD_ALIGN (PIXELFORMATDESCRIPTOR, iLayerType, 1)
6004 TEST_FIELD_OFFSET(PIXELFORMATDESCRIPTOR, iLayerType, 26)
6005 TEST_FIELD_SIZE (PIXELFORMATDESCRIPTOR, bReserved, 1)
6006 TEST_FIELD_ALIGN (PIXELFORMATDESCRIPTOR, bReserved, 1)
6007 TEST_FIELD_OFFSET(PIXELFORMATDESCRIPTOR, bReserved, 27)
6008 TEST_FIELD_SIZE (PIXELFORMATDESCRIPTOR, dwLayerMask, 4)
6009 TEST_FIELD_ALIGN (PIXELFORMATDESCRIPTOR, dwLayerMask, 4)
6010 TEST_FIELD_OFFSET(PIXELFORMATDESCRIPTOR, dwLayerMask, 28)
6011 TEST_FIELD_SIZE (PIXELFORMATDESCRIPTOR, dwVisibleMask, 4)
6012 TEST_FIELD_ALIGN (PIXELFORMATDESCRIPTOR, dwVisibleMask, 4)
6013 TEST_FIELD_OFFSET(PIXELFORMATDESCRIPTOR, dwVisibleMask, 32)
6014 TEST_FIELD_SIZE (PIXELFORMATDESCRIPTOR, dwDamageMask, 4)
6015 TEST_FIELD_ALIGN (PIXELFORMATDESCRIPTOR, dwDamageMask, 4)
6016 TEST_FIELD_OFFSET(PIXELFORMATDESCRIPTOR, dwDamageMask, 36)
6019 static void test_pack_PLAYERPLANEDESCRIPTOR(void)
6021 /* PLAYERPLANEDESCRIPTOR */
6022 TEST_TYPE_SIZE (PLAYERPLANEDESCRIPTOR, 8)
6023 TEST_TYPE_ALIGN (PLAYERPLANEDESCRIPTOR, 8)
6024 TEST_TARGET_SIZE (PLAYERPLANEDESCRIPTOR, 32)
6025 TEST_TARGET_ALIGN(PLAYERPLANEDESCRIPTOR, 4)
6028 static void test_pack_PLOCALESIGNATURE(void)
6030 /* PLOCALESIGNATURE */
6031 TEST_TYPE_SIZE (PLOCALESIGNATURE, 8)
6032 TEST_TYPE_ALIGN (PLOCALESIGNATURE, 8)
6033 TEST_TARGET_SIZE (PLOCALESIGNATURE, 32)
6034 TEST_TARGET_ALIGN(PLOCALESIGNATURE, 4)
6037 static void test_pack_PLOGBRUSH(void)
6039 /* PLOGBRUSH */
6040 TEST_TYPE_SIZE (PLOGBRUSH, 8)
6041 TEST_TYPE_ALIGN (PLOGBRUSH, 8)
6042 TEST_TARGET_SIZE (PLOGBRUSH, 16)
6043 TEST_TARGET_ALIGN(PLOGBRUSH, 8)
6046 static void test_pack_PLOGFONTA(void)
6048 /* PLOGFONTA */
6049 TEST_TYPE_SIZE (PLOGFONTA, 8)
6050 TEST_TYPE_ALIGN (PLOGFONTA, 8)
6051 TEST_TARGET_SIZE (PLOGFONTA, 60)
6052 TEST_TARGET_ALIGN(PLOGFONTA, 4)
6055 static void test_pack_PLOGFONTW(void)
6057 /* PLOGFONTW */
6058 TEST_TYPE_SIZE (PLOGFONTW, 8)
6059 TEST_TYPE_ALIGN (PLOGFONTW, 8)
6060 TEST_TARGET_SIZE (PLOGFONTW, 92)
6061 TEST_TARGET_ALIGN(PLOGFONTW, 4)
6064 static void test_pack_PMETAHEADER(void)
6066 /* PMETAHEADER */
6067 TEST_TYPE_SIZE (PMETAHEADER, 8)
6068 TEST_TYPE_ALIGN (PMETAHEADER, 8)
6069 TEST_TARGET_SIZE (PMETAHEADER, 18)
6070 TEST_TARGET_ALIGN(PMETAHEADER, 2)
6073 static void test_pack_PMETARECORD(void)
6075 /* PMETARECORD */
6076 TEST_TYPE_SIZE (PMETARECORD, 8)
6077 TEST_TYPE_ALIGN (PMETARECORD, 8)
6078 TEST_TARGET_SIZE (PMETARECORD, 8)
6079 TEST_TARGET_ALIGN(PMETARECORD, 4)
6082 static void test_pack_PNEWTEXTMETRICA(void)
6084 /* PNEWTEXTMETRICA */
6085 TEST_TYPE_SIZE (PNEWTEXTMETRICA, 8)
6086 TEST_TYPE_ALIGN (PNEWTEXTMETRICA, 8)
6087 TEST_TARGET_SIZE (PNEWTEXTMETRICA, 72)
6088 TEST_TARGET_ALIGN(PNEWTEXTMETRICA, 4)
6091 static void test_pack_PNEWTEXTMETRICW(void)
6093 /* PNEWTEXTMETRICW */
6094 TEST_TYPE_SIZE (PNEWTEXTMETRICW, 8)
6095 TEST_TYPE_ALIGN (PNEWTEXTMETRICW, 8)
6096 TEST_TARGET_SIZE (PNEWTEXTMETRICW, 76)
6097 TEST_TARGET_ALIGN(PNEWTEXTMETRICW, 4)
6100 static void test_pack_POINTFLOAT(void)
6102 /* POINTFLOAT */
6103 TEST_TYPE_SIZE (POINTFLOAT, 8)
6104 TEST_TYPE_ALIGN (POINTFLOAT, 4)
6105 TEST_FIELD_SIZE (POINTFLOAT, x, 4)
6106 TEST_FIELD_ALIGN (POINTFLOAT, x, 4)
6107 TEST_FIELD_OFFSET(POINTFLOAT, x, 0)
6108 TEST_FIELD_SIZE (POINTFLOAT, y, 4)
6109 TEST_FIELD_ALIGN (POINTFLOAT, y, 4)
6110 TEST_FIELD_OFFSET(POINTFLOAT, y, 4)
6113 static void test_pack_POINTFX(void)
6115 /* POINTFX */
6116 TEST_TYPE_SIZE (POINTFX, 8)
6117 TEST_TYPE_ALIGN (POINTFX, 2)
6118 TEST_FIELD_SIZE (POINTFX, x, 4)
6119 TEST_FIELD_ALIGN (POINTFX, x, 2)
6120 TEST_FIELD_OFFSET(POINTFX, x, 0)
6121 TEST_FIELD_SIZE (POINTFX, y, 4)
6122 TEST_FIELD_ALIGN (POINTFX, y, 2)
6123 TEST_FIELD_OFFSET(POINTFX, y, 4)
6126 static void test_pack_POLYTEXTA(void)
6128 /* POLYTEXTA */
6129 TEST_TYPE_SIZE (POLYTEXTA, 56)
6130 TEST_TYPE_ALIGN (POLYTEXTA, 8)
6131 TEST_FIELD_SIZE (POLYTEXTA, x, 4)
6132 TEST_FIELD_ALIGN (POLYTEXTA, x, 4)
6133 TEST_FIELD_OFFSET(POLYTEXTA, x, 0)
6134 TEST_FIELD_SIZE (POLYTEXTA, y, 4)
6135 TEST_FIELD_ALIGN (POLYTEXTA, y, 4)
6136 TEST_FIELD_OFFSET(POLYTEXTA, y, 4)
6137 TEST_FIELD_SIZE (POLYTEXTA, n, 4)
6138 TEST_FIELD_ALIGN (POLYTEXTA, n, 4)
6139 TEST_FIELD_OFFSET(POLYTEXTA, n, 8)
6140 TEST_FIELD_SIZE (POLYTEXTA, lpstr, 8)
6141 TEST_FIELD_ALIGN (POLYTEXTA, lpstr, 8)
6142 TEST_FIELD_OFFSET(POLYTEXTA, lpstr, 16)
6143 TEST_FIELD_SIZE (POLYTEXTA, uiFlags, 4)
6144 TEST_FIELD_ALIGN (POLYTEXTA, uiFlags, 4)
6145 TEST_FIELD_OFFSET(POLYTEXTA, uiFlags, 24)
6146 TEST_FIELD_SIZE (POLYTEXTA, rcl, 16)
6147 TEST_FIELD_ALIGN (POLYTEXTA, rcl, 4)
6148 TEST_FIELD_OFFSET(POLYTEXTA, rcl, 28)
6149 TEST_FIELD_SIZE (POLYTEXTA, pdx, 8)
6150 TEST_FIELD_ALIGN (POLYTEXTA, pdx, 8)
6151 TEST_FIELD_OFFSET(POLYTEXTA, pdx, 48)
6154 static void test_pack_POLYTEXTW(void)
6156 /* POLYTEXTW */
6157 TEST_TYPE_SIZE (POLYTEXTW, 56)
6158 TEST_TYPE_ALIGN (POLYTEXTW, 8)
6159 TEST_FIELD_SIZE (POLYTEXTW, x, 4)
6160 TEST_FIELD_ALIGN (POLYTEXTW, x, 4)
6161 TEST_FIELD_OFFSET(POLYTEXTW, x, 0)
6162 TEST_FIELD_SIZE (POLYTEXTW, y, 4)
6163 TEST_FIELD_ALIGN (POLYTEXTW, y, 4)
6164 TEST_FIELD_OFFSET(POLYTEXTW, y, 4)
6165 TEST_FIELD_SIZE (POLYTEXTW, n, 4)
6166 TEST_FIELD_ALIGN (POLYTEXTW, n, 4)
6167 TEST_FIELD_OFFSET(POLYTEXTW, n, 8)
6168 TEST_FIELD_SIZE (POLYTEXTW, lpstr, 8)
6169 TEST_FIELD_ALIGN (POLYTEXTW, lpstr, 8)
6170 TEST_FIELD_OFFSET(POLYTEXTW, lpstr, 16)
6171 TEST_FIELD_SIZE (POLYTEXTW, uiFlags, 4)
6172 TEST_FIELD_ALIGN (POLYTEXTW, uiFlags, 4)
6173 TEST_FIELD_OFFSET(POLYTEXTW, uiFlags, 24)
6174 TEST_FIELD_SIZE (POLYTEXTW, rcl, 16)
6175 TEST_FIELD_ALIGN (POLYTEXTW, rcl, 4)
6176 TEST_FIELD_OFFSET(POLYTEXTW, rcl, 28)
6177 TEST_FIELD_SIZE (POLYTEXTW, pdx, 8)
6178 TEST_FIELD_ALIGN (POLYTEXTW, pdx, 8)
6179 TEST_FIELD_OFFSET(POLYTEXTW, pdx, 48)
6182 static void test_pack_POUTLINETEXTMETRICA(void)
6184 /* POUTLINETEXTMETRICA */
6185 TEST_TYPE_SIZE (POUTLINETEXTMETRICA, 8)
6186 TEST_TYPE_ALIGN (POUTLINETEXTMETRICA, 8)
6187 TEST_TARGET_SIZE (POUTLINETEXTMETRICA, 232)
6188 TEST_TARGET_ALIGN(POUTLINETEXTMETRICA, 8)
6191 static void test_pack_POUTLINETEXTMETRICW(void)
6193 /* POUTLINETEXTMETRICW */
6194 TEST_TYPE_SIZE (POUTLINETEXTMETRICW, 8)
6195 TEST_TYPE_ALIGN (POUTLINETEXTMETRICW, 8)
6196 TEST_TARGET_SIZE (POUTLINETEXTMETRICW, 232)
6197 TEST_TARGET_ALIGN(POUTLINETEXTMETRICW, 8)
6200 static void test_pack_PPELARRAY(void)
6202 /* PPELARRAY */
6203 TEST_TYPE_SIZE (PPELARRAY, 8)
6204 TEST_TYPE_ALIGN (PPELARRAY, 8)
6205 TEST_TARGET_SIZE (PPELARRAY, 20)
6206 TEST_TARGET_ALIGN(PPELARRAY, 4)
6209 static void test_pack_PPIXELFORMATDESCRIPTOR(void)
6211 /* PPIXELFORMATDESCRIPTOR */
6212 TEST_TYPE_SIZE (PPIXELFORMATDESCRIPTOR, 8)
6213 TEST_TYPE_ALIGN (PPIXELFORMATDESCRIPTOR, 8)
6214 TEST_TARGET_SIZE (PPIXELFORMATDESCRIPTOR, 40)
6215 TEST_TARGET_ALIGN(PPIXELFORMATDESCRIPTOR, 4)
6218 static void test_pack_PPOINTFLOAT(void)
6220 /* PPOINTFLOAT */
6221 TEST_TYPE_SIZE (PPOINTFLOAT, 8)
6222 TEST_TYPE_ALIGN (PPOINTFLOAT, 8)
6223 TEST_TARGET_SIZE (PPOINTFLOAT, 8)
6224 TEST_TARGET_ALIGN(PPOINTFLOAT, 4)
6227 static void test_pack_PPOLYTEXTA(void)
6229 /* PPOLYTEXTA */
6230 TEST_TYPE_SIZE (PPOLYTEXTA, 8)
6231 TEST_TYPE_ALIGN (PPOLYTEXTA, 8)
6232 TEST_TARGET_SIZE (PPOLYTEXTA, 56)
6233 TEST_TARGET_ALIGN(PPOLYTEXTA, 8)
6236 static void test_pack_PPOLYTEXTW(void)
6238 /* PPOLYTEXTW */
6239 TEST_TYPE_SIZE (PPOLYTEXTW, 8)
6240 TEST_TYPE_ALIGN (PPOLYTEXTW, 8)
6241 TEST_TARGET_SIZE (PPOLYTEXTW, 56)
6242 TEST_TARGET_ALIGN(PPOLYTEXTW, 8)
6245 static void test_pack_PRGNDATA(void)
6247 /* PRGNDATA */
6248 TEST_TYPE_SIZE (PRGNDATA, 8)
6249 TEST_TYPE_ALIGN (PRGNDATA, 8)
6250 TEST_TARGET_SIZE (PRGNDATA, 36)
6251 TEST_TARGET_ALIGN(PRGNDATA, 4)
6254 static void test_pack_PRGNDATAHEADER(void)
6256 /* PRGNDATAHEADER */
6257 TEST_TYPE_SIZE (PRGNDATAHEADER, 8)
6258 TEST_TYPE_ALIGN (PRGNDATAHEADER, 8)
6259 TEST_TARGET_SIZE (PRGNDATAHEADER, 32)
6260 TEST_TARGET_ALIGN(PRGNDATAHEADER, 4)
6263 static void test_pack_PTEXTMETRICA(void)
6265 /* PTEXTMETRICA */
6266 TEST_TYPE_SIZE (PTEXTMETRICA, 8)
6267 TEST_TYPE_ALIGN (PTEXTMETRICA, 8)
6268 TEST_TARGET_SIZE (PTEXTMETRICA, 56)
6269 TEST_TARGET_ALIGN(PTEXTMETRICA, 4)
6272 static void test_pack_PTEXTMETRICW(void)
6274 /* PTEXTMETRICW */
6275 TEST_TYPE_SIZE (PTEXTMETRICW, 8)
6276 TEST_TYPE_ALIGN (PTEXTMETRICW, 8)
6277 TEST_TARGET_SIZE (PTEXTMETRICW, 60)
6278 TEST_TARGET_ALIGN(PTEXTMETRICW, 4)
6281 static void test_pack_PTRIVERTEX(void)
6283 /* PTRIVERTEX */
6284 TEST_TYPE_SIZE (PTRIVERTEX, 8)
6285 TEST_TYPE_ALIGN (PTRIVERTEX, 8)
6286 TEST_TARGET_SIZE (PTRIVERTEX, 16)
6287 TEST_TARGET_ALIGN(PTRIVERTEX, 4)
6290 static void test_pack_PXFORM(void)
6292 /* PXFORM */
6293 TEST_TYPE_SIZE (PXFORM, 8)
6294 TEST_TYPE_ALIGN (PXFORM, 8)
6295 TEST_TARGET_SIZE (PXFORM, 24)
6296 TEST_TARGET_ALIGN(PXFORM, 4)
6299 static void test_pack_RASTERIZER_STATUS(void)
6301 /* RASTERIZER_STATUS */
6302 TEST_TYPE_SIZE (RASTERIZER_STATUS, 6)
6303 TEST_TYPE_ALIGN (RASTERIZER_STATUS, 2)
6304 TEST_FIELD_SIZE (RASTERIZER_STATUS, nSize, 2)
6305 TEST_FIELD_ALIGN (RASTERIZER_STATUS, nSize, 2)
6306 TEST_FIELD_OFFSET(RASTERIZER_STATUS, nSize, 0)
6307 TEST_FIELD_SIZE (RASTERIZER_STATUS, wFlags, 2)
6308 TEST_FIELD_ALIGN (RASTERIZER_STATUS, wFlags, 2)
6309 TEST_FIELD_OFFSET(RASTERIZER_STATUS, wFlags, 2)
6310 TEST_FIELD_SIZE (RASTERIZER_STATUS, nLanguageID, 2)
6311 TEST_FIELD_ALIGN (RASTERIZER_STATUS, nLanguageID, 2)
6312 TEST_FIELD_OFFSET(RASTERIZER_STATUS, nLanguageID, 4)
6315 static void test_pack_RGBQUAD(void)
6317 /* RGBQUAD */
6318 TEST_TYPE_SIZE (RGBQUAD, 4)
6319 TEST_TYPE_ALIGN (RGBQUAD, 1)
6320 TEST_FIELD_SIZE (RGBQUAD, rgbBlue, 1)
6321 TEST_FIELD_ALIGN (RGBQUAD, rgbBlue, 1)
6322 TEST_FIELD_OFFSET(RGBQUAD, rgbBlue, 0)
6323 TEST_FIELD_SIZE (RGBQUAD, rgbGreen, 1)
6324 TEST_FIELD_ALIGN (RGBQUAD, rgbGreen, 1)
6325 TEST_FIELD_OFFSET(RGBQUAD, rgbGreen, 1)
6326 TEST_FIELD_SIZE (RGBQUAD, rgbRed, 1)
6327 TEST_FIELD_ALIGN (RGBQUAD, rgbRed, 1)
6328 TEST_FIELD_OFFSET(RGBQUAD, rgbRed, 2)
6329 TEST_FIELD_SIZE (RGBQUAD, rgbReserved, 1)
6330 TEST_FIELD_ALIGN (RGBQUAD, rgbReserved, 1)
6331 TEST_FIELD_OFFSET(RGBQUAD, rgbReserved, 3)
6334 static void test_pack_RGBTRIPLE(void)
6336 /* RGBTRIPLE */
6337 TEST_TYPE_SIZE (RGBTRIPLE, 3)
6338 TEST_TYPE_ALIGN (RGBTRIPLE, 1)
6339 TEST_FIELD_SIZE (RGBTRIPLE, rgbtBlue, 1)
6340 TEST_FIELD_ALIGN (RGBTRIPLE, rgbtBlue, 1)
6341 TEST_FIELD_OFFSET(RGBTRIPLE, rgbtBlue, 0)
6342 TEST_FIELD_SIZE (RGBTRIPLE, rgbtGreen, 1)
6343 TEST_FIELD_ALIGN (RGBTRIPLE, rgbtGreen, 1)
6344 TEST_FIELD_OFFSET(RGBTRIPLE, rgbtGreen, 1)
6345 TEST_FIELD_SIZE (RGBTRIPLE, rgbtRed, 1)
6346 TEST_FIELD_ALIGN (RGBTRIPLE, rgbtRed, 1)
6347 TEST_FIELD_OFFSET(RGBTRIPLE, rgbtRed, 2)
6350 static void test_pack_RGNDATA(void)
6352 /* RGNDATA */
6353 TEST_TYPE_SIZE (RGNDATA, 36)
6354 TEST_TYPE_ALIGN (RGNDATA, 4)
6355 TEST_FIELD_SIZE (RGNDATA, rdh, 32)
6356 TEST_FIELD_ALIGN (RGNDATA, rdh, 4)
6357 TEST_FIELD_OFFSET(RGNDATA, rdh, 0)
6358 TEST_FIELD_SIZE (RGNDATA, Buffer, 1)
6359 TEST_FIELD_ALIGN (RGNDATA, Buffer, 1)
6360 TEST_FIELD_OFFSET(RGNDATA, Buffer, 32)
6363 static void test_pack_RGNDATAHEADER(void)
6365 /* RGNDATAHEADER */
6366 TEST_TYPE_SIZE (RGNDATAHEADER, 32)
6367 TEST_TYPE_ALIGN (RGNDATAHEADER, 4)
6368 TEST_FIELD_SIZE (RGNDATAHEADER, dwSize, 4)
6369 TEST_FIELD_ALIGN (RGNDATAHEADER, dwSize, 4)
6370 TEST_FIELD_OFFSET(RGNDATAHEADER, dwSize, 0)
6371 TEST_FIELD_SIZE (RGNDATAHEADER, iType, 4)
6372 TEST_FIELD_ALIGN (RGNDATAHEADER, iType, 4)
6373 TEST_FIELD_OFFSET(RGNDATAHEADER, iType, 4)
6374 TEST_FIELD_SIZE (RGNDATAHEADER, nCount, 4)
6375 TEST_FIELD_ALIGN (RGNDATAHEADER, nCount, 4)
6376 TEST_FIELD_OFFSET(RGNDATAHEADER, nCount, 8)
6377 TEST_FIELD_SIZE (RGNDATAHEADER, nRgnSize, 4)
6378 TEST_FIELD_ALIGN (RGNDATAHEADER, nRgnSize, 4)
6379 TEST_FIELD_OFFSET(RGNDATAHEADER, nRgnSize, 12)
6380 TEST_FIELD_SIZE (RGNDATAHEADER, rcBound, 16)
6381 TEST_FIELD_ALIGN (RGNDATAHEADER, rcBound, 4)
6382 TEST_FIELD_OFFSET(RGNDATAHEADER, rcBound, 16)
6385 static void test_pack_TEXTMETRICA(void)
6387 /* TEXTMETRICA */
6388 TEST_TYPE_SIZE (TEXTMETRICA, 56)
6389 TEST_TYPE_ALIGN (TEXTMETRICA, 4)
6390 TEST_FIELD_SIZE (TEXTMETRICA, tmHeight, 4)
6391 TEST_FIELD_ALIGN (TEXTMETRICA, tmHeight, 4)
6392 TEST_FIELD_OFFSET(TEXTMETRICA, tmHeight, 0)
6393 TEST_FIELD_SIZE (TEXTMETRICA, tmAscent, 4)
6394 TEST_FIELD_ALIGN (TEXTMETRICA, tmAscent, 4)
6395 TEST_FIELD_OFFSET(TEXTMETRICA, tmAscent, 4)
6396 TEST_FIELD_SIZE (TEXTMETRICA, tmDescent, 4)
6397 TEST_FIELD_ALIGN (TEXTMETRICA, tmDescent, 4)
6398 TEST_FIELD_OFFSET(TEXTMETRICA, tmDescent, 8)
6399 TEST_FIELD_SIZE (TEXTMETRICA, tmInternalLeading, 4)
6400 TEST_FIELD_ALIGN (TEXTMETRICA, tmInternalLeading, 4)
6401 TEST_FIELD_OFFSET(TEXTMETRICA, tmInternalLeading, 12)
6402 TEST_FIELD_SIZE (TEXTMETRICA, tmExternalLeading, 4)
6403 TEST_FIELD_ALIGN (TEXTMETRICA, tmExternalLeading, 4)
6404 TEST_FIELD_OFFSET(TEXTMETRICA, tmExternalLeading, 16)
6405 TEST_FIELD_SIZE (TEXTMETRICA, tmAveCharWidth, 4)
6406 TEST_FIELD_ALIGN (TEXTMETRICA, tmAveCharWidth, 4)
6407 TEST_FIELD_OFFSET(TEXTMETRICA, tmAveCharWidth, 20)
6408 TEST_FIELD_SIZE (TEXTMETRICA, tmMaxCharWidth, 4)
6409 TEST_FIELD_ALIGN (TEXTMETRICA, tmMaxCharWidth, 4)
6410 TEST_FIELD_OFFSET(TEXTMETRICA, tmMaxCharWidth, 24)
6411 TEST_FIELD_SIZE (TEXTMETRICA, tmWeight, 4)
6412 TEST_FIELD_ALIGN (TEXTMETRICA, tmWeight, 4)
6413 TEST_FIELD_OFFSET(TEXTMETRICA, tmWeight, 28)
6414 TEST_FIELD_SIZE (TEXTMETRICA, tmOverhang, 4)
6415 TEST_FIELD_ALIGN (TEXTMETRICA, tmOverhang, 4)
6416 TEST_FIELD_OFFSET(TEXTMETRICA, tmOverhang, 32)
6417 TEST_FIELD_SIZE (TEXTMETRICA, tmDigitizedAspectX, 4)
6418 TEST_FIELD_ALIGN (TEXTMETRICA, tmDigitizedAspectX, 4)
6419 TEST_FIELD_OFFSET(TEXTMETRICA, tmDigitizedAspectX, 36)
6420 TEST_FIELD_SIZE (TEXTMETRICA, tmDigitizedAspectY, 4)
6421 TEST_FIELD_ALIGN (TEXTMETRICA, tmDigitizedAspectY, 4)
6422 TEST_FIELD_OFFSET(TEXTMETRICA, tmDigitizedAspectY, 40)
6423 TEST_FIELD_SIZE (TEXTMETRICA, tmFirstChar, 1)
6424 TEST_FIELD_ALIGN (TEXTMETRICA, tmFirstChar, 1)
6425 TEST_FIELD_OFFSET(TEXTMETRICA, tmFirstChar, 44)
6426 TEST_FIELD_SIZE (TEXTMETRICA, tmLastChar, 1)
6427 TEST_FIELD_ALIGN (TEXTMETRICA, tmLastChar, 1)
6428 TEST_FIELD_OFFSET(TEXTMETRICA, tmLastChar, 45)
6429 TEST_FIELD_SIZE (TEXTMETRICA, tmDefaultChar, 1)
6430 TEST_FIELD_ALIGN (TEXTMETRICA, tmDefaultChar, 1)
6431 TEST_FIELD_OFFSET(TEXTMETRICA, tmDefaultChar, 46)
6432 TEST_FIELD_SIZE (TEXTMETRICA, tmBreakChar, 1)
6433 TEST_FIELD_ALIGN (TEXTMETRICA, tmBreakChar, 1)
6434 TEST_FIELD_OFFSET(TEXTMETRICA, tmBreakChar, 47)
6435 TEST_FIELD_SIZE (TEXTMETRICA, tmItalic, 1)
6436 TEST_FIELD_ALIGN (TEXTMETRICA, tmItalic, 1)
6437 TEST_FIELD_OFFSET(TEXTMETRICA, tmItalic, 48)
6438 TEST_FIELD_SIZE (TEXTMETRICA, tmUnderlined, 1)
6439 TEST_FIELD_ALIGN (TEXTMETRICA, tmUnderlined, 1)
6440 TEST_FIELD_OFFSET(TEXTMETRICA, tmUnderlined, 49)
6441 TEST_FIELD_SIZE (TEXTMETRICA, tmStruckOut, 1)
6442 TEST_FIELD_ALIGN (TEXTMETRICA, tmStruckOut, 1)
6443 TEST_FIELD_OFFSET(TEXTMETRICA, tmStruckOut, 50)
6444 TEST_FIELD_SIZE (TEXTMETRICA, tmPitchAndFamily, 1)
6445 TEST_FIELD_ALIGN (TEXTMETRICA, tmPitchAndFamily, 1)
6446 TEST_FIELD_OFFSET(TEXTMETRICA, tmPitchAndFamily, 51)
6447 TEST_FIELD_SIZE (TEXTMETRICA, tmCharSet, 1)
6448 TEST_FIELD_ALIGN (TEXTMETRICA, tmCharSet, 1)
6449 TEST_FIELD_OFFSET(TEXTMETRICA, tmCharSet, 52)
6452 static void test_pack_TEXTMETRICW(void)
6454 /* TEXTMETRICW */
6455 TEST_TYPE_SIZE (TEXTMETRICW, 60)
6456 TEST_TYPE_ALIGN (TEXTMETRICW, 4)
6457 TEST_FIELD_SIZE (TEXTMETRICW, tmHeight, 4)
6458 TEST_FIELD_ALIGN (TEXTMETRICW, tmHeight, 4)
6459 TEST_FIELD_OFFSET(TEXTMETRICW, tmHeight, 0)
6460 TEST_FIELD_SIZE (TEXTMETRICW, tmAscent, 4)
6461 TEST_FIELD_ALIGN (TEXTMETRICW, tmAscent, 4)
6462 TEST_FIELD_OFFSET(TEXTMETRICW, tmAscent, 4)
6463 TEST_FIELD_SIZE (TEXTMETRICW, tmDescent, 4)
6464 TEST_FIELD_ALIGN (TEXTMETRICW, tmDescent, 4)
6465 TEST_FIELD_OFFSET(TEXTMETRICW, tmDescent, 8)
6466 TEST_FIELD_SIZE (TEXTMETRICW, tmInternalLeading, 4)
6467 TEST_FIELD_ALIGN (TEXTMETRICW, tmInternalLeading, 4)
6468 TEST_FIELD_OFFSET(TEXTMETRICW, tmInternalLeading, 12)
6469 TEST_FIELD_SIZE (TEXTMETRICW, tmExternalLeading, 4)
6470 TEST_FIELD_ALIGN (TEXTMETRICW, tmExternalLeading, 4)
6471 TEST_FIELD_OFFSET(TEXTMETRICW, tmExternalLeading, 16)
6472 TEST_FIELD_SIZE (TEXTMETRICW, tmAveCharWidth, 4)
6473 TEST_FIELD_ALIGN (TEXTMETRICW, tmAveCharWidth, 4)
6474 TEST_FIELD_OFFSET(TEXTMETRICW, tmAveCharWidth, 20)
6475 TEST_FIELD_SIZE (TEXTMETRICW, tmMaxCharWidth, 4)
6476 TEST_FIELD_ALIGN (TEXTMETRICW, tmMaxCharWidth, 4)
6477 TEST_FIELD_OFFSET(TEXTMETRICW, tmMaxCharWidth, 24)
6478 TEST_FIELD_SIZE (TEXTMETRICW, tmWeight, 4)
6479 TEST_FIELD_ALIGN (TEXTMETRICW, tmWeight, 4)
6480 TEST_FIELD_OFFSET(TEXTMETRICW, tmWeight, 28)
6481 TEST_FIELD_SIZE (TEXTMETRICW, tmOverhang, 4)
6482 TEST_FIELD_ALIGN (TEXTMETRICW, tmOverhang, 4)
6483 TEST_FIELD_OFFSET(TEXTMETRICW, tmOverhang, 32)
6484 TEST_FIELD_SIZE (TEXTMETRICW, tmDigitizedAspectX, 4)
6485 TEST_FIELD_ALIGN (TEXTMETRICW, tmDigitizedAspectX, 4)
6486 TEST_FIELD_OFFSET(TEXTMETRICW, tmDigitizedAspectX, 36)
6487 TEST_FIELD_SIZE (TEXTMETRICW, tmDigitizedAspectY, 4)
6488 TEST_FIELD_ALIGN (TEXTMETRICW, tmDigitizedAspectY, 4)
6489 TEST_FIELD_OFFSET(TEXTMETRICW, tmDigitizedAspectY, 40)
6490 TEST_FIELD_SIZE (TEXTMETRICW, tmFirstChar, 2)
6491 TEST_FIELD_ALIGN (TEXTMETRICW, tmFirstChar, 2)
6492 TEST_FIELD_OFFSET(TEXTMETRICW, tmFirstChar, 44)
6493 TEST_FIELD_SIZE (TEXTMETRICW, tmLastChar, 2)
6494 TEST_FIELD_ALIGN (TEXTMETRICW, tmLastChar, 2)
6495 TEST_FIELD_OFFSET(TEXTMETRICW, tmLastChar, 46)
6496 TEST_FIELD_SIZE (TEXTMETRICW, tmDefaultChar, 2)
6497 TEST_FIELD_ALIGN (TEXTMETRICW, tmDefaultChar, 2)
6498 TEST_FIELD_OFFSET(TEXTMETRICW, tmDefaultChar, 48)
6499 TEST_FIELD_SIZE (TEXTMETRICW, tmBreakChar, 2)
6500 TEST_FIELD_ALIGN (TEXTMETRICW, tmBreakChar, 2)
6501 TEST_FIELD_OFFSET(TEXTMETRICW, tmBreakChar, 50)
6502 TEST_FIELD_SIZE (TEXTMETRICW, tmItalic, 1)
6503 TEST_FIELD_ALIGN (TEXTMETRICW, tmItalic, 1)
6504 TEST_FIELD_OFFSET(TEXTMETRICW, tmItalic, 52)
6505 TEST_FIELD_SIZE (TEXTMETRICW, tmUnderlined, 1)
6506 TEST_FIELD_ALIGN (TEXTMETRICW, tmUnderlined, 1)
6507 TEST_FIELD_OFFSET(TEXTMETRICW, tmUnderlined, 53)
6508 TEST_FIELD_SIZE (TEXTMETRICW, tmStruckOut, 1)
6509 TEST_FIELD_ALIGN (TEXTMETRICW, tmStruckOut, 1)
6510 TEST_FIELD_OFFSET(TEXTMETRICW, tmStruckOut, 54)
6511 TEST_FIELD_SIZE (TEXTMETRICW, tmPitchAndFamily, 1)
6512 TEST_FIELD_ALIGN (TEXTMETRICW, tmPitchAndFamily, 1)
6513 TEST_FIELD_OFFSET(TEXTMETRICW, tmPitchAndFamily, 55)
6514 TEST_FIELD_SIZE (TEXTMETRICW, tmCharSet, 1)
6515 TEST_FIELD_ALIGN (TEXTMETRICW, tmCharSet, 1)
6516 TEST_FIELD_OFFSET(TEXTMETRICW, tmCharSet, 56)
6519 static void test_pack_TRIVERTEX(void)
6521 /* TRIVERTEX */
6522 TEST_TYPE_SIZE (TRIVERTEX, 16)
6523 TEST_TYPE_ALIGN (TRIVERTEX, 4)
6524 TEST_FIELD_SIZE (TRIVERTEX, x, 4)
6525 TEST_FIELD_ALIGN (TRIVERTEX, x, 4)
6526 TEST_FIELD_OFFSET(TRIVERTEX, x, 0)
6527 TEST_FIELD_SIZE (TRIVERTEX, y, 4)
6528 TEST_FIELD_ALIGN (TRIVERTEX, y, 4)
6529 TEST_FIELD_OFFSET(TRIVERTEX, y, 4)
6530 TEST_FIELD_SIZE (TRIVERTEX, Red, 2)
6531 TEST_FIELD_ALIGN (TRIVERTEX, Red, 2)
6532 TEST_FIELD_OFFSET(TRIVERTEX, Red, 8)
6533 TEST_FIELD_SIZE (TRIVERTEX, Green, 2)
6534 TEST_FIELD_ALIGN (TRIVERTEX, Green, 2)
6535 TEST_FIELD_OFFSET(TRIVERTEX, Green, 10)
6536 TEST_FIELD_SIZE (TRIVERTEX, Blue, 2)
6537 TEST_FIELD_ALIGN (TRIVERTEX, Blue, 2)
6538 TEST_FIELD_OFFSET(TRIVERTEX, Blue, 12)
6539 TEST_FIELD_SIZE (TRIVERTEX, Alpha, 2)
6540 TEST_FIELD_ALIGN (TRIVERTEX, Alpha, 2)
6541 TEST_FIELD_OFFSET(TRIVERTEX, Alpha, 14)
6544 static void test_pack_TTPOLYCURVE(void)
6546 /* TTPOLYCURVE */
6547 TEST_TYPE_SIZE (TTPOLYCURVE, 12)
6548 TEST_TYPE_ALIGN (TTPOLYCURVE, 2)
6549 TEST_FIELD_SIZE (TTPOLYCURVE, wType, 2)
6550 TEST_FIELD_ALIGN (TTPOLYCURVE, wType, 2)
6551 TEST_FIELD_OFFSET(TTPOLYCURVE, wType, 0)
6552 TEST_FIELD_SIZE (TTPOLYCURVE, cpfx, 2)
6553 TEST_FIELD_ALIGN (TTPOLYCURVE, cpfx, 2)
6554 TEST_FIELD_OFFSET(TTPOLYCURVE, cpfx, 2)
6555 TEST_FIELD_SIZE (TTPOLYCURVE, apfx, 8)
6556 TEST_FIELD_ALIGN (TTPOLYCURVE, apfx, 2)
6557 TEST_FIELD_OFFSET(TTPOLYCURVE, apfx, 4)
6560 static void test_pack_TTPOLYGONHEADER(void)
6562 /* TTPOLYGONHEADER */
6563 TEST_TYPE_SIZE (TTPOLYGONHEADER, 16)
6564 TEST_TYPE_ALIGN (TTPOLYGONHEADER, 4)
6565 TEST_FIELD_SIZE (TTPOLYGONHEADER, cb, 4)
6566 TEST_FIELD_ALIGN (TTPOLYGONHEADER, cb, 4)
6567 TEST_FIELD_OFFSET(TTPOLYGONHEADER, cb, 0)
6568 TEST_FIELD_SIZE (TTPOLYGONHEADER, dwType, 4)
6569 TEST_FIELD_ALIGN (TTPOLYGONHEADER, dwType, 4)
6570 TEST_FIELD_OFFSET(TTPOLYGONHEADER, dwType, 4)
6571 TEST_FIELD_SIZE (TTPOLYGONHEADER, pfxStart, 8)
6572 TEST_FIELD_ALIGN (TTPOLYGONHEADER, pfxStart, 2)
6573 TEST_FIELD_OFFSET(TTPOLYGONHEADER, pfxStart, 8)
6576 static void test_pack_XFORM(void)
6578 /* XFORM */
6579 TEST_TYPE_SIZE (XFORM, 24)
6580 TEST_TYPE_ALIGN (XFORM, 4)
6581 TEST_FIELD_SIZE (XFORM, eM11, 4)
6582 TEST_FIELD_ALIGN (XFORM, eM11, 4)
6583 TEST_FIELD_OFFSET(XFORM, eM11, 0)
6584 TEST_FIELD_SIZE (XFORM, eM12, 4)
6585 TEST_FIELD_ALIGN (XFORM, eM12, 4)
6586 TEST_FIELD_OFFSET(XFORM, eM12, 4)
6587 TEST_FIELD_SIZE (XFORM, eM21, 4)
6588 TEST_FIELD_ALIGN (XFORM, eM21, 4)
6589 TEST_FIELD_OFFSET(XFORM, eM21, 8)
6590 TEST_FIELD_SIZE (XFORM, eM22, 4)
6591 TEST_FIELD_ALIGN (XFORM, eM22, 4)
6592 TEST_FIELD_OFFSET(XFORM, eM22, 12)
6593 TEST_FIELD_SIZE (XFORM, eDx, 4)
6594 TEST_FIELD_ALIGN (XFORM, eDx, 4)
6595 TEST_FIELD_OFFSET(XFORM, eDx, 16)
6596 TEST_FIELD_SIZE (XFORM, eDy, 4)
6597 TEST_FIELD_ALIGN (XFORM, eDy, 4)
6598 TEST_FIELD_OFFSET(XFORM, eDy, 20)
6601 #else /* _WIN64 */
6603 static void test_pack_ABC(void)
6605 /* ABC */
6606 TEST_TYPE_SIZE (ABC, 12)
6607 TEST_TYPE_ALIGN (ABC, 4)
6608 TEST_FIELD_SIZE (ABC, abcA, 4)
6609 TEST_FIELD_ALIGN (ABC, abcA, 4)
6610 TEST_FIELD_OFFSET(ABC, abcA, 0)
6611 TEST_FIELD_SIZE (ABC, abcB, 4)
6612 TEST_FIELD_ALIGN (ABC, abcB, 4)
6613 TEST_FIELD_OFFSET(ABC, abcB, 4)
6614 TEST_FIELD_SIZE (ABC, abcC, 4)
6615 TEST_FIELD_ALIGN (ABC, abcC, 4)
6616 TEST_FIELD_OFFSET(ABC, abcC, 8)
6619 static void test_pack_ABCFLOAT(void)
6621 /* ABCFLOAT */
6622 TEST_TYPE_SIZE (ABCFLOAT, 12)
6623 TEST_TYPE_ALIGN (ABCFLOAT, 4)
6624 TEST_FIELD_SIZE (ABCFLOAT, abcfA, 4)
6625 TEST_FIELD_ALIGN (ABCFLOAT, abcfA, 4)
6626 TEST_FIELD_OFFSET(ABCFLOAT, abcfA, 0)
6627 TEST_FIELD_SIZE (ABCFLOAT, abcfB, 4)
6628 TEST_FIELD_ALIGN (ABCFLOAT, abcfB, 4)
6629 TEST_FIELD_OFFSET(ABCFLOAT, abcfB, 4)
6630 TEST_FIELD_SIZE (ABCFLOAT, abcfC, 4)
6631 TEST_FIELD_ALIGN (ABCFLOAT, abcfC, 4)
6632 TEST_FIELD_OFFSET(ABCFLOAT, abcfC, 8)
6635 static void test_pack_ABORTPROC(void)
6637 /* ABORTPROC */
6638 TEST_TYPE_SIZE (ABORTPROC, 4)
6639 TEST_TYPE_ALIGN (ABORTPROC, 4)
6642 static void test_pack_BITMAP(void)
6644 /* BITMAP */
6645 TEST_TYPE_SIZE (BITMAP, 24)
6646 TEST_TYPE_ALIGN (BITMAP, 4)
6647 TEST_FIELD_SIZE (BITMAP, bmType, 4)
6648 TEST_FIELD_ALIGN (BITMAP, bmType, 4)
6649 TEST_FIELD_OFFSET(BITMAP, bmType, 0)
6650 TEST_FIELD_SIZE (BITMAP, bmWidth, 4)
6651 TEST_FIELD_ALIGN (BITMAP, bmWidth, 4)
6652 TEST_FIELD_OFFSET(BITMAP, bmWidth, 4)
6653 TEST_FIELD_SIZE (BITMAP, bmHeight, 4)
6654 TEST_FIELD_ALIGN (BITMAP, bmHeight, 4)
6655 TEST_FIELD_OFFSET(BITMAP, bmHeight, 8)
6656 TEST_FIELD_SIZE (BITMAP, bmWidthBytes, 4)
6657 TEST_FIELD_ALIGN (BITMAP, bmWidthBytes, 4)
6658 TEST_FIELD_OFFSET(BITMAP, bmWidthBytes, 12)
6659 TEST_FIELD_SIZE (BITMAP, bmPlanes, 2)
6660 TEST_FIELD_ALIGN (BITMAP, bmPlanes, 2)
6661 TEST_FIELD_OFFSET(BITMAP, bmPlanes, 16)
6662 TEST_FIELD_SIZE (BITMAP, bmBitsPixel, 2)
6663 TEST_FIELD_ALIGN (BITMAP, bmBitsPixel, 2)
6664 TEST_FIELD_OFFSET(BITMAP, bmBitsPixel, 18)
6665 TEST_FIELD_SIZE (BITMAP, bmBits, 4)
6666 TEST_FIELD_ALIGN (BITMAP, bmBits, 4)
6667 TEST_FIELD_OFFSET(BITMAP, bmBits, 20)
6670 static void test_pack_BITMAPCOREHEADER(void)
6672 /* BITMAPCOREHEADER */
6673 TEST_TYPE_SIZE (BITMAPCOREHEADER, 12)
6674 TEST_TYPE_ALIGN (BITMAPCOREHEADER, 4)
6675 TEST_FIELD_SIZE (BITMAPCOREHEADER, bcSize, 4)
6676 TEST_FIELD_ALIGN (BITMAPCOREHEADER, bcSize, 4)
6677 TEST_FIELD_OFFSET(BITMAPCOREHEADER, bcSize, 0)
6678 TEST_FIELD_SIZE (BITMAPCOREHEADER, bcWidth, 2)
6679 TEST_FIELD_ALIGN (BITMAPCOREHEADER, bcWidth, 2)
6680 TEST_FIELD_OFFSET(BITMAPCOREHEADER, bcWidth, 4)
6681 TEST_FIELD_SIZE (BITMAPCOREHEADER, bcHeight, 2)
6682 TEST_FIELD_ALIGN (BITMAPCOREHEADER, bcHeight, 2)
6683 TEST_FIELD_OFFSET(BITMAPCOREHEADER, bcHeight, 6)
6684 TEST_FIELD_SIZE (BITMAPCOREHEADER, bcPlanes, 2)
6685 TEST_FIELD_ALIGN (BITMAPCOREHEADER, bcPlanes, 2)
6686 TEST_FIELD_OFFSET(BITMAPCOREHEADER, bcPlanes, 8)
6687 TEST_FIELD_SIZE (BITMAPCOREHEADER, bcBitCount, 2)
6688 TEST_FIELD_ALIGN (BITMAPCOREHEADER, bcBitCount, 2)
6689 TEST_FIELD_OFFSET(BITMAPCOREHEADER, bcBitCount, 10)
6692 static void test_pack_BITMAPCOREINFO(void)
6694 /* BITMAPCOREINFO */
6695 TEST_TYPE_SIZE (BITMAPCOREINFO, 16)
6696 TEST_TYPE_ALIGN (BITMAPCOREINFO, 4)
6697 TEST_FIELD_SIZE (BITMAPCOREINFO, bmciHeader, 12)
6698 TEST_FIELD_ALIGN (BITMAPCOREINFO, bmciHeader, 4)
6699 TEST_FIELD_OFFSET(BITMAPCOREINFO, bmciHeader, 0)
6700 TEST_FIELD_SIZE (BITMAPCOREINFO, bmciColors, 3)
6701 TEST_FIELD_ALIGN (BITMAPCOREINFO, bmciColors, 1)
6702 TEST_FIELD_OFFSET(BITMAPCOREINFO, bmciColors, 12)
6705 static void test_pack_BITMAPFILEHEADER(void)
6707 /* BITMAPFILEHEADER (pack 2) */
6708 TEST_TYPE_SIZE (BITMAPFILEHEADER, 14)
6709 TEST_TYPE_ALIGN (BITMAPFILEHEADER, 2)
6710 TEST_FIELD_SIZE (BITMAPFILEHEADER, bfType, 2)
6711 TEST_FIELD_ALIGN (BITMAPFILEHEADER, bfType, 2)
6712 TEST_FIELD_OFFSET(BITMAPFILEHEADER, bfType, 0)
6713 TEST_FIELD_SIZE (BITMAPFILEHEADER, bfSize, 4)
6714 TEST_FIELD_ALIGN (BITMAPFILEHEADER, bfSize, 2)
6715 TEST_FIELD_OFFSET(BITMAPFILEHEADER, bfSize, 2)
6716 TEST_FIELD_SIZE (BITMAPFILEHEADER, bfReserved1, 2)
6717 TEST_FIELD_ALIGN (BITMAPFILEHEADER, bfReserved1, 2)
6718 TEST_FIELD_OFFSET(BITMAPFILEHEADER, bfReserved1, 6)
6719 TEST_FIELD_SIZE (BITMAPFILEHEADER, bfReserved2, 2)
6720 TEST_FIELD_ALIGN (BITMAPFILEHEADER, bfReserved2, 2)
6721 TEST_FIELD_OFFSET(BITMAPFILEHEADER, bfReserved2, 8)
6722 TEST_FIELD_SIZE (BITMAPFILEHEADER, bfOffBits, 4)
6723 TEST_FIELD_ALIGN (BITMAPFILEHEADER, bfOffBits, 2)
6724 TEST_FIELD_OFFSET(BITMAPFILEHEADER, bfOffBits, 10)
6727 static void test_pack_BITMAPINFO(void)
6729 /* BITMAPINFO */
6730 TEST_TYPE_SIZE (BITMAPINFO, 44)
6731 TEST_TYPE_ALIGN (BITMAPINFO, 4)
6732 TEST_FIELD_SIZE (BITMAPINFO, bmiHeader, 40)
6733 TEST_FIELD_ALIGN (BITMAPINFO, bmiHeader, 4)
6734 TEST_FIELD_OFFSET(BITMAPINFO, bmiHeader, 0)
6735 TEST_FIELD_SIZE (BITMAPINFO, bmiColors, 4)
6736 TEST_FIELD_ALIGN (BITMAPINFO, bmiColors, 1)
6737 TEST_FIELD_OFFSET(BITMAPINFO, bmiColors, 40)
6740 static void test_pack_BITMAPINFOHEADER(void)
6742 /* BITMAPINFOHEADER */
6743 TEST_TYPE_SIZE (BITMAPINFOHEADER, 40)
6744 TEST_TYPE_ALIGN (BITMAPINFOHEADER, 4)
6745 TEST_FIELD_SIZE (BITMAPINFOHEADER, biSize, 4)
6746 TEST_FIELD_ALIGN (BITMAPINFOHEADER, biSize, 4)
6747 TEST_FIELD_OFFSET(BITMAPINFOHEADER, biSize, 0)
6748 TEST_FIELD_SIZE (BITMAPINFOHEADER, biWidth, 4)
6749 TEST_FIELD_ALIGN (BITMAPINFOHEADER, biWidth, 4)
6750 TEST_FIELD_OFFSET(BITMAPINFOHEADER, biWidth, 4)
6751 TEST_FIELD_SIZE (BITMAPINFOHEADER, biHeight, 4)
6752 TEST_FIELD_ALIGN (BITMAPINFOHEADER, biHeight, 4)
6753 TEST_FIELD_OFFSET(BITMAPINFOHEADER, biHeight, 8)
6754 TEST_FIELD_SIZE (BITMAPINFOHEADER, biPlanes, 2)
6755 TEST_FIELD_ALIGN (BITMAPINFOHEADER, biPlanes, 2)
6756 TEST_FIELD_OFFSET(BITMAPINFOHEADER, biPlanes, 12)
6757 TEST_FIELD_SIZE (BITMAPINFOHEADER, biBitCount, 2)
6758 TEST_FIELD_ALIGN (BITMAPINFOHEADER, biBitCount, 2)
6759 TEST_FIELD_OFFSET(BITMAPINFOHEADER, biBitCount, 14)
6760 TEST_FIELD_SIZE (BITMAPINFOHEADER, biCompression, 4)
6761 TEST_FIELD_ALIGN (BITMAPINFOHEADER, biCompression, 4)
6762 TEST_FIELD_OFFSET(BITMAPINFOHEADER, biCompression, 16)
6763 TEST_FIELD_SIZE (BITMAPINFOHEADER, biSizeImage, 4)
6764 TEST_FIELD_ALIGN (BITMAPINFOHEADER, biSizeImage, 4)
6765 TEST_FIELD_OFFSET(BITMAPINFOHEADER, biSizeImage, 20)
6766 TEST_FIELD_SIZE (BITMAPINFOHEADER, biXPelsPerMeter, 4)
6767 TEST_FIELD_ALIGN (BITMAPINFOHEADER, biXPelsPerMeter, 4)
6768 TEST_FIELD_OFFSET(BITMAPINFOHEADER, biXPelsPerMeter, 24)
6769 TEST_FIELD_SIZE (BITMAPINFOHEADER, biYPelsPerMeter, 4)
6770 TEST_FIELD_ALIGN (BITMAPINFOHEADER, biYPelsPerMeter, 4)
6771 TEST_FIELD_OFFSET(BITMAPINFOHEADER, biYPelsPerMeter, 28)
6772 TEST_FIELD_SIZE (BITMAPINFOHEADER, biClrUsed, 4)
6773 TEST_FIELD_ALIGN (BITMAPINFOHEADER, biClrUsed, 4)
6774 TEST_FIELD_OFFSET(BITMAPINFOHEADER, biClrUsed, 32)
6775 TEST_FIELD_SIZE (BITMAPINFOHEADER, biClrImportant, 4)
6776 TEST_FIELD_ALIGN (BITMAPINFOHEADER, biClrImportant, 4)
6777 TEST_FIELD_OFFSET(BITMAPINFOHEADER, biClrImportant, 36)
6780 static void test_pack_BITMAPV4HEADER(void)
6782 /* BITMAPV4HEADER */
6783 TEST_TYPE_SIZE (BITMAPV4HEADER, 108)
6784 TEST_TYPE_ALIGN (BITMAPV4HEADER, 4)
6785 TEST_FIELD_SIZE (BITMAPV4HEADER, bV4Size, 4)
6786 TEST_FIELD_ALIGN (BITMAPV4HEADER, bV4Size, 4)
6787 TEST_FIELD_OFFSET(BITMAPV4HEADER, bV4Size, 0)
6788 TEST_FIELD_SIZE (BITMAPV4HEADER, bV4Width, 4)
6789 TEST_FIELD_ALIGN (BITMAPV4HEADER, bV4Width, 4)
6790 TEST_FIELD_OFFSET(BITMAPV4HEADER, bV4Width, 4)
6791 TEST_FIELD_SIZE (BITMAPV4HEADER, bV4Height, 4)
6792 TEST_FIELD_ALIGN (BITMAPV4HEADER, bV4Height, 4)
6793 TEST_FIELD_OFFSET(BITMAPV4HEADER, bV4Height, 8)
6794 TEST_FIELD_SIZE (BITMAPV4HEADER, bV4Planes, 2)
6795 TEST_FIELD_ALIGN (BITMAPV4HEADER, bV4Planes, 2)
6796 TEST_FIELD_OFFSET(BITMAPV4HEADER, bV4Planes, 12)
6797 TEST_FIELD_SIZE (BITMAPV4HEADER, bV4BitCount, 2)
6798 TEST_FIELD_ALIGN (BITMAPV4HEADER, bV4BitCount, 2)
6799 TEST_FIELD_OFFSET(BITMAPV4HEADER, bV4BitCount, 14)
6800 TEST_FIELD_SIZE (BITMAPV4HEADER, bV4V4Compression, 4)
6801 TEST_FIELD_ALIGN (BITMAPV4HEADER, bV4V4Compression, 4)
6802 TEST_FIELD_OFFSET(BITMAPV4HEADER, bV4V4Compression, 16)
6803 TEST_FIELD_SIZE (BITMAPV4HEADER, bV4SizeImage, 4)
6804 TEST_FIELD_ALIGN (BITMAPV4HEADER, bV4SizeImage, 4)
6805 TEST_FIELD_OFFSET(BITMAPV4HEADER, bV4SizeImage, 20)
6806 TEST_FIELD_SIZE (BITMAPV4HEADER, bV4XPelsPerMeter, 4)
6807 TEST_FIELD_ALIGN (BITMAPV4HEADER, bV4XPelsPerMeter, 4)
6808 TEST_FIELD_OFFSET(BITMAPV4HEADER, bV4XPelsPerMeter, 24)
6809 TEST_FIELD_SIZE (BITMAPV4HEADER, bV4YPelsPerMeter, 4)
6810 TEST_FIELD_ALIGN (BITMAPV4HEADER, bV4YPelsPerMeter, 4)
6811 TEST_FIELD_OFFSET(BITMAPV4HEADER, bV4YPelsPerMeter, 28)
6812 TEST_FIELD_SIZE (BITMAPV4HEADER, bV4ClrUsed, 4)
6813 TEST_FIELD_ALIGN (BITMAPV4HEADER, bV4ClrUsed, 4)
6814 TEST_FIELD_OFFSET(BITMAPV4HEADER, bV4ClrUsed, 32)
6815 TEST_FIELD_SIZE (BITMAPV4HEADER, bV4ClrImportant, 4)
6816 TEST_FIELD_ALIGN (BITMAPV4HEADER, bV4ClrImportant, 4)
6817 TEST_FIELD_OFFSET(BITMAPV4HEADER, bV4ClrImportant, 36)
6818 TEST_FIELD_SIZE (BITMAPV4HEADER, bV4RedMask, 4)
6819 TEST_FIELD_ALIGN (BITMAPV4HEADER, bV4RedMask, 4)
6820 TEST_FIELD_OFFSET(BITMAPV4HEADER, bV4RedMask, 40)
6821 TEST_FIELD_SIZE (BITMAPV4HEADER, bV4GreenMask, 4)
6822 TEST_FIELD_ALIGN (BITMAPV4HEADER, bV4GreenMask, 4)
6823 TEST_FIELD_OFFSET(BITMAPV4HEADER, bV4GreenMask, 44)
6824 TEST_FIELD_SIZE (BITMAPV4HEADER, bV4BlueMask, 4)
6825 TEST_FIELD_ALIGN (BITMAPV4HEADER, bV4BlueMask, 4)
6826 TEST_FIELD_OFFSET(BITMAPV4HEADER, bV4BlueMask, 48)
6827 TEST_FIELD_SIZE (BITMAPV4HEADER, bV4AlphaMask, 4)
6828 TEST_FIELD_ALIGN (BITMAPV4HEADER, bV4AlphaMask, 4)
6829 TEST_FIELD_OFFSET(BITMAPV4HEADER, bV4AlphaMask, 52)
6830 TEST_FIELD_SIZE (BITMAPV4HEADER, bV4CSType, 4)
6831 TEST_FIELD_ALIGN (BITMAPV4HEADER, bV4CSType, 4)
6832 TEST_FIELD_OFFSET(BITMAPV4HEADER, bV4CSType, 56)
6833 TEST_FIELD_SIZE (BITMAPV4HEADER, bV4Endpoints, 36)
6834 TEST_FIELD_ALIGN (BITMAPV4HEADER, bV4Endpoints, 4)
6835 TEST_FIELD_OFFSET(BITMAPV4HEADER, bV4Endpoints, 60)
6836 TEST_FIELD_SIZE (BITMAPV4HEADER, bV4GammaRed, 4)
6837 TEST_FIELD_ALIGN (BITMAPV4HEADER, bV4GammaRed, 4)
6838 TEST_FIELD_OFFSET(BITMAPV4HEADER, bV4GammaRed, 96)
6839 TEST_FIELD_SIZE (BITMAPV4HEADER, bV4GammaGreen, 4)
6840 TEST_FIELD_ALIGN (BITMAPV4HEADER, bV4GammaGreen, 4)
6841 TEST_FIELD_OFFSET(BITMAPV4HEADER, bV4GammaGreen, 100)
6842 TEST_FIELD_SIZE (BITMAPV4HEADER, bV4GammaBlue, 4)
6843 TEST_FIELD_ALIGN (BITMAPV4HEADER, bV4GammaBlue, 4)
6844 TEST_FIELD_OFFSET(BITMAPV4HEADER, bV4GammaBlue, 104)
6847 static void test_pack_BITMAPV5HEADER(void)
6849 /* BITMAPV5HEADER */
6850 TEST_TYPE_SIZE (BITMAPV5HEADER, 124)
6851 TEST_TYPE_ALIGN (BITMAPV5HEADER, 4)
6852 TEST_FIELD_SIZE (BITMAPV5HEADER, bV5Size, 4)
6853 TEST_FIELD_ALIGN (BITMAPV5HEADER, bV5Size, 4)
6854 TEST_FIELD_OFFSET(BITMAPV5HEADER, bV5Size, 0)
6855 TEST_FIELD_SIZE (BITMAPV5HEADER, bV5Width, 4)
6856 TEST_FIELD_ALIGN (BITMAPV5HEADER, bV5Width, 4)
6857 TEST_FIELD_OFFSET(BITMAPV5HEADER, bV5Width, 4)
6858 TEST_FIELD_SIZE (BITMAPV5HEADER, bV5Height, 4)
6859 TEST_FIELD_ALIGN (BITMAPV5HEADER, bV5Height, 4)
6860 TEST_FIELD_OFFSET(BITMAPV5HEADER, bV5Height, 8)
6861 TEST_FIELD_SIZE (BITMAPV5HEADER, bV5Planes, 2)
6862 TEST_FIELD_ALIGN (BITMAPV5HEADER, bV5Planes, 2)
6863 TEST_FIELD_OFFSET(BITMAPV5HEADER, bV5Planes, 12)
6864 TEST_FIELD_SIZE (BITMAPV5HEADER, bV5BitCount, 2)
6865 TEST_FIELD_ALIGN (BITMAPV5HEADER, bV5BitCount, 2)
6866 TEST_FIELD_OFFSET(BITMAPV5HEADER, bV5BitCount, 14)
6867 TEST_FIELD_SIZE (BITMAPV5HEADER, bV5Compression, 4)
6868 TEST_FIELD_ALIGN (BITMAPV5HEADER, bV5Compression, 4)
6869 TEST_FIELD_OFFSET(BITMAPV5HEADER, bV5Compression, 16)
6870 TEST_FIELD_SIZE (BITMAPV5HEADER, bV5SizeImage, 4)
6871 TEST_FIELD_ALIGN (BITMAPV5HEADER, bV5SizeImage, 4)
6872 TEST_FIELD_OFFSET(BITMAPV5HEADER, bV5SizeImage, 20)
6873 TEST_FIELD_SIZE (BITMAPV5HEADER, bV5XPelsPerMeter, 4)
6874 TEST_FIELD_ALIGN (BITMAPV5HEADER, bV5XPelsPerMeter, 4)
6875 TEST_FIELD_OFFSET(BITMAPV5HEADER, bV5XPelsPerMeter, 24)
6876 TEST_FIELD_SIZE (BITMAPV5HEADER, bV5YPelsPerMeter, 4)
6877 TEST_FIELD_ALIGN (BITMAPV5HEADER, bV5YPelsPerMeter, 4)
6878 TEST_FIELD_OFFSET(BITMAPV5HEADER, bV5YPelsPerMeter, 28)
6879 TEST_FIELD_SIZE (BITMAPV5HEADER, bV5ClrUsed, 4)
6880 TEST_FIELD_ALIGN (BITMAPV5HEADER, bV5ClrUsed, 4)
6881 TEST_FIELD_OFFSET(BITMAPV5HEADER, bV5ClrUsed, 32)
6882 TEST_FIELD_SIZE (BITMAPV5HEADER, bV5ClrImportant, 4)
6883 TEST_FIELD_ALIGN (BITMAPV5HEADER, bV5ClrImportant, 4)
6884 TEST_FIELD_OFFSET(BITMAPV5HEADER, bV5ClrImportant, 36)
6885 TEST_FIELD_SIZE (BITMAPV5HEADER, bV5RedMask, 4)
6886 TEST_FIELD_ALIGN (BITMAPV5HEADER, bV5RedMask, 4)
6887 TEST_FIELD_OFFSET(BITMAPV5HEADER, bV5RedMask, 40)
6888 TEST_FIELD_SIZE (BITMAPV5HEADER, bV5GreenMask, 4)
6889 TEST_FIELD_ALIGN (BITMAPV5HEADER, bV5GreenMask, 4)
6890 TEST_FIELD_OFFSET(BITMAPV5HEADER, bV5GreenMask, 44)
6891 TEST_FIELD_SIZE (BITMAPV5HEADER, bV5BlueMask, 4)
6892 TEST_FIELD_ALIGN (BITMAPV5HEADER, bV5BlueMask, 4)
6893 TEST_FIELD_OFFSET(BITMAPV5HEADER, bV5BlueMask, 48)
6894 TEST_FIELD_SIZE (BITMAPV5HEADER, bV5AlphaMask, 4)
6895 TEST_FIELD_ALIGN (BITMAPV5HEADER, bV5AlphaMask, 4)
6896 TEST_FIELD_OFFSET(BITMAPV5HEADER, bV5AlphaMask, 52)
6897 TEST_FIELD_SIZE (BITMAPV5HEADER, bV5CSType, 4)
6898 TEST_FIELD_ALIGN (BITMAPV5HEADER, bV5CSType, 4)
6899 TEST_FIELD_OFFSET(BITMAPV5HEADER, bV5CSType, 56)
6900 TEST_FIELD_SIZE (BITMAPV5HEADER, bV5Endpoints, 36)
6901 TEST_FIELD_ALIGN (BITMAPV5HEADER, bV5Endpoints, 4)
6902 TEST_FIELD_OFFSET(BITMAPV5HEADER, bV5Endpoints, 60)
6903 TEST_FIELD_SIZE (BITMAPV5HEADER, bV5GammaRed, 4)
6904 TEST_FIELD_ALIGN (BITMAPV5HEADER, bV5GammaRed, 4)
6905 TEST_FIELD_OFFSET(BITMAPV5HEADER, bV5GammaRed, 96)
6906 TEST_FIELD_SIZE (BITMAPV5HEADER, bV5GammaGreen, 4)
6907 TEST_FIELD_ALIGN (BITMAPV5HEADER, bV5GammaGreen, 4)
6908 TEST_FIELD_OFFSET(BITMAPV5HEADER, bV5GammaGreen, 100)
6909 TEST_FIELD_SIZE (BITMAPV5HEADER, bV5GammaBlue, 4)
6910 TEST_FIELD_ALIGN (BITMAPV5HEADER, bV5GammaBlue, 4)
6911 TEST_FIELD_OFFSET(BITMAPV5HEADER, bV5GammaBlue, 104)
6912 TEST_FIELD_SIZE (BITMAPV5HEADER, bV5Intent, 4)
6913 TEST_FIELD_ALIGN (BITMAPV5HEADER, bV5Intent, 4)
6914 TEST_FIELD_OFFSET(BITMAPV5HEADER, bV5Intent, 108)
6915 TEST_FIELD_SIZE (BITMAPV5HEADER, bV5ProfileData, 4)
6916 TEST_FIELD_ALIGN (BITMAPV5HEADER, bV5ProfileData, 4)
6917 TEST_FIELD_OFFSET(BITMAPV5HEADER, bV5ProfileData, 112)
6918 TEST_FIELD_SIZE (BITMAPV5HEADER, bV5ProfileSize, 4)
6919 TEST_FIELD_ALIGN (BITMAPV5HEADER, bV5ProfileSize, 4)
6920 TEST_FIELD_OFFSET(BITMAPV5HEADER, bV5ProfileSize, 116)
6921 TEST_FIELD_SIZE (BITMAPV5HEADER, bV5Reserved, 4)
6922 TEST_FIELD_ALIGN (BITMAPV5HEADER, bV5Reserved, 4)
6923 TEST_FIELD_OFFSET(BITMAPV5HEADER, bV5Reserved, 120)
6926 static void test_pack_BLENDFUNCTION(void)
6928 /* BLENDFUNCTION */
6929 TEST_TYPE_SIZE (BLENDFUNCTION, 4)
6930 TEST_TYPE_ALIGN (BLENDFUNCTION, 1)
6931 TEST_FIELD_SIZE (BLENDFUNCTION, BlendOp, 1)
6932 TEST_FIELD_ALIGN (BLENDFUNCTION, BlendOp, 1)
6933 TEST_FIELD_OFFSET(BLENDFUNCTION, BlendOp, 0)
6934 TEST_FIELD_SIZE (BLENDFUNCTION, BlendFlags, 1)
6935 TEST_FIELD_ALIGN (BLENDFUNCTION, BlendFlags, 1)
6936 TEST_FIELD_OFFSET(BLENDFUNCTION, BlendFlags, 1)
6937 TEST_FIELD_SIZE (BLENDFUNCTION, SourceConstantAlpha, 1)
6938 TEST_FIELD_ALIGN (BLENDFUNCTION, SourceConstantAlpha, 1)
6939 TEST_FIELD_OFFSET(BLENDFUNCTION, SourceConstantAlpha, 2)
6940 TEST_FIELD_SIZE (BLENDFUNCTION, AlphaFormat, 1)
6941 TEST_FIELD_ALIGN (BLENDFUNCTION, AlphaFormat, 1)
6942 TEST_FIELD_OFFSET(BLENDFUNCTION, AlphaFormat, 3)
6945 static void test_pack_CHARSETINFO(void)
6947 /* CHARSETINFO */
6948 TEST_TYPE_SIZE (CHARSETINFO, 32)
6949 TEST_TYPE_ALIGN (CHARSETINFO, 4)
6950 TEST_FIELD_SIZE (CHARSETINFO, ciCharset, 4)
6951 TEST_FIELD_ALIGN (CHARSETINFO, ciCharset, 4)
6952 TEST_FIELD_OFFSET(CHARSETINFO, ciCharset, 0)
6953 TEST_FIELD_SIZE (CHARSETINFO, ciACP, 4)
6954 TEST_FIELD_ALIGN (CHARSETINFO, ciACP, 4)
6955 TEST_FIELD_OFFSET(CHARSETINFO, ciACP, 4)
6956 TEST_FIELD_SIZE (CHARSETINFO, fs, 24)
6957 TEST_FIELD_ALIGN (CHARSETINFO, fs, 4)
6958 TEST_FIELD_OFFSET(CHARSETINFO, fs, 8)
6961 static void test_pack_CIEXYZ(void)
6963 /* CIEXYZ */
6964 TEST_TYPE_SIZE (CIEXYZ, 12)
6965 TEST_TYPE_ALIGN (CIEXYZ, 4)
6966 TEST_FIELD_SIZE (CIEXYZ, ciexyzX, 4)
6967 TEST_FIELD_ALIGN (CIEXYZ, ciexyzX, 4)
6968 TEST_FIELD_OFFSET(CIEXYZ, ciexyzX, 0)
6969 TEST_FIELD_SIZE (CIEXYZ, ciexyzY, 4)
6970 TEST_FIELD_ALIGN (CIEXYZ, ciexyzY, 4)
6971 TEST_FIELD_OFFSET(CIEXYZ, ciexyzY, 4)
6972 TEST_FIELD_SIZE (CIEXYZ, ciexyzZ, 4)
6973 TEST_FIELD_ALIGN (CIEXYZ, ciexyzZ, 4)
6974 TEST_FIELD_OFFSET(CIEXYZ, ciexyzZ, 8)
6977 static void test_pack_CIEXYZTRIPLE(void)
6979 /* CIEXYZTRIPLE */
6980 TEST_TYPE_SIZE (CIEXYZTRIPLE, 36)
6981 TEST_TYPE_ALIGN (CIEXYZTRIPLE, 4)
6982 TEST_FIELD_SIZE (CIEXYZTRIPLE, ciexyzRed, 12)
6983 TEST_FIELD_ALIGN (CIEXYZTRIPLE, ciexyzRed, 4)
6984 TEST_FIELD_OFFSET(CIEXYZTRIPLE, ciexyzRed, 0)
6985 TEST_FIELD_SIZE (CIEXYZTRIPLE, ciexyzGreen, 12)
6986 TEST_FIELD_ALIGN (CIEXYZTRIPLE, ciexyzGreen, 4)
6987 TEST_FIELD_OFFSET(CIEXYZTRIPLE, ciexyzGreen, 12)
6988 TEST_FIELD_SIZE (CIEXYZTRIPLE, ciexyzBlue, 12)
6989 TEST_FIELD_ALIGN (CIEXYZTRIPLE, ciexyzBlue, 4)
6990 TEST_FIELD_OFFSET(CIEXYZTRIPLE, ciexyzBlue, 24)
6993 static void test_pack_COLOR16(void)
6995 /* COLOR16 */
6996 TEST_TYPE_SIZE (COLOR16, 2)
6997 TEST_TYPE_ALIGN (COLOR16, 2)
7000 static void test_pack_COLORADJUSTMENT(void)
7002 /* COLORADJUSTMENT */
7003 TEST_TYPE_SIZE (COLORADJUSTMENT, 24)
7004 TEST_TYPE_ALIGN (COLORADJUSTMENT, 2)
7005 TEST_FIELD_SIZE (COLORADJUSTMENT, caSize, 2)
7006 TEST_FIELD_ALIGN (COLORADJUSTMENT, caSize, 2)
7007 TEST_FIELD_OFFSET(COLORADJUSTMENT, caSize, 0)
7008 TEST_FIELD_SIZE (COLORADJUSTMENT, caFlags, 2)
7009 TEST_FIELD_ALIGN (COLORADJUSTMENT, caFlags, 2)
7010 TEST_FIELD_OFFSET(COLORADJUSTMENT, caFlags, 2)
7011 TEST_FIELD_SIZE (COLORADJUSTMENT, caIlluminantIndex, 2)
7012 TEST_FIELD_ALIGN (COLORADJUSTMENT, caIlluminantIndex, 2)
7013 TEST_FIELD_OFFSET(COLORADJUSTMENT, caIlluminantIndex, 4)
7014 TEST_FIELD_SIZE (COLORADJUSTMENT, caRedGamma, 2)
7015 TEST_FIELD_ALIGN (COLORADJUSTMENT, caRedGamma, 2)
7016 TEST_FIELD_OFFSET(COLORADJUSTMENT, caRedGamma, 6)
7017 TEST_FIELD_SIZE (COLORADJUSTMENT, caGreenGamma, 2)
7018 TEST_FIELD_ALIGN (COLORADJUSTMENT, caGreenGamma, 2)
7019 TEST_FIELD_OFFSET(COLORADJUSTMENT, caGreenGamma, 8)
7020 TEST_FIELD_SIZE (COLORADJUSTMENT, caBlueGamma, 2)
7021 TEST_FIELD_ALIGN (COLORADJUSTMENT, caBlueGamma, 2)
7022 TEST_FIELD_OFFSET(COLORADJUSTMENT, caBlueGamma, 10)
7023 TEST_FIELD_SIZE (COLORADJUSTMENT, caReferenceBlack, 2)
7024 TEST_FIELD_ALIGN (COLORADJUSTMENT, caReferenceBlack, 2)
7025 TEST_FIELD_OFFSET(COLORADJUSTMENT, caReferenceBlack, 12)
7026 TEST_FIELD_SIZE (COLORADJUSTMENT, caReferenceWhite, 2)
7027 TEST_FIELD_ALIGN (COLORADJUSTMENT, caReferenceWhite, 2)
7028 TEST_FIELD_OFFSET(COLORADJUSTMENT, caReferenceWhite, 14)
7029 TEST_FIELD_SIZE (COLORADJUSTMENT, caContrast, 2)
7030 TEST_FIELD_ALIGN (COLORADJUSTMENT, caContrast, 2)
7031 TEST_FIELD_OFFSET(COLORADJUSTMENT, caContrast, 16)
7032 TEST_FIELD_SIZE (COLORADJUSTMENT, caBrightness, 2)
7033 TEST_FIELD_ALIGN (COLORADJUSTMENT, caBrightness, 2)
7034 TEST_FIELD_OFFSET(COLORADJUSTMENT, caBrightness, 18)
7035 TEST_FIELD_SIZE (COLORADJUSTMENT, caColorfulness, 2)
7036 TEST_FIELD_ALIGN (COLORADJUSTMENT, caColorfulness, 2)
7037 TEST_FIELD_OFFSET(COLORADJUSTMENT, caColorfulness, 20)
7038 TEST_FIELD_SIZE (COLORADJUSTMENT, caRedGreenTint, 2)
7039 TEST_FIELD_ALIGN (COLORADJUSTMENT, caRedGreenTint, 2)
7040 TEST_FIELD_OFFSET(COLORADJUSTMENT, caRedGreenTint, 22)
7043 static void test_pack_DEVMODEA(void)
7045 /* DEVMODEA */
7046 TEST_FIELD_SIZE (DEVMODEA, dmDeviceName, 32)
7047 TEST_FIELD_ALIGN (DEVMODEA, dmDeviceName, 1)
7048 TEST_FIELD_OFFSET(DEVMODEA, dmDeviceName, 0)
7049 TEST_FIELD_SIZE (DEVMODEA, dmSpecVersion, 2)
7050 TEST_FIELD_ALIGN (DEVMODEA, dmSpecVersion, 2)
7051 TEST_FIELD_OFFSET(DEVMODEA, dmSpecVersion, 32)
7052 TEST_FIELD_SIZE (DEVMODEA, dmDriverVersion, 2)
7053 TEST_FIELD_ALIGN (DEVMODEA, dmDriverVersion, 2)
7054 TEST_FIELD_OFFSET(DEVMODEA, dmDriverVersion, 34)
7055 TEST_FIELD_SIZE (DEVMODEA, dmSize, 2)
7056 TEST_FIELD_ALIGN (DEVMODEA, dmSize, 2)
7057 TEST_FIELD_OFFSET(DEVMODEA, dmSize, 36)
7058 TEST_FIELD_SIZE (DEVMODEA, dmDriverExtra, 2)
7059 TEST_FIELD_ALIGN (DEVMODEA, dmDriverExtra, 2)
7060 TEST_FIELD_OFFSET(DEVMODEA, dmDriverExtra, 38)
7061 TEST_FIELD_SIZE (DEVMODEA, dmFields, 4)
7062 TEST_FIELD_ALIGN (DEVMODEA, dmFields, 4)
7063 TEST_FIELD_OFFSET(DEVMODEA, dmFields, 40)
7066 static void test_pack_DEVMODEW(void)
7068 /* DEVMODEW */
7069 TEST_FIELD_SIZE (DEVMODEW, dmDeviceName, 64)
7070 TEST_FIELD_ALIGN (DEVMODEW, dmDeviceName, 2)
7071 TEST_FIELD_OFFSET(DEVMODEW, dmDeviceName, 0)
7072 TEST_FIELD_SIZE (DEVMODEW, dmSpecVersion, 2)
7073 TEST_FIELD_ALIGN (DEVMODEW, dmSpecVersion, 2)
7074 TEST_FIELD_OFFSET(DEVMODEW, dmSpecVersion, 64)
7075 TEST_FIELD_SIZE (DEVMODEW, dmDriverVersion, 2)
7076 TEST_FIELD_ALIGN (DEVMODEW, dmDriverVersion, 2)
7077 TEST_FIELD_OFFSET(DEVMODEW, dmDriverVersion, 66)
7078 TEST_FIELD_SIZE (DEVMODEW, dmSize, 2)
7079 TEST_FIELD_ALIGN (DEVMODEW, dmSize, 2)
7080 TEST_FIELD_OFFSET(DEVMODEW, dmSize, 68)
7081 TEST_FIELD_SIZE (DEVMODEW, dmDriverExtra, 2)
7082 TEST_FIELD_ALIGN (DEVMODEW, dmDriverExtra, 2)
7083 TEST_FIELD_OFFSET(DEVMODEW, dmDriverExtra, 70)
7084 TEST_FIELD_SIZE (DEVMODEW, dmFields, 4)
7085 TEST_FIELD_ALIGN (DEVMODEW, dmFields, 4)
7086 TEST_FIELD_OFFSET(DEVMODEW, dmFields, 72)
7089 static void test_pack_DIBSECTION(void)
7091 /* DIBSECTION */
7092 TEST_TYPE_SIZE (DIBSECTION, 84)
7093 TEST_TYPE_ALIGN (DIBSECTION, 4)
7094 TEST_FIELD_SIZE (DIBSECTION, dsBm, 24)
7095 TEST_FIELD_ALIGN (DIBSECTION, dsBm, 4)
7096 TEST_FIELD_OFFSET(DIBSECTION, dsBm, 0)
7097 TEST_FIELD_SIZE (DIBSECTION, dsBmih, 40)
7098 TEST_FIELD_ALIGN (DIBSECTION, dsBmih, 4)
7099 TEST_FIELD_OFFSET(DIBSECTION, dsBmih, 24)
7100 TEST_FIELD_SIZE (DIBSECTION, dsBitfields, 12)
7101 TEST_FIELD_ALIGN (DIBSECTION, dsBitfields, 4)
7102 TEST_FIELD_OFFSET(DIBSECTION, dsBitfields, 64)
7103 TEST_FIELD_SIZE (DIBSECTION, dshSection, 4)
7104 TEST_FIELD_ALIGN (DIBSECTION, dshSection, 4)
7105 TEST_FIELD_OFFSET(DIBSECTION, dshSection, 76)
7106 TEST_FIELD_SIZE (DIBSECTION, dsOffset, 4)
7107 TEST_FIELD_ALIGN (DIBSECTION, dsOffset, 4)
7108 TEST_FIELD_OFFSET(DIBSECTION, dsOffset, 80)
7111 static void test_pack_DISPLAY_DEVICEA(void)
7113 /* DISPLAY_DEVICEA */
7114 TEST_TYPE_SIZE (DISPLAY_DEVICEA, 424)
7115 TEST_TYPE_ALIGN (DISPLAY_DEVICEA, 4)
7116 TEST_FIELD_SIZE (DISPLAY_DEVICEA, cb, 4)
7117 TEST_FIELD_ALIGN (DISPLAY_DEVICEA, cb, 4)
7118 TEST_FIELD_OFFSET(DISPLAY_DEVICEA, cb, 0)
7119 TEST_FIELD_SIZE (DISPLAY_DEVICEA, DeviceName, 32)
7120 TEST_FIELD_ALIGN (DISPLAY_DEVICEA, DeviceName, 1)
7121 TEST_FIELD_OFFSET(DISPLAY_DEVICEA, DeviceName, 4)
7122 TEST_FIELD_SIZE (DISPLAY_DEVICEA, DeviceString, 128)
7123 TEST_FIELD_ALIGN (DISPLAY_DEVICEA, DeviceString, 1)
7124 TEST_FIELD_OFFSET(DISPLAY_DEVICEA, DeviceString, 36)
7125 TEST_FIELD_SIZE (DISPLAY_DEVICEA, StateFlags, 4)
7126 TEST_FIELD_ALIGN (DISPLAY_DEVICEA, StateFlags, 4)
7127 TEST_FIELD_OFFSET(DISPLAY_DEVICEA, StateFlags, 164)
7128 TEST_FIELD_SIZE (DISPLAY_DEVICEA, DeviceID, 128)
7129 TEST_FIELD_ALIGN (DISPLAY_DEVICEA, DeviceID, 1)
7130 TEST_FIELD_OFFSET(DISPLAY_DEVICEA, DeviceID, 168)
7131 TEST_FIELD_SIZE (DISPLAY_DEVICEA, DeviceKey, 128)
7132 TEST_FIELD_ALIGN (DISPLAY_DEVICEA, DeviceKey, 1)
7133 TEST_FIELD_OFFSET(DISPLAY_DEVICEA, DeviceKey, 296)
7136 static void test_pack_DISPLAY_DEVICEW(void)
7138 /* DISPLAY_DEVICEW */
7139 TEST_TYPE_SIZE (DISPLAY_DEVICEW, 840)
7140 TEST_TYPE_ALIGN (DISPLAY_DEVICEW, 4)
7141 TEST_FIELD_SIZE (DISPLAY_DEVICEW, cb, 4)
7142 TEST_FIELD_ALIGN (DISPLAY_DEVICEW, cb, 4)
7143 TEST_FIELD_OFFSET(DISPLAY_DEVICEW, cb, 0)
7144 TEST_FIELD_SIZE (DISPLAY_DEVICEW, DeviceName, 64)
7145 TEST_FIELD_ALIGN (DISPLAY_DEVICEW, DeviceName, 2)
7146 TEST_FIELD_OFFSET(DISPLAY_DEVICEW, DeviceName, 4)
7147 TEST_FIELD_SIZE (DISPLAY_DEVICEW, DeviceString, 256)
7148 TEST_FIELD_ALIGN (DISPLAY_DEVICEW, DeviceString, 2)
7149 TEST_FIELD_OFFSET(DISPLAY_DEVICEW, DeviceString, 68)
7150 TEST_FIELD_SIZE (DISPLAY_DEVICEW, StateFlags, 4)
7151 TEST_FIELD_ALIGN (DISPLAY_DEVICEW, StateFlags, 4)
7152 TEST_FIELD_OFFSET(DISPLAY_DEVICEW, StateFlags, 324)
7153 TEST_FIELD_SIZE (DISPLAY_DEVICEW, DeviceID, 256)
7154 TEST_FIELD_ALIGN (DISPLAY_DEVICEW, DeviceID, 2)
7155 TEST_FIELD_OFFSET(DISPLAY_DEVICEW, DeviceID, 328)
7156 TEST_FIELD_SIZE (DISPLAY_DEVICEW, DeviceKey, 256)
7157 TEST_FIELD_ALIGN (DISPLAY_DEVICEW, DeviceKey, 2)
7158 TEST_FIELD_OFFSET(DISPLAY_DEVICEW, DeviceKey, 584)
7161 static void test_pack_DOCINFOA(void)
7163 /* DOCINFOA */
7164 TEST_TYPE_SIZE (DOCINFOA, 20)
7165 TEST_TYPE_ALIGN (DOCINFOA, 4)
7166 TEST_FIELD_SIZE (DOCINFOA, cbSize, 4)
7167 TEST_FIELD_ALIGN (DOCINFOA, cbSize, 4)
7168 TEST_FIELD_OFFSET(DOCINFOA, cbSize, 0)
7169 TEST_FIELD_SIZE (DOCINFOA, lpszDocName, 4)
7170 TEST_FIELD_ALIGN (DOCINFOA, lpszDocName, 4)
7171 TEST_FIELD_OFFSET(DOCINFOA, lpszDocName, 4)
7172 TEST_FIELD_SIZE (DOCINFOA, lpszOutput, 4)
7173 TEST_FIELD_ALIGN (DOCINFOA, lpszOutput, 4)
7174 TEST_FIELD_OFFSET(DOCINFOA, lpszOutput, 8)
7175 TEST_FIELD_SIZE (DOCINFOA, lpszDatatype, 4)
7176 TEST_FIELD_ALIGN (DOCINFOA, lpszDatatype, 4)
7177 TEST_FIELD_OFFSET(DOCINFOA, lpszDatatype, 12)
7178 TEST_FIELD_SIZE (DOCINFOA, fwType, 4)
7179 TEST_FIELD_ALIGN (DOCINFOA, fwType, 4)
7180 TEST_FIELD_OFFSET(DOCINFOA, fwType, 16)
7183 static void test_pack_DOCINFOW(void)
7185 /* DOCINFOW */
7186 TEST_TYPE_SIZE (DOCINFOW, 20)
7187 TEST_TYPE_ALIGN (DOCINFOW, 4)
7188 TEST_FIELD_SIZE (DOCINFOW, cbSize, 4)
7189 TEST_FIELD_ALIGN (DOCINFOW, cbSize, 4)
7190 TEST_FIELD_OFFSET(DOCINFOW, cbSize, 0)
7191 TEST_FIELD_SIZE (DOCINFOW, lpszDocName, 4)
7192 TEST_FIELD_ALIGN (DOCINFOW, lpszDocName, 4)
7193 TEST_FIELD_OFFSET(DOCINFOW, lpszDocName, 4)
7194 TEST_FIELD_SIZE (DOCINFOW, lpszOutput, 4)
7195 TEST_FIELD_ALIGN (DOCINFOW, lpszOutput, 4)
7196 TEST_FIELD_OFFSET(DOCINFOW, lpszOutput, 8)
7197 TEST_FIELD_SIZE (DOCINFOW, lpszDatatype, 4)
7198 TEST_FIELD_ALIGN (DOCINFOW, lpszDatatype, 4)
7199 TEST_FIELD_OFFSET(DOCINFOW, lpszDatatype, 12)
7200 TEST_FIELD_SIZE (DOCINFOW, fwType, 4)
7201 TEST_FIELD_ALIGN (DOCINFOW, fwType, 4)
7202 TEST_FIELD_OFFSET(DOCINFOW, fwType, 16)
7205 static void test_pack_EMR(void)
7207 /* EMR */
7208 TEST_TYPE_SIZE (EMR, 8)
7209 TEST_TYPE_ALIGN (EMR, 4)
7210 TEST_FIELD_SIZE (EMR, iType, 4)
7211 TEST_FIELD_ALIGN (EMR, iType, 4)
7212 TEST_FIELD_OFFSET(EMR, iType, 0)
7213 TEST_FIELD_SIZE (EMR, nSize, 4)
7214 TEST_FIELD_ALIGN (EMR, nSize, 4)
7215 TEST_FIELD_OFFSET(EMR, nSize, 4)
7218 static void test_pack_EMRABORTPATH(void)
7220 /* EMRABORTPATH */
7221 TEST_TYPE_SIZE (EMRABORTPATH, 8)
7222 TEST_TYPE_ALIGN (EMRABORTPATH, 4)
7223 TEST_FIELD_SIZE (EMRABORTPATH, emr, 8)
7224 TEST_FIELD_ALIGN (EMRABORTPATH, emr, 4)
7225 TEST_FIELD_OFFSET(EMRABORTPATH, emr, 0)
7228 static void test_pack_EMRANGLEARC(void)
7230 /* EMRANGLEARC */
7231 TEST_TYPE_SIZE (EMRANGLEARC, 28)
7232 TEST_TYPE_ALIGN (EMRANGLEARC, 4)
7233 TEST_FIELD_SIZE (EMRANGLEARC, emr, 8)
7234 TEST_FIELD_ALIGN (EMRANGLEARC, emr, 4)
7235 TEST_FIELD_OFFSET(EMRANGLEARC, emr, 0)
7236 TEST_FIELD_SIZE (EMRANGLEARC, ptlCenter, 8)
7237 TEST_FIELD_ALIGN (EMRANGLEARC, ptlCenter, 4)
7238 TEST_FIELD_OFFSET(EMRANGLEARC, ptlCenter, 8)
7239 TEST_FIELD_SIZE (EMRANGLEARC, nRadius, 4)
7240 TEST_FIELD_ALIGN (EMRANGLEARC, nRadius, 4)
7241 TEST_FIELD_OFFSET(EMRANGLEARC, nRadius, 16)
7242 TEST_FIELD_SIZE (EMRANGLEARC, eStartAngle, 4)
7243 TEST_FIELD_ALIGN (EMRANGLEARC, eStartAngle, 4)
7244 TEST_FIELD_OFFSET(EMRANGLEARC, eStartAngle, 20)
7245 TEST_FIELD_SIZE (EMRANGLEARC, eSweepAngle, 4)
7246 TEST_FIELD_ALIGN (EMRANGLEARC, eSweepAngle, 4)
7247 TEST_FIELD_OFFSET(EMRANGLEARC, eSweepAngle, 24)
7250 static void test_pack_EMRARC(void)
7252 /* EMRARC */
7253 TEST_TYPE_SIZE (EMRARC, 40)
7254 TEST_TYPE_ALIGN (EMRARC, 4)
7255 TEST_FIELD_SIZE (EMRARC, emr, 8)
7256 TEST_FIELD_ALIGN (EMRARC, emr, 4)
7257 TEST_FIELD_OFFSET(EMRARC, emr, 0)
7258 TEST_FIELD_SIZE (EMRARC, rclBox, 16)
7259 TEST_FIELD_ALIGN (EMRARC, rclBox, 4)
7260 TEST_FIELD_OFFSET(EMRARC, rclBox, 8)
7261 TEST_FIELD_SIZE (EMRARC, ptlStart, 8)
7262 TEST_FIELD_ALIGN (EMRARC, ptlStart, 4)
7263 TEST_FIELD_OFFSET(EMRARC, ptlStart, 24)
7264 TEST_FIELD_SIZE (EMRARC, ptlEnd, 8)
7265 TEST_FIELD_ALIGN (EMRARC, ptlEnd, 4)
7266 TEST_FIELD_OFFSET(EMRARC, ptlEnd, 32)
7269 static void test_pack_EMRARCTO(void)
7271 /* EMRARCTO */
7272 TEST_TYPE_SIZE (EMRARCTO, 40)
7273 TEST_TYPE_ALIGN (EMRARCTO, 4)
7274 TEST_FIELD_SIZE (EMRARCTO, emr, 8)
7275 TEST_FIELD_ALIGN (EMRARCTO, emr, 4)
7276 TEST_FIELD_OFFSET(EMRARCTO, emr, 0)
7277 TEST_FIELD_SIZE (EMRARCTO, rclBox, 16)
7278 TEST_FIELD_ALIGN (EMRARCTO, rclBox, 4)
7279 TEST_FIELD_OFFSET(EMRARCTO, rclBox, 8)
7280 TEST_FIELD_SIZE (EMRARCTO, ptlStart, 8)
7281 TEST_FIELD_ALIGN (EMRARCTO, ptlStart, 4)
7282 TEST_FIELD_OFFSET(EMRARCTO, ptlStart, 24)
7283 TEST_FIELD_SIZE (EMRARCTO, ptlEnd, 8)
7284 TEST_FIELD_ALIGN (EMRARCTO, ptlEnd, 4)
7285 TEST_FIELD_OFFSET(EMRARCTO, ptlEnd, 32)
7288 static void test_pack_EMRBEGINPATH(void)
7290 /* EMRBEGINPATH */
7291 TEST_TYPE_SIZE (EMRBEGINPATH, 8)
7292 TEST_TYPE_ALIGN (EMRBEGINPATH, 4)
7293 TEST_FIELD_SIZE (EMRBEGINPATH, emr, 8)
7294 TEST_FIELD_ALIGN (EMRBEGINPATH, emr, 4)
7295 TEST_FIELD_OFFSET(EMRBEGINPATH, emr, 0)
7298 static void test_pack_EMRBITBLT(void)
7300 /* EMRBITBLT */
7301 TEST_TYPE_SIZE (EMRBITBLT, 100)
7302 TEST_TYPE_ALIGN (EMRBITBLT, 4)
7303 TEST_FIELD_SIZE (EMRBITBLT, emr, 8)
7304 TEST_FIELD_ALIGN (EMRBITBLT, emr, 4)
7305 TEST_FIELD_OFFSET(EMRBITBLT, emr, 0)
7306 TEST_FIELD_SIZE (EMRBITBLT, rclBounds, 16)
7307 TEST_FIELD_ALIGN (EMRBITBLT, rclBounds, 4)
7308 TEST_FIELD_OFFSET(EMRBITBLT, rclBounds, 8)
7309 TEST_FIELD_SIZE (EMRBITBLT, xDest, 4)
7310 TEST_FIELD_ALIGN (EMRBITBLT, xDest, 4)
7311 TEST_FIELD_OFFSET(EMRBITBLT, xDest, 24)
7312 TEST_FIELD_SIZE (EMRBITBLT, yDest, 4)
7313 TEST_FIELD_ALIGN (EMRBITBLT, yDest, 4)
7314 TEST_FIELD_OFFSET(EMRBITBLT, yDest, 28)
7315 TEST_FIELD_SIZE (EMRBITBLT, cxDest, 4)
7316 TEST_FIELD_ALIGN (EMRBITBLT, cxDest, 4)
7317 TEST_FIELD_OFFSET(EMRBITBLT, cxDest, 32)
7318 TEST_FIELD_SIZE (EMRBITBLT, cyDest, 4)
7319 TEST_FIELD_ALIGN (EMRBITBLT, cyDest, 4)
7320 TEST_FIELD_OFFSET(EMRBITBLT, cyDest, 36)
7321 TEST_FIELD_SIZE (EMRBITBLT, dwRop, 4)
7322 TEST_FIELD_ALIGN (EMRBITBLT, dwRop, 4)
7323 TEST_FIELD_OFFSET(EMRBITBLT, dwRop, 40)
7324 TEST_FIELD_SIZE (EMRBITBLT, xSrc, 4)
7325 TEST_FIELD_ALIGN (EMRBITBLT, xSrc, 4)
7326 TEST_FIELD_OFFSET(EMRBITBLT, xSrc, 44)
7327 TEST_FIELD_SIZE (EMRBITBLT, ySrc, 4)
7328 TEST_FIELD_ALIGN (EMRBITBLT, ySrc, 4)
7329 TEST_FIELD_OFFSET(EMRBITBLT, ySrc, 48)
7330 TEST_FIELD_SIZE (EMRBITBLT, xformSrc, 24)
7331 TEST_FIELD_ALIGN (EMRBITBLT, xformSrc, 4)
7332 TEST_FIELD_OFFSET(EMRBITBLT, xformSrc, 52)
7333 TEST_FIELD_SIZE (EMRBITBLT, crBkColorSrc, 4)
7334 TEST_FIELD_ALIGN (EMRBITBLT, crBkColorSrc, 4)
7335 TEST_FIELD_OFFSET(EMRBITBLT, crBkColorSrc, 76)
7336 TEST_FIELD_SIZE (EMRBITBLT, iUsageSrc, 4)
7337 TEST_FIELD_ALIGN (EMRBITBLT, iUsageSrc, 4)
7338 TEST_FIELD_OFFSET(EMRBITBLT, iUsageSrc, 80)
7339 TEST_FIELD_SIZE (EMRBITBLT, offBmiSrc, 4)
7340 TEST_FIELD_ALIGN (EMRBITBLT, offBmiSrc, 4)
7341 TEST_FIELD_OFFSET(EMRBITBLT, offBmiSrc, 84)
7342 TEST_FIELD_SIZE (EMRBITBLT, cbBmiSrc, 4)
7343 TEST_FIELD_ALIGN (EMRBITBLT, cbBmiSrc, 4)
7344 TEST_FIELD_OFFSET(EMRBITBLT, cbBmiSrc, 88)
7345 TEST_FIELD_SIZE (EMRBITBLT, offBitsSrc, 4)
7346 TEST_FIELD_ALIGN (EMRBITBLT, offBitsSrc, 4)
7347 TEST_FIELD_OFFSET(EMRBITBLT, offBitsSrc, 92)
7348 TEST_FIELD_SIZE (EMRBITBLT, cbBitsSrc, 4)
7349 TEST_FIELD_ALIGN (EMRBITBLT, cbBitsSrc, 4)
7350 TEST_FIELD_OFFSET(EMRBITBLT, cbBitsSrc, 96)
7353 static void test_pack_EMRCHORD(void)
7355 /* EMRCHORD */
7356 TEST_TYPE_SIZE (EMRCHORD, 40)
7357 TEST_TYPE_ALIGN (EMRCHORD, 4)
7358 TEST_FIELD_SIZE (EMRCHORD, emr, 8)
7359 TEST_FIELD_ALIGN (EMRCHORD, emr, 4)
7360 TEST_FIELD_OFFSET(EMRCHORD, emr, 0)
7361 TEST_FIELD_SIZE (EMRCHORD, rclBox, 16)
7362 TEST_FIELD_ALIGN (EMRCHORD, rclBox, 4)
7363 TEST_FIELD_OFFSET(EMRCHORD, rclBox, 8)
7364 TEST_FIELD_SIZE (EMRCHORD, ptlStart, 8)
7365 TEST_FIELD_ALIGN (EMRCHORD, ptlStart, 4)
7366 TEST_FIELD_OFFSET(EMRCHORD, ptlStart, 24)
7367 TEST_FIELD_SIZE (EMRCHORD, ptlEnd, 8)
7368 TEST_FIELD_ALIGN (EMRCHORD, ptlEnd, 4)
7369 TEST_FIELD_OFFSET(EMRCHORD, ptlEnd, 32)
7372 static void test_pack_EMRCLOSEFIGURE(void)
7374 /* EMRCLOSEFIGURE */
7375 TEST_TYPE_SIZE (EMRCLOSEFIGURE, 8)
7376 TEST_TYPE_ALIGN (EMRCLOSEFIGURE, 4)
7377 TEST_FIELD_SIZE (EMRCLOSEFIGURE, emr, 8)
7378 TEST_FIELD_ALIGN (EMRCLOSEFIGURE, emr, 4)
7379 TEST_FIELD_OFFSET(EMRCLOSEFIGURE, emr, 0)
7382 static void test_pack_EMRCREATEBRUSHINDIRECT(void)
7384 /* EMRCREATEBRUSHINDIRECT */
7385 TEST_TYPE_SIZE (EMRCREATEBRUSHINDIRECT, 24)
7386 TEST_TYPE_ALIGN (EMRCREATEBRUSHINDIRECT, 4)
7387 TEST_FIELD_SIZE (EMRCREATEBRUSHINDIRECT, emr, 8)
7388 TEST_FIELD_ALIGN (EMRCREATEBRUSHINDIRECT, emr, 4)
7389 TEST_FIELD_OFFSET(EMRCREATEBRUSHINDIRECT, emr, 0)
7390 TEST_FIELD_SIZE (EMRCREATEBRUSHINDIRECT, ihBrush, 4)
7391 TEST_FIELD_ALIGN (EMRCREATEBRUSHINDIRECT, ihBrush, 4)
7392 TEST_FIELD_OFFSET(EMRCREATEBRUSHINDIRECT, ihBrush, 8)
7393 TEST_FIELD_SIZE (EMRCREATEBRUSHINDIRECT, lb, 12)
7394 TEST_FIELD_ALIGN (EMRCREATEBRUSHINDIRECT, lb, 4)
7395 TEST_FIELD_OFFSET(EMRCREATEBRUSHINDIRECT, lb, 12)
7398 static void test_pack_EMRCREATECOLORSPACE(void)
7400 /* EMRCREATECOLORSPACE */
7401 TEST_TYPE_SIZE (EMRCREATECOLORSPACE, 340)
7402 TEST_TYPE_ALIGN (EMRCREATECOLORSPACE, 4)
7403 TEST_FIELD_SIZE (EMRCREATECOLORSPACE, emr, 8)
7404 TEST_FIELD_ALIGN (EMRCREATECOLORSPACE, emr, 4)
7405 TEST_FIELD_OFFSET(EMRCREATECOLORSPACE, emr, 0)
7406 TEST_FIELD_SIZE (EMRCREATECOLORSPACE, ihCS, 4)
7407 TEST_FIELD_ALIGN (EMRCREATECOLORSPACE, ihCS, 4)
7408 TEST_FIELD_OFFSET(EMRCREATECOLORSPACE, ihCS, 8)
7409 TEST_FIELD_SIZE (EMRCREATECOLORSPACE, lcs, 328)
7410 TEST_FIELD_ALIGN (EMRCREATECOLORSPACE, lcs, 4)
7411 TEST_FIELD_OFFSET(EMRCREATECOLORSPACE, lcs, 12)
7414 static void test_pack_EMRCREATECOLORSPACEW(void)
7416 /* EMRCREATECOLORSPACEW */
7417 TEST_TYPE_SIZE (EMRCREATECOLORSPACEW, 612)
7418 TEST_TYPE_ALIGN (EMRCREATECOLORSPACEW, 4)
7419 TEST_FIELD_SIZE (EMRCREATECOLORSPACEW, emr, 8)
7420 TEST_FIELD_ALIGN (EMRCREATECOLORSPACEW, emr, 4)
7421 TEST_FIELD_OFFSET(EMRCREATECOLORSPACEW, emr, 0)
7422 TEST_FIELD_SIZE (EMRCREATECOLORSPACEW, ihCS, 4)
7423 TEST_FIELD_ALIGN (EMRCREATECOLORSPACEW, ihCS, 4)
7424 TEST_FIELD_OFFSET(EMRCREATECOLORSPACEW, ihCS, 8)
7425 TEST_FIELD_SIZE (EMRCREATECOLORSPACEW, lcs, 588)
7426 TEST_FIELD_ALIGN (EMRCREATECOLORSPACEW, lcs, 4)
7427 TEST_FIELD_OFFSET(EMRCREATECOLORSPACEW, lcs, 12)
7428 TEST_FIELD_SIZE (EMRCREATECOLORSPACEW, dwFlags, 4)
7429 TEST_FIELD_ALIGN (EMRCREATECOLORSPACEW, dwFlags, 4)
7430 TEST_FIELD_OFFSET(EMRCREATECOLORSPACEW, dwFlags, 600)
7431 TEST_FIELD_SIZE (EMRCREATECOLORSPACEW, cbData, 4)
7432 TEST_FIELD_ALIGN (EMRCREATECOLORSPACEW, cbData, 4)
7433 TEST_FIELD_OFFSET(EMRCREATECOLORSPACEW, cbData, 604)
7434 TEST_FIELD_SIZE (EMRCREATECOLORSPACEW, Data, 1)
7435 TEST_FIELD_ALIGN (EMRCREATECOLORSPACEW, Data, 1)
7436 TEST_FIELD_OFFSET(EMRCREATECOLORSPACEW, Data, 608)
7439 static void test_pack_EMRCREATEDIBPATTERNBRUSHPT(void)
7441 /* EMRCREATEDIBPATTERNBRUSHPT */
7442 TEST_TYPE_SIZE (EMRCREATEDIBPATTERNBRUSHPT, 32)
7443 TEST_TYPE_ALIGN (EMRCREATEDIBPATTERNBRUSHPT, 4)
7444 TEST_FIELD_SIZE (EMRCREATEDIBPATTERNBRUSHPT, emr, 8)
7445 TEST_FIELD_ALIGN (EMRCREATEDIBPATTERNBRUSHPT, emr, 4)
7446 TEST_FIELD_OFFSET(EMRCREATEDIBPATTERNBRUSHPT, emr, 0)
7447 TEST_FIELD_SIZE (EMRCREATEDIBPATTERNBRUSHPT, ihBrush, 4)
7448 TEST_FIELD_ALIGN (EMRCREATEDIBPATTERNBRUSHPT, ihBrush, 4)
7449 TEST_FIELD_OFFSET(EMRCREATEDIBPATTERNBRUSHPT, ihBrush, 8)
7450 TEST_FIELD_SIZE (EMRCREATEDIBPATTERNBRUSHPT, iUsage, 4)
7451 TEST_FIELD_ALIGN (EMRCREATEDIBPATTERNBRUSHPT, iUsage, 4)
7452 TEST_FIELD_OFFSET(EMRCREATEDIBPATTERNBRUSHPT, iUsage, 12)
7453 TEST_FIELD_SIZE (EMRCREATEDIBPATTERNBRUSHPT, offBmi, 4)
7454 TEST_FIELD_ALIGN (EMRCREATEDIBPATTERNBRUSHPT, offBmi, 4)
7455 TEST_FIELD_OFFSET(EMRCREATEDIBPATTERNBRUSHPT, offBmi, 16)
7456 TEST_FIELD_SIZE (EMRCREATEDIBPATTERNBRUSHPT, cbBmi, 4)
7457 TEST_FIELD_ALIGN (EMRCREATEDIBPATTERNBRUSHPT, cbBmi, 4)
7458 TEST_FIELD_OFFSET(EMRCREATEDIBPATTERNBRUSHPT, cbBmi, 20)
7459 TEST_FIELD_SIZE (EMRCREATEDIBPATTERNBRUSHPT, offBits, 4)
7460 TEST_FIELD_ALIGN (EMRCREATEDIBPATTERNBRUSHPT, offBits, 4)
7461 TEST_FIELD_OFFSET(EMRCREATEDIBPATTERNBRUSHPT, offBits, 24)
7462 TEST_FIELD_SIZE (EMRCREATEDIBPATTERNBRUSHPT, cbBits, 4)
7463 TEST_FIELD_ALIGN (EMRCREATEDIBPATTERNBRUSHPT, cbBits, 4)
7464 TEST_FIELD_OFFSET(EMRCREATEDIBPATTERNBRUSHPT, cbBits, 28)
7467 static void test_pack_EMRCREATEMONOBRUSH(void)
7469 /* EMRCREATEMONOBRUSH */
7470 TEST_TYPE_SIZE (EMRCREATEMONOBRUSH, 32)
7471 TEST_TYPE_ALIGN (EMRCREATEMONOBRUSH, 4)
7472 TEST_FIELD_SIZE (EMRCREATEMONOBRUSH, emr, 8)
7473 TEST_FIELD_ALIGN (EMRCREATEMONOBRUSH, emr, 4)
7474 TEST_FIELD_OFFSET(EMRCREATEMONOBRUSH, emr, 0)
7475 TEST_FIELD_SIZE (EMRCREATEMONOBRUSH, ihBrush, 4)
7476 TEST_FIELD_ALIGN (EMRCREATEMONOBRUSH, ihBrush, 4)
7477 TEST_FIELD_OFFSET(EMRCREATEMONOBRUSH, ihBrush, 8)
7478 TEST_FIELD_SIZE (EMRCREATEMONOBRUSH, iUsage, 4)
7479 TEST_FIELD_ALIGN (EMRCREATEMONOBRUSH, iUsage, 4)
7480 TEST_FIELD_OFFSET(EMRCREATEMONOBRUSH, iUsage, 12)
7481 TEST_FIELD_SIZE (EMRCREATEMONOBRUSH, offBmi, 4)
7482 TEST_FIELD_ALIGN (EMRCREATEMONOBRUSH, offBmi, 4)
7483 TEST_FIELD_OFFSET(EMRCREATEMONOBRUSH, offBmi, 16)
7484 TEST_FIELD_SIZE (EMRCREATEMONOBRUSH, cbBmi, 4)
7485 TEST_FIELD_ALIGN (EMRCREATEMONOBRUSH, cbBmi, 4)
7486 TEST_FIELD_OFFSET(EMRCREATEMONOBRUSH, cbBmi, 20)
7487 TEST_FIELD_SIZE (EMRCREATEMONOBRUSH, offBits, 4)
7488 TEST_FIELD_ALIGN (EMRCREATEMONOBRUSH, offBits, 4)
7489 TEST_FIELD_OFFSET(EMRCREATEMONOBRUSH, offBits, 24)
7490 TEST_FIELD_SIZE (EMRCREATEMONOBRUSH, cbBits, 4)
7491 TEST_FIELD_ALIGN (EMRCREATEMONOBRUSH, cbBits, 4)
7492 TEST_FIELD_OFFSET(EMRCREATEMONOBRUSH, cbBits, 28)
7495 static void test_pack_EMRCREATEPEN(void)
7497 /* EMRCREATEPEN */
7498 TEST_TYPE_SIZE (EMRCREATEPEN, 28)
7499 TEST_TYPE_ALIGN (EMRCREATEPEN, 4)
7500 TEST_FIELD_SIZE (EMRCREATEPEN, emr, 8)
7501 TEST_FIELD_ALIGN (EMRCREATEPEN, emr, 4)
7502 TEST_FIELD_OFFSET(EMRCREATEPEN, emr, 0)
7503 TEST_FIELD_SIZE (EMRCREATEPEN, ihPen, 4)
7504 TEST_FIELD_ALIGN (EMRCREATEPEN, ihPen, 4)
7505 TEST_FIELD_OFFSET(EMRCREATEPEN, ihPen, 8)
7506 TEST_FIELD_SIZE (EMRCREATEPEN, lopn, 16)
7507 TEST_FIELD_ALIGN (EMRCREATEPEN, lopn, 4)
7508 TEST_FIELD_OFFSET(EMRCREATEPEN, lopn, 12)
7511 static void test_pack_EMRDELETECOLORSPACE(void)
7513 /* EMRDELETECOLORSPACE */
7514 TEST_TYPE_SIZE (EMRDELETECOLORSPACE, 12)
7515 TEST_TYPE_ALIGN (EMRDELETECOLORSPACE, 4)
7516 TEST_FIELD_SIZE (EMRDELETECOLORSPACE, emr, 8)
7517 TEST_FIELD_ALIGN (EMRDELETECOLORSPACE, emr, 4)
7518 TEST_FIELD_OFFSET(EMRDELETECOLORSPACE, emr, 0)
7519 TEST_FIELD_SIZE (EMRDELETECOLORSPACE, ihCS, 4)
7520 TEST_FIELD_ALIGN (EMRDELETECOLORSPACE, ihCS, 4)
7521 TEST_FIELD_OFFSET(EMRDELETECOLORSPACE, ihCS, 8)
7524 static void test_pack_EMRDELETEOBJECT(void)
7526 /* EMRDELETEOBJECT */
7527 TEST_TYPE_SIZE (EMRDELETEOBJECT, 12)
7528 TEST_TYPE_ALIGN (EMRDELETEOBJECT, 4)
7529 TEST_FIELD_SIZE (EMRDELETEOBJECT, emr, 8)
7530 TEST_FIELD_ALIGN (EMRDELETEOBJECT, emr, 4)
7531 TEST_FIELD_OFFSET(EMRDELETEOBJECT, emr, 0)
7532 TEST_FIELD_SIZE (EMRDELETEOBJECT, ihObject, 4)
7533 TEST_FIELD_ALIGN (EMRDELETEOBJECT, ihObject, 4)
7534 TEST_FIELD_OFFSET(EMRDELETEOBJECT, ihObject, 8)
7537 static void test_pack_EMRELLIPSE(void)
7539 /* EMRELLIPSE */
7540 TEST_TYPE_SIZE (EMRELLIPSE, 24)
7541 TEST_TYPE_ALIGN (EMRELLIPSE, 4)
7542 TEST_FIELD_SIZE (EMRELLIPSE, emr, 8)
7543 TEST_FIELD_ALIGN (EMRELLIPSE, emr, 4)
7544 TEST_FIELD_OFFSET(EMRELLIPSE, emr, 0)
7545 TEST_FIELD_SIZE (EMRELLIPSE, rclBox, 16)
7546 TEST_FIELD_ALIGN (EMRELLIPSE, rclBox, 4)
7547 TEST_FIELD_OFFSET(EMRELLIPSE, rclBox, 8)
7550 static void test_pack_EMRENDPATH(void)
7552 /* EMRENDPATH */
7553 TEST_TYPE_SIZE (EMRENDPATH, 8)
7554 TEST_TYPE_ALIGN (EMRENDPATH, 4)
7555 TEST_FIELD_SIZE (EMRENDPATH, emr, 8)
7556 TEST_FIELD_ALIGN (EMRENDPATH, emr, 4)
7557 TEST_FIELD_OFFSET(EMRENDPATH, emr, 0)
7560 static void test_pack_EMREOF(void)
7562 /* EMREOF */
7563 TEST_TYPE_SIZE (EMREOF, 20)
7564 TEST_TYPE_ALIGN (EMREOF, 4)
7565 TEST_FIELD_SIZE (EMREOF, emr, 8)
7566 TEST_FIELD_ALIGN (EMREOF, emr, 4)
7567 TEST_FIELD_OFFSET(EMREOF, emr, 0)
7568 TEST_FIELD_SIZE (EMREOF, nPalEntries, 4)
7569 TEST_FIELD_ALIGN (EMREOF, nPalEntries, 4)
7570 TEST_FIELD_OFFSET(EMREOF, nPalEntries, 8)
7571 TEST_FIELD_SIZE (EMREOF, offPalEntries, 4)
7572 TEST_FIELD_ALIGN (EMREOF, offPalEntries, 4)
7573 TEST_FIELD_OFFSET(EMREOF, offPalEntries, 12)
7574 TEST_FIELD_SIZE (EMREOF, nSizeLast, 4)
7575 TEST_FIELD_ALIGN (EMREOF, nSizeLast, 4)
7576 TEST_FIELD_OFFSET(EMREOF, nSizeLast, 16)
7579 static void test_pack_EMREXCLUDECLIPRECT(void)
7581 /* EMREXCLUDECLIPRECT */
7582 TEST_TYPE_SIZE (EMREXCLUDECLIPRECT, 24)
7583 TEST_TYPE_ALIGN (EMREXCLUDECLIPRECT, 4)
7584 TEST_FIELD_SIZE (EMREXCLUDECLIPRECT, emr, 8)
7585 TEST_FIELD_ALIGN (EMREXCLUDECLIPRECT, emr, 4)
7586 TEST_FIELD_OFFSET(EMREXCLUDECLIPRECT, emr, 0)
7587 TEST_FIELD_SIZE (EMREXCLUDECLIPRECT, rclClip, 16)
7588 TEST_FIELD_ALIGN (EMREXCLUDECLIPRECT, rclClip, 4)
7589 TEST_FIELD_OFFSET(EMREXCLUDECLIPRECT, rclClip, 8)
7592 static void test_pack_EMREXTCREATEFONTINDIRECTW(void)
7594 /* EMREXTCREATEFONTINDIRECTW */
7595 TEST_TYPE_SIZE (EMREXTCREATEFONTINDIRECTW, 332)
7596 TEST_TYPE_ALIGN (EMREXTCREATEFONTINDIRECTW, 4)
7597 TEST_FIELD_SIZE (EMREXTCREATEFONTINDIRECTW, emr, 8)
7598 TEST_FIELD_ALIGN (EMREXTCREATEFONTINDIRECTW, emr, 4)
7599 TEST_FIELD_OFFSET(EMREXTCREATEFONTINDIRECTW, emr, 0)
7600 TEST_FIELD_SIZE (EMREXTCREATEFONTINDIRECTW, ihFont, 4)
7601 TEST_FIELD_ALIGN (EMREXTCREATEFONTINDIRECTW, ihFont, 4)
7602 TEST_FIELD_OFFSET(EMREXTCREATEFONTINDIRECTW, ihFont, 8)
7603 TEST_FIELD_SIZE (EMREXTCREATEFONTINDIRECTW, elfw, 320)
7604 TEST_FIELD_ALIGN (EMREXTCREATEFONTINDIRECTW, elfw, 4)
7605 TEST_FIELD_OFFSET(EMREXTCREATEFONTINDIRECTW, elfw, 12)
7608 static void test_pack_EMREXTCREATEPEN(void)
7610 /* EMREXTCREATEPEN */
7611 TEST_TYPE_SIZE (EMREXTCREATEPEN, 56)
7612 TEST_TYPE_ALIGN (EMREXTCREATEPEN, 4)
7613 TEST_FIELD_SIZE (EMREXTCREATEPEN, emr, 8)
7614 TEST_FIELD_ALIGN (EMREXTCREATEPEN, emr, 4)
7615 TEST_FIELD_OFFSET(EMREXTCREATEPEN, emr, 0)
7616 TEST_FIELD_SIZE (EMREXTCREATEPEN, ihPen, 4)
7617 TEST_FIELD_ALIGN (EMREXTCREATEPEN, ihPen, 4)
7618 TEST_FIELD_OFFSET(EMREXTCREATEPEN, ihPen, 8)
7619 TEST_FIELD_SIZE (EMREXTCREATEPEN, offBmi, 4)
7620 TEST_FIELD_ALIGN (EMREXTCREATEPEN, offBmi, 4)
7621 TEST_FIELD_OFFSET(EMREXTCREATEPEN, offBmi, 12)
7622 TEST_FIELD_SIZE (EMREXTCREATEPEN, cbBmi, 4)
7623 TEST_FIELD_ALIGN (EMREXTCREATEPEN, cbBmi, 4)
7624 TEST_FIELD_OFFSET(EMREXTCREATEPEN, cbBmi, 16)
7625 TEST_FIELD_SIZE (EMREXTCREATEPEN, offBits, 4)
7626 TEST_FIELD_ALIGN (EMREXTCREATEPEN, offBits, 4)
7627 TEST_FIELD_OFFSET(EMREXTCREATEPEN, offBits, 20)
7628 TEST_FIELD_SIZE (EMREXTCREATEPEN, cbBits, 4)
7629 TEST_FIELD_ALIGN (EMREXTCREATEPEN, cbBits, 4)
7630 TEST_FIELD_OFFSET(EMREXTCREATEPEN, cbBits, 24)
7631 TEST_FIELD_SIZE (EMREXTCREATEPEN, elp, 28)
7632 TEST_FIELD_ALIGN (EMREXTCREATEPEN, elp, 4)
7633 TEST_FIELD_OFFSET(EMREXTCREATEPEN, elp, 28)
7636 static void test_pack_EMREXTFLOODFILL(void)
7638 /* EMREXTFLOODFILL */
7639 TEST_TYPE_SIZE (EMREXTFLOODFILL, 24)
7640 TEST_TYPE_ALIGN (EMREXTFLOODFILL, 4)
7641 TEST_FIELD_SIZE (EMREXTFLOODFILL, emr, 8)
7642 TEST_FIELD_ALIGN (EMREXTFLOODFILL, emr, 4)
7643 TEST_FIELD_OFFSET(EMREXTFLOODFILL, emr, 0)
7644 TEST_FIELD_SIZE (EMREXTFLOODFILL, ptlStart, 8)
7645 TEST_FIELD_ALIGN (EMREXTFLOODFILL, ptlStart, 4)
7646 TEST_FIELD_OFFSET(EMREXTFLOODFILL, ptlStart, 8)
7647 TEST_FIELD_SIZE (EMREXTFLOODFILL, crColor, 4)
7648 TEST_FIELD_ALIGN (EMREXTFLOODFILL, crColor, 4)
7649 TEST_FIELD_OFFSET(EMREXTFLOODFILL, crColor, 16)
7650 TEST_FIELD_SIZE (EMREXTFLOODFILL, iMode, 4)
7651 TEST_FIELD_ALIGN (EMREXTFLOODFILL, iMode, 4)
7652 TEST_FIELD_OFFSET(EMREXTFLOODFILL, iMode, 20)
7655 static void test_pack_EMREXTSELECTCLIPRGN(void)
7657 /* EMREXTSELECTCLIPRGN */
7658 TEST_TYPE_SIZE (EMREXTSELECTCLIPRGN, 20)
7659 TEST_TYPE_ALIGN (EMREXTSELECTCLIPRGN, 4)
7660 TEST_FIELD_SIZE (EMREXTSELECTCLIPRGN, emr, 8)
7661 TEST_FIELD_ALIGN (EMREXTSELECTCLIPRGN, emr, 4)
7662 TEST_FIELD_OFFSET(EMREXTSELECTCLIPRGN, emr, 0)
7663 TEST_FIELD_SIZE (EMREXTSELECTCLIPRGN, cbRgnData, 4)
7664 TEST_FIELD_ALIGN (EMREXTSELECTCLIPRGN, cbRgnData, 4)
7665 TEST_FIELD_OFFSET(EMREXTSELECTCLIPRGN, cbRgnData, 8)
7666 TEST_FIELD_SIZE (EMREXTSELECTCLIPRGN, iMode, 4)
7667 TEST_FIELD_ALIGN (EMREXTSELECTCLIPRGN, iMode, 4)
7668 TEST_FIELD_OFFSET(EMREXTSELECTCLIPRGN, iMode, 12)
7669 TEST_FIELD_SIZE (EMREXTSELECTCLIPRGN, RgnData, 1)
7670 TEST_FIELD_ALIGN (EMREXTSELECTCLIPRGN, RgnData, 1)
7671 TEST_FIELD_OFFSET(EMREXTSELECTCLIPRGN, RgnData, 16)
7674 static void test_pack_EMREXTTEXTOUTA(void)
7676 /* EMREXTTEXTOUTA */
7677 TEST_TYPE_SIZE (EMREXTTEXTOUTA, 76)
7678 TEST_TYPE_ALIGN (EMREXTTEXTOUTA, 4)
7679 TEST_FIELD_SIZE (EMREXTTEXTOUTA, emr, 8)
7680 TEST_FIELD_ALIGN (EMREXTTEXTOUTA, emr, 4)
7681 TEST_FIELD_OFFSET(EMREXTTEXTOUTA, emr, 0)
7682 TEST_FIELD_SIZE (EMREXTTEXTOUTA, rclBounds, 16)
7683 TEST_FIELD_ALIGN (EMREXTTEXTOUTA, rclBounds, 4)
7684 TEST_FIELD_OFFSET(EMREXTTEXTOUTA, rclBounds, 8)
7685 TEST_FIELD_SIZE (EMREXTTEXTOUTA, iGraphicsMode, 4)
7686 TEST_FIELD_ALIGN (EMREXTTEXTOUTA, iGraphicsMode, 4)
7687 TEST_FIELD_OFFSET(EMREXTTEXTOUTA, iGraphicsMode, 24)
7688 TEST_FIELD_SIZE (EMREXTTEXTOUTA, exScale, 4)
7689 TEST_FIELD_ALIGN (EMREXTTEXTOUTA, exScale, 4)
7690 TEST_FIELD_OFFSET(EMREXTTEXTOUTA, exScale, 28)
7691 TEST_FIELD_SIZE (EMREXTTEXTOUTA, eyScale, 4)
7692 TEST_FIELD_ALIGN (EMREXTTEXTOUTA, eyScale, 4)
7693 TEST_FIELD_OFFSET(EMREXTTEXTOUTA, eyScale, 32)
7694 TEST_FIELD_SIZE (EMREXTTEXTOUTA, emrtext, 40)
7695 TEST_FIELD_ALIGN (EMREXTTEXTOUTA, emrtext, 4)
7696 TEST_FIELD_OFFSET(EMREXTTEXTOUTA, emrtext, 36)
7699 static void test_pack_EMREXTTEXTOUTW(void)
7701 /* EMREXTTEXTOUTW */
7702 TEST_TYPE_SIZE (EMREXTTEXTOUTW, 76)
7703 TEST_TYPE_ALIGN (EMREXTTEXTOUTW, 4)
7704 TEST_FIELD_SIZE (EMREXTTEXTOUTW, emr, 8)
7705 TEST_FIELD_ALIGN (EMREXTTEXTOUTW, emr, 4)
7706 TEST_FIELD_OFFSET(EMREXTTEXTOUTW, emr, 0)
7707 TEST_FIELD_SIZE (EMREXTTEXTOUTW, rclBounds, 16)
7708 TEST_FIELD_ALIGN (EMREXTTEXTOUTW, rclBounds, 4)
7709 TEST_FIELD_OFFSET(EMREXTTEXTOUTW, rclBounds, 8)
7710 TEST_FIELD_SIZE (EMREXTTEXTOUTW, iGraphicsMode, 4)
7711 TEST_FIELD_ALIGN (EMREXTTEXTOUTW, iGraphicsMode, 4)
7712 TEST_FIELD_OFFSET(EMREXTTEXTOUTW, iGraphicsMode, 24)
7713 TEST_FIELD_SIZE (EMREXTTEXTOUTW, exScale, 4)
7714 TEST_FIELD_ALIGN (EMREXTTEXTOUTW, exScale, 4)
7715 TEST_FIELD_OFFSET(EMREXTTEXTOUTW, exScale, 28)
7716 TEST_FIELD_SIZE (EMREXTTEXTOUTW, eyScale, 4)
7717 TEST_FIELD_ALIGN (EMREXTTEXTOUTW, eyScale, 4)
7718 TEST_FIELD_OFFSET(EMREXTTEXTOUTW, eyScale, 32)
7719 TEST_FIELD_SIZE (EMREXTTEXTOUTW, emrtext, 40)
7720 TEST_FIELD_ALIGN (EMREXTTEXTOUTW, emrtext, 4)
7721 TEST_FIELD_OFFSET(EMREXTTEXTOUTW, emrtext, 36)
7724 static void test_pack_EMRFILLPATH(void)
7726 /* EMRFILLPATH */
7727 TEST_TYPE_SIZE (EMRFILLPATH, 24)
7728 TEST_TYPE_ALIGN (EMRFILLPATH, 4)
7729 TEST_FIELD_SIZE (EMRFILLPATH, emr, 8)
7730 TEST_FIELD_ALIGN (EMRFILLPATH, emr, 4)
7731 TEST_FIELD_OFFSET(EMRFILLPATH, emr, 0)
7732 TEST_FIELD_SIZE (EMRFILLPATH, rclBounds, 16)
7733 TEST_FIELD_ALIGN (EMRFILLPATH, rclBounds, 4)
7734 TEST_FIELD_OFFSET(EMRFILLPATH, rclBounds, 8)
7737 static void test_pack_EMRFILLRGN(void)
7739 /* EMRFILLRGN */
7740 TEST_TYPE_SIZE (EMRFILLRGN, 36)
7741 TEST_TYPE_ALIGN (EMRFILLRGN, 4)
7742 TEST_FIELD_SIZE (EMRFILLRGN, emr, 8)
7743 TEST_FIELD_ALIGN (EMRFILLRGN, emr, 4)
7744 TEST_FIELD_OFFSET(EMRFILLRGN, emr, 0)
7745 TEST_FIELD_SIZE (EMRFILLRGN, rclBounds, 16)
7746 TEST_FIELD_ALIGN (EMRFILLRGN, rclBounds, 4)
7747 TEST_FIELD_OFFSET(EMRFILLRGN, rclBounds, 8)
7748 TEST_FIELD_SIZE (EMRFILLRGN, cbRgnData, 4)
7749 TEST_FIELD_ALIGN (EMRFILLRGN, cbRgnData, 4)
7750 TEST_FIELD_OFFSET(EMRFILLRGN, cbRgnData, 24)
7751 TEST_FIELD_SIZE (EMRFILLRGN, ihBrush, 4)
7752 TEST_FIELD_ALIGN (EMRFILLRGN, ihBrush, 4)
7753 TEST_FIELD_OFFSET(EMRFILLRGN, ihBrush, 28)
7754 TEST_FIELD_SIZE (EMRFILLRGN, RgnData, 1)
7755 TEST_FIELD_ALIGN (EMRFILLRGN, RgnData, 1)
7756 TEST_FIELD_OFFSET(EMRFILLRGN, RgnData, 32)
7759 static void test_pack_EMRFLATTENPATH(void)
7761 /* EMRFLATTENPATH */
7762 TEST_TYPE_SIZE (EMRFLATTENPATH, 8)
7763 TEST_TYPE_ALIGN (EMRFLATTENPATH, 4)
7764 TEST_FIELD_SIZE (EMRFLATTENPATH, emr, 8)
7765 TEST_FIELD_ALIGN (EMRFLATTENPATH, emr, 4)
7766 TEST_FIELD_OFFSET(EMRFLATTENPATH, emr, 0)
7769 static void test_pack_EMRFORMAT(void)
7771 /* EMRFORMAT */
7772 TEST_TYPE_SIZE (EMRFORMAT, 16)
7773 TEST_TYPE_ALIGN (EMRFORMAT, 4)
7774 TEST_FIELD_SIZE (EMRFORMAT, dSignature, 4)
7775 TEST_FIELD_ALIGN (EMRFORMAT, dSignature, 4)
7776 TEST_FIELD_OFFSET(EMRFORMAT, dSignature, 0)
7777 TEST_FIELD_SIZE (EMRFORMAT, nVersion, 4)
7778 TEST_FIELD_ALIGN (EMRFORMAT, nVersion, 4)
7779 TEST_FIELD_OFFSET(EMRFORMAT, nVersion, 4)
7780 TEST_FIELD_SIZE (EMRFORMAT, cbData, 4)
7781 TEST_FIELD_ALIGN (EMRFORMAT, cbData, 4)
7782 TEST_FIELD_OFFSET(EMRFORMAT, cbData, 8)
7783 TEST_FIELD_SIZE (EMRFORMAT, offData, 4)
7784 TEST_FIELD_ALIGN (EMRFORMAT, offData, 4)
7785 TEST_FIELD_OFFSET(EMRFORMAT, offData, 12)
7788 static void test_pack_EMRFRAMERGN(void)
7790 /* EMRFRAMERGN */
7791 TEST_TYPE_SIZE (EMRFRAMERGN, 44)
7792 TEST_TYPE_ALIGN (EMRFRAMERGN, 4)
7793 TEST_FIELD_SIZE (EMRFRAMERGN, emr, 8)
7794 TEST_FIELD_ALIGN (EMRFRAMERGN, emr, 4)
7795 TEST_FIELD_OFFSET(EMRFRAMERGN, emr, 0)
7796 TEST_FIELD_SIZE (EMRFRAMERGN, rclBounds, 16)
7797 TEST_FIELD_ALIGN (EMRFRAMERGN, rclBounds, 4)
7798 TEST_FIELD_OFFSET(EMRFRAMERGN, rclBounds, 8)
7799 TEST_FIELD_SIZE (EMRFRAMERGN, cbRgnData, 4)
7800 TEST_FIELD_ALIGN (EMRFRAMERGN, cbRgnData, 4)
7801 TEST_FIELD_OFFSET(EMRFRAMERGN, cbRgnData, 24)
7802 TEST_FIELD_SIZE (EMRFRAMERGN, ihBrush, 4)
7803 TEST_FIELD_ALIGN (EMRFRAMERGN, ihBrush, 4)
7804 TEST_FIELD_OFFSET(EMRFRAMERGN, ihBrush, 28)
7805 TEST_FIELD_SIZE (EMRFRAMERGN, szlStroke, 8)
7806 TEST_FIELD_ALIGN (EMRFRAMERGN, szlStroke, 4)
7807 TEST_FIELD_OFFSET(EMRFRAMERGN, szlStroke, 32)
7808 TEST_FIELD_SIZE (EMRFRAMERGN, RgnData, 1)
7809 TEST_FIELD_ALIGN (EMRFRAMERGN, RgnData, 1)
7810 TEST_FIELD_OFFSET(EMRFRAMERGN, RgnData, 40)
7813 static void test_pack_EMRGDICOMMENT(void)
7815 /* EMRGDICOMMENT */
7816 TEST_TYPE_SIZE (EMRGDICOMMENT, 16)
7817 TEST_TYPE_ALIGN (EMRGDICOMMENT, 4)
7818 TEST_FIELD_SIZE (EMRGDICOMMENT, emr, 8)
7819 TEST_FIELD_ALIGN (EMRGDICOMMENT, emr, 4)
7820 TEST_FIELD_OFFSET(EMRGDICOMMENT, emr, 0)
7821 TEST_FIELD_SIZE (EMRGDICOMMENT, cbData, 4)
7822 TEST_FIELD_ALIGN (EMRGDICOMMENT, cbData, 4)
7823 TEST_FIELD_OFFSET(EMRGDICOMMENT, cbData, 8)
7824 TEST_FIELD_SIZE (EMRGDICOMMENT, Data, 1)
7825 TEST_FIELD_ALIGN (EMRGDICOMMENT, Data, 1)
7826 TEST_FIELD_OFFSET(EMRGDICOMMENT, Data, 12)
7829 static void test_pack_EMRGLSBOUNDEDRECORD(void)
7831 /* EMRGLSBOUNDEDRECORD */
7832 TEST_TYPE_SIZE (EMRGLSBOUNDEDRECORD, 32)
7833 TEST_TYPE_ALIGN (EMRGLSBOUNDEDRECORD, 4)
7834 TEST_FIELD_SIZE (EMRGLSBOUNDEDRECORD, emr, 8)
7835 TEST_FIELD_ALIGN (EMRGLSBOUNDEDRECORD, emr, 4)
7836 TEST_FIELD_OFFSET(EMRGLSBOUNDEDRECORD, emr, 0)
7837 TEST_FIELD_SIZE (EMRGLSBOUNDEDRECORD, rclBounds, 16)
7838 TEST_FIELD_ALIGN (EMRGLSBOUNDEDRECORD, rclBounds, 4)
7839 TEST_FIELD_OFFSET(EMRGLSBOUNDEDRECORD, rclBounds, 8)
7840 TEST_FIELD_SIZE (EMRGLSBOUNDEDRECORD, cbData, 4)
7841 TEST_FIELD_ALIGN (EMRGLSBOUNDEDRECORD, cbData, 4)
7842 TEST_FIELD_OFFSET(EMRGLSBOUNDEDRECORD, cbData, 24)
7843 TEST_FIELD_SIZE (EMRGLSBOUNDEDRECORD, Data, 1)
7844 TEST_FIELD_ALIGN (EMRGLSBOUNDEDRECORD, Data, 1)
7845 TEST_FIELD_OFFSET(EMRGLSBOUNDEDRECORD, Data, 28)
7848 static void test_pack_EMRGLSRECORD(void)
7850 /* EMRGLSRECORD */
7851 TEST_TYPE_SIZE (EMRGLSRECORD, 16)
7852 TEST_TYPE_ALIGN (EMRGLSRECORD, 4)
7853 TEST_FIELD_SIZE (EMRGLSRECORD, emr, 8)
7854 TEST_FIELD_ALIGN (EMRGLSRECORD, emr, 4)
7855 TEST_FIELD_OFFSET(EMRGLSRECORD, emr, 0)
7856 TEST_FIELD_SIZE (EMRGLSRECORD, cbData, 4)
7857 TEST_FIELD_ALIGN (EMRGLSRECORD, cbData, 4)
7858 TEST_FIELD_OFFSET(EMRGLSRECORD, cbData, 8)
7859 TEST_FIELD_SIZE (EMRGLSRECORD, Data, 1)
7860 TEST_FIELD_ALIGN (EMRGLSRECORD, Data, 1)
7861 TEST_FIELD_OFFSET(EMRGLSRECORD, Data, 12)
7864 static void test_pack_EMRINTERSECTCLIPRECT(void)
7866 /* EMRINTERSECTCLIPRECT */
7867 TEST_TYPE_SIZE (EMRINTERSECTCLIPRECT, 24)
7868 TEST_TYPE_ALIGN (EMRINTERSECTCLIPRECT, 4)
7869 TEST_FIELD_SIZE (EMRINTERSECTCLIPRECT, emr, 8)
7870 TEST_FIELD_ALIGN (EMRINTERSECTCLIPRECT, emr, 4)
7871 TEST_FIELD_OFFSET(EMRINTERSECTCLIPRECT, emr, 0)
7872 TEST_FIELD_SIZE (EMRINTERSECTCLIPRECT, rclClip, 16)
7873 TEST_FIELD_ALIGN (EMRINTERSECTCLIPRECT, rclClip, 4)
7874 TEST_FIELD_OFFSET(EMRINTERSECTCLIPRECT, rclClip, 8)
7877 static void test_pack_EMRINVERTRGN(void)
7879 /* EMRINVERTRGN */
7880 TEST_TYPE_SIZE (EMRINVERTRGN, 32)
7881 TEST_TYPE_ALIGN (EMRINVERTRGN, 4)
7882 TEST_FIELD_SIZE (EMRINVERTRGN, emr, 8)
7883 TEST_FIELD_ALIGN (EMRINVERTRGN, emr, 4)
7884 TEST_FIELD_OFFSET(EMRINVERTRGN, emr, 0)
7885 TEST_FIELD_SIZE (EMRINVERTRGN, rclBounds, 16)
7886 TEST_FIELD_ALIGN (EMRINVERTRGN, rclBounds, 4)
7887 TEST_FIELD_OFFSET(EMRINVERTRGN, rclBounds, 8)
7888 TEST_FIELD_SIZE (EMRINVERTRGN, cbRgnData, 4)
7889 TEST_FIELD_ALIGN (EMRINVERTRGN, cbRgnData, 4)
7890 TEST_FIELD_OFFSET(EMRINVERTRGN, cbRgnData, 24)
7891 TEST_FIELD_SIZE (EMRINVERTRGN, RgnData, 1)
7892 TEST_FIELD_ALIGN (EMRINVERTRGN, RgnData, 1)
7893 TEST_FIELD_OFFSET(EMRINVERTRGN, RgnData, 28)
7896 static void test_pack_EMRLINETO(void)
7898 /* EMRLINETO */
7899 TEST_TYPE_SIZE (EMRLINETO, 16)
7900 TEST_TYPE_ALIGN (EMRLINETO, 4)
7901 TEST_FIELD_SIZE (EMRLINETO, emr, 8)
7902 TEST_FIELD_ALIGN (EMRLINETO, emr, 4)
7903 TEST_FIELD_OFFSET(EMRLINETO, emr, 0)
7904 TEST_FIELD_SIZE (EMRLINETO, ptl, 8)
7905 TEST_FIELD_ALIGN (EMRLINETO, ptl, 4)
7906 TEST_FIELD_OFFSET(EMRLINETO, ptl, 8)
7909 static void test_pack_EMRMASKBLT(void)
7911 /* EMRMASKBLT */
7912 TEST_TYPE_SIZE (EMRMASKBLT, 128)
7913 TEST_TYPE_ALIGN (EMRMASKBLT, 4)
7914 TEST_FIELD_SIZE (EMRMASKBLT, emr, 8)
7915 TEST_FIELD_ALIGN (EMRMASKBLT, emr, 4)
7916 TEST_FIELD_OFFSET(EMRMASKBLT, emr, 0)
7917 TEST_FIELD_SIZE (EMRMASKBLT, rclBounds, 16)
7918 TEST_FIELD_ALIGN (EMRMASKBLT, rclBounds, 4)
7919 TEST_FIELD_OFFSET(EMRMASKBLT, rclBounds, 8)
7920 TEST_FIELD_SIZE (EMRMASKBLT, xDest, 4)
7921 TEST_FIELD_ALIGN (EMRMASKBLT, xDest, 4)
7922 TEST_FIELD_OFFSET(EMRMASKBLT, xDest, 24)
7923 TEST_FIELD_SIZE (EMRMASKBLT, yDest, 4)
7924 TEST_FIELD_ALIGN (EMRMASKBLT, yDest, 4)
7925 TEST_FIELD_OFFSET(EMRMASKBLT, yDest, 28)
7926 TEST_FIELD_SIZE (EMRMASKBLT, cxDest, 4)
7927 TEST_FIELD_ALIGN (EMRMASKBLT, cxDest, 4)
7928 TEST_FIELD_OFFSET(EMRMASKBLT, cxDest, 32)
7929 TEST_FIELD_SIZE (EMRMASKBLT, cyDest, 4)
7930 TEST_FIELD_ALIGN (EMRMASKBLT, cyDest, 4)
7931 TEST_FIELD_OFFSET(EMRMASKBLT, cyDest, 36)
7932 TEST_FIELD_SIZE (EMRMASKBLT, dwRop, 4)
7933 TEST_FIELD_ALIGN (EMRMASKBLT, dwRop, 4)
7934 TEST_FIELD_OFFSET(EMRMASKBLT, dwRop, 40)
7935 TEST_FIELD_SIZE (EMRMASKBLT, xSrc, 4)
7936 TEST_FIELD_ALIGN (EMRMASKBLT, xSrc, 4)
7937 TEST_FIELD_OFFSET(EMRMASKBLT, xSrc, 44)
7938 TEST_FIELD_SIZE (EMRMASKBLT, ySrc, 4)
7939 TEST_FIELD_ALIGN (EMRMASKBLT, ySrc, 4)
7940 TEST_FIELD_OFFSET(EMRMASKBLT, ySrc, 48)
7941 TEST_FIELD_SIZE (EMRMASKBLT, xformSrc, 24)
7942 TEST_FIELD_ALIGN (EMRMASKBLT, xformSrc, 4)
7943 TEST_FIELD_OFFSET(EMRMASKBLT, xformSrc, 52)
7944 TEST_FIELD_SIZE (EMRMASKBLT, crBkColorSrc, 4)
7945 TEST_FIELD_ALIGN (EMRMASKBLT, crBkColorSrc, 4)
7946 TEST_FIELD_OFFSET(EMRMASKBLT, crBkColorSrc, 76)
7947 TEST_FIELD_SIZE (EMRMASKBLT, iUsageSrc, 4)
7948 TEST_FIELD_ALIGN (EMRMASKBLT, iUsageSrc, 4)
7949 TEST_FIELD_OFFSET(EMRMASKBLT, iUsageSrc, 80)
7950 TEST_FIELD_SIZE (EMRMASKBLT, offBmiSrc, 4)
7951 TEST_FIELD_ALIGN (EMRMASKBLT, offBmiSrc, 4)
7952 TEST_FIELD_OFFSET(EMRMASKBLT, offBmiSrc, 84)
7953 TEST_FIELD_SIZE (EMRMASKBLT, cbBmiSrc, 4)
7954 TEST_FIELD_ALIGN (EMRMASKBLT, cbBmiSrc, 4)
7955 TEST_FIELD_OFFSET(EMRMASKBLT, cbBmiSrc, 88)
7956 TEST_FIELD_SIZE (EMRMASKBLT, offBitsSrc, 4)
7957 TEST_FIELD_ALIGN (EMRMASKBLT, offBitsSrc, 4)
7958 TEST_FIELD_OFFSET(EMRMASKBLT, offBitsSrc, 92)
7959 TEST_FIELD_SIZE (EMRMASKBLT, cbBitsSrc, 4)
7960 TEST_FIELD_ALIGN (EMRMASKBLT, cbBitsSrc, 4)
7961 TEST_FIELD_OFFSET(EMRMASKBLT, cbBitsSrc, 96)
7962 TEST_FIELD_SIZE (EMRMASKBLT, xMask, 4)
7963 TEST_FIELD_ALIGN (EMRMASKBLT, xMask, 4)
7964 TEST_FIELD_OFFSET(EMRMASKBLT, xMask, 100)
7965 TEST_FIELD_SIZE (EMRMASKBLT, yMask, 4)
7966 TEST_FIELD_ALIGN (EMRMASKBLT, yMask, 4)
7967 TEST_FIELD_OFFSET(EMRMASKBLT, yMask, 104)
7968 TEST_FIELD_SIZE (EMRMASKBLT, iUsageMask, 4)
7969 TEST_FIELD_ALIGN (EMRMASKBLT, iUsageMask, 4)
7970 TEST_FIELD_OFFSET(EMRMASKBLT, iUsageMask, 108)
7971 TEST_FIELD_SIZE (EMRMASKBLT, offBmiMask, 4)
7972 TEST_FIELD_ALIGN (EMRMASKBLT, offBmiMask, 4)
7973 TEST_FIELD_OFFSET(EMRMASKBLT, offBmiMask, 112)
7974 TEST_FIELD_SIZE (EMRMASKBLT, cbBmiMask, 4)
7975 TEST_FIELD_ALIGN (EMRMASKBLT, cbBmiMask, 4)
7976 TEST_FIELD_OFFSET(EMRMASKBLT, cbBmiMask, 116)
7977 TEST_FIELD_SIZE (EMRMASKBLT, offBitsMask, 4)
7978 TEST_FIELD_ALIGN (EMRMASKBLT, offBitsMask, 4)
7979 TEST_FIELD_OFFSET(EMRMASKBLT, offBitsMask, 120)
7980 TEST_FIELD_SIZE (EMRMASKBLT, cbBitsMask, 4)
7981 TEST_FIELD_ALIGN (EMRMASKBLT, cbBitsMask, 4)
7982 TEST_FIELD_OFFSET(EMRMASKBLT, cbBitsMask, 124)
7985 static void test_pack_EMRMODIFYWORLDTRANSFORM(void)
7987 /* EMRMODIFYWORLDTRANSFORM */
7988 TEST_TYPE_SIZE (EMRMODIFYWORLDTRANSFORM, 36)
7989 TEST_TYPE_ALIGN (EMRMODIFYWORLDTRANSFORM, 4)
7990 TEST_FIELD_SIZE (EMRMODIFYWORLDTRANSFORM, emr, 8)
7991 TEST_FIELD_ALIGN (EMRMODIFYWORLDTRANSFORM, emr, 4)
7992 TEST_FIELD_OFFSET(EMRMODIFYWORLDTRANSFORM, emr, 0)
7993 TEST_FIELD_SIZE (EMRMODIFYWORLDTRANSFORM, xform, 24)
7994 TEST_FIELD_ALIGN (EMRMODIFYWORLDTRANSFORM, xform, 4)
7995 TEST_FIELD_OFFSET(EMRMODIFYWORLDTRANSFORM, xform, 8)
7996 TEST_FIELD_SIZE (EMRMODIFYWORLDTRANSFORM, iMode, 4)
7997 TEST_FIELD_ALIGN (EMRMODIFYWORLDTRANSFORM, iMode, 4)
7998 TEST_FIELD_OFFSET(EMRMODIFYWORLDTRANSFORM, iMode, 32)
8001 static void test_pack_EMRMOVETOEX(void)
8003 /* EMRMOVETOEX */
8004 TEST_TYPE_SIZE (EMRMOVETOEX, 16)
8005 TEST_TYPE_ALIGN (EMRMOVETOEX, 4)
8006 TEST_FIELD_SIZE (EMRMOVETOEX, emr, 8)
8007 TEST_FIELD_ALIGN (EMRMOVETOEX, emr, 4)
8008 TEST_FIELD_OFFSET(EMRMOVETOEX, emr, 0)
8009 TEST_FIELD_SIZE (EMRMOVETOEX, ptl, 8)
8010 TEST_FIELD_ALIGN (EMRMOVETOEX, ptl, 4)
8011 TEST_FIELD_OFFSET(EMRMOVETOEX, ptl, 8)
8014 static void test_pack_EMROFFSETCLIPRGN(void)
8016 /* EMROFFSETCLIPRGN */
8017 TEST_TYPE_SIZE (EMROFFSETCLIPRGN, 16)
8018 TEST_TYPE_ALIGN (EMROFFSETCLIPRGN, 4)
8019 TEST_FIELD_SIZE (EMROFFSETCLIPRGN, emr, 8)
8020 TEST_FIELD_ALIGN (EMROFFSETCLIPRGN, emr, 4)
8021 TEST_FIELD_OFFSET(EMROFFSETCLIPRGN, emr, 0)
8022 TEST_FIELD_SIZE (EMROFFSETCLIPRGN, ptlOffset, 8)
8023 TEST_FIELD_ALIGN (EMROFFSETCLIPRGN, ptlOffset, 4)
8024 TEST_FIELD_OFFSET(EMROFFSETCLIPRGN, ptlOffset, 8)
8027 static void test_pack_EMRPAINTRGN(void)
8029 /* EMRPAINTRGN */
8030 TEST_TYPE_SIZE (EMRPAINTRGN, 32)
8031 TEST_TYPE_ALIGN (EMRPAINTRGN, 4)
8032 TEST_FIELD_SIZE (EMRPAINTRGN, emr, 8)
8033 TEST_FIELD_ALIGN (EMRPAINTRGN, emr, 4)
8034 TEST_FIELD_OFFSET(EMRPAINTRGN, emr, 0)
8035 TEST_FIELD_SIZE (EMRPAINTRGN, rclBounds, 16)
8036 TEST_FIELD_ALIGN (EMRPAINTRGN, rclBounds, 4)
8037 TEST_FIELD_OFFSET(EMRPAINTRGN, rclBounds, 8)
8038 TEST_FIELD_SIZE (EMRPAINTRGN, cbRgnData, 4)
8039 TEST_FIELD_ALIGN (EMRPAINTRGN, cbRgnData, 4)
8040 TEST_FIELD_OFFSET(EMRPAINTRGN, cbRgnData, 24)
8041 TEST_FIELD_SIZE (EMRPAINTRGN, RgnData, 1)
8042 TEST_FIELD_ALIGN (EMRPAINTRGN, RgnData, 1)
8043 TEST_FIELD_OFFSET(EMRPAINTRGN, RgnData, 28)
8046 static void test_pack_EMRPIE(void)
8048 /* EMRPIE */
8049 TEST_TYPE_SIZE (EMRPIE, 40)
8050 TEST_TYPE_ALIGN (EMRPIE, 4)
8051 TEST_FIELD_SIZE (EMRPIE, emr, 8)
8052 TEST_FIELD_ALIGN (EMRPIE, emr, 4)
8053 TEST_FIELD_OFFSET(EMRPIE, emr, 0)
8054 TEST_FIELD_SIZE (EMRPIE, rclBox, 16)
8055 TEST_FIELD_ALIGN (EMRPIE, rclBox, 4)
8056 TEST_FIELD_OFFSET(EMRPIE, rclBox, 8)
8057 TEST_FIELD_SIZE (EMRPIE, ptlStart, 8)
8058 TEST_FIELD_ALIGN (EMRPIE, ptlStart, 4)
8059 TEST_FIELD_OFFSET(EMRPIE, ptlStart, 24)
8060 TEST_FIELD_SIZE (EMRPIE, ptlEnd, 8)
8061 TEST_FIELD_ALIGN (EMRPIE, ptlEnd, 4)
8062 TEST_FIELD_OFFSET(EMRPIE, ptlEnd, 32)
8065 static void test_pack_EMRPIXELFORMAT(void)
8067 /* EMRPIXELFORMAT */
8068 TEST_TYPE_SIZE (EMRPIXELFORMAT, 48)
8069 TEST_TYPE_ALIGN (EMRPIXELFORMAT, 4)
8070 TEST_FIELD_SIZE (EMRPIXELFORMAT, emr, 8)
8071 TEST_FIELD_ALIGN (EMRPIXELFORMAT, emr, 4)
8072 TEST_FIELD_OFFSET(EMRPIXELFORMAT, emr, 0)
8073 TEST_FIELD_SIZE (EMRPIXELFORMAT, pfd, 40)
8074 TEST_FIELD_ALIGN (EMRPIXELFORMAT, pfd, 4)
8075 TEST_FIELD_OFFSET(EMRPIXELFORMAT, pfd, 8)
8078 static void test_pack_EMRPLGBLT(void)
8080 /* EMRPLGBLT */
8081 TEST_TYPE_SIZE (EMRPLGBLT, 140)
8082 TEST_TYPE_ALIGN (EMRPLGBLT, 4)
8083 TEST_FIELD_SIZE (EMRPLGBLT, emr, 8)
8084 TEST_FIELD_ALIGN (EMRPLGBLT, emr, 4)
8085 TEST_FIELD_OFFSET(EMRPLGBLT, emr, 0)
8086 TEST_FIELD_SIZE (EMRPLGBLT, rclBounds, 16)
8087 TEST_FIELD_ALIGN (EMRPLGBLT, rclBounds, 4)
8088 TEST_FIELD_OFFSET(EMRPLGBLT, rclBounds, 8)
8089 TEST_FIELD_SIZE (EMRPLGBLT, aptlDest, 24)
8090 TEST_FIELD_ALIGN (EMRPLGBLT, aptlDest, 4)
8091 TEST_FIELD_OFFSET(EMRPLGBLT, aptlDest, 24)
8092 TEST_FIELD_SIZE (EMRPLGBLT, xSrc, 4)
8093 TEST_FIELD_ALIGN (EMRPLGBLT, xSrc, 4)
8094 TEST_FIELD_OFFSET(EMRPLGBLT, xSrc, 48)
8095 TEST_FIELD_SIZE (EMRPLGBLT, ySrc, 4)
8096 TEST_FIELD_ALIGN (EMRPLGBLT, ySrc, 4)
8097 TEST_FIELD_OFFSET(EMRPLGBLT, ySrc, 52)
8098 TEST_FIELD_SIZE (EMRPLGBLT, cxSrc, 4)
8099 TEST_FIELD_ALIGN (EMRPLGBLT, cxSrc, 4)
8100 TEST_FIELD_OFFSET(EMRPLGBLT, cxSrc, 56)
8101 TEST_FIELD_SIZE (EMRPLGBLT, cySrc, 4)
8102 TEST_FIELD_ALIGN (EMRPLGBLT, cySrc, 4)
8103 TEST_FIELD_OFFSET(EMRPLGBLT, cySrc, 60)
8104 TEST_FIELD_SIZE (EMRPLGBLT, xformSrc, 24)
8105 TEST_FIELD_ALIGN (EMRPLGBLT, xformSrc, 4)
8106 TEST_FIELD_OFFSET(EMRPLGBLT, xformSrc, 64)
8107 TEST_FIELD_SIZE (EMRPLGBLT, crBkColorSrc, 4)
8108 TEST_FIELD_ALIGN (EMRPLGBLT, crBkColorSrc, 4)
8109 TEST_FIELD_OFFSET(EMRPLGBLT, crBkColorSrc, 88)
8110 TEST_FIELD_SIZE (EMRPLGBLT, iUsageSrc, 4)
8111 TEST_FIELD_ALIGN (EMRPLGBLT, iUsageSrc, 4)
8112 TEST_FIELD_OFFSET(EMRPLGBLT, iUsageSrc, 92)
8113 TEST_FIELD_SIZE (EMRPLGBLT, offBmiSrc, 4)
8114 TEST_FIELD_ALIGN (EMRPLGBLT, offBmiSrc, 4)
8115 TEST_FIELD_OFFSET(EMRPLGBLT, offBmiSrc, 96)
8116 TEST_FIELD_SIZE (EMRPLGBLT, cbBmiSrc, 4)
8117 TEST_FIELD_ALIGN (EMRPLGBLT, cbBmiSrc, 4)
8118 TEST_FIELD_OFFSET(EMRPLGBLT, cbBmiSrc, 100)
8119 TEST_FIELD_SIZE (EMRPLGBLT, offBitsSrc, 4)
8120 TEST_FIELD_ALIGN (EMRPLGBLT, offBitsSrc, 4)
8121 TEST_FIELD_OFFSET(EMRPLGBLT, offBitsSrc, 104)
8122 TEST_FIELD_SIZE (EMRPLGBLT, cbBitsSrc, 4)
8123 TEST_FIELD_ALIGN (EMRPLGBLT, cbBitsSrc, 4)
8124 TEST_FIELD_OFFSET(EMRPLGBLT, cbBitsSrc, 108)
8125 TEST_FIELD_SIZE (EMRPLGBLT, xMask, 4)
8126 TEST_FIELD_ALIGN (EMRPLGBLT, xMask, 4)
8127 TEST_FIELD_OFFSET(EMRPLGBLT, xMask, 112)
8128 TEST_FIELD_SIZE (EMRPLGBLT, yMask, 4)
8129 TEST_FIELD_ALIGN (EMRPLGBLT, yMask, 4)
8130 TEST_FIELD_OFFSET(EMRPLGBLT, yMask, 116)
8131 TEST_FIELD_SIZE (EMRPLGBLT, iUsageMask, 4)
8132 TEST_FIELD_ALIGN (EMRPLGBLT, iUsageMask, 4)
8133 TEST_FIELD_OFFSET(EMRPLGBLT, iUsageMask, 120)
8134 TEST_FIELD_SIZE (EMRPLGBLT, offBmiMask, 4)
8135 TEST_FIELD_ALIGN (EMRPLGBLT, offBmiMask, 4)
8136 TEST_FIELD_OFFSET(EMRPLGBLT, offBmiMask, 124)
8137 TEST_FIELD_SIZE (EMRPLGBLT, cbBmiMask, 4)
8138 TEST_FIELD_ALIGN (EMRPLGBLT, cbBmiMask, 4)
8139 TEST_FIELD_OFFSET(EMRPLGBLT, cbBmiMask, 128)
8140 TEST_FIELD_SIZE (EMRPLGBLT, offBitsMask, 4)
8141 TEST_FIELD_ALIGN (EMRPLGBLT, offBitsMask, 4)
8142 TEST_FIELD_OFFSET(EMRPLGBLT, offBitsMask, 132)
8143 TEST_FIELD_SIZE (EMRPLGBLT, cbBitsMask, 4)
8144 TEST_FIELD_ALIGN (EMRPLGBLT, cbBitsMask, 4)
8145 TEST_FIELD_OFFSET(EMRPLGBLT, cbBitsMask, 136)
8148 static void test_pack_EMRPOLYBEZIER(void)
8150 /* EMRPOLYBEZIER */
8151 TEST_TYPE_SIZE (EMRPOLYBEZIER, 36)
8152 TEST_TYPE_ALIGN (EMRPOLYBEZIER, 4)
8153 TEST_FIELD_SIZE (EMRPOLYBEZIER, emr, 8)
8154 TEST_FIELD_ALIGN (EMRPOLYBEZIER, emr, 4)
8155 TEST_FIELD_OFFSET(EMRPOLYBEZIER, emr, 0)
8156 TEST_FIELD_SIZE (EMRPOLYBEZIER, rclBounds, 16)
8157 TEST_FIELD_ALIGN (EMRPOLYBEZIER, rclBounds, 4)
8158 TEST_FIELD_OFFSET(EMRPOLYBEZIER, rclBounds, 8)
8159 TEST_FIELD_SIZE (EMRPOLYBEZIER, cptl, 4)
8160 TEST_FIELD_ALIGN (EMRPOLYBEZIER, cptl, 4)
8161 TEST_FIELD_OFFSET(EMRPOLYBEZIER, cptl, 24)
8162 TEST_FIELD_SIZE (EMRPOLYBEZIER, aptl, 8)
8163 TEST_FIELD_ALIGN (EMRPOLYBEZIER, aptl, 4)
8164 TEST_FIELD_OFFSET(EMRPOLYBEZIER, aptl, 28)
8167 static void test_pack_EMRPOLYBEZIER16(void)
8169 /* EMRPOLYBEZIER16 */
8170 TEST_TYPE_SIZE (EMRPOLYBEZIER16, 32)
8171 TEST_TYPE_ALIGN (EMRPOLYBEZIER16, 4)
8172 TEST_FIELD_SIZE (EMRPOLYBEZIER16, emr, 8)
8173 TEST_FIELD_ALIGN (EMRPOLYBEZIER16, emr, 4)
8174 TEST_FIELD_OFFSET(EMRPOLYBEZIER16, emr, 0)
8175 TEST_FIELD_SIZE (EMRPOLYBEZIER16, rclBounds, 16)
8176 TEST_FIELD_ALIGN (EMRPOLYBEZIER16, rclBounds, 4)
8177 TEST_FIELD_OFFSET(EMRPOLYBEZIER16, rclBounds, 8)
8178 TEST_FIELD_SIZE (EMRPOLYBEZIER16, cpts, 4)
8179 TEST_FIELD_ALIGN (EMRPOLYBEZIER16, cpts, 4)
8180 TEST_FIELD_OFFSET(EMRPOLYBEZIER16, cpts, 24)
8181 TEST_FIELD_SIZE (EMRPOLYBEZIER16, apts, 4)
8182 TEST_FIELD_ALIGN (EMRPOLYBEZIER16, apts, 2)
8183 TEST_FIELD_OFFSET(EMRPOLYBEZIER16, apts, 28)
8186 static void test_pack_EMRPOLYBEZIERTO(void)
8188 /* EMRPOLYBEZIERTO */
8189 TEST_TYPE_SIZE (EMRPOLYBEZIERTO, 36)
8190 TEST_TYPE_ALIGN (EMRPOLYBEZIERTO, 4)
8191 TEST_FIELD_SIZE (EMRPOLYBEZIERTO, emr, 8)
8192 TEST_FIELD_ALIGN (EMRPOLYBEZIERTO, emr, 4)
8193 TEST_FIELD_OFFSET(EMRPOLYBEZIERTO, emr, 0)
8194 TEST_FIELD_SIZE (EMRPOLYBEZIERTO, rclBounds, 16)
8195 TEST_FIELD_ALIGN (EMRPOLYBEZIERTO, rclBounds, 4)
8196 TEST_FIELD_OFFSET(EMRPOLYBEZIERTO, rclBounds, 8)
8197 TEST_FIELD_SIZE (EMRPOLYBEZIERTO, cptl, 4)
8198 TEST_FIELD_ALIGN (EMRPOLYBEZIERTO, cptl, 4)
8199 TEST_FIELD_OFFSET(EMRPOLYBEZIERTO, cptl, 24)
8200 TEST_FIELD_SIZE (EMRPOLYBEZIERTO, aptl, 8)
8201 TEST_FIELD_ALIGN (EMRPOLYBEZIERTO, aptl, 4)
8202 TEST_FIELD_OFFSET(EMRPOLYBEZIERTO, aptl, 28)
8205 static void test_pack_EMRPOLYBEZIERTO16(void)
8207 /* EMRPOLYBEZIERTO16 */
8208 TEST_TYPE_SIZE (EMRPOLYBEZIERTO16, 32)
8209 TEST_TYPE_ALIGN (EMRPOLYBEZIERTO16, 4)
8210 TEST_FIELD_SIZE (EMRPOLYBEZIERTO16, emr, 8)
8211 TEST_FIELD_ALIGN (EMRPOLYBEZIERTO16, emr, 4)
8212 TEST_FIELD_OFFSET(EMRPOLYBEZIERTO16, emr, 0)
8213 TEST_FIELD_SIZE (EMRPOLYBEZIERTO16, rclBounds, 16)
8214 TEST_FIELD_ALIGN (EMRPOLYBEZIERTO16, rclBounds, 4)
8215 TEST_FIELD_OFFSET(EMRPOLYBEZIERTO16, rclBounds, 8)
8216 TEST_FIELD_SIZE (EMRPOLYBEZIERTO16, cpts, 4)
8217 TEST_FIELD_ALIGN (EMRPOLYBEZIERTO16, cpts, 4)
8218 TEST_FIELD_OFFSET(EMRPOLYBEZIERTO16, cpts, 24)
8219 TEST_FIELD_SIZE (EMRPOLYBEZIERTO16, apts, 4)
8220 TEST_FIELD_ALIGN (EMRPOLYBEZIERTO16, apts, 2)
8221 TEST_FIELD_OFFSET(EMRPOLYBEZIERTO16, apts, 28)
8224 static void test_pack_EMRPOLYDRAW(void)
8226 /* EMRPOLYDRAW */
8227 TEST_TYPE_SIZE (EMRPOLYDRAW, 40)
8228 TEST_TYPE_ALIGN (EMRPOLYDRAW, 4)
8229 TEST_FIELD_SIZE (EMRPOLYDRAW, emr, 8)
8230 TEST_FIELD_ALIGN (EMRPOLYDRAW, emr, 4)
8231 TEST_FIELD_OFFSET(EMRPOLYDRAW, emr, 0)
8232 TEST_FIELD_SIZE (EMRPOLYDRAW, rclBounds, 16)
8233 TEST_FIELD_ALIGN (EMRPOLYDRAW, rclBounds, 4)
8234 TEST_FIELD_OFFSET(EMRPOLYDRAW, rclBounds, 8)
8235 TEST_FIELD_SIZE (EMRPOLYDRAW, cptl, 4)
8236 TEST_FIELD_ALIGN (EMRPOLYDRAW, cptl, 4)
8237 TEST_FIELD_OFFSET(EMRPOLYDRAW, cptl, 24)
8238 TEST_FIELD_SIZE (EMRPOLYDRAW, aptl, 8)
8239 TEST_FIELD_ALIGN (EMRPOLYDRAW, aptl, 4)
8240 TEST_FIELD_OFFSET(EMRPOLYDRAW, aptl, 28)
8241 TEST_FIELD_SIZE (EMRPOLYDRAW, abTypes, 1)
8242 TEST_FIELD_ALIGN (EMRPOLYDRAW, abTypes, 1)
8243 TEST_FIELD_OFFSET(EMRPOLYDRAW, abTypes, 36)
8246 static void test_pack_EMRPOLYDRAW16(void)
8248 /* EMRPOLYDRAW16 */
8249 TEST_TYPE_SIZE (EMRPOLYDRAW16, 36)
8250 TEST_TYPE_ALIGN (EMRPOLYDRAW16, 4)
8251 TEST_FIELD_SIZE (EMRPOLYDRAW16, emr, 8)
8252 TEST_FIELD_ALIGN (EMRPOLYDRAW16, emr, 4)
8253 TEST_FIELD_OFFSET(EMRPOLYDRAW16, emr, 0)
8254 TEST_FIELD_SIZE (EMRPOLYDRAW16, rclBounds, 16)
8255 TEST_FIELD_ALIGN (EMRPOLYDRAW16, rclBounds, 4)
8256 TEST_FIELD_OFFSET(EMRPOLYDRAW16, rclBounds, 8)
8257 TEST_FIELD_SIZE (EMRPOLYDRAW16, cpts, 4)
8258 TEST_FIELD_ALIGN (EMRPOLYDRAW16, cpts, 4)
8259 TEST_FIELD_OFFSET(EMRPOLYDRAW16, cpts, 24)
8260 TEST_FIELD_SIZE (EMRPOLYDRAW16, apts, 4)
8261 TEST_FIELD_ALIGN (EMRPOLYDRAW16, apts, 2)
8262 TEST_FIELD_OFFSET(EMRPOLYDRAW16, apts, 28)
8263 TEST_FIELD_SIZE (EMRPOLYDRAW16, abTypes, 1)
8264 TEST_FIELD_ALIGN (EMRPOLYDRAW16, abTypes, 1)
8265 TEST_FIELD_OFFSET(EMRPOLYDRAW16, abTypes, 32)
8268 static void test_pack_EMRPOLYGON(void)
8270 /* EMRPOLYGON */
8271 TEST_TYPE_SIZE (EMRPOLYGON, 36)
8272 TEST_TYPE_ALIGN (EMRPOLYGON, 4)
8273 TEST_FIELD_SIZE (EMRPOLYGON, emr, 8)
8274 TEST_FIELD_ALIGN (EMRPOLYGON, emr, 4)
8275 TEST_FIELD_OFFSET(EMRPOLYGON, emr, 0)
8276 TEST_FIELD_SIZE (EMRPOLYGON, rclBounds, 16)
8277 TEST_FIELD_ALIGN (EMRPOLYGON, rclBounds, 4)
8278 TEST_FIELD_OFFSET(EMRPOLYGON, rclBounds, 8)
8279 TEST_FIELD_SIZE (EMRPOLYGON, cptl, 4)
8280 TEST_FIELD_ALIGN (EMRPOLYGON, cptl, 4)
8281 TEST_FIELD_OFFSET(EMRPOLYGON, cptl, 24)
8282 TEST_FIELD_SIZE (EMRPOLYGON, aptl, 8)
8283 TEST_FIELD_ALIGN (EMRPOLYGON, aptl, 4)
8284 TEST_FIELD_OFFSET(EMRPOLYGON, aptl, 28)
8287 static void test_pack_EMRPOLYGON16(void)
8289 /* EMRPOLYGON16 */
8290 TEST_TYPE_SIZE (EMRPOLYGON16, 32)
8291 TEST_TYPE_ALIGN (EMRPOLYGON16, 4)
8292 TEST_FIELD_SIZE (EMRPOLYGON16, emr, 8)
8293 TEST_FIELD_ALIGN (EMRPOLYGON16, emr, 4)
8294 TEST_FIELD_OFFSET(EMRPOLYGON16, emr, 0)
8295 TEST_FIELD_SIZE (EMRPOLYGON16, rclBounds, 16)
8296 TEST_FIELD_ALIGN (EMRPOLYGON16, rclBounds, 4)
8297 TEST_FIELD_OFFSET(EMRPOLYGON16, rclBounds, 8)
8298 TEST_FIELD_SIZE (EMRPOLYGON16, cpts, 4)
8299 TEST_FIELD_ALIGN (EMRPOLYGON16, cpts, 4)
8300 TEST_FIELD_OFFSET(EMRPOLYGON16, cpts, 24)
8301 TEST_FIELD_SIZE (EMRPOLYGON16, apts, 4)
8302 TEST_FIELD_ALIGN (EMRPOLYGON16, apts, 2)
8303 TEST_FIELD_OFFSET(EMRPOLYGON16, apts, 28)
8306 static void test_pack_EMRPOLYLINE(void)
8308 /* EMRPOLYLINE */
8309 TEST_TYPE_SIZE (EMRPOLYLINE, 36)
8310 TEST_TYPE_ALIGN (EMRPOLYLINE, 4)
8311 TEST_FIELD_SIZE (EMRPOLYLINE, emr, 8)
8312 TEST_FIELD_ALIGN (EMRPOLYLINE, emr, 4)
8313 TEST_FIELD_OFFSET(EMRPOLYLINE, emr, 0)
8314 TEST_FIELD_SIZE (EMRPOLYLINE, rclBounds, 16)
8315 TEST_FIELD_ALIGN (EMRPOLYLINE, rclBounds, 4)
8316 TEST_FIELD_OFFSET(EMRPOLYLINE, rclBounds, 8)
8317 TEST_FIELD_SIZE (EMRPOLYLINE, cptl, 4)
8318 TEST_FIELD_ALIGN (EMRPOLYLINE, cptl, 4)
8319 TEST_FIELD_OFFSET(EMRPOLYLINE, cptl, 24)
8320 TEST_FIELD_SIZE (EMRPOLYLINE, aptl, 8)
8321 TEST_FIELD_ALIGN (EMRPOLYLINE, aptl, 4)
8322 TEST_FIELD_OFFSET(EMRPOLYLINE, aptl, 28)
8325 static void test_pack_EMRPOLYLINE16(void)
8327 /* EMRPOLYLINE16 */
8328 TEST_TYPE_SIZE (EMRPOLYLINE16, 32)
8329 TEST_TYPE_ALIGN (EMRPOLYLINE16, 4)
8330 TEST_FIELD_SIZE (EMRPOLYLINE16, emr, 8)
8331 TEST_FIELD_ALIGN (EMRPOLYLINE16, emr, 4)
8332 TEST_FIELD_OFFSET(EMRPOLYLINE16, emr, 0)
8333 TEST_FIELD_SIZE (EMRPOLYLINE16, rclBounds, 16)
8334 TEST_FIELD_ALIGN (EMRPOLYLINE16, rclBounds, 4)
8335 TEST_FIELD_OFFSET(EMRPOLYLINE16, rclBounds, 8)
8336 TEST_FIELD_SIZE (EMRPOLYLINE16, cpts, 4)
8337 TEST_FIELD_ALIGN (EMRPOLYLINE16, cpts, 4)
8338 TEST_FIELD_OFFSET(EMRPOLYLINE16, cpts, 24)
8339 TEST_FIELD_SIZE (EMRPOLYLINE16, apts, 4)
8340 TEST_FIELD_ALIGN (EMRPOLYLINE16, apts, 2)
8341 TEST_FIELD_OFFSET(EMRPOLYLINE16, apts, 28)
8344 static void test_pack_EMRPOLYLINETO(void)
8346 /* EMRPOLYLINETO */
8347 TEST_TYPE_SIZE (EMRPOLYLINETO, 36)
8348 TEST_TYPE_ALIGN (EMRPOLYLINETO, 4)
8349 TEST_FIELD_SIZE (EMRPOLYLINETO, emr, 8)
8350 TEST_FIELD_ALIGN (EMRPOLYLINETO, emr, 4)
8351 TEST_FIELD_OFFSET(EMRPOLYLINETO, emr, 0)
8352 TEST_FIELD_SIZE (EMRPOLYLINETO, rclBounds, 16)
8353 TEST_FIELD_ALIGN (EMRPOLYLINETO, rclBounds, 4)
8354 TEST_FIELD_OFFSET(EMRPOLYLINETO, rclBounds, 8)
8355 TEST_FIELD_SIZE (EMRPOLYLINETO, cptl, 4)
8356 TEST_FIELD_ALIGN (EMRPOLYLINETO, cptl, 4)
8357 TEST_FIELD_OFFSET(EMRPOLYLINETO, cptl, 24)
8358 TEST_FIELD_SIZE (EMRPOLYLINETO, aptl, 8)
8359 TEST_FIELD_ALIGN (EMRPOLYLINETO, aptl, 4)
8360 TEST_FIELD_OFFSET(EMRPOLYLINETO, aptl, 28)
8363 static void test_pack_EMRPOLYLINETO16(void)
8365 /* EMRPOLYLINETO16 */
8366 TEST_TYPE_SIZE (EMRPOLYLINETO16, 32)
8367 TEST_TYPE_ALIGN (EMRPOLYLINETO16, 4)
8368 TEST_FIELD_SIZE (EMRPOLYLINETO16, emr, 8)
8369 TEST_FIELD_ALIGN (EMRPOLYLINETO16, emr, 4)
8370 TEST_FIELD_OFFSET(EMRPOLYLINETO16, emr, 0)
8371 TEST_FIELD_SIZE (EMRPOLYLINETO16, rclBounds, 16)
8372 TEST_FIELD_ALIGN (EMRPOLYLINETO16, rclBounds, 4)
8373 TEST_FIELD_OFFSET(EMRPOLYLINETO16, rclBounds, 8)
8374 TEST_FIELD_SIZE (EMRPOLYLINETO16, cpts, 4)
8375 TEST_FIELD_ALIGN (EMRPOLYLINETO16, cpts, 4)
8376 TEST_FIELD_OFFSET(EMRPOLYLINETO16, cpts, 24)
8377 TEST_FIELD_SIZE (EMRPOLYLINETO16, apts, 4)
8378 TEST_FIELD_ALIGN (EMRPOLYLINETO16, apts, 2)
8379 TEST_FIELD_OFFSET(EMRPOLYLINETO16, apts, 28)
8382 static void test_pack_EMRPOLYPOLYGON(void)
8384 /* EMRPOLYPOLYGON */
8385 TEST_TYPE_SIZE (EMRPOLYPOLYGON, 44)
8386 TEST_TYPE_ALIGN (EMRPOLYPOLYGON, 4)
8387 TEST_FIELD_SIZE (EMRPOLYPOLYGON, emr, 8)
8388 TEST_FIELD_ALIGN (EMRPOLYPOLYGON, emr, 4)
8389 TEST_FIELD_OFFSET(EMRPOLYPOLYGON, emr, 0)
8390 TEST_FIELD_SIZE (EMRPOLYPOLYGON, rclBounds, 16)
8391 TEST_FIELD_ALIGN (EMRPOLYPOLYGON, rclBounds, 4)
8392 TEST_FIELD_OFFSET(EMRPOLYPOLYGON, rclBounds, 8)
8393 TEST_FIELD_SIZE (EMRPOLYPOLYGON, nPolys, 4)
8394 TEST_FIELD_ALIGN (EMRPOLYPOLYGON, nPolys, 4)
8395 TEST_FIELD_OFFSET(EMRPOLYPOLYGON, nPolys, 24)
8396 TEST_FIELD_SIZE (EMRPOLYPOLYGON, cptl, 4)
8397 TEST_FIELD_ALIGN (EMRPOLYPOLYGON, cptl, 4)
8398 TEST_FIELD_OFFSET(EMRPOLYPOLYGON, cptl, 28)
8399 TEST_FIELD_SIZE (EMRPOLYPOLYGON, aPolyCounts, 4)
8400 TEST_FIELD_ALIGN (EMRPOLYPOLYGON, aPolyCounts, 4)
8401 TEST_FIELD_OFFSET(EMRPOLYPOLYGON, aPolyCounts, 32)
8402 TEST_FIELD_SIZE (EMRPOLYPOLYGON, aptl, 8)
8403 TEST_FIELD_ALIGN (EMRPOLYPOLYGON, aptl, 4)
8404 TEST_FIELD_OFFSET(EMRPOLYPOLYGON, aptl, 36)
8407 static void test_pack_EMRPOLYPOLYGON16(void)
8409 /* EMRPOLYPOLYGON16 */
8410 TEST_TYPE_SIZE (EMRPOLYPOLYGON16, 40)
8411 TEST_TYPE_ALIGN (EMRPOLYPOLYGON16, 4)
8412 TEST_FIELD_SIZE (EMRPOLYPOLYGON16, emr, 8)
8413 TEST_FIELD_ALIGN (EMRPOLYPOLYGON16, emr, 4)
8414 TEST_FIELD_OFFSET(EMRPOLYPOLYGON16, emr, 0)
8415 TEST_FIELD_SIZE (EMRPOLYPOLYGON16, rclBounds, 16)
8416 TEST_FIELD_ALIGN (EMRPOLYPOLYGON16, rclBounds, 4)
8417 TEST_FIELD_OFFSET(EMRPOLYPOLYGON16, rclBounds, 8)
8418 TEST_FIELD_SIZE (EMRPOLYPOLYGON16, nPolys, 4)
8419 TEST_FIELD_ALIGN (EMRPOLYPOLYGON16, nPolys, 4)
8420 TEST_FIELD_OFFSET(EMRPOLYPOLYGON16, nPolys, 24)
8421 TEST_FIELD_SIZE (EMRPOLYPOLYGON16, cpts, 4)
8422 TEST_FIELD_ALIGN (EMRPOLYPOLYGON16, cpts, 4)
8423 TEST_FIELD_OFFSET(EMRPOLYPOLYGON16, cpts, 28)
8424 TEST_FIELD_SIZE (EMRPOLYPOLYGON16, aPolyCounts, 4)
8425 TEST_FIELD_ALIGN (EMRPOLYPOLYGON16, aPolyCounts, 4)
8426 TEST_FIELD_OFFSET(EMRPOLYPOLYGON16, aPolyCounts, 32)
8427 TEST_FIELD_SIZE (EMRPOLYPOLYGON16, apts, 4)
8428 TEST_FIELD_ALIGN (EMRPOLYPOLYGON16, apts, 2)
8429 TEST_FIELD_OFFSET(EMRPOLYPOLYGON16, apts, 36)
8432 static void test_pack_EMRPOLYPOLYLINE(void)
8434 /* EMRPOLYPOLYLINE */
8435 TEST_TYPE_SIZE (EMRPOLYPOLYLINE, 44)
8436 TEST_TYPE_ALIGN (EMRPOLYPOLYLINE, 4)
8437 TEST_FIELD_SIZE (EMRPOLYPOLYLINE, emr, 8)
8438 TEST_FIELD_ALIGN (EMRPOLYPOLYLINE, emr, 4)
8439 TEST_FIELD_OFFSET(EMRPOLYPOLYLINE, emr, 0)
8440 TEST_FIELD_SIZE (EMRPOLYPOLYLINE, rclBounds, 16)
8441 TEST_FIELD_ALIGN (EMRPOLYPOLYLINE, rclBounds, 4)
8442 TEST_FIELD_OFFSET(EMRPOLYPOLYLINE, rclBounds, 8)
8443 TEST_FIELD_SIZE (EMRPOLYPOLYLINE, nPolys, 4)
8444 TEST_FIELD_ALIGN (EMRPOLYPOLYLINE, nPolys, 4)
8445 TEST_FIELD_OFFSET(EMRPOLYPOLYLINE, nPolys, 24)
8446 TEST_FIELD_SIZE (EMRPOLYPOLYLINE, cptl, 4)
8447 TEST_FIELD_ALIGN (EMRPOLYPOLYLINE, cptl, 4)
8448 TEST_FIELD_OFFSET(EMRPOLYPOLYLINE, cptl, 28)
8449 TEST_FIELD_SIZE (EMRPOLYPOLYLINE, aPolyCounts, 4)
8450 TEST_FIELD_ALIGN (EMRPOLYPOLYLINE, aPolyCounts, 4)
8451 TEST_FIELD_OFFSET(EMRPOLYPOLYLINE, aPolyCounts, 32)
8452 TEST_FIELD_SIZE (EMRPOLYPOLYLINE, aptl, 8)
8453 TEST_FIELD_ALIGN (EMRPOLYPOLYLINE, aptl, 4)
8454 TEST_FIELD_OFFSET(EMRPOLYPOLYLINE, aptl, 36)
8457 static void test_pack_EMRPOLYPOLYLINE16(void)
8459 /* EMRPOLYPOLYLINE16 */
8460 TEST_TYPE_SIZE (EMRPOLYPOLYLINE16, 40)
8461 TEST_TYPE_ALIGN (EMRPOLYPOLYLINE16, 4)
8462 TEST_FIELD_SIZE (EMRPOLYPOLYLINE16, emr, 8)
8463 TEST_FIELD_ALIGN (EMRPOLYPOLYLINE16, emr, 4)
8464 TEST_FIELD_OFFSET(EMRPOLYPOLYLINE16, emr, 0)
8465 TEST_FIELD_SIZE (EMRPOLYPOLYLINE16, rclBounds, 16)
8466 TEST_FIELD_ALIGN (EMRPOLYPOLYLINE16, rclBounds, 4)
8467 TEST_FIELD_OFFSET(EMRPOLYPOLYLINE16, rclBounds, 8)
8468 TEST_FIELD_SIZE (EMRPOLYPOLYLINE16, nPolys, 4)
8469 TEST_FIELD_ALIGN (EMRPOLYPOLYLINE16, nPolys, 4)
8470 TEST_FIELD_OFFSET(EMRPOLYPOLYLINE16, nPolys, 24)
8471 TEST_FIELD_SIZE (EMRPOLYPOLYLINE16, cpts, 4)
8472 TEST_FIELD_ALIGN (EMRPOLYPOLYLINE16, cpts, 4)
8473 TEST_FIELD_OFFSET(EMRPOLYPOLYLINE16, cpts, 28)
8474 TEST_FIELD_SIZE (EMRPOLYPOLYLINE16, aPolyCounts, 4)
8475 TEST_FIELD_ALIGN (EMRPOLYPOLYLINE16, aPolyCounts, 4)
8476 TEST_FIELD_OFFSET(EMRPOLYPOLYLINE16, aPolyCounts, 32)
8477 TEST_FIELD_SIZE (EMRPOLYPOLYLINE16, apts, 4)
8478 TEST_FIELD_ALIGN (EMRPOLYPOLYLINE16, apts, 2)
8479 TEST_FIELD_OFFSET(EMRPOLYPOLYLINE16, apts, 36)
8482 static void test_pack_EMRPOLYTEXTOUTA(void)
8484 /* EMRPOLYTEXTOUTA */
8485 TEST_TYPE_SIZE (EMRPOLYTEXTOUTA, 80)
8486 TEST_TYPE_ALIGN (EMRPOLYTEXTOUTA, 4)
8487 TEST_FIELD_SIZE (EMRPOLYTEXTOUTA, emr, 8)
8488 TEST_FIELD_ALIGN (EMRPOLYTEXTOUTA, emr, 4)
8489 TEST_FIELD_OFFSET(EMRPOLYTEXTOUTA, emr, 0)
8490 TEST_FIELD_SIZE (EMRPOLYTEXTOUTA, rclBounds, 16)
8491 TEST_FIELD_ALIGN (EMRPOLYTEXTOUTA, rclBounds, 4)
8492 TEST_FIELD_OFFSET(EMRPOLYTEXTOUTA, rclBounds, 8)
8493 TEST_FIELD_SIZE (EMRPOLYTEXTOUTA, iGraphicsMode, 4)
8494 TEST_FIELD_ALIGN (EMRPOLYTEXTOUTA, iGraphicsMode, 4)
8495 TEST_FIELD_OFFSET(EMRPOLYTEXTOUTA, iGraphicsMode, 24)
8496 TEST_FIELD_SIZE (EMRPOLYTEXTOUTA, exScale, 4)
8497 TEST_FIELD_ALIGN (EMRPOLYTEXTOUTA, exScale, 4)
8498 TEST_FIELD_OFFSET(EMRPOLYTEXTOUTA, exScale, 28)
8499 TEST_FIELD_SIZE (EMRPOLYTEXTOUTA, eyScale, 4)
8500 TEST_FIELD_ALIGN (EMRPOLYTEXTOUTA, eyScale, 4)
8501 TEST_FIELD_OFFSET(EMRPOLYTEXTOUTA, eyScale, 32)
8502 TEST_FIELD_SIZE (EMRPOLYTEXTOUTA, cStrings, 4)
8503 TEST_FIELD_ALIGN (EMRPOLYTEXTOUTA, cStrings, 4)
8504 TEST_FIELD_OFFSET(EMRPOLYTEXTOUTA, cStrings, 36)
8505 TEST_FIELD_SIZE (EMRPOLYTEXTOUTA, aemrtext, 40)
8506 TEST_FIELD_ALIGN (EMRPOLYTEXTOUTA, aemrtext, 4)
8507 TEST_FIELD_OFFSET(EMRPOLYTEXTOUTA, aemrtext, 40)
8510 static void test_pack_EMRPOLYTEXTOUTW(void)
8512 /* EMRPOLYTEXTOUTW */
8513 TEST_TYPE_SIZE (EMRPOLYTEXTOUTW, 80)
8514 TEST_TYPE_ALIGN (EMRPOLYTEXTOUTW, 4)
8515 TEST_FIELD_SIZE (EMRPOLYTEXTOUTW, emr, 8)
8516 TEST_FIELD_ALIGN (EMRPOLYTEXTOUTW, emr, 4)
8517 TEST_FIELD_OFFSET(EMRPOLYTEXTOUTW, emr, 0)
8518 TEST_FIELD_SIZE (EMRPOLYTEXTOUTW, rclBounds, 16)
8519 TEST_FIELD_ALIGN (EMRPOLYTEXTOUTW, rclBounds, 4)
8520 TEST_FIELD_OFFSET(EMRPOLYTEXTOUTW, rclBounds, 8)
8521 TEST_FIELD_SIZE (EMRPOLYTEXTOUTW, iGraphicsMode, 4)
8522 TEST_FIELD_ALIGN (EMRPOLYTEXTOUTW, iGraphicsMode, 4)
8523 TEST_FIELD_OFFSET(EMRPOLYTEXTOUTW, iGraphicsMode, 24)
8524 TEST_FIELD_SIZE (EMRPOLYTEXTOUTW, exScale, 4)
8525 TEST_FIELD_ALIGN (EMRPOLYTEXTOUTW, exScale, 4)
8526 TEST_FIELD_OFFSET(EMRPOLYTEXTOUTW, exScale, 28)
8527 TEST_FIELD_SIZE (EMRPOLYTEXTOUTW, eyScale, 4)
8528 TEST_FIELD_ALIGN (EMRPOLYTEXTOUTW, eyScale, 4)
8529 TEST_FIELD_OFFSET(EMRPOLYTEXTOUTW, eyScale, 32)
8530 TEST_FIELD_SIZE (EMRPOLYTEXTOUTW, cStrings, 4)
8531 TEST_FIELD_ALIGN (EMRPOLYTEXTOUTW, cStrings, 4)
8532 TEST_FIELD_OFFSET(EMRPOLYTEXTOUTW, cStrings, 36)
8533 TEST_FIELD_SIZE (EMRPOLYTEXTOUTW, aemrtext, 40)
8534 TEST_FIELD_ALIGN (EMRPOLYTEXTOUTW, aemrtext, 4)
8535 TEST_FIELD_OFFSET(EMRPOLYTEXTOUTW, aemrtext, 40)
8538 static void test_pack_EMRREALIZEPALETTE(void)
8540 /* EMRREALIZEPALETTE */
8541 TEST_TYPE_SIZE (EMRREALIZEPALETTE, 8)
8542 TEST_TYPE_ALIGN (EMRREALIZEPALETTE, 4)
8543 TEST_FIELD_SIZE (EMRREALIZEPALETTE, emr, 8)
8544 TEST_FIELD_ALIGN (EMRREALIZEPALETTE, emr, 4)
8545 TEST_FIELD_OFFSET(EMRREALIZEPALETTE, emr, 0)
8548 static void test_pack_EMRRECTANGLE(void)
8550 /* EMRRECTANGLE */
8551 TEST_TYPE_SIZE (EMRRECTANGLE, 24)
8552 TEST_TYPE_ALIGN (EMRRECTANGLE, 4)
8553 TEST_FIELD_SIZE (EMRRECTANGLE, emr, 8)
8554 TEST_FIELD_ALIGN (EMRRECTANGLE, emr, 4)
8555 TEST_FIELD_OFFSET(EMRRECTANGLE, emr, 0)
8556 TEST_FIELD_SIZE (EMRRECTANGLE, rclBox, 16)
8557 TEST_FIELD_ALIGN (EMRRECTANGLE, rclBox, 4)
8558 TEST_FIELD_OFFSET(EMRRECTANGLE, rclBox, 8)
8561 static void test_pack_EMRRESIZEPALETTE(void)
8563 /* EMRRESIZEPALETTE */
8564 TEST_TYPE_SIZE (EMRRESIZEPALETTE, 16)
8565 TEST_TYPE_ALIGN (EMRRESIZEPALETTE, 4)
8566 TEST_FIELD_SIZE (EMRRESIZEPALETTE, emr, 8)
8567 TEST_FIELD_ALIGN (EMRRESIZEPALETTE, emr, 4)
8568 TEST_FIELD_OFFSET(EMRRESIZEPALETTE, emr, 0)
8569 TEST_FIELD_SIZE (EMRRESIZEPALETTE, ihPal, 4)
8570 TEST_FIELD_ALIGN (EMRRESIZEPALETTE, ihPal, 4)
8571 TEST_FIELD_OFFSET(EMRRESIZEPALETTE, ihPal, 8)
8572 TEST_FIELD_SIZE (EMRRESIZEPALETTE, cEntries, 4)
8573 TEST_FIELD_ALIGN (EMRRESIZEPALETTE, cEntries, 4)
8574 TEST_FIELD_OFFSET(EMRRESIZEPALETTE, cEntries, 12)
8577 static void test_pack_EMRRESTOREDC(void)
8579 /* EMRRESTOREDC */
8580 TEST_TYPE_SIZE (EMRRESTOREDC, 12)
8581 TEST_TYPE_ALIGN (EMRRESTOREDC, 4)
8582 TEST_FIELD_SIZE (EMRRESTOREDC, emr, 8)
8583 TEST_FIELD_ALIGN (EMRRESTOREDC, emr, 4)
8584 TEST_FIELD_OFFSET(EMRRESTOREDC, emr, 0)
8585 TEST_FIELD_SIZE (EMRRESTOREDC, iRelative, 4)
8586 TEST_FIELD_ALIGN (EMRRESTOREDC, iRelative, 4)
8587 TEST_FIELD_OFFSET(EMRRESTOREDC, iRelative, 8)
8590 static void test_pack_EMRROUNDRECT(void)
8592 /* EMRROUNDRECT */
8593 TEST_TYPE_SIZE (EMRROUNDRECT, 32)
8594 TEST_TYPE_ALIGN (EMRROUNDRECT, 4)
8595 TEST_FIELD_SIZE (EMRROUNDRECT, emr, 8)
8596 TEST_FIELD_ALIGN (EMRROUNDRECT, emr, 4)
8597 TEST_FIELD_OFFSET(EMRROUNDRECT, emr, 0)
8598 TEST_FIELD_SIZE (EMRROUNDRECT, rclBox, 16)
8599 TEST_FIELD_ALIGN (EMRROUNDRECT, rclBox, 4)
8600 TEST_FIELD_OFFSET(EMRROUNDRECT, rclBox, 8)
8601 TEST_FIELD_SIZE (EMRROUNDRECT, szlCorner, 8)
8602 TEST_FIELD_ALIGN (EMRROUNDRECT, szlCorner, 4)
8603 TEST_FIELD_OFFSET(EMRROUNDRECT, szlCorner, 24)
8606 static void test_pack_EMRSAVEDC(void)
8608 /* EMRSAVEDC */
8609 TEST_TYPE_SIZE (EMRSAVEDC, 8)
8610 TEST_TYPE_ALIGN (EMRSAVEDC, 4)
8611 TEST_FIELD_SIZE (EMRSAVEDC, emr, 8)
8612 TEST_FIELD_ALIGN (EMRSAVEDC, emr, 4)
8613 TEST_FIELD_OFFSET(EMRSAVEDC, emr, 0)
8616 static void test_pack_EMRSCALEVIEWPORTEXTEX(void)
8618 /* EMRSCALEVIEWPORTEXTEX */
8619 TEST_TYPE_SIZE (EMRSCALEVIEWPORTEXTEX, 24)
8620 TEST_TYPE_ALIGN (EMRSCALEVIEWPORTEXTEX, 4)
8621 TEST_FIELD_SIZE (EMRSCALEVIEWPORTEXTEX, emr, 8)
8622 TEST_FIELD_ALIGN (EMRSCALEVIEWPORTEXTEX, emr, 4)
8623 TEST_FIELD_OFFSET(EMRSCALEVIEWPORTEXTEX, emr, 0)
8624 TEST_FIELD_SIZE (EMRSCALEVIEWPORTEXTEX, xNum, 4)
8625 TEST_FIELD_ALIGN (EMRSCALEVIEWPORTEXTEX, xNum, 4)
8626 TEST_FIELD_OFFSET(EMRSCALEVIEWPORTEXTEX, xNum, 8)
8627 TEST_FIELD_SIZE (EMRSCALEVIEWPORTEXTEX, xDenom, 4)
8628 TEST_FIELD_ALIGN (EMRSCALEVIEWPORTEXTEX, xDenom, 4)
8629 TEST_FIELD_OFFSET(EMRSCALEVIEWPORTEXTEX, xDenom, 12)
8630 TEST_FIELD_SIZE (EMRSCALEVIEWPORTEXTEX, yNum, 4)
8631 TEST_FIELD_ALIGN (EMRSCALEVIEWPORTEXTEX, yNum, 4)
8632 TEST_FIELD_OFFSET(EMRSCALEVIEWPORTEXTEX, yNum, 16)
8633 TEST_FIELD_SIZE (EMRSCALEVIEWPORTEXTEX, yDenom, 4)
8634 TEST_FIELD_ALIGN (EMRSCALEVIEWPORTEXTEX, yDenom, 4)
8635 TEST_FIELD_OFFSET(EMRSCALEVIEWPORTEXTEX, yDenom, 20)
8638 static void test_pack_EMRSCALEWINDOWEXTEX(void)
8640 /* EMRSCALEWINDOWEXTEX */
8641 TEST_TYPE_SIZE (EMRSCALEWINDOWEXTEX, 24)
8642 TEST_TYPE_ALIGN (EMRSCALEWINDOWEXTEX, 4)
8643 TEST_FIELD_SIZE (EMRSCALEWINDOWEXTEX, emr, 8)
8644 TEST_FIELD_ALIGN (EMRSCALEWINDOWEXTEX, emr, 4)
8645 TEST_FIELD_OFFSET(EMRSCALEWINDOWEXTEX, emr, 0)
8646 TEST_FIELD_SIZE (EMRSCALEWINDOWEXTEX, xNum, 4)
8647 TEST_FIELD_ALIGN (EMRSCALEWINDOWEXTEX, xNum, 4)
8648 TEST_FIELD_OFFSET(EMRSCALEWINDOWEXTEX, xNum, 8)
8649 TEST_FIELD_SIZE (EMRSCALEWINDOWEXTEX, xDenom, 4)
8650 TEST_FIELD_ALIGN (EMRSCALEWINDOWEXTEX, xDenom, 4)
8651 TEST_FIELD_OFFSET(EMRSCALEWINDOWEXTEX, xDenom, 12)
8652 TEST_FIELD_SIZE (EMRSCALEWINDOWEXTEX, yNum, 4)
8653 TEST_FIELD_ALIGN (EMRSCALEWINDOWEXTEX, yNum, 4)
8654 TEST_FIELD_OFFSET(EMRSCALEWINDOWEXTEX, yNum, 16)
8655 TEST_FIELD_SIZE (EMRSCALEWINDOWEXTEX, yDenom, 4)
8656 TEST_FIELD_ALIGN (EMRSCALEWINDOWEXTEX, yDenom, 4)
8657 TEST_FIELD_OFFSET(EMRSCALEWINDOWEXTEX, yDenom, 20)
8660 static void test_pack_EMRSELECTCLIPPATH(void)
8662 /* EMRSELECTCLIPPATH */
8663 TEST_TYPE_SIZE (EMRSELECTCLIPPATH, 12)
8664 TEST_TYPE_ALIGN (EMRSELECTCLIPPATH, 4)
8665 TEST_FIELD_SIZE (EMRSELECTCLIPPATH, emr, 8)
8666 TEST_FIELD_ALIGN (EMRSELECTCLIPPATH, emr, 4)
8667 TEST_FIELD_OFFSET(EMRSELECTCLIPPATH, emr, 0)
8668 TEST_FIELD_SIZE (EMRSELECTCLIPPATH, iMode, 4)
8669 TEST_FIELD_ALIGN (EMRSELECTCLIPPATH, iMode, 4)
8670 TEST_FIELD_OFFSET(EMRSELECTCLIPPATH, iMode, 8)
8673 static void test_pack_EMRSELECTCOLORSPACE(void)
8675 /* EMRSELECTCOLORSPACE */
8676 TEST_TYPE_SIZE (EMRSELECTCOLORSPACE, 12)
8677 TEST_TYPE_ALIGN (EMRSELECTCOLORSPACE, 4)
8678 TEST_FIELD_SIZE (EMRSELECTCOLORSPACE, emr, 8)
8679 TEST_FIELD_ALIGN (EMRSELECTCOLORSPACE, emr, 4)
8680 TEST_FIELD_OFFSET(EMRSELECTCOLORSPACE, emr, 0)
8681 TEST_FIELD_SIZE (EMRSELECTCOLORSPACE, ihCS, 4)
8682 TEST_FIELD_ALIGN (EMRSELECTCOLORSPACE, ihCS, 4)
8683 TEST_FIELD_OFFSET(EMRSELECTCOLORSPACE, ihCS, 8)
8686 static void test_pack_EMRSELECTOBJECT(void)
8688 /* EMRSELECTOBJECT */
8689 TEST_TYPE_SIZE (EMRSELECTOBJECT, 12)
8690 TEST_TYPE_ALIGN (EMRSELECTOBJECT, 4)
8691 TEST_FIELD_SIZE (EMRSELECTOBJECT, emr, 8)
8692 TEST_FIELD_ALIGN (EMRSELECTOBJECT, emr, 4)
8693 TEST_FIELD_OFFSET(EMRSELECTOBJECT, emr, 0)
8694 TEST_FIELD_SIZE (EMRSELECTOBJECT, ihObject, 4)
8695 TEST_FIELD_ALIGN (EMRSELECTOBJECT, ihObject, 4)
8696 TEST_FIELD_OFFSET(EMRSELECTOBJECT, ihObject, 8)
8699 static void test_pack_EMRSELECTPALETTE(void)
8701 /* EMRSELECTPALETTE */
8702 TEST_TYPE_SIZE (EMRSELECTPALETTE, 12)
8703 TEST_TYPE_ALIGN (EMRSELECTPALETTE, 4)
8704 TEST_FIELD_SIZE (EMRSELECTPALETTE, emr, 8)
8705 TEST_FIELD_ALIGN (EMRSELECTPALETTE, emr, 4)
8706 TEST_FIELD_OFFSET(EMRSELECTPALETTE, emr, 0)
8707 TEST_FIELD_SIZE (EMRSELECTPALETTE, ihPal, 4)
8708 TEST_FIELD_ALIGN (EMRSELECTPALETTE, ihPal, 4)
8709 TEST_FIELD_OFFSET(EMRSELECTPALETTE, ihPal, 8)
8712 static void test_pack_EMRSETARCDIRECTION(void)
8714 /* EMRSETARCDIRECTION */
8715 TEST_TYPE_SIZE (EMRSETARCDIRECTION, 12)
8716 TEST_TYPE_ALIGN (EMRSETARCDIRECTION, 4)
8717 TEST_FIELD_SIZE (EMRSETARCDIRECTION, emr, 8)
8718 TEST_FIELD_ALIGN (EMRSETARCDIRECTION, emr, 4)
8719 TEST_FIELD_OFFSET(EMRSETARCDIRECTION, emr, 0)
8720 TEST_FIELD_SIZE (EMRSETARCDIRECTION, iArcDirection, 4)
8721 TEST_FIELD_ALIGN (EMRSETARCDIRECTION, iArcDirection, 4)
8722 TEST_FIELD_OFFSET(EMRSETARCDIRECTION, iArcDirection, 8)
8725 static void test_pack_EMRSETBKCOLOR(void)
8727 /* EMRSETBKCOLOR */
8728 TEST_TYPE_SIZE (EMRSETBKCOLOR, 12)
8729 TEST_TYPE_ALIGN (EMRSETBKCOLOR, 4)
8730 TEST_FIELD_SIZE (EMRSETBKCOLOR, emr, 8)
8731 TEST_FIELD_ALIGN (EMRSETBKCOLOR, emr, 4)
8732 TEST_FIELD_OFFSET(EMRSETBKCOLOR, emr, 0)
8733 TEST_FIELD_SIZE (EMRSETBKCOLOR, crColor, 4)
8734 TEST_FIELD_ALIGN (EMRSETBKCOLOR, crColor, 4)
8735 TEST_FIELD_OFFSET(EMRSETBKCOLOR, crColor, 8)
8738 static void test_pack_EMRSETBKMODE(void)
8740 /* EMRSETBKMODE */
8741 TEST_TYPE_SIZE (EMRSETBKMODE, 12)
8742 TEST_TYPE_ALIGN (EMRSETBKMODE, 4)
8743 TEST_FIELD_SIZE (EMRSETBKMODE, emr, 8)
8744 TEST_FIELD_ALIGN (EMRSETBKMODE, emr, 4)
8745 TEST_FIELD_OFFSET(EMRSETBKMODE, emr, 0)
8746 TEST_FIELD_SIZE (EMRSETBKMODE, iMode, 4)
8747 TEST_FIELD_ALIGN (EMRSETBKMODE, iMode, 4)
8748 TEST_FIELD_OFFSET(EMRSETBKMODE, iMode, 8)
8751 static void test_pack_EMRSETBRUSHORGEX(void)
8753 /* EMRSETBRUSHORGEX */
8754 TEST_TYPE_SIZE (EMRSETBRUSHORGEX, 16)
8755 TEST_TYPE_ALIGN (EMRSETBRUSHORGEX, 4)
8756 TEST_FIELD_SIZE (EMRSETBRUSHORGEX, emr, 8)
8757 TEST_FIELD_ALIGN (EMRSETBRUSHORGEX, emr, 4)
8758 TEST_FIELD_OFFSET(EMRSETBRUSHORGEX, emr, 0)
8759 TEST_FIELD_SIZE (EMRSETBRUSHORGEX, ptlOrigin, 8)
8760 TEST_FIELD_ALIGN (EMRSETBRUSHORGEX, ptlOrigin, 4)
8761 TEST_FIELD_OFFSET(EMRSETBRUSHORGEX, ptlOrigin, 8)
8764 static void test_pack_EMRSETCOLORADJUSTMENT(void)
8766 /* EMRSETCOLORADJUSTMENT */
8767 TEST_TYPE_SIZE (EMRSETCOLORADJUSTMENT, 32)
8768 TEST_TYPE_ALIGN (EMRSETCOLORADJUSTMENT, 4)
8769 TEST_FIELD_SIZE (EMRSETCOLORADJUSTMENT, emr, 8)
8770 TEST_FIELD_ALIGN (EMRSETCOLORADJUSTMENT, emr, 4)
8771 TEST_FIELD_OFFSET(EMRSETCOLORADJUSTMENT, emr, 0)
8772 TEST_FIELD_SIZE (EMRSETCOLORADJUSTMENT, ColorAdjustment, 24)
8773 TEST_FIELD_ALIGN (EMRSETCOLORADJUSTMENT, ColorAdjustment, 2)
8774 TEST_FIELD_OFFSET(EMRSETCOLORADJUSTMENT, ColorAdjustment, 8)
8777 static void test_pack_EMRSETCOLORSPACE(void)
8779 /* EMRSETCOLORSPACE */
8780 TEST_TYPE_SIZE (EMRSETCOLORSPACE, 12)
8781 TEST_TYPE_ALIGN (EMRSETCOLORSPACE, 4)
8782 TEST_FIELD_SIZE (EMRSETCOLORSPACE, emr, 8)
8783 TEST_FIELD_ALIGN (EMRSETCOLORSPACE, emr, 4)
8784 TEST_FIELD_OFFSET(EMRSETCOLORSPACE, emr, 0)
8785 TEST_FIELD_SIZE (EMRSETCOLORSPACE, ihCS, 4)
8786 TEST_FIELD_ALIGN (EMRSETCOLORSPACE, ihCS, 4)
8787 TEST_FIELD_OFFSET(EMRSETCOLORSPACE, ihCS, 8)
8790 static void test_pack_EMRSETDIBITSTODEVICE(void)
8792 /* EMRSETDIBITSTODEVICE */
8793 TEST_TYPE_SIZE (EMRSETDIBITSTODEVICE, 76)
8794 TEST_TYPE_ALIGN (EMRSETDIBITSTODEVICE, 4)
8795 TEST_FIELD_SIZE (EMRSETDIBITSTODEVICE, emr, 8)
8796 TEST_FIELD_ALIGN (EMRSETDIBITSTODEVICE, emr, 4)
8797 TEST_FIELD_OFFSET(EMRSETDIBITSTODEVICE, emr, 0)
8798 TEST_FIELD_SIZE (EMRSETDIBITSTODEVICE, rclBounds, 16)
8799 TEST_FIELD_ALIGN (EMRSETDIBITSTODEVICE, rclBounds, 4)
8800 TEST_FIELD_OFFSET(EMRSETDIBITSTODEVICE, rclBounds, 8)
8801 TEST_FIELD_SIZE (EMRSETDIBITSTODEVICE, xDest, 4)
8802 TEST_FIELD_ALIGN (EMRSETDIBITSTODEVICE, xDest, 4)
8803 TEST_FIELD_OFFSET(EMRSETDIBITSTODEVICE, xDest, 24)
8804 TEST_FIELD_SIZE (EMRSETDIBITSTODEVICE, yDest, 4)
8805 TEST_FIELD_ALIGN (EMRSETDIBITSTODEVICE, yDest, 4)
8806 TEST_FIELD_OFFSET(EMRSETDIBITSTODEVICE, yDest, 28)
8807 TEST_FIELD_SIZE (EMRSETDIBITSTODEVICE, xSrc, 4)
8808 TEST_FIELD_ALIGN (EMRSETDIBITSTODEVICE, xSrc, 4)
8809 TEST_FIELD_OFFSET(EMRSETDIBITSTODEVICE, xSrc, 32)
8810 TEST_FIELD_SIZE (EMRSETDIBITSTODEVICE, ySrc, 4)
8811 TEST_FIELD_ALIGN (EMRSETDIBITSTODEVICE, ySrc, 4)
8812 TEST_FIELD_OFFSET(EMRSETDIBITSTODEVICE, ySrc, 36)
8813 TEST_FIELD_SIZE (EMRSETDIBITSTODEVICE, cxSrc, 4)
8814 TEST_FIELD_ALIGN (EMRSETDIBITSTODEVICE, cxSrc, 4)
8815 TEST_FIELD_OFFSET(EMRSETDIBITSTODEVICE, cxSrc, 40)
8816 TEST_FIELD_SIZE (EMRSETDIBITSTODEVICE, cySrc, 4)
8817 TEST_FIELD_ALIGN (EMRSETDIBITSTODEVICE, cySrc, 4)
8818 TEST_FIELD_OFFSET(EMRSETDIBITSTODEVICE, cySrc, 44)
8819 TEST_FIELD_SIZE (EMRSETDIBITSTODEVICE, offBmiSrc, 4)
8820 TEST_FIELD_ALIGN (EMRSETDIBITSTODEVICE, offBmiSrc, 4)
8821 TEST_FIELD_OFFSET(EMRSETDIBITSTODEVICE, offBmiSrc, 48)
8822 TEST_FIELD_SIZE (EMRSETDIBITSTODEVICE, cbBmiSrc, 4)
8823 TEST_FIELD_ALIGN (EMRSETDIBITSTODEVICE, cbBmiSrc, 4)
8824 TEST_FIELD_OFFSET(EMRSETDIBITSTODEVICE, cbBmiSrc, 52)
8825 TEST_FIELD_SIZE (EMRSETDIBITSTODEVICE, offBitsSrc, 4)
8826 TEST_FIELD_ALIGN (EMRSETDIBITSTODEVICE, offBitsSrc, 4)
8827 TEST_FIELD_OFFSET(EMRSETDIBITSTODEVICE, offBitsSrc, 56)
8828 TEST_FIELD_SIZE (EMRSETDIBITSTODEVICE, cbBitsSrc, 4)
8829 TEST_FIELD_ALIGN (EMRSETDIBITSTODEVICE, cbBitsSrc, 4)
8830 TEST_FIELD_OFFSET(EMRSETDIBITSTODEVICE, cbBitsSrc, 60)
8831 TEST_FIELD_SIZE (EMRSETDIBITSTODEVICE, iUsageSrc, 4)
8832 TEST_FIELD_ALIGN (EMRSETDIBITSTODEVICE, iUsageSrc, 4)
8833 TEST_FIELD_OFFSET(EMRSETDIBITSTODEVICE, iUsageSrc, 64)
8834 TEST_FIELD_SIZE (EMRSETDIBITSTODEVICE, iStartScan, 4)
8835 TEST_FIELD_ALIGN (EMRSETDIBITSTODEVICE, iStartScan, 4)
8836 TEST_FIELD_OFFSET(EMRSETDIBITSTODEVICE, iStartScan, 68)
8837 TEST_FIELD_SIZE (EMRSETDIBITSTODEVICE, cScans, 4)
8838 TEST_FIELD_ALIGN (EMRSETDIBITSTODEVICE, cScans, 4)
8839 TEST_FIELD_OFFSET(EMRSETDIBITSTODEVICE, cScans, 72)
8842 static void test_pack_EMRSETICMMODE(void)
8844 /* EMRSETICMMODE */
8845 TEST_TYPE_SIZE (EMRSETICMMODE, 12)
8846 TEST_TYPE_ALIGN (EMRSETICMMODE, 4)
8847 TEST_FIELD_SIZE (EMRSETICMMODE, emr, 8)
8848 TEST_FIELD_ALIGN (EMRSETICMMODE, emr, 4)
8849 TEST_FIELD_OFFSET(EMRSETICMMODE, emr, 0)
8850 TEST_FIELD_SIZE (EMRSETICMMODE, iMode, 4)
8851 TEST_FIELD_ALIGN (EMRSETICMMODE, iMode, 4)
8852 TEST_FIELD_OFFSET(EMRSETICMMODE, iMode, 8)
8855 static void test_pack_EMRSETLAYOUT(void)
8857 /* EMRSETLAYOUT */
8858 TEST_TYPE_SIZE (EMRSETLAYOUT, 12)
8859 TEST_TYPE_ALIGN (EMRSETLAYOUT, 4)
8860 TEST_FIELD_SIZE (EMRSETLAYOUT, emr, 8)
8861 TEST_FIELD_ALIGN (EMRSETLAYOUT, emr, 4)
8862 TEST_FIELD_OFFSET(EMRSETLAYOUT, emr, 0)
8863 TEST_FIELD_SIZE (EMRSETLAYOUT, iMode, 4)
8864 TEST_FIELD_ALIGN (EMRSETLAYOUT, iMode, 4)
8865 TEST_FIELD_OFFSET(EMRSETLAYOUT, iMode, 8)
8868 static void test_pack_EMRSETMAPMODE(void)
8870 /* EMRSETMAPMODE */
8871 TEST_TYPE_SIZE (EMRSETMAPMODE, 12)
8872 TEST_TYPE_ALIGN (EMRSETMAPMODE, 4)
8873 TEST_FIELD_SIZE (EMRSETMAPMODE, emr, 8)
8874 TEST_FIELD_ALIGN (EMRSETMAPMODE, emr, 4)
8875 TEST_FIELD_OFFSET(EMRSETMAPMODE, emr, 0)
8876 TEST_FIELD_SIZE (EMRSETMAPMODE, iMode, 4)
8877 TEST_FIELD_ALIGN (EMRSETMAPMODE, iMode, 4)
8878 TEST_FIELD_OFFSET(EMRSETMAPMODE, iMode, 8)
8881 static void test_pack_EMRSETMAPPERFLAGS(void)
8883 /* EMRSETMAPPERFLAGS */
8884 TEST_TYPE_SIZE (EMRSETMAPPERFLAGS, 12)
8885 TEST_TYPE_ALIGN (EMRSETMAPPERFLAGS, 4)
8886 TEST_FIELD_SIZE (EMRSETMAPPERFLAGS, emr, 8)
8887 TEST_FIELD_ALIGN (EMRSETMAPPERFLAGS, emr, 4)
8888 TEST_FIELD_OFFSET(EMRSETMAPPERFLAGS, emr, 0)
8889 TEST_FIELD_SIZE (EMRSETMAPPERFLAGS, dwFlags, 4)
8890 TEST_FIELD_ALIGN (EMRSETMAPPERFLAGS, dwFlags, 4)
8891 TEST_FIELD_OFFSET(EMRSETMAPPERFLAGS, dwFlags, 8)
8894 static void test_pack_EMRSETMETARGN(void)
8896 /* EMRSETMETARGN */
8897 TEST_TYPE_SIZE (EMRSETMETARGN, 8)
8898 TEST_TYPE_ALIGN (EMRSETMETARGN, 4)
8899 TEST_FIELD_SIZE (EMRSETMETARGN, emr, 8)
8900 TEST_FIELD_ALIGN (EMRSETMETARGN, emr, 4)
8901 TEST_FIELD_OFFSET(EMRSETMETARGN, emr, 0)
8904 static void test_pack_EMRSETMITERLIMIT(void)
8906 /* EMRSETMITERLIMIT */
8907 TEST_TYPE_SIZE (EMRSETMITERLIMIT, 12)
8908 TEST_TYPE_ALIGN (EMRSETMITERLIMIT, 4)
8909 TEST_FIELD_SIZE (EMRSETMITERLIMIT, emr, 8)
8910 TEST_FIELD_ALIGN (EMRSETMITERLIMIT, emr, 4)
8911 TEST_FIELD_OFFSET(EMRSETMITERLIMIT, emr, 0)
8912 TEST_FIELD_SIZE (EMRSETMITERLIMIT, eMiterLimit, 4)
8913 TEST_FIELD_ALIGN (EMRSETMITERLIMIT, eMiterLimit, 4)
8914 TEST_FIELD_OFFSET(EMRSETMITERLIMIT, eMiterLimit, 8)
8917 static void test_pack_EMRSETPIXELV(void)
8919 /* EMRSETPIXELV */
8920 TEST_TYPE_SIZE (EMRSETPIXELV, 20)
8921 TEST_TYPE_ALIGN (EMRSETPIXELV, 4)
8922 TEST_FIELD_SIZE (EMRSETPIXELV, emr, 8)
8923 TEST_FIELD_ALIGN (EMRSETPIXELV, emr, 4)
8924 TEST_FIELD_OFFSET(EMRSETPIXELV, emr, 0)
8925 TEST_FIELD_SIZE (EMRSETPIXELV, ptlPixel, 8)
8926 TEST_FIELD_ALIGN (EMRSETPIXELV, ptlPixel, 4)
8927 TEST_FIELD_OFFSET(EMRSETPIXELV, ptlPixel, 8)
8928 TEST_FIELD_SIZE (EMRSETPIXELV, crColor, 4)
8929 TEST_FIELD_ALIGN (EMRSETPIXELV, crColor, 4)
8930 TEST_FIELD_OFFSET(EMRSETPIXELV, crColor, 16)
8933 static void test_pack_EMRSETPOLYFILLMODE(void)
8935 /* EMRSETPOLYFILLMODE */
8936 TEST_TYPE_SIZE (EMRSETPOLYFILLMODE, 12)
8937 TEST_TYPE_ALIGN (EMRSETPOLYFILLMODE, 4)
8938 TEST_FIELD_SIZE (EMRSETPOLYFILLMODE, emr, 8)
8939 TEST_FIELD_ALIGN (EMRSETPOLYFILLMODE, emr, 4)
8940 TEST_FIELD_OFFSET(EMRSETPOLYFILLMODE, emr, 0)
8941 TEST_FIELD_SIZE (EMRSETPOLYFILLMODE, iMode, 4)
8942 TEST_FIELD_ALIGN (EMRSETPOLYFILLMODE, iMode, 4)
8943 TEST_FIELD_OFFSET(EMRSETPOLYFILLMODE, iMode, 8)
8946 static void test_pack_EMRSETROP2(void)
8948 /* EMRSETROP2 */
8949 TEST_TYPE_SIZE (EMRSETROP2, 12)
8950 TEST_TYPE_ALIGN (EMRSETROP2, 4)
8951 TEST_FIELD_SIZE (EMRSETROP2, emr, 8)
8952 TEST_FIELD_ALIGN (EMRSETROP2, emr, 4)
8953 TEST_FIELD_OFFSET(EMRSETROP2, emr, 0)
8954 TEST_FIELD_SIZE (EMRSETROP2, iMode, 4)
8955 TEST_FIELD_ALIGN (EMRSETROP2, iMode, 4)
8956 TEST_FIELD_OFFSET(EMRSETROP2, iMode, 8)
8959 static void test_pack_EMRSETSTRETCHBLTMODE(void)
8961 /* EMRSETSTRETCHBLTMODE */
8962 TEST_TYPE_SIZE (EMRSETSTRETCHBLTMODE, 12)
8963 TEST_TYPE_ALIGN (EMRSETSTRETCHBLTMODE, 4)
8964 TEST_FIELD_SIZE (EMRSETSTRETCHBLTMODE, emr, 8)
8965 TEST_FIELD_ALIGN (EMRSETSTRETCHBLTMODE, emr, 4)
8966 TEST_FIELD_OFFSET(EMRSETSTRETCHBLTMODE, emr, 0)
8967 TEST_FIELD_SIZE (EMRSETSTRETCHBLTMODE, iMode, 4)
8968 TEST_FIELD_ALIGN (EMRSETSTRETCHBLTMODE, iMode, 4)
8969 TEST_FIELD_OFFSET(EMRSETSTRETCHBLTMODE, iMode, 8)
8972 static void test_pack_EMRSETTEXTALIGN(void)
8974 /* EMRSETTEXTALIGN */
8975 TEST_TYPE_SIZE (EMRSETTEXTALIGN, 12)
8976 TEST_TYPE_ALIGN (EMRSETTEXTALIGN, 4)
8977 TEST_FIELD_SIZE (EMRSETTEXTALIGN, emr, 8)
8978 TEST_FIELD_ALIGN (EMRSETTEXTALIGN, emr, 4)
8979 TEST_FIELD_OFFSET(EMRSETTEXTALIGN, emr, 0)
8980 TEST_FIELD_SIZE (EMRSETTEXTALIGN, iMode, 4)
8981 TEST_FIELD_ALIGN (EMRSETTEXTALIGN, iMode, 4)
8982 TEST_FIELD_OFFSET(EMRSETTEXTALIGN, iMode, 8)
8985 static void test_pack_EMRSETTEXTCOLOR(void)
8987 /* EMRSETTEXTCOLOR */
8988 TEST_TYPE_SIZE (EMRSETTEXTCOLOR, 12)
8989 TEST_TYPE_ALIGN (EMRSETTEXTCOLOR, 4)
8990 TEST_FIELD_SIZE (EMRSETTEXTCOLOR, emr, 8)
8991 TEST_FIELD_ALIGN (EMRSETTEXTCOLOR, emr, 4)
8992 TEST_FIELD_OFFSET(EMRSETTEXTCOLOR, emr, 0)
8993 TEST_FIELD_SIZE (EMRSETTEXTCOLOR, crColor, 4)
8994 TEST_FIELD_ALIGN (EMRSETTEXTCOLOR, crColor, 4)
8995 TEST_FIELD_OFFSET(EMRSETTEXTCOLOR, crColor, 8)
8998 static void test_pack_EMRSETVIEWPORTEXTEX(void)
9000 /* EMRSETVIEWPORTEXTEX */
9001 TEST_TYPE_SIZE (EMRSETVIEWPORTEXTEX, 16)
9002 TEST_TYPE_ALIGN (EMRSETVIEWPORTEXTEX, 4)
9003 TEST_FIELD_SIZE (EMRSETVIEWPORTEXTEX, emr, 8)
9004 TEST_FIELD_ALIGN (EMRSETVIEWPORTEXTEX, emr, 4)
9005 TEST_FIELD_OFFSET(EMRSETVIEWPORTEXTEX, emr, 0)
9006 TEST_FIELD_SIZE (EMRSETVIEWPORTEXTEX, szlExtent, 8)
9007 TEST_FIELD_ALIGN (EMRSETVIEWPORTEXTEX, szlExtent, 4)
9008 TEST_FIELD_OFFSET(EMRSETVIEWPORTEXTEX, szlExtent, 8)
9011 static void test_pack_EMRSETVIEWPORTORGEX(void)
9013 /* EMRSETVIEWPORTORGEX */
9014 TEST_TYPE_SIZE (EMRSETVIEWPORTORGEX, 16)
9015 TEST_TYPE_ALIGN (EMRSETVIEWPORTORGEX, 4)
9016 TEST_FIELD_SIZE (EMRSETVIEWPORTORGEX, emr, 8)
9017 TEST_FIELD_ALIGN (EMRSETVIEWPORTORGEX, emr, 4)
9018 TEST_FIELD_OFFSET(EMRSETVIEWPORTORGEX, emr, 0)
9019 TEST_FIELD_SIZE (EMRSETVIEWPORTORGEX, ptlOrigin, 8)
9020 TEST_FIELD_ALIGN (EMRSETVIEWPORTORGEX, ptlOrigin, 4)
9021 TEST_FIELD_OFFSET(EMRSETVIEWPORTORGEX, ptlOrigin, 8)
9024 static void test_pack_EMRSETWINDOWEXTEX(void)
9026 /* EMRSETWINDOWEXTEX */
9027 TEST_TYPE_SIZE (EMRSETWINDOWEXTEX, 16)
9028 TEST_TYPE_ALIGN (EMRSETWINDOWEXTEX, 4)
9029 TEST_FIELD_SIZE (EMRSETWINDOWEXTEX, emr, 8)
9030 TEST_FIELD_ALIGN (EMRSETWINDOWEXTEX, emr, 4)
9031 TEST_FIELD_OFFSET(EMRSETWINDOWEXTEX, emr, 0)
9032 TEST_FIELD_SIZE (EMRSETWINDOWEXTEX, szlExtent, 8)
9033 TEST_FIELD_ALIGN (EMRSETWINDOWEXTEX, szlExtent, 4)
9034 TEST_FIELD_OFFSET(EMRSETWINDOWEXTEX, szlExtent, 8)
9037 static void test_pack_EMRSETWINDOWORGEX(void)
9039 /* EMRSETWINDOWORGEX */
9040 TEST_TYPE_SIZE (EMRSETWINDOWORGEX, 16)
9041 TEST_TYPE_ALIGN (EMRSETWINDOWORGEX, 4)
9042 TEST_FIELD_SIZE (EMRSETWINDOWORGEX, emr, 8)
9043 TEST_FIELD_ALIGN (EMRSETWINDOWORGEX, emr, 4)
9044 TEST_FIELD_OFFSET(EMRSETWINDOWORGEX, emr, 0)
9045 TEST_FIELD_SIZE (EMRSETWINDOWORGEX, ptlOrigin, 8)
9046 TEST_FIELD_ALIGN (EMRSETWINDOWORGEX, ptlOrigin, 4)
9047 TEST_FIELD_OFFSET(EMRSETWINDOWORGEX, ptlOrigin, 8)
9050 static void test_pack_EMRSETWORLDTRANSFORM(void)
9052 /* EMRSETWORLDTRANSFORM */
9053 TEST_TYPE_SIZE (EMRSETWORLDTRANSFORM, 32)
9054 TEST_TYPE_ALIGN (EMRSETWORLDTRANSFORM, 4)
9055 TEST_FIELD_SIZE (EMRSETWORLDTRANSFORM, emr, 8)
9056 TEST_FIELD_ALIGN (EMRSETWORLDTRANSFORM, emr, 4)
9057 TEST_FIELD_OFFSET(EMRSETWORLDTRANSFORM, emr, 0)
9058 TEST_FIELD_SIZE (EMRSETWORLDTRANSFORM, xform, 24)
9059 TEST_FIELD_ALIGN (EMRSETWORLDTRANSFORM, xform, 4)
9060 TEST_FIELD_OFFSET(EMRSETWORLDTRANSFORM, xform, 8)
9063 static void test_pack_EMRSTRETCHBLT(void)
9065 /* EMRSTRETCHBLT */
9066 TEST_TYPE_SIZE (EMRSTRETCHBLT, 108)
9067 TEST_TYPE_ALIGN (EMRSTRETCHBLT, 4)
9068 TEST_FIELD_SIZE (EMRSTRETCHBLT, emr, 8)
9069 TEST_FIELD_ALIGN (EMRSTRETCHBLT, emr, 4)
9070 TEST_FIELD_OFFSET(EMRSTRETCHBLT, emr, 0)
9071 TEST_FIELD_SIZE (EMRSTRETCHBLT, rclBounds, 16)
9072 TEST_FIELD_ALIGN (EMRSTRETCHBLT, rclBounds, 4)
9073 TEST_FIELD_OFFSET(EMRSTRETCHBLT, rclBounds, 8)
9074 TEST_FIELD_SIZE (EMRSTRETCHBLT, xDest, 4)
9075 TEST_FIELD_ALIGN (EMRSTRETCHBLT, xDest, 4)
9076 TEST_FIELD_OFFSET(EMRSTRETCHBLT, xDest, 24)
9077 TEST_FIELD_SIZE (EMRSTRETCHBLT, yDest, 4)
9078 TEST_FIELD_ALIGN (EMRSTRETCHBLT, yDest, 4)
9079 TEST_FIELD_OFFSET(EMRSTRETCHBLT, yDest, 28)
9080 TEST_FIELD_SIZE (EMRSTRETCHBLT, cxDest, 4)
9081 TEST_FIELD_ALIGN (EMRSTRETCHBLT, cxDest, 4)
9082 TEST_FIELD_OFFSET(EMRSTRETCHBLT, cxDest, 32)
9083 TEST_FIELD_SIZE (EMRSTRETCHBLT, cyDest, 4)
9084 TEST_FIELD_ALIGN (EMRSTRETCHBLT, cyDest, 4)
9085 TEST_FIELD_OFFSET(EMRSTRETCHBLT, cyDest, 36)
9086 TEST_FIELD_SIZE (EMRSTRETCHBLT, dwRop, 4)
9087 TEST_FIELD_ALIGN (EMRSTRETCHBLT, dwRop, 4)
9088 TEST_FIELD_OFFSET(EMRSTRETCHBLT, dwRop, 40)
9089 TEST_FIELD_SIZE (EMRSTRETCHBLT, xSrc, 4)
9090 TEST_FIELD_ALIGN (EMRSTRETCHBLT, xSrc, 4)
9091 TEST_FIELD_OFFSET(EMRSTRETCHBLT, xSrc, 44)
9092 TEST_FIELD_SIZE (EMRSTRETCHBLT, ySrc, 4)
9093 TEST_FIELD_ALIGN (EMRSTRETCHBLT, ySrc, 4)
9094 TEST_FIELD_OFFSET(EMRSTRETCHBLT, ySrc, 48)
9095 TEST_FIELD_SIZE (EMRSTRETCHBLT, xformSrc, 24)
9096 TEST_FIELD_ALIGN (EMRSTRETCHBLT, xformSrc, 4)
9097 TEST_FIELD_OFFSET(EMRSTRETCHBLT, xformSrc, 52)
9098 TEST_FIELD_SIZE (EMRSTRETCHBLT, crBkColorSrc, 4)
9099 TEST_FIELD_ALIGN (EMRSTRETCHBLT, crBkColorSrc, 4)
9100 TEST_FIELD_OFFSET(EMRSTRETCHBLT, crBkColorSrc, 76)
9101 TEST_FIELD_SIZE (EMRSTRETCHBLT, iUsageSrc, 4)
9102 TEST_FIELD_ALIGN (EMRSTRETCHBLT, iUsageSrc, 4)
9103 TEST_FIELD_OFFSET(EMRSTRETCHBLT, iUsageSrc, 80)
9104 TEST_FIELD_SIZE (EMRSTRETCHBLT, offBmiSrc, 4)
9105 TEST_FIELD_ALIGN (EMRSTRETCHBLT, offBmiSrc, 4)
9106 TEST_FIELD_OFFSET(EMRSTRETCHBLT, offBmiSrc, 84)
9107 TEST_FIELD_SIZE (EMRSTRETCHBLT, cbBmiSrc, 4)
9108 TEST_FIELD_ALIGN (EMRSTRETCHBLT, cbBmiSrc, 4)
9109 TEST_FIELD_OFFSET(EMRSTRETCHBLT, cbBmiSrc, 88)
9110 TEST_FIELD_SIZE (EMRSTRETCHBLT, offBitsSrc, 4)
9111 TEST_FIELD_ALIGN (EMRSTRETCHBLT, offBitsSrc, 4)
9112 TEST_FIELD_OFFSET(EMRSTRETCHBLT, offBitsSrc, 92)
9113 TEST_FIELD_SIZE (EMRSTRETCHBLT, cbBitsSrc, 4)
9114 TEST_FIELD_ALIGN (EMRSTRETCHBLT, cbBitsSrc, 4)
9115 TEST_FIELD_OFFSET(EMRSTRETCHBLT, cbBitsSrc, 96)
9116 TEST_FIELD_SIZE (EMRSTRETCHBLT, cxSrc, 4)
9117 TEST_FIELD_ALIGN (EMRSTRETCHBLT, cxSrc, 4)
9118 TEST_FIELD_OFFSET(EMRSTRETCHBLT, cxSrc, 100)
9119 TEST_FIELD_SIZE (EMRSTRETCHBLT, cySrc, 4)
9120 TEST_FIELD_ALIGN (EMRSTRETCHBLT, cySrc, 4)
9121 TEST_FIELD_OFFSET(EMRSTRETCHBLT, cySrc, 104)
9124 static void test_pack_EMRSTRETCHDIBITS(void)
9126 /* EMRSTRETCHDIBITS */
9127 TEST_TYPE_SIZE (EMRSTRETCHDIBITS, 80)
9128 TEST_TYPE_ALIGN (EMRSTRETCHDIBITS, 4)
9129 TEST_FIELD_SIZE (EMRSTRETCHDIBITS, emr, 8)
9130 TEST_FIELD_ALIGN (EMRSTRETCHDIBITS, emr, 4)
9131 TEST_FIELD_OFFSET(EMRSTRETCHDIBITS, emr, 0)
9132 TEST_FIELD_SIZE (EMRSTRETCHDIBITS, rclBounds, 16)
9133 TEST_FIELD_ALIGN (EMRSTRETCHDIBITS, rclBounds, 4)
9134 TEST_FIELD_OFFSET(EMRSTRETCHDIBITS, rclBounds, 8)
9135 TEST_FIELD_SIZE (EMRSTRETCHDIBITS, xDest, 4)
9136 TEST_FIELD_ALIGN (EMRSTRETCHDIBITS, xDest, 4)
9137 TEST_FIELD_OFFSET(EMRSTRETCHDIBITS, xDest, 24)
9138 TEST_FIELD_SIZE (EMRSTRETCHDIBITS, yDest, 4)
9139 TEST_FIELD_ALIGN (EMRSTRETCHDIBITS, yDest, 4)
9140 TEST_FIELD_OFFSET(EMRSTRETCHDIBITS, yDest, 28)
9141 TEST_FIELD_SIZE (EMRSTRETCHDIBITS, xSrc, 4)
9142 TEST_FIELD_ALIGN (EMRSTRETCHDIBITS, xSrc, 4)
9143 TEST_FIELD_OFFSET(EMRSTRETCHDIBITS, xSrc, 32)
9144 TEST_FIELD_SIZE (EMRSTRETCHDIBITS, ySrc, 4)
9145 TEST_FIELD_ALIGN (EMRSTRETCHDIBITS, ySrc, 4)
9146 TEST_FIELD_OFFSET(EMRSTRETCHDIBITS, ySrc, 36)
9147 TEST_FIELD_SIZE (EMRSTRETCHDIBITS, cxSrc, 4)
9148 TEST_FIELD_ALIGN (EMRSTRETCHDIBITS, cxSrc, 4)
9149 TEST_FIELD_OFFSET(EMRSTRETCHDIBITS, cxSrc, 40)
9150 TEST_FIELD_SIZE (EMRSTRETCHDIBITS, cySrc, 4)
9151 TEST_FIELD_ALIGN (EMRSTRETCHDIBITS, cySrc, 4)
9152 TEST_FIELD_OFFSET(EMRSTRETCHDIBITS, cySrc, 44)
9153 TEST_FIELD_SIZE (EMRSTRETCHDIBITS, offBmiSrc, 4)
9154 TEST_FIELD_ALIGN (EMRSTRETCHDIBITS, offBmiSrc, 4)
9155 TEST_FIELD_OFFSET(EMRSTRETCHDIBITS, offBmiSrc, 48)
9156 TEST_FIELD_SIZE (EMRSTRETCHDIBITS, cbBmiSrc, 4)
9157 TEST_FIELD_ALIGN (EMRSTRETCHDIBITS, cbBmiSrc, 4)
9158 TEST_FIELD_OFFSET(EMRSTRETCHDIBITS, cbBmiSrc, 52)
9159 TEST_FIELD_SIZE (EMRSTRETCHDIBITS, offBitsSrc, 4)
9160 TEST_FIELD_ALIGN (EMRSTRETCHDIBITS, offBitsSrc, 4)
9161 TEST_FIELD_OFFSET(EMRSTRETCHDIBITS, offBitsSrc, 56)
9162 TEST_FIELD_SIZE (EMRSTRETCHDIBITS, cbBitsSrc, 4)
9163 TEST_FIELD_ALIGN (EMRSTRETCHDIBITS, cbBitsSrc, 4)
9164 TEST_FIELD_OFFSET(EMRSTRETCHDIBITS, cbBitsSrc, 60)
9165 TEST_FIELD_SIZE (EMRSTRETCHDIBITS, iUsageSrc, 4)
9166 TEST_FIELD_ALIGN (EMRSTRETCHDIBITS, iUsageSrc, 4)
9167 TEST_FIELD_OFFSET(EMRSTRETCHDIBITS, iUsageSrc, 64)
9168 TEST_FIELD_SIZE (EMRSTRETCHDIBITS, dwRop, 4)
9169 TEST_FIELD_ALIGN (EMRSTRETCHDIBITS, dwRop, 4)
9170 TEST_FIELD_OFFSET(EMRSTRETCHDIBITS, dwRop, 68)
9171 TEST_FIELD_SIZE (EMRSTRETCHDIBITS, cxDest, 4)
9172 TEST_FIELD_ALIGN (EMRSTRETCHDIBITS, cxDest, 4)
9173 TEST_FIELD_OFFSET(EMRSTRETCHDIBITS, cxDest, 72)
9174 TEST_FIELD_SIZE (EMRSTRETCHDIBITS, cyDest, 4)
9175 TEST_FIELD_ALIGN (EMRSTRETCHDIBITS, cyDest, 4)
9176 TEST_FIELD_OFFSET(EMRSTRETCHDIBITS, cyDest, 76)
9179 static void test_pack_EMRSTROKEANDFILLPATH(void)
9181 /* EMRSTROKEANDFILLPATH */
9182 TEST_TYPE_SIZE (EMRSTROKEANDFILLPATH, 24)
9183 TEST_TYPE_ALIGN (EMRSTROKEANDFILLPATH, 4)
9184 TEST_FIELD_SIZE (EMRSTROKEANDFILLPATH, emr, 8)
9185 TEST_FIELD_ALIGN (EMRSTROKEANDFILLPATH, emr, 4)
9186 TEST_FIELD_OFFSET(EMRSTROKEANDFILLPATH, emr, 0)
9187 TEST_FIELD_SIZE (EMRSTROKEANDFILLPATH, rclBounds, 16)
9188 TEST_FIELD_ALIGN (EMRSTROKEANDFILLPATH, rclBounds, 4)
9189 TEST_FIELD_OFFSET(EMRSTROKEANDFILLPATH, rclBounds, 8)
9192 static void test_pack_EMRSTROKEPATH(void)
9194 /* EMRSTROKEPATH */
9195 TEST_TYPE_SIZE (EMRSTROKEPATH, 24)
9196 TEST_TYPE_ALIGN (EMRSTROKEPATH, 4)
9197 TEST_FIELD_SIZE (EMRSTROKEPATH, emr, 8)
9198 TEST_FIELD_ALIGN (EMRSTROKEPATH, emr, 4)
9199 TEST_FIELD_OFFSET(EMRSTROKEPATH, emr, 0)
9200 TEST_FIELD_SIZE (EMRSTROKEPATH, rclBounds, 16)
9201 TEST_FIELD_ALIGN (EMRSTROKEPATH, rclBounds, 4)
9202 TEST_FIELD_OFFSET(EMRSTROKEPATH, rclBounds, 8)
9205 static void test_pack_EMRTEXT(void)
9207 /* EMRTEXT */
9208 TEST_TYPE_SIZE (EMRTEXT, 40)
9209 TEST_TYPE_ALIGN (EMRTEXT, 4)
9210 TEST_FIELD_SIZE (EMRTEXT, ptlReference, 8)
9211 TEST_FIELD_ALIGN (EMRTEXT, ptlReference, 4)
9212 TEST_FIELD_OFFSET(EMRTEXT, ptlReference, 0)
9213 TEST_FIELD_SIZE (EMRTEXT, nChars, 4)
9214 TEST_FIELD_ALIGN (EMRTEXT, nChars, 4)
9215 TEST_FIELD_OFFSET(EMRTEXT, nChars, 8)
9216 TEST_FIELD_SIZE (EMRTEXT, offString, 4)
9217 TEST_FIELD_ALIGN (EMRTEXT, offString, 4)
9218 TEST_FIELD_OFFSET(EMRTEXT, offString, 12)
9219 TEST_FIELD_SIZE (EMRTEXT, fOptions, 4)
9220 TEST_FIELD_ALIGN (EMRTEXT, fOptions, 4)
9221 TEST_FIELD_OFFSET(EMRTEXT, fOptions, 16)
9222 TEST_FIELD_SIZE (EMRTEXT, rcl, 16)
9223 TEST_FIELD_ALIGN (EMRTEXT, rcl, 4)
9224 TEST_FIELD_OFFSET(EMRTEXT, rcl, 20)
9225 TEST_FIELD_SIZE (EMRTEXT, offDx, 4)
9226 TEST_FIELD_ALIGN (EMRTEXT, offDx, 4)
9227 TEST_FIELD_OFFSET(EMRTEXT, offDx, 36)
9230 static void test_pack_EMRWIDENPATH(void)
9232 /* EMRWIDENPATH */
9233 TEST_TYPE_SIZE (EMRWIDENPATH, 8)
9234 TEST_TYPE_ALIGN (EMRWIDENPATH, 4)
9235 TEST_FIELD_SIZE (EMRWIDENPATH, emr, 8)
9236 TEST_FIELD_ALIGN (EMRWIDENPATH, emr, 4)
9237 TEST_FIELD_OFFSET(EMRWIDENPATH, emr, 0)
9240 static void test_pack_ENHMETAHEADER(void)
9242 /* ENHMETAHEADER */
9243 TEST_TYPE_SIZE (ENHMETAHEADER, 108)
9244 TEST_TYPE_ALIGN (ENHMETAHEADER, 4)
9245 TEST_FIELD_SIZE (ENHMETAHEADER, iType, 4)
9246 TEST_FIELD_ALIGN (ENHMETAHEADER, iType, 4)
9247 TEST_FIELD_OFFSET(ENHMETAHEADER, iType, 0)
9248 TEST_FIELD_SIZE (ENHMETAHEADER, nSize, 4)
9249 TEST_FIELD_ALIGN (ENHMETAHEADER, nSize, 4)
9250 TEST_FIELD_OFFSET(ENHMETAHEADER, nSize, 4)
9251 TEST_FIELD_SIZE (ENHMETAHEADER, rclBounds, 16)
9252 TEST_FIELD_ALIGN (ENHMETAHEADER, rclBounds, 4)
9253 TEST_FIELD_OFFSET(ENHMETAHEADER, rclBounds, 8)
9254 TEST_FIELD_SIZE (ENHMETAHEADER, rclFrame, 16)
9255 TEST_FIELD_ALIGN (ENHMETAHEADER, rclFrame, 4)
9256 TEST_FIELD_OFFSET(ENHMETAHEADER, rclFrame, 24)
9257 TEST_FIELD_SIZE (ENHMETAHEADER, dSignature, 4)
9258 TEST_FIELD_ALIGN (ENHMETAHEADER, dSignature, 4)
9259 TEST_FIELD_OFFSET(ENHMETAHEADER, dSignature, 40)
9260 TEST_FIELD_SIZE (ENHMETAHEADER, nVersion, 4)
9261 TEST_FIELD_ALIGN (ENHMETAHEADER, nVersion, 4)
9262 TEST_FIELD_OFFSET(ENHMETAHEADER, nVersion, 44)
9263 TEST_FIELD_SIZE (ENHMETAHEADER, nBytes, 4)
9264 TEST_FIELD_ALIGN (ENHMETAHEADER, nBytes, 4)
9265 TEST_FIELD_OFFSET(ENHMETAHEADER, nBytes, 48)
9266 TEST_FIELD_SIZE (ENHMETAHEADER, nRecords, 4)
9267 TEST_FIELD_ALIGN (ENHMETAHEADER, nRecords, 4)
9268 TEST_FIELD_OFFSET(ENHMETAHEADER, nRecords, 52)
9269 TEST_FIELD_SIZE (ENHMETAHEADER, nHandles, 2)
9270 TEST_FIELD_ALIGN (ENHMETAHEADER, nHandles, 2)
9271 TEST_FIELD_OFFSET(ENHMETAHEADER, nHandles, 56)
9272 TEST_FIELD_SIZE (ENHMETAHEADER, sReserved, 2)
9273 TEST_FIELD_ALIGN (ENHMETAHEADER, sReserved, 2)
9274 TEST_FIELD_OFFSET(ENHMETAHEADER, sReserved, 58)
9275 TEST_FIELD_SIZE (ENHMETAHEADER, nDescription, 4)
9276 TEST_FIELD_ALIGN (ENHMETAHEADER, nDescription, 4)
9277 TEST_FIELD_OFFSET(ENHMETAHEADER, nDescription, 60)
9278 TEST_FIELD_SIZE (ENHMETAHEADER, offDescription, 4)
9279 TEST_FIELD_ALIGN (ENHMETAHEADER, offDescription, 4)
9280 TEST_FIELD_OFFSET(ENHMETAHEADER, offDescription, 64)
9281 TEST_FIELD_SIZE (ENHMETAHEADER, nPalEntries, 4)
9282 TEST_FIELD_ALIGN (ENHMETAHEADER, nPalEntries, 4)
9283 TEST_FIELD_OFFSET(ENHMETAHEADER, nPalEntries, 68)
9284 TEST_FIELD_SIZE (ENHMETAHEADER, szlDevice, 8)
9285 TEST_FIELD_ALIGN (ENHMETAHEADER, szlDevice, 4)
9286 TEST_FIELD_OFFSET(ENHMETAHEADER, szlDevice, 72)
9287 TEST_FIELD_SIZE (ENHMETAHEADER, szlMillimeters, 8)
9288 TEST_FIELD_ALIGN (ENHMETAHEADER, szlMillimeters, 4)
9289 TEST_FIELD_OFFSET(ENHMETAHEADER, szlMillimeters, 80)
9290 TEST_FIELD_SIZE (ENHMETAHEADER, cbPixelFormat, 4)
9291 TEST_FIELD_ALIGN (ENHMETAHEADER, cbPixelFormat, 4)
9292 TEST_FIELD_OFFSET(ENHMETAHEADER, cbPixelFormat, 88)
9293 TEST_FIELD_SIZE (ENHMETAHEADER, offPixelFormat, 4)
9294 TEST_FIELD_ALIGN (ENHMETAHEADER, offPixelFormat, 4)
9295 TEST_FIELD_OFFSET(ENHMETAHEADER, offPixelFormat, 92)
9296 TEST_FIELD_SIZE (ENHMETAHEADER, bOpenGL, 4)
9297 TEST_FIELD_ALIGN (ENHMETAHEADER, bOpenGL, 4)
9298 TEST_FIELD_OFFSET(ENHMETAHEADER, bOpenGL, 96)
9299 TEST_FIELD_SIZE (ENHMETAHEADER, szlMicrometers, 8)
9300 TEST_FIELD_ALIGN (ENHMETAHEADER, szlMicrometers, 4)
9301 TEST_FIELD_OFFSET(ENHMETAHEADER, szlMicrometers, 100)
9304 static void test_pack_ENHMETARECORD(void)
9306 /* ENHMETARECORD */
9307 TEST_TYPE_SIZE (ENHMETARECORD, 12)
9308 TEST_TYPE_ALIGN (ENHMETARECORD, 4)
9309 TEST_FIELD_SIZE (ENHMETARECORD, iType, 4)
9310 TEST_FIELD_ALIGN (ENHMETARECORD, iType, 4)
9311 TEST_FIELD_OFFSET(ENHMETARECORD, iType, 0)
9312 TEST_FIELD_SIZE (ENHMETARECORD, nSize, 4)
9313 TEST_FIELD_ALIGN (ENHMETARECORD, nSize, 4)
9314 TEST_FIELD_OFFSET(ENHMETARECORD, nSize, 4)
9315 TEST_FIELD_SIZE (ENHMETARECORD, dParm, 4)
9316 TEST_FIELD_ALIGN (ENHMETARECORD, dParm, 4)
9317 TEST_FIELD_OFFSET(ENHMETARECORD, dParm, 8)
9320 static void test_pack_ENHMFENUMPROC(void)
9322 /* ENHMFENUMPROC */
9323 TEST_TYPE_SIZE (ENHMFENUMPROC, 4)
9324 TEST_TYPE_ALIGN (ENHMFENUMPROC, 4)
9327 static void test_pack_ENUMLOGFONTA(void)
9329 /* ENUMLOGFONTA */
9330 TEST_TYPE_SIZE (ENUMLOGFONTA, 156)
9331 TEST_TYPE_ALIGN (ENUMLOGFONTA, 4)
9332 TEST_FIELD_SIZE (ENUMLOGFONTA, elfLogFont, 60)
9333 TEST_FIELD_ALIGN (ENUMLOGFONTA, elfLogFont, 4)
9334 TEST_FIELD_OFFSET(ENUMLOGFONTA, elfLogFont, 0)
9335 TEST_FIELD_SIZE (ENUMLOGFONTA, elfFullName, 64)
9336 TEST_FIELD_ALIGN (ENUMLOGFONTA, elfFullName, 1)
9337 TEST_FIELD_OFFSET(ENUMLOGFONTA, elfFullName, 60)
9338 TEST_FIELD_SIZE (ENUMLOGFONTA, elfStyle, 32)
9339 TEST_FIELD_ALIGN (ENUMLOGFONTA, elfStyle, 1)
9340 TEST_FIELD_OFFSET(ENUMLOGFONTA, elfStyle, 124)
9343 static void test_pack_ENUMLOGFONTEXA(void)
9345 /* ENUMLOGFONTEXA */
9346 TEST_TYPE_SIZE (ENUMLOGFONTEXA, 188)
9347 TEST_TYPE_ALIGN (ENUMLOGFONTEXA, 4)
9348 TEST_FIELD_SIZE (ENUMLOGFONTEXA, elfLogFont, 60)
9349 TEST_FIELD_ALIGN (ENUMLOGFONTEXA, elfLogFont, 4)
9350 TEST_FIELD_OFFSET(ENUMLOGFONTEXA, elfLogFont, 0)
9351 TEST_FIELD_SIZE (ENUMLOGFONTEXA, elfFullName, 64)
9352 TEST_FIELD_ALIGN (ENUMLOGFONTEXA, elfFullName, 1)
9353 TEST_FIELD_OFFSET(ENUMLOGFONTEXA, elfFullName, 60)
9354 TEST_FIELD_SIZE (ENUMLOGFONTEXA, elfStyle, 32)
9355 TEST_FIELD_ALIGN (ENUMLOGFONTEXA, elfStyle, 1)
9356 TEST_FIELD_OFFSET(ENUMLOGFONTEXA, elfStyle, 124)
9357 TEST_FIELD_SIZE (ENUMLOGFONTEXA, elfScript, 32)
9358 TEST_FIELD_ALIGN (ENUMLOGFONTEXA, elfScript, 1)
9359 TEST_FIELD_OFFSET(ENUMLOGFONTEXA, elfScript, 156)
9362 static void test_pack_ENUMLOGFONTEXW(void)
9364 /* ENUMLOGFONTEXW */
9365 TEST_TYPE_SIZE (ENUMLOGFONTEXW, 348)
9366 TEST_TYPE_ALIGN (ENUMLOGFONTEXW, 4)
9367 TEST_FIELD_SIZE (ENUMLOGFONTEXW, elfLogFont, 92)
9368 TEST_FIELD_ALIGN (ENUMLOGFONTEXW, elfLogFont, 4)
9369 TEST_FIELD_OFFSET(ENUMLOGFONTEXW, elfLogFont, 0)
9370 TEST_FIELD_SIZE (ENUMLOGFONTEXW, elfFullName, 128)
9371 TEST_FIELD_ALIGN (ENUMLOGFONTEXW, elfFullName, 2)
9372 TEST_FIELD_OFFSET(ENUMLOGFONTEXW, elfFullName, 92)
9373 TEST_FIELD_SIZE (ENUMLOGFONTEXW, elfStyle, 64)
9374 TEST_FIELD_ALIGN (ENUMLOGFONTEXW, elfStyle, 2)
9375 TEST_FIELD_OFFSET(ENUMLOGFONTEXW, elfStyle, 220)
9376 TEST_FIELD_SIZE (ENUMLOGFONTEXW, elfScript, 64)
9377 TEST_FIELD_ALIGN (ENUMLOGFONTEXW, elfScript, 2)
9378 TEST_FIELD_OFFSET(ENUMLOGFONTEXW, elfScript, 284)
9381 static void test_pack_ENUMLOGFONTW(void)
9383 /* ENUMLOGFONTW */
9384 TEST_TYPE_SIZE (ENUMLOGFONTW, 284)
9385 TEST_TYPE_ALIGN (ENUMLOGFONTW, 4)
9386 TEST_FIELD_SIZE (ENUMLOGFONTW, elfLogFont, 92)
9387 TEST_FIELD_ALIGN (ENUMLOGFONTW, elfLogFont, 4)
9388 TEST_FIELD_OFFSET(ENUMLOGFONTW, elfLogFont, 0)
9389 TEST_FIELD_SIZE (ENUMLOGFONTW, elfFullName, 128)
9390 TEST_FIELD_ALIGN (ENUMLOGFONTW, elfFullName, 2)
9391 TEST_FIELD_OFFSET(ENUMLOGFONTW, elfFullName, 92)
9392 TEST_FIELD_SIZE (ENUMLOGFONTW, elfStyle, 64)
9393 TEST_FIELD_ALIGN (ENUMLOGFONTW, elfStyle, 2)
9394 TEST_FIELD_OFFSET(ENUMLOGFONTW, elfStyle, 220)
9397 static void test_pack_EXTLOGFONTA(void)
9399 /* EXTLOGFONTA */
9400 TEST_TYPE_SIZE (EXTLOGFONTA, 192)
9401 TEST_TYPE_ALIGN (EXTLOGFONTA, 4)
9402 TEST_FIELD_SIZE (EXTLOGFONTA, elfLogFont, 60)
9403 TEST_FIELD_ALIGN (EXTLOGFONTA, elfLogFont, 4)
9404 TEST_FIELD_OFFSET(EXTLOGFONTA, elfLogFont, 0)
9405 TEST_FIELD_SIZE (EXTLOGFONTA, elfFullName, 64)
9406 TEST_FIELD_ALIGN (EXTLOGFONTA, elfFullName, 1)
9407 TEST_FIELD_OFFSET(EXTLOGFONTA, elfFullName, 60)
9408 TEST_FIELD_SIZE (EXTLOGFONTA, elfStyle, 32)
9409 TEST_FIELD_ALIGN (EXTLOGFONTA, elfStyle, 1)
9410 TEST_FIELD_OFFSET(EXTLOGFONTA, elfStyle, 124)
9411 TEST_FIELD_SIZE (EXTLOGFONTA, elfVersion, 4)
9412 TEST_FIELD_ALIGN (EXTLOGFONTA, elfVersion, 4)
9413 TEST_FIELD_OFFSET(EXTLOGFONTA, elfVersion, 156)
9414 TEST_FIELD_SIZE (EXTLOGFONTA, elfStyleSize, 4)
9415 TEST_FIELD_ALIGN (EXTLOGFONTA, elfStyleSize, 4)
9416 TEST_FIELD_OFFSET(EXTLOGFONTA, elfStyleSize, 160)
9417 TEST_FIELD_SIZE (EXTLOGFONTA, elfMatch, 4)
9418 TEST_FIELD_ALIGN (EXTLOGFONTA, elfMatch, 4)
9419 TEST_FIELD_OFFSET(EXTLOGFONTA, elfMatch, 164)
9420 TEST_FIELD_SIZE (EXTLOGFONTA, elfReserved, 4)
9421 TEST_FIELD_ALIGN (EXTLOGFONTA, elfReserved, 4)
9422 TEST_FIELD_OFFSET(EXTLOGFONTA, elfReserved, 168)
9423 TEST_FIELD_SIZE (EXTLOGFONTA, elfVendorId, 4)
9424 TEST_FIELD_ALIGN (EXTLOGFONTA, elfVendorId, 1)
9425 TEST_FIELD_OFFSET(EXTLOGFONTA, elfVendorId, 172)
9426 TEST_FIELD_SIZE (EXTLOGFONTA, elfCulture, 4)
9427 TEST_FIELD_ALIGN (EXTLOGFONTA, elfCulture, 4)
9428 TEST_FIELD_OFFSET(EXTLOGFONTA, elfCulture, 176)
9429 TEST_FIELD_SIZE (EXTLOGFONTA, elfPanose, 10)
9430 TEST_FIELD_ALIGN (EXTLOGFONTA, elfPanose, 1)
9431 TEST_FIELD_OFFSET(EXTLOGFONTA, elfPanose, 180)
9434 static void test_pack_EXTLOGFONTW(void)
9436 /* EXTLOGFONTW */
9437 TEST_TYPE_SIZE (EXTLOGFONTW, 320)
9438 TEST_TYPE_ALIGN (EXTLOGFONTW, 4)
9439 TEST_FIELD_SIZE (EXTLOGFONTW, elfLogFont, 92)
9440 TEST_FIELD_ALIGN (EXTLOGFONTW, elfLogFont, 4)
9441 TEST_FIELD_OFFSET(EXTLOGFONTW, elfLogFont, 0)
9442 TEST_FIELD_SIZE (EXTLOGFONTW, elfFullName, 128)
9443 TEST_FIELD_ALIGN (EXTLOGFONTW, elfFullName, 2)
9444 TEST_FIELD_OFFSET(EXTLOGFONTW, elfFullName, 92)
9445 TEST_FIELD_SIZE (EXTLOGFONTW, elfStyle, 64)
9446 TEST_FIELD_ALIGN (EXTLOGFONTW, elfStyle, 2)
9447 TEST_FIELD_OFFSET(EXTLOGFONTW, elfStyle, 220)
9448 TEST_FIELD_SIZE (EXTLOGFONTW, elfVersion, 4)
9449 TEST_FIELD_ALIGN (EXTLOGFONTW, elfVersion, 4)
9450 TEST_FIELD_OFFSET(EXTLOGFONTW, elfVersion, 284)
9451 TEST_FIELD_SIZE (EXTLOGFONTW, elfStyleSize, 4)
9452 TEST_FIELD_ALIGN (EXTLOGFONTW, elfStyleSize, 4)
9453 TEST_FIELD_OFFSET(EXTLOGFONTW, elfStyleSize, 288)
9454 TEST_FIELD_SIZE (EXTLOGFONTW, elfMatch, 4)
9455 TEST_FIELD_ALIGN (EXTLOGFONTW, elfMatch, 4)
9456 TEST_FIELD_OFFSET(EXTLOGFONTW, elfMatch, 292)
9457 TEST_FIELD_SIZE (EXTLOGFONTW, elfReserved, 4)
9458 TEST_FIELD_ALIGN (EXTLOGFONTW, elfReserved, 4)
9459 TEST_FIELD_OFFSET(EXTLOGFONTW, elfReserved, 296)
9460 TEST_FIELD_SIZE (EXTLOGFONTW, elfVendorId, 4)
9461 TEST_FIELD_ALIGN (EXTLOGFONTW, elfVendorId, 1)
9462 TEST_FIELD_OFFSET(EXTLOGFONTW, elfVendorId, 300)
9463 TEST_FIELD_SIZE (EXTLOGFONTW, elfCulture, 4)
9464 TEST_FIELD_ALIGN (EXTLOGFONTW, elfCulture, 4)
9465 TEST_FIELD_OFFSET(EXTLOGFONTW, elfCulture, 304)
9466 TEST_FIELD_SIZE (EXTLOGFONTW, elfPanose, 10)
9467 TEST_FIELD_ALIGN (EXTLOGFONTW, elfPanose, 1)
9468 TEST_FIELD_OFFSET(EXTLOGFONTW, elfPanose, 308)
9471 static void test_pack_EXTLOGPEN(void)
9473 /* EXTLOGPEN */
9474 TEST_TYPE_SIZE (EXTLOGPEN, 28)
9475 TEST_TYPE_ALIGN (EXTLOGPEN, 4)
9476 TEST_FIELD_SIZE (EXTLOGPEN, elpPenStyle, 4)
9477 TEST_FIELD_ALIGN (EXTLOGPEN, elpPenStyle, 4)
9478 TEST_FIELD_OFFSET(EXTLOGPEN, elpPenStyle, 0)
9479 TEST_FIELD_SIZE (EXTLOGPEN, elpWidth, 4)
9480 TEST_FIELD_ALIGN (EXTLOGPEN, elpWidth, 4)
9481 TEST_FIELD_OFFSET(EXTLOGPEN, elpWidth, 4)
9482 TEST_FIELD_SIZE (EXTLOGPEN, elpBrushStyle, 4)
9483 TEST_FIELD_ALIGN (EXTLOGPEN, elpBrushStyle, 4)
9484 TEST_FIELD_OFFSET(EXTLOGPEN, elpBrushStyle, 8)
9485 TEST_FIELD_SIZE (EXTLOGPEN, elpColor, 4)
9486 TEST_FIELD_ALIGN (EXTLOGPEN, elpColor, 4)
9487 TEST_FIELD_OFFSET(EXTLOGPEN, elpColor, 12)
9488 TEST_FIELD_SIZE (EXTLOGPEN, elpHatch, 4)
9489 TEST_FIELD_ALIGN (EXTLOGPEN, elpHatch, 4)
9490 TEST_FIELD_OFFSET(EXTLOGPEN, elpHatch, 16)
9491 TEST_FIELD_SIZE (EXTLOGPEN, elpNumEntries, 4)
9492 TEST_FIELD_ALIGN (EXTLOGPEN, elpNumEntries, 4)
9493 TEST_FIELD_OFFSET(EXTLOGPEN, elpNumEntries, 20)
9494 TEST_FIELD_SIZE (EXTLOGPEN, elpStyleEntry, 4)
9495 TEST_FIELD_ALIGN (EXTLOGPEN, elpStyleEntry, 4)
9496 TEST_FIELD_OFFSET(EXTLOGPEN, elpStyleEntry, 24)
9499 static void test_pack_FIXED(void)
9501 /* FIXED */
9502 TEST_TYPE_SIZE (FIXED, 4)
9503 TEST_TYPE_ALIGN (FIXED, 2)
9504 TEST_FIELD_SIZE (FIXED, fract, 2)
9505 TEST_FIELD_ALIGN (FIXED, fract, 2)
9506 TEST_FIELD_OFFSET(FIXED, fract, 0)
9507 TEST_FIELD_SIZE (FIXED, value, 2)
9508 TEST_FIELD_ALIGN (FIXED, value, 2)
9509 TEST_FIELD_OFFSET(FIXED, value, 2)
9512 static void test_pack_FONTENUMPROCA(void)
9514 /* FONTENUMPROCA */
9515 TEST_TYPE_SIZE (FONTENUMPROCA, 4)
9516 TEST_TYPE_ALIGN (FONTENUMPROCA, 4)
9519 static void test_pack_FONTENUMPROCW(void)
9521 /* FONTENUMPROCW */
9522 TEST_TYPE_SIZE (FONTENUMPROCW, 4)
9523 TEST_TYPE_ALIGN (FONTENUMPROCW, 4)
9526 static void test_pack_FONTSIGNATURE(void)
9528 /* FONTSIGNATURE */
9529 TEST_TYPE_SIZE (FONTSIGNATURE, 24)
9530 TEST_TYPE_ALIGN (FONTSIGNATURE, 4)
9531 TEST_FIELD_SIZE (FONTSIGNATURE, fsUsb, 16)
9532 TEST_FIELD_ALIGN (FONTSIGNATURE, fsUsb, 4)
9533 TEST_FIELD_OFFSET(FONTSIGNATURE, fsUsb, 0)
9534 TEST_FIELD_SIZE (FONTSIGNATURE, fsCsb, 8)
9535 TEST_FIELD_ALIGN (FONTSIGNATURE, fsCsb, 4)
9536 TEST_FIELD_OFFSET(FONTSIGNATURE, fsCsb, 16)
9539 static void test_pack_FXPT16DOT16(void)
9541 /* FXPT16DOT16 */
9542 TEST_TYPE_SIZE (FXPT16DOT16, 4)
9543 TEST_TYPE_ALIGN (FXPT16DOT16, 4)
9546 static void test_pack_FXPT2DOT30(void)
9548 /* FXPT2DOT30 */
9549 TEST_TYPE_SIZE (FXPT2DOT30, 4)
9550 TEST_TYPE_ALIGN (FXPT2DOT30, 4)
9553 static void test_pack_GCP_RESULTSA(void)
9555 /* GCP_RESULTSA */
9556 TEST_TYPE_SIZE (GCP_RESULTSA, 36)
9557 TEST_TYPE_ALIGN (GCP_RESULTSA, 4)
9558 TEST_FIELD_SIZE (GCP_RESULTSA, lStructSize, 4)
9559 TEST_FIELD_ALIGN (GCP_RESULTSA, lStructSize, 4)
9560 TEST_FIELD_OFFSET(GCP_RESULTSA, lStructSize, 0)
9561 TEST_FIELD_SIZE (GCP_RESULTSA, lpOutString, 4)
9562 TEST_FIELD_ALIGN (GCP_RESULTSA, lpOutString, 4)
9563 TEST_FIELD_OFFSET(GCP_RESULTSA, lpOutString, 4)
9564 TEST_FIELD_SIZE (GCP_RESULTSA, lpOrder, 4)
9565 TEST_FIELD_ALIGN (GCP_RESULTSA, lpOrder, 4)
9566 TEST_FIELD_OFFSET(GCP_RESULTSA, lpOrder, 8)
9567 TEST_FIELD_SIZE (GCP_RESULTSA, lpDx, 4)
9568 TEST_FIELD_ALIGN (GCP_RESULTSA, lpDx, 4)
9569 TEST_FIELD_OFFSET(GCP_RESULTSA, lpDx, 12)
9570 TEST_FIELD_SIZE (GCP_RESULTSA, lpCaretPos, 4)
9571 TEST_FIELD_ALIGN (GCP_RESULTSA, lpCaretPos, 4)
9572 TEST_FIELD_OFFSET(GCP_RESULTSA, lpCaretPos, 16)
9573 TEST_FIELD_SIZE (GCP_RESULTSA, lpClass, 4)
9574 TEST_FIELD_ALIGN (GCP_RESULTSA, lpClass, 4)
9575 TEST_FIELD_OFFSET(GCP_RESULTSA, lpClass, 20)
9576 TEST_FIELD_SIZE (GCP_RESULTSA, lpGlyphs, 4)
9577 TEST_FIELD_ALIGN (GCP_RESULTSA, lpGlyphs, 4)
9578 TEST_FIELD_OFFSET(GCP_RESULTSA, lpGlyphs, 24)
9579 TEST_FIELD_SIZE (GCP_RESULTSA, nGlyphs, 4)
9580 TEST_FIELD_ALIGN (GCP_RESULTSA, nGlyphs, 4)
9581 TEST_FIELD_OFFSET(GCP_RESULTSA, nGlyphs, 28)
9582 TEST_FIELD_SIZE (GCP_RESULTSA, nMaxFit, 4)
9583 TEST_FIELD_ALIGN (GCP_RESULTSA, nMaxFit, 4)
9584 TEST_FIELD_OFFSET(GCP_RESULTSA, nMaxFit, 32)
9587 static void test_pack_GCP_RESULTSW(void)
9589 /* GCP_RESULTSW */
9590 TEST_TYPE_SIZE (GCP_RESULTSW, 36)
9591 TEST_TYPE_ALIGN (GCP_RESULTSW, 4)
9592 TEST_FIELD_SIZE (GCP_RESULTSW, lStructSize, 4)
9593 TEST_FIELD_ALIGN (GCP_RESULTSW, lStructSize, 4)
9594 TEST_FIELD_OFFSET(GCP_RESULTSW, lStructSize, 0)
9595 TEST_FIELD_SIZE (GCP_RESULTSW, lpOutString, 4)
9596 TEST_FIELD_ALIGN (GCP_RESULTSW, lpOutString, 4)
9597 TEST_FIELD_OFFSET(GCP_RESULTSW, lpOutString, 4)
9598 TEST_FIELD_SIZE (GCP_RESULTSW, lpOrder, 4)
9599 TEST_FIELD_ALIGN (GCP_RESULTSW, lpOrder, 4)
9600 TEST_FIELD_OFFSET(GCP_RESULTSW, lpOrder, 8)
9601 TEST_FIELD_SIZE (GCP_RESULTSW, lpDx, 4)
9602 TEST_FIELD_ALIGN (GCP_RESULTSW, lpDx, 4)
9603 TEST_FIELD_OFFSET(GCP_RESULTSW, lpDx, 12)
9604 TEST_FIELD_SIZE (GCP_RESULTSW, lpCaretPos, 4)
9605 TEST_FIELD_ALIGN (GCP_RESULTSW, lpCaretPos, 4)
9606 TEST_FIELD_OFFSET(GCP_RESULTSW, lpCaretPos, 16)
9607 TEST_FIELD_SIZE (GCP_RESULTSW, lpClass, 4)
9608 TEST_FIELD_ALIGN (GCP_RESULTSW, lpClass, 4)
9609 TEST_FIELD_OFFSET(GCP_RESULTSW, lpClass, 20)
9610 TEST_FIELD_SIZE (GCP_RESULTSW, lpGlyphs, 4)
9611 TEST_FIELD_ALIGN (GCP_RESULTSW, lpGlyphs, 4)
9612 TEST_FIELD_OFFSET(GCP_RESULTSW, lpGlyphs, 24)
9613 TEST_FIELD_SIZE (GCP_RESULTSW, nGlyphs, 4)
9614 TEST_FIELD_ALIGN (GCP_RESULTSW, nGlyphs, 4)
9615 TEST_FIELD_OFFSET(GCP_RESULTSW, nGlyphs, 28)
9616 TEST_FIELD_SIZE (GCP_RESULTSW, nMaxFit, 4)
9617 TEST_FIELD_ALIGN (GCP_RESULTSW, nMaxFit, 4)
9618 TEST_FIELD_OFFSET(GCP_RESULTSW, nMaxFit, 32)
9621 static void test_pack_GLYPHMETRICS(void)
9623 /* GLYPHMETRICS */
9624 TEST_TYPE_SIZE (GLYPHMETRICS, 20)
9625 TEST_TYPE_ALIGN (GLYPHMETRICS, 4)
9626 TEST_FIELD_SIZE (GLYPHMETRICS, gmBlackBoxX, 4)
9627 TEST_FIELD_ALIGN (GLYPHMETRICS, gmBlackBoxX, 4)
9628 TEST_FIELD_OFFSET(GLYPHMETRICS, gmBlackBoxX, 0)
9629 TEST_FIELD_SIZE (GLYPHMETRICS, gmBlackBoxY, 4)
9630 TEST_FIELD_ALIGN (GLYPHMETRICS, gmBlackBoxY, 4)
9631 TEST_FIELD_OFFSET(GLYPHMETRICS, gmBlackBoxY, 4)
9632 TEST_FIELD_SIZE (GLYPHMETRICS, gmptGlyphOrigin, 8)
9633 TEST_FIELD_ALIGN (GLYPHMETRICS, gmptGlyphOrigin, 4)
9634 TEST_FIELD_OFFSET(GLYPHMETRICS, gmptGlyphOrigin, 8)
9635 TEST_FIELD_SIZE (GLYPHMETRICS, gmCellIncX, 2)
9636 TEST_FIELD_ALIGN (GLYPHMETRICS, gmCellIncX, 2)
9637 TEST_FIELD_OFFSET(GLYPHMETRICS, gmCellIncX, 16)
9638 TEST_FIELD_SIZE (GLYPHMETRICS, gmCellIncY, 2)
9639 TEST_FIELD_ALIGN (GLYPHMETRICS, gmCellIncY, 2)
9640 TEST_FIELD_OFFSET(GLYPHMETRICS, gmCellIncY, 18)
9643 static void test_pack_GLYPHMETRICSFLOAT(void)
9645 /* GLYPHMETRICSFLOAT */
9646 TEST_TYPE_SIZE (GLYPHMETRICSFLOAT, 24)
9647 TEST_TYPE_ALIGN (GLYPHMETRICSFLOAT, 4)
9648 TEST_FIELD_SIZE (GLYPHMETRICSFLOAT, gmfBlackBoxX, 4)
9649 TEST_FIELD_ALIGN (GLYPHMETRICSFLOAT, gmfBlackBoxX, 4)
9650 TEST_FIELD_OFFSET(GLYPHMETRICSFLOAT, gmfBlackBoxX, 0)
9651 TEST_FIELD_SIZE (GLYPHMETRICSFLOAT, gmfBlackBoxY, 4)
9652 TEST_FIELD_ALIGN (GLYPHMETRICSFLOAT, gmfBlackBoxY, 4)
9653 TEST_FIELD_OFFSET(GLYPHMETRICSFLOAT, gmfBlackBoxY, 4)
9654 TEST_FIELD_SIZE (GLYPHMETRICSFLOAT, gmfptGlyphOrigin, 8)
9655 TEST_FIELD_ALIGN (GLYPHMETRICSFLOAT, gmfptGlyphOrigin, 4)
9656 TEST_FIELD_OFFSET(GLYPHMETRICSFLOAT, gmfptGlyphOrigin, 8)
9657 TEST_FIELD_SIZE (GLYPHMETRICSFLOAT, gmfCellIncX, 4)
9658 TEST_FIELD_ALIGN (GLYPHMETRICSFLOAT, gmfCellIncX, 4)
9659 TEST_FIELD_OFFSET(GLYPHMETRICSFLOAT, gmfCellIncX, 16)
9660 TEST_FIELD_SIZE (GLYPHMETRICSFLOAT, gmfCellIncY, 4)
9661 TEST_FIELD_ALIGN (GLYPHMETRICSFLOAT, gmfCellIncY, 4)
9662 TEST_FIELD_OFFSET(GLYPHMETRICSFLOAT, gmfCellIncY, 20)
9665 static void test_pack_GOBJENUMPROC(void)
9667 /* GOBJENUMPROC */
9668 TEST_TYPE_SIZE (GOBJENUMPROC, 4)
9669 TEST_TYPE_ALIGN (GOBJENUMPROC, 4)
9672 static void test_pack_GRADIENT_RECT(void)
9674 /* GRADIENT_RECT */
9675 TEST_TYPE_SIZE (GRADIENT_RECT, 8)
9676 TEST_TYPE_ALIGN (GRADIENT_RECT, 4)
9677 TEST_FIELD_SIZE (GRADIENT_RECT, UpperLeft, 4)
9678 TEST_FIELD_ALIGN (GRADIENT_RECT, UpperLeft, 4)
9679 TEST_FIELD_OFFSET(GRADIENT_RECT, UpperLeft, 0)
9680 TEST_FIELD_SIZE (GRADIENT_RECT, LowerRight, 4)
9681 TEST_FIELD_ALIGN (GRADIENT_RECT, LowerRight, 4)
9682 TEST_FIELD_OFFSET(GRADIENT_RECT, LowerRight, 4)
9685 static void test_pack_GRADIENT_TRIANGLE(void)
9687 /* GRADIENT_TRIANGLE */
9688 TEST_TYPE_SIZE (GRADIENT_TRIANGLE, 12)
9689 TEST_TYPE_ALIGN (GRADIENT_TRIANGLE, 4)
9690 TEST_FIELD_SIZE (GRADIENT_TRIANGLE, Vertex1, 4)
9691 TEST_FIELD_ALIGN (GRADIENT_TRIANGLE, Vertex1, 4)
9692 TEST_FIELD_OFFSET(GRADIENT_TRIANGLE, Vertex1, 0)
9693 TEST_FIELD_SIZE (GRADIENT_TRIANGLE, Vertex2, 4)
9694 TEST_FIELD_ALIGN (GRADIENT_TRIANGLE, Vertex2, 4)
9695 TEST_FIELD_OFFSET(GRADIENT_TRIANGLE, Vertex2, 4)
9696 TEST_FIELD_SIZE (GRADIENT_TRIANGLE, Vertex3, 4)
9697 TEST_FIELD_ALIGN (GRADIENT_TRIANGLE, Vertex3, 4)
9698 TEST_FIELD_OFFSET(GRADIENT_TRIANGLE, Vertex3, 8)
9701 static void test_pack_HANDLETABLE(void)
9703 /* HANDLETABLE */
9704 TEST_TYPE_SIZE (HANDLETABLE, 4)
9705 TEST_TYPE_ALIGN (HANDLETABLE, 4)
9706 TEST_FIELD_SIZE (HANDLETABLE, objectHandle, 4)
9707 TEST_FIELD_ALIGN (HANDLETABLE, objectHandle, 4)
9708 TEST_FIELD_OFFSET(HANDLETABLE, objectHandle, 0)
9711 static void test_pack_ICMENUMPROCA(void)
9713 /* ICMENUMPROCA */
9714 TEST_TYPE_SIZE (ICMENUMPROCA, 4)
9715 TEST_TYPE_ALIGN (ICMENUMPROCA, 4)
9718 static void test_pack_ICMENUMPROCW(void)
9720 /* ICMENUMPROCW */
9721 TEST_TYPE_SIZE (ICMENUMPROCW, 4)
9722 TEST_TYPE_ALIGN (ICMENUMPROCW, 4)
9725 static void test_pack_KERNINGPAIR(void)
9727 /* KERNINGPAIR */
9728 TEST_TYPE_SIZE (KERNINGPAIR, 8)
9729 TEST_TYPE_ALIGN (KERNINGPAIR, 4)
9730 TEST_FIELD_SIZE (KERNINGPAIR, wFirst, 2)
9731 TEST_FIELD_ALIGN (KERNINGPAIR, wFirst, 2)
9732 TEST_FIELD_OFFSET(KERNINGPAIR, wFirst, 0)
9733 TEST_FIELD_SIZE (KERNINGPAIR, wSecond, 2)
9734 TEST_FIELD_ALIGN (KERNINGPAIR, wSecond, 2)
9735 TEST_FIELD_OFFSET(KERNINGPAIR, wSecond, 2)
9736 TEST_FIELD_SIZE (KERNINGPAIR, iKernAmount, 4)
9737 TEST_FIELD_ALIGN (KERNINGPAIR, iKernAmount, 4)
9738 TEST_FIELD_OFFSET(KERNINGPAIR, iKernAmount, 4)
9741 static void test_pack_LAYERPLANEDESCRIPTOR(void)
9743 /* LAYERPLANEDESCRIPTOR */
9744 TEST_TYPE_SIZE (LAYERPLANEDESCRIPTOR, 32)
9745 TEST_TYPE_ALIGN (LAYERPLANEDESCRIPTOR, 4)
9746 TEST_FIELD_SIZE (LAYERPLANEDESCRIPTOR, nSize, 2)
9747 TEST_FIELD_ALIGN (LAYERPLANEDESCRIPTOR, nSize, 2)
9748 TEST_FIELD_OFFSET(LAYERPLANEDESCRIPTOR, nSize, 0)
9749 TEST_FIELD_SIZE (LAYERPLANEDESCRIPTOR, nVersion, 2)
9750 TEST_FIELD_ALIGN (LAYERPLANEDESCRIPTOR, nVersion, 2)
9751 TEST_FIELD_OFFSET(LAYERPLANEDESCRIPTOR, nVersion, 2)
9752 TEST_FIELD_SIZE (LAYERPLANEDESCRIPTOR, dwFlags, 4)
9753 TEST_FIELD_ALIGN (LAYERPLANEDESCRIPTOR, dwFlags, 4)
9754 TEST_FIELD_OFFSET(LAYERPLANEDESCRIPTOR, dwFlags, 4)
9755 TEST_FIELD_SIZE (LAYERPLANEDESCRIPTOR, iPixelType, 1)
9756 TEST_FIELD_ALIGN (LAYERPLANEDESCRIPTOR, iPixelType, 1)
9757 TEST_FIELD_OFFSET(LAYERPLANEDESCRIPTOR, iPixelType, 8)
9758 TEST_FIELD_SIZE (LAYERPLANEDESCRIPTOR, cColorBits, 1)
9759 TEST_FIELD_ALIGN (LAYERPLANEDESCRIPTOR, cColorBits, 1)
9760 TEST_FIELD_OFFSET(LAYERPLANEDESCRIPTOR, cColorBits, 9)
9761 TEST_FIELD_SIZE (LAYERPLANEDESCRIPTOR, cRedBits, 1)
9762 TEST_FIELD_ALIGN (LAYERPLANEDESCRIPTOR, cRedBits, 1)
9763 TEST_FIELD_OFFSET(LAYERPLANEDESCRIPTOR, cRedBits, 10)
9764 TEST_FIELD_SIZE (LAYERPLANEDESCRIPTOR, cRedShift, 1)
9765 TEST_FIELD_ALIGN (LAYERPLANEDESCRIPTOR, cRedShift, 1)
9766 TEST_FIELD_OFFSET(LAYERPLANEDESCRIPTOR, cRedShift, 11)
9767 TEST_FIELD_SIZE (LAYERPLANEDESCRIPTOR, cGreenBits, 1)
9768 TEST_FIELD_ALIGN (LAYERPLANEDESCRIPTOR, cGreenBits, 1)
9769 TEST_FIELD_OFFSET(LAYERPLANEDESCRIPTOR, cGreenBits, 12)
9770 TEST_FIELD_SIZE (LAYERPLANEDESCRIPTOR, cGreenShift, 1)
9771 TEST_FIELD_ALIGN (LAYERPLANEDESCRIPTOR, cGreenShift, 1)
9772 TEST_FIELD_OFFSET(LAYERPLANEDESCRIPTOR, cGreenShift, 13)
9773 TEST_FIELD_SIZE (LAYERPLANEDESCRIPTOR, cBlueBits, 1)
9774 TEST_FIELD_ALIGN (LAYERPLANEDESCRIPTOR, cBlueBits, 1)
9775 TEST_FIELD_OFFSET(LAYERPLANEDESCRIPTOR, cBlueBits, 14)
9776 TEST_FIELD_SIZE (LAYERPLANEDESCRIPTOR, cBlueShift, 1)
9777 TEST_FIELD_ALIGN (LAYERPLANEDESCRIPTOR, cBlueShift, 1)
9778 TEST_FIELD_OFFSET(LAYERPLANEDESCRIPTOR, cBlueShift, 15)
9779 TEST_FIELD_SIZE (LAYERPLANEDESCRIPTOR, cAlphaBits, 1)
9780 TEST_FIELD_ALIGN (LAYERPLANEDESCRIPTOR, cAlphaBits, 1)
9781 TEST_FIELD_OFFSET(LAYERPLANEDESCRIPTOR, cAlphaBits, 16)
9782 TEST_FIELD_SIZE (LAYERPLANEDESCRIPTOR, cAlphaShift, 1)
9783 TEST_FIELD_ALIGN (LAYERPLANEDESCRIPTOR, cAlphaShift, 1)
9784 TEST_FIELD_OFFSET(LAYERPLANEDESCRIPTOR, cAlphaShift, 17)
9785 TEST_FIELD_SIZE (LAYERPLANEDESCRIPTOR, cAccumBits, 1)
9786 TEST_FIELD_ALIGN (LAYERPLANEDESCRIPTOR, cAccumBits, 1)
9787 TEST_FIELD_OFFSET(LAYERPLANEDESCRIPTOR, cAccumBits, 18)
9788 TEST_FIELD_SIZE (LAYERPLANEDESCRIPTOR, cAccumRedBits, 1)
9789 TEST_FIELD_ALIGN (LAYERPLANEDESCRIPTOR, cAccumRedBits, 1)
9790 TEST_FIELD_OFFSET(LAYERPLANEDESCRIPTOR, cAccumRedBits, 19)
9791 TEST_FIELD_SIZE (LAYERPLANEDESCRIPTOR, cAccumGreenBits, 1)
9792 TEST_FIELD_ALIGN (LAYERPLANEDESCRIPTOR, cAccumGreenBits, 1)
9793 TEST_FIELD_OFFSET(LAYERPLANEDESCRIPTOR, cAccumGreenBits, 20)
9794 TEST_FIELD_SIZE (LAYERPLANEDESCRIPTOR, cAccumBlueBits, 1)
9795 TEST_FIELD_ALIGN (LAYERPLANEDESCRIPTOR, cAccumBlueBits, 1)
9796 TEST_FIELD_OFFSET(LAYERPLANEDESCRIPTOR, cAccumBlueBits, 21)
9797 TEST_FIELD_SIZE (LAYERPLANEDESCRIPTOR, cAccumAlphaBits, 1)
9798 TEST_FIELD_ALIGN (LAYERPLANEDESCRIPTOR, cAccumAlphaBits, 1)
9799 TEST_FIELD_OFFSET(LAYERPLANEDESCRIPTOR, cAccumAlphaBits, 22)
9800 TEST_FIELD_SIZE (LAYERPLANEDESCRIPTOR, cDepthBits, 1)
9801 TEST_FIELD_ALIGN (LAYERPLANEDESCRIPTOR, cDepthBits, 1)
9802 TEST_FIELD_OFFSET(LAYERPLANEDESCRIPTOR, cDepthBits, 23)
9803 TEST_FIELD_SIZE (LAYERPLANEDESCRIPTOR, cStencilBits, 1)
9804 TEST_FIELD_ALIGN (LAYERPLANEDESCRIPTOR, cStencilBits, 1)
9805 TEST_FIELD_OFFSET(LAYERPLANEDESCRIPTOR, cStencilBits, 24)
9806 TEST_FIELD_SIZE (LAYERPLANEDESCRIPTOR, cAuxBuffers, 1)
9807 TEST_FIELD_ALIGN (LAYERPLANEDESCRIPTOR, cAuxBuffers, 1)
9808 TEST_FIELD_OFFSET(LAYERPLANEDESCRIPTOR, cAuxBuffers, 25)
9809 TEST_FIELD_SIZE (LAYERPLANEDESCRIPTOR, iLayerPlane, 1)
9810 TEST_FIELD_ALIGN (LAYERPLANEDESCRIPTOR, iLayerPlane, 1)
9811 TEST_FIELD_OFFSET(LAYERPLANEDESCRIPTOR, iLayerPlane, 26)
9812 TEST_FIELD_SIZE (LAYERPLANEDESCRIPTOR, bReserved, 1)
9813 TEST_FIELD_ALIGN (LAYERPLANEDESCRIPTOR, bReserved, 1)
9814 TEST_FIELD_OFFSET(LAYERPLANEDESCRIPTOR, bReserved, 27)
9815 TEST_FIELD_SIZE (LAYERPLANEDESCRIPTOR, crTransparent, 4)
9816 TEST_FIELD_ALIGN (LAYERPLANEDESCRIPTOR, crTransparent, 4)
9817 TEST_FIELD_OFFSET(LAYERPLANEDESCRIPTOR, crTransparent, 28)
9820 static void test_pack_LCSCSTYPE(void)
9822 /* LCSCSTYPE */
9823 TEST_TYPE_SIZE (LCSCSTYPE, 4)
9824 TEST_TYPE_ALIGN (LCSCSTYPE, 4)
9827 static void test_pack_LCSGAMUTMATCH(void)
9829 /* LCSGAMUTMATCH */
9830 TEST_TYPE_SIZE (LCSGAMUTMATCH, 4)
9831 TEST_TYPE_ALIGN (LCSGAMUTMATCH, 4)
9834 static void test_pack_LINEDDAPROC(void)
9836 /* LINEDDAPROC */
9837 TEST_TYPE_SIZE (LINEDDAPROC, 4)
9838 TEST_TYPE_ALIGN (LINEDDAPROC, 4)
9841 static void test_pack_LOCALESIGNATURE(void)
9843 /* LOCALESIGNATURE */
9844 TEST_TYPE_SIZE (LOCALESIGNATURE, 32)
9845 TEST_TYPE_ALIGN (LOCALESIGNATURE, 4)
9846 TEST_FIELD_SIZE (LOCALESIGNATURE, lsUsb, 16)
9847 TEST_FIELD_ALIGN (LOCALESIGNATURE, lsUsb, 4)
9848 TEST_FIELD_OFFSET(LOCALESIGNATURE, lsUsb, 0)
9849 TEST_FIELD_SIZE (LOCALESIGNATURE, lsCsbDefault, 8)
9850 TEST_FIELD_ALIGN (LOCALESIGNATURE, lsCsbDefault, 4)
9851 TEST_FIELD_OFFSET(LOCALESIGNATURE, lsCsbDefault, 16)
9852 TEST_FIELD_SIZE (LOCALESIGNATURE, lsCsbSupported, 8)
9853 TEST_FIELD_ALIGN (LOCALESIGNATURE, lsCsbSupported, 4)
9854 TEST_FIELD_OFFSET(LOCALESIGNATURE, lsCsbSupported, 24)
9857 static void test_pack_LOGBRUSH(void)
9859 /* LOGBRUSH */
9860 TEST_TYPE_SIZE (LOGBRUSH, 12)
9861 TEST_TYPE_ALIGN (LOGBRUSH, 4)
9862 TEST_FIELD_SIZE (LOGBRUSH, lbStyle, 4)
9863 TEST_FIELD_ALIGN (LOGBRUSH, lbStyle, 4)
9864 TEST_FIELD_OFFSET(LOGBRUSH, lbStyle, 0)
9865 TEST_FIELD_SIZE (LOGBRUSH, lbColor, 4)
9866 TEST_FIELD_ALIGN (LOGBRUSH, lbColor, 4)
9867 TEST_FIELD_OFFSET(LOGBRUSH, lbColor, 4)
9868 TEST_FIELD_SIZE (LOGBRUSH, lbHatch, 4)
9869 TEST_FIELD_ALIGN (LOGBRUSH, lbHatch, 4)
9870 TEST_FIELD_OFFSET(LOGBRUSH, lbHatch, 8)
9873 static void test_pack_LOGCOLORSPACEA(void)
9875 /* LOGCOLORSPACEA */
9876 TEST_TYPE_SIZE (LOGCOLORSPACEA, 328)
9877 TEST_TYPE_ALIGN (LOGCOLORSPACEA, 4)
9878 TEST_FIELD_SIZE (LOGCOLORSPACEA, lcsSignature, 4)
9879 TEST_FIELD_ALIGN (LOGCOLORSPACEA, lcsSignature, 4)
9880 TEST_FIELD_OFFSET(LOGCOLORSPACEA, lcsSignature, 0)
9881 TEST_FIELD_SIZE (LOGCOLORSPACEA, lcsVersion, 4)
9882 TEST_FIELD_ALIGN (LOGCOLORSPACEA, lcsVersion, 4)
9883 TEST_FIELD_OFFSET(LOGCOLORSPACEA, lcsVersion, 4)
9884 TEST_FIELD_SIZE (LOGCOLORSPACEA, lcsSize, 4)
9885 TEST_FIELD_ALIGN (LOGCOLORSPACEA, lcsSize, 4)
9886 TEST_FIELD_OFFSET(LOGCOLORSPACEA, lcsSize, 8)
9887 TEST_FIELD_SIZE (LOGCOLORSPACEA, lcsCSType, 4)
9888 TEST_FIELD_ALIGN (LOGCOLORSPACEA, lcsCSType, 4)
9889 TEST_FIELD_OFFSET(LOGCOLORSPACEA, lcsCSType, 12)
9890 TEST_FIELD_SIZE (LOGCOLORSPACEA, lcsIntent, 4)
9891 TEST_FIELD_ALIGN (LOGCOLORSPACEA, lcsIntent, 4)
9892 TEST_FIELD_OFFSET(LOGCOLORSPACEA, lcsIntent, 16)
9893 TEST_FIELD_SIZE (LOGCOLORSPACEA, lcsEndpoints, 36)
9894 TEST_FIELD_ALIGN (LOGCOLORSPACEA, lcsEndpoints, 4)
9895 TEST_FIELD_OFFSET(LOGCOLORSPACEA, lcsEndpoints, 20)
9896 TEST_FIELD_SIZE (LOGCOLORSPACEA, lcsGammaRed, 4)
9897 TEST_FIELD_ALIGN (LOGCOLORSPACEA, lcsGammaRed, 4)
9898 TEST_FIELD_OFFSET(LOGCOLORSPACEA, lcsGammaRed, 56)
9899 TEST_FIELD_SIZE (LOGCOLORSPACEA, lcsGammaGreen, 4)
9900 TEST_FIELD_ALIGN (LOGCOLORSPACEA, lcsGammaGreen, 4)
9901 TEST_FIELD_OFFSET(LOGCOLORSPACEA, lcsGammaGreen, 60)
9902 TEST_FIELD_SIZE (LOGCOLORSPACEA, lcsGammaBlue, 4)
9903 TEST_FIELD_ALIGN (LOGCOLORSPACEA, lcsGammaBlue, 4)
9904 TEST_FIELD_OFFSET(LOGCOLORSPACEA, lcsGammaBlue, 64)
9905 TEST_FIELD_SIZE (LOGCOLORSPACEA, lcsFilename, 260)
9906 TEST_FIELD_ALIGN (LOGCOLORSPACEA, lcsFilename, 1)
9907 TEST_FIELD_OFFSET(LOGCOLORSPACEA, lcsFilename, 68)
9910 static void test_pack_LOGCOLORSPACEW(void)
9912 /* LOGCOLORSPACEW */
9913 TEST_TYPE_SIZE (LOGCOLORSPACEW, 588)
9914 TEST_TYPE_ALIGN (LOGCOLORSPACEW, 4)
9915 TEST_FIELD_SIZE (LOGCOLORSPACEW, lcsSignature, 4)
9916 TEST_FIELD_ALIGN (LOGCOLORSPACEW, lcsSignature, 4)
9917 TEST_FIELD_OFFSET(LOGCOLORSPACEW, lcsSignature, 0)
9918 TEST_FIELD_SIZE (LOGCOLORSPACEW, lcsVersion, 4)
9919 TEST_FIELD_ALIGN (LOGCOLORSPACEW, lcsVersion, 4)
9920 TEST_FIELD_OFFSET(LOGCOLORSPACEW, lcsVersion, 4)
9921 TEST_FIELD_SIZE (LOGCOLORSPACEW, lcsSize, 4)
9922 TEST_FIELD_ALIGN (LOGCOLORSPACEW, lcsSize, 4)
9923 TEST_FIELD_OFFSET(LOGCOLORSPACEW, lcsSize, 8)
9924 TEST_FIELD_SIZE (LOGCOLORSPACEW, lcsCSType, 4)
9925 TEST_FIELD_ALIGN (LOGCOLORSPACEW, lcsCSType, 4)
9926 TEST_FIELD_OFFSET(LOGCOLORSPACEW, lcsCSType, 12)
9927 TEST_FIELD_SIZE (LOGCOLORSPACEW, lcsIntent, 4)
9928 TEST_FIELD_ALIGN (LOGCOLORSPACEW, lcsIntent, 4)
9929 TEST_FIELD_OFFSET(LOGCOLORSPACEW, lcsIntent, 16)
9930 TEST_FIELD_SIZE (LOGCOLORSPACEW, lcsEndpoints, 36)
9931 TEST_FIELD_ALIGN (LOGCOLORSPACEW, lcsEndpoints, 4)
9932 TEST_FIELD_OFFSET(LOGCOLORSPACEW, lcsEndpoints, 20)
9933 TEST_FIELD_SIZE (LOGCOLORSPACEW, lcsGammaRed, 4)
9934 TEST_FIELD_ALIGN (LOGCOLORSPACEW, lcsGammaRed, 4)
9935 TEST_FIELD_OFFSET(LOGCOLORSPACEW, lcsGammaRed, 56)
9936 TEST_FIELD_SIZE (LOGCOLORSPACEW, lcsGammaGreen, 4)
9937 TEST_FIELD_ALIGN (LOGCOLORSPACEW, lcsGammaGreen, 4)
9938 TEST_FIELD_OFFSET(LOGCOLORSPACEW, lcsGammaGreen, 60)
9939 TEST_FIELD_SIZE (LOGCOLORSPACEW, lcsGammaBlue, 4)
9940 TEST_FIELD_ALIGN (LOGCOLORSPACEW, lcsGammaBlue, 4)
9941 TEST_FIELD_OFFSET(LOGCOLORSPACEW, lcsGammaBlue, 64)
9942 TEST_FIELD_SIZE (LOGCOLORSPACEW, lcsFilename, 520)
9943 TEST_FIELD_ALIGN (LOGCOLORSPACEW, lcsFilename, 2)
9944 TEST_FIELD_OFFSET(LOGCOLORSPACEW, lcsFilename, 68)
9947 static void test_pack_LOGFONTA(void)
9949 /* LOGFONTA */
9950 TEST_TYPE_SIZE (LOGFONTA, 60)
9951 TEST_TYPE_ALIGN (LOGFONTA, 4)
9952 TEST_FIELD_SIZE (LOGFONTA, lfHeight, 4)
9953 TEST_FIELD_ALIGN (LOGFONTA, lfHeight, 4)
9954 TEST_FIELD_OFFSET(LOGFONTA, lfHeight, 0)
9955 TEST_FIELD_SIZE (LOGFONTA, lfWidth, 4)
9956 TEST_FIELD_ALIGN (LOGFONTA, lfWidth, 4)
9957 TEST_FIELD_OFFSET(LOGFONTA, lfWidth, 4)
9958 TEST_FIELD_SIZE (LOGFONTA, lfEscapement, 4)
9959 TEST_FIELD_ALIGN (LOGFONTA, lfEscapement, 4)
9960 TEST_FIELD_OFFSET(LOGFONTA, lfEscapement, 8)
9961 TEST_FIELD_SIZE (LOGFONTA, lfOrientation, 4)
9962 TEST_FIELD_ALIGN (LOGFONTA, lfOrientation, 4)
9963 TEST_FIELD_OFFSET(LOGFONTA, lfOrientation, 12)
9964 TEST_FIELD_SIZE (LOGFONTA, lfWeight, 4)
9965 TEST_FIELD_ALIGN (LOGFONTA, lfWeight, 4)
9966 TEST_FIELD_OFFSET(LOGFONTA, lfWeight, 16)
9967 TEST_FIELD_SIZE (LOGFONTA, lfItalic, 1)
9968 TEST_FIELD_ALIGN (LOGFONTA, lfItalic, 1)
9969 TEST_FIELD_OFFSET(LOGFONTA, lfItalic, 20)
9970 TEST_FIELD_SIZE (LOGFONTA, lfUnderline, 1)
9971 TEST_FIELD_ALIGN (LOGFONTA, lfUnderline, 1)
9972 TEST_FIELD_OFFSET(LOGFONTA, lfUnderline, 21)
9973 TEST_FIELD_SIZE (LOGFONTA, lfStrikeOut, 1)
9974 TEST_FIELD_ALIGN (LOGFONTA, lfStrikeOut, 1)
9975 TEST_FIELD_OFFSET(LOGFONTA, lfStrikeOut, 22)
9976 TEST_FIELD_SIZE (LOGFONTA, lfCharSet, 1)
9977 TEST_FIELD_ALIGN (LOGFONTA, lfCharSet, 1)
9978 TEST_FIELD_OFFSET(LOGFONTA, lfCharSet, 23)
9979 TEST_FIELD_SIZE (LOGFONTA, lfOutPrecision, 1)
9980 TEST_FIELD_ALIGN (LOGFONTA, lfOutPrecision, 1)
9981 TEST_FIELD_OFFSET(LOGFONTA, lfOutPrecision, 24)
9982 TEST_FIELD_SIZE (LOGFONTA, lfClipPrecision, 1)
9983 TEST_FIELD_ALIGN (LOGFONTA, lfClipPrecision, 1)
9984 TEST_FIELD_OFFSET(LOGFONTA, lfClipPrecision, 25)
9985 TEST_FIELD_SIZE (LOGFONTA, lfQuality, 1)
9986 TEST_FIELD_ALIGN (LOGFONTA, lfQuality, 1)
9987 TEST_FIELD_OFFSET(LOGFONTA, lfQuality, 26)
9988 TEST_FIELD_SIZE (LOGFONTA, lfPitchAndFamily, 1)
9989 TEST_FIELD_ALIGN (LOGFONTA, lfPitchAndFamily, 1)
9990 TEST_FIELD_OFFSET(LOGFONTA, lfPitchAndFamily, 27)
9991 TEST_FIELD_SIZE (LOGFONTA, lfFaceName, 32)
9992 TEST_FIELD_ALIGN (LOGFONTA, lfFaceName, 1)
9993 TEST_FIELD_OFFSET(LOGFONTA, lfFaceName, 28)
9996 static void test_pack_LOGFONTW(void)
9998 /* LOGFONTW */
9999 TEST_TYPE_SIZE (LOGFONTW, 92)
10000 TEST_TYPE_ALIGN (LOGFONTW, 4)
10001 TEST_FIELD_SIZE (LOGFONTW, lfHeight, 4)
10002 TEST_FIELD_ALIGN (LOGFONTW, lfHeight, 4)
10003 TEST_FIELD_OFFSET(LOGFONTW, lfHeight, 0)
10004 TEST_FIELD_SIZE (LOGFONTW, lfWidth, 4)
10005 TEST_FIELD_ALIGN (LOGFONTW, lfWidth, 4)
10006 TEST_FIELD_OFFSET(LOGFONTW, lfWidth, 4)
10007 TEST_FIELD_SIZE (LOGFONTW, lfEscapement, 4)
10008 TEST_FIELD_ALIGN (LOGFONTW, lfEscapement, 4)
10009 TEST_FIELD_OFFSET(LOGFONTW, lfEscapement, 8)
10010 TEST_FIELD_SIZE (LOGFONTW, lfOrientation, 4)
10011 TEST_FIELD_ALIGN (LOGFONTW, lfOrientation, 4)
10012 TEST_FIELD_OFFSET(LOGFONTW, lfOrientation, 12)
10013 TEST_FIELD_SIZE (LOGFONTW, lfWeight, 4)
10014 TEST_FIELD_ALIGN (LOGFONTW, lfWeight, 4)
10015 TEST_FIELD_OFFSET(LOGFONTW, lfWeight, 16)
10016 TEST_FIELD_SIZE (LOGFONTW, lfItalic, 1)
10017 TEST_FIELD_ALIGN (LOGFONTW, lfItalic, 1)
10018 TEST_FIELD_OFFSET(LOGFONTW, lfItalic, 20)
10019 TEST_FIELD_SIZE (LOGFONTW, lfUnderline, 1)
10020 TEST_FIELD_ALIGN (LOGFONTW, lfUnderline, 1)
10021 TEST_FIELD_OFFSET(LOGFONTW, lfUnderline, 21)
10022 TEST_FIELD_SIZE (LOGFONTW, lfStrikeOut, 1)
10023 TEST_FIELD_ALIGN (LOGFONTW, lfStrikeOut, 1)
10024 TEST_FIELD_OFFSET(LOGFONTW, lfStrikeOut, 22)
10025 TEST_FIELD_SIZE (LOGFONTW, lfCharSet, 1)
10026 TEST_FIELD_ALIGN (LOGFONTW, lfCharSet, 1)
10027 TEST_FIELD_OFFSET(LOGFONTW, lfCharSet, 23)
10028 TEST_FIELD_SIZE (LOGFONTW, lfOutPrecision, 1)
10029 TEST_FIELD_ALIGN (LOGFONTW, lfOutPrecision, 1)
10030 TEST_FIELD_OFFSET(LOGFONTW, lfOutPrecision, 24)
10031 TEST_FIELD_SIZE (LOGFONTW, lfClipPrecision, 1)
10032 TEST_FIELD_ALIGN (LOGFONTW, lfClipPrecision, 1)
10033 TEST_FIELD_OFFSET(LOGFONTW, lfClipPrecision, 25)
10034 TEST_FIELD_SIZE (LOGFONTW, lfQuality, 1)
10035 TEST_FIELD_ALIGN (LOGFONTW, lfQuality, 1)
10036 TEST_FIELD_OFFSET(LOGFONTW, lfQuality, 26)
10037 TEST_FIELD_SIZE (LOGFONTW, lfPitchAndFamily, 1)
10038 TEST_FIELD_ALIGN (LOGFONTW, lfPitchAndFamily, 1)
10039 TEST_FIELD_OFFSET(LOGFONTW, lfPitchAndFamily, 27)
10040 TEST_FIELD_SIZE (LOGFONTW, lfFaceName, 64)
10041 TEST_FIELD_ALIGN (LOGFONTW, lfFaceName, 2)
10042 TEST_FIELD_OFFSET(LOGFONTW, lfFaceName, 28)
10045 static void test_pack_LOGPEN(void)
10047 /* LOGPEN */
10048 TEST_TYPE_SIZE (LOGPEN, 16)
10049 TEST_TYPE_ALIGN (LOGPEN, 4)
10050 TEST_FIELD_SIZE (LOGPEN, lopnStyle, 4)
10051 TEST_FIELD_ALIGN (LOGPEN, lopnStyle, 4)
10052 TEST_FIELD_OFFSET(LOGPEN, lopnStyle, 0)
10053 TEST_FIELD_SIZE (LOGPEN, lopnWidth, 8)
10054 TEST_FIELD_ALIGN (LOGPEN, lopnWidth, 4)
10055 TEST_FIELD_OFFSET(LOGPEN, lopnWidth, 4)
10056 TEST_FIELD_SIZE (LOGPEN, lopnColor, 4)
10057 TEST_FIELD_ALIGN (LOGPEN, lopnColor, 4)
10058 TEST_FIELD_OFFSET(LOGPEN, lopnColor, 12)
10061 static void test_pack_LPABC(void)
10063 /* LPABC */
10064 TEST_TYPE_SIZE (LPABC, 4)
10065 TEST_TYPE_ALIGN (LPABC, 4)
10066 TEST_TARGET_SIZE (LPABC, 12)
10067 TEST_TARGET_ALIGN(LPABC, 4)
10070 static void test_pack_LPABCFLOAT(void)
10072 /* LPABCFLOAT */
10073 TEST_TYPE_SIZE (LPABCFLOAT, 4)
10074 TEST_TYPE_ALIGN (LPABCFLOAT, 4)
10075 TEST_TARGET_SIZE (LPABCFLOAT, 12)
10076 TEST_TARGET_ALIGN(LPABCFLOAT, 4)
10079 static void test_pack_LPBITMAP(void)
10081 /* LPBITMAP */
10082 TEST_TYPE_SIZE (LPBITMAP, 4)
10083 TEST_TYPE_ALIGN (LPBITMAP, 4)
10084 TEST_TARGET_SIZE (LPBITMAP, 24)
10085 TEST_TARGET_ALIGN(LPBITMAP, 4)
10088 static void test_pack_LPBITMAPCOREHEADER(void)
10090 /* LPBITMAPCOREHEADER */
10091 TEST_TYPE_SIZE (LPBITMAPCOREHEADER, 4)
10092 TEST_TYPE_ALIGN (LPBITMAPCOREHEADER, 4)
10093 TEST_TARGET_SIZE (LPBITMAPCOREHEADER, 12)
10094 TEST_TARGET_ALIGN(LPBITMAPCOREHEADER, 4)
10097 static void test_pack_LPBITMAPCOREINFO(void)
10099 /* LPBITMAPCOREINFO */
10100 TEST_TYPE_SIZE (LPBITMAPCOREINFO, 4)
10101 TEST_TYPE_ALIGN (LPBITMAPCOREINFO, 4)
10102 TEST_TARGET_SIZE (LPBITMAPCOREINFO, 16)
10103 TEST_TARGET_ALIGN(LPBITMAPCOREINFO, 4)
10106 static void test_pack_LPBITMAPFILEHEADER(void)
10108 /* LPBITMAPFILEHEADER */
10109 TEST_TYPE_SIZE (LPBITMAPFILEHEADER, 4)
10110 TEST_TYPE_ALIGN (LPBITMAPFILEHEADER, 4)
10111 TEST_TARGET_SIZE (LPBITMAPFILEHEADER, 14)
10112 TEST_TARGET_ALIGN(LPBITMAPFILEHEADER, 2)
10115 static void test_pack_LPBITMAPINFO(void)
10117 /* LPBITMAPINFO */
10118 TEST_TYPE_SIZE (LPBITMAPINFO, 4)
10119 TEST_TYPE_ALIGN (LPBITMAPINFO, 4)
10120 TEST_TARGET_SIZE (LPBITMAPINFO, 44)
10121 TEST_TARGET_ALIGN(LPBITMAPINFO, 4)
10124 static void test_pack_LPBITMAPINFOHEADER(void)
10126 /* LPBITMAPINFOHEADER */
10127 TEST_TYPE_SIZE (LPBITMAPINFOHEADER, 4)
10128 TEST_TYPE_ALIGN (LPBITMAPINFOHEADER, 4)
10129 TEST_TARGET_SIZE (LPBITMAPINFOHEADER, 40)
10130 TEST_TARGET_ALIGN(LPBITMAPINFOHEADER, 4)
10133 static void test_pack_LPBITMAPV5HEADER(void)
10135 /* LPBITMAPV5HEADER */
10136 TEST_TYPE_SIZE (LPBITMAPV5HEADER, 4)
10137 TEST_TYPE_ALIGN (LPBITMAPV5HEADER, 4)
10138 TEST_TARGET_SIZE (LPBITMAPV5HEADER, 124)
10139 TEST_TARGET_ALIGN(LPBITMAPV5HEADER, 4)
10142 static void test_pack_LPCHARSETINFO(void)
10144 /* LPCHARSETINFO */
10145 TEST_TYPE_SIZE (LPCHARSETINFO, 4)
10146 TEST_TYPE_ALIGN (LPCHARSETINFO, 4)
10147 TEST_TARGET_SIZE (LPCHARSETINFO, 32)
10148 TEST_TARGET_ALIGN(LPCHARSETINFO, 4)
10151 static void test_pack_LPCIEXYZ(void)
10153 /* LPCIEXYZ */
10154 TEST_TYPE_SIZE (LPCIEXYZ, 4)
10155 TEST_TYPE_ALIGN (LPCIEXYZ, 4)
10156 TEST_TARGET_SIZE (LPCIEXYZ, 12)
10157 TEST_TARGET_ALIGN(LPCIEXYZ, 4)
10160 static void test_pack_LPCIEXYZTRIPLE(void)
10162 /* LPCIEXYZTRIPLE */
10163 TEST_TYPE_SIZE (LPCIEXYZTRIPLE, 4)
10164 TEST_TYPE_ALIGN (LPCIEXYZTRIPLE, 4)
10165 TEST_TARGET_SIZE (LPCIEXYZTRIPLE, 36)
10166 TEST_TARGET_ALIGN(LPCIEXYZTRIPLE, 4)
10169 static void test_pack_LPCOLORADJUSTMENT(void)
10171 /* LPCOLORADJUSTMENT */
10172 TEST_TYPE_SIZE (LPCOLORADJUSTMENT, 4)
10173 TEST_TYPE_ALIGN (LPCOLORADJUSTMENT, 4)
10174 TEST_TARGET_SIZE (LPCOLORADJUSTMENT, 24)
10175 TEST_TARGET_ALIGN(LPCOLORADJUSTMENT, 2)
10178 static void test_pack_LPDEVMODEA(void)
10180 /* LPDEVMODEA */
10181 TEST_TYPE_SIZE (LPDEVMODEA, 4)
10182 TEST_TYPE_ALIGN (LPDEVMODEA, 4)
10185 static void test_pack_LPDEVMODEW(void)
10187 /* LPDEVMODEW */
10188 TEST_TYPE_SIZE (LPDEVMODEW, 4)
10189 TEST_TYPE_ALIGN (LPDEVMODEW, 4)
10192 static void test_pack_LPDIBSECTION(void)
10194 /* LPDIBSECTION */
10195 TEST_TYPE_SIZE (LPDIBSECTION, 4)
10196 TEST_TYPE_ALIGN (LPDIBSECTION, 4)
10197 TEST_TARGET_SIZE (LPDIBSECTION, 84)
10198 TEST_TARGET_ALIGN(LPDIBSECTION, 4)
10201 static void test_pack_LPDISPLAY_DEVICEA(void)
10203 /* LPDISPLAY_DEVICEA */
10204 TEST_TYPE_SIZE (LPDISPLAY_DEVICEA, 4)
10205 TEST_TYPE_ALIGN (LPDISPLAY_DEVICEA, 4)
10206 TEST_TARGET_SIZE (LPDISPLAY_DEVICEA, 424)
10207 TEST_TARGET_ALIGN(LPDISPLAY_DEVICEA, 4)
10210 static void test_pack_LPDISPLAY_DEVICEW(void)
10212 /* LPDISPLAY_DEVICEW */
10213 TEST_TYPE_SIZE (LPDISPLAY_DEVICEW, 4)
10214 TEST_TYPE_ALIGN (LPDISPLAY_DEVICEW, 4)
10215 TEST_TARGET_SIZE (LPDISPLAY_DEVICEW, 840)
10216 TEST_TARGET_ALIGN(LPDISPLAY_DEVICEW, 4)
10219 static void test_pack_LPDOCINFOA(void)
10221 /* LPDOCINFOA */
10222 TEST_TYPE_SIZE (LPDOCINFOA, 4)
10223 TEST_TYPE_ALIGN (LPDOCINFOA, 4)
10224 TEST_TARGET_SIZE (LPDOCINFOA, 20)
10225 TEST_TARGET_ALIGN(LPDOCINFOA, 4)
10228 static void test_pack_LPDOCINFOW(void)
10230 /* LPDOCINFOW */
10231 TEST_TYPE_SIZE (LPDOCINFOW, 4)
10232 TEST_TYPE_ALIGN (LPDOCINFOW, 4)
10233 TEST_TARGET_SIZE (LPDOCINFOW, 20)
10234 TEST_TARGET_ALIGN(LPDOCINFOW, 4)
10237 static void test_pack_LPENHMETAHEADER(void)
10239 /* LPENHMETAHEADER */
10240 TEST_TYPE_SIZE (LPENHMETAHEADER, 4)
10241 TEST_TYPE_ALIGN (LPENHMETAHEADER, 4)
10242 TEST_TARGET_SIZE (LPENHMETAHEADER, 108)
10243 TEST_TARGET_ALIGN(LPENHMETAHEADER, 4)
10246 static void test_pack_LPENHMETARECORD(void)
10248 /* LPENHMETARECORD */
10249 TEST_TYPE_SIZE (LPENHMETARECORD, 4)
10250 TEST_TYPE_ALIGN (LPENHMETARECORD, 4)
10251 TEST_TARGET_SIZE (LPENHMETARECORD, 12)
10252 TEST_TARGET_ALIGN(LPENHMETARECORD, 4)
10255 static void test_pack_LPENUMLOGFONTA(void)
10257 /* LPENUMLOGFONTA */
10258 TEST_TYPE_SIZE (LPENUMLOGFONTA, 4)
10259 TEST_TYPE_ALIGN (LPENUMLOGFONTA, 4)
10260 TEST_TARGET_SIZE (LPENUMLOGFONTA, 156)
10261 TEST_TARGET_ALIGN(LPENUMLOGFONTA, 4)
10264 static void test_pack_LPENUMLOGFONTEXA(void)
10266 /* LPENUMLOGFONTEXA */
10267 TEST_TYPE_SIZE (LPENUMLOGFONTEXA, 4)
10268 TEST_TYPE_ALIGN (LPENUMLOGFONTEXA, 4)
10269 TEST_TARGET_SIZE (LPENUMLOGFONTEXA, 188)
10270 TEST_TARGET_ALIGN(LPENUMLOGFONTEXA, 4)
10273 static void test_pack_LPENUMLOGFONTEXW(void)
10275 /* LPENUMLOGFONTEXW */
10276 TEST_TYPE_SIZE (LPENUMLOGFONTEXW, 4)
10277 TEST_TYPE_ALIGN (LPENUMLOGFONTEXW, 4)
10278 TEST_TARGET_SIZE (LPENUMLOGFONTEXW, 348)
10279 TEST_TARGET_ALIGN(LPENUMLOGFONTEXW, 4)
10282 static void test_pack_LPENUMLOGFONTW(void)
10284 /* LPENUMLOGFONTW */
10285 TEST_TYPE_SIZE (LPENUMLOGFONTW, 4)
10286 TEST_TYPE_ALIGN (LPENUMLOGFONTW, 4)
10287 TEST_TARGET_SIZE (LPENUMLOGFONTW, 284)
10288 TEST_TARGET_ALIGN(LPENUMLOGFONTW, 4)
10291 static void test_pack_LPEXTLOGFONTA(void)
10293 /* LPEXTLOGFONTA */
10294 TEST_TYPE_SIZE (LPEXTLOGFONTA, 4)
10295 TEST_TYPE_ALIGN (LPEXTLOGFONTA, 4)
10296 TEST_TARGET_SIZE (LPEXTLOGFONTA, 192)
10297 TEST_TARGET_ALIGN(LPEXTLOGFONTA, 4)
10300 static void test_pack_LPEXTLOGFONTW(void)
10302 /* LPEXTLOGFONTW */
10303 TEST_TYPE_SIZE (LPEXTLOGFONTW, 4)
10304 TEST_TYPE_ALIGN (LPEXTLOGFONTW, 4)
10305 TEST_TARGET_SIZE (LPEXTLOGFONTW, 320)
10306 TEST_TARGET_ALIGN(LPEXTLOGFONTW, 4)
10309 static void test_pack_LPEXTLOGPEN(void)
10311 /* LPEXTLOGPEN */
10312 TEST_TYPE_SIZE (LPEXTLOGPEN, 4)
10313 TEST_TYPE_ALIGN (LPEXTLOGPEN, 4)
10314 TEST_TARGET_SIZE (LPEXTLOGPEN, 28)
10315 TEST_TARGET_ALIGN(LPEXTLOGPEN, 4)
10318 static void test_pack_LPFONTSIGNATURE(void)
10320 /* LPFONTSIGNATURE */
10321 TEST_TYPE_SIZE (LPFONTSIGNATURE, 4)
10322 TEST_TYPE_ALIGN (LPFONTSIGNATURE, 4)
10323 TEST_TARGET_SIZE (LPFONTSIGNATURE, 24)
10324 TEST_TARGET_ALIGN(LPFONTSIGNATURE, 4)
10327 static void test_pack_LPGCP_RESULTSA(void)
10329 /* LPGCP_RESULTSA */
10330 TEST_TYPE_SIZE (LPGCP_RESULTSA, 4)
10331 TEST_TYPE_ALIGN (LPGCP_RESULTSA, 4)
10332 TEST_TARGET_SIZE (LPGCP_RESULTSA, 36)
10333 TEST_TARGET_ALIGN(LPGCP_RESULTSA, 4)
10336 static void test_pack_LPGCP_RESULTSW(void)
10338 /* LPGCP_RESULTSW */
10339 TEST_TYPE_SIZE (LPGCP_RESULTSW, 4)
10340 TEST_TYPE_ALIGN (LPGCP_RESULTSW, 4)
10341 TEST_TARGET_SIZE (LPGCP_RESULTSW, 36)
10342 TEST_TARGET_ALIGN(LPGCP_RESULTSW, 4)
10345 static void test_pack_LPGLYPHMETRICS(void)
10347 /* LPGLYPHMETRICS */
10348 TEST_TYPE_SIZE (LPGLYPHMETRICS, 4)
10349 TEST_TYPE_ALIGN (LPGLYPHMETRICS, 4)
10350 TEST_TARGET_SIZE (LPGLYPHMETRICS, 20)
10351 TEST_TARGET_ALIGN(LPGLYPHMETRICS, 4)
10354 static void test_pack_LPGLYPHMETRICSFLOAT(void)
10356 /* LPGLYPHMETRICSFLOAT */
10357 TEST_TYPE_SIZE (LPGLYPHMETRICSFLOAT, 4)
10358 TEST_TYPE_ALIGN (LPGLYPHMETRICSFLOAT, 4)
10359 TEST_TARGET_SIZE (LPGLYPHMETRICSFLOAT, 24)
10360 TEST_TARGET_ALIGN(LPGLYPHMETRICSFLOAT, 4)
10363 static void test_pack_LPGRADIENT_RECT(void)
10365 /* LPGRADIENT_RECT */
10366 TEST_TYPE_SIZE (LPGRADIENT_RECT, 4)
10367 TEST_TYPE_ALIGN (LPGRADIENT_RECT, 4)
10368 TEST_TARGET_SIZE (LPGRADIENT_RECT, 8)
10369 TEST_TARGET_ALIGN(LPGRADIENT_RECT, 4)
10372 static void test_pack_LPGRADIENT_TRIANGLE(void)
10374 /* LPGRADIENT_TRIANGLE */
10375 TEST_TYPE_SIZE (LPGRADIENT_TRIANGLE, 4)
10376 TEST_TYPE_ALIGN (LPGRADIENT_TRIANGLE, 4)
10377 TEST_TARGET_SIZE (LPGRADIENT_TRIANGLE, 12)
10378 TEST_TARGET_ALIGN(LPGRADIENT_TRIANGLE, 4)
10381 static void test_pack_LPHANDLETABLE(void)
10383 /* LPHANDLETABLE */
10384 TEST_TYPE_SIZE (LPHANDLETABLE, 4)
10385 TEST_TYPE_ALIGN (LPHANDLETABLE, 4)
10386 TEST_TARGET_SIZE (LPHANDLETABLE, 4)
10387 TEST_TARGET_ALIGN(LPHANDLETABLE, 4)
10390 static void test_pack_LPKERNINGPAIR(void)
10392 /* LPKERNINGPAIR */
10393 TEST_TYPE_SIZE (LPKERNINGPAIR, 4)
10394 TEST_TYPE_ALIGN (LPKERNINGPAIR, 4)
10395 TEST_TARGET_SIZE (LPKERNINGPAIR, 8)
10396 TEST_TARGET_ALIGN(LPKERNINGPAIR, 4)
10399 static void test_pack_LPLAYERPLANEDESCRIPTOR(void)
10401 /* LPLAYERPLANEDESCRIPTOR */
10402 TEST_TYPE_SIZE (LPLAYERPLANEDESCRIPTOR, 4)
10403 TEST_TYPE_ALIGN (LPLAYERPLANEDESCRIPTOR, 4)
10404 TEST_TARGET_SIZE (LPLAYERPLANEDESCRIPTOR, 32)
10405 TEST_TARGET_ALIGN(LPLAYERPLANEDESCRIPTOR, 4)
10408 static void test_pack_LPLOCALESIGNATURE(void)
10410 /* LPLOCALESIGNATURE */
10411 TEST_TYPE_SIZE (LPLOCALESIGNATURE, 4)
10412 TEST_TYPE_ALIGN (LPLOCALESIGNATURE, 4)
10413 TEST_TARGET_SIZE (LPLOCALESIGNATURE, 32)
10414 TEST_TARGET_ALIGN(LPLOCALESIGNATURE, 4)
10417 static void test_pack_LPLOGBRUSH(void)
10419 /* LPLOGBRUSH */
10420 TEST_TYPE_SIZE (LPLOGBRUSH, 4)
10421 TEST_TYPE_ALIGN (LPLOGBRUSH, 4)
10422 TEST_TARGET_SIZE (LPLOGBRUSH, 12)
10423 TEST_TARGET_ALIGN(LPLOGBRUSH, 4)
10426 static void test_pack_LPLOGCOLORSPACEA(void)
10428 /* LPLOGCOLORSPACEA */
10429 TEST_TYPE_SIZE (LPLOGCOLORSPACEA, 4)
10430 TEST_TYPE_ALIGN (LPLOGCOLORSPACEA, 4)
10431 TEST_TARGET_SIZE (LPLOGCOLORSPACEA, 328)
10432 TEST_TARGET_ALIGN(LPLOGCOLORSPACEA, 4)
10435 static void test_pack_LPLOGCOLORSPACEW(void)
10437 /* LPLOGCOLORSPACEW */
10438 TEST_TYPE_SIZE (LPLOGCOLORSPACEW, 4)
10439 TEST_TYPE_ALIGN (LPLOGCOLORSPACEW, 4)
10440 TEST_TARGET_SIZE (LPLOGCOLORSPACEW, 588)
10441 TEST_TARGET_ALIGN(LPLOGCOLORSPACEW, 4)
10444 static void test_pack_LPLOGFONTA(void)
10446 /* LPLOGFONTA */
10447 TEST_TYPE_SIZE (LPLOGFONTA, 4)
10448 TEST_TYPE_ALIGN (LPLOGFONTA, 4)
10449 TEST_TARGET_SIZE (LPLOGFONTA, 60)
10450 TEST_TARGET_ALIGN(LPLOGFONTA, 4)
10453 static void test_pack_LPLOGFONTW(void)
10455 /* LPLOGFONTW */
10456 TEST_TYPE_SIZE (LPLOGFONTW, 4)
10457 TEST_TYPE_ALIGN (LPLOGFONTW, 4)
10458 TEST_TARGET_SIZE (LPLOGFONTW, 92)
10459 TEST_TARGET_ALIGN(LPLOGFONTW, 4)
10462 static void test_pack_LPLOGPEN(void)
10464 /* LPLOGPEN */
10465 TEST_TYPE_SIZE (LPLOGPEN, 4)
10466 TEST_TYPE_ALIGN (LPLOGPEN, 4)
10467 TEST_TARGET_SIZE (LPLOGPEN, 16)
10468 TEST_TARGET_ALIGN(LPLOGPEN, 4)
10471 static void test_pack_LPMAT2(void)
10473 /* LPMAT2 */
10474 TEST_TYPE_SIZE (LPMAT2, 4)
10475 TEST_TYPE_ALIGN (LPMAT2, 4)
10476 TEST_TARGET_SIZE (LPMAT2, 16)
10477 TEST_TARGET_ALIGN(LPMAT2, 2)
10480 static void test_pack_LPMETAFILEPICT(void)
10482 /* LPMETAFILEPICT */
10483 TEST_TYPE_SIZE (LPMETAFILEPICT, 4)
10484 TEST_TYPE_ALIGN (LPMETAFILEPICT, 4)
10485 TEST_TARGET_SIZE (LPMETAFILEPICT, 16)
10486 TEST_TARGET_ALIGN(LPMETAFILEPICT, 4)
10489 static void test_pack_LPMETAHEADER(void)
10491 /* LPMETAHEADER */
10492 TEST_TYPE_SIZE (LPMETAHEADER, 4)
10493 TEST_TYPE_ALIGN (LPMETAHEADER, 4)
10494 TEST_TARGET_SIZE (LPMETAHEADER, 18)
10495 TEST_TARGET_ALIGN(LPMETAHEADER, 2)
10498 static void test_pack_LPMETARECORD(void)
10500 /* LPMETARECORD */
10501 TEST_TYPE_SIZE (LPMETARECORD, 4)
10502 TEST_TYPE_ALIGN (LPMETARECORD, 4)
10503 TEST_TARGET_SIZE (LPMETARECORD, 8)
10504 TEST_TARGET_ALIGN(LPMETARECORD, 4)
10507 static void test_pack_LPNEWTEXTMETRICA(void)
10509 /* LPNEWTEXTMETRICA */
10510 TEST_TYPE_SIZE (LPNEWTEXTMETRICA, 4)
10511 TEST_TYPE_ALIGN (LPNEWTEXTMETRICA, 4)
10512 TEST_TARGET_SIZE (LPNEWTEXTMETRICA, 72)
10513 TEST_TARGET_ALIGN(LPNEWTEXTMETRICA, 4)
10516 static void test_pack_LPNEWTEXTMETRICW(void)
10518 /* LPNEWTEXTMETRICW */
10519 TEST_TYPE_SIZE (LPNEWTEXTMETRICW, 4)
10520 TEST_TYPE_ALIGN (LPNEWTEXTMETRICW, 4)
10521 TEST_TARGET_SIZE (LPNEWTEXTMETRICW, 76)
10522 TEST_TARGET_ALIGN(LPNEWTEXTMETRICW, 4)
10525 static void test_pack_LPOUTLINETEXTMETRICA(void)
10527 /* LPOUTLINETEXTMETRICA */
10528 TEST_TYPE_SIZE (LPOUTLINETEXTMETRICA, 4)
10529 TEST_TYPE_ALIGN (LPOUTLINETEXTMETRICA, 4)
10530 TEST_TARGET_SIZE (LPOUTLINETEXTMETRICA, 212)
10531 TEST_TARGET_ALIGN(LPOUTLINETEXTMETRICA, 4)
10534 static void test_pack_LPOUTLINETEXTMETRICW(void)
10536 /* LPOUTLINETEXTMETRICW */
10537 TEST_TYPE_SIZE (LPOUTLINETEXTMETRICW, 4)
10538 TEST_TYPE_ALIGN (LPOUTLINETEXTMETRICW, 4)
10539 TEST_TARGET_SIZE (LPOUTLINETEXTMETRICW, 216)
10540 TEST_TARGET_ALIGN(LPOUTLINETEXTMETRICW, 4)
10543 static void test_pack_LPPANOSE(void)
10545 /* LPPANOSE */
10546 TEST_TYPE_SIZE (LPPANOSE, 4)
10547 TEST_TYPE_ALIGN (LPPANOSE, 4)
10548 TEST_TARGET_SIZE (LPPANOSE, 10)
10549 TEST_TARGET_ALIGN(LPPANOSE, 1)
10552 static void test_pack_LPPELARRAY(void)
10554 /* LPPELARRAY */
10555 TEST_TYPE_SIZE (LPPELARRAY, 4)
10556 TEST_TYPE_ALIGN (LPPELARRAY, 4)
10557 TEST_TARGET_SIZE (LPPELARRAY, 20)
10558 TEST_TARGET_ALIGN(LPPELARRAY, 4)
10561 static void test_pack_LPPIXELFORMATDESCRIPTOR(void)
10563 /* LPPIXELFORMATDESCRIPTOR */
10564 TEST_TYPE_SIZE (LPPIXELFORMATDESCRIPTOR, 4)
10565 TEST_TYPE_ALIGN (LPPIXELFORMATDESCRIPTOR, 4)
10566 TEST_TARGET_SIZE (LPPIXELFORMATDESCRIPTOR, 40)
10567 TEST_TARGET_ALIGN(LPPIXELFORMATDESCRIPTOR, 4)
10570 static void test_pack_LPPOINTFX(void)
10572 /* LPPOINTFX */
10573 TEST_TYPE_SIZE (LPPOINTFX, 4)
10574 TEST_TYPE_ALIGN (LPPOINTFX, 4)
10575 TEST_TARGET_SIZE (LPPOINTFX, 8)
10576 TEST_TARGET_ALIGN(LPPOINTFX, 2)
10579 static void test_pack_LPPOLYTEXTA(void)
10581 /* LPPOLYTEXTA */
10582 TEST_TYPE_SIZE (LPPOLYTEXTA, 4)
10583 TEST_TYPE_ALIGN (LPPOLYTEXTA, 4)
10584 TEST_TARGET_SIZE (LPPOLYTEXTA, 40)
10585 TEST_TARGET_ALIGN(LPPOLYTEXTA, 4)
10588 static void test_pack_LPPOLYTEXTW(void)
10590 /* LPPOLYTEXTW */
10591 TEST_TYPE_SIZE (LPPOLYTEXTW, 4)
10592 TEST_TYPE_ALIGN (LPPOLYTEXTW, 4)
10593 TEST_TARGET_SIZE (LPPOLYTEXTW, 40)
10594 TEST_TARGET_ALIGN(LPPOLYTEXTW, 4)
10597 static void test_pack_LPRASTERIZER_STATUS(void)
10599 /* LPRASTERIZER_STATUS */
10600 TEST_TYPE_SIZE (LPRASTERIZER_STATUS, 4)
10601 TEST_TYPE_ALIGN (LPRASTERIZER_STATUS, 4)
10602 TEST_TARGET_SIZE (LPRASTERIZER_STATUS, 6)
10603 TEST_TARGET_ALIGN(LPRASTERIZER_STATUS, 2)
10606 static void test_pack_LPRGBQUAD(void)
10608 /* LPRGBQUAD */
10609 TEST_TYPE_SIZE (LPRGBQUAD, 4)
10610 TEST_TYPE_ALIGN (LPRGBQUAD, 4)
10611 TEST_TARGET_SIZE (LPRGBQUAD, 4)
10612 TEST_TARGET_ALIGN(LPRGBQUAD, 1)
10615 static void test_pack_LPRGNDATA(void)
10617 /* LPRGNDATA */
10618 TEST_TYPE_SIZE (LPRGNDATA, 4)
10619 TEST_TYPE_ALIGN (LPRGNDATA, 4)
10620 TEST_TARGET_SIZE (LPRGNDATA, 36)
10621 TEST_TARGET_ALIGN(LPRGNDATA, 4)
10624 static void test_pack_LPTEXTMETRICA(void)
10626 /* LPTEXTMETRICA */
10627 TEST_TYPE_SIZE (LPTEXTMETRICA, 4)
10628 TEST_TYPE_ALIGN (LPTEXTMETRICA, 4)
10629 TEST_TARGET_SIZE (LPTEXTMETRICA, 56)
10630 TEST_TARGET_ALIGN(LPTEXTMETRICA, 4)
10633 static void test_pack_LPTEXTMETRICW(void)
10635 /* LPTEXTMETRICW */
10636 TEST_TYPE_SIZE (LPTEXTMETRICW, 4)
10637 TEST_TYPE_ALIGN (LPTEXTMETRICW, 4)
10638 TEST_TARGET_SIZE (LPTEXTMETRICW, 60)
10639 TEST_TARGET_ALIGN(LPTEXTMETRICW, 4)
10642 static void test_pack_LPTRIVERTEX(void)
10644 /* LPTRIVERTEX */
10645 TEST_TYPE_SIZE (LPTRIVERTEX, 4)
10646 TEST_TYPE_ALIGN (LPTRIVERTEX, 4)
10647 TEST_TARGET_SIZE (LPTRIVERTEX, 16)
10648 TEST_TARGET_ALIGN(LPTRIVERTEX, 4)
10651 static void test_pack_LPTTPOLYCURVE(void)
10653 /* LPTTPOLYCURVE */
10654 TEST_TYPE_SIZE (LPTTPOLYCURVE, 4)
10655 TEST_TYPE_ALIGN (LPTTPOLYCURVE, 4)
10656 TEST_TARGET_SIZE (LPTTPOLYCURVE, 12)
10657 TEST_TARGET_ALIGN(LPTTPOLYCURVE, 2)
10660 static void test_pack_LPTTPOLYGONHEADER(void)
10662 /* LPTTPOLYGONHEADER */
10663 TEST_TYPE_SIZE (LPTTPOLYGONHEADER, 4)
10664 TEST_TYPE_ALIGN (LPTTPOLYGONHEADER, 4)
10665 TEST_TARGET_SIZE (LPTTPOLYGONHEADER, 16)
10666 TEST_TARGET_ALIGN(LPTTPOLYGONHEADER, 4)
10669 static void test_pack_LPXFORM(void)
10671 /* LPXFORM */
10672 TEST_TYPE_SIZE (LPXFORM, 4)
10673 TEST_TYPE_ALIGN (LPXFORM, 4)
10674 TEST_TARGET_SIZE (LPXFORM, 24)
10675 TEST_TARGET_ALIGN(LPXFORM, 4)
10678 static void test_pack_MAT2(void)
10680 /* MAT2 */
10681 TEST_TYPE_SIZE (MAT2, 16)
10682 TEST_TYPE_ALIGN (MAT2, 2)
10683 TEST_FIELD_SIZE (MAT2, eM11, 4)
10684 TEST_FIELD_ALIGN (MAT2, eM11, 2)
10685 TEST_FIELD_OFFSET(MAT2, eM11, 0)
10686 TEST_FIELD_SIZE (MAT2, eM12, 4)
10687 TEST_FIELD_ALIGN (MAT2, eM12, 2)
10688 TEST_FIELD_OFFSET(MAT2, eM12, 4)
10689 TEST_FIELD_SIZE (MAT2, eM21, 4)
10690 TEST_FIELD_ALIGN (MAT2, eM21, 2)
10691 TEST_FIELD_OFFSET(MAT2, eM21, 8)
10692 TEST_FIELD_SIZE (MAT2, eM22, 4)
10693 TEST_FIELD_ALIGN (MAT2, eM22, 2)
10694 TEST_FIELD_OFFSET(MAT2, eM22, 12)
10697 static void test_pack_METAFILEPICT(void)
10699 /* METAFILEPICT */
10700 TEST_TYPE_SIZE (METAFILEPICT, 16)
10701 TEST_TYPE_ALIGN (METAFILEPICT, 4)
10702 TEST_FIELD_SIZE (METAFILEPICT, mm, 4)
10703 TEST_FIELD_ALIGN (METAFILEPICT, mm, 4)
10704 TEST_FIELD_OFFSET(METAFILEPICT, mm, 0)
10705 TEST_FIELD_SIZE (METAFILEPICT, xExt, 4)
10706 TEST_FIELD_ALIGN (METAFILEPICT, xExt, 4)
10707 TEST_FIELD_OFFSET(METAFILEPICT, xExt, 4)
10708 TEST_FIELD_SIZE (METAFILEPICT, yExt, 4)
10709 TEST_FIELD_ALIGN (METAFILEPICT, yExt, 4)
10710 TEST_FIELD_OFFSET(METAFILEPICT, yExt, 8)
10711 TEST_FIELD_SIZE (METAFILEPICT, hMF, 4)
10712 TEST_FIELD_ALIGN (METAFILEPICT, hMF, 4)
10713 TEST_FIELD_OFFSET(METAFILEPICT, hMF, 12)
10716 static void test_pack_METAHEADER(void)
10718 /* METAHEADER (pack 2) */
10719 TEST_TYPE_SIZE (METAHEADER, 18)
10720 TEST_TYPE_ALIGN (METAHEADER, 2)
10721 TEST_FIELD_SIZE (METAHEADER, mtType, 2)
10722 TEST_FIELD_ALIGN (METAHEADER, mtType, 2)
10723 TEST_FIELD_OFFSET(METAHEADER, mtType, 0)
10724 TEST_FIELD_SIZE (METAHEADER, mtHeaderSize, 2)
10725 TEST_FIELD_ALIGN (METAHEADER, mtHeaderSize, 2)
10726 TEST_FIELD_OFFSET(METAHEADER, mtHeaderSize, 2)
10727 TEST_FIELD_SIZE (METAHEADER, mtVersion, 2)
10728 TEST_FIELD_ALIGN (METAHEADER, mtVersion, 2)
10729 TEST_FIELD_OFFSET(METAHEADER, mtVersion, 4)
10730 TEST_FIELD_SIZE (METAHEADER, mtSize, 4)
10731 TEST_FIELD_ALIGN (METAHEADER, mtSize, 2)
10732 TEST_FIELD_OFFSET(METAHEADER, mtSize, 6)
10733 TEST_FIELD_SIZE (METAHEADER, mtNoObjects, 2)
10734 TEST_FIELD_ALIGN (METAHEADER, mtNoObjects, 2)
10735 TEST_FIELD_OFFSET(METAHEADER, mtNoObjects, 10)
10736 TEST_FIELD_SIZE (METAHEADER, mtMaxRecord, 4)
10737 TEST_FIELD_ALIGN (METAHEADER, mtMaxRecord, 2)
10738 TEST_FIELD_OFFSET(METAHEADER, mtMaxRecord, 12)
10739 TEST_FIELD_SIZE (METAHEADER, mtNoParameters, 2)
10740 TEST_FIELD_ALIGN (METAHEADER, mtNoParameters, 2)
10741 TEST_FIELD_OFFSET(METAHEADER, mtNoParameters, 16)
10744 static void test_pack_METARECORD(void)
10746 /* METARECORD */
10747 TEST_TYPE_SIZE (METARECORD, 8)
10748 TEST_TYPE_ALIGN (METARECORD, 4)
10749 TEST_FIELD_SIZE (METARECORD, rdSize, 4)
10750 TEST_FIELD_ALIGN (METARECORD, rdSize, 4)
10751 TEST_FIELD_OFFSET(METARECORD, rdSize, 0)
10752 TEST_FIELD_SIZE (METARECORD, rdFunction, 2)
10753 TEST_FIELD_ALIGN (METARECORD, rdFunction, 2)
10754 TEST_FIELD_OFFSET(METARECORD, rdFunction, 4)
10755 TEST_FIELD_SIZE (METARECORD, rdParm, 2)
10756 TEST_FIELD_ALIGN (METARECORD, rdParm, 2)
10757 TEST_FIELD_OFFSET(METARECORD, rdParm, 6)
10760 static void test_pack_MFENUMPROC(void)
10762 /* MFENUMPROC */
10763 TEST_TYPE_SIZE (MFENUMPROC, 4)
10764 TEST_TYPE_ALIGN (MFENUMPROC, 4)
10767 static void test_pack_NEWTEXTMETRICA(void)
10769 /* NEWTEXTMETRICA */
10770 TEST_TYPE_SIZE (NEWTEXTMETRICA, 72)
10771 TEST_TYPE_ALIGN (NEWTEXTMETRICA, 4)
10772 TEST_FIELD_SIZE (NEWTEXTMETRICA, tmHeight, 4)
10773 TEST_FIELD_ALIGN (NEWTEXTMETRICA, tmHeight, 4)
10774 TEST_FIELD_OFFSET(NEWTEXTMETRICA, tmHeight, 0)
10775 TEST_FIELD_SIZE (NEWTEXTMETRICA, tmAscent, 4)
10776 TEST_FIELD_ALIGN (NEWTEXTMETRICA, tmAscent, 4)
10777 TEST_FIELD_OFFSET(NEWTEXTMETRICA, tmAscent, 4)
10778 TEST_FIELD_SIZE (NEWTEXTMETRICA, tmDescent, 4)
10779 TEST_FIELD_ALIGN (NEWTEXTMETRICA, tmDescent, 4)
10780 TEST_FIELD_OFFSET(NEWTEXTMETRICA, tmDescent, 8)
10781 TEST_FIELD_SIZE (NEWTEXTMETRICA, tmInternalLeading, 4)
10782 TEST_FIELD_ALIGN (NEWTEXTMETRICA, tmInternalLeading, 4)
10783 TEST_FIELD_OFFSET(NEWTEXTMETRICA, tmInternalLeading, 12)
10784 TEST_FIELD_SIZE (NEWTEXTMETRICA, tmExternalLeading, 4)
10785 TEST_FIELD_ALIGN (NEWTEXTMETRICA, tmExternalLeading, 4)
10786 TEST_FIELD_OFFSET(NEWTEXTMETRICA, tmExternalLeading, 16)
10787 TEST_FIELD_SIZE (NEWTEXTMETRICA, tmAveCharWidth, 4)
10788 TEST_FIELD_ALIGN (NEWTEXTMETRICA, tmAveCharWidth, 4)
10789 TEST_FIELD_OFFSET(NEWTEXTMETRICA, tmAveCharWidth, 20)
10790 TEST_FIELD_SIZE (NEWTEXTMETRICA, tmMaxCharWidth, 4)
10791 TEST_FIELD_ALIGN (NEWTEXTMETRICA, tmMaxCharWidth, 4)
10792 TEST_FIELD_OFFSET(NEWTEXTMETRICA, tmMaxCharWidth, 24)
10793 TEST_FIELD_SIZE (NEWTEXTMETRICA, tmWeight, 4)
10794 TEST_FIELD_ALIGN (NEWTEXTMETRICA, tmWeight, 4)
10795 TEST_FIELD_OFFSET(NEWTEXTMETRICA, tmWeight, 28)
10796 TEST_FIELD_SIZE (NEWTEXTMETRICA, tmOverhang, 4)
10797 TEST_FIELD_ALIGN (NEWTEXTMETRICA, tmOverhang, 4)
10798 TEST_FIELD_OFFSET(NEWTEXTMETRICA, tmOverhang, 32)
10799 TEST_FIELD_SIZE (NEWTEXTMETRICA, tmDigitizedAspectX, 4)
10800 TEST_FIELD_ALIGN (NEWTEXTMETRICA, tmDigitizedAspectX, 4)
10801 TEST_FIELD_OFFSET(NEWTEXTMETRICA, tmDigitizedAspectX, 36)
10802 TEST_FIELD_SIZE (NEWTEXTMETRICA, tmDigitizedAspectY, 4)
10803 TEST_FIELD_ALIGN (NEWTEXTMETRICA, tmDigitizedAspectY, 4)
10804 TEST_FIELD_OFFSET(NEWTEXTMETRICA, tmDigitizedAspectY, 40)
10805 TEST_FIELD_SIZE (NEWTEXTMETRICA, tmFirstChar, 1)
10806 TEST_FIELD_ALIGN (NEWTEXTMETRICA, tmFirstChar, 1)
10807 TEST_FIELD_OFFSET(NEWTEXTMETRICA, tmFirstChar, 44)
10808 TEST_FIELD_SIZE (NEWTEXTMETRICA, tmLastChar, 1)
10809 TEST_FIELD_ALIGN (NEWTEXTMETRICA, tmLastChar, 1)
10810 TEST_FIELD_OFFSET(NEWTEXTMETRICA, tmLastChar, 45)
10811 TEST_FIELD_SIZE (NEWTEXTMETRICA, tmDefaultChar, 1)
10812 TEST_FIELD_ALIGN (NEWTEXTMETRICA, tmDefaultChar, 1)
10813 TEST_FIELD_OFFSET(NEWTEXTMETRICA, tmDefaultChar, 46)
10814 TEST_FIELD_SIZE (NEWTEXTMETRICA, tmBreakChar, 1)
10815 TEST_FIELD_ALIGN (NEWTEXTMETRICA, tmBreakChar, 1)
10816 TEST_FIELD_OFFSET(NEWTEXTMETRICA, tmBreakChar, 47)
10817 TEST_FIELD_SIZE (NEWTEXTMETRICA, tmItalic, 1)
10818 TEST_FIELD_ALIGN (NEWTEXTMETRICA, tmItalic, 1)
10819 TEST_FIELD_OFFSET(NEWTEXTMETRICA, tmItalic, 48)
10820 TEST_FIELD_SIZE (NEWTEXTMETRICA, tmUnderlined, 1)
10821 TEST_FIELD_ALIGN (NEWTEXTMETRICA, tmUnderlined, 1)
10822 TEST_FIELD_OFFSET(NEWTEXTMETRICA, tmUnderlined, 49)
10823 TEST_FIELD_SIZE (NEWTEXTMETRICA, tmStruckOut, 1)
10824 TEST_FIELD_ALIGN (NEWTEXTMETRICA, tmStruckOut, 1)
10825 TEST_FIELD_OFFSET(NEWTEXTMETRICA, tmStruckOut, 50)
10826 TEST_FIELD_SIZE (NEWTEXTMETRICA, tmPitchAndFamily, 1)
10827 TEST_FIELD_ALIGN (NEWTEXTMETRICA, tmPitchAndFamily, 1)
10828 TEST_FIELD_OFFSET(NEWTEXTMETRICA, tmPitchAndFamily, 51)
10829 TEST_FIELD_SIZE (NEWTEXTMETRICA, tmCharSet, 1)
10830 TEST_FIELD_ALIGN (NEWTEXTMETRICA, tmCharSet, 1)
10831 TEST_FIELD_OFFSET(NEWTEXTMETRICA, tmCharSet, 52)
10832 TEST_FIELD_SIZE (NEWTEXTMETRICA, ntmFlags, 4)
10833 TEST_FIELD_ALIGN (NEWTEXTMETRICA, ntmFlags, 4)
10834 TEST_FIELD_OFFSET(NEWTEXTMETRICA, ntmFlags, 56)
10835 TEST_FIELD_SIZE (NEWTEXTMETRICA, ntmSizeEM, 4)
10836 TEST_FIELD_ALIGN (NEWTEXTMETRICA, ntmSizeEM, 4)
10837 TEST_FIELD_OFFSET(NEWTEXTMETRICA, ntmSizeEM, 60)
10838 TEST_FIELD_SIZE (NEWTEXTMETRICA, ntmCellHeight, 4)
10839 TEST_FIELD_ALIGN (NEWTEXTMETRICA, ntmCellHeight, 4)
10840 TEST_FIELD_OFFSET(NEWTEXTMETRICA, ntmCellHeight, 64)
10841 TEST_FIELD_SIZE (NEWTEXTMETRICA, ntmAvgWidth, 4)
10842 TEST_FIELD_ALIGN (NEWTEXTMETRICA, ntmAvgWidth, 4)
10843 TEST_FIELD_OFFSET(NEWTEXTMETRICA, ntmAvgWidth, 68)
10846 static void test_pack_NEWTEXTMETRICEXA(void)
10848 /* NEWTEXTMETRICEXA */
10849 TEST_TYPE_SIZE (NEWTEXTMETRICEXA, 96)
10850 TEST_TYPE_ALIGN (NEWTEXTMETRICEXA, 4)
10851 TEST_FIELD_SIZE (NEWTEXTMETRICEXA, ntmTm, 72)
10852 TEST_FIELD_ALIGN (NEWTEXTMETRICEXA, ntmTm, 4)
10853 TEST_FIELD_OFFSET(NEWTEXTMETRICEXA, ntmTm, 0)
10854 TEST_FIELD_SIZE (NEWTEXTMETRICEXA, ntmFontSig, 24)
10855 TEST_FIELD_ALIGN (NEWTEXTMETRICEXA, ntmFontSig, 4)
10856 TEST_FIELD_OFFSET(NEWTEXTMETRICEXA, ntmFontSig, 72)
10859 static void test_pack_NEWTEXTMETRICEXW(void)
10861 /* NEWTEXTMETRICEXW */
10862 TEST_TYPE_SIZE (NEWTEXTMETRICEXW, 100)
10863 TEST_TYPE_ALIGN (NEWTEXTMETRICEXW, 4)
10864 TEST_FIELD_SIZE (NEWTEXTMETRICEXW, ntmTm, 76)
10865 TEST_FIELD_ALIGN (NEWTEXTMETRICEXW, ntmTm, 4)
10866 TEST_FIELD_OFFSET(NEWTEXTMETRICEXW, ntmTm, 0)
10867 TEST_FIELD_SIZE (NEWTEXTMETRICEXW, ntmFontSig, 24)
10868 TEST_FIELD_ALIGN (NEWTEXTMETRICEXW, ntmFontSig, 4)
10869 TEST_FIELD_OFFSET(NEWTEXTMETRICEXW, ntmFontSig, 76)
10872 static void test_pack_NEWTEXTMETRICW(void)
10874 /* NEWTEXTMETRICW */
10875 TEST_TYPE_SIZE (NEWTEXTMETRICW, 76)
10876 TEST_TYPE_ALIGN (NEWTEXTMETRICW, 4)
10877 TEST_FIELD_SIZE (NEWTEXTMETRICW, tmHeight, 4)
10878 TEST_FIELD_ALIGN (NEWTEXTMETRICW, tmHeight, 4)
10879 TEST_FIELD_OFFSET(NEWTEXTMETRICW, tmHeight, 0)
10880 TEST_FIELD_SIZE (NEWTEXTMETRICW, tmAscent, 4)
10881 TEST_FIELD_ALIGN (NEWTEXTMETRICW, tmAscent, 4)
10882 TEST_FIELD_OFFSET(NEWTEXTMETRICW, tmAscent, 4)
10883 TEST_FIELD_SIZE (NEWTEXTMETRICW, tmDescent, 4)
10884 TEST_FIELD_ALIGN (NEWTEXTMETRICW, tmDescent, 4)
10885 TEST_FIELD_OFFSET(NEWTEXTMETRICW, tmDescent, 8)
10886 TEST_FIELD_SIZE (NEWTEXTMETRICW, tmInternalLeading, 4)
10887 TEST_FIELD_ALIGN (NEWTEXTMETRICW, tmInternalLeading, 4)
10888 TEST_FIELD_OFFSET(NEWTEXTMETRICW, tmInternalLeading, 12)
10889 TEST_FIELD_SIZE (NEWTEXTMETRICW, tmExternalLeading, 4)
10890 TEST_FIELD_ALIGN (NEWTEXTMETRICW, tmExternalLeading, 4)
10891 TEST_FIELD_OFFSET(NEWTEXTMETRICW, tmExternalLeading, 16)
10892 TEST_FIELD_SIZE (NEWTEXTMETRICW, tmAveCharWidth, 4)
10893 TEST_FIELD_ALIGN (NEWTEXTMETRICW, tmAveCharWidth, 4)
10894 TEST_FIELD_OFFSET(NEWTEXTMETRICW, tmAveCharWidth, 20)
10895 TEST_FIELD_SIZE (NEWTEXTMETRICW, tmMaxCharWidth, 4)
10896 TEST_FIELD_ALIGN (NEWTEXTMETRICW, tmMaxCharWidth, 4)
10897 TEST_FIELD_OFFSET(NEWTEXTMETRICW, tmMaxCharWidth, 24)
10898 TEST_FIELD_SIZE (NEWTEXTMETRICW, tmWeight, 4)
10899 TEST_FIELD_ALIGN (NEWTEXTMETRICW, tmWeight, 4)
10900 TEST_FIELD_OFFSET(NEWTEXTMETRICW, tmWeight, 28)
10901 TEST_FIELD_SIZE (NEWTEXTMETRICW, tmOverhang, 4)
10902 TEST_FIELD_ALIGN (NEWTEXTMETRICW, tmOverhang, 4)
10903 TEST_FIELD_OFFSET(NEWTEXTMETRICW, tmOverhang, 32)
10904 TEST_FIELD_SIZE (NEWTEXTMETRICW, tmDigitizedAspectX, 4)
10905 TEST_FIELD_ALIGN (NEWTEXTMETRICW, tmDigitizedAspectX, 4)
10906 TEST_FIELD_OFFSET(NEWTEXTMETRICW, tmDigitizedAspectX, 36)
10907 TEST_FIELD_SIZE (NEWTEXTMETRICW, tmDigitizedAspectY, 4)
10908 TEST_FIELD_ALIGN (NEWTEXTMETRICW, tmDigitizedAspectY, 4)
10909 TEST_FIELD_OFFSET(NEWTEXTMETRICW, tmDigitizedAspectY, 40)
10910 TEST_FIELD_SIZE (NEWTEXTMETRICW, tmFirstChar, 2)
10911 TEST_FIELD_ALIGN (NEWTEXTMETRICW, tmFirstChar, 2)
10912 TEST_FIELD_OFFSET(NEWTEXTMETRICW, tmFirstChar, 44)
10913 TEST_FIELD_SIZE (NEWTEXTMETRICW, tmLastChar, 2)
10914 TEST_FIELD_ALIGN (NEWTEXTMETRICW, tmLastChar, 2)
10915 TEST_FIELD_OFFSET(NEWTEXTMETRICW, tmLastChar, 46)
10916 TEST_FIELD_SIZE (NEWTEXTMETRICW, tmDefaultChar, 2)
10917 TEST_FIELD_ALIGN (NEWTEXTMETRICW, tmDefaultChar, 2)
10918 TEST_FIELD_OFFSET(NEWTEXTMETRICW, tmDefaultChar, 48)
10919 TEST_FIELD_SIZE (NEWTEXTMETRICW, tmBreakChar, 2)
10920 TEST_FIELD_ALIGN (NEWTEXTMETRICW, tmBreakChar, 2)
10921 TEST_FIELD_OFFSET(NEWTEXTMETRICW, tmBreakChar, 50)
10922 TEST_FIELD_SIZE (NEWTEXTMETRICW, tmItalic, 1)
10923 TEST_FIELD_ALIGN (NEWTEXTMETRICW, tmItalic, 1)
10924 TEST_FIELD_OFFSET(NEWTEXTMETRICW, tmItalic, 52)
10925 TEST_FIELD_SIZE (NEWTEXTMETRICW, tmUnderlined, 1)
10926 TEST_FIELD_ALIGN (NEWTEXTMETRICW, tmUnderlined, 1)
10927 TEST_FIELD_OFFSET(NEWTEXTMETRICW, tmUnderlined, 53)
10928 TEST_FIELD_SIZE (NEWTEXTMETRICW, tmStruckOut, 1)
10929 TEST_FIELD_ALIGN (NEWTEXTMETRICW, tmStruckOut, 1)
10930 TEST_FIELD_OFFSET(NEWTEXTMETRICW, tmStruckOut, 54)
10931 TEST_FIELD_SIZE (NEWTEXTMETRICW, tmPitchAndFamily, 1)
10932 TEST_FIELD_ALIGN (NEWTEXTMETRICW, tmPitchAndFamily, 1)
10933 TEST_FIELD_OFFSET(NEWTEXTMETRICW, tmPitchAndFamily, 55)
10934 TEST_FIELD_SIZE (NEWTEXTMETRICW, tmCharSet, 1)
10935 TEST_FIELD_ALIGN (NEWTEXTMETRICW, tmCharSet, 1)
10936 TEST_FIELD_OFFSET(NEWTEXTMETRICW, tmCharSet, 56)
10937 TEST_FIELD_SIZE (NEWTEXTMETRICW, ntmFlags, 4)
10938 TEST_FIELD_ALIGN (NEWTEXTMETRICW, ntmFlags, 4)
10939 TEST_FIELD_OFFSET(NEWTEXTMETRICW, ntmFlags, 60)
10940 TEST_FIELD_SIZE (NEWTEXTMETRICW, ntmSizeEM, 4)
10941 TEST_FIELD_ALIGN (NEWTEXTMETRICW, ntmSizeEM, 4)
10942 TEST_FIELD_OFFSET(NEWTEXTMETRICW, ntmSizeEM, 64)
10943 TEST_FIELD_SIZE (NEWTEXTMETRICW, ntmCellHeight, 4)
10944 TEST_FIELD_ALIGN (NEWTEXTMETRICW, ntmCellHeight, 4)
10945 TEST_FIELD_OFFSET(NEWTEXTMETRICW, ntmCellHeight, 68)
10946 TEST_FIELD_SIZE (NEWTEXTMETRICW, ntmAvgWidth, 4)
10947 TEST_FIELD_ALIGN (NEWTEXTMETRICW, ntmAvgWidth, 4)
10948 TEST_FIELD_OFFSET(NEWTEXTMETRICW, ntmAvgWidth, 72)
10951 static void test_pack_NPEXTLOGPEN(void)
10953 /* NPEXTLOGPEN */
10954 TEST_TYPE_SIZE (NPEXTLOGPEN, 4)
10955 TEST_TYPE_ALIGN (NPEXTLOGPEN, 4)
10956 TEST_TARGET_SIZE (NPEXTLOGPEN, 28)
10957 TEST_TARGET_ALIGN(NPEXTLOGPEN, 4)
10960 static void test_pack_OLDFONTENUMPROCA(void)
10962 /* OLDFONTENUMPROCA */
10963 TEST_TYPE_SIZE (OLDFONTENUMPROCA, 4)
10964 TEST_TYPE_ALIGN (OLDFONTENUMPROCA, 4)
10967 static void test_pack_OLDFONTENUMPROCW(void)
10969 /* OLDFONTENUMPROCW */
10970 TEST_TYPE_SIZE (OLDFONTENUMPROCW, 4)
10971 TEST_TYPE_ALIGN (OLDFONTENUMPROCW, 4)
10974 static void test_pack_OUTLINETEXTMETRICA(void)
10976 /* OUTLINETEXTMETRICA */
10977 TEST_TYPE_SIZE (OUTLINETEXTMETRICA, 212)
10978 TEST_TYPE_ALIGN (OUTLINETEXTMETRICA, 4)
10979 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmSize, 4)
10980 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmSize, 4)
10981 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmSize, 0)
10982 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmTextMetrics, 56)
10983 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmTextMetrics, 4)
10984 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmTextMetrics, 4)
10985 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmFiller, 1)
10986 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmFiller, 1)
10987 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmFiller, 60)
10988 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmPanoseNumber, 10)
10989 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmPanoseNumber, 1)
10990 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmPanoseNumber, 61)
10991 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmfsSelection, 4)
10992 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmfsSelection, 4)
10993 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmfsSelection, 72)
10994 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmfsType, 4)
10995 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmfsType, 4)
10996 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmfsType, 76)
10997 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmsCharSlopeRise, 4)
10998 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmsCharSlopeRise, 4)
10999 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmsCharSlopeRise, 80)
11000 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmsCharSlopeRun, 4)
11001 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmsCharSlopeRun, 4)
11002 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmsCharSlopeRun, 84)
11003 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmItalicAngle, 4)
11004 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmItalicAngle, 4)
11005 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmItalicAngle, 88)
11006 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmEMSquare, 4)
11007 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmEMSquare, 4)
11008 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmEMSquare, 92)
11009 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmAscent, 4)
11010 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmAscent, 4)
11011 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmAscent, 96)
11012 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmDescent, 4)
11013 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmDescent, 4)
11014 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmDescent, 100)
11015 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmLineGap, 4)
11016 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmLineGap, 4)
11017 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmLineGap, 104)
11018 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmsCapEmHeight, 4)
11019 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmsCapEmHeight, 4)
11020 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmsCapEmHeight, 108)
11021 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmsXHeight, 4)
11022 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmsXHeight, 4)
11023 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmsXHeight, 112)
11024 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmrcFontBox, 16)
11025 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmrcFontBox, 4)
11026 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmrcFontBox, 116)
11027 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmMacAscent, 4)
11028 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmMacAscent, 4)
11029 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmMacAscent, 132)
11030 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmMacDescent, 4)
11031 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmMacDescent, 4)
11032 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmMacDescent, 136)
11033 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmMacLineGap, 4)
11034 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmMacLineGap, 4)
11035 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmMacLineGap, 140)
11036 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmusMinimumPPEM, 4)
11037 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmusMinimumPPEM, 4)
11038 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmusMinimumPPEM, 144)
11039 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmptSubscriptSize, 8)
11040 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmptSubscriptSize, 4)
11041 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmptSubscriptSize, 148)
11042 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmptSubscriptOffset, 8)
11043 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmptSubscriptOffset, 4)
11044 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmptSubscriptOffset, 156)
11045 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmptSuperscriptSize, 8)
11046 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmptSuperscriptSize, 4)
11047 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmptSuperscriptSize, 164)
11048 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmptSuperscriptOffset, 8)
11049 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmptSuperscriptOffset, 4)
11050 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmptSuperscriptOffset, 172)
11051 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmsStrikeoutSize, 4)
11052 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmsStrikeoutSize, 4)
11053 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmsStrikeoutSize, 180)
11054 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmsStrikeoutPosition, 4)
11055 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmsStrikeoutPosition, 4)
11056 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmsStrikeoutPosition, 184)
11057 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmsUnderscoreSize, 4)
11058 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmsUnderscoreSize, 4)
11059 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmsUnderscoreSize, 188)
11060 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmsUnderscorePosition, 4)
11061 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmsUnderscorePosition, 4)
11062 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmsUnderscorePosition, 192)
11063 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmpFamilyName, 4)
11064 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmpFamilyName, 4)
11065 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmpFamilyName, 196)
11066 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmpFaceName, 4)
11067 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmpFaceName, 4)
11068 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmpFaceName, 200)
11069 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmpStyleName, 4)
11070 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmpStyleName, 4)
11071 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmpStyleName, 204)
11072 TEST_FIELD_SIZE (OUTLINETEXTMETRICA, otmpFullName, 4)
11073 TEST_FIELD_ALIGN (OUTLINETEXTMETRICA, otmpFullName, 4)
11074 TEST_FIELD_OFFSET(OUTLINETEXTMETRICA, otmpFullName, 208)
11077 static void test_pack_OUTLINETEXTMETRICW(void)
11079 /* OUTLINETEXTMETRICW */
11080 TEST_TYPE_SIZE (OUTLINETEXTMETRICW, 216)
11081 TEST_TYPE_ALIGN (OUTLINETEXTMETRICW, 4)
11082 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmSize, 4)
11083 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmSize, 4)
11084 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmSize, 0)
11085 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmTextMetrics, 60)
11086 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmTextMetrics, 4)
11087 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmTextMetrics, 4)
11088 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmFiller, 1)
11089 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmFiller, 1)
11090 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmFiller, 64)
11091 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmPanoseNumber, 10)
11092 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmPanoseNumber, 1)
11093 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmPanoseNumber, 65)
11094 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmfsSelection, 4)
11095 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmfsSelection, 4)
11096 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmfsSelection, 76)
11097 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmfsType, 4)
11098 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmfsType, 4)
11099 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmfsType, 80)
11100 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmsCharSlopeRise, 4)
11101 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmsCharSlopeRise, 4)
11102 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmsCharSlopeRise, 84)
11103 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmsCharSlopeRun, 4)
11104 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmsCharSlopeRun, 4)
11105 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmsCharSlopeRun, 88)
11106 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmItalicAngle, 4)
11107 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmItalicAngle, 4)
11108 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmItalicAngle, 92)
11109 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmEMSquare, 4)
11110 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmEMSquare, 4)
11111 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmEMSquare, 96)
11112 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmAscent, 4)
11113 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmAscent, 4)
11114 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmAscent, 100)
11115 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmDescent, 4)
11116 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmDescent, 4)
11117 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmDescent, 104)
11118 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmLineGap, 4)
11119 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmLineGap, 4)
11120 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmLineGap, 108)
11121 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmsCapEmHeight, 4)
11122 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmsCapEmHeight, 4)
11123 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmsCapEmHeight, 112)
11124 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmsXHeight, 4)
11125 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmsXHeight, 4)
11126 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmsXHeight, 116)
11127 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmrcFontBox, 16)
11128 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmrcFontBox, 4)
11129 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmrcFontBox, 120)
11130 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmMacAscent, 4)
11131 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmMacAscent, 4)
11132 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmMacAscent, 136)
11133 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmMacDescent, 4)
11134 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmMacDescent, 4)
11135 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmMacDescent, 140)
11136 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmMacLineGap, 4)
11137 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmMacLineGap, 4)
11138 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmMacLineGap, 144)
11139 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmusMinimumPPEM, 4)
11140 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmusMinimumPPEM, 4)
11141 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmusMinimumPPEM, 148)
11142 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmptSubscriptSize, 8)
11143 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmptSubscriptSize, 4)
11144 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmptSubscriptSize, 152)
11145 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmptSubscriptOffset, 8)
11146 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmptSubscriptOffset, 4)
11147 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmptSubscriptOffset, 160)
11148 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmptSuperscriptSize, 8)
11149 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmptSuperscriptSize, 4)
11150 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmptSuperscriptSize, 168)
11151 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmptSuperscriptOffset, 8)
11152 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmptSuperscriptOffset, 4)
11153 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmptSuperscriptOffset, 176)
11154 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmsStrikeoutSize, 4)
11155 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmsStrikeoutSize, 4)
11156 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmsStrikeoutSize, 184)
11157 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmsStrikeoutPosition, 4)
11158 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmsStrikeoutPosition, 4)
11159 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmsStrikeoutPosition, 188)
11160 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmsUnderscoreSize, 4)
11161 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmsUnderscoreSize, 4)
11162 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmsUnderscoreSize, 192)
11163 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmsUnderscorePosition, 4)
11164 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmsUnderscorePosition, 4)
11165 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmsUnderscorePosition, 196)
11166 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmpFamilyName, 4)
11167 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmpFamilyName, 4)
11168 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmpFamilyName, 200)
11169 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmpFaceName, 4)
11170 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmpFaceName, 4)
11171 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmpFaceName, 204)
11172 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmpStyleName, 4)
11173 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmpStyleName, 4)
11174 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmpStyleName, 208)
11175 TEST_FIELD_SIZE (OUTLINETEXTMETRICW, otmpFullName, 4)
11176 TEST_FIELD_ALIGN (OUTLINETEXTMETRICW, otmpFullName, 4)
11177 TEST_FIELD_OFFSET(OUTLINETEXTMETRICW, otmpFullName, 212)
11180 static void test_pack_PABC(void)
11182 /* PABC */
11183 TEST_TYPE_SIZE (PABC, 4)
11184 TEST_TYPE_ALIGN (PABC, 4)
11185 TEST_TARGET_SIZE (PABC, 12)
11186 TEST_TARGET_ALIGN(PABC, 4)
11189 static void test_pack_PABCFLOAT(void)
11191 /* PABCFLOAT */
11192 TEST_TYPE_SIZE (PABCFLOAT, 4)
11193 TEST_TYPE_ALIGN (PABCFLOAT, 4)
11194 TEST_TARGET_SIZE (PABCFLOAT, 12)
11195 TEST_TARGET_ALIGN(PABCFLOAT, 4)
11198 static void test_pack_PANOSE(void)
11200 /* PANOSE */
11201 TEST_TYPE_SIZE (PANOSE, 10)
11202 TEST_TYPE_ALIGN (PANOSE, 1)
11203 TEST_FIELD_SIZE (PANOSE, bFamilyType, 1)
11204 TEST_FIELD_ALIGN (PANOSE, bFamilyType, 1)
11205 TEST_FIELD_OFFSET(PANOSE, bFamilyType, 0)
11206 TEST_FIELD_SIZE (PANOSE, bSerifStyle, 1)
11207 TEST_FIELD_ALIGN (PANOSE, bSerifStyle, 1)
11208 TEST_FIELD_OFFSET(PANOSE, bSerifStyle, 1)
11209 TEST_FIELD_SIZE (PANOSE, bWeight, 1)
11210 TEST_FIELD_ALIGN (PANOSE, bWeight, 1)
11211 TEST_FIELD_OFFSET(PANOSE, bWeight, 2)
11212 TEST_FIELD_SIZE (PANOSE, bProportion, 1)
11213 TEST_FIELD_ALIGN (PANOSE, bProportion, 1)
11214 TEST_FIELD_OFFSET(PANOSE, bProportion, 3)
11215 TEST_FIELD_SIZE (PANOSE, bContrast, 1)
11216 TEST_FIELD_ALIGN (PANOSE, bContrast, 1)
11217 TEST_FIELD_OFFSET(PANOSE, bContrast, 4)
11218 TEST_FIELD_SIZE (PANOSE, bStrokeVariation, 1)
11219 TEST_FIELD_ALIGN (PANOSE, bStrokeVariation, 1)
11220 TEST_FIELD_OFFSET(PANOSE, bStrokeVariation, 5)
11221 TEST_FIELD_SIZE (PANOSE, bArmStyle, 1)
11222 TEST_FIELD_ALIGN (PANOSE, bArmStyle, 1)
11223 TEST_FIELD_OFFSET(PANOSE, bArmStyle, 6)
11224 TEST_FIELD_SIZE (PANOSE, bLetterform, 1)
11225 TEST_FIELD_ALIGN (PANOSE, bLetterform, 1)
11226 TEST_FIELD_OFFSET(PANOSE, bLetterform, 7)
11227 TEST_FIELD_SIZE (PANOSE, bMidline, 1)
11228 TEST_FIELD_ALIGN (PANOSE, bMidline, 1)
11229 TEST_FIELD_OFFSET(PANOSE, bMidline, 8)
11230 TEST_FIELD_SIZE (PANOSE, bXHeight, 1)
11231 TEST_FIELD_ALIGN (PANOSE, bXHeight, 1)
11232 TEST_FIELD_OFFSET(PANOSE, bXHeight, 9)
11235 static void test_pack_PATTERN(void)
11237 /* PATTERN */
11238 TEST_TYPE_SIZE (PATTERN, 12)
11239 TEST_TYPE_ALIGN (PATTERN, 4)
11242 static void test_pack_PBITMAP(void)
11244 /* PBITMAP */
11245 TEST_TYPE_SIZE (PBITMAP, 4)
11246 TEST_TYPE_ALIGN (PBITMAP, 4)
11247 TEST_TARGET_SIZE (PBITMAP, 24)
11248 TEST_TARGET_ALIGN(PBITMAP, 4)
11251 static void test_pack_PBITMAPCOREHEADER(void)
11253 /* PBITMAPCOREHEADER */
11254 TEST_TYPE_SIZE (PBITMAPCOREHEADER, 4)
11255 TEST_TYPE_ALIGN (PBITMAPCOREHEADER, 4)
11256 TEST_TARGET_SIZE (PBITMAPCOREHEADER, 12)
11257 TEST_TARGET_ALIGN(PBITMAPCOREHEADER, 4)
11260 static void test_pack_PBITMAPCOREINFO(void)
11262 /* PBITMAPCOREINFO */
11263 TEST_TYPE_SIZE (PBITMAPCOREINFO, 4)
11264 TEST_TYPE_ALIGN (PBITMAPCOREINFO, 4)
11265 TEST_TARGET_SIZE (PBITMAPCOREINFO, 16)
11266 TEST_TARGET_ALIGN(PBITMAPCOREINFO, 4)
11269 static void test_pack_PBITMAPFILEHEADER(void)
11271 /* PBITMAPFILEHEADER */
11272 TEST_TYPE_SIZE (PBITMAPFILEHEADER, 4)
11273 TEST_TYPE_ALIGN (PBITMAPFILEHEADER, 4)
11274 TEST_TARGET_SIZE (PBITMAPFILEHEADER, 14)
11275 TEST_TARGET_ALIGN(PBITMAPFILEHEADER, 2)
11278 static void test_pack_PBITMAPINFO(void)
11280 /* PBITMAPINFO */
11281 TEST_TYPE_SIZE (PBITMAPINFO, 4)
11282 TEST_TYPE_ALIGN (PBITMAPINFO, 4)
11283 TEST_TARGET_SIZE (PBITMAPINFO, 44)
11284 TEST_TARGET_ALIGN(PBITMAPINFO, 4)
11287 static void test_pack_PBITMAPINFOHEADER(void)
11289 /* PBITMAPINFOHEADER */
11290 TEST_TYPE_SIZE (PBITMAPINFOHEADER, 4)
11291 TEST_TYPE_ALIGN (PBITMAPINFOHEADER, 4)
11292 TEST_TARGET_SIZE (PBITMAPINFOHEADER, 40)
11293 TEST_TARGET_ALIGN(PBITMAPINFOHEADER, 4)
11296 static void test_pack_PBITMAPV4HEADER(void)
11298 /* PBITMAPV4HEADER */
11299 TEST_TYPE_SIZE (PBITMAPV4HEADER, 4)
11300 TEST_TYPE_ALIGN (PBITMAPV4HEADER, 4)
11301 TEST_TARGET_SIZE (PBITMAPV4HEADER, 108)
11302 TEST_TARGET_ALIGN(PBITMAPV4HEADER, 4)
11305 static void test_pack_PBITMAPV5HEADER(void)
11307 /* PBITMAPV5HEADER */
11308 TEST_TYPE_SIZE (PBITMAPV5HEADER, 4)
11309 TEST_TYPE_ALIGN (PBITMAPV5HEADER, 4)
11310 TEST_TARGET_SIZE (PBITMAPV5HEADER, 124)
11311 TEST_TARGET_ALIGN(PBITMAPV5HEADER, 4)
11314 static void test_pack_PBLENDFUNCTION(void)
11316 /* PBLENDFUNCTION */
11317 TEST_TYPE_SIZE (PBLENDFUNCTION, 4)
11318 TEST_TYPE_ALIGN (PBLENDFUNCTION, 4)
11319 TEST_TARGET_SIZE (PBLENDFUNCTION, 4)
11320 TEST_TARGET_ALIGN(PBLENDFUNCTION, 1)
11323 static void test_pack_PCHARSETINFO(void)
11325 /* PCHARSETINFO */
11326 TEST_TYPE_SIZE (PCHARSETINFO, 4)
11327 TEST_TYPE_ALIGN (PCHARSETINFO, 4)
11328 TEST_TARGET_SIZE (PCHARSETINFO, 32)
11329 TEST_TARGET_ALIGN(PCHARSETINFO, 4)
11332 static void test_pack_PCOLORADJUSTMENT(void)
11334 /* PCOLORADJUSTMENT */
11335 TEST_TYPE_SIZE (PCOLORADJUSTMENT, 4)
11336 TEST_TYPE_ALIGN (PCOLORADJUSTMENT, 4)
11337 TEST_TARGET_SIZE (PCOLORADJUSTMENT, 24)
11338 TEST_TARGET_ALIGN(PCOLORADJUSTMENT, 2)
11341 static void test_pack_PDEVMODEA(void)
11343 /* PDEVMODEA */
11344 TEST_TYPE_SIZE (PDEVMODEA, 4)
11345 TEST_TYPE_ALIGN (PDEVMODEA, 4)
11348 static void test_pack_PDEVMODEW(void)
11350 /* PDEVMODEW */
11351 TEST_TYPE_SIZE (PDEVMODEW, 4)
11352 TEST_TYPE_ALIGN (PDEVMODEW, 4)
11355 static void test_pack_PDIBSECTION(void)
11357 /* PDIBSECTION */
11358 TEST_TYPE_SIZE (PDIBSECTION, 4)
11359 TEST_TYPE_ALIGN (PDIBSECTION, 4)
11360 TEST_TARGET_SIZE (PDIBSECTION, 84)
11361 TEST_TARGET_ALIGN(PDIBSECTION, 4)
11364 static void test_pack_PDISPLAY_DEVICEA(void)
11366 /* PDISPLAY_DEVICEA */
11367 TEST_TYPE_SIZE (PDISPLAY_DEVICEA, 4)
11368 TEST_TYPE_ALIGN (PDISPLAY_DEVICEA, 4)
11369 TEST_TARGET_SIZE (PDISPLAY_DEVICEA, 424)
11370 TEST_TARGET_ALIGN(PDISPLAY_DEVICEA, 4)
11373 static void test_pack_PDISPLAY_DEVICEW(void)
11375 /* PDISPLAY_DEVICEW */
11376 TEST_TYPE_SIZE (PDISPLAY_DEVICEW, 4)
11377 TEST_TYPE_ALIGN (PDISPLAY_DEVICEW, 4)
11378 TEST_TARGET_SIZE (PDISPLAY_DEVICEW, 840)
11379 TEST_TARGET_ALIGN(PDISPLAY_DEVICEW, 4)
11382 static void test_pack_PELARRAY(void)
11384 /* PELARRAY */
11385 TEST_TYPE_SIZE (PELARRAY, 20)
11386 TEST_TYPE_ALIGN (PELARRAY, 4)
11387 TEST_FIELD_SIZE (PELARRAY, paXCount, 4)
11388 TEST_FIELD_ALIGN (PELARRAY, paXCount, 4)
11389 TEST_FIELD_OFFSET(PELARRAY, paXCount, 0)
11390 TEST_FIELD_SIZE (PELARRAY, paYCount, 4)
11391 TEST_FIELD_ALIGN (PELARRAY, paYCount, 4)
11392 TEST_FIELD_OFFSET(PELARRAY, paYCount, 4)
11393 TEST_FIELD_SIZE (PELARRAY, paXExt, 4)
11394 TEST_FIELD_ALIGN (PELARRAY, paXExt, 4)
11395 TEST_FIELD_OFFSET(PELARRAY, paXExt, 8)
11396 TEST_FIELD_SIZE (PELARRAY, paYExt, 4)
11397 TEST_FIELD_ALIGN (PELARRAY, paYExt, 4)
11398 TEST_FIELD_OFFSET(PELARRAY, paYExt, 12)
11399 TEST_FIELD_SIZE (PELARRAY, paRGBs, 1)
11400 TEST_FIELD_ALIGN (PELARRAY, paRGBs, 1)
11401 TEST_FIELD_OFFSET(PELARRAY, paRGBs, 16)
11404 static void test_pack_PEMR(void)
11406 /* PEMR */
11407 TEST_TYPE_SIZE (PEMR, 4)
11408 TEST_TYPE_ALIGN (PEMR, 4)
11409 TEST_TARGET_SIZE (PEMR, 8)
11410 TEST_TARGET_ALIGN(PEMR, 4)
11413 static void test_pack_PEMRABORTPATH(void)
11415 /* PEMRABORTPATH */
11416 TEST_TYPE_SIZE (PEMRABORTPATH, 4)
11417 TEST_TYPE_ALIGN (PEMRABORTPATH, 4)
11418 TEST_TARGET_SIZE (PEMRABORTPATH, 8)
11419 TEST_TARGET_ALIGN(PEMRABORTPATH, 4)
11422 static void test_pack_PEMRANGLEARC(void)
11424 /* PEMRANGLEARC */
11425 TEST_TYPE_SIZE (PEMRANGLEARC, 4)
11426 TEST_TYPE_ALIGN (PEMRANGLEARC, 4)
11427 TEST_TARGET_SIZE (PEMRANGLEARC, 28)
11428 TEST_TARGET_ALIGN(PEMRANGLEARC, 4)
11431 static void test_pack_PEMRARC(void)
11433 /* PEMRARC */
11434 TEST_TYPE_SIZE (PEMRARC, 4)
11435 TEST_TYPE_ALIGN (PEMRARC, 4)
11436 TEST_TARGET_SIZE (PEMRARC, 40)
11437 TEST_TARGET_ALIGN(PEMRARC, 4)
11440 static void test_pack_PEMRARCTO(void)
11442 /* PEMRARCTO */
11443 TEST_TYPE_SIZE (PEMRARCTO, 4)
11444 TEST_TYPE_ALIGN (PEMRARCTO, 4)
11445 TEST_TARGET_SIZE (PEMRARCTO, 40)
11446 TEST_TARGET_ALIGN(PEMRARCTO, 4)
11449 static void test_pack_PEMRBEGINPATH(void)
11451 /* PEMRBEGINPATH */
11452 TEST_TYPE_SIZE (PEMRBEGINPATH, 4)
11453 TEST_TYPE_ALIGN (PEMRBEGINPATH, 4)
11454 TEST_TARGET_SIZE (PEMRBEGINPATH, 8)
11455 TEST_TARGET_ALIGN(PEMRBEGINPATH, 4)
11458 static void test_pack_PEMRBITBLT(void)
11460 /* PEMRBITBLT */
11461 TEST_TYPE_SIZE (PEMRBITBLT, 4)
11462 TEST_TYPE_ALIGN (PEMRBITBLT, 4)
11463 TEST_TARGET_SIZE (PEMRBITBLT, 100)
11464 TEST_TARGET_ALIGN(PEMRBITBLT, 4)
11467 static void test_pack_PEMRCHORD(void)
11469 /* PEMRCHORD */
11470 TEST_TYPE_SIZE (PEMRCHORD, 4)
11471 TEST_TYPE_ALIGN (PEMRCHORD, 4)
11472 TEST_TARGET_SIZE (PEMRCHORD, 40)
11473 TEST_TARGET_ALIGN(PEMRCHORD, 4)
11476 static void test_pack_PEMRCLOSEFIGURE(void)
11478 /* PEMRCLOSEFIGURE */
11479 TEST_TYPE_SIZE (PEMRCLOSEFIGURE, 4)
11480 TEST_TYPE_ALIGN (PEMRCLOSEFIGURE, 4)
11481 TEST_TARGET_SIZE (PEMRCLOSEFIGURE, 8)
11482 TEST_TARGET_ALIGN(PEMRCLOSEFIGURE, 4)
11485 static void test_pack_PEMRCREATEBRUSHINDIRECT(void)
11487 /* PEMRCREATEBRUSHINDIRECT */
11488 TEST_TYPE_SIZE (PEMRCREATEBRUSHINDIRECT, 4)
11489 TEST_TYPE_ALIGN (PEMRCREATEBRUSHINDIRECT, 4)
11490 TEST_TARGET_SIZE (PEMRCREATEBRUSHINDIRECT, 24)
11491 TEST_TARGET_ALIGN(PEMRCREATEBRUSHINDIRECT, 4)
11494 static void test_pack_PEMRCREATECOLORSPACE(void)
11496 /* PEMRCREATECOLORSPACE */
11497 TEST_TYPE_SIZE (PEMRCREATECOLORSPACE, 4)
11498 TEST_TYPE_ALIGN (PEMRCREATECOLORSPACE, 4)
11499 TEST_TARGET_SIZE (PEMRCREATECOLORSPACE, 340)
11500 TEST_TARGET_ALIGN(PEMRCREATECOLORSPACE, 4)
11503 static void test_pack_PEMRCREATECOLORSPACEW(void)
11505 /* PEMRCREATECOLORSPACEW */
11506 TEST_TYPE_SIZE (PEMRCREATECOLORSPACEW, 4)
11507 TEST_TYPE_ALIGN (PEMRCREATECOLORSPACEW, 4)
11508 TEST_TARGET_SIZE (PEMRCREATECOLORSPACEW, 612)
11509 TEST_TARGET_ALIGN(PEMRCREATECOLORSPACEW, 4)
11512 static void test_pack_PEMRCREATEDIBPATTERNBRUSHPT(void)
11514 /* PEMRCREATEDIBPATTERNBRUSHPT */
11515 TEST_TYPE_SIZE (PEMRCREATEDIBPATTERNBRUSHPT, 4)
11516 TEST_TYPE_ALIGN (PEMRCREATEDIBPATTERNBRUSHPT, 4)
11517 TEST_TARGET_SIZE (PEMRCREATEDIBPATTERNBRUSHPT, 32)
11518 TEST_TARGET_ALIGN(PEMRCREATEDIBPATTERNBRUSHPT, 4)
11521 static void test_pack_PEMRCREATEMONOBRUSH(void)
11523 /* PEMRCREATEMONOBRUSH */
11524 TEST_TYPE_SIZE (PEMRCREATEMONOBRUSH, 4)
11525 TEST_TYPE_ALIGN (PEMRCREATEMONOBRUSH, 4)
11526 TEST_TARGET_SIZE (PEMRCREATEMONOBRUSH, 32)
11527 TEST_TARGET_ALIGN(PEMRCREATEMONOBRUSH, 4)
11530 static void test_pack_PEMRCREATEPALETTE(void)
11532 /* PEMRCREATEPALETTE */
11533 TEST_TYPE_SIZE (PEMRCREATEPALETTE, 4)
11534 TEST_TYPE_ALIGN (PEMRCREATEPALETTE, 4)
11535 TEST_TARGET_SIZE (PEMRCREATEPALETTE, 20)
11536 TEST_TARGET_ALIGN(PEMRCREATEPALETTE, 4)
11539 static void test_pack_PEMRCREATEPEN(void)
11541 /* PEMRCREATEPEN */
11542 TEST_TYPE_SIZE (PEMRCREATEPEN, 4)
11543 TEST_TYPE_ALIGN (PEMRCREATEPEN, 4)
11544 TEST_TARGET_SIZE (PEMRCREATEPEN, 28)
11545 TEST_TARGET_ALIGN(PEMRCREATEPEN, 4)
11548 static void test_pack_PEMRDELETECOLORSPACE(void)
11550 /* PEMRDELETECOLORSPACE */
11551 TEST_TYPE_SIZE (PEMRDELETECOLORSPACE, 4)
11552 TEST_TYPE_ALIGN (PEMRDELETECOLORSPACE, 4)
11553 TEST_TARGET_SIZE (PEMRDELETECOLORSPACE, 12)
11554 TEST_TARGET_ALIGN(PEMRDELETECOLORSPACE, 4)
11557 static void test_pack_PEMRDELETEOBJECT(void)
11559 /* PEMRDELETEOBJECT */
11560 TEST_TYPE_SIZE (PEMRDELETEOBJECT, 4)
11561 TEST_TYPE_ALIGN (PEMRDELETEOBJECT, 4)
11562 TEST_TARGET_SIZE (PEMRDELETEOBJECT, 12)
11563 TEST_TARGET_ALIGN(PEMRDELETEOBJECT, 4)
11566 static void test_pack_PEMRELLIPSE(void)
11568 /* PEMRELLIPSE */
11569 TEST_TYPE_SIZE (PEMRELLIPSE, 4)
11570 TEST_TYPE_ALIGN (PEMRELLIPSE, 4)
11571 TEST_TARGET_SIZE (PEMRELLIPSE, 24)
11572 TEST_TARGET_ALIGN(PEMRELLIPSE, 4)
11575 static void test_pack_PEMRENDPATH(void)
11577 /* PEMRENDPATH */
11578 TEST_TYPE_SIZE (PEMRENDPATH, 4)
11579 TEST_TYPE_ALIGN (PEMRENDPATH, 4)
11580 TEST_TARGET_SIZE (PEMRENDPATH, 8)
11581 TEST_TARGET_ALIGN(PEMRENDPATH, 4)
11584 static void test_pack_PEMREOF(void)
11586 /* PEMREOF */
11587 TEST_TYPE_SIZE (PEMREOF, 4)
11588 TEST_TYPE_ALIGN (PEMREOF, 4)
11589 TEST_TARGET_SIZE (PEMREOF, 20)
11590 TEST_TARGET_ALIGN(PEMREOF, 4)
11593 static void test_pack_PEMREXCLUDECLIPRECT(void)
11595 /* PEMREXCLUDECLIPRECT */
11596 TEST_TYPE_SIZE (PEMREXCLUDECLIPRECT, 4)
11597 TEST_TYPE_ALIGN (PEMREXCLUDECLIPRECT, 4)
11598 TEST_TARGET_SIZE (PEMREXCLUDECLIPRECT, 24)
11599 TEST_TARGET_ALIGN(PEMREXCLUDECLIPRECT, 4)
11602 static void test_pack_PEMREXTCREATEFONTINDIRECTW(void)
11604 /* PEMREXTCREATEFONTINDIRECTW */
11605 TEST_TYPE_SIZE (PEMREXTCREATEFONTINDIRECTW, 4)
11606 TEST_TYPE_ALIGN (PEMREXTCREATEFONTINDIRECTW, 4)
11607 TEST_TARGET_SIZE (PEMREXTCREATEFONTINDIRECTW, 332)
11608 TEST_TARGET_ALIGN(PEMREXTCREATEFONTINDIRECTW, 4)
11611 static void test_pack_PEMREXTCREATEPEN(void)
11613 /* PEMREXTCREATEPEN */
11614 TEST_TYPE_SIZE (PEMREXTCREATEPEN, 4)
11615 TEST_TYPE_ALIGN (PEMREXTCREATEPEN, 4)
11616 TEST_TARGET_SIZE (PEMREXTCREATEPEN, 56)
11617 TEST_TARGET_ALIGN(PEMREXTCREATEPEN, 4)
11620 static void test_pack_PEMREXTFLOODFILL(void)
11622 /* PEMREXTFLOODFILL */
11623 TEST_TYPE_SIZE (PEMREXTFLOODFILL, 4)
11624 TEST_TYPE_ALIGN (PEMREXTFLOODFILL, 4)
11625 TEST_TARGET_SIZE (PEMREXTFLOODFILL, 24)
11626 TEST_TARGET_ALIGN(PEMREXTFLOODFILL, 4)
11629 static void test_pack_PEMREXTSELECTCLIPRGN(void)
11631 /* PEMREXTSELECTCLIPRGN */
11632 TEST_TYPE_SIZE (PEMREXTSELECTCLIPRGN, 4)
11633 TEST_TYPE_ALIGN (PEMREXTSELECTCLIPRGN, 4)
11634 TEST_TARGET_SIZE (PEMREXTSELECTCLIPRGN, 20)
11635 TEST_TARGET_ALIGN(PEMREXTSELECTCLIPRGN, 4)
11638 static void test_pack_PEMREXTTEXTOUTA(void)
11640 /* PEMREXTTEXTOUTA */
11641 TEST_TYPE_SIZE (PEMREXTTEXTOUTA, 4)
11642 TEST_TYPE_ALIGN (PEMREXTTEXTOUTA, 4)
11643 TEST_TARGET_SIZE (PEMREXTTEXTOUTA, 76)
11644 TEST_TARGET_ALIGN(PEMREXTTEXTOUTA, 4)
11647 static void test_pack_PEMREXTTEXTOUTW(void)
11649 /* PEMREXTTEXTOUTW */
11650 TEST_TYPE_SIZE (PEMREXTTEXTOUTW, 4)
11651 TEST_TYPE_ALIGN (PEMREXTTEXTOUTW, 4)
11652 TEST_TARGET_SIZE (PEMREXTTEXTOUTW, 76)
11653 TEST_TARGET_ALIGN(PEMREXTTEXTOUTW, 4)
11656 static void test_pack_PEMRFILLPATH(void)
11658 /* PEMRFILLPATH */
11659 TEST_TYPE_SIZE (PEMRFILLPATH, 4)
11660 TEST_TYPE_ALIGN (PEMRFILLPATH, 4)
11661 TEST_TARGET_SIZE (PEMRFILLPATH, 24)
11662 TEST_TARGET_ALIGN(PEMRFILLPATH, 4)
11665 static void test_pack_PEMRFILLRGN(void)
11667 /* PEMRFILLRGN */
11668 TEST_TYPE_SIZE (PEMRFILLRGN, 4)
11669 TEST_TYPE_ALIGN (PEMRFILLRGN, 4)
11670 TEST_TARGET_SIZE (PEMRFILLRGN, 36)
11671 TEST_TARGET_ALIGN(PEMRFILLRGN, 4)
11674 static void test_pack_PEMRFLATTENPATH(void)
11676 /* PEMRFLATTENPATH */
11677 TEST_TYPE_SIZE (PEMRFLATTENPATH, 4)
11678 TEST_TYPE_ALIGN (PEMRFLATTENPATH, 4)
11679 TEST_TARGET_SIZE (PEMRFLATTENPATH, 8)
11680 TEST_TARGET_ALIGN(PEMRFLATTENPATH, 4)
11683 static void test_pack_PEMRFORMAT(void)
11685 /* PEMRFORMAT */
11686 TEST_TYPE_SIZE (PEMRFORMAT, 4)
11687 TEST_TYPE_ALIGN (PEMRFORMAT, 4)
11688 TEST_TARGET_SIZE (PEMRFORMAT, 16)
11689 TEST_TARGET_ALIGN(PEMRFORMAT, 4)
11692 static void test_pack_PEMRFRAMERGN(void)
11694 /* PEMRFRAMERGN */
11695 TEST_TYPE_SIZE (PEMRFRAMERGN, 4)
11696 TEST_TYPE_ALIGN (PEMRFRAMERGN, 4)
11697 TEST_TARGET_SIZE (PEMRFRAMERGN, 44)
11698 TEST_TARGET_ALIGN(PEMRFRAMERGN, 4)
11701 static void test_pack_PEMRGDICOMMENT(void)
11703 /* PEMRGDICOMMENT */
11704 TEST_TYPE_SIZE (PEMRGDICOMMENT, 4)
11705 TEST_TYPE_ALIGN (PEMRGDICOMMENT, 4)
11706 TEST_TARGET_SIZE (PEMRGDICOMMENT, 16)
11707 TEST_TARGET_ALIGN(PEMRGDICOMMENT, 4)
11710 static void test_pack_PEMRGLSBOUNDEDRECORD(void)
11712 /* PEMRGLSBOUNDEDRECORD */
11713 TEST_TYPE_SIZE (PEMRGLSBOUNDEDRECORD, 4)
11714 TEST_TYPE_ALIGN (PEMRGLSBOUNDEDRECORD, 4)
11715 TEST_TARGET_SIZE (PEMRGLSBOUNDEDRECORD, 32)
11716 TEST_TARGET_ALIGN(PEMRGLSBOUNDEDRECORD, 4)
11719 static void test_pack_PEMRGLSRECORD(void)
11721 /* PEMRGLSRECORD */
11722 TEST_TYPE_SIZE (PEMRGLSRECORD, 4)
11723 TEST_TYPE_ALIGN (PEMRGLSRECORD, 4)
11724 TEST_TARGET_SIZE (PEMRGLSRECORD, 16)
11725 TEST_TARGET_ALIGN(PEMRGLSRECORD, 4)
11728 static void test_pack_PEMRINTERSECTCLIPRECT(void)
11730 /* PEMRINTERSECTCLIPRECT */
11731 TEST_TYPE_SIZE (PEMRINTERSECTCLIPRECT, 4)
11732 TEST_TYPE_ALIGN (PEMRINTERSECTCLIPRECT, 4)
11733 TEST_TARGET_SIZE (PEMRINTERSECTCLIPRECT, 24)
11734 TEST_TARGET_ALIGN(PEMRINTERSECTCLIPRECT, 4)
11737 static void test_pack_PEMRINVERTRGN(void)
11739 /* PEMRINVERTRGN */
11740 TEST_TYPE_SIZE (PEMRINVERTRGN, 4)
11741 TEST_TYPE_ALIGN (PEMRINVERTRGN, 4)
11742 TEST_TARGET_SIZE (PEMRINVERTRGN, 32)
11743 TEST_TARGET_ALIGN(PEMRINVERTRGN, 4)
11746 static void test_pack_PEMRLINETO(void)
11748 /* PEMRLINETO */
11749 TEST_TYPE_SIZE (PEMRLINETO, 4)
11750 TEST_TYPE_ALIGN (PEMRLINETO, 4)
11751 TEST_TARGET_SIZE (PEMRLINETO, 16)
11752 TEST_TARGET_ALIGN(PEMRLINETO, 4)
11755 static void test_pack_PEMRMASKBLT(void)
11757 /* PEMRMASKBLT */
11758 TEST_TYPE_SIZE (PEMRMASKBLT, 4)
11759 TEST_TYPE_ALIGN (PEMRMASKBLT, 4)
11760 TEST_TARGET_SIZE (PEMRMASKBLT, 128)
11761 TEST_TARGET_ALIGN(PEMRMASKBLT, 4)
11764 static void test_pack_PEMRMODIFYWORLDTRANSFORM(void)
11766 /* PEMRMODIFYWORLDTRANSFORM */
11767 TEST_TYPE_SIZE (PEMRMODIFYWORLDTRANSFORM, 4)
11768 TEST_TYPE_ALIGN (PEMRMODIFYWORLDTRANSFORM, 4)
11769 TEST_TARGET_SIZE (PEMRMODIFYWORLDTRANSFORM, 36)
11770 TEST_TARGET_ALIGN(PEMRMODIFYWORLDTRANSFORM, 4)
11773 static void test_pack_PEMRMOVETOEX(void)
11775 /* PEMRMOVETOEX */
11776 TEST_TYPE_SIZE (PEMRMOVETOEX, 4)
11777 TEST_TYPE_ALIGN (PEMRMOVETOEX, 4)
11778 TEST_TARGET_SIZE (PEMRMOVETOEX, 16)
11779 TEST_TARGET_ALIGN(PEMRMOVETOEX, 4)
11782 static void test_pack_PEMROFFSETCLIPRGN(void)
11784 /* PEMROFFSETCLIPRGN */
11785 TEST_TYPE_SIZE (PEMROFFSETCLIPRGN, 4)
11786 TEST_TYPE_ALIGN (PEMROFFSETCLIPRGN, 4)
11787 TEST_TARGET_SIZE (PEMROFFSETCLIPRGN, 16)
11788 TEST_TARGET_ALIGN(PEMROFFSETCLIPRGN, 4)
11791 static void test_pack_PEMRPAINTRGN(void)
11793 /* PEMRPAINTRGN */
11794 TEST_TYPE_SIZE (PEMRPAINTRGN, 4)
11795 TEST_TYPE_ALIGN (PEMRPAINTRGN, 4)
11796 TEST_TARGET_SIZE (PEMRPAINTRGN, 32)
11797 TEST_TARGET_ALIGN(PEMRPAINTRGN, 4)
11800 static void test_pack_PEMRPIE(void)
11802 /* PEMRPIE */
11803 TEST_TYPE_SIZE (PEMRPIE, 4)
11804 TEST_TYPE_ALIGN (PEMRPIE, 4)
11805 TEST_TARGET_SIZE (PEMRPIE, 40)
11806 TEST_TARGET_ALIGN(PEMRPIE, 4)
11809 static void test_pack_PEMRPIXELFORMAT(void)
11811 /* PEMRPIXELFORMAT */
11812 TEST_TYPE_SIZE (PEMRPIXELFORMAT, 4)
11813 TEST_TYPE_ALIGN (PEMRPIXELFORMAT, 4)
11814 TEST_TARGET_SIZE (PEMRPIXELFORMAT, 48)
11815 TEST_TARGET_ALIGN(PEMRPIXELFORMAT, 4)
11818 static void test_pack_PEMRPLGBLT(void)
11820 /* PEMRPLGBLT */
11821 TEST_TYPE_SIZE (PEMRPLGBLT, 4)
11822 TEST_TYPE_ALIGN (PEMRPLGBLT, 4)
11823 TEST_TARGET_SIZE (PEMRPLGBLT, 140)
11824 TEST_TARGET_ALIGN(PEMRPLGBLT, 4)
11827 static void test_pack_PEMRPOLYBEZIER(void)
11829 /* PEMRPOLYBEZIER */
11830 TEST_TYPE_SIZE (PEMRPOLYBEZIER, 4)
11831 TEST_TYPE_ALIGN (PEMRPOLYBEZIER, 4)
11832 TEST_TARGET_SIZE (PEMRPOLYBEZIER, 36)
11833 TEST_TARGET_ALIGN(PEMRPOLYBEZIER, 4)
11836 static void test_pack_PEMRPOLYBEZIER16(void)
11838 /* PEMRPOLYBEZIER16 */
11839 TEST_TYPE_SIZE (PEMRPOLYBEZIER16, 4)
11840 TEST_TYPE_ALIGN (PEMRPOLYBEZIER16, 4)
11841 TEST_TARGET_SIZE (PEMRPOLYBEZIER16, 32)
11842 TEST_TARGET_ALIGN(PEMRPOLYBEZIER16, 4)
11845 static void test_pack_PEMRPOLYBEZIERTO(void)
11847 /* PEMRPOLYBEZIERTO */
11848 TEST_TYPE_SIZE (PEMRPOLYBEZIERTO, 4)
11849 TEST_TYPE_ALIGN (PEMRPOLYBEZIERTO, 4)
11850 TEST_TARGET_SIZE (PEMRPOLYBEZIERTO, 36)
11851 TEST_TARGET_ALIGN(PEMRPOLYBEZIERTO, 4)
11854 static void test_pack_PEMRPOLYBEZIERTO16(void)
11856 /* PEMRPOLYBEZIERTO16 */
11857 TEST_TYPE_SIZE (PEMRPOLYBEZIERTO16, 4)
11858 TEST_TYPE_ALIGN (PEMRPOLYBEZIERTO16, 4)
11859 TEST_TARGET_SIZE (PEMRPOLYBEZIERTO16, 32)
11860 TEST_TARGET_ALIGN(PEMRPOLYBEZIERTO16, 4)
11863 static void test_pack_PEMRPOLYDRAW(void)
11865 /* PEMRPOLYDRAW */
11866 TEST_TYPE_SIZE (PEMRPOLYDRAW, 4)
11867 TEST_TYPE_ALIGN (PEMRPOLYDRAW, 4)
11868 TEST_TARGET_SIZE (PEMRPOLYDRAW, 40)
11869 TEST_TARGET_ALIGN(PEMRPOLYDRAW, 4)
11872 static void test_pack_PEMRPOLYDRAW16(void)
11874 /* PEMRPOLYDRAW16 */
11875 TEST_TYPE_SIZE (PEMRPOLYDRAW16, 4)
11876 TEST_TYPE_ALIGN (PEMRPOLYDRAW16, 4)
11877 TEST_TARGET_SIZE (PEMRPOLYDRAW16, 36)
11878 TEST_TARGET_ALIGN(PEMRPOLYDRAW16, 4)
11881 static void test_pack_PEMRPOLYGON(void)
11883 /* PEMRPOLYGON */
11884 TEST_TYPE_SIZE (PEMRPOLYGON, 4)
11885 TEST_TYPE_ALIGN (PEMRPOLYGON, 4)
11886 TEST_TARGET_SIZE (PEMRPOLYGON, 36)
11887 TEST_TARGET_ALIGN(PEMRPOLYGON, 4)
11890 static void test_pack_PEMRPOLYGON16(void)
11892 /* PEMRPOLYGON16 */
11893 TEST_TYPE_SIZE (PEMRPOLYGON16, 4)
11894 TEST_TYPE_ALIGN (PEMRPOLYGON16, 4)
11895 TEST_TARGET_SIZE (PEMRPOLYGON16, 32)
11896 TEST_TARGET_ALIGN(PEMRPOLYGON16, 4)
11899 static void test_pack_PEMRPOLYLINE(void)
11901 /* PEMRPOLYLINE */
11902 TEST_TYPE_SIZE (PEMRPOLYLINE, 4)
11903 TEST_TYPE_ALIGN (PEMRPOLYLINE, 4)
11904 TEST_TARGET_SIZE (PEMRPOLYLINE, 36)
11905 TEST_TARGET_ALIGN(PEMRPOLYLINE, 4)
11908 static void test_pack_PEMRPOLYLINE16(void)
11910 /* PEMRPOLYLINE16 */
11911 TEST_TYPE_SIZE (PEMRPOLYLINE16, 4)
11912 TEST_TYPE_ALIGN (PEMRPOLYLINE16, 4)
11913 TEST_TARGET_SIZE (PEMRPOLYLINE16, 32)
11914 TEST_TARGET_ALIGN(PEMRPOLYLINE16, 4)
11917 static void test_pack_PEMRPOLYLINETO(void)
11919 /* PEMRPOLYLINETO */
11920 TEST_TYPE_SIZE (PEMRPOLYLINETO, 4)
11921 TEST_TYPE_ALIGN (PEMRPOLYLINETO, 4)
11922 TEST_TARGET_SIZE (PEMRPOLYLINETO, 36)
11923 TEST_TARGET_ALIGN(PEMRPOLYLINETO, 4)
11926 static void test_pack_PEMRPOLYLINETO16(void)
11928 /* PEMRPOLYLINETO16 */
11929 TEST_TYPE_SIZE (PEMRPOLYLINETO16, 4)
11930 TEST_TYPE_ALIGN (PEMRPOLYLINETO16, 4)
11931 TEST_TARGET_SIZE (PEMRPOLYLINETO16, 32)
11932 TEST_TARGET_ALIGN(PEMRPOLYLINETO16, 4)
11935 static void test_pack_PEMRPOLYPOLYGON(void)
11937 /* PEMRPOLYPOLYGON */
11938 TEST_TYPE_SIZE (PEMRPOLYPOLYGON, 4)
11939 TEST_TYPE_ALIGN (PEMRPOLYPOLYGON, 4)
11940 TEST_TARGET_SIZE (PEMRPOLYPOLYGON, 44)
11941 TEST_TARGET_ALIGN(PEMRPOLYPOLYGON, 4)
11944 static void test_pack_PEMRPOLYPOLYGON16(void)
11946 /* PEMRPOLYPOLYGON16 */
11947 TEST_TYPE_SIZE (PEMRPOLYPOLYGON16, 4)
11948 TEST_TYPE_ALIGN (PEMRPOLYPOLYGON16, 4)
11949 TEST_TARGET_SIZE (PEMRPOLYPOLYGON16, 40)
11950 TEST_TARGET_ALIGN(PEMRPOLYPOLYGON16, 4)
11953 static void test_pack_PEMRPOLYPOLYLINE(void)
11955 /* PEMRPOLYPOLYLINE */
11956 TEST_TYPE_SIZE (PEMRPOLYPOLYLINE, 4)
11957 TEST_TYPE_ALIGN (PEMRPOLYPOLYLINE, 4)
11958 TEST_TARGET_SIZE (PEMRPOLYPOLYLINE, 44)
11959 TEST_TARGET_ALIGN(PEMRPOLYPOLYLINE, 4)
11962 static void test_pack_PEMRPOLYPOLYLINE16(void)
11964 /* PEMRPOLYPOLYLINE16 */
11965 TEST_TYPE_SIZE (PEMRPOLYPOLYLINE16, 4)
11966 TEST_TYPE_ALIGN (PEMRPOLYPOLYLINE16, 4)
11967 TEST_TARGET_SIZE (PEMRPOLYPOLYLINE16, 40)
11968 TEST_TARGET_ALIGN(PEMRPOLYPOLYLINE16, 4)
11971 static void test_pack_PEMRPOLYTEXTOUTA(void)
11973 /* PEMRPOLYTEXTOUTA */
11974 TEST_TYPE_SIZE (PEMRPOLYTEXTOUTA, 4)
11975 TEST_TYPE_ALIGN (PEMRPOLYTEXTOUTA, 4)
11976 TEST_TARGET_SIZE (PEMRPOLYTEXTOUTA, 80)
11977 TEST_TARGET_ALIGN(PEMRPOLYTEXTOUTA, 4)
11980 static void test_pack_PEMRPOLYTEXTOUTW(void)
11982 /* PEMRPOLYTEXTOUTW */
11983 TEST_TYPE_SIZE (PEMRPOLYTEXTOUTW, 4)
11984 TEST_TYPE_ALIGN (PEMRPOLYTEXTOUTW, 4)
11985 TEST_TARGET_SIZE (PEMRPOLYTEXTOUTW, 80)
11986 TEST_TARGET_ALIGN(PEMRPOLYTEXTOUTW, 4)
11989 static void test_pack_PEMRREALIZEPALETTE(void)
11991 /* PEMRREALIZEPALETTE */
11992 TEST_TYPE_SIZE (PEMRREALIZEPALETTE, 4)
11993 TEST_TYPE_ALIGN (PEMRREALIZEPALETTE, 4)
11994 TEST_TARGET_SIZE (PEMRREALIZEPALETTE, 8)
11995 TEST_TARGET_ALIGN(PEMRREALIZEPALETTE, 4)
11998 static void test_pack_PEMRRECTANGLE(void)
12000 /* PEMRRECTANGLE */
12001 TEST_TYPE_SIZE (PEMRRECTANGLE, 4)
12002 TEST_TYPE_ALIGN (PEMRRECTANGLE, 4)
12003 TEST_TARGET_SIZE (PEMRRECTANGLE, 24)
12004 TEST_TARGET_ALIGN(PEMRRECTANGLE, 4)
12007 static void test_pack_PEMRRESIZEPALETTE(void)
12009 /* PEMRRESIZEPALETTE */
12010 TEST_TYPE_SIZE (PEMRRESIZEPALETTE, 4)
12011 TEST_TYPE_ALIGN (PEMRRESIZEPALETTE, 4)
12012 TEST_TARGET_SIZE (PEMRRESIZEPALETTE, 16)
12013 TEST_TARGET_ALIGN(PEMRRESIZEPALETTE, 4)
12016 static void test_pack_PEMRRESTOREDC(void)
12018 /* PEMRRESTOREDC */
12019 TEST_TYPE_SIZE (PEMRRESTOREDC, 4)
12020 TEST_TYPE_ALIGN (PEMRRESTOREDC, 4)
12021 TEST_TARGET_SIZE (PEMRRESTOREDC, 12)
12022 TEST_TARGET_ALIGN(PEMRRESTOREDC, 4)
12025 static void test_pack_PEMRROUNDRECT(void)
12027 /* PEMRROUNDRECT */
12028 TEST_TYPE_SIZE (PEMRROUNDRECT, 4)
12029 TEST_TYPE_ALIGN (PEMRROUNDRECT, 4)
12030 TEST_TARGET_SIZE (PEMRROUNDRECT, 32)
12031 TEST_TARGET_ALIGN(PEMRROUNDRECT, 4)
12034 static void test_pack_PEMRSAVEDC(void)
12036 /* PEMRSAVEDC */
12037 TEST_TYPE_SIZE (PEMRSAVEDC, 4)
12038 TEST_TYPE_ALIGN (PEMRSAVEDC, 4)
12039 TEST_TARGET_SIZE (PEMRSAVEDC, 8)
12040 TEST_TARGET_ALIGN(PEMRSAVEDC, 4)
12043 static void test_pack_PEMRSCALEVIEWPORTEXTEX(void)
12045 /* PEMRSCALEVIEWPORTEXTEX */
12046 TEST_TYPE_SIZE (PEMRSCALEVIEWPORTEXTEX, 4)
12047 TEST_TYPE_ALIGN (PEMRSCALEVIEWPORTEXTEX, 4)
12048 TEST_TARGET_SIZE (PEMRSCALEVIEWPORTEXTEX, 24)
12049 TEST_TARGET_ALIGN(PEMRSCALEVIEWPORTEXTEX, 4)
12052 static void test_pack_PEMRSCALEWINDOWEXTEX(void)
12054 /* PEMRSCALEWINDOWEXTEX */
12055 TEST_TYPE_SIZE (PEMRSCALEWINDOWEXTEX, 4)
12056 TEST_TYPE_ALIGN (PEMRSCALEWINDOWEXTEX, 4)
12057 TEST_TARGET_SIZE (PEMRSCALEWINDOWEXTEX, 24)
12058 TEST_TARGET_ALIGN(PEMRSCALEWINDOWEXTEX, 4)
12061 static void test_pack_PEMRSELECTCLIPPATH(void)
12063 /* PEMRSELECTCLIPPATH */
12064 TEST_TYPE_SIZE (PEMRSELECTCLIPPATH, 4)
12065 TEST_TYPE_ALIGN (PEMRSELECTCLIPPATH, 4)
12066 TEST_TARGET_SIZE (PEMRSELECTCLIPPATH, 12)
12067 TEST_TARGET_ALIGN(PEMRSELECTCLIPPATH, 4)
12070 static void test_pack_PEMRSELECTCOLORSPACE(void)
12072 /* PEMRSELECTCOLORSPACE */
12073 TEST_TYPE_SIZE (PEMRSELECTCOLORSPACE, 4)
12074 TEST_TYPE_ALIGN (PEMRSELECTCOLORSPACE, 4)
12075 TEST_TARGET_SIZE (PEMRSELECTCOLORSPACE, 12)
12076 TEST_TARGET_ALIGN(PEMRSELECTCOLORSPACE, 4)
12079 static void test_pack_PEMRSELECTOBJECT(void)
12081 /* PEMRSELECTOBJECT */
12082 TEST_TYPE_SIZE (PEMRSELECTOBJECT, 4)
12083 TEST_TYPE_ALIGN (PEMRSELECTOBJECT, 4)
12084 TEST_TARGET_SIZE (PEMRSELECTOBJECT, 12)
12085 TEST_TARGET_ALIGN(PEMRSELECTOBJECT, 4)
12088 static void test_pack_PEMRSELECTPALETTE(void)
12090 /* PEMRSELECTPALETTE */
12091 TEST_TYPE_SIZE (PEMRSELECTPALETTE, 4)
12092 TEST_TYPE_ALIGN (PEMRSELECTPALETTE, 4)
12093 TEST_TARGET_SIZE (PEMRSELECTPALETTE, 12)
12094 TEST_TARGET_ALIGN(PEMRSELECTPALETTE, 4)
12097 static void test_pack_PEMRSETARCDIRECTION(void)
12099 /* PEMRSETARCDIRECTION */
12100 TEST_TYPE_SIZE (PEMRSETARCDIRECTION, 4)
12101 TEST_TYPE_ALIGN (PEMRSETARCDIRECTION, 4)
12102 TEST_TARGET_SIZE (PEMRSETARCDIRECTION, 12)
12103 TEST_TARGET_ALIGN(PEMRSETARCDIRECTION, 4)
12106 static void test_pack_PEMRSETBKCOLOR(void)
12108 /* PEMRSETBKCOLOR */
12109 TEST_TYPE_SIZE (PEMRSETBKCOLOR, 4)
12110 TEST_TYPE_ALIGN (PEMRSETBKCOLOR, 4)
12111 TEST_TARGET_SIZE (PEMRSETBKCOLOR, 12)
12112 TEST_TARGET_ALIGN(PEMRSETBKCOLOR, 4)
12115 static void test_pack_PEMRSETBKMODE(void)
12117 /* PEMRSETBKMODE */
12118 TEST_TYPE_SIZE (PEMRSETBKMODE, 4)
12119 TEST_TYPE_ALIGN (PEMRSETBKMODE, 4)
12120 TEST_TARGET_SIZE (PEMRSETBKMODE, 12)
12121 TEST_TARGET_ALIGN(PEMRSETBKMODE, 4)
12124 static void test_pack_PEMRSETBRUSHORGEX(void)
12126 /* PEMRSETBRUSHORGEX */
12127 TEST_TYPE_SIZE (PEMRSETBRUSHORGEX, 4)
12128 TEST_TYPE_ALIGN (PEMRSETBRUSHORGEX, 4)
12129 TEST_TARGET_SIZE (PEMRSETBRUSHORGEX, 16)
12130 TEST_TARGET_ALIGN(PEMRSETBRUSHORGEX, 4)
12133 static void test_pack_PEMRSETCOLORADJUSTMENT(void)
12135 /* PEMRSETCOLORADJUSTMENT */
12136 TEST_TYPE_SIZE (PEMRSETCOLORADJUSTMENT, 4)
12137 TEST_TYPE_ALIGN (PEMRSETCOLORADJUSTMENT, 4)
12138 TEST_TARGET_SIZE (PEMRSETCOLORADJUSTMENT, 32)
12139 TEST_TARGET_ALIGN(PEMRSETCOLORADJUSTMENT, 4)
12142 static void test_pack_PEMRSETCOLORSPACE(void)
12144 /* PEMRSETCOLORSPACE */
12145 TEST_TYPE_SIZE (PEMRSETCOLORSPACE, 4)
12146 TEST_TYPE_ALIGN (PEMRSETCOLORSPACE, 4)
12147 TEST_TARGET_SIZE (PEMRSETCOLORSPACE, 12)
12148 TEST_TARGET_ALIGN(PEMRSETCOLORSPACE, 4)
12151 static void test_pack_PEMRSETDIBITSTODEVICE(void)
12153 /* PEMRSETDIBITSTODEVICE */
12154 TEST_TYPE_SIZE (PEMRSETDIBITSTODEVICE, 4)
12155 TEST_TYPE_ALIGN (PEMRSETDIBITSTODEVICE, 4)
12156 TEST_TARGET_SIZE (PEMRSETDIBITSTODEVICE, 76)
12157 TEST_TARGET_ALIGN(PEMRSETDIBITSTODEVICE, 4)
12160 static void test_pack_PEMRSETICMMODE(void)
12162 /* PEMRSETICMMODE */
12163 TEST_TYPE_SIZE (PEMRSETICMMODE, 4)
12164 TEST_TYPE_ALIGN (PEMRSETICMMODE, 4)
12165 TEST_TARGET_SIZE (PEMRSETICMMODE, 12)
12166 TEST_TARGET_ALIGN(PEMRSETICMMODE, 4)
12169 static void test_pack_PEMRSETLAYOUT(void)
12171 /* PEMRSETLAYOUT */
12172 TEST_TYPE_SIZE (PEMRSETLAYOUT, 4)
12173 TEST_TYPE_ALIGN (PEMRSETLAYOUT, 4)
12174 TEST_TARGET_SIZE (PEMRSETLAYOUT, 12)
12175 TEST_TARGET_ALIGN(PEMRSETLAYOUT, 4)
12178 static void test_pack_PEMRSETMAPMODE(void)
12180 /* PEMRSETMAPMODE */
12181 TEST_TYPE_SIZE (PEMRSETMAPMODE, 4)
12182 TEST_TYPE_ALIGN (PEMRSETMAPMODE, 4)
12183 TEST_TARGET_SIZE (PEMRSETMAPMODE, 12)
12184 TEST_TARGET_ALIGN(PEMRSETMAPMODE, 4)
12187 static void test_pack_PEMRSETMAPPERFLAGS(void)
12189 /* PEMRSETMAPPERFLAGS */
12190 TEST_TYPE_SIZE (PEMRSETMAPPERFLAGS, 4)
12191 TEST_TYPE_ALIGN (PEMRSETMAPPERFLAGS, 4)
12192 TEST_TARGET_SIZE (PEMRSETMAPPERFLAGS, 12)
12193 TEST_TARGET_ALIGN(PEMRSETMAPPERFLAGS, 4)
12196 static void test_pack_PEMRSETMETARGN(void)
12198 /* PEMRSETMETARGN */
12199 TEST_TYPE_SIZE (PEMRSETMETARGN, 4)
12200 TEST_TYPE_ALIGN (PEMRSETMETARGN, 4)
12201 TEST_TARGET_SIZE (PEMRSETMETARGN, 8)
12202 TEST_TARGET_ALIGN(PEMRSETMETARGN, 4)
12205 static void test_pack_PEMRSETMITERLIMIT(void)
12207 /* PEMRSETMITERLIMIT */
12208 TEST_TYPE_SIZE (PEMRSETMITERLIMIT, 4)
12209 TEST_TYPE_ALIGN (PEMRSETMITERLIMIT, 4)
12210 TEST_TARGET_SIZE (PEMRSETMITERLIMIT, 12)
12211 TEST_TARGET_ALIGN(PEMRSETMITERLIMIT, 4)
12214 static void test_pack_PEMRSETPALETTEENTRIES(void)
12216 /* PEMRSETPALETTEENTRIES */
12217 TEST_TYPE_SIZE (PEMRSETPALETTEENTRIES, 4)
12218 TEST_TYPE_ALIGN (PEMRSETPALETTEENTRIES, 4)
12219 TEST_TARGET_SIZE (PEMRSETPALETTEENTRIES, 24)
12220 TEST_TARGET_ALIGN(PEMRSETPALETTEENTRIES, 4)
12223 static void test_pack_PEMRSETPIXELV(void)
12225 /* PEMRSETPIXELV */
12226 TEST_TYPE_SIZE (PEMRSETPIXELV, 4)
12227 TEST_TYPE_ALIGN (PEMRSETPIXELV, 4)
12228 TEST_TARGET_SIZE (PEMRSETPIXELV, 20)
12229 TEST_TARGET_ALIGN(PEMRSETPIXELV, 4)
12232 static void test_pack_PEMRSETPOLYFILLMODE(void)
12234 /* PEMRSETPOLYFILLMODE */
12235 TEST_TYPE_SIZE (PEMRSETPOLYFILLMODE, 4)
12236 TEST_TYPE_ALIGN (PEMRSETPOLYFILLMODE, 4)
12237 TEST_TARGET_SIZE (PEMRSETPOLYFILLMODE, 12)
12238 TEST_TARGET_ALIGN(PEMRSETPOLYFILLMODE, 4)
12241 static void test_pack_PEMRSETROP2(void)
12243 /* PEMRSETROP2 */
12244 TEST_TYPE_SIZE (PEMRSETROP2, 4)
12245 TEST_TYPE_ALIGN (PEMRSETROP2, 4)
12246 TEST_TARGET_SIZE (PEMRSETROP2, 12)
12247 TEST_TARGET_ALIGN(PEMRSETROP2, 4)
12250 static void test_pack_PEMRSETSTRETCHBLTMODE(void)
12252 /* PEMRSETSTRETCHBLTMODE */
12253 TEST_TYPE_SIZE (PEMRSETSTRETCHBLTMODE, 4)
12254 TEST_TYPE_ALIGN (PEMRSETSTRETCHBLTMODE, 4)
12255 TEST_TARGET_SIZE (PEMRSETSTRETCHBLTMODE, 12)
12256 TEST_TARGET_ALIGN(PEMRSETSTRETCHBLTMODE, 4)
12259 static void test_pack_PEMRSETTEXTALIGN(void)
12261 /* PEMRSETTEXTALIGN */
12262 TEST_TYPE_SIZE (PEMRSETTEXTALIGN, 4)
12263 TEST_TYPE_ALIGN (PEMRSETTEXTALIGN, 4)
12264 TEST_TARGET_SIZE (PEMRSETTEXTALIGN, 12)
12265 TEST_TARGET_ALIGN(PEMRSETTEXTALIGN, 4)
12268 static void test_pack_PEMRSETTEXTCOLOR(void)
12270 /* PEMRSETTEXTCOLOR */
12271 TEST_TYPE_SIZE (PEMRSETTEXTCOLOR, 4)
12272 TEST_TYPE_ALIGN (PEMRSETTEXTCOLOR, 4)
12273 TEST_TARGET_SIZE (PEMRSETTEXTCOLOR, 12)
12274 TEST_TARGET_ALIGN(PEMRSETTEXTCOLOR, 4)
12277 static void test_pack_PEMRSETVIEWPORTEXTEX(void)
12279 /* PEMRSETVIEWPORTEXTEX */
12280 TEST_TYPE_SIZE (PEMRSETVIEWPORTEXTEX, 4)
12281 TEST_TYPE_ALIGN (PEMRSETVIEWPORTEXTEX, 4)
12282 TEST_TARGET_SIZE (PEMRSETVIEWPORTEXTEX, 16)
12283 TEST_TARGET_ALIGN(PEMRSETVIEWPORTEXTEX, 4)
12286 static void test_pack_PEMRSETVIEWPORTORGEX(void)
12288 /* PEMRSETVIEWPORTORGEX */
12289 TEST_TYPE_SIZE (PEMRSETVIEWPORTORGEX, 4)
12290 TEST_TYPE_ALIGN (PEMRSETVIEWPORTORGEX, 4)
12291 TEST_TARGET_SIZE (PEMRSETVIEWPORTORGEX, 16)
12292 TEST_TARGET_ALIGN(PEMRSETVIEWPORTORGEX, 4)
12295 static void test_pack_PEMRSETWINDOWEXTEX(void)
12297 /* PEMRSETWINDOWEXTEX */
12298 TEST_TYPE_SIZE (PEMRSETWINDOWEXTEX, 4)
12299 TEST_TYPE_ALIGN (PEMRSETWINDOWEXTEX, 4)
12300 TEST_TARGET_SIZE (PEMRSETWINDOWEXTEX, 16)
12301 TEST_TARGET_ALIGN(PEMRSETWINDOWEXTEX, 4)
12304 static void test_pack_PEMRSETWINDOWORGEX(void)
12306 /* PEMRSETWINDOWORGEX */
12307 TEST_TYPE_SIZE (PEMRSETWINDOWORGEX, 4)
12308 TEST_TYPE_ALIGN (PEMRSETWINDOWORGEX, 4)
12309 TEST_TARGET_SIZE (PEMRSETWINDOWORGEX, 16)
12310 TEST_TARGET_ALIGN(PEMRSETWINDOWORGEX, 4)
12313 static void test_pack_PEMRSETWORLDTRANSFORM(void)
12315 /* PEMRSETWORLDTRANSFORM */
12316 TEST_TYPE_SIZE (PEMRSETWORLDTRANSFORM, 4)
12317 TEST_TYPE_ALIGN (PEMRSETWORLDTRANSFORM, 4)
12318 TEST_TARGET_SIZE (PEMRSETWORLDTRANSFORM, 32)
12319 TEST_TARGET_ALIGN(PEMRSETWORLDTRANSFORM, 4)
12322 static void test_pack_PEMRSTRETCHBLT(void)
12324 /* PEMRSTRETCHBLT */
12325 TEST_TYPE_SIZE (PEMRSTRETCHBLT, 4)
12326 TEST_TYPE_ALIGN (PEMRSTRETCHBLT, 4)
12327 TEST_TARGET_SIZE (PEMRSTRETCHBLT, 108)
12328 TEST_TARGET_ALIGN(PEMRSTRETCHBLT, 4)
12331 static void test_pack_PEMRSTRETCHDIBITS(void)
12333 /* PEMRSTRETCHDIBITS */
12334 TEST_TYPE_SIZE (PEMRSTRETCHDIBITS, 4)
12335 TEST_TYPE_ALIGN (PEMRSTRETCHDIBITS, 4)
12336 TEST_TARGET_SIZE (PEMRSTRETCHDIBITS, 80)
12337 TEST_TARGET_ALIGN(PEMRSTRETCHDIBITS, 4)
12340 static void test_pack_PEMRSTROKEANDFILLPATH(void)
12342 /* PEMRSTROKEANDFILLPATH */
12343 TEST_TYPE_SIZE (PEMRSTROKEANDFILLPATH, 4)
12344 TEST_TYPE_ALIGN (PEMRSTROKEANDFILLPATH, 4)
12345 TEST_TARGET_SIZE (PEMRSTROKEANDFILLPATH, 24)
12346 TEST_TARGET_ALIGN(PEMRSTROKEANDFILLPATH, 4)
12349 static void test_pack_PEMRSTROKEPATH(void)
12351 /* PEMRSTROKEPATH */
12352 TEST_TYPE_SIZE (PEMRSTROKEPATH, 4)
12353 TEST_TYPE_ALIGN (PEMRSTROKEPATH, 4)
12354 TEST_TARGET_SIZE (PEMRSTROKEPATH, 24)
12355 TEST_TARGET_ALIGN(PEMRSTROKEPATH, 4)
12358 static void test_pack_PEMRTEXT(void)
12360 /* PEMRTEXT */
12361 TEST_TYPE_SIZE (PEMRTEXT, 4)
12362 TEST_TYPE_ALIGN (PEMRTEXT, 4)
12363 TEST_TARGET_SIZE (PEMRTEXT, 40)
12364 TEST_TARGET_ALIGN(PEMRTEXT, 4)
12367 static void test_pack_PEMRWIDENPATH(void)
12369 /* PEMRWIDENPATH */
12370 TEST_TYPE_SIZE (PEMRWIDENPATH, 4)
12371 TEST_TYPE_ALIGN (PEMRWIDENPATH, 4)
12372 TEST_TARGET_SIZE (PEMRWIDENPATH, 8)
12373 TEST_TARGET_ALIGN(PEMRWIDENPATH, 4)
12376 static void test_pack_PENHMETAHEADER(void)
12378 /* PENHMETAHEADER */
12379 TEST_TYPE_SIZE (PENHMETAHEADER, 4)
12380 TEST_TYPE_ALIGN (PENHMETAHEADER, 4)
12381 TEST_TARGET_SIZE (PENHMETAHEADER, 108)
12382 TEST_TARGET_ALIGN(PENHMETAHEADER, 4)
12385 static void test_pack_PEXTLOGFONTA(void)
12387 /* PEXTLOGFONTA */
12388 TEST_TYPE_SIZE (PEXTLOGFONTA, 4)
12389 TEST_TYPE_ALIGN (PEXTLOGFONTA, 4)
12390 TEST_TARGET_SIZE (PEXTLOGFONTA, 192)
12391 TEST_TARGET_ALIGN(PEXTLOGFONTA, 4)
12394 static void test_pack_PEXTLOGFONTW(void)
12396 /* PEXTLOGFONTW */
12397 TEST_TYPE_SIZE (PEXTLOGFONTW, 4)
12398 TEST_TYPE_ALIGN (PEXTLOGFONTW, 4)
12399 TEST_TARGET_SIZE (PEXTLOGFONTW, 320)
12400 TEST_TARGET_ALIGN(PEXTLOGFONTW, 4)
12403 static void test_pack_PEXTLOGPEN(void)
12405 /* PEXTLOGPEN */
12406 TEST_TYPE_SIZE (PEXTLOGPEN, 4)
12407 TEST_TYPE_ALIGN (PEXTLOGPEN, 4)
12408 TEST_TARGET_SIZE (PEXTLOGPEN, 28)
12409 TEST_TARGET_ALIGN(PEXTLOGPEN, 4)
12412 static void test_pack_PFONTSIGNATURE(void)
12414 /* PFONTSIGNATURE */
12415 TEST_TYPE_SIZE (PFONTSIGNATURE, 4)
12416 TEST_TYPE_ALIGN (PFONTSIGNATURE, 4)
12417 TEST_TARGET_SIZE (PFONTSIGNATURE, 24)
12418 TEST_TARGET_ALIGN(PFONTSIGNATURE, 4)
12421 static void test_pack_PGLYPHMETRICSFLOAT(void)
12423 /* PGLYPHMETRICSFLOAT */
12424 TEST_TYPE_SIZE (PGLYPHMETRICSFLOAT, 4)
12425 TEST_TYPE_ALIGN (PGLYPHMETRICSFLOAT, 4)
12426 TEST_TARGET_SIZE (PGLYPHMETRICSFLOAT, 24)
12427 TEST_TARGET_ALIGN(PGLYPHMETRICSFLOAT, 4)
12430 static void test_pack_PGRADIENT_RECT(void)
12432 /* PGRADIENT_RECT */
12433 TEST_TYPE_SIZE (PGRADIENT_RECT, 4)
12434 TEST_TYPE_ALIGN (PGRADIENT_RECT, 4)
12435 TEST_TARGET_SIZE (PGRADIENT_RECT, 8)
12436 TEST_TARGET_ALIGN(PGRADIENT_RECT, 4)
12439 static void test_pack_PGRADIENT_TRIANGLE(void)
12441 /* PGRADIENT_TRIANGLE */
12442 TEST_TYPE_SIZE (PGRADIENT_TRIANGLE, 4)
12443 TEST_TYPE_ALIGN (PGRADIENT_TRIANGLE, 4)
12444 TEST_TARGET_SIZE (PGRADIENT_TRIANGLE, 12)
12445 TEST_TARGET_ALIGN(PGRADIENT_TRIANGLE, 4)
12448 static void test_pack_PHANDLETABLE(void)
12450 /* PHANDLETABLE */
12451 TEST_TYPE_SIZE (PHANDLETABLE, 4)
12452 TEST_TYPE_ALIGN (PHANDLETABLE, 4)
12453 TEST_TARGET_SIZE (PHANDLETABLE, 4)
12454 TEST_TARGET_ALIGN(PHANDLETABLE, 4)
12457 static void test_pack_PIXELFORMATDESCRIPTOR(void)
12459 /* PIXELFORMATDESCRIPTOR */
12460 TEST_TYPE_SIZE (PIXELFORMATDESCRIPTOR, 40)
12461 TEST_TYPE_ALIGN (PIXELFORMATDESCRIPTOR, 4)
12462 TEST_FIELD_SIZE (PIXELFORMATDESCRIPTOR, nSize, 2)
12463 TEST_FIELD_ALIGN (PIXELFORMATDESCRIPTOR, nSize, 2)
12464 TEST_FIELD_OFFSET(PIXELFORMATDESCRIPTOR, nSize, 0)
12465 TEST_FIELD_SIZE (PIXELFORMATDESCRIPTOR, nVersion, 2)
12466 TEST_FIELD_ALIGN (PIXELFORMATDESCRIPTOR, nVersion, 2)
12467 TEST_FIELD_OFFSET(PIXELFORMATDESCRIPTOR, nVersion, 2)
12468 TEST_FIELD_SIZE (PIXELFORMATDESCRIPTOR, dwFlags, 4)
12469 TEST_FIELD_ALIGN (PIXELFORMATDESCRIPTOR, dwFlags, 4)
12470 TEST_FIELD_OFFSET(PIXELFORMATDESCRIPTOR, dwFlags, 4)
12471 TEST_FIELD_SIZE (PIXELFORMATDESCRIPTOR, iPixelType, 1)
12472 TEST_FIELD_ALIGN (PIXELFORMATDESCRIPTOR, iPixelType, 1)
12473 TEST_FIELD_OFFSET(PIXELFORMATDESCRIPTOR, iPixelType, 8)
12474 TEST_FIELD_SIZE (PIXELFORMATDESCRIPTOR, cColorBits, 1)
12475 TEST_FIELD_ALIGN (PIXELFORMATDESCRIPTOR, cColorBits, 1)
12476 TEST_FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cColorBits, 9)
12477 TEST_FIELD_SIZE (PIXELFORMATDESCRIPTOR, cRedBits, 1)
12478 TEST_FIELD_ALIGN (PIXELFORMATDESCRIPTOR, cRedBits, 1)
12479 TEST_FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cRedBits, 10)
12480 TEST_FIELD_SIZE (PIXELFORMATDESCRIPTOR, cRedShift, 1)
12481 TEST_FIELD_ALIGN (PIXELFORMATDESCRIPTOR, cRedShift, 1)
12482 TEST_FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cRedShift, 11)
12483 TEST_FIELD_SIZE (PIXELFORMATDESCRIPTOR, cGreenBits, 1)
12484 TEST_FIELD_ALIGN (PIXELFORMATDESCRIPTOR, cGreenBits, 1)
12485 TEST_FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cGreenBits, 12)
12486 TEST_FIELD_SIZE (PIXELFORMATDESCRIPTOR, cGreenShift, 1)
12487 TEST_FIELD_ALIGN (PIXELFORMATDESCRIPTOR, cGreenShift, 1)
12488 TEST_FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cGreenShift, 13)
12489 TEST_FIELD_SIZE (PIXELFORMATDESCRIPTOR, cBlueBits, 1)
12490 TEST_FIELD_ALIGN (PIXELFORMATDESCRIPTOR, cBlueBits, 1)
12491 TEST_FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cBlueBits, 14)
12492 TEST_FIELD_SIZE (PIXELFORMATDESCRIPTOR, cBlueShift, 1)
12493 TEST_FIELD_ALIGN (PIXELFORMATDESCRIPTOR, cBlueShift, 1)
12494 TEST_FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cBlueShift, 15)
12495 TEST_FIELD_SIZE (PIXELFORMATDESCRIPTOR, cAlphaBits, 1)
12496 TEST_FIELD_ALIGN (PIXELFORMATDESCRIPTOR, cAlphaBits, 1)
12497 TEST_FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cAlphaBits, 16)
12498 TEST_FIELD_SIZE (PIXELFORMATDESCRIPTOR, cAlphaShift, 1)
12499 TEST_FIELD_ALIGN (PIXELFORMATDESCRIPTOR, cAlphaShift, 1)
12500 TEST_FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cAlphaShift, 17)
12501 TEST_FIELD_SIZE (PIXELFORMATDESCRIPTOR, cAccumBits, 1)
12502 TEST_FIELD_ALIGN (PIXELFORMATDESCRIPTOR, cAccumBits, 1)
12503 TEST_FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cAccumBits, 18)
12504 TEST_FIELD_SIZE (PIXELFORMATDESCRIPTOR, cAccumRedBits, 1)
12505 TEST_FIELD_ALIGN (PIXELFORMATDESCRIPTOR, cAccumRedBits, 1)
12506 TEST_FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cAccumRedBits, 19)
12507 TEST_FIELD_SIZE (PIXELFORMATDESCRIPTOR, cAccumGreenBits, 1)
12508 TEST_FIELD_ALIGN (PIXELFORMATDESCRIPTOR, cAccumGreenBits, 1)
12509 TEST_FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cAccumGreenBits, 20)
12510 TEST_FIELD_SIZE (PIXELFORMATDESCRIPTOR, cAccumBlueBits, 1)
12511 TEST_FIELD_ALIGN (PIXELFORMATDESCRIPTOR, cAccumBlueBits, 1)
12512 TEST_FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cAccumBlueBits, 21)
12513 TEST_FIELD_SIZE (PIXELFORMATDESCRIPTOR, cAccumAlphaBits, 1)
12514 TEST_FIELD_ALIGN (PIXELFORMATDESCRIPTOR, cAccumAlphaBits, 1)
12515 TEST_FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cAccumAlphaBits, 22)
12516 TEST_FIELD_SIZE (PIXELFORMATDESCRIPTOR, cDepthBits, 1)
12517 TEST_FIELD_ALIGN (PIXELFORMATDESCRIPTOR, cDepthBits, 1)
12518 TEST_FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cDepthBits, 23)
12519 TEST_FIELD_SIZE (PIXELFORMATDESCRIPTOR, cStencilBits, 1)
12520 TEST_FIELD_ALIGN (PIXELFORMATDESCRIPTOR, cStencilBits, 1)
12521 TEST_FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cStencilBits, 24)
12522 TEST_FIELD_SIZE (PIXELFORMATDESCRIPTOR, cAuxBuffers, 1)
12523 TEST_FIELD_ALIGN (PIXELFORMATDESCRIPTOR, cAuxBuffers, 1)
12524 TEST_FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cAuxBuffers, 25)
12525 TEST_FIELD_SIZE (PIXELFORMATDESCRIPTOR, iLayerType, 1)
12526 TEST_FIELD_ALIGN (PIXELFORMATDESCRIPTOR, iLayerType, 1)
12527 TEST_FIELD_OFFSET(PIXELFORMATDESCRIPTOR, iLayerType, 26)
12528 TEST_FIELD_SIZE (PIXELFORMATDESCRIPTOR, bReserved, 1)
12529 TEST_FIELD_ALIGN (PIXELFORMATDESCRIPTOR, bReserved, 1)
12530 TEST_FIELD_OFFSET(PIXELFORMATDESCRIPTOR, bReserved, 27)
12531 TEST_FIELD_SIZE (PIXELFORMATDESCRIPTOR, dwLayerMask, 4)
12532 TEST_FIELD_ALIGN (PIXELFORMATDESCRIPTOR, dwLayerMask, 4)
12533 TEST_FIELD_OFFSET(PIXELFORMATDESCRIPTOR, dwLayerMask, 28)
12534 TEST_FIELD_SIZE (PIXELFORMATDESCRIPTOR, dwVisibleMask, 4)
12535 TEST_FIELD_ALIGN (PIXELFORMATDESCRIPTOR, dwVisibleMask, 4)
12536 TEST_FIELD_OFFSET(PIXELFORMATDESCRIPTOR, dwVisibleMask, 32)
12537 TEST_FIELD_SIZE (PIXELFORMATDESCRIPTOR, dwDamageMask, 4)
12538 TEST_FIELD_ALIGN (PIXELFORMATDESCRIPTOR, dwDamageMask, 4)
12539 TEST_FIELD_OFFSET(PIXELFORMATDESCRIPTOR, dwDamageMask, 36)
12542 static void test_pack_PLAYERPLANEDESCRIPTOR(void)
12544 /* PLAYERPLANEDESCRIPTOR */
12545 TEST_TYPE_SIZE (PLAYERPLANEDESCRIPTOR, 4)
12546 TEST_TYPE_ALIGN (PLAYERPLANEDESCRIPTOR, 4)
12547 TEST_TARGET_SIZE (PLAYERPLANEDESCRIPTOR, 32)
12548 TEST_TARGET_ALIGN(PLAYERPLANEDESCRIPTOR, 4)
12551 static void test_pack_PLOCALESIGNATURE(void)
12553 /* PLOCALESIGNATURE */
12554 TEST_TYPE_SIZE (PLOCALESIGNATURE, 4)
12555 TEST_TYPE_ALIGN (PLOCALESIGNATURE, 4)
12556 TEST_TARGET_SIZE (PLOCALESIGNATURE, 32)
12557 TEST_TARGET_ALIGN(PLOCALESIGNATURE, 4)
12560 static void test_pack_PLOGBRUSH(void)
12562 /* PLOGBRUSH */
12563 TEST_TYPE_SIZE (PLOGBRUSH, 4)
12564 TEST_TYPE_ALIGN (PLOGBRUSH, 4)
12565 TEST_TARGET_SIZE (PLOGBRUSH, 12)
12566 TEST_TARGET_ALIGN(PLOGBRUSH, 4)
12569 static void test_pack_PLOGFONTA(void)
12571 /* PLOGFONTA */
12572 TEST_TYPE_SIZE (PLOGFONTA, 4)
12573 TEST_TYPE_ALIGN (PLOGFONTA, 4)
12574 TEST_TARGET_SIZE (PLOGFONTA, 60)
12575 TEST_TARGET_ALIGN(PLOGFONTA, 4)
12578 static void test_pack_PLOGFONTW(void)
12580 /* PLOGFONTW */
12581 TEST_TYPE_SIZE (PLOGFONTW, 4)
12582 TEST_TYPE_ALIGN (PLOGFONTW, 4)
12583 TEST_TARGET_SIZE (PLOGFONTW, 92)
12584 TEST_TARGET_ALIGN(PLOGFONTW, 4)
12587 static void test_pack_PMETAHEADER(void)
12589 /* PMETAHEADER */
12590 TEST_TYPE_SIZE (PMETAHEADER, 4)
12591 TEST_TYPE_ALIGN (PMETAHEADER, 4)
12592 TEST_TARGET_SIZE (PMETAHEADER, 18)
12593 TEST_TARGET_ALIGN(PMETAHEADER, 2)
12596 static void test_pack_PMETARECORD(void)
12598 /* PMETARECORD */
12599 TEST_TYPE_SIZE (PMETARECORD, 4)
12600 TEST_TYPE_ALIGN (PMETARECORD, 4)
12601 TEST_TARGET_SIZE (PMETARECORD, 8)
12602 TEST_TARGET_ALIGN(PMETARECORD, 4)
12605 static void test_pack_PNEWTEXTMETRICA(void)
12607 /* PNEWTEXTMETRICA */
12608 TEST_TYPE_SIZE (PNEWTEXTMETRICA, 4)
12609 TEST_TYPE_ALIGN (PNEWTEXTMETRICA, 4)
12610 TEST_TARGET_SIZE (PNEWTEXTMETRICA, 72)
12611 TEST_TARGET_ALIGN(PNEWTEXTMETRICA, 4)
12614 static void test_pack_PNEWTEXTMETRICW(void)
12616 /* PNEWTEXTMETRICW */
12617 TEST_TYPE_SIZE (PNEWTEXTMETRICW, 4)
12618 TEST_TYPE_ALIGN (PNEWTEXTMETRICW, 4)
12619 TEST_TARGET_SIZE (PNEWTEXTMETRICW, 76)
12620 TEST_TARGET_ALIGN(PNEWTEXTMETRICW, 4)
12623 static void test_pack_POINTFLOAT(void)
12625 /* POINTFLOAT */
12626 TEST_TYPE_SIZE (POINTFLOAT, 8)
12627 TEST_TYPE_ALIGN (POINTFLOAT, 4)
12628 TEST_FIELD_SIZE (POINTFLOAT, x, 4)
12629 TEST_FIELD_ALIGN (POINTFLOAT, x, 4)
12630 TEST_FIELD_OFFSET(POINTFLOAT, x, 0)
12631 TEST_FIELD_SIZE (POINTFLOAT, y, 4)
12632 TEST_FIELD_ALIGN (POINTFLOAT, y, 4)
12633 TEST_FIELD_OFFSET(POINTFLOAT, y, 4)
12636 static void test_pack_POINTFX(void)
12638 /* POINTFX */
12639 TEST_TYPE_SIZE (POINTFX, 8)
12640 TEST_TYPE_ALIGN (POINTFX, 2)
12641 TEST_FIELD_SIZE (POINTFX, x, 4)
12642 TEST_FIELD_ALIGN (POINTFX, x, 2)
12643 TEST_FIELD_OFFSET(POINTFX, x, 0)
12644 TEST_FIELD_SIZE (POINTFX, y, 4)
12645 TEST_FIELD_ALIGN (POINTFX, y, 2)
12646 TEST_FIELD_OFFSET(POINTFX, y, 4)
12649 static void test_pack_POLYTEXTA(void)
12651 /* POLYTEXTA */
12652 TEST_TYPE_SIZE (POLYTEXTA, 40)
12653 TEST_TYPE_ALIGN (POLYTEXTA, 4)
12654 TEST_FIELD_SIZE (POLYTEXTA, x, 4)
12655 TEST_FIELD_ALIGN (POLYTEXTA, x, 4)
12656 TEST_FIELD_OFFSET(POLYTEXTA, x, 0)
12657 TEST_FIELD_SIZE (POLYTEXTA, y, 4)
12658 TEST_FIELD_ALIGN (POLYTEXTA, y, 4)
12659 TEST_FIELD_OFFSET(POLYTEXTA, y, 4)
12660 TEST_FIELD_SIZE (POLYTEXTA, n, 4)
12661 TEST_FIELD_ALIGN (POLYTEXTA, n, 4)
12662 TEST_FIELD_OFFSET(POLYTEXTA, n, 8)
12663 TEST_FIELD_SIZE (POLYTEXTA, lpstr, 4)
12664 TEST_FIELD_ALIGN (POLYTEXTA, lpstr, 4)
12665 TEST_FIELD_OFFSET(POLYTEXTA, lpstr, 12)
12666 TEST_FIELD_SIZE (POLYTEXTA, uiFlags, 4)
12667 TEST_FIELD_ALIGN (POLYTEXTA, uiFlags, 4)
12668 TEST_FIELD_OFFSET(POLYTEXTA, uiFlags, 16)
12669 TEST_FIELD_SIZE (POLYTEXTA, rcl, 16)
12670 TEST_FIELD_ALIGN (POLYTEXTA, rcl, 4)
12671 TEST_FIELD_OFFSET(POLYTEXTA, rcl, 20)
12672 TEST_FIELD_SIZE (POLYTEXTA, pdx, 4)
12673 TEST_FIELD_ALIGN (POLYTEXTA, pdx, 4)
12674 TEST_FIELD_OFFSET(POLYTEXTA, pdx, 36)
12677 static void test_pack_POLYTEXTW(void)
12679 /* POLYTEXTW */
12680 TEST_TYPE_SIZE (POLYTEXTW, 40)
12681 TEST_TYPE_ALIGN (POLYTEXTW, 4)
12682 TEST_FIELD_SIZE (POLYTEXTW, x, 4)
12683 TEST_FIELD_ALIGN (POLYTEXTW, x, 4)
12684 TEST_FIELD_OFFSET(POLYTEXTW, x, 0)
12685 TEST_FIELD_SIZE (POLYTEXTW, y, 4)
12686 TEST_FIELD_ALIGN (POLYTEXTW, y, 4)
12687 TEST_FIELD_OFFSET(POLYTEXTW, y, 4)
12688 TEST_FIELD_SIZE (POLYTEXTW, n, 4)
12689 TEST_FIELD_ALIGN (POLYTEXTW, n, 4)
12690 TEST_FIELD_OFFSET(POLYTEXTW, n, 8)
12691 TEST_FIELD_SIZE (POLYTEXTW, lpstr, 4)
12692 TEST_FIELD_ALIGN (POLYTEXTW, lpstr, 4)
12693 TEST_FIELD_OFFSET(POLYTEXTW, lpstr, 12)
12694 TEST_FIELD_SIZE (POLYTEXTW, uiFlags, 4)
12695 TEST_FIELD_ALIGN (POLYTEXTW, uiFlags, 4)
12696 TEST_FIELD_OFFSET(POLYTEXTW, uiFlags, 16)
12697 TEST_FIELD_SIZE (POLYTEXTW, rcl, 16)
12698 TEST_FIELD_ALIGN (POLYTEXTW, rcl, 4)
12699 TEST_FIELD_OFFSET(POLYTEXTW, rcl, 20)
12700 TEST_FIELD_SIZE (POLYTEXTW, pdx, 4)
12701 TEST_FIELD_ALIGN (POLYTEXTW, pdx, 4)
12702 TEST_FIELD_OFFSET(POLYTEXTW, pdx, 36)
12705 static void test_pack_POUTLINETEXTMETRICA(void)
12707 /* POUTLINETEXTMETRICA */
12708 TEST_TYPE_SIZE (POUTLINETEXTMETRICA, 4)
12709 TEST_TYPE_ALIGN (POUTLINETEXTMETRICA, 4)
12710 TEST_TARGET_SIZE (POUTLINETEXTMETRICA, 212)
12711 TEST_TARGET_ALIGN(POUTLINETEXTMETRICA, 4)
12714 static void test_pack_POUTLINETEXTMETRICW(void)
12716 /* POUTLINETEXTMETRICW */
12717 TEST_TYPE_SIZE (POUTLINETEXTMETRICW, 4)
12718 TEST_TYPE_ALIGN (POUTLINETEXTMETRICW, 4)
12719 TEST_TARGET_SIZE (POUTLINETEXTMETRICW, 216)
12720 TEST_TARGET_ALIGN(POUTLINETEXTMETRICW, 4)
12723 static void test_pack_PPELARRAY(void)
12725 /* PPELARRAY */
12726 TEST_TYPE_SIZE (PPELARRAY, 4)
12727 TEST_TYPE_ALIGN (PPELARRAY, 4)
12728 TEST_TARGET_SIZE (PPELARRAY, 20)
12729 TEST_TARGET_ALIGN(PPELARRAY, 4)
12732 static void test_pack_PPIXELFORMATDESCRIPTOR(void)
12734 /* PPIXELFORMATDESCRIPTOR */
12735 TEST_TYPE_SIZE (PPIXELFORMATDESCRIPTOR, 4)
12736 TEST_TYPE_ALIGN (PPIXELFORMATDESCRIPTOR, 4)
12737 TEST_TARGET_SIZE (PPIXELFORMATDESCRIPTOR, 40)
12738 TEST_TARGET_ALIGN(PPIXELFORMATDESCRIPTOR, 4)
12741 static void test_pack_PPOINTFLOAT(void)
12743 /* PPOINTFLOAT */
12744 TEST_TYPE_SIZE (PPOINTFLOAT, 4)
12745 TEST_TYPE_ALIGN (PPOINTFLOAT, 4)
12746 TEST_TARGET_SIZE (PPOINTFLOAT, 8)
12747 TEST_TARGET_ALIGN(PPOINTFLOAT, 4)
12750 static void test_pack_PPOLYTEXTA(void)
12752 /* PPOLYTEXTA */
12753 TEST_TYPE_SIZE (PPOLYTEXTA, 4)
12754 TEST_TYPE_ALIGN (PPOLYTEXTA, 4)
12755 TEST_TARGET_SIZE (PPOLYTEXTA, 40)
12756 TEST_TARGET_ALIGN(PPOLYTEXTA, 4)
12759 static void test_pack_PPOLYTEXTW(void)
12761 /* PPOLYTEXTW */
12762 TEST_TYPE_SIZE (PPOLYTEXTW, 4)
12763 TEST_TYPE_ALIGN (PPOLYTEXTW, 4)
12764 TEST_TARGET_SIZE (PPOLYTEXTW, 40)
12765 TEST_TARGET_ALIGN(PPOLYTEXTW, 4)
12768 static void test_pack_PRGNDATA(void)
12770 /* PRGNDATA */
12771 TEST_TYPE_SIZE (PRGNDATA, 4)
12772 TEST_TYPE_ALIGN (PRGNDATA, 4)
12773 TEST_TARGET_SIZE (PRGNDATA, 36)
12774 TEST_TARGET_ALIGN(PRGNDATA, 4)
12777 static void test_pack_PRGNDATAHEADER(void)
12779 /* PRGNDATAHEADER */
12780 TEST_TYPE_SIZE (PRGNDATAHEADER, 4)
12781 TEST_TYPE_ALIGN (PRGNDATAHEADER, 4)
12782 TEST_TARGET_SIZE (PRGNDATAHEADER, 32)
12783 TEST_TARGET_ALIGN(PRGNDATAHEADER, 4)
12786 static void test_pack_PTEXTMETRICA(void)
12788 /* PTEXTMETRICA */
12789 TEST_TYPE_SIZE (PTEXTMETRICA, 4)
12790 TEST_TYPE_ALIGN (PTEXTMETRICA, 4)
12791 TEST_TARGET_SIZE (PTEXTMETRICA, 56)
12792 TEST_TARGET_ALIGN(PTEXTMETRICA, 4)
12795 static void test_pack_PTEXTMETRICW(void)
12797 /* PTEXTMETRICW */
12798 TEST_TYPE_SIZE (PTEXTMETRICW, 4)
12799 TEST_TYPE_ALIGN (PTEXTMETRICW, 4)
12800 TEST_TARGET_SIZE (PTEXTMETRICW, 60)
12801 TEST_TARGET_ALIGN(PTEXTMETRICW, 4)
12804 static void test_pack_PTRIVERTEX(void)
12806 /* PTRIVERTEX */
12807 TEST_TYPE_SIZE (PTRIVERTEX, 4)
12808 TEST_TYPE_ALIGN (PTRIVERTEX, 4)
12809 TEST_TARGET_SIZE (PTRIVERTEX, 16)
12810 TEST_TARGET_ALIGN(PTRIVERTEX, 4)
12813 static void test_pack_PXFORM(void)
12815 /* PXFORM */
12816 TEST_TYPE_SIZE (PXFORM, 4)
12817 TEST_TYPE_ALIGN (PXFORM, 4)
12818 TEST_TARGET_SIZE (PXFORM, 24)
12819 TEST_TARGET_ALIGN(PXFORM, 4)
12822 static void test_pack_RASTERIZER_STATUS(void)
12824 /* RASTERIZER_STATUS */
12825 TEST_TYPE_SIZE (RASTERIZER_STATUS, 6)
12826 TEST_TYPE_ALIGN (RASTERIZER_STATUS, 2)
12827 TEST_FIELD_SIZE (RASTERIZER_STATUS, nSize, 2)
12828 TEST_FIELD_ALIGN (RASTERIZER_STATUS, nSize, 2)
12829 TEST_FIELD_OFFSET(RASTERIZER_STATUS, nSize, 0)
12830 TEST_FIELD_SIZE (RASTERIZER_STATUS, wFlags, 2)
12831 TEST_FIELD_ALIGN (RASTERIZER_STATUS, wFlags, 2)
12832 TEST_FIELD_OFFSET(RASTERIZER_STATUS, wFlags, 2)
12833 TEST_FIELD_SIZE (RASTERIZER_STATUS, nLanguageID, 2)
12834 TEST_FIELD_ALIGN (RASTERIZER_STATUS, nLanguageID, 2)
12835 TEST_FIELD_OFFSET(RASTERIZER_STATUS, nLanguageID, 4)
12838 static void test_pack_RGBQUAD(void)
12840 /* RGBQUAD */
12841 TEST_TYPE_SIZE (RGBQUAD, 4)
12842 TEST_TYPE_ALIGN (RGBQUAD, 1)
12843 TEST_FIELD_SIZE (RGBQUAD, rgbBlue, 1)
12844 TEST_FIELD_ALIGN (RGBQUAD, rgbBlue, 1)
12845 TEST_FIELD_OFFSET(RGBQUAD, rgbBlue, 0)
12846 TEST_FIELD_SIZE (RGBQUAD, rgbGreen, 1)
12847 TEST_FIELD_ALIGN (RGBQUAD, rgbGreen, 1)
12848 TEST_FIELD_OFFSET(RGBQUAD, rgbGreen, 1)
12849 TEST_FIELD_SIZE (RGBQUAD, rgbRed, 1)
12850 TEST_FIELD_ALIGN (RGBQUAD, rgbRed, 1)
12851 TEST_FIELD_OFFSET(RGBQUAD, rgbRed, 2)
12852 TEST_FIELD_SIZE (RGBQUAD, rgbReserved, 1)
12853 TEST_FIELD_ALIGN (RGBQUAD, rgbReserved, 1)
12854 TEST_FIELD_OFFSET(RGBQUAD, rgbReserved, 3)
12857 static void test_pack_RGBTRIPLE(void)
12859 /* RGBTRIPLE */
12860 TEST_TYPE_SIZE (RGBTRIPLE, 3)
12861 TEST_TYPE_ALIGN (RGBTRIPLE, 1)
12862 TEST_FIELD_SIZE (RGBTRIPLE, rgbtBlue, 1)
12863 TEST_FIELD_ALIGN (RGBTRIPLE, rgbtBlue, 1)
12864 TEST_FIELD_OFFSET(RGBTRIPLE, rgbtBlue, 0)
12865 TEST_FIELD_SIZE (RGBTRIPLE, rgbtGreen, 1)
12866 TEST_FIELD_ALIGN (RGBTRIPLE, rgbtGreen, 1)
12867 TEST_FIELD_OFFSET(RGBTRIPLE, rgbtGreen, 1)
12868 TEST_FIELD_SIZE (RGBTRIPLE, rgbtRed, 1)
12869 TEST_FIELD_ALIGN (RGBTRIPLE, rgbtRed, 1)
12870 TEST_FIELD_OFFSET(RGBTRIPLE, rgbtRed, 2)
12873 static void test_pack_RGNDATA(void)
12875 /* RGNDATA */
12876 TEST_TYPE_SIZE (RGNDATA, 36)
12877 TEST_TYPE_ALIGN (RGNDATA, 4)
12878 TEST_FIELD_SIZE (RGNDATA, rdh, 32)
12879 TEST_FIELD_ALIGN (RGNDATA, rdh, 4)
12880 TEST_FIELD_OFFSET(RGNDATA, rdh, 0)
12881 TEST_FIELD_SIZE (RGNDATA, Buffer, 1)
12882 TEST_FIELD_ALIGN (RGNDATA, Buffer, 1)
12883 TEST_FIELD_OFFSET(RGNDATA, Buffer, 32)
12886 static void test_pack_RGNDATAHEADER(void)
12888 /* RGNDATAHEADER */
12889 TEST_TYPE_SIZE (RGNDATAHEADER, 32)
12890 TEST_TYPE_ALIGN (RGNDATAHEADER, 4)
12891 TEST_FIELD_SIZE (RGNDATAHEADER, dwSize, 4)
12892 TEST_FIELD_ALIGN (RGNDATAHEADER, dwSize, 4)
12893 TEST_FIELD_OFFSET(RGNDATAHEADER, dwSize, 0)
12894 TEST_FIELD_SIZE (RGNDATAHEADER, iType, 4)
12895 TEST_FIELD_ALIGN (RGNDATAHEADER, iType, 4)
12896 TEST_FIELD_OFFSET(RGNDATAHEADER, iType, 4)
12897 TEST_FIELD_SIZE (RGNDATAHEADER, nCount, 4)
12898 TEST_FIELD_ALIGN (RGNDATAHEADER, nCount, 4)
12899 TEST_FIELD_OFFSET(RGNDATAHEADER, nCount, 8)
12900 TEST_FIELD_SIZE (RGNDATAHEADER, nRgnSize, 4)
12901 TEST_FIELD_ALIGN (RGNDATAHEADER, nRgnSize, 4)
12902 TEST_FIELD_OFFSET(RGNDATAHEADER, nRgnSize, 12)
12903 TEST_FIELD_SIZE (RGNDATAHEADER, rcBound, 16)
12904 TEST_FIELD_ALIGN (RGNDATAHEADER, rcBound, 4)
12905 TEST_FIELD_OFFSET(RGNDATAHEADER, rcBound, 16)
12908 static void test_pack_TEXTMETRICA(void)
12910 /* TEXTMETRICA */
12911 TEST_TYPE_SIZE (TEXTMETRICA, 56)
12912 TEST_TYPE_ALIGN (TEXTMETRICA, 4)
12913 TEST_FIELD_SIZE (TEXTMETRICA, tmHeight, 4)
12914 TEST_FIELD_ALIGN (TEXTMETRICA, tmHeight, 4)
12915 TEST_FIELD_OFFSET(TEXTMETRICA, tmHeight, 0)
12916 TEST_FIELD_SIZE (TEXTMETRICA, tmAscent, 4)
12917 TEST_FIELD_ALIGN (TEXTMETRICA, tmAscent, 4)
12918 TEST_FIELD_OFFSET(TEXTMETRICA, tmAscent, 4)
12919 TEST_FIELD_SIZE (TEXTMETRICA, tmDescent, 4)
12920 TEST_FIELD_ALIGN (TEXTMETRICA, tmDescent, 4)
12921 TEST_FIELD_OFFSET(TEXTMETRICA, tmDescent, 8)
12922 TEST_FIELD_SIZE (TEXTMETRICA, tmInternalLeading, 4)
12923 TEST_FIELD_ALIGN (TEXTMETRICA, tmInternalLeading, 4)
12924 TEST_FIELD_OFFSET(TEXTMETRICA, tmInternalLeading, 12)
12925 TEST_FIELD_SIZE (TEXTMETRICA, tmExternalLeading, 4)
12926 TEST_FIELD_ALIGN (TEXTMETRICA, tmExternalLeading, 4)
12927 TEST_FIELD_OFFSET(TEXTMETRICA, tmExternalLeading, 16)
12928 TEST_FIELD_SIZE (TEXTMETRICA, tmAveCharWidth, 4)
12929 TEST_FIELD_ALIGN (TEXTMETRICA, tmAveCharWidth, 4)
12930 TEST_FIELD_OFFSET(TEXTMETRICA, tmAveCharWidth, 20)
12931 TEST_FIELD_SIZE (TEXTMETRICA, tmMaxCharWidth, 4)
12932 TEST_FIELD_ALIGN (TEXTMETRICA, tmMaxCharWidth, 4)
12933 TEST_FIELD_OFFSET(TEXTMETRICA, tmMaxCharWidth, 24)
12934 TEST_FIELD_SIZE (TEXTMETRICA, tmWeight, 4)
12935 TEST_FIELD_ALIGN (TEXTMETRICA, tmWeight, 4)
12936 TEST_FIELD_OFFSET(TEXTMETRICA, tmWeight, 28)
12937 TEST_FIELD_SIZE (TEXTMETRICA, tmOverhang, 4)
12938 TEST_FIELD_ALIGN (TEXTMETRICA, tmOverhang, 4)
12939 TEST_FIELD_OFFSET(TEXTMETRICA, tmOverhang, 32)
12940 TEST_FIELD_SIZE (TEXTMETRICA, tmDigitizedAspectX, 4)
12941 TEST_FIELD_ALIGN (TEXTMETRICA, tmDigitizedAspectX, 4)
12942 TEST_FIELD_OFFSET(TEXTMETRICA, tmDigitizedAspectX, 36)
12943 TEST_FIELD_SIZE (TEXTMETRICA, tmDigitizedAspectY, 4)
12944 TEST_FIELD_ALIGN (TEXTMETRICA, tmDigitizedAspectY, 4)
12945 TEST_FIELD_OFFSET(TEXTMETRICA, tmDigitizedAspectY, 40)
12946 TEST_FIELD_SIZE (TEXTMETRICA, tmFirstChar, 1)
12947 TEST_FIELD_ALIGN (TEXTMETRICA, tmFirstChar, 1)
12948 TEST_FIELD_OFFSET(TEXTMETRICA, tmFirstChar, 44)
12949 TEST_FIELD_SIZE (TEXTMETRICA, tmLastChar, 1)
12950 TEST_FIELD_ALIGN (TEXTMETRICA, tmLastChar, 1)
12951 TEST_FIELD_OFFSET(TEXTMETRICA, tmLastChar, 45)
12952 TEST_FIELD_SIZE (TEXTMETRICA, tmDefaultChar, 1)
12953 TEST_FIELD_ALIGN (TEXTMETRICA, tmDefaultChar, 1)
12954 TEST_FIELD_OFFSET(TEXTMETRICA, tmDefaultChar, 46)
12955 TEST_FIELD_SIZE (TEXTMETRICA, tmBreakChar, 1)
12956 TEST_FIELD_ALIGN (TEXTMETRICA, tmBreakChar, 1)
12957 TEST_FIELD_OFFSET(TEXTMETRICA, tmBreakChar, 47)
12958 TEST_FIELD_SIZE (TEXTMETRICA, tmItalic, 1)
12959 TEST_FIELD_ALIGN (TEXTMETRICA, tmItalic, 1)
12960 TEST_FIELD_OFFSET(TEXTMETRICA, tmItalic, 48)
12961 TEST_FIELD_SIZE (TEXTMETRICA, tmUnderlined, 1)
12962 TEST_FIELD_ALIGN (TEXTMETRICA, tmUnderlined, 1)
12963 TEST_FIELD_OFFSET(TEXTMETRICA, tmUnderlined, 49)
12964 TEST_FIELD_SIZE (TEXTMETRICA, tmStruckOut, 1)
12965 TEST_FIELD_ALIGN (TEXTMETRICA, tmStruckOut, 1)
12966 TEST_FIELD_OFFSET(TEXTMETRICA, tmStruckOut, 50)
12967 TEST_FIELD_SIZE (TEXTMETRICA, tmPitchAndFamily, 1)
12968 TEST_FIELD_ALIGN (TEXTMETRICA, tmPitchAndFamily, 1)
12969 TEST_FIELD_OFFSET(TEXTMETRICA, tmPitchAndFamily, 51)
12970 TEST_FIELD_SIZE (TEXTMETRICA, tmCharSet, 1)
12971 TEST_FIELD_ALIGN (TEXTMETRICA, tmCharSet, 1)
12972 TEST_FIELD_OFFSET(TEXTMETRICA, tmCharSet, 52)
12975 static void test_pack_TEXTMETRICW(void)
12977 /* TEXTMETRICW */
12978 TEST_TYPE_SIZE (TEXTMETRICW, 60)
12979 TEST_TYPE_ALIGN (TEXTMETRICW, 4)
12980 TEST_FIELD_SIZE (TEXTMETRICW, tmHeight, 4)
12981 TEST_FIELD_ALIGN (TEXTMETRICW, tmHeight, 4)
12982 TEST_FIELD_OFFSET(TEXTMETRICW, tmHeight, 0)
12983 TEST_FIELD_SIZE (TEXTMETRICW, tmAscent, 4)
12984 TEST_FIELD_ALIGN (TEXTMETRICW, tmAscent, 4)
12985 TEST_FIELD_OFFSET(TEXTMETRICW, tmAscent, 4)
12986 TEST_FIELD_SIZE (TEXTMETRICW, tmDescent, 4)
12987 TEST_FIELD_ALIGN (TEXTMETRICW, tmDescent, 4)
12988 TEST_FIELD_OFFSET(TEXTMETRICW, tmDescent, 8)
12989 TEST_FIELD_SIZE (TEXTMETRICW, tmInternalLeading, 4)
12990 TEST_FIELD_ALIGN (TEXTMETRICW, tmInternalLeading, 4)
12991 TEST_FIELD_OFFSET(TEXTMETRICW, tmInternalLeading, 12)
12992 TEST_FIELD_SIZE (TEXTMETRICW, tmExternalLeading, 4)
12993 TEST_FIELD_ALIGN (TEXTMETRICW, tmExternalLeading, 4)
12994 TEST_FIELD_OFFSET(TEXTMETRICW, tmExternalLeading, 16)
12995 TEST_FIELD_SIZE (TEXTMETRICW, tmAveCharWidth, 4)
12996 TEST_FIELD_ALIGN (TEXTMETRICW, tmAveCharWidth, 4)
12997 TEST_FIELD_OFFSET(TEXTMETRICW, tmAveCharWidth, 20)
12998 TEST_FIELD_SIZE (TEXTMETRICW, tmMaxCharWidth, 4)
12999 TEST_FIELD_ALIGN (TEXTMETRICW, tmMaxCharWidth, 4)
13000 TEST_FIELD_OFFSET(TEXTMETRICW, tmMaxCharWidth, 24)
13001 TEST_FIELD_SIZE (TEXTMETRICW, tmWeight, 4)
13002 TEST_FIELD_ALIGN (TEXTMETRICW, tmWeight, 4)
13003 TEST_FIELD_OFFSET(TEXTMETRICW, tmWeight, 28)
13004 TEST_FIELD_SIZE (TEXTMETRICW, tmOverhang, 4)
13005 TEST_FIELD_ALIGN (TEXTMETRICW, tmOverhang, 4)
13006 TEST_FIELD_OFFSET(TEXTMETRICW, tmOverhang, 32)
13007 TEST_FIELD_SIZE (TEXTMETRICW, tmDigitizedAspectX, 4)
13008 TEST_FIELD_ALIGN (TEXTMETRICW, tmDigitizedAspectX, 4)
13009 TEST_FIELD_OFFSET(TEXTMETRICW, tmDigitizedAspectX, 36)
13010 TEST_FIELD_SIZE (TEXTMETRICW, tmDigitizedAspectY, 4)
13011 TEST_FIELD_ALIGN (TEXTMETRICW, tmDigitizedAspectY, 4)
13012 TEST_FIELD_OFFSET(TEXTMETRICW, tmDigitizedAspectY, 40)
13013 TEST_FIELD_SIZE (TEXTMETRICW, tmFirstChar, 2)
13014 TEST_FIELD_ALIGN (TEXTMETRICW, tmFirstChar, 2)
13015 TEST_FIELD_OFFSET(TEXTMETRICW, tmFirstChar, 44)
13016 TEST_FIELD_SIZE (TEXTMETRICW, tmLastChar, 2)
13017 TEST_FIELD_ALIGN (TEXTMETRICW, tmLastChar, 2)
13018 TEST_FIELD_OFFSET(TEXTMETRICW, tmLastChar, 46)
13019 TEST_FIELD_SIZE (TEXTMETRICW, tmDefaultChar, 2)
13020 TEST_FIELD_ALIGN (TEXTMETRICW, tmDefaultChar, 2)
13021 TEST_FIELD_OFFSET(TEXTMETRICW, tmDefaultChar, 48)
13022 TEST_FIELD_SIZE (TEXTMETRICW, tmBreakChar, 2)
13023 TEST_FIELD_ALIGN (TEXTMETRICW, tmBreakChar, 2)
13024 TEST_FIELD_OFFSET(TEXTMETRICW, tmBreakChar, 50)
13025 TEST_FIELD_SIZE (TEXTMETRICW, tmItalic, 1)
13026 TEST_FIELD_ALIGN (TEXTMETRICW, tmItalic, 1)
13027 TEST_FIELD_OFFSET(TEXTMETRICW, tmItalic, 52)
13028 TEST_FIELD_SIZE (TEXTMETRICW, tmUnderlined, 1)
13029 TEST_FIELD_ALIGN (TEXTMETRICW, tmUnderlined, 1)
13030 TEST_FIELD_OFFSET(TEXTMETRICW, tmUnderlined, 53)
13031 TEST_FIELD_SIZE (TEXTMETRICW, tmStruckOut, 1)
13032 TEST_FIELD_ALIGN (TEXTMETRICW, tmStruckOut, 1)
13033 TEST_FIELD_OFFSET(TEXTMETRICW, tmStruckOut, 54)
13034 TEST_FIELD_SIZE (TEXTMETRICW, tmPitchAndFamily, 1)
13035 TEST_FIELD_ALIGN (TEXTMETRICW, tmPitchAndFamily, 1)
13036 TEST_FIELD_OFFSET(TEXTMETRICW, tmPitchAndFamily, 55)
13037 TEST_FIELD_SIZE (TEXTMETRICW, tmCharSet, 1)
13038 TEST_FIELD_ALIGN (TEXTMETRICW, tmCharSet, 1)
13039 TEST_FIELD_OFFSET(TEXTMETRICW, tmCharSet, 56)
13042 static void test_pack_TRIVERTEX(void)
13044 /* TRIVERTEX */
13045 TEST_TYPE_SIZE (TRIVERTEX, 16)
13046 TEST_TYPE_ALIGN (TRIVERTEX, 4)
13047 TEST_FIELD_SIZE (TRIVERTEX, x, 4)
13048 TEST_FIELD_ALIGN (TRIVERTEX, x, 4)
13049 TEST_FIELD_OFFSET(TRIVERTEX, x, 0)
13050 TEST_FIELD_SIZE (TRIVERTEX, y, 4)
13051 TEST_FIELD_ALIGN (TRIVERTEX, y, 4)
13052 TEST_FIELD_OFFSET(TRIVERTEX, y, 4)
13053 TEST_FIELD_SIZE (TRIVERTEX, Red, 2)
13054 TEST_FIELD_ALIGN (TRIVERTEX, Red, 2)
13055 TEST_FIELD_OFFSET(TRIVERTEX, Red, 8)
13056 TEST_FIELD_SIZE (TRIVERTEX, Green, 2)
13057 TEST_FIELD_ALIGN (TRIVERTEX, Green, 2)
13058 TEST_FIELD_OFFSET(TRIVERTEX, Green, 10)
13059 TEST_FIELD_SIZE (TRIVERTEX, Blue, 2)
13060 TEST_FIELD_ALIGN (TRIVERTEX, Blue, 2)
13061 TEST_FIELD_OFFSET(TRIVERTEX, Blue, 12)
13062 TEST_FIELD_SIZE (TRIVERTEX, Alpha, 2)
13063 TEST_FIELD_ALIGN (TRIVERTEX, Alpha, 2)
13064 TEST_FIELD_OFFSET(TRIVERTEX, Alpha, 14)
13067 static void test_pack_TTPOLYCURVE(void)
13069 /* TTPOLYCURVE */
13070 TEST_TYPE_SIZE (TTPOLYCURVE, 12)
13071 TEST_TYPE_ALIGN (TTPOLYCURVE, 2)
13072 TEST_FIELD_SIZE (TTPOLYCURVE, wType, 2)
13073 TEST_FIELD_ALIGN (TTPOLYCURVE, wType, 2)
13074 TEST_FIELD_OFFSET(TTPOLYCURVE, wType, 0)
13075 TEST_FIELD_SIZE (TTPOLYCURVE, cpfx, 2)
13076 TEST_FIELD_ALIGN (TTPOLYCURVE, cpfx, 2)
13077 TEST_FIELD_OFFSET(TTPOLYCURVE, cpfx, 2)
13078 TEST_FIELD_SIZE (TTPOLYCURVE, apfx, 8)
13079 TEST_FIELD_ALIGN (TTPOLYCURVE, apfx, 2)
13080 TEST_FIELD_OFFSET(TTPOLYCURVE, apfx, 4)
13083 static void test_pack_TTPOLYGONHEADER(void)
13085 /* TTPOLYGONHEADER */
13086 TEST_TYPE_SIZE (TTPOLYGONHEADER, 16)
13087 TEST_TYPE_ALIGN (TTPOLYGONHEADER, 4)
13088 TEST_FIELD_SIZE (TTPOLYGONHEADER, cb, 4)
13089 TEST_FIELD_ALIGN (TTPOLYGONHEADER, cb, 4)
13090 TEST_FIELD_OFFSET(TTPOLYGONHEADER, cb, 0)
13091 TEST_FIELD_SIZE (TTPOLYGONHEADER, dwType, 4)
13092 TEST_FIELD_ALIGN (TTPOLYGONHEADER, dwType, 4)
13093 TEST_FIELD_OFFSET(TTPOLYGONHEADER, dwType, 4)
13094 TEST_FIELD_SIZE (TTPOLYGONHEADER, pfxStart, 8)
13095 TEST_FIELD_ALIGN (TTPOLYGONHEADER, pfxStart, 2)
13096 TEST_FIELD_OFFSET(TTPOLYGONHEADER, pfxStart, 8)
13099 static void test_pack_XFORM(void)
13101 /* XFORM */
13102 TEST_TYPE_SIZE (XFORM, 24)
13103 TEST_TYPE_ALIGN (XFORM, 4)
13104 TEST_FIELD_SIZE (XFORM, eM11, 4)
13105 TEST_FIELD_ALIGN (XFORM, eM11, 4)
13106 TEST_FIELD_OFFSET(XFORM, eM11, 0)
13107 TEST_FIELD_SIZE (XFORM, eM12, 4)
13108 TEST_FIELD_ALIGN (XFORM, eM12, 4)
13109 TEST_FIELD_OFFSET(XFORM, eM12, 4)
13110 TEST_FIELD_SIZE (XFORM, eM21, 4)
13111 TEST_FIELD_ALIGN (XFORM, eM21, 4)
13112 TEST_FIELD_OFFSET(XFORM, eM21, 8)
13113 TEST_FIELD_SIZE (XFORM, eM22, 4)
13114 TEST_FIELD_ALIGN (XFORM, eM22, 4)
13115 TEST_FIELD_OFFSET(XFORM, eM22, 12)
13116 TEST_FIELD_SIZE (XFORM, eDx, 4)
13117 TEST_FIELD_ALIGN (XFORM, eDx, 4)
13118 TEST_FIELD_OFFSET(XFORM, eDx, 16)
13119 TEST_FIELD_SIZE (XFORM, eDy, 4)
13120 TEST_FIELD_ALIGN (XFORM, eDy, 4)
13121 TEST_FIELD_OFFSET(XFORM, eDy, 20)
13124 #endif /* _WIN64 */
13126 static void test_pack(void)
13128 test_pack_ABC();
13129 test_pack_ABCFLOAT();
13130 test_pack_ABORTPROC();
13131 test_pack_BITMAP();
13132 test_pack_BITMAPCOREHEADER();
13133 test_pack_BITMAPCOREINFO();
13134 test_pack_BITMAPFILEHEADER();
13135 test_pack_BITMAPINFO();
13136 test_pack_BITMAPINFOHEADER();
13137 test_pack_BITMAPV4HEADER();
13138 test_pack_BITMAPV5HEADER();
13139 test_pack_BLENDFUNCTION();
13140 test_pack_CHARSETINFO();
13141 test_pack_CIEXYZ();
13142 test_pack_CIEXYZTRIPLE();
13143 test_pack_COLOR16();
13144 test_pack_COLORADJUSTMENT();
13145 test_pack_DEVMODEA();
13146 test_pack_DEVMODEW();
13147 test_pack_DIBSECTION();
13148 test_pack_DISPLAY_DEVICEA();
13149 test_pack_DISPLAY_DEVICEW();
13150 test_pack_DOCINFOA();
13151 test_pack_DOCINFOW();
13152 test_pack_EMR();
13153 test_pack_EMRABORTPATH();
13154 test_pack_EMRANGLEARC();
13155 test_pack_EMRARC();
13156 test_pack_EMRARCTO();
13157 test_pack_EMRBEGINPATH();
13158 test_pack_EMRBITBLT();
13159 test_pack_EMRCHORD();
13160 test_pack_EMRCLOSEFIGURE();
13161 test_pack_EMRCREATEBRUSHINDIRECT();
13162 test_pack_EMRCREATECOLORSPACE();
13163 test_pack_EMRCREATECOLORSPACEW();
13164 test_pack_EMRCREATEDIBPATTERNBRUSHPT();
13165 test_pack_EMRCREATEMONOBRUSH();
13166 test_pack_EMRCREATEPEN();
13167 test_pack_EMRDELETECOLORSPACE();
13168 test_pack_EMRDELETEOBJECT();
13169 test_pack_EMRELLIPSE();
13170 test_pack_EMRENDPATH();
13171 test_pack_EMREOF();
13172 test_pack_EMREXCLUDECLIPRECT();
13173 test_pack_EMREXTCREATEFONTINDIRECTW();
13174 test_pack_EMREXTCREATEPEN();
13175 test_pack_EMREXTFLOODFILL();
13176 test_pack_EMREXTSELECTCLIPRGN();
13177 test_pack_EMREXTTEXTOUTA();
13178 test_pack_EMREXTTEXTOUTW();
13179 test_pack_EMRFILLPATH();
13180 test_pack_EMRFILLRGN();
13181 test_pack_EMRFLATTENPATH();
13182 test_pack_EMRFORMAT();
13183 test_pack_EMRFRAMERGN();
13184 test_pack_EMRGDICOMMENT();
13185 test_pack_EMRGLSBOUNDEDRECORD();
13186 test_pack_EMRGLSRECORD();
13187 test_pack_EMRINTERSECTCLIPRECT();
13188 test_pack_EMRINVERTRGN();
13189 test_pack_EMRLINETO();
13190 test_pack_EMRMASKBLT();
13191 test_pack_EMRMODIFYWORLDTRANSFORM();
13192 test_pack_EMRMOVETOEX();
13193 test_pack_EMROFFSETCLIPRGN();
13194 test_pack_EMRPAINTRGN();
13195 test_pack_EMRPIE();
13196 test_pack_EMRPIXELFORMAT();
13197 test_pack_EMRPLGBLT();
13198 test_pack_EMRPOLYBEZIER();
13199 test_pack_EMRPOLYBEZIER16();
13200 test_pack_EMRPOLYBEZIERTO();
13201 test_pack_EMRPOLYBEZIERTO16();
13202 test_pack_EMRPOLYDRAW();
13203 test_pack_EMRPOLYDRAW16();
13204 test_pack_EMRPOLYGON();
13205 test_pack_EMRPOLYGON16();
13206 test_pack_EMRPOLYLINE();
13207 test_pack_EMRPOLYLINE16();
13208 test_pack_EMRPOLYLINETO();
13209 test_pack_EMRPOLYLINETO16();
13210 test_pack_EMRPOLYPOLYGON();
13211 test_pack_EMRPOLYPOLYGON16();
13212 test_pack_EMRPOLYPOLYLINE();
13213 test_pack_EMRPOLYPOLYLINE16();
13214 test_pack_EMRPOLYTEXTOUTA();
13215 test_pack_EMRPOLYTEXTOUTW();
13216 test_pack_EMRREALIZEPALETTE();
13217 test_pack_EMRRECTANGLE();
13218 test_pack_EMRRESIZEPALETTE();
13219 test_pack_EMRRESTOREDC();
13220 test_pack_EMRROUNDRECT();
13221 test_pack_EMRSAVEDC();
13222 test_pack_EMRSCALEVIEWPORTEXTEX();
13223 test_pack_EMRSCALEWINDOWEXTEX();
13224 test_pack_EMRSELECTCLIPPATH();
13225 test_pack_EMRSELECTCOLORSPACE();
13226 test_pack_EMRSELECTOBJECT();
13227 test_pack_EMRSELECTPALETTE();
13228 test_pack_EMRSETARCDIRECTION();
13229 test_pack_EMRSETBKCOLOR();
13230 test_pack_EMRSETBKMODE();
13231 test_pack_EMRSETBRUSHORGEX();
13232 test_pack_EMRSETCOLORADJUSTMENT();
13233 test_pack_EMRSETCOLORSPACE();
13234 test_pack_EMRSETDIBITSTODEVICE();
13235 test_pack_EMRSETICMMODE();
13236 test_pack_EMRSETLAYOUT();
13237 test_pack_EMRSETMAPMODE();
13238 test_pack_EMRSETMAPPERFLAGS();
13239 test_pack_EMRSETMETARGN();
13240 test_pack_EMRSETMITERLIMIT();
13241 test_pack_EMRSETPIXELV();
13242 test_pack_EMRSETPOLYFILLMODE();
13243 test_pack_EMRSETROP2();
13244 test_pack_EMRSETSTRETCHBLTMODE();
13245 test_pack_EMRSETTEXTALIGN();
13246 test_pack_EMRSETTEXTCOLOR();
13247 test_pack_EMRSETVIEWPORTEXTEX();
13248 test_pack_EMRSETVIEWPORTORGEX();
13249 test_pack_EMRSETWINDOWEXTEX();
13250 test_pack_EMRSETWINDOWORGEX();
13251 test_pack_EMRSETWORLDTRANSFORM();
13252 test_pack_EMRSTRETCHBLT();
13253 test_pack_EMRSTRETCHDIBITS();
13254 test_pack_EMRSTROKEANDFILLPATH();
13255 test_pack_EMRSTROKEPATH();
13256 test_pack_EMRTEXT();
13257 test_pack_EMRWIDENPATH();
13258 test_pack_ENHMETAHEADER();
13259 test_pack_ENHMETARECORD();
13260 test_pack_ENHMFENUMPROC();
13261 test_pack_ENUMLOGFONTA();
13262 test_pack_ENUMLOGFONTEXA();
13263 test_pack_ENUMLOGFONTEXW();
13264 test_pack_ENUMLOGFONTW();
13265 test_pack_EXTLOGFONTA();
13266 test_pack_EXTLOGFONTW();
13267 test_pack_EXTLOGPEN();
13268 test_pack_FIXED();
13269 test_pack_FONTENUMPROCA();
13270 test_pack_FONTENUMPROCW();
13271 test_pack_FONTSIGNATURE();
13272 test_pack_FXPT16DOT16();
13273 test_pack_FXPT2DOT30();
13274 test_pack_GCP_RESULTSA();
13275 test_pack_GCP_RESULTSW();
13276 test_pack_GLYPHMETRICS();
13277 test_pack_GLYPHMETRICSFLOAT();
13278 test_pack_GOBJENUMPROC();
13279 test_pack_GRADIENT_RECT();
13280 test_pack_GRADIENT_TRIANGLE();
13281 test_pack_HANDLETABLE();
13282 test_pack_ICMENUMPROCA();
13283 test_pack_ICMENUMPROCW();
13284 test_pack_KERNINGPAIR();
13285 test_pack_LAYERPLANEDESCRIPTOR();
13286 test_pack_LCSCSTYPE();
13287 test_pack_LCSGAMUTMATCH();
13288 test_pack_LINEDDAPROC();
13289 test_pack_LOCALESIGNATURE();
13290 test_pack_LOGBRUSH();
13291 test_pack_LOGCOLORSPACEA();
13292 test_pack_LOGCOLORSPACEW();
13293 test_pack_LOGFONTA();
13294 test_pack_LOGFONTW();
13295 test_pack_LOGPEN();
13296 test_pack_LPABC();
13297 test_pack_LPABCFLOAT();
13298 test_pack_LPBITMAP();
13299 test_pack_LPBITMAPCOREHEADER();
13300 test_pack_LPBITMAPCOREINFO();
13301 test_pack_LPBITMAPFILEHEADER();
13302 test_pack_LPBITMAPINFO();
13303 test_pack_LPBITMAPINFOHEADER();
13304 test_pack_LPBITMAPV5HEADER();
13305 test_pack_LPCHARSETINFO();
13306 test_pack_LPCIEXYZ();
13307 test_pack_LPCIEXYZTRIPLE();
13308 test_pack_LPCOLORADJUSTMENT();
13309 test_pack_LPDEVMODEA();
13310 test_pack_LPDEVMODEW();
13311 test_pack_LPDIBSECTION();
13312 test_pack_LPDISPLAY_DEVICEA();
13313 test_pack_LPDISPLAY_DEVICEW();
13314 test_pack_LPDOCINFOA();
13315 test_pack_LPDOCINFOW();
13316 test_pack_LPENHMETAHEADER();
13317 test_pack_LPENHMETARECORD();
13318 test_pack_LPENUMLOGFONTA();
13319 test_pack_LPENUMLOGFONTEXA();
13320 test_pack_LPENUMLOGFONTEXW();
13321 test_pack_LPENUMLOGFONTW();
13322 test_pack_LPEXTLOGFONTA();
13323 test_pack_LPEXTLOGFONTW();
13324 test_pack_LPEXTLOGPEN();
13325 test_pack_LPFONTSIGNATURE();
13326 test_pack_LPGCP_RESULTSA();
13327 test_pack_LPGCP_RESULTSW();
13328 test_pack_LPGLYPHMETRICS();
13329 test_pack_LPGLYPHMETRICSFLOAT();
13330 test_pack_LPGRADIENT_RECT();
13331 test_pack_LPGRADIENT_TRIANGLE();
13332 test_pack_LPHANDLETABLE();
13333 test_pack_LPKERNINGPAIR();
13334 test_pack_LPLAYERPLANEDESCRIPTOR();
13335 test_pack_LPLOCALESIGNATURE();
13336 test_pack_LPLOGBRUSH();
13337 test_pack_LPLOGCOLORSPACEA();
13338 test_pack_LPLOGCOLORSPACEW();
13339 test_pack_LPLOGFONTA();
13340 test_pack_LPLOGFONTW();
13341 test_pack_LPLOGPEN();
13342 test_pack_LPMAT2();
13343 test_pack_LPMETAFILEPICT();
13344 test_pack_LPMETAHEADER();
13345 test_pack_LPMETARECORD();
13346 test_pack_LPNEWTEXTMETRICA();
13347 test_pack_LPNEWTEXTMETRICW();
13348 test_pack_LPOUTLINETEXTMETRICA();
13349 test_pack_LPOUTLINETEXTMETRICW();
13350 test_pack_LPPANOSE();
13351 test_pack_LPPELARRAY();
13352 test_pack_LPPIXELFORMATDESCRIPTOR();
13353 test_pack_LPPOINTFX();
13354 test_pack_LPPOLYTEXTA();
13355 test_pack_LPPOLYTEXTW();
13356 test_pack_LPRASTERIZER_STATUS();
13357 test_pack_LPRGBQUAD();
13358 test_pack_LPRGNDATA();
13359 test_pack_LPTEXTMETRICA();
13360 test_pack_LPTEXTMETRICW();
13361 test_pack_LPTRIVERTEX();
13362 test_pack_LPTTPOLYCURVE();
13363 test_pack_LPTTPOLYGONHEADER();
13364 test_pack_LPXFORM();
13365 test_pack_MAT2();
13366 test_pack_METAFILEPICT();
13367 test_pack_METAHEADER();
13368 test_pack_METARECORD();
13369 test_pack_MFENUMPROC();
13370 test_pack_NEWTEXTMETRICA();
13371 test_pack_NEWTEXTMETRICEXA();
13372 test_pack_NEWTEXTMETRICEXW();
13373 test_pack_NEWTEXTMETRICW();
13374 test_pack_NPEXTLOGPEN();
13375 test_pack_OLDFONTENUMPROCA();
13376 test_pack_OLDFONTENUMPROCW();
13377 test_pack_OUTLINETEXTMETRICA();
13378 test_pack_OUTLINETEXTMETRICW();
13379 test_pack_PABC();
13380 test_pack_PABCFLOAT();
13381 test_pack_PANOSE();
13382 test_pack_PATTERN();
13383 test_pack_PBITMAP();
13384 test_pack_PBITMAPCOREHEADER();
13385 test_pack_PBITMAPCOREINFO();
13386 test_pack_PBITMAPFILEHEADER();
13387 test_pack_PBITMAPINFO();
13388 test_pack_PBITMAPINFOHEADER();
13389 test_pack_PBITMAPV4HEADER();
13390 test_pack_PBITMAPV5HEADER();
13391 test_pack_PBLENDFUNCTION();
13392 test_pack_PCHARSETINFO();
13393 test_pack_PCOLORADJUSTMENT();
13394 test_pack_PDEVMODEA();
13395 test_pack_PDEVMODEW();
13396 test_pack_PDIBSECTION();
13397 test_pack_PDISPLAY_DEVICEA();
13398 test_pack_PDISPLAY_DEVICEW();
13399 test_pack_PELARRAY();
13400 test_pack_PEMR();
13401 test_pack_PEMRABORTPATH();
13402 test_pack_PEMRANGLEARC();
13403 test_pack_PEMRARC();
13404 test_pack_PEMRARCTO();
13405 test_pack_PEMRBEGINPATH();
13406 test_pack_PEMRBITBLT();
13407 test_pack_PEMRCHORD();
13408 test_pack_PEMRCLOSEFIGURE();
13409 test_pack_PEMRCREATEBRUSHINDIRECT();
13410 test_pack_PEMRCREATECOLORSPACE();
13411 test_pack_PEMRCREATECOLORSPACEW();
13412 test_pack_PEMRCREATEDIBPATTERNBRUSHPT();
13413 test_pack_PEMRCREATEMONOBRUSH();
13414 test_pack_PEMRCREATEPALETTE();
13415 test_pack_PEMRCREATEPEN();
13416 test_pack_PEMRDELETECOLORSPACE();
13417 test_pack_PEMRDELETEOBJECT();
13418 test_pack_PEMRELLIPSE();
13419 test_pack_PEMRENDPATH();
13420 test_pack_PEMREOF();
13421 test_pack_PEMREXCLUDECLIPRECT();
13422 test_pack_PEMREXTCREATEFONTINDIRECTW();
13423 test_pack_PEMREXTCREATEPEN();
13424 test_pack_PEMREXTFLOODFILL();
13425 test_pack_PEMREXTSELECTCLIPRGN();
13426 test_pack_PEMREXTTEXTOUTA();
13427 test_pack_PEMREXTTEXTOUTW();
13428 test_pack_PEMRFILLPATH();
13429 test_pack_PEMRFILLRGN();
13430 test_pack_PEMRFLATTENPATH();
13431 test_pack_PEMRFORMAT();
13432 test_pack_PEMRFRAMERGN();
13433 test_pack_PEMRGDICOMMENT();
13434 test_pack_PEMRGLSBOUNDEDRECORD();
13435 test_pack_PEMRGLSRECORD();
13436 test_pack_PEMRINTERSECTCLIPRECT();
13437 test_pack_PEMRINVERTRGN();
13438 test_pack_PEMRLINETO();
13439 test_pack_PEMRMASKBLT();
13440 test_pack_PEMRMODIFYWORLDTRANSFORM();
13441 test_pack_PEMRMOVETOEX();
13442 test_pack_PEMROFFSETCLIPRGN();
13443 test_pack_PEMRPAINTRGN();
13444 test_pack_PEMRPIE();
13445 test_pack_PEMRPIXELFORMAT();
13446 test_pack_PEMRPLGBLT();
13447 test_pack_PEMRPOLYBEZIER();
13448 test_pack_PEMRPOLYBEZIER16();
13449 test_pack_PEMRPOLYBEZIERTO();
13450 test_pack_PEMRPOLYBEZIERTO16();
13451 test_pack_PEMRPOLYDRAW();
13452 test_pack_PEMRPOLYDRAW16();
13453 test_pack_PEMRPOLYGON();
13454 test_pack_PEMRPOLYGON16();
13455 test_pack_PEMRPOLYLINE();
13456 test_pack_PEMRPOLYLINE16();
13457 test_pack_PEMRPOLYLINETO();
13458 test_pack_PEMRPOLYLINETO16();
13459 test_pack_PEMRPOLYPOLYGON();
13460 test_pack_PEMRPOLYPOLYGON16();
13461 test_pack_PEMRPOLYPOLYLINE();
13462 test_pack_PEMRPOLYPOLYLINE16();
13463 test_pack_PEMRPOLYTEXTOUTA();
13464 test_pack_PEMRPOLYTEXTOUTW();
13465 test_pack_PEMRREALIZEPALETTE();
13466 test_pack_PEMRRECTANGLE();
13467 test_pack_PEMRRESIZEPALETTE();
13468 test_pack_PEMRRESTOREDC();
13469 test_pack_PEMRROUNDRECT();
13470 test_pack_PEMRSAVEDC();
13471 test_pack_PEMRSCALEVIEWPORTEXTEX();
13472 test_pack_PEMRSCALEWINDOWEXTEX();
13473 test_pack_PEMRSELECTCLIPPATH();
13474 test_pack_PEMRSELECTCOLORSPACE();
13475 test_pack_PEMRSELECTOBJECT();
13476 test_pack_PEMRSELECTPALETTE();
13477 test_pack_PEMRSETARCDIRECTION();
13478 test_pack_PEMRSETBKCOLOR();
13479 test_pack_PEMRSETBKMODE();
13480 test_pack_PEMRSETBRUSHORGEX();
13481 test_pack_PEMRSETCOLORADJUSTMENT();
13482 test_pack_PEMRSETCOLORSPACE();
13483 test_pack_PEMRSETDIBITSTODEVICE();
13484 test_pack_PEMRSETICMMODE();
13485 test_pack_PEMRSETLAYOUT();
13486 test_pack_PEMRSETMAPMODE();
13487 test_pack_PEMRSETMAPPERFLAGS();
13488 test_pack_PEMRSETMETARGN();
13489 test_pack_PEMRSETMITERLIMIT();
13490 test_pack_PEMRSETPALETTEENTRIES();
13491 test_pack_PEMRSETPIXELV();
13492 test_pack_PEMRSETPOLYFILLMODE();
13493 test_pack_PEMRSETROP2();
13494 test_pack_PEMRSETSTRETCHBLTMODE();
13495 test_pack_PEMRSETTEXTALIGN();
13496 test_pack_PEMRSETTEXTCOLOR();
13497 test_pack_PEMRSETVIEWPORTEXTEX();
13498 test_pack_PEMRSETVIEWPORTORGEX();
13499 test_pack_PEMRSETWINDOWEXTEX();
13500 test_pack_PEMRSETWINDOWORGEX();
13501 test_pack_PEMRSETWORLDTRANSFORM();
13502 test_pack_PEMRSTRETCHBLT();
13503 test_pack_PEMRSTRETCHDIBITS();
13504 test_pack_PEMRSTROKEANDFILLPATH();
13505 test_pack_PEMRSTROKEPATH();
13506 test_pack_PEMRTEXT();
13507 test_pack_PEMRWIDENPATH();
13508 test_pack_PENHMETAHEADER();
13509 test_pack_PEXTLOGFONTA();
13510 test_pack_PEXTLOGFONTW();
13511 test_pack_PEXTLOGPEN();
13512 test_pack_PFONTSIGNATURE();
13513 test_pack_PGLYPHMETRICSFLOAT();
13514 test_pack_PGRADIENT_RECT();
13515 test_pack_PGRADIENT_TRIANGLE();
13516 test_pack_PHANDLETABLE();
13517 test_pack_PIXELFORMATDESCRIPTOR();
13518 test_pack_PLAYERPLANEDESCRIPTOR();
13519 test_pack_PLOCALESIGNATURE();
13520 test_pack_PLOGBRUSH();
13521 test_pack_PLOGFONTA();
13522 test_pack_PLOGFONTW();
13523 test_pack_PMETAHEADER();
13524 test_pack_PMETARECORD();
13525 test_pack_PNEWTEXTMETRICA();
13526 test_pack_PNEWTEXTMETRICW();
13527 test_pack_POINTFLOAT();
13528 test_pack_POINTFX();
13529 test_pack_POLYTEXTA();
13530 test_pack_POLYTEXTW();
13531 test_pack_POUTLINETEXTMETRICA();
13532 test_pack_POUTLINETEXTMETRICW();
13533 test_pack_PPELARRAY();
13534 test_pack_PPIXELFORMATDESCRIPTOR();
13535 test_pack_PPOINTFLOAT();
13536 test_pack_PPOLYTEXTA();
13537 test_pack_PPOLYTEXTW();
13538 test_pack_PRGNDATA();
13539 test_pack_PRGNDATAHEADER();
13540 test_pack_PTEXTMETRICA();
13541 test_pack_PTEXTMETRICW();
13542 test_pack_PTRIVERTEX();
13543 test_pack_PXFORM();
13544 test_pack_RASTERIZER_STATUS();
13545 test_pack_RGBQUAD();
13546 test_pack_RGBTRIPLE();
13547 test_pack_RGNDATA();
13548 test_pack_RGNDATAHEADER();
13549 test_pack_TEXTMETRICA();
13550 test_pack_TEXTMETRICW();
13551 test_pack_TRIVERTEX();
13552 test_pack_TTPOLYCURVE();
13553 test_pack_TTPOLYGONHEADER();
13554 test_pack_XFORM();
13557 START_TEST(generated)
13559 test_pack();