ReactOS  0.4.13-dev-651-g5dbc677
generated.c
Go to the documentation of this file.
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 */
87  TEST_FIELD_SIZE (ACCESSTIMEOUT, cbSize, 4)
88  TEST_FIELD_ALIGN (ACCESSTIMEOUT, cbSize, 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 */
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 */
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 */
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 */
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 */
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 */
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 */
196  TEST_FIELD_SIZE (COMPAREITEMSTRUCT, CtlType, 4)
197  TEST_FIELD_ALIGN (COMPAREITEMSTRUCT, CtlType, 4)
202  TEST_FIELD_SIZE (COMPAREITEMSTRUCT, hwndItem, 8)
203  TEST_FIELD_ALIGN (COMPAREITEMSTRUCT, hwndItem, 8)
205  TEST_FIELD_SIZE (COMPAREITEMSTRUCT, itemID1, 4)
206  TEST_FIELD_ALIGN (COMPAREITEMSTRUCT, itemID1, 4)
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)
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 */
230  TEST_FIELD_SIZE (COPYDATASTRUCT, cbData, 4)
231  TEST_FIELD_ALIGN (COPYDATASTRUCT, cbData, 4)
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 */
243  TEST_FIELD_SIZE (CREATESTRUCTA, lpCreateParams, 8)
244  TEST_FIELD_ALIGN (CREATESTRUCTA, lpCreateParams, 8)
245  TEST_FIELD_OFFSET(CREATESTRUCTA, lpCreateParams, 0)
249  TEST_FIELD_SIZE (CREATESTRUCTA, hMenu, 8)
250  TEST_FIELD_ALIGN (CREATESTRUCTA, hMenu, 8)
251  TEST_FIELD_OFFSET(CREATESTRUCTA, hMenu, 16)
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 */
286  TEST_FIELD_SIZE (CREATESTRUCTW, lpCreateParams, 8)
287  TEST_FIELD_ALIGN (CREATESTRUCTW, lpCreateParams, 8)
288  TEST_FIELD_OFFSET(CREATESTRUCTW, lpCreateParams, 0)
292  TEST_FIELD_SIZE (CREATESTRUCTW, hMenu, 8)
293  TEST_FIELD_ALIGN (CREATESTRUCTW, hMenu, 8)
294  TEST_FIELD_OFFSET(CREATESTRUCTW, hMenu, 16)
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 */
329  TEST_FIELD_SIZE (CURSORINFO, cbSize, 4)
330  TEST_FIELD_ALIGN (CURSORINFO, cbSize, 4)
331  TEST_FIELD_OFFSET(CURSORINFO, cbSize, 0)
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 */
348  TEST_FIELD_SIZE (CWPRETSTRUCT, lResult, 8)
349  TEST_FIELD_ALIGN (CWPRETSTRUCT, lResult, 8)
350  TEST_FIELD_OFFSET(CWPRETSTRUCT, lResult, 0)
363 }
364 
365 static void test_pack_CWPSTRUCT(void)
366 {
367  /* CWPSTRUCT */
382 }
383 
384 static void test_pack_DEBUGHOOKINFO(void)
385 {
386  /* DEBUGHOOKINFO */
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)
404 }
405 
406 static void test_pack_DELETEITEMSTRUCT(void)
407 {
408  /* DELETEITEMSTRUCT */
411  TEST_FIELD_SIZE (DELETEITEMSTRUCT, CtlType, 4)
412  TEST_FIELD_ALIGN (DELETEITEMSTRUCT, CtlType, 4)
417  TEST_FIELD_SIZE (DELETEITEMSTRUCT, itemID, 4)
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 */
433 }
434 
435 static void test_pack_DESKTOPENUMPROCW(void)
436 {
437  /* DESKTOPENUMPROCW */
440 }
441 
442 static void test_pack_DLGITEMTEMPLATE(void)
443 {
444  /* DLGITEMTEMPLATE (pack 2) */
450  TEST_FIELD_SIZE (DLGITEMTEMPLATE, dwExtendedStyle, 4)
451  TEST_FIELD_ALIGN (DLGITEMTEMPLATE, dwExtendedStyle, 2)
452  TEST_FIELD_OFFSET(DLGITEMTEMPLATE, dwExtendedStyle, 4)
468 }
469 
470 static void test_pack_DLGPROC(void)
471 {
472  /* DLGPROC */
475 }
476 
477 static void test_pack_DLGTEMPLATE(void)
478 {
479  /* DLGTEMPLATE (pack 2) */
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)
503 }
504 
505 static void test_pack_DRAWITEMSTRUCT(void)
506 {
507  /* DRAWITEMSTRUCT */
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)
516  TEST_FIELD_SIZE (DRAWITEMSTRUCT, itemID, 4)
517  TEST_FIELD_ALIGN (DRAWITEMSTRUCT, itemID, 4)
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)
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 */
544 }
545 
546 static void test_pack_DRAWTEXTPARAMS(void)
547 {
548  /* DRAWTEXTPARAMS */
551  TEST_FIELD_SIZE (DRAWTEXTPARAMS, cbSize, 4)
552  TEST_FIELD_ALIGN (DRAWTEXTPARAMS, cbSize, 4)
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 */
573 }
574 
575 static void test_pack_EDITWORDBREAKPROCW(void)
576 {
577  /* EDITWORDBREAKPROCW */
580 }
581 
582 static void test_pack_EVENTMSG(void)
583 {
584  /* EVENTMSG */
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)
602 }
603 
604 static void test_pack_FILTERKEYS(void)
605 {
606  /* FILTERKEYS */
609  TEST_FIELD_SIZE (FILTERKEYS, cbSize, 4)
610  TEST_FIELD_ALIGN (FILTERKEYS, cbSize, 4)
611  TEST_FIELD_OFFSET(FILTERKEYS, cbSize, 0)
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 */
656 }
657 
658 static void test_pack_GUITHREADINFO(void)
659 {
660  /* GUITHREADINFO */
663  TEST_FIELD_SIZE (GUITHREADINFO, cbSize, 4)
664  TEST_FIELD_ALIGN (GUITHREADINFO, cbSize, 4)
665  TEST_FIELD_OFFSET(GUITHREADINFO, cbSize, 0)
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 */
709 }
710 
711 static void test_pack_HARDWAREINPUT(void)
712 {
713  /* HARDWAREINPUT */
716  TEST_FIELD_SIZE (HARDWAREINPUT, uMsg, 4)
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 */
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 */
771  TEST_FIELD_SIZE (HELPWININFOA, wStructSize, 4)
772  TEST_FIELD_ALIGN (HELPWININFOA, wStructSize, 4)
773  TEST_FIELD_OFFSET(HELPWININFOA, wStructSize, 0)
786  TEST_FIELD_SIZE (HELPWININFOA, wMax, 4)
787  TEST_FIELD_ALIGN (HELPWININFOA, wMax, 4)
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 */
799  TEST_FIELD_SIZE (HELPWININFOW, wStructSize, 4)
800  TEST_FIELD_ALIGN (HELPWININFOW, wStructSize, 4)
801  TEST_FIELD_OFFSET(HELPWININFOW, wStructSize, 0)
814  TEST_FIELD_SIZE (HELPWININFOW, wMax, 4)
815  TEST_FIELD_ALIGN (HELPWININFOW, wMax, 4)
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 */
827  TEST_FIELD_SIZE (HIGHCONTRASTA, cbSize, 4)
828  TEST_FIELD_ALIGN (HIGHCONTRASTA, cbSize, 4)
829  TEST_FIELD_OFFSET(HIGHCONTRASTA, cbSize, 0)
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 */
843  TEST_FIELD_SIZE (HIGHCONTRASTW, cbSize, 4)
844  TEST_FIELD_ALIGN (HIGHCONTRASTW, cbSize, 4)
845  TEST_FIELD_OFFSET(HIGHCONTRASTW, cbSize, 0)
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 */
859 }
860 
861 static void test_pack_ICONINFO(void)
862 {
863  /* ICONINFO */
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 */
933 }
934 
935 static void test_pack_KBDLLHOOKSTRUCT(void)
936 {
937  /* KBDLLHOOKSTRUCT */
940  TEST_FIELD_SIZE (KBDLLHOOKSTRUCT, vkCode, 4)
941  TEST_FIELD_ALIGN (KBDLLHOOKSTRUCT, vkCode, 4)
943  TEST_FIELD_SIZE (KBDLLHOOKSTRUCT, scanCode, 4)
944  TEST_FIELD_ALIGN (KBDLLHOOKSTRUCT, scanCode, 4)
945  TEST_FIELD_OFFSET(KBDLLHOOKSTRUCT, scanCode, 4)
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 */
962  TEST_FIELD_SIZE (KEYBDINPUT, wVk, 2)
963  TEST_FIELD_ALIGN (KEYBDINPUT, wVk, 2)
965  TEST_FIELD_SIZE (KEYBDINPUT, wScan, 2)
966  TEST_FIELD_ALIGN (KEYBDINPUT, wScan, 2)
967  TEST_FIELD_OFFSET(KEYBDINPUT, wScan, 2)
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 */
986 }
987 
988 static void test_pack_LPANIMATIONINFO(void)
989 {
990  /* LPANIMATIONINFO */
995 }
996 
997 static void test_pack_LPCBTACTIVATESTRUCT(void)
998 {
999  /* LPCBTACTIVATESTRUCT */
1004 }
1005 
1006 static void test_pack_LPCBT_CREATEWNDA(void)
1007 {
1008  /* LPCBT_CREATEWNDA */
1013 }
1014 
1015 static void test_pack_LPCBT_CREATEWNDW(void)
1016 {
1017  /* LPCBT_CREATEWNDW */
1022 }
1023 
1024 static void test_pack_LPCDLGTEMPLATEA(void)
1025 {
1026  /* LPCDLGTEMPLATEA */
1031 }
1032 
1033 static void test_pack_LPCDLGTEMPLATEW(void)
1034 {
1035  /* LPCDLGTEMPLATEW */
1040 }
1041 
1042 static void test_pack_LPCLIENTCREATESTRUCT(void)
1043 {
1044  /* LPCLIENTCREATESTRUCT */
1049 }
1050 
1051 static void test_pack_LPCMENUINFO(void)
1052 {
1053  /* LPCMENUINFO */
1058 }
1059 
1060 static void test_pack_LPCMENUITEMINFOA(void)
1061 {
1062  /* LPCMENUITEMINFOA */
1067 }
1068 
1069 static void test_pack_LPCMENUITEMINFOW(void)
1070 {
1071  /* LPCMENUITEMINFOW */
1076 }
1077 
1078 static void test_pack_LPCOMBOBOXINFO(void)
1079 {
1080  /* LPCOMBOBOXINFO */
1085 }
1086 
1087 static void test_pack_LPCOMPAREITEMSTRUCT(void)
1088 {
1089  /* LPCOMPAREITEMSTRUCT */
1094 }
1095 
1096 static void test_pack_LPCREATESTRUCTA(void)
1097 {
1098  /* LPCREATESTRUCTA */
1103 }
1104 
1105 static void test_pack_LPCREATESTRUCTW(void)
1106 {
1107  /* LPCREATESTRUCTW */
1112 }
1113 
1114 static void test_pack_LPCSCROLLINFO(void)
1115 {
1116  /* LPCSCROLLINFO */
1121 }
1122 
1123 static void test_pack_LPCURSORINFO(void)
1124 {
1125  /* LPCURSORINFO */
1130 }
1131 
1132 static void test_pack_LPCWPRETSTRUCT(void)
1133 {
1134  /* LPCWPRETSTRUCT */
1139 }
1140 
1141 static void test_pack_LPCWPSTRUCT(void)
1142 {
1143  /* LPCWPSTRUCT */
1148 }
1149 
1150 static void test_pack_LPDEBUGHOOKINFO(void)
1151 {
1152  /* LPDEBUGHOOKINFO */
1157 }
1158 
1159 static void test_pack_LPDELETEITEMSTRUCT(void)
1160 {
1161  /* LPDELETEITEMSTRUCT */
1166 }
1167 
1168 static void test_pack_LPDLGITEMTEMPLATEA(void)
1169 {
1170  /* LPDLGITEMTEMPLATEA */
1175 }
1176 
1177 static void test_pack_LPDLGITEMTEMPLATEW(void)
1178 {
1179  /* LPDLGITEMTEMPLATEW */
1184 }
1185 
1186 static void test_pack_LPDLGTEMPLATEA(void)
1187 {
1188  /* LPDLGTEMPLATEA */
1193 }
1194 
1195 static void test_pack_LPDLGTEMPLATEW(void)
1196 {
1197  /* LPDLGTEMPLATEW */
1202 }
1203 
1204 static void test_pack_LPDRAWITEMSTRUCT(void)
1205 {
1206  /* LPDRAWITEMSTRUCT */
1211 }
1212 
1213 static void test_pack_LPDRAWTEXTPARAMS(void)
1214 {
1215  /* LPDRAWTEXTPARAMS */
1220 }
1221 
1222 static void test_pack_LPEVENTMSG(void)
1223 {
1224  /* LPEVENTMSG */
1229 }
1230 
1231 static void test_pack_LPFILTERKEYS(void)
1232 {
1233  /* LPFILTERKEYS */
1238 }
1239 
1240 static void test_pack_LPGUITHREADINFO(void)
1241 {
1242  /* LPGUITHREADINFO */
1247 }
1248 
1249 static void test_pack_LPHARDWAREHOOKSTRUCT(void)
1250 {
1251  /* LPHARDWAREHOOKSTRUCT */
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 */
1274 }
1275 
1276 static void test_pack_LPHELPWININFOA(void)
1277 {
1278  /* LPHELPWININFOA */
1283 }
1284 
1285 static void test_pack_LPHELPWININFOW(void)
1286 {
1287  /* LPHELPWININFOW */
1292 }
1293 
1294 static void test_pack_LPHIGHCONTRASTA(void)
1295 {
1296  /* LPHIGHCONTRASTA */
1301 }
1302 
1303 static void test_pack_LPHIGHCONTRASTW(void)
1304 {
1305  /* LPHIGHCONTRASTW */
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)
1335 }
1336 
1337 static void test_pack_LPKBDLLHOOKSTRUCT(void)
1338 {
1339  /* LPKBDLLHOOKSTRUCT */
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 */
1362 }
1363 
1364 static void test_pack_LPMDICREATESTRUCTW(void)
1365 {
1366  /* LPMDICREATESTRUCTW */
1371 }
1372 
1373 static void test_pack_LPMDINEXTMENU(void)
1374 {
1375  /* LPMDINEXTMENU */
1380 }
1381 
1382 static void test_pack_LPMEASUREITEMSTRUCT(void)
1383 {
1384  /* LPMEASUREITEMSTRUCT */
1389 }
1390 
1391 static void test_pack_LPMENUINFO(void)
1392 {
1393  /* LPMENUINFO */
1398 }
1399 
1400 static void test_pack_LPMENUITEMINFOA(void)
1401 {
1402  /* LPMENUITEMINFOA */
1407 }
1408 
1409 static void test_pack_LPMENUITEMINFOW(void)
1410 {
1411  /* LPMENUITEMINFOW */
1416 }
1417 
1418 static void test_pack_LPMINIMIZEDMETRICS(void)
1419 {
1420  /* LPMINIMIZEDMETRICS */
1425 }
1426 
1427 static void test_pack_LPMINMAXINFO(void)
1428 {
1429  /* LPMINMAXINFO */
1434 }
1435 
1436 static void test_pack_LPMONITORINFO(void)
1437 {
1438  /* LPMONITORINFO */
1443 }
1444 
1445 static void test_pack_LPMONITORINFOEXA(void)
1446 {
1447  /* LPMONITORINFOEXA */
1452 }
1453 
1454 static void test_pack_LPMONITORINFOEXW(void)
1455 {
1456  /* LPMONITORINFOEXW */
1461 }
1462 
1463 static void test_pack_LPMOUSEHOOKSTRUCT(void)
1464 {
1465  /* LPMOUSEHOOKSTRUCT */
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 */
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)
1497 }
1498 
1499 static void test_pack_LPMSGBOXPARAMSA(void)
1500 {
1501  /* LPMSGBOXPARAMSA */
1506 }
1507 
1508 static void test_pack_LPMSGBOXPARAMSW(void)
1509 {
1510  /* LPMSGBOXPARAMSW */
1515 }
1516 
1517 static void test_pack_LPMSLLHOOKSTRUCT(void)
1518 {
1519  /* LPMSLLHOOKSTRUCT */
1524 }
1525 
1526 static void test_pack_LPMULTIKEYHELPA(void)
1527 {
1528  /* LPMULTIKEYHELPA */
1533 }
1534 
1535 static void test_pack_LPMULTIKEYHELPW(void)
1536 {
1537  /* LPMULTIKEYHELPW */
1542 }
1543 
1544 static void test_pack_LPNCCALCSIZE_PARAMS(void)
1545 {
1546  /* LPNCCALCSIZE_PARAMS */
1551 }
1552 
1553 static void test_pack_LPNMHDR(void)
1554 {
1555  /* LPNMHDR */
1556  TEST_TYPE_SIZE (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 */
1587 }
1588 
1589 static void test_pack_LPSCROLLINFO(void)
1590 {
1591  /* LPSCROLLINFO */
1596 }
1597 
1598 static void test_pack_LPSERIALKEYSA(void)
1599 {
1600  /* LPSERIALKEYSA */
1605 }
1606 
1607 static void test_pack_LPSERIALKEYSW(void)
1608 {
1609  /* LPSERIALKEYSW */
1614 }
1615 
1616 static void test_pack_LPSOUNDSENTRYA(void)
1617 {
1618  /* LPSOUNDSENTRYA */
1623 }
1624 
1625 static void test_pack_LPSOUNDSENTRYW(void)
1626 {
1627  /* LPSOUNDSENTRYW */
1632 }
1633 
1634 static void test_pack_LPSTICKYKEYS(void)
1635 {
1636  /* LPSTICKYKEYS */
1641 }
1642 
1643 static void test_pack_LPSTYLESTRUCT(void)
1644 {
1645  /* LPSTYLESTRUCT */
1650 }
1651 
1652 static void test_pack_LPTITLEBARINFO(void)
1653 {
1654  /* LPTITLEBARINFO */
1659 }
1660 
1661 static void test_pack_LPTOGGLEKEYS(void)
1662 {
1663  /* LPTOGGLEKEYS */
1668 }
1669 
1670 static void test_pack_LPTPMPARAMS(void)
1671 {
1672  /* LPTPMPARAMS */
1677 }
1678 
1679 static void test_pack_LPTRACKMOUSEEVENT(void)
1680 {
1681  /* LPTRACKMOUSEEVENT */
1686 }
1687 
1688 static void test_pack_LPWINDOWINFO(void)
1689 {
1690  /* LPWINDOWINFO */
1695 }
1696 
1697 static void test_pack_LPWINDOWPLACEMENT(void)
1698 {
1699  /* LPWINDOWPLACEMENT */
1704 }
1705 
1706 static void test_pack_LPWINDOWPOS(void)
1707 {
1708  /* LPWINDOWPOS */
1713 }
1714 
1715 static void test_pack_LPWNDCLASSA(void)
1716 {
1717  /* LPWNDCLASSA */
1722 }
1723 
1724 static void test_pack_LPWNDCLASSEXA(void)
1725 {
1726  /* LPWNDCLASSEXA */
1731 }
1732 
1733 static void test_pack_LPWNDCLASSEXW(void)
1734 {
1735  /* LPWNDCLASSEXW */
1740 }
1741 
1742 static void test_pack_LPWNDCLASSW(void)
1743 {
1744  /* LPWNDCLASSW */
1749 }
1750 
1751 static void test_pack_MDICREATESTRUCTA(void)
1752 {
1753  /* MDICREATESTRUCTA */
1756  TEST_FIELD_SIZE (MDICREATESTRUCTA, szClass, 8)
1757  TEST_FIELD_ALIGN (MDICREATESTRUCTA, szClass, 8)
1758  TEST_FIELD_OFFSET(MDICREATESTRUCTA, szClass, 0)
1762  TEST_FIELD_SIZE (MDICREATESTRUCTA, hOwner, 8)
1763  TEST_FIELD_ALIGN (MDICREATESTRUCTA, hOwner, 8)
1764  TEST_FIELD_OFFSET(MDICREATESTRUCTA, hOwner, 16)
1783 }
1784 
1785 static void test_pack_MDICREATESTRUCTW(void)
1786 {
1787  /* MDICREATESTRUCTW */
1790  TEST_FIELD_SIZE (MDICREATESTRUCTW, szClass, 8)
1791  TEST_FIELD_ALIGN (MDICREATESTRUCTW, szClass, 8)
1792  TEST_FIELD_OFFSET(MDICREATESTRUCTW, szClass, 0)
1796  TEST_FIELD_SIZE (MDICREATESTRUCTW, hOwner, 8)
1797  TEST_FIELD_ALIGN (MDICREATESTRUCTW, hOwner, 8)
1798  TEST_FIELD_OFFSET(MDICREATESTRUCTW, hOwner, 16)
1817 }
1818 
1819 static void test_pack_MDINEXTMENU(void)
1820 {
1821  /* MDINEXTMENU */
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 */
1840  TEST_FIELD_SIZE (MEASUREITEMSTRUCT, CtlType, 4)
1841  TEST_FIELD_ALIGN (MEASUREITEMSTRUCT, CtlType, 4)
1846  TEST_FIELD_SIZE (MEASUREITEMSTRUCT, itemID, 4)
1847  TEST_FIELD_ALIGN (MEASUREITEMSTRUCT, itemID, 4)
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)
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 */
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)
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)
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 */
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)
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)
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 */
1979  TEST_FIELD_SIZE (MENUITEMTEMPLATE, mtOption, 2)
1980  TEST_FIELD_ALIGN (MENUITEMTEMPLATE, mtOption, 2)
1981  TEST_FIELD_OFFSET(MENUITEMTEMPLATE, mtOption, 0)
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 */
1995  TEST_FIELD_SIZE (MENUITEMTEMPLATEHEADER, versionNumber, 2)
1996  TEST_FIELD_ALIGN (MENUITEMTEMPLATEHEADER, versionNumber, 2)
1997  TEST_FIELD_OFFSET(MENUITEMTEMPLATEHEADER, versionNumber, 0)
2001 }
2002 
2003 static void test_pack_MINIMIZEDMETRICS(void)
2004 {
2005  /* MINIMIZEDMETRICS */
2008  TEST_FIELD_SIZE (MINIMIZEDMETRICS, cbSize, 4)
2009  TEST_FIELD_ALIGN (MINIMIZEDMETRICS, cbSize, 4)
2011  TEST_FIELD_SIZE (MINIMIZEDMETRICS, iWidth, 4)
2012  TEST_FIELD_ALIGN (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 */
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 */
2052 }
2053 
2054 static void test_pack_MONITORINFO(void)
2055 {
2056  /* MONITORINFO */
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)
2071 }
2072 
2073 static void test_pack_MONITORINFOEXA(void)
2074 {
2075  /* MONITORINFOEXA */
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)
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 */
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)
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 */
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 */
2147  TEST_FIELD_SIZE (MOUSEINPUT, mouseData, 4)
2148  TEST_FIELD_ALIGN (MOUSEINPUT, mouseData, 4)
2149  TEST_FIELD_OFFSET(MOUSEINPUT, mouseData, 8)
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 */
2166  TEST_FIELD_SIZE (MOUSEKEYS, cbSize, 4)
2167  TEST_FIELD_ALIGN (MOUSEKEYS, cbSize, 4)
2168  TEST_FIELD_OFFSET(MOUSEKEYS, cbSize, 0)
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)
2200  TEST_FIELD_SIZE (MSG, wParam, 8)
2203  TEST_FIELD_SIZE (MSG, lParam, 8)
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 */
2219 }
2220 
2221 static void test_pack_MSGBOXPARAMSA(void)
2222 {
2223  /* MSGBOXPARAMSA */
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)
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 */
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)
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 */
2303  TEST_FIELD_SIZE (MSLLHOOKSTRUCT, mouseData, 4)
2304  TEST_FIELD_ALIGN (MSLLHOOKSTRUCT, mouseData, 4)
2305  TEST_FIELD_OFFSET(MSLLHOOKSTRUCT, mouseData, 8)
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 */
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 */
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 */
2354 }
2355 
2356 static void test_pack_NAMEENUMPROCW(void)
2357 {
2358  /* NAMEENUMPROCW */
2361 }
2362 
2363 static void test_pack_NCCALCSIZE_PARAMS(void)
2364 {
2365  /* NCCALCSIZE_PARAMS */
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)
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 */
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 */
2534 }
2535 
2536 static void test_pack_PCOMPAREITEMSTRUCT(void)
2537 {
2538  /* PCOMPAREITEMSTRUCT */
2543 }
2544 
2545 static void test_pack_PCOPYDATASTRUCT(void)
2546 {
2547  /* PCOPYDATASTRUCT */
2552 }
2553 
2554 static void test_pack_PCURSORINFO(void)
2555 {
2556  /* PCURSORINFO */
2561 }
2562 
2563 static void test_pack_PCWPRETSTRUCT(void)
2564 {
2565  /* PCWPRETSTRUCT */
2570 }
2571 
2572 static void test_pack_PCWPSTRUCT(void)
2573 {
2574  /* PCWPSTRUCT */
2579 }
2580 
2581 static void test_pack_PDEBUGHOOKINFO(void)
2582 {
2583  /* PDEBUGHOOKINFO */
2588 }
2589 
2590 static void test_pack_PDELETEITEMSTRUCT(void)
2591 {
2592  /* PDELETEITEMSTRUCT */
2597 }
2598 
2599 static void test_pack_PDLGITEMTEMPLATEA(void)
2600 {
2601  /* PDLGITEMTEMPLATEA */
2606 }
2607 
2608 static void test_pack_PDLGITEMTEMPLATEW(void)
2609 {
2610  /* PDLGITEMTEMPLATEW */
2615 }
2616 
2617 static void test_pack_PDRAWITEMSTRUCT(void)
2618 {
2619  /* PDRAWITEMSTRUCT */
2624 }
2625 
2626 static void test_pack_PEVENTMSG(void)
2627 {
2628  /* PEVENTMSG */
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 */
2651 }
2652 
2653 static void test_pack_PHARDWAREHOOKSTRUCT(void)
2654 {
2655  /* PHARDWAREHOOKSTRUCT */
2660 }
2661 
2662 static void test_pack_PHARDWAREINPUT(void)
2663 {
2664  /* PHARDWAREINPUT */
2669 }
2670 
2671 static void test_pack_PHDEVNOTIFY(void)
2672 {
2673  /* PHDEVNOTIFY */
2678 }
2679 
2680 static void test_pack_PHELPWININFOA(void)
2681 {
2682  /* PHELPWININFOA */
2687 }
2688 
2689 static void test_pack_PHELPWININFOW(void)
2690 {
2691  /* PHELPWININFOW */
2696 }
2697 
2698 static void test_pack_PICONINFO(void)
2699 {
2700  /* PICONINFO */
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 */
2739 }
2740 
2741 static void test_pack_PKEYBDINPUT(void)
2742 {
2743  /* PKEYBDINPUT */
2748 }
2749 
2750 static void test_pack_PMDINEXTMENU(void)
2751 {
2752  /* PMDINEXTMENU */
2757 }
2758 
2759 static void test_pack_PMEASUREITEMSTRUCT(void)
2760 {
2761  /* PMEASUREITEMSTRUCT */
2766 }
2767 
2768 static void test_pack_PMENUITEMTEMPLATE(void)
2769 {
2770  /* PMENUITEMTEMPLATE */
2775 }
2776 
2777 static void test_pack_PMENUITEMTEMPLATEHEADER(void)
2778 {
2779  /* PMENUITEMTEMPLATEHEADER */
2784 }
2785 
2786 static void test_pack_PMINIMIZEDMETRICS(void)
2787 {
2788  /* PMINIMIZEDMETRICS */
2793 }
2794 
2795 static void test_pack_PMINMAXINFO(void)
2796 {
2797  /* PMINMAXINFO */
2802 }
2803 
2804 static void test_pack_PMOUSEHOOKSTRUCT(void)
2805 {
2806  /* PMOUSEHOOKSTRUCT */
2811 }
2812 
2813 static void test_pack_PMOUSEINPUT(void)
2814 {
2815  /* PMOUSEINPUT */
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)
2829 }
2830 
2831 static void test_pack_PMSGBOXPARAMSA(void)
2832 {
2833  /* PMSGBOXPARAMSA */
2838 }
2839 
2840 static void test_pack_PMSGBOXPARAMSW(void)
2841 {
2842  /* PMSGBOXPARAMSW */
2847 }
2848 
2849 static void test_pack_PMSLLHOOKSTRUCT(void)
2850 {
2851  /* PMSLLHOOKSTRUCT */
2856 }
2857 
2858 static void test_pack_PMULTIKEYHELPA(void)
2859 {
2860  /* PMULTIKEYHELPA */
2865 }
2866 
2867 static void test_pack_PMULTIKEYHELPW(void)
2868 {
2869  /* PMULTIKEYHELPW */
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 */
2901 }
2902 
2903 static void test_pack_PROPENUMPROCA(void)
2904 {
2905  /* PROPENUMPROCA */
2908 }
2909 
2910 static void test_pack_PROPENUMPROCEXA(void)
2911 {
2912  /* PROPENUMPROCEXA */
2915 }
2916 
2917 static void test_pack_PROPENUMPROCEXW(void)
2918 {
2919  /* PROPENUMPROCEXW */
2922 }
2923 
2924 static void test_pack_PROPENUMPROCW(void)
2925 {
2926  /* PROPENUMPROCW */
2929 }
2930 
2931 static void test_pack_PTITLEBARINFO(void)
2932 {
2933  /* PTITLEBARINFO */
2938 }
2939 
2940 static void test_pack_PUSEROBJECTFLAGS(void)
2941 {
2942  /* PUSEROBJECTFLAGS */
2947 }
2948 
2949 static void test_pack_PWINDOWINFO(void)
2950 {
2951  /* PWINDOWINFO */
2956 }
2957 
2958 static void test_pack_PWINDOWPLACEMENT(void)
2959 {
2960  /* PWINDOWPLACEMENT */
2965 }
2966 
2967 static void test_pack_PWINDOWPOS(void)
2968 {
2969  /* PWINDOWPOS */
2974 }
2975 
2976 static void test_pack_PWNDCLASSA(void)
2977 {
2978  /* PWNDCLASSA */
2983 }
2984 
2985 static void test_pack_PWNDCLASSEXA(void)
2986 {
2987  /* PWNDCLASSEXA */
2992 }
2993 
2994 static void test_pack_PWNDCLASSEXW(void)
2995 {
2996  /* PWNDCLASSEXW */
3001 }
3002 
3003 static void test_pack_PWNDCLASSW(void)
3004 {
3005  /* PWNDCLASSW */
3010 }
3011 
3012 static void test_pack_SCROLLINFO(void)
3013 {
3014  /* SCROLLINFO */
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 */
3045 }
3046 
3047 static void test_pack_SERIALKEYSA(void)
3048 {
3049  /* SERIALKEYSA */
3052  TEST_FIELD_SIZE (SERIALKEYSA, cbSize, 4)
3053  TEST_FIELD_ALIGN (SERIALKEYSA, cbSize, 4)
3054  TEST_FIELD_OFFSET(SERIALKEYSA, cbSize, 0)
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 */
3080  TEST_FIELD_SIZE (SERIALKEYSW, cbSize, 4)
3081  TEST_FIELD_ALIGN (SERIALKEYSW, cbSize, 4)
3082  TEST_FIELD_OFFSET(SERIALKEYSW, cbSize, 0)
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 */
3108  TEST_FIELD_SIZE (SOUNDSENTRYA, cbSize, 4)
3109  TEST_FIELD_ALIGN (SOUNDSENTRYA, cbSize, 4)
3110  TEST_FIELD_OFFSET(SOUNDSENTRYA, cbSize, 0)
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 */
3151  TEST_FIELD_SIZE (SOUNDSENTRYW, cbSize, 4)
3152  TEST_FIELD_ALIGN (SOUNDSENTRYW, cbSize, 4)
3153  TEST_FIELD_OFFSET(SOUNDSENTRYW, cbSize, 0)
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 */
3194  TEST_FIELD_SIZE (STICKYKEYS, cbSize, 4)
3195  TEST_FIELD_ALIGN (STICKYKEYS, cbSize, 4)
3196  TEST_FIELD_OFFSET(STICKYKEYS, cbSize, 0)
3200 }
3201 
3202 static void test_pack_STYLESTRUCT(void)
3203 {
3204  /* STYLESTRUCT */
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 */
3220 }
3221 
3222 static void test_pack_TITLEBARINFO(void)
3223 {
3224  /* TITLEBARINFO */
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 */
3243  TEST_FIELD_SIZE (TOGGLEKEYS, cbSize, 4)
3244  TEST_FIELD_ALIGN (TOGGLEKEYS, cbSize, 4)
3245  TEST_FIELD_OFFSET(TOGGLEKEYS, cbSize, 0)
3249 }
3250 
3251 static void test_pack_TPMPARAMS(void)
3252 {
3253  /* TPMPARAMS */
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 */
3269  TEST_FIELD_SIZE (TRACKMOUSEEVENT, cbSize, 4)
3270  TEST_FIELD_ALIGN (TRACKMOUSEEVENT, cbSize, 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 */
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)
3297 }
3298 
3299 static void test_pack_WINDOWINFO(void)
3300 {
3301  /* WINDOWINFO */
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 */
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 */
3369  TEST_FIELD_SIZE (WINDOWPOS, hwndInsertAfter, 8)
3370  TEST_FIELD_ALIGN (WINDOWPOS, hwndInsertAfter, 8)
3371  TEST_FIELD_OFFSET(WINDOWPOS, hwndInsertAfter, 8)
3387 }
3388 
3389 static void test_pack_WINEVENTPROC(void)
3390 {
3391  /* WINEVENTPROC */
3394 }
3395 
3396 static void test_pack_WINSTAENUMPROCA(void)
3397 {
3398  /* WINSTAENUMPROCA */
3401 }
3402 
3403 static void test_pack_WINSTAENUMPROCW(void)
3404 {
3405  /* WINSTAENUMPROCW */
3408 }
3409 
3410 static void test_pack_WNDCLASSA(void)
3411 {
3412  /* WNDCLASSA */
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)
3433  TEST_FIELD_SIZE (WNDCLASSA, hCursor, 8)
3434  TEST_FIELD_ALIGN (WNDCLASSA, hCursor, 8)
3435  TEST_FIELD_OFFSET(WNDCLASSA, hCursor, 40)
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 */
3452  TEST_FIELD_SIZE (WNDCLASSEXA, cbSize, 4)
3453  TEST_FIELD_ALIGN (WNDCLASSEXA, cbSize, 4)
3454  TEST_FIELD_OFFSET(WNDCLASSEXA, cbSize, 0)
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)
3473  TEST_FIELD_SIZE (WNDCLASSEXA, hCursor, 8)
3474  TEST_FIELD_ALIGN (WNDCLASSEXA, hCursor, 8)
3475  TEST_FIELD_OFFSET(WNDCLASSEXA, hCursor, 40)
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)
3488 }
3489 
3490 static void test_pack_WNDCLASSEXW(void)
3491 {
3492  /* WNDCLASSEXW */
3495  TEST_FIELD_SIZE (WNDCLASSEXW, cbSize, 4)
3496  TEST_FIELD_ALIGN (WNDCLASSEXW, cbSize, 4)
3497  TEST_FIELD_OFFSET(WNDCLASSEXW, cbSize, 0)
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)
3516  TEST_FIELD_SIZE (WNDCLASSEXW, hCursor, 8)
3517  TEST_FIELD_ALIGN (WNDCLASSEXW, hCursor, 8)
3518  TEST_FIELD_OFFSET(WNDCLASSEXW, hCursor, 40)
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)
3531 }
3532 
3533 static void test_pack_WNDCLASSW(void)
3534 {
3535  /* WNDCLASSW */
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)
3556  TEST_FIELD_SIZE (WNDCLASSW, hCursor, 8)
3557  TEST_FIELD_ALIGN (WNDCLASSW, hCursor, 8)
3558  TEST_FIELD_OFFSET(WNDCLASSW, hCursor, 40)
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 */
3575 }
3576 
3577 static void test_pack_WNDPROC(void)
3578 {
3579  /* WNDPROC */
3580  TEST_TYPE_SIZE (WNDPROC, 8)
3582 }
3583 
3584 #else /* _WIN64 */
3585 
3586 static void test_pack_ACCESSTIMEOUT(void)
3587 {
3588  /* ACCESSTIMEOUT */
3591  TEST_FIELD_SIZE (ACCESSTIMEOUT, cbSize, 4)
3592  TEST_FIELD_ALIGN (ACCESSTIMEOUT, cbSize, 4)
3593  TEST_FIELD_OFFSET(ACCESSTIMEOUT, cbSize, 0)
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 */
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 
3616 {
3617  /* CBTACTIVATESTRUCT */
3620  TEST_FIELD_SIZE (CBTACTIVATESTRUCT, fMouse, 4)
3621  TEST_FIELD_ALIGN (CBTACTIVATESTRUCT, fMouse, 4)
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 */
3633  TEST_FIELD_SIZE (CBT_CREATEWNDA, lpcs, 4)
3634  TEST_FIELD_ALIGN (CBT_CREATEWNDA, lpcs, 4)
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 */
3646  TEST_FIELD_SIZE (CBT_CREATEWNDW, lpcs, 4)
3647  TEST_FIELD_ALIGN (CBT_CREATEWNDW, lpcs, 4)
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 
3655 {
3656  /* CLIENTCREATESTRUCT */
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 */
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 
3696 {
3697  /* COMPAREITEMSTRUCT */
3700  TEST_FIELD_SIZE (COMPAREITEMSTRUCT, CtlType, 4)
3701  TEST_FIELD_ALIGN (COMPAREITEMSTRUCT, CtlType, 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 */
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 */
3747  TEST_FIELD_SIZE (CREATESTRUCTA, lpCreateParams, 4)
3748  TEST_FIELD_ALIGN (CREATESTRUCTA, lpCreateParams, 4)
3749  TEST_FIELD_OFFSET(CREATESTRUCTA, lpCreateParams, 0)
3753  TEST_FIELD_SIZE (CREATESTRUCTA, hMenu, 4)
3754  TEST_FIELD_ALIGN (CREATESTRUCTA, hMenu, 4)
3755  TEST_FIELD_OFFSET(CREATESTRUCTA, hMenu, 8)
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 */
3790  TEST_FIELD_SIZE (CREATESTRUCTW, lpCreateParams, 4)
3791  TEST_FIELD_ALIGN (CREATESTRUCTW, lpCreateParams, 4)
3792  TEST_FIELD_OFFSET(CREATESTRUCTW, lpCreateParams, 0)
3796  TEST_FIELD_SIZE (CREATESTRUCTW, hMenu, 4)
3797  TEST_FIELD_ALIGN (CREATESTRUCTW, hMenu, 4)
3798  TEST_FIELD_OFFSET(CREATESTRUCTW, hMenu, 8)
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 */
3833  TEST_FIELD_SIZE (CURSORINFO, cbSize, 4)
3834  TEST_FIELD_ALIGN (CURSORINFO, cbSize, 4)
3835  TEST_FIELD_OFFSET(CURSORINFO, cbSize, 0)
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 */
3852  TEST_FIELD_SIZE (CWPRETSTRUCT, lResult, 4)
3853  TEST_FIELD_ALIGN (CWPRETSTRUCT, lResult, 4)
3854  TEST_FIELD_OFFSET(CWPRETSTRUCT, lResult, 0)
3867 }
3868 
3869 static void test_pack_CWPSTRUCT(void)
3870 {
3871  /* CWPSTRUCT */
3886 }
3887 
3888 static void test_pack_DEBUGHOOKINFO(void)
3889 {
3890  /* DEBUGHOOKINFO */
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)
3908 }
3909 
3911 {
3912  /* DELETEITEMSTRUCT */
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)
3921  TEST_FIELD_SIZE (DELETEITEMSTRUCT, itemID, 4)
3922  TEST_FIELD_ALIGN (DELETEITEMSTRUCT, itemID, 4)
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 
3933 {
3934  /* DESKTOPENUMPROCA */
3937 }
3938 
3940 {
3941  /* DESKTOPENUMPROCW */
3944 }
3945 
3946 static void test_pack_DLGITEMTEMPLATE(void)
3947 {
3948  /* DLGITEMTEMPLATE (pack 2) */
3954  TEST_FIELD_SIZE (DLGITEMTEMPLATE, dwExtendedStyle, 4)
3955  TEST_FIELD_ALIGN (DLGITEMTEMPLATE, dwExtendedStyle, 2)
3956  TEST_FIELD_OFFSET(DLGITEMTEMPLATE, dwExtendedStyle, 4)
3972 }
3973 
3974 static void test_pack_DLGPROC(void)
3975 {
3976  /* DLGPROC */
3977  TEST_TYPE_SIZE (DLGPROC, 4)
3979 }
3980 
3981 static void test_pack_DLGTEMPLATE(void)
3982 {
3983  /* DLGTEMPLATE (pack 2) */
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)
4007 }
4008 
4009 static void test_pack_DRAWITEMSTRUCT(void)
4010 {
4011  /* DRAWITEMSTRUCT */
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)
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)
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 */
4048 }
4049 
4050 static void test_pack_DRAWTEXTPARAMS(void)
4051 {
4052  /* DRAWTEXTPARAMS */
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 
4073 {
4074  /* EDITWORDBREAKPROCA */
4077 }
4078 
4080 {
4081  /* EDITWORDBREAKPROCW */
4084 }
4085 
4086 static void test_pack_EVENTMSG(void)
4087 {
4088  /* EVENTMSG */
4089  TEST_TYPE_SIZE (EVENTMSG, 20)
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)
4106 }
4107 
4108 static void test_pack_FILTERKEYS(void)
4109 {
4110  /* FILTERKEYS */
4113  TEST_FIELD_SIZE (FILTERKEYS, cbSize, 4)
4114  TEST_FIELD_ALIGN (FILTERKEYS, cbSize, 4)
4115  TEST_FIELD_OFFSET(FILTERKEYS, cbSize, 0)
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 */
4160 }
4161