1 /* File generated automatically from tools/winapi/tests.dat; do not edit! */
2 /* This file can be copied, modified and distributed without restriction. */
3 
4 /*
5  * Unit tests for data structure packing
6  */
7 
8 #ifndef __REACTOS__
9 #define WINVER 0x0501
10 #define _WIN32_IE 0x0501
11 #define _WIN32_WINNT 0x0501
12 #endif
13 
14 #define WINE_NOWINSOCK
15 
16 #include "windows.h"
17 
18 #include "wine/test.h"
19 
20 /***********************************************************************
21  * Compatibility macros
22  */
23 
24 #define DWORD_PTR UINT_PTR
25 #define LONG_PTR INT_PTR
26 #define ULONG_PTR UINT_PTR
27 
28 /***********************************************************************
29  * Windows API extension
30  */
31 
32 #if defined(_MSC_VER) && (_MSC_VER >= 1300) && defined(__cplusplus)
33 # define _TYPE_ALIGNMENT(type) __alignof(type)
34 #elif defined(__GNUC__)
35 # define _TYPE_ALIGNMENT(type) __alignof__(type)
36 #else
37 /*
38  * FIXME: May not be possible without a compiler extension
39  *        (if type is not just a name that is, otherwise the normal
40  *         TYPE_ALIGNMENT can be used)
41  */
42 #endif
43 
44 #if defined(TYPE_ALIGNMENT) && defined(_MSC_VER) && _MSC_VER >= 800 && !defined(__cplusplus)
45 #pragma warning(disable:4116)
46 #endif
47 
48 #if !defined(TYPE_ALIGNMENT) && defined(_TYPE_ALIGNMENT)
49 # define TYPE_ALIGNMENT _TYPE_ALIGNMENT
50 #endif
51 
52 /***********************************************************************
53  * Test helper macros
54  */
55 
56 #define TEST_TYPE_SIZE(type, size)             C_ASSERT(sizeof(type) == size);
57 
58 #ifdef TYPE_ALIGNMENT
59 # define TEST_TYPE_ALIGN(type, align)          C_ASSERT(TYPE_ALIGNMENT(type) == align);
60 #else
61 # define TEST_TYPE_ALIGN(type, align)
62 #endif
63 
64 #ifdef _TYPE_ALIGNMENT
65 # define TEST_TARGET_ALIGN(type, align)        C_ASSERT(_TYPE_ALIGNMENT(*(type)0) == align);
66 # define TEST_FIELD_ALIGN(type, field, align)  C_ASSERT(_TYPE_ALIGNMENT(((type*)0)->field) == align);
67 #else
68 # define TEST_TARGET_ALIGN(type, align)
69 # define TEST_FIELD_ALIGN(type, field, align)
70 #endif
71 
72 #define TEST_FIELD_OFFSET(type, field, offset) C_ASSERT(FIELD_OFFSET(type, field) == offset);
73 
74 #define TEST_TARGET_SIZE(type, size)            TEST_TYPE_SIZE(*(type)0, size)
75 #define TEST_FIELD_SIZE(type, field, size)      TEST_TYPE_SIZE((((type*)0)->field), size)
76 #define TEST_TYPE_SIGNED(type)                  C_ASSERT((type) -1 < 0);
77 #define TEST_TYPE_UNSIGNED(type)                C_ASSERT((type) -1 > 0);
78 
79 
80 #ifdef _WIN64
81 
82 static void test_pack_ACCESSTIMEOUT(void)
83 {
84     /* ACCESSTIMEOUT */
85     TEST_TYPE_SIZE   (ACCESSTIMEOUT, 12)
86     TEST_TYPE_ALIGN  (ACCESSTIMEOUT, 4)
87     TEST_FIELD_SIZE  (ACCESSTIMEOUT, cbSize, 4)
88     TEST_FIELD_ALIGN (ACCESSTIMEOUT, cbSize, 4)
89     TEST_FIELD_OFFSET(ACCESSTIMEOUT, cbSize, 0)
90     TEST_FIELD_SIZE  (ACCESSTIMEOUT, dwFlags, 4)
91     TEST_FIELD_ALIGN (ACCESSTIMEOUT, dwFlags, 4)
92     TEST_FIELD_OFFSET(ACCESSTIMEOUT, dwFlags, 4)
93     TEST_FIELD_SIZE  (ACCESSTIMEOUT, iTimeOutMSec, 4)
94     TEST_FIELD_ALIGN (ACCESSTIMEOUT, iTimeOutMSec, 4)
95     TEST_FIELD_OFFSET(ACCESSTIMEOUT, iTimeOutMSec, 8)
96 }
97 
98 static void test_pack_ANIMATIONINFO(void)
99 {
100     /* ANIMATIONINFO */
101     TEST_TYPE_SIZE   (ANIMATIONINFO, 8)
102     TEST_TYPE_ALIGN  (ANIMATIONINFO, 4)
103     TEST_FIELD_SIZE  (ANIMATIONINFO, cbSize, 4)
104     TEST_FIELD_ALIGN (ANIMATIONINFO, cbSize, 4)
105     TEST_FIELD_OFFSET(ANIMATIONINFO, cbSize, 0)
106     TEST_FIELD_SIZE  (ANIMATIONINFO, iMinAnimate, 4)
107     TEST_FIELD_ALIGN (ANIMATIONINFO, iMinAnimate, 4)
108     TEST_FIELD_OFFSET(ANIMATIONINFO, iMinAnimate, 4)
109 }
110 
111 static void test_pack_CBTACTIVATESTRUCT(void)
112 {
113     /* CBTACTIVATESTRUCT */
114     TEST_TYPE_SIZE   (CBTACTIVATESTRUCT, 16)
115     TEST_TYPE_ALIGN  (CBTACTIVATESTRUCT, 8)
116     TEST_FIELD_SIZE  (CBTACTIVATESTRUCT, fMouse, 4)
117     TEST_FIELD_ALIGN (CBTACTIVATESTRUCT, fMouse, 4)
118     TEST_FIELD_OFFSET(CBTACTIVATESTRUCT, fMouse, 0)
119     TEST_FIELD_SIZE  (CBTACTIVATESTRUCT, hWndActive, 8)
120     TEST_FIELD_ALIGN (CBTACTIVATESTRUCT, hWndActive, 8)
121     TEST_FIELD_OFFSET(CBTACTIVATESTRUCT, hWndActive, 8)
122 }
123 
124 static void test_pack_CBT_CREATEWNDA(void)
125 {
126     /* CBT_CREATEWNDA */
127     TEST_TYPE_SIZE   (CBT_CREATEWNDA, 16)
128     TEST_TYPE_ALIGN  (CBT_CREATEWNDA, 8)
129     TEST_FIELD_SIZE  (CBT_CREATEWNDA, lpcs, 8)
130     TEST_FIELD_ALIGN (CBT_CREATEWNDA, lpcs, 8)
131     TEST_FIELD_OFFSET(CBT_CREATEWNDA, lpcs, 0)
132     TEST_FIELD_SIZE  (CBT_CREATEWNDA, hwndInsertAfter, 8)
133     TEST_FIELD_ALIGN (CBT_CREATEWNDA, hwndInsertAfter, 8)
134     TEST_FIELD_OFFSET(CBT_CREATEWNDA, hwndInsertAfter, 8)
135 }
136 
137 static void test_pack_CBT_CREATEWNDW(void)
138 {
139     /* CBT_CREATEWNDW */
140     TEST_TYPE_SIZE   (CBT_CREATEWNDW, 16)
141     TEST_TYPE_ALIGN  (CBT_CREATEWNDW, 8)
142     TEST_FIELD_SIZE  (CBT_CREATEWNDW, lpcs, 8)
143     TEST_FIELD_ALIGN (CBT_CREATEWNDW, lpcs, 8)
144     TEST_FIELD_OFFSET(CBT_CREATEWNDW, lpcs, 0)
145     TEST_FIELD_SIZE  (CBT_CREATEWNDW, hwndInsertAfter, 8)
146     TEST_FIELD_ALIGN (CBT_CREATEWNDW, hwndInsertAfter, 8)
147     TEST_FIELD_OFFSET(CBT_CREATEWNDW, hwndInsertAfter, 8)
148 }
149 
150 static void test_pack_CLIENTCREATESTRUCT(void)
151 {
152     /* CLIENTCREATESTRUCT */
153     TEST_TYPE_SIZE   (CLIENTCREATESTRUCT, 16)
154     TEST_TYPE_ALIGN  (CLIENTCREATESTRUCT, 8)
155     TEST_FIELD_SIZE  (CLIENTCREATESTRUCT, hWindowMenu, 8)
156     TEST_FIELD_ALIGN (CLIENTCREATESTRUCT, hWindowMenu, 8)
157     TEST_FIELD_OFFSET(CLIENTCREATESTRUCT, hWindowMenu, 0)
158     TEST_FIELD_SIZE  (CLIENTCREATESTRUCT, idFirstChild, 4)
159     TEST_FIELD_ALIGN (CLIENTCREATESTRUCT, idFirstChild, 4)
160     TEST_FIELD_OFFSET(CLIENTCREATESTRUCT, idFirstChild, 8)
161 }
162 
163 static void test_pack_COMBOBOXINFO(void)
164 {
165     /* COMBOBOXINFO */
166     TEST_TYPE_SIZE   (COMBOBOXINFO, 64)
167     TEST_TYPE_ALIGN  (COMBOBOXINFO, 8)
168     TEST_FIELD_SIZE  (COMBOBOXINFO, cbSize, 4)
169     TEST_FIELD_ALIGN (COMBOBOXINFO, cbSize, 4)
170     TEST_FIELD_OFFSET(COMBOBOXINFO, cbSize, 0)
171     TEST_FIELD_SIZE  (COMBOBOXINFO, rcItem, 16)
172     TEST_FIELD_ALIGN (COMBOBOXINFO, rcItem, 4)
173     TEST_FIELD_OFFSET(COMBOBOXINFO, rcItem, 4)
174     TEST_FIELD_SIZE  (COMBOBOXINFO, rcButton, 16)
175     TEST_FIELD_ALIGN (COMBOBOXINFO, rcButton, 4)
176     TEST_FIELD_OFFSET(COMBOBOXINFO, rcButton, 20)
177     TEST_FIELD_SIZE  (COMBOBOXINFO, stateButton, 4)
178     TEST_FIELD_ALIGN (COMBOBOXINFO, stateButton, 4)
179     TEST_FIELD_OFFSET(COMBOBOXINFO, stateButton, 36)
180     TEST_FIELD_SIZE  (COMBOBOXINFO, hwndCombo, 8)
181     TEST_FIELD_ALIGN (COMBOBOXINFO, hwndCombo, 8)
182     TEST_FIELD_OFFSET(COMBOBOXINFO, hwndCombo, 40)
183     TEST_FIELD_SIZE  (COMBOBOXINFO, hwndItem, 8)
184     TEST_FIELD_ALIGN (COMBOBOXINFO, hwndItem, 8)
185     TEST_FIELD_OFFSET(COMBOBOXINFO, hwndItem, 48)
186     TEST_FIELD_SIZE  (COMBOBOXINFO, hwndList, 8)
187     TEST_FIELD_ALIGN (COMBOBOXINFO, hwndList, 8)
188     TEST_FIELD_OFFSET(COMBOBOXINFO, hwndList, 56)
189 }
190 
191 static void test_pack_COMPAREITEMSTRUCT(void)
192 {
193     /* COMPAREITEMSTRUCT */
194     TEST_TYPE_SIZE   (COMPAREITEMSTRUCT, 56)
195     TEST_TYPE_ALIGN  (COMPAREITEMSTRUCT, 8)
196     TEST_FIELD_SIZE  (COMPAREITEMSTRUCT, CtlType, 4)
197     TEST_FIELD_ALIGN (COMPAREITEMSTRUCT, CtlType, 4)
198     TEST_FIELD_OFFSET(COMPAREITEMSTRUCT, CtlType, 0)
199     TEST_FIELD_SIZE  (COMPAREITEMSTRUCT, CtlID, 4)
200     TEST_FIELD_ALIGN (COMPAREITEMSTRUCT, CtlID, 4)
201     TEST_FIELD_OFFSET(COMPAREITEMSTRUCT, CtlID, 4)
202     TEST_FIELD_SIZE  (COMPAREITEMSTRUCT, hwndItem, 8)
203     TEST_FIELD_ALIGN (COMPAREITEMSTRUCT, hwndItem, 8)
204     TEST_FIELD_OFFSET(COMPAREITEMSTRUCT, hwndItem, 8)
205     TEST_FIELD_SIZE  (COMPAREITEMSTRUCT, itemID1, 4)
206     TEST_FIELD_ALIGN (COMPAREITEMSTRUCT, itemID1, 4)
207     TEST_FIELD_OFFSET(COMPAREITEMSTRUCT, itemID1, 16)
208     TEST_FIELD_SIZE  (COMPAREITEMSTRUCT, itemData1, 8)
209     TEST_FIELD_ALIGN (COMPAREITEMSTRUCT, itemData1, 8)
210     TEST_FIELD_OFFSET(COMPAREITEMSTRUCT, itemData1, 24)
211     TEST_FIELD_SIZE  (COMPAREITEMSTRUCT, itemID2, 4)
212     TEST_FIELD_ALIGN (COMPAREITEMSTRUCT, itemID2, 4)
213     TEST_FIELD_OFFSET(COMPAREITEMSTRUCT, itemID2, 32)
214     TEST_FIELD_SIZE  (COMPAREITEMSTRUCT, itemData2, 8)
215     TEST_FIELD_ALIGN (COMPAREITEMSTRUCT, itemData2, 8)
216     TEST_FIELD_OFFSET(COMPAREITEMSTRUCT, itemData2, 40)
217     TEST_FIELD_SIZE  (COMPAREITEMSTRUCT, dwLocaleId, 4)
218     TEST_FIELD_ALIGN (COMPAREITEMSTRUCT, dwLocaleId, 4)
219     TEST_FIELD_OFFSET(COMPAREITEMSTRUCT, dwLocaleId, 48)
220 }
221 
222 static void test_pack_COPYDATASTRUCT(void)
223 {
224     /* COPYDATASTRUCT */
225     TEST_TYPE_SIZE   (COPYDATASTRUCT, 24)
226     TEST_TYPE_ALIGN  (COPYDATASTRUCT, 8)
227     TEST_FIELD_SIZE  (COPYDATASTRUCT, dwData, 8)
228     TEST_FIELD_ALIGN (COPYDATASTRUCT, dwData, 8)
229     TEST_FIELD_OFFSET(COPYDATASTRUCT, dwData, 0)
230     TEST_FIELD_SIZE  (COPYDATASTRUCT, cbData, 4)
231     TEST_FIELD_ALIGN (COPYDATASTRUCT, cbData, 4)
232     TEST_FIELD_OFFSET(COPYDATASTRUCT, cbData, 8)
233     TEST_FIELD_SIZE  (COPYDATASTRUCT, lpData, 8)
234     TEST_FIELD_ALIGN (COPYDATASTRUCT, lpData, 8)
235     TEST_FIELD_OFFSET(COPYDATASTRUCT, lpData, 16)
236 }
237 
238 static void test_pack_CREATESTRUCTA(void)
239 {
240     /* CREATESTRUCTA */
241     TEST_TYPE_SIZE   (CREATESTRUCTA, 80)
242     TEST_TYPE_ALIGN  (CREATESTRUCTA, 8)
243     TEST_FIELD_SIZE  (CREATESTRUCTA, lpCreateParams, 8)
244     TEST_FIELD_ALIGN (CREATESTRUCTA, lpCreateParams, 8)
245     TEST_FIELD_OFFSET(CREATESTRUCTA, lpCreateParams, 0)
246     TEST_FIELD_SIZE  (CREATESTRUCTA, hInstance, 8)
247     TEST_FIELD_ALIGN (CREATESTRUCTA, hInstance, 8)
248     TEST_FIELD_OFFSET(CREATESTRUCTA, hInstance, 8)
249     TEST_FIELD_SIZE  (CREATESTRUCTA, hMenu, 8)
250     TEST_FIELD_ALIGN (CREATESTRUCTA, hMenu, 8)
251     TEST_FIELD_OFFSET(CREATESTRUCTA, hMenu, 16)
252     TEST_FIELD_SIZE  (CREATESTRUCTA, hwndParent, 8)
253     TEST_FIELD_ALIGN (CREATESTRUCTA, hwndParent, 8)
254     TEST_FIELD_OFFSET(CREATESTRUCTA, hwndParent, 24)
255     TEST_FIELD_SIZE  (CREATESTRUCTA, cy, 4)
256     TEST_FIELD_ALIGN (CREATESTRUCTA, cy, 4)
257     TEST_FIELD_OFFSET(CREATESTRUCTA, cy, 32)
258     TEST_FIELD_SIZE  (CREATESTRUCTA, cx, 4)
259     TEST_FIELD_ALIGN (CREATESTRUCTA, cx, 4)
260     TEST_FIELD_OFFSET(CREATESTRUCTA, cx, 36)
261     TEST_FIELD_SIZE  (CREATESTRUCTA, y, 4)
262     TEST_FIELD_ALIGN (CREATESTRUCTA, y, 4)
263     TEST_FIELD_OFFSET(CREATESTRUCTA, y, 40)
264     TEST_FIELD_SIZE  (CREATESTRUCTA, x, 4)
265     TEST_FIELD_ALIGN (CREATESTRUCTA, x, 4)
266     TEST_FIELD_OFFSET(CREATESTRUCTA, x, 44)
267     TEST_FIELD_SIZE  (CREATESTRUCTA, style, 4)
268     TEST_FIELD_ALIGN (CREATESTRUCTA, style, 4)
269     TEST_FIELD_OFFSET(CREATESTRUCTA, style, 48)
270     TEST_FIELD_SIZE  (CREATESTRUCTA, lpszName, 8)
271     TEST_FIELD_ALIGN (CREATESTRUCTA, lpszName, 8)
272     TEST_FIELD_OFFSET(CREATESTRUCTA, lpszName, 56)
273     TEST_FIELD_SIZE  (CREATESTRUCTA, lpszClass, 8)
274     TEST_FIELD_ALIGN (CREATESTRUCTA, lpszClass, 8)
275     TEST_FIELD_OFFSET(CREATESTRUCTA, lpszClass, 64)
276     TEST_FIELD_SIZE  (CREATESTRUCTA, dwExStyle, 4)
277     TEST_FIELD_ALIGN (CREATESTRUCTA, dwExStyle, 4)
278     TEST_FIELD_OFFSET(CREATESTRUCTA, dwExStyle, 72)
279 }
280 
281 static void test_pack_CREATESTRUCTW(void)
282 {
283     /* CREATESTRUCTW */
284     TEST_TYPE_SIZE   (CREATESTRUCTW, 80)
285     TEST_TYPE_ALIGN  (CREATESTRUCTW, 8)
286     TEST_FIELD_SIZE  (CREATESTRUCTW, lpCreateParams, 8)
287     TEST_FIELD_ALIGN (CREATESTRUCTW, lpCreateParams, 8)
288     TEST_FIELD_OFFSET(CREATESTRUCTW, lpCreateParams, 0)
289     TEST_FIELD_SIZE  (CREATESTRUCTW, hInstance, 8)
290     TEST_FIELD_ALIGN (CREATESTRUCTW, hInstance, 8)
291     TEST_FIELD_OFFSET(CREATESTRUCTW, hInstance, 8)
292     TEST_FIELD_SIZE  (CREATESTRUCTW, hMenu, 8)
293     TEST_FIELD_ALIGN (CREATESTRUCTW, hMenu, 8)
294     TEST_FIELD_OFFSET(CREATESTRUCTW, hMenu, 16)
295     TEST_FIELD_SIZE  (CREATESTRUCTW, hwndParent, 8)
296     TEST_FIELD_ALIGN (CREATESTRUCTW, hwndParent, 8)
297     TEST_FIELD_OFFSET(CREATESTRUCTW, hwndParent, 24)
298     TEST_FIELD_SIZE  (CREATESTRUCTW, cy, 4)
299     TEST_FIELD_ALIGN (CREATESTRUCTW, cy, 4)
300     TEST_FIELD_OFFSET(CREATESTRUCTW, cy, 32)
301     TEST_FIELD_SIZE  (CREATESTRUCTW, cx, 4)
302     TEST_FIELD_ALIGN (CREATESTRUCTW, cx, 4)
303     TEST_FIELD_OFFSET(CREATESTRUCTW, cx, 36)
304     TEST_FIELD_SIZE  (CREATESTRUCTW, y, 4)
305     TEST_FIELD_ALIGN (CREATESTRUCTW, y, 4)
306     TEST_FIELD_OFFSET(CREATESTRUCTW, y, 40)
307     TEST_FIELD_SIZE  (CREATESTRUCTW, x, 4)
308     TEST_FIELD_ALIGN (CREATESTRUCTW, x, 4)
309     TEST_FIELD_OFFSET(CREATESTRUCTW, x, 44)
310     TEST_FIELD_SIZE  (CREATESTRUCTW, style, 4)
311     TEST_FIELD_ALIGN (CREATESTRUCTW, style, 4)
312     TEST_FIELD_OFFSET(CREATESTRUCTW, style, 48)
313     TEST_FIELD_SIZE  (CREATESTRUCTW, lpszName, 8)
314     TEST_FIELD_ALIGN (CREATESTRUCTW, lpszName, 8)
315     TEST_FIELD_OFFSET(CREATESTRUCTW, lpszName, 56)
316     TEST_FIELD_SIZE  (CREATESTRUCTW, lpszClass, 8)
317     TEST_FIELD_ALIGN (CREATESTRUCTW, lpszClass, 8)
318     TEST_FIELD_OFFSET(CREATESTRUCTW, lpszClass, 64)
319     TEST_FIELD_SIZE  (CREATESTRUCTW, dwExStyle, 4)
320     TEST_FIELD_ALIGN (CREATESTRUCTW, dwExStyle, 4)
321     TEST_FIELD_OFFSET(CREATESTRUCTW, dwExStyle, 72)
322 }
323 
324 static void test_pack_CURSORINFO(void)
325 {
326     /* CURSORINFO */
327     TEST_TYPE_SIZE   (CURSORINFO, 24)
328     TEST_TYPE_ALIGN  (CURSORINFO, 8)
329     TEST_FIELD_SIZE  (CURSORINFO, cbSize, 4)
330     TEST_FIELD_ALIGN (CURSORINFO, cbSize, 4)
331     TEST_FIELD_OFFSET(CURSORINFO, cbSize, 0)
332     TEST_FIELD_SIZE  (CURSORINFO, flags, 4)
333     TEST_FIELD_ALIGN (CURSORINFO, flags, 4)
334     TEST_FIELD_OFFSET(CURSORINFO, flags, 4)
335     TEST_FIELD_SIZE  (CURSORINFO, hCursor, 8)
336     TEST_FIELD_ALIGN (CURSORINFO, hCursor, 8)
337     TEST_FIELD_OFFSET(CURSORINFO, hCursor, 8)
338     TEST_FIELD_SIZE  (CURSORINFO, ptScreenPos, 8)
339     TEST_FIELD_ALIGN (CURSORINFO, ptScreenPos, 4)
340     TEST_FIELD_OFFSET(CURSORINFO, ptScreenPos, 16)
341 }
342 
343 static void test_pack_CWPRETSTRUCT(void)
344 {
345     /* CWPRETSTRUCT */
346     TEST_TYPE_SIZE   (CWPRETSTRUCT, 40)
347     TEST_TYPE_ALIGN  (CWPRETSTRUCT, 8)
348     TEST_FIELD_SIZE  (CWPRETSTRUCT, lResult, 8)
349     TEST_FIELD_ALIGN (CWPRETSTRUCT, lResult, 8)
350     TEST_FIELD_OFFSET(CWPRETSTRUCT, lResult, 0)
351     TEST_FIELD_SIZE  (CWPRETSTRUCT, lParam, 8)
352     TEST_FIELD_ALIGN (CWPRETSTRUCT, lParam, 8)
353     TEST_FIELD_OFFSET(CWPRETSTRUCT, lParam, 8)
354     TEST_FIELD_SIZE  (CWPRETSTRUCT, wParam, 8)
355     TEST_FIELD_ALIGN (CWPRETSTRUCT, wParam, 8)
356     TEST_FIELD_OFFSET(CWPRETSTRUCT, wParam, 16)
357     TEST_FIELD_SIZE  (CWPRETSTRUCT, message, 4)
358     TEST_FIELD_ALIGN (CWPRETSTRUCT, message, 4)
359     TEST_FIELD_OFFSET(CWPRETSTRUCT, message, 24)
360     TEST_FIELD_SIZE  (CWPRETSTRUCT, hwnd, 8)
361     TEST_FIELD_ALIGN (CWPRETSTRUCT, hwnd, 8)
362     TEST_FIELD_OFFSET(CWPRETSTRUCT, hwnd, 32)
363 }
364 
365 static void test_pack_CWPSTRUCT(void)
366 {
367     /* CWPSTRUCT */
368     TEST_TYPE_SIZE   (CWPSTRUCT, 32)
369     TEST_TYPE_ALIGN  (CWPSTRUCT, 8)
370     TEST_FIELD_SIZE  (CWPSTRUCT, lParam, 8)
371     TEST_FIELD_ALIGN (CWPSTRUCT, lParam, 8)
372     TEST_FIELD_OFFSET(CWPSTRUCT, lParam, 0)
373     TEST_FIELD_SIZE  (CWPSTRUCT, wParam, 8)
374     TEST_FIELD_ALIGN (CWPSTRUCT, wParam, 8)
375     TEST_FIELD_OFFSET(CWPSTRUCT, wParam, 8)
376     TEST_FIELD_SIZE  (CWPSTRUCT, message, 4)
377     TEST_FIELD_ALIGN (CWPSTRUCT, message, 4)
378     TEST_FIELD_OFFSET(CWPSTRUCT, message, 16)
379     TEST_FIELD_SIZE  (CWPSTRUCT, hwnd, 8)
380     TEST_FIELD_ALIGN (CWPSTRUCT, hwnd, 8)
381     TEST_FIELD_OFFSET(CWPSTRUCT, hwnd, 24)
382 }
383 
384 static void test_pack_DEBUGHOOKINFO(void)
385 {
386     /* DEBUGHOOKINFO */
387     TEST_TYPE_SIZE   (DEBUGHOOKINFO, 32)
388     TEST_TYPE_ALIGN  (DEBUGHOOKINFO, 8)
389     TEST_FIELD_SIZE  (DEBUGHOOKINFO, idThread, 4)
390     TEST_FIELD_ALIGN (DEBUGHOOKINFO, idThread, 4)
391     TEST_FIELD_OFFSET(DEBUGHOOKINFO, idThread, 0)
392     TEST_FIELD_SIZE  (DEBUGHOOKINFO, idThreadInstaller, 4)
393     TEST_FIELD_ALIGN (DEBUGHOOKINFO, idThreadInstaller, 4)
394     TEST_FIELD_OFFSET(DEBUGHOOKINFO, idThreadInstaller, 4)
395     TEST_FIELD_SIZE  (DEBUGHOOKINFO, lParam, 8)
396     TEST_FIELD_ALIGN (DEBUGHOOKINFO, lParam, 8)
397     TEST_FIELD_OFFSET(DEBUGHOOKINFO, lParam, 8)
398     TEST_FIELD_SIZE  (DEBUGHOOKINFO, wParam, 8)
399     TEST_FIELD_ALIGN (DEBUGHOOKINFO, wParam, 8)
400     TEST_FIELD_OFFSET(DEBUGHOOKINFO, wParam, 16)
401     TEST_FIELD_SIZE  (DEBUGHOOKINFO, code, 4)
402     TEST_FIELD_ALIGN (DEBUGHOOKINFO, code, 4)
403     TEST_FIELD_OFFSET(DEBUGHOOKINFO, code, 24)
404 }
405 
406 static void test_pack_DELETEITEMSTRUCT(void)
407 {
408     /* DELETEITEMSTRUCT */
409     TEST_TYPE_SIZE   (DELETEITEMSTRUCT, 32)
410     TEST_TYPE_ALIGN  (DELETEITEMSTRUCT, 8)
411     TEST_FIELD_SIZE  (DELETEITEMSTRUCT, CtlType, 4)
412     TEST_FIELD_ALIGN (DELETEITEMSTRUCT, CtlType, 4)
413     TEST_FIELD_OFFSET(DELETEITEMSTRUCT, CtlType, 0)
414     TEST_FIELD_SIZE  (DELETEITEMSTRUCT, CtlID, 4)
415     TEST_FIELD_ALIGN (DELETEITEMSTRUCT, CtlID, 4)
416     TEST_FIELD_OFFSET(DELETEITEMSTRUCT, CtlID, 4)
417     TEST_FIELD_SIZE  (DELETEITEMSTRUCT, itemID, 4)
418     TEST_FIELD_ALIGN (DELETEITEMSTRUCT, itemID, 4)
419     TEST_FIELD_OFFSET(DELETEITEMSTRUCT, itemID, 8)
420     TEST_FIELD_SIZE  (DELETEITEMSTRUCT, hwndItem, 8)
421     TEST_FIELD_ALIGN (DELETEITEMSTRUCT, hwndItem, 8)
422     TEST_FIELD_OFFSET(DELETEITEMSTRUCT, hwndItem, 16)
423     TEST_FIELD_SIZE  (DELETEITEMSTRUCT, itemData, 8)
424     TEST_FIELD_ALIGN (DELETEITEMSTRUCT, itemData, 8)
425     TEST_FIELD_OFFSET(DELETEITEMSTRUCT, itemData, 24)
426 }
427 
428 static void test_pack_DESKTOPENUMPROCA(void)
429 {
430     /* DESKTOPENUMPROCA */
431     TEST_TYPE_SIZE   (DESKTOPENUMPROCA, 8)
432     TEST_TYPE_ALIGN  (DESKTOPENUMPROCA, 8)
433 }
434 
435 static void test_pack_DESKTOPENUMPROCW(void)
436 {
437     /* DESKTOPENUMPROCW */
438     TEST_TYPE_SIZE   (DESKTOPENUMPROCW, 8)
439     TEST_TYPE_ALIGN  (DESKTOPENUMPROCW, 8)
440 }
441 
442 static void test_pack_DLGITEMTEMPLATE(void)
443 {
444     /* DLGITEMTEMPLATE (pack 2) */
445     TEST_TYPE_SIZE   (DLGITEMTEMPLATE, 18)
446     TEST_TYPE_ALIGN  (DLGITEMTEMPLATE, 2)
447     TEST_FIELD_SIZE  (DLGITEMTEMPLATE, style, 4)
448     TEST_FIELD_ALIGN (DLGITEMTEMPLATE, style, 2)
449     TEST_FIELD_OFFSET(DLGITEMTEMPLATE, style, 0)
450     TEST_FIELD_SIZE  (DLGITEMTEMPLATE, dwExtendedStyle, 4)
451     TEST_FIELD_ALIGN (DLGITEMTEMPLATE, dwExtendedStyle, 2)
452     TEST_FIELD_OFFSET(DLGITEMTEMPLATE, dwExtendedStyle, 4)
453     TEST_FIELD_SIZE  (DLGITEMTEMPLATE, x, 2)
454     TEST_FIELD_ALIGN (DLGITEMTEMPLATE, x, 2)
455     TEST_FIELD_OFFSET(DLGITEMTEMPLATE, x, 8)
456     TEST_FIELD_SIZE  (DLGITEMTEMPLATE, y, 2)
457     TEST_FIELD_ALIGN (DLGITEMTEMPLATE, y, 2)
458     TEST_FIELD_OFFSET(DLGITEMTEMPLATE, y, 10)
459     TEST_FIELD_SIZE  (DLGITEMTEMPLATE, cx, 2)
460     TEST_FIELD_ALIGN (DLGITEMTEMPLATE, cx, 2)
461     TEST_FIELD_OFFSET(DLGITEMTEMPLATE, cx, 12)
462     TEST_FIELD_SIZE  (DLGITEMTEMPLATE, cy, 2)
463     TEST_FIELD_ALIGN (DLGITEMTEMPLATE, cy, 2)
464     TEST_FIELD_OFFSET(DLGITEMTEMPLATE, cy, 14)
465     TEST_FIELD_SIZE  (DLGITEMTEMPLATE, id, 2)
466     TEST_FIELD_ALIGN (DLGITEMTEMPLATE, id, 2)
467     TEST_FIELD_OFFSET(DLGITEMTEMPLATE, id, 16)
468 }
469 
470 static void test_pack_DLGPROC(void)
471 {
472     /* DLGPROC */
473     TEST_TYPE_SIZE   (DLGPROC, 8)
474     TEST_TYPE_ALIGN  (DLGPROC, 8)
475 }
476 
477 static void test_pack_DLGTEMPLATE(void)
478 {
479     /* DLGTEMPLATE (pack 2) */
480     TEST_TYPE_SIZE   (DLGTEMPLATE, 18)
481     TEST_TYPE_ALIGN  (DLGTEMPLATE, 2)
482     TEST_FIELD_SIZE  (DLGTEMPLATE, style, 4)
483     TEST_FIELD_ALIGN (DLGTEMPLATE, style, 2)
484     TEST_FIELD_OFFSET(DLGTEMPLATE, style, 0)
485     TEST_FIELD_SIZE  (DLGTEMPLATE, dwExtendedStyle, 4)
486     TEST_FIELD_ALIGN (DLGTEMPLATE, dwExtendedStyle, 2)
487     TEST_FIELD_OFFSET(DLGTEMPLATE, dwExtendedStyle, 4)
488     TEST_FIELD_SIZE  (DLGTEMPLATE, cdit, 2)
489     TEST_FIELD_ALIGN (DLGTEMPLATE, cdit, 2)
490     TEST_FIELD_OFFSET(DLGTEMPLATE, cdit, 8)
491     TEST_FIELD_SIZE  (DLGTEMPLATE, x, 2)
492     TEST_FIELD_ALIGN (DLGTEMPLATE, x, 2)
493     TEST_FIELD_OFFSET(DLGTEMPLATE, x, 10)
494     TEST_FIELD_SIZE  (DLGTEMPLATE, y, 2)
495     TEST_FIELD_ALIGN (DLGTEMPLATE, y, 2)
496     TEST_FIELD_OFFSET(DLGTEMPLATE, y, 12)
497     TEST_FIELD_SIZE  (DLGTEMPLATE, cx, 2)
498     TEST_FIELD_ALIGN (DLGTEMPLATE, cx, 2)
499     TEST_FIELD_OFFSET(DLGTEMPLATE, cx, 14)
500     TEST_FIELD_SIZE  (DLGTEMPLATE, cy, 2)
501     TEST_FIELD_ALIGN (DLGTEMPLATE, cy, 2)
502     TEST_FIELD_OFFSET(DLGTEMPLATE, cy, 16)
503 }
504 
505 static void test_pack_DRAWITEMSTRUCT(void)
506 {
507     /* DRAWITEMSTRUCT */
508     TEST_TYPE_SIZE   (DRAWITEMSTRUCT, 64)
509     TEST_TYPE_ALIGN  (DRAWITEMSTRUCT, 8)
510     TEST_FIELD_SIZE  (DRAWITEMSTRUCT, CtlType, 4)
511     TEST_FIELD_ALIGN (DRAWITEMSTRUCT, CtlType, 4)
512     TEST_FIELD_OFFSET(DRAWITEMSTRUCT, CtlType, 0)
513     TEST_FIELD_SIZE  (DRAWITEMSTRUCT, CtlID, 4)
514     TEST_FIELD_ALIGN (DRAWITEMSTRUCT, CtlID, 4)
515     TEST_FIELD_OFFSET(DRAWITEMSTRUCT, CtlID, 4)
516     TEST_FIELD_SIZE  (DRAWITEMSTRUCT, itemID, 4)
517     TEST_FIELD_ALIGN (DRAWITEMSTRUCT, itemID, 4)
518     TEST_FIELD_OFFSET(DRAWITEMSTRUCT, itemID, 8)
519     TEST_FIELD_SIZE  (DRAWITEMSTRUCT, itemAction, 4)
520     TEST_FIELD_ALIGN (DRAWITEMSTRUCT, itemAction, 4)
521     TEST_FIELD_OFFSET(DRAWITEMSTRUCT, itemAction, 12)
522     TEST_FIELD_SIZE  (DRAWITEMSTRUCT, itemState, 4)
523     TEST_FIELD_ALIGN (DRAWITEMSTRUCT, itemState, 4)
524     TEST_FIELD_OFFSET(DRAWITEMSTRUCT, itemState, 16)
525     TEST_FIELD_SIZE  (DRAWITEMSTRUCT, hwndItem, 8)
526     TEST_FIELD_ALIGN (DRAWITEMSTRUCT, hwndItem, 8)
527     TEST_FIELD_OFFSET(DRAWITEMSTRUCT, hwndItem, 24)
528     TEST_FIELD_SIZE  (DRAWITEMSTRUCT, hDC, 8)
529     TEST_FIELD_ALIGN (DRAWITEMSTRUCT, hDC, 8)
530     TEST_FIELD_OFFSET(DRAWITEMSTRUCT, hDC, 32)
531     TEST_FIELD_SIZE  (DRAWITEMSTRUCT, rcItem, 16)
532     TEST_FIELD_ALIGN (DRAWITEMSTRUCT, rcItem, 4)
533     TEST_FIELD_OFFSET(DRAWITEMSTRUCT, rcItem, 40)
534     TEST_FIELD_SIZE  (DRAWITEMSTRUCT, itemData, 8)
535     TEST_FIELD_ALIGN (DRAWITEMSTRUCT, itemData, 8)
536     TEST_FIELD_OFFSET(DRAWITEMSTRUCT, itemData, 56)
537 }
538 
539 static void test_pack_DRAWSTATEPROC(void)
540 {
541     /* DRAWSTATEPROC */
542     TEST_TYPE_SIZE   (DRAWSTATEPROC, 8)
543     TEST_TYPE_ALIGN  (DRAWSTATEPROC, 8)
544 }
545 
546 static void test_pack_DRAWTEXTPARAMS(void)
547 {
548     /* DRAWTEXTPARAMS */
549     TEST_TYPE_SIZE   (DRAWTEXTPARAMS, 20)
550     TEST_TYPE_ALIGN  (DRAWTEXTPARAMS, 4)
551     TEST_FIELD_SIZE  (DRAWTEXTPARAMS, cbSize, 4)
552     TEST_FIELD_ALIGN (DRAWTEXTPARAMS, cbSize, 4)
553     TEST_FIELD_OFFSET(DRAWTEXTPARAMS, cbSize, 0)
554     TEST_FIELD_SIZE  (DRAWTEXTPARAMS, iTabLength, 4)
555     TEST_FIELD_ALIGN (DRAWTEXTPARAMS, iTabLength, 4)
556     TEST_FIELD_OFFSET(DRAWTEXTPARAMS, iTabLength, 4)
557     TEST_FIELD_SIZE  (DRAWTEXTPARAMS, iLeftMargin, 4)
558     TEST_FIELD_ALIGN (DRAWTEXTPARAMS, iLeftMargin, 4)
559     TEST_FIELD_OFFSET(DRAWTEXTPARAMS, iLeftMargin, 8)
560     TEST_FIELD_SIZE  (DRAWTEXTPARAMS, iRightMargin, 4)
561     TEST_FIELD_ALIGN (DRAWTEXTPARAMS, iRightMargin, 4)
562     TEST_FIELD_OFFSET(DRAWTEXTPARAMS, iRightMargin, 12)
563     TEST_FIELD_SIZE  (DRAWTEXTPARAMS, uiLengthDrawn, 4)
564     TEST_FIELD_ALIGN (DRAWTEXTPARAMS, uiLengthDrawn, 4)
565     TEST_FIELD_OFFSET(DRAWTEXTPARAMS, uiLengthDrawn, 16)
566 }
567 
568 static void test_pack_EDITWORDBREAKPROCA(void)
569 {
570     /* EDITWORDBREAKPROCA */
571     TEST_TYPE_SIZE   (EDITWORDBREAKPROCA, 8)
572     TEST_TYPE_ALIGN  (EDITWORDBREAKPROCA, 8)
573 }
574 
575 static void test_pack_EDITWORDBREAKPROCW(void)
576 {
577     /* EDITWORDBREAKPROCW */
578     TEST_TYPE_SIZE   (EDITWORDBREAKPROCW, 8)
579     TEST_TYPE_ALIGN  (EDITWORDBREAKPROCW, 8)
580 }
581 
582 static void test_pack_EVENTMSG(void)
583 {
584     /* EVENTMSG */
585     TEST_TYPE_SIZE   (EVENTMSG, 24)
586     TEST_TYPE_ALIGN  (EVENTMSG, 8)
587     TEST_FIELD_SIZE  (EVENTMSG, message, 4)
588     TEST_FIELD_ALIGN (EVENTMSG, message, 4)
589     TEST_FIELD_OFFSET(EVENTMSG, message, 0)
590     TEST_FIELD_SIZE  (EVENTMSG, paramL, 4)
591     TEST_FIELD_ALIGN (EVENTMSG, paramL, 4)
592     TEST_FIELD_OFFSET(EVENTMSG, paramL, 4)
593     TEST_FIELD_SIZE  (EVENTMSG, paramH, 4)
594     TEST_FIELD_ALIGN (EVENTMSG, paramH, 4)
595     TEST_FIELD_OFFSET(EVENTMSG, paramH, 8)
596     TEST_FIELD_SIZE  (EVENTMSG, time, 4)
597     TEST_FIELD_ALIGN (EVENTMSG, time, 4)
598     TEST_FIELD_OFFSET(EVENTMSG, time, 12)
599     TEST_FIELD_SIZE  (EVENTMSG, hwnd, 8)
600     TEST_FIELD_ALIGN (EVENTMSG, hwnd, 8)
601     TEST_FIELD_OFFSET(EVENTMSG, hwnd, 16)
602 }
603 
604 static void test_pack_FILTERKEYS(void)
605 {
606     /* FILTERKEYS */
607     TEST_TYPE_SIZE   (FILTERKEYS, 24)
608     TEST_TYPE_ALIGN  (FILTERKEYS, 4)
609     TEST_FIELD_SIZE  (FILTERKEYS, cbSize, 4)
610     TEST_FIELD_ALIGN (FILTERKEYS, cbSize, 4)
611     TEST_FIELD_OFFSET(FILTERKEYS, cbSize, 0)
612     TEST_FIELD_SIZE  (FILTERKEYS, dwFlags, 4)
613     TEST_FIELD_ALIGN (FILTERKEYS, dwFlags, 4)
614     TEST_FIELD_OFFSET(FILTERKEYS, dwFlags, 4)
615     TEST_FIELD_SIZE  (FILTERKEYS, iWaitMSec, 4)
616     TEST_FIELD_ALIGN (FILTERKEYS, iWaitMSec, 4)
617     TEST_FIELD_OFFSET(FILTERKEYS, iWaitMSec, 8)
618     TEST_FIELD_SIZE  (FILTERKEYS, iDelayMSec, 4)
619     TEST_FIELD_ALIGN (FILTERKEYS, iDelayMSec, 4)
620     TEST_FIELD_OFFSET(FILTERKEYS, iDelayMSec, 12)
621     TEST_FIELD_SIZE  (FILTERKEYS, iRepeatMSec, 4)
622     TEST_FIELD_ALIGN (FILTERKEYS, iRepeatMSec, 4)
623     TEST_FIELD_OFFSET(FILTERKEYS, iRepeatMSec, 16)
624     TEST_FIELD_SIZE  (FILTERKEYS, iBounceMSec, 4)
625     TEST_FIELD_ALIGN (FILTERKEYS, iBounceMSec, 4)
626     TEST_FIELD_OFFSET(FILTERKEYS, iBounceMSec, 20)
627 }
628 
629 static void test_pack_FLASHWINFO(void)
630 {
631     /* FLASHWINFO */
632     TEST_TYPE_SIZE   (FLASHWINFO, 32)
633     TEST_TYPE_ALIGN  (FLASHWINFO, 8)
634     TEST_FIELD_SIZE  (FLASHWINFO, cbSize, 4)
635     TEST_FIELD_ALIGN (FLASHWINFO, cbSize, 4)
636     TEST_FIELD_OFFSET(FLASHWINFO, cbSize, 0)
637     TEST_FIELD_SIZE  (FLASHWINFO, hwnd, 8)
638     TEST_FIELD_ALIGN (FLASHWINFO, hwnd, 8)
639     TEST_FIELD_OFFSET(FLASHWINFO, hwnd, 8)
640     TEST_FIELD_SIZE  (FLASHWINFO, dwFlags, 4)
641     TEST_FIELD_ALIGN (FLASHWINFO, dwFlags, 4)
642     TEST_FIELD_OFFSET(FLASHWINFO, dwFlags, 16)
643     TEST_FIELD_SIZE  (FLASHWINFO, uCount, 4)
644     TEST_FIELD_ALIGN (FLASHWINFO, uCount, 4)
645     TEST_FIELD_OFFSET(FLASHWINFO, uCount, 20)
646     TEST_FIELD_SIZE  (FLASHWINFO, dwTimeout, 4)
647     TEST_FIELD_ALIGN (FLASHWINFO, dwTimeout, 4)
648     TEST_FIELD_OFFSET(FLASHWINFO, dwTimeout, 24)
649 }
650 
651 static void test_pack_GRAYSTRINGPROC(void)
652 {
653     /* GRAYSTRINGPROC */
654     TEST_TYPE_SIZE   (GRAYSTRINGPROC, 8)
655     TEST_TYPE_ALIGN  (GRAYSTRINGPROC, 8)
656 }
657 
658 static void test_pack_GUITHREADINFO(void)
659 {
660     /* GUITHREADINFO */
661     TEST_TYPE_SIZE   (GUITHREADINFO, 72)
662     TEST_TYPE_ALIGN  (GUITHREADINFO, 8)
663     TEST_FIELD_SIZE  (GUITHREADINFO, cbSize, 4)
664     TEST_FIELD_ALIGN (GUITHREADINFO, cbSize, 4)
665     TEST_FIELD_OFFSET(GUITHREADINFO, cbSize, 0)
666     TEST_FIELD_SIZE  (GUITHREADINFO, flags, 4)
667     TEST_FIELD_ALIGN (GUITHREADINFO, flags, 4)
668     TEST_FIELD_OFFSET(GUITHREADINFO, flags, 4)
669     TEST_FIELD_SIZE  (GUITHREADINFO, hwndActive, 8)
670     TEST_FIELD_ALIGN (GUITHREADINFO, hwndActive, 8)
671     TEST_FIELD_OFFSET(GUITHREADINFO, hwndActive, 8)
672     TEST_FIELD_SIZE  (GUITHREADINFO, hwndFocus, 8)
673     TEST_FIELD_ALIGN (GUITHREADINFO, hwndFocus, 8)
674     TEST_FIELD_OFFSET(GUITHREADINFO, hwndFocus, 16)
675     TEST_FIELD_SIZE  (GUITHREADINFO, hwndCapture, 8)
676     TEST_FIELD_ALIGN (GUITHREADINFO, hwndCapture, 8)
677     TEST_FIELD_OFFSET(GUITHREADINFO, hwndCapture, 24)
678     TEST_FIELD_SIZE  (GUITHREADINFO, hwndMenuOwner, 8)
679     TEST_FIELD_ALIGN (GUITHREADINFO, hwndMenuOwner, 8)
680     TEST_FIELD_OFFSET(GUITHREADINFO, hwndMenuOwner, 32)
681     TEST_FIELD_SIZE  (GUITHREADINFO, hwndMoveSize, 8)
682     TEST_FIELD_ALIGN (GUITHREADINFO, hwndMoveSize, 8)
683     TEST_FIELD_OFFSET(GUITHREADINFO, hwndMoveSize, 40)
684     TEST_FIELD_SIZE  (GUITHREADINFO, hwndCaret, 8)
685     TEST_FIELD_ALIGN (GUITHREADINFO, hwndCaret, 8)
686     TEST_FIELD_OFFSET(GUITHREADINFO, hwndCaret, 48)
687     TEST_FIELD_SIZE  (GUITHREADINFO, rcCaret, 16)
688     TEST_FIELD_ALIGN (GUITHREADINFO, rcCaret, 4)
689     TEST_FIELD_OFFSET(GUITHREADINFO, rcCaret, 56)
690 }
691 
692 static void test_pack_HARDWAREHOOKSTRUCT(void)
693 {
694     /* HARDWAREHOOKSTRUCT */
695     TEST_TYPE_SIZE   (HARDWAREHOOKSTRUCT, 32)
696     TEST_TYPE_ALIGN  (HARDWAREHOOKSTRUCT, 8)
697     TEST_FIELD_SIZE  (HARDWAREHOOKSTRUCT, hwnd, 8)
698     TEST_FIELD_ALIGN (HARDWAREHOOKSTRUCT, hwnd, 8)
699     TEST_FIELD_OFFSET(HARDWAREHOOKSTRUCT, hwnd, 0)
700     TEST_FIELD_SIZE  (HARDWAREHOOKSTRUCT, message, 4)
701     TEST_FIELD_ALIGN (HARDWAREHOOKSTRUCT, message, 4)
702     TEST_FIELD_OFFSET(HARDWAREHOOKSTRUCT, message, 8)
703     TEST_FIELD_SIZE  (HARDWAREHOOKSTRUCT, wParam, 8)
704     TEST_FIELD_ALIGN (HARDWAREHOOKSTRUCT, wParam, 8)
705     TEST_FIELD_OFFSET(HARDWAREHOOKSTRUCT, wParam, 16)
706     TEST_FIELD_SIZE  (HARDWAREHOOKSTRUCT, lParam, 8)
707     TEST_FIELD_ALIGN (HARDWAREHOOKSTRUCT, lParam, 8)
708     TEST_FIELD_OFFSET(HARDWAREHOOKSTRUCT, lParam, 24)
709 }
710 
711 static void test_pack_HARDWAREINPUT(void)
712 {
713     /* HARDWAREINPUT */
714     TEST_TYPE_SIZE   (HARDWAREINPUT, 8)
715     TEST_TYPE_ALIGN  (HARDWAREINPUT, 4)
716     TEST_FIELD_SIZE  (HARDWAREINPUT, uMsg, 4)
717     TEST_FIELD_ALIGN (HARDWAREINPUT, uMsg, 4)
718     TEST_FIELD_OFFSET(HARDWAREINPUT, uMsg, 0)
719     TEST_FIELD_SIZE  (HARDWAREINPUT, wParamL, 2)
720     TEST_FIELD_ALIGN (HARDWAREINPUT, wParamL, 2)
721     TEST_FIELD_OFFSET(HARDWAREINPUT, wParamL, 4)
722     TEST_FIELD_SIZE  (HARDWAREINPUT, wParamH, 2)
723     TEST_FIELD_ALIGN (HARDWAREINPUT, wParamH, 2)
724     TEST_FIELD_OFFSET(HARDWAREINPUT, wParamH, 6)
725 }
726 
727 static void test_pack_HDEVNOTIFY(void)
728 {
729     /* HDEVNOTIFY */
730     TEST_TYPE_SIZE   (HDEVNOTIFY, 8)
731     TEST_TYPE_ALIGN  (HDEVNOTIFY, 8)
732 }
733 
734 static void test_pack_HDWP(void)
735 {
736     /* HDWP */
737     TEST_TYPE_SIZE   (HDWP, 8)
738     TEST_TYPE_ALIGN  (HDWP, 8)
739 }
740 
741 static void test_pack_HELPINFO(void)
742 {
743     /* HELPINFO */
744     TEST_TYPE_SIZE   (HELPINFO, 40)
745     TEST_TYPE_ALIGN  (HELPINFO, 8)
746     TEST_FIELD_SIZE  (HELPINFO, cbSize, 4)
747     TEST_FIELD_ALIGN (HELPINFO, cbSize, 4)
748     TEST_FIELD_OFFSET(HELPINFO, cbSize, 0)
749     TEST_FIELD_SIZE  (HELPINFO, iContextType, 4)
750     TEST_FIELD_ALIGN (HELPINFO, iContextType, 4)
751     TEST_FIELD_OFFSET(HELPINFO, iContextType, 4)
752     TEST_FIELD_SIZE  (HELPINFO, iCtrlId, 4)
753     TEST_FIELD_ALIGN (HELPINFO, iCtrlId, 4)
754     TEST_FIELD_OFFSET(HELPINFO, iCtrlId, 8)
755     TEST_FIELD_SIZE  (HELPINFO, hItemHandle, 8)
756     TEST_FIELD_ALIGN (HELPINFO, hItemHandle, 8)
757     TEST_FIELD_OFFSET(HELPINFO, hItemHandle, 16)
758     TEST_FIELD_SIZE  (HELPINFO, dwContextId, 8)
759     TEST_FIELD_ALIGN (HELPINFO, dwContextId, 8)
760     TEST_FIELD_OFFSET(HELPINFO, dwContextId, 24)
761     TEST_FIELD_SIZE  (HELPINFO, MousePos, 8)
762     TEST_FIELD_ALIGN (HELPINFO, MousePos, 4)
763     TEST_FIELD_OFFSET(HELPINFO, MousePos, 32)
764 }
765 
766 static void test_pack_HELPWININFOA(void)
767 {
768     /* HELPWININFOA */
769     TEST_TYPE_SIZE   (HELPWININFOA, 28)
770     TEST_TYPE_ALIGN  (HELPWININFOA, 4)
771     TEST_FIELD_SIZE  (HELPWININFOA, wStructSize, 4)
772     TEST_FIELD_ALIGN (HELPWININFOA, wStructSize, 4)
773     TEST_FIELD_OFFSET(HELPWININFOA, wStructSize, 0)
774     TEST_FIELD_SIZE  (HELPWININFOA, x, 4)
775     TEST_FIELD_ALIGN (HELPWININFOA, x, 4)
776     TEST_FIELD_OFFSET(HELPWININFOA, x, 4)
777     TEST_FIELD_SIZE  (HELPWININFOA, y, 4)
778     TEST_FIELD_ALIGN (HELPWININFOA, y, 4)
779     TEST_FIELD_OFFSET(HELPWININFOA, y, 8)
780     TEST_FIELD_SIZE  (HELPWININFOA, dx, 4)
781     TEST_FIELD_ALIGN (HELPWININFOA, dx, 4)
782     TEST_FIELD_OFFSET(HELPWININFOA, dx, 12)
783     TEST_FIELD_SIZE  (HELPWININFOA, dy, 4)
784     TEST_FIELD_ALIGN (HELPWININFOA, dy, 4)
785     TEST_FIELD_OFFSET(HELPWININFOA, dy, 16)
786     TEST_FIELD_SIZE  (HELPWININFOA, wMax, 4)
787     TEST_FIELD_ALIGN (HELPWININFOA, wMax, 4)
788     TEST_FIELD_OFFSET(HELPWININFOA, wMax, 20)
789     TEST_FIELD_SIZE  (HELPWININFOA, rgchMember, 2)
790     TEST_FIELD_ALIGN (HELPWININFOA, rgchMember, 1)
791     TEST_FIELD_OFFSET(HELPWININFOA, rgchMember, 24)
792 }
793 
794 static void test_pack_HELPWININFOW(void)
795 {
796     /* HELPWININFOW */
797     TEST_TYPE_SIZE   (HELPWININFOW, 28)
798     TEST_TYPE_ALIGN  (HELPWININFOW, 4)
799     TEST_FIELD_SIZE  (HELPWININFOW, wStructSize, 4)
800     TEST_FIELD_ALIGN (HELPWININFOW, wStructSize, 4)
801     TEST_FIELD_OFFSET(HELPWININFOW, wStructSize, 0)
802     TEST_FIELD_SIZE  (HELPWININFOW, x, 4)
803     TEST_FIELD_ALIGN (HELPWININFOW, x, 4)
804     TEST_FIELD_OFFSET(HELPWININFOW, x, 4)
805     TEST_FIELD_SIZE  (HELPWININFOW, y, 4)
806     TEST_FIELD_ALIGN (HELPWININFOW, y, 4)
807     TEST_FIELD_OFFSET(HELPWININFOW, y, 8)
808     TEST_FIELD_SIZE  (HELPWININFOW, dx, 4)
809     TEST_FIELD_ALIGN (HELPWININFOW, dx, 4)
810     TEST_FIELD_OFFSET(HELPWININFOW, dx, 12)
811     TEST_FIELD_SIZE  (HELPWININFOW, dy, 4)
812     TEST_FIELD_ALIGN (HELPWININFOW, dy, 4)
813     TEST_FIELD_OFFSET(HELPWININFOW, dy, 16)
814     TEST_FIELD_SIZE  (HELPWININFOW, wMax, 4)
815     TEST_FIELD_ALIGN (HELPWININFOW, wMax, 4)
816     TEST_FIELD_OFFSET(HELPWININFOW, wMax, 20)
817     TEST_FIELD_SIZE  (HELPWININFOW, rgchMember, 4)
818     TEST_FIELD_ALIGN (HELPWININFOW, rgchMember, 2)
819     TEST_FIELD_OFFSET(HELPWININFOW, rgchMember, 24)
820 }
821 
822 static void test_pack_HIGHCONTRASTA(void)
823 {
824     /* HIGHCONTRASTA */
825     TEST_TYPE_SIZE   (HIGHCONTRASTA, 16)
826     TEST_TYPE_ALIGN  (HIGHCONTRASTA, 8)
827     TEST_FIELD_SIZE  (HIGHCONTRASTA, cbSize, 4)
828     TEST_FIELD_ALIGN (HIGHCONTRASTA, cbSize, 4)
829     TEST_FIELD_OFFSET(HIGHCONTRASTA, cbSize, 0)
830     TEST_FIELD_SIZE  (HIGHCONTRASTA, dwFlags, 4)
831     TEST_FIELD_ALIGN (HIGHCONTRASTA, dwFlags, 4)
832     TEST_FIELD_OFFSET(HIGHCONTRASTA, dwFlags, 4)
833     TEST_FIELD_SIZE  (HIGHCONTRASTA, lpszDefaultScheme, 8)
834     TEST_FIELD_ALIGN (HIGHCONTRASTA, lpszDefaultScheme, 8)
835     TEST_FIELD_OFFSET(HIGHCONTRASTA, lpszDefaultScheme, 8)
836 }
837 
838 static void test_pack_HIGHCONTRASTW(void)
839 {
840     /* HIGHCONTRASTW */
841     TEST_TYPE_SIZE   (HIGHCONTRASTW, 16)
842     TEST_TYPE_ALIGN  (HIGHCONTRASTW, 8)
843     TEST_FIELD_SIZE  (HIGHCONTRASTW, cbSize, 4)
844     TEST_FIELD_ALIGN (HIGHCONTRASTW, cbSize, 4)
845     TEST_FIELD_OFFSET(HIGHCONTRASTW, cbSize, 0)
846     TEST_FIELD_SIZE  (HIGHCONTRASTW, dwFlags, 4)
847     TEST_FIELD_ALIGN (HIGHCONTRASTW, dwFlags, 4)
848     TEST_FIELD_OFFSET(HIGHCONTRASTW, dwFlags, 4)
849     TEST_FIELD_SIZE  (HIGHCONTRASTW, lpszDefaultScheme, 8)
850     TEST_FIELD_ALIGN (HIGHCONTRASTW, lpszDefaultScheme, 8)
851     TEST_FIELD_OFFSET(HIGHCONTRASTW, lpszDefaultScheme, 8)
852 }
853 
854 static void test_pack_HOOKPROC(void)
855 {
856     /* HOOKPROC */
857     TEST_TYPE_SIZE   (HOOKPROC, 8)
858     TEST_TYPE_ALIGN  (HOOKPROC, 8)
859 }
860 
861 static void test_pack_ICONINFO(void)
862 {
863     /* ICONINFO */
864     TEST_TYPE_SIZE   (ICONINFO, 32)
865     TEST_TYPE_ALIGN  (ICONINFO, 8)
866     TEST_FIELD_SIZE  (ICONINFO, fIcon, 4)
867     TEST_FIELD_ALIGN (ICONINFO, fIcon, 4)
868     TEST_FIELD_OFFSET(ICONINFO, fIcon, 0)
869     TEST_FIELD_SIZE  (ICONINFO, xHotspot, 4)
870     TEST_FIELD_ALIGN (ICONINFO, xHotspot, 4)
871     TEST_FIELD_OFFSET(ICONINFO, xHotspot, 4)
872     TEST_FIELD_SIZE  (ICONINFO, yHotspot, 4)
873     TEST_FIELD_ALIGN (ICONINFO, yHotspot, 4)
874     TEST_FIELD_OFFSET(ICONINFO, yHotspot, 8)
875     TEST_FIELD_SIZE  (ICONINFO, hbmMask, 8)
876     TEST_FIELD_ALIGN (ICONINFO, hbmMask, 8)
877     TEST_FIELD_OFFSET(ICONINFO, hbmMask, 16)
878     TEST_FIELD_SIZE  (ICONINFO, hbmColor, 8)
879     TEST_FIELD_ALIGN (ICONINFO, hbmColor, 8)
880     TEST_FIELD_OFFSET(ICONINFO, hbmColor, 24)
881 }
882 
883 static void test_pack_ICONMETRICSA(void)
884 {
885     /* ICONMETRICSA */
886     TEST_TYPE_SIZE   (ICONMETRICSA, 76)
887     TEST_TYPE_ALIGN  (ICONMETRICSA, 4)
888     TEST_FIELD_SIZE  (ICONMETRICSA, cbSize, 4)
889     TEST_FIELD_ALIGN (ICONMETRICSA, cbSize, 4)
890     TEST_FIELD_OFFSET(ICONMETRICSA, cbSize, 0)
891     TEST_FIELD_SIZE  (ICONMETRICSA, iHorzSpacing, 4)
892     TEST_FIELD_ALIGN (ICONMETRICSA, iHorzSpacing, 4)
893     TEST_FIELD_OFFSET(ICONMETRICSA, iHorzSpacing, 4)
894     TEST_FIELD_SIZE  (ICONMETRICSA, iVertSpacing, 4)
895     TEST_FIELD_ALIGN (ICONMETRICSA, iVertSpacing, 4)
896     TEST_FIELD_OFFSET(ICONMETRICSA, iVertSpacing, 8)
897     TEST_FIELD_SIZE  (ICONMETRICSA, iTitleWrap, 4)
898     TEST_FIELD_ALIGN (ICONMETRICSA, iTitleWrap, 4)
899     TEST_FIELD_OFFSET(ICONMETRICSA, iTitleWrap, 12)
900     TEST_FIELD_SIZE  (ICONMETRICSA, lfFont, 60)
901     TEST_FIELD_ALIGN (ICONMETRICSA, lfFont, 4)
902     TEST_FIELD_OFFSET(ICONMETRICSA, lfFont, 16)
903 }
904 
905 static void test_pack_ICONMETRICSW(void)
906 {
907     /* ICONMETRICSW */
908     TEST_TYPE_SIZE   (ICONMETRICSW, 108)
909     TEST_TYPE_ALIGN  (ICONMETRICSW, 4)
910     TEST_FIELD_SIZE  (ICONMETRICSW, cbSize, 4)
911     TEST_FIELD_ALIGN (ICONMETRICSW, cbSize, 4)
912     TEST_FIELD_OFFSET(ICONMETRICSW, cbSize, 0)
913     TEST_FIELD_SIZE  (ICONMETRICSW, iHorzSpacing, 4)
914     TEST_FIELD_ALIGN (ICONMETRICSW, iHorzSpacing, 4)
915     TEST_FIELD_OFFSET(ICONMETRICSW, iHorzSpacing, 4)
916     TEST_FIELD_SIZE  (ICONMETRICSW, iVertSpacing, 4)
917     TEST_FIELD_ALIGN (ICONMETRICSW, iVertSpacing, 4)
918     TEST_FIELD_OFFSET(ICONMETRICSW, iVertSpacing, 8)
919     TEST_FIELD_SIZE  (ICONMETRICSW, iTitleWrap, 4)
920     TEST_FIELD_ALIGN (ICONMETRICSW, iTitleWrap, 4)
921     TEST_FIELD_OFFSET(ICONMETRICSW, iTitleWrap, 12)
922     TEST_FIELD_SIZE  (ICONMETRICSW, lfFont, 92)
923     TEST_FIELD_ALIGN (ICONMETRICSW, lfFont, 4)
924     TEST_FIELD_OFFSET(ICONMETRICSW, lfFont, 16)
925 }
926 
927 static void test_pack_INPUT(void)
928 {
929     /* INPUT */
930     TEST_FIELD_SIZE  (INPUT, type, 4)
931     TEST_FIELD_ALIGN (INPUT, type, 4)
932     TEST_FIELD_OFFSET(INPUT, type, 0)
933 }
934 
935 static void test_pack_KBDLLHOOKSTRUCT(void)
936 {
937     /* KBDLLHOOKSTRUCT */
938     TEST_TYPE_SIZE   (KBDLLHOOKSTRUCT, 24)
939     TEST_TYPE_ALIGN  (KBDLLHOOKSTRUCT, 8)
940     TEST_FIELD_SIZE  (KBDLLHOOKSTRUCT, vkCode, 4)
941     TEST_FIELD_ALIGN (KBDLLHOOKSTRUCT, vkCode, 4)
942     TEST_FIELD_OFFSET(KBDLLHOOKSTRUCT, vkCode, 0)
943     TEST_FIELD_SIZE  (KBDLLHOOKSTRUCT, scanCode, 4)
944     TEST_FIELD_ALIGN (KBDLLHOOKSTRUCT, scanCode, 4)
945     TEST_FIELD_OFFSET(KBDLLHOOKSTRUCT, scanCode, 4)
946     TEST_FIELD_SIZE  (KBDLLHOOKSTRUCT, flags, 4)
947     TEST_FIELD_ALIGN (KBDLLHOOKSTRUCT, flags, 4)
948     TEST_FIELD_OFFSET(KBDLLHOOKSTRUCT, flags, 8)
949     TEST_FIELD_SIZE  (KBDLLHOOKSTRUCT, time, 4)
950     TEST_FIELD_ALIGN (KBDLLHOOKSTRUCT, time, 4)
951     TEST_FIELD_OFFSET(KBDLLHOOKSTRUCT, time, 12)
952     TEST_FIELD_SIZE  (KBDLLHOOKSTRUCT, dwExtraInfo, 8)
953     TEST_FIELD_ALIGN (KBDLLHOOKSTRUCT, dwExtraInfo, 8)
954     TEST_FIELD_OFFSET(KBDLLHOOKSTRUCT, dwExtraInfo, 16)
955 }
956 
957 static void test_pack_KEYBDINPUT(void)
958 {
959     /* KEYBDINPUT */
960     TEST_TYPE_SIZE   (KEYBDINPUT, 24)
961     TEST_TYPE_ALIGN  (KEYBDINPUT, 8)
962     TEST_FIELD_SIZE  (KEYBDINPUT, wVk, 2)
963     TEST_FIELD_ALIGN (KEYBDINPUT, wVk, 2)
964     TEST_FIELD_OFFSET(KEYBDINPUT, wVk, 0)
965     TEST_FIELD_SIZE  (KEYBDINPUT, wScan, 2)
966     TEST_FIELD_ALIGN (KEYBDINPUT, wScan, 2)
967     TEST_FIELD_OFFSET(KEYBDINPUT, wScan, 2)
968     TEST_FIELD_SIZE  (KEYBDINPUT, dwFlags, 4)
969     TEST_FIELD_ALIGN (KEYBDINPUT, dwFlags, 4)
970     TEST_FIELD_OFFSET(KEYBDINPUT, dwFlags, 4)
971     TEST_FIELD_SIZE  (KEYBDINPUT, time, 4)
972     TEST_FIELD_ALIGN (KEYBDINPUT, time, 4)
973     TEST_FIELD_OFFSET(KEYBDINPUT, time, 8)
974     TEST_FIELD_SIZE  (KEYBDINPUT, dwExtraInfo, 8)
975     TEST_FIELD_ALIGN (KEYBDINPUT, dwExtraInfo, 8)
976     TEST_FIELD_OFFSET(KEYBDINPUT, dwExtraInfo, 16)
977 }
978 
979 static void test_pack_LPACCESSTIMEOUT(void)
980 {
981     /* LPACCESSTIMEOUT */
982     TEST_TYPE_SIZE   (LPACCESSTIMEOUT, 8)
983     TEST_TYPE_ALIGN  (LPACCESSTIMEOUT, 8)
984     TEST_TARGET_SIZE (LPACCESSTIMEOUT, 12)
985     TEST_TARGET_ALIGN(LPACCESSTIMEOUT, 4)
986 }
987 
988 static void test_pack_LPANIMATIONINFO(void)
989 {
990     /* LPANIMATIONINFO */
991     TEST_TYPE_SIZE   (LPANIMATIONINFO, 8)
992     TEST_TYPE_ALIGN  (LPANIMATIONINFO, 8)
993     TEST_TARGET_SIZE (LPANIMATIONINFO, 8)
994     TEST_TARGET_ALIGN(LPANIMATIONINFO, 4)
995 }
996 
997 static void test_pack_LPCBTACTIVATESTRUCT(void)
998 {
999     /* LPCBTACTIVATESTRUCT */
1000     TEST_TYPE_SIZE   (LPCBTACTIVATESTRUCT, 8)
1001     TEST_TYPE_ALIGN  (LPCBTACTIVATESTRUCT, 8)
1002     TEST_TARGET_SIZE (LPCBTACTIVATESTRUCT, 16)
1003     TEST_TARGET_ALIGN(LPCBTACTIVATESTRUCT, 8)
1004 }
1005 
1006 static void test_pack_LPCBT_CREATEWNDA(void)
1007 {
1008     /* LPCBT_CREATEWNDA */
1009     TEST_TYPE_SIZE   (LPCBT_CREATEWNDA, 8)
1010     TEST_TYPE_ALIGN  (LPCBT_CREATEWNDA, 8)
1011     TEST_TARGET_SIZE (LPCBT_CREATEWNDA, 16)
1012     TEST_TARGET_ALIGN(LPCBT_CREATEWNDA, 8)
1013 }
1014 
1015 static void test_pack_LPCBT_CREATEWNDW(void)
1016 {
1017     /* LPCBT_CREATEWNDW */
1018     TEST_TYPE_SIZE   (LPCBT_CREATEWNDW, 8)
1019     TEST_TYPE_ALIGN  (LPCBT_CREATEWNDW, 8)
1020     TEST_TARGET_SIZE (LPCBT_CREATEWNDW, 16)
1021     TEST_TARGET_ALIGN(LPCBT_CREATEWNDW, 8)
1022 }
1023 
1024 static void test_pack_LPCDLGTEMPLATEA(void)
1025 {
1026     /* LPCDLGTEMPLATEA */
1027     TEST_TYPE_SIZE   (LPCDLGTEMPLATEA, 8)
1028     TEST_TYPE_ALIGN  (LPCDLGTEMPLATEA, 8)
1029     TEST_TARGET_SIZE (LPCDLGTEMPLATEA, 18)
1030     TEST_TARGET_ALIGN(LPCDLGTEMPLATEA, 2)
1031 }
1032 
1033 static void test_pack_LPCDLGTEMPLATEW(void)
1034 {
1035     /* LPCDLGTEMPLATEW */
1036     TEST_TYPE_SIZE   (LPCDLGTEMPLATEW, 8)
1037     TEST_TYPE_ALIGN  (LPCDLGTEMPLATEW, 8)
1038     TEST_TARGET_SIZE (LPCDLGTEMPLATEW, 18)
1039     TEST_TARGET_ALIGN(LPCDLGTEMPLATEW, 2)
1040 }
1041 
1042 static void test_pack_LPCLIENTCREATESTRUCT(void)
1043 {
1044     /* LPCLIENTCREATESTRUCT */
1045     TEST_TYPE_SIZE   (LPCLIENTCREATESTRUCT, 8)
1046     TEST_TYPE_ALIGN  (LPCLIENTCREATESTRUCT, 8)
1047     TEST_TARGET_SIZE (LPCLIENTCREATESTRUCT, 16)
1048     TEST_TARGET_ALIGN(LPCLIENTCREATESTRUCT, 8)
1049 }
1050 
1051 static void test_pack_LPCMENUINFO(void)
1052 {
1053     /* LPCMENUINFO */
1054     TEST_TYPE_SIZE   (LPCMENUINFO, 8)
1055     TEST_TYPE_ALIGN  (LPCMENUINFO, 8)
1056     TEST_TARGET_SIZE (LPCMENUINFO, 40)
1057     TEST_TARGET_ALIGN(LPCMENUINFO, 8)
1058 }
1059 
1060 static void test_pack_LPCMENUITEMINFOA(void)
1061 {
1062     /* LPCMENUITEMINFOA */
1063     TEST_TYPE_SIZE   (LPCMENUITEMINFOA, 8)
1064     TEST_TYPE_ALIGN  (LPCMENUITEMINFOA, 8)
1065     TEST_TARGET_SIZE (LPCMENUITEMINFOA, 80)
1066     TEST_TARGET_ALIGN(LPCMENUITEMINFOA, 8)
1067 }
1068 
1069 static void test_pack_LPCMENUITEMINFOW(void)
1070 {
1071     /* LPCMENUITEMINFOW */
1072     TEST_TYPE_SIZE   (LPCMENUITEMINFOW, 8)
1073     TEST_TYPE_ALIGN  (LPCMENUITEMINFOW, 8)
1074     TEST_TARGET_SIZE (LPCMENUITEMINFOW, 80)
1075     TEST_TARGET_ALIGN(LPCMENUITEMINFOW, 8)
1076 }
1077 
1078 static void test_pack_LPCOMBOBOXINFO(void)
1079 {
1080     /* LPCOMBOBOXINFO */
1081     TEST_TYPE_SIZE   (LPCOMBOBOXINFO, 8)
1082     TEST_TYPE_ALIGN  (LPCOMBOBOXINFO, 8)
1083     TEST_TARGET_SIZE (LPCOMBOBOXINFO, 64)
1084     TEST_TARGET_ALIGN(LPCOMBOBOXINFO, 8)
1085 }
1086 
1087 static void test_pack_LPCOMPAREITEMSTRUCT(void)
1088 {
1089     /* LPCOMPAREITEMSTRUCT */
1090     TEST_TYPE_SIZE   (LPCOMPAREITEMSTRUCT, 8)
1091     TEST_TYPE_ALIGN  (LPCOMPAREITEMSTRUCT, 8)
1092     TEST_TARGET_SIZE (LPCOMPAREITEMSTRUCT, 56)
1093     TEST_TARGET_ALIGN(LPCOMPAREITEMSTRUCT, 8)
1094 }
1095 
1096 static void test_pack_LPCREATESTRUCTA(void)
1097 {
1098     /* LPCREATESTRUCTA */
1099     TEST_TYPE_SIZE   (LPCREATESTRUCTA, 8)
1100     TEST_TYPE_ALIGN  (LPCREATESTRUCTA, 8)
1101     TEST_TARGET_SIZE (LPCREATESTRUCTA, 80)
1102     TEST_TARGET_ALIGN(LPCREATESTRUCTA, 8)
1103 }
1104 
1105 static void test_pack_LPCREATESTRUCTW(void)
1106 {
1107     /* LPCREATESTRUCTW */
1108     TEST_TYPE_SIZE   (LPCREATESTRUCTW, 8)
1109     TEST_TYPE_ALIGN  (LPCREATESTRUCTW, 8)
1110     TEST_TARGET_SIZE (LPCREATESTRUCTW, 80)
1111     TEST_TARGET_ALIGN(LPCREATESTRUCTW, 8)
1112 }
1113 
1114 static void test_pack_LPCSCROLLINFO(void)
1115 {
1116     /* LPCSCROLLINFO */
1117     TEST_TYPE_SIZE   (LPCSCROLLINFO, 8)
1118     TEST_TYPE_ALIGN  (LPCSCROLLINFO, 8)
1119     TEST_TARGET_SIZE (LPCSCROLLINFO, 28)
1120     TEST_TARGET_ALIGN(LPCSCROLLINFO, 4)
1121 }
1122 
1123 static void test_pack_LPCURSORINFO(void)
1124 {
1125     /* LPCURSORINFO */
1126     TEST_TYPE_SIZE   (LPCURSORINFO, 8)
1127     TEST_TYPE_ALIGN  (LPCURSORINFO, 8)
1128     TEST_TARGET_SIZE (LPCURSORINFO, 24)
1129     TEST_TARGET_ALIGN(LPCURSORINFO, 8)
1130 }
1131 
1132 static void test_pack_LPCWPRETSTRUCT(void)
1133 {
1134     /* LPCWPRETSTRUCT */
1135     TEST_TYPE_SIZE   (LPCWPRETSTRUCT, 8)
1136     TEST_TYPE_ALIGN  (LPCWPRETSTRUCT, 8)
1137     TEST_TARGET_SIZE (LPCWPRETSTRUCT, 40)
1138     TEST_TARGET_ALIGN(LPCWPRETSTRUCT, 8)
1139 }
1140 
1141 static void test_pack_LPCWPSTRUCT(void)
1142 {
1143     /* LPCWPSTRUCT */
1144     TEST_TYPE_SIZE   (LPCWPSTRUCT, 8)
1145     TEST_TYPE_ALIGN  (LPCWPSTRUCT, 8)
1146     TEST_TARGET_SIZE (LPCWPSTRUCT, 32)
1147     TEST_TARGET_ALIGN(LPCWPSTRUCT, 8)
1148 }
1149 
1150 static void test_pack_LPDEBUGHOOKINFO(void)
1151 {
1152     /* LPDEBUGHOOKINFO */
1153     TEST_TYPE_SIZE   (LPDEBUGHOOKINFO, 8)
1154     TEST_TYPE_ALIGN  (LPDEBUGHOOKINFO, 8)
1155     TEST_TARGET_SIZE (LPDEBUGHOOKINFO, 32)
1156     TEST_TARGET_ALIGN(LPDEBUGHOOKINFO, 8)
1157 }
1158 
1159 static void test_pack_LPDELETEITEMSTRUCT(void)
1160 {
1161     /* LPDELETEITEMSTRUCT */
1162     TEST_TYPE_SIZE   (LPDELETEITEMSTRUCT, 8)
1163     TEST_TYPE_ALIGN  (LPDELETEITEMSTRUCT, 8)
1164     TEST_TARGET_SIZE (LPDELETEITEMSTRUCT, 32)
1165     TEST_TARGET_ALIGN(LPDELETEITEMSTRUCT, 8)
1166 }
1167 
1168 static void test_pack_LPDLGITEMTEMPLATEA(void)
1169 {
1170     /* LPDLGITEMTEMPLATEA */
1171     TEST_TYPE_SIZE   (LPDLGITEMTEMPLATEA, 8)
1172     TEST_TYPE_ALIGN  (LPDLGITEMTEMPLATEA, 8)
1173     TEST_TARGET_SIZE (LPDLGITEMTEMPLATEA, 18)
1174     TEST_TARGET_ALIGN(LPDLGITEMTEMPLATEA, 2)
1175 }
1176 
1177 static void test_pack_LPDLGITEMTEMPLATEW(void)
1178 {
1179     /* LPDLGITEMTEMPLATEW */
1180     TEST_TYPE_SIZE   (LPDLGITEMTEMPLATEW, 8)
1181     TEST_TYPE_ALIGN  (LPDLGITEMTEMPLATEW, 8)
1182     TEST_TARGET_SIZE (LPDLGITEMTEMPLATEW, 18)
1183     TEST_TARGET_ALIGN(LPDLGITEMTEMPLATEW, 2)
1184 }
1185 
1186 static void test_pack_LPDLGTEMPLATEA(void)
1187 {
1188     /* LPDLGTEMPLATEA */
1189     TEST_TYPE_SIZE   (LPDLGTEMPLATEA, 8)
1190     TEST_TYPE_ALIGN  (LPDLGTEMPLATEA, 8)
1191     TEST_TARGET_SIZE (LPDLGTEMPLATEA, 18)
1192     TEST_TARGET_ALIGN(LPDLGTEMPLATEA, 2)
1193 }
1194 
1195 static void test_pack_LPDLGTEMPLATEW(void)
1196 {
1197     /* LPDLGTEMPLATEW */
1198     TEST_TYPE_SIZE   (LPDLGTEMPLATEW, 8)
1199     TEST_TYPE_ALIGN  (LPDLGTEMPLATEW, 8)
1200     TEST_TARGET_SIZE (LPDLGTEMPLATEW, 18)
1201     TEST_TARGET_ALIGN(LPDLGTEMPLATEW, 2)
1202 }
1203 
1204 static void test_pack_LPDRAWITEMSTRUCT(void)
1205 {
1206     /* LPDRAWITEMSTRUCT */
1207     TEST_TYPE_SIZE   (LPDRAWITEMSTRUCT, 8)
1208     TEST_TYPE_ALIGN  (LPDRAWITEMSTRUCT, 8)
1209     TEST_TARGET_SIZE (LPDRAWITEMSTRUCT, 64)
1210     TEST_TARGET_ALIGN(LPDRAWITEMSTRUCT, 8)
1211 }
1212 
1213 static void test_pack_LPDRAWTEXTPARAMS(void)
1214 {
1215     /* LPDRAWTEXTPARAMS */
1216     TEST_TYPE_SIZE   (LPDRAWTEXTPARAMS, 8)
1217     TEST_TYPE_ALIGN  (LPDRAWTEXTPARAMS, 8)
1218     TEST_TARGET_SIZE (LPDRAWTEXTPARAMS, 20)
1219     TEST_TARGET_ALIGN(LPDRAWTEXTPARAMS, 4)
1220 }
1221 
1222 static void test_pack_LPEVENTMSG(void)
1223 {
1224     /* LPEVENTMSG */
1225     TEST_TYPE_SIZE   (LPEVENTMSG, 8)
1226     TEST_TYPE_ALIGN  (LPEVENTMSG, 8)
1227     TEST_TARGET_SIZE (LPEVENTMSG, 24)
1228     TEST_TARGET_ALIGN(LPEVENTMSG, 8)
1229 }
1230 
1231 static void test_pack_LPFILTERKEYS(void)
1232 {
1233     /* LPFILTERKEYS */
1234     TEST_TYPE_SIZE   (LPFILTERKEYS, 8)
1235     TEST_TYPE_ALIGN  (LPFILTERKEYS, 8)
1236     TEST_TARGET_SIZE (LPFILTERKEYS, 24)
1237     TEST_TARGET_ALIGN(LPFILTERKEYS, 4)
1238 }
1239 
1240 static void test_pack_LPGUITHREADINFO(void)
1241 {
1242     /* LPGUITHREADINFO */
1243     TEST_TYPE_SIZE   (LPGUITHREADINFO, 8)
1244     TEST_TYPE_ALIGN  (LPGUITHREADINFO, 8)
1245     TEST_TARGET_SIZE (LPGUITHREADINFO, 72)
1246     TEST_TARGET_ALIGN(LPGUITHREADINFO, 8)
1247 }
1248 
1249 static void test_pack_LPHARDWAREHOOKSTRUCT(void)
1250 {
1251     /* LPHARDWAREHOOKSTRUCT */
1252     TEST_TYPE_SIZE   (LPHARDWAREHOOKSTRUCT, 8)
1253     TEST_TYPE_ALIGN  (LPHARDWAREHOOKSTRUCT, 8)
1254     TEST_TARGET_SIZE (LPHARDWAREHOOKSTRUCT, 32)
1255     TEST_TARGET_ALIGN(LPHARDWAREHOOKSTRUCT, 8)
1256 }
1257 
1258 static void test_pack_LPHARDWAREINPUT(void)
1259 {
1260     /* LPHARDWAREINPUT */
1261     TEST_TYPE_SIZE   (LPHARDWAREINPUT, 8)
1262     TEST_TYPE_ALIGN  (LPHARDWAREINPUT, 8)
1263     TEST_TARGET_SIZE (LPHARDWAREINPUT, 8)
1264     TEST_TARGET_ALIGN(LPHARDWAREINPUT, 4)
1265 }
1266 
1267 static void test_pack_LPHELPINFO(void)
1268 {
1269     /* LPHELPINFO */
1270     TEST_TYPE_SIZE   (LPHELPINFO, 8)
1271     TEST_TYPE_ALIGN  (LPHELPINFO, 8)
1272     TEST_TARGET_SIZE (LPHELPINFO, 40)
1273     TEST_TARGET_ALIGN(LPHELPINFO, 8)
1274 }
1275 
1276 static void test_pack_LPHELPWININFOA(void)
1277 {
1278     /* LPHELPWININFOA */
1279     TEST_TYPE_SIZE   (LPHELPWININFOA, 8)
1280     TEST_TYPE_ALIGN  (LPHELPWININFOA, 8)
1281     TEST_TARGET_SIZE (LPHELPWININFOA, 28)
1282     TEST_TARGET_ALIGN(LPHELPWININFOA, 4)
1283 }
1284 
1285 static void test_pack_LPHELPWININFOW(void)
1286 {
1287     /* LPHELPWININFOW */
1288     TEST_TYPE_SIZE   (LPHELPWININFOW, 8)
1289     TEST_TYPE_ALIGN  (LPHELPWININFOW, 8)
1290     TEST_TARGET_SIZE (LPHELPWININFOW, 28)
1291     TEST_TARGET_ALIGN(LPHELPWININFOW, 4)
1292 }
1293 
1294 static void test_pack_LPHIGHCONTRASTA(void)
1295 {
1296     /* LPHIGHCONTRASTA */
1297     TEST_TYPE_SIZE   (LPHIGHCONTRASTA, 8)
1298     TEST_TYPE_ALIGN  (LPHIGHCONTRASTA, 8)
1299     TEST_TARGET_SIZE (LPHIGHCONTRASTA, 16)
1300     TEST_TARGET_ALIGN(LPHIGHCONTRASTA, 8)
1301 }
1302 
1303 static void test_pack_LPHIGHCONTRASTW(void)
1304 {
1305     /* LPHIGHCONTRASTW */
1306     TEST_TYPE_SIZE   (LPHIGHCONTRASTW, 8)
1307     TEST_TYPE_ALIGN  (LPHIGHCONTRASTW, 8)
1308     TEST_TARGET_SIZE (LPHIGHCONTRASTW, 16)
1309     TEST_TARGET_ALIGN(LPHIGHCONTRASTW, 8)
1310 }
1311 
1312 static void test_pack_LPICONMETRICSA(void)
1313 {
1314     /* LPICONMETRICSA */
1315     TEST_TYPE_SIZE   (LPICONMETRICSA, 8)
1316     TEST_TYPE_ALIGN  (LPICONMETRICSA, 8)
1317     TEST_TARGET_SIZE (LPICONMETRICSA, 76)
1318     TEST_TARGET_ALIGN(LPICONMETRICSA, 4)
1319 }
1320 
1321 static void test_pack_LPICONMETRICSW(void)
1322 {
1323     /* LPICONMETRICSW */
1324     TEST_TYPE_SIZE   (LPICONMETRICSW, 8)
1325     TEST_TYPE_ALIGN  (LPICONMETRICSW, 8)
1326     TEST_TARGET_SIZE (LPICONMETRICSW, 108)
1327     TEST_TARGET_ALIGN(LPICONMETRICSW, 4)
1328 }
1329 
1330 static void test_pack_LPINPUT(void)
1331 {
1332     /* LPINPUT */
1333     TEST_TYPE_SIZE   (LPINPUT, 8)
1334     TEST_TYPE_ALIGN  (LPINPUT, 8)
1335 }
1336 
1337 static void test_pack_LPKBDLLHOOKSTRUCT(void)
1338 {
1339     /* LPKBDLLHOOKSTRUCT */
1340     TEST_TYPE_SIZE   (LPKBDLLHOOKSTRUCT, 8)
1341     TEST_TYPE_ALIGN  (LPKBDLLHOOKSTRUCT, 8)
1342     TEST_TARGET_SIZE (LPKBDLLHOOKSTRUCT, 24)
1343     TEST_TARGET_ALIGN(LPKBDLLHOOKSTRUCT, 8)
1344 }
1345 
1346 static void test_pack_LPKEYBDINPUT(void)
1347 {
1348     /* LPKEYBDINPUT */
1349     TEST_TYPE_SIZE   (LPKEYBDINPUT, 8)
1350     TEST_TYPE_ALIGN  (LPKEYBDINPUT, 8)
1351     TEST_TARGET_SIZE (LPKEYBDINPUT, 24)
1352     TEST_TARGET_ALIGN(LPKEYBDINPUT, 8)
1353 }
1354 
1355 static void test_pack_LPMDICREATESTRUCTA(void)
1356 {
1357     /* LPMDICREATESTRUCTA */
1358     TEST_TYPE_SIZE   (LPMDICREATESTRUCTA, 8)
1359     TEST_TYPE_ALIGN  (LPMDICREATESTRUCTA, 8)
1360     TEST_TARGET_SIZE (LPMDICREATESTRUCTA, 56)
1361     TEST_TARGET_ALIGN(LPMDICREATESTRUCTA, 8)
1362 }
1363 
1364 static void test_pack_LPMDICREATESTRUCTW(void)
1365 {
1366     /* LPMDICREATESTRUCTW */
1367     TEST_TYPE_SIZE   (LPMDICREATESTRUCTW, 8)
1368     TEST_TYPE_ALIGN  (LPMDICREATESTRUCTW, 8)
1369     TEST_TARGET_SIZE (LPMDICREATESTRUCTW, 56)
1370     TEST_TARGET_ALIGN(LPMDICREATESTRUCTW, 8)
1371 }
1372 
1373 static void test_pack_LPMDINEXTMENU(void)
1374 {
1375     /* LPMDINEXTMENU */
1376     TEST_TYPE_SIZE   (LPMDINEXTMENU, 8)
1377     TEST_TYPE_ALIGN  (LPMDINEXTMENU, 8)
1378     TEST_TARGET_SIZE (LPMDINEXTMENU, 24)
1379     TEST_TARGET_ALIGN(LPMDINEXTMENU, 8)
1380 }
1381 
1382 static void test_pack_LPMEASUREITEMSTRUCT(void)
1383 {
1384     /* LPMEASUREITEMSTRUCT */
1385     TEST_TYPE_SIZE   (LPMEASUREITEMSTRUCT, 8)
1386     TEST_TYPE_ALIGN  (LPMEASUREITEMSTRUCT, 8)
1387     TEST_TARGET_SIZE (LPMEASUREITEMSTRUCT, 32)
1388     TEST_TARGET_ALIGN(LPMEASUREITEMSTRUCT, 8)
1389 }
1390 
1391 static void test_pack_LPMENUINFO(void)
1392 {
1393     /* LPMENUINFO */
1394     TEST_TYPE_SIZE   (LPMENUINFO, 8)
1395     TEST_TYPE_ALIGN  (LPMENUINFO, 8)
1396     TEST_TARGET_SIZE (LPMENUINFO, 40)
1397     TEST_TARGET_ALIGN(LPMENUINFO, 8)
1398 }
1399 
1400 static void test_pack_LPMENUITEMINFOA(void)
1401 {
1402     /* LPMENUITEMINFOA */
1403     TEST_TYPE_SIZE   (LPMENUITEMINFOA, 8)
1404     TEST_TYPE_ALIGN  (LPMENUITEMINFOA, 8)
1405     TEST_TARGET_SIZE (LPMENUITEMINFOA, 80)
1406     TEST_TARGET_ALIGN(LPMENUITEMINFOA, 8)
1407 }
1408 
1409 static void test_pack_LPMENUITEMINFOW(void)
1410 {
1411     /* LPMENUITEMINFOW */
1412     TEST_TYPE_SIZE   (LPMENUITEMINFOW, 8)
1413     TEST_TYPE_ALIGN  (LPMENUITEMINFOW, 8)
1414     TEST_TARGET_SIZE (LPMENUITEMINFOW, 80)
1415     TEST_TARGET_ALIGN(LPMENUITEMINFOW, 8)
1416 }
1417 
1418 static void test_pack_LPMINIMIZEDMETRICS(void)
1419 {
1420     /* LPMINIMIZEDMETRICS */
1421     TEST_TYPE_SIZE   (LPMINIMIZEDMETRICS, 8)
1422     TEST_TYPE_ALIGN  (LPMINIMIZEDMETRICS, 8)
1423     TEST_TARGET_SIZE (LPMINIMIZEDMETRICS, 20)
1424     TEST_TARGET_ALIGN(LPMINIMIZEDMETRICS, 4)
1425 }
1426 
1427 static void test_pack_LPMINMAXINFO(void)
1428 {
1429     /* LPMINMAXINFO */
1430     TEST_TYPE_SIZE   (LPMINMAXINFO, 8)
1431     TEST_TYPE_ALIGN  (LPMINMAXINFO, 8)
1432     TEST_TARGET_SIZE (LPMINMAXINFO, 40)
1433     TEST_TARGET_ALIGN(LPMINMAXINFO, 4)
1434 }
1435 
1436 static void test_pack_LPMONITORINFO(void)
1437 {
1438     /* LPMONITORINFO */
1439     TEST_TYPE_SIZE   (LPMONITORINFO, 8)
1440     TEST_TYPE_ALIGN  (LPMONITORINFO, 8)
1441     TEST_TARGET_SIZE (LPMONITORINFO, 40)
1442     TEST_TARGET_ALIGN(LPMONITORINFO, 4)
1443 }
1444 
1445 static void test_pack_LPMONITORINFOEXA(void)
1446 {
1447     /* LPMONITORINFOEXA */
1448     TEST_TYPE_SIZE   (LPMONITORINFOEXA, 8)
1449     TEST_TYPE_ALIGN  (LPMONITORINFOEXA, 8)
1450     TEST_TARGET_SIZE (LPMONITORINFOEXA, 72)
1451     TEST_TARGET_ALIGN(LPMONITORINFOEXA, 4)
1452 }
1453 
1454 static void test_pack_LPMONITORINFOEXW(void)
1455 {
1456     /* LPMONITORINFOEXW */
1457     TEST_TYPE_SIZE   (LPMONITORINFOEXW, 8)
1458     TEST_TYPE_ALIGN  (LPMONITORINFOEXW, 8)
1459     TEST_TARGET_SIZE (LPMONITORINFOEXW, 104)
1460     TEST_TARGET_ALIGN(LPMONITORINFOEXW, 4)
1461 }
1462 
1463 static void test_pack_LPMOUSEHOOKSTRUCT(void)
1464 {
1465     /* LPMOUSEHOOKSTRUCT */
1466     TEST_TYPE_SIZE   (LPMOUSEHOOKSTRUCT, 8)
1467     TEST_TYPE_ALIGN  (LPMOUSEHOOKSTRUCT, 8)
1468     TEST_TARGET_SIZE (LPMOUSEHOOKSTRUCT, 32)
1469     TEST_TARGET_ALIGN(LPMOUSEHOOKSTRUCT, 8)
1470 }
1471 
1472 static void test_pack_LPMOUSEINPUT(void)
1473 {
1474     /* LPMOUSEINPUT */
1475     TEST_TYPE_SIZE   (LPMOUSEINPUT, 8)
1476     TEST_TYPE_ALIGN  (LPMOUSEINPUT, 8)
1477     TEST_TARGET_SIZE (LPMOUSEINPUT, 32)
1478     TEST_TARGET_ALIGN(LPMOUSEINPUT, 8)
1479 }
1480 
1481 static void test_pack_LPMOUSEKEYS(void)
1482 {
1483     /* LPMOUSEKEYS */
1484     TEST_TYPE_SIZE   (LPMOUSEKEYS, 8)
1485     TEST_TYPE_ALIGN  (LPMOUSEKEYS, 8)
1486     TEST_TARGET_SIZE (LPMOUSEKEYS, 28)
1487     TEST_TARGET_ALIGN(LPMOUSEKEYS, 4)
1488 }
1489 
1490 static void test_pack_LPMSG(void)
1491 {
1492     /* LPMSG */
1493     TEST_TYPE_SIZE   (LPMSG, 8)
1494     TEST_TYPE_ALIGN  (LPMSG, 8)
1495     TEST_TARGET_SIZE (LPMSG, 48)
1496     TEST_TARGET_ALIGN(LPMSG, 8)
1497 }
1498 
1499 static void test_pack_LPMSGBOXPARAMSA(void)
1500 {
1501     /* LPMSGBOXPARAMSA */
1502     TEST_TYPE_SIZE   (LPMSGBOXPARAMSA, 8)
1503     TEST_TYPE_ALIGN  (LPMSGBOXPARAMSA, 8)
1504     TEST_TARGET_SIZE (LPMSGBOXPARAMSA, 80)
1505     TEST_TARGET_ALIGN(LPMSGBOXPARAMSA, 8)
1506 }
1507 
1508 static void test_pack_LPMSGBOXPARAMSW(void)
1509 {
1510     /* LPMSGBOXPARAMSW */
1511     TEST_TYPE_SIZE   (LPMSGBOXPARAMSW, 8)
1512     TEST_TYPE_ALIGN  (LPMSGBOXPARAMSW, 8)
1513     TEST_TARGET_SIZE (LPMSGBOXPARAMSW, 80)
1514     TEST_TARGET_ALIGN(LPMSGBOXPARAMSW, 8)
1515 }
1516 
1517 static void test_pack_LPMSLLHOOKSTRUCT(void)
1518 {
1519     /* LPMSLLHOOKSTRUCT */
1520     TEST_TYPE_SIZE   (LPMSLLHOOKSTRUCT, 8)
1521     TEST_TYPE_ALIGN  (LPMSLLHOOKSTRUCT, 8)
1522     TEST_TARGET_SIZE (LPMSLLHOOKSTRUCT, 32)
1523     TEST_TARGET_ALIGN(LPMSLLHOOKSTRUCT, 8)
1524 }
1525 
1526 static void test_pack_LPMULTIKEYHELPA(void)
1527 {
1528     /* LPMULTIKEYHELPA */
1529     TEST_TYPE_SIZE   (LPMULTIKEYHELPA, 8)
1530     TEST_TYPE_ALIGN  (LPMULTIKEYHELPA, 8)
1531     TEST_TARGET_SIZE (LPMULTIKEYHELPA, 8)
1532     TEST_TARGET_ALIGN(LPMULTIKEYHELPA, 4)
1533 }
1534 
1535 static void test_pack_LPMULTIKEYHELPW(void)
1536 {
1537     /* LPMULTIKEYHELPW */
1538     TEST_TYPE_SIZE   (LPMULTIKEYHELPW, 8)
1539     TEST_TYPE_ALIGN  (LPMULTIKEYHELPW, 8)
1540     TEST_TARGET_SIZE (LPMULTIKEYHELPW, 8)
1541     TEST_TARGET_ALIGN(LPMULTIKEYHELPW, 4)
1542 }
1543 
1544 static void test_pack_LPNCCALCSIZE_PARAMS(void)
1545 {
1546     /* LPNCCALCSIZE_PARAMS */
1547     TEST_TYPE_SIZE   (LPNCCALCSIZE_PARAMS, 8)
1548     TEST_TYPE_ALIGN  (LPNCCALCSIZE_PARAMS, 8)
1549     TEST_TARGET_SIZE (LPNCCALCSIZE_PARAMS, 56)
1550     TEST_TARGET_ALIGN(LPNCCALCSIZE_PARAMS, 8)
1551 }
1552 
1553 static void test_pack_LPNMHDR(void)
1554 {
1555     /* LPNMHDR */
1556     TEST_TYPE_SIZE   (LPNMHDR, 8)
1557     TEST_TYPE_ALIGN  (LPNMHDR, 8)
1558     TEST_TARGET_SIZE (LPNMHDR, 24)
1559     TEST_TARGET_ALIGN(LPNMHDR, 8)
1560 }
1561 
1562 static void test_pack_LPNONCLIENTMETRICSA(void)
1563 {
1564     /* LPNONCLIENTMETRICSA */
1565     TEST_TYPE_SIZE   (LPNONCLIENTMETRICSA, 8)
1566     TEST_TYPE_ALIGN  (LPNONCLIENTMETRICSA, 8)
1567     TEST_TARGET_SIZE (LPNONCLIENTMETRICSA, 344)
1568     TEST_TARGET_ALIGN(LPNONCLIENTMETRICSA, 4)
1569 }
1570 
1571 static void test_pack_LPNONCLIENTMETRICSW(void)
1572 {
1573     /* LPNONCLIENTMETRICSW */
1574     TEST_TYPE_SIZE   (LPNONCLIENTMETRICSW, 8)
1575     TEST_TYPE_ALIGN  (LPNONCLIENTMETRICSW, 8)
1576     TEST_TARGET_SIZE (LPNONCLIENTMETRICSW, 504)
1577     TEST_TARGET_ALIGN(LPNONCLIENTMETRICSW, 4)
1578 }
1579 
1580 static void test_pack_LPPAINTSTRUCT(void)
1581 {
1582     /* LPPAINTSTRUCT */
1583     TEST_TYPE_SIZE   (LPPAINTSTRUCT, 8)
1584     TEST_TYPE_ALIGN  (LPPAINTSTRUCT, 8)
1585     TEST_TARGET_SIZE (LPPAINTSTRUCT, 72)
1586     TEST_TARGET_ALIGN(LPPAINTSTRUCT, 8)
1587 }
1588 
1589 static void test_pack_LPSCROLLINFO(void)
1590 {
1591     /* LPSCROLLINFO */
1592     TEST_TYPE_SIZE   (LPSCROLLINFO, 8)
1593     TEST_TYPE_ALIGN  (LPSCROLLINFO, 8)
1594     TEST_TARGET_SIZE (LPSCROLLINFO, 28)
1595     TEST_TARGET_ALIGN(LPSCROLLINFO, 4)
1596 }
1597 
1598 static void test_pack_LPSERIALKEYSA(void)
1599 {
1600     /* LPSERIALKEYSA */
1601     TEST_TYPE_SIZE   (LPSERIALKEYSA, 8)
1602     TEST_TYPE_ALIGN  (LPSERIALKEYSA, 8)
1603     TEST_TARGET_SIZE (LPSERIALKEYSA, 40)
1604     TEST_TARGET_ALIGN(LPSERIALKEYSA, 8)
1605 }
1606 
1607 static void test_pack_LPSERIALKEYSW(void)
1608 {
1609     /* LPSERIALKEYSW */
1610     TEST_TYPE_SIZE   (LPSERIALKEYSW, 8)
1611     TEST_TYPE_ALIGN  (LPSERIALKEYSW, 8)
1612     TEST_TARGET_SIZE (LPSERIALKEYSW, 40)
1613     TEST_TARGET_ALIGN(LPSERIALKEYSW, 8)
1614 }
1615 
1616 static void test_pack_LPSOUNDSENTRYA(void)
1617 {
1618     /* LPSOUNDSENTRYA */
1619     TEST_TYPE_SIZE   (LPSOUNDSENTRYA, 8)
1620     TEST_TYPE_ALIGN  (LPSOUNDSENTRYA, 8)
1621     TEST_TARGET_SIZE (LPSOUNDSENTRYA, 56)
1622     TEST_TARGET_ALIGN(LPSOUNDSENTRYA, 8)
1623 }
1624 
1625 static void test_pack_LPSOUNDSENTRYW(void)
1626 {
1627     /* LPSOUNDSENTRYW */
1628     TEST_TYPE_SIZE   (LPSOUNDSENTRYW, 8)
1629     TEST_TYPE_ALIGN  (LPSOUNDSENTRYW, 8)
1630     TEST_TARGET_SIZE (LPSOUNDSENTRYW, 56)
1631     TEST_TARGET_ALIGN(LPSOUNDSENTRYW, 8)
1632 }
1633 
1634 static void test_pack_LPSTICKYKEYS(void)
1635 {
1636     /* LPSTICKYKEYS */
1637     TEST_TYPE_SIZE   (LPSTICKYKEYS, 8)
1638     TEST_TYPE_ALIGN  (LPSTICKYKEYS, 8)
1639     TEST_TARGET_SIZE (LPSTICKYKEYS, 8)
1640     TEST_TARGET_ALIGN(LPSTICKYKEYS, 4)
1641 }
1642 
1643 static void test_pack_LPSTYLESTRUCT(void)
1644 {
1645     /* LPSTYLESTRUCT */
1646     TEST_TYPE_SIZE   (LPSTYLESTRUCT, 8)
1647     TEST_TYPE_ALIGN  (LPSTYLESTRUCT, 8)
1648     TEST_TARGET_SIZE (LPSTYLESTRUCT, 8)
1649     TEST_TARGET_ALIGN(LPSTYLESTRUCT, 4)
1650 }
1651 
1652 static void test_pack_LPTITLEBARINFO(void)
1653 {
1654     /* LPTITLEBARINFO */
1655     TEST_TYPE_SIZE   (LPTITLEBARINFO, 8)
1656     TEST_TYPE_ALIGN  (LPTITLEBARINFO, 8)
1657     TEST_TARGET_SIZE (LPTITLEBARINFO, 44)
1658     TEST_TARGET_ALIGN(LPTITLEBARINFO, 4)
1659 }
1660 
1661 static void test_pack_LPTOGGLEKEYS(void)
1662 {
1663     /* LPTOGGLEKEYS */
1664     TEST_TYPE_SIZE   (LPTOGGLEKEYS, 8)
1665     TEST_TYPE_ALIGN  (LPTOGGLEKEYS, 8)
1666     TEST_TARGET_SIZE (LPTOGGLEKEYS, 8)
1667     TEST_TARGET_ALIGN(LPTOGGLEKEYS, 4)
1668 }
1669 
1670 static void test_pack_LPTPMPARAMS(void)
1671 {
1672     /* LPTPMPARAMS */
1673     TEST_TYPE_SIZE   (LPTPMPARAMS, 8)
1674     TEST_TYPE_ALIGN  (LPTPMPARAMS, 8)
1675     TEST_TARGET_SIZE (LPTPMPARAMS, 20)
1676     TEST_TARGET_ALIGN(LPTPMPARAMS, 4)
1677 }
1678 
1679 static void test_pack_LPTRACKMOUSEEVENT(void)
1680 {
1681     /* LPTRACKMOUSEEVENT */
1682     TEST_TYPE_SIZE   (LPTRACKMOUSEEVENT, 8)
1683     TEST_TYPE_ALIGN  (LPTRACKMOUSEEVENT, 8)
1684     TEST_TARGET_SIZE (LPTRACKMOUSEEVENT, 24)
1685     TEST_TARGET_ALIGN(LPTRACKMOUSEEVENT, 8)
1686 }
1687 
1688 static void test_pack_LPWINDOWINFO(void)
1689 {
1690     /* LPWINDOWINFO */
1691     TEST_TYPE_SIZE   (LPWINDOWINFO, 8)
1692     TEST_TYPE_ALIGN  (LPWINDOWINFO, 8)
1693     TEST_TARGET_SIZE (LPWINDOWINFO, 60)
1694     TEST_TARGET_ALIGN(LPWINDOWINFO, 4)
1695 }
1696 
1697 static void test_pack_LPWINDOWPLACEMENT(void)
1698 {
1699     /* LPWINDOWPLACEMENT */
1700     TEST_TYPE_SIZE   (LPWINDOWPLACEMENT, 8)
1701     TEST_TYPE_ALIGN  (LPWINDOWPLACEMENT, 8)
1702     TEST_TARGET_SIZE (LPWINDOWPLACEMENT, 44)
1703     TEST_TARGET_ALIGN(LPWINDOWPLACEMENT, 4)
1704 }
1705 
1706 static void test_pack_LPWINDOWPOS(void)
1707 {
1708     /* LPWINDOWPOS */
1709     TEST_TYPE_SIZE   (LPWINDOWPOS, 8)
1710     TEST_TYPE_ALIGN  (LPWINDOWPOS, 8)
1711     TEST_TARGET_SIZE (LPWINDOWPOS, 40)
1712     TEST_TARGET_ALIGN(LPWINDOWPOS, 8)
1713 }
1714 
1715 static void test_pack_LPWNDCLASSA(void)
1716 {
1717     /* LPWNDCLASSA */
1718     TEST_TYPE_SIZE   (LPWNDCLASSA, 8)
1719     TEST_TYPE_ALIGN  (LPWNDCLASSA, 8)
1720     TEST_TARGET_SIZE (LPWNDCLASSA, 72)
1721     TEST_TARGET_ALIGN(LPWNDCLASSA, 8)
1722 }
1723 
1724 static void test_pack_LPWNDCLASSEXA(void)
1725 {
1726     /* LPWNDCLASSEXA */
1727     TEST_TYPE_SIZE   (LPWNDCLASSEXA, 8)
1728     TEST_TYPE_ALIGN  (LPWNDCLASSEXA, 8)
1729     TEST_TARGET_SIZE (LPWNDCLASSEXA, 80)
1730     TEST_TARGET_ALIGN(LPWNDCLASSEXA, 8)
1731 }
1732 
1733 static void test_pack_LPWNDCLASSEXW(void)
1734 {
1735     /* LPWNDCLASSEXW */
1736     TEST_TYPE_SIZE   (LPWNDCLASSEXW, 8)
1737     TEST_TYPE_ALIGN  (LPWNDCLASSEXW, 8)
1738     TEST_TARGET_SIZE (LPWNDCLASSEXW, 80)
1739     TEST_TARGET_ALIGN(LPWNDCLASSEXW, 8)
1740 }
1741 
1742 static void test_pack_LPWNDCLASSW(void)
1743 {
1744     /* LPWNDCLASSW */
1745     TEST_TYPE_SIZE   (LPWNDCLASSW, 8)
1746     TEST_TYPE_ALIGN  (LPWNDCLASSW, 8)
1747     TEST_TARGET_SIZE (LPWNDCLASSW, 72)
1748     TEST_TARGET_ALIGN(LPWNDCLASSW, 8)
1749 }
1750 
1751 static void test_pack_MDICREATESTRUCTA(void)
1752 {
1753     /* MDICREATESTRUCTA */
1754     TEST_TYPE_SIZE   (MDICREATESTRUCTA, 56)
1755     TEST_TYPE_ALIGN  (MDICREATESTRUCTA, 8)
1756     TEST_FIELD_SIZE  (MDICREATESTRUCTA, szClass, 8)
1757     TEST_FIELD_ALIGN (MDICREATESTRUCTA, szClass, 8)
1758     TEST_FIELD_OFFSET(MDICREATESTRUCTA, szClass, 0)
1759     TEST_FIELD_SIZE  (MDICREATESTRUCTA, szTitle, 8)
1760     TEST_FIELD_ALIGN (MDICREATESTRUCTA, szTitle, 8)
1761     TEST_FIELD_OFFSET(MDICREATESTRUCTA, szTitle, 8)
1762     TEST_FIELD_SIZE  (MDICREATESTRUCTA, hOwner, 8)
1763     TEST_FIELD_ALIGN (MDICREATESTRUCTA, hOwner, 8)
1764     TEST_FIELD_OFFSET(MDICREATESTRUCTA, hOwner, 16)
1765     TEST_FIELD_SIZE  (MDICREATESTRUCTA, x, 4)
1766     TEST_FIELD_ALIGN (MDICREATESTRUCTA, x, 4)
1767     TEST_FIELD_OFFSET(MDICREATESTRUCTA, x, 24)
1768     TEST_FIELD_SIZE  (MDICREATESTRUCTA, y, 4)
1769     TEST_FIELD_ALIGN (MDICREATESTRUCTA, y, 4)
1770     TEST_FIELD_OFFSET(MDICREATESTRUCTA, y, 28)
1771     TEST_FIELD_SIZE  (MDICREATESTRUCTA, cx, 4)
1772     TEST_FIELD_ALIGN (MDICREATESTRUCTA, cx, 4)
1773     TEST_FIELD_OFFSET(MDICREATESTRUCTA, cx, 32)
1774     TEST_FIELD_SIZE  (MDICREATESTRUCTA, cy, 4)
1775     TEST_FIELD_ALIGN (MDICREATESTRUCTA, cy, 4)
1776     TEST_FIELD_OFFSET(MDICREATESTRUCTA, cy, 36)
1777     TEST_FIELD_SIZE  (MDICREATESTRUCTA, style, 4)
1778     TEST_FIELD_ALIGN (MDICREATESTRUCTA, style, 4)
1779     TEST_FIELD_OFFSET(MDICREATESTRUCTA, style, 40)
1780     TEST_FIELD_SIZE  (MDICREATESTRUCTA, lParam, 8)
1781     TEST_FIELD_ALIGN (MDICREATESTRUCTA, lParam, 8)
1782     TEST_FIELD_OFFSET(MDICREATESTRUCTA, lParam, 48)
1783 }
1784 
1785 static void test_pack_MDICREATESTRUCTW(void)
1786 {
1787     /* MDICREATESTRUCTW */
1788     TEST_TYPE_SIZE   (MDICREATESTRUCTW, 56)
1789     TEST_TYPE_ALIGN  (MDICREATESTRUCTW, 8)
1790     TEST_FIELD_SIZE  (MDICREATESTRUCTW, szClass, 8)
1791     TEST_FIELD_ALIGN (MDICREATESTRUCTW, szClass, 8)
1792     TEST_FIELD_OFFSET(MDICREATESTRUCTW, szClass, 0)
1793     TEST_FIELD_SIZE  (MDICREATESTRUCTW, szTitle, 8)
1794     TEST_FIELD_ALIGN (MDICREATESTRUCTW, szTitle, 8)
1795     TEST_FIELD_OFFSET(MDICREATESTRUCTW, szTitle, 8)
1796     TEST_FIELD_SIZE  (MDICREATESTRUCTW, hOwner, 8)
1797     TEST_FIELD_ALIGN (MDICREATESTRUCTW, hOwner, 8)
1798     TEST_FIELD_OFFSET(MDICREATESTRUCTW, hOwner, 16)
1799     TEST_FIELD_SIZE  (MDICREATESTRUCTW, x, 4)
1800     TEST_FIELD_ALIGN (MDICREATESTRUCTW, x, 4)
1801     TEST_FIELD_OFFSET(MDICREATESTRUCTW, x, 24)
1802     TEST_FIELD_SIZE  (MDICREATESTRUCTW, y, 4)
1803     TEST_FIELD_ALIGN (MDICREATESTRUCTW, y, 4)
1804     TEST_FIELD_OFFSET(MDICREATESTRUCTW, y, 28)
1805     TEST_FIELD_SIZE  (MDICREATESTRUCTW, cx, 4)
1806     TEST_FIELD_ALIGN (MDICREATESTRUCTW, cx, 4)
1807     TEST_FIELD_OFFSET(MDICREATESTRUCTW, cx, 32)
1808     TEST_FIELD_SIZE  (MDICREATESTRUCTW, cy, 4)
1809     TEST_FIELD_ALIGN (MDICREATESTRUCTW, cy, 4)
1810     TEST_FIELD_OFFSET(MDICREATESTRUCTW, cy, 36)
1811     TEST_FIELD_SIZE  (MDICREATESTRUCTW, style, 4)
1812     TEST_FIELD_ALIGN (MDICREATESTRUCTW, style, 4)
1813     TEST_FIELD_OFFSET(MDICREATESTRUCTW, style, 40)
1814     TEST_FIELD_SIZE  (MDICREATESTRUCTW, lParam, 8)
1815     TEST_FIELD_ALIGN (MDICREATESTRUCTW, lParam, 8)
1816     TEST_FIELD_OFFSET(MDICREATESTRUCTW, lParam, 48)
1817 }
1818 
1819 static void test_pack_MDINEXTMENU(void)
1820 {
1821     /* MDINEXTMENU */
1822     TEST_TYPE_SIZE   (MDINEXTMENU, 24)
1823     TEST_TYPE_ALIGN  (MDINEXTMENU, 8)
1824     TEST_FIELD_SIZE  (MDINEXTMENU, hmenuIn, 8)
1825     TEST_FIELD_ALIGN (MDINEXTMENU, hmenuIn, 8)
1826     TEST_FIELD_OFFSET(MDINEXTMENU, hmenuIn, 0)
1827     TEST_FIELD_SIZE  (MDINEXTMENU, hmenuNext, 8)
1828     TEST_FIELD_ALIGN (MDINEXTMENU, hmenuNext, 8)
1829     TEST_FIELD_OFFSET(MDINEXTMENU, hmenuNext, 8)
1830     TEST_FIELD_SIZE  (MDINEXTMENU, hwndNext, 8)
1831     TEST_FIELD_ALIGN (MDINEXTMENU, hwndNext, 8)
1832     TEST_FIELD_OFFSET(MDINEXTMENU, hwndNext, 16)
1833 }
1834 
1835 static void test_pack_MEASUREITEMSTRUCT(void)
1836 {
1837     /* MEASUREITEMSTRUCT */
1838     TEST_TYPE_SIZE   (MEASUREITEMSTRUCT, 32)
1839     TEST_TYPE_ALIGN  (MEASUREITEMSTRUCT, 8)
1840     TEST_FIELD_SIZE  (MEASUREITEMSTRUCT, CtlType, 4)
1841     TEST_FIELD_ALIGN (MEASUREITEMSTRUCT, CtlType, 4)
1842     TEST_FIELD_OFFSET(MEASUREITEMSTRUCT, CtlType, 0)
1843     TEST_FIELD_SIZE  (MEASUREITEMSTRUCT, CtlID, 4)
1844     TEST_FIELD_ALIGN (MEASUREITEMSTRUCT, CtlID, 4)
1845     TEST_FIELD_OFFSET(MEASUREITEMSTRUCT, CtlID, 4)
1846     TEST_FIELD_SIZE  (MEASUREITEMSTRUCT, itemID, 4)
1847     TEST_FIELD_ALIGN (MEASUREITEMSTRUCT, itemID, 4)
1848     TEST_FIELD_OFFSET(MEASUREITEMSTRUCT, itemID, 8)
1849     TEST_FIELD_SIZE  (MEASUREITEMSTRUCT, itemWidth, 4)
1850     TEST_FIELD_ALIGN (MEASUREITEMSTRUCT, itemWidth, 4)
1851     TEST_FIELD_OFFSET(MEASUREITEMSTRUCT, itemWidth, 12)
1852     TEST_FIELD_SIZE  (MEASUREITEMSTRUCT, itemHeight, 4)
1853     TEST_FIELD_ALIGN (MEASUREITEMSTRUCT, itemHeight, 4)
1854     TEST_FIELD_OFFSET(MEASUREITEMSTRUCT, itemHeight, 16)
1855     TEST_FIELD_SIZE  (MEASUREITEMSTRUCT, itemData, 8)
1856     TEST_FIELD_ALIGN (MEASUREITEMSTRUCT, itemData, 8)
1857     TEST_FIELD_OFFSET(MEASUREITEMSTRUCT, itemData, 24)
1858 }
1859 
1860 static void test_pack_MENUINFO(void)
1861 {
1862     /* MENUINFO */
1863     TEST_TYPE_SIZE   (MENUINFO, 40)
1864     TEST_TYPE_ALIGN  (MENUINFO, 8)
1865     TEST_FIELD_SIZE  (MENUINFO, cbSize, 4)
1866     TEST_FIELD_ALIGN (MENUINFO, cbSize, 4)
1867     TEST_FIELD_OFFSET(MENUINFO, cbSize, 0)
1868     TEST_FIELD_SIZE  (MENUINFO, fMask, 4)
1869     TEST_FIELD_ALIGN (MENUINFO, fMask, 4)
1870     TEST_FIELD_OFFSET(MENUINFO, fMask, 4)
1871     TEST_FIELD_SIZE  (MENUINFO, dwStyle, 4)
1872     TEST_FIELD_ALIGN (MENUINFO, dwStyle, 4)
1873     TEST_FIELD_OFFSET(MENUINFO, dwStyle, 8)
1874     TEST_FIELD_SIZE  (MENUINFO, cyMax, 4)
1875     TEST_FIELD_ALIGN (MENUINFO, cyMax, 4)
1876     TEST_FIELD_OFFSET(MENUINFO, cyMax, 12)
1877     TEST_FIELD_SIZE  (MENUINFO, hbrBack, 8)
1878     TEST_FIELD_ALIGN (MENUINFO, hbrBack, 8)
1879     TEST_FIELD_OFFSET(MENUINFO, hbrBack, 16)
1880     TEST_FIELD_SIZE  (MENUINFO, dwContextHelpID, 4)
1881     TEST_FIELD_ALIGN (MENUINFO, dwContextHelpID, 4)
1882     TEST_FIELD_OFFSET(MENUINFO, dwContextHelpID, 24)
1883     TEST_FIELD_SIZE  (MENUINFO, dwMenuData, 8)
1884     TEST_FIELD_ALIGN (MENUINFO, dwMenuData, 8)
1885     TEST_FIELD_OFFSET(MENUINFO, dwMenuData, 32)
1886 }
1887 
1888 static void test_pack_MENUITEMINFOA(void)
1889 {
1890     /* MENUITEMINFOA */
1891     TEST_TYPE_SIZE   (MENUITEMINFOA, 80)
1892     TEST_TYPE_ALIGN  (MENUITEMINFOA, 8)
1893     TEST_FIELD_SIZE  (MENUITEMINFOA, cbSize, 4)
1894     TEST_FIELD_ALIGN (MENUITEMINFOA, cbSize, 4)
1895     TEST_FIELD_OFFSET(MENUITEMINFOA, cbSize, 0)
1896     TEST_FIELD_SIZE  (MENUITEMINFOA, fMask, 4)
1897     TEST_FIELD_ALIGN (MENUITEMINFOA, fMask, 4)
1898     TEST_FIELD_OFFSET(MENUITEMINFOA, fMask, 4)
1899     TEST_FIELD_SIZE  (MENUITEMINFOA, fType, 4)
1900     TEST_FIELD_ALIGN (MENUITEMINFOA, fType, 4)
1901     TEST_FIELD_OFFSET(MENUITEMINFOA, fType, 8)
1902     TEST_FIELD_SIZE  (MENUITEMINFOA, fState, 4)
1903     TEST_FIELD_ALIGN (MENUITEMINFOA, fState, 4)
1904     TEST_FIELD_OFFSET(MENUITEMINFOA, fState, 12)
1905     TEST_FIELD_SIZE  (MENUITEMINFOA, wID, 4)
1906     TEST_FIELD_ALIGN (MENUITEMINFOA, wID, 4)
1907     TEST_FIELD_OFFSET(MENUITEMINFOA, wID, 16)
1908     TEST_FIELD_SIZE  (MENUITEMINFOA, hSubMenu, 8)
1909     TEST_FIELD_ALIGN (MENUITEMINFOA, hSubMenu, 8)
1910     TEST_FIELD_OFFSET(MENUITEMINFOA, hSubMenu, 24)
1911     TEST_FIELD_SIZE  (MENUITEMINFOA, hbmpChecked, 8)
1912     TEST_FIELD_ALIGN (MENUITEMINFOA, hbmpChecked, 8)
1913     TEST_FIELD_OFFSET(MENUITEMINFOA, hbmpChecked, 32)
1914     TEST_FIELD_SIZE  (MENUITEMINFOA, hbmpUnchecked, 8)
1915     TEST_FIELD_ALIGN (MENUITEMINFOA, hbmpUnchecked, 8)
1916     TEST_FIELD_OFFSET(MENUITEMINFOA, hbmpUnchecked, 40)
1917     TEST_FIELD_SIZE  (MENUITEMINFOA, dwItemData, 8)
1918     TEST_FIELD_ALIGN (MENUITEMINFOA, dwItemData, 8)
1919     TEST_FIELD_OFFSET(MENUITEMINFOA, dwItemData, 48)
1920     TEST_FIELD_SIZE  (MENUITEMINFOA, dwTypeData, 8)
1921     TEST_FIELD_ALIGN (MENUITEMINFOA, dwTypeData, 8)
1922     TEST_FIELD_OFFSET(MENUITEMINFOA, dwTypeData, 56)
1923     TEST_FIELD_SIZE  (MENUITEMINFOA, cch, 4)
1924     TEST_FIELD_ALIGN (MENUITEMINFOA, cch, 4)
1925     TEST_FIELD_OFFSET(MENUITEMINFOA, cch, 64)
1926     TEST_FIELD_SIZE  (MENUITEMINFOA, hbmpItem, 8)
1927     TEST_FIELD_ALIGN (MENUITEMINFOA, hbmpItem, 8)
1928     TEST_FIELD_OFFSET(MENUITEMINFOA, hbmpItem, 72)
1929 }
1930 
1931 static void test_pack_MENUITEMINFOW(void)
1932 {
1933     /* MENUITEMINFOW */
1934     TEST_TYPE_SIZE   (MENUITEMINFOW, 80)
1935     TEST_TYPE_ALIGN  (MENUITEMINFOW, 8)
1936     TEST_FIELD_SIZE  (MENUITEMINFOW, cbSize, 4)
1937     TEST_FIELD_ALIGN (MENUITEMINFOW, cbSize, 4)
1938     TEST_FIELD_OFFSET(MENUITEMINFOW, cbSize, 0)
1939     TEST_FIELD_SIZE  (MENUITEMINFOW, fMask, 4)
1940     TEST_FIELD_ALIGN (MENUITEMINFOW, fMask, 4)
1941     TEST_FIELD_OFFSET(MENUITEMINFOW, fMask, 4)
1942     TEST_FIELD_SIZE  (MENUITEMINFOW, fType, 4)
1943     TEST_FIELD_ALIGN (MENUITEMINFOW, fType, 4)
1944     TEST_FIELD_OFFSET(MENUITEMINFOW, fType, 8)
1945     TEST_FIELD_SIZE  (MENUITEMINFOW, fState, 4)
1946     TEST_FIELD_ALIGN (MENUITEMINFOW, fState, 4)
1947     TEST_FIELD_OFFSET(MENUITEMINFOW, fState, 12)
1948     TEST_FIELD_SIZE  (MENUITEMINFOW, wID, 4)
1949     TEST_FIELD_ALIGN (MENUITEMINFOW, wID, 4)
1950     TEST_FIELD_OFFSET(MENUITEMINFOW, wID, 16)
1951     TEST_FIELD_SIZE  (MENUITEMINFOW, hSubMenu, 8)
1952     TEST_FIELD_ALIGN (MENUITEMINFOW, hSubMenu, 8)
1953     TEST_FIELD_OFFSET(MENUITEMINFOW, hSubMenu, 24)
1954     TEST_FIELD_SIZE  (MENUITEMINFOW, hbmpChecked, 8)
1955     TEST_FIELD_ALIGN (MENUITEMINFOW, hbmpChecked, 8)
1956     TEST_FIELD_OFFSET(MENUITEMINFOW, hbmpChecked, 32)
1957     TEST_FIELD_SIZE  (MENUITEMINFOW, hbmpUnchecked, 8)
1958     TEST_FIELD_ALIGN (MENUITEMINFOW, hbmpUnchecked, 8)
1959     TEST_FIELD_OFFSET(MENUITEMINFOW, hbmpUnchecked, 40)
1960     TEST_FIELD_SIZE  (MENUITEMINFOW, dwItemData, 8)
1961     TEST_FIELD_ALIGN (MENUITEMINFOW, dwItemData, 8)
1962     TEST_FIELD_OFFSET(MENUITEMINFOW, dwItemData, 48)
1963     TEST_FIELD_SIZE  (MENUITEMINFOW, dwTypeData, 8)
1964     TEST_FIELD_ALIGN (MENUITEMINFOW, dwTypeData, 8)
1965     TEST_FIELD_OFFSET(MENUITEMINFOW, dwTypeData, 56)
1966     TEST_FIELD_SIZE  (MENUITEMINFOW, cch, 4)
1967     TEST_FIELD_ALIGN (MENUITEMINFOW, cch, 4)
1968     TEST_FIELD_OFFSET(MENUITEMINFOW, cch, 64)
1969     TEST_FIELD_SIZE  (MENUITEMINFOW, hbmpItem, 8)
1970     TEST_FIELD_ALIGN (MENUITEMINFOW, hbmpItem, 8)
1971     TEST_FIELD_OFFSET(MENUITEMINFOW, hbmpItem, 72)
1972 }
1973 
1974 static void test_pack_MENUITEMTEMPLATE(void)
1975 {
1976     /* MENUITEMTEMPLATE */
1977     TEST_TYPE_SIZE   (MENUITEMTEMPLATE, 6)
1978     TEST_TYPE_ALIGN  (MENUITEMTEMPLATE, 2)
1979     TEST_FIELD_SIZE  (MENUITEMTEMPLATE, mtOption, 2)
1980     TEST_FIELD_ALIGN (MENUITEMTEMPLATE, mtOption, 2)
1981     TEST_FIELD_OFFSET(MENUITEMTEMPLATE, mtOption, 0)
1982     TEST_FIELD_SIZE  (MENUITEMTEMPLATE, mtID, 2)
1983     TEST_FIELD_ALIGN (MENUITEMTEMPLATE, mtID, 2)
1984     TEST_FIELD_OFFSET(MENUITEMTEMPLATE, mtID, 2)
1985     TEST_FIELD_SIZE  (MENUITEMTEMPLATE, mtString, 2)
1986     TEST_FIELD_ALIGN (MENUITEMTEMPLATE, mtString, 2)
1987     TEST_FIELD_OFFSET(MENUITEMTEMPLATE, mtString, 4)
1988 }
1989 
1990 static void test_pack_MENUITEMTEMPLATEHEADER(void)
1991 {
1992     /* MENUITEMTEMPLATEHEADER */
1993     TEST_TYPE_SIZE   (MENUITEMTEMPLATEHEADER, 4)
1994     TEST_TYPE_ALIGN  (MENUITEMTEMPLATEHEADER, 2)
1995     TEST_FIELD_SIZE  (MENUITEMTEMPLATEHEADER, versionNumber, 2)
1996     TEST_FIELD_ALIGN (MENUITEMTEMPLATEHEADER, versionNumber, 2)
1997     TEST_FIELD_OFFSET(MENUITEMTEMPLATEHEADER, versionNumber, 0)
1998     TEST_FIELD_SIZE  (MENUITEMTEMPLATEHEADER, offset, 2)
1999     TEST_FIELD_ALIGN (MENUITEMTEMPLATEHEADER, offset, 2)
2000     TEST_FIELD_OFFSET(MENUITEMTEMPLATEHEADER, offset, 2)
2001 }
2002 
2003 static void test_pack_MINIMIZEDMETRICS(void)
2004 {
2005     /* MINIMIZEDMETRICS */
2006     TEST_TYPE_SIZE   (MINIMIZEDMETRICS, 20)
2007     TEST_TYPE_ALIGN  (MINIMIZEDMETRICS, 4)
2008     TEST_FIELD_SIZE  (MINIMIZEDMETRICS, cbSize, 4)
2009     TEST_FIELD_ALIGN (MINIMIZEDMETRICS, cbSize, 4)
2010     TEST_FIELD_OFFSET(MINIMIZEDMETRICS, cbSize, 0)
2011     TEST_FIELD_SIZE  (MINIMIZEDMETRICS, iWidth, 4)
2012     TEST_FIELD_ALIGN (MINIMIZEDMETRICS, iWidth, 4)
2013     TEST_FIELD_OFFSET(MINIMIZEDMETRICS, iWidth, 4)
2014     TEST_FIELD_SIZE  (MINIMIZEDMETRICS, iHorzGap, 4)
2015     TEST_FIELD_ALIGN (MINIMIZEDMETRICS, iHorzGap, 4)
2016     TEST_FIELD_OFFSET(MINIMIZEDMETRICS, iHorzGap, 8)
2017     TEST_FIELD_SIZE  (MINIMIZEDMETRICS, iVertGap, 4)
2018     TEST_FIELD_ALIGN (MINIMIZEDMETRICS, iVertGap, 4)
2019     TEST_FIELD_OFFSET(MINIMIZEDMETRICS, iVertGap, 12)
2020     TEST_FIELD_SIZE  (MINIMIZEDMETRICS, iArrange, 4)
2021     TEST_FIELD_ALIGN (MINIMIZEDMETRICS, iArrange, 4)
2022     TEST_FIELD_OFFSET(MINIMIZEDMETRICS, iArrange, 16)
2023 }
2024 
2025 static void test_pack_MINMAXINFO(void)
2026 {
2027     /* MINMAXINFO */
2028     TEST_TYPE_SIZE   (MINMAXINFO, 40)
2029     TEST_TYPE_ALIGN  (MINMAXINFO, 4)
2030     TEST_FIELD_SIZE  (MINMAXINFO, ptReserved, 8)
2031     TEST_FIELD_ALIGN (MINMAXINFO, ptReserved, 4)
2032     TEST_FIELD_OFFSET(MINMAXINFO, ptReserved, 0)
2033     TEST_FIELD_SIZE  (MINMAXINFO, ptMaxSize, 8)
2034     TEST_FIELD_ALIGN (MINMAXINFO, ptMaxSize, 4)
2035     TEST_FIELD_OFFSET(MINMAXINFO, ptMaxSize, 8)
2036     TEST_FIELD_SIZE  (MINMAXINFO, ptMaxPosition, 8)
2037     TEST_FIELD_ALIGN (MINMAXINFO, ptMaxPosition, 4)
2038     TEST_FIELD_OFFSET(MINMAXINFO, ptMaxPosition, 16)
2039     TEST_FIELD_SIZE  (MINMAXINFO, ptMinTrackSize, 8)
2040     TEST_FIELD_ALIGN (MINMAXINFO, ptMinTrackSize, 4)
2041     TEST_FIELD_OFFSET(MINMAXINFO, ptMinTrackSize, 24)
2042     TEST_FIELD_SIZE  (MINMAXINFO, ptMaxTrackSize, 8)
2043     TEST_FIELD_ALIGN (MINMAXINFO, ptMaxTrackSize, 4)
2044     TEST_FIELD_OFFSET(MINMAXINFO, ptMaxTrackSize, 32)
2045 }
2046 
2047 static void test_pack_MONITORENUMPROC(void)
2048 {
2049     /* MONITORENUMPROC */
2050     TEST_TYPE_SIZE   (MONITORENUMPROC, 8)
2051     TEST_TYPE_ALIGN  (MONITORENUMPROC, 8)
2052 }
2053 
2054 static void test_pack_MONITORINFO(void)
2055 {
2056     /* MONITORINFO */
2057     TEST_TYPE_SIZE   (MONITORINFO, 40)
2058     TEST_TYPE_ALIGN  (MONITORINFO, 4)
2059     TEST_FIELD_SIZE  (MONITORINFO, cbSize, 4)
2060     TEST_FIELD_ALIGN (MONITORINFO, cbSize, 4)
2061     TEST_FIELD_OFFSET(MONITORINFO, cbSize, 0)
2062     TEST_FIELD_SIZE  (MONITORINFO, rcMonitor, 16)
2063     TEST_FIELD_ALIGN (MONITORINFO, rcMonitor, 4)
2064     TEST_FIELD_OFFSET(MONITORINFO, rcMonitor, 4)
2065     TEST_FIELD_SIZE  (MONITORINFO, rcWork, 16)
2066     TEST_FIELD_ALIGN (MONITORINFO, rcWork, 4)
2067     TEST_FIELD_OFFSET(MONITORINFO, rcWork, 20)
2068     TEST_FIELD_SIZE  (MONITORINFO, dwFlags, 4)
2069     TEST_FIELD_ALIGN (MONITORINFO, dwFlags, 4)
2070     TEST_FIELD_OFFSET(MONITORINFO, dwFlags, 36)
2071 }
2072 
2073 static void test_pack_MONITORINFOEXA(void)
2074 {
2075     /* MONITORINFOEXA */
2076     TEST_TYPE_SIZE   (MONITORINFOEXA, 72)
2077     TEST_TYPE_ALIGN  (MONITORINFOEXA, 4)
2078     TEST_FIELD_SIZE  (MONITORINFOEXA, cbSize, 4)
2079     TEST_FIELD_ALIGN (MONITORINFOEXA, cbSize, 4)
2080     TEST_FIELD_OFFSET(MONITORINFOEXA, cbSize, 0)
2081     TEST_FIELD_SIZE  (MONITORINFOEXA, rcMonitor, 16)
2082     TEST_FIELD_ALIGN (MONITORINFOEXA, rcMonitor, 4)
2083     TEST_FIELD_OFFSET(MONITORINFOEXA, rcMonitor, 4)
2084     TEST_FIELD_SIZE  (MONITORINFOEXA, rcWork, 16)
2085     TEST_FIELD_ALIGN (MONITORINFOEXA, rcWork, 4)
2086     TEST_FIELD_OFFSET(MONITORINFOEXA, rcWork, 20)
2087     TEST_FIELD_SIZE  (MONITORINFOEXA, dwFlags, 4)
2088     TEST_FIELD_ALIGN (MONITORINFOEXA, dwFlags, 4)
2089     TEST_FIELD_OFFSET(MONITORINFOEXA, dwFlags, 36)
2090     TEST_FIELD_SIZE  (MONITORINFOEXA, szDevice, 32)
2091     TEST_FIELD_ALIGN (MONITORINFOEXA, szDevice, 1)
2092     TEST_FIELD_OFFSET(MONITORINFOEXA, szDevice, 40)
2093 }
2094 
2095 static void test_pack_MONITORINFOEXW(void)
2096 {
2097     /* MONITORINFOEXW */
2098     TEST_TYPE_SIZE   (MONITORINFOEXW, 104)
2099     TEST_TYPE_ALIGN  (MONITORINFOEXW, 4)
2100     TEST_FIELD_SIZE  (MONITORINFOEXW, cbSize, 4)
2101     TEST_FIELD_ALIGN (MONITORINFOEXW, cbSize, 4)
2102     TEST_FIELD_OFFSET(MONITORINFOEXW, cbSize, 0)
2103     TEST_FIELD_SIZE  (MONITORINFOEXW, rcMonitor, 16)
2104     TEST_FIELD_ALIGN (MONITORINFOEXW, rcMonitor, 4)
2105     TEST_FIELD_OFFSET(MONITORINFOEXW, rcMonitor, 4)
2106     TEST_FIELD_SIZE  (MONITORINFOEXW, rcWork, 16)
2107     TEST_FIELD_ALIGN (MONITORINFOEXW, rcWork, 4)
2108     TEST_FIELD_OFFSET(MONITORINFOEXW, rcWork, 20)
2109     TEST_FIELD_SIZE  (MONITORINFOEXW, dwFlags, 4)
2110     TEST_FIELD_ALIGN (MONITORINFOEXW, dwFlags, 4)
2111     TEST_FIELD_OFFSET(MONITORINFOEXW, dwFlags, 36)
2112     TEST_FIELD_SIZE  (MONITORINFOEXW, szDevice, 64)
2113     TEST_FIELD_ALIGN (MONITORINFOEXW, szDevice, 2)
2114     TEST_FIELD_OFFSET(MONITORINFOEXW, szDevice, 40)
2115 }
2116 
2117 static void test_pack_MOUSEHOOKSTRUCT(void)
2118 {
2119     /* MOUSEHOOKSTRUCT */
2120     TEST_TYPE_SIZE   (MOUSEHOOKSTRUCT, 32)
2121     TEST_TYPE_ALIGN  (MOUSEHOOKSTRUCT, 8)
2122     TEST_FIELD_SIZE  (MOUSEHOOKSTRUCT, pt, 8)
2123     TEST_FIELD_ALIGN (MOUSEHOOKSTRUCT, pt, 4)
2124     TEST_FIELD_OFFSET(MOUSEHOOKSTRUCT, pt, 0)
2125     TEST_FIELD_SIZE  (MOUSEHOOKSTRUCT, hwnd, 8)
2126     TEST_FIELD_ALIGN (MOUSEHOOKSTRUCT, hwnd, 8)
2127     TEST_FIELD_OFFSET(MOUSEHOOKSTRUCT, hwnd, 8)
2128     TEST_FIELD_SIZE  (MOUSEHOOKSTRUCT, wHitTestCode, 4)
2129     TEST_FIELD_ALIGN (MOUSEHOOKSTRUCT, wHitTestCode, 4)
2130     TEST_FIELD_OFFSET(MOUSEHOOKSTRUCT, wHitTestCode, 16)
2131     TEST_FIELD_SIZE  (MOUSEHOOKSTRUCT, dwExtraInfo, 8)
2132     TEST_FIELD_ALIGN (MOUSEHOOKSTRUCT, dwExtraInfo, 8)
2133     TEST_FIELD_OFFSET(MOUSEHOOKSTRUCT, dwExtraInfo, 24)
2134 }
2135 
2136 static void test_pack_MOUSEINPUT(void)
2137 {
2138     /* MOUSEINPUT */
2139     TEST_TYPE_SIZE   (MOUSEINPUT, 32)
2140     TEST_TYPE_ALIGN  (MOUSEINPUT, 8)
2141     TEST_FIELD_SIZE  (MOUSEINPUT, dx, 4)
2142     TEST_FIELD_ALIGN (MOUSEINPUT, dx, 4)
2143     TEST_FIELD_OFFSET(MOUSEINPUT, dx, 0)
2144     TEST_FIELD_SIZE  (MOUSEINPUT, dy, 4)
2145     TEST_FIELD_ALIGN (MOUSEINPUT, dy, 4)
2146     TEST_FIELD_OFFSET(MOUSEINPUT, dy, 4)
2147     TEST_FIELD_SIZE  (MOUSEINPUT, mouseData, 4)
2148     TEST_FIELD_ALIGN (MOUSEINPUT, mouseData, 4)
2149     TEST_FIELD_OFFSET(MOUSEINPUT, mouseData, 8)
2150     TEST_FIELD_SIZE  (MOUSEINPUT, dwFlags, 4)
2151     TEST_FIELD_ALIGN (MOUSEINPUT, dwFlags, 4)
2152     TEST_FIELD_OFFSET(MOUSEINPUT, dwFlags, 12)
2153     TEST_FIELD_SIZE  (MOUSEINPUT, time, 4)
2154     TEST_FIELD_ALIGN (MOUSEINPUT, time, 4)
2155     TEST_FIELD_OFFSET(MOUSEINPUT, time, 16)
2156     TEST_FIELD_SIZE  (MOUSEINPUT, dwExtraInfo, 8)
2157     TEST_FIELD_ALIGN (MOUSEINPUT, dwExtraInfo, 8)
2158     TEST_FIELD_OFFSET(MOUSEINPUT, dwExtraInfo, 24)
2159 }
2160 
2161 static void test_pack_MOUSEKEYS(void)
2162 {
2163     /* MOUSEKEYS */
2164     TEST_TYPE_SIZE   (MOUSEKEYS, 28)
2165     TEST_TYPE_ALIGN  (MOUSEKEYS, 4)
2166     TEST_FIELD_SIZE  (MOUSEKEYS, cbSize, 4)
2167     TEST_FIELD_ALIGN (MOUSEKEYS, cbSize, 4)
2168     TEST_FIELD_OFFSET(MOUSEKEYS, cbSize, 0)
2169     TEST_FIELD_SIZE  (MOUSEKEYS, dwFlags, 4)
2170     TEST_FIELD_ALIGN (MOUSEKEYS, dwFlags, 4)
2171     TEST_FIELD_OFFSET(MOUSEKEYS, dwFlags, 4)
2172     TEST_FIELD_SIZE  (MOUSEKEYS, iMaxSpeed, 4)
2173     TEST_FIELD_ALIGN (MOUSEKEYS, iMaxSpeed, 4)
2174     TEST_FIELD_OFFSET(MOUSEKEYS, iMaxSpeed, 8)
2175     TEST_FIELD_SIZE  (MOUSEKEYS, iTimeToMaxSpeed, 4)
2176     TEST_FIELD_ALIGN (MOUSEKEYS, iTimeToMaxSpeed, 4)
2177     TEST_FIELD_OFFSET(MOUSEKEYS, iTimeToMaxSpeed, 12)
2178     TEST_FIELD_SIZE  (MOUSEKEYS, iCtrlSpeed, 4)
2179     TEST_FIELD_ALIGN (MOUSEKEYS, iCtrlSpeed, 4)
2180     TEST_FIELD_OFFSET(MOUSEKEYS, iCtrlSpeed, 16)
2181     TEST_FIELD_SIZE  (MOUSEKEYS, dwReserved1, 4)
2182     TEST_FIELD_ALIGN (MOUSEKEYS, dwReserved1, 4)
2183     TEST_FIELD_OFFSET(MOUSEKEYS, dwReserved1, 20)
2184     TEST_FIELD_SIZE  (MOUSEKEYS, dwReserved2, 4)
2185     TEST_FIELD_ALIGN (MOUSEKEYS, dwReserved2, 4)
2186     TEST_FIELD_OFFSET(MOUSEKEYS, dwReserved2, 24)
2187 }
2188 
2189 static void test_pack_MSG(void)
2190 {
2191     /* MSG */
2192     TEST_TYPE_SIZE   (MSG, 48)
2193     TEST_TYPE_ALIGN  (MSG, 8)
2194     TEST_FIELD_SIZE  (MSG, hwnd, 8)
2195     TEST_FIELD_ALIGN (MSG, hwnd, 8)
2196     TEST_FIELD_OFFSET(MSG, hwnd, 0)
2197     TEST_FIELD_SIZE  (MSG, message, 4)
2198     TEST_FIELD_ALIGN (MSG, message, 4)
2199     TEST_FIELD_OFFSET(MSG, message, 8)
2200     TEST_FIELD_SIZE  (MSG, wParam, 8)
2201     TEST_FIELD_ALIGN (MSG, wParam, 8)
2202     TEST_FIELD_OFFSET(MSG, wParam, 16)
2203     TEST_FIELD_SIZE  (MSG, lParam, 8)
2204     TEST_FIELD_ALIGN (MSG, lParam, 8)
2205     TEST_FIELD_OFFSET(MSG, lParam, 24)
2206     TEST_FIELD_SIZE  (MSG, time, 4)
2207     TEST_FIELD_ALIGN (MSG, time, 4)
2208     TEST_FIELD_OFFSET(MSG, time, 32)
2209     TEST_FIELD_SIZE  (MSG, pt, 8)
2210     TEST_FIELD_ALIGN (MSG, pt, 4)
2211     TEST_FIELD_OFFSET(MSG, pt, 36)
2212 }
2213 
2214 static void test_pack_MSGBOXCALLBACK(void)
2215 {
2216     /* MSGBOXCALLBACK */
2217     TEST_TYPE_SIZE   (MSGBOXCALLBACK, 8)
2218     TEST_TYPE_ALIGN  (MSGBOXCALLBACK, 8)
2219 }
2220 
2221 static void test_pack_MSGBOXPARAMSA(void)
2222 {
2223     /* MSGBOXPARAMSA */
2224     TEST_TYPE_SIZE   (MSGBOXPARAMSA, 80)
2225     TEST_TYPE_ALIGN  (MSGBOXPARAMSA, 8)
2226     TEST_FIELD_SIZE  (MSGBOXPARAMSA, cbSize, 4)
2227     TEST_FIELD_ALIGN (MSGBOXPARAMSA, cbSize, 4)
2228     TEST_FIELD_OFFSET(MSGBOXPARAMSA, cbSize, 0)
2229     TEST_FIELD_SIZE  (MSGBOXPARAMSA, hwndOwner, 8)
2230     TEST_FIELD_ALIGN (MSGBOXPARAMSA, hwndOwner, 8)
2231     TEST_FIELD_OFFSET(MSGBOXPARAMSA, hwndOwner, 8)
2232     TEST_FIELD_SIZE  (MSGBOXPARAMSA, hInstance, 8)
2233     TEST_FIELD_ALIGN (MSGBOXPARAMSA, hInstance, 8)
2234     TEST_FIELD_OFFSET(MSGBOXPARAMSA, hInstance, 16)
2235     TEST_FIELD_SIZE  (MSGBOXPARAMSA, lpszText, 8)
2236     TEST_FIELD_ALIGN (MSGBOXPARAMSA, lpszText, 8)
2237     TEST_FIELD_OFFSET(MSGBOXPARAMSA, lpszText, 24)
2238     TEST_FIELD_SIZE  (MSGBOXPARAMSA, lpszCaption, 8)
2239     TEST_FIELD_ALIGN (MSGBOXPARAMSA, lpszCaption, 8)
2240     TEST_FIELD_OFFSET(MSGBOXPARAMSA, lpszCaption, 32)
2241     TEST_FIELD_SIZE  (MSGBOXPARAMSA, dwStyle, 4)
2242     TEST_FIELD_ALIGN (MSGBOXPARAMSA, dwStyle, 4)
2243     TEST_FIELD_OFFSET(MSGBOXPARAMSA, dwStyle, 40)
2244     TEST_FIELD_SIZE  (MSGBOXPARAMSA, lpszIcon, 8)
2245     TEST_FIELD_ALIGN (MSGBOXPARAMSA, lpszIcon, 8)
2246     TEST_FIELD_OFFSET(MSGBOXPARAMSA, lpszIcon, 48)
2247     TEST_FIELD_SIZE  (MSGBOXPARAMSA, dwContextHelpId, 8)
2248     TEST_FIELD_ALIGN (MSGBOXPARAMSA, dwContextHelpId, 8)
2249     TEST_FIELD_OFFSET(MSGBOXPARAMSA, dwContextHelpId, 56)
2250     TEST_FIELD_SIZE  (MSGBOXPARAMSA, lpfnMsgBoxCallback, 8)
2251     TEST_FIELD_ALIGN (MSGBOXPARAMSA, lpfnMsgBoxCallback, 8)
2252     TEST_FIELD_OFFSET(MSGBOXPARAMSA, lpfnMsgBoxCallback, 64)
2253     TEST_FIELD_SIZE  (MSGBOXPARAMSA, dwLanguageId, 4)
2254     TEST_FIELD_ALIGN (MSGBOXPARAMSA, dwLanguageId, 4)
2255     TEST_FIELD_OFFSET(MSGBOXPARAMSA, dwLanguageId, 72)
2256 }
2257 
2258 static void test_pack_MSGBOXPARAMSW(void)
2259 {
2260     /* MSGBOXPARAMSW */
2261     TEST_TYPE_SIZE   (MSGBOXPARAMSW, 80)
2262     TEST_TYPE_ALIGN  (MSGBOXPARAMSW, 8)
2263     TEST_FIELD_SIZE  (MSGBOXPARAMSW, cbSize, 4)
2264     TEST_FIELD_ALIGN (MSGBOXPARAMSW, cbSize, 4)
2265     TEST_FIELD_OFFSET(MSGBOXPARAMSW, cbSize, 0)
2266     TEST_FIELD_SIZE  (MSGBOXPARAMSW, hwndOwner, 8)
2267     TEST_FIELD_ALIGN (MSGBOXPARAMSW, hwndOwner, 8)
2268     TEST_FIELD_OFFSET(MSGBOXPARAMSW, hwndOwner, 8)
2269     TEST_FIELD_SIZE  (MSGBOXPARAMSW, hInstance, 8)
2270     TEST_FIELD_ALIGN (MSGBOXPARAMSW, hInstance, 8)
2271     TEST_FIELD_OFFSET(MSGBOXPARAMSW, hInstance, 16)
2272     TEST_FIELD_SIZE  (MSGBOXPARAMSW, lpszText, 8)
2273     TEST_FIELD_ALIGN (MSGBOXPARAMSW, lpszText, 8)
2274     TEST_FIELD_OFFSET(MSGBOXPARAMSW, lpszText, 24)
2275     TEST_FIELD_SIZE  (MSGBOXPARAMSW, lpszCaption, 8)
2276     TEST_FIELD_ALIGN (MSGBOXPARAMSW, lpszCaption, 8)
2277     TEST_FIELD_OFFSET(MSGBOXPARAMSW, lpszCaption, 32)
2278     TEST_FIELD_SIZE  (MSGBOXPARAMSW, dwStyle, 4)
2279     TEST_FIELD_ALIGN (MSGBOXPARAMSW, dwStyle, 4)
2280     TEST_FIELD_OFFSET(MSGBOXPARAMSW, dwStyle, 40)
2281     TEST_FIELD_SIZE  (MSGBOXPARAMSW, lpszIcon, 8)
2282     TEST_FIELD_ALIGN (MSGBOXPARAMSW, lpszIcon, 8)
2283     TEST_FIELD_OFFSET(MSGBOXPARAMSW, lpszIcon, 48)
2284     TEST_FIELD_SIZE  (MSGBOXPARAMSW, dwContextHelpId, 8)
2285     TEST_FIELD_ALIGN (MSGBOXPARAMSW, dwContextHelpId, 8)
2286     TEST_FIELD_OFFSET(MSGBOXPARAMSW, dwContextHelpId, 56)
2287     TEST_FIELD_SIZE  (MSGBOXPARAMSW, lpfnMsgBoxCallback, 8)
2288     TEST_FIELD_ALIGN (MSGBOXPARAMSW, lpfnMsgBoxCallback, 8)
2289     TEST_FIELD_OFFSET(MSGBOXPARAMSW, lpfnMsgBoxCallback, 64)
2290     TEST_FIELD_SIZE  (MSGBOXPARAMSW, dwLanguageId, 4)
2291     TEST_FIELD_ALIGN (MSGBOXPARAMSW, dwLanguageId, 4)
2292     TEST_FIELD_OFFSET(MSGBOXPARAMSW, dwLanguageId, 72)
2293 }
2294 
2295 static void test_pack_MSLLHOOKSTRUCT(void)
2296 {
2297     /* MSLLHOOKSTRUCT */
2298     TEST_TYPE_SIZE   (MSLLHOOKSTRUCT, 32)
2299     TEST_TYPE_ALIGN  (MSLLHOOKSTRUCT, 8)
2300     TEST_FIELD_SIZE  (MSLLHOOKSTRUCT, pt, 8)
2301     TEST_FIELD_ALIGN (MSLLHOOKSTRUCT, pt, 4)
2302     TEST_FIELD_OFFSET(MSLLHOOKSTRUCT, pt, 0)
2303     TEST_FIELD_SIZE  (MSLLHOOKSTRUCT, mouseData, 4)
2304     TEST_FIELD_ALIGN (MSLLHOOKSTRUCT, mouseData, 4)
2305     TEST_FIELD_OFFSET(MSLLHOOKSTRUCT, mouseData, 8)
2306     TEST_FIELD_SIZE  (MSLLHOOKSTRUCT, flags, 4)
2307     TEST_FIELD_ALIGN (MSLLHOOKSTRUCT, flags, 4)
2308     TEST_FIELD_OFFSET(MSLLHOOKSTRUCT, flags, 12)
2309     TEST_FIELD_SIZE  (MSLLHOOKSTRUCT, time, 4)
2310     TEST_FIELD_ALIGN (MSLLHOOKSTRUCT, time, 4)
2311     TEST_FIELD_OFFSET(MSLLHOOKSTRUCT, time, 16)
2312     TEST_FIELD_SIZE  (MSLLHOOKSTRUCT, dwExtraInfo, 8)
2313     TEST_FIELD_ALIGN (MSLLHOOKSTRUCT, dwExtraInfo, 8)
2314     TEST_FIELD_OFFSET(MSLLHOOKSTRUCT, dwExtraInfo, 24)
2315 }
2316 
2317 static void test_pack_MULTIKEYHELPA(void)
2318 {
2319     /* MULTIKEYHELPA */
2320     TEST_TYPE_SIZE   (MULTIKEYHELPA, 8)
2321     TEST_TYPE_ALIGN  (MULTIKEYHELPA, 4)
2322     TEST_FIELD_SIZE  (MULTIKEYHELPA, mkSize, 4)
2323     TEST_FIELD_ALIGN (MULTIKEYHELPA, mkSize, 4)
2324     TEST_FIELD_OFFSET(MULTIKEYHELPA, mkSize, 0)
2325     TEST_FIELD_SIZE  (MULTIKEYHELPA, mkKeylist, 1)
2326     TEST_FIELD_ALIGN (MULTIKEYHELPA, mkKeylist, 1)
2327     TEST_FIELD_OFFSET(MULTIKEYHELPA, mkKeylist, 4)
2328     TEST_FIELD_SIZE  (MULTIKEYHELPA, szKeyphrase, 1)
2329     TEST_FIELD_ALIGN (MULTIKEYHELPA, szKeyphrase, 1)
2330     TEST_FIELD_OFFSET(MULTIKEYHELPA, szKeyphrase, 5)
2331 }
2332 
2333 static void test_pack_MULTIKEYHELPW(void)
2334 {
2335     /* MULTIKEYHELPW */
2336     TEST_TYPE_SIZE   (MULTIKEYHELPW, 8)
2337     TEST_TYPE_ALIGN  (MULTIKEYHELPW, 4)
2338     TEST_FIELD_SIZE  (MULTIKEYHELPW, mkSize, 4)
2339     TEST_FIELD_ALIGN (MULTIKEYHELPW, mkSize, 4)
2340     TEST_FIELD_OFFSET(MULTIKEYHELPW, mkSize, 0)
2341     TEST_FIELD_SIZE  (MULTIKEYHELPW, mkKeylist, 2)
2342     TEST_FIELD_ALIGN (MULTIKEYHELPW, mkKeylist, 2)
2343     TEST_FIELD_OFFSET(MULTIKEYHELPW, mkKeylist, 4)
2344     TEST_FIELD_SIZE  (MULTIKEYHELPW, szKeyphrase, 2)
2345     TEST_FIELD_ALIGN (MULTIKEYHELPW, szKeyphrase, 2)
2346     TEST_FIELD_OFFSET(MULTIKEYHELPW, szKeyphrase, 6)
2347 }
2348 
2349 static void test_pack_NAMEENUMPROCA(void)
2350 {
2351     /* NAMEENUMPROCA */
2352     TEST_TYPE_SIZE   (NAMEENUMPROCA, 8)
2353     TEST_TYPE_ALIGN  (NAMEENUMPROCA, 8)
2354 }
2355 
2356 static void test_pack_NAMEENUMPROCW(void)
2357 {
2358     /* NAMEENUMPROCW */
2359     TEST_TYPE_SIZE   (NAMEENUMPROCW, 8)
2360     TEST_TYPE_ALIGN  (NAMEENUMPROCW, 8)
2361 }
2362 
2363 static void test_pack_NCCALCSIZE_PARAMS(void)
2364 {
2365     /* NCCALCSIZE_PARAMS */
2366     TEST_TYPE_SIZE   (NCCALCSIZE_PARAMS, 56)
2367     TEST_TYPE_ALIGN  (NCCALCSIZE_PARAMS, 8)
2368     TEST_FIELD_SIZE  (NCCALCSIZE_PARAMS, rgrc, 48)
2369     TEST_FIELD_ALIGN (NCCALCSIZE_PARAMS, rgrc, 4)
2370     TEST_FIELD_OFFSET(NCCALCSIZE_PARAMS, rgrc, 0)
2371     TEST_FIELD_SIZE  (NCCALCSIZE_PARAMS, lppos, 8)
2372     TEST_FIELD_ALIGN (NCCALCSIZE_PARAMS, lppos, 8)
2373     TEST_FIELD_OFFSET(NCCALCSIZE_PARAMS, lppos, 48)
2374 }
2375 
2376 static void test_pack_NMHDR(void)
2377 {
2378     /* NMHDR */
2379     TEST_TYPE_SIZE   (NMHDR, 24)
2380     TEST_TYPE_ALIGN  (NMHDR, 8)
2381     TEST_FIELD_SIZE  (NMHDR, hwndFrom, 8)
2382     TEST_FIELD_ALIGN (NMHDR, hwndFrom, 8)
2383     TEST_FIELD_OFFSET(NMHDR, hwndFrom, 0)
2384     TEST_FIELD_SIZE  (NMHDR, idFrom, 8)
2385     TEST_FIELD_ALIGN (NMHDR, idFrom, 8)
2386     TEST_FIELD_OFFSET(NMHDR, idFrom, 8)
2387     TEST_FIELD_SIZE  (NMHDR, code, 4)
2388     TEST_FIELD_ALIGN (NMHDR, code, 4)
2389     TEST_FIELD_OFFSET(NMHDR, code, 16)
2390 }
2391 
2392 static void test_pack_NONCLIENTMETRICSA(void)
2393 {
2394     /* NONCLIENTMETRICSA */
2395     TEST_TYPE_SIZE   (NONCLIENTMETRICSA, 344)
2396     TEST_TYPE_ALIGN  (NONCLIENTMETRICSA, 4)
2397     TEST_FIELD_SIZE  (NONCLIENTMETRICSA, cbSize, 4)
2398     TEST_FIELD_ALIGN (NONCLIENTMETRICSA, cbSize, 4)
2399     TEST_FIELD_OFFSET(NONCLIENTMETRICSA, cbSize, 0)
2400     TEST_FIELD_SIZE  (NONCLIENTMETRICSA, iBorderWidth, 4)
2401     TEST_FIELD_ALIGN (NONCLIENTMETRICSA, iBorderWidth, 4)
2402     TEST_FIELD_OFFSET(NONCLIENTMETRICSA, iBorderWidth, 4)
2403     TEST_FIELD_SIZE  (NONCLIENTMETRICSA, iScrollWidth, 4)
2404     TEST_FIELD_ALIGN (NONCLIENTMETRICSA, iScrollWidth, 4)
2405     TEST_FIELD_OFFSET(NONCLIENTMETRICSA, iScrollWidth, 8)
2406     TEST_FIELD_SIZE  (NONCLIENTMETRICSA, iScrollHeight, 4)
2407     TEST_FIELD_ALIGN (NONCLIENTMETRICSA, iScrollHeight, 4)
2408     TEST_FIELD_OFFSET(NONCLIENTMETRICSA, iScrollHeight, 12)
2409     TEST_FIELD_SIZE  (NONCLIENTMETRICSA, iCaptionWidth, 4)
2410     TEST_FIELD_ALIGN (NONCLIENTMETRICSA, iCaptionWidth, 4)
2411     TEST_FIELD_OFFSET(NONCLIENTMETRICSA, iCaptionWidth, 16)
2412     TEST_FIELD_SIZE  (NONCLIENTMETRICSA, iCaptionHeight, 4)
2413     TEST_FIELD_ALIGN (NONCLIENTMETRICSA, iCaptionHeight, 4)
2414     TEST_FIELD_OFFSET(NONCLIENTMETRICSA, iCaptionHeight, 20)
2415     TEST_FIELD_SIZE  (NONCLIENTMETRICSA, lfCaptionFont, 60)
2416     TEST_FIELD_ALIGN (NONCLIENTMETRICSA, lfCaptionFont, 4)
2417     TEST_FIELD_OFFSET(NONCLIENTMETRICSA, lfCaptionFont, 24)
2418     TEST_FIELD_SIZE  (NONCLIENTMETRICSA, iSmCaptionWidth, 4)
2419     TEST_FIELD_ALIGN (NONCLIENTMETRICSA, iSmCaptionWidth, 4)
2420     TEST_FIELD_OFFSET(NONCLIENTMETRICSA, iSmCaptionWidth, 84)
2421     TEST_FIELD_SIZE  (NONCLIENTMETRICSA, iSmCaptionHeight, 4)
2422     TEST_FIELD_ALIGN (NONCLIENTMETRICSA, iSmCaptionHeight, 4)
2423     TEST_FIELD_OFFSET(NONCLIENTMETRICSA, iSmCaptionHeight, 88)
2424     TEST_FIELD_SIZE  (NONCLIENTMETRICSA, lfSmCaptionFont, 60)
2425     TEST_FIELD_ALIGN (NONCLIENTMETRICSA, lfSmCaptionFont, 4)
2426     TEST_FIELD_OFFSET(NONCLIENTMETRICSA, lfSmCaptionFont, 92)
2427     TEST_FIELD_SIZE  (NONCLIENTMETRICSA, iMenuWidth, 4)
2428     TEST_FIELD_ALIGN (NONCLIENTMETRICSA, iMenuWidth, 4)
2429     TEST_FIELD_OFFSET(NONCLIENTMETRICSA, iMenuWidth, 152)
2430     TEST_FIELD_SIZE  (NONCLIENTMETRICSA, iMenuHeight, 4)
2431     TEST_FIELD_ALIGN (NONCLIENTMETRICSA, iMenuHeight, 4)
2432     TEST_FIELD_OFFSET(NONCLIENTMETRICSA, iMenuHeight, 156)
2433     TEST_FIELD_SIZE  (NONCLIENTMETRICSA, lfMenuFont, 60)
2434     TEST_FIELD_ALIGN (NONCLIENTMETRICSA, lfMenuFont, 4)
2435     TEST_FIELD_OFFSET(NONCLIENTMETRICSA, lfMenuFont, 160)
2436     TEST_FIELD_SIZE  (NONCLIENTMETRICSA, lfStatusFont, 60)
2437     TEST_FIELD_ALIGN (NONCLIENTMETRICSA, lfStatusFont, 4)
2438     TEST_FIELD_OFFSET(NONCLIENTMETRICSA, lfStatusFont, 220)
2439     TEST_FIELD_SIZE  (NONCLIENTMETRICSA, lfMessageFont, 60)
2440     TEST_FIELD_ALIGN (NONCLIENTMETRICSA, lfMessageFont, 4)
2441     TEST_FIELD_OFFSET(NONCLIENTMETRICSA, lfMessageFont, 280)
2442     TEST_FIELD_SIZE  (NONCLIENTMETRICSA, iPaddedBorderWidth, 4)
2443     TEST_FIELD_ALIGN (NONCLIENTMETRICSA, iPaddedBorderWidth, 4)
2444     TEST_FIELD_OFFSET(NONCLIENTMETRICSA, iPaddedBorderWidth, 340)
2445 }
2446 
2447 static void test_pack_NONCLIENTMETRICSW(void)
2448 {
2449     /* NONCLIENTMETRICSW */
2450     TEST_TYPE_SIZE   (NONCLIENTMETRICSW, 504)
2451     TEST_TYPE_ALIGN  (NONCLIENTMETRICSW, 4)
2452     TEST_FIELD_SIZE  (NONCLIENTMETRICSW, cbSize, 4)
2453     TEST_FIELD_ALIGN (NONCLIENTMETRICSW, cbSize, 4)
2454     TEST_FIELD_OFFSET(NONCLIENTMETRICSW, cbSize, 0)
2455     TEST_FIELD_SIZE  (NONCLIENTMETRICSW, iBorderWidth, 4)
2456     TEST_FIELD_ALIGN (NONCLIENTMETRICSW, iBorderWidth, 4)
2457     TEST_FIELD_OFFSET(NONCLIENTMETRICSW, iBorderWidth, 4)
2458     TEST_FIELD_SIZE  (NONCLIENTMETRICSW, iScrollWidth, 4)
2459     TEST_FIELD_ALIGN (NONCLIENTMETRICSW, iScrollWidth, 4)
2460     TEST_FIELD_OFFSET(NONCLIENTMETRICSW, iScrollWidth, 8)
2461     TEST_FIELD_SIZE  (NONCLIENTMETRICSW, iScrollHeight, 4)
2462     TEST_FIELD_ALIGN (NONCLIENTMETRICSW, iScrollHeight, 4)
2463     TEST_FIELD_OFFSET(NONCLIENTMETRICSW, iScrollHeight, 12)
2464     TEST_FIELD_SIZE  (NONCLIENTMETRICSW, iCaptionWidth, 4)
2465     TEST_FIELD_ALIGN (NONCLIENTMETRICSW, iCaptionWidth, 4)
2466     TEST_FIELD_OFFSET(NONCLIENTMETRICSW, iCaptionWidth, 16)
2467     TEST_FIELD_SIZE  (NONCLIENTMETRICSW, iCaptionHeight, 4)
2468     TEST_FIELD_ALIGN (NONCLIENTMETRICSW, iCaptionHeight, 4)
2469     TEST_FIELD_OFFSET(NONCLIENTMETRICSW, iCaptionHeight, 20)
2470     TEST_FIELD_SIZE  (NONCLIENTMETRICSW, lfCaptionFont, 92)
2471     TEST_FIELD_ALIGN (NONCLIENTMETRICSW, lfCaptionFont, 4)
2472     TEST_FIELD_OFFSET(NONCLIENTMETRICSW, lfCaptionFont, 24)
2473     TEST_FIELD_SIZE  (NONCLIENTMETRICSW, iSmCaptionWidth, 4)
2474     TEST_FIELD_ALIGN (NONCLIENTMETRICSW, iSmCaptionWidth, 4)
2475     TEST_FIELD_OFFSET(NONCLIENTMETRICSW, iSmCaptionWidth, 116)
2476     TEST_FIELD_SIZE  (NONCLIENTMETRICSW, iSmCaptionHeight, 4)
2477     TEST_FIELD_ALIGN (NONCLIENTMETRICSW, iSmCaptionHeight, 4)
2478     TEST_FIELD_OFFSET(NONCLIENTMETRICSW, iSmCaptionHeight, 120)
2479     TEST_FIELD_SIZE  (NONCLIENTMETRICSW, lfSmCaptionFont, 92)
2480     TEST_FIELD_ALIGN (NONCLIENTMETRICSW, lfSmCaptionFont, 4)
2481     TEST_FIELD_OFFSET(NONCLIENTMETRICSW, lfSmCaptionFont, 124)
2482     TEST_FIELD_SIZE  (NONCLIENTMETRICSW, iMenuWidth, 4)
2483     TEST_FIELD_ALIGN (NONCLIENTMETRICSW, iMenuWidth, 4)
2484     TEST_FIELD_OFFSET(NONCLIENTMETRICSW, iMenuWidth, 216)
2485     TEST_FIELD_SIZE  (NONCLIENTMETRICSW, iMenuHeight, 4)
2486     TEST_FIELD_ALIGN (NONCLIENTMETRICSW, iMenuHeight, 4)
2487     TEST_FIELD_OFFSET(NONCLIENTMETRICSW, iMenuHeight, 220)
2488     TEST_FIELD_SIZE  (NONCLIENTMETRICSW, lfMenuFont, 92)
2489     TEST_FIELD_ALIGN (NONCLIENTMETRICSW, lfMenuFont, 4)
2490     TEST_FIELD_OFFSET(NONCLIENTMETRICSW, lfMenuFont, 224)
2491     TEST_FIELD_SIZE  (NONCLIENTMETRICSW, lfStatusFont, 92)
2492     TEST_FIELD_ALIGN (NONCLIENTMETRICSW, lfStatusFont, 4)
2493     TEST_FIELD_OFFSET(NONCLIENTMETRICSW, lfStatusFont, 316)
2494     TEST_FIELD_SIZE  (NONCLIENTMETRICSW, lfMessageFont, 92)
2495     TEST_FIELD_ALIGN (NONCLIENTMETRICSW, lfMessageFont, 4)
2496     TEST_FIELD_OFFSET(NONCLIENTMETRICSW, lfMessageFont, 408)
2497     TEST_FIELD_SIZE  (NONCLIENTMETRICSW, iPaddedBorderWidth, 4)
2498     TEST_FIELD_ALIGN (NONCLIENTMETRICSW, iPaddedBorderWidth, 4)
2499     TEST_FIELD_OFFSET(NONCLIENTMETRICSW, iPaddedBorderWidth, 500)
2500 }
2501 
2502 static void test_pack_PAINTSTRUCT(void)
2503 {
2504     /* PAINTSTRUCT */
2505     TEST_TYPE_SIZE   (PAINTSTRUCT, 72)
2506     TEST_TYPE_ALIGN  (PAINTSTRUCT, 8)
2507     TEST_FIELD_SIZE  (PAINTSTRUCT, hdc, 8)
2508     TEST_FIELD_ALIGN (PAINTSTRUCT, hdc, 8)
2509     TEST_FIELD_OFFSET(PAINTSTRUCT, hdc, 0)
2510     TEST_FIELD_SIZE  (PAINTSTRUCT, fErase, 4)
2511     TEST_FIELD_ALIGN (PAINTSTRUCT, fErase, 4)
2512     TEST_FIELD_OFFSET(PAINTSTRUCT, fErase, 8)
2513     TEST_FIELD_SIZE  (PAINTSTRUCT, rcPaint, 16)
2514     TEST_FIELD_ALIGN (PAINTSTRUCT, rcPaint, 4)
2515     TEST_FIELD_OFFSET(PAINTSTRUCT, rcPaint, 12)
2516     TEST_FIELD_SIZE  (PAINTSTRUCT, fRestore, 4)
2517     TEST_FIELD_ALIGN (PAINTSTRUCT, fRestore, 4)
2518     TEST_FIELD_OFFSET(PAINTSTRUCT, fRestore, 28)
2519     TEST_FIELD_SIZE  (PAINTSTRUCT, fIncUpdate, 4)
2520     TEST_FIELD_ALIGN (PAINTSTRUCT, fIncUpdate, 4)
2521     TEST_FIELD_OFFSET(PAINTSTRUCT, fIncUpdate, 32)
2522     TEST_FIELD_SIZE  (PAINTSTRUCT, rgbReserved, 32)
2523     TEST_FIELD_ALIGN (PAINTSTRUCT, rgbReserved, 1)
2524     TEST_FIELD_OFFSET(PAINTSTRUCT, rgbReserved, 36)
2525 }
2526 
2527 static void test_pack_PCOMBOBOXINFO(void)
2528 {
2529     /* PCOMBOBOXINFO */
2530     TEST_TYPE_SIZE   (PCOMBOBOXINFO, 8)
2531     TEST_TYPE_ALIGN  (PCOMBOBOXINFO, 8)
2532     TEST_TARGET_SIZE (PCOMBOBOXINFO, 64)
2533     TEST_TARGET_ALIGN(PCOMBOBOXINFO, 8)
2534 }
2535 
2536 static void test_pack_PCOMPAREITEMSTRUCT(void)
2537 {
2538     /* PCOMPAREITEMSTRUCT */
2539     TEST_TYPE_SIZE   (PCOMPAREITEMSTRUCT, 8)
2540     TEST_TYPE_ALIGN  (PCOMPAREITEMSTRUCT, 8)
2541     TEST_TARGET_SIZE (PCOMPAREITEMSTRUCT, 56)
2542     TEST_TARGET_ALIGN(PCOMPAREITEMSTRUCT, 8)
2543 }
2544 
2545 static void test_pack_PCOPYDATASTRUCT(void)
2546 {
2547     /* PCOPYDATASTRUCT */
2548     TEST_TYPE_SIZE   (PCOPYDATASTRUCT, 8)
2549     TEST_TYPE_ALIGN  (PCOPYDATASTRUCT, 8)
2550     TEST_TARGET_SIZE (PCOPYDATASTRUCT, 24)
2551     TEST_TARGET_ALIGN(PCOPYDATASTRUCT, 8)
2552 }
2553 
2554 static void test_pack_PCURSORINFO(void)
2555 {
2556     /* PCURSORINFO */
2557     TEST_TYPE_SIZE   (PCURSORINFO, 8)
2558     TEST_TYPE_ALIGN  (PCURSORINFO, 8)
2559     TEST_TARGET_SIZE (PCURSORINFO, 24)
2560     TEST_TARGET_ALIGN(PCURSORINFO, 8)
2561 }
2562 
2563 static void test_pack_PCWPRETSTRUCT(void)
2564 {
2565     /* PCWPRETSTRUCT */
2566     TEST_TYPE_SIZE   (PCWPRETSTRUCT, 8)
2567     TEST_TYPE_ALIGN  (PCWPRETSTRUCT, 8)
2568     TEST_TARGET_SIZE (PCWPRETSTRUCT, 40)
2569     TEST_TARGET_ALIGN(PCWPRETSTRUCT, 8)
2570 }
2571 
2572 static void test_pack_PCWPSTRUCT(void)
2573 {
2574     /* PCWPSTRUCT */
2575     TEST_TYPE_SIZE   (PCWPSTRUCT, 8)
2576     TEST_TYPE_ALIGN  (PCWPSTRUCT, 8)
2577     TEST_TARGET_SIZE (PCWPSTRUCT, 32)
2578     TEST_TARGET_ALIGN(PCWPSTRUCT, 8)
2579 }
2580 
2581 static void test_pack_PDEBUGHOOKINFO(void)
2582 {
2583     /* PDEBUGHOOKINFO */
2584     TEST_TYPE_SIZE   (PDEBUGHOOKINFO, 8)
2585     TEST_TYPE_ALIGN  (PDEBUGHOOKINFO, 8)
2586     TEST_TARGET_SIZE (PDEBUGHOOKINFO, 32)
2587     TEST_TARGET_ALIGN(PDEBUGHOOKINFO, 8)
2588 }
2589 
2590 static void test_pack_PDELETEITEMSTRUCT(void)
2591 {
2592     /* PDELETEITEMSTRUCT */
2593     TEST_TYPE_SIZE   (PDELETEITEMSTRUCT, 8)
2594     TEST_TYPE_ALIGN  (PDELETEITEMSTRUCT, 8)
2595     TEST_TARGET_SIZE (PDELETEITEMSTRUCT, 32)
2596     TEST_TARGET_ALIGN(PDELETEITEMSTRUCT, 8)
2597 }
2598 
2599 static void test_pack_PDLGITEMTEMPLATEA(void)
2600 {
2601     /* PDLGITEMTEMPLATEA */
2602     TEST_TYPE_SIZE   (PDLGITEMTEMPLATEA, 8)
2603     TEST_TYPE_ALIGN  (PDLGITEMTEMPLATEA, 8)
2604     TEST_TARGET_SIZE (PDLGITEMTEMPLATEA, 18)
2605     TEST_TARGET_ALIGN(PDLGITEMTEMPLATEA, 2)
2606 }
2607 
2608 static void test_pack_PDLGITEMTEMPLATEW(void)
2609 {
2610     /* PDLGITEMTEMPLATEW */
2611     TEST_TYPE_SIZE   (PDLGITEMTEMPLATEW, 8)
2612     TEST_TYPE_ALIGN  (PDLGITEMTEMPLATEW, 8)
2613     TEST_TARGET_SIZE (PDLGITEMTEMPLATEW, 18)
2614     TEST_TARGET_ALIGN(PDLGITEMTEMPLATEW, 2)
2615 }
2616 
2617 static void test_pack_PDRAWITEMSTRUCT(void)
2618 {
2619     /* PDRAWITEMSTRUCT */
2620     TEST_TYPE_SIZE   (PDRAWITEMSTRUCT, 8)
2621     TEST_TYPE_ALIGN  (PDRAWITEMSTRUCT, 8)
2622     TEST_TARGET_SIZE (PDRAWITEMSTRUCT, 64)
2623     TEST_TARGET_ALIGN(PDRAWITEMSTRUCT, 8)
2624 }
2625 
2626 static void test_pack_PEVENTMSG(void)
2627 {
2628     /* PEVENTMSG */
2629     TEST_TYPE_SIZE   (PEVENTMSG, 8)
2630     TEST_TYPE_ALIGN  (PEVENTMSG, 8)
2631     TEST_TARGET_SIZE (PEVENTMSG, 24)
2632     TEST_TARGET_ALIGN(PEVENTMSG, 8)
2633 }
2634 
2635 static void test_pack_PFLASHWINFO(void)
2636 {
2637     /* PFLASHWINFO */
2638     TEST_TYPE_SIZE   (PFLASHWINFO, 8)
2639     TEST_TYPE_ALIGN  (PFLASHWINFO, 8)
2640     TEST_TARGET_SIZE (PFLASHWINFO, 32)
2641     TEST_TARGET_ALIGN(PFLASHWINFO, 8)
2642 }
2643 
2644 static void test_pack_PGUITHREADINFO(void)
2645 {
2646     /* PGUITHREADINFO */
2647     TEST_TYPE_SIZE   (PGUITHREADINFO, 8)
2648     TEST_TYPE_ALIGN  (PGUITHREADINFO, 8)
2649     TEST_TARGET_SIZE (PGUITHREADINFO, 72)
2650     TEST_TARGET_ALIGN(PGUITHREADINFO, 8)
2651 }
2652 
2653 static void test_pack_PHARDWAREHOOKSTRUCT(void)
2654 {
2655     /* PHARDWAREHOOKSTRUCT */
2656     TEST_TYPE_SIZE   (PHARDWAREHOOKSTRUCT, 8)
2657     TEST_TYPE_ALIGN  (PHARDWAREHOOKSTRUCT, 8)
2658     TEST_TARGET_SIZE (PHARDWAREHOOKSTRUCT, 32)
2659     TEST_TARGET_ALIGN(PHARDWAREHOOKSTRUCT, 8)
2660 }
2661 
2662 static void test_pack_PHARDWAREINPUT(void)
2663 {
2664     /* PHARDWAREINPUT */
2665     TEST_TYPE_SIZE   (PHARDWAREINPUT, 8)
2666     TEST_TYPE_ALIGN  (PHARDWAREINPUT, 8)
2667     TEST_TARGET_SIZE (PHARDWAREINPUT, 8)
2668     TEST_TARGET_ALIGN(PHARDWAREINPUT, 4)
2669 }
2670 
2671 static void test_pack_PHDEVNOTIFY(void)
2672 {
2673     /* PHDEVNOTIFY */
2674     TEST_TYPE_SIZE   (PHDEVNOTIFY, 8)
2675     TEST_TYPE_ALIGN  (PHDEVNOTIFY, 8)
2676     TEST_TARGET_SIZE (PHDEVNOTIFY, 8)
2677     TEST_TARGET_ALIGN(PHDEVNOTIFY, 8)
2678 }
2679 
2680 static void test_pack_PHELPWININFOA(void)
2681 {
2682     /* PHELPWININFOA */
2683     TEST_TYPE_SIZE   (PHELPWININFOA, 8)
2684     TEST_TYPE_ALIGN  (PHELPWININFOA, 8)
2685     TEST_TARGET_SIZE (PHELPWININFOA, 28)
2686     TEST_TARGET_ALIGN(PHELPWININFOA, 4)
2687 }
2688 
2689 static void test_pack_PHELPWININFOW(void)
2690 {
2691     /* PHELPWININFOW */
2692     TEST_TYPE_SIZE   (PHELPWININFOW, 8)
2693     TEST_TYPE_ALIGN  (PHELPWININFOW, 8)
2694     TEST_TARGET_SIZE (PHELPWININFOW, 28)
2695     TEST_TARGET_ALIGN(PHELPWININFOW, 4)
2696 }
2697 
2698 static void test_pack_PICONINFO(void)
2699 {
2700     /* PICONINFO */
2701     TEST_TYPE_SIZE   (PICONINFO, 8)
2702     TEST_TYPE_ALIGN  (PICONINFO, 8)
2703     TEST_TARGET_SIZE (PICONINFO, 32)
2704     TEST_TARGET_ALIGN(PICONINFO, 8)
2705 }
2706 
2707 static void test_pack_PICONMETRICSA(void)
2708 {
2709     /* PICONMETRICSA */
2710     TEST_TYPE_SIZE   (PICONMETRICSA, 8)
2711     TEST_TYPE_ALIGN  (PICONMETRICSA, 8)
2712     TEST_TARGET_SIZE (PICONMETRICSA, 76)
2713     TEST_TARGET_ALIGN(PICONMETRICSA, 4)
2714 }
2715 
2716 static void test_pack_PICONMETRICSW(void)
2717 {
2718     /* PICONMETRICSW */
2719     TEST_TYPE_SIZE   (PICONMETRICSW, 8)
2720     TEST_TYPE_ALIGN  (PICONMETRICSW, 8)
2721     TEST_TARGET_SIZE (PICONMETRICSW, 108)
2722     TEST_TARGET_ALIGN(PICONMETRICSW, 4)
2723 }
2724 
2725 static void test_pack_PINPUT(void)
2726 {
2727     /* PINPUT */
2728     TEST_TYPE_SIZE   (PINPUT, 8)
2729     TEST_TYPE_ALIGN  (PINPUT, 8)
2730 }
2731 
2732 static void test_pack_PKBDLLHOOKSTRUCT(void)
2733 {
2734     /* PKBDLLHOOKSTRUCT */
2735     TEST_TYPE_SIZE   (PKBDLLHOOKSTRUCT, 8)
2736     TEST_TYPE_ALIGN  (PKBDLLHOOKSTRUCT, 8)
2737     TEST_TARGET_SIZE (PKBDLLHOOKSTRUCT, 24)
2738     TEST_TARGET_ALIGN(PKBDLLHOOKSTRUCT, 8)
2739 }
2740 
2741 static void test_pack_PKEYBDINPUT(void)
2742 {
2743     /* PKEYBDINPUT */
2744     TEST_TYPE_SIZE   (PKEYBDINPUT, 8)
2745     TEST_TYPE_ALIGN  (PKEYBDINPUT, 8)
2746     TEST_TARGET_SIZE (PKEYBDINPUT, 24)
2747     TEST_TARGET_ALIGN(PKEYBDINPUT, 8)
2748 }
2749 
2750 static void test_pack_PMDINEXTMENU(void)
2751 {
2752     /* PMDINEXTMENU */
2753     TEST_TYPE_SIZE   (PMDINEXTMENU, 8)
2754     TEST_TYPE_ALIGN  (PMDINEXTMENU, 8)
2755     TEST_TARGET_SIZE (PMDINEXTMENU, 24)
2756     TEST_TARGET_ALIGN(PMDINEXTMENU, 8)
2757 }
2758 
2759 static void test_pack_PMEASUREITEMSTRUCT(void)
2760 {
2761     /* PMEASUREITEMSTRUCT */
2762     TEST_TYPE_SIZE   (PMEASUREITEMSTRUCT, 8)
2763     TEST_TYPE_ALIGN  (PMEASUREITEMSTRUCT, 8)
2764     TEST_TARGET_SIZE (PMEASUREITEMSTRUCT, 32)
2765     TEST_TARGET_ALIGN(PMEASUREITEMSTRUCT, 8)
2766 }
2767 
2768 static void test_pack_PMENUITEMTEMPLATE(void)
2769 {
2770     /* PMENUITEMTEMPLATE */
2771     TEST_TYPE_SIZE   (PMENUITEMTEMPLATE, 8)
2772     TEST_TYPE_ALIGN  (PMENUITEMTEMPLATE, 8)
2773     TEST_TARGET_SIZE (PMENUITEMTEMPLATE, 6)
2774     TEST_TARGET_ALIGN(PMENUITEMTEMPLATE, 2)
2775 }
2776 
2777 static void test_pack_PMENUITEMTEMPLATEHEADER(void)
2778 {
2779     /* PMENUITEMTEMPLATEHEADER */
2780     TEST_TYPE_SIZE   (PMENUITEMTEMPLATEHEADER, 8)
2781     TEST_TYPE_ALIGN  (PMENUITEMTEMPLATEHEADER, 8)
2782     TEST_TARGET_SIZE (PMENUITEMTEMPLATEHEADER, 4)
2783     TEST_TARGET_ALIGN(PMENUITEMTEMPLATEHEADER, 2)
2784 }
2785 
2786 static void test_pack_PMINIMIZEDMETRICS(void)
2787 {
2788     /* PMINIMIZEDMETRICS */
2789     TEST_TYPE_SIZE   (PMINIMIZEDMETRICS, 8)
2790     TEST_TYPE_ALIGN  (PMINIMIZEDMETRICS, 8)
2791     TEST_TARGET_SIZE (PMINIMIZEDMETRICS, 20)
2792     TEST_TARGET_ALIGN(PMINIMIZEDMETRICS, 4)
2793 }
2794 
2795 static void test_pack_PMINMAXINFO(void)
2796 {
2797     /* PMINMAXINFO */
2798     TEST_TYPE_SIZE   (PMINMAXINFO, 8)
2799     TEST_TYPE_ALIGN  (PMINMAXINFO, 8)
2800     TEST_TARGET_SIZE (PMINMAXINFO, 40)
2801     TEST_TARGET_ALIGN(PMINMAXINFO, 4)
2802 }
2803 
2804 static void test_pack_PMOUSEHOOKSTRUCT(void)
2805 {
2806     /* PMOUSEHOOKSTRUCT */
2807     TEST_TYPE_SIZE   (PMOUSEHOOKSTRUCT, 8)
2808     TEST_TYPE_ALIGN  (PMOUSEHOOKSTRUCT, 8)
2809     TEST_TARGET_SIZE (PMOUSEHOOKSTRUCT, 32)
2810     TEST_TARGET_ALIGN(PMOUSEHOOKSTRUCT, 8)
2811 }
2812 
2813 static void test_pack_PMOUSEINPUT(void)
2814 {
2815     /* PMOUSEINPUT */
2816     TEST_TYPE_SIZE   (PMOUSEINPUT, 8)
2817     TEST_TYPE_ALIGN  (PMOUSEINPUT, 8)
2818     TEST_TARGET_SIZE (PMOUSEINPUT, 32)
2819     TEST_TARGET_ALIGN(PMOUSEINPUT, 8)
2820 }
2821 
2822 static void test_pack_PMSG(void)
2823 {
2824     /* PMSG */
2825     TEST_TYPE_SIZE   (PMSG, 8)
2826     TEST_TYPE_ALIGN  (PMSG, 8)
2827     TEST_TARGET_SIZE (PMSG, 48)
2828     TEST_TARGET_ALIGN(PMSG, 8)
2829 }
2830 
2831 static void test_pack_PMSGBOXPARAMSA(void)
2832 {
2833     /* PMSGBOXPARAMSA */
2834     TEST_TYPE_SIZE   (PMSGBOXPARAMSA, 8)
2835     TEST_TYPE_ALIGN  (PMSGBOXPARAMSA, 8)
2836     TEST_TARGET_SIZE (PMSGBOXPARAMSA, 80)
2837     TEST_TARGET_ALIGN(PMSGBOXPARAMSA, 8)
2838 }
2839 
2840 static void test_pack_PMSGBOXPARAMSW(void)
2841 {
2842     /* PMSGBOXPARAMSW */
2843     TEST_TYPE_SIZE   (PMSGBOXPARAMSW, 8)
2844     TEST_TYPE_ALIGN  (PMSGBOXPARAMSW, 8)
2845     TEST_TARGET_SIZE (PMSGBOXPARAMSW, 80)
2846     TEST_TARGET_ALIGN(PMSGBOXPARAMSW, 8)
2847 }
2848 
2849 static void test_pack_PMSLLHOOKSTRUCT(void)
2850 {
2851     /* PMSLLHOOKSTRUCT */
2852     TEST_TYPE_SIZE   (PMSLLHOOKSTRUCT, 8)
2853     TEST_TYPE_ALIGN  (PMSLLHOOKSTRUCT, 8)
2854     TEST_TARGET_SIZE (PMSLLHOOKSTRUCT, 32)
2855     TEST_TARGET_ALIGN(PMSLLHOOKSTRUCT, 8)
2856 }
2857 
2858 static void test_pack_PMULTIKEYHELPA(void)
2859 {
2860     /* PMULTIKEYHELPA */
2861     TEST_TYPE_SIZE   (PMULTIKEYHELPA, 8)
2862     TEST_TYPE_ALIGN  (PMULTIKEYHELPA, 8)
2863     TEST_TARGET_SIZE (PMULTIKEYHELPA, 8)
2864     TEST_TARGET_ALIGN(PMULTIKEYHELPA, 4)
2865 }
2866 
2867 static void test_pack_PMULTIKEYHELPW(void)
2868 {
2869     /* PMULTIKEYHELPW */
2870     TEST_TYPE_SIZE   (PMULTIKEYHELPW, 8)
2871     TEST_TYPE_ALIGN  (PMULTIKEYHELPW, 8)
2872     TEST_TARGET_SIZE (PMULTIKEYHELPW, 8)
2873     TEST_TARGET_ALIGN(PMULTIKEYHELPW, 4)
2874 }
2875 
2876 static void test_pack_PNONCLIENTMETRICSA(void)
2877 {
2878     /* PNONCLIENTMETRICSA */
2879     TEST_TYPE_SIZE   (PNONCLIENTMETRICSA, 8)
2880     TEST_TYPE_ALIGN  (PNONCLIENTMETRICSA, 8)
2881     TEST_TARGET_SIZE (PNONCLIENTMETRICSA, 344)
2882     TEST_TARGET_ALIGN(PNONCLIENTMETRICSA, 4)
2883 }
2884 
2885 static void test_pack_PNONCLIENTMETRICSW(void)
2886 {
2887     /* PNONCLIENTMETRICSW */
2888     TEST_TYPE_SIZE   (PNONCLIENTMETRICSW, 8)
2889     TEST_TYPE_ALIGN  (PNONCLIENTMETRICSW, 8)
2890     TEST_TARGET_SIZE (PNONCLIENTMETRICSW, 504)
2891     TEST_TARGET_ALIGN(PNONCLIENTMETRICSW, 4)
2892 }
2893 
2894 static void test_pack_PPAINTSTRUCT(void)
2895 {
2896     /* PPAINTSTRUCT */
2897     TEST_TYPE_SIZE   (PPAINTSTRUCT, 8)
2898     TEST_TYPE_ALIGN  (PPAINTSTRUCT, 8)
2899     TEST_TARGET_SIZE (PPAINTSTRUCT, 72)
2900     TEST_TARGET_ALIGN(PPAINTSTRUCT, 8)
2901 }
2902 
2903 static void test_pack_PROPENUMPROCA(void)
2904 {
2905     /* PROPENUMPROCA */
2906     TEST_TYPE_SIZE   (PROPENUMPROCA, 8)
2907     TEST_TYPE_ALIGN  (PROPENUMPROCA, 8)
2908 }
2909 
2910 static void test_pack_PROPENUMPROCEXA(void)
2911 {
2912     /* PROPENUMPROCEXA */
2913     TEST_TYPE_SIZE   (PROPENUMPROCEXA, 8)
2914     TEST_TYPE_ALIGN  (PROPENUMPROCEXA, 8)
2915 }
2916 
2917 static void test_pack_PROPENUMPROCEXW(void)
2918 {
2919     /* PROPENUMPROCEXW */
2920     TEST_TYPE_SIZE   (PROPENUMPROCEXW, 8)
2921     TEST_TYPE_ALIGN  (PROPENUMPROCEXW, 8)
2922 }
2923 
2924 static void test_pack_PROPENUMPROCW(void)
2925 {
2926     /* PROPENUMPROCW */
2927     TEST_TYPE_SIZE   (PROPENUMPROCW, 8)
2928     TEST_TYPE_ALIGN  (PROPENUMPROCW, 8)
2929 }
2930 
2931 static void test_pack_PTITLEBARINFO(void)
2932 {
2933     /* PTITLEBARINFO */
2934     TEST_TYPE_SIZE   (PTITLEBARINFO, 8)
2935     TEST_TYPE_ALIGN  (PTITLEBARINFO, 8)
2936     TEST_TARGET_SIZE (PTITLEBARINFO, 44)
2937     TEST_TARGET_ALIGN(PTITLEBARINFO, 4)
2938 }
2939 
2940 static void test_pack_PUSEROBJECTFLAGS(void)
2941 {
2942     /* PUSEROBJECTFLAGS */
2943     TEST_TYPE_SIZE   (PUSEROBJECTFLAGS, 8)
2944     TEST_TYPE_ALIGN  (PUSEROBJECTFLAGS, 8)
2945     TEST_TARGET_SIZE (PUSEROBJECTFLAGS, 12)
2946     TEST_TARGET_ALIGN(PUSEROBJECTFLAGS, 4)
2947 }
2948 
2949 static void test_pack_PWINDOWINFO(void)
2950 {
2951     /* PWINDOWINFO */
2952     TEST_TYPE_SIZE   (PWINDOWINFO, 8)
2953     TEST_TYPE_ALIGN  (PWINDOWINFO, 8)
2954     TEST_TARGET_SIZE (PWINDOWINFO, 60)
2955     TEST_TARGET_ALIGN(PWINDOWINFO, 4)
2956 }
2957 
2958 static void test_pack_PWINDOWPLACEMENT(void)
2959 {
2960     /* PWINDOWPLACEMENT */
2961     TEST_TYPE_SIZE   (PWINDOWPLACEMENT, 8)
2962     TEST_TYPE_ALIGN  (PWINDOWPLACEMENT, 8)
2963     TEST_TARGET_SIZE (PWINDOWPLACEMENT, 44)
2964     TEST_TARGET_ALIGN(PWINDOWPLACEMENT, 4)
2965 }
2966 
2967 static void test_pack_PWINDOWPOS(void)
2968 {
2969     /* PWINDOWPOS */
2970     TEST_TYPE_SIZE   (PWINDOWPOS, 8)
2971     TEST_TYPE_ALIGN  (PWINDOWPOS, 8)
2972     TEST_TARGET_SIZE (PWINDOWPOS, 40)
2973     TEST_TARGET_ALIGN(PWINDOWPOS, 8)
2974 }
2975 
2976 static void test_pack_PWNDCLASSA(void)
2977 {
2978     /* PWNDCLASSA */
2979     TEST_TYPE_SIZE   (PWNDCLASSA, 8)
2980     TEST_TYPE_ALIGN  (PWNDCLASSA, 8)
2981     TEST_TARGET_SIZE (PWNDCLASSA, 72)
2982     TEST_TARGET_ALIGN(PWNDCLASSA, 8)
2983 }
2984 
2985 static void test_pack_PWNDCLASSEXA(void)
2986 {
2987     /* PWNDCLASSEXA */
2988     TEST_TYPE_SIZE   (PWNDCLASSEXA, 8)
2989     TEST_TYPE_ALIGN  (PWNDCLASSEXA, 8)
2990     TEST_TARGET_SIZE (PWNDCLASSEXA, 80)
2991     TEST_TARGET_ALIGN(PWNDCLASSEXA, 8)
2992 }
2993 
2994 static void test_pack_PWNDCLASSEXW(void)
2995 {
2996     /* PWNDCLASSEXW */
2997     TEST_TYPE_SIZE   (PWNDCLASSEXW, 8)
2998     TEST_TYPE_ALIGN  (PWNDCLASSEXW, 8)
2999     TEST_TARGET_SIZE (PWNDCLASSEXW, 80)
3000     TEST_TARGET_ALIGN(PWNDCLASSEXW, 8)
3001 }
3002 
3003 static void test_pack_PWNDCLASSW(void)
3004 {
3005     /* PWNDCLASSW */
3006     TEST_TYPE_SIZE   (PWNDCLASSW, 8)
3007     TEST_TYPE_ALIGN  (PWNDCLASSW, 8)
3008     TEST_TARGET_SIZE (PWNDCLASSW, 72)
3009     TEST_TARGET_ALIGN(PWNDCLASSW, 8)
3010 }
3011 
3012 static void test_pack_SCROLLINFO(void)
3013 {
3014     /* SCROLLINFO */
3015     TEST_TYPE_SIZE   (SCROLLINFO, 28)
3016     TEST_TYPE_ALIGN  (SCROLLINFO, 4)
3017     TEST_FIELD_SIZE  (SCROLLINFO, cbSize, 4)
3018     TEST_FIELD_ALIGN (SCROLLINFO, cbSize, 4)
3019     TEST_FIELD_OFFSET(SCROLLINFO, cbSize, 0)
3020     TEST_FIELD_SIZE  (SCROLLINFO, fMask, 4)
3021     TEST_FIELD_ALIGN (SCROLLINFO, fMask, 4)
3022     TEST_FIELD_OFFSET(SCROLLINFO, fMask, 4)
3023     TEST_FIELD_SIZE  (SCROLLINFO, nMin, 4)
3024     TEST_FIELD_ALIGN (SCROLLINFO, nMin, 4)
3025     TEST_FIELD_OFFSET(SCROLLINFO, nMin, 8)
3026     TEST_FIELD_SIZE  (SCROLLINFO, nMax, 4)
3027     TEST_FIELD_ALIGN (SCROLLINFO, nMax, 4)
3028     TEST_FIELD_OFFSET(SCROLLINFO, nMax, 12)
3029     TEST_FIELD_SIZE  (SCROLLINFO, nPage, 4)
3030     TEST_FIELD_ALIGN (SCROLLINFO, nPage, 4)
3031     TEST_FIELD_OFFSET(SCROLLINFO, nPage, 16)
3032     TEST_FIELD_SIZE  (SCROLLINFO, nPos, 4)
3033     TEST_FIELD_ALIGN (SCROLLINFO, nPos, 4)
3034     TEST_FIELD_OFFSET(SCROLLINFO, nPos, 20)
3035     TEST_FIELD_SIZE  (SCROLLINFO, nTrackPos, 4)
3036     TEST_FIELD_ALIGN (SCROLLINFO, nTrackPos, 4)
3037     TEST_FIELD_OFFSET(SCROLLINFO, nTrackPos, 24)
3038 }
3039 
3040 static void test_pack_SENDASYNCPROC(void)
3041 {
3042     /* SENDASYNCPROC */
3043     TEST_TYPE_SIZE   (SENDASYNCPROC, 8)
3044     TEST_TYPE_ALIGN  (SENDASYNCPROC, 8)
3045 }
3046 
3047 static void test_pack_SERIALKEYSA(void)
3048 {
3049     /* SERIALKEYSA */
3050     TEST_TYPE_SIZE   (SERIALKEYSA, 40)
3051     TEST_TYPE_ALIGN  (SERIALKEYSA, 8)
3052     TEST_FIELD_SIZE  (SERIALKEYSA, cbSize, 4)
3053     TEST_FIELD_ALIGN (SERIALKEYSA, cbSize, 4)
3054     TEST_FIELD_OFFSET(SERIALKEYSA, cbSize, 0)
3055     TEST_FIELD_SIZE  (SERIALKEYSA, dwFlags, 4)
3056     TEST_FIELD_ALIGN (SERIALKEYSA, dwFlags, 4)
3057     TEST_FIELD_OFFSET(SERIALKEYSA, dwFlags, 4)
3058     TEST_FIELD_SIZE  (SERIALKEYSA, lpszActivePort, 8)
3059     TEST_FIELD_ALIGN (SERIALKEYSA, lpszActivePort, 8)
3060     TEST_FIELD_OFFSET(SERIALKEYSA, lpszActivePort, 8)
3061     TEST_FIELD_SIZE  (SERIALKEYSA, lpszPort, 8)
3062     TEST_FIELD_ALIGN (SERIALKEYSA, lpszPort, 8)
3063     TEST_FIELD_OFFSET(SERIALKEYSA, lpszPort, 16)
3064     TEST_FIELD_SIZE  (SERIALKEYSA, iBaudRate, 4)
3065     TEST_FIELD_ALIGN (SERIALKEYSA, iBaudRate, 4)
3066     TEST_FIELD_OFFSET(SERIALKEYSA, iBaudRate, 24)
3067     TEST_FIELD_SIZE  (SERIALKEYSA, iPortState, 4)
3068     TEST_FIELD_ALIGN (SERIALKEYSA, iPortState, 4)
3069     TEST_FIELD_OFFSET(SERIALKEYSA, iPortState, 28)
3070     TEST_FIELD_SIZE  (SERIALKEYSA, iActive, 4)
3071     TEST_FIELD_ALIGN (SERIALKEYSA, iActive, 4)
3072     TEST_FIELD_OFFSET(SERIALKEYSA, iActive, 32)
3073 }
3074 
3075 static void test_pack_SERIALKEYSW(void)
3076 {
3077     /* SERIALKEYSW */
3078     TEST_TYPE_SIZE   (SERIALKEYSW, 40)
3079     TEST_TYPE_ALIGN  (SERIALKEYSW, 8)
3080     TEST_FIELD_SIZE  (SERIALKEYSW, cbSize, 4)
3081     TEST_FIELD_ALIGN (SERIALKEYSW, cbSize, 4)
3082     TEST_FIELD_OFFSET(SERIALKEYSW, cbSize, 0)
3083     TEST_FIELD_SIZE  (SERIALKEYSW, dwFlags, 4)
3084     TEST_FIELD_ALIGN (SERIALKEYSW, dwFlags, 4)
3085     TEST_FIELD_OFFSET(SERIALKEYSW, dwFlags, 4)
3086     TEST_FIELD_SIZE  (SERIALKEYSW, lpszActivePort, 8)
3087     TEST_FIELD_ALIGN (SERIALKEYSW, lpszActivePort, 8)
3088     TEST_FIELD_OFFSET(SERIALKEYSW, lpszActivePort, 8)
3089     TEST_FIELD_SIZE  (SERIALKEYSW, lpszPort, 8)
3090     TEST_FIELD_ALIGN (SERIALKEYSW, lpszPort, 8)
3091     TEST_FIELD_OFFSET(SERIALKEYSW, lpszPort, 16)
3092     TEST_FIELD_SIZE  (SERIALKEYSW, iBaudRate, 4)
3093     TEST_FIELD_ALIGN (SERIALKEYSW, iBaudRate, 4)
3094     TEST_FIELD_OFFSET(SERIALKEYSW, iBaudRate, 24)
3095     TEST_FIELD_SIZE  (SERIALKEYSW, iPortState, 4)
3096     TEST_FIELD_ALIGN (SERIALKEYSW, iPortState, 4)
3097     TEST_FIELD_OFFSET(SERIALKEYSW, iPortState, 28)
3098     TEST_FIELD_SIZE  (SERIALKEYSW, iActive, 4)
3099     TEST_FIELD_ALIGN (SERIALKEYSW, iActive, 4)
3100     TEST_FIELD_OFFSET(SERIALKEYSW, iActive, 32)
3101 }
3102 
3103 static void test_pack_SOUNDSENTRYA(void)
3104 {
3105     /* SOUNDSENTRYA */
3106     TEST_TYPE_SIZE   (SOUNDSENTRYA, 56)
3107     TEST_TYPE_ALIGN  (SOUNDSENTRYA, 8)
3108     TEST_FIELD_SIZE  (SOUNDSENTRYA, cbSize, 4)
3109     TEST_FIELD_ALIGN (SOUNDSENTRYA, cbSize, 4)
3110     TEST_FIELD_OFFSET(SOUNDSENTRYA, cbSize, 0)
3111     TEST_FIELD_SIZE  (SOUNDSENTRYA, dwFlags, 4)
3112     TEST_FIELD_ALIGN (SOUNDSENTRYA, dwFlags, 4)
3113     TEST_FIELD_OFFSET(SOUNDSENTRYA, dwFlags, 4)
3114     TEST_FIELD_SIZE  (SOUNDSENTRYA, iFSTextEffect, 4)
3115     TEST_FIELD_ALIGN (SOUNDSENTRYA, iFSTextEffect, 4)
3116     TEST_FIELD_OFFSET(SOUNDSENTRYA, iFSTextEffect, 8)
3117     TEST_FIELD_SIZE  (SOUNDSENTRYA, iFSTextEffectMSec, 4)
3118     TEST_FIELD_ALIGN (SOUNDSENTRYA, iFSTextEffectMSec, 4)
3119     TEST_FIELD_OFFSET(SOUNDSENTRYA, iFSTextEffectMSec, 12)
3120     TEST_FIELD_SIZE  (SOUNDSENTRYA, iFSTextEffectColorBits, 4)
3121     TEST_FIELD_ALIGN (SOUNDSENTRYA, iFSTextEffectColorBits, 4)
3122     TEST_FIELD_OFFSET(SOUNDSENTRYA, iFSTextEffectColorBits, 16)
3123     TEST_FIELD_SIZE  (SOUNDSENTRYA, iFSGrafEffect, 4)
3124     TEST_FIELD_ALIGN (SOUNDSENTRYA, iFSGrafEffect, 4)
3125     TEST_FIELD_OFFSET(SOUNDSENTRYA, iFSGrafEffect, 20)
3126     TEST_FIELD_SIZE  (SOUNDSENTRYA, iFSGrafEffectMSec, 4)
3127     TEST_FIELD_ALIGN (SOUNDSENTRYA, iFSGrafEffectMSec, 4)
3128     TEST_FIELD_OFFSET(SOUNDSENTRYA, iFSGrafEffectMSec, 24)
3129     TEST_FIELD_SIZE  (SOUNDSENTRYA, iFSGrafEffectColor, 4)
3130     TEST_FIELD_ALIGN (SOUNDSENTRYA, iFSGrafEffectColor, 4)
3131     TEST_FIELD_OFFSET(SOUNDSENTRYA, iFSGrafEffectColor, 28)
3132     TEST_FIELD_SIZE  (SOUNDSENTRYA, iWindowsEffect, 4)
3133     TEST_FIELD_ALIGN (SOUNDSENTRYA, iWindowsEffect, 4)
3134     TEST_FIELD_OFFSET(SOUNDSENTRYA, iWindowsEffect, 32)
3135     TEST_FIELD_SIZE  (SOUNDSENTRYA, iWindowsEffectMSec, 4)
3136     TEST_FIELD_ALIGN (SOUNDSENTRYA, iWindowsEffectMSec, 4)
3137     TEST_FIELD_OFFSET(SOUNDSENTRYA, iWindowsEffectMSec, 36)
3138     TEST_FIELD_SIZE  (SOUNDSENTRYA, lpszWindowsEffectDLL, 8)
3139     TEST_FIELD_ALIGN (SOUNDSENTRYA, lpszWindowsEffectDLL, 8)
3140     TEST_FIELD_OFFSET(SOUNDSENTRYA, lpszWindowsEffectDLL, 40)
3141     TEST_FIELD_SIZE  (SOUNDSENTRYA, iWindowsEffectOrdinal, 4)
3142     TEST_FIELD_ALIGN (SOUNDSENTRYA, iWindowsEffectOrdinal, 4)
3143     TEST_FIELD_OFFSET(SOUNDSENTRYA, iWindowsEffectOrdinal, 48)
3144 }
3145 
3146 static void test_pack_SOUNDSENTRYW(void)
3147 {
3148     /* SOUNDSENTRYW */
3149     TEST_TYPE_SIZE   (SOUNDSENTRYW, 56)
3150     TEST_TYPE_ALIGN  (SOUNDSENTRYW, 8)
3151     TEST_FIELD_SIZE  (SOUNDSENTRYW, cbSize, 4)
3152     TEST_FIELD_ALIGN (SOUNDSENTRYW, cbSize, 4)
3153     TEST_FIELD_OFFSET(SOUNDSENTRYW, cbSize, 0)
3154     TEST_FIELD_SIZE  (SOUNDSENTRYW, dwFlags, 4)
3155     TEST_FIELD_ALIGN (SOUNDSENTRYW, dwFlags, 4)
3156     TEST_FIELD_OFFSET(SOUNDSENTRYW, dwFlags, 4)
3157     TEST_FIELD_SIZE  (SOUNDSENTRYW, iFSTextEffect, 4)
3158     TEST_FIELD_ALIGN (SOUNDSENTRYW, iFSTextEffect, 4)
3159     TEST_FIELD_OFFSET(SOUNDSENTRYW, iFSTextEffect, 8)
3160     TEST_FIELD_SIZE  (SOUNDSENTRYW, iFSTextEffectMSec, 4)
3161     TEST_FIELD_ALIGN (SOUNDSENTRYW, iFSTextEffectMSec, 4)
3162     TEST_FIELD_OFFSET(SOUNDSENTRYW, iFSTextEffectMSec, 12)
3163     TEST_FIELD_SIZE  (SOUNDSENTRYW, iFSTextEffectColorBits, 4)
3164     TEST_FIELD_ALIGN (SOUNDSENTRYW, iFSTextEffectColorBits, 4)
3165     TEST_FIELD_OFFSET(SOUNDSENTRYW, iFSTextEffectColorBits, 16)
3166     TEST_FIELD_SIZE  (SOUNDSENTRYW, iFSGrafEffect, 4)
3167     TEST_FIELD_ALIGN (SOUNDSENTRYW, iFSGrafEffect, 4)
3168     TEST_FIELD_OFFSET(SOUNDSENTRYW, iFSGrafEffect, 20)
3169     TEST_FIELD_SIZE  (SOUNDSENTRYW, iFSGrafEffectMSec, 4)
3170     TEST_FIELD_ALIGN (SOUNDSENTRYW, iFSGrafEffectMSec, 4)
3171     TEST_FIELD_OFFSET(SOUNDSENTRYW, iFSGrafEffectMSec, 24)
3172     TEST_FIELD_SIZE  (SOUNDSENTRYW, iFSGrafEffectColor, 4)
3173     TEST_FIELD_ALIGN (SOUNDSENTRYW, iFSGrafEffectColor, 4)
3174     TEST_FIELD_OFFSET(SOUNDSENTRYW, iFSGrafEffectColor, 28)
3175     TEST_FIELD_SIZE  (SOUNDSENTRYW, iWindowsEffect, 4)
3176     TEST_FIELD_ALIGN (SOUNDSENTRYW, iWindowsEffect, 4)
3177     TEST_FIELD_OFFSET(SOUNDSENTRYW, iWindowsEffect, 32)
3178     TEST_FIELD_SIZE  (SOUNDSENTRYW, iWindowsEffectMSec, 4)
3179     TEST_FIELD_ALIGN (SOUNDSENTRYW, iWindowsEffectMSec, 4)
3180     TEST_FIELD_OFFSET(SOUNDSENTRYW, iWindowsEffectMSec, 36)
3181     TEST_FIELD_SIZE  (SOUNDSENTRYW, lpszWindowsEffectDLL, 8)
3182     TEST_FIELD_ALIGN (SOUNDSENTRYW, lpszWindowsEffectDLL, 8)
3183     TEST_FIELD_OFFSET(SOUNDSENTRYW, lpszWindowsEffectDLL, 40)
3184     TEST_FIELD_SIZE  (SOUNDSENTRYW, iWindowsEffectOrdinal, 4)
3185     TEST_FIELD_ALIGN (SOUNDSENTRYW, iWindowsEffectOrdinal, 4)
3186     TEST_FIELD_OFFSET(SOUNDSENTRYW, iWindowsEffectOrdinal, 48)
3187 }
3188 
3189 static void test_pack_STICKYKEYS(void)
3190 {
3191     /* STICKYKEYS */
3192     TEST_TYPE_SIZE   (STICKYKEYS, 8)
3193     TEST_TYPE_ALIGN  (STICKYKEYS, 4)
3194     TEST_FIELD_SIZE  (STICKYKEYS, cbSize, 4)
3195     TEST_FIELD_ALIGN (STICKYKEYS, cbSize, 4)
3196     TEST_FIELD_OFFSET(STICKYKEYS, cbSize, 0)
3197     TEST_FIELD_SIZE  (STICKYKEYS, dwFlags, 4)
3198     TEST_FIELD_ALIGN (STICKYKEYS, dwFlags, 4)
3199     TEST_FIELD_OFFSET(STICKYKEYS, dwFlags, 4)
3200 }
3201 
3202 static void test_pack_STYLESTRUCT(void)
3203 {
3204     /* STYLESTRUCT */
3205     TEST_TYPE_SIZE   (STYLESTRUCT, 8)
3206     TEST_TYPE_ALIGN  (STYLESTRUCT, 4)
3207     TEST_FIELD_SIZE  (STYLESTRUCT, styleOld, 4)
3208     TEST_FIELD_ALIGN (STYLESTRUCT, styleOld, 4)
3209     TEST_FIELD_OFFSET(STYLESTRUCT, styleOld, 0)
3210     TEST_FIELD_SIZE  (STYLESTRUCT, styleNew, 4)
3211     TEST_FIELD_ALIGN (STYLESTRUCT, styleNew, 4)
3212     TEST_FIELD_OFFSET(STYLESTRUCT, styleNew, 4)
3213 }
3214 
3215 static void test_pack_TIMERPROC(void)
3216 {
3217     /* TIMERPROC */
3218     TEST_TYPE_SIZE   (TIMERPROC, 8)
3219     TEST_TYPE_ALIGN  (TIMERPROC, 8)
3220 }
3221 
3222 static void test_pack_TITLEBARINFO(void)
3223 {
3224     /* TITLEBARINFO */
3225     TEST_TYPE_SIZE   (TITLEBARINFO, 44)
3226     TEST_TYPE_ALIGN  (TITLEBARINFO, 4)
3227     TEST_FIELD_SIZE  (TITLEBARINFO, cbSize, 4)
3228     TEST_FIELD_ALIGN (TITLEBARINFO, cbSize, 4)
3229     TEST_FIELD_OFFSET(TITLEBARINFO, cbSize, 0)
3230     TEST_FIELD_SIZE  (TITLEBARINFO, rcTitleBar, 16)
3231     TEST_FIELD_ALIGN (TITLEBARINFO, rcTitleBar, 4)
3232     TEST_FIELD_OFFSET(TITLEBARINFO, rcTitleBar, 4)
3233     TEST_FIELD_SIZE  (TITLEBARINFO, rgstate, 24)
3234     TEST_FIELD_ALIGN (TITLEBARINFO, rgstate, 4)
3235     TEST_FIELD_OFFSET(TITLEBARINFO, rgstate, 20)
3236 }
3237 
3238 static void test_pack_TOGGLEKEYS(void)
3239 {
3240     /* TOGGLEKEYS */
3241     TEST_TYPE_SIZE   (TOGGLEKEYS, 8)
3242     TEST_TYPE_ALIGN  (TOGGLEKEYS, 4)
3243     TEST_FIELD_SIZE  (TOGGLEKEYS, cbSize, 4)
3244     TEST_FIELD_ALIGN (TOGGLEKEYS, cbSize, 4)
3245     TEST_FIELD_OFFSET(TOGGLEKEYS, cbSize, 0)
3246     TEST_FIELD_SIZE  (TOGGLEKEYS, dwFlags, 4)
3247     TEST_FIELD_ALIGN (TOGGLEKEYS, dwFlags, 4)
3248     TEST_FIELD_OFFSET(TOGGLEKEYS, dwFlags, 4)
3249 }
3250 
3251 static void test_pack_TPMPARAMS(void)
3252 {
3253     /* TPMPARAMS */
3254     TEST_TYPE_SIZE   (TPMPARAMS, 20)
3255     TEST_TYPE_ALIGN  (TPMPARAMS, 4)
3256     TEST_FIELD_SIZE  (TPMPARAMS, cbSize, 4)
3257     TEST_FIELD_ALIGN (TPMPARAMS, cbSize, 4)
3258     TEST_FIELD_OFFSET(TPMPARAMS, cbSize, 0)
3259     TEST_FIELD_SIZE  (TPMPARAMS, rcExclude, 16)
3260     TEST_FIELD_ALIGN (TPMPARAMS, rcExclude, 4)
3261     TEST_FIELD_OFFSET(TPMPARAMS, rcExclude, 4)
3262 }
3263 
3264 static void test_pack_TRACKMOUSEEVENT(void)
3265 {
3266     /* TRACKMOUSEEVENT */
3267     TEST_TYPE_SIZE   (TRACKMOUSEEVENT, 24)
3268     TEST_TYPE_ALIGN  (TRACKMOUSEEVENT, 8)
3269     TEST_FIELD_SIZE  (TRACKMOUSEEVENT, cbSize, 4)
3270     TEST_FIELD_ALIGN (TRACKMOUSEEVENT, cbSize, 4)
3271     TEST_FIELD_OFFSET(TRACKMOUSEEVENT, cbSize, 0)
3272     TEST_FIELD_SIZE  (TRACKMOUSEEVENT, dwFlags, 4)
3273     TEST_FIELD_ALIGN (TRACKMOUSEEVENT, dwFlags, 4)
3274     TEST_FIELD_OFFSET(TRACKMOUSEEVENT, dwFlags, 4)
3275     TEST_FIELD_SIZE  (TRACKMOUSEEVENT, hwndTrack, 8)
3276     TEST_FIELD_ALIGN (TRACKMOUSEEVENT, hwndTrack, 8)
3277     TEST_FIELD_OFFSET(TRACKMOUSEEVENT, hwndTrack, 8)
3278     TEST_FIELD_SIZE  (TRACKMOUSEEVENT, dwHoverTime, 4)
3279     TEST_FIELD_ALIGN (TRACKMOUSEEVENT, dwHoverTime, 4)
3280     TEST_FIELD_OFFSET(TRACKMOUSEEVENT, dwHoverTime, 16)
3281 }
3282 
3283 static void test_pack_USEROBJECTFLAGS(void)
3284 {
3285     /* USEROBJECTFLAGS */
3286     TEST_TYPE_SIZE   (USEROBJECTFLAGS, 12)
3287     TEST_TYPE_ALIGN  (USEROBJECTFLAGS, 4)
3288     TEST_FIELD_SIZE  (USEROBJECTFLAGS, fInherit, 4)
3289     TEST_FIELD_ALIGN (USEROBJECTFLAGS, fInherit, 4)
3290     TEST_FIELD_OFFSET(USEROBJECTFLAGS, fInherit, 0)
3291     TEST_FIELD_SIZE  (USEROBJECTFLAGS, fReserved, 4)
3292     TEST_FIELD_ALIGN (USEROBJECTFLAGS, fReserved, 4)
3293     TEST_FIELD_OFFSET(USEROBJECTFLAGS, fReserved, 4)
3294     TEST_FIELD_SIZE  (USEROBJECTFLAGS, dwFlags, 4)
3295     TEST_FIELD_ALIGN (USEROBJECTFLAGS, dwFlags, 4)
3296     TEST_FIELD_OFFSET(USEROBJECTFLAGS, dwFlags, 8)
3297 }
3298 
3299 static void test_pack_WINDOWINFO(void)
3300 {
3301     /* WINDOWINFO */
3302     TEST_TYPE_SIZE   (WINDOWINFO, 60)
3303     TEST_TYPE_ALIGN  (WINDOWINFO, 4)
3304     TEST_FIELD_SIZE  (WINDOWINFO, cbSize, 4)
3305     TEST_FIELD_ALIGN (WINDOWINFO, cbSize, 4)
3306     TEST_FIELD_OFFSET(WINDOWINFO, cbSize, 0)
3307     TEST_FIELD_SIZE  (WINDOWINFO, rcWindow, 16)
3308     TEST_FIELD_ALIGN (WINDOWINFO, rcWindow, 4)
3309     TEST_FIELD_OFFSET(WINDOWINFO, rcWindow, 4)
3310     TEST_FIELD_SIZE  (WINDOWINFO, rcClient, 16)
3311     TEST_FIELD_ALIGN (WINDOWINFO, rcClient, 4)
3312     TEST_FIELD_OFFSET(WINDOWINFO, rcClient, 20)
3313     TEST_FIELD_SIZE  (WINDOWINFO, dwStyle, 4)
3314     TEST_FIELD_ALIGN (WINDOWINFO, dwStyle, 4)
3315     TEST_FIELD_OFFSET(WINDOWINFO, dwStyle, 36)
3316     TEST_FIELD_SIZE  (WINDOWINFO, dwExStyle, 4)
3317     TEST_FIELD_ALIGN (WINDOWINFO, dwExStyle, 4)
3318     TEST_FIELD_OFFSET(WINDOWINFO, dwExStyle, 40)
3319     TEST_FIELD_SIZE  (WINDOWINFO, dwWindowStatus, 4)
3320     TEST_FIELD_ALIGN (WINDOWINFO, dwWindowStatus, 4)
3321     TEST_FIELD_OFFSET(WINDOWINFO, dwWindowStatus, 44)
3322     TEST_FIELD_SIZE  (WINDOWINFO, cxWindowBorders, 4)
3323     TEST_FIELD_ALIGN (WINDOWINFO, cxWindowBorders, 4)
3324     TEST_FIELD_OFFSET(WINDOWINFO, cxWindowBorders, 48)
3325     TEST_FIELD_SIZE  (WINDOWINFO, cyWindowBorders, 4)
3326     TEST_FIELD_ALIGN (WINDOWINFO, cyWindowBorders, 4)
3327     TEST_FIELD_OFFSET(WINDOWINFO, cyWindowBorders, 52)
3328     TEST_FIELD_SIZE  (WINDOWINFO, atomWindowType, 2)
3329     TEST_FIELD_ALIGN (WINDOWINFO, atomWindowType, 2)
3330     TEST_FIELD_OFFSET(WINDOWINFO, atomWindowType, 56)
3331     TEST_FIELD_SIZE  (WINDOWINFO, wCreatorVersion, 2)
3332     TEST_FIELD_ALIGN (WINDOWINFO, wCreatorVersion, 2)
3333     TEST_FIELD_OFFSET(WINDOWINFO, wCreatorVersion, 58)
3334 }
3335 
3336 static void test_pack_WINDOWPLACEMENT(void)
3337 {
3338     /* WINDOWPLACEMENT */
3339     TEST_TYPE_SIZE   (WINDOWPLACEMENT, 44)
3340     TEST_TYPE_ALIGN  (WINDOWPLACEMENT, 4)
3341     TEST_FIELD_SIZE  (WINDOWPLACEMENT, length, 4)
3342     TEST_FIELD_ALIGN (WINDOWPLACEMENT, length, 4)
3343     TEST_FIELD_OFFSET(WINDOWPLACEMENT, length, 0)
3344     TEST_FIELD_SIZE  (WINDOWPLACEMENT, flags, 4)
3345     TEST_FIELD_ALIGN (WINDOWPLACEMENT, flags, 4)
3346     TEST_FIELD_OFFSET(WINDOWPLACEMENT, flags, 4)
3347     TEST_FIELD_SIZE  (WINDOWPLACEMENT, showCmd, 4)
3348     TEST_FIELD_ALIGN (WINDOWPLACEMENT, showCmd, 4)
3349     TEST_FIELD_OFFSET(WINDOWPLACEMENT, showCmd, 8)
3350     TEST_FIELD_SIZE  (WINDOWPLACEMENT, ptMinPosition, 8)
3351     TEST_FIELD_ALIGN (WINDOWPLACEMENT, ptMinPosition, 4)
3352     TEST_FIELD_OFFSET(WINDOWPLACEMENT, ptMinPosition, 12)
3353     TEST_FIELD_SIZE  (WINDOWPLACEMENT, ptMaxPosition, 8)
3354     TEST_FIELD_ALIGN (WINDOWPLACEMENT, ptMaxPosition, 4)
3355     TEST_FIELD_OFFSET(WINDOWPLACEMENT, ptMaxPosition, 20)
3356     TEST_FIELD_SIZE  (WINDOWPLACEMENT, rcNormalPosition, 16)
3357     TEST_FIELD_ALIGN (WINDOWPLACEMENT, rcNormalPosition, 4)
3358     TEST_FIELD_OFFSET(WINDOWPLACEMENT, rcNormalPosition, 28)
3359 }
3360 
3361 static void test_pack_WINDOWPOS(void)
3362 {
3363     /* WINDOWPOS */
3364     TEST_TYPE_SIZE   (WINDOWPOS, 40)
3365     TEST_TYPE_ALIGN  (WINDOWPOS, 8)
3366     TEST_FIELD_SIZE  (WINDOWPOS, hwnd, 8)
3367     TEST_FIELD_ALIGN (WINDOWPOS, hwnd, 8)
3368     TEST_FIELD_OFFSET(WINDOWPOS, hwnd, 0)
3369     TEST_FIELD_SIZE  (WINDOWPOS, hwndInsertAfter, 8)
3370     TEST_FIELD_ALIGN (WINDOWPOS, hwndInsertAfter, 8)
3371     TEST_FIELD_OFFSET(WINDOWPOS, hwndInsertAfter, 8)
3372     TEST_FIELD_SIZE  (WINDOWPOS, x, 4)
3373     TEST_FIELD_ALIGN (WINDOWPOS, x, 4)
3374     TEST_FIELD_OFFSET(WINDOWPOS, x, 16)
3375     TEST_FIELD_SIZE  (WINDOWPOS, y, 4)
3376     TEST_FIELD_ALIGN (WINDOWPOS, y, 4)
3377     TEST_FIELD_OFFSET(WINDOWPOS, y, 20)
3378     TEST_FIELD_SIZE  (WINDOWPOS, cx, 4)
3379     TEST_FIELD_ALIGN (WINDOWPOS, cx, 4)
3380     TEST_FIELD_OFFSET(WINDOWPOS, cx, 24)
3381     TEST_FIELD_SIZE  (WINDOWPOS, cy, 4)
3382     TEST_FIELD_ALIGN (WINDOWPOS, cy, 4)
3383     TEST_FIELD_OFFSET(WINDOWPOS, cy, 28)
3384     TEST_FIELD_SIZE  (WINDOWPOS, flags, 4)
3385     TEST_FIELD_ALIGN (WINDOWPOS, flags, 4)
3386     TEST_FIELD_OFFSET(WINDOWPOS, flags, 32)
3387 }
3388 
3389 static void test_pack_WINEVENTPROC(void)
3390 {
3391     /* WINEVENTPROC */
3392     TEST_TYPE_SIZE   (WINEVENTPROC, 8)
3393     TEST_TYPE_ALIGN  (WINEVENTPROC, 8)
3394 }
3395 
3396 static void test_pack_WINSTAENUMPROCA(void)
3397 {
3398     /* WINSTAENUMPROCA */
3399     TEST_TYPE_SIZE   (WINSTAENUMPROCA, 8)
3400     TEST_TYPE_ALIGN  (WINSTAENUMPROCA, 8)
3401 }
3402 
3403 static void test_pack_WINSTAENUMPROCW(void)
3404 {
3405     /* WINSTAENUMPROCW */
3406     TEST_TYPE_SIZE   (WINSTAENUMPROCW, 8)
3407     TEST_TYPE_ALIGN  (WINSTAENUMPROCW, 8)
3408 }
3409 
3410 static void test_pack_WNDCLASSA(void)
3411 {
3412     /* WNDCLASSA */
3413     TEST_TYPE_SIZE   (WNDCLASSA, 72)
3414     TEST_TYPE_ALIGN  (WNDCLASSA, 8)
3415     TEST_FIELD_SIZE  (WNDCLASSA, style, 4)
3416     TEST_FIELD_ALIGN (WNDCLASSA, style, 4)
3417     TEST_FIELD_OFFSET(WNDCLASSA, style, 0)
3418     TEST_FIELD_SIZE  (WNDCLASSA, lpfnWndProc, 8)
3419     TEST_FIELD_ALIGN (WNDCLASSA, lpfnWndProc, 8)
3420     TEST_FIELD_OFFSET(WNDCLASSA, lpfnWndProc, 8)
3421     TEST_FIELD_SIZE  (WNDCLASSA, cbClsExtra, 4)
3422     TEST_FIELD_ALIGN (WNDCLASSA, cbClsExtra, 4)
3423     TEST_FIELD_OFFSET(WNDCLASSA, cbClsExtra, 16)
3424     TEST_FIELD_SIZE  (WNDCLASSA, cbWndExtra, 4)
3425     TEST_FIELD_ALIGN (WNDCLASSA, cbWndExtra, 4)
3426     TEST_FIELD_OFFSET(WNDCLASSA, cbWndExtra, 20)
3427     TEST_FIELD_SIZE  (WNDCLASSA, hInstance, 8)
3428     TEST_FIELD_ALIGN (WNDCLASSA, hInstance, 8)
3429     TEST_FIELD_OFFSET(WNDCLASSA, hInstance, 24)
3430     TEST_FIELD_SIZE  (WNDCLASSA, hIcon, 8)
3431     TEST_FIELD_ALIGN (WNDCLASSA, hIcon, 8)
3432     TEST_FIELD_OFFSET(WNDCLASSA, hIcon, 32)
3433     TEST_FIELD_SIZE  (WNDCLASSA, hCursor, 8)
3434     TEST_FIELD_ALIGN (WNDCLASSA, hCursor, 8)
3435     TEST_FIELD_OFFSET(WNDCLASSA, hCursor, 40)
3436     TEST_FIELD_SIZE  (WNDCLASSA, hbrBackground, 8)
3437     TEST_FIELD_ALIGN (WNDCLASSA, hbrBackground, 8)
3438     TEST_FIELD_OFFSET(WNDCLASSA, hbrBackground, 48)
3439     TEST_FIELD_SIZE  (WNDCLASSA, lpszMenuName, 8)
3440     TEST_FIELD_ALIGN (WNDCLASSA, lpszMenuName, 8)
3441     TEST_FIELD_OFFSET(WNDCLASSA, lpszMenuName, 56)
3442     TEST_FIELD_SIZE  (WNDCLASSA, lpszClassName, 8)
3443     TEST_FIELD_ALIGN (WNDCLASSA, lpszClassName, 8)
3444     TEST_FIELD_OFFSET(WNDCLASSA, lpszClassName, 64)
3445 }
3446 
3447 static void test_pack_WNDCLASSEXA(void)
3448 {
3449     /* WNDCLASSEXA */
3450     TEST_TYPE_SIZE   (WNDCLASSEXA, 80)
3451     TEST_TYPE_ALIGN  (WNDCLASSEXA, 8)
3452     TEST_FIELD_SIZE  (WNDCLASSEXA, cbSize, 4)
3453     TEST_FIELD_ALIGN (WNDCLASSEXA, cbSize, 4)
3454     TEST_FIELD_OFFSET(WNDCLASSEXA, cbSize, 0)
3455     TEST_FIELD_SIZE  (WNDCLASSEXA, style, 4)
3456     TEST_FIELD_ALIGN (WNDCLASSEXA, style, 4)
3457     TEST_FIELD_OFFSET(WNDCLASSEXA, style, 4)
3458     TEST_FIELD_SIZE  (WNDCLASSEXA, lpfnWndProc, 8)
3459     TEST_FIELD_ALIGN (WNDCLASSEXA, lpfnWndProc, 8)
3460     TEST_FIELD_OFFSET(WNDCLASSEXA, lpfnWndProc, 8)
3461     TEST_FIELD_SIZE  (WNDCLASSEXA, cbClsExtra, 4)
3462     TEST_FIELD_ALIGN (WNDCLASSEXA, cbClsExtra, 4)
3463     TEST_FIELD_OFFSET(WNDCLASSEXA, cbClsExtra, 16)
3464     TEST_FIELD_SIZE  (WNDCLASSEXA, cbWndExtra, 4)
3465     TEST_FIELD_ALIGN (WNDCLASSEXA, cbWndExtra, 4)
3466     TEST_FIELD_OFFSET(WNDCLASSEXA, cbWndExtra, 20)
3467     TEST_FIELD_SIZE  (WNDCLASSEXA, hInstance, 8)
3468     TEST_FIELD_ALIGN (WNDCLASSEXA, hInstance, 8)
3469     TEST_FIELD_OFFSET(WNDCLASSEXA, hInstance, 24)
3470     TEST_FIELD_SIZE  (WNDCLASSEXA, hIcon, 8)
3471     TEST_FIELD_ALIGN (WNDCLASSEXA, hIcon, 8)
3472     TEST_FIELD_OFFSET(WNDCLASSEXA, hIcon, 32)
3473     TEST_FIELD_SIZE  (WNDCLASSEXA, hCursor, 8)
3474     TEST_FIELD_ALIGN (WNDCLASSEXA, hCursor, 8)
3475     TEST_FIELD_OFFSET(WNDCLASSEXA, hCursor, 40)
3476     TEST_FIELD_SIZE  (WNDCLASSEXA, hbrBackground, 8)
3477     TEST_FIELD_ALIGN (WNDCLASSEXA, hbrBackground, 8)
3478     TEST_FIELD_OFFSET(WNDCLASSEXA, hbrBackground, 48)
3479     TEST_FIELD_SIZE  (WNDCLASSEXA, lpszMenuName, 8)
3480     TEST_FIELD_ALIGN (WNDCLASSEXA, lpszMenuName, 8)
3481     TEST_FIELD_OFFSET(WNDCLASSEXA, lpszMenuName, 56)
3482     TEST_FIELD_SIZE  (WNDCLASSEXA, lpszClassName, 8)
3483     TEST_FIELD_ALIGN (WNDCLASSEXA, lpszClassName, 8)
3484     TEST_FIELD_OFFSET(WNDCLASSEXA, lpszClassName, 64)
3485     TEST_FIELD_SIZE  (WNDCLASSEXA, hIconSm, 8)
3486     TEST_FIELD_ALIGN (WNDCLASSEXA, hIconSm, 8)
3487     TEST_FIELD_OFFSET(WNDCLASSEXA, hIconSm, 72)
3488 }
3489 
3490 static void test_pack_WNDCLASSEXW(void)
3491 {
3492     /* WNDCLASSEXW */
3493     TEST_TYPE_SIZE   (WNDCLASSEXW, 80)
3494     TEST_TYPE_ALIGN  (WNDCLASSEXW, 8)
3495     TEST_FIELD_SIZE  (WNDCLASSEXW, cbSize, 4)
3496     TEST_FIELD_ALIGN (WNDCLASSEXW, cbSize, 4)
3497     TEST_FIELD_OFFSET(WNDCLASSEXW, cbSize, 0)
3498     TEST_FIELD_SIZE  (WNDCLASSEXW, style, 4)
3499     TEST_FIELD_ALIGN (WNDCLASSEXW, style, 4)
3500     TEST_FIELD_OFFSET(WNDCLASSEXW, style, 4)
3501     TEST_FIELD_SIZE  (WNDCLASSEXW, lpfnWndProc, 8)
3502     TEST_FIELD_ALIGN (WNDCLASSEXW, lpfnWndProc, 8)
3503     TEST_FIELD_OFFSET(WNDCLASSEXW, lpfnWndProc, 8)
3504     TEST_FIELD_SIZE  (WNDCLASSEXW, cbClsExtra, 4)
3505     TEST_FIELD_ALIGN (WNDCLASSEXW, cbClsExtra, 4)
3506     TEST_FIELD_OFFSET(WNDCLASSEXW, cbClsExtra, 16)
3507     TEST_FIELD_SIZE  (WNDCLASSEXW, cbWndExtra, 4)
3508     TEST_FIELD_ALIGN (WNDCLASSEXW, cbWndExtra, 4)
3509     TEST_FIELD_OFFSET(WNDCLASSEXW, cbWndExtra, 20)
3510     TEST_FIELD_SIZE  (WNDCLASSEXW, hInstance, 8)
3511     TEST_FIELD_ALIGN (WNDCLASSEXW, hInstance, 8)
3512     TEST_FIELD_OFFSET(WNDCLASSEXW, hInstance, 24)
3513     TEST_FIELD_SIZE  (WNDCLASSEXW, hIcon, 8)
3514     TEST_FIELD_ALIGN (WNDCLASSEXW, hIcon, 8)
3515     TEST_FIELD_OFFSET(WNDCLASSEXW, hIcon, 32)
3516     TEST_FIELD_SIZE  (WNDCLASSEXW, hCursor, 8)
3517     TEST_FIELD_ALIGN (WNDCLASSEXW, hCursor, 8)
3518     TEST_FIELD_OFFSET(WNDCLASSEXW, hCursor, 40)
3519     TEST_FIELD_SIZE  (WNDCLASSEXW, hbrBackground, 8)
3520     TEST_FIELD_ALIGN (WNDCLASSEXW, hbrBackground, 8)
3521     TEST_FIELD_OFFSET(WNDCLASSEXW, hbrBackground, 48)
3522     TEST_FIELD_SIZE  (WNDCLASSEXW, lpszMenuName, 8)
3523     TEST_FIELD_ALIGN (WNDCLASSEXW, lpszMenuName, 8)
3524     TEST_FIELD_OFFSET(WNDCLASSEXW, lpszMenuName, 56)
3525     TEST_FIELD_SIZE  (WNDCLASSEXW, lpszClassName, 8)
3526     TEST_FIELD_ALIGN (WNDCLASSEXW, lpszClassName, 8)
3527     TEST_FIELD_OFFSET(WNDCLASSEXW, lpszClassName, 64)
3528     TEST_FIELD_SIZE  (WNDCLASSEXW, hIconSm, 8)
3529     TEST_FIELD_ALIGN (WNDCLASSEXW, hIconSm, 8)
3530     TEST_FIELD_OFFSET(WNDCLASSEXW, hIconSm, 72)
3531 }
3532 
3533 static void test_pack_WNDCLASSW(void)
3534 {
3535     /* WNDCLASSW */
3536     TEST_TYPE_SIZE   (WNDCLASSW, 72)
3537     TEST_TYPE_ALIGN  (WNDCLASSW, 8)
3538     TEST_FIELD_SIZE  (WNDCLASSW, style, 4)
3539     TEST_FIELD_ALIGN (WNDCLASSW, style, 4)
3540     TEST_FIELD_OFFSET(WNDCLASSW, style, 0)
3541     TEST_FIELD_SIZE  (WNDCLASSW, lpfnWndProc, 8)
3542     TEST_FIELD_ALIGN (WNDCLASSW, lpfnWndProc, 8)
3543     TEST_FIELD_OFFSET(WNDCLASSW, lpfnWndProc, 8)
3544     TEST_FIELD_SIZE  (WNDCLASSW, cbClsExtra, 4)
3545     TEST_FIELD_ALIGN (WNDCLASSW, cbClsExtra, 4)
3546     TEST_FIELD_OFFSET(WNDCLASSW, cbClsExtra, 16)
3547     TEST_FIELD_SIZE  (WNDCLASSW, cbWndExtra, 4)
3548     TEST_FIELD_ALIGN (WNDCLASSW, cbWndExtra, 4)
3549     TEST_FIELD_OFFSET(WNDCLASSW, cbWndExtra, 20)
3550     TEST_FIELD_SIZE  (WNDCLASSW, hInstance, 8)
3551     TEST_FIELD_ALIGN (WNDCLASSW, hInstance, 8)
3552     TEST_FIELD_OFFSET(WNDCLASSW, hInstance, 24)
3553     TEST_FIELD_SIZE  (WNDCLASSW, hIcon, 8)
3554     TEST_FIELD_ALIGN (WNDCLASSW, hIcon, 8)
3555     TEST_FIELD_OFFSET(WNDCLASSW, hIcon, 32)
3556     TEST_FIELD_SIZE  (WNDCLASSW, hCursor, 8)
3557     TEST_FIELD_ALIGN (WNDCLASSW, hCursor, 8)
3558     TEST_FIELD_OFFSET(WNDCLASSW, hCursor, 40)
3559     TEST_FIELD_SIZE  (WNDCLASSW, hbrBackground, 8)
3560     TEST_FIELD_ALIGN (WNDCLASSW, hbrBackground, 8)
3561     TEST_FIELD_OFFSET(WNDCLASSW, hbrBackground, 48)
3562     TEST_FIELD_SIZE  (WNDCLASSW, lpszMenuName, 8)
3563     TEST_FIELD_ALIGN (WNDCLASSW, lpszMenuName, 8)
3564     TEST_FIELD_OFFSET(WNDCLASSW, lpszMenuName, 56)
3565     TEST_FIELD_SIZE  (WNDCLASSW, lpszClassName, 8)
3566     TEST_FIELD_ALIGN (WNDCLASSW, lpszClassName, 8)
3567     TEST_FIELD_OFFSET(WNDCLASSW, lpszClassName, 64)
3568 }
3569 
3570 static void test_pack_WNDENUMPROC(void)
3571 {
3572     /* WNDENUMPROC */
3573     TEST_TYPE_SIZE   (WNDENUMPROC, 8)
3574     TEST_TYPE_ALIGN  (WNDENUMPROC, 8)
3575 }
3576 
3577 static void test_pack_WNDPROC(void)
3578 {
3579     /* WNDPROC */
3580     TEST_TYPE_SIZE   (WNDPROC, 8)
3581     TEST_TYPE_ALIGN  (WNDPROC, 8)
3582 }
3583 
3584 #else /* _WIN64 */
3585 
3586 static void test_pack_ACCESSTIMEOUT(void)
3587 {
3588     /* ACCESSTIMEOUT */
3589     TEST_TYPE_SIZE   (ACCESSTIMEOUT, 12)
3590     TEST_TYPE_ALIGN  (ACCESSTIMEOUT, 4)
3591     TEST_FIELD_SIZE  (ACCESSTIMEOUT, cbSize, 4)
3592     TEST_FIELD_ALIGN (ACCESSTIMEOUT, cbSize, 4)
3593     TEST_FIELD_OFFSET(ACCESSTIMEOUT, cbSize, 0)
3594     TEST_FIELD_SIZE  (ACCESSTIMEOUT, dwFlags, 4)
3595     TEST_FIELD_ALIGN (ACCESSTIMEOUT, dwFlags, 4)
3596     TEST_FIELD_OFFSET(ACCESSTIMEOUT, dwFlags, 4)
3597     TEST_FIELD_SIZE  (ACCESSTIMEOUT, iTimeOutMSec, 4)
3598     TEST_FIELD_ALIGN (ACCESSTIMEOUT, iTimeOutMSec, 4)
3599     TEST_FIELD_OFFSET(ACCESSTIMEOUT, iTimeOutMSec, 8)
3600 }
3601 
3602 static void test_pack_ANIMATIONINFO(void)
3603 {
3604     /* ANIMATIONINFO */
3605     TEST_TYPE_SIZE   (ANIMATIONINFO, 8)
3606     TEST_TYPE_ALIGN  (ANIMATIONINFO, 4)
3607     TEST_FIELD_SIZE  (ANIMATIONINFO, cbSize, 4)
3608     TEST_FIELD_ALIGN (ANIMATIONINFO, cbSize, 4)
3609     TEST_FIELD_OFFSET(ANIMATIONINFO, cbSize, 0)
3610     TEST_FIELD_SIZE  (ANIMATIONINFO, iMinAnimate, 4)
3611     TEST_FIELD_ALIGN (ANIMATIONINFO, iMinAnimate, 4)
3612     TEST_FIELD_OFFSET(ANIMATIONINFO, iMinAnimate, 4)
3613 }
3614 
3615 static void test_pack_CBTACTIVATESTRUCT(void)
3616 {
3617     /* CBTACTIVATESTRUCT */
3618     TEST_TYPE_SIZE   (CBTACTIVATESTRUCT, 8)
3619     TEST_TYPE_ALIGN  (CBTACTIVATESTRUCT, 4)
3620     TEST_FIELD_SIZE  (CBTACTIVATESTRUCT, fMouse, 4)
3621     TEST_FIELD_ALIGN (CBTACTIVATESTRUCT, fMouse, 4)
3622     TEST_FIELD_OFFSET(CBTACTIVATESTRUCT, fMouse, 0)
3623     TEST_FIELD_SIZE  (CBTACTIVATESTRUCT, hWndActive, 4)
3624     TEST_FIELD_ALIGN (CBTACTIVATESTRUCT, hWndActive, 4)
3625     TEST_FIELD_OFFSET(CBTACTIVATESTRUCT, hWndActive, 4)
3626 }
3627 
3628 static void test_pack_CBT_CREATEWNDA(void)
3629 {
3630     /* CBT_CREATEWNDA */
3631     TEST_TYPE_SIZE   (CBT_CREATEWNDA, 8)
3632     TEST_TYPE_ALIGN  (CBT_CREATEWNDA, 4)
3633     TEST_FIELD_SIZE  (CBT_CREATEWNDA, lpcs, 4)
3634     TEST_FIELD_ALIGN (CBT_CREATEWNDA, lpcs, 4)
3635     TEST_FIELD_OFFSET(CBT_CREATEWNDA, lpcs, 0)
3636     TEST_FIELD_SIZE  (CBT_CREATEWNDA, hwndInsertAfter, 4)
3637     TEST_FIELD_ALIGN (CBT_CREATEWNDA, hwndInsertAfter, 4)
3638     TEST_FIELD_OFFSET(CBT_CREATEWNDA, hwndInsertAfter, 4)
3639 }
3640 
3641 static void test_pack_CBT_CREATEWNDW(void)
3642 {
3643     /* CBT_CREATEWNDW */
3644     TEST_TYPE_SIZE   (CBT_CREATEWNDW, 8)
3645     TEST_TYPE_ALIGN  (CBT_CREATEWNDW, 4)
3646     TEST_FIELD_SIZE  (CBT_CREATEWNDW, lpcs, 4)
3647     TEST_FIELD_ALIGN (CBT_CREATEWNDW, lpcs, 4)
3648     TEST_FIELD_OFFSET(CBT_CREATEWNDW, lpcs, 0)
3649     TEST_FIELD_SIZE  (CBT_CREATEWNDW, hwndInsertAfter, 4)
3650     TEST_FIELD_ALIGN (CBT_CREATEWNDW, hwndInsertAfter, 4)
3651     TEST_FIELD_OFFSET(CBT_CREATEWNDW, hwndInsertAfter, 4)
3652 }
3653 
3654 static void test_pack_CLIENTCREATESTRUCT(void)
3655 {
3656     /* CLIENTCREATESTRUCT */
3657     TEST_TYPE_SIZE   (CLIENTCREATESTRUCT, 8)
3658     TEST_TYPE_ALIGN  (CLIENTCREATESTRUCT, 4)
3659     TEST_FIELD_SIZE  (CLIENTCREATESTRUCT, hWindowMenu, 4)
3660     TEST_FIELD_ALIGN (CLIENTCREATESTRUCT, hWindowMenu, 4)
3661     TEST_FIELD_OFFSET(CLIENTCREATESTRUCT, hWindowMenu, 0)
3662     TEST_FIELD_SIZE  (CLIENTCREATESTRUCT, idFirstChild, 4)
3663     TEST_FIELD_ALIGN (CLIENTCREATESTRUCT, idFirstChild, 4)
3664     TEST_FIELD_OFFSET(CLIENTCREATESTRUCT, idFirstChild, 4)
3665 }
3666 
3667 static void test_pack_COMBOBOXINFO(void)
3668 {
3669     /* COMBOBOXINFO */
3670     TEST_TYPE_SIZE   (COMBOBOXINFO, 52)
3671     TEST_TYPE_ALIGN  (COMBOBOXINFO, 4)
3672     TEST_FIELD_SIZE  (COMBOBOXINFO, cbSize, 4)
3673     TEST_FIELD_ALIGN (COMBOBOXINFO, cbSize, 4)
3674     TEST_FIELD_OFFSET(COMBOBOXINFO, cbSize, 0)
3675     TEST_FIELD_SIZE  (COMBOBOXINFO, rcItem, 16)
3676     TEST_FIELD_ALIGN (COMBOBOXINFO, rcItem, 4)
3677     TEST_FIELD_OFFSET(COMBOBOXINFO, rcItem, 4)
3678     TEST_FIELD_SIZE  (COMBOBOXINFO, rcButton, 16)
3679     TEST_FIELD_ALIGN (COMBOBOXINFO, rcButton, 4)
3680     TEST_FIELD_OFFSET(COMBOBOXINFO, rcButton, 20)
3681     TEST_FIELD_SIZE  (COMBOBOXINFO, stateButton, 4)
3682     TEST_FIELD_ALIGN (COMBOBOXINFO, stateButton, 4)
3683     TEST_FIELD_OFFSET(COMBOBOXINFO, stateButton, 36)
3684     TEST_FIELD_SIZE  (COMBOBOXINFO, hwndCombo, 4)
3685     TEST_FIELD_ALIGN (COMBOBOXINFO, hwndCombo, 4)
3686     TEST_FIELD_OFFSET(COMBOBOXINFO, hwndCombo, 40)
3687     TEST_FIELD_SIZE  (COMBOBOXINFO, hwndItem, 4)
3688     TEST_FIELD_ALIGN (COMBOBOXINFO, hwndItem, 4)
3689     TEST_FIELD_OFFSET(COMBOBOXINFO, hwndItem, 44)
3690     TEST_FIELD_SIZE  (COMBOBOXINFO, hwndList, 4)
3691     TEST_FIELD_ALIGN (COMBOBOXINFO, hwndList, 4)
3692     TEST_FIELD_OFFSET(COMBOBOXINFO, hwndList, 48)
3693 }
3694 
3695 static void test_pack_COMPAREITEMSTRUCT(void)
3696 {
3697     /* COMPAREITEMSTRUCT */
3698     TEST_TYPE_SIZE   (COMPAREITEMSTRUCT, 32)
3699     TEST_TYPE_ALIGN  (COMPAREITEMSTRUCT, 4)
3700     TEST_FIELD_SIZE  (COMPAREITEMSTRUCT, CtlType, 4)
3701     TEST_FIELD_ALIGN (COMPAREITEMSTRUCT, CtlType, 4)
3702     TEST_FIELD_OFFSET(COMPAREITEMSTRUCT, CtlType, 0)
3703     TEST_FIELD_SIZE  (COMPAREITEMSTRUCT, CtlID, 4)
3704     TEST_FIELD_ALIGN (COMPAREITEMSTRUCT, CtlID, 4)
3705     TEST_FIELD_OFFSET(COMPAREITEMSTRUCT, CtlID, 4)
3706     TEST_FIELD_SIZE  (COMPAREITEMSTRUCT, hwndItem, 4)
3707     TEST_FIELD_ALIGN (COMPAREITEMSTRUCT, hwndItem, 4)
3708     TEST_FIELD_OFFSET(COMPAREITEMSTRUCT, hwndItem, 8)
3709     TEST_FIELD_SIZE  (COMPAREITEMSTRUCT, itemID1, 4)
3710     TEST_FIELD_ALIGN (COMPAREITEMSTRUCT, itemID1, 4)
3711     TEST_FIELD_OFFSET(COMPAREITEMSTRUCT, itemID1, 12)
3712     TEST_FIELD_SIZE  (COMPAREITEMSTRUCT, itemData1, 4)
3713     TEST_FIELD_ALIGN (COMPAREITEMSTRUCT, itemData1, 4)
3714     TEST_FIELD_OFFSET(COMPAREITEMSTRUCT, itemData1, 16)
3715     TEST_FIELD_SIZE  (COMPAREITEMSTRUCT, itemID2, 4)
3716     TEST_FIELD_ALIGN (COMPAREITEMSTRUCT, itemID2, 4)
3717     TEST_FIELD_OFFSET(COMPAREITEMSTRUCT, itemID2, 20)
3718     TEST_FIELD_SIZE  (COMPAREITEMSTRUCT, itemData2, 4)
3719     TEST_FIELD_ALIGN (COMPAREITEMSTRUCT, itemData2, 4)
3720     TEST_FIELD_OFFSET(COMPAREITEMSTRUCT, itemData2, 24)
3721     TEST_FIELD_SIZE  (COMPAREITEMSTRUCT, dwLocaleId, 4)
3722     TEST_FIELD_ALIGN (COMPAREITEMSTRUCT, dwLocaleId, 4)
3723     TEST_FIELD_OFFSET(COMPAREITEMSTRUCT, dwLocaleId, 28)
3724 }
3725 
3726 static void test_pack_COPYDATASTRUCT(void)
3727 {
3728     /* COPYDATASTRUCT */
3729     TEST_TYPE_SIZE   (COPYDATASTRUCT, 12)
3730     TEST_TYPE_ALIGN  (COPYDATASTRUCT, 4)
3731     TEST_FIELD_SIZE  (COPYDATASTRUCT, dwData, 4)
3732     TEST_FIELD_ALIGN (COPYDATASTRUCT, dwData, 4)
3733     TEST_FIELD_OFFSET(COPYDATASTRUCT, dwData, 0)
3734     TEST_FIELD_SIZE  (COPYDATASTRUCT, cbData, 4)
3735     TEST_FIELD_ALIGN (COPYDATASTRUCT, cbData, 4)
3736     TEST_FIELD_OFFSET(COPYDATASTRUCT, cbData, 4)
3737     TEST_FIELD_SIZE  (COPYDATASTRUCT, lpData, 4)
3738     TEST_FIELD_ALIGN (COPYDATASTRUCT, lpData, 4)
3739     TEST_FIELD_OFFSET(COPYDATASTRUCT, lpData, 8)
3740 }
3741 
3742 static void test_pack_CREATESTRUCTA(void)
3743 {
3744     /* CREATESTRUCTA */
3745     TEST_TYPE_SIZE   (CREATESTRUCTA, 48)
3746     TEST_TYPE_ALIGN  (CREATESTRUCTA, 4)
3747     TEST_FIELD_SIZE  (CREATESTRUCTA, lpCreateParams, 4)
3748     TEST_FIELD_ALIGN (CREATESTRUCTA, lpCreateParams, 4)
3749     TEST_FIELD_OFFSET(CREATESTRUCTA, lpCreateParams, 0)
3750     TEST_FIELD_SIZE  (CREATESTRUCTA, hInstance, 4)
3751     TEST_FIELD_ALIGN (CREATESTRUCTA, hInstance, 4)
3752     TEST_FIELD_OFFSET(CREATESTRUCTA, hInstance, 4)
3753     TEST_FIELD_SIZE  (CREATESTRUCTA, hMenu, 4)
3754     TEST_FIELD_ALIGN (CREATESTRUCTA, hMenu, 4)
3755     TEST_FIELD_OFFSET(CREATESTRUCTA, hMenu, 8)
3756     TEST_FIELD_SIZE  (CREATESTRUCTA, hwndParent, 4)
3757     TEST_FIELD_ALIGN (CREATESTRUCTA, hwndParent, 4)
3758     TEST_FIELD_OFFSET(CREATESTRUCTA, hwndParent, 12)
3759     TEST_FIELD_SIZE  (CREATESTRUCTA, cy, 4)
3760     TEST_FIELD_ALIGN (CREATESTRUCTA, cy, 4)
3761     TEST_FIELD_OFFSET(CREATESTRUCTA, cy, 16)
3762     TEST_FIELD_SIZE  (CREATESTRUCTA, cx, 4)
3763     TEST_FIELD_ALIGN (CREATESTRUCTA, cx, 4)
3764     TEST_FIELD_OFFSET(CREATESTRUCTA, cx, 20)
3765     TEST_FIELD_SIZE  (CREATESTRUCTA, y, 4)
3766     TEST_FIELD_ALIGN (CREATESTRUCTA, y, 4)
3767     TEST_FIELD_OFFSET(CREATESTRUCTA, y, 24)
3768     TEST_FIELD_SIZE  (CREATESTRUCTA, x, 4)
3769     TEST_FIELD_ALIGN (CREATESTRUCTA, x, 4)
3770     TEST_FIELD_OFFSET(CREATESTRUCTA, x, 28)
3771     TEST_FIELD_SIZE  (CREATESTRUCTA, style, 4)
3772     TEST_FIELD_ALIGN (CREATESTRUCTA, style, 4)
3773     TEST_FIELD_OFFSET(CREATESTRUCTA, style, 32)
3774     TEST_FIELD_SIZE  (CREATESTRUCTA, lpszName, 4)
3775     TEST_FIELD_ALIGN (CREATESTRUCTA, lpszName, 4)
3776     TEST_FIELD_OFFSET(CREATESTRUCTA, lpszName, 36)
3777     TEST_FIELD_SIZE  (CREATESTRUCTA, lpszClass, 4)
3778     TEST_FIELD_ALIGN (CREATESTRUCTA, lpszClass, 4)
3779     TEST_FIELD_OFFSET(CREATESTRUCTA, lpszClass, 40)
3780     TEST_FIELD_SIZE  (CREATESTRUCTA, dwExStyle, 4)
3781     TEST_FIELD_ALIGN (CREATESTRUCTA, dwExStyle, 4)
3782     TEST_FIELD_OFFSET(CREATESTRUCTA, dwExStyle, 44)
3783 }
3784 
3785 static void test_pack_CREATESTRUCTW(void)
3786 {
3787     /* CREATESTRUCTW */
3788     TEST_TYPE_SIZE   (CREATESTRUCTW, 48)
3789     TEST_TYPE_ALIGN  (CREATESTRUCTW, 4)
3790     TEST_FIELD_SIZE  (CREATESTRUCTW, lpCreateParams, 4)
3791     TEST_FIELD_ALIGN (CREATESTRUCTW, lpCreateParams, 4)
3792     TEST_FIELD_OFFSET(CREATESTRUCTW, lpCreateParams, 0)
3793     TEST_FIELD_SIZE  (CREATESTRUCTW, hInstance, 4)
3794     TEST_FIELD_ALIGN (CREATESTRUCTW, hInstance, 4)
3795     TEST_FIELD_OFFSET(CREATESTRUCTW, hInstance, 4)
3796     TEST_FIELD_SIZE  (CREATESTRUCTW, hMenu, 4)
3797     TEST_FIELD_ALIGN (CREATESTRUCTW, hMenu, 4)
3798     TEST_FIELD_OFFSET(CREATESTRUCTW, hMenu, 8)
3799     TEST_FIELD_SIZE  (CREATESTRUCTW, hwndParent, 4)
3800     TEST_FIELD_ALIGN (CREATESTRUCTW, hwndParent, 4)
3801     TEST_FIELD_OFFSET(CREATESTRUCTW, hwndParent, 12)
3802     TEST_FIELD_SIZE  (CREATESTRUCTW, cy, 4)
3803     TEST_FIELD_ALIGN (CREATESTRUCTW, cy, 4)
3804     TEST_FIELD_OFFSET(CREATESTRUCTW, cy, 16)
3805     TEST_FIELD_SIZE  (CREATESTRUCTW, cx, 4)
3806     TEST_FIELD_ALIGN (CREATESTRUCTW, cx, 4)
3807     TEST_FIELD_OFFSET(CREATESTRUCTW, cx, 20)
3808     TEST_FIELD_SIZE  (CREATESTRUCTW, y, 4)
3809     TEST_FIELD_ALIGN (CREATESTRUCTW, y, 4)
3810     TEST_FIELD_OFFSET(CREATESTRUCTW, y, 24)
3811     TEST_FIELD_SIZE  (CREATESTRUCTW, x, 4)
3812     TEST_FIELD_ALIGN (CREATESTRUCTW, x, 4)
3813     TEST_FIELD_OFFSET(CREATESTRUCTW, x, 28)
3814     TEST_FIELD_SIZE  (CREATESTRUCTW, style, 4)
3815     TEST_FIELD_ALIGN (CREATESTRUCTW, style, 4)
3816     TEST_FIELD_OFFSET(CREATESTRUCTW, style, 32)
3817     TEST_FIELD_SIZE  (CREATESTRUCTW, lpszName, 4)
3818     TEST_FIELD_ALIGN (CREATESTRUCTW, lpszName, 4)
3819     TEST_FIELD_OFFSET(CREATESTRUCTW, lpszName, 36)
3820     TEST_FIELD_SIZE  (CREATESTRUCTW, lpszClass, 4)
3821     TEST_FIELD_ALIGN (CREATESTRUCTW, lpszClass, 4)
3822     TEST_FIELD_OFFSET(CREATESTRUCTW, lpszClass, 40)
3823     TEST_FIELD_SIZE  (CREATESTRUCTW, dwExStyle, 4)
3824     TEST_FIELD_ALIGN (CREATESTRUCTW, dwExStyle, 4)
3825     TEST_FIELD_OFFSET(CREATESTRUCTW, dwExStyle, 44)
3826 }
3827 
3828 static void test_pack_CURSORINFO(void)
3829 {
3830     /* CURSORINFO */
3831     TEST_TYPE_SIZE   (CURSORINFO, 20)
3832     TEST_TYPE_ALIGN  (CURSORINFO, 4)
3833     TEST_FIELD_SIZE  (CURSORINFO, cbSize, 4)
3834     TEST_FIELD_ALIGN (CURSORINFO, cbSize, 4)
3835     TEST_FIELD_OFFSET(CURSORINFO, cbSize, 0)
3836     TEST_FIELD_SIZE  (CURSORINFO, flags, 4)
3837     TEST_FIELD_ALIGN (CURSORINFO, flags, 4)
3838     TEST_FIELD_OFFSET(CURSORINFO, flags, 4)
3839     TEST_FIELD_SIZE  (CURSORINFO, hCursor, 4)
3840     TEST_FIELD_ALIGN (CURSORINFO, hCursor, 4)
3841     TEST_FIELD_OFFSET(CURSORINFO, hCursor, 8)
3842     TEST_FIELD_SIZE  (CURSORINFO, ptScreenPos, 8)
3843     TEST_FIELD_ALIGN (CURSORINFO, ptScreenPos, 4)
3844     TEST_FIELD_OFFSET(CURSORINFO, ptScreenPos, 12)
3845 }
3846 
3847 static void test_pack_CWPRETSTRUCT(void)
3848 {
3849     /* CWPRETSTRUCT */
3850     TEST_TYPE_SIZE   (CWPRETSTRUCT, 20)
3851     TEST_TYPE_ALIGN  (CWPRETSTRUCT, 4)
3852     TEST_FIELD_SIZE  (CWPRETSTRUCT, lResult, 4)
3853     TEST_FIELD_ALIGN (CWPRETSTRUCT, lResult, 4)
3854     TEST_FIELD_OFFSET(CWPRETSTRUCT, lResult, 0)
3855     TEST_FIELD_SIZE  (CWPRETSTRUCT, lParam, 4)
3856     TEST_FIELD_ALIGN (CWPRETSTRUCT, lParam, 4)
3857     TEST_FIELD_OFFSET(CWPRETSTRUCT, lParam, 4)
3858     TEST_FIELD_SIZE  (CWPRETSTRUCT, wParam, 4)
3859     TEST_FIELD_ALIGN (CWPRETSTRUCT, wParam, 4)
3860     TEST_FIELD_OFFSET(CWPRETSTRUCT, wParam, 8)
3861     TEST_FIELD_SIZE  (CWPRETSTRUCT, message, 4)
3862     TEST_FIELD_ALIGN (CWPRETSTRUCT, message, 4)
3863     TEST_FIELD_OFFSET(CWPRETSTRUCT, message, 12)
3864     TEST_FIELD_SIZE  (CWPRETSTRUCT, hwnd, 4)
3865     TEST_FIELD_ALIGN (CWPRETSTRUCT, hwnd, 4)
3866     TEST_FIELD_OFFSET(CWPRETSTRUCT, hwnd, 16)
3867 }
3868 
3869 static void test_pack_CWPSTRUCT(void)
3870 {
3871     /* CWPSTRUCT */
3872     TEST_TYPE_SIZE   (CWPSTRUCT, 16)
3873     TEST_TYPE_ALIGN  (CWPSTRUCT, 4)
3874     TEST_FIELD_SIZE  (CWPSTRUCT, lParam, 4)
3875     TEST_FIELD_ALIGN (CWPSTRUCT, lParam, 4)
3876     TEST_FIELD_OFFSET(CWPSTRUCT, lParam, 0)
3877     TEST_FIELD_SIZE  (CWPSTRUCT, wParam, 4)
3878     TEST_FIELD_ALIGN (CWPSTRUCT, wParam, 4)
3879     TEST_FIELD_OFFSET(CWPSTRUCT, wParam, 4)
3880     TEST_FIELD_SIZE  (CWPSTRUCT, message, 4)
3881     TEST_FIELD_ALIGN (CWPSTRUCT, message, 4)
3882     TEST_FIELD_OFFSET(CWPSTRUCT, message, 8)
3883     TEST_FIELD_SIZE  (CWPSTRUCT, hwnd, 4)
3884     TEST_FIELD_ALIGN (CWPSTRUCT, hwnd, 4)
3885     TEST_FIELD_OFFSET(CWPSTRUCT, hwnd, 12)
3886 }
3887 
3888 static void test_pack_DEBUGHOOKINFO(void)
3889 {
3890     /* DEBUGHOOKINFO */
3891     TEST_TYPE_SIZE   (DEBUGHOOKINFO, 20)
3892     TEST_TYPE_ALIGN  (DEBUGHOOKINFO, 4)
3893     TEST_FIELD_SIZE  (DEBUGHOOKINFO, idThread, 4)
3894     TEST_FIELD_ALIGN (DEBUGHOOKINFO, idThread, 4)
3895     TEST_FIELD_OFFSET(DEBUGHOOKINFO, idThread, 0)
3896     TEST_FIELD_SIZE  (DEBUGHOOKINFO, idThreadInstaller, 4)
3897     TEST_FIELD_ALIGN (DEBUGHOOKINFO, idThreadInstaller, 4)
3898     TEST_FIELD_OFFSET(DEBUGHOOKINFO, idThreadInstaller, 4)
3899     TEST_FIELD_SIZE  (DEBUGHOOKINFO, lParam, 4)
3900     TEST_FIELD_ALIGN (DEBUGHOOKINFO, lParam, 4)
3901     TEST_FIELD_OFFSET(DEBUGHOOKINFO, lParam, 8)
3902     TEST_FIELD_SIZE  (DEBUGHOOKINFO, wParam, 4)
3903     TEST_FIELD_ALIGN (DEBUGHOOKINFO, wParam, 4)
3904     TEST_FIELD_OFFSET(DEBUGHOOKINFO, wParam, 12)
3905     TEST_FIELD_SIZE  (DEBUGHOOKINFO, code, 4)
3906     TEST_FIELD_ALIGN (DEBUGHOOKINFO, code, 4)
3907     TEST_FIELD_OFFSET(DEBUGHOOKINFO, code, 16)
3908 }
3909 
3910 static void test_pack_DELETEITEMSTRUCT(void)
3911 {
3912     /* DELETEITEMSTRUCT */
3913     TEST_TYPE_SIZE   (DELETEITEMSTRUCT, 20)
3914     TEST_TYPE_ALIGN  (DELETEITEMSTRUCT, 4)
3915     TEST_FIELD_SIZE  (DELETEITEMSTRUCT, CtlType, 4)
3916     TEST_FIELD_ALIGN (DELETEITEMSTRUCT, CtlType, 4)
3917     TEST_FIELD_OFFSET(DELETEITEMSTRUCT, CtlType, 0)
3918     TEST_FIELD_SIZE  (DELETEITEMSTRUCT, CtlID, 4)
3919     TEST_FIELD_ALIGN (DELETEITEMSTRUCT, CtlID, 4)
3920     TEST_FIELD_OFFSET(DELETEITEMSTRUCT, CtlID, 4)
3921     TEST_FIELD_SIZE  (DELETEITEMSTRUCT, itemID, 4)
3922     TEST_FIELD_ALIGN (DELETEITEMSTRUCT, itemID, 4)
3923     TEST_FIELD_OFFSET(DELETEITEMSTRUCT, itemID, 8)
3924     TEST_FIELD_SIZE  (DELETEITEMSTRUCT, hwndItem, 4)
3925     TEST_FIELD_ALIGN (DELETEITEMSTRUCT, hwndItem, 4)
3926     TEST_FIELD_OFFSET(DELETEITEMSTRUCT, hwndItem, 12)
3927     TEST_FIELD_SIZE  (DELETEITEMSTRUCT, itemData, 4)
3928     TEST_FIELD_ALIGN (DELETEITEMSTRUCT, itemData, 4)
3929     TEST_FIELD_OFFSET(DELETEITEMSTRUCT, itemData, 16)
3930 }
3931 
3932 static void test_pack_DESKTOPENUMPROCA(void)
3933 {
3934     /* DESKTOPENUMPROCA */
3935     TEST_TYPE_SIZE   (DESKTOPENUMPROCA, 4)
3936     TEST_TYPE_ALIGN  (DESKTOPENUMPROCA, 4)
3937 }
3938 
3939 static void test_pack_DESKTOPENUMPROCW(void)
3940 {
3941     /* DESKTOPENUMPROCW */
3942     TEST_TYPE_SIZE   (DESKTOPENUMPROCW, 4)
3943     TEST_TYPE_ALIGN  (DESKTOPENUMPROCW, 4)
3944 }
3945 
3946 static void test_pack_DLGITEMTEMPLATE(void)
3947 {
3948     /* DLGITEMTEMPLATE (pack 2) */
3949     TEST_TYPE_SIZE   (DLGITEMTEMPLATE, 18)
3950     TEST_TYPE_ALIGN  (DLGITEMTEMPLATE, 2)
3951     TEST_FIELD_SIZE  (DLGITEMTEMPLATE, style, 4)
3952     TEST_FIELD_ALIGN (DLGITEMTEMPLATE, style, 2)
3953     TEST_FIELD_OFFSET(DLGITEMTEMPLATE, style, 0)
3954     TEST_FIELD_SIZE  (DLGITEMTEMPLATE, dwExtendedStyle, 4)
3955     TEST_FIELD_ALIGN (DLGITEMTEMPLATE, dwExtendedStyle, 2)
3956     TEST_FIELD_OFFSET(DLGITEMTEMPLATE, dwExtendedStyle, 4)
3957     TEST_FIELD_SIZE  (DLGITEMTEMPLATE, x, 2)
3958     TEST_FIELD_ALIGN (DLGITEMTEMPLATE, x, 2)
3959     TEST_FIELD_OFFSET(DLGITEMTEMPLATE, x, 8)
3960     TEST_FIELD_SIZE  (DLGITEMTEMPLATE, y, 2)
3961     TEST_FIELD_ALIGN (DLGITEMTEMPLATE, y, 2)
3962     TEST_FIELD_OFFSET(DLGITEMTEMPLATE, y, 10)
3963     TEST_FIELD_SIZE  (DLGITEMTEMPLATE, cx, 2)
3964     TEST_FIELD_ALIGN (DLGITEMTEMPLATE, cx, 2)
3965     TEST_FIELD_OFFSET(DLGITEMTEMPLATE, cx, 12)
3966     TEST_FIELD_SIZE  (DLGITEMTEMPLATE, cy, 2)
3967     TEST_FIELD_ALIGN (DLGITEMTEMPLATE, cy, 2)
3968     TEST_FIELD_OFFSET(DLGITEMTEMPLATE, cy, 14)
3969     TEST_FIELD_SIZE  (DLGITEMTEMPLATE, id, 2)
3970     TEST_FIELD_ALIGN (DLGITEMTEMPLATE, id, 2)
3971     TEST_FIELD_OFFSET(DLGITEMTEMPLATE, id, 16)
3972 }
3973 
3974 static void test_pack_DLGPROC(void)
3975 {
3976     /* DLGPROC */
3977     TEST_TYPE_SIZE   (DLGPROC, 4)
3978     TEST_TYPE_ALIGN  (DLGPROC, 4)
3979 }
3980 
3981 static void test_pack_DLGTEMPLATE(void)
3982 {
3983     /* DLGTEMPLATE (pack 2) */
3984     TEST_TYPE_SIZE   (DLGTEMPLATE, 18)
3985     TEST_TYPE_ALIGN  (DLGTEMPLATE, 2)
3986     TEST_FIELD_SIZE  (DLGTEMPLATE, style, 4)
3987     TEST_FIELD_ALIGN (DLGTEMPLATE, style, 2)
3988     TEST_FIELD_OFFSET(DLGTEMPLATE, style, 0)
3989     TEST_FIELD_SIZE  (DLGTEMPLATE, dwExtendedStyle, 4)
3990     TEST_FIELD_ALIGN (DLGTEMPLATE, dwExtendedStyle, 2)
3991     TEST_FIELD_OFFSET(DLGTEMPLATE, dwExtendedStyle, 4)
3992     TEST_FIELD_SIZE  (DLGTEMPLATE, cdit, 2)
3993     TEST_FIELD_ALIGN (DLGTEMPLATE, cdit, 2)
3994     TEST_FIELD_OFFSET(DLGTEMPLATE, cdit, 8)
3995     TEST_FIELD_SIZE  (DLGTEMPLATE, x, 2)
3996     TEST_FIELD_ALIGN (DLGTEMPLATE, x, 2)
3997     TEST_FIELD_OFFSET(DLGTEMPLATE, x, 10)
3998     TEST_FIELD_SIZE  (DLGTEMPLATE, y, 2)
3999     TEST_FIELD_ALIGN (DLGTEMPLATE, y, 2)
4000     TEST_FIELD_OFFSET(DLGTEMPLATE, y, 12)
4001     TEST_FIELD_SIZE  (DLGTEMPLATE, cx, 2)
4002     TEST_FIELD_ALIGN (DLGTEMPLATE, cx, 2)
4003     TEST_FIELD_OFFSET(DLGTEMPLATE, cx, 14)
4004     TEST_FIELD_SIZE  (DLGTEMPLATE, cy, 2)
4005     TEST_FIELD_ALIGN (DLGTEMPLATE, cy, 2)
4006     TEST_FIELD_OFFSET(DLGTEMPLATE, cy, 16)
4007 }
4008 
4009 static void test_pack_DRAWITEMSTRUCT(void)
4010 {
4011     /* DRAWITEMSTRUCT */
4012     TEST_TYPE_SIZE   (DRAWITEMSTRUCT, 48)
4013     TEST_TYPE_ALIGN  (DRAWITEMSTRUCT, 4)
4014     TEST_FIELD_SIZE  (DRAWITEMSTRUCT, CtlType, 4)
4015     TEST_FIELD_ALIGN (DRAWITEMSTRUCT, CtlType, 4)
4016     TEST_FIELD_OFFSET(DRAWITEMSTRUCT, CtlType, 0)
4017     TEST_FIELD_SIZE  (DRAWITEMSTRUCT, CtlID, 4)
4018     TEST_FIELD_ALIGN (DRAWITEMSTRUCT, CtlID, 4)
4019     TEST_FIELD_OFFSET(DRAWITEMSTRUCT, CtlID, 4)
4020     TEST_FIELD_SIZE  (DRAWITEMSTRUCT, itemID, 4)
4021     TEST_FIELD_ALIGN (DRAWITEMSTRUCT, itemID, 4)
4022     TEST_FIELD_OFFSET(DRAWITEMSTRUCT, itemID, 8)
4023     TEST_FIELD_SIZE  (DRAWITEMSTRUCT, itemAction, 4)
4024     TEST_FIELD_ALIGN (DRAWITEMSTRUCT, itemAction, 4)
4025     TEST_FIELD_OFFSET(DRAWITEMSTRUCT, itemAction, 12)
4026     TEST_FIELD_SIZE  (DRAWITEMSTRUCT, itemState, 4)
4027     TEST_FIELD_ALIGN (DRAWITEMSTRUCT, itemState, 4)
4028     TEST_FIELD_OFFSET(DRAWITEMSTRUCT, itemState, 16)
4029     TEST_FIELD_SIZE  (DRAWITEMSTRUCT, hwndItem, 4)
4030     TEST_FIELD_ALIGN (DRAWITEMSTRUCT, hwndItem, 4)
4031     TEST_FIELD_OFFSET(DRAWITEMSTRUCT, hwndItem, 20)
4032     TEST_FIELD_SIZE  (DRAWITEMSTRUCT, hDC, 4)
4033     TEST_FIELD_ALIGN (DRAWITEMSTRUCT, hDC, 4)
4034     TEST_FIELD_OFFSET(DRAWITEMSTRUCT, hDC, 24)
4035     TEST_FIELD_SIZE  (DRAWITEMSTRUCT, rcItem, 16)
4036     TEST_FIELD_ALIGN (DRAWITEMSTRUCT, rcItem, 4)
4037     TEST_FIELD_OFFSET(DRAWITEMSTRUCT, rcItem, 28)
4038     TEST_FIELD_SIZE  (DRAWITEMSTRUCT, itemData, 4)
4039     TEST_FIELD_ALIGN (DRAWITEMSTRUCT, itemData, 4)
4040     TEST_FIELD_OFFSET(DRAWITEMSTRUCT, itemData, 44)
4041 }
4042 
4043 static void test_pack_DRAWSTATEPROC(void)
4044 {
4045     /* DRAWSTATEPROC */
4046     TEST_TYPE_SIZE   (DRAWSTATEPROC, 4)
4047     TEST_TYPE_ALIGN  (DRAWSTATEPROC, 4)
4048 }
4049 
4050 static void test_pack_DRAWTEXTPARAMS(void)
4051 {
4052     /* DRAWTEXTPARAMS */
4053     TEST_TYPE_SIZE   (DRAWTEXTPARAMS, 20)
4054     TEST_TYPE_ALIGN  (DRAWTEXTPARAMS, 4)
4055     TEST_FIELD_SIZE  (DRAWTEXTPARAMS, cbSize, 4)
4056     TEST_FIELD_ALIGN (DRAWTEXTPARAMS, cbSize, 4)
4057     TEST_FIELD_OFFSET(DRAWTEXTPARAMS, cbSize, 0)
4058     TEST_FIELD_SIZE  (DRAWTEXTPARAMS, iTabLength, 4)
4059     TEST_FIELD_ALIGN (DRAWTEXTPARAMS, iTabLength, 4)
4060     TEST_FIELD_OFFSET(DRAWTEXTPARAMS, iTabLength, 4)
4061     TEST_FIELD_SIZE  (DRAWTEXTPARAMS, iLeftMargin, 4)
4062     TEST_FIELD_ALIGN (DRAWTEXTPARAMS, iLeftMargin, 4)
4063     TEST_FIELD_OFFSET(DRAWTEXTPARAMS, iLeftMargin, 8)
4064     TEST_FIELD_SIZE  (DRAWTEXTPARAMS, iRightMargin, 4)
4065     TEST_FIELD_ALIGN (DRAWTEXTPARAMS, iRightMargin, 4)
4066     TEST_FIELD_OFFSET(DRAWTEXTPARAMS, iRightMargin, 12)
4067     TEST_FIELD_SIZE  (DRAWTEXTPARAMS, uiLengthDrawn, 4)
4068     TEST_FIELD_ALIGN (DRAWTEXTPARAMS, uiLengthDrawn, 4)
4069     TEST_FIELD_OFFSET(DRAWTEXTPARAMS, uiLengthDrawn, 16)
4070 }
4071 
4072 static void test_pack_EDITWORDBREAKPROCA(void)
4073 {
4074     /* EDITWORDBREAKPROCA */
4075     TEST_TYPE_SIZE   (EDITWORDBREAKPROCA, 4)
4076     TEST_TYPE_ALIGN  (EDITWORDBREAKPROCA, 4)
4077 }
4078 
4079 static void test_pack_EDITWORDBREAKPROCW(void)
4080 {
4081     /* EDITWORDBREAKPROCW */
4082     TEST_TYPE_SIZE   (EDITWORDBREAKPROCW, 4)
4083     TEST_TYPE_ALIGN  (EDITWORDBREAKPROCW, 4)
4084 }
4085 
4086 static void test_pack_EVENTMSG(void)
4087 {
4088     /* EVENTMSG */
4089     TEST_TYPE_SIZE   (EVENTMSG, 20)
4090     TEST_TYPE_ALIGN  (EVENTMSG, 4)
4091     TEST_FIELD_SIZE  (EVENTMSG, message, 4)
4092     TEST_FIELD_ALIGN (EVENTMSG, message, 4)
4093     TEST_FIELD_OFFSET(EVENTMSG, message, 0)
4094     TEST_FIELD_SIZE  (EVENTMSG, paramL, 4)
4095     TEST_FIELD_ALIGN (EVENTMSG, paramL, 4)
4096     TEST_FIELD_OFFSET(EVENTMSG, paramL, 4)
4097     TEST_FIELD_SIZE  (EVENTMSG, paramH, 4)
4098     TEST_FIELD_ALIGN (EVENTMSG, paramH, 4)
4099     TEST_FIELD_OFFSET(EVENTMSG, paramH, 8)
4100     TEST_FIELD_SIZE  (EVENTMSG, time, 4)
4101     TEST_FIELD_ALIGN (EVENTMSG, time, 4)
4102     TEST_FIELD_OFFSET(EVENTMSG, time, 12)
4103     TEST_FIELD_SIZE  (EVENTMSG, hwnd, 4)
4104     TEST_FIELD_ALIGN (EVENTMSG, hwnd, 4)
4105     TEST_FIELD_OFFSET(EVENTMSG, hwnd, 16)
4106 }
4107 
4108 static void test_pack_FILTERKEYS(void)
4109 {
4110     /* FILTERKEYS */
4111     TEST_TYPE_SIZE   (FILTERKEYS, 24)
4112     TEST_TYPE_ALIGN  (FILTERKEYS, 4)
4113     TEST_FIELD_SIZE  (FILTERKEYS, cbSize, 4)
4114     TEST_FIELD_ALIGN (FILTERKEYS, cbSize, 4)
4115     TEST_FIELD_OFFSET(FILTERKEYS, cbSize, 0)
4116     TEST_FIELD_SIZE  (FILTERKEYS, dwFlags, 4)
4117     TEST_FIELD_ALIGN (FILTERKEYS, dwFlags, 4)
4118     TEST_FIELD_OFFSET(FILTERKEYS, dwFlags, 4)
4119     TEST_FIELD_SIZE  (FILTERKEYS, iWaitMSec, 4)
4120     TEST_FIELD_ALIGN (FILTERKEYS, iWaitMSec, 4)
4121     TEST_FIELD_OFFSET(FILTERKEYS, iWaitMSec, 8)
4122     TEST_FIELD_SIZE  (FILTERKEYS, iDelayMSec, 4)
4123     TEST_FIELD_ALIGN (FILTERKEYS, iDelayMSec, 4)
4124     TEST_FIELD_OFFSET(FILTERKEYS, iDelayMSec, 12)
4125     TEST_FIELD_SIZE  (FILTERKEYS, iRepeatMSec, 4)
4126     TEST_FIELD_ALIGN (FILTERKEYS, iRepeatMSec, 4)
4127     TEST_FIELD_OFFSET(FILTERKEYS, iRepeatMSec, 16)
4128     TEST_FIELD_SIZE  (FILTERKEYS, iBounceMSec, 4)
4129     TEST_FIELD_ALIGN (FILTERKEYS, iBounceMSec, 4)
4130     TEST_FIELD_OFFSET(FILTERKEYS, iBounceMSec, 20)
4131 }
4132 
4133 static void test_pack_FLASHWINFO(void)
4134 {
4135     /* FLASHWINFO */
4136     TEST_TYPE_SIZE   (FLASHWINFO, 20)
4137     TEST_TYPE_ALIGN  (FLASHWINFO, 4)
4138     TEST_FIELD_SIZE  (FLASHWINFO, cbSize, 4)
4139     TEST_FIELD_ALIGN (FLASHWINFO, cbSize, 4)
4140     TEST_FIELD_OFFSET(FLASHWINFO, cbSize, 0)
4141     TEST_FIELD_SIZE  (FLASHWINFO, hwnd, 4)
4142     TEST_FIELD_ALIGN (FLASHWINFO, hwnd, 4)
4143     TEST_FIELD_OFFSET(FLASHWINFO, hwnd, 4)
4144     TEST_FIELD_SIZE  (FLASHWINFO, dwFlags, 4)
4145     TEST_FIELD_ALIGN (FLASHWINFO, dwFlags, 4)
4146     TEST_FIELD_OFFSET(FLASHWINFO, dwFlags, 8)
4147     TEST_FIELD_SIZE  (FLASHWINFO, uCount, 4)
4148     TEST_FIELD_ALIGN (FLASHWINFO, uCount, 4)
4149     TEST_FIELD_OFFSET(FLASHWINFO, uCount, 12)
4150     TEST_FIELD_SIZE  (FLASHWINFO, dwTimeout, 4)
4151     TEST_FIELD_ALIGN (FLASHWINFO, dwTimeout, 4)
4152     TEST_FIELD_OFFSET(FLASHWINFO, dwTimeout, 16)
4153 }
4154 
4155 static void test_pack_GRAYSTRINGPROC(void)
4156 {
4157     /* GRAYSTRINGPROC */
4158     TEST_TYPE_SIZE   (GRAYSTRINGPROC, 4)
4159     TEST_TYPE_ALIGN  (GRAYSTRINGPROC, 4)
4160 }
4161 
4162 static void test_pack_GUITHREADINFO(void)
4163 {
4164     /* GUITHREADINFO */
4165     TEST_TYPE_SIZE   (GUITHREADINFO, 48)
4166     TEST_TYPE_ALIGN  (GUITHREADINFO, 4)
4167     TEST_FIELD_SIZE  (GUITHREADINFO, cbSize, 4)
4168     TEST_FIELD_ALIGN (GUITHREADINFO, cbSize, 4)
4169     TEST_FIELD_OFFSET(GUITHREADINFO, cbSize, 0)
4170     TEST_FIELD_SIZE  (GUITHREADINFO, flags, 4)
4171     TEST_FIELD_ALIGN (GUITHREADINFO, flags, 4)
4172     TEST_FIELD_OFFSET(GUITHREADINFO, flags, 4)
4173     TEST_FIELD_SIZE  (GUITHREADINFO, hwndActive, 4)
4174     TEST_FIELD_ALIGN (GUITHREADINFO, hwndActive, 4)
4175     TEST_FIELD_OFFSET(GUITHREADINFO, hwndActive, 8)
4176     TEST_FIELD_SIZE  (GUITHREADINFO, hwndFocus, 4)
4177     TEST_FIELD_ALIGN (GUITHREADINFO, hwndFocus, 4)
4178     TEST_FIELD_OFFSET(GUITHREADINFO, hwndFocus, 12)
4179     TEST_FIELD_SIZE  (GUITHREADINFO, hwndCapture, 4)
4180     TEST_FIELD_ALIGN (GUITHREADINFO, hwndCapture, 4)
4181     TEST_FIELD_OFFSET(GUITHREADINFO, hwndCapture, 16)
4182     TEST_FIELD_SIZE  (GUITHREADINFO, hwndMenuOwner, 4)
4183     TEST_FIELD_ALIGN (GUITHREADINFO, hwndMenuOwner, 4)
4184     TEST_FIELD_OFFSET(GUITHREADINFO, hwndMenuOwner, 20)
4185     TEST_FIELD_SIZE  (GUITHREADINFO, hwndMoveSize, 4)
4186     TEST_FIELD_ALIGN (GUITHREADINFO, hwndMoveSize, 4)
4187     TEST_FIELD_OFFSET(GUITHREADINFO, hwndMoveSize, 24)
4188     TEST_FIELD_SIZE  (GUITHREADINFO, hwndCaret, 4)
4189     TEST_FIELD_ALIGN (GUITHREADINFO, hwndCaret, 4)
4190     TEST_FIELD_OFFSET(GUITHREADINFO, hwndCaret, 28)
4191     TEST_FIELD_SIZE  (GUITHREADINFO, rcCaret, 16)
4192     TEST_FIELD_ALIGN (GUITHREADINFO, rcCaret, 4)
4193     TEST_FIELD_OFFSET(GUITHREADINFO, rcCaret, 32)
4194 }
4195 
4196 static void test_pack_HARDWAREHOOKSTRUCT(void)
4197 {
4198     /* HARDWAREHOOKSTRUCT */
4199     TEST_TYPE_SIZE   (HARDWAREHOOKSTRUCT, 16)
4200     TEST_TYPE_ALIGN  (HARDWAREHOOKSTRUCT, 4)
4201     TEST_FIELD_SIZE  (HARDWAREHOOKSTRUCT, hwnd, 4)
4202     TEST_FIELD_ALIGN (HARDWAREHOOKSTRUCT, hwnd, 4)
4203     TEST_FIELD_OFFSET(HARDWAREHOOKSTRUCT, hwnd, 0)
4204     TEST_FIELD_SIZE  (HARDWAREHOOKSTRUCT, message, 4)
4205     TEST_FIELD_ALIGN (HARDWAREHOOKSTRUCT, message, 4)
4206     TEST_FIELD_OFFSET(HARDWAREHOOKSTRUCT, message, 4)
4207     TEST_FIELD_SIZE  (HARDWAREHOOKSTRUCT, wParam, 4)
4208     TEST_FIELD_ALIGN (HARDWAREHOOKSTRUCT, wParam, 4)
4209     TEST_FIELD_OFFSET(HARDWAREHOOKSTRUCT, wParam, 8)
4210     TEST_FIELD_SIZE  (HARDWAREHOOKSTRUCT, lParam, 4)
4211     TEST_FIELD_ALIGN (HARDWAREHOOKSTRUCT, lParam, 4)
4212     TEST_FIELD_OFFSET(HARDWAREHOOKSTRUCT, lParam, 12)
4213 }
4214 
4215 static void test_pack_HARDWAREINPUT(void)
4216 {
4217     /* HARDWAREINPUT */
4218     TEST_TYPE_SIZE   (HARDWAREINPUT, 8)
4219     TEST_TYPE_ALIGN  (HARDWAREINPUT, 4)
4220     TEST_FIELD_SIZE  (HARDWAREINPUT, uMsg, 4)
4221     TEST_FIELD_ALIGN (HARDWAREINPUT, uMsg, 4)
4222     TEST_FIELD_OFFSET(HARDWAREINPUT, uMsg, 0)
4223     TEST_FIELD_SIZE  (HARDWAREINPUT, wParamL, 2)
4224     TEST_FIELD_ALIGN (HARDWAREINPUT, wParamL, 2)
4225     TEST_FIELD_OFFSET(HARDWAREINPUT, wParamL, 4)
4226     TEST_FIELD_SIZE  (HARDWAREINPUT, wParamH, 2)
4227     TEST_FIELD_ALIGN (HARDWAREINPUT, wParamH, 2)
4228     TEST_FIELD_OFFSET(HARDWAREINPUT, wParamH, 6)
4229 }
4230 
4231 static void test_pack_HDEVNOTIFY(void)
4232 {
4233     /* HDEVNOTIFY */
4234     TEST_TYPE_SIZE   (HDEVNOTIFY, 4)
4235     TEST_TYPE_ALIGN  (HDEVNOTIFY, 4)
4236 }
4237 
4238 static void test_pack_HDWP(void)
4239 {
4240     /* HDWP */
4241     TEST_TYPE_SIZE   (HDWP, 4)
4242     TEST_TYPE_ALIGN  (HDWP, 4)
4243 }
4244 
4245 static void test_pack_HELPINFO(void)
4246 {
4247     /* HELPINFO */
4248     TEST_TYPE_SIZE   (HELPINFO, 28)
4249     TEST_TYPE_ALIGN  (HELPINFO, 4)
4250     TEST_FIELD_SIZE  (HELPINFO, cbSize, 4)
4251     TEST_FIELD_ALIGN (HELPINFO, cbSize, 4)
4252     TEST_FIELD_OFFSET(HELPINFO, cbSize, 0)
4253     TEST_FIELD_SIZE  (HELPINFO, iContextType, 4)
4254     TEST_FIELD_ALIGN (HELPINFO, iContextType, 4)
4255     TEST_FIELD_OFFSET(HELPINFO, iContextType, 4)
4256     TEST_FIELD_SIZE  (HELPINFO, iCtrlId, 4)
4257     TEST_FIELD_ALIGN (HELPINFO, iCtrlId, 4)
4258     TEST_FIELD_OFFSET(HELPINFO, iCtrlId, 8)
4259     TEST_FIELD_SIZE  (HELPINFO, hItemHandle, 4)
4260     TEST_FIELD_ALIGN (HELPINFO, hItemHandle, 4)
4261     TEST_FIELD_OFFSET(HELPINFO, hItemHandle, 12)
4262     TEST_FIELD_SIZE  (HELPINFO, dwContextId, 4)
4263     TEST_FIELD_ALIGN (HELPINFO, dwContextId, 4)
4264     TEST_FIELD_OFFSET(HELPINFO, dwContextId, 16)
4265     TEST_FIELD_SIZE  (HELPINFO, MousePos, 8)
4266     TEST_FIELD_ALIGN (HELPINFO, MousePos, 4)
4267     TEST_FIELD_OFFSET(HELPINFO, MousePos, 20)
4268 }
4269 
4270 static void test_pack_HELPWININFOA(void)
4271 {
4272     /* HELPWININFOA */
4273     TEST_TYPE_SIZE   (HELPWININFOA, 28)
4274     TEST_TYPE_ALIGN  (HELPWININFOA, 4)
4275     TEST_FIELD_SIZE  (HELPWININFOA, wStructSize, 4)
4276     TEST_FIELD_ALIGN (HELPWININFOA, wStructSize, 4)
4277     TEST_FIELD_OFFSET(HELPWININFOA, wStructSize, 0)
4278     TEST_FIELD_SIZE  (HELPWININFOA, x, 4)
4279     TEST_FIELD_ALIGN (HELPWININFOA, x, 4)
4280     TEST_FIELD_OFFSET(HELPWININFOA, x, 4)
4281     TEST_FIELD_SIZE  (HELPWININFOA, y, 4)
4282     TEST_FIELD_ALIGN (HELPWININFOA, y, 4)
4283     TEST_FIELD_OFFSET(HELPWININFOA, y, 8)
4284     TEST_FIELD_SIZE  (HELPWININFOA, dx, 4)
4285     TEST_FIELD_ALIGN (HELPWININFOA, dx, 4)
4286     TEST_FIELD_OFFSET(HELPWININFOA, dx, 12)
4287     TEST_FIELD_SIZE  (HELPWININFOA, dy, 4)
4288     TEST_FIELD_ALIGN (HELPWININFOA, dy, 4)
4289     TEST_FIELD_OFFSET(HELPWININFOA, dy, 16)
4290     TEST_FIELD_SIZE  (HELPWININFOA, wMax, 4)
4291     TEST_FIELD_ALIGN (HELPWININFOA, wMax, 4)
4292     TEST_FIELD_OFFSET(HELPWININFOA, wMax, 20)
4293     TEST_FIELD_SIZE  (HELPWININFOA, rgchMember, 2)
4294     TEST_FIELD_ALIGN (HELPWININFOA, rgchMember, 1)
4295     TEST_FIELD_OFFSET(HELPWININFOA, rgchMember, 24)
4296 }
4297 
4298 static void test_pack_HELPWININFOW(void)
4299 {
4300     /* HELPWININFOW */
4301     TEST_TYPE_SIZE   (HELPWININFOW, 28)
4302     TEST_TYPE_ALIGN  (HELPWININFOW, 4)
4303     TEST_FIELD_SIZE  (HELPWININFOW, wStructSize, 4)
4304     TEST_FIELD_ALIGN (HELPWININFOW, wStructSize, 4)
4305     TEST_FIELD_OFFSET(HELPWININFOW, wStructSize, 0)
4306     TEST_FIELD_SIZE  (HELPWININFOW, x, 4)
4307     TEST_FIELD_ALIGN (HELPWININFOW, x, 4)
4308     TEST_FIELD_OFFSET(HELPWININFOW, x, 4)
4309     TEST_FIELD_SIZE  (HELPWININFOW, y, 4)
4310     TEST_FIELD_ALIGN (HELPWININFOW, y, 4)
4311     TEST_FIELD_OFFSET(HELPWININFOW, y, 8)
4312     TEST_FIELD_SIZE  (HELPWININFOW, dx, 4)
4313     TEST_FIELD_ALIGN (HELPWININFOW, dx, 4)
4314     TEST_FIELD_OFFSET(HELPWININFOW, dx, 12)
4315     TEST_FIELD_SIZE  (HELPWININFOW, dy, 4)
4316     TEST_FIELD_ALIGN (HELPWININFOW, dy, 4)
4317     TEST_FIELD_OFFSET(HELPWININFOW, dy, 16)
4318     TEST_FIELD_SIZE  (HELPWININFOW, wMax, 4)
4319     TEST_FIELD_ALIGN (HELPWININFOW, wMax, 4)
4320     TEST_FIELD_OFFSET(HELPWININFOW, wMax, 20)
4321     TEST_FIELD_SIZE  (HELPWININFOW, rgchMember, 4)
4322     TEST_FIELD_ALIGN (HELPWININFOW, rgchMember, 2)
4323     TEST_FIELD_OFFSET(HELPWININFOW, rgchMember, 24)
4324 }
4325 
4326 static void test_pack_HIGHCONTRASTA(void)
4327 {
4328     /* HIGHCONTRASTA */
4329     TEST_TYPE_SIZE   (HIGHCONTRASTA, 12)
4330     TEST_TYPE_ALIGN  (HIGHCONTRASTA, 4)
4331     TEST_FIELD_SIZE  (HIGHCONTRASTA, cbSize, 4)
4332     TEST_FIELD_ALIGN (HIGHCONTRASTA, cbSize, 4)
4333     TEST_FIELD_OFFSET(HIGHCONTRASTA, cbSize, 0)
4334     TEST_FIELD_SIZE  (HIGHCONTRASTA, dwFlags, 4)
4335     TEST_FIELD_ALIGN (HIGHCONTRASTA, dwFlags, 4)
4336     TEST_FIELD_OFFSET(HIGHCONTRASTA, dwFlags, 4)
4337     TEST_FIELD_SIZE  (HIGHCONTRASTA, lpszDefaultScheme, 4)
4338     TEST_FIELD_ALIGN (HIGHCONTRASTA, lpszDefaultScheme, 4)
4339     TEST_FIELD_OFFSET(HIGHCONTRASTA, lpszDefaultScheme, 8)
4340 }
4341 
4342 static void test_pack_HIGHCONTRASTW(void)
4343 {
4344     /* HIGHCONTRASTW */
4345     TEST_TYPE_SIZE   (HIGHCONTRASTW, 12)
4346     TEST_TYPE_ALIGN  (HIGHCONTRASTW, 4)
4347     TEST_FIELD_SIZE  (HIGHCONTRASTW, cbSize, 4)
4348     TEST_FIELD_ALIGN (HIGHCONTRASTW, cbSize, 4)
4349     TEST_FIELD_OFFSET(HIGHCONTRASTW, cbSize, 0)
4350     TEST_FIELD_SIZE  (HIGHCONTRASTW, dwFlags, 4)
4351     TEST_FIELD_ALIGN (HIGHCONTRASTW, dwFlags, 4)
4352     TEST_FIELD_OFFSET(HIGHCONTRASTW, dwFlags, 4)
4353     TEST_FIELD_SIZE  (HIGHCONTRASTW, lpszDefaultScheme, 4)
4354     TEST_FIELD_ALIGN (HIGHCONTRASTW, lpszDefaultScheme, 4)
4355     TEST_FIELD_OFFSET(HIGHCONTRASTW, lpszDefaultScheme, 8)
4356 }
4357 
4358 static void test_pack_HOOKPROC(void)
4359 {
4360     /* HOOKPROC */
4361     TEST_TYPE_SIZE   (HOOKPROC, 4)
4362     TEST_TYPE_ALIGN  (HOOKPROC, 4)
4363 }
4364 
4365 static void test_pack_ICONINFO(void)
4366 {
4367     /* ICONINFO */
4368     TEST_TYPE_SIZE   (ICONINFO, 20)
4369     TEST_TYPE_ALIGN  (ICONINFO, 4)
4370     TEST_FIELD_SIZE  (ICONINFO, fIcon, 4)
4371     TEST_FIELD_ALIGN (ICONINFO, fIcon, 4)
4372     TEST_FIELD_OFFSET(ICONINFO, fIcon, 0)
4373     TEST_FIELD_SIZE  (ICONINFO, xHotspot, 4)
4374     TEST_FIELD_ALIGN (ICONINFO, xHotspot, 4)
4375     TEST_FIELD_OFFSET(ICONINFO, xHotspot, 4)
4376     TEST_FIELD_SIZE  (ICONINFO, yHotspot, 4)
4377     TEST_FIELD_ALIGN (ICONINFO, yHotspot, 4)
4378     TEST_FIELD_OFFSET(ICONINFO, yHotspot, 8)
4379     TEST_FIELD_SIZE  (ICONINFO, hbmMask, 4)
4380     TEST_FIELD_ALIGN (ICONINFO, hbmMask, 4)
4381     TEST_FIELD_OFFSET(ICONINFO, hbmMask, 12)
4382     TEST_FIELD_SIZE  (ICONINFO, hbmColor, 4)
4383     TEST_FIELD_ALIGN (ICONINFO, hbmColor, 4)
4384     TEST_FIELD_OFFSET(ICONINFO, hbmColor, 16)
4385 }
4386 
4387 static void test_pack_ICONMETRICSA(void)
4388 {
4389     /* ICONMETRICSA */
4390     TEST_TYPE_SIZE   (ICONMETRICSA, 76)
4391     TEST_TYPE_ALIGN  (ICONMETRICSA, 4)
4392     TEST_FIELD_SIZE  (ICONMETRICSA, cbSize, 4)
4393     TEST_FIELD_ALIGN (ICONMETRICSA, cbSize, 4)
4394     TEST_FIELD_OFFSET(ICONMETRICSA, cbSize, 0)
4395     TEST_FIELD_SIZE  (ICONMETRICSA, iHorzSpacing, 4)
4396     TEST_FIELD_ALIGN (ICONMETRICSA, iHorzSpacing, 4)
4397     TEST_FIELD_OFFSET(ICONMETRICSA, iHorzSpacing, 4)
4398     TEST_FIELD_SIZE  (ICONMETRICSA, iVertSpacing, 4)
4399     TEST_FIELD_ALIGN (ICONMETRICSA, iVertSpacing, 4)
4400     TEST_FIELD_OFFSET(ICONMETRICSA, iVertSpacing, 8)
4401     TEST_FIELD_SIZE  (ICONMETRICSA, iTitleWrap, 4)
4402     TEST_FIELD_ALIGN (ICONMETRICSA, iTitleWrap, 4)
4403     TEST_FIELD_OFFSET(ICONMETRICSA, iTitleWrap, 12)
4404     TEST_FIELD_SIZE  (ICONMETRICSA, lfFont, 60)
4405     TEST_FIELD_ALIGN (ICONMETRICSA, lfFont, 4)
4406     TEST_FIELD_OFFSET(ICONMETRICSA, lfFont, 16)
4407 }
4408 
4409 static void test_pack_ICONMETRICSW(void)
4410 {
4411     /* ICONMETRICSW */
4412     TEST_TYPE_SIZE   (ICONMETRICSW, 108)
4413     TEST_TYPE_ALIGN  (ICONMETRICSW, 4)
4414     TEST_FIELD_SIZE  (ICONMETRICSW, cbSize, 4)
4415     TEST_FIELD_ALIGN (ICONMETRICSW, cbSize, 4)
4416     TEST_FIELD_OFFSET(ICONMETRICSW, cbSize, 0)
4417     TEST_FIELD_SIZE  (ICONMETRICSW, iHorzSpacing, 4)
4418     TEST_FIELD_ALIGN (ICONMETRICSW, iHorzSpacing, 4)
4419     TEST_FIELD_OFFSET(ICONMETRICSW, iHorzSpacing, 4)
4420     TEST_FIELD_SIZE  (ICONMETRICSW, iVertSpacing, 4)
4421     TEST_FIELD_ALIGN (ICONMETRICSW, iVertSpacing, 4)
4422     TEST_FIELD_OFFSET(ICONMETRICSW, iVertSpacing, 8)
4423     TEST_FIELD_SIZE  (ICONMETRICSW, iTitleWrap, 4)
4424     TEST_FIELD_ALIGN (ICONMETRICSW, iTitleWrap, 4)
4425     TEST_FIELD_OFFSET(ICONMETRICSW, iTitleWrap, 12)
4426     TEST_FIELD_SIZE  (ICONMETRICSW, lfFont, 92)
4427     TEST_FIELD_ALIGN (ICONMETRICSW, lfFont, 4)
4428     TEST_FIELD_OFFSET(ICONMETRICSW, lfFont, 16)
4429 }
4430 
4431 static void test_pack_INPUT(void)
4432 {
4433     /* INPUT */
4434     TEST_FIELD_SIZE  (INPUT, type, 4)
4435     TEST_FIELD_ALIGN (INPUT, type, 4)
4436     TEST_FIELD_OFFSET(INPUT, type, 0)
4437 }
4438 
4439 static void test_pack_KBDLLHOOKSTRUCT(void)
4440 {
4441     /* KBDLLHOOKSTRUCT */
4442     TEST_TYPE_SIZE   (KBDLLHOOKSTRUCT, 20)
4443     TEST_TYPE_ALIGN  (KBDLLHOOKSTRUCT, 4)
4444     TEST_FIELD_SIZE  (KBDLLHOOKSTRUCT, vkCode, 4)
4445     TEST_FIELD_ALIGN (KBDLLHOOKSTRUCT, vkCode, 4)
4446     TEST_FIELD_OFFSET(KBDLLHOOKSTRUCT, vkCode, 0)
4447     TEST_FIELD_SIZE  (KBDLLHOOKSTRUCT, scanCode, 4)
4448     TEST_FIELD_ALIGN (KBDLLHOOKSTRUCT, scanCode, 4)
4449     TEST_FIELD_OFFSET(KBDLLHOOKSTRUCT, scanCode, 4)
4450     TEST_FIELD_SIZE  (KBDLLHOOKSTRUCT, flags, 4)
4451     TEST_FIELD_ALIGN (KBDLLHOOKSTRUCT, flags, 4)
4452     TEST_FIELD_OFFSET(KBDLLHOOKSTRUCT, flags, 8)
4453     TEST_FIELD_SIZE  (KBDLLHOOKSTRUCT, time, 4)
4454     TEST_FIELD_ALIGN (KBDLLHOOKSTRUCT, time, 4)
4455     TEST_FIELD_OFFSET(KBDLLHOOKSTRUCT, time, 12)
4456     TEST_FIELD_SIZE  (KBDLLHOOKSTRUCT, dwExtraInfo, 4)
4457     TEST_FIELD_ALIGN (KBDLLHOOKSTRUCT, dwExtraInfo, 4)
4458     TEST_FIELD_OFFSET(KBDLLHOOKSTRUCT, dwExtraInfo, 16)
4459 }
4460 
4461 static void test_pack_KEYBDINPUT(void)
4462 {
4463     /* KEYBDINPUT */
4464     TEST_TYPE_SIZE   (KEYBDINPUT, 16)
4465     TEST_TYPE_ALIGN  (KEYBDINPUT, 4)
4466     TEST_FIELD_SIZE  (KEYBDINPUT, wVk, 2)
4467     TEST_FIELD_ALIGN (KEYBDINPUT, wVk, 2)
4468     TEST_FIELD_OFFSET(KEYBDINPUT, wVk, 0)
4469     TEST_FIELD_SIZE  (KEYBDINPUT, wScan, 2)
4470     TEST_FIELD_ALIGN (KEYBDINPUT, wScan, 2)
4471     TEST_FIELD_OFFSET(KEYBDINPUT, wScan, 2)
4472     TEST_FIELD_SIZE  (KEYBDINPUT, dwFlags, 4)
4473     TEST_FIELD_ALIGN (KEYBDINPUT, dwFlags, 4)
4474     TEST_FIELD_OFFSET(KEYBDINPUT, dwFlags, 4)
4475     TEST_FIELD_SIZE  (KEYBDINPUT, time, 4)
4476     TEST_FIELD_ALIGN (KEYBDINPUT, time, 4)
4477     TEST_FIELD_OFFSET(KEYBDINPUT, time, 8)
4478     TEST_FIELD_SIZE  (KEYBDINPUT, dwExtraInfo, 4)
4479     TEST_FIELD_ALIGN (KEYBDINPUT, dwExtraInfo, 4)
4480     TEST_FIELD_OFFSET(KEYBDINPUT, dwExtraInfo, 12)
4481 }
4482 
4483 static void test_pack_LPACCESSTIMEOUT(void)
4484 {
4485     /* LPACCESSTIMEOUT */
4486     TEST_TYPE_SIZE   (LPACCESSTIMEOUT, 4)
4487     TEST_TYPE_ALIGN  (LPACCESSTIMEOUT, 4)
4488     TEST_TARGET_SIZE (LPACCESSTIMEOUT, 12)
4489     TEST_TARGET_ALIGN(LPACCESSTIMEOUT, 4)
4490 }
4491 
4492 static void test_pack_LPANIMATIONINFO(void)
4493 {
4494     /* LPANIMATIONINFO */
4495     TEST_TYPE_SIZE   (LPANIMATIONINFO, 4)
4496     TEST_TYPE_ALIGN  (LPANIMATIONINFO, 4)
4497     TEST_TARGET_SIZE (LPANIMATIONINFO, 8)
4498     TEST_TARGET_ALIGN(LPANIMATIONINFO, 4)
4499 }
4500 
4501 static void test_pack_LPCBTACTIVATESTRUCT(void)
4502 {
4503     /* LPCBTACTIVATESTRUCT */
4504     TEST_TYPE_SIZE   (LPCBTACTIVATESTRUCT, 4)
4505     TEST_TYPE_ALIGN  (LPCBTACTIVATESTRUCT, 4)
4506     TEST_TARGET_SIZE (LPCBTACTIVATESTRUCT, 8)
4507     TEST_TARGET_ALIGN(LPCBTACTIVATESTRUCT, 4)
4508 }
4509 
4510 static void test_pack_LPCBT_CREATEWNDA(void)
4511 {
4512     /* LPCBT_CREATEWNDA */
4513     TEST_TYPE_SIZE   (LPCBT_CREATEWNDA, 4)
4514     TEST_TYPE_ALIGN  (LPCBT_CREATEWNDA, 4)
4515     TEST_TARGET_SIZE (LPCBT_CREATEWNDA, 8)
4516     TEST_TARGET_ALIGN(LPCBT_CREATEWNDA, 4)
4517 }
4518 
4519 static void test_pack_LPCBT_CREATEWNDW(void)
4520 {
4521     /* LPCBT_CREATEWNDW */
4522     TEST_TYPE_SIZE   (LPCBT_CREATEWNDW, 4)
4523     TEST_TYPE_ALIGN  (LPCBT_CREATEWNDW, 4)
4524     TEST_TARGET_SIZE (LPCBT_CREATEWNDW, 8)
4525     TEST_TARGET_ALIGN(LPCBT_CREATEWNDW, 4)
4526 }
4527 
4528 static void test_pack_LPCDLGTEMPLATEA(void)
4529 {
4530     /* LPCDLGTEMPLATEA */
4531     TEST_TYPE_SIZE   (LPCDLGTEMPLATEA, 4)
4532     TEST_TYPE_ALIGN  (LPCDLGTEMPLATEA, 4)
4533     TEST_TARGET_SIZE (LPCDLGTEMPLATEA, 18)
4534     TEST_TARGET_ALIGN(LPCDLGTEMPLATEA, 2)
4535 }
4536 
4537 static void test_pack_LPCDLGTEMPLATEW(void)
4538 {
4539     /* LPCDLGTEMPLATEW */
4540     TEST_TYPE_SIZE   (LPCDLGTEMPLATEW, 4)
4541     TEST_TYPE_ALIGN  (LPCDLGTEMPLATEW, 4)
4542     TEST_TARGET_SIZE (LPCDLGTEMPLATEW, 18)
4543     TEST_TARGET_ALIGN(LPCDLGTEMPLATEW, 2)
4544 }
4545 
4546 static void test_pack_LPCLIENTCREATESTRUCT(void)
4547 {
4548     /* LPCLIENTCREATESTRUCT */
4549     TEST_TYPE_SIZE   (LPCLIENTCREATESTRUCT, 4)
4550     TEST_TYPE_ALIGN  (LPCLIENTCREATESTRUCT, 4)
4551     TEST_TARGET_SIZE (LPCLIENTCREATESTRUCT, 8)
4552     TEST_TARGET_ALIGN(LPCLIENTCREATESTRUCT, 4)
4553 }
4554 
4555 static void test_pack_LPCMENUINFO(void)
4556 {
4557     /* LPCMENUINFO */
4558     TEST_TYPE_SIZE   (LPCMENUINFO, 4)
4559     TEST_TYPE_ALIGN  (LPCMENUINFO, 4)
4560     TEST_TARGET_SIZE (LPCMENUINFO, 28)
4561     TEST_TARGET_ALIGN(LPCMENUINFO, 4)
4562 }
4563 
4564 static void test_pack_LPCMENUITEMINFOA(void)
4565 {
4566     /* LPCMENUITEMINFOA */
4567     TEST_TYPE_SIZE   (LPCMENUITEMINFOA, 4)
4568     TEST_TYPE_ALIGN  (LPCMENUITEMINFOA, 4)
4569     TEST_TARGET_SIZE (LPCMENUITEMINFOA, 48)
4570     TEST_TARGET_ALIGN(LPCMENUITEMINFOA, 4)
4571 }
4572 
4573 static void test_pack_LPCMENUITEMINFOW(void)
4574 {
4575     /* LPCMENUITEMINFOW */
4576     TEST_TYPE_SIZE   (LPCMENUITEMINFOW, 4)
4577     TEST_TYPE_ALIGN  (LPCMENUITEMINFOW, 4)
4578     TEST_TARGET_SIZE (LPCMENUITEMINFOW, 48)
4579     TEST_TARGET_ALIGN(LPCMENUITEMINFOW, 4)
4580 }
4581 
4582 static void test_pack_LPCOMBOBOXINFO(void)
4583 {
4584     /* LPCOMBOBOXINFO */
4585     TEST_TYPE_SIZE   (LPCOMBOBOXINFO, 4)
4586     TEST_TYPE_ALIGN  (LPCOMBOBOXINFO, 4)
4587     TEST_TARGET_SIZE (LPCOMBOBOXINFO, 52)
4588     TEST_TARGET_ALIGN(LPCOMBOBOXINFO, 4)
4589 }
4590 
4591 static void test_pack_LPCOMPAREITEMSTRUCT(void)
4592 {
4593     /* LPCOMPAREITEMSTRUCT */
4594     TEST_TYPE_SIZE   (LPCOMPAREITEMSTRUCT, 4)
4595     TEST_TYPE_ALIGN  (LPCOMPAREITEMSTRUCT, 4)
4596     TEST_TARGET_SIZE (LPCOMPAREITEMSTRUCT, 32)
4597     TEST_TARGET_ALIGN(LPCOMPAREITEMSTRUCT, 4)
4598 }
4599 
4600 static void test_pack_LPCREATESTRUCTA(void)
4601 {
4602     /* LPCREATESTRUCTA */
4603     TEST_TYPE_SIZE   (LPCREATESTRUCTA, 4)
4604     TEST_TYPE_ALIGN  (LPCREATESTRUCTA, 4)
4605     TEST_TARGET_SIZE (LPCREATESTRUCTA, 48)
4606     TEST_TARGET_ALIGN(LPCREATESTRUCTA, 4)
4607 }
4608 
4609 static void test_pack_LPCREATESTRUCTW(void)
4610 {
4611     /* LPCREATESTRUCTW */
4612     TEST_TYPE_SIZE   (LPCREATESTRUCTW, 4)
4613     TEST_TYPE_ALIGN  (LPCREATESTRUCTW, 4)
4614     TEST_TARGET_SIZE (LPCREATESTRUCTW, 48)
4615     TEST_TARGET_ALIGN(LPCREATESTRUCTW, 4)
4616 }
4617 
4618 static void test_pack_LPCSCROLLINFO(void)
4619 {
4620     /* LPCSCROLLINFO */
4621     TEST_TYPE_SIZE   (LPCSCROLLINFO, 4)
4622     TEST_TYPE_ALIGN  (LPCSCROLLINFO, 4)
4623     TEST_TARGET_SIZE (LPCSCROLLINFO, 28)
4624     TEST_TARGET_ALIGN(LPCSCROLLINFO, 4)
4625 }
4626 
4627 static void test_pack_LPCURSORINFO(void)
4628 {
4629     /* LPCURSORINFO */
4630     TEST_TYPE_SIZE   (LPCURSORINFO, 4)
4631     TEST_TYPE_ALIGN  (LPCURSORINFO, 4)
4632     TEST_TARGET_SIZE (LPCURSORINFO, 20)
4633     TEST_TARGET_ALIGN(LPCURSORINFO, 4)
4634 }
4635 
4636 static void test_pack_LPCWPRETSTRUCT(void)
4637 {
4638     /* LPCWPRETSTRUCT */
4639     TEST_TYPE_SIZE   (LPCWPRETSTRUCT, 4)
4640     TEST_TYPE_ALIGN  (LPCWPRETSTRUCT, 4)
4641     TEST_TARGET_SIZE (LPCWPRETSTRUCT, 20)
4642     TEST_TARGET_ALIGN(LPCWPRETSTRUCT, 4)
4643 }
4644 
4645 static void test_pack_LPCWPSTRUCT(void)
4646 {
4647     /* LPCWPSTRUCT */
4648     TEST_TYPE_SIZE   (LPCWPSTRUCT, 4)
4649     TEST_TYPE_ALIGN  (LPCWPSTRUCT, 4)
4650     TEST_TARGET_SIZE (LPCWPSTRUCT, 16)
4651     TEST_TARGET_ALIGN(LPCWPSTRUCT, 4)
4652 }
4653 
4654 static void test_pack_LPDEBUGHOOKINFO(void)
4655 {
4656     /* LPDEBUGHOOKINFO */
4657     TEST_TYPE_SIZE   (LPDEBUGHOOKINFO, 4)
4658     TEST_TYPE_ALIGN  (LPDEBUGHOOKINFO, 4)
4659     TEST_TARGET_SIZE (LPDEBUGHOOKINFO, 20)
4660     TEST_TARGET_ALIGN(LPDEBUGHOOKINFO, 4)
4661 }
4662 
4663 static void test_pack_LPDELETEITEMSTRUCT(void)
4664 {
4665     /* LPDELETEITEMSTRUCT */
4666     TEST_TYPE_SIZE   (LPDELETEITEMSTRUCT, 4)
4667     TEST_TYPE_ALIGN  (LPDELETEITEMSTRUCT, 4)
4668     TEST_TARGET_SIZE (LPDELETEITEMSTRUCT, 20)
4669     TEST_TARGET_ALIGN(LPDELETEITEMSTRUCT, 4)
4670 }
4671 
4672 static void test_pack_LPDLGITEMTEMPLATEA(void)
4673 {
4674     /* LPDLGITEMTEMPLATEA */
4675     TEST_TYPE_SIZE   (LPDLGITEMTEMPLATEA, 4)
4676     TEST_TYPE_ALIGN  (LPDLGITEMTEMPLATEA, 4)
4677     TEST_TARGET_SIZE (LPDLGITEMTEMPLATEA, 18)
4678     TEST_TARGET_ALIGN(LPDLGITEMTEMPLATEA, 2)
4679 }
4680 
4681 static void test_pack_LPDLGITEMTEMPLATEW(void)
4682 {
4683     /* LPDLGITEMTEMPLATEW */
4684     TEST_TYPE_SIZE   (LPDLGITEMTEMPLATEW, 4)
4685     TEST_TYPE_ALIGN  (LPDLGITEMTEMPLATEW, 4)
4686     TEST_TARGET_SIZE (LPDLGITEMTEMPLATEW, 18)
4687     TEST_TARGET_ALIGN(LPDLGITEMTEMPLATEW, 2)
4688 }
4689 
4690 static void test_pack_LPDLGTEMPLATEA(void)
4691 {
4692     /* LPDLGTEMPLATEA */
4693     TEST_TYPE_SIZE   (LPDLGTEMPLATEA, 4)
4694     TEST_TYPE_ALIGN  (LPDLGTEMPLATEA, 4)
4695     TEST_TARGET_SIZE (LPDLGTEMPLATEA, 18)
4696     TEST_TARGET_ALIGN(LPDLGTEMPLATEA, 2)
4697 }
4698 
4699 static void test_pack_LPDLGTEMPLATEW(void)
4700 {
4701     /* LPDLGTEMPLATEW */
4702     TEST_TYPE_SIZE   (LPDLGTEMPLATEW, 4)
4703     TEST_TYPE_ALIGN  (LPDLGTEMPLATEW, 4)
4704     TEST_TARGET_SIZE (LPDLGTEMPLATEW, 18)
4705     TEST_TARGET_ALIGN(LPDLGTEMPLATEW, 2)
4706 }
4707 
4708 static void test_pack_LPDRAWITEMSTRUCT(void)
4709 {
4710     /* LPDRAWITEMSTRUCT */
4711     TEST_TYPE_SIZE   (LPDRAWITEMSTRUCT, 4)
4712     TEST_TYPE_ALIGN  (LPDRAWITEMSTRUCT, 4)
4713     TEST_TARGET_SIZE (LPDRAWITEMSTRUCT, 48)
4714     TEST_TARGET_ALIGN(LPDRAWITEMSTRUCT, 4)
4715 }
4716 
4717 static void test_pack_LPDRAWTEXTPARAMS(void)
4718 {
4719     /* LPDRAWTEXTPARAMS */
4720     TEST_TYPE_SIZE   (LPDRAWTEXTPARAMS, 4)
4721     TEST_TYPE_ALIGN  (LPDRAWTEXTPARAMS, 4)
4722     TEST_TARGET_SIZE (LPDRAWTEXTPARAMS, 20)
4723     TEST_TARGET_ALIGN(LPDRAWTEXTPARAMS, 4)
4724 }
4725 
4726 static void test_pack_LPEVENTMSG(void)
4727 {
4728     /* LPEVENTMSG */
4729     TEST_TYPE_SIZE   (LPEVENTMSG, 4)
4730     TEST_TYPE_ALIGN  (LPEVENTMSG, 4)
4731     TEST_TARGET_SIZE (LPEVENTMSG, 20)
4732     TEST_TARGET_ALIGN(LPEVENTMSG, 4)
4733 }
4734 
4735 static void test_pack_LPFILTERKEYS(void)
4736 {
4737     /* LPFILTERKEYS */
4738     TEST_TYPE_SIZE   (LPFILTERKEYS, 4)
4739     TEST_TYPE_ALIGN  (LPFILTERKEYS, 4)
4740     TEST_TARGET_SIZE (LPFILTERKEYS, 24)
4741     TEST_TARGET_ALIGN(LPFILTERKEYS, 4)
4742 }
4743 
4744 static void test_pack_LPGUITHREADINFO(void)
4745 {
4746     /* LPGUITHREADINFO */
4747     TEST_TYPE_SIZE   (LPGUITHREADINFO, 4)
4748     TEST_TYPE_ALIGN  (LPGUITHREADINFO, 4)
4749     TEST_TARGET_SIZE (LPGUITHREADINFO, 48)
4750     TEST_TARGET_ALIGN(LPGUITHREADINFO, 4)
4751 }
4752 
4753 static void test_pack_LPHARDWAREHOOKSTRUCT(void)
4754 {
4755     /* LPHARDWAREHOOKSTRUCT */
4756     TEST_TYPE_SIZE   (LPHARDWAREHOOKSTRUCT, 4)
4757     TEST_TYPE_ALIGN  (LPHARDWAREHOOKSTRUCT, 4)
4758     TEST_TARGET_SIZE (LPHARDWAREHOOKSTRUCT, 16)
4759     TEST_TARGET_ALIGN(LPHARDWAREHOOKSTRUCT, 4)
4760 }
4761 
4762 static void test_pack_LPHARDWAREINPUT(void)
4763 {
4764     /* LPHARDWAREINPUT */
4765     TEST_TYPE_SIZE   (LPHARDWAREINPUT, 4)
4766     TEST_TYPE_ALIGN  (LPHARDWAREINPUT, 4)
4767     TEST_TARGET_SIZE (LPHARDWAREINPUT, 8)
4768     TEST_TARGET_ALIGN(LPHARDWAREINPUT, 4)
4769 }
4770 
4771 static void test_pack_LPHELPINFO(void)
4772 {
4773     /* LPHELPINFO */
4774     TEST_TYPE_SIZE   (LPHELPINFO, 4)
4775     TEST_TYPE_ALIGN  (LPHELPINFO, 4)
4776     TEST_TARGET_SIZE (LPHELPINFO, 28)
4777     TEST_TARGET_ALIGN(LPHELPINFO, 4)
4778 }
4779 
4780 static void test_pack_LPHELPWININFOA(void)
4781 {
4782     /* LPHELPWININFOA */
4783     TEST_TYPE_SIZE   (LPHELPWININFOA, 4)
4784     TEST_TYPE_ALIGN  (LPHELPWININFOA, 4)
4785     TEST_TARGET_SIZE (LPHELPWININFOA, 28)
4786     TEST_TARGET_ALIGN(LPHELPWININFOA, 4)
4787 }
4788 
4789 static void test_pack_LPHELPWININFOW(void)
4790 {
4791     /* LPHELPWININFOW */
4792     TEST_TYPE_SIZE   (LPHELPWININFOW, 4)
4793     TEST_TYPE_ALIGN  (LPHELPWININFOW, 4)
4794     TEST_TARGET_SIZE (LPHELPWININFOW, 28)
4795     TEST_TARGET_ALIGN(LPHELPWININFOW, 4)
4796 }
4797 
4798 static void test_pack_LPHIGHCONTRASTA(void)
4799 {
4800     /* LPHIGHCONTRASTA */
4801     TEST_TYPE_SIZE   (LPHIGHCONTRASTA, 4)
4802     TEST_TYPE_ALIGN  (LPHIGHCONTRASTA, 4)
4803     TEST_TARGET_SIZE (LPHIGHCONTRASTA, 12)
4804     TEST_TARGET_ALIGN(LPHIGHCONTRASTA, 4)
4805 }
4806 
4807 static void test_pack_LPHIGHCONTRASTW(void)
4808 {
4809     /* LPHIGHCONTRASTW */
4810     TEST_TYPE_SIZE   (LPHIGHCONTRASTW, 4)
4811     TEST_TYPE_ALIGN  (LPHIGHCONTRASTW, 4)
4812     TEST_TARGET_SIZE (LPHIGHCONTRASTW, 12)
4813     TEST_TARGET_ALIGN(LPHIGHCONTRASTW, 4)
4814 }
4815 
4816 static void test_pack_LPICONMETRICSA(void)
4817 {
4818     /* LPICONMETRICSA */
4819     TEST_TYPE_SIZE   (LPICONMETRICSA, 4)
4820     TEST_TYPE_ALIGN  (LPICONMETRICSA, 4)
4821     TEST_TARGET_SIZE (LPICONMETRICSA, 76)
4822     TEST_TARGET_ALIGN(LPICONMETRICSA, 4)
4823 }
4824 
4825 static void test_pack_LPICONMETRICSW(void)
4826 {
4827     /* LPICONMETRICSW */
4828     TEST_TYPE_SIZE   (LPICONMETRICSW, 4)
4829     TEST_TYPE_ALIGN  (LPICONMETRICSW, 4)
4830     TEST_TARGET_SIZE (LPICONMETRICSW, 108)
4831     TEST_TARGET_ALIGN(LPICONMETRICSW, 4)
4832 }
4833 
4834 static void test_pack_LPINPUT(void)
4835 {
4836     /* LPINPUT */
4837     TEST_TYPE_SIZE   (LPINPUT, 4)
4838     TEST_TYPE_ALIGN  (LPINPUT, 4)
4839 }
4840 
4841 static void test_pack_LPKBDLLHOOKSTRUCT(void)
4842 {
4843     /* LPKBDLLHOOKSTRUCT */
4844     TEST_TYPE_SIZE   (LPKBDLLHOOKSTRUCT, 4)
4845     TEST_TYPE_ALIGN  (LPKBDLLHOOKSTRUCT, 4)
4846     TEST_TARGET_SIZE (LPKBDLLHOOKSTRUCT, 20)
4847     TEST_TARGET_ALIGN(LPKBDLLHOOKSTRUCT, 4)
4848 }
4849 
4850 static void test_pack_LPKEYBDINPUT(void)
4851 {
4852     /* LPKEYBDINPUT */
4853     TEST_TYPE_SIZE   (LPKEYBDINPUT, 4)
4854     TEST_TYPE_ALIGN  (LPKEYBDINPUT, 4)
4855     TEST_TARGET_SIZE (LPKEYBDINPUT, 16)
4856     TEST_TARGET_ALIGN(LPKEYBDINPUT, 4)
4857 }
4858 
4859 static void test_pack_LPMDICREATESTRUCTA(void)
4860 {
4861     /* LPMDICREATESTRUCTA */
4862     TEST_TYPE_SIZE   (LPMDICREATESTRUCTA, 4)
4863     TEST_TYPE_ALIGN  (LPMDICREATESTRUCTA, 4)
4864     TEST_TARGET_SIZE (LPMDICREATESTRUCTA, 36)
4865     TEST_TARGET_ALIGN(LPMDICREATESTRUCTA, 4)
4866 }
4867 
4868 static void test_pack_LPMDICREATESTRUCTW(void)
4869 {
4870     /* LPMDICREATESTRUCTW */
4871     TEST_TYPE_SIZE   (LPMDICREATESTRUCTW, 4)
4872     TEST_TYPE_ALIGN  (LPMDICREATESTRUCTW, 4)
4873     TEST_TARGET_SIZE (LPMDICREATESTRUCTW, 36)
4874     TEST_TARGET_ALIGN(LPMDICREATESTRUCTW, 4)
4875 }
4876 
4877 static void test_pack_LPMDINEXTMENU(void)
4878 {
4879     /* LPMDINEXTMENU */
4880     TEST_TYPE_SIZE   (LPMDINEXTMENU, 4)
4881     TEST_TYPE_ALIGN  (LPMDINEXTMENU, 4)
4882     TEST_TARGET_SIZE (LPMDINEXTMENU, 12)
4883     TEST_TARGET_ALIGN(LPMDINEXTMENU, 4)
4884 }
4885 
4886 static void test_pack_LPMEASUREITEMSTRUCT(void)
4887 {
4888     /* LPMEASUREITEMSTRUCT */
4889     TEST_TYPE_SIZE   (LPMEASUREITEMSTRUCT, 4)
4890     TEST_TYPE_ALIGN  (LPMEASUREITEMSTRUCT, 4)
4891     TEST_TARGET_SIZE (LPMEASUREITEMSTRUCT, 24)
4892     TEST_TARGET_ALIGN(LPMEASUREITEMSTRUCT, 4)
4893 }
4894 
4895 static void test_pack_LPMENUINFO(void)
4896 {
4897     /* LPMENUINFO */
4898     TEST_TYPE_SIZE   (LPMENUINFO, 4)
4899     TEST_TYPE_ALIGN  (LPMENUINFO, 4)
4900     TEST_TARGET_SIZE (LPMENUINFO, 28)
4901     TEST_TARGET_ALIGN(LPMENUINFO, 4)
4902 }
4903 
4904 static void test_pack_LPMENUITEMINFOA(void)
4905 {
4906     /* LPMENUITEMINFOA */
4907     TEST_TYPE_SIZE   (LPMENUITEMINFOA, 4)
4908     TEST_TYPE_ALIGN  (LPMENUITEMINFOA, 4)
4909     TEST_TARGET_SIZE (LPMENUITEMINFOA, 48)
4910     TEST_TARGET_ALIGN(LPMENUITEMINFOA, 4)
4911 }
4912 
4913 static void test_pack_LPMENUITEMINFOW(void)
4914 {
4915     /* LPMENUITEMINFOW */
4916     TEST_TYPE_SIZE   (LPMENUITEMINFOW, 4)
4917     TEST_TYPE_ALIGN  (LPMENUITEMINFOW, 4)
4918     TEST_TARGET_SIZE (LPMENUITEMINFOW, 48)
4919     TEST_TARGET_ALIGN(LPMENUITEMINFOW, 4)
4920 }
4921 
4922 static void test_pack_LPMINIMIZEDMETRICS(void)
4923 {
4924     /* LPMINIMIZEDMETRICS */
4925     TEST_TYPE_SIZE   (LPMINIMIZEDMETRICS, 4)
4926     TEST_TYPE_ALIGN  (LPMINIMIZEDMETRICS, 4)
4927     TEST_TARGET_SIZE (LPMINIMIZEDMETRICS, 20)
4928     TEST_TARGET_ALIGN(LPMINIMIZEDMETRICS, 4)
4929 }
4930 
4931 static void test_pack_LPMINMAXINFO(void)
4932 {
4933     /* LPMINMAXINFO */
4934     TEST_TYPE_SIZE   (LPMINMAXINFO, 4)
4935     TEST_TYPE_ALIGN  (LPMINMAXINFO, 4)
4936     TEST_TARGET_SIZE (LPMINMAXINFO, 40)
4937     TEST_TARGET_ALIGN(LPMINMAXINFO, 4)
4938 }
4939 
4940 static void test_pack_LPMONITORINFO(void)
4941 {
4942     /* LPMONITORINFO */
4943     TEST_TYPE_SIZE   (LPMONITORINFO, 4)
4944     TEST_TYPE_ALIGN  (LPMONITORINFO, 4)
4945     TEST_TARGET_SIZE (LPMONITORINFO, 40)
4946     TEST_TARGET_ALIGN(LPMONITORINFO, 4)
4947 }
4948 
4949 static void test_pack_LPMONITORINFOEXA(void)
4950 {
4951     /* LPMONITORINFOEXA */
4952     TEST_TYPE_SIZE   (LPMONITORINFOEXA, 4)
4953     TEST_TYPE_ALIGN  (LPMONITORINFOEXA, 4)
4954     TEST_TARGET_SIZE (LPMONITORINFOEXA, 72)
4955     TEST_TARGET_ALIGN(LPMONITORINFOEXA, 4)
4956 }
4957 
4958 static void test_pack_LPMONITORINFOEXW(void)
4959 {
4960     /* LPMONITORINFOEXW */
4961     TEST_TYPE_SIZE   (LPMONITORINFOEXW, 4)
4962     TEST_TYPE_ALIGN  (LPMONITORINFOEXW, 4)
4963     TEST_TARGET_SIZE (LPMONITORINFOEXW, 104)
4964     TEST_TARGET_ALIGN(LPMONITORINFOEXW, 4)
4965 }
4966 
4967 static void test_pack_LPMOUSEHOOKSTRUCT(void)
4968 {
4969     /* LPMOUSEHOOKSTRUCT */
4970     TEST_TYPE_SIZE   (LPMOUSEHOOKSTRUCT, 4)
4971     TEST_TYPE_ALIGN  (LPMOUSEHOOKSTRUCT, 4)
4972     TEST_TARGET_SIZE (LPMOUSEHOOKSTRUCT, 20)
4973     TEST_TARGET_ALIGN(LPMOUSEHOOKSTRUCT, 4)
4974 }
4975 
4976 static void test_pack_LPMOUSEINPUT(void)
4977 {
4978     /* LPMOUSEINPUT */
4979     TEST_TYPE_SIZE   (LPMOUSEINPUT, 4)
4980     TEST_TYPE_ALIGN  (LPMOUSEINPUT, 4)
4981     TEST_TARGET_SIZE (LPMOUSEINPUT, 24)
4982     TEST_TARGET_ALIGN(LPMOUSEINPUT, 4)
4983 }
4984 
4985 static void test_pack_LPMOUSEKEYS(void)
4986 {
4987     /* LPMOUSEKEYS */
4988     TEST_TYPE_SIZE   (LPMOUSEKEYS, 4)
4989     TEST_TYPE_ALIGN  (LPMOUSEKEYS, 4)
4990     TEST_TARGET_SIZE (LPMOUSEKEYS, 28)
4991     TEST_TARGET_ALIGN(LPMOUSEKEYS, 4)
4992 }
4993 
4994 static void test_pack_LPMSG(void)
4995 {
4996     /* LPMSG */
4997     TEST_TYPE_SIZE   (LPMSG, 4)
4998     TEST_TYPE_ALIGN  (LPMSG, 4)
4999     TEST_TARGET_SIZE (LPMSG, 28)
5000     TEST_TARGET_ALIGN(LPMSG, 4)
5001 }
5002 
5003 static void test_pack_LPMSGBOXPARAMSA(void)
5004 {
5005     /* LPMSGBOXPARAMSA */
5006     TEST_TYPE_SIZE   (LPMSGBOXPARAMSA, 4)
5007     TEST_TYPE_ALIGN  (LPMSGBOXPARAMSA, 4)
5008     TEST_TARGET_SIZE (LPMSGBOXPARAMSA, 40)
5009     TEST_TARGET_ALIGN(LPMSGBOXPARAMSA, 4)
5010 }
5011 
5012 static void test_pack_LPMSGBOXPARAMSW(void)
5013 {
5014     /* LPMSGBOXPARAMSW */
5015     TEST_TYPE_SIZE   (LPMSGBOXPARAMSW, 4)
5016     TEST_TYPE_ALIGN  (LPMSGBOXPARAMSW, 4)
5017     TEST_TARGET_SIZE (LPMSGBOXPARAMSW, 40)
5018     TEST_TARGET_ALIGN(LPMSGBOXPARAMSW, 4)
5019 }
5020 
5021 static void test_pack_LPMSLLHOOKSTRUCT(void)
5022 {
5023     /* LPMSLLHOOKSTRUCT */
5024     TEST_TYPE_SIZE   (LPMSLLHOOKSTRUCT, 4)
5025     TEST_TYPE_ALIGN  (LPMSLLHOOKSTRUCT, 4)
5026     TEST_TARGET_SIZE (LPMSLLHOOKSTRUCT, 24)
5027     TEST_TARGET_ALIGN(LPMSLLHOOKSTRUCT, 4)
5028 }
5029 
5030 static void test_pack_LPMULTIKEYHELPA(void)
5031 {
5032     /* LPMULTIKEYHELPA */
5033     TEST_TYPE_SIZE   (LPMULTIKEYHELPA, 4)
5034     TEST_TYPE_ALIGN  (LPMULTIKEYHELPA, 4)
5035     TEST_TARGET_SIZE (LPMULTIKEYHELPA, 8)
5036     TEST_TARGET_ALIGN(LPMULTIKEYHELPA, 4)
5037 }
5038 
5039 static void test_pack_LPMULTIKEYHELPW(void)
5040 {
5041     /* LPMULTIKEYHELPW */
5042     TEST_TYPE_SIZE   (LPMULTIKEYHELPW, 4)
5043     TEST_TYPE_ALIGN  (LPMULTIKEYHELPW, 4)
5044     TEST_TARGET_SIZE (LPMULTIKEYHELPW, 8)
5045     TEST_TARGET_ALIGN(LPMULTIKEYHELPW, 4)
5046 }
5047 
5048 static void test_pack_LPNCCALCSIZE_PARAMS(void)
5049 {
5050     /* LPNCCALCSIZE_PARAMS */
5051     TEST_TYPE_SIZE   (LPNCCALCSIZE_PARAMS, 4)
5052     TEST_TYPE_ALIGN  (LPNCCALCSIZE_PARAMS, 4)
5053     TEST_TARGET_SIZE (LPNCCALCSIZE_PARAMS, 52)
5054     TEST_TARGET_ALIGN(LPNCCALCSIZE_PARAMS, 4)
5055 }
5056 
5057 static void test_pack_LPNMHDR(void)
5058 {
5059     /* LPNMHDR */
5060     TEST_TYPE_SIZE   (LPNMHDR, 4)
5061     TEST_TYPE_ALIGN  (LPNMHDR, 4)
5062     TEST_TARGET_SIZE (LPNMHDR, 12)
5063     TEST_TARGET_ALIGN(LPNMHDR, 4)
5064 }
5065 
5066 static void test_pack_LPNONCLIENTMETRICSA(void)
5067 {
5068     /* LPNONCLIENTMETRICSA */
5069     TEST_TYPE_SIZE   (LPNONCLIENTMETRICSA, 4)
5070     TEST_TYPE_ALIGN  (LPNONCLIENTMETRICSA, 4)
5071     TEST_TARGET_SIZE (LPNONCLIENTMETRICSA, 344)
5072     TEST_TARGET_ALIGN(LPNONCLIENTMETRICSA, 4)
5073 }
5074 
5075 static void test_pack_LPNONCLIENTMETRICSW(void)
5076 {
5077     /* LPNONCLIENTMETRICSW */
5078     TEST_TYPE_SIZE   (LPNONCLIENTMETRICSW, 4)
5079     TEST_TYPE_ALIGN  (LPNONCLIENTMETRICSW, 4)
5080     TEST_TARGET_SIZE (LPNONCLIENTMETRICSW, 504)
5081     TEST_TARGET_ALIGN(LPNONCLIENTMETRICSW, 4)
5082 }
5083 
5084 static void test_pack_LPPAINTSTRUCT(void)
5085 {
5086     /* LPPAINTSTRUCT */
5087     TEST_TYPE_SIZE   (LPPAINTSTRUCT, 4)
5088     TEST_TYPE_ALIGN  (LPPAINTSTRUCT, 4)
5089     TEST_TARGET_SIZE (LPPAINTSTRUCT, 64)
5090     TEST_TARGET_ALIGN(LPPAINTSTRUCT, 4)
5091 }
5092 
5093 static void test_pack_LPSCROLLINFO(void)
5094 {
5095     /* LPSCROLLINFO */
5096     TEST_TYPE_SIZE   (LPSCROLLINFO, 4)
5097     TEST_TYPE_ALIGN  (LPSCROLLINFO, 4)
5098     TEST_TARGET_SIZE (LPSCROLLINFO, 28)
5099     TEST_TARGET_ALIGN(LPSCROLLINFO, 4)
5100 }
5101 
5102 static void test_pack_LPSERIALKEYSA(void)
5103 {
5104     /* LPSERIALKEYSA */
5105     TEST_TYPE_SIZE   (LPSERIALKEYSA, 4)
5106     TEST_TYPE_ALIGN  (LPSERIALKEYSA, 4)
5107     TEST_TARGET_SIZE (LPSERIALKEYSA, 28)
5108     TEST_TARGET_ALIGN(LPSERIALKEYSA, 4)
5109 }
5110 
5111 static void test_pack_LPSERIALKEYSW(void)
5112 {
5113     /* LPSERIALKEYSW */
5114     TEST_TYPE_SIZE   (LPSERIALKEYSW, 4)
5115     TEST_TYPE_ALIGN  (LPSERIALKEYSW, 4)
5116     TEST_TARGET_SIZE (LPSERIALKEYSW, 28)
5117     TEST_TARGET_ALIGN(LPSERIALKEYSW, 4)
5118 }
5119 
5120 static void test_pack_LPSOUNDSENTRYA(void)
5121 {
5122     /* LPSOUNDSENTRYA */
5123     TEST_TYPE_SIZE   (LPSOUNDSENTRYA, 4)
5124     TEST_TYPE_ALIGN  (LPSOUNDSENTRYA, 4)
5125     TEST_TARGET_SIZE (LPSOUNDSENTRYA, 48)
5126     TEST_TARGET_ALIGN(LPSOUNDSENTRYA, 4)
5127 }
5128 
5129 static void test_pack_LPSOUNDSENTRYW(void)
5130 {
5131     /* LPSOUNDSENTRYW */
5132     TEST_TYPE_SIZE   (LPSOUNDSENTRYW, 4)
5133     TEST_TYPE_ALIGN  (LPSOUNDSENTRYW, 4)
5134     TEST_TARGET_SIZE (LPSOUNDSENTRYW, 48)
5135     TEST_TARGET_ALIGN(LPSOUNDSENTRYW, 4)
5136 }
5137 
5138 static void test_pack_LPSTICKYKEYS(void)
5139 {
5140     /* LPSTICKYKEYS */
5141     TEST_TYPE_SIZE   (LPSTICKYKEYS, 4)
5142     TEST_TYPE_ALIGN  (LPSTICKYKEYS, 4)
5143     TEST_TARGET_SIZE (LPSTICKYKEYS, 8)
5144     TEST_TARGET_ALIGN(LPSTICKYKEYS, 4)
5145 }
5146 
5147 static void test_pack_LPSTYLESTRUCT(void)
5148 {
5149     /* LPSTYLESTRUCT */
5150     TEST_TYPE_SIZE   (LPSTYLESTRUCT, 4)
5151     TEST_TYPE_ALIGN  (LPSTYLESTRUCT, 4)
5152     TEST_TARGET_SIZE (LPSTYLESTRUCT, 8)
5153     TEST_TARGET_ALIGN(LPSTYLESTRUCT, 4)
5154 }
5155 
5156 static void test_pack_LPTITLEBARINFO(void)
5157 {
5158     /* LPTITLEBARINFO */
5159     TEST_TYPE_SIZE   (LPTITLEBARINFO, 4)
5160     TEST_TYPE_ALIGN  (LPTITLEBARINFO, 4)
5161     TEST_TARGET_SIZE (LPTITLEBARINFO, 44)
5162     TEST_TARGET_ALIGN(LPTITLEBARINFO, 4)
5163 }
5164 
5165 static void test_pack_LPTOGGLEKEYS(void)
5166 {
5167     /* LPTOGGLEKEYS */
5168     TEST_TYPE_SIZE   (LPTOGGLEKEYS, 4)
5169     TEST_TYPE_ALIGN  (LPTOGGLEKEYS, 4)
5170     TEST_TARGET_SIZE (LPTOGGLEKEYS, 8)
5171     TEST_TARGET_ALIGN(LPTOGGLEKEYS, 4)
5172 }
5173 
5174 static void test_pack_LPTPMPARAMS(void)
5175 {
5176     /* LPTPMPARAMS */
5177     TEST_TYPE_SIZE   (LPTPMPARAMS, 4)
5178     TEST_TYPE_ALIGN  (LPTPMPARAMS, 4)
5179     TEST_TARGET_SIZE (LPTPMPARAMS, 20)
5180     TEST_TARGET_ALIGN(LPTPMPARAMS, 4)
5181 }
5182 
5183 static void test_pack_LPTRACKMOUSEEVENT(void)
5184 {
5185     /* LPTRACKMOUSEEVENT */
5186     TEST_TYPE_SIZE   (LPTRACKMOUSEEVENT, 4)
5187     TEST_TYPE_ALIGN  (LPTRACKMOUSEEVENT, 4)
5188     TEST_TARGET_SIZE (LPTRACKMOUSEEVENT, 16)
5189     TEST_TARGET_ALIGN(LPTRACKMOUSEEVENT, 4)
5190 }
5191 
5192 static void test_pack_LPWINDOWINFO(void)
5193 {
5194     /* LPWINDOWINFO */
5195     TEST_TYPE_SIZE   (LPWINDOWINFO, 4)
5196     TEST_TYPE_ALIGN  (LPWINDOWINFO, 4)
5197     TEST_TARGET_SIZE (LPWINDOWINFO, 60)
5198     TEST_TARGET_ALIGN(LPWINDOWINFO, 4)
5199 }
5200 
5201 static void test_pack_LPWINDOWPLACEMENT(void)
5202 {
5203     /* LPWINDOWPLACEMENT */
5204     TEST_TYPE_SIZE   (LPWINDOWPLACEMENT, 4)
5205     TEST_TYPE_ALIGN  (LPWINDOWPLACEMENT, 4)
5206     TEST_TARGET_SIZE (LPWINDOWPLACEMENT, 44)
5207     TEST_TARGET_ALIGN(LPWINDOWPLACEMENT, 4)
5208 }
5209 
5210 static void test_pack_LPWINDOWPOS(void)
5211 {
5212     /* LPWINDOWPOS */
5213     TEST_TYPE_SIZE   (LPWINDOWPOS, 4)
5214     TEST_TYPE_ALIGN  (LPWINDOWPOS, 4)
5215     TEST_TARGET_SIZE (LPWINDOWPOS, 28)
5216     TEST_TARGET_ALIGN(LPWINDOWPOS, 4)
5217 }
5218 
5219 static void test_pack_LPWNDCLASSA(void)
5220 {
5221     /* LPWNDCLASSA */
5222     TEST_TYPE_SIZE   (LPWNDCLASSA, 4)
5223     TEST_TYPE_ALIGN  (LPWNDCLASSA, 4)
5224     TEST_TARGET_SIZE (LPWNDCLASSA, 40)
5225     TEST_TARGET_ALIGN(LPWNDCLASSA, 4)
5226 }
5227 
5228 static void test_pack_LPWNDCLASSEXA(void)
5229 {
5230     /* LPWNDCLASSEXA */
5231     TEST_TYPE_SIZE   (LPWNDCLASSEXA, 4)
5232     TEST_TYPE_ALIGN  (LPWNDCLASSEXA, 4)
5233     TEST_TARGET_SIZE (LPWNDCLASSEXA, 48)
5234     TEST_TARGET_ALIGN(LPWNDCLASSEXA, 4)
5235 }
5236 
5237 static void test_pack_LPWNDCLASSEXW(void)
5238 {
5239     /* LPWNDCLASSEXW */
5240     TEST_TYPE_SIZE   (LPWNDCLASSEXW, 4)
5241     TEST_TYPE_ALIGN  (LPWNDCLASSEXW, 4)
5242     TEST_TARGET_SIZE (LPWNDCLASSEXW, 48)
5243     TEST_TARGET_ALIGN(LPWNDCLASSEXW, 4)
5244 }
5245 
5246 static void test_pack_LPWNDCLASSW(void)
5247 {
5248     /* LPWNDCLASSW */
5249     TEST_TYPE_SIZE   (LPWNDCLASSW, 4)
5250     TEST_TYPE_ALIGN  (LPWNDCLASSW, 4)
5251     TEST_TARGET_SIZE (LPWNDCLASSW, 40)
5252     TEST_TARGET_ALIGN(LPWNDCLASSW, 4)
5253 }
5254 
5255 static void test_pack_MDICREATESTRUCTA(void)
5256 {
5257     /* MDICREATESTRUCTA */
5258     TEST_TYPE_SIZE   (MDICREATESTRUCTA, 36)
5259     TEST_TYPE_ALIGN  (MDICREATESTRUCTA, 4)
5260     TEST_FIELD_SIZE  (MDICREATESTRUCTA, szClass, 4)
5261     TEST_FIELD_ALIGN (MDICREATESTRUCTA, szClass, 4)
5262     TEST_FIELD_OFFSET(MDICREATESTRUCTA, szClass, 0)
5263     TEST_FIELD_SIZE  (MDICREATESTRUCTA, szTitle, 4)
5264     TEST_FIELD_ALIGN (MDICREATESTRUCTA, szTitle, 4)
5265     TEST_FIELD_OFFSET(MDICREATESTRUCTA, szTitle, 4)
5266     TEST_FIELD_SIZE  (MDICREATESTRUCTA, hOwner, 4)
5267     TEST_FIELD_ALIGN (MDICREATESTRUCTA, hOwner, 4)
5268     TEST_FIELD_OFFSET(MDICREATESTRUCTA, hOwner, 8)
5269     TEST_FIELD_SIZE  (MDICREATESTRUCTA, x, 4)
5270     TEST_FIELD_ALIGN (MDICREATESTRUCTA, x, 4)
5271     TEST_FIELD_OFFSET(MDICREATESTRUCTA, x, 12)
5272     TEST_FIELD_SIZE  (MDICREATESTRUCTA, y, 4)
5273     TEST_FIELD_ALIGN (MDICREATESTRUCTA, y, 4)
5274     TEST_FIELD_OFFSET(MDICREATESTRUCTA, y, 16)
5275     TEST_FIELD_SIZE  (MDICREATESTRUCTA, cx, 4)
5276     TEST_FIELD_ALIGN (MDICREATESTRUCTA, cx, 4)
5277     TEST_FIELD_OFFSET(MDICREATESTRUCTA, cx, 20)
5278     TEST_FIELD_SIZE  (MDICREATESTRUCTA, cy, 4)
5279     TEST_FIELD_ALIGN (MDICREATESTRUCTA, cy, 4)
5280     TEST_FIELD_OFFSET(MDICREATESTRUCTA, cy, 24)
5281     TEST_FIELD_SIZE  (MDICREATESTRUCTA, style, 4)
5282     TEST_FIELD_ALIGN (MDICREATESTRUCTA, style, 4)
5283     TEST_FIELD_OFFSET(MDICREATESTRUCTA, style, 28)
5284     TEST_FIELD_SIZE  (MDICREATESTRUCTA, lParam, 4)
5285     TEST_FIELD_ALIGN (MDICREATESTRUCTA, lParam, 4)
5286     TEST_FIELD_OFFSET(MDICREATESTRUCTA, lParam, 32)
5287 }
5288 
5289 static void test_pack_MDICREATESTRUCTW(void)
5290 {
5291     /* MDICREATESTRUCTW */
5292     TEST_TYPE_SIZE   (MDICREATESTRUCTW, 36)
5293     TEST_TYPE_ALIGN  (MDICREATESTRUCTW, 4)
5294     TEST_FIELD_SIZE  (MDICREATESTRUCTW, szClass, 4)
5295     TEST_FIELD_ALIGN (MDICREATESTRUCTW, szClass, 4)
5296     TEST_FIELD_OFFSET(MDICREATESTRUCTW, szClass, 0)
5297     TEST_FIELD_SIZE  (MDICREATESTRUCTW, szTitle, 4)
5298     TEST_FIELD_ALIGN (MDICREATESTRUCTW, szTitle, 4)
5299     TEST_FIELD_OFFSET(MDICREATESTRUCTW, szTitle, 4)
5300     TEST_FIELD_SIZE  (MDICREATESTRUCTW, hOwner, 4)
5301     TEST_FIELD_ALIGN (MDICREATESTRUCTW, hOwner, 4)
5302     TEST_FIELD_OFFSET(MDICREATESTRUCTW, hOwner, 8)
5303     TEST_FIELD_SIZE  (MDICREATESTRUCTW, x, 4)
5304     TEST_FIELD_ALIGN (MDICREATESTRUCTW, x, 4)
5305     TEST_FIELD_OFFSET(MDICREATESTRUCTW, x, 12)
5306     TEST_FIELD_SIZE  (MDICREATESTRUCTW, y, 4)
5307     TEST_FIELD_ALIGN (MDICREATESTRUCTW, y, 4)
5308     TEST_FIELD_OFFSET(MDICREATESTRUCTW, y, 16)
5309     TEST_FIELD_SIZE  (MDICREATESTRUCTW, cx, 4)
5310     TEST_FIELD_ALIGN (MDICREATESTRUCTW, cx, 4)
5311     TEST_FIELD_OFFSET(MDICREATESTRUCTW, cx, 20)
5312     TEST_FIELD_SIZE  (MDICREATESTRUCTW, cy, 4)
5313     TEST_FIELD_ALIGN (MDICREATESTRUCTW, cy, 4)
5314     TEST_FIELD_OFFSET(MDICREATESTRUCTW, cy, 24)
5315     TEST_FIELD_SIZE  (MDICREATESTRUCTW, style, 4)
5316     TEST_FIELD_ALIGN (MDICREATESTRUCTW, style, 4)
5317     TEST_FIELD_OFFSET(MDICREATESTRUCTW, style, 28)
5318     TEST_FIELD_SIZE  (MDICREATESTRUCTW, lParam, 4)
5319     TEST_FIELD_ALIGN (MDICREATESTRUCTW, lParam, 4)
5320     TEST_FIELD_OFFSET(MDICREATESTRUCTW, lParam, 32)
5321 }
5322 
5323 static void test_pack_MDINEXTMENU(void)
5324 {
5325     /* MDINEXTMENU */
5326     TEST_TYPE_SIZE   (MDINEXTMENU, 12)
5327     TEST_TYPE_ALIGN  (MDINEXTMENU, 4)
5328     TEST_FIELD_SIZE  (MDINEXTMENU, hmenuIn, 4)
5329     TEST_FIELD_ALIGN (MDINEXTMENU, hmenuIn, 4)
5330     TEST_FIELD_OFFSET(MDINEXTMENU, hmenuIn, 0)
5331     TEST_FIELD_SIZE  (MDINEXTMENU, hmenuNext, 4)
5332     TEST_FIELD_ALIGN (MDINEXTMENU, hmenuNext, 4)
5333     TEST_FIELD_OFFSET(MDINEXTMENU, hmenuNext, 4)
5334     TEST_FIELD_SIZE  (MDINEXTMENU, hwndNext, 4)
5335     TEST_FIELD_ALIGN (MDINEXTMENU, hwndNext, 4)
5336     TEST_FIELD_OFFSET(MDINEXTMENU, hwndNext, 8)
5337 }
5338 
5339 static void test_pack_MEASUREITEMSTRUCT(void)
5340 {
5341     /* MEASUREITEMSTRUCT */
5342     TEST_TYPE_SIZE   (MEASUREITEMSTRUCT, 24)
5343     TEST_TYPE_ALIGN  (MEASUREITEMSTRUCT, 4)
5344     TEST_FIELD_SIZE  (MEASUREITEMSTRUCT, CtlType, 4)
5345     TEST_FIELD_ALIGN (MEASUREITEMSTRUCT, CtlType, 4)
5346     TEST_FIELD_OFFSET(MEASUREITEMSTRUCT, CtlType, 0)
5347     TEST_FIELD_SIZE  (MEASUREITEMSTRUCT, CtlID, 4)
5348     TEST_FIELD_ALIGN (MEASUREITEMSTRUCT, CtlID, 4)
5349     TEST_FIELD_OFFSET(MEASUREITEMSTRUCT, CtlID, 4)
5350     TEST_FIELD_SIZE  (MEASUREITEMSTRUCT, itemID, 4)
5351     TEST_FIELD_ALIGN (MEASUREITEMSTRUCT, itemID, 4)
5352     TEST_FIELD_OFFSET(MEASUREITEMSTRUCT, itemID, 8)
5353     TEST_FIELD_SIZE  (MEASUREITEMSTRUCT, itemWidth, 4)
5354     TEST_FIELD_ALIGN (MEASUREITEMSTRUCT, itemWidth, 4)
5355     TEST_FIELD_OFFSET(MEASUREITEMSTRUCT, itemWidth, 12)
5356     TEST_FIELD_SIZE  (MEASUREITEMSTRUCT, itemHeight, 4)
5357     TEST_FIELD_ALIGN (MEASUREITEMSTRUCT, itemHeight, 4)
5358     TEST_FIELD_OFFSET(MEASUREITEMSTRUCT, itemHeight, 16)
5359     TEST_FIELD_SIZE  (MEASUREITEMSTRUCT, itemData, 4)
5360     TEST_FIELD_ALIGN (MEASUREITEMSTRUCT, itemData, 4)
5361     TEST_FIELD_OFFSET(MEASUREITEMSTRUCT, itemData, 20)
5362 }
5363 
5364 static void test_pack_MENUINFO(void)
5365 {
5366     /* MENUINFO */
5367     TEST_TYPE_SIZE   (MENUINFO, 28)
5368     TEST_TYPE_ALIGN  (MENUINFO, 4)
5369     TEST_FIELD_SIZE  (MENUINFO, cbSize, 4)
5370     TEST_FIELD_ALIGN (MENUINFO, cbSize, 4)
5371     TEST_FIELD_OFFSET(MENUINFO, cbSize, 0)
5372     TEST_FIELD_SIZE  (MENUINFO, fMask, 4)
5373     TEST_FIELD_ALIGN (MENUINFO, fMask, 4)
5374     TEST_FIELD_OFFSET(MENUINFO, fMask, 4)
5375     TEST_FIELD_SIZE  (MENUINFO, dwStyle, 4)
5376     TEST_FIELD_ALIGN (MENUINFO, dwStyle, 4)
5377     TEST_FIELD_OFFSET(MENUINFO, dwStyle, 8)
5378     TEST_FIELD_SIZE  (MENUINFO, cyMax, 4)
5379     TEST_FIELD_ALIGN (MENUINFO, cyMax, 4)
5380     TEST_FIELD_OFFSET(MENUINFO, cyMax, 12)
5381     TEST_FIELD_SIZE  (MENUINFO, hbrBack, 4)
5382     TEST_FIELD_ALIGN (MENUINFO, hbrBack, 4)
5383     TEST_FIELD_OFFSET(MENUINFO, hbrBack, 16)
5384     TEST_FIELD_SIZE  (MENUINFO, dwContextHelpID, 4)
5385     TEST_FIELD_ALIGN (MENUINFO, dwContextHelpID, 4)
5386     TEST_FIELD_OFFSET(MENUINFO, dwContextHelpID, 20)
5387     TEST_FIELD_SIZE  (MENUINFO, dwMenuData, 4)
5388     TEST_FIELD_ALIGN (MENUINFO, dwMenuData, 4)
5389     TEST_FIELD_OFFSET(MENUINFO, dwMenuData, 24)
5390 }
5391 
5392 static void test_pack_MENUITEMINFOA(void)
5393 {
5394     /* MENUITEMINFOA */
5395     TEST_TYPE_SIZE   (MENUITEMINFOA, 48)
5396     TEST_TYPE_ALIGN  (MENUITEMINFOA, 4)
5397     TEST_FIELD_SIZE  (MENUITEMINFOA, cbSize, 4)
5398     TEST_FIELD_ALIGN (MENUITEMINFOA, cbSize, 4)
5399     TEST_FIELD_OFFSET(MENUITEMINFOA, cbSize, 0)
5400     TEST_FIELD_SIZE  (MENUITEMINFOA, fMask, 4)
5401     TEST_FIELD_ALIGN (MENUITEMINFOA, fMask, 4)
5402     TEST_FIELD_OFFSET(MENUITEMINFOA, fMask, 4)
5403     TEST_FIELD_SIZE  (MENUITEMINFOA, fType, 4)
5404     TEST_FIELD_ALIGN (MENUITEMINFOA, fType, 4)
5405     TEST_FIELD_OFFSET(MENUITEMINFOA, fType, 8)
5406     TEST_FIELD_SIZE  (MENUITEMINFOA, fState, 4)
5407     TEST_FIELD_ALIGN (MENUITEMINFOA, fState, 4)
5408     TEST_FIELD_OFFSET(MENUITEMINFOA, fState, 12)
5409     TEST_FIELD_SIZE  (MENUITEMINFOA, wID, 4)
5410     TEST_FIELD_ALIGN (MENUITEMINFOA, wID, 4)
5411     TEST_FIELD_OFFSET(MENUITEMINFOA, wID, 16)
5412     TEST_FIELD_SIZE  (MENUITEMINFOA, hSubMenu, 4)
5413     TEST_FIELD_ALIGN (MENUITEMINFOA, hSubMenu, 4)
5414     TEST_FIELD_OFFSET(MENUITEMINFOA, hSubMenu, 20)
5415     TEST_FIELD_SIZE  (MENUITEMINFOA, hbmpChecked, 4)
5416     TEST_FIELD_ALIGN (MENUITEMINFOA, hbmpChecked, 4)
5417     TEST_FIELD_OFFSET(MENUITEMINFOA, hbmpChecked, 24)
5418     TEST_FIELD_SIZE  (MENUITEMINFOA, hbmpUnchecked, 4)
5419     TEST_FIELD_ALIGN (MENUITEMINFOA, hbmpUnchecked, 4)
5420     TEST_FIELD_OFFSET(MENUITEMINFOA, hbmpUnchecked, 28)
5421     TEST_FIELD_SIZE  (MENUITEMINFOA, dwItemData, 4)
5422     TEST_FIELD_ALIGN (MENUITEMINFOA, dwItemData, 4)
5423     TEST_FIELD_OFFSET(MENUITEMINFOA, dwItemData, 32)
5424     TEST_FIELD_SIZE  (MENUITEMINFOA, dwTypeData, 4)
5425     TEST_FIELD_ALIGN (MENUITEMINFOA, dwTypeData, 4)
5426     TEST_FIELD_OFFSET(MENUITEMINFOA, dwTypeData, 36)
5427     TEST_FIELD_SIZE  (MENUITEMINFOA, cch, 4)
5428     TEST_FIELD_ALIGN (MENUITEMINFOA, cch, 4)
5429     TEST_FIELD_OFFSET(MENUITEMINFOA, cch, 40)
5430     TEST_FIELD_SIZE  (MENUITEMINFOA, hbmpItem, 4)
5431     TEST_FIELD_ALIGN (MENUITEMINFOA, hbmpItem, 4)
5432     TEST_FIELD_OFFSET(MENUITEMINFOA, hbmpItem, 44)
5433 }
5434 
5435 static void test_pack_MENUITEMINFOW(void)
5436 {
5437     /* MENUITEMINFOW */
5438     TEST_TYPE_SIZE   (MENUITEMINFOW, 48)
5439     TEST_TYPE_ALIGN  (MENUITEMINFOW, 4)
5440     TEST_FIELD_SIZE  (MENUITEMINFOW, cbSize, 4)
5441     TEST_FIELD_ALIGN (MENUITEMINFOW, cbSize, 4)
5442     TEST_FIELD_OFFSET(MENUITEMINFOW, cbSize, 0)
5443     TEST_FIELD_SIZE  (MENUITEMINFOW, fMask, 4)
5444     TEST_FIELD_ALIGN (MENUITEMINFOW, fMask, 4)
5445     TEST_FIELD_OFFSET(MENUITEMINFOW, fMask, 4)
5446     TEST_FIELD_SIZE  (MENUITEMINFOW, fType, 4)
5447     TEST_FIELD_ALIGN (MENUITEMINFOW, fType, 4)
5448     TEST_FIELD_OFFSET(MENUITEMINFOW, fType, 8)
5449     TEST_FIELD_SIZE  (MENUITEMINFOW, fState, 4)
5450     TEST_FIELD_ALIGN (MENUITEMINFOW, fState, 4)
5451     TEST_FIELD_OFFSET(MENUITEMINFOW, fState, 12)
5452     TEST_FIELD_SIZE  (MENUITEMINFOW, wID, 4)
5453     TEST_FIELD_ALIGN (MENUITEMINFOW, wID, 4)
5454     TEST_FIELD_OFFSET(MENUITEMINFOW, wID, 16)
5455     TEST_FIELD_SIZE  (MENUITEMINFOW, hSubMenu, 4)
5456     TEST_FIELD_ALIGN (MENUITEMINFOW, hSubMenu, 4)
5457     TEST_FIELD_OFFSET(MENUITEMINFOW, hSubMenu, 20)
5458     TEST_FIELD_SIZE  (MENUITEMINFOW, hbmpChecked, 4)
5459     TEST_FIELD_ALIGN (MENUITEMINFOW, hbmpChecked, 4)
5460     TEST_FIELD_OFFSET(MENUITEMINFOW, hbmpChecked, 24)
5461     TEST_FIELD_SIZE  (MENUITEMINFOW, hbmpUnchecked, 4)
5462     TEST_FIELD_ALIGN (MENUITEMINFOW, hbmpUnchecked, 4)
5463     TEST_FIELD_OFFSET(MENUITEMINFOW, hbmpUnchecked, 28)
5464     TEST_FIELD_SIZE  (MENUITEMINFOW, dwItemData, 4)
5465     TEST_FIELD_ALIGN (MENUITEMINFOW, dwItemData, 4)
5466     TEST_FIELD_OFFSET(MENUITEMINFOW, dwItemData, 32)
5467     TEST_FIELD_SIZE  (MENUITEMINFOW, dwTypeData, 4)
5468     TEST_FIELD_ALIGN (MENUITEMINFOW, dwTypeData, 4)
5469     TEST_FIELD_OFFSET(MENUITEMINFOW, dwTypeData, 36)
5470     TEST_FIELD_SIZE  (MENUITEMINFOW, cch, 4)
5471     TEST_FIELD_ALIGN (MENUITEMINFOW, cch, 4)
5472     TEST_FIELD_OFFSET(MENUITEMINFOW, cch, 40)
5473     TEST_FIELD_SIZE  (MENUITEMINFOW, hbmpItem, 4)
5474     TEST_FIELD_ALIGN (MENUITEMINFOW, hbmpItem, 4)
5475     TEST_FIELD_OFFSET(MENUITEMINFOW, hbmpItem, 44)
5476 }
5477 
5478 static void test_pack_MENUITEMTEMPLATE(void)
5479 {
5480     /* MENUITEMTEMPLATE */
5481     TEST_TYPE_SIZE   (MENUITEMTEMPLATE, 6)
5482     TEST_TYPE_ALIGN  (MENUITEMTEMPLATE, 2)
5483     TEST_FIELD_SIZE  (MENUITEMTEMPLATE, mtOption, 2)
5484     TEST_FIELD_ALIGN (MENUITEMTEMPLATE, mtOption, 2)
5485     TEST_FIELD_OFFSET(MENUITEMTEMPLATE, mtOption, 0)
5486     TEST_FIELD_SIZE  (MENUITEMTEMPLATE, mtID, 2)
5487     TEST_FIELD_ALIGN (MENUITEMTEMPLATE, mtID, 2)
5488     TEST_FIELD_OFFSET(MENUITEMTEMPLATE, mtID, 2)
5489     TEST_FIELD_SIZE  (MENUITEMTEMPLATE, mtString, 2)
5490     TEST_FIELD_ALIGN (MENUITEMTEMPLATE, mtString, 2)
5491     TEST_FIELD_OFFSET(MENUITEMTEMPLATE, mtString, 4)
5492 }
5493 
5494 static void test_pack_MENUITEMTEMPLATEHEADER(void)
5495 {
5496     /* MENUITEMTEMPLATEHEADER */
5497     TEST_TYPE_SIZE   (MENUITEMTEMPLATEHEADER, 4)
5498     TEST_TYPE_ALIGN  (MENUITEMTEMPLATEHEADER, 2)
5499     TEST_FIELD_SIZE  (MENUITEMTEMPLATEHEADER, versionNumber, 2)
5500     TEST_FIELD_ALIGN (MENUITEMTEMPLATEHEADER, versionNumber, 2)
5501     TEST_FIELD_OFFSET(MENUITEMTEMPLATEHEADER, versionNumber, 0)
5502     TEST_FIELD_SIZE  (MENUITEMTEMPLATEHEADER, offset, 2)
5503     TEST_FIELD_ALIGN (MENUITEMTEMPLATEHEADER, offset, 2)
5504     TEST_FIELD_OFFSET(MENUITEMTEMPLATEHEADER, offset, 2)
5505 }
5506 
5507 static void test_pack_MINIMIZEDMETRICS(void)
5508 {
5509     /* MINIMIZEDMETRICS */
5510     TEST_TYPE_SIZE   (MINIMIZEDMETRICS, 20)
5511     TEST_TYPE_ALIGN  (MINIMIZEDMETRICS, 4)
5512     TEST_FIELD_SIZE  (MINIMIZEDMETRICS, cbSize, 4)
5513     TEST_FIELD_ALIGN (MINIMIZEDMETRICS, cbSize, 4)
5514     TEST_FIELD_OFFSET(MINIMIZEDMETRICS, cbSize, 0)
5515     TEST_FIELD_SIZE  (MINIMIZEDMETRICS, iWidth, 4)
5516     TEST_FIELD_ALIGN (MINIMIZEDMETRICS, iWidth, 4)
5517     TEST_FIELD_OFFSET(MINIMIZEDMETRICS, iWidth, 4)
5518     TEST_FIELD_SIZE  (MINIMIZEDMETRICS, iHorzGap, 4)
5519     TEST_FIELD_ALIGN (MINIMIZEDMETRICS, iHorzGap, 4)
5520     TEST_FIELD_OFFSET(MINIMIZEDMETRICS, iHorzGap, 8)
5521     TEST_FIELD_SIZE  (MINIMIZEDMETRICS, iVertGap, 4)
5522     TEST_FIELD_ALIGN (MINIMIZEDMETRICS, iVertGap, 4)
5523     TEST_FIELD_OFFSET(MINIMIZEDMETRICS, iVertGap, 12)
5524     TEST_FIELD_SIZE  (MINIMIZEDMETRICS, iArrange, 4)
5525     TEST_FIELD_ALIGN (MINIMIZEDMETRICS, iArrange, 4)
5526     TEST_FIELD_OFFSET(MINIMIZEDMETRICS, iArrange, 16)
5527 }
5528 
5529 static void test_pack_MINMAXINFO(void)
5530 {
5531     /* MINMAXINFO */
5532     TEST_TYPE_SIZE   (MINMAXINFO, 40)
5533     TEST_TYPE_ALIGN  (MINMAXINFO, 4)
5534     TEST_FIELD_SIZE  (MINMAXINFO, ptReserved, 8)
5535     TEST_FIELD_ALIGN (MINMAXINFO, ptReserved, 4)
5536     TEST_FIELD_OFFSET(MINMAXINFO, ptReserved, 0)
5537     TEST_FIELD_SIZE  (MINMAXINFO, ptMaxSize, 8)
5538     TEST_FIELD_ALIGN (MINMAXINFO, ptMaxSize, 4)
5539     TEST_FIELD_OFFSET(MINMAXINFO, ptMaxSize, 8)
5540     TEST_FIELD_SIZE  (MINMAXINFO, ptMaxPosition, 8)
5541     TEST_FIELD_ALIGN (MINMAXINFO, ptMaxPosition, 4)
5542     TEST_FIELD_OFFSET(MINMAXINFO, ptMaxPosition, 16)
5543     TEST_FIELD_SIZE  (MINMAXINFO, ptMinTrackSize, 8)
5544     TEST_FIELD_ALIGN (MINMAXINFO, ptMinTrackSize, 4)
5545     TEST_FIELD_OFFSET(MINMAXINFO, ptMinTrackSize, 24)
5546     TEST_FIELD_SIZE  (MINMAXINFO, ptMaxTrackSize, 8)
5547     TEST_FIELD_ALIGN (MINMAXINFO, ptMaxTrackSize, 4)
5548     TEST_FIELD_OFFSET(MINMAXINFO, ptMaxTrackSize, 32)
5549 }
5550 
5551 static void test_pack_MONITORENUMPROC(void)
5552 {
5553     /* MONITORENUMPROC */
5554     TEST_TYPE_SIZE   (MONITORENUMPROC, 4)
5555     TEST_TYPE_ALIGN  (MONITORENUMPROC, 4)
5556 }
5557 
5558 static void test_pack_MONITORINFO(void)
5559 {
5560     /* MONITORINFO */
5561     TEST_TYPE_SIZE   (MONITORINFO, 40)
5562     TEST_TYPE_ALIGN  (MONITORINFO, 4)
5563     TEST_FIELD_SIZE  (MONITORINFO, cbSize, 4)
5564     TEST_FIELD_ALIGN (MONITORINFO, cbSize, 4)
5565     TEST_FIELD_OFFSET(MONITORINFO, cbSize, 0)
5566     TEST_FIELD_SIZE  (MONITORINFO, rcMonitor, 16)
5567     TEST_FIELD_ALIGN (MONITORINFO, rcMonitor, 4)
5568     TEST_FIELD_OFFSET(MONITORINFO, rcMonitor, 4)
5569     TEST_FIELD_SIZE  (MONITORINFO, rcWork, 16)
5570     TEST_FIELD_ALIGN (MONITORINFO, rcWork, 4)
5571     TEST_FIELD_OFFSET(MONITORINFO, rcWork, 20)
5572     TEST_FIELD_SIZE  (MONITORINFO, dwFlags, 4)
5573     TEST_FIELD_ALIGN (MONITORINFO, dwFlags, 4)
5574     TEST_FIELD_OFFSET(MONITORINFO, dwFlags, 36)
5575 }
5576 
5577 static void test_pack_MONITORINFOEXA(void)
5578 {
5579     /* MONITORINFOEXA */
5580     TEST_TYPE_SIZE   (MONITORINFOEXA, 72)
5581     TEST_TYPE_ALIGN  (MONITORINFOEXA, 4)
5582     TEST_FIELD_SIZE  (MONITORINFOEXA, cbSize, 4)
5583     TEST_FIELD_ALIGN (MONITORINFOEXA, cbSize, 4)
5584     TEST_FIELD_OFFSET(MONITORINFOEXA, cbSize, 0)
5585     TEST_FIELD_SIZE  (MONITORINFOEXA, rcMonitor, 16)
5586     TEST_FIELD_ALIGN (MONITORINFOEXA, rcMonitor, 4)
5587     TEST_FIELD_OFFSET(MONITORINFOEXA, rcMonitor, 4)
5588     TEST_FIELD_SIZE  (MONITORINFOEXA, rcWork, 16)
5589     TEST_FIELD_ALIGN (MONITORINFOEXA, rcWork, 4)
5590     TEST_FIELD_OFFSET(MONITORINFOEXA, rcWork, 20)
5591     TEST_FIELD_SIZE  (MONITORINFOEXA, dwFlags, 4)
5592     TEST_FIELD_ALIGN (MONITORINFOEXA, dwFlags, 4)
5593     TEST_FIELD_OFFSET(MONITORINFOEXA, dwFlags, 36)
5594     TEST_FIELD_SIZE  (MONITORINFOEXA, szDevice, 32)
5595     TEST_FIELD_ALIGN (MONITORINFOEXA, szDevice, 1)
5596     TEST_FIELD_OFFSET(MONITORINFOEXA, szDevice, 40)
5597 }
5598 
5599 static void test_pack_MONITORINFOEXW(void)
5600 {
5601     /* MONITORINFOEXW */
5602     TEST_TYPE_SIZE   (MONITORINFOEXW, 104)
5603     TEST_TYPE_ALIGN  (MONITORINFOEXW, 4)
5604     TEST_FIELD_SIZE  (MONITORINFOEXW, cbSize, 4)
5605     TEST_FIELD_ALIGN (MONITORINFOEXW, cbSize, 4)
5606     TEST_FIELD_OFFSET(MONITORINFOEXW, cbSize, 0)
5607     TEST_FIELD_SIZE  (MONITORINFOEXW, rcMonitor, 16)
5608     TEST_FIELD_ALIGN (MONITORINFOEXW, rcMonitor, 4)
5609     TEST_FIELD_OFFSET(MONITORINFOEXW, rcMonitor, 4)
5610     TEST_FIELD_SIZE  (MONITORINFOEXW, rcWork, 16)
5611     TEST_FIELD_ALIGN (MONITORINFOEXW, rcWork, 4)
5612     TEST_FIELD_OFFSET(MONITORINFOEXW, rcWork, 20)
5613     TEST_FIELD_SIZE  (MONITORINFOEXW, dwFlags, 4)
5614     TEST_FIELD_ALIGN (MONITORINFOEXW, dwFlags, 4)
5615     TEST_FIELD_OFFSET(MONITORINFOEXW, dwFlags, 36)
5616     TEST_FIELD_SIZE  (MONITORINFOEXW, szDevice, 64)
5617     TEST_FIELD_ALIGN (MONITORINFOEXW, szDevice, 2)
5618     TEST_FIELD_OFFSET(MONITORINFOEXW, szDevice, 40)
5619 }
5620 
5621 static void test_pack_MOUSEHOOKSTRUCT(void)
5622 {
5623     /* MOUSEHOOKSTRUCT */
5624     TEST_TYPE_SIZE   (MOUSEHOOKSTRUCT, 20)
5625     TEST_TYPE_ALIGN  (MOUSEHOOKSTRUCT, 4)
5626     TEST_FIELD_SIZE  (MOUSEHOOKSTRUCT, pt, 8)
5627     TEST_FIELD_ALIGN (MOUSEHOOKSTRUCT, pt, 4)
5628     TEST_FIELD_OFFSET(MOUSEHOOKSTRUCT, pt, 0)
5629     TEST_FIELD_SIZE  (MOUSEHOOKSTRUCT, hwnd, 4)
5630     TEST_FIELD_ALIGN (MOUSEHOOKSTRUCT, hwnd, 4)
5631     TEST_FIELD_OFFSET(MOUSEHOOKSTRUCT, hwnd, 8)
5632     TEST_FIELD_SIZE  (MOUSEHOOKSTRUCT, wHitTestCode, 4)
5633     TEST_FIELD_ALIGN (MOUSEHOOKSTRUCT, wHitTestCode, 4)
5634     TEST_FIELD_OFFSET(MOUSEHOOKSTRUCT, wHitTestCode, 12)
5635     TEST_FIELD_SIZE  (MOUSEHOOKSTRUCT, dwExtraInfo, 4)
5636     TEST_FIELD_ALIGN (MOUSEHOOKSTRUCT, dwExtraInfo, 4)
5637     TEST_FIELD_OFFSET(MOUSEHOOKSTRUCT, dwExtraInfo, 16)
5638 }
5639 
5640 static void test_pack_MOUSEINPUT(void)
5641 {
5642     /* MOUSEINPUT */
5643     TEST_TYPE_SIZE   (MOUSEINPUT, 24)
5644     TEST_TYPE_ALIGN  (MOUSEINPUT, 4)
5645     TEST_FIELD_SIZE  (MOUSEINPUT, dx, 4)
5646     TEST_FIELD_ALIGN (MOUSEINPUT, dx, 4)
5647     TEST_FIELD_OFFSET(MOUSEINPUT, dx, 0)
5648     TEST_FIELD_SIZE  (MOUSEINPUT, dy, 4)
5649     TEST_FIELD_ALIGN (MOUSEINPUT, dy, 4)
5650     TEST_FIELD_OFFSET(MOUSEINPUT, dy, 4)
5651     TEST_FIELD_SIZE  (MOUSEINPUT, mouseData, 4)
5652     TEST_FIELD_ALIGN (MOUSEINPUT, mouseData, 4)
5653     TEST_FIELD_OFFSET(MOUSEINPUT, mouseData, 8)
5654     TEST_FIELD_SIZE  (MOUSEINPUT, dwFlags, 4)
5655     TEST_FIELD_ALIGN (MOUSEINPUT, dwFlags, 4)
5656     TEST_FIELD_OFFSET(MOUSEINPUT, dwFlags, 12)
5657     TEST_FIELD_SIZE  (MOUSEINPUT, time, 4)
5658     TEST_FIELD_ALIGN (MOUSEINPUT, time, 4)
5659     TEST_FIELD_OFFSET(MOUSEINPUT, time, 16)
5660     TEST_FIELD_SIZE  (MOUSEINPUT, dwExtraInfo, 4)
5661     TEST_FIELD_ALIGN (MOUSEINPUT, dwExtraInfo, 4)
5662     TEST_FIELD_OFFSET(MOUSEINPUT, dwExtraInfo, 20)
5663 }
5664 
5665 static void test_pack_MOUSEKEYS(void)
5666 {
5667     /* MOUSEKEYS */
5668     TEST_TYPE_SIZE   (MOUSEKEYS, 28)
5669     TEST_TYPE_ALIGN  (MOUSEKEYS, 4)
5670     TEST_FIELD_SIZE  (MOUSEKEYS, cbSize, 4)
5671     TEST_FIELD_ALIGN (MOUSEKEYS, cbSize, 4)
5672     TEST_FIELD_OFFSET(MOUSEKEYS, cbSize, 0)
5673     TEST_FIELD_SIZE  (MOUSEKEYS, dwFlags, 4)
5674     TEST_FIELD_ALIGN (MOUSEKEYS, dwFlags, 4)
5675     TEST_FIELD_OFFSET(MOUSEKEYS, dwFlags, 4)
5676     TEST_FIELD_SIZE  (MOUSEKEYS, iMaxSpeed, 4)
5677     TEST_FIELD_ALIGN (MOUSEKEYS, iMaxSpeed, 4)
5678     TEST_FIELD_OFFSET(MOUSEKEYS, iMaxSpeed, 8)
5679     TEST_FIELD_SIZE  (MOUSEKEYS, iTimeToMaxSpeed, 4)
5680     TEST_FIELD_ALIGN (MOUSEKEYS, iTimeToMaxSpeed, 4)
5681     TEST_FIELD_OFFSET(MOUSEKEYS, iTimeToMaxSpeed, 12)
5682     TEST_FIELD_SIZE  (MOUSEKEYS, iCtrlSpeed, 4)
5683     TEST_FIELD_ALIGN (MOUSEKEYS, iCtrlSpeed, 4)
5684     TEST_FIELD_OFFSET(MOUSEKEYS, iCtrlSpeed, 16)
5685     TEST_FIELD_SIZE  (MOUSEKEYS, dwReserved1, 4)
5686     TEST_FIELD_ALIGN (MOUSEKEYS, dwReserved1, 4)
5687     TEST_FIELD_OFFSET(MOUSEKEYS, dwReserved1, 20)
5688     TEST_FIELD_SIZE  (MOUSEKEYS, dwReserved2, 4)
5689     TEST_FIELD_ALIGN (MOUSEKEYS, dwReserved2, 4)
5690     TEST_FIELD_OFFSET(MOUSEKEYS, dwReserved2, 24)
5691 }
5692 
5693 static void test_pack_MSG(void)
5694 {
5695     /* MSG */
5696     TEST_TYPE_SIZE   (MSG, 28)
5697     TEST_TYPE_ALIGN  (MSG, 4)
5698     TEST_FIELD_SIZE  (MSG, hwnd, 4)
5699     TEST_FIELD_ALIGN (MSG, hwnd, 4)
5700     TEST_FIELD_OFFSET(MSG, hwnd, 0)
5701     TEST_FIELD_SIZE  (MSG, message, 4)
5702     TEST_FIELD_ALIGN (MSG, message, 4)
5703     TEST_FIELD_OFFSET(MSG, message, 4)
5704     TEST_FIELD_SIZE  (MSG, wParam, 4)
5705     TEST_FIELD_ALIGN (MSG, wParam, 4)
5706     TEST_FIELD_OFFSET(MSG, wParam, 8)
5707     TEST_FIELD_SIZE  (MSG, lParam, 4)
5708     TEST_FIELD_ALIGN (MSG, lParam, 4)
5709     TEST_FIELD_OFFSET(MSG, lParam, 12)
5710     TEST_FIELD_SIZE  (MSG, time, 4)
5711     TEST_FIELD_ALIGN (MSG, time, 4)
5712     TEST_FIELD_OFFSET(MSG, time, 16)
5713     TEST_FIELD_SIZE  (MSG, pt, 8)
5714     TEST_FIELD_ALIGN (MSG, pt, 4)
5715     TEST_FIELD_OFFSET(MSG, pt, 20)
5716 }
5717 
5718 static void test_pack_MSGBOXCALLBACK(void)
5719 {
5720     /* MSGBOXCALLBACK */
5721     TEST_TYPE_SIZE   (MSGBOXCALLBACK, 4)
5722     TEST_TYPE_ALIGN  (MSGBOXCALLBACK, 4)
5723 }
5724 
5725 static void test_pack_MSGBOXPARAMSA(void)
5726 {
5727     /* MSGBOXPARAMSA */
5728     TEST_TYPE_SIZE   (MSGBOXPARAMSA, 40)
5729     TEST_TYPE_ALIGN  (MSGBOXPARAMSA, 4)
5730     TEST_FIELD_SIZE  (MSGBOXPARAMSA, cbSize, 4)
5731     TEST_FIELD_ALIGN (MSGBOXPARAMSA, cbSize, 4)
5732     TEST_FIELD_OFFSET(MSGBOXPARAMSA, cbSize, 0)
5733     TEST_FIELD_SIZE  (MSGBOXPARAMSA, hwndOwner, 4)
5734     TEST_FIELD_ALIGN (MSGBOXPARAMSA, hwndOwner, 4)
5735     TEST_FIELD_OFFSET(MSGBOXPARAMSA, hwndOwner, 4)
5736     TEST_FIELD_SIZE  (MSGBOXPARAMSA, hInstance, 4)
5737     TEST_FIELD_ALIGN (MSGBOXPARAMSA, hInstance, 4)
5738     TEST_FIELD_OFFSET(MSGBOXPARAMSA, hInstance, 8)
5739     TEST_FIELD_SIZE  (MSGBOXPARAMSA, lpszText, 4)
5740     TEST_FIELD_ALIGN (MSGBOXPARAMSA, lpszText, 4)
5741     TEST_FIELD_OFFSET(MSGBOXPARAMSA, lpszText, 12)
5742     TEST_FIELD_SIZE  (MSGBOXPARAMSA, lpszCaption, 4)
5743     TEST_FIELD_ALIGN (MSGBOXPARAMSA, lpszCaption, 4)
5744     TEST_FIELD_OFFSET(MSGBOXPARAMSA, lpszCaption, 16)
5745     TEST_FIELD_SIZE  (MSGBOXPARAMSA, dwStyle, 4)
5746     TEST_FIELD_ALIGN (MSGBOXPARAMSA, dwStyle, 4)
5747     TEST_FIELD_OFFSET(MSGBOXPARAMSA, dwStyle, 20)
5748     TEST_FIELD_SIZE  (MSGBOXPARAMSA, lpszIcon, 4)
5749     TEST_FIELD_ALIGN (MSGBOXPARAMSA, lpszIcon, 4)
5750     TEST_FIELD_OFFSET(MSGBOXPARAMSA, lpszIcon, 24)
5751     TEST_FIELD_SIZE  (MSGBOXPARAMSA, dwContextHelpId, 4)
5752     TEST_FIELD_ALIGN (MSGBOXPARAMSA, dwContextHelpId, 4)
5753     TEST_FIELD_OFFSET(MSGBOXPARAMSA, dwContextHelpId, 28)
5754     TEST_FIELD_SIZE  (MSGBOXPARAMSA, lpfnMsgBoxCallback, 4)
5755     TEST_FIELD_ALIGN (MSGBOXPARAMSA, lpfnMsgBoxCallback, 4)
5756     TEST_FIELD_OFFSET(MSGBOXPARAMSA, lpfnMsgBoxCallback, 32)
5757     TEST_FIELD_SIZE  (MSGBOXPARAMSA, dwLanguageId, 4)
5758     TEST_FIELD_ALIGN (MSGBOXPARAMSA, dwLanguageId, 4)
5759     TEST_FIELD_OFFSET(MSGBOXPARAMSA, dwLanguageId, 36)
5760 }
5761 
5762 static void test_pack_MSGBOXPARAMSW(void)
5763 {
5764     /* MSGBOXPARAMSW */
5765     TEST_TYPE_SIZE   (MSGBOXPARAMSW, 40)
5766     TEST_TYPE_ALIGN  (MSGBOXPARAMSW, 4)
5767     TEST_FIELD_SIZE  (MSGBOXPARAMSW, cbSize, 4)
5768     TEST_FIELD_ALIGN (MSGBOXPARAMSW, cbSize, 4)
5769     TEST_FIELD_OFFSET(MSGBOXPARAMSW, cbSize, 0)
5770     TEST_FIELD_SIZE  (MSGBOXPARAMSW, hwndOwner, 4)
5771     TEST_FIELD_ALIGN (MSGBOXPARAMSW, hwndOwner, 4)
5772     TEST_FIELD_OFFSET(MSGBOXPARAMSW, hwndOwner, 4)
5773     TEST_FIELD_SIZE  (MSGBOXPARAMSW, hInstance, 4)
5774     TEST_FIELD_ALIGN (MSGBOXPARAMSW, hInstance, 4)
5775     TEST_FIELD_OFFSET(MSGBOXPARAMSW, hInstance, 8)
5776     TEST_FIELD_SIZE  (MSGBOXPARAMSW, lpszText, 4)
5777     TEST_FIELD_ALIGN (MSGBOXPARAMSW, lpszText, 4)
5778     TEST_FIELD_OFFSET(MSGBOXPARAMSW, lpszText, 12)
5779     TEST_FIELD_SIZE  (MSGBOXPARAMSW, lpszCaption, 4)
5780     TEST_FIELD_ALIGN (MSGBOXPARAMSW, lpszCaption, 4)
5781     TEST_FIELD_OFFSET(MSGBOXPARAMSW, lpszCaption, 16)
5782     TEST_FIELD_SIZE  (MSGBOXPARAMSW, dwStyle, 4)
5783     TEST_FIELD_ALIGN (MSGBOXPARAMSW, dwStyle, 4)
5784     TEST_FIELD_OFFSET(MSGBOXPARAMSW, dwStyle, 20)
5785     TEST_FIELD_SIZE  (MSGBOXPARAMSW, lpszIcon, 4)
5786     TEST_FIELD_ALIGN (MSGBOXPARAMSW, lpszIcon, 4)
5787     TEST_FIELD_OFFSET(MSGBOXPARAMSW, lpszIcon, 24)
5788     TEST_FIELD_SIZE  (MSGBOXPARAMSW, dwContextHelpId, 4)
5789     TEST_FIELD_ALIGN (MSGBOXPARAMSW, dwContextHelpId, 4)
5790     TEST_FIELD_OFFSET(MSGBOXPARAMSW, dwContextHelpId, 28)
5791     TEST_FIELD_SIZE  (MSGBOXPARAMSW, lpfnMsgBoxCallback, 4)
5792     TEST_FIELD_ALIGN (MSGBOXPARAMSW, lpfnMsgBoxCallback, 4)
5793     TEST_FIELD_OFFSET(MSGBOXPARAMSW, lpfnMsgBoxCallback, 32)
5794     TEST_FIELD_SIZE  (MSGBOXPARAMSW, dwLanguageId, 4)
5795     TEST_FIELD_ALIGN (MSGBOXPARAMSW, dwLanguageId, 4)
5796     TEST_FIELD_OFFSET(MSGBOXPARAMSW, dwLanguageId, 36)
5797 }
5798 
5799 static void test_pack_MSLLHOOKSTRUCT(void)
5800 {
5801     /* MSLLHOOKSTRUCT */
5802     TEST_TYPE_SIZE   (MSLLHOOKSTRUCT, 24)
5803     TEST_TYPE_ALIGN  (MSLLHOOKSTRUCT, 4)
5804     TEST_FIELD_SIZE  (MSLLHOOKSTRUCT, pt, 8)
5805     TEST_FIELD_ALIGN (MSLLHOOKSTRUCT, pt, 4)
5806     TEST_FIELD_OFFSET(MSLLHOOKSTRUCT, pt, 0)
5807     TEST_FIELD_SIZE  (MSLLHOOKSTRUCT, mouseData, 4)
5808     TEST_FIELD_ALIGN (MSLLHOOKSTRUCT, mouseData, 4)
5809     TEST_FIELD_OFFSET(MSLLHOOKSTRUCT, mouseData, 8)
5810     TEST_FIELD_SIZE  (MSLLHOOKSTRUCT, flags, 4)
5811     TEST_FIELD_ALIGN (MSLLHOOKSTRUCT, flags, 4)
5812     TEST_FIELD_OFFSET(MSLLHOOKSTRUCT, flags, 12)
5813     TEST_FIELD_SIZE  (MSLLHOOKSTRUCT, time, 4)
5814     TEST_FIELD_ALIGN (MSLLHOOKSTRUCT, time, 4)
5815     TEST_FIELD_OFFSET(MSLLHOOKSTRUCT, time, 16)
5816     TEST_FIELD_SIZE  (MSLLHOOKSTRUCT, dwExtraInfo, 4)
5817     TEST_FIELD_ALIGN (MSLLHOOKSTRUCT, dwExtraInfo, 4)
5818     TEST_FIELD_OFFSET(MSLLHOOKSTRUCT, dwExtraInfo, 20)
5819 }
5820 
5821 static void test_pack_MULTIKEYHELPA(void)
5822 {
5823     /* MULTIKEYHELPA */
5824     TEST_TYPE_SIZE   (MULTIKEYHELPA, 8)
5825     TEST_TYPE_ALIGN  (MULTIKEYHELPA, 4)
5826     TEST_FIELD_SIZE  (MULTIKEYHELPA, mkSize, 4)
5827     TEST_FIELD_ALIGN (MULTIKEYHELPA, mkSize, 4)
5828     TEST_FIELD_OFFSET(MULTIKEYHELPA, mkSize, 0)
5829     TEST_FIELD_SIZE  (MULTIKEYHELPA, mkKeylist, 1)
5830     TEST_FIELD_ALIGN (MULTIKEYHELPA, mkKeylist, 1)
5831     TEST_FIELD_OFFSET(MULTIKEYHELPA, mkKeylist, 4)
5832     TEST_FIELD_SIZE  (MULTIKEYHELPA, szKeyphrase, 1)
5833     TEST_FIELD_ALIGN (MULTIKEYHELPA, szKeyphrase, 1)
5834     TEST_FIELD_OFFSET(MULTIKEYHELPA, szKeyphrase, 5)
5835 }
5836 
5837 static void test_pack_MULTIKEYHELPW(void)
5838 {
5839     /* MULTIKEYHELPW */
5840     TEST_TYPE_SIZE   (MULTIKEYHELPW, 8)
5841     TEST_TYPE_ALIGN  (MULTIKEYHELPW, 4)
5842     TEST_FIELD_SIZE  (MULTIKEYHELPW, mkSize, 4)
5843     TEST_FIELD_ALIGN (MULTIKEYHELPW, mkSize, 4)
5844     TEST_FIELD_OFFSET(MULTIKEYHELPW, mkSize, 0)
5845     TEST_FIELD_SIZE  (MULTIKEYHELPW, mkKeylist, 2)
5846     TEST_FIELD_ALIGN (MULTIKEYHELPW, mkKeylist, 2)
5847     TEST_FIELD_OFFSET(MULTIKEYHELPW, mkKeylist, 4)
5848     TEST_FIELD_SIZE  (MULTIKEYHELPW, szKeyphrase, 2)
5849     TEST_FIELD_ALIGN (MULTIKEYHELPW, szKeyphrase, 2)
5850     TEST_FIELD_OFFSET(MULTIKEYHELPW, szKeyphrase, 6)
5851 }
5852 
5853 static void test_pack_NAMEENUMPROCA(void)
5854 {
5855     /* NAMEENUMPROCA */
5856     TEST_TYPE_SIZE   (NAMEENUMPROCA, 4)
5857     TEST_TYPE_ALIGN  (NAMEENUMPROCA, 4)
5858 }
5859 
5860 static void test_pack_NAMEENUMPROCW(void)
5861 {
5862     /* NAMEENUMPROCW */
5863     TEST_TYPE_SIZE   (NAMEENUMPROCW, 4)
5864     TEST_TYPE_ALIGN  (NAMEENUMPROCW, 4)
5865 }
5866 
5867 static void test_pack_NCCALCSIZE_PARAMS(void)
5868 {
5869     /* NCCALCSIZE_PARAMS */
5870     TEST_TYPE_SIZE   (NCCALCSIZE_PARAMS, 52)
5871     TEST_TYPE_ALIGN  (NCCALCSIZE_PARAMS, 4)
5872     TEST_FIELD_SIZE  (NCCALCSIZE_PARAMS, rgrc, 48)
5873     TEST_FIELD_ALIGN (NCCALCSIZE_PARAMS, rgrc, 4)
5874     TEST_FIELD_OFFSET(NCCALCSIZE_PARAMS, rgrc, 0)
5875     TEST_FIELD_SIZE  (NCCALCSIZE_PARAMS, lppos, 4)
5876     TEST_FIELD_ALIGN (NCCALCSIZE_PARAMS, lppos, 4)
5877     TEST_FIELD_OFFSET(NCCALCSIZE_PARAMS, lppos, 48)
5878 }
5879 
5880 static void test_pack_NMHDR(void)
5881 {
5882     /* NMHDR */
5883     TEST_TYPE_SIZE   (NMHDR, 12)
5884     TEST_TYPE_ALIGN  (NMHDR, 4)
5885     TEST_FIELD_SIZE  (NMHDR, hwndFrom, 4)
5886     TEST_FIELD_ALIGN (NMHDR, hwndFrom, 4)
5887     TEST_FIELD_OFFSET(NMHDR, hwndFrom, 0)
5888     TEST_FIELD_SIZE  (NMHDR, idFrom, 4)
5889     TEST_FIELD_ALIGN (NMHDR, idFrom, 4)
5890     TEST_FIELD_OFFSET(NMHDR, idFrom, 4)
5891     TEST_FIELD_SIZE  (NMHDR, code, 4)
5892     TEST_FIELD_ALIGN (NMHDR, code, 4)
5893     TEST_FIELD_OFFSET(NMHDR, code, 8)
5894 }
5895 
5896 static void test_pack_NONCLIENTMETRICSA(void)
5897 {
5898     /* NONCLIENTMETRICSA */
5899     TEST_TYPE_SIZE   (NONCLIENTMETRICSA, 344)
5900     TEST_TYPE_ALIGN  (NONCLIENTMETRICSA, 4)
5901     TEST_FIELD_SIZE  (NONCLIENTMETRICSA, cbSize, 4)
5902     TEST_FIELD_ALIGN (NONCLIENTMETRICSA, cbSize, 4)
5903     TEST_FIELD_OFFSET(NONCLIENTMETRICSA, cbSize, 0)
5904     TEST_FIELD_SIZE  (NONCLIENTMETRICSA, iBorderWidth, 4)
5905     TEST_FIELD_ALIGN (NONCLIENTMETRICSA, iBorderWidth, 4)
5906     TEST_FIELD_OFFSET(NONCLIENTMETRICSA, iBorderWidth, 4)
5907     TEST_FIELD_SIZE  (NONCLIENTMETRICSA, iScrollWidth, 4)
5908     TEST_FIELD_ALIGN (NONCLIENTMETRICSA, iScrollWidth, 4)
5909     TEST_FIELD_OFFSET(NONCLIENTMETRICSA, iScrollWidth, 8)
5910     TEST_FIELD_SIZE  (NONCLIENTMETRICSA, iScrollHeight, 4)
5911     TEST_FIELD_ALIGN (NONCLIENTMETRICSA, iScrollHeight, 4)
5912     TEST_FIELD_OFFSET(NONCLIENTMETRICSA, iScrollHeight, 12)
5913     TEST_FIELD_SIZE  (NONCLIENTMETRICSA, iCaptionWidth, 4)
5914     TEST_FIELD_ALIGN (NONCLIENTMETRICSA, iCaptionWidth, 4)
5915     TEST_FIELD_OFFSET(NONCLIENTMETRICSA, iCaptionWidth, 16)
5916     TEST_FIELD_SIZE  (NONCLIENTMETRICSA, iCaptionHeight, 4)
5917     TEST_FIELD_ALIGN (NONCLIENTMETRICSA, iCaptionHeight, 4)
5918     TEST_FIELD_OFFSET(NONCLIENTMETRICSA, iCaptionHeight, 20)
5919     TEST_FIELD_SIZE  (NONCLIENTMETRICSA, lfCaptionFont, 60)
5920     TEST_FIELD_ALIGN (NONCLIENTMETRICSA, lfCaptionFont, 4)
5921     TEST_FIELD_OFFSET(NONCLIENTMETRICSA, lfCaptionFont, 24)
5922     TEST_FIELD_SIZE  (NONCLIENTMETRICSA, iSmCaptionWidth, 4)
5923     TEST_FIELD_ALIGN (NONCLIENTMETRICSA, iSmCaptionWidth, 4)
5924     TEST_FIELD_OFFSET(NONCLIENTMETRICSA, iSmCaptionWidth, 84)
5925     TEST_FIELD_SIZE  (NONCLIENTMETRICSA, iSmCaptionHeight, 4)
5926     TEST_FIELD_ALIGN (NONCLIENTMETRICSA, iSmCaptionHeight, 4)
5927     TEST_FIELD_OFFSET(NONCLIENTMETRICSA, iSmCaptionHeight, 88)
5928     TEST_FIELD_SIZE  (NONCLIENTMETRICSA, lfSmCaptionFont, 60)
5929     TEST_FIELD_ALIGN (NONCLIENTMETRICSA, lfSmCaptionFont, 4)
5930     TEST_FIELD_OFFSET(NONCLIENTMETRICSA, lfSmCaptionFont, 92)
5931     TEST_FIELD_SIZE  (NONCLIENTMETRICSA, iMenuWidth, 4)
5932     TEST_FIELD_ALIGN (NONCLIENTMETRICSA, iMenuWidth, 4)
5933     TEST_FIELD_OFFSET(NONCLIENTMETRICSA, iMenuWidth, 152)
5934     TEST_FIELD_SIZE  (NONCLIENTMETRICSA, iMenuHeight, 4)
5935     TEST_FIELD_ALIGN (NONCLIENTMETRICSA, iMenuHeight, 4)
5936     TEST_FIELD_OFFSET(NONCLIENTMETRICSA, iMenuHeight, 156)
5937     TEST_FIELD_SIZE  (NONCLIENTMETRICSA, lfMenuFont, 60)
5938     TEST_FIELD_ALIGN (NONCLIENTMETRICSA, lfMenuFont, 4)
5939     TEST_FIELD_OFFSET(NONCLIENTMETRICSA, lfMenuFont, 160)
5940     TEST_FIELD_SIZE  (NONCLIENTMETRICSA, lfStatusFont, 60)
5941     TEST_FIELD_ALIGN (NONCLIENTMETRICSA, lfStatusFont, 4)
5942     TEST_FIELD_OFFSET(NONCLIENTMETRICSA, lfStatusFont, 220)
5943     TEST_FIELD_SIZE  (NONCLIENTMETRICSA, lfMessageFont, 60)
5944     TEST_FIELD_ALIGN (NONCLIENTMETRICSA, lfMessageFont, 4)
5945     TEST_FIELD_OFFSET(NONCLIENTMETRICSA, lfMessageFont, 280)
5946     TEST_FIELD_SIZE  (NONCLIENTMETRICSA, iPaddedBorderWidth, 4)
5947     TEST_FIELD_ALIGN (NONCLIENTMETRICSA, iPaddedBorderWidth, 4)
5948     TEST_FIELD_OFFSET(NONCLIENTMETRICSA, iPaddedBorderWidth, 340)
5949 }
5950 
5951 static void test_pack_NONCLIENTMETRICSW(void)
5952 {
5953     /* NONCLIENTMETRICSW */
5954     TEST_TYPE_SIZE   (NONCLIENTMETRICSW, 504)
5955     TEST_TYPE_ALIGN  (NONCLIENTMETRICSW, 4)
5956     TEST_FIELD_SIZE  (NONCLIENTMETRICSW, cbSize, 4)
5957     TEST_FIELD_ALIGN (NONCLIENTMETRICSW, cbSize, 4)
5958     TEST_FIELD_OFFSET(NONCLIENTMETRICSW, cbSize, 0)
5959     TEST_FIELD_SIZE  (NONCLIENTMETRICSW, iBorderWidth, 4)
5960     TEST_FIELD_ALIGN (NONCLIENTMETRICSW, iBorderWidth, 4)
5961     TEST_FIELD_OFFSET(NONCLIENTMETRICSW, iBorderWidth, 4)
5962     TEST_FIELD_SIZE  (NONCLIENTMETRICSW, iScrollWidth, 4)
5963     TEST_FIELD_ALIGN (NONCLIENTMETRICSW, iScrollWidth, 4)
5964     TEST_FIELD_OFFSET(NONCLIENTMETRICSW, iScrollWidth, 8)
5965     TEST_FIELD_SIZE  (NONCLIENTMETRICSW, iScrollHeight, 4)
5966     TEST_FIELD_ALIGN (NONCLIENTMETRICSW, iScrollHeight, 4)
5967     TEST_FIELD_OFFSET(NONCLIENTMETRICSW, iScrollHeight, 12)
5968     TEST_FIELD_SIZE  (NONCLIENTMETRICSW, iCaptionWidth, 4)
5969     TEST_FIELD_ALIGN (NONCLIENTMETRICSW, iCaptionWidth, 4)
5970     TEST_FIELD_OFFSET(NONCLIENTMETRICSW, iCaptionWidth, 16)
5971     TEST_FIELD_SIZE  (NONCLIENTMETRICSW, iCaptionHeight, 4)
5972     TEST_FIELD_ALIGN (NONCLIENTMETRICSW, iCaptionHeight, 4)
5973     TEST_FIELD_OFFSET(NONCLIENTMETRICSW, iCaptionHeight, 20)
5974     TEST_FIELD_SIZE  (NONCLIENTMETRICSW, lfCaptionFont, 92)
5975     TEST_FIELD_ALIGN (NONCLIENTMETRICSW, lfCaptionFont, 4)
5976     TEST_FIELD_OFFSET(NONCLIENTMETRICSW, lfCaptionFont, 24)
5977     TEST_FIELD_SIZE  (NONCLIENTMETRICSW, iSmCaptionWidth, 4)
5978     TEST_FIELD_ALIGN (NONCLIENTMETRICSW, iSmCaptionWidth, 4)
5979     TEST_FIELD_OFFSET(NONCLIENTMETRICSW, iSmCaptionWidth, 116)
5980     TEST_FIELD_SIZE  (NONCLIENTMETRICSW, iSmCaptionHeight, 4)
5981     TEST_FIELD_ALIGN (NONCLIENTMETRICSW, iSmCaptionHeight, 4)
5982     TEST_FIELD_OFFSET(NONCLIENTMETRICSW, iSmCaptionHeight, 120)
5983     TEST_FIELD_SIZE  (NONCLIENTMETRICSW, lfSmCaptionFont, 92)
5984     TEST_FIELD_ALIGN (NONCLIENTMETRICSW, lfSmCaptionFont, 4)
5985     TEST_FIELD_OFFSET(NONCLIENTMETRICSW, lfSmCaptionFont, 124)
5986     TEST_FIELD_SIZE  (NONCLIENTMETRICSW, iMenuWidth, 4)
5987     TEST_FIELD_ALIGN (NONCLIENTMETRICSW, iMenuWidth, 4)
5988     TEST_FIELD_OFFSET(NONCLIENTMETRICSW, iMenuWidth, 216)
5989     TEST_FIELD_SIZE  (NONCLIENTMETRICSW, iMenuHeight, 4)
5990     TEST_FIELD_ALIGN (NONCLIENTMETRICSW, iMenuHeight, 4)
5991     TEST_FIELD_OFFSET(NONCLIENTMETRICSW, iMenuHeight, 220)
5992     TEST_FIELD_SIZE  (NONCLIENTMETRICSW, lfMenuFont, 92)
5993     TEST_FIELD_ALIGN (NONCLIENTMETRICSW, lfMenuFont, 4)
5994     TEST_FIELD_OFFSET(NONCLIENTMETRICSW, lfMenuFont, 224)
5995     TEST_FIELD_SIZE  (NONCLIENTMETRICSW, lfStatusFont, 92)
5996     TEST_FIELD_ALIGN (NONCLIENTMETRICSW, lfStatusFont, 4)
5997     TEST_FIELD_OFFSET(NONCLIENTMETRICSW, lfStatusFont, 316)
5998     TEST_FIELD_SIZE  (NONCLIENTMETRICSW, lfMessageFont, 92)
5999     TEST_FIELD_ALIGN (NONCLIENTMETRICSW, lfMessageFont, 4)
6000     TEST_FIELD_OFFSET(NONCLIENTMETRICSW, lfMessageFont, 408)
6001     TEST_FIELD_SIZE  (NONCLIENTMETRICSW, iPaddedBorderWidth, 4)
6002     TEST_FIELD_ALIGN (NONCLIENTMETRICSW, iPaddedBorderWidth, 4)
6003     TEST_FIELD_OFFSET(NONCLIENTMETRICSW, iPaddedBorderWidth, 500)
6004 }
6005 
6006 static void test_pack_PAINTSTRUCT(void)
6007 {
6008     /* PAINTSTRUCT */
6009     TEST_TYPE_SIZE   (PAINTSTRUCT, 64)
6010     TEST_TYPE_ALIGN  (PAINTSTRUCT, 4)
6011     TEST_FIELD_SIZE  (PAINTSTRUCT, hdc, 4)
6012     TEST_FIELD_ALIGN (PAINTSTRUCT, hdc, 4)
6013     TEST_FIELD_OFFSET(PAINTSTRUCT, hdc, 0)
6014     TEST_FIELD_SIZE  (PAINTSTRUCT, fErase, 4)
6015     TEST_FIELD_ALIGN (PAINTSTRUCT, fErase, 4)
6016     TEST_FIELD_OFFSET(PAINTSTRUCT, fErase, 4)
6017     TEST_FIELD_SIZE  (PAINTSTRUCT, rcPaint, 16)
6018     TEST_FIELD_ALIGN (PAINTSTRUCT, rcPaint, 4)
6019     TEST_FIELD_OFFSET(PAINTSTRUCT, rcPaint, 8)
6020     TEST_FIELD_SIZE  (PAINTSTRUCT, fRestore, 4)
6021     TEST_FIELD_ALIGN (PAINTSTRUCT, fRestore, 4)
6022     TEST_FIELD_OFFSET(PAINTSTRUCT, fRestore, 24)
6023     TEST_FIELD_SIZE  (PAINTSTRUCT, fIncUpdate, 4)
6024     TEST_FIELD_ALIGN (PAINTSTRUCT, fIncUpdate, 4)
6025     TEST_FIELD_OFFSET(PAINTSTRUCT, fIncUpdate, 28)
6026     TEST_FIELD_SIZE  (PAINTSTRUCT, rgbReserved, 32)
6027     TEST_FIELD_ALIGN (PAINTSTRUCT, rgbReserved, 1)
6028     TEST_FIELD_OFFSET(PAINTSTRUCT, rgbReserved, 32)
6029 }
6030 
6031 static void test_pack_PCOMBOBOXINFO(void)
6032 {
6033     /* PCOMBOBOXINFO */
6034     TEST_TYPE_SIZE   (PCOMBOBOXINFO, 4)
6035     TEST_TYPE_ALIGN  (PCOMBOBOXINFO, 4)
6036     TEST_TARGET_SIZE (PCOMBOBOXINFO, 52)
6037     TEST_TARGET_ALIGN(PCOMBOBOXINFO, 4)
6038 }
6039 
6040 static void test_pack_PCOMPAREITEMSTRUCT(void)
6041 {
6042     /* PCOMPAREITEMSTRUCT */
6043     TEST_TYPE_SIZE   (PCOMPAREITEMSTRUCT, 4)
6044     TEST_TYPE_ALIGN  (PCOMPAREITEMSTRUCT, 4)
6045     TEST_TARGET_SIZE (PCOMPAREITEMSTRUCT, 32)
6046     TEST_TARGET_ALIGN(PCOMPAREITEMSTRUCT, 4)
6047 }
6048 
6049 static void test_pack_PCOPYDATASTRUCT(void)
6050 {
6051     /* PCOPYDATASTRUCT */
6052     TEST_TYPE_SIZE   (PCOPYDATASTRUCT, 4)
6053     TEST_TYPE_ALIGN  (PCOPYDATASTRUCT, 4)
6054     TEST_TARGET_SIZE (PCOPYDATASTRUCT, 12)
6055     TEST_TARGET_ALIGN(PCOPYDATASTRUCT, 4)
6056 }
6057 
6058 static void test_pack_PCURSORINFO(void)
6059 {
6060     /* PCURSORINFO */
6061     TEST_TYPE_SIZE   (PCURSORINFO, 4)
6062     TEST_TYPE_ALIGN  (PCURSORINFO, 4)
6063     TEST_TARGET_SIZE (PCURSORINFO, 20)
6064     TEST_TARGET_ALIGN(PCURSORINFO, 4)
6065 }
6066 
6067 static void test_pack_PCWPRETSTRUCT(void)
6068 {
6069     /* PCWPRETSTRUCT */
6070     TEST_TYPE_SIZE   (PCWPRETSTRUCT, 4)
6071     TEST_TYPE_ALIGN  (PCWPRETSTRUCT, 4)
6072     TEST_TARGET_SIZE (PCWPRETSTRUCT, 20)
6073     TEST_TARGET_ALIGN(PCWPRETSTRUCT, 4)
6074 }
6075 
6076 static void test_pack_PCWPSTRUCT(void)
6077 {
6078     /* PCWPSTRUCT */
6079     TEST_TYPE_SIZE   (PCWPSTRUCT, 4)
6080     TEST_TYPE_ALIGN  (PCWPSTRUCT, 4)
6081     TEST_TARGET_SIZE (PCWPSTRUCT, 16)
6082     TEST_TARGET_ALIGN(PCWPSTRUCT, 4)
6083 }
6084 
6085 static void test_pack_PDEBUGHOOKINFO(void)
6086 {
6087     /* PDEBUGHOOKINFO */
6088     TEST_TYPE_SIZE   (PDEBUGHOOKINFO, 4)
6089     TEST_TYPE_ALIGN  (PDEBUGHOOKINFO, 4)
6090     TEST_TARGET_SIZE (PDEBUGHOOKINFO, 20)
6091     TEST_TARGET_ALIGN(PDEBUGHOOKINFO, 4)
6092 }
6093 
6094 static void test_pack_PDELETEITEMSTRUCT(void)
6095 {
6096     /* PDELETEITEMSTRUCT */
6097     TEST_TYPE_SIZE   (PDELETEITEMSTRUCT, 4)
6098     TEST_TYPE_ALIGN  (PDELETEITEMSTRUCT, 4)
6099     TEST_TARGET_SIZE (PDELETEITEMSTRUCT, 20)
6100     TEST_TARGET_ALIGN(PDELETEITEMSTRUCT, 4)
6101 }
6102 
6103 static void test_pack_PDLGITEMTEMPLATEA(void)
6104 {
6105     /* PDLGITEMTEMPLATEA */
6106     TEST_TYPE_SIZE   (PDLGITEMTEMPLATEA, 4)
6107     TEST_TYPE_ALIGN  (PDLGITEMTEMPLATEA, 4)
6108     TEST_TARGET_SIZE (PDLGITEMTEMPLATEA, 18)
6109     TEST_TARGET_ALIGN(PDLGITEMTEMPLATEA, 2)
6110 }
6111 
6112 static void test_pack_PDLGITEMTEMPLATEW(void)
6113 {
6114     /* PDLGITEMTEMPLATEW */
6115     TEST_TYPE_SIZE   (PDLGITEMTEMPLATEW, 4)
6116     TEST_TYPE_ALIGN  (PDLGITEMTEMPLATEW, 4)
6117     TEST_TARGET_SIZE (PDLGITEMTEMPLATEW, 18)
6118     TEST_TARGET_ALIGN(PDLGITEMTEMPLATEW, 2)
6119 }
6120 
6121 static void test_pack_PDRAWITEMSTRUCT(void)
6122 {
6123     /* PDRAWITEMSTRUCT */
6124     TEST_TYPE_SIZE   (PDRAWITEMSTRUCT, 4)
6125     TEST_TYPE_ALIGN  (PDRAWITEMSTRUCT, 4)
6126     TEST_TARGET_SIZE (PDRAWITEMSTRUCT, 48)
6127     TEST_TARGET_ALIGN(PDRAWITEMSTRUCT, 4)
6128 }
6129 
6130 static void test_pack_PEVENTMSG(void)
6131 {
6132     /* PEVENTMSG */
6133     TEST_TYPE_SIZE   (PEVENTMSG, 4)
6134     TEST_TYPE_ALIGN  (PEVENTMSG, 4)
6135     TEST_TARGET_SIZE (PEVENTMSG, 20)
6136     TEST_TARGET_ALIGN(PEVENTMSG, 4)
6137 }
6138 
6139 static void test_pack_PFLASHWINFO(void)
6140 {
6141     /* PFLASHWINFO */
6142     TEST_TYPE_SIZE   (PFLASHWINFO, 4)
6143     TEST_TYPE_ALIGN  (PFLASHWINFO, 4)
6144     TEST_TARGET_SIZE (PFLASHWINFO, 20)
6145     TEST_TARGET_ALIGN(PFLASHWINFO, 4)
6146 }
6147 
6148 static void test_pack_PGUITHREADINFO(void)
6149 {
6150     /* PGUITHREADINFO */
6151     TEST_TYPE_SIZE   (PGUITHREADINFO, 4)
6152     TEST_TYPE_ALIGN  (PGUITHREADINFO, 4)
6153     TEST_TARGET_SIZE (PGUITHREADINFO, 48)
6154     TEST_TARGET_ALIGN(PGUITHREADINFO, 4)
6155 }
6156 
6157 static void test_pack_PHARDWAREHOOKSTRUCT(void)
6158 {
6159     /* PHARDWAREHOOKSTRUCT */
6160     TEST_TYPE_SIZE   (PHARDWAREHOOKSTRUCT, 4)
6161     TEST_TYPE_ALIGN  (PHARDWAREHOOKSTRUCT, 4)
6162     TEST_TARGET_SIZE (PHARDWAREHOOKSTRUCT, 16)
6163     TEST_TARGET_ALIGN(PHARDWAREHOOKSTRUCT, 4)
6164 }
6165 
6166 static void test_pack_PHARDWAREINPUT(void)
6167 {
6168     /* PHARDWAREINPUT */
6169     TEST_TYPE_SIZE   (PHARDWAREINPUT, 4)
6170     TEST_TYPE_ALIGN  (PHARDWAREINPUT, 4)
6171     TEST_TARGET_SIZE (PHARDWAREINPUT, 8)
6172     TEST_TARGET_ALIGN(PHARDWAREINPUT, 4)
6173 }
6174 
6175 static void test_pack_PHDEVNOTIFY(void)
6176 {
6177     /* PHDEVNOTIFY */
6178     TEST_TYPE_SIZE   (PHDEVNOTIFY, 4)
6179     TEST_TYPE_ALIGN  (PHDEVNOTIFY, 4)
6180     TEST_TARGET_SIZE (PHDEVNOTIFY, 4)
6181     TEST_TARGET_ALIGN(PHDEVNOTIFY, 4)
6182 }
6183 
6184 static void test_pack_PHELPWININFOA(void)
6185 {
6186     /* PHELPWININFOA */
6187     TEST_TYPE_SIZE   (PHELPWININFOA, 4)
6188     TEST_TYPE_ALIGN  (PHELPWININFOA, 4)
6189     TEST_TARGET_SIZE (PHELPWININFOA, 28)
6190     TEST_TARGET_ALIGN(PHELPWININFOA, 4)
6191 }
6192 
6193 static void test_pack_PHELPWININFOW(void)
6194 {
6195     /* PHELPWININFOW */
6196     TEST_TYPE_SIZE   (PHELPWININFOW, 4)
6197     TEST_TYPE_ALIGN  (PHELPWININFOW, 4)
6198     TEST_TARGET_SIZE (PHELPWININFOW, 28)
6199     TEST_TARGET_ALIGN(PHELPWININFOW, 4)
6200 }
6201 
6202 static void test_pack_PICONINFO(void)
6203 {
6204     /* PICONINFO */
6205     TEST_TYPE_SIZE   (PICONINFO, 4)
6206     TEST_TYPE_ALIGN  (PICONINFO, 4)
6207     TEST_TARGET_SIZE (PICONINFO, 20)
6208     TEST_TARGET_ALIGN(PICONINFO, 4)
6209 }
6210 
6211 static void test_pack_PICONMETRICSA(void)
6212 {
6213     /* PICONMETRICSA */
6214     TEST_TYPE_SIZE   (PICONMETRICSA, 4)
6215     TEST_TYPE_ALIGN  (PICONMETRICSA, 4)
6216     TEST_TARGET_SIZE (PICONMETRICSA, 76)
6217     TEST_TARGET_ALIGN(PICONMETRICSA, 4)
6218 }
6219 
6220 static void test_pack_PICONMETRICSW(void)
6221 {
6222     /* PICONMETRICSW */
6223     TEST_TYPE_SIZE   (PICONMETRICSW, 4)
6224     TEST_TYPE_ALIGN  (PICONMETRICSW, 4)
6225     TEST_TARGET_SIZE (PICONMETRICSW, 108)
6226     TEST_TARGET_ALIGN(PICONMETRICSW, 4)
6227 }
6228 
6229 static void test_pack_PINPUT(void)
6230 {
6231     /* PINPUT */
6232     TEST_TYPE_SIZE   (PINPUT, 4)
6233     TEST_TYPE_ALIGN  (PINPUT, 4)
6234 }
6235 
6236 static void test_pack_PKBDLLHOOKSTRUCT(void)
6237 {
6238     /* PKBDLLHOOKSTRUCT */
6239     TEST_TYPE_SIZE   (PKBDLLHOOKSTRUCT, 4)
6240     TEST_TYPE_ALIGN  (PKBDLLHOOKSTRUCT, 4)
6241     TEST_TARGET_SIZE (PKBDLLHOOKSTRUCT, 20)
6242     TEST_TARGET_ALIGN(PKBDLLHOOKSTRUCT, 4)
6243 }
6244 
6245 static void test_pack_PKEYBDINPUT(void)
6246 {
6247     /* PKEYBDINPUT */
6248     TEST_TYPE_SIZE   (PKEYBDINPUT, 4)
6249     TEST_TYPE_ALIGN  (PKEYBDINPUT, 4)
6250     TEST_TARGET_SIZE (PKEYBDINPUT, 16)
6251     TEST_TARGET_ALIGN(PKEYBDINPUT, 4)
6252 }
6253 
6254 static void test_pack_PMDINEXTMENU(void)
6255 {
6256     /* PMDINEXTMENU */
6257     TEST_TYPE_SIZE   (PMDINEXTMENU, 4)
6258     TEST_TYPE_ALIGN  (PMDINEXTMENU, 4)
6259     TEST_TARGET_SIZE (PMDINEXTMENU, 12)
6260     TEST_TARGET_ALIGN(PMDINEXTMENU, 4)
6261 }
6262 
6263 static void test_pack_PMEASUREITEMSTRUCT(void)
6264 {
6265     /* PMEASUREITEMSTRUCT */
6266     TEST_TYPE_SIZE   (PMEASUREITEMSTRUCT, 4)
6267     TEST_TYPE_ALIGN  (PMEASUREITEMSTRUCT, 4)
6268     TEST_TARGET_SIZE (PMEASUREITEMSTRUCT, 24)
6269     TEST_TARGET_ALIGN(PMEASUREITEMSTRUCT, 4)
6270 }
6271 
6272 static void test_pack_PMENUITEMTEMPLATE(void)
6273 {
6274     /* PMENUITEMTEMPLATE */
6275     TEST_TYPE_SIZE   (PMENUITEMTEMPLATE, 4)
6276     TEST_TYPE_ALIGN  (PMENUITEMTEMPLATE, 4)
6277     TEST_TARGET_SIZE (PMENUITEMTEMPLATE, 6)
6278     TEST_TARGET_ALIGN(PMENUITEMTEMPLATE, 2)
6279 }
6280 
6281 static void test_pack_PMENUITEMTEMPLATEHEADER(void)
6282 {
6283     /* PMENUITEMTEMPLATEHEADER */
6284     TEST_TYPE_SIZE   (PMENUITEMTEMPLATEHEADER, 4)
6285     TEST_TYPE_ALIGN  (PMENUITEMTEMPLATEHEADER, 4)
6286     TEST_TARGET_SIZE (PMENUITEMTEMPLATEHEADER, 4)
6287     TEST_TARGET_ALIGN(PMENUITEMTEMPLATEHEADER, 2)
6288 }
6289 
6290 static void test_pack_PMINIMIZEDMETRICS(void)
6291 {
6292     /* PMINIMIZEDMETRICS */
6293     TEST_TYPE_SIZE   (PMINIMIZEDMETRICS, 4)
6294     TEST_TYPE_ALIGN  (PMINIMIZEDMETRICS, 4)
6295     TEST_TARGET_SIZE (PMINIMIZEDMETRICS, 20)
6296     TEST_TARGET_ALIGN(PMINIMIZEDMETRICS, 4)
6297 }
6298 
6299 static void test_pack_PMINMAXINFO(void)
6300 {
6301     /* PMINMAXINFO */
6302     TEST_TYPE_SIZE   (PMINMAXINFO, 4)
6303     TEST_TYPE_ALIGN  (PMINMAXINFO, 4)
6304     TEST_TARGET_SIZE (PMINMAXINFO, 40)
6305     TEST_TARGET_ALIGN(PMINMAXINFO, 4)
6306 }
6307 
6308 static void test_pack_PMOUSEHOOKSTRUCT(void)
6309 {
6310     /* PMOUSEHOOKSTRUCT */
6311     TEST_TYPE_SIZE   (PMOUSEHOOKSTRUCT, 4)
6312     TEST_TYPE_ALIGN  (PMOUSEHOOKSTRUCT, 4)
6313     TEST_TARGET_SIZE (PMOUSEHOOKSTRUCT, 20)
6314     TEST_TARGET_ALIGN(PMOUSEHOOKSTRUCT, 4)
6315 }
6316 
6317 static void test_pack_PMOUSEINPUT(void)
6318 {
6319     /* PMOUSEINPUT */
6320     TEST_TYPE_SIZE   (PMOUSEINPUT, 4)
6321     TEST_TYPE_ALIGN  (PMOUSEINPUT, 4)
6322     TEST_TARGET_SIZE (PMOUSEINPUT, 24)
6323     TEST_TARGET_ALIGN(PMOUSEINPUT, 4)
6324 }
6325 
6326 static void test_pack_PMSG(void)
6327 {
6328     /* PMSG */
6329     TEST_TYPE_SIZE   (PMSG, 4)
6330     TEST_TYPE_ALIGN  (PMSG, 4)
6331     TEST_TARGET_SIZE (PMSG, 28)
6332     TEST_TARGET_ALIGN(PMSG, 4)
6333 }
6334 
6335 static void test_pack_PMSGBOXPARAMSA(void)
6336 {
6337     /* PMSGBOXPARAMSA */
6338     TEST_TYPE_SIZE   (PMSGBOXPARAMSA, 4)
6339     TEST_TYPE_ALIGN  (PMSGBOXPARAMSA, 4)
6340     TEST_TARGET_SIZE (PMSGBOXPARAMSA, 40)
6341     TEST_TARGET_ALIGN(PMSGBOXPARAMSA, 4)
6342 }
6343 
6344 static void test_pack_PMSGBOXPARAMSW(void)
6345 {
6346     /* PMSGBOXPARAMSW */
6347     TEST_TYPE_SIZE   (PMSGBOXPARAMSW, 4)
6348     TEST_TYPE_ALIGN  (PMSGBOXPARAMSW, 4)
6349     TEST_TARGET_SIZE (PMSGBOXPARAMSW, 40)
6350     TEST_TARGET_ALIGN(PMSGBOXPARAMSW, 4)
6351 }
6352 
6353 static void test_pack_PMSLLHOOKSTRUCT(void)
6354 {
6355     /* PMSLLHOOKSTRUCT */
6356     TEST_TYPE_SIZE   (PMSLLHOOKSTRUCT, 4)
6357     TEST_TYPE_ALIGN  (PMSLLHOOKSTRUCT, 4)
6358     TEST_TARGET_SIZE (PMSLLHOOKSTRUCT, 24)
6359     TEST_TARGET_ALIGN(PMSLLHOOKSTRUCT, 4)
6360 }
6361 
6362 static void test_pack_PMULTIKEYHELPA(void)
6363 {
6364     /* PMULTIKEYHELPA */
6365     TEST_TYPE_SIZE   (PMULTIKEYHELPA, 4)
6366     TEST_TYPE_ALIGN  (PMULTIKEYHELPA, 4)
6367     TEST_TARGET_SIZE (PMULTIKEYHELPA, 8)
6368     TEST_TARGET_ALIGN(PMULTIKEYHELPA, 4)
6369 }
6370 
6371 static void test_pack_PMULTIKEYHELPW(void)
6372 {
6373     /* PMULTIKEYHELPW */
6374     TEST_TYPE_SIZE   (PMULTIKEYHELPW, 4)
6375     TEST_TYPE_ALIGN  (PMULTIKEYHELPW, 4)
6376     TEST_TARGET_SIZE (PMULTIKEYHELPW, 8)
6377     TEST_TARGET_ALIGN(PMULTIKEYHELPW, 4)
6378 }
6379 
6380 static void test_pack_PNONCLIENTMETRICSA(void)
6381 {
6382     /* PNONCLIENTMETRICSA */
6383     TEST_TYPE_SIZE   (PNONCLIENTMETRICSA, 4)
6384     TEST_TYPE_ALIGN  (PNONCLIENTMETRICSA, 4)
6385     TEST_TARGET_SIZE (PNONCLIENTMETRICSA, 344)
6386     TEST_TARGET_ALIGN(PNONCLIENTMETRICSA, 4)
6387 }
6388 
6389 static void test_pack_PNONCLIENTMETRICSW(void)
6390 {
6391     /* PNONCLIENTMETRICSW */
6392     TEST_TYPE_SIZE   (PNONCLIENTMETRICSW, 4)
6393     TEST_TYPE_ALIGN  (PNONCLIENTMETRICSW, 4)
6394     TEST_TARGET_SIZE (PNONCLIENTMETRICSW, 504)
6395     TEST_TARGET_ALIGN(PNONCLIENTMETRICSW, 4)
6396 }
6397 
6398 static void test_pack_PPAINTSTRUCT(void)
6399 {
6400     /* PPAINTSTRUCT */
6401     TEST_TYPE_SIZE   (PPAINTSTRUCT, 4)
6402     TEST_TYPE_ALIGN  (PPAINTSTRUCT, 4)
6403     TEST_TARGET_SIZE (PPAINTSTRUCT, 64)
6404     TEST_TARGET_ALIGN(PPAINTSTRUCT, 4)
6405 }
6406 
6407 static void test_pack_PROPENUMPROCA(void)
6408 {
6409     /* PROPENUMPROCA */
6410     TEST_TYPE_SIZE   (PROPENUMPROCA, 4)
6411     TEST_TYPE_ALIGN  (PROPENUMPROCA, 4)
6412 }
6413 
6414 static void test_pack_PROPENUMPROCEXA(void)
6415 {
6416     /* PROPENUMPROCEXA */
6417     TEST_TYPE_SIZE   (PROPENUMPROCEXA, 4)
6418     TEST_TYPE_ALIGN  (PROPENUMPROCEXA, 4)
6419 }
6420 
6421 static void test_pack_PROPENUMPROCEXW(void)
6422 {
6423     /* PROPENUMPROCEXW */
6424     TEST_TYPE_SIZE   (PROPENUMPROCEXW, 4)
6425     TEST_TYPE_ALIGN  (PROPENUMPROCEXW, 4)
6426 }
6427 
6428 static void test_pack_PROPENUMPROCW(void)
6429 {
6430     /* PROPENUMPROCW */
6431     TEST_TYPE_SIZE   (PROPENUMPROCW, 4)
6432     TEST_TYPE_ALIGN  (PROPENUMPROCW, 4)
6433 }
6434 
6435 static void test_pack_PTITLEBARINFO(void)
6436 {
6437     /* PTITLEBARINFO */
6438     TEST_TYPE_SIZE   (PTITLEBARINFO, 4)
6439     TEST_TYPE_ALIGN  (PTITLEBARINFO, 4)
6440     TEST_TARGET_SIZE (PTITLEBARINFO, 44)
6441     TEST_TARGET_ALIGN(PTITLEBARINFO, 4)
6442 }
6443 
6444 static void test_pack_PUSEROBJECTFLAGS(void)
6445 {
6446     /* PUSEROBJECTFLAGS */
6447     TEST_TYPE_SIZE   (PUSEROBJECTFLAGS, 4)
6448     TEST_TYPE_ALIGN  (PUSEROBJECTFLAGS, 4)
6449     TEST_TARGET_SIZE (PUSEROBJECTFLAGS, 12)
6450     TEST_TARGET_ALIGN(PUSEROBJECTFLAGS, 4)
6451 }
6452 
6453 static void test_pack_PWINDOWINFO(void)
6454 {
6455     /* PWINDOWINFO */
6456     TEST_TYPE_SIZE   (PWINDOWINFO, 4)
6457     TEST_TYPE_ALIGN  (PWINDOWINFO, 4)
6458     TEST_TARGET_SIZE (PWINDOWINFO, 60)
6459     TEST_TARGET_ALIGN(PWINDOWINFO, 4)
6460 }
6461 
6462 static void test_pack_PWINDOWPLACEMENT(void)
6463 {
6464     /* PWINDOWPLACEMENT */
6465     TEST_TYPE_SIZE   (PWINDOWPLACEMENT, 4)
6466     TEST_TYPE_ALIGN  (PWINDOWPLACEMENT, 4)
6467     TEST_TARGET_SIZE (PWINDOWPLACEMENT, 44)
6468     TEST_TARGET_ALIGN(PWINDOWPLACEMENT, 4)
6469 }
6470 
6471 static void test_pack_PWINDOWPOS(void)
6472 {
6473     /* PWINDOWPOS */
6474     TEST_TYPE_SIZE   (PWINDOWPOS, 4)
6475     TEST_TYPE_ALIGN  (PWINDOWPOS, 4)
6476     TEST_TARGET_SIZE (PWINDOWPOS, 28)
6477     TEST_TARGET_ALIGN(PWINDOWPOS, 4)
6478 }
6479 
6480 static void test_pack_PWNDCLASSA(void)
6481 {
6482     /* PWNDCLASSA */
6483     TEST_TYPE_SIZE   (PWNDCLASSA, 4)
6484     TEST_TYPE_ALIGN  (PWNDCLASSA, 4)
6485     TEST_TARGET_SIZE (PWNDCLASSA, 40)
6486     TEST_TARGET_ALIGN(PWNDCLASSA, 4)
6487 }
6488 
6489 static void test_pack_PWNDCLASSEXA(void)
6490 {
6491     /* PWNDCLASSEXA */
6492     TEST_TYPE_SIZE   (PWNDCLASSEXA, 4)
6493     TEST_TYPE_ALIGN  (PWNDCLASSEXA, 4)
6494     TEST_TARGET_SIZE (PWNDCLASSEXA, 48)
6495     TEST_TARGET_ALIGN(PWNDCLASSEXA, 4)
6496 }
6497 
6498 static void test_pack_PWNDCLASSEXW(void)
6499 {
6500     /* PWNDCLASSEXW */
6501     TEST_TYPE_SIZE   (PWNDCLASSEXW, 4)
6502     TEST_TYPE_ALIGN  (PWNDCLASSEXW, 4)
6503     TEST_TARGET_SIZE (PWNDCLASSEXW, 48)
6504     TEST_TARGET_ALIGN(PWNDCLASSEXW, 4)
6505 }
6506 
6507 static void test_pack_PWNDCLASSW(void)
6508 {
6509     /* PWNDCLASSW */
6510     TEST_TYPE_SIZE   (PWNDCLASSW, 4)
6511     TEST_TYPE_ALIGN  (PWNDCLASSW, 4)
6512     TEST_TARGET_SIZE (PWNDCLASSW, 40)
6513     TEST_TARGET_ALIGN(PWNDCLASSW, 4)
6514 }
6515 
6516 static void test_pack_SCROLLINFO(void)
6517 {
6518     /* SCROLLINFO */
6519     TEST_TYPE_SIZE   (SCROLLINFO, 28)
6520     TEST_TYPE_ALIGN  (SCROLLINFO, 4)
6521     TEST_FIELD_SIZE  (SCROLLINFO, cbSize, 4)
6522     TEST_FIELD_ALIGN (SCROLLINFO, cbSize, 4)
6523     TEST_FIELD_OFFSET(SCROLLINFO, cbSize, 0)
6524     TEST_FIELD_SIZE  (SCROLLINFO, fMask, 4)
6525     TEST_FIELD_ALIGN (SCROLLINFO, fMask, 4)
6526     TEST_FIELD_OFFSET(SCROLLINFO, fMask, 4)
6527     TEST_FIELD_SIZE  (SCROLLINFO, nMin, 4)
6528     TEST_FIELD_ALIGN (SCROLLINFO, nMin, 4)
6529     TEST_FIELD_OFFSET(SCROLLINFO, nMin, 8)
6530     TEST_FIELD_SIZE  (SCROLLINFO, nMax, 4)
6531     TEST_FIELD_ALIGN (SCROLLINFO, nMax, 4)
6532     TEST_FIELD_OFFSET(SCROLLINFO, nMax, 12)
6533     TEST_FIELD_SIZE  (SCROLLINFO, nPage, 4)
6534     TEST_FIELD_ALIGN (SCROLLINFO, nPage, 4)
6535     TEST_FIELD_OFFSET(SCROLLINFO, nPage, 16)
6536     TEST_FIELD_SIZE  (SCROLLINFO, nPos, 4)
6537     TEST_FIELD_ALIGN (SCROLLINFO, nPos, 4)
6538     TEST_FIELD_OFFSET(SCROLLINFO, nPos, 20)
6539     TEST_FIELD_SIZE  (SCROLLINFO, nTrackPos, 4)
6540     TEST_FIELD_ALIGN (SCROLLINFO, nTrackPos, 4)
6541     TEST_FIELD_OFFSET(SCROLLINFO, nTrackPos, 24)
6542 }
6543 
6544 static void test_pack_SENDASYNCPROC(void)
6545 {
6546     /* SENDASYNCPROC */
6547     TEST_TYPE_SIZE   (SENDASYNCPROC, 4)
6548     TEST_TYPE_ALIGN  (SENDASYNCPROC, 4)
6549 }
6550 
6551 static void test_pack_SERIALKEYSA(void)
6552 {
6553     /* SERIALKEYSA */
6554     TEST_TYPE_SIZE   (SERIALKEYSA, 28)
6555     TEST_TYPE_ALIGN  (SERIALKEYSA, 4)
6556     TEST_FIELD_SIZE  (SERIALKEYSA, cbSize, 4)
6557     TEST_FIELD_ALIGN (SERIALKEYSA, cbSize, 4)
6558     TEST_FIELD_OFFSET(SERIALKEYSA, cbSize, 0)
6559     TEST_FIELD_SIZE  (SERIALKEYSA, dwFlags, 4)
6560     TEST_FIELD_ALIGN (SERIALKEYSA, dwFlags, 4)
6561     TEST_FIELD_OFFSET(SERIALKEYSA, dwFlags, 4)
6562     TEST_FIELD_SIZE  (SERIALKEYSA, lpszActivePort, 4)
6563     TEST_FIELD_ALIGN (SERIALKEYSA, lpszActivePort, 4)
6564     TEST_FIELD_OFFSET(SERIALKEYSA, lpszActivePort, 8)
6565     TEST_FIELD_SIZE  (SERIALKEYSA, lpszPort, 4)
6566     TEST_FIELD_ALIGN (SERIALKEYSA, lpszPort, 4)
6567     TEST_FIELD_OFFSET(SERIALKEYSA, lpszPort, 12)
6568     TEST_FIELD_SIZE  (SERIALKEYSA, iBaudRate, 4)
6569     TEST_FIELD_ALIGN (SERIALKEYSA, iBaudRate, 4)
6570     TEST_FIELD_OFFSET(SERIALKEYSA, iBaudRate, 16)
6571     TEST_FIELD_SIZE  (SERIALKEYSA, iPortState, 4)
6572     TEST_FIELD_ALIGN (SERIALKEYSA, iPortState, 4)
6573     TEST_FIELD_OFFSET(SERIALKEYSA, iPortState, 20)
6574     TEST_FIELD_SIZE  (SERIALKEYSA, iActive, 4)
6575     TEST_FIELD_ALIGN (SERIALKEYSA, iActive, 4)
6576     TEST_FIELD_OFFSET(SERIALKEYSA, iActive, 24)
6577 }
6578 
6579 static void test_pack_SERIALKEYSW(void)
6580 {
6581     /* SERIALKEYSW */
6582     TEST_TYPE_SIZE   (SERIALKEYSW, 28)
6583     TEST_TYPE_ALIGN  (SERIALKEYSW, 4)
6584     TEST_FIELD_SIZE  (SERIALKEYSW, cbSize, 4)
6585     TEST_FIELD_ALIGN (SERIALKEYSW, cbSize, 4)
6586     TEST_FIELD_OFFSET(SERIALKEYSW, cbSize, 0)
6587     TEST_FIELD_SIZE  (SERIALKEYSW, dwFlags, 4)
6588     TEST_FIELD_ALIGN (SERIALKEYSW, dwFlags, 4)
6589     TEST_FIELD_OFFSET(SERIALKEYSW, dwFlags, 4)
6590     TEST_FIELD_SIZE  (SERIALKEYSW, lpszActivePort, 4)
6591     TEST_FIELD_ALIGN (SERIALKEYSW, lpszActivePort, 4)
6592     TEST_FIELD_OFFSET(SERIALKEYSW, lpszActivePort, 8)
6593     TEST_FIELD_SIZE  (SERIALKEYSW, lpszPort, 4)
6594     TEST_FIELD_ALIGN (SERIALKEYSW, lpszPort, 4)
6595     TEST_FIELD_OFFSET(SERIALKEYSW, lpszPort, 12)
6596     TEST_FIELD_SIZE  (SERIALKEYSW, iBaudRate, 4)
6597     TEST_FIELD_ALIGN (SERIALKEYSW, iBaudRate, 4)
6598     TEST_FIELD_OFFSET(SERIALKEYSW, iBaudRate, 16)
6599     TEST_FIELD_SIZE  (SERIALKEYSW, iPortState, 4)
6600     TEST_FIELD_ALIGN (SERIALKEYSW, iPortState, 4)
6601     TEST_FIELD_OFFSET(SERIALKEYSW, iPortState, 20)
6602     TEST_FIELD_SIZE  (SERIALKEYSW, iActive, 4)
6603     TEST_FIELD_ALIGN (SERIALKEYSW, iActive, 4)
6604     TEST_FIELD_OFFSET(SERIALKEYSW, iActive, 24)
6605 }
6606 
6607 static void test_pack_SOUNDSENTRYA(void)
6608 {
6609     /* SOUNDSENTRYA */
6610     TEST_TYPE_SIZE   (SOUNDSENTRYA, 48)
6611     TEST_TYPE_ALIGN  (SOUNDSENTRYA, 4)
6612     TEST_FIELD_SIZE  (SOUNDSENTRYA, cbSize, 4)
6613     TEST_FIELD_ALIGN (SOUNDSENTRYA, cbSize, 4)
6614     TEST_FIELD_OFFSET(SOUNDSENTRYA, cbSize, 0)
6615     TEST_FIELD_SIZE  (SOUNDSENTRYA, dwFlags, 4)
6616     TEST_FIELD_ALIGN (SOUNDSENTRYA, dwFlags, 4)
6617     TEST_FIELD_OFFSET(SOUNDSENTRYA, dwFlags, 4)
6618     TEST_FIELD_SIZE  (SOUNDSENTRYA, iFSTextEffect, 4)
6619     TEST_FIELD_ALIGN (SOUNDSENTRYA, iFSTextEffect, 4)
6620     TEST_FIELD_OFFSET(SOUNDSENTRYA, iFSTextEffect, 8)
6621     TEST_FIELD_SIZE  (SOUNDSENTRYA, iFSTextEffectMSec, 4)
6622     TEST_FIELD_ALIGN (SOUNDSENTRYA, iFSTextEffectMSec, 4)
6623     TEST_FIELD_OFFSET(SOUNDSENTRYA, iFSTextEffectMSec, 12)
6624     TEST_FIELD_SIZE  (SOUNDSENTRYA, iFSTextEffectColorBits, 4)
6625     TEST_FIELD_ALIGN (SOUNDSENTRYA, iFSTextEffectColorBits, 4)
6626     TEST_FIELD_OFFSET(SOUNDSENTRYA, iFSTextEffectColorBits, 16)
6627     TEST_FIELD_SIZE  (SOUNDSENTRYA, iFSGrafEffect, 4)
6628     TEST_FIELD_ALIGN (SOUNDSENTRYA, iFSGrafEffect, 4)
6629     TEST_FIELD_OFFSET(SOUNDSENTRYA, iFSGrafEffect, 20)
6630     TEST_FIELD_SIZE  (SOUNDSENTRYA, iFSGrafEffectMSec, 4)
6631     TEST_FIELD_ALIGN (SOUNDSENTRYA, iFSGrafEffectMSec, 4)
6632     TEST_FIELD_OFFSET(SOUNDSENTRYA, iFSGrafEffectMSec, 24)
6633     TEST_FIELD_SIZE  (SOUNDSENTRYA, iFSGrafEffectColor, 4)
6634     TEST_FIELD_ALIGN (SOUNDSENTRYA, iFSGrafEffectColor, 4)
6635     TEST_FIELD_OFFSET(SOUNDSENTRYA, iFSGrafEffectColor, 28)
6636     TEST_FIELD_SIZE  (SOUNDSENTRYA, iWindowsEffect, 4)
6637     TEST_FIELD_ALIGN (SOUNDSENTRYA, iWindowsEffect, 4)
6638     TEST_FIELD_OFFSET(SOUNDSENTRYA, iWindowsEffect, 32)
6639     TEST_FIELD_SIZE  (SOUNDSENTRYA, iWindowsEffectMSec, 4)
6640     TEST_FIELD_ALIGN (SOUNDSENTRYA, iWindowsEffectMSec, 4)
6641     TEST_FIELD_OFFSET(SOUNDSENTRYA, iWindowsEffectMSec, 36)
6642     TEST_FIELD_SIZE  (SOUNDSENTRYA, lpszWindowsEffectDLL, 4)
6643     TEST_FIELD_ALIGN (SOUNDSENTRYA, lpszWindowsEffectDLL, 4)
6644     TEST_FIELD_OFFSET(SOUNDSENTRYA, lpszWindowsEffectDLL, 40)
6645     TEST_FIELD_SIZE  (SOUNDSENTRYA, iWindowsEffectOrdinal, 4)
6646     TEST_FIELD_ALIGN (SOUNDSENTRYA, iWindowsEffectOrdinal, 4)
6647     TEST_FIELD_OFFSET(SOUNDSENTRYA, iWindowsEffectOrdinal, 44)
6648 }
6649 
6650 static void test_pack_SOUNDSENTRYW(void)
6651 {
6652     /* SOUNDSENTRYW */
6653     TEST_TYPE_SIZE   (SOUNDSENTRYW, 48)
6654     TEST_TYPE_ALIGN  (SOUNDSENTRYW, 4)
6655     TEST_FIELD_SIZE  (SOUNDSENTRYW, cbSize, 4)
6656     TEST_FIELD_ALIGN (SOUNDSENTRYW, cbSize, 4)
6657     TEST_FIELD_OFFSET(SOUNDSENTRYW, cbSize, 0)
6658     TEST_FIELD_SIZE  (SOUNDSENTRYW, dwFlags, 4)
6659     TEST_FIELD_ALIGN (SOUNDSENTRYW, dwFlags, 4)
6660     TEST_FIELD_OFFSET(SOUNDSENTRYW, dwFlags, 4)
6661     TEST_FIELD_SIZE  (SOUNDSENTRYW, iFSTextEffect, 4)
6662     TEST_FIELD_ALIGN (SOUNDSENTRYW, iFSTextEffect, 4)
6663     TEST_FIELD_OFFSET(SOUNDSENTRYW, iFSTextEffect, 8)
6664     TEST_FIELD_SIZE  (SOUNDSENTRYW, iFSTextEffectMSec, 4)
6665     TEST_FIELD_ALIGN (SOUNDSENTRYW, iFSTextEffectMSec, 4)
6666     TEST_FIELD_OFFSET(SOUNDSENTRYW, iFSTextEffectMSec, 12)
6667     TEST_FIELD_SIZE  (SOUNDSENTRYW, iFSTextEffectColorBits, 4)
6668     TEST_FIELD_ALIGN (SOUNDSENTRYW, iFSTextEffectColorBits, 4)
6669     TEST_FIELD_OFFSET(SOUNDSENTRYW, iFSTextEffectColorBits, 16)
6670     TEST_FIELD_SIZE  (SOUNDSENTRYW, iFSGrafEffect, 4)
6671     TEST_FIELD_ALIGN (SOUNDSENTRYW, iFSGrafEffect, 4)
6672     TEST_FIELD_OFFSET(SOUNDSENTRYW, iFSGrafEffect, 20)
6673     TEST_FIELD_SIZE  (SOUNDSENTRYW, iFSGrafEffectMSec, 4)
6674     TEST_FIELD_ALIGN (SOUNDSENTRYW, iFSGrafEffectMSec, 4)
6675     TEST_FIELD_OFFSET(SOUNDSENTRYW, iFSGrafEffectMSec, 24)
6676     TEST_FIELD_SIZE  (SOUNDSENTRYW, iFSGrafEffectColor, 4)
6677     TEST_FIELD_ALIGN (SOUNDSENTRYW, iFSGrafEffectColor, 4)
6678     TEST_FIELD_OFFSET(SOUNDSENTRYW, iFSGrafEffectColor, 28)
6679     TEST_FIELD_SIZE  (SOUNDSENTRYW, iWindowsEffect, 4)
6680     TEST_FIELD_ALIGN (SOUNDSENTRYW, iWindowsEffect, 4)
6681     TEST_FIELD_OFFSET(SOUNDSENTRYW, iWindowsEffect, 32)
6682     TEST_FIELD_SIZE  (SOUNDSENTRYW, iWindowsEffectMSec, 4)
6683     TEST_FIELD_ALIGN (SOUNDSENTRYW, iWindowsEffectMSec, 4)
6684     TEST_FIELD_OFFSET(SOUNDSENTRYW, iWindowsEffectMSec, 36)
6685     TEST_FIELD_SIZE  (SOUNDSENTRYW, lpszWindowsEffectDLL, 4)
6686     TEST_FIELD_ALIGN (SOUNDSENTRYW, lpszWindowsEffectDLL, 4)
6687     TEST_FIELD_OFFSET(SOUNDSENTRYW, lpszWindowsEffectDLL, 40)
6688     TEST_FIELD_SIZE  (SOUNDSENTRYW, iWindowsEffectOrdinal, 4)
6689     TEST_FIELD_ALIGN (SOUNDSENTRYW, iWindowsEffectOrdinal, 4)
6690     TEST_FIELD_OFFSET(SOUNDSENTRYW, iWindowsEffectOrdinal, 44)
6691 }
6692 
6693 static void test_pack_STICKYKEYS(void)
6694 {
6695     /* STICKYKEYS */
6696     TEST_TYPE_SIZE   (STICKYKEYS, 8)
6697     TEST_TYPE_ALIGN  (STICKYKEYS, 4)
6698     TEST_FIELD_SIZE  (STICKYKEYS, cbSize, 4)
6699     TEST_FIELD_ALIGN (STICKYKEYS, cbSize, 4)
6700     TEST_FIELD_OFFSET(STICKYKEYS, cbSize, 0)
6701     TEST_FIELD_SIZE  (STICKYKEYS, dwFlags, 4)
6702     TEST_FIELD_ALIGN (STICKYKEYS, dwFlags, 4)
6703     TEST_FIELD_OFFSET(STICKYKEYS, dwFlags, 4)
6704 }
6705 
6706 static void test_pack_STYLESTRUCT(void)
6707 {
6708     /* STYLESTRUCT */
6709     TEST_TYPE_SIZE   (STYLESTRUCT, 8)
6710     TEST_TYPE_ALIGN  (STYLESTRUCT, 4)
6711     TEST_FIELD_SIZE  (STYLESTRUCT, styleOld, 4)
6712     TEST_FIELD_ALIGN (STYLESTRUCT, styleOld, 4)
6713     TEST_FIELD_OFFSET(STYLESTRUCT, styleOld, 0)
6714     TEST_FIELD_SIZE  (STYLESTRUCT, styleNew, 4)
6715     TEST_FIELD_ALIGN (STYLESTRUCT, styleNew, 4)
6716     TEST_FIELD_OFFSET(STYLESTRUCT, styleNew, 4)
6717 }
6718 
6719 static void test_pack_TIMERPROC(void)
6720 {
6721     /* TIMERPROC */
6722     TEST_TYPE_SIZE   (TIMERPROC, 4)
6723     TEST_TYPE_ALIGN  (TIMERPROC, 4)
6724 }
6725 
6726 static void test_pack_TITLEBARINFO(void)
6727 {
6728     /* TITLEBARINFO */
6729     TEST_TYPE_SIZE   (TITLEBARINFO, 44)
6730     TEST_TYPE_ALIGN  (TITLEBARINFO, 4)
6731     TEST_FIELD_SIZE  (TITLEBARINFO, cbSize, 4)
6732     TEST_FIELD_ALIGN (TITLEBARINFO, cbSize, 4)
6733     TEST_FIELD_OFFSET(TITLEBARINFO, cbSize, 0)
6734     TEST_FIELD_SIZE  (TITLEBARINFO, rcTitleBar, 16)
6735     TEST_FIELD_ALIGN (TITLEBARINFO, rcTitleBar, 4)
6736     TEST_FIELD_OFFSET(TITLEBARINFO, rcTitleBar, 4)
6737     TEST_FIELD_SIZE  (TITLEBARINFO, rgstate, 24)
6738     TEST_FIELD_ALIGN (TITLEBARINFO, rgstate, 4)
6739     TEST_FIELD_OFFSET(TITLEBARINFO, rgstate, 20)
6740 }
6741 
6742 static void test_pack_TOGGLEKEYS(void)
6743 {
6744     /* TOGGLEKEYS */
6745     TEST_TYPE_SIZE   (TOGGLEKEYS, 8)
6746     TEST_TYPE_ALIGN  (TOGGLEKEYS, 4)
6747     TEST_FIELD_SIZE  (TOGGLEKEYS, cbSize, 4)
6748     TEST_FIELD_ALIGN (TOGGLEKEYS, cbSize, 4)
6749     TEST_FIELD_OFFSET(TOGGLEKEYS, cbSize, 0)
6750     TEST_FIELD_SIZE  (TOGGLEKEYS, dwFlags, 4)
6751     TEST_FIELD_ALIGN (TOGGLEKEYS, dwFlags, 4)
6752     TEST_FIELD_OFFSET(TOGGLEKEYS, dwFlags, 4)
6753 }
6754 
6755 static void test_pack_TPMPARAMS(void)
6756 {
6757     /* TPMPARAMS */
6758     TEST_TYPE_SIZE   (TPMPARAMS, 20)
6759     TEST_TYPE_ALIGN  (TPMPARAMS, 4)
6760     TEST_FIELD_SIZE  (TPMPARAMS, cbSize, 4)
6761     TEST_FIELD_ALIGN (TPMPARAMS, cbSize, 4)
6762     TEST_FIELD_OFFSET(TPMPARAMS, cbSize, 0)
6763     TEST_FIELD_SIZE  (TPMPARAMS, rcExclude, 16)
6764     TEST_FIELD_ALIGN (TPMPARAMS, rcExclude, 4)
6765     TEST_FIELD_OFFSET(TPMPARAMS, rcExclude, 4)
6766 }
6767 
6768 static void test_pack_TRACKMOUSEEVENT(void)
6769 {
6770     /* TRACKMOUSEEVENT */
6771     TEST_TYPE_SIZE   (TRACKMOUSEEVENT, 16)
6772     TEST_TYPE_ALIGN  (TRACKMOUSEEVENT, 4)
6773     TEST_FIELD_SIZE  (TRACKMOUSEEVENT, cbSize, 4)
6774     TEST_FIELD_ALIGN (TRACKMOUSEEVENT, cbSize, 4)
6775     TEST_FIELD_OFFSET(TRACKMOUSEEVENT, cbSize, 0)
6776     TEST_FIELD_SIZE  (TRACKMOUSEEVENT, dwFlags, 4)
6777     TEST_FIELD_ALIGN (TRACKMOUSEEVENT, dwFlags, 4)
6778     TEST_FIELD_OFFSET(TRACKMOUSEEVENT, dwFlags, 4)
6779     TEST_FIELD_SIZE  (TRACKMOUSEEVENT, hwndTrack, 4)
6780     TEST_FIELD_ALIGN (TRACKMOUSEEVENT, hwndTrack, 4)
6781     TEST_FIELD_OFFSET(TRACKMOUSEEVENT, hwndTrack, 8)
6782     TEST_FIELD_SIZE  (TRACKMOUSEEVENT, dwHoverTime, 4)
6783     TEST_FIELD_ALIGN (TRACKMOUSEEVENT, dwHoverTime, 4)
6784     TEST_FIELD_OFFSET(TRACKMOUSEEVENT, dwHoverTime, 12)
6785 }
6786 
6787 static void test_pack_USEROBJECTFLAGS(void)
6788 {
6789     /* USEROBJECTFLAGS */
6790     TEST_TYPE_SIZE   (USEROBJECTFLAGS, 12)
6791     TEST_TYPE_ALIGN  (USEROBJECTFLAGS, 4)
6792     TEST_FIELD_SIZE  (USEROBJECTFLAGS, fInherit, 4)
6793     TEST_FIELD_ALIGN (USEROBJECTFLAGS, fInherit, 4)
6794     TEST_FIELD_OFFSET(USEROBJECTFLAGS, fInherit, 0)
6795     TEST_FIELD_SIZE  (USEROBJECTFLAGS, fReserved, 4)
6796     TEST_FIELD_ALIGN (USEROBJECTFLAGS, fReserved, 4)
6797     TEST_FIELD_OFFSET(USEROBJECTFLAGS, fReserved, 4)
6798     TEST_FIELD_SIZE  (USEROBJECTFLAGS, dwFlags, 4)
6799     TEST_FIELD_ALIGN (USEROBJECTFLAGS, dwFlags, 4)
6800     TEST_FIELD_OFFSET(USEROBJECTFLAGS, dwFlags, 8)
6801 }
6802 
6803 static void test_pack_WINDOWINFO(void)
6804 {
6805     /* WINDOWINFO */
6806     TEST_TYPE_SIZE   (WINDOWINFO, 60)
6807     TEST_TYPE_ALIGN  (WINDOWINFO, 4)
6808     TEST_FIELD_SIZE  (WINDOWINFO, cbSize, 4)
6809     TEST_FIELD_ALIGN (WINDOWINFO, cbSize, 4)
6810     TEST_FIELD_OFFSET(WINDOWINFO, cbSize, 0)
6811     TEST_FIELD_SIZE  (WINDOWINFO, rcWindow, 16)
6812     TEST_FIELD_ALIGN (WINDOWINFO, rcWindow, 4)
6813     TEST_FIELD_OFFSET(WINDOWINFO, rcWindow, 4)
6814     TEST_FIELD_SIZE  (WINDOWINFO, rcClient, 16)
6815     TEST_FIELD_ALIGN (WINDOWINFO, rcClient, 4)
6816     TEST_FIELD_OFFSET(WINDOWINFO, rcClient, 20)
6817     TEST_FIELD_SIZE  (WINDOWINFO, dwStyle, 4)
6818     TEST_FIELD_ALIGN (WINDOWINFO, dwStyle, 4)
6819     TEST_FIELD_OFFSET(WINDOWINFO, dwStyle, 36)
6820     TEST_FIELD_SIZE  (WINDOWINFO, dwExStyle, 4)
6821     TEST_FIELD_ALIGN (WINDOWINFO, dwExStyle, 4)
6822     TEST_FIELD_OFFSET(WINDOWINFO, dwExStyle, 40)
6823     TEST_FIELD_SIZE  (WINDOWINFO, dwWindowStatus, 4)
6824     TEST_FIELD_ALIGN (WINDOWINFO, dwWindowStatus, 4)
6825     TEST_FIELD_OFFSET(WINDOWINFO, dwWindowStatus, 44)
6826     TEST_FIELD_SIZE  (WINDOWINFO, cxWindowBorders, 4)
6827     TEST_FIELD_ALIGN (WINDOWINFO, cxWindowBorders, 4)
6828     TEST_FIELD_OFFSET(WINDOWINFO, cxWindowBorders, 48)
6829     TEST_FIELD_SIZE  (WINDOWINFO, cyWindowBorders, 4)
6830     TEST_FIELD_ALIGN (WINDOWINFO, cyWindowBorders, 4)
6831     TEST_FIELD_OFFSET(WINDOWINFO, cyWindowBorders, 52)
6832     TEST_FIELD_SIZE  (WINDOWINFO, atomWindowType, 2)
6833     TEST_FIELD_ALIGN (WINDOWINFO, atomWindowType, 2)
6834     TEST_FIELD_OFFSET(WINDOWINFO, atomWindowType, 56)
6835     TEST_FIELD_SIZE  (WINDOWINFO, wCreatorVersion, 2)
6836     TEST_FIELD_ALIGN (WINDOWINFO, wCreatorVersion, 2)
6837     TEST_FIELD_OFFSET(WINDOWINFO, wCreatorVersion, 58)
6838 }
6839 
6840 static void test_pack_WINDOWPLACEMENT(void)
6841 {
6842     /* WINDOWPLACEMENT */
6843     TEST_TYPE_SIZE   (WINDOWPLACEMENT, 44)
6844     TEST_TYPE_ALIGN  (WINDOWPLACEMENT, 4)
6845     TEST_FIELD_SIZE  (WINDOWPLACEMENT, length, 4)
6846     TEST_FIELD_ALIGN (WINDOWPLACEMENT, length, 4)
6847     TEST_FIELD_OFFSET(WINDOWPLACEMENT, length, 0)
6848     TEST_FIELD_SIZE  (WINDOWPLACEMENT, flags, 4)
6849     TEST_FIELD_ALIGN (WINDOWPLACEMENT, flags, 4)
6850     TEST_FIELD_OFFSET(WINDOWPLACEMENT, flags, 4)
6851     TEST_FIELD_SIZE  (WINDOWPLACEMENT, showCmd, 4)
6852     TEST_FIELD_ALIGN (WINDOWPLACEMENT, showCmd, 4)
6853     TEST_FIELD_OFFSET(WINDOWPLACEMENT, showCmd, 8)
6854     TEST_FIELD_SIZE  (WINDOWPLACEMENT, ptMinPosition, 8)
6855     TEST_FIELD_ALIGN (WINDOWPLACEMENT, ptMinPosition, 4)
6856     TEST_FIELD_OFFSET(WINDOWPLACEMENT, ptMinPosition, 12)
6857     TEST_FIELD_SIZE  (WINDOWPLACEMENT, ptMaxPosition, 8)
6858     TEST_FIELD_ALIGN (WINDOWPLACEMENT, ptMaxPosition, 4)
6859     TEST_FIELD_OFFSET(WINDOWPLACEMENT, ptMaxPosition, 20)
6860     TEST_FIELD_SIZE  (WINDOWPLACEMENT, rcNormalPosition, 16)
6861     TEST_FIELD_ALIGN (WINDOWPLACEMENT, rcNormalPosition, 4)
6862     TEST_FIELD_OFFSET(WINDOWPLACEMENT, rcNormalPosition, 28)
6863 }
6864 
6865 static void test_pack_WINDOWPOS(void)
6866 {
6867     /* WINDOWPOS */
6868     TEST_TYPE_SIZE   (WINDOWPOS, 28)
6869     TEST_TYPE_ALIGN  (WINDOWPOS, 4)
6870     TEST_FIELD_SIZE  (WINDOWPOS, hwnd, 4)
6871     TEST_FIELD_ALIGN (WINDOWPOS, hwnd, 4)
6872     TEST_FIELD_OFFSET(WINDOWPOS, hwnd, 0)
6873     TEST_FIELD_SIZE  (WINDOWPOS, hwndInsertAfter, 4)
6874     TEST_FIELD_ALIGN (WINDOWPOS, hwndInsertAfter, 4)
6875     TEST_FIELD_OFFSET(WINDOWPOS, hwndInsertAfter, 4)
6876     TEST_FIELD_SIZE  (WINDOWPOS, x, 4)
6877     TEST_FIELD_ALIGN (WINDOWPOS, x, 4)
6878     TEST_FIELD_OFFSET(WINDOWPOS, x, 8)
6879     TEST_FIELD_SIZE  (WINDOWPOS, y, 4)
6880     TEST_FIELD_ALIGN (WINDOWPOS, y, 4)
6881     TEST_FIELD_OFFSET(WINDOWPOS, y, 12)
6882     TEST_FIELD_SIZE  (WINDOWPOS, cx, 4)
6883     TEST_FIELD_ALIGN (WINDOWPOS, cx, 4)
6884     TEST_FIELD_OFFSET(WINDOWPOS, cx, 16)
6885     TEST_FIELD_SIZE  (WINDOWPOS, cy, 4)
6886     TEST_FIELD_ALIGN (WINDOWPOS, cy, 4)
6887     TEST_FIELD_OFFSET(WINDOWPOS, cy, 20)
6888     TEST_FIELD_SIZE  (WINDOWPOS, flags, 4)
6889     TEST_FIELD_ALIGN (WINDOWPOS, flags, 4)
6890     TEST_FIELD_OFFSET(WINDOWPOS, flags, 24)
6891 }
6892 
6893 static void test_pack_WINEVENTPROC(void)
6894 {
6895     /* WINEVENTPROC */
6896     TEST_TYPE_SIZE   (WINEVENTPROC, 4)
6897     TEST_TYPE_ALIGN  (WINEVENTPROC, 4)
6898 }
6899 
6900 static void test_pack_WINSTAENUMPROCA(void)
6901 {
6902     /* WINSTAENUMPROCA */
6903     TEST_TYPE_SIZE   (WINSTAENUMPROCA, 4)
6904     TEST_TYPE_ALIGN  (WINSTAENUMPROCA, 4)
6905 }
6906 
6907 static void test_pack_WINSTAENUMPROCW(void)
6908 {
6909     /* WINSTAENUMPROCW */
6910     TEST_TYPE_SIZE   (WINSTAENUMPROCW, 4)
6911     TEST_TYPE_ALIGN  (WINSTAENUMPROCW, 4)
6912 }
6913 
6914 static void test_pack_WNDCLASSA(void)
6915 {
6916     /* WNDCLASSA */
6917     TEST_TYPE_SIZE   (WNDCLASSA, 40)
6918     TEST_TYPE_ALIGN  (WNDCLASSA, 4)
6919     TEST_FIELD_SIZE  (WNDCLASSA, style, 4)
6920     TEST_FIELD_ALIGN (WNDCLASSA, style, 4)
6921     TEST_FIELD_OFFSET(WNDCLASSA, style, 0)
6922     TEST_FIELD_SIZE  (WNDCLASSA, lpfnWndProc, 4)
6923     TEST_FIELD_ALIGN (WNDCLASSA, lpfnWndProc, 4)
6924     TEST_FIELD_OFFSET(WNDCLASSA, lpfnWndProc, 4)
6925     TEST_FIELD_SIZE  (WNDCLASSA, cbClsExtra, 4)
6926     TEST_FIELD_ALIGN (WNDCLASSA, cbClsExtra, 4)
6927     TEST_FIELD_OFFSET(WNDCLASSA, cbClsExtra, 8)
6928     TEST_FIELD_SIZE  (WNDCLASSA, cbWndExtra, 4)
6929     TEST_FIELD_ALIGN (WNDCLASSA, cbWndExtra, 4)
6930     TEST_FIELD_OFFSET(WNDCLASSA, cbWndExtra, 12)
6931     TEST_FIELD_SIZE  (WNDCLASSA, hInstance, 4)
6932     TEST_FIELD_ALIGN (WNDCLASSA, hInstance, 4)
6933     TEST_FIELD_OFFSET(WNDCLASSA, hInstance, 16)
6934     TEST_FIELD_SIZE  (WNDCLASSA, hIcon, 4)
6935     TEST_FIELD_ALIGN (WNDCLASSA, hIcon, 4)
6936     TEST_FIELD_OFFSET(WNDCLASSA, hIcon, 20)
6937     TEST_FIELD_SIZE  (WNDCLASSA, hCursor, 4)
6938     TEST_FIELD_ALIGN (WNDCLASSA, hCursor, 4)
6939     TEST_FIELD_OFFSET(WNDCLASSA, hCursor, 24)
6940     TEST_FIELD_SIZE  (WNDCLASSA, hbrBackground, 4)
6941     TEST_FIELD_ALIGN (WNDCLASSA, hbrBackground, 4)
6942     TEST_FIELD_OFFSET(WNDCLASSA, hbrBackground, 28)
6943     TEST_FIELD_SIZE  (WNDCLASSA, lpszMenuName, 4)
6944     TEST_FIELD_ALIGN (WNDCLASSA, lpszMenuName, 4)
6945     TEST_FIELD_OFFSET(WNDCLASSA, lpszMenuName, 32)
6946     TEST_FIELD_SIZE  (WNDCLASSA, lpszClassName, 4)
6947     TEST_FIELD_ALIGN (WNDCLASSA, lpszClassName, 4)
6948     TEST_FIELD_OFFSET(WNDCLASSA, lpszClassName, 36)
6949 }
6950 
6951 static void test_pack_WNDCLASSEXA(void)
6952 {
6953     /* WNDCLASSEXA */
6954     TEST_TYPE_SIZE   (WNDCLASSEXA, 48)
6955     TEST_TYPE_ALIGN  (WNDCLASSEXA, 4)
6956     TEST_FIELD_SIZE  (WNDCLASSEXA, cbSize, 4)
6957     TEST_FIELD_ALIGN (WNDCLASSEXA, cbSize, 4)
6958     TEST_FIELD_OFFSET(WNDCLASSEXA, cbSize, 0)
6959     TEST_FIELD_SIZE  (WNDCLASSEXA, style, 4)
6960     TEST_FIELD_ALIGN (WNDCLASSEXA, style, 4)
6961     TEST_FIELD_OFFSET(WNDCLASSEXA, style, 4)
6962     TEST_FIELD_SIZE  (WNDCLASSEXA, lpfnWndProc, 4)
6963     TEST_FIELD_ALIGN (WNDCLASSEXA, lpfnWndProc, 4)
6964     TEST_FIELD_OFFSET(WNDCLASSEXA, lpfnWndProc, 8)
6965     TEST_FIELD_SIZE  (WNDCLASSEXA, cbClsExtra, 4)
6966     TEST_FIELD_ALIGN (WNDCLASSEXA, cbClsExtra, 4)
6967     TEST_FIELD_OFFSET(WNDCLASSEXA, cbClsExtra, 12)
6968     TEST_FIELD_SIZE  (WNDCLASSEXA, cbWndExtra, 4)
6969     TEST_FIELD_ALIGN (WNDCLASSEXA, cbWndExtra, 4)
6970     TEST_FIELD_OFFSET(WNDCLASSEXA, cbWndExtra, 16)
6971     TEST_FIELD_SIZE  (WNDCLASSEXA, hInstance, 4)
6972     TEST_FIELD_ALIGN (WNDCLASSEXA, hInstance, 4)
6973     TEST_FIELD_OFFSET(WNDCLASSEXA, hInstance, 20)
6974     TEST_FIELD_SIZE  (WNDCLASSEXA, hIcon, 4)
6975     TEST_FIELD_ALIGN (WNDCLASSEXA, hIcon, 4)
6976     TEST_FIELD_OFFSET(WNDCLASSEXA, hIcon, 24)
6977     TEST_FIELD_SIZE  (WNDCLASSEXA, hCursor, 4)
6978     TEST_FIELD_ALIGN (WNDCLASSEXA, hCursor, 4)
6979     TEST_FIELD_OFFSET(WNDCLASSEXA, hCursor, 28)
6980     TEST_FIELD_SIZE  (WNDCLASSEXA, hbrBackground, 4)
6981     TEST_FIELD_ALIGN (WNDCLASSEXA, hbrBackground, 4)
6982     TEST_FIELD_OFFSET(WNDCLASSEXA, hbrBackground, 32)
6983     TEST_FIELD_SIZE  (WNDCLASSEXA, lpszMenuName, 4)
6984     TEST_FIELD_ALIGN (WNDCLASSEXA, lpszMenuName, 4)
6985     TEST_FIELD_OFFSET(WNDCLASSEXA, lpszMenuName, 36)
6986     TEST_FIELD_SIZE  (WNDCLASSEXA, lpszClassName, 4)
6987     TEST_FIELD_ALIGN (WNDCLASSEXA, lpszClassName, 4)
6988     TEST_FIELD_OFFSET(WNDCLASSEXA, lpszClassName, 40)
6989     TEST_FIELD_SIZE  (WNDCLASSEXA, hIconSm, 4)
6990     TEST_FIELD_ALIGN (WNDCLASSEXA, hIconSm, 4)
6991     TEST_FIELD_OFFSET(WNDCLASSEXA, hIconSm, 44)
6992 }
6993 
6994 static void test_pack_WNDCLASSEXW(void)
6995 {
6996     /* WNDCLASSEXW */
6997     TEST_TYPE_SIZE   (WNDCLASSEXW, 48)
6998     TEST_TYPE_ALIGN  (WNDCLASSEXW, 4)
6999     TEST_FIELD_SIZE  (WNDCLASSEXW, cbSize, 4)
7000     TEST_FIELD_ALIGN (WNDCLASSEXW, cbSize, 4)
7001     TEST_FIELD_OFFSET(WNDCLASSEXW, cbSize, 0)
7002     TEST_FIELD_SIZE  (WNDCLASSEXW, style, 4)
7003     TEST_FIELD_ALIGN (WNDCLASSEXW, style, 4)
7004     TEST_FIELD_OFFSET(WNDCLASSEXW, style, 4)
7005     TEST_FIELD_SIZE  (WNDCLASSEXW, lpfnWndProc, 4)
7006     TEST_FIELD_ALIGN (WNDCLASSEXW, lpfnWndProc, 4)
7007     TEST_FIELD_OFFSET(WNDCLASSEXW, lpfnWndProc, 8)
7008     TEST_FIELD_SIZE  (WNDCLASSEXW, cbClsExtra, 4)
7009     TEST_FIELD_ALIGN (WNDCLASSEXW, cbClsExtra, 4)
7010     TEST_FIELD_OFFSET(WNDCLASSEXW, cbClsExtra, 12)
7011     TEST_FIELD_SIZE  (WNDCLASSEXW, cbWndExtra, 4)
7012     TEST_FIELD_ALIGN (WNDCLASSEXW, cbWndExtra, 4)
7013     TEST_FIELD_OFFSET(WNDCLASSEXW, cbWndExtra, 16)
7014     TEST_FIELD_SIZE  (WNDCLASSEXW, hInstance, 4)
7015     TEST_FIELD_ALIGN (WNDCLASSEXW, hInstance, 4)
7016     TEST_FIELD_OFFSET(WNDCLASSEXW, hInstance, 20)
7017     TEST_FIELD_SIZE  (WNDCLASSEXW, hIcon, 4)
7018     TEST_FIELD_ALIGN (WNDCLASSEXW, hIcon, 4)
7019     TEST_FIELD_OFFSET(WNDCLASSEXW, hIcon, 24)
7020     TEST_FIELD_SIZE  (WNDCLASSEXW, hCursor, 4)
7021     TEST_FIELD_ALIGN (WNDCLASSEXW, hCursor, 4)
7022     TEST_FIELD_OFFSET(WNDCLASSEXW, hCursor, 28)
7023     TEST_FIELD_SIZE  (WNDCLASSEXW, hbrBackground, 4)
7024     TEST_FIELD_ALIGN (WNDCLASSEXW, hbrBackground, 4)
7025     TEST_FIELD_OFFSET(WNDCLASSEXW, hbrBackground, 32)
7026     TEST_FIELD_SIZE  (WNDCLASSEXW, lpszMenuName, 4)
7027     TEST_FIELD_ALIGN (WNDCLASSEXW, lpszMenuName, 4)
7028     TEST_FIELD_OFFSET(WNDCLASSEXW, lpszMenuName, 36)
7029     TEST_FIELD_SIZE  (WNDCLASSEXW, lpszClassName, 4)
7030     TEST_FIELD_ALIGN (WNDCLASSEXW, lpszClassName, 4)
7031     TEST_FIELD_OFFSET(WNDCLASSEXW, lpszClassName, 40)
7032     TEST_FIELD_SIZE  (WNDCLASSEXW, hIconSm, 4)
7033     TEST_FIELD_ALIGN (WNDCLASSEXW, hIconSm, 4)
7034     TEST_FIELD_OFFSET(WNDCLASSEXW, hIconSm, 44)
7035 }
7036 
7037 static void test_pack_WNDCLASSW(void)
7038 {
7039     /* WNDCLASSW */
7040     TEST_TYPE_SIZE   (WNDCLASSW, 40)
7041     TEST_TYPE_ALIGN  (WNDCLASSW, 4)
7042     TEST_FIELD_SIZE  (WNDCLASSW, style, 4)
7043     TEST_FIELD_ALIGN (WNDCLASSW, style, 4)
7044     TEST_FIELD_OFFSET(WNDCLASSW, style, 0)
7045     TEST_FIELD_SIZE  (WNDCLASSW, lpfnWndProc, 4)
7046     TEST_FIELD_ALIGN (WNDCLASSW, lpfnWndProc, 4)
7047     TEST_FIELD_OFFSET(WNDCLASSW, lpfnWndProc, 4)
7048     TEST_FIELD_SIZE  (WNDCLASSW, cbClsExtra, 4)
7049     TEST_FIELD_ALIGN (WNDCLASSW, cbClsExtra, 4)
7050     TEST_FIELD_OFFSET(WNDCLASSW, cbClsExtra, 8)
7051     TEST_FIELD_SIZE  (WNDCLASSW, cbWndExtra, 4)
7052     TEST_FIELD_ALIGN (WNDCLASSW, cbWndExtra, 4)
7053     TEST_FIELD_OFFSET(WNDCLASSW, cbWndExtra, 12)
7054     TEST_FIELD_SIZE  (WNDCLASSW, hInstance, 4)
7055     TEST_FIELD_ALIGN (WNDCLASSW, hInstance, 4)
7056     TEST_FIELD_OFFSET(WNDCLASSW, hInstance, 16)
7057     TEST_FIELD_SIZE  (WNDCLASSW, hIcon, 4)
7058     TEST_FIELD_ALIGN (WNDCLASSW, hIcon, 4)
7059     TEST_FIELD_OFFSET(WNDCLASSW, hIcon, 20)
7060     TEST_FIELD_SIZE  (WNDCLASSW, hCursor, 4)
7061     TEST_FIELD_ALIGN (WNDCLASSW, hCursor, 4)
7062     TEST_FIELD_OFFSET(WNDCLASSW, hCursor, 24)
7063     TEST_FIELD_SIZE  (WNDCLASSW, hbrBackground, 4)
7064     TEST_FIELD_ALIGN (WNDCLASSW, hbrBackground, 4)
7065     TEST_FIELD_OFFSET(WNDCLASSW, hbrBackground, 28)
7066     TEST_FIELD_SIZE  (WNDCLASSW, lpszMenuName, 4)
7067     TEST_FIELD_ALIGN (WNDCLASSW, lpszMenuName, 4)
7068     TEST_FIELD_OFFSET(WNDCLASSW, lpszMenuName, 32)
7069     TEST_FIELD_SIZE  (WNDCLASSW, lpszClassName, 4)
7070     TEST_FIELD_ALIGN (WNDCLASSW, lpszClassName, 4)
7071     TEST_FIELD_OFFSET(WNDCLASSW, lpszClassName, 36)
7072 }
7073 
7074 static void test_pack_WNDENUMPROC(void)
7075 {
7076     /* WNDENUMPROC */
7077     TEST_TYPE_SIZE   (WNDENUMPROC, 4)
7078     TEST_TYPE_ALIGN  (WNDENUMPROC, 4)
7079 }
7080 
7081 static void test_pack_WNDPROC(void)
7082 {
7083     /* WNDPROC */
7084     TEST_TYPE_SIZE   (WNDPROC, 4)
7085     TEST_TYPE_ALIGN  (WNDPROC, 4)
7086 }
7087 
7088 #endif /* _WIN64 */
7089 
7090 static void test_pack(void)
7091 {
7092     test_pack_ACCESSTIMEOUT();
7093     test_pack_ANIMATIONINFO();
7094     test_pack_CBTACTIVATESTRUCT();
7095     test_pack_CBT_CREATEWNDA();
7096     test_pack_CBT_CREATEWNDW();
7097     test_pack_CLIENTCREATESTRUCT();
7098     test_pack_COMBOBOXINFO();
7099     test_pack_COMPAREITEMSTRUCT();
7100     test_pack_COPYDATASTRUCT();
7101     test_pack_CREATESTRUCTA();
7102     test_pack_CREATESTRUCTW();
7103     test_pack_CURSORINFO();
7104     test_pack_CWPRETSTRUCT();
7105     test_pack_CWPSTRUCT();
7106     test_pack_DEBUGHOOKINFO();
7107     test_pack_DELETEITEMSTRUCT();
7108     test_pack_DESKTOPENUMPROCA();
7109     test_pack_DESKTOPENUMPROCW();
7110     test_pack_DLGITEMTEMPLATE();
7111     test_pack_DLGPROC();
7112     test_pack_DLGTEMPLATE();
7113     test_pack_DRAWITEMSTRUCT();
7114     test_pack_DRAWSTATEPROC();
7115     test_pack_DRAWTEXTPARAMS();
7116     test_pack_EDITWORDBREAKPROCA();
7117     test_pack_EDITWORDBREAKPROCW();
7118     test_pack_EVENTMSG();
7119     test_pack_FILTERKEYS();
7120     test_pack_FLASHWINFO();
7121     test_pack_GRAYSTRINGPROC();
7122     test_pack_GUITHREADINFO();
7123     test_pack_HARDWAREHOOKSTRUCT();
7124     test_pack_HARDWAREINPUT();
7125     test_pack_HDEVNOTIFY();
7126     test_pack_HDWP();
7127     test_pack_HELPINFO();
7128     test_pack_HELPWININFOA();
7129     test_pack_HELPWININFOW();
7130     test_pack_HIGHCONTRASTA();
7131     test_pack_HIGHCONTRASTW();
7132     test_pack_HOOKPROC();
7133     test_pack_ICONINFO();
7134     test_pack_ICONMETRICSA();
7135     test_pack_ICONMETRICSW();
7136     test_pack_INPUT();
7137     test_pack_KBDLLHOOKSTRUCT();
7138     test_pack_KEYBDINPUT();
7139     test_pack_LPACCESSTIMEOUT();
7140     test_pack_LPANIMATIONINFO();
7141     test_pack_LPCBTACTIVATESTRUCT();
7142     test_pack_LPCBT_CREATEWNDA();
7143     test_pack_LPCBT_CREATEWNDW();
7144     test_pack_LPCDLGTEMPLATEA();
7145     test_pack_LPCDLGTEMPLATEW();
7146     test_pack_LPCLIENTCREATESTRUCT();
7147     test_pack_LPCMENUINFO();
7148     test_pack_LPCMENUITEMINFOA();
7149     test_pack_LPCMENUITEMINFOW();
7150     test_pack_LPCOMBOBOXINFO();
7151     test_pack_LPCOMPAREITEMSTRUCT();
7152     test_pack_LPCREATESTRUCTA();
7153     test_pack_LPCREATESTRUCTW();
7154     test_pack_LPCSCROLLINFO();
7155     test_pack_LPCURSORINFO();
7156     test_pack_LPCWPRETSTRUCT();
7157     test_pack_LPCWPSTRUCT();
7158     test_pack_LPDEBUGHOOKINFO();
7159     test_pack_LPDELETEITEMSTRUCT();
7160     test_pack_LPDLGITEMTEMPLATEA();
7161     test_pack_LPDLGITEMTEMPLATEW();
7162     test_pack_LPDLGTEMPLATEA();
7163     test_pack_LPDLGTEMPLATEW();
7164     test_pack_LPDRAWITEMSTRUCT();
7165     test_pack_LPDRAWTEXTPARAMS();
7166     test_pack_LPEVENTMSG();
7167     test_pack_LPFILTERKEYS();
7168     test_pack_LPGUITHREADINFO();
7169     test_pack_LPHARDWAREHOOKSTRUCT();
7170     test_pack_LPHARDWAREINPUT();
7171     test_pack_LPHELPINFO();
7172     test_pack_LPHELPWININFOA();
7173     test_pack_LPHELPWININFOW();
7174     test_pack_LPHIGHCONTRASTA();
7175     test_pack_LPHIGHCONTRASTW();
7176     test_pack_LPICONMETRICSA();
7177     test_pack_LPICONMETRICSW();
7178     test_pack_LPINPUT();
7179     test_pack_LPKBDLLHOOKSTRUCT();
7180     test_pack_LPKEYBDINPUT();
7181     test_pack_LPMDICREATESTRUCTA();
7182     test_pack_LPMDICREATESTRUCTW();
7183     test_pack_LPMDINEXTMENU();
7184     test_pack_LPMEASUREITEMSTRUCT();
7185     test_pack_LPMENUINFO();
7186     test_pack_LPMENUITEMINFOA();
7187     test_pack_LPMENUITEMINFOW();
7188     test_pack_LPMINIMIZEDMETRICS();
7189     test_pack_LPMINMAXINFO();
7190     test_pack_LPMONITORINFO();
7191     test_pack_LPMONITORINFOEXA();
7192     test_pack_LPMONITORINFOEXW();
7193     test_pack_LPMOUSEHOOKSTRUCT();
7194     test_pack_LPMOUSEINPUT();
7195     test_pack_LPMOUSEKEYS();
7196     test_pack_LPMSG();
7197     test_pack_LPMSGBOXPARAMSA();
7198     test_pack_LPMSGBOXPARAMSW();
7199     test_pack_LPMSLLHOOKSTRUCT();
7200     test_pack_LPMULTIKEYHELPA();
7201     test_pack_LPMULTIKEYHELPW();
7202     test_pack_LPNCCALCSIZE_PARAMS();
7203     test_pack_LPNMHDR();
7204     test_pack_LPNONCLIENTMETRICSA();
7205     test_pack_LPNONCLIENTMETRICSW();
7206     test_pack_LPPAINTSTRUCT();
7207     test_pack_LPSCROLLINFO();
7208     test_pack_LPSERIALKEYSA();
7209     test_pack_LPSERIALKEYSW();
7210     test_pack_LPSOUNDSENTRYA();
7211     test_pack_LPSOUNDSENTRYW();
7212     test_pack_LPSTICKYKEYS();
7213     test_pack_LPSTYLESTRUCT();
7214     test_pack_LPTITLEBARINFO();
7215     test_pack_LPTOGGLEKEYS();
7216     test_pack_LPTPMPARAMS();
7217     test_pack_LPTRACKMOUSEEVENT();
7218     test_pack_LPWINDOWINFO();
7219     test_pack_LPWINDOWPLACEMENT();
7220     test_pack_LPWINDOWPOS();
7221     test_pack_LPWNDCLASSA();
7222     test_pack_LPWNDCLASSEXA();
7223     test_pack_LPWNDCLASSEXW();
7224     test_pack_LPWNDCLASSW();
7225     test_pack_MDICREATESTRUCTA();
7226     test_pack_MDICREATESTRUCTW();
7227     test_pack_MDINEXTMENU();
7228     test_pack_MEASUREITEMSTRUCT();
7229     test_pack_MENUINFO();
7230     test_pack_MENUITEMINFOA();
7231     test_pack_MENUITEMINFOW();
7232     test_pack_MENUITEMTEMPLATE();
7233     test_pack_MENUITEMTEMPLATEHEADER();
7234     test_pack_MINIMIZEDMETRICS();
7235     test_pack_MINMAXINFO();
7236     test_pack_MONITORENUMPROC();
7237     test_pack_MONITORINFO();
7238     test_pack_MONITORINFOEXA();
7239     test_pack_MONITORINFOEXW();
7240     test_pack_MOUSEHOOKSTRUCT();
7241     test_pack_MOUSEINPUT();
7242     test_pack_MOUSEKEYS();
7243     test_pack_MSG();
7244     test_pack_MSGBOXCALLBACK();
7245     test_pack_MSGBOXPARAMSA();
7246     test_pack_MSGBOXPARAMSW();
7247     test_pack_MSLLHOOKSTRUCT();
7248     test_pack_MULTIKEYHELPA();
7249     test_pack_MULTIKEYHELPW();
7250     test_pack_NAMEENUMPROCA();
7251     test_pack_NAMEENUMPROCW();
7252     test_pack_NCCALCSIZE_PARAMS();
7253     test_pack_NMHDR();
7254     test_pack_NONCLIENTMETRICSA();
7255     test_pack_NONCLIENTMETRICSW();
7256     test_pack_PAINTSTRUCT();
7257     test_pack_PCOMBOBOXINFO();
7258     test_pack_PCOMPAREITEMSTRUCT();
7259     test_pack_PCOPYDATASTRUCT();
7260     test_pack_PCURSORINFO();
7261     test_pack_PCWPRETSTRUCT();
7262     test_pack_PCWPSTRUCT();
7263     test_pack_PDEBUGHOOKINFO();
7264     test_pack_PDELETEITEMSTRUCT();
7265     test_pack_PDLGITEMTEMPLATEA();
7266     test_pack_PDLGITEMTEMPLATEW();
7267     test_pack_PDRAWITEMSTRUCT();
7268     test_pack_PEVENTMSG();
7269     test_pack_PFLASHWINFO();
7270     test_pack_PGUITHREADINFO();
7271     test_pack_PHARDWAREHOOKSTRUCT();
7272     test_pack_PHARDWAREINPUT();
7273     test_pack_PHDEVNOTIFY();
7274     test_pack_PHELPWININFOA();
7275     test_pack_PHELPWININFOW();
7276     test_pack_PICONINFO();
7277     test_pack_PICONMETRICSA();
7278     test_pack_PICONMETRICSW();
7279     test_pack_PINPUT();
7280     test_pack_PKBDLLHOOKSTRUCT();
7281     test_pack_PKEYBDINPUT();
7282     test_pack_PMDINEXTMENU();
7283     test_pack_PMEASUREITEMSTRUCT();
7284     test_pack_PMENUITEMTEMPLATE();
7285     test_pack_PMENUITEMTEMPLATEHEADER();
7286     test_pack_PMINIMIZEDMETRICS();
7287     test_pack_PMINMAXINFO();
7288     test_pack_PMOUSEHOOKSTRUCT();
7289     test_pack_PMOUSEINPUT();
7290     test_pack_PMSG();
7291     test_pack_PMSGBOXPARAMSA();
7292     test_pack_PMSGBOXPARAMSW();
7293     test_pack_PMSLLHOOKSTRUCT();
7294     test_pack_PMULTIKEYHELPA();
7295     test_pack_PMULTIKEYHELPW();
7296     test_pack_PNONCLIENTMETRICSA();
7297     test_pack_PNONCLIENTMETRICSW();
7298     test_pack_PPAINTSTRUCT();
7299     test_pack_PROPENUMPROCA();
7300     test_pack_PROPENUMPROCEXA();
7301     test_pack_PROPENUMPROCEXW();
7302     test_pack_PROPENUMPROCW();
7303     test_pack_PTITLEBARINFO();
7304     test_pack_PUSEROBJECTFLAGS();
7305     test_pack_PWINDOWINFO();
7306     test_pack_PWINDOWPLACEMENT();
7307     test_pack_PWINDOWPOS();
7308     test_pack_PWNDCLASSA();
7309     test_pack_PWNDCLASSEXA();
7310     test_pack_PWNDCLASSEXW();
7311     test_pack_PWNDCLASSW();
7312     test_pack_SCROLLINFO();
7313     test_pack_SENDASYNCPROC();
7314     test_pack_SERIALKEYSA();
7315     test_pack_SERIALKEYSW();
7316     test_pack_SOUNDSENTRYA();
7317     test_pack_SOUNDSENTRYW();
7318     test_pack_STICKYKEYS();
7319     test_pack_STYLESTRUCT();
7320     test_pack_TIMERPROC();
7321     test_pack_TITLEBARINFO();
7322     test_pack_TOGGLEKEYS();
7323     test_pack_TPMPARAMS();
7324     test_pack_TRACKMOUSEEVENT();
7325     test_pack_USEROBJECTFLAGS();
7326     test_pack_WINDOWINFO();
7327     test_pack_WINDOWPLACEMENT();
7328     test_pack_WINDOWPOS();
7329     test_pack_WINEVENTPROC();
7330     test_pack_WINSTAENUMPROCA();
7331     test_pack_WINSTAENUMPROCW();
7332     test_pack_WNDCLASSA();
7333     test_pack_WNDCLASSEXA();
7334     test_pack_WNDCLASSEXW();
7335     test_pack_WNDCLASSW();
7336     test_pack_WNDENUMPROC();
7337     test_pack_WNDPROC();
7338 }
7339 
7340 START_TEST(generated)
7341 {
7342     test_pack();
7343 }
7344