ReactOS 0.4.16-dev-197-g92996da
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#define WINE_NOWINSOCK
9
10#include "windows.h"
11
12#include "wine/test.h"
13
14/***********************************************************************
15 * Compatibility macros
16 */
17
18#define DWORD_PTR UINT_PTR
19#define LONG_PTR INT_PTR
20#define ULONG_PTR UINT_PTR
21
22/***********************************************************************
23 * Windows API extension
24 */
25
26#if defined(_MSC_VER) && (_MSC_VER >= 1300) && defined(__cplusplus)
27# define _TYPE_ALIGNMENT(type) __alignof(type)
28#elif defined(__GNUC__)
29# define _TYPE_ALIGNMENT(type) __alignof__(type)
30#else
31/*
32 * FIXME: May not be possible without a compiler extension
33 * (if type is not just a name that is, otherwise the normal
34 * TYPE_ALIGNMENT can be used)
35 */
36#endif
37
38#if defined(TYPE_ALIGNMENT) && defined(_MSC_VER) && _MSC_VER >= 800 && !defined(__cplusplus)
39#pragma warning(disable:4116)
40#endif
41
42#if !defined(TYPE_ALIGNMENT) && defined(_TYPE_ALIGNMENT)
43# define TYPE_ALIGNMENT _TYPE_ALIGNMENT
44#endif
45
46/***********************************************************************
47 * Test helper macros
48 */
49
50#define TEST_TYPE_SIZE(type, size) C_ASSERT(sizeof(type) == size);
51
52#ifdef TYPE_ALIGNMENT
53# define TEST_TYPE_ALIGN(type, align) C_ASSERT(TYPE_ALIGNMENT(type) == align);
54#else
55# define TEST_TYPE_ALIGN(type, align)
56#endif
57
58#ifdef _TYPE_ALIGNMENT
59# define TEST_TARGET_ALIGN(type, align) C_ASSERT(_TYPE_ALIGNMENT(*(type)0) == align);
60# define TEST_FIELD_ALIGN(type, field, align) C_ASSERT(_TYPE_ALIGNMENT(((type*)0)->field) == align);
61#else
62# define TEST_TARGET_ALIGN(type, align)
63# define TEST_FIELD_ALIGN(type, field, align)
64#endif
65
66#define TEST_FIELD_OFFSET(type, field, offset) C_ASSERT(FIELD_OFFSET(type, field) == offset);
67
68#define TEST_TARGET_SIZE(type, size) TEST_TYPE_SIZE(*(type)0, size)
69#define TEST_FIELD_SIZE(type, field, size) TEST_TYPE_SIZE((((type*)0)->field), size)
70#define TEST_TYPE_SIGNED(type) C_ASSERT((type) -1 < 0);
71#define TEST_TYPE_UNSIGNED(type) C_ASSERT((type) -1 > 0);
72
73
74#ifdef _WIN64
75
76static void test_pack_ACCESSTIMEOUT(void)
77{
78 /* ACCESSTIMEOUT */
87 TEST_FIELD_SIZE (ACCESSTIMEOUT, iTimeOutMSec, 4)
88 TEST_FIELD_ALIGN (ACCESSTIMEOUT, iTimeOutMSec, 4)
89 TEST_FIELD_OFFSET(ACCESSTIMEOUT, iTimeOutMSec, 8)
90}
91
92static void test_pack_ANIMATIONINFO(void)
93{
94 /* ANIMATIONINFO */
100 TEST_FIELD_SIZE (ANIMATIONINFO, iMinAnimate, 4)
101 TEST_FIELD_ALIGN (ANIMATIONINFO, iMinAnimate, 4)
102 TEST_FIELD_OFFSET(ANIMATIONINFO, iMinAnimate, 4)
103}
104
105static void test_pack_CBTACTIVATESTRUCT(void)
106{
107 /* CBTACTIVATESTRUCT */
113 TEST_FIELD_SIZE (CBTACTIVATESTRUCT, hWndActive, 8)
114 TEST_FIELD_ALIGN (CBTACTIVATESTRUCT, hWndActive, 8)
116}
117
118static void test_pack_CBT_CREATEWNDA(void)
119{
120 /* CBT_CREATEWNDA */
126 TEST_FIELD_SIZE (CBT_CREATEWNDA, hwndInsertAfter, 8)
127 TEST_FIELD_ALIGN (CBT_CREATEWNDA, hwndInsertAfter, 8)
128 TEST_FIELD_OFFSET(CBT_CREATEWNDA, hwndInsertAfter, 8)
129}
130
131static void test_pack_CBT_CREATEWNDW(void)
132{
133 /* CBT_CREATEWNDW */
139 TEST_FIELD_SIZE (CBT_CREATEWNDW, hwndInsertAfter, 8)
140 TEST_FIELD_ALIGN (CBT_CREATEWNDW, hwndInsertAfter, 8)
141 TEST_FIELD_OFFSET(CBT_CREATEWNDW, hwndInsertAfter, 8)
142}
143
144static void test_pack_CLIENTCREATESTRUCT(void)
145{
146 /* CLIENTCREATESTRUCT */
152 TEST_FIELD_SIZE (CLIENTCREATESTRUCT, idFirstChild, 4)
153 TEST_FIELD_ALIGN (CLIENTCREATESTRUCT, idFirstChild, 4)
154 TEST_FIELD_OFFSET(CLIENTCREATESTRUCT, idFirstChild, 8)
155}
156
157static void test_pack_COMBOBOXINFO(void)
158{
159 /* COMBOBOXINFO */
162 TEST_FIELD_SIZE (COMBOBOXINFO, cbSize, 4)
163 TEST_FIELD_ALIGN (COMBOBOXINFO, cbSize, 4)
165 TEST_FIELD_SIZE (COMBOBOXINFO, rcItem, 16)
166 TEST_FIELD_ALIGN (COMBOBOXINFO, rcItem, 4)
168 TEST_FIELD_SIZE (COMBOBOXINFO, rcButton, 16)
169 TEST_FIELD_ALIGN (COMBOBOXINFO, rcButton, 4)
170 TEST_FIELD_OFFSET(COMBOBOXINFO, rcButton, 20)
171 TEST_FIELD_SIZE (COMBOBOXINFO, stateButton, 4)
172 TEST_FIELD_ALIGN (COMBOBOXINFO, stateButton, 4)
173 TEST_FIELD_OFFSET(COMBOBOXINFO, stateButton, 36)
174 TEST_FIELD_SIZE (COMBOBOXINFO, hwndCombo, 8)
175 TEST_FIELD_ALIGN (COMBOBOXINFO, hwndCombo, 8)
176 TEST_FIELD_OFFSET(COMBOBOXINFO, hwndCombo, 40)
177 TEST_FIELD_SIZE (COMBOBOXINFO, hwndItem, 8)
178 TEST_FIELD_ALIGN (COMBOBOXINFO, hwndItem, 8)
179 TEST_FIELD_OFFSET(COMBOBOXINFO, hwndItem, 48)
180 TEST_FIELD_SIZE (COMBOBOXINFO, hwndList, 8)
181 TEST_FIELD_ALIGN (COMBOBOXINFO, hwndList, 8)
182 TEST_FIELD_OFFSET(COMBOBOXINFO, hwndList, 56)
183}
184
185static void test_pack_COMPAREITEMSTRUCT(void)
186{
187 /* COMPAREITEMSTRUCT */
202 TEST_FIELD_SIZE (COMPAREITEMSTRUCT, itemData1, 8)
203 TEST_FIELD_ALIGN (COMPAREITEMSTRUCT, itemData1, 8)
208 TEST_FIELD_SIZE (COMPAREITEMSTRUCT, itemData2, 8)
209 TEST_FIELD_ALIGN (COMPAREITEMSTRUCT, itemData2, 8)
211 TEST_FIELD_SIZE (COMPAREITEMSTRUCT, dwLocaleId, 4)
212 TEST_FIELD_ALIGN (COMPAREITEMSTRUCT, dwLocaleId, 4)
213 TEST_FIELD_OFFSET(COMPAREITEMSTRUCT, dwLocaleId, 48)
214}
215
216static void test_pack_COPYDATASTRUCT(void)
217{
218 /* COPYDATASTRUCT */
230}
231
232static void test_pack_CREATESTRUCTA(void)
233{
234 /* CREATESTRUCTA */
237 TEST_FIELD_SIZE (CREATESTRUCTA, lpCreateParams, 8)
238 TEST_FIELD_ALIGN (CREATESTRUCTA, lpCreateParams, 8)
239 TEST_FIELD_OFFSET(CREATESTRUCTA, lpCreateParams, 0)
264 TEST_FIELD_SIZE (CREATESTRUCTA, lpszName, 8)
265 TEST_FIELD_ALIGN (CREATESTRUCTA, lpszName, 8)
266 TEST_FIELD_OFFSET(CREATESTRUCTA, lpszName, 56)
267 TEST_FIELD_SIZE (CREATESTRUCTA, lpszClass, 8)
268 TEST_FIELD_ALIGN (CREATESTRUCTA, lpszClass, 8)
269 TEST_FIELD_OFFSET(CREATESTRUCTA, lpszClass, 64)
270 TEST_FIELD_SIZE (CREATESTRUCTA, dwExStyle, 4)
271 TEST_FIELD_ALIGN (CREATESTRUCTA, dwExStyle, 4)
272 TEST_FIELD_OFFSET(CREATESTRUCTA, dwExStyle, 72)
273}
274
275static void test_pack_CREATESTRUCTW(void)
276{
277 /* CREATESTRUCTW */
280 TEST_FIELD_SIZE (CREATESTRUCTW, lpCreateParams, 8)
281 TEST_FIELD_ALIGN (CREATESTRUCTW, lpCreateParams, 8)
282 TEST_FIELD_OFFSET(CREATESTRUCTW, lpCreateParams, 0)
307 TEST_FIELD_SIZE (CREATESTRUCTW, lpszName, 8)
308 TEST_FIELD_ALIGN (CREATESTRUCTW, lpszName, 8)
309 TEST_FIELD_OFFSET(CREATESTRUCTW, lpszName, 56)
310 TEST_FIELD_SIZE (CREATESTRUCTW, lpszClass, 8)
311 TEST_FIELD_ALIGN (CREATESTRUCTW, lpszClass, 8)
312 TEST_FIELD_OFFSET(CREATESTRUCTW, lpszClass, 64)
313 TEST_FIELD_SIZE (CREATESTRUCTW, dwExStyle, 4)
314 TEST_FIELD_ALIGN (CREATESTRUCTW, dwExStyle, 4)
315 TEST_FIELD_OFFSET(CREATESTRUCTW, dwExStyle, 72)
316}
317
318static void test_pack_CURSORINFO(void)
319{
320 /* CURSORINFO */
323 TEST_FIELD_SIZE (CURSORINFO, cbSize, 4)
324 TEST_FIELD_ALIGN (CURSORINFO, cbSize, 4)
325 TEST_FIELD_OFFSET(CURSORINFO, cbSize, 0)
329 TEST_FIELD_SIZE (CURSORINFO, hCursor, 8)
330 TEST_FIELD_ALIGN (CURSORINFO, hCursor, 8)
331 TEST_FIELD_OFFSET(CURSORINFO, hCursor, 8)
332 TEST_FIELD_SIZE (CURSORINFO, ptScreenPos, 8)
333 TEST_FIELD_ALIGN (CURSORINFO, ptScreenPos, 4)
334 TEST_FIELD_OFFSET(CURSORINFO, ptScreenPos, 16)
335}
336
337static void test_pack_CWPRETSTRUCT(void)
338{
339 /* CWPRETSTRUCT */
342 TEST_FIELD_SIZE (CWPRETSTRUCT, lResult, 8)
343 TEST_FIELD_ALIGN (CWPRETSTRUCT, lResult, 8)
357}
358
359static void test_pack_CWPSTRUCT(void)
360{
361 /* CWPSTRUCT */
376}
377
378static void test_pack_DEBUGHOOKINFO(void)
379{
380 /* DEBUGHOOKINFO */
383 TEST_FIELD_SIZE (DEBUGHOOKINFO, idThread, 4)
384 TEST_FIELD_ALIGN (DEBUGHOOKINFO, idThread, 4)
385 TEST_FIELD_OFFSET(DEBUGHOOKINFO, idThread, 0)
386 TEST_FIELD_SIZE (DEBUGHOOKINFO, idThreadInstaller, 4)
387 TEST_FIELD_ALIGN (DEBUGHOOKINFO, idThreadInstaller, 4)
388 TEST_FIELD_OFFSET(DEBUGHOOKINFO, idThreadInstaller, 4)
398}
399
400static void test_pack_DELETEITEMSTRUCT(void)
401{
402 /* DELETEITEMSTRUCT */
414 TEST_FIELD_SIZE (DELETEITEMSTRUCT, hwndItem, 8)
417 TEST_FIELD_SIZE (DELETEITEMSTRUCT, itemData, 8)
420}
421
422static void test_pack_DESKTOPENUMPROCA(void)
423{
424 /* DESKTOPENUMPROCA */
427}
428
429static void test_pack_DESKTOPENUMPROCW(void)
430{
431 /* DESKTOPENUMPROCW */
434}
435
436static void test_pack_DLGITEMTEMPLATE(void)
437{
438 /* DLGITEMTEMPLATE (pack 2) */
444 TEST_FIELD_SIZE (DLGITEMTEMPLATE, dwExtendedStyle, 4)
445 TEST_FIELD_ALIGN (DLGITEMTEMPLATE, dwExtendedStyle, 2)
446 TEST_FIELD_OFFSET(DLGITEMTEMPLATE, dwExtendedStyle, 4)
462}
463
464static void test_pack_DLGPROC(void)
465{
466 /* DLGPROC */
469}
470
471static void test_pack_DLGTEMPLATE(void)
472{
473 /* DLGTEMPLATE (pack 2) */
479 TEST_FIELD_SIZE (DLGTEMPLATE, dwExtendedStyle, 4)
480 TEST_FIELD_ALIGN (DLGTEMPLATE, dwExtendedStyle, 2)
481 TEST_FIELD_OFFSET(DLGTEMPLATE, dwExtendedStyle, 4)
497}
498
499static void test_pack_DRAWITEMSTRUCT(void)
500{
501 /* DRAWITEMSTRUCT */
504 TEST_FIELD_SIZE (DRAWITEMSTRUCT, CtlType, 4)
505 TEST_FIELD_ALIGN (DRAWITEMSTRUCT, CtlType, 4)
513 TEST_FIELD_SIZE (DRAWITEMSTRUCT, itemAction, 4)
514 TEST_FIELD_ALIGN (DRAWITEMSTRUCT, itemAction, 4)
515 TEST_FIELD_OFFSET(DRAWITEMSTRUCT, itemAction, 12)
516 TEST_FIELD_SIZE (DRAWITEMSTRUCT, itemState, 4)
517 TEST_FIELD_ALIGN (DRAWITEMSTRUCT, itemState, 4)
518 TEST_FIELD_OFFSET(DRAWITEMSTRUCT, itemState, 16)
519 TEST_FIELD_SIZE (DRAWITEMSTRUCT, hwndItem, 8)
520 TEST_FIELD_ALIGN (DRAWITEMSTRUCT, hwndItem, 8)
521 TEST_FIELD_OFFSET(DRAWITEMSTRUCT, hwndItem, 24)
525 TEST_FIELD_SIZE (DRAWITEMSTRUCT, rcItem, 16)
528 TEST_FIELD_SIZE (DRAWITEMSTRUCT, itemData, 8)
529 TEST_FIELD_ALIGN (DRAWITEMSTRUCT, itemData, 8)
530 TEST_FIELD_OFFSET(DRAWITEMSTRUCT, itemData, 56)
531}
532
533static void test_pack_DRAWSTATEPROC(void)
534{
535 /* DRAWSTATEPROC */
538}
539
540static void test_pack_DRAWTEXTPARAMS(void)
541{
542 /* DRAWTEXTPARAMS */
548 TEST_FIELD_SIZE (DRAWTEXTPARAMS, iTabLength, 4)
549 TEST_FIELD_ALIGN (DRAWTEXTPARAMS, iTabLength, 4)
550 TEST_FIELD_OFFSET(DRAWTEXTPARAMS, iTabLength, 4)
551 TEST_FIELD_SIZE (DRAWTEXTPARAMS, iLeftMargin, 4)
552 TEST_FIELD_ALIGN (DRAWTEXTPARAMS, iLeftMargin, 4)
553 TEST_FIELD_OFFSET(DRAWTEXTPARAMS, iLeftMargin, 8)
554 TEST_FIELD_SIZE (DRAWTEXTPARAMS, iRightMargin, 4)
555 TEST_FIELD_ALIGN (DRAWTEXTPARAMS, iRightMargin, 4)
556 TEST_FIELD_OFFSET(DRAWTEXTPARAMS, iRightMargin, 12)
557 TEST_FIELD_SIZE (DRAWTEXTPARAMS, uiLengthDrawn, 4)
558 TEST_FIELD_ALIGN (DRAWTEXTPARAMS, uiLengthDrawn, 4)
559 TEST_FIELD_OFFSET(DRAWTEXTPARAMS, uiLengthDrawn, 16)
560}
561
562static void test_pack_EDITWORDBREAKPROCA(void)
563{
564 /* EDITWORDBREAKPROCA */
567}
568
569static void test_pack_EDITWORDBREAKPROCW(void)
570{
571 /* EDITWORDBREAKPROCW */
574}
575
576static void test_pack_EVENTMSG(void)
577{
578 /* EVENTMSG */
584 TEST_FIELD_SIZE (EVENTMSG, paramL, 4)
585 TEST_FIELD_ALIGN (EVENTMSG, paramL, 4)
586 TEST_FIELD_OFFSET(EVENTMSG, paramL, 4)
587 TEST_FIELD_SIZE (EVENTMSG, paramH, 4)
588 TEST_FIELD_ALIGN (EVENTMSG, paramH, 4)
589 TEST_FIELD_OFFSET(EVENTMSG, paramH, 8)
596}
597
598static void test_pack_FILTERKEYS(void)
599{
600 /* FILTERKEYS */
603 TEST_FIELD_SIZE (FILTERKEYS, cbSize, 4)
604 TEST_FIELD_ALIGN (FILTERKEYS, cbSize, 4)
605 TEST_FIELD_OFFSET(FILTERKEYS, cbSize, 0)
609 TEST_FIELD_SIZE (FILTERKEYS, iWaitMSec, 4)
610 TEST_FIELD_ALIGN (FILTERKEYS, iWaitMSec, 4)
611 TEST_FIELD_OFFSET(FILTERKEYS, iWaitMSec, 8)
612 TEST_FIELD_SIZE (FILTERKEYS, iDelayMSec, 4)
613 TEST_FIELD_ALIGN (FILTERKEYS, iDelayMSec, 4)
614 TEST_FIELD_OFFSET(FILTERKEYS, iDelayMSec, 12)
615 TEST_FIELD_SIZE (FILTERKEYS, iRepeatMSec, 4)
616 TEST_FIELD_ALIGN (FILTERKEYS, iRepeatMSec, 4)
617 TEST_FIELD_OFFSET(FILTERKEYS, iRepeatMSec, 16)
618 TEST_FIELD_SIZE (FILTERKEYS, iBounceMSec, 4)
619 TEST_FIELD_ALIGN (FILTERKEYS, iBounceMSec, 4)
620 TEST_FIELD_OFFSET(FILTERKEYS, iBounceMSec, 20)
621}
622
623static void test_pack_FLASHWINFO(void)
624{
625 /* FLASHWINFO */
626 TEST_TYPE_SIZE (FLASHWINFO, 32)
627 TEST_TYPE_ALIGN (FLASHWINFO, 8)
628 TEST_FIELD_SIZE (FLASHWINFO, cbSize, 4)
629 TEST_FIELD_ALIGN (FLASHWINFO, cbSize, 4)
630 TEST_FIELD_OFFSET(FLASHWINFO, cbSize, 0)
631 TEST_FIELD_SIZE (FLASHWINFO, hwnd, 8)
632 TEST_FIELD_ALIGN (FLASHWINFO, hwnd, 8)
633 TEST_FIELD_OFFSET(FLASHWINFO, hwnd, 8)
634 TEST_FIELD_SIZE (FLASHWINFO, dwFlags, 4)
635 TEST_FIELD_ALIGN (FLASHWINFO, dwFlags, 4)
636 TEST_FIELD_OFFSET(FLASHWINFO, dwFlags, 16)
637 TEST_FIELD_SIZE (FLASHWINFO, uCount, 4)
638 TEST_FIELD_ALIGN (FLASHWINFO, uCount, 4)
639 TEST_FIELD_OFFSET(FLASHWINFO, uCount, 20)
640 TEST_FIELD_SIZE (FLASHWINFO, dwTimeout, 4)
641 TEST_FIELD_ALIGN (FLASHWINFO, dwTimeout, 4)
642 TEST_FIELD_OFFSET(FLASHWINFO, dwTimeout, 24)
643}
644
645static void test_pack_GRAYSTRINGPROC(void)
646{
647 /* GRAYSTRINGPROC */
650}
651
652static void test_pack_GUITHREADINFO(void)
653{
654 /* GUITHREADINFO */
657 TEST_FIELD_SIZE (GUITHREADINFO, cbSize, 4)
663 TEST_FIELD_SIZE (GUITHREADINFO, hwndActive, 8)
664 TEST_FIELD_ALIGN (GUITHREADINFO, hwndActive, 8)
665 TEST_FIELD_OFFSET(GUITHREADINFO, hwndActive, 8)
666 TEST_FIELD_SIZE (GUITHREADINFO, hwndFocus, 8)
667 TEST_FIELD_ALIGN (GUITHREADINFO, hwndFocus, 8)
668 TEST_FIELD_OFFSET(GUITHREADINFO, hwndFocus, 16)
669 TEST_FIELD_SIZE (GUITHREADINFO, hwndCapture, 8)
670 TEST_FIELD_ALIGN (GUITHREADINFO, hwndCapture, 8)
671 TEST_FIELD_OFFSET(GUITHREADINFO, hwndCapture, 24)
672 TEST_FIELD_SIZE (GUITHREADINFO, hwndMenuOwner, 8)
673 TEST_FIELD_ALIGN (GUITHREADINFO, hwndMenuOwner, 8)
674 TEST_FIELD_OFFSET(GUITHREADINFO, hwndMenuOwner, 32)
675 TEST_FIELD_SIZE (GUITHREADINFO, hwndMoveSize, 8)
676 TEST_FIELD_ALIGN (GUITHREADINFO, hwndMoveSize, 8)
677 TEST_FIELD_OFFSET(GUITHREADINFO, hwndMoveSize, 40)
678 TEST_FIELD_SIZE (GUITHREADINFO, hwndCaret, 8)
679 TEST_FIELD_ALIGN (GUITHREADINFO, hwndCaret, 8)
680 TEST_FIELD_OFFSET(GUITHREADINFO, hwndCaret, 48)
681 TEST_FIELD_SIZE (GUITHREADINFO, rcCaret, 16)
682 TEST_FIELD_ALIGN (GUITHREADINFO, rcCaret, 4)
683 TEST_FIELD_OFFSET(GUITHREADINFO, rcCaret, 56)
684}
685
686static void test_pack_HARDWAREHOOKSTRUCT(void)
687{
688 /* HARDWAREHOOKSTRUCT */
703}
704
705static void test_pack_HARDWAREINPUT(void)
706{
707 /* HARDWAREINPUT */
713 TEST_FIELD_SIZE (HARDWAREINPUT, wParamL, 2)
714 TEST_FIELD_ALIGN (HARDWAREINPUT, wParamL, 2)
716 TEST_FIELD_SIZE (HARDWAREINPUT, wParamH, 2)
717 TEST_FIELD_ALIGN (HARDWAREINPUT, wParamH, 2)
719}
720
721static void test_pack_HDEVNOTIFY(void)
722{
723 /* HDEVNOTIFY */
724 TEST_TYPE_SIZE (HDEVNOTIFY, 8)
725 TEST_TYPE_ALIGN (HDEVNOTIFY, 8)
726}
727
728static void test_pack_HDWP(void)
729{
730 /* HDWP */
731 TEST_TYPE_SIZE (HDWP, 8)
732 TEST_TYPE_ALIGN (HDWP, 8)
733}
734
735static void test_pack_HELPINFO(void)
736{
737 /* HELPINFO */
740 TEST_FIELD_SIZE (HELPINFO, cbSize, 4)
741 TEST_FIELD_ALIGN (HELPINFO, cbSize, 4)
742 TEST_FIELD_OFFSET(HELPINFO, cbSize, 0)
743 TEST_FIELD_SIZE (HELPINFO, iContextType, 4)
744 TEST_FIELD_ALIGN (HELPINFO, iContextType, 4)
745 TEST_FIELD_OFFSET(HELPINFO, iContextType, 4)
746 TEST_FIELD_SIZE (HELPINFO, iCtrlId, 4)
747 TEST_FIELD_ALIGN (HELPINFO, iCtrlId, 4)
748 TEST_FIELD_OFFSET(HELPINFO, iCtrlId, 8)
749 TEST_FIELD_SIZE (HELPINFO, hItemHandle, 8)
750 TEST_FIELD_ALIGN (HELPINFO, hItemHandle, 8)
751 TEST_FIELD_OFFSET(HELPINFO, hItemHandle, 16)
752 TEST_FIELD_SIZE (HELPINFO, dwContextId, 8)
753 TEST_FIELD_ALIGN (HELPINFO, dwContextId, 8)
754 TEST_FIELD_OFFSET(HELPINFO, dwContextId, 24)
755 TEST_FIELD_SIZE (HELPINFO, MousePos, 8)
756 TEST_FIELD_ALIGN (HELPINFO, MousePos, 4)
757 TEST_FIELD_OFFSET(HELPINFO, MousePos, 32)
758}
759
760static void test_pack_HELPWININFOA(void)
761{
762 /* HELPWININFOA */
765 TEST_FIELD_SIZE (HELPWININFOA, wStructSize, 4)
766 TEST_FIELD_ALIGN (HELPWININFOA, wStructSize, 4)
767 TEST_FIELD_OFFSET(HELPWININFOA, wStructSize, 0)
783 TEST_FIELD_SIZE (HELPWININFOA, rgchMember, 2)
784 TEST_FIELD_ALIGN (HELPWININFOA, rgchMember, 1)
785 TEST_FIELD_OFFSET(HELPWININFOA, rgchMember, 24)
786}
787
788static void test_pack_HELPWININFOW(void)
789{
790 /* HELPWININFOW */
793 TEST_FIELD_SIZE (HELPWININFOW, wStructSize, 4)
794 TEST_FIELD_ALIGN (HELPWININFOW, wStructSize, 4)
795 TEST_FIELD_OFFSET(HELPWININFOW, wStructSize, 0)
811 TEST_FIELD_SIZE (HELPWININFOW, rgchMember, 4)
812 TEST_FIELD_ALIGN (HELPWININFOW, rgchMember, 2)
813 TEST_FIELD_OFFSET(HELPWININFOW, rgchMember, 24)
814}
815
816static void test_pack_HIGHCONTRASTA(void)
817{
818 /* HIGHCONTRASTA */
821 TEST_FIELD_SIZE (HIGHCONTRASTA, cbSize, 4)
827 TEST_FIELD_SIZE (HIGHCONTRASTA, lpszDefaultScheme, 8)
828 TEST_FIELD_ALIGN (HIGHCONTRASTA, lpszDefaultScheme, 8)
829 TEST_FIELD_OFFSET(HIGHCONTRASTA, lpszDefaultScheme, 8)
830}
831
832static void test_pack_HIGHCONTRASTW(void)
833{
834 /* HIGHCONTRASTW */
837 TEST_FIELD_SIZE (HIGHCONTRASTW, cbSize, 4)
843 TEST_FIELD_SIZE (HIGHCONTRASTW, lpszDefaultScheme, 8)
844 TEST_FIELD_ALIGN (HIGHCONTRASTW, lpszDefaultScheme, 8)
845 TEST_FIELD_OFFSET(HIGHCONTRASTW, lpszDefaultScheme, 8)
846}
847
848static void test_pack_HOOKPROC(void)
849{
850 /* HOOKPROC */
853}
854
855static void test_pack_ICONINFO(void)
856{
857 /* ICONINFO */
860 TEST_FIELD_SIZE (ICONINFO, fIcon, 4)
861 TEST_FIELD_ALIGN (ICONINFO, fIcon, 4)
862 TEST_FIELD_OFFSET(ICONINFO, fIcon, 0)
863 TEST_FIELD_SIZE (ICONINFO, xHotspot, 4)
864 TEST_FIELD_ALIGN (ICONINFO, xHotspot, 4)
865 TEST_FIELD_OFFSET(ICONINFO, xHotspot, 4)
866 TEST_FIELD_SIZE (ICONINFO, yHotspot, 4)
867 TEST_FIELD_ALIGN (ICONINFO, yHotspot, 4)
868 TEST_FIELD_OFFSET(ICONINFO, yHotspot, 8)
869 TEST_FIELD_SIZE (ICONINFO, hbmMask, 8)
870 TEST_FIELD_ALIGN (ICONINFO, hbmMask, 8)
871 TEST_FIELD_OFFSET(ICONINFO, hbmMask, 16)
872 TEST_FIELD_SIZE (ICONINFO, hbmColor, 8)
873 TEST_FIELD_ALIGN (ICONINFO, hbmColor, 8)
874 TEST_FIELD_OFFSET(ICONINFO, hbmColor, 24)
875}
876
877static void test_pack_ICONMETRICSA(void)
878{
879 /* ICONMETRICSA */
880 TEST_TYPE_SIZE (ICONMETRICSA, 76)
881 TEST_TYPE_ALIGN (ICONMETRICSA, 4)
882 TEST_FIELD_SIZE (ICONMETRICSA, cbSize, 4)
883 TEST_FIELD_ALIGN (ICONMETRICSA, cbSize, 4)
884 TEST_FIELD_OFFSET(ICONMETRICSA, cbSize, 0)
885 TEST_FIELD_SIZE (ICONMETRICSA, iHorzSpacing, 4)
886 TEST_FIELD_ALIGN (ICONMETRICSA, iHorzSpacing, 4)
887 TEST_FIELD_OFFSET(ICONMETRICSA, iHorzSpacing, 4)
888 TEST_FIELD_SIZE (ICONMETRICSA, iVertSpacing, 4)
889 TEST_FIELD_ALIGN (ICONMETRICSA, iVertSpacing, 4)
890 TEST_FIELD_OFFSET(ICONMETRICSA, iVertSpacing, 8)
891 TEST_FIELD_SIZE (ICONMETRICSA, iTitleWrap, 4)
892 TEST_FIELD_ALIGN (ICONMETRICSA, iTitleWrap, 4)
893 TEST_FIELD_OFFSET(ICONMETRICSA, iTitleWrap, 12)
894 TEST_FIELD_SIZE (ICONMETRICSA, lfFont, 60)
895 TEST_FIELD_ALIGN (ICONMETRICSA, lfFont, 4)
896 TEST_FIELD_OFFSET(ICONMETRICSA, lfFont, 16)
897}
898
899static void test_pack_ICONMETRICSW(void)
900{
901 /* ICONMETRICSW */
902 TEST_TYPE_SIZE (ICONMETRICSW, 108)
903 TEST_TYPE_ALIGN (ICONMETRICSW, 4)
904 TEST_FIELD_SIZE (ICONMETRICSW, cbSize, 4)
905 TEST_FIELD_ALIGN (ICONMETRICSW, cbSize, 4)
906 TEST_FIELD_OFFSET(ICONMETRICSW, cbSize, 0)
907 TEST_FIELD_SIZE (ICONMETRICSW, iHorzSpacing, 4)
908 TEST_FIELD_ALIGN (ICONMETRICSW, iHorzSpacing, 4)
909 TEST_FIELD_OFFSET(ICONMETRICSW, iHorzSpacing, 4)
910 TEST_FIELD_SIZE (ICONMETRICSW, iVertSpacing, 4)
911 TEST_FIELD_ALIGN (ICONMETRICSW, iVertSpacing, 4)
912 TEST_FIELD_OFFSET(ICONMETRICSW, iVertSpacing, 8)
913 TEST_FIELD_SIZE (ICONMETRICSW, iTitleWrap, 4)
914 TEST_FIELD_ALIGN (ICONMETRICSW, iTitleWrap, 4)
915 TEST_FIELD_OFFSET(ICONMETRICSW, iTitleWrap, 12)
916 TEST_FIELD_SIZE (ICONMETRICSW, lfFont, 92)
917 TEST_FIELD_ALIGN (ICONMETRICSW, lfFont, 4)
918 TEST_FIELD_OFFSET(ICONMETRICSW, lfFont, 16)
919}
920
921static void test_pack_INPUT(void)
922{
923 /* INPUT */
927}
928
929static void test_pack_KBDLLHOOKSTRUCT(void)
930{
931 /* KBDLLHOOKSTRUCT */
937 TEST_FIELD_SIZE (KBDLLHOOKSTRUCT, scanCode, 4)
938 TEST_FIELD_ALIGN (KBDLLHOOKSTRUCT, scanCode, 4)
946 TEST_FIELD_SIZE (KBDLLHOOKSTRUCT, dwExtraInfo, 8)
947 TEST_FIELD_ALIGN (KBDLLHOOKSTRUCT, dwExtraInfo, 8)
948 TEST_FIELD_OFFSET(KBDLLHOOKSTRUCT, dwExtraInfo, 16)
949}
950
951static void test_pack_KEYBDINPUT(void)
952{
953 /* KEYBDINPUT */
959 TEST_FIELD_SIZE (KEYBDINPUT, wScan, 2)
960 TEST_FIELD_ALIGN (KEYBDINPUT, wScan, 2)
968 TEST_FIELD_SIZE (KEYBDINPUT, dwExtraInfo, 8)
969 TEST_FIELD_ALIGN (KEYBDINPUT, dwExtraInfo, 8)
970 TEST_FIELD_OFFSET(KEYBDINPUT, dwExtraInfo, 16)
971}
972
973static void test_pack_LPACCESSTIMEOUT(void)
974{
975 /* LPACCESSTIMEOUT */
980}
981
982static void test_pack_LPANIMATIONINFO(void)
983{
984 /* LPANIMATIONINFO */
989}
990
991static void test_pack_LPCBTACTIVATESTRUCT(void)
992{
993 /* LPCBTACTIVATESTRUCT */
998}
999
1000static void test_pack_LPCBT_CREATEWNDA(void)
1001{
1002 /* LPCBT_CREATEWNDA */
1007}
1008
1009static void test_pack_LPCBT_CREATEWNDW(void)
1010{
1011 /* LPCBT_CREATEWNDW */
1016}
1017
1018static void test_pack_LPCDLGTEMPLATEA(void)
1019{
1020 /* LPCDLGTEMPLATEA */
1025}
1026
1027static void test_pack_LPCDLGTEMPLATEW(void)
1028{
1029 /* LPCDLGTEMPLATEW */
1034}
1035
1036static void test_pack_LPCLIENTCREATESTRUCT(void)
1037{
1038 /* LPCLIENTCREATESTRUCT */
1043}
1044
1045static void test_pack_LPCMENUINFO(void)
1046{
1047 /* LPCMENUINFO */
1052}
1053
1054static void test_pack_LPCMENUITEMINFOA(void)
1055{
1056 /* LPCMENUITEMINFOA */
1061}
1062
1063static void test_pack_LPCMENUITEMINFOW(void)
1064{
1065 /* LPCMENUITEMINFOW */
1070}
1071
1072static void test_pack_LPCOMBOBOXINFO(void)
1073{
1074 /* LPCOMBOBOXINFO */
1079}
1080
1081static void test_pack_LPCOMPAREITEMSTRUCT(void)
1082{
1083 /* LPCOMPAREITEMSTRUCT */
1088}
1089
1090static void test_pack_LPCREATESTRUCTA(void)
1091{
1092 /* LPCREATESTRUCTA */
1097}
1098
1099static void test_pack_LPCREATESTRUCTW(void)
1100{
1101 /* LPCREATESTRUCTW */
1106}
1107
1108static void test_pack_LPCSCROLLINFO(void)
1109{
1110 /* LPCSCROLLINFO */
1115}
1116
1117static void test_pack_LPCURSORINFO(void)
1118{
1119 /* LPCURSORINFO */
1124}
1125
1126static void test_pack_LPCWPRETSTRUCT(void)
1127{
1128 /* LPCWPRETSTRUCT */
1133}
1134
1135static void test_pack_LPCWPSTRUCT(void)
1136{
1137 /* LPCWPSTRUCT */
1142}
1143
1144static void test_pack_LPDEBUGHOOKINFO(void)
1145{
1146 /* LPDEBUGHOOKINFO */
1151}
1152
1153static void test_pack_LPDELETEITEMSTRUCT(void)
1154{
1155 /* LPDELETEITEMSTRUCT */
1160}
1161
1162static void test_pack_LPDLGITEMTEMPLATEA(void)
1163{
1164 /* LPDLGITEMTEMPLATEA */
1169}
1170
1171static void test_pack_LPDLGITEMTEMPLATEW(void)
1172{
1173 /* LPDLGITEMTEMPLATEW */
1178}
1179
1180static void test_pack_LPDLGTEMPLATEA(void)
1181{
1182 /* LPDLGTEMPLATEA */
1187}
1188
1189static void test_pack_LPDLGTEMPLATEW(void)
1190{
1191 /* LPDLGTEMPLATEW */
1196}
1197
1198static void test_pack_LPDRAWITEMSTRUCT(void)
1199{
1200 /* LPDRAWITEMSTRUCT */
1205}
1206
1207static void test_pack_LPDRAWTEXTPARAMS(void)
1208{
1209 /* LPDRAWTEXTPARAMS */
1214}
1215
1216static void test_pack_LPEVENTMSG(void)
1217{
1218 /* LPEVENTMSG */
1223}
1224
1225static void test_pack_LPFILTERKEYS(void)
1226{
1227 /* LPFILTERKEYS */
1232}
1233
1234static void test_pack_LPGUITHREADINFO(void)
1235{
1236 /* LPGUITHREADINFO */
1241}
1242
1243static void test_pack_LPHARDWAREHOOKSTRUCT(void)
1244{
1245 /* LPHARDWAREHOOKSTRUCT */
1250}
1251
1252static void test_pack_LPHARDWAREINPUT(void)
1253{
1254 /* LPHARDWAREINPUT */
1255 TEST_TYPE_SIZE (LPHARDWAREINPUT, 8)
1256 TEST_TYPE_ALIGN (LPHARDWAREINPUT, 8)
1257 TEST_TARGET_SIZE (LPHARDWAREINPUT, 8)
1258 TEST_TARGET_ALIGN(LPHARDWAREINPUT, 4)
1259}
1260
1261static void test_pack_LPHELPINFO(void)
1262{
1263 /* LPHELPINFO */
1268}
1269
1270static void test_pack_LPHELPWININFOA(void)
1271{
1272 /* LPHELPWININFOA */
1277}
1278
1279static void test_pack_LPHELPWININFOW(void)
1280{
1281 /* LPHELPWININFOW */
1286}
1287
1288static void test_pack_LPHIGHCONTRASTA(void)
1289{
1290 /* LPHIGHCONTRASTA */
1295}
1296
1297static void test_pack_LPHIGHCONTRASTW(void)
1298{
1299 /* LPHIGHCONTRASTW */
1304}
1305
1306static void test_pack_LPICONMETRICSA(void)
1307{
1308 /* LPICONMETRICSA */
1309 TEST_TYPE_SIZE (LPICONMETRICSA, 8)
1310 TEST_TYPE_ALIGN (LPICONMETRICSA, 8)
1311 TEST_TARGET_SIZE (LPICONMETRICSA, 76)
1312 TEST_TARGET_ALIGN(LPICONMETRICSA, 4)
1313}
1314
1315static void test_pack_LPICONMETRICSW(void)
1316{
1317 /* LPICONMETRICSW */
1318 TEST_TYPE_SIZE (LPICONMETRICSW, 8)
1319 TEST_TYPE_ALIGN (LPICONMETRICSW, 8)
1320 TEST_TARGET_SIZE (LPICONMETRICSW, 108)
1321 TEST_TARGET_ALIGN(LPICONMETRICSW, 4)
1322}
1323
1324static void test_pack_LPINPUT(void)
1325{
1326 /* LPINPUT */
1329}
1330
1331static void test_pack_LPKBDLLHOOKSTRUCT(void)
1332{
1333 /* LPKBDLLHOOKSTRUCT */
1338}
1339
1340static void test_pack_LPKEYBDINPUT(void)
1341{
1342 /* LPKEYBDINPUT */
1343 TEST_TYPE_SIZE (LPKEYBDINPUT, 8)
1344 TEST_TYPE_ALIGN (LPKEYBDINPUT, 8)
1345 TEST_TARGET_SIZE (LPKEYBDINPUT, 24)
1346 TEST_TARGET_ALIGN(LPKEYBDINPUT, 8)
1347}
1348
1349static void test_pack_LPMDICREATESTRUCTA(void)
1350{
1351 /* LPMDICREATESTRUCTA */
1356}
1357
1358static void test_pack_LPMDICREATESTRUCTW(void)
1359{
1360 /* LPMDICREATESTRUCTW */
1365}
1366
1367static void test_pack_LPMDINEXTMENU(void)
1368{
1369 /* LPMDINEXTMENU */
1374}
1375
1376static void test_pack_LPMEASUREITEMSTRUCT(void)
1377{
1378 /* LPMEASUREITEMSTRUCT */
1383}
1384
1385static void test_pack_LPMENUINFO(void)
1386{
1387 /* LPMENUINFO */
1392}
1393
1394static void test_pack_LPMENUITEMINFOA(void)
1395{
1396 /* LPMENUITEMINFOA */
1401}
1402
1403static void test_pack_LPMENUITEMINFOW(void)
1404{
1405 /* LPMENUITEMINFOW */
1410}
1411
1412static void test_pack_LPMINIMIZEDMETRICS(void)
1413{
1414 /* LPMINIMIZEDMETRICS */
1419}
1420
1421static void test_pack_LPMINMAXINFO(void)
1422{
1423 /* LPMINMAXINFO */
1428}
1429
1430static void test_pack_LPMONITORINFO(void)
1431{
1432 /* LPMONITORINFO */
1437}
1438
1439static void test_pack_LPMONITORINFOEXA(void)
1440{
1441 /* LPMONITORINFOEXA */
1446}
1447
1448static void test_pack_LPMONITORINFOEXW(void)
1449{
1450 /* LPMONITORINFOEXW */
1455}
1456
1457static void test_pack_LPMOUSEHOOKSTRUCT(void)
1458{
1459 /* LPMOUSEHOOKSTRUCT */
1464}
1465
1466static void test_pack_LPMOUSEINPUT(void)
1467{
1468 /* LPMOUSEINPUT */
1469 TEST_TYPE_SIZE (LPMOUSEINPUT, 8)
1470 TEST_TYPE_ALIGN (LPMOUSEINPUT, 8)
1471 TEST_TARGET_SIZE (LPMOUSEINPUT, 32)
1472 TEST_TARGET_ALIGN(LPMOUSEINPUT, 8)
1473}
1474
1475static void test_pack_LPMOUSEKEYS(void)
1476{
1477 /* LPMOUSEKEYS */
1482}
1483
1484static void test_pack_LPMSG(void)
1485{
1486 /* LPMSG */
1491}
1492
1493static void test_pack_LPMSGBOXPARAMSA(void)
1494{
1495 /* LPMSGBOXPARAMSA */
1500}
1501
1502static void test_pack_LPMSGBOXPARAMSW(void)
1503{
1504 /* LPMSGBOXPARAMSW */
1509}
1510
1511static void test_pack_LPMSLLHOOKSTRUCT(void)
1512{
1513 /* LPMSLLHOOKSTRUCT */
1518}
1519
1520static void test_pack_LPMULTIKEYHELPA(void)
1521{
1522 /* LPMULTIKEYHELPA */
1527}
1528
1529static void test_pack_LPMULTIKEYHELPW(void)
1530{
1531 /* LPMULTIKEYHELPW */
1536}
1537
1538static void test_pack_LPNCCALCSIZE_PARAMS(void)
1539{
1540 /* LPNCCALCSIZE_PARAMS */
1545}
1546
1547static void test_pack_LPNMHDR(void)
1548{
1549 /* LPNMHDR */
1554}
1555
1556static void test_pack_LPNONCLIENTMETRICSA(void)
1557{
1558 /* LPNONCLIENTMETRICSA */
1559 TEST_TYPE_SIZE (LPNONCLIENTMETRICSA, 8)
1560 TEST_TYPE_ALIGN (LPNONCLIENTMETRICSA, 8)
1561 TEST_TARGET_SIZE (LPNONCLIENTMETRICSA, 344)
1562 TEST_TARGET_ALIGN(LPNONCLIENTMETRICSA, 4)
1563}
1564
1565static void test_pack_LPNONCLIENTMETRICSW(void)
1566{
1567 /* LPNONCLIENTMETRICSW */
1568 TEST_TYPE_SIZE (LPNONCLIENTMETRICSW, 8)
1569 TEST_TYPE_ALIGN (LPNONCLIENTMETRICSW, 8)
1570 TEST_TARGET_SIZE (LPNONCLIENTMETRICSW, 504)
1571 TEST_TARGET_ALIGN(LPNONCLIENTMETRICSW, 4)
1572}
1573
1574static void test_pack_LPPAINTSTRUCT(void)
1575{
1576 /* LPPAINTSTRUCT */
1581}
1582
1583static void test_pack_LPSCROLLINFO(void)
1584{
1585 /* LPSCROLLINFO */
1590}
1591
1592static void test_pack_LPSERIALKEYSA(void)
1593{
1594 /* LPSERIALKEYSA */
1599}
1600
1601static void test_pack_LPSERIALKEYSW(void)
1602{
1603 /* LPSERIALKEYSW */
1608}
1609
1610static void test_pack_LPSOUNDSENTRYA(void)
1611{
1612 /* LPSOUNDSENTRYA */
1617}
1618
1619static void test_pack_LPSOUNDSENTRYW(void)
1620{
1621 /* LPSOUNDSENTRYW */
1626}
1627
1628static void test_pack_LPSTICKYKEYS(void)
1629{
1630 /* LPSTICKYKEYS */
1635}
1636
1637static void test_pack_LPSTYLESTRUCT(void)
1638{
1639 /* LPSTYLESTRUCT */
1644}
1645
1646static void test_pack_LPTITLEBARINFO(void)
1647{
1648 /* LPTITLEBARINFO */
1653}
1654
1655static void test_pack_LPTOGGLEKEYS(void)
1656{
1657 /* LPTOGGLEKEYS */
1662}
1663
1664static void test_pack_LPTPMPARAMS(void)
1665{
1666 /* LPTPMPARAMS */
1671}
1672
1673static void test_pack_LPTRACKMOUSEEVENT(void)
1674{
1675 /* LPTRACKMOUSEEVENT */
1680}
1681
1682static void test_pack_LPWINDOWINFO(void)
1683{
1684 /* LPWINDOWINFO */
1689}
1690
1691static void test_pack_LPWINDOWPLACEMENT(void)
1692{
1693 /* LPWINDOWPLACEMENT */
1698}
1699
1700static void test_pack_LPWINDOWPOS(void)
1701{
1702 /* LPWINDOWPOS */
1707}
1708
1709static void test_pack_LPWNDCLASSA(void)
1710{
1711 /* LPWNDCLASSA */
1716}
1717
1718static void test_pack_LPWNDCLASSEXA(void)
1719{
1720 /* LPWNDCLASSEXA */
1725}
1726
1727static void test_pack_LPWNDCLASSEXW(void)
1728{
1729 /* LPWNDCLASSEXW */
1734}
1735
1736static void test_pack_LPWNDCLASSW(void)
1737{
1738 /* LPWNDCLASSW */
1743}
1744
1745static void test_pack_MDICREATESTRUCTA(void)
1746{
1747 /* MDICREATESTRUCTA */
1750 TEST_FIELD_SIZE (MDICREATESTRUCTA, szClass, 8)
1777}
1778
1779static void test_pack_MDICREATESTRUCTW(void)
1780{
1781 /* MDICREATESTRUCTW */
1784 TEST_FIELD_SIZE (MDICREATESTRUCTW, szClass, 8)
1811}
1812
1813static void test_pack_MDINEXTMENU(void)
1814{
1815 /* MDINEXTMENU */
1818 TEST_FIELD_SIZE (MDINEXTMENU, hmenuIn, 8)
1819 TEST_FIELD_ALIGN (MDINEXTMENU, hmenuIn, 8)
1820 TEST_FIELD_OFFSET(MDINEXTMENU, hmenuIn, 0)
1821 TEST_FIELD_SIZE (MDINEXTMENU, hmenuNext, 8)
1822 TEST_FIELD_ALIGN (MDINEXTMENU, hmenuNext, 8)
1823 TEST_FIELD_OFFSET(MDINEXTMENU, hmenuNext, 8)
1824 TEST_FIELD_SIZE (MDINEXTMENU, hwndNext, 8)
1825 TEST_FIELD_ALIGN (MDINEXTMENU, hwndNext, 8)
1826 TEST_FIELD_OFFSET(MDINEXTMENU, hwndNext, 16)
1827}
1828
1829static void test_pack_MEASUREITEMSTRUCT(void)
1830{
1831 /* MEASUREITEMSTRUCT */
1843 TEST_FIELD_SIZE (MEASUREITEMSTRUCT, itemWidth, 4)
1844 TEST_FIELD_ALIGN (MEASUREITEMSTRUCT, itemWidth, 4)
1845 TEST_FIELD_OFFSET(MEASUREITEMSTRUCT, itemWidth, 12)
1846 TEST_FIELD_SIZE (MEASUREITEMSTRUCT, itemHeight, 4)
1847 TEST_FIELD_ALIGN (MEASUREITEMSTRUCT, itemHeight, 4)
1848 TEST_FIELD_OFFSET(MEASUREITEMSTRUCT, itemHeight, 16)
1849 TEST_FIELD_SIZE (MEASUREITEMSTRUCT, itemData, 8)
1850 TEST_FIELD_ALIGN (MEASUREITEMSTRUCT, itemData, 8)
1852}
1853
1854static void test_pack_MENUINFO(void)
1855{
1856 /* MENUINFO */
1859 TEST_FIELD_SIZE (MENUINFO, cbSize, 4)
1860 TEST_FIELD_ALIGN (MENUINFO, cbSize, 4)
1861 TEST_FIELD_OFFSET(MENUINFO, cbSize, 0)
1862 TEST_FIELD_SIZE (MENUINFO, fMask, 4)
1863 TEST_FIELD_ALIGN (MENUINFO, fMask, 4)
1864 TEST_FIELD_OFFSET(MENUINFO, fMask, 4)
1865 TEST_FIELD_SIZE (MENUINFO, dwStyle, 4)
1866 TEST_FIELD_ALIGN (MENUINFO, dwStyle, 4)
1867 TEST_FIELD_OFFSET(MENUINFO, dwStyle, 8)
1868 TEST_FIELD_SIZE (MENUINFO, cyMax, 4)
1869 TEST_FIELD_ALIGN (MENUINFO, cyMax, 4)
1870 TEST_FIELD_OFFSET(MENUINFO, cyMax, 12)
1871 TEST_FIELD_SIZE (MENUINFO, hbrBack, 8)
1872 TEST_FIELD_ALIGN (MENUINFO, hbrBack, 8)
1873 TEST_FIELD_OFFSET(MENUINFO, hbrBack, 16)
1874 TEST_FIELD_SIZE (MENUINFO, dwContextHelpID, 4)
1875 TEST_FIELD_ALIGN (MENUINFO, dwContextHelpID, 4)
1876 TEST_FIELD_OFFSET(MENUINFO, dwContextHelpID, 24)
1877 TEST_FIELD_SIZE (MENUINFO, dwMenuData, 8)
1878 TEST_FIELD_ALIGN (MENUINFO, dwMenuData, 8)
1879 TEST_FIELD_OFFSET(MENUINFO, dwMenuData, 32)
1880}
1881
1882static void test_pack_MENUITEMINFOA(void)
1883{
1884 /* MENUITEMINFOA */
1887 TEST_FIELD_SIZE (MENUITEMINFOA, cbSize, 4)
1888 TEST_FIELD_ALIGN (MENUITEMINFOA, cbSize, 4)
1890 TEST_FIELD_SIZE (MENUITEMINFOA, fMask, 4)
1893 TEST_FIELD_SIZE (MENUITEMINFOA, fType, 4)
1896 TEST_FIELD_SIZE (MENUITEMINFOA, fState, 4)
1897 TEST_FIELD_ALIGN (MENUITEMINFOA, fState, 4)
1898 TEST_FIELD_OFFSET(MENUITEMINFOA, fState, 12)
1902 TEST_FIELD_SIZE (MENUITEMINFOA, hSubMenu, 8)
1903 TEST_FIELD_ALIGN (MENUITEMINFOA, hSubMenu, 8)
1904 TEST_FIELD_OFFSET(MENUITEMINFOA, hSubMenu, 24)
1905 TEST_FIELD_SIZE (MENUITEMINFOA, hbmpChecked, 8)
1906 TEST_FIELD_ALIGN (MENUITEMINFOA, hbmpChecked, 8)
1907 TEST_FIELD_OFFSET(MENUITEMINFOA, hbmpChecked, 32)
1908 TEST_FIELD_SIZE (MENUITEMINFOA, hbmpUnchecked, 8)
1909 TEST_FIELD_ALIGN (MENUITEMINFOA, hbmpUnchecked, 8)
1910 TEST_FIELD_OFFSET(MENUITEMINFOA, hbmpUnchecked, 40)
1911 TEST_FIELD_SIZE (MENUITEMINFOA, dwItemData, 8)
1912 TEST_FIELD_ALIGN (MENUITEMINFOA, dwItemData, 8)
1913 TEST_FIELD_OFFSET(MENUITEMINFOA, dwItemData, 48)
1914 TEST_FIELD_SIZE (MENUITEMINFOA, dwTypeData, 8)
1915 TEST_FIELD_ALIGN (MENUITEMINFOA, dwTypeData, 8)
1916 TEST_FIELD_OFFSET(MENUITEMINFOA, dwTypeData, 56)
1920 TEST_FIELD_SIZE (MENUITEMINFOA, hbmpItem, 8)
1921 TEST_FIELD_ALIGN (MENUITEMINFOA, hbmpItem, 8)
1922 TEST_FIELD_OFFSET(MENUITEMINFOA, hbmpItem, 72)
1923}
1924
1925static void test_pack_MENUITEMINFOW(void)
1926{
1927 /* MENUITEMINFOW */
1930 TEST_FIELD_SIZE (MENUITEMINFOW, cbSize, 4)
1931 TEST_FIELD_ALIGN (MENUITEMINFOW, cbSize, 4)
1933 TEST_FIELD_SIZE (MENUITEMINFOW, fMask, 4)
1936 TEST_FIELD_SIZE (MENUITEMINFOW, fType, 4)
1939 TEST_FIELD_SIZE (MENUITEMINFOW, fState, 4)
1940 TEST_FIELD_ALIGN (MENUITEMINFOW, fState, 4)
1941 TEST_FIELD_OFFSET(MENUITEMINFOW, fState, 12)
1945 TEST_FIELD_SIZE (MENUITEMINFOW, hSubMenu, 8)
1946 TEST_FIELD_ALIGN (MENUITEMINFOW, hSubMenu, 8)
1947 TEST_FIELD_OFFSET(MENUITEMINFOW, hSubMenu, 24)
1948 TEST_FIELD_SIZE (MENUITEMINFOW, hbmpChecked, 8)
1949 TEST_FIELD_ALIGN (MENUITEMINFOW, hbmpChecked, 8)
1950 TEST_FIELD_OFFSET(MENUITEMINFOW, hbmpChecked, 32)
1951 TEST_FIELD_SIZE (MENUITEMINFOW, hbmpUnchecked, 8)
1952 TEST_FIELD_ALIGN (MENUITEMINFOW, hbmpUnchecked, 8)
1953 TEST_FIELD_OFFSET(MENUITEMINFOW, hbmpUnchecked, 40)
1954 TEST_FIELD_SIZE (MENUITEMINFOW, dwItemData, 8)
1955 TEST_FIELD_ALIGN (MENUITEMINFOW, dwItemData, 8)
1956 TEST_FIELD_OFFSET(MENUITEMINFOW, dwItemData, 48)
1957 TEST_FIELD_SIZE (MENUITEMINFOW, dwTypeData, 8)
1958 TEST_FIELD_ALIGN (MENUITEMINFOW, dwTypeData, 8)
1959 TEST_FIELD_OFFSET(MENUITEMINFOW, dwTypeData, 56)
1963 TEST_FIELD_SIZE (MENUITEMINFOW, hbmpItem, 8)
1964 TEST_FIELD_ALIGN (MENUITEMINFOW, hbmpItem, 8)
1965 TEST_FIELD_OFFSET(MENUITEMINFOW, hbmpItem, 72)
1966}
1967
1968static void test_pack_MENUITEMTEMPLATE(void)
1969{
1970 /* MENUITEMTEMPLATE */
1973 TEST_FIELD_SIZE (MENUITEMTEMPLATE, mtOption, 2)
1974 TEST_FIELD_ALIGN (MENUITEMTEMPLATE, mtOption, 2)
1979 TEST_FIELD_SIZE (MENUITEMTEMPLATE, mtString, 2)
1980 TEST_FIELD_ALIGN (MENUITEMTEMPLATE, mtString, 2)
1982}
1983
1984static void test_pack_MENUITEMTEMPLATEHEADER(void)
1985{
1986 /* MENUITEMTEMPLATEHEADER */
1989 TEST_FIELD_SIZE (MENUITEMTEMPLATEHEADER, versionNumber, 2)
1990 TEST_FIELD_ALIGN (MENUITEMTEMPLATEHEADER, versionNumber, 2)
1991 TEST_FIELD_OFFSET(MENUITEMTEMPLATEHEADER, versionNumber, 0)
1995}
1996
1997static void test_pack_MINIMIZEDMETRICS(void)
1998{
1999 /* MINIMIZEDMETRICS */
2008 TEST_FIELD_SIZE (MINIMIZEDMETRICS, iHorzGap, 4)
2009 TEST_FIELD_ALIGN (MINIMIZEDMETRICS, iHorzGap, 4)
2011 TEST_FIELD_SIZE (MINIMIZEDMETRICS, iVertGap, 4)
2012 TEST_FIELD_ALIGN (MINIMIZEDMETRICS, iVertGap, 4)
2013 TEST_FIELD_OFFSET(MINIMIZEDMETRICS, iVertGap, 12)
2014 TEST_FIELD_SIZE (MINIMIZEDMETRICS, iArrange, 4)
2015 TEST_FIELD_ALIGN (MINIMIZEDMETRICS, iArrange, 4)
2016 TEST_FIELD_OFFSET(MINIMIZEDMETRICS, iArrange, 16)
2017}
2018
2019static void test_pack_MINMAXINFO(void)
2020{
2021 /* MINMAXINFO */
2024 TEST_FIELD_SIZE (MINMAXINFO, ptReserved, 8)
2025 TEST_FIELD_ALIGN (MINMAXINFO, ptReserved, 4)
2026 TEST_FIELD_OFFSET(MINMAXINFO, ptReserved, 0)
2027 TEST_FIELD_SIZE (MINMAXINFO, ptMaxSize, 8)
2028 TEST_FIELD_ALIGN (MINMAXINFO, ptMaxSize, 4)
2029 TEST_FIELD_OFFSET(MINMAXINFO, ptMaxSize, 8)
2030 TEST_FIELD_SIZE (MINMAXINFO, ptMaxPosition, 8)
2031 TEST_FIELD_ALIGN (MINMAXINFO, ptMaxPosition, 4)
2032 TEST_FIELD_OFFSET(MINMAXINFO, ptMaxPosition, 16)
2033 TEST_FIELD_SIZE (MINMAXINFO, ptMinTrackSize, 8)
2034 TEST_FIELD_ALIGN (MINMAXINFO, ptMinTrackSize, 4)
2035 TEST_FIELD_OFFSET(MINMAXINFO, ptMinTrackSize, 24)
2036 TEST_FIELD_SIZE (MINMAXINFO, ptMaxTrackSize, 8)
2037 TEST_FIELD_ALIGN (MINMAXINFO, ptMaxTrackSize, 4)
2038 TEST_FIELD_OFFSET(MINMAXINFO, ptMaxTrackSize, 32)
2039}
2040
2041static void test_pack_MONITORENUMPROC(void)
2042{
2043 /* MONITORENUMPROC */
2046}
2047
2048static void test_pack_MONITORINFO(void)
2049{
2050 /* MONITORINFO */
2053 TEST_FIELD_SIZE (MONITORINFO, cbSize, 4)
2054 TEST_FIELD_ALIGN (MONITORINFO, cbSize, 4)
2055 TEST_FIELD_OFFSET(MONITORINFO, cbSize, 0)
2056 TEST_FIELD_SIZE (MONITORINFO, rcMonitor, 16)
2057 TEST_FIELD_ALIGN (MONITORINFO, rcMonitor, 4)
2058 TEST_FIELD_OFFSET(MONITORINFO, rcMonitor, 4)
2059 TEST_FIELD_SIZE (MONITORINFO, rcWork, 16)
2060 TEST_FIELD_ALIGN (MONITORINFO, rcWork, 4)
2061 TEST_FIELD_OFFSET(MONITORINFO, rcWork, 20)
2065}
2066
2067static void test_pack_MONITORINFOEXA(void)
2068{
2069 /* MONITORINFOEXA */
2072 TEST_FIELD_SIZE (MONITORINFOEXA, cbSize, 4)
2073 TEST_FIELD_ALIGN (MONITORINFOEXA, cbSize, 4)
2075 TEST_FIELD_SIZE (MONITORINFOEXA, rcMonitor, 16)
2076 TEST_FIELD_ALIGN (MONITORINFOEXA, rcMonitor, 4)
2077 TEST_FIELD_OFFSET(MONITORINFOEXA, rcMonitor, 4)
2078 TEST_FIELD_SIZE (MONITORINFOEXA, rcWork, 16)
2079 TEST_FIELD_ALIGN (MONITORINFOEXA, rcWork, 4)
2084 TEST_FIELD_SIZE (MONITORINFOEXA, szDevice, 32)
2085 TEST_FIELD_ALIGN (MONITORINFOEXA, szDevice, 1)
2086 TEST_FIELD_OFFSET(MONITORINFOEXA, szDevice, 40)
2087}
2088
2089static void test_pack_MONITORINFOEXW(void)
2090{
2091 /* MONITORINFOEXW */
2094 TEST_FIELD_SIZE (MONITORINFOEXW, cbSize, 4)
2095 TEST_FIELD_ALIGN (MONITORINFOEXW, cbSize, 4)
2097 TEST_FIELD_SIZE (MONITORINFOEXW, rcMonitor, 16)
2098 TEST_FIELD_ALIGN (MONITORINFOEXW, rcMonitor, 4)
2099 TEST_FIELD_OFFSET(MONITORINFOEXW, rcMonitor, 4)
2100 TEST_FIELD_SIZE (MONITORINFOEXW, rcWork, 16)
2101 TEST_FIELD_ALIGN (MONITORINFOEXW, rcWork, 4)
2106 TEST_FIELD_SIZE (MONITORINFOEXW, szDevice, 64)
2107 TEST_FIELD_ALIGN (MONITORINFOEXW, szDevice, 2)
2108 TEST_FIELD_OFFSET(MONITORINFOEXW, szDevice, 40)
2109}
2110
2111static void test_pack_MOUSEHOOKSTRUCT(void)
2112{
2113 /* MOUSEHOOKSTRUCT */
2122 TEST_FIELD_SIZE (MOUSEHOOKSTRUCT, wHitTestCode, 4)
2123 TEST_FIELD_ALIGN (MOUSEHOOKSTRUCT, wHitTestCode, 4)
2124 TEST_FIELD_OFFSET(MOUSEHOOKSTRUCT, wHitTestCode, 16)
2125 TEST_FIELD_SIZE (MOUSEHOOKSTRUCT, dwExtraInfo, 8)
2126 TEST_FIELD_ALIGN (MOUSEHOOKSTRUCT, dwExtraInfo, 8)
2127 TEST_FIELD_OFFSET(MOUSEHOOKSTRUCT, dwExtraInfo, 24)
2128}
2129
2130static void test_pack_MOUSEINPUT(void)
2131{
2132 /* MOUSEINPUT */
2141 TEST_FIELD_SIZE (MOUSEINPUT, mouseData, 4)
2142 TEST_FIELD_ALIGN (MOUSEINPUT, mouseData, 4)
2143 TEST_FIELD_OFFSET(MOUSEINPUT, mouseData, 8)
2150 TEST_FIELD_SIZE (MOUSEINPUT, dwExtraInfo, 8)
2151 TEST_FIELD_ALIGN (MOUSEINPUT, dwExtraInfo, 8)
2152 TEST_FIELD_OFFSET(MOUSEINPUT, dwExtraInfo, 24)
2153}
2154
2155static void test_pack_MOUSEKEYS(void)
2156{
2157 /* MOUSEKEYS */
2160 TEST_FIELD_SIZE (MOUSEKEYS, cbSize, 4)
2161 TEST_FIELD_ALIGN (MOUSEKEYS, cbSize, 4)
2162 TEST_FIELD_OFFSET(MOUSEKEYS, cbSize, 0)
2166 TEST_FIELD_SIZE (MOUSEKEYS, iMaxSpeed, 4)
2167 TEST_FIELD_ALIGN (MOUSEKEYS, iMaxSpeed, 4)
2168 TEST_FIELD_OFFSET(MOUSEKEYS, iMaxSpeed, 8)
2169 TEST_FIELD_SIZE (MOUSEKEYS, iTimeToMaxSpeed, 4)
2170 TEST_FIELD_ALIGN (MOUSEKEYS, iTimeToMaxSpeed, 4)
2171 TEST_FIELD_OFFSET(MOUSEKEYS, iTimeToMaxSpeed, 12)
2172 TEST_FIELD_SIZE (MOUSEKEYS, iCtrlSpeed, 4)
2173 TEST_FIELD_ALIGN (MOUSEKEYS, iCtrlSpeed, 4)
2174 TEST_FIELD_OFFSET(MOUSEKEYS, iCtrlSpeed, 16)
2175 TEST_FIELD_SIZE (MOUSEKEYS, dwReserved1, 4)
2176 TEST_FIELD_ALIGN (MOUSEKEYS, dwReserved1, 4)
2177 TEST_FIELD_OFFSET(MOUSEKEYS, dwReserved1, 20)
2178 TEST_FIELD_SIZE (MOUSEKEYS, dwReserved2, 4)
2179 TEST_FIELD_ALIGN (MOUSEKEYS, dwReserved2, 4)
2180 TEST_FIELD_OFFSET(MOUSEKEYS, dwReserved2, 24)
2181}
2182
2183static void test_pack_MSG(void)
2184{
2185 /* MSG */
2186 TEST_TYPE_SIZE (MSG, 48)
2187 TEST_TYPE_ALIGN (MSG, 8)
2203 TEST_FIELD_SIZE (MSG, pt, 8)
2204 TEST_FIELD_ALIGN (MSG, pt, 4)
2206}
2207
2208static void test_pack_MSGBOXCALLBACK(void)
2209{
2210 /* MSGBOXCALLBACK */
2213}
2214
2215static void test_pack_MSGBOXPARAMSA(void)
2216{
2217 /* MSGBOXPARAMSA */
2220 TEST_FIELD_SIZE (MSGBOXPARAMSA, cbSize, 4)
2221 TEST_FIELD_ALIGN (MSGBOXPARAMSA, cbSize, 4)
2223 TEST_FIELD_SIZE (MSGBOXPARAMSA, hwndOwner, 8)
2224 TEST_FIELD_ALIGN (MSGBOXPARAMSA, hwndOwner, 8)
2225 TEST_FIELD_OFFSET(MSGBOXPARAMSA, hwndOwner, 8)
2229 TEST_FIELD_SIZE (MSGBOXPARAMSA, lpszText, 8)
2230 TEST_FIELD_ALIGN (MSGBOXPARAMSA, lpszText, 8)
2231 TEST_FIELD_OFFSET(MSGBOXPARAMSA, lpszText, 24)
2232 TEST_FIELD_SIZE (MSGBOXPARAMSA, lpszCaption, 8)
2233 TEST_FIELD_ALIGN (MSGBOXPARAMSA, lpszCaption, 8)
2234 TEST_FIELD_OFFSET(MSGBOXPARAMSA, lpszCaption, 32)
2235 TEST_FIELD_SIZE (MSGBOXPARAMSA, dwStyle, 4)
2236 TEST_FIELD_ALIGN (MSGBOXPARAMSA, dwStyle, 4)
2237 TEST_FIELD_OFFSET(MSGBOXPARAMSA, dwStyle, 40)
2238 TEST_FIELD_SIZE (MSGBOXPARAMSA, lpszIcon, 8)
2239 TEST_FIELD_ALIGN (MSGBOXPARAMSA, lpszIcon, 8)
2240 TEST_FIELD_OFFSET(MSGBOXPARAMSA, lpszIcon, 48)
2241 TEST_FIELD_SIZE (MSGBOXPARAMSA, dwContextHelpId, 8)
2242 TEST_FIELD_ALIGN (MSGBOXPARAMSA, dwContextHelpId, 8)
2243 TEST_FIELD_OFFSET(MSGBOXPARAMSA, dwContextHelpId, 56)
2244 TEST_FIELD_SIZE (MSGBOXPARAMSA, lpfnMsgBoxCallback, 8)
2245 TEST_FIELD_ALIGN (MSGBOXPARAMSA, lpfnMsgBoxCallback, 8)
2246 TEST_FIELD_OFFSET(MSGBOXPARAMSA, lpfnMsgBoxCallback, 64)
2247 TEST_FIELD_SIZE (MSGBOXPARAMSA, dwLanguageId, 4)
2248 TEST_FIELD_ALIGN (MSGBOXPARAMSA, dwLanguageId, 4)
2249 TEST_FIELD_OFFSET(MSGBOXPARAMSA, dwLanguageId, 72)
2250}
2251
2252static void test_pack_MSGBOXPARAMSW(void)
2253{
2254 /* MSGBOXPARAMSW */
2257 TEST_FIELD_SIZE (MSGBOXPARAMSW, cbSize, 4)
2258 TEST_FIELD_ALIGN (MSGBOXPARAMSW, cbSize, 4)
2260 TEST_FIELD_SIZE (MSGBOXPARAMSW, hwndOwner, 8)
2261 TEST_FIELD_ALIGN (MSGBOXPARAMSW, hwndOwner, 8)
2262 TEST_FIELD_OFFSET(MSGBOXPARAMSW, hwndOwner, 8)
2266 TEST_FIELD_SIZE (MSGBOXPARAMSW, lpszText, 8)
2267 TEST_FIELD_ALIGN (MSGBOXPARAMSW, lpszText, 8)
2268 TEST_FIELD_OFFSET(MSGBOXPARAMSW, lpszText, 24)
2269 TEST_FIELD_SIZE (MSGBOXPARAMSW, lpszCaption, 8)
2270 TEST_FIELD_ALIGN (MSGBOXPARAMSW, lpszCaption, 8)
2271 TEST_FIELD_OFFSET(MSGBOXPARAMSW, lpszCaption, 32)
2272 TEST_FIELD_SIZE (MSGBOXPARAMSW, dwStyle, 4)
2273 TEST_FIELD_ALIGN (MSGBOXPARAMSW, dwStyle, 4)
2274 TEST_FIELD_OFFSET(MSGBOXPARAMSW, dwStyle, 40)
2275 TEST_FIELD_SIZE (MSGBOXPARAMSW, lpszIcon, 8)
2276 TEST_FIELD_ALIGN (MSGBOXPARAMSW, lpszIcon, 8)
2277 TEST_FIELD_OFFSET(MSGBOXPARAMSW, lpszIcon, 48)
2278 TEST_FIELD_SIZE (MSGBOXPARAMSW, dwContextHelpId, 8)
2279 TEST_FIELD_ALIGN (MSGBOXPARAMSW, dwContextHelpId, 8)
2280 TEST_FIELD_OFFSET(MSGBOXPARAMSW, dwContextHelpId, 56)
2281 TEST_FIELD_SIZE (MSGBOXPARAMSW, lpfnMsgBoxCallback, 8)
2282 TEST_FIELD_ALIGN (MSGBOXPARAMSW, lpfnMsgBoxCallback, 8)
2283 TEST_FIELD_OFFSET(MSGBOXPARAMSW, lpfnMsgBoxCallback, 64)
2284 TEST_FIELD_SIZE (MSGBOXPARAMSW, dwLanguageId, 4)
2285 TEST_FIELD_ALIGN (MSGBOXPARAMSW, dwLanguageId, 4)
2286 TEST_FIELD_OFFSET(MSGBOXPARAMSW, dwLanguageId, 72)
2287}
2288
2289static void test_pack_MSLLHOOKSTRUCT(void)
2290{
2291 /* MSLLHOOKSTRUCT */
2297 TEST_FIELD_SIZE (MSLLHOOKSTRUCT, mouseData, 4)
2298 TEST_FIELD_ALIGN (MSLLHOOKSTRUCT, mouseData, 4)
2299 TEST_FIELD_OFFSET(MSLLHOOKSTRUCT, mouseData, 8)
2306 TEST_FIELD_SIZE (MSLLHOOKSTRUCT, dwExtraInfo, 8)
2307 TEST_FIELD_ALIGN (MSLLHOOKSTRUCT, dwExtraInfo, 8)
2308 TEST_FIELD_OFFSET(MSLLHOOKSTRUCT, dwExtraInfo, 24)
2309}
2310
2311static void test_pack_MULTIKEYHELPA(void)
2312{
2313 /* MULTIKEYHELPA */
2316 TEST_FIELD_SIZE (MULTIKEYHELPA, mkSize, 4)
2317 TEST_FIELD_ALIGN (MULTIKEYHELPA, mkSize, 4)
2319 TEST_FIELD_SIZE (MULTIKEYHELPA, mkKeylist, 1)
2320 TEST_FIELD_ALIGN (MULTIKEYHELPA, mkKeylist, 1)
2321 TEST_FIELD_OFFSET(MULTIKEYHELPA, mkKeylist, 4)
2322 TEST_FIELD_SIZE (MULTIKEYHELPA, szKeyphrase, 1)
2323 TEST_FIELD_ALIGN (MULTIKEYHELPA, szKeyphrase, 1)
2324 TEST_FIELD_OFFSET(MULTIKEYHELPA, szKeyphrase, 5)
2325}
2326
2327static void test_pack_MULTIKEYHELPW(void)
2328{
2329 /* MULTIKEYHELPW */
2332 TEST_FIELD_SIZE (MULTIKEYHELPW, mkSize, 4)
2333 TEST_FIELD_ALIGN (MULTIKEYHELPW, mkSize, 4)
2335 TEST_FIELD_SIZE (MULTIKEYHELPW, mkKeylist, 2)
2336 TEST_FIELD_ALIGN (MULTIKEYHELPW, mkKeylist, 2)
2337 TEST_FIELD_OFFSET(MULTIKEYHELPW, mkKeylist, 4)
2338 TEST_FIELD_SIZE (MULTIKEYHELPW, szKeyphrase, 2)
2339 TEST_FIELD_ALIGN (MULTIKEYHELPW, szKeyphrase, 2)
2340 TEST_FIELD_OFFSET(MULTIKEYHELPW, szKeyphrase, 6)
2341}
2342
2343static void test_pack_NAMEENUMPROCA(void)
2344{
2345 /* NAMEENUMPROCA */
2348}
2349
2350static void test_pack_NAMEENUMPROCW(void)
2351{
2352 /* NAMEENUMPROCW */
2355}
2356
2357static void test_pack_NCCALCSIZE_PARAMS(void)
2358{
2359 /* NCCALCSIZE_PARAMS */
2368}
2369
2370static void test_pack_NMHDR(void)
2371{
2372 /* NMHDR */
2373 TEST_TYPE_SIZE (NMHDR, 24)
2375 TEST_FIELD_SIZE (NMHDR, hwndFrom, 8)
2376 TEST_FIELD_ALIGN (NMHDR, hwndFrom, 8)
2377 TEST_FIELD_OFFSET(NMHDR, hwndFrom, 0)
2378 TEST_FIELD_SIZE (NMHDR, idFrom, 8)
2379 TEST_FIELD_ALIGN (NMHDR, idFrom, 8)
2380 TEST_FIELD_OFFSET(NMHDR, idFrom, 8)
2384}
2385
2386static void test_pack_NONCLIENTMETRICSA(void)
2387{
2388 /* NONCLIENTMETRICSA */
2389 TEST_TYPE_SIZE (NONCLIENTMETRICSA, 344)
2390 TEST_TYPE_ALIGN (NONCLIENTMETRICSA, 4)
2391 TEST_FIELD_SIZE (NONCLIENTMETRICSA, cbSize, 4)
2392 TEST_FIELD_ALIGN (NONCLIENTMETRICSA, cbSize, 4)
2393 TEST_FIELD_OFFSET(NONCLIENTMETRICSA, cbSize, 0)
2394 TEST_FIELD_SIZE (NONCLIENTMETRICSA, iBorderWidth, 4)
2395 TEST_FIELD_ALIGN (NONCLIENTMETRICSA, iBorderWidth, 4)
2396 TEST_FIELD_OFFSET(NONCLIENTMETRICSA, iBorderWidth, 4)
2397 TEST_FIELD_SIZE (NONCLIENTMETRICSA, iScrollWidth, 4)
2398 TEST_FIELD_ALIGN (NONCLIENTMETRICSA, iScrollWidth, 4)
2399 TEST_FIELD_OFFSET(NONCLIENTMETRICSA, iScrollWidth, 8)
2400 TEST_FIELD_SIZE (NONCLIENTMETRICSA, iScrollHeight, 4)
2401 TEST_FIELD_ALIGN (NONCLIENTMETRICSA, iScrollHeight, 4)
2402 TEST_FIELD_OFFSET(NONCLIENTMETRICSA, iScrollHeight, 12)
2403 TEST_FIELD_SIZE (NONCLIENTMETRICSA, iCaptionWidth, 4)
2404 TEST_FIELD_ALIGN (NONCLIENTMETRICSA, iCaptionWidth, 4)
2405 TEST_FIELD_OFFSET(NONCLIENTMETRICSA, iCaptionWidth, 16)
2406 TEST_FIELD_SIZE (NONCLIENTMETRICSA, iCaptionHeight, 4)
2407 TEST_FIELD_ALIGN (NONCLIENTMETRICSA, iCaptionHeight, 4)
2408 TEST_FIELD_OFFSET(NONCLIENTMETRICSA, iCaptionHeight, 20)
2409 TEST_FIELD_SIZE (NONCLIENTMETRICSA, lfCaptionFont, 60)
2410 TEST_FIELD_ALIGN (NONCLIENTMETRICSA, lfCaptionFont, 4)
2411 TEST_FIELD_OFFSET(NONCLIENTMETRICSA, lfCaptionFont, 24)
2412 TEST_FIELD_SIZE (NONCLIENTMETRICSA, iSmCaptionWidth, 4)
2413 TEST_FIELD_ALIGN (NONCLIENTMETRICSA, iSmCaptionWidth, 4)
2414 TEST_FIELD_OFFSET(NONCLIENTMETRICSA, iSmCaptionWidth, 84)
2415 TEST_FIELD_SIZE (NONCLIENTMETRICSA, iSmCaptionHeight, 4)
2416 TEST_FIELD_ALIGN (NONCLIENTMETRICSA, iSmCaptionHeight, 4)
2417 TEST_FIELD_OFFSET(NONCLIENTMETRICSA, iSmCaptionHeight, 88)
2418 TEST_FIELD_SIZE (NONCLIENTMETRICSA, lfSmCaptionFont, 60)
2419 TEST_FIELD_ALIGN (NONCLIENTMETRICSA, lfSmCaptionFont, 4)
2420 TEST_FIELD_OFFSET(NONCLIENTMETRICSA, lfSmCaptionFont, 92)
2421 TEST_FIELD_SIZE (NONCLIENTMETRICSA, iMenuWidth, 4)
2422 TEST_FIELD_ALIGN (NONCLIENTMETRICSA, iMenuWidth, 4)
2423 TEST_FIELD_OFFSET(NONCLIENTMETRICSA, iMenuWidth, 152)
2424 TEST_FIELD_SIZE (NONCLIENTMETRICSA, iMenuHeight, 4)
2425 TEST_FIELD_ALIGN (NONCLIENTMETRICSA, iMenuHeight, 4)
2426 TEST_FIELD_OFFSET(NONCLIENTMETRICSA, iMenuHeight, 156)
2427 TEST_FIELD_SIZE (NONCLIENTMETRICSA, lfMenuFont, 60)
2428 TEST_FIELD_ALIGN (NONCLIENTMETRICSA, lfMenuFont, 4)
2429 TEST_FIELD_OFFSET(NONCLIENTMETRICSA, lfMenuFont, 160)
2430 TEST_FIELD_SIZE (NONCLIENTMETRICSA, lfStatusFont, 60)
2431 TEST_FIELD_ALIGN (NONCLIENTMETRICSA, lfStatusFont, 4)
2432 TEST_FIELD_OFFSET(NONCLIENTMETRICSA, lfStatusFont, 220)
2433 TEST_FIELD_SIZE (NONCLIENTMETRICSA, lfMessageFont, 60)
2434 TEST_FIELD_ALIGN (NONCLIENTMETRICSA, lfMessageFont, 4)
2435 TEST_FIELD_OFFSET(NONCLIENTMETRICSA, lfMessageFont, 280)
2436 TEST_FIELD_SIZE (NONCLIENTMETRICSA, iPaddedBorderWidth, 4)
2437 TEST_FIELD_ALIGN (NONCLIENTMETRICSA, iPaddedBorderWidth, 4)
2438 TEST_FIELD_OFFSET(NONCLIENTMETRICSA, iPaddedBorderWidth, 340)
2439}
2440
2441static void test_pack_NONCLIENTMETRICSW(void)
2442{
2443 /* NONCLIENTMETRICSW */
2444 TEST_TYPE_SIZE (NONCLIENTMETRICSW, 504)
2445 TEST_TYPE_ALIGN (NONCLIENTMETRICSW, 4)
2446 TEST_FIELD_SIZE (NONCLIENTMETRICSW, cbSize, 4)
2447 TEST_FIELD_ALIGN (NONCLIENTMETRICSW, cbSize, 4)
2448 TEST_FIELD_OFFSET(NONCLIENTMETRICSW, cbSize, 0)
2449 TEST_FIELD_SIZE (NONCLIENTMETRICSW, iBorderWidth, 4)
2450 TEST_FIELD_ALIGN (NONCLIENTMETRICSW, iBorderWidth, 4)
2451 TEST_FIELD_OFFSET(NONCLIENTMETRICSW, iBorderWidth, 4)
2452 TEST_FIELD_SIZE (NONCLIENTMETRICSW, iScrollWidth, 4)
2453 TEST_FIELD_ALIGN (NONCLIENTMETRICSW, iScrollWidth, 4)
2454 TEST_FIELD_OFFSET(NONCLIENTMETRICSW, iScrollWidth, 8)
2455 TEST_FIELD_SIZE (NONCLIENTMETRICSW, iScrollHeight, 4)
2456 TEST_FIELD_ALIGN (NONCLIENTMETRICSW, iScrollHeight, 4)
2457 TEST_FIELD_OFFSET(NONCLIENTMETRICSW, iScrollHeight, 12)
2458 TEST_FIELD_SIZE (NONCLIENTMETRICSW, iCaptionWidth, 4)
2459 TEST_FIELD_ALIGN (NONCLIENTMETRICSW, iCaptionWidth, 4)
2460 TEST_FIELD_OFFSET(NONCLIENTMETRICSW, iCaptionWidth, 16)
2461 TEST_FIELD_SIZE (NONCLIENTMETRICSW, iCaptionHeight, 4)
2462 TEST_FIELD_ALIGN (NONCLIENTMETRICSW, iCaptionHeight, 4)
2463 TEST_FIELD_OFFSET(NONCLIENTMETRICSW, iCaptionHeight, 20)
2464 TEST_FIELD_SIZE (NONCLIENTMETRICSW, lfCaptionFont, 92)
2465 TEST_FIELD_ALIGN (NONCLIENTMETRICSW, lfCaptionFont, 4)
2466 TEST_FIELD_OFFSET(NONCLIENTMETRICSW, lfCaptionFont, 24)
2467 TEST_FIELD_SIZE (NONCLIENTMETRICSW, iSmCaptionWidth, 4)
2468 TEST_FIELD_ALIGN (NONCLIENTMETRICSW, iSmCaptionWidth, 4)
2469 TEST_FIELD_OFFSET(NONCLIENTMETRICSW, iSmCaptionWidth, 116)
2470 TEST_FIELD_SIZE (NONCLIENTMETRICSW, iSmCaptionHeight, 4)
2471 TEST_FIELD_ALIGN (NONCLIENTMETRICSW, iSmCaptionHeight, 4)
2472 TEST_FIELD_OFFSET(NONCLIENTMETRICSW, iSmCaptionHeight, 120)
2473 TEST_FIELD_SIZE (NONCLIENTMETRICSW, lfSmCaptionFont, 92)
2474 TEST_FIELD_ALIGN (NONCLIENTMETRICSW, lfSmCaptionFont, 4)
2475 TEST_FIELD_OFFSET(NONCLIENTMETRICSW, lfSmCaptionFont, 124)
2476 TEST_FIELD_SIZE (NONCLIENTMETRICSW, iMenuWidth, 4)
2477 TEST_FIELD_ALIGN (NONCLIENTMETRICSW, iMenuWidth, 4)
2478 TEST_FIELD_OFFSET(NONCLIENTMETRICSW, iMenuWidth, 216)
2479 TEST_FIELD_SIZE (NONCLIENTMETRICSW, iMenuHeight, 4)
2480 TEST_FIELD_ALIGN (NONCLIENTMETRICSW, iMenuHeight, 4)
2481 TEST_FIELD_OFFSET(NONCLIENTMETRICSW, iMenuHeight, 220)
2482 TEST_FIELD_SIZE (NONCLIENTMETRICSW, lfMenuFont, 92)
2483 TEST_FIELD_ALIGN (NONCLIENTMETRICSW, lfMenuFont, 4)
2484 TEST_FIELD_OFFSET(NONCLIENTMETRICSW, lfMenuFont, 224)
2485 TEST_FIELD_SIZE (NONCLIENTMETRICSW, lfStatusFont, 92)
2486 TEST_FIELD_ALIGN (NONCLIENTMETRICSW, lfStatusFont, 4)
2487 TEST_FIELD_OFFSET(NONCLIENTMETRICSW, lfStatusFont, 316)
2488 TEST_FIELD_SIZE (NONCLIENTMETRICSW, lfMessageFont, 92)
2489 TEST_FIELD_ALIGN (NONCLIENTMETRICSW, lfMessageFont, 4)
2490 TEST_FIELD_OFFSET(NONCLIENTMETRICSW, lfMessageFont, 408)
2491 TEST_FIELD_SIZE (NONCLIENTMETRICSW, iPaddedBorderWidth, 4)
2492 TEST_FIELD_ALIGN (NONCLIENTMETRICSW, iPaddedBorderWidth, 4)
2493 TEST_FIELD_OFFSET(NONCLIENTMETRICSW, iPaddedBorderWidth, 500)
2494}
2495
2496static void test_pack_PAINTSTRUCT(void)
2497{
2498 /* PAINTSTRUCT */
2504 TEST_FIELD_SIZE (PAINTSTRUCT, fErase, 4)
2505 TEST_FIELD_ALIGN (PAINTSTRUCT, fErase, 4)
2506 TEST_FIELD_OFFSET(PAINTSTRUCT, fErase, 8)
2507 TEST_FIELD_SIZE (PAINTSTRUCT, rcPaint, 16)
2508 TEST_FIELD_ALIGN (PAINTSTRUCT, rcPaint, 4)
2509 TEST_FIELD_OFFSET(PAINTSTRUCT, rcPaint, 12)
2510 TEST_FIELD_SIZE (PAINTSTRUCT, fRestore, 4)
2511 TEST_FIELD_ALIGN (PAINTSTRUCT, fRestore, 4)
2512 TEST_FIELD_OFFSET(PAINTSTRUCT, fRestore, 28)
2513 TEST_FIELD_SIZE (PAINTSTRUCT, fIncUpdate, 4)
2514 TEST_FIELD_ALIGN (PAINTSTRUCT, fIncUpdate, 4)
2515 TEST_FIELD_OFFSET(PAINTSTRUCT, fIncUpdate, 32)
2516 TEST_FIELD_SIZE (PAINTSTRUCT, rgbReserved, 32)
2517 TEST_FIELD_ALIGN (PAINTSTRUCT, rgbReserved, 1)
2518 TEST_FIELD_OFFSET(PAINTSTRUCT, rgbReserved, 36)
2519}
2520
2521static void test_pack_PCOMBOBOXINFO(void)
2522{
2523 /* PCOMBOBOXINFO */
2528}
2529
2530static void test_pack_PCOMPAREITEMSTRUCT(void)
2531{
2532 /* PCOMPAREITEMSTRUCT */
2537}
2538
2539static void test_pack_PCOPYDATASTRUCT(void)
2540{
2541 /* PCOPYDATASTRUCT */
2546}
2547
2548static void test_pack_PCURSORINFO(void)
2549{
2550 /* PCURSORINFO */
2555}
2556
2557static void test_pack_PCWPRETSTRUCT(void)
2558{
2559 /* PCWPRETSTRUCT */
2564}
2565
2566static void test_pack_PCWPSTRUCT(void)
2567{
2568 /* PCWPSTRUCT */
2573}
2574
2575static void test_pack_PDEBUGHOOKINFO(void)
2576{
2577 /* PDEBUGHOOKINFO */
2582}
2583
2584static void test_pack_PDELETEITEMSTRUCT(void)
2585{
2586 /* PDELETEITEMSTRUCT */
2591}
2592
2593static void test_pack_PDLGITEMTEMPLATEA(void)
2594{
2595 /* PDLGITEMTEMPLATEA */
2600}
2601
2602static void test_pack_PDLGITEMTEMPLATEW(void)
2603{
2604 /* PDLGITEMTEMPLATEW */
2609}
2610
2611static void test_pack_PDRAWITEMSTRUCT(void)
2612{
2613 /* PDRAWITEMSTRUCT */
2618}
2619
2620static void test_pack_PEVENTMSG(void)
2621{
2622 /* PEVENTMSG */
2627}
2628
2629static void test_pack_PFLASHWINFO(void)
2630{
2631 /* PFLASHWINFO */
2632 TEST_TYPE_SIZE (PFLASHWINFO, 8)
2633 TEST_TYPE_ALIGN (PFLASHWINFO, 8)
2634 TEST_TARGET_SIZE (PFLASHWINFO, 32)
2635 TEST_TARGET_ALIGN(PFLASHWINFO, 8)
2636}
2637
2638static void test_pack_PGUITHREADINFO(void)
2639{
2640 /* PGUITHREADINFO */
2645}
2646
2647static void test_pack_PHARDWAREHOOKSTRUCT(void)
2648{
2649 /* PHARDWAREHOOKSTRUCT */
2654}
2655
2656static void test_pack_PHARDWAREINPUT(void)
2657{
2658 /* PHARDWAREINPUT */
2663}
2664
2665static void test_pack_PHDEVNOTIFY(void)
2666{
2667 /* PHDEVNOTIFY */
2672}
2673
2674static void test_pack_PHELPWININFOA(void)
2675{
2676 /* PHELPWININFOA */
2681}
2682
2683static void test_pack_PHELPWININFOW(void)
2684{
2685 /* PHELPWININFOW */
2690}
2691
2692static void test_pack_PICONINFO(void)
2693{
2694 /* PICONINFO */
2699}
2700
2701static void test_pack_PICONMETRICSA(void)
2702{
2703 /* PICONMETRICSA */
2704 TEST_TYPE_SIZE (PICONMETRICSA, 8)
2705 TEST_TYPE_ALIGN (PICONMETRICSA, 8)
2706 TEST_TARGET_SIZE (PICONMETRICSA, 76)
2707 TEST_TARGET_ALIGN(PICONMETRICSA, 4)
2708}
2709
2710static void test_pack_PICONMETRICSW(void)
2711{
2712 /* PICONMETRICSW */
2713 TEST_TYPE_SIZE (PICONMETRICSW, 8)
2714 TEST_TYPE_ALIGN (PICONMETRICSW, 8)
2715 TEST_TARGET_SIZE (PICONMETRICSW, 108)
2716 TEST_TARGET_ALIGN(PICONMETRICSW, 4)
2717}
2718
2719static void test_pack_PINPUT(void)
2720{
2721 /* PINPUT */
2724}
2725
2726static void test_pack_PKBDLLHOOKSTRUCT(void)
2727{
2728 /* PKBDLLHOOKSTRUCT */
2733}
2734
2735static void test_pack_PKEYBDINPUT(void)
2736{
2737 /* PKEYBDINPUT */
2742}
2743
2744static void test_pack_PMDINEXTMENU(void)
2745{
2746 /* PMDINEXTMENU */
2751}
2752
2753static void test_pack_PMEASUREITEMSTRUCT(void)
2754{
2755 /* PMEASUREITEMSTRUCT */
2760}
2761
2762static void test_pack_PMENUITEMTEMPLATE(void)
2763{
2764 /* PMENUITEMTEMPLATE */
2769}
2770
2771static void test_pack_PMENUITEMTEMPLATEHEADER(void)
2772{
2773 /* PMENUITEMTEMPLATEHEADER */
2778}
2779
2780static void test_pack_PMINIMIZEDMETRICS(void)
2781{
2782 /* PMINIMIZEDMETRICS */
2787}
2788
2789static void test_pack_PMINMAXINFO(void)
2790{
2791 /* PMINMAXINFO */
2796}
2797
2798static void test_pack_PMOUSEHOOKSTRUCT(void)
2799{
2800 /* PMOUSEHOOKSTRUCT */
2805}
2806
2807static void test_pack_PMOUSEINPUT(void)
2808{
2809 /* PMOUSEINPUT */
2814}
2815
2816static void test_pack_PMSG(void)
2817{
2818 /* PMSG */
2819 TEST_TYPE_SIZE (PMSG, 8)
2823}
2824
2825static void test_pack_PMSGBOXPARAMSA(void)
2826{
2827 /* PMSGBOXPARAMSA */
2832}
2833
2834static void test_pack_PMSGBOXPARAMSW(void)
2835{
2836 /* PMSGBOXPARAMSW */
2841}
2842
2843static void test_pack_PMSLLHOOKSTRUCT(void)
2844{
2845 /* PMSLLHOOKSTRUCT */
2850}
2851
2852static void test_pack_PMULTIKEYHELPA(void)
2853{
2854 /* PMULTIKEYHELPA */
2859}
2860
2861static void test_pack_PMULTIKEYHELPW(void)
2862{
2863 /* PMULTIKEYHELPW */
2868}
2869
2870static void test_pack_PNONCLIENTMETRICSA(void)
2871{
2872 /* PNONCLIENTMETRICSA */
2873 TEST_TYPE_SIZE (PNONCLIENTMETRICSA, 8)
2874 TEST_TYPE_ALIGN (PNONCLIENTMETRICSA, 8)
2875 TEST_TARGET_SIZE (PNONCLIENTMETRICSA, 344)
2876 TEST_TARGET_ALIGN(PNONCLIENTMETRICSA, 4)
2877}
2878
2879static void test_pack_PNONCLIENTMETRICSW(void)
2880{
2881 /* PNONCLIENTMETRICSW */
2882 TEST_TYPE_SIZE (PNONCLIENTMETRICSW, 8)
2883 TEST_TYPE_ALIGN (PNONCLIENTMETRICSW, 8)
2884 TEST_TARGET_SIZE (PNONCLIENTMETRICSW, 504)
2885 TEST_TARGET_ALIGN(PNONCLIENTMETRICSW, 4)
2886}
2887
2888static void test_pack_PPAINTSTRUCT(void)
2889{
2890 /* PPAINTSTRUCT */
2895}
2896
2897static void test_pack_PROPENUMPROCA(void)
2898{
2899 /* PROPENUMPROCA */
2902}
2903
2904static void test_pack_PROPENUMPROCEXA(void)
2905{
2906 /* PROPENUMPROCEXA */
2909}
2910
2911static void test_pack_PROPENUMPROCEXW(void)
2912{
2913 /* PROPENUMPROCEXW */
2916}
2917
2918static void test_pack_PROPENUMPROCW(void)
2919{
2920 /* PROPENUMPROCW */
2923}
2924
2925static void test_pack_PTITLEBARINFO(void)
2926{
2927 /* PTITLEBARINFO */
2932}
2933
2934static void test_pack_PUSEROBJECTFLAGS(void)
2935{
2936 /* PUSEROBJECTFLAGS */
2941}
2942
2943static void test_pack_PWINDOWINFO(void)
2944{
2945 /* PWINDOWINFO */
2950}
2951
2952static void test_pack_PWINDOWPLACEMENT(void)
2953{
2954 /* PWINDOWPLACEMENT */
2959}
2960
2961static void test_pack_PWINDOWPOS(void)
2962{
2963 /* PWINDOWPOS */
2968}
2969
2970static void test_pack_PWNDCLASSA(void)
2971{
2972 /* PWNDCLASSA */
2977}
2978
2979static void test_pack_PWNDCLASSEXA(void)
2980{
2981 /* PWNDCLASSEXA */
2986}
2987
2988static void test_pack_PWNDCLASSEXW(void)
2989{
2990 /* PWNDCLASSEXW */
2995}
2996
2997static void test_pack_PWNDCLASSW(void)
2998{
2999 /* PWNDCLASSW */
3004}
3005
3006static void test_pack_SCROLLINFO(void)
3007{
3008 /* SCROLLINFO */
3011 TEST_FIELD_SIZE (SCROLLINFO, cbSize, 4)
3012 TEST_FIELD_ALIGN (SCROLLINFO, cbSize, 4)
3013 TEST_FIELD_OFFSET(SCROLLINFO, cbSize, 0)
3014 TEST_FIELD_SIZE (SCROLLINFO, fMask, 4)
3015 TEST_FIELD_ALIGN (SCROLLINFO, fMask, 4)
3016 TEST_FIELD_OFFSET(SCROLLINFO, fMask, 4)
3017 TEST_FIELD_SIZE (SCROLLINFO, nMin, 4)
3018 TEST_FIELD_ALIGN (SCROLLINFO, nMin, 4)
3020 TEST_FIELD_SIZE (SCROLLINFO, nMax, 4)
3021 TEST_FIELD_ALIGN (SCROLLINFO, nMax, 4)
3022 TEST_FIELD_OFFSET(SCROLLINFO, nMax, 12)
3023 TEST_FIELD_SIZE (SCROLLINFO, nPage, 4)
3024 TEST_FIELD_ALIGN (SCROLLINFO, nPage, 4)
3025 TEST_FIELD_OFFSET(SCROLLINFO, nPage, 16)
3026 TEST_FIELD_SIZE (SCROLLINFO, nPos, 4)
3027 TEST_FIELD_ALIGN (SCROLLINFO, nPos, 4)
3028 TEST_FIELD_OFFSET(SCROLLINFO, nPos, 20)
3029 TEST_FIELD_SIZE (SCROLLINFO, nTrackPos, 4)
3030 TEST_FIELD_ALIGN (SCROLLINFO, nTrackPos, 4)
3031 TEST_FIELD_OFFSET(SCROLLINFO, nTrackPos, 24)
3032}
3033
3034static void test_pack_SENDASYNCPROC(void)
3035{
3036 /* SENDASYNCPROC */
3039}
3040
3041static void test_pack_SERIALKEYSA(void)
3042{
3043 /* SERIALKEYSA */
3046 TEST_FIELD_SIZE (SERIALKEYSA, cbSize, 4)
3047 TEST_FIELD_ALIGN (SERIALKEYSA, cbSize, 4)
3048 TEST_FIELD_OFFSET(SERIALKEYSA, cbSize, 0)
3052 TEST_FIELD_SIZE (SERIALKEYSA, lpszActivePort, 8)
3053 TEST_FIELD_ALIGN (SERIALKEYSA, lpszActivePort, 8)
3054 TEST_FIELD_OFFSET(SERIALKEYSA, lpszActivePort, 8)
3055 TEST_FIELD_SIZE (SERIALKEYSA, lpszPort, 8)
3056 TEST_FIELD_ALIGN (SERIALKEYSA, lpszPort, 8)
3057 TEST_FIELD_OFFSET(SERIALKEYSA, lpszPort, 16)
3058 TEST_FIELD_SIZE (SERIALKEYSA, iBaudRate, 4)
3059 TEST_FIELD_ALIGN (SERIALKEYSA, iBaudRate, 4)
3060 TEST_FIELD_OFFSET(SERIALKEYSA, iBaudRate, 24)
3061 TEST_FIELD_SIZE (SERIALKEYSA, iPortState, 4)
3062 TEST_FIELD_ALIGN (SERIALKEYSA, iPortState, 4)
3063 TEST_FIELD_OFFSET(SERIALKEYSA, iPortState, 28)
3064 TEST_FIELD_SIZE (SERIALKEYSA, iActive, 4)
3065 TEST_FIELD_ALIGN (SERIALKEYSA, iActive, 4)
3066 TEST_FIELD_OFFSET(SERIALKEYSA, iActive, 32)
3067}
3068
3069static void test_pack_SERIALKEYSW(void)
3070{
3071 /* SERIALKEYSW */
3074 TEST_FIELD_SIZE (SERIALKEYSW, cbSize, 4)
3075 TEST_FIELD_ALIGN (SERIALKEYSW, cbSize, 4)
3076 TEST_FIELD_OFFSET(SERIALKEYSW, cbSize, 0)
3080 TEST_FIELD_SIZE (SERIALKEYSW, lpszActivePort, 8)
3081 TEST_FIELD_ALIGN (SERIALKEYSW, lpszActivePort, 8)
3082 TEST_FIELD_OFFSET(SERIALKEYSW, lpszActivePort, 8)
3083 TEST_FIELD_SIZE (SERIALKEYSW, lpszPort, 8)
3084 TEST_FIELD_ALIGN (SERIALKEYSW, lpszPort, 8)
3085 TEST_FIELD_OFFSET(SERIALKEYSW, lpszPort, 16)
3086 TEST_FIELD_SIZE (SERIALKEYSW, iBaudRate, 4)
3087 TEST_FIELD_ALIGN (SERIALKEYSW, iBaudRate, 4)
3088 TEST_FIELD_OFFSET(SERIALKEYSW, iBaudRate, 24)
3089 TEST_FIELD_SIZE (SERIALKEYSW, iPortState, 4)
3090 TEST_FIELD_ALIGN (SERIALKEYSW, iPortState, 4)
3091 TEST_FIELD_OFFSET(SERIALKEYSW, iPortState, 28)
3092 TEST_FIELD_SIZE (SERIALKEYSW, iActive, 4)
3093 TEST_FIELD_ALIGN (SERIALKEYSW, iActive, 4)
3094 TEST_FIELD_OFFSET(SERIALKEYSW, iActive, 32)
3095}
3096
3097static void test_pack_SOUNDSENTRYA(void)
3098{
3099 /* SOUNDSENTRYA */
3102 TEST_FIELD_SIZE (SOUNDSENTRYA, cbSize, 4)
3103 TEST_FIELD_ALIGN (SOUNDSENTRYA, cbSize, 4)
3108 TEST_FIELD_SIZE (SOUNDSENTRYA, iFSTextEffect, 4)
3109 TEST_FIELD_ALIGN (SOUNDSENTRYA, iFSTextEffect, 4)
3110 TEST_FIELD_OFFSET(SOUNDSENTRYA, iFSTextEffect, 8)
3111 TEST_FIELD_SIZE (SOUNDSENTRYA, iFSTextEffectMSec, 4)
3112 TEST_FIELD_ALIGN (SOUNDSENTRYA, iFSTextEffectMSec, 4)
3113 TEST_FIELD_OFFSET(SOUNDSENTRYA, iFSTextEffectMSec, 12)
3114 TEST_FIELD_SIZE (SOUNDSENTRYA, iFSTextEffectColorBits, 4)
3115 TEST_FIELD_ALIGN (SOUNDSENTRYA, iFSTextEffectColorBits, 4)
3116 TEST_FIELD_OFFSET(SOUNDSENTRYA, iFSTextEffectColorBits, 16)
3117 TEST_FIELD_SIZE (SOUNDSENTRYA, iFSGrafEffect, 4)
3118 TEST_FIELD_ALIGN (SOUNDSENTRYA, iFSGrafEffect, 4)
3119 TEST_FIELD_OFFSET(SOUNDSENTRYA, iFSGrafEffect, 20)
3120 TEST_FIELD_SIZE (SOUNDSENTRYA, iFSGrafEffectMSec, 4)
3121 TEST_FIELD_ALIGN (SOUNDSENTRYA, iFSGrafEffectMSec, 4)
3122 TEST_FIELD_OFFSET(SOUNDSENTRYA, iFSGrafEffectMSec, 24)
3123 TEST_FIELD_SIZE (SOUNDSENTRYA, iFSGrafEffectColor, 4)
3124 TEST_FIELD_ALIGN (SOUNDSENTRYA, iFSGrafEffectColor, 4)
3125 TEST_FIELD_OFFSET(SOUNDSENTRYA, iFSGrafEffectColor, 28)
3126 TEST_FIELD_SIZE (SOUNDSENTRYA, iWindowsEffect, 4)
3127 TEST_FIELD_ALIGN (SOUNDSENTRYA, iWindowsEffect, 4)
3128 TEST_FIELD_OFFSET(SOUNDSENTRYA, iWindowsEffect, 32)
3129 TEST_FIELD_SIZE (SOUNDSENTRYA, iWindowsEffectMSec, 4)
3130 TEST_FIELD_ALIGN (SOUNDSENTRYA, iWindowsEffectMSec, 4)
3131 TEST_FIELD_OFFSET(SOUNDSENTRYA, iWindowsEffectMSec, 36)
3132 TEST_FIELD_SIZE (SOUNDSENTRYA, lpszWindowsEffectDLL, 8)
3133 TEST_FIELD_ALIGN (SOUNDSENTRYA, lpszWindowsEffectDLL, 8)
3134 TEST_FIELD_OFFSET(SOUNDSENTRYA, lpszWindowsEffectDLL, 40)
3135 TEST_FIELD_SIZE (SOUNDSENTRYA, iWindowsEffectOrdinal, 4)
3136 TEST_FIELD_ALIGN (SOUNDSENTRYA, iWindowsEffectOrdinal, 4)
3137 TEST_FIELD_OFFSET(SOUNDSENTRYA, iWindowsEffectOrdinal, 48)
3138}
3139
3140static void test_pack_SOUNDSENTRYW(void)
3141{
3142 /* SOUNDSENTRYW */
3145 TEST_FIELD_SIZE (SOUNDSENTRYW, cbSize, 4)
3146 TEST_FIELD_ALIGN (SOUNDSENTRYW, cbSize, 4)
3151 TEST_FIELD_SIZE (SOUNDSENTRYW, iFSTextEffect, 4)
3152 TEST_FIELD_ALIGN (SOUNDSENTRYW, iFSTextEffect, 4)
3153 TEST_FIELD_OFFSET(SOUNDSENTRYW, iFSTextEffect, 8)
3154 TEST_FIELD_SIZE (SOUNDSENTRYW, iFSTextEffectMSec, 4)
3155 TEST_FIELD_ALIGN (SOUNDSENTRYW, iFSTextEffectMSec, 4)
3156 TEST_FIELD_OFFSET(SOUNDSENTRYW, iFSTextEffectMSec, 12)
3157 TEST_FIELD_SIZE (SOUNDSENTRYW, iFSTextEffectColorBits, 4)
3158 TEST_FIELD_ALIGN (SOUNDSENTRYW, iFSTextEffectColorBits, 4)
3159 TEST_FIELD_OFFSET(SOUNDSENTRYW, iFSTextEffectColorBits, 16)
3160 TEST_FIELD_SIZE (SOUNDSENTRYW, iFSGrafEffect, 4)
3161 TEST_FIELD_ALIGN (SOUNDSENTRYW, iFSGrafEffect, 4)
3162 TEST_FIELD_OFFSET(SOUNDSENTRYW, iFSGrafEffect, 20)
3163 TEST_FIELD_SIZE (SOUNDSENTRYW, iFSGrafEffectMSec, 4)
3164 TEST_FIELD_ALIGN (SOUNDSENTRYW, iFSGrafEffectMSec, 4)
3165 TEST_FIELD_OFFSET(SOUNDSENTRYW, iFSGrafEffectMSec, 24)
3166 TEST_FIELD_SIZE (SOUNDSENTRYW, iFSGrafEffectColor, 4)
3167 TEST_FIELD_ALIGN (SOUNDSENTRYW, iFSGrafEffectColor, 4)
3168 TEST_FIELD_OFFSET(SOUNDSENTRYW, iFSGrafEffectColor, 28)
3169 TEST_FIELD_SIZE (SOUNDSENTRYW, iWindowsEffect, 4)
3170 TEST_FIELD_ALIGN (SOUNDSENTRYW, iWindowsEffect, 4)
3171 TEST_FIELD_OFFSET(SOUNDSENTRYW, iWindowsEffect, 32)
3172 TEST_FIELD_SIZE (SOUNDSENTRYW, iWindowsEffectMSec, 4)
3173 TEST_FIELD_ALIGN (SOUNDSENTRYW, iWindowsEffectMSec, 4)
3174 TEST_FIELD_OFFSET(SOUNDSENTRYW, iWindowsEffectMSec, 36)
3175 TEST_FIELD_SIZE (SOUNDSENTRYW, lpszWindowsEffectDLL, 8)
3176 TEST_FIELD_ALIGN (SOUNDSENTRYW, lpszWindowsEffectDLL, 8)
3177 TEST_FIELD_OFFSET(SOUNDSENTRYW, lpszWindowsEffectDLL, 40)
3178 TEST_FIELD_SIZE (SOUNDSENTRYW, iWindowsEffectOrdinal, 4)
3179 TEST_FIELD_ALIGN (SOUNDSENTRYW, iWindowsEffectOrdinal, 4)
3180 TEST_FIELD_OFFSET(SOUNDSENTRYW, iWindowsEffectOrdinal, 48)
3181}
3182
3183static void test_pack_STICKYKEYS(void)
3184{
3185 /* STICKYKEYS */
3188 TEST_FIELD_SIZE (STICKYKEYS, cbSize, 4)
3189 TEST_FIELD_ALIGN (STICKYKEYS, cbSize, 4)
3190 TEST_FIELD_OFFSET(STICKYKEYS, cbSize, 0)
3194}
3195
3196static void test_pack_STYLESTRUCT(void)
3197{
3198 /* STYLESTRUCT */
3201 TEST_FIELD_SIZE (STYLESTRUCT, styleOld, 4)
3202 TEST_FIELD_ALIGN (STYLESTRUCT, styleOld, 4)
3203 TEST_FIELD_OFFSET(STYLESTRUCT, styleOld, 0)
3204 TEST_FIELD_SIZE (STYLESTRUCT, styleNew, 4)
3205 TEST_FIELD_ALIGN (STYLESTRUCT, styleNew, 4)
3206 TEST_FIELD_OFFSET(STYLESTRUCT, styleNew, 4)
3207}
3208
3209static void test_pack_TIMERPROC(void)
3210{
3211 /* TIMERPROC */
3214}
3215
3216static void test_pack_TITLEBARINFO(void)
3217{
3218 /* TITLEBARINFO */
3221 TEST_FIELD_SIZE (TITLEBARINFO, cbSize, 4)
3222 TEST_FIELD_ALIGN (TITLEBARINFO, cbSize, 4)
3224 TEST_FIELD_SIZE (TITLEBARINFO, rcTitleBar, 16)
3225 TEST_FIELD_ALIGN (TITLEBARINFO, rcTitleBar, 4)
3226 TEST_FIELD_OFFSET(TITLEBARINFO, rcTitleBar, 4)
3227 TEST_FIELD_SIZE (TITLEBARINFO, rgstate, 24)
3228 TEST_FIELD_ALIGN (TITLEBARINFO, rgstate, 4)
3229 TEST_FIELD_OFFSET(TITLEBARINFO, rgstate, 20)
3230}
3231
3232static void test_pack_TOGGLEKEYS(void)
3233{
3234 /* TOGGLEKEYS */
3237 TEST_FIELD_SIZE (TOGGLEKEYS, cbSize, 4)
3238 TEST_FIELD_ALIGN (TOGGLEKEYS, cbSize, 4)
3239 TEST_FIELD_OFFSET(TOGGLEKEYS, cbSize, 0)
3243}
3244
3245static void test_pack_TPMPARAMS(void)
3246{
3247 /* TPMPARAMS */
3250 TEST_FIELD_SIZE (TPMPARAMS, cbSize, 4)
3251 TEST_FIELD_ALIGN (TPMPARAMS, cbSize, 4)
3252 TEST_FIELD_OFFSET(TPMPARAMS, cbSize, 0)
3253 TEST_FIELD_SIZE (TPMPARAMS, rcExclude, 16)
3254 TEST_FIELD_ALIGN (TPMPARAMS, rcExclude, 4)
3255 TEST_FIELD_OFFSET(TPMPARAMS, rcExclude, 4)
3256}
3257
3258static void test_pack_TRACKMOUSEEVENT(void)
3259{
3260 /* TRACKMOUSEEVENT */
3263 TEST_FIELD_SIZE (TRACKMOUSEEVENT, cbSize, 4)
3269 TEST_FIELD_SIZE (TRACKMOUSEEVENT, hwndTrack, 8)
3270 TEST_FIELD_ALIGN (TRACKMOUSEEVENT, hwndTrack, 8)
3271 TEST_FIELD_OFFSET(TRACKMOUSEEVENT, hwndTrack, 8)
3272 TEST_FIELD_SIZE (TRACKMOUSEEVENT, dwHoverTime, 4)
3273 TEST_FIELD_ALIGN (TRACKMOUSEEVENT, dwHoverTime, 4)
3274 TEST_FIELD_OFFSET(TRACKMOUSEEVENT, dwHoverTime, 16)
3275}
3276
3277static void test_pack_USEROBJECTFLAGS(void)
3278{
3279 /* USEROBJECTFLAGS */
3282 TEST_FIELD_SIZE (USEROBJECTFLAGS, fInherit, 4)
3283 TEST_FIELD_ALIGN (USEROBJECTFLAGS, fInherit, 4)
3285 TEST_FIELD_SIZE (USEROBJECTFLAGS, fReserved, 4)
3286 TEST_FIELD_ALIGN (USEROBJECTFLAGS, fReserved, 4)
3287 TEST_FIELD_OFFSET(USEROBJECTFLAGS, fReserved, 4)
3291}
3292
3293static void test_pack_WINDOWINFO(void)
3294{
3295 /* WINDOWINFO */
3298 TEST_FIELD_SIZE (WINDOWINFO, cbSize, 4)
3299 TEST_FIELD_ALIGN (WINDOWINFO, cbSize, 4)
3300 TEST_FIELD_OFFSET(WINDOWINFO, cbSize, 0)
3301 TEST_FIELD_SIZE (WINDOWINFO, rcWindow, 16)
3302 TEST_FIELD_ALIGN (WINDOWINFO, rcWindow, 4)
3303 TEST_FIELD_OFFSET(WINDOWINFO, rcWindow, 4)
3304 TEST_FIELD_SIZE (WINDOWINFO, rcClient, 16)
3305 TEST_FIELD_ALIGN (WINDOWINFO, rcClient, 4)
3306 TEST_FIELD_OFFSET(WINDOWINFO, rcClient, 20)
3307 TEST_FIELD_SIZE (WINDOWINFO, dwStyle, 4)
3308 TEST_FIELD_ALIGN (WINDOWINFO, dwStyle, 4)
3309 TEST_FIELD_OFFSET(WINDOWINFO, dwStyle, 36)
3310 TEST_FIELD_SIZE (WINDOWINFO, dwExStyle, 4)
3311 TEST_FIELD_ALIGN (WINDOWINFO, dwExStyle, 4)
3312 TEST_FIELD_OFFSET(WINDOWINFO, dwExStyle, 40)
3313 TEST_FIELD_SIZE (WINDOWINFO, dwWindowStatus, 4)
3314 TEST_FIELD_ALIGN (WINDOWINFO, dwWindowStatus, 4)
3315 TEST_FIELD_OFFSET(WINDOWINFO, dwWindowStatus, 44)
3316 TEST_FIELD_SIZE (WINDOWINFO, cxWindowBorders, 4)
3317 TEST_FIELD_ALIGN (WINDOWINFO, cxWindowBorders, 4)
3318 TEST_FIELD_OFFSET(WINDOWINFO, cxWindowBorders, 48)
3319 TEST_FIELD_SIZE (WINDOWINFO, cyWindowBorders, 4)
3320 TEST_FIELD_ALIGN (WINDOWINFO, cyWindowBorders, 4)
3321 TEST_FIELD_OFFSET(WINDOWINFO, cyWindowBorders, 52)
3322 TEST_FIELD_SIZE (WINDOWINFO, atomWindowType, 2)
3323 TEST_FIELD_ALIGN (WINDOWINFO, atomWindowType, 2)
3324 TEST_FIELD_OFFSET(WINDOWINFO, atomWindowType, 56)
3325 TEST_FIELD_SIZE (WINDOWINFO, wCreatorVersion, 2)
3326 TEST_FIELD_ALIGN (WINDOWINFO, wCreatorVersion, 2)
3327 TEST_FIELD_OFFSET(WINDOWINFO, wCreatorVersion, 58)
3328}
3329
3330static void test_pack_WINDOWPLACEMENT(void)
3331{
3332 /* WINDOWPLACEMENT */
3341 TEST_FIELD_SIZE (WINDOWPLACEMENT, showCmd, 4)
3342 TEST_FIELD_ALIGN (WINDOWPLACEMENT, showCmd, 4)
3344 TEST_FIELD_SIZE (WINDOWPLACEMENT, ptMinPosition, 8)
3345 TEST_FIELD_ALIGN (WINDOWPLACEMENT, ptMinPosition, 4)
3346 TEST_FIELD_OFFSET(WINDOWPLACEMENT, ptMinPosition, 12)
3347 TEST_FIELD_SIZE (WINDOWPLACEMENT, ptMaxPosition, 8)
3348 TEST_FIELD_ALIGN (WINDOWPLACEMENT, ptMaxPosition, 4)
3349 TEST_FIELD_OFFSET(WINDOWPLACEMENT, ptMaxPosition, 20)
3350 TEST_FIELD_SIZE (WINDOWPLACEMENT, rcNormalPosition, 16)
3351 TEST_FIELD_ALIGN (WINDOWPLACEMENT, rcNormalPosition, 4)
3352 TEST_FIELD_OFFSET(WINDOWPLACEMENT, rcNormalPosition, 28)
3353}
3354
3355static void test_pack_WINDOWPOS(void)
3356{
3357 /* WINDOWPOS */
3363 TEST_FIELD_SIZE (WINDOWPOS, hwndInsertAfter, 8)
3364 TEST_FIELD_ALIGN (WINDOWPOS, hwndInsertAfter, 8)
3365 TEST_FIELD_OFFSET(WINDOWPOS, hwndInsertAfter, 8)
3381}
3382
3383static void test_pack_WINEVENTPROC(void)
3384{
3385 /* WINEVENTPROC */
3388}
3389
3390static void test_pack_WINSTAENUMPROCA(void)
3391{
3392 /* WINSTAENUMPROCA */
3395}
3396
3397static void test_pack_WINSTAENUMPROCW(void)
3398{
3399 /* WINSTAENUMPROCW */
3402}
3403
3404static void test_pack_WNDCLASSA(void)
3405{
3406 /* WNDCLASSA */
3412 TEST_FIELD_SIZE (WNDCLASSA, lpfnWndProc, 8)
3413 TEST_FIELD_ALIGN (WNDCLASSA, lpfnWndProc, 8)
3414 TEST_FIELD_OFFSET(WNDCLASSA, lpfnWndProc, 8)
3415 TEST_FIELD_SIZE (WNDCLASSA, cbClsExtra, 4)
3416 TEST_FIELD_ALIGN (WNDCLASSA, cbClsExtra, 4)
3417 TEST_FIELD_OFFSET(WNDCLASSA, cbClsExtra, 16)
3418 TEST_FIELD_SIZE (WNDCLASSA, cbWndExtra, 4)
3419 TEST_FIELD_ALIGN (WNDCLASSA, cbWndExtra, 4)
3420 TEST_FIELD_OFFSET(WNDCLASSA, cbWndExtra, 20)
3427 TEST_FIELD_SIZE (WNDCLASSA, hCursor, 8)
3428 TEST_FIELD_ALIGN (WNDCLASSA, hCursor, 8)
3429 TEST_FIELD_OFFSET(WNDCLASSA, hCursor, 40)
3433 TEST_FIELD_SIZE (WNDCLASSA, lpszMenuName, 8)
3434 TEST_FIELD_ALIGN (WNDCLASSA, lpszMenuName, 8)
3435 TEST_FIELD_OFFSET(WNDCLASSA, lpszMenuName, 56)
3436 TEST_FIELD_SIZE (WNDCLASSA, lpszClassName, 8)
3437 TEST_FIELD_ALIGN (WNDCLASSA, lpszClassName, 8)
3438 TEST_FIELD_OFFSET(WNDCLASSA, lpszClassName, 64)
3439}
3440
3441static void test_pack_WNDCLASSEXA(void)
3442{
3443 /* WNDCLASSEXA */
3446 TEST_FIELD_SIZE (WNDCLASSEXA, cbSize, 4)
3447 TEST_FIELD_ALIGN (WNDCLASSEXA, cbSize, 4)
3448 TEST_FIELD_OFFSET(WNDCLASSEXA, cbSize, 0)
3452 TEST_FIELD_SIZE (WNDCLASSEXA, lpfnWndProc, 8)
3453 TEST_FIELD_ALIGN (WNDCLASSEXA, lpfnWndProc, 8)
3454 TEST_FIELD_OFFSET(WNDCLASSEXA, lpfnWndProc, 8)
3455 TEST_FIELD_SIZE (WNDCLASSEXA, cbClsExtra, 4)
3456 TEST_FIELD_ALIGN (WNDCLASSEXA, cbClsExtra, 4)
3457 TEST_FIELD_OFFSET(WNDCLASSEXA, cbClsExtra, 16)
3458 TEST_FIELD_SIZE (WNDCLASSEXA, cbWndExtra, 4)
3459 TEST_FIELD_ALIGN (WNDCLASSEXA, cbWndExtra, 4)
3460 TEST_FIELD_OFFSET(WNDCLASSEXA, cbWndExtra, 20)
3467 TEST_FIELD_SIZE (WNDCLASSEXA, hCursor, 8)
3468 TEST_FIELD_ALIGN (WNDCLASSEXA, hCursor, 8)
3469 TEST_FIELD_OFFSET(WNDCLASSEXA, hCursor, 40)
3473 TEST_FIELD_SIZE (WNDCLASSEXA, lpszMenuName, 8)
3474 TEST_FIELD_ALIGN (WNDCLASSEXA, lpszMenuName, 8)
3475 TEST_FIELD_OFFSET(WNDCLASSEXA, lpszMenuName, 56)
3476 TEST_FIELD_SIZE (WNDCLASSEXA, lpszClassName, 8)
3477 TEST_FIELD_ALIGN (WNDCLASSEXA, lpszClassName, 8)
3478 TEST_FIELD_OFFSET(WNDCLASSEXA, lpszClassName, 64)
3482}
3483
3484static void test_pack_WNDCLASSEXW(void)
3485{
3486 /* WNDCLASSEXW */
3489 TEST_FIELD_SIZE (WNDCLASSEXW, cbSize, 4)
3490 TEST_FIELD_ALIGN (WNDCLASSEXW, cbSize, 4)
3491 TEST_FIELD_OFFSET(WNDCLASSEXW, cbSize, 0)
3495 TEST_FIELD_SIZE (WNDCLASSEXW, lpfnWndProc, 8)
3496 TEST_FIELD_ALIGN (WNDCLASSEXW, lpfnWndProc, 8)
3497 TEST_FIELD_OFFSET(WNDCLASSEXW, lpfnWndProc, 8)
3498 TEST_FIELD_SIZE (WNDCLASSEXW, cbClsExtra, 4)
3499 TEST_FIELD_ALIGN (WNDCLASSEXW, cbClsExtra, 4)
3500 TEST_FIELD_OFFSET(WNDCLASSEXW, cbClsExtra, 16)
3501 TEST_FIELD_SIZE (WNDCLASSEXW, cbWndExtra, 4)
3502 TEST_FIELD_ALIGN (WNDCLASSEXW, cbWndExtra, 4)
3503 TEST_FIELD_OFFSET(WNDCLASSEXW, cbWndExtra, 20)
3510 TEST_FIELD_SIZE (WNDCLASSEXW, hCursor, 8)
3511 TEST_FIELD_ALIGN (WNDCLASSEXW, hCursor, 8)
3512 TEST_FIELD_OFFSET(WNDCLASSEXW, hCursor, 40)
3516 TEST_FIELD_SIZE (WNDCLASSEXW, lpszMenuName, 8)
3517 TEST_FIELD_ALIGN (WNDCLASSEXW, lpszMenuName, 8)
3518 TEST_FIELD_OFFSET(WNDCLASSEXW, lpszMenuName, 56)
3519 TEST_FIELD_SIZE (WNDCLASSEXW, lpszClassName, 8)
3520 TEST_FIELD_ALIGN (WNDCLASSEXW, lpszClassName, 8)
3521 TEST_FIELD_OFFSET(WNDCLASSEXW, lpszClassName, 64)
3525}
3526
3527static void test_pack_WNDCLASSW(void)
3528{
3529 /* WNDCLASSW */
3535 TEST_FIELD_SIZE (WNDCLASSW, lpfnWndProc, 8)
3536 TEST_FIELD_ALIGN (WNDCLASSW, lpfnWndProc, 8)
3537 TEST_FIELD_OFFSET(WNDCLASSW, lpfnWndProc, 8)
3538 TEST_FIELD_SIZE (WNDCLASSW, cbClsExtra, 4)
3539 TEST_FIELD_ALIGN (WNDCLASSW, cbClsExtra, 4)
3540 TEST_FIELD_OFFSET(WNDCLASSW, cbClsExtra, 16)
3541 TEST_FIELD_SIZE (WNDCLASSW, cbWndExtra, 4)
3542 TEST_FIELD_ALIGN (WNDCLASSW, cbWndExtra, 4)
3543 TEST_FIELD_OFFSET(WNDCLASSW, cbWndExtra, 20)
3550 TEST_FIELD_SIZE (WNDCLASSW, hCursor, 8)
3551 TEST_FIELD_ALIGN (WNDCLASSW, hCursor, 8)
3552 TEST_FIELD_OFFSET(WNDCLASSW, hCursor, 40)
3556 TEST_FIELD_SIZE (WNDCLASSW, lpszMenuName, 8)
3557 TEST_FIELD_ALIGN (WNDCLASSW, lpszMenuName, 8)
3558 TEST_FIELD_OFFSET(WNDCLASSW, lpszMenuName, 56)
3559 TEST_FIELD_SIZE (WNDCLASSW, lpszClassName, 8)
3560 TEST_FIELD_ALIGN (WNDCLASSW, lpszClassName, 8)
3561 TEST_FIELD_OFFSET(WNDCLASSW, lpszClassName, 64)
3562}
3563
3564static void test_pack_WNDENUMPROC(void)
3565{
3566 /* WNDENUMPROC */
3569}
3570
3571static void test_pack_WNDPROC(void)
3572{
3573 /* WNDPROC */
3576}
3577
3578#else /* _WIN64 */
3579
3581{
3582 /* ACCESSTIMEOUT */
3585 TEST_FIELD_SIZE (ACCESSTIMEOUT, cbSize, 4)
3586 TEST_FIELD_ALIGN (ACCESSTIMEOUT, cbSize, 4)
3591 TEST_FIELD_SIZE (ACCESSTIMEOUT, iTimeOutMSec, 4)
3592 TEST_FIELD_ALIGN (ACCESSTIMEOUT, iTimeOutMSec, 4)
3593 TEST_FIELD_OFFSET(ACCESSTIMEOUT, iTimeOutMSec, 8)
3594}
3595
3597{
3598 /* ANIMATIONINFO */
3601 TEST_FIELD_SIZE (ANIMATIONINFO, cbSize, 4)
3602 TEST_FIELD_ALIGN (ANIMATIONINFO, cbSize, 4)
3604 TEST_FIELD_SIZE (ANIMATIONINFO, iMinAnimate, 4)
3605 TEST_FIELD_ALIGN (ANIMATIONINFO, iMinAnimate, 4)
3606 TEST_FIELD_OFFSET(ANIMATIONINFO, iMinAnimate, 4)
3607}
3608
3610{
3611 /* CBTACTIVATESTRUCT */
3617 TEST_FIELD_SIZE (CBTACTIVATESTRUCT, hWndActive, 4)
3618 TEST_FIELD_ALIGN (CBTACTIVATESTRUCT, hWndActive, 4)
3619 TEST_FIELD_OFFSET(CBTACTIVATESTRUCT, hWndActive, 4)
3620}
3621
3623{
3624 /* CBT_CREATEWNDA */
3630 TEST_FIELD_SIZE (CBT_CREATEWNDA, hwndInsertAfter, 4)
3631 TEST_FIELD_ALIGN (CBT_CREATEWNDA, hwndInsertAfter, 4)
3632 TEST_FIELD_OFFSET(CBT_CREATEWNDA, hwndInsertAfter, 4)
3633}
3634
3636{
3637 /* CBT_CREATEWNDW */
3643 TEST_FIELD_SIZE (CBT_CREATEWNDW, hwndInsertAfter, 4)
3644 TEST_FIELD_ALIGN (CBT_CREATEWNDW, hwndInsertAfter, 4)
3645 TEST_FIELD_OFFSET(CBT_CREATEWNDW, hwndInsertAfter, 4)
3646}
3647
3649{
3650 /* CLIENTCREATESTRUCT */
3656 TEST_FIELD_SIZE (CLIENTCREATESTRUCT, idFirstChild, 4)
3657 TEST_FIELD_ALIGN (CLIENTCREATESTRUCT, idFirstChild, 4)
3658 TEST_FIELD_OFFSET(CLIENTCREATESTRUCT, idFirstChild, 4)
3659}
3660
3661static void test_pack_COMBOBOXINFO(void)
3662{
3663 /* COMBOBOXINFO */
3666 TEST_FIELD_SIZE (COMBOBOXINFO, cbSize, 4)
3667 TEST_FIELD_ALIGN (COMBOBOXINFO, cbSize, 4)
3669 TEST_FIELD_SIZE (COMBOBOXINFO, rcItem, 16)
3670 TEST_FIELD_ALIGN (COMBOBOXINFO, rcItem, 4)
3672 TEST_FIELD_SIZE (COMBOBOXINFO, rcButton, 16)
3673 TEST_FIELD_ALIGN (COMBOBOXINFO, rcButton, 4)
3674 TEST_FIELD_OFFSET(COMBOBOXINFO, rcButton, 20)
3675 TEST_FIELD_SIZE (COMBOBOXINFO, stateButton, 4)
3676 TEST_FIELD_ALIGN (COMBOBOXINFO, stateButton, 4)
3677 TEST_FIELD_OFFSET(COMBOBOXINFO, stateButton, 36)
3678 TEST_FIELD_SIZE (COMBOBOXINFO, hwndCombo, 4)
3679 TEST_FIELD_ALIGN (COMBOBOXINFO, hwndCombo, 4)
3680 TEST_FIELD_OFFSET(COMBOBOXINFO, hwndCombo, 40)
3681 TEST_FIELD_SIZE (COMBOBOXINFO, hwndItem, 4)
3682 TEST_FIELD_ALIGN (COMBOBOXINFO, hwndItem, 4)
3683 TEST_FIELD_OFFSET(COMBOBOXINFO, hwndItem, 44)
3684 TEST_FIELD_SIZE (COMBOBOXINFO, hwndList, 4)
3685 TEST_FIELD_ALIGN (COMBOBOXINFO, hwndList, 4)
3686 TEST_FIELD_OFFSET(COMBOBOXINFO, hwndList, 48)
3687}
3688
3690{
3691 /* COMPAREITEMSTRUCT */
3700 TEST_FIELD_SIZE (COMPAREITEMSTRUCT, hwndItem, 4)
3701 TEST_FIELD_ALIGN (COMPAREITEMSTRUCT, hwndItem, 4)
3706 TEST_FIELD_SIZE (COMPAREITEMSTRUCT, itemData1, 4)
3707 TEST_FIELD_ALIGN (COMPAREITEMSTRUCT, itemData1, 4)
3708 TEST_FIELD_OFFSET(COMPAREITEMSTRUCT, itemData1, 16)
3712 TEST_FIELD_SIZE (COMPAREITEMSTRUCT, itemData2, 4)
3713 TEST_FIELD_ALIGN (COMPAREITEMSTRUCT, itemData2, 4)
3714 TEST_FIELD_OFFSET(COMPAREITEMSTRUCT, itemData2, 24)
3715 TEST_FIELD_SIZE (COMPAREITEMSTRUCT, dwLocaleId, 4)
3716 TEST_FIELD_ALIGN (COMPAREITEMSTRUCT, dwLocaleId, 4)
3717 TEST_FIELD_OFFSET(COMPAREITEMSTRUCT, dwLocaleId, 28)
3718}
3719
3721{
3722 /* COPYDATASTRUCT */
3728 TEST_FIELD_SIZE (COPYDATASTRUCT, cbData, 4)
3729 TEST_FIELD_ALIGN (COPYDATASTRUCT, cbData, 4)
3731 TEST_FIELD_SIZE (COPYDATASTRUCT, lpData, 4)
3732 TEST_FIELD_ALIGN (COPYDATASTRUCT, lpData, 4)
3734}
3735
3737{
3738 /* CREATESTRUCTA */
3741 TEST_FIELD_SIZE (CREATESTRUCTA, lpCreateParams, 4)
3742 TEST_FIELD_ALIGN (CREATESTRUCTA, lpCreateParams, 4)
3743 TEST_FIELD_OFFSET(CREATESTRUCTA, lpCreateParams, 0)
3747 TEST_FIELD_SIZE (CREATESTRUCTA, hMenu, 4)
3768 TEST_FIELD_SIZE (CREATESTRUCTA, lpszName, 4)
3769 TEST_FIELD_ALIGN (CREATESTRUCTA, lpszName, 4)
3770 TEST_FIELD_OFFSET(CREATESTRUCTA, lpszName, 36)
3771 TEST_FIELD_SIZE (CREATESTRUCTA, lpszClass, 4)
3772 TEST_FIELD_ALIGN (CREATESTRUCTA, lpszClass, 4)
3773 TEST_FIELD_OFFSET(CREATESTRUCTA, lpszClass, 40)
3774 TEST_FIELD_SIZE (CREATESTRUCTA, dwExStyle, 4)
3775 TEST_FIELD_ALIGN (CREATESTRUCTA, dwExStyle, 4)
3776 TEST_FIELD_OFFSET(CREATESTRUCTA, dwExStyle, 44)
3777}
3778
3780{
3781 /* CREATESTRUCTW */
3784 TEST_FIELD_SIZE (CREATESTRUCTW, lpCreateParams, 4)
3785 TEST_FIELD_ALIGN (CREATESTRUCTW, lpCreateParams, 4)
3786 TEST_FIELD_OFFSET(CREATESTRUCTW, lpCreateParams, 0)
3790 TEST_FIELD_SIZE (CREATESTRUCTW, hMenu, 4)
3811 TEST_FIELD_SIZE (CREATESTRUCTW, lpszName, 4)
3812 TEST_FIELD_ALIGN (CREATESTRUCTW, lpszName, 4)
3813 TEST_FIELD_OFFSET(CREATESTRUCTW, lpszName, 36)
3814 TEST_FIELD_SIZE (CREATESTRUCTW, lpszClass, 4)
3815 TEST_FIELD_ALIGN (CREATESTRUCTW, lpszClass, 4)
3816 TEST_FIELD_OFFSET(CREATESTRUCTW, lpszClass, 40)
3817 TEST_FIELD_SIZE (CREATESTRUCTW, dwExStyle, 4)
3818 TEST_FIELD_ALIGN (CREATESTRUCTW, dwExStyle, 4)
3819 TEST_FIELD_OFFSET(CREATESTRUCTW, dwExStyle, 44)
3820}
3821
3822static void test_pack_CURSORINFO(void)
3823{
3824 /* CURSORINFO */
3827 TEST_FIELD_SIZE (CURSORINFO, cbSize, 4)
3828 TEST_FIELD_ALIGN (CURSORINFO, cbSize, 4)
3829 TEST_FIELD_OFFSET(CURSORINFO, cbSize, 0)
3833 TEST_FIELD_SIZE (CURSORINFO, hCursor, 4)
3834 TEST_FIELD_ALIGN (CURSORINFO, hCursor, 4)
3835 TEST_FIELD_OFFSET(CURSORINFO, hCursor, 8)
3836 TEST_FIELD_SIZE (CURSORINFO, ptScreenPos, 8)
3837 TEST_FIELD_ALIGN (CURSORINFO, ptScreenPos, 4)
3838 TEST_FIELD_OFFSET(CURSORINFO, ptScreenPos, 12)
3839}
3840
3841static void test_pack_CWPRETSTRUCT(void)
3842{
3843 /* CWPRETSTRUCT */
3846 TEST_FIELD_SIZE (CWPRETSTRUCT, lResult, 4)
3847 TEST_FIELD_ALIGN (CWPRETSTRUCT, lResult, 4)
3848 TEST_FIELD_OFFSET(CWPRETSTRUCT, lResult, 0)
3861}
3862
3863static void test_pack_CWPSTRUCT(void)
3864{
3865 /* CWPSTRUCT */
3880}
3881
3883{
3884 /* DEBUGHOOKINFO */
3887 TEST_FIELD_SIZE (DEBUGHOOKINFO, idThread, 4)
3888 TEST_FIELD_ALIGN (DEBUGHOOKINFO, idThread, 4)
3889 TEST_FIELD_OFFSET(DEBUGHOOKINFO, idThread, 0)
3890 TEST_FIELD_SIZE (DEBUGHOOKINFO, idThreadInstaller, 4)
3891 TEST_FIELD_ALIGN (DEBUGHOOKINFO, idThreadInstaller, 4)
3892 TEST_FIELD_OFFSET(DEBUGHOOKINFO, idThreadInstaller, 4)
3902}
3903
3905{
3906 /* DELETEITEMSTRUCT */
3909 TEST_FIELD_SIZE (DELETEITEMSTRUCT, CtlType, 4)
3918 TEST_FIELD_SIZE (DELETEITEMSTRUCT, hwndItem, 4)
3919 TEST_FIELD_ALIGN (DELETEITEMSTRUCT, hwndItem, 4)
3920 TEST_FIELD_OFFSET(DELETEITEMSTRUCT, hwndItem, 12)
3921 TEST_FIELD_SIZE (DELETEITEMSTRUCT, itemData, 4)
3922 TEST_FIELD_ALIGN (DELETEITEMSTRUCT, itemData, 4)
3923 TEST_FIELD_OFFSET(DELETEITEMSTRUCT, itemData, 16)
3924}
3925
3927{
3928 /* DESKTOPENUMPROCA */
3931}
3932
3934{
3935 /* DESKTOPENUMPROCW */
3938}
3939
3941{
3942 /* DLGITEMTEMPLATE (pack 2) */
3948 TEST_FIELD_SIZE (DLGITEMTEMPLATE, dwExtendedStyle, 4)
3949 TEST_FIELD_ALIGN (DLGITEMTEMPLATE, dwExtendedStyle, 2)
3950 TEST_FIELD_OFFSET(DLGITEMTEMPLATE, dwExtendedStyle, 4)
3966}
3967
3968static void test_pack_DLGPROC(void)
3969{
3970 /* DLGPROC */
3973}
3974
3975static void test_pack_DLGTEMPLATE(void)
3976{
3977 /* DLGTEMPLATE (pack 2) */
3983 TEST_FIELD_SIZE (DLGTEMPLATE, dwExtendedStyle, 4)
3984 TEST_FIELD_ALIGN (DLGTEMPLATE, dwExtendedStyle, 2)
3985 TEST_FIELD_OFFSET(DLGTEMPLATE, dwExtendedStyle, 4)
3986 TEST_FIELD_SIZE (DLGTEMPLATE, cdit, 2)
3987 TEST_FIELD_ALIGN (DLGTEMPLATE, cdit, 2)
4001}
4002
4004{
4005 /* DRAWITEMSTRUCT */
4008 TEST_FIELD_SIZE (DRAWITEMSTRUCT, CtlType, 4)
4009 TEST_FIELD_ALIGN (DRAWITEMSTRUCT, CtlType, 4)
4014 TEST_FIELD_SIZE (DRAWITEMSTRUCT, itemID, 4)
4015 TEST_FIELD_ALIGN (DRAWITEMSTRUCT, itemID, 4)
4017 TEST_FIELD_SIZE (DRAWITEMSTRUCT, itemAction, 4)
4018 TEST_FIELD_ALIGN (DRAWITEMSTRUCT, itemAction, 4)
4019 TEST_FIELD_OFFSET(DRAWITEMSTRUCT, itemAction, 12)
4020 TEST_FIELD_SIZE (DRAWITEMSTRUCT, itemState, 4)
4021 TEST_FIELD_ALIGN (DRAWITEMSTRUCT, itemState, 4)
4022 TEST_FIELD_OFFSET(DRAWITEMSTRUCT, itemState, 16)
4023 TEST_FIELD_SIZE (DRAWITEMSTRUCT, hwndItem, 4)
4024 TEST_FIELD_ALIGN (DRAWITEMSTRUCT, hwndItem, 4)
4025 TEST_FIELD_OFFSET(DRAWITEMSTRUCT, hwndItem, 20)
4029 TEST_FIELD_SIZE (DRAWITEMSTRUCT, rcItem, 16)
4030 TEST_FIELD_ALIGN (DRAWITEMSTRUCT, rcItem, 4)
4032 TEST_FIELD_SIZE (DRAWITEMSTRUCT, itemData, 4)
4033 TEST_FIELD_ALIGN (DRAWITEMSTRUCT, itemData, 4)
4034 TEST_FIELD_OFFSET(DRAWITEMSTRUCT, itemData, 44)
4035}
4036
4038{
4039 /* DRAWSTATEPROC */
4042}
4043
4045{
4046 /* DRAWTEXTPARAMS */
4049 TEST_FIELD_SIZE (DRAWTEXTPARAMS, cbSize, 4)
4050 TEST_FIELD_ALIGN (DRAWTEXTPARAMS, cbSize, 4)
4052 TEST_FIELD_SIZE (DRAWTEXTPARAMS, iTabLength, 4)
4053 TEST_FIELD_ALIGN (DRAWTEXTPARAMS, iTabLength, 4)
4054 TEST_FIELD_OFFSET(DRAWTEXTPARAMS, iTabLength, 4)
4055 TEST_FIELD_SIZE (DRAWTEXTPARAMS, iLeftMargin, 4)
4056 TEST_FIELD_ALIGN (DRAWTEXTPARAMS, iLeftMargin, 4)
4057 TEST_FIELD_OFFSET(DRAWTEXTPARAMS, iLeftMargin, 8)
4058 TEST_FIELD_SIZE (DRAWTEXTPARAMS, iRightMargin, 4)
4059 TEST_FIELD_ALIGN (DRAWTEXTPARAMS, iRightMargin, 4)
4060 TEST_FIELD_OFFSET(DRAWTEXTPARAMS, iRightMargin, 12)
4061 TEST_FIELD_SIZE (DRAWTEXTPARAMS, uiLengthDrawn, 4)
4062 TEST_FIELD_ALIGN (DRAWTEXTPARAMS, uiLengthDrawn, 4)
4063 TEST_FIELD_OFFSET(DRAWTEXTPARAMS, uiLengthDrawn, 16)
4064}
4065
4067{
4068 /* EDITWORDBREAKPROCA */
4071}
4072
4074{
4075 /* EDITWORDBREAKPROCW */
4078}
4079
4080static void test_pack_EVENTMSG(void)
4081{
4082 /* EVENTMSG */
4088 TEST_FIELD_SIZE (EVENTMSG, paramL, 4)
4089 TEST_FIELD_ALIGN (EVENTMSG, paramL, 4)
4090 TEST_FIELD_OFFSET(EVENTMSG, paramL, 4)
4091 TEST_FIELD_SIZE (EVENTMSG, paramH, 4)
4092 TEST_FIELD_ALIGN (EVENTMSG, paramH, 4)
4093 TEST_FIELD_OFFSET(EVENTMSG, paramH, 8)
4100}
4101
4102static void test_pack_FILTERKEYS(void)
4103{
4104 /* FILTERKEYS */
4107 TEST_FIELD_SIZE (FILTERKEYS, cbSize, 4)
4108 TEST_FIELD_ALIGN (FILTERKEYS, cbSize, 4)
4109 TEST_FIELD_OFFSET(FILTERKEYS, cbSize, 0)
4113 TEST_FIELD_SIZE (FILTERKEYS, iWaitMSec, 4)
4114 TEST_FIELD_ALIGN (FILTERKEYS, iWaitMSec, 4)
4115 TEST_FIELD_OFFSET(FILTERKEYS, iWaitMSec, 8)
4116 TEST_FIELD_SIZE (FILTERKEYS, iDelayMSec, 4)
4117 TEST_FIELD_ALIGN (FILTERKEYS, iDelayMSec, 4)
4118 TEST_FIELD_OFFSET(FILTERKEYS, iDelayMSec, 12)
4119 TEST_FIELD_SIZE (FILTERKEYS, iRepeatMSec, 4)
4120 TEST_FIELD_ALIGN (FILTERKEYS, iRepeatMSec, 4)
4121 TEST_FIELD_OFFSET(FILTERKEYS, iRepeatMSec, 16)
4122 TEST_FIELD_SIZE (FILTERKEYS, iBounceMSec, 4)
4123 TEST_FIELD_ALIGN (FILTERKEYS, iBounceMSec, 4)
4124 TEST_FIELD_OFFSET(FILTERKEYS, iBounceMSec, 20)
4125}
4126
4127static void test_pack_FLASHWINFO(void)
4128{
4129 /* FLASHWINFO */
4130 TEST_TYPE_SIZE (FLASHWINFO, 20)
4131 TEST_TYPE_ALIGN (FLASHWINFO, 4)
4132 TEST_FIELD_SIZE (FLASHWINFO, cbSize, 4)
4133 TEST_FIELD_ALIGN (FLASHWINFO, cbSize, 4)
4134 TEST_FIELD_OFFSET(FLASHWINFO, cbSize, 0)
4135 TEST_FIELD_SIZE (FLASHWINFO, hwnd, 4)
4136 TEST_FIELD_ALIGN (FLASHWINFO, hwnd, 4)
4137 TEST_FIELD_OFFSET(FLASHWINFO, hwnd, 4)
4138 TEST_FIELD_SIZE (FLASHWINFO, dwFlags, 4)
4139 TEST_FIELD_ALIGN (FLASHWINFO, dwFlags, 4)
4140 TEST_FIELD_OFFSET(FLASHWINFO, dwFlags, 8)
4141 TEST_FIELD_SIZE (FLASHWINFO, uCount, 4)
4142 TEST_FIELD_ALIGN (FLASHWINFO, uCount, 4)
4143 TEST_FIELD_OFFSET(FLASHWINFO, uCount, 12)
4144 TEST_FIELD_SIZE (FLASHWINFO, dwTimeout, 4)
4145 TEST_FIELD_ALIGN (FLASHWINFO, dwTimeout, 4)
4146 TEST_FIELD_OFFSET(FLASHWINFO, dwTimeout, 16)
4147}
4148
4150{
4151 /* GRAYSTRINGPROC */
4154}
4155
4157{
4158 /* GUITHREADINFO */
4161 TEST_FIELD_SIZE (GUITHREADINFO, cbSize, 4)
4162 TEST_FIELD_ALIGN (GUITHREADINFO, cbSize, 4)
4167 TEST_FIELD_SIZE (GUITHREADINFO, hwndActive, 4)
4168 TEST_FIELD_ALIGN (GUITHREADINFO, hwndActive, 4)
4169 TEST_FIELD_OFFSET(GUITHREADINFO, hwndActive, 8)
4170 TEST_FIELD_SIZE (GUITHREADINFO, hwndFocus, 4)
4171 TEST_FIELD_ALIGN (GUITHREADINFO, hwndFocus, 4)
4172 TEST_FIELD_OFFSET(GUITHREADINFO, hwndFocus, 12)
4173 TEST_FIELD_SIZE (GUITHREADINFO, hwndCapture, 4)
4174 TEST_FIELD_ALIGN (GUITHREADINFO, hwndCapture, 4)
4175 TEST_FIELD_OFFSET(GUITHREADINFO, hwndCapture, 16)
4176 TEST_FIELD_SIZE (GUITHREADINFO, hwndMenuOwner, 4)
4177 TEST_FIELD_ALIGN (GUITHREADINFO, hwndMenuOwner, 4)
4178 TEST_FIELD_OFFSET(GUITHREADINFO, hwndMenuOwner, 20)
4179 TEST_FIELD_SIZE (GUITHREADINFO, hwndMoveSize, 4)
4180 TEST_FIELD_ALIGN (GUITHREADINFO, hwndMoveSize, 4)
4181 TEST_FIELD_OFFSET(GUITHREADINFO, hwndMoveSize, 24)
4182 TEST_FIELD_SIZE (GUITHREADINFO, hwndCaret, 4)
4183 TEST_FIELD_ALIGN (GUITHREADINFO, hwndCaret, 4)
4184 TEST_FIELD_OFFSET(GUITHREADINFO, hwndCaret, 28)
4185 TEST_FIELD_SIZE (GUITHREADINFO, rcCaret, 16)
4186 TEST_FIELD_ALIGN (GUITHREADINFO, rcCaret, 4)
4187 TEST_FIELD_OFFSET(GUITHREADINFO, rcCaret, 32)
4188}
4189
4191{
4192 /* HARDWAREHOOKSTRUCT */
4207}
4208
4210{
4211 /* HARDWAREINPUT */
4217 TEST_FIELD_SIZE (HARDWAREINPUT, wParamL, 2)
4218 TEST_FIELD_ALIGN (HARDWAREINPUT, wParamL, 2)
4219 TEST_FIELD_OFFSET(HARDWAREINPUT, wParamL, 4)
4220 TEST_FIELD_SIZE (HARDWAREINPUT, wParamH, 2)
4221 TEST_FIELD_ALIGN (HARDWAREINPUT, wParamH, 2)
4222 TEST_FIELD_OFFSET(HARDWAREINPUT, wParamH, 6)
4223}
4224
4225static void test_pack_HDEVNOTIFY(void)
4226{
4227 /* HDEVNOTIFY */
4228 TEST_TYPE_SIZE (HDEVNOTIFY, 4)
4229 TEST_TYPE_ALIGN (HDEVNOTIFY, 4)
4230}
4231
4232static void test_pack_HDWP(void)
4233{
4234 /* HDWP */
4235 TEST_TYPE_SIZE (HDWP, 4)
4236 TEST_TYPE_ALIGN (HDWP, 4)
4237}
4238
4239static void test_pack_HELPINFO(void)
4240{
4241 /* HELPINFO */
4244 TEST_FIELD_SIZE (HELPINFO, cbSize, 4)
4245 TEST_FIELD_ALIGN (HELPINFO, cbSize, 4)
4246 TEST_FIELD_OFFSET(HELPINFO, cbSize, 0)
4247 TEST_FIELD_SIZE (HELPINFO, iContextType, 4)
4248 TEST_FIELD_ALIGN (HELPINFO, iContextType, 4)
4249 TEST_FIELD_OFFSET(HELPINFO, iContextType, 4)
4250 TEST_FIELD_SIZE (HELPINFO, iCtrlId, 4)
4251 TEST_FIELD_ALIGN (HELPINFO, iCtrlId, 4)
4252 TEST_FIELD_OFFSET(HELPINFO, iCtrlId, 8)
4253 TEST_FIELD_SIZE (HELPINFO, hItemHandle, 4)
4254 TEST_FIELD_ALIGN (HELPINFO, hItemHandle, 4)
4255 TEST_FIELD_OFFSET(HELPINFO, hItemHandle, 12)
4256 TEST_FIELD_SIZE (HELPINFO, dwContextId, 4)
4257 TEST_FIELD_ALIGN (HELPINFO, dwContextId, 4)
4258 TEST_FIELD_OFFSET(HELPINFO, dwContextId, 16)
4259 TEST_FIELD_SIZE (HELPINFO, MousePos, 8)
4260 TEST_FIELD_ALIGN (HELPINFO, MousePos, 4)
4261 TEST_FIELD_OFFSET(HELPINFO, MousePos, 20)
4262}
4263
4264static void test_pack_HELPWININFOA(void)
4265{
4266 /* HELPWININFOA */
4269 TEST_FIELD_SIZE (HELPWININFOA, wStructSize, 4)
4270 TEST_FIELD_ALIGN (HELPWININFOA, wStructSize, 4)
4271 TEST_FIELD_OFFSET(HELPWININFOA, wStructSize, 0)
4284 TEST_FIELD_SIZE (HELPWININFOA, wMax, 4)
4287 TEST_FIELD_SIZE (HELPWININFOA, rgchMember, 2)
4288 TEST_FIELD_ALIGN (HELPWININFOA, rgchMember, 1)
4289 TEST_FIELD_OFFSET(HELPWININFOA, rgchMember, 24)
4290}
4291
4292static void test_pack_HELPWININFOW(void)
4293{
4294 /* HELPWININFOW */
4297 TEST_FIELD_SIZE (HELPWININFOW, wStructSize, 4)
4298 TEST_FIELD_ALIGN (HELPWININFOW, wStructSize, 4)
4299 TEST_FIELD_OFFSET(HELPWININFOW, wStructSize, 0)
4312 TEST_FIELD_SIZE (HELPWININFOW, wMax, 4)
4315 TEST_FIELD_SIZE (HELPWININFOW, rgchMember, 4)
4316 TEST_FIELD_ALIGN (HELPWININFOW, rgchMember, 2)
4317 TEST_FIELD_OFFSET(HELPWININFOW, rgchMember, 24)
4318}
4319
4321{
4322 /* HIGHCONTRASTA */
4325 TEST_FIELD_SIZE (HIGHCONTRASTA, cbSize, 4)
4326 TEST_FIELD_ALIGN (HIGHCONTRASTA, cbSize, 4)
4331 TEST_FIELD_SIZE (HIGHCONTRASTA, lpszDefaultScheme, 4)
4332 TEST_FIELD_ALIGN (HIGHCONTRASTA, lpszDefaultScheme, 4)
4333 TEST_FIELD_OFFSET(HIGHCONTRASTA, lpszDefaultScheme, 8)
4334}
4335
4337{
4338 /* HIGHCONTRASTW */
4341 TEST_FIELD_SIZE (HIGHCONTRASTW, cbSize, 4)
4342 TEST_FIELD_ALIGN (HIGHCONTRASTW, cbSize, 4)
4347 TEST_FIELD_SIZE (HIGHCONTRASTW, lpszDefaultScheme, 4)
4348 TEST_FIELD_ALIGN (HIGHCONTRASTW, lpszDefaultScheme, 4)
4349 TEST_FIELD_OFFSET(HIGHCONTRASTW, lpszDefaultScheme, 8)
4350}
4351
4352static void test_pack_HOOKPROC(void)
4353{
4354 /* HOOKPROC */
4357}
4358
4359static void test_pack_ICONINFO(void)
4360{
4361 /* ICONINFO */
4364 TEST_FIELD_SIZE (ICONINFO, fIcon, 4)
4365 TEST_FIELD_ALIGN (ICONINFO, fIcon, 4)
4366 TEST_FIELD_OFFSET(ICONINFO, fIcon, 0)
4367 TEST_FIELD_SIZE (ICONINFO, xHotspot, 4)
4368 TEST_FIELD_ALIGN (ICONINFO, xHotspot, 4)
4369 TEST_FIELD_OFFSET(ICONINFO, xHotspot, 4)
4370 TEST_FIELD_SIZE (ICONINFO, yHotspot, 4)
4371 TEST_FIELD_ALIGN (ICONINFO, yHotspot, 4)
4372 TEST_FIELD_OFFSET(ICONINFO, yHotspot, 8)
4373 TEST_FIELD_SIZE (ICONINFO, hbmMask, 4)
4374 TEST_FIELD_ALIGN (ICONINFO, hbmMask, 4)
4375 TEST_FIELD_OFFSET(ICONINFO, hbmMask, 12)
4376 TEST_FIELD_SIZE (ICONINFO, hbmColor, 4)
4377 TEST_FIELD_ALIGN (ICONINFO, hbmColor, 4)
4378 TEST_FIELD_OFFSET(ICONINFO, hbmColor, 16)
4379}
4380
4381static void test_pack_ICONMETRICSA(void)
4382{
4383 /* ICONMETRICSA */
4384 TEST_TYPE_SIZE (ICONMETRICSA, 76)
4385 TEST_TYPE_ALIGN (ICONMETRICSA, 4)
4386 TEST_FIELD_SIZE (ICONMETRICSA, cbSize, 4)
4387 TEST_FIELD_ALIGN (ICONMETRICSA, cbSize, 4)
4388 TEST_FIELD_OFFSET(ICONMETRICSA, cbSize, 0)
4389 TEST_FIELD_SIZE (ICONMETRICSA, iHorzSpacing, 4)
4390 TEST_FIELD_ALIGN (ICONMETRICSA, iHorzSpacing, 4)
4391 TEST_FIELD_OFFSET(ICONMETRICSA, iHorzSpacing, 4)
4392 TEST_FIELD_SIZE (ICONMETRICSA, iVertSpacing, 4)
4393 TEST_FIELD_ALIGN (ICONMETRICSA, iVertSpacing, 4)
4394 TEST_FIELD_OFFSET(ICONMETRICSA, iVertSpacing, 8)
4395 TEST_FIELD_SIZE (ICONMETRICSA, iTitleWrap, 4)
4396 TEST_FIELD_ALIGN (ICONMETRICSA, iTitleWrap, 4)
4397 TEST_FIELD_OFFSET(ICONMETRICSA, iTitleWrap, 12)
4398 TEST_FIELD_SIZE (ICONMETRICSA, lfFont, 60)
4399 TEST_FIELD_ALIGN (ICONMETRICSA, lfFont, 4)
4400 TEST_FIELD_OFFSET(ICONMETRICSA, lfFont, 16)
4401}
4402
4403static void test_pack_ICONMETRICSW(void)
4404{
4405 /* ICONMETRICSW */
4406 TEST_TYPE_SIZE (ICONMETRICSW, 108)
4407 TEST_TYPE_ALIGN (ICONMETRICSW, 4)
4408 TEST_FIELD_SIZE (ICONMETRICSW, cbSize, 4)
4409 TEST_FIELD_ALIGN (ICONMETRICSW, cbSize, 4)
4410 TEST_FIELD_OFFSET(ICONMETRICSW, cbSize, 0)
4411 TEST_FIELD_SIZE (ICONMETRICSW, iHorzSpacing, 4)
4412 TEST_FIELD_ALIGN (ICONMETRICSW, iHorzSpacing, 4)
4413 TEST_FIELD_OFFSET(ICONMETRICSW, iHorzSpacing, 4)
4414 TEST_FIELD_SIZE (ICONMETRICSW, iVertSpacing, 4)
4415 TEST_FIELD_ALIGN (ICONMETRICSW, iVertSpacing, 4)
4416 TEST_FIELD_OFFSET(ICONMETRICSW, iVertSpacing, 8)
4417 TEST_FIELD_SIZE (ICONMETRICSW, iTitleWrap, 4)
4418 TEST_FIELD_ALIGN (ICONMETRICSW, iTitleWrap, 4)
4419 TEST_FIELD_OFFSET(ICONMETRICSW, iTitleWrap, 12)
4420 TEST_FIELD_SIZE (ICONMETRICSW, lfFont, 92)
4421 TEST_FIELD_ALIGN (ICONMETRICSW, lfFont, 4)
4422 TEST_FIELD_OFFSET(ICONMETRICSW, lfFont, 16)
4423}
4424
4425static void test_pack_INPUT(void)
4426{
4427 /* INPUT */
4431}
4432
4434{
4435 /* KBDLLHOOKSTRUCT */
4438 TEST_FIELD_SIZE (KBDLLHOOKSTRUCT, vkCode, 4)
4441 TEST_FIELD_SIZE (KBDLLHOOKSTRUCT, scanCode, 4)
4442 TEST_FIELD_ALIGN (KBDLLHOOKSTRUCT, scanCode, 4)
4450 TEST_FIELD_SIZE (KBDLLHOOKSTRUCT, dwExtraInfo, 4)
4451 TEST_FIELD_ALIGN (KBDLLHOOKSTRUCT, dwExtraInfo, 4)
4452 TEST_FIELD_OFFSET(KBDLLHOOKSTRUCT, dwExtraInfo, 16)
4453}
4454
4455static void test_pack_KEYBDINPUT(void)
4456{
4457 /* KEYBDINPUT */
4460 TEST_FIELD_SIZE (KEYBDINPUT, wVk, 2)
4463 TEST_FIELD_SIZE (KEYBDINPUT, wScan, 2)
4464 TEST_FIELD_ALIGN (KEYBDINPUT, wScan, 2)
4465 TEST_FIELD_OFFSET(KEYBDINPUT, wScan, 2)
4472 TEST_FIELD_SIZE (KEYBDINPUT, dwExtraInfo, 4)
4473 TEST_FIELD_ALIGN (KEYBDINPUT, dwExtraInfo, 4)
4474 TEST_FIELD_OFFSET(KEYBDINPUT, dwExtraInfo, 12)
4475}
4476
4478{
4479 /* LPACCESSTIMEOUT */
4484}
4485
4487{
4488 /* LPANIMATIONINFO */
4493}
4494
4496{
4497 /* LPCBTACTIVATESTRUCT */
4502}
4503
4505{
4506 /* LPCBT_CREATEWNDA */
4511}
4512
4514{
4515 /* LPCBT_CREATEWNDW */
4520}
4521
4523{
4524 /* LPCDLGTEMPLATEA */
4529}
4530
4532{
4533 /* LPCDLGTEMPLATEW */
4538}
4539
4541{
4542 /* LPCLIENTCREATESTRUCT */
4547}
4548
4549static void test_pack_LPCMENUINFO(void)
4550{
4551 /* LPCMENUINFO */
4556}
4557
4559{
4560 /* LPCMENUITEMINFOA */
4565}
4566
4568{
4569 /* LPCMENUITEMINFOW */
4574}
4575
4577{
4578 /* LPCOMBOBOXINFO */
4583}
4584
4586{
4587 /* LPCOMPAREITEMSTRUCT */
4592}
4593
4595{
4596 /* LPCREATESTRUCTA */
4601}
4602
4604{
4605 /* LPCREATESTRUCTW */
4610}
4611
4613{
4614 /* LPCSCROLLINFO */
4619}
4620
4621static void test_pack_LPCURSORINFO(void)
4622{
4623 /* LPCURSORINFO */
4628}
4629
4631{
4632 /* LPCWPRETSTRUCT */
4637}
4638
4639static void test_pack_LPCWPSTRUCT(void)
4640{
4641 /* LPCWPSTRUCT */
4646}
4647
4649{
4650 /* LPDEBUGHOOKINFO */
4655}
4656
4658{
4659 /* LPDELETEITEMSTRUCT */
4664}
4665
4667{
4668 /* LPDLGITEMTEMPLATEA */
4673}
4674
4676{
4677 /* LPDLGITEMTEMPLATEW */
4682}
4683
4685{
4686 /* LPDLGTEMPLATEA */
4691}
4692
4694{
4695 /* LPDLGTEMPLATEW */
4700}
4701
4703{
4704 /* LPDRAWITEMSTRUCT */
4709}
4710
4712{
4713 /* LPDRAWTEXTPARAMS */
4718}
4719
4720static void test_pack_LPEVENTMSG(void)
4721{
4722 /* LPEVENTMSG */
4727}
4728
4729static void test_pack_LPFILTERKEYS(void)
4730{
4731 /* LPFILTERKEYS */
4736}
4737
4739{
4740 /* LPGUITHREADINFO */
4745}
4746
4748{
4749 /* LPHARDWAREHOOKSTRUCT */
4754}
4755
4757{
4758 /* LPHARDWAREINPUT */
4759 TEST_TYPE_SIZE (LPHARDWAREINPUT, 4)
4760 TEST_TYPE_ALIGN (LPHARDWAREINPUT, 4)
4761 TEST_TARGET_SIZE (LPHARDWAREINPUT, 8)
4762 TEST_TARGET_ALIGN(LPHARDWAREINPUT, 4)
4763}
4764
4765static void test_pack_LPHELPINFO(void)
4766{
4767 /* LPHELPINFO */
4772}
4773
4775{
4776 /* LPHELPWININFOA */
4781}
4782
4784{
4785 /* LPHELPWININFOW */
4790}
4791
4793{
4794 /* LPHIGHCONTRASTA */
4799}
4800
4802{
4803 /* LPHIGHCONTRASTW */
4808}
4809
4811{
4812 /* LPICONMETRICSA */
4813 TEST_TYPE_SIZE (LPICONMETRICSA, 4)
4814 TEST_TYPE_ALIGN (LPICONMETRICSA, 4)
4815 TEST_TARGET_SIZE (LPICONMETRICSA, 76)
4816 TEST_TARGET_ALIGN(LPICONMETRICSA, 4)
4817}
4818
4820{
4821 /* LPICONMETRICSW */
4822 TEST_TYPE_SIZE (LPICONMETRICSW, 4)
4823 TEST_TYPE_ALIGN (LPICONMETRICSW, 4)
4824 TEST_TARGET_SIZE (LPICONMETRICSW, 108)
4825 TEST_TARGET_ALIGN(LPICONMETRICSW, 4)
4826}
4827
4828static void test_pack_LPINPUT(void)
4829{
4830 /* LPINPUT */
4833}
4834
4836{
4837 /* LPKBDLLHOOKSTRUCT */
4842}
4843
4844static void test_pack_LPKEYBDINPUT(void)
4845{
4846 /* LPKEYBDINPUT */
4847 TEST_TYPE_SIZE (LPKEYBDINPUT, 4)
4848 TEST_TYPE_ALIGN (LPKEYBDINPUT, 4)
4849 TEST_TARGET_SIZE (LPKEYBDINPUT, 16)
4850 TEST_TARGET_ALIGN(LPKEYBDINPUT, 4)
4851}
4852
4854{
4855 /* LPMDICREATESTRUCTA */
4860}
4861
4863{
4864 /* LPMDICREATESTRUCTW */
4869}
4870
4872{
4873 /* LPMDINEXTMENU */
4878}
4879
4881{
4882 /* LPMEASUREITEMSTRUCT */
4887}
4888
4889static void test_pack_LPMENUINFO(void)
4890{
4891 /* LPMENUINFO */
4896}
4897
4899{
4900 /* LPMENUITEMINFOA */
4905}
4906
4908{
4909 /* LPMENUITEMINFOW */
4914}
4915
4917{
4918 /* LPMINIMIZEDMETRICS */
4923}
4924
4925static void test_pack_LPMINMAXINFO(void)
4926{
4927 /* LPMINMAXINFO */
4932}
4933
4935{
4936 /* LPMONITORINFO */
4941}
4942
4944{
4945 /* LPMONITORINFOEXA */
4950}
4951
4953{
4954 /* LPMONITORINFOEXW */
4959}
4960
4962{
4963 /* LPMOUSEHOOKSTRUCT */
4968}
4969
4970static void test_pack_LPMOUSEINPUT(void)
4971{
4972 /* LPMOUSEINPUT */
4973 TEST_TYPE_SIZE (LPMOUSEINPUT, 4)
4974 TEST_TYPE_ALIGN (LPMOUSEINPUT, 4)
4975 TEST_TARGET_SIZE (LPMOUSEINPUT, 24)
4976 TEST_TARGET_ALIGN(LPMOUSEINPUT, 4)
4977}
4978
4979static void test_pack_LPMOUSEKEYS(void)
4980{
4981 /* LPMOUSEKEYS */
4986}
4987
4988static void test_pack_LPMSG(void)
4989{
4990 /* LPMSG */
4995}
4996
4998{
4999 /* LPMSGBOXPARAMSA */
5004}
5005
5007{
5008 /* LPMSGBOXPARAMSW */
5013}
5014
5016{
5017 /* LPMSLLHOOKSTRUCT */
5022}
5023
5025{
5026 /* LPMULTIKEYHELPA */
5031}
5032
5034{
5035 /* LPMULTIKEYHELPW */
5040}
5041
5043{
5044 /* LPNCCALCSIZE_PARAMS */
5049}
5050
5051static void test_pack_LPNMHDR(void)
5052{
5053 /* LPNMHDR */
5058}
5059
5061{
5062 /* LPNONCLIENTMETRICSA */
5063 TEST_TYPE_SIZE (LPNONCLIENTMETRICSA, 4)
5064 TEST_TYPE_ALIGN (LPNONCLIENTMETRICSA, 4)
5065 TEST_TARGET_SIZE (LPNONCLIENTMETRICSA, 344)
5066 TEST_TARGET_ALIGN(LPNONCLIENTMETRICSA, 4)
5067}
5068
5070{
5071 /* LPNONCLIENTMETRICSW */
5072 TEST_TYPE_SIZE (LPNONCLIENTMETRICSW, 4)
5073 TEST_TYPE_ALIGN (LPNONCLIENTMETRICSW, 4)
5074 TEST_TARGET_SIZE (LPNONCLIENTMETRICSW, 504)
5075 TEST_TARGET_ALIGN(LPNONCLIENTMETRICSW, 4)
5076}
5077
5079{
5080 /* LPPAINTSTRUCT */
5085}
5086
5087static void test_pack_LPSCROLLINFO(void)
5088{
5089 /* LPSCROLLINFO */
5094}
5095
5097{
5098 /* LPSERIALKEYSA */
5103}
5104
5106{
5107 /* LPSERIALKEYSW */
5112}
5113
5115{
5116 /* LPSOUNDSENTRYA */
5121}
5122
5124{
5125 /* LPSOUNDSENTRYW */
5130}
5131
5132static void test_pack_LPSTICKYKEYS(void)
5133{
5134 /* LPSTICKYKEYS */
5139}
5140
5142{
5143 /* LPSTYLESTRUCT */
5148}
5149
5151{
5152 /* LPTITLEBARINFO */
5157}
5158
5159static void test_pack_LPTOGGLEKEYS(void)
5160{
5161 /* LPTOGGLEKEYS */
5166}
5167
5168static void test_pack_LPTPMPARAMS(void)
5169{
5170 /* LPTPMPARAMS */
5175}
5176
5178{
5179 /* LPTRACKMOUSEEVENT */
5184}
5185
5186static void test_pack_LPWINDOWINFO(void)
5187{
5188 /* LPWINDOWINFO */
5193}
5194
5196{
5197 /* LPWINDOWPLACEMENT */
5202}
5203
5204static void test_pack_LPWINDOWPOS(void)
5205{
5206 /* LPWINDOWPOS */
5211}
5212
5213static void test_pack_LPWNDCLASSA(void)
5214{
5215 /* LPWNDCLASSA */
5220}
5221
5223{
5224 /* LPWNDCLASSEXA */
5229}
5230
5232{
5233 /* LPWNDCLASSEXW */
5238}
5239
5240static void test_pack_LPWNDCLASSW(void)
5241{
5242 /* LPWNDCLASSW */
5247}
5248
5250{
5251 /* MDICREATESTRUCTA */
5254 TEST_FIELD_SIZE (MDICREATESTRUCTA, szClass, 4)
5281}
5282
5284{
5285 /* MDICREATESTRUCTW */
5288 TEST_FIELD_SIZE (MDICREATESTRUCTW, szClass, 4)
5315}
5316
5317static void test_pack_MDINEXTMENU(void)
5318{
5319 /* MDINEXTMENU */
5322 TEST_FIELD_SIZE (MDINEXTMENU, hmenuIn, 4)
5323 TEST_FIELD_ALIGN (MDINEXTMENU, hmenuIn, 4)
5324 TEST_FIELD_OFFSET(MDINEXTMENU, hmenuIn, 0)
5325 TEST_FIELD_SIZE (MDINEXTMENU, hmenuNext, 4)
5326 TEST_FIELD_ALIGN (MDINEXTMENU, hmenuNext, 4)
5327 TEST_FIELD_OFFSET(MDINEXTMENU, hmenuNext, 4)
5328 TEST_FIELD_SIZE (MDINEXTMENU, hwndNext, 4)
5329 TEST_FIELD_ALIGN (MDINEXTMENU, hwndNext, 4)
5330 TEST_FIELD_OFFSET(MDINEXTMENU, hwndNext, 8)
5331}
5332
5334{
5335 /* MEASUREITEMSTRUCT */
5347 TEST_FIELD_SIZE (MEASUREITEMSTRUCT, itemWidth, 4)
5348 TEST_FIELD_ALIGN (MEASUREITEMSTRUCT, itemWidth, 4)
5349 TEST_FIELD_OFFSET(MEASUREITEMSTRUCT, itemWidth, 12)
5350 TEST_FIELD_SIZE (MEASUREITEMSTRUCT, itemHeight, 4)
5351 TEST_FIELD_ALIGN (MEASUREITEMSTRUCT, itemHeight, 4)
5352 TEST_FIELD_OFFSET(MEASUREITEMSTRUCT, itemHeight, 16)
5353 TEST_FIELD_SIZE (MEASUREITEMSTRUCT, itemData, 4)
5354 TEST_FIELD_ALIGN (MEASUREITEMSTRUCT, itemData, 4)
5356}
5357
5358static void test_pack_MENUINFO(void)
5359{
5360 /* MENUINFO */
5363 TEST_FIELD_SIZE (MENUINFO, cbSize, 4)
5364 TEST_FIELD_ALIGN (MENUINFO, cbSize, 4)
5365 TEST_FIELD_OFFSET(MENUINFO, cbSize, 0)
5366 TEST_FIELD_SIZE (MENUINFO, fMask, 4)
5367 TEST_FIELD_ALIGN (MENUINFO, fMask, 4)
5368 TEST_FIELD_OFFSET(MENUINFO, fMask, 4)
5369 TEST_FIELD_SIZE (MENUINFO, dwStyle, 4)
5370 TEST_FIELD_ALIGN (MENUINFO, dwStyle, 4)
5371 TEST_FIELD_OFFSET(MENUINFO, dwStyle, 8)
5372 TEST_FIELD_SIZE (MENUINFO, cyMax, 4)
5373 TEST_FIELD_ALIGN (MENUINFO, cyMax, 4)
5374 TEST_FIELD_OFFSET(MENUINFO, cyMax, 12)
5375 TEST_FIELD_SIZE (MENUINFO, hbrBack, 4)
5376 TEST_FIELD_ALIGN (MENUINFO, hbrBack, 4)
5377 TEST_FIELD_OFFSET(MENUINFO, hbrBack, 16)
5378 TEST_FIELD_SIZE (MENUINFO, dwContextHelpID, 4)
5379 TEST_FIELD_ALIGN (MENUINFO, dwContextHelpID, 4)
5380 TEST_FIELD_OFFSET(MENUINFO, dwContextHelpID, 20)
5381 TEST_FIELD_SIZE (MENUINFO, dwMenuData, 4)
5382 TEST_FIELD_ALIGN (MENUINFO, dwMenuData, 4)
5383 TEST_FIELD_OFFSET(MENUINFO, dwMenuData, 24)
5384}
5385
5387{
5388 /* MENUITEMINFOA */
5391 TEST_FIELD_SIZE (MENUITEMINFOA, cbSize, 4)
5392 TEST_FIELD_ALIGN (MENUITEMINFOA, cbSize, 4)
5394 TEST_FIELD_SIZE (MENUITEMINFOA, fMask, 4)
5397 TEST_FIELD_SIZE (MENUITEMINFOA, fType, 4)
5400 TEST_FIELD_SIZE (MENUITEMINFOA, fState, 4)
5401 TEST_FIELD_ALIGN (MENUITEMINFOA, fState, 4)
5402 TEST_FIELD_OFFSET(MENUITEMINFOA, fState, 12)
5406 TEST_FIELD_SIZE (MENUITEMINFOA, hSubMenu, 4)
5407 TEST_FIELD_ALIGN (MENUITEMINFOA, hSubMenu, 4)
5408 TEST_FIELD_OFFSET(MENUITEMINFOA, hSubMenu, 20)
5409 TEST_FIELD_SIZE (MENUITEMINFOA, hbmpChecked, 4)
5410 TEST_FIELD_ALIGN (MENUITEMINFOA, hbmpChecked, 4)
5411 TEST_FIELD_OFFSET(MENUITEMINFOA, hbmpChecked, 24)
5412 TEST_FIELD_SIZE (MENUITEMINFOA, hbmpUnchecked, 4)
5413 TEST_FIELD_ALIGN (MENUITEMINFOA, hbmpUnchecked, 4)
5414 TEST_FIELD_OFFSET(MENUITEMINFOA, hbmpUnchecked, 28)
5415 TEST_FIELD_SIZE (MENUITEMINFOA, dwItemData, 4)
5416 TEST_FIELD_ALIGN (MENUITEMINFOA, dwItemData, 4)
5417 TEST_FIELD_OFFSET(MENUITEMINFOA, dwItemData, 32)
5418 TEST_FIELD_SIZE (MENUITEMINFOA, dwTypeData, 4)
5419 TEST_FIELD_ALIGN (MENUITEMINFOA, dwTypeData, 4)
5420 TEST_FIELD_OFFSET(MENUITEMINFOA, dwTypeData, 36)
5424 TEST_FIELD_SIZE (MENUITEMINFOA, hbmpItem, 4)
5425 TEST_FIELD_ALIGN (MENUITEMINFOA, hbmpItem, 4)
5426 TEST_FIELD_OFFSET(MENUITEMINFOA, hbmpItem, 44)
5427}
5428
5430{
5431 /* MENUITEMINFOW */
5434 TEST_FIELD_SIZE (MENUITEMINFOW, cbSize, 4)
5435 TEST_FIELD_ALIGN (MENUITEMINFOW, cbSize, 4)
5437 TEST_FIELD_SIZE (MENUITEMINFOW, fMask, 4)
5440 TEST_FIELD_SIZE (MENUITEMINFOW, fType, 4)
5443 TEST_FIELD_SIZE (MENUITEMINFOW, fState, 4)
5444 TEST_FIELD_ALIGN (MENUITEMINFOW, fState, 4)
5445 TEST_FIELD_OFFSET(MENUITEMINFOW, fState, 12)
5449 TEST_FIELD_SIZE (MENUITEMINFOW, hSubMenu, 4)
5450 TEST_FIELD_ALIGN (MENUITEMINFOW, hSubMenu, 4)
5451 TEST_FIELD_OFFSET(MENUITEMINFOW, hSubMenu, 20)
5452 TEST_FIELD_SIZE (MENUITEMINFOW, hbmpChecked, 4)
5453 TEST_FIELD_ALIGN (MENUITEMINFOW, hbmpChecked, 4)
5454 TEST_FIELD_OFFSET(MENUITEMINFOW, hbmpChecked, 24)
5455 TEST_FIELD_SIZE (MENUITEMINFOW, hbmpUnchecked, 4)
5456 TEST_FIELD_ALIGN (MENUITEMINFOW, hbmpUnchecked, 4)
5457 TEST_FIELD_OFFSET(MENUITEMINFOW, hbmpUnchecked, 28)
5458 TEST_FIELD_SIZE (MENUITEMINFOW, dwItemData, 4)
5459 TEST_FIELD_ALIGN (MENUITEMINFOW, dwItemData, 4)
5460 TEST_FIELD_OFFSET(MENUITEMINFOW, dwItemData, 32)
5461 TEST_FIELD_SIZE (MENUITEMINFOW, dwTypeData, 4)
5462 TEST_FIELD_ALIGN (MENUITEMINFOW, dwTypeData, 4)
5463 TEST_FIELD_OFFSET(MENUITEMINFOW, dwTypeData, 36)
5467 TEST_FIELD_SIZE (MENUITEMINFOW, hbmpItem, 4)
5468 TEST_FIELD_ALIGN (MENUITEMINFOW, hbmpItem, 4)
5469 TEST_FIELD_OFFSET(MENUITEMINFOW, hbmpItem, 44)
5470}
5471
5473{
5474 /* MENUITEMTEMPLATE */
5477 TEST_FIELD_SIZE (MENUITEMTEMPLATE, mtOption, 2)
5478 TEST_FIELD_ALIGN (MENUITEMTEMPLATE, mtOption, 2)
5483 TEST_FIELD_SIZE (MENUITEMTEMPLATE, mtString, 2)
5484 TEST_FIELD_ALIGN (MENUITEMTEMPLATE, mtString, 2)
5486}
5487
5489{
5490 /* MENUITEMTEMPLATEHEADER */
5493 TEST_FIELD_SIZE (MENUITEMTEMPLATEHEADER, versionNumber, 2)
5494 TEST_FIELD_ALIGN (MENUITEMTEMPLATEHEADER, versionNumber, 2)
5495 TEST_FIELD_OFFSET(MENUITEMTEMPLATEHEADER, versionNumber, 0)
5499}
5500
5502{
5503 /* MINIMIZEDMETRICS */
5512 TEST_FIELD_SIZE (MINIMIZEDMETRICS, iHorzGap, 4)
5513 TEST_FIELD_ALIGN (MINIMIZEDMETRICS, iHorzGap, 4)
5515 TEST_FIELD_SIZE (MINIMIZEDMETRICS, iVertGap, 4)
5516 TEST_FIELD_ALIGN (MINIMIZEDMETRICS, iVertGap, 4)
5517 TEST_FIELD_OFFSET(MINIMIZEDMETRICS, iVertGap, 12)
5518 TEST_FIELD_SIZE (MINIMIZEDMETRICS, iArrange, 4)
5519 TEST_FIELD_ALIGN (MINIMIZEDMETRICS, iArrange, 4)
5520 TEST_FIELD_OFFSET(MINIMIZEDMETRICS, iArrange, 16)
5521}
5522
5523static void test_pack_MINMAXINFO(void)
5524{
5525 /* MINMAXINFO */
5528 TEST_FIELD_SIZE (MINMAXINFO, ptReserved, 8)
5529 TEST_FIELD_ALIGN (MINMAXINFO, ptReserved, 4)
5530 TEST_FIELD_OFFSET(MINMAXINFO, ptReserved, 0)
5531 TEST_FIELD_SIZE (MINMAXINFO, ptMaxSize, 8)
5532 TEST_FIELD_ALIGN (MINMAXINFO, ptMaxSize, 4)
5533 TEST_FIELD_OFFSET(MINMAXINFO, ptMaxSize, 8)
5534 TEST_FIELD_SIZE (MINMAXINFO, ptMaxPosition, 8)
5535 TEST_FIELD_ALIGN (MINMAXINFO, ptMaxPosition, 4)
5536 TEST_FIELD_OFFSET(MINMAXINFO, ptMaxPosition, 16)
5537 TEST_FIELD_SIZE (MINMAXINFO, ptMinTrackSize, 8)
5538 TEST_FIELD_ALIGN (MINMAXINFO, ptMinTrackSize, 4)
5539 TEST_FIELD_OFFSET(MINMAXINFO, ptMinTrackSize, 24)
5540 TEST_FIELD_SIZE (MINMAXINFO, ptMaxTrackSize, 8)
5541 TEST_FIELD_ALIGN (MINMAXINFO, ptMaxTrackSize, 4)
5542 TEST_FIELD_OFFSET(MINMAXINFO, ptMaxTrackSize, 32)
5543}
5544
5546{
5547 /* MONITORENUMPROC */
5550}
5551
5552static void test_pack_MONITORINFO(void)
5553{
5554 /* MONITORINFO */
5557 TEST_FIELD_SIZE (MONITORINFO, cbSize, 4)
5558 TEST_FIELD_ALIGN (MONITORINFO, cbSize, 4)
5559 TEST_FIELD_OFFSET(MONITORINFO, cbSize, 0)
5560 TEST_FIELD_SIZE (MONITORINFO, rcMonitor, 16)
5561 TEST_FIELD_ALIGN (MONITORINFO, rcMonitor, 4)
5562 TEST_FIELD_OFFSET(MONITORINFO, rcMonitor, 4)
5563 TEST_FIELD_SIZE (MONITORINFO, rcWork, 16)
5564 TEST_FIELD_ALIGN (MONITORINFO, rcWork, 4)
5565 TEST_FIELD_OFFSET(MONITORINFO, rcWork, 20)
5569}
5570
5572{
5573 /* MONITORINFOEXA */
5576 TEST_FIELD_SIZE (MONITORINFOEXA, cbSize, 4)
5577 TEST_FIELD_ALIGN (MONITORINFOEXA, cbSize, 4)
5579 TEST_FIELD_SIZE (MONITORINFOEXA, rcMonitor, 16)
5580 TEST_FIELD_ALIGN (MONITORINFOEXA, rcMonitor, 4)
5581 TEST_FIELD_OFFSET(MONITORINFOEXA, rcMonitor, 4)
5582 TEST_FIELD_SIZE (MONITORINFOEXA, rcWork, 16)
5583 TEST_FIELD_ALIGN (MONITORINFOEXA, rcWork, 4)
5588 TEST_FIELD_SIZE (MONITORINFOEXA, szDevice, 32)
5589 TEST_FIELD_ALIGN (MONITORINFOEXA, szDevice, 1)
5590 TEST_FIELD_OFFSET(MONITORINFOEXA, szDevice, 40)
5591}
5592
5594{
5595 /* MONITORINFOEXW */
5598 TEST_FIELD_SIZE (MONITORINFOEXW, cbSize, 4)
5599 TEST_FIELD_ALIGN (MONITORINFOEXW, cbSize, 4)
5601 TEST_FIELD_SIZE (MONITORINFOEXW, rcMonitor, 16)
5602 TEST_FIELD_ALIGN (MONITORINFOEXW, rcMonitor, 4)
5603 TEST_FIELD_OFFSET(MONITORINFOEXW, rcMonitor, 4)
5604 TEST_FIELD_SIZE (MONITORINFOEXW, rcWork, 16)
5605 TEST_FIELD_ALIGN (MONITORINFOEXW, rcWork, 4)
5610 TEST_FIELD_SIZE (MONITORINFOEXW, szDevice, 64)
5611 TEST_FIELD_ALIGN (MONITORINFOEXW, szDevice, 2)
5612 TEST_FIELD_OFFSET(MONITORINFOEXW, szDevice, 40)
5613}
5614
5616{
5617 /* MOUSEHOOKSTRUCT */
5626 TEST_FIELD_SIZE (MOUSEHOOKSTRUCT, wHitTestCode, 4)
5627 TEST_FIELD_ALIGN (MOUSEHOOKSTRUCT, wHitTestCode, 4)
5628 TEST_FIELD_OFFSET(MOUSEHOOKSTRUCT, wHitTestCode, 12)
5629 TEST_FIELD_SIZE (MOUSEHOOKSTRUCT, dwExtraInfo, 4)
5630 TEST_FIELD_ALIGN (MOUSEHOOKSTRUCT, dwExtraInfo, 4)
5631 TEST_FIELD_OFFSET(MOUSEHOOKSTRUCT, dwExtraInfo, 16)
5632}
5633
5634static void test_pack_MOUSEINPUT(void)
5635{
5636 /* MOUSEINPUT */
5645 TEST_FIELD_SIZE (MOUSEINPUT, mouseData, 4)
5646 TEST_FIELD_ALIGN (MOUSEINPUT, mouseData, 4)
5647 TEST_FIELD_OFFSET(MOUSEINPUT, mouseData, 8)
5654 TEST_FIELD_SIZE (MOUSEINPUT, dwExtraInfo, 4)
5655 TEST_FIELD_ALIGN (MOUSEINPUT, dwExtraInfo, 4)
5656 TEST_FIELD_OFFSET(MOUSEINPUT, dwExtraInfo, 20)
5657}
5658
5659static void test_pack_MOUSEKEYS(void)
5660{
5661 /* MOUSEKEYS */
5664 TEST_FIELD_SIZE (MOUSEKEYS, cbSize, 4)
5665 TEST_FIELD_ALIGN (MOUSEKEYS, cbSize, 4)
5666 TEST_FIELD_OFFSET(MOUSEKEYS, cbSize, 0)
5670 TEST_FIELD_SIZE (MOUSEKEYS, iMaxSpeed, 4)
5671 TEST_FIELD_ALIGN (MOUSEKEYS, iMaxSpeed, 4)
5672 TEST_FIELD_OFFSET(MOUSEKEYS, iMaxSpeed, 8)
5673 TEST_FIELD_SIZE (MOUSEKEYS, iTimeToMaxSpeed, 4)
5674 TEST_FIELD_ALIGN (MOUSEKEYS, iTimeToMaxSpeed, 4)
5675 TEST_FIELD_OFFSET(MOUSEKEYS, iTimeToMaxSpeed, 12)
5676 TEST_FIELD_SIZE (MOUSEKEYS, iCtrlSpeed, 4)
5677 TEST_FIELD_ALIGN (MOUSEKEYS, iCtrlSpeed, 4)
5678 TEST_FIELD_OFFSET(MOUSEKEYS, iCtrlSpeed, 16)
5679 TEST_FIELD_SIZE (MOUSEKEYS, dwReserved1, 4)
5680 TEST_FIELD_ALIGN (MOUSEKEYS, dwReserved1, 4)
5681 TEST_FIELD_OFFSET(MOUSEKEYS, dwReserved1, 20)
5682 TEST_FIELD_SIZE (MOUSEKEYS, dwReserved2, 4)
5683 TEST_FIELD_ALIGN (MOUSEKEYS, dwReserved2, 4)
5684 TEST_FIELD_OFFSET(MOUSEKEYS, dwReserved2, 24)
5685}
5686
5687static void test_pack_MSG(void)
5688{
5689 /* MSG */
5690 TEST_TYPE_SIZE (MSG, 28)
5691 TEST_TYPE_ALIGN (MSG, 4)
5707 TEST_FIELD_SIZE (MSG, pt, 8)
5708 TEST_FIELD_ALIGN (MSG, pt, 4)
5710}
5711
5713{
5714 /* MSGBOXCALLBACK */
5717}
5718
5720{
5721 /* MSGBOXPARAMSA */
5724 TEST_FIELD_SIZE (MSGBOXPARAMSA, cbSize, 4)
5725 TEST_FIELD_ALIGN (MSGBOXPARAMSA, cbSize, 4)
5727 TEST_FIELD_SIZE (MSGBOXPARAMSA, hwndOwner, 4)
5728 TEST_FIELD_ALIGN (MSGBOXPARAMSA, hwndOwner, 4)
5729 TEST_FIELD_OFFSET(MSGBOXPARAMSA, hwndOwner, 4)
5733 TEST_FIELD_SIZE (MSGBOXPARAMSA, lpszText, 4)
5734 TEST_FIELD_ALIGN (MSGBOXPARAMSA, lpszText, 4)
5735 TEST_FIELD_OFFSET(MSGBOXPARAMSA, lpszText, 12)
5736 TEST_FIELD_SIZE (MSGBOXPARAMSA, lpszCaption, 4)
5737 TEST_FIELD_ALIGN (MSGBOXPARAMSA, lpszCaption, 4)
5738 TEST_FIELD_OFFSET(MSGBOXPARAMSA, lpszCaption, 16)
5739 TEST_FIELD_SIZE (MSGBOXPARAMSA, dwStyle, 4)
5740 TEST_FIELD_ALIGN (MSGBOXPARAMSA, dwStyle, 4)
5741 TEST_FIELD_OFFSET(MSGBOXPARAMSA, dwStyle, 20)
5742 TEST_FIELD_SIZE (MSGBOXPARAMSA, lpszIcon, 4)
5743 TEST_FIELD_ALIGN (MSGBOXPARAMSA, lpszIcon, 4)
5744 TEST_FIELD_OFFSET(MSGBOXPARAMSA, lpszIcon, 24)
5745 TEST_FIELD_SIZE (MSGBOXPARAMSA, dwContextHelpId, 4)
5746 TEST_FIELD_ALIGN (MSGBOXPARAMSA, dwContextHelpId, 4)
5747 TEST_FIELD_OFFSET(MSGBOXPARAMSA, dwContextHelpId, 28)
5748 TEST_FIELD_SIZE (MSGBOXPARAMSA, lpfnMsgBoxCallback, 4)
5749 TEST_FIELD_ALIGN (MSGBOXPARAMSA, lpfnMsgBoxCallback, 4)
5750 TEST_FIELD_OFFSET(MSGBOXPARAMSA, lpfnMsgBoxCallback, 32)
5751 TEST_FIELD_SIZE (MSGBOXPARAMSA, dwLanguageId, 4)
5752 TEST_FIELD_ALIGN (MSGBOXPARAMSA, dwLanguageId, 4)
5753 TEST_FIELD_OFFSET(MSGBOXPARAMSA, dwLanguageId, 36)
5754}
5755
5757{
5758 /* MSGBOXPARAMSW */
5761 TEST_FIELD_SIZE (MSGBOXPARAMSW, cbSize, 4)
5762 TEST_FIELD_ALIGN (MSGBOXPARAMSW, cbSize, 4)
5764 TEST_FIELD_SIZE (MSGBOXPARAMSW, hwndOwner, 4)
5765 TEST_FIELD_ALIGN (MSGBOXPARAMSW, hwndOwner, 4)
5766 TEST_FIELD_OFFSET(MSGBOXPARAMSW, hwndOwner, 4)
5770 TEST_FIELD_SIZE (MSGBOXPARAMSW, lpszText, 4)
5771 TEST_FIELD_ALIGN (MSGBOXPARAMSW, lpszText, 4)
5772 TEST_FIELD_OFFSET(MSGBOXPARAMSW, lpszText, 12)
5773 TEST_FIELD_SIZE (MSGBOXPARAMSW, lpszCaption, 4)
5774 TEST_FIELD_ALIGN (MSGBOXPARAMSW, lpszCaption, 4)
5775 TEST_FIELD_OFFSET(MSGBOXPARAMSW, lpszCaption, 16)
5776 TEST_FIELD_SIZE (MSGBOXPARAMSW, dwStyle, 4)
5777 TEST_FIELD_ALIGN (MSGBOXPARAMSW, dwStyle, 4)
5778 TEST_FIELD_OFFSET(MSGBOXPARAMSW, dwStyle, 20)
5779 TEST_FIELD_SIZE (MSGBOXPARAMSW, lpszIcon, 4)
5780 TEST_FIELD_ALIGN (MSGBOXPARAMSW, lpszIcon, 4)
5781 TEST_FIELD_OFFSET(MSGBOXPARAMSW, lpszIcon, 24)
5782 TEST_FIELD_SIZE (MSGBOXPARAMSW, dwContextHelpId, 4)
5783 TEST_FIELD_ALIGN (MSGBOXPARAMSW, dwContextHelpId, 4)
5784 TEST_FIELD_OFFSET(MSGBOXPARAMSW, dwContextHelpId, 28)
5785 TEST_FIELD_SIZE (MSGBOXPARAMSW, lpfnMsgBoxCallback, 4)
5786 TEST_FIELD_ALIGN (MSGBOXPARAMSW, lpfnMsgBoxCallback, 4)
5787 TEST_FIELD_OFFSET(MSGBOXPARAMSW, lpfnMsgBoxCallback, 32)
5788 TEST_FIELD_SIZE (MSGBOXPARAMSW, dwLanguageId, 4)
5789 TEST_FIELD_ALIGN (MSGBOXPARAMSW, dwLanguageId, 4)
5790 TEST_FIELD_OFFSET(MSGBOXPARAMSW, dwLanguageId, 36)
5791}
5792
5794{
5795 /* MSLLHOOKSTRUCT */
5801 TEST_FIELD_SIZE (MSLLHOOKSTRUCT, mouseData, 4)
5802 TEST_FIELD_ALIGN (MSLLHOOKSTRUCT, mouseData, 4)
5803 TEST_FIELD_OFFSET(MSLLHOOKSTRUCT, mouseData, 8)
5810 TEST_FIELD_SIZE (MSLLHOOKSTRUCT, dwExtraInfo, 4)
5811 TEST_FIELD_ALIGN (MSLLHOOKSTRUCT, dwExtraInfo, 4)
5812 TEST_FIELD_OFFSET(MSLLHOOKSTRUCT, dwExtraInfo, 20)
5813}
5814
5816{
5817 /* MULTIKEYHELPA */
5820 TEST_FIELD_SIZE (MULTIKEYHELPA, mkSize, 4)
5821 TEST_FIELD_ALIGN (MULTIKEYHELPA, mkSize, 4)
5823 TEST_FIELD_SIZE (MULTIKEYHELPA, mkKeylist, 1)
5824 TEST_FIELD_ALIGN (MULTIKEYHELPA, mkKeylist, 1)
5825 TEST_FIELD_OFFSET(MULTIKEYHELPA, mkKeylist, 4)
5826 TEST_FIELD_SIZE (MULTIKEYHELPA, szKeyphrase, 1)
5827 TEST_FIELD_ALIGN (MULTIKEYHELPA, szKeyphrase, 1)
5828 TEST_FIELD_OFFSET(MULTIKEYHELPA, szKeyphrase, 5)
5829}
5830
5832{
5833 /* MULTIKEYHELPW */
5836 TEST_FIELD_SIZE (MULTIKEYHELPW, mkSize, 4)
5837 TEST_FIELD_ALIGN (MULTIKEYHELPW, mkSize, 4)
5839 TEST_FIELD_SIZE (MULTIKEYHELPW, mkKeylist, 2)
5840 TEST_FIELD_ALIGN (MULTIKEYHELPW, mkKeylist, 2)
5841 TEST_FIELD_OFFSET(MULTIKEYHELPW, mkKeylist, 4)
5842 TEST_FIELD_SIZE (MULTIKEYHELPW, szKeyphrase, 2)
5843 TEST_FIELD_ALIGN (MULTIKEYHELPW, szKeyphrase, 2)
5844 TEST_FIELD_OFFSET(MULTIKEYHELPW, szKeyphrase, 6)
5845}
5846
5848{
5849 /* NAMEENUMPROCA */
5852}
5853
5855{
5856 /* NAMEENUMPROCW */
5859}
5860
5862{
5863 /* NCCALCSIZE_PARAMS */
5872}
5873
5874static void test_pack_NMHDR(void)
5875{
5876 /* NMHDR */
5877 TEST_TYPE_SIZE (NMHDR, 12)
5879 TEST_FIELD_SIZE (NMHDR, hwndFrom, 4)
5880 TEST_FIELD_ALIGN (NMHDR, hwndFrom, 4)
5881 TEST_FIELD_OFFSET(NMHDR, hwndFrom, 0)
5882 TEST_FIELD_SIZE (NMHDR, idFrom, 4)
5883 TEST_FIELD_ALIGN (NMHDR, idFrom, 4)
5884 TEST_FIELD_OFFSET(NMHDR, idFrom, 4)
5888}
5889
5891{
5892 /* NONCLIENTMETRICSA */
5893 TEST_TYPE_SIZE (NONCLIENTMETRICSA, 344)
5894 TEST_TYPE_ALIGN (NONCLIENTMETRICSA, 4)
5895 TEST_FIELD_SIZE (NONCLIENTMETRICSA, cbSize, 4)
5896 TEST_FIELD_ALIGN (NONCLIENTMETRICSA, cbSize, 4)
5897 TEST_FIELD_OFFSET(NONCLIENTMETRICSA, cbSize, 0)
5898 TEST_FIELD_SIZE (NONCLIENTMETRICSA, iBorderWidth, 4)
5899 TEST_FIELD_ALIGN (NONCLIENTMETRICSA, iBorderWidth, 4)
5900 TEST_FIELD_OFFSET(NONCLIENTMETRICSA, iBorderWidth, 4)
5901 TEST_FIELD_SIZE (NONCLIENTMETRICSA, iScrollWidth, 4)
5902 TEST_FIELD_ALIGN (NONCLIENTMETRICSA, iScrollWidth, 4)
5903 TEST_FIELD_OFFSET(NONCLIENTMETRICSA, iScrollWidth, 8)
5904 TEST_FIELD_SIZE (NONCLIENTMETRICSA, iScrollHeight, 4)
5905 TEST_FIELD_ALIGN (NONCLIENTMETRICSA, iScrollHeight, 4)
5906 TEST_FIELD_OFFSET(NONCLIENTMETRICSA, iScrollHeight, 12)
5907 TEST_FIELD_SIZE (NONCLIENTMETRICSA, iCaptionWidth, 4)
5908 TEST_FIELD_ALIGN (NONCLIENTMETRICSA, iCaptionWidth, 4)
5909 TEST_FIELD_OFFSET(NONCLIENTMETRICSA, iCaptionWidth, 16)
5910 TEST_FIELD_SIZE (NONCLIENTMETRICSA, iCaptionHeight, 4)
5911 TEST_FIELD_ALIGN (NONCLIENTMETRICSA, iCaptionHeight, 4)
5912 TEST_FIELD_OFFSET(NONCLIENTMETRICSA, iCaptionHeight, 20)
5913 TEST_FIELD_SIZE (NONCLIENTMETRICSA, lfCaptionFont, 60)
5914 TEST_FIELD_ALIGN (NONCLIENTMETRICSA, lfCaptionFont, 4)
5915 TEST_FIELD_OFFSET(NONCLIENTMETRICSA, lfCaptionFont, 24)
5916 TEST_FIELD_SIZE (NONCLIENTMETRICSA, iSmCaptionWidth, 4)
5917 TEST_FIELD_ALIGN (NONCLIENTMETRICSA, iSmCaptionWidth, 4)
5918 TEST_FIELD_OFFSET(NONCLIENTMETRICSA, iSmCaptionWidth, 84)
5919 TEST_FIELD_SIZE (NONCLIENTMETRICSA, iSmCaptionHeight, 4)
5920 TEST_FIELD_ALIGN (NONCLIENTMETRICSA, iSmCaptionHeight, 4)
5921 TEST_FIELD_OFFSET(NONCLIENTMETRICSA, iSmCaptionHeight, 88)
5922 TEST_FIELD_SIZE (NONCLIENTMETRICSA, lfSmCaptionFont, 60)
5923 TEST_FIELD_ALIGN (NONCLIENTMETRICSA, lfSmCaptionFont, 4)
5924 TEST_FIELD_OFFSET(NONCLIENTMETRICSA, lfSmCaptionFont, 92)
5925 TEST_FIELD_SIZE (NONCLIENTMETRICSA, iMenuWidth, 4)
5926 TEST_FIELD_ALIGN (NONCLIENTMETRICSA, iMenuWidth, 4)
5927 TEST_FIELD_OFFSET(NONCLIENTMETRICSA, iMenuWidth, 152)
5928 TEST_FIELD_SIZE (NONCLIENTMETRICSA, iMenuHeight, 4)
5929 TEST_FIELD_ALIGN (NONCLIENTMETRICSA, iMenuHeight, 4)
5930 TEST_FIELD_OFFSET(NONCLIENTMETRICSA, iMenuHeight, 156)
5931 TEST_FIELD_SIZE (NONCLIENTMETRICSA, lfMenuFont, 60)
5932 TEST_FIELD_ALIGN (NONCLIENTMETRICSA, lfMenuFont, 4)
5933 TEST_FIELD_OFFSET(NONCLIENTMETRICSA, lfMenuFont, 160)
5934 TEST_FIELD_SIZE (NONCLIENTMETRICSA, lfStatusFont, 60)
5935 TEST_FIELD_ALIGN (NONCLIENTMETRICSA, lfStatusFont, 4)
5936 TEST_FIELD_OFFSET(NONCLIENTMETRICSA, lfStatusFont, 220)
5937 TEST_FIELD_SIZE (NONCLIENTMETRICSA, lfMessageFont, 60)
5938 TEST_FIELD_ALIGN (NONCLIENTMETRICSA, lfMessageFont, 4)
5939 TEST_FIELD_OFFSET(NONCLIENTMETRICSA, lfMessageFont, 280)
5940 TEST_FIELD_SIZE (NONCLIENTMETRICSA, iPaddedBorderWidth, 4)
5941 TEST_FIELD_ALIGN (NONCLIENTMETRICSA, iPaddedBorderWidth, 4)
5942 TEST_FIELD_OFFSET(NONCLIENTMETRICSA, iPaddedBorderWidth, 340)
5943}
5944
5946{
5947 /* NONCLIENTMETRICSW */
5948 TEST_TYPE_SIZE (NONCLIENTMETRICSW, 504)
5949 TEST_TYPE_ALIGN (NONCLIENTMETRICSW, 4)
5950 TEST_FIELD_SIZE (NONCLIENTMETRICSW, cbSize, 4)
5951 TEST_FIELD_ALIGN (NONCLIENTMETRICSW, cbSize, 4)
5952 TEST_FIELD_OFFSET(NONCLIENTMETRICSW, cbSize, 0)
5953 TEST_FIELD_SIZE (NONCLIENTMETRICSW, iBorderWidth, 4)
5954 TEST_FIELD_ALIGN (NONCLIENTMETRICSW, iBorderWidth, 4)
5955 TEST_FIELD_OFFSET(NONCLIENTMETRICSW, iBorderWidth, 4)
5956 TEST_FIELD_SIZE (NONCLIENTMETRICSW, iScrollWidth, 4)
5957 TEST_FIELD_ALIGN (NONCLIENTMETRICSW, iScrollWidth, 4)
5958 TEST_FIELD_OFFSET(NONCLIENTMETRICSW, iScrollWidth, 8)
5959 TEST_FIELD_SIZE (NONCLIENTMETRICSW, iScrollHeight, 4)
5960 TEST_FIELD_ALIGN (NONCLIENTMETRICSW, iScrollHeight, 4)
5961 TEST_FIELD_OFFSET(NONCLIENTMETRICSW, iScrollHeight, 12)
5962 TEST_FIELD_SIZE (NONCLIENTMETRICSW, iCaptionWidth, 4)
5963 TEST_FIELD_ALIGN (NONCLIENTMETRICSW, iCaptionWidth, 4)
5964 TEST_FIELD_OFFSET(NONCLIENTMETRICSW, iCaptionWidth, 16)
5965 TEST_FIELD_SIZE (NONCLIENTMETRICSW, iCaptionHeight, 4)
5966 TEST_FIELD_ALIGN (NONCLIENTMETRICSW, iCaptionHeight, 4)
5967 TEST_FIELD_OFFSET(NONCLIENTMETRICSW, iCaptionHeight, 20)
5968 TEST_FIELD_SIZE (NONCLIENTMETRICSW, lfCaptionFont, 92)
5969 TEST_FIELD_ALIGN (NONCLIENTMETRICSW, lfCaptionFont, 4)
5970 TEST_FIELD_OFFSET(NONCLIENTMETRICSW, lfCaptionFont, 24)
5971 TEST_FIELD_SIZE (NONCLIENTMETRICSW, iSmCaptionWidth, 4)
5972 TEST_FIELD_ALIGN (NONCLIENTMETRICSW, iSmCaptionWidth, 4)
5973 TEST_FIELD_OFFSET(NONCLIENTMETRICSW, iSmCaptionWidth, 116)
5974 TEST_FIELD_SIZE (NONCLIENTMETRICSW, iSmCaptionHeight, 4)
5975 TEST_FIELD_ALIGN (NONCLIENTMETRICSW, iSmCaptionHeight, 4)
5976 TEST_FIELD_OFFSET(NONCLIENTMETRICSW, iSmCaptionHeight, 120)
5977 TEST_FIELD_SIZE (NONCLIENTMETRICSW, lfSmCaptionFont, 92)
5978 TEST_FIELD_ALIGN (NONCLIENTMETRICSW, lfSmCaptionFont, 4)
5979 TEST_FIELD_OFFSET(NONCLIENTMETRICSW, lfSmCaptionFont, 124)
5980 TEST_FIELD_SIZE (NONCLIENTMETRICSW, iMenuWidth, 4)
5981 TEST_FIELD_ALIGN (NONCLIENTMETRICSW, iMenuWidth, 4)
5982 TEST_FIELD_OFFSET(NONCLIENTMETRICSW, iMenuWidth, 216)
5983 TEST_FIELD_SIZE (NONCLIENTMETRICSW, iMenuHeight, 4)
5984 TEST_FIELD_ALIGN (NONCLIENTMETRICSW, iMenuHeight, 4)
5985 TEST_FIELD_OFFSET(NONCLIENTMETRICSW, iMenuHeight, 220)
5986 TEST_FIELD_SIZE (NONCLIENTMETRICSW, lfMenuFont, 92)
5987 TEST_FIELD_ALIGN (NONCLIENTMETRICSW, lfMenuFont, 4)
5988 TEST_FIELD_OFFSET(NONCLIENTMETRICSW, lfMenuFont, 224)
5989 TEST_FIELD_SIZE (NONCLIENTMETRICSW, lfStatusFont, 92)
5990 TEST_FIELD_ALIGN (NONCLIENTMETRICSW, lfStatusFont, 4)
5991 TEST_FIELD_OFFSET(NONCLIENTMETRICSW, lfStatusFont, 316)
5992 TEST_FIELD_SIZE (NONCLIENTMETRICSW, lfMessageFont, 92)
5993 TEST_FIELD_ALIGN (NONCLIENTMETRICSW, lfMessageFont, 4)
5994 TEST_FIELD_OFFSET(NONCLIENTMETRICSW, lfMessageFont, 408)
5995 TEST_FIELD_SIZE (NONCLIENTMETRICSW, iPaddedBorderWidth, 4)
5996 TEST_FIELD_ALIGN (NONCLIENTMETRICSW, iPaddedBorderWidth, 4)
5997 TEST_FIELD_OFFSET(NONCLIENTMETRICSW, iPaddedBorderWidth, 500)
5998}
5999
6000static void test_pack_PAINTSTRUCT(void)
6001{
6002 /* PAINTSTRUCT */
6008 TEST_FIELD_SIZE (PAINTSTRUCT, fErase, 4)
6009 TEST_FIELD_ALIGN (PAINTSTRUCT, fErase, 4)
6010 TEST_FIELD_OFFSET(PAINTSTRUCT, fErase, 4)
6011 TEST_FIELD_SIZE (PAINTSTRUCT, rcPaint, 16)
6012 TEST_FIELD_ALIGN (PAINTSTRUCT, rcPaint, 4)
6013 TEST_FIELD_OFFSET(PAINTSTRUCT, rcPaint, 8)
6014 TEST_FIELD_SIZE (PAINTSTRUCT, fRestore, 4)
6015 TEST_FIELD_ALIGN (PAINTSTRUCT, fRestore, 4)
6016 TEST_FIELD_OFFSET(PAINTSTRUCT, fRestore, 24)
6017 TEST_FIELD_SIZE (PAINTSTRUCT, fIncUpdate, 4)
6018 TEST_FIELD_ALIGN (PAINTSTRUCT, fIncUpdate, 4)
6019 TEST_FIELD_OFFSET(PAINTSTRUCT, fIncUpdate, 28)
6020 TEST_FIELD_SIZE (PAINTSTRUCT, rgbReserved, 32)
6021 TEST_FIELD_ALIGN (PAINTSTRUCT, rgbReserved, 1)
6022 TEST_FIELD_OFFSET(PAINTSTRUCT, rgbReserved, 32)
6023}
6024
6026{
6027 /* PCOMBOBOXINFO */
6032}
6033
6035{
6036 /* PCOMPAREITEMSTRUCT */
6041}
6042
6044{
6045 /* PCOPYDATASTRUCT */
6050}
6051
6052static void test_pack_PCURSORINFO(void)
6053{
6054 /* PCURSORINFO */
6059}
6060
6062{
6063 /* PCWPRETSTRUCT */
6068}
6069
6070static void test_pack_PCWPSTRUCT(void)
6071{
6072 /* PCWPSTRUCT */
6077}
6078
6080{
6081 /* PDEBUGHOOKINFO */
6086}
6087
6089{
6090 /* PDELETEITEMSTRUCT */
6095}
6096
6098{
6099 /* PDLGITEMTEMPLATEA */
6104}
6105
6107{
6108 /* PDLGITEMTEMPLATEW */
6113}
6114
6116{
6117 /* PDRAWITEMSTRUCT */
6122}
6123
6124static void test_pack_PEVENTMSG(void)
6125{
6126 /* PEVENTMSG */
6131}
6132
6133static void test_pack_PFLASHWINFO(void)
6134{
6135 /* PFLASHWINFO */
6136 TEST_TYPE_SIZE (PFLASHWINFO, 4)
6137 TEST_TYPE_ALIGN (PFLASHWINFO, 4)
6138 TEST_TARGET_SIZE (PFLASHWINFO, 20)
6139 TEST_TARGET_ALIGN(PFLASHWINFO, 4)
6140}
6141
6143{
6144 /* PGUITHREADINFO */
6149}
6150
6152{
6153 /* PHARDWAREHOOKSTRUCT */
6158}
6159
6161{
6162 /* PHARDWAREINPUT */
6167}
6168
6169static void test_pack_PHDEVNOTIFY(void)
6170{
6171 /* PHDEVNOTIFY */
6176}
6177
6179{
6180 /* PHELPWININFOA */
6185}
6186
6188{
6189 /* PHELPWININFOW */
6194}
6195
6196static void test_pack_PICONINFO(void)
6197{
6198 /* PICONINFO */
6203}
6204
6206{
6207 /* PICONMETRICSA */
6208 TEST_TYPE_SIZE (PICONMETRICSA, 4)
6209 TEST_TYPE_ALIGN (PICONMETRICSA, 4)
6210 TEST_TARGET_SIZE (PICONMETRICSA, 76)
6211 TEST_TARGET_ALIGN(PICONMETRICSA, 4)
6212}
6213
6215{
6216 /* PICONMETRICSW */
6217 TEST_TYPE_SIZE (PICONMETRICSW, 4)
6218 TEST_TYPE_ALIGN (PICONMETRICSW, 4)
6219 TEST_TARGET_SIZE (PICONMETRICSW, 108)
6220 TEST_TARGET_ALIGN(PICONMETRICSW, 4)
6221}
6222
6223static void test_pack_PINPUT(void)
6224{
6225 /* PINPUT */
6228}
6229
6231{
6232 /* PKBDLLHOOKSTRUCT */
6237}
6238
6239static void test_pack_PKEYBDINPUT(void)
6240{
6241 /* PKEYBDINPUT */
6246}
6247
6248static void test_pack_PMDINEXTMENU(void)
6249{
6250 /* PMDINEXTMENU */
6255}
6256
6258{
6259 /* PMEASUREITEMSTRUCT */
6264}
6265
6267{
6268 /* PMENUITEMTEMPLATE */
6273}
6274
6276{
6277 /* PMENUITEMTEMPLATEHEADER */
6282}
6283
6285{
6286 /* PMINIMIZEDMETRICS */
6291}
6292
6293static void test_pack_PMINMAXINFO(void)
6294{
6295 /* PMINMAXINFO */
6300}
6301
6303{
6304 /* PMOUSEHOOKSTRUCT */
6309}
6310
6311static void test_pack_PMOUSEINPUT(void)
6312{
6313 /* PMOUSEINPUT */
6318}
6319
6320static void test_pack_PMSG(void)
6321{
6322 /* PMSG */
6323 TEST_TYPE_SIZE (PMSG, 4)
6327}
6328
6330{
6331 /* PMSGBOXPARAMSA */
6336}
6337
6339{
6340 /* PMSGBOXPARAMSW */
6345}
6346
6348{
6349 /* PMSLLHOOKSTRUCT */
6354}
6355
6357{
6358 /* PMULTIKEYHELPA */
6363}
6364
6366{
6367 /* PMULTIKEYHELPW */
6372}
6373
6375{
6376 /* PNONCLIENTMETRICSA */
6377 TEST_TYPE_SIZE (PNONCLIENTMETRICSA, 4)
6378 TEST_TYPE_ALIGN (PNONCLIENTMETRICSA, 4)
6379 TEST_TARGET_SIZE (PNONCLIENTMETRICSA, 344)
6380 TEST_TARGET_ALIGN(PNONCLIENTMETRICSA, 4)
6381}
6382
6384{
6385 /* PNONCLIENTMETRICSW */
6386 TEST_TYPE_SIZE (PNONCLIENTMETRICSW, 4)
6387 TEST_TYPE_ALIGN (PNONCLIENTMETRICSW, 4)
6388 TEST_TARGET_SIZE (PNONCLIENTMETRICSW, 504)
6389 TEST_TARGET_ALIGN(PNONCLIENTMETRICSW, 4)
6390}
6391
6392static void test_pack_PPAINTSTRUCT(void)
6393{
6394 /* PPAINTSTRUCT */
6399}
6400
6402{
6403 /* PROPENUMPROCA */
6406}
6407
6409{
6410 /* PROPENUMPROCEXA */
6413}
6414
6416{
6417 /* PROPENUMPROCEXW */
6420}
6421
6423{
6424 /* PROPENUMPROCW */
6427}
6428
6430{
6431 /* PTITLEBARINFO */
6436}
6437
6439{
6440 /* PUSEROBJECTFLAGS */
6445}
6446
6447static void test_pack_PWINDOWINFO(void)
6448{
6449 /* PWINDOWINFO */
6454}
6455
6457{
6458 /* PWINDOWPLACEMENT */
6463}
6464
6465static void test_pack_PWINDOWPOS(void)
6466{
6467 /* PWINDOWPOS */
6472}
6473
6474static void test_pack_PWNDCLASSA(void)
6475{
6476 /* PWNDCLASSA */
6481}
6482
6483static void test_pack_PWNDCLASSEXA(void)
6484{
6485 /* PWNDCLASSEXA */
6490}
6491
6492static void test_pack_PWNDCLASSEXW(void)
6493{
6494 /* PWNDCLASSEXW */
6499}
6500
6501static void test_pack_PWNDCLASSW(void)
6502{
6503 /* PWNDCLASSW */
6508}
6509
6510static void test_pack_SCROLLINFO(void)
6511{
6512 /* SCROLLINFO */
6515 TEST_FIELD_SIZE (SCROLLINFO, cbSize, 4)
6516 TEST_FIELD_ALIGN (SCROLLINFO, cbSize, 4)
6517 TEST_FIELD_OFFSET(SCROLLINFO, cbSize, 0)
6518 TEST_FIELD_SIZE (SCROLLINFO, fMask, 4)
6519 TEST_FIELD_ALIGN (SCROLLINFO, fMask, 4)
6520 TEST_FIELD_OFFSET(SCROLLINFO, fMask, 4)
6521 TEST_FIELD_SIZE (SCROLLINFO, nMin, 4)
6522 TEST_FIELD_ALIGN (SCROLLINFO, nMin, 4)
6524 TEST_FIELD_SIZE (SCROLLINFO, nMax, 4)
6525 TEST_FIELD_ALIGN (SCROLLINFO, nMax, 4)
6526 TEST_FIELD_OFFSET(SCROLLINFO, nMax, 12)
6527 TEST_FIELD_SIZE (SCROLLINFO, nPage, 4)
6528 TEST_FIELD_ALIGN (SCROLLINFO, nPage, 4)
6529 TEST_FIELD_OFFSET(SCROLLINFO, nPage, 16)
6530 TEST_FIELD_SIZE (SCROLLINFO, nPos, 4)
6531 TEST_FIELD_ALIGN (SCROLLINFO, nPos, 4)
6532 TEST_FIELD_OFFSET(SCROLLINFO, nPos, 20)
6533 TEST_FIELD_SIZE (SCROLLINFO, nTrackPos, 4)
6534 TEST_FIELD_ALIGN (SCROLLINFO, nTrackPos, 4)
6535 TEST_FIELD_OFFSET(SCROLLINFO, nTrackPos, 24)
6536}
6537
6539{
6540 /* SENDASYNCPROC */
6543}
6544
6545static void test_pack_SERIALKEYSA(void)
6546{
6547 /* SERIALKEYSA */
6550 TEST_FIELD_SIZE (SERIALKEYSA, cbSize, 4)
6551 TEST_FIELD_ALIGN (SERIALKEYSA, cbSize, 4)
6552 TEST_FIELD_OFFSET(SERIALKEYSA, cbSize, 0)
6556 TEST_FIELD_SIZE (SERIALKEYSA, lpszActivePort, 4)
6557 TEST_FIELD_ALIGN (SERIALKEYSA, lpszActivePort, 4)
6558 TEST_FIELD_OFFSET(SERIALKEYSA, lpszActivePort, 8)
6559 TEST_FIELD_SIZE (SERIALKEYSA, lpszPort, 4)
6560 TEST_FIELD_ALIGN (SERIALKEYSA, lpszPort, 4)
6561 TEST_FIELD_OFFSET(SERIALKEYSA, lpszPort, 12)
6562 TEST_FIELD_SIZE (SERIALKEYSA, iBaudRate, 4)
6563 TEST_FIELD_ALIGN (SERIALKEYSA, iBaudRate, 4)
6564 TEST_FIELD_OFFSET(SERIALKEYSA, iBaudRate, 16)
6565 TEST_FIELD_SIZE (SERIALKEYSA, iPortState, 4)
6566 TEST_FIELD_ALIGN (SERIALKEYSA, iPortState, 4)
6567 TEST_FIELD_OFFSET(SERIALKEYSA, iPortState, 20)
6568 TEST_FIELD_SIZE (SERIALKEYSA, iActive, 4)
6569 TEST_FIELD_ALIGN (SERIALKEYSA, iActive, 4)
6570 TEST_FIELD_OFFSET(SERIALKEYSA, iActive, 24)
6571}
6572
6573static void test_pack_SERIALKEYSW(void)
6574{
6575 /* SERIALKEYSW */
6578 TEST_FIELD_SIZE (SERIALKEYSW, cbSize, 4)
6579 TEST_FIELD_ALIGN (SERIALKEYSW, cbSize, 4)
6580 TEST_FIELD_OFFSET(SERIALKEYSW, cbSize, 0)
6584 TEST_FIELD_SIZE (SERIALKEYSW, lpszActivePort, 4)
6585 TEST_FIELD_ALIGN (SERIALKEYSW, lpszActivePort, 4)
6586 TEST_FIELD_OFFSET(SERIALKEYSW, lpszActivePort, 8)
6587 TEST_FIELD_SIZE (SERIALKEYSW, lpszPort, 4)
6588 TEST_FIELD_ALIGN (SERIALKEYSW, lpszPort, 4)
6589 TEST_FIELD_OFFSET(SERIALKEYSW, lpszPort, 12)
6590 TEST_FIELD_SIZE (SERIALKEYSW, iBaudRate, 4)
6591 TEST_FIELD_ALIGN (SERIALKEYSW, iBaudRate, 4)
6592 TEST_FIELD_OFFSET(SERIALKEYSW, iBaudRate, 16)
6593 TEST_FIELD_SIZE (SERIALKEYSW, iPortState, 4)
6594 TEST_FIELD_ALIGN (SERIALKEYSW, iPortState, 4)
6595 TEST_FIELD_OFFSET(SERIALKEYSW, iPortState, 20)
6596 TEST_FIELD_SIZE (SERIALKEYSW, iActive, 4)
6597 TEST_FIELD_ALIGN (SERIALKEYSW, iActive, 4)
6598 TEST_FIELD_OFFSET(SERIALKEYSW, iActive, 24)
6599}
6600
6601static void test_pack_SOUNDSENTRYA(void)
6602{
6603 /* SOUNDSENTRYA */
6606 TEST_FIELD_SIZE (SOUNDSENTRYA, cbSize, 4)
6607 TEST_FIELD_ALIGN (SOUNDSENTRYA, cbSize, 4)
6612 TEST_FIELD_SIZE (SOUNDSENTRYA, iFSTextEffect, 4)
6613 TEST_FIELD_ALIGN (SOUNDSENTRYA, iFSTextEffect, 4)
6614 TEST_FIELD_OFFSET(SOUNDSENTRYA, iFSTextEffect, 8)
6615 TEST_FIELD_SIZE (SOUNDSENTRYA, iFSTextEffectMSec, 4)
6616 TEST_FIELD_ALIGN (SOUNDSENTRYA, iFSTextEffectMSec, 4)
6617 TEST_FIELD_OFFSET(SOUNDSENTRYA, iFSTextEffectMSec, 12)
6618 TEST_FIELD_SIZE (SOUNDSENTRYA, iFSTextEffectColorBits, 4)
6619 TEST_FIELD_ALIGN (SOUNDSENTRYA, iFSTextEffectColorBits, 4)
6620 TEST_FIELD_OFFSET(SOUNDSENTRYA, iFSTextEffectColorBits, 16)
6621 TEST_FIELD_SIZE (SOUNDSENTRYA, iFSGrafEffect, 4)
6622 TEST_FIELD_ALIGN (SOUNDSENTRYA, iFSGrafEffect, 4)
6623 TEST_FIELD_OFFSET(SOUNDSENTRYA, iFSGrafEffect, 20)
6624 TEST_FIELD_SIZE (SOUNDSENTRYA, iFSGrafEffectMSec, 4)
6625 TEST_FIELD_ALIGN (SOUNDSENTRYA, iFSGrafEffectMSec, 4)
6626 TEST_FIELD_OFFSET(SOUNDSENTRYA, iFSGrafEffectMSec, 24)
6627 TEST_FIELD_SIZE (SOUNDSENTRYA, iFSGrafEffectColor, 4)
6628 TEST_FIELD_ALIGN (SOUNDSENTRYA, iFSGrafEffectColor, 4)
6629 TEST_FIELD_OFFSET(SOUNDSENTRYA, iFSGrafEffectColor, 28)
6630 TEST_FIELD_SIZE (SOUNDSENTRYA, iWindowsEffect, 4)
6631 TEST_FIELD_ALIGN (SOUNDSENTRYA, iWindowsEffect, 4)
6632 TEST_FIELD_OFFSET(SOUNDSENTRYA, iWindowsEffect, 32)
6633 TEST_FIELD_SIZE (SOUNDSENTRYA, iWindowsEffectMSec, 4)
6634 TEST_FIELD_ALIGN (SOUNDSENTRYA, iWindowsEffectMSec, 4)
6635 TEST_FIELD_OFFSET(SOUNDSENTRYA, iWindowsEffectMSec, 36)
6636 TEST_FIELD_SIZE (SOUNDSENTRYA, lpszWindowsEffectDLL, 4)
6637 TEST_FIELD_ALIGN (SOUNDSENTRYA, lpszWindowsEffectDLL, 4)
6638 TEST_FIELD_OFFSET(SOUNDSENTRYA, lpszWindowsEffectDLL, 40)
6639 TEST_FIELD_SIZE (SOUNDSENTRYA, iWindowsEffectOrdinal, 4)
6640 TEST_FIELD_ALIGN (SOUNDSENTRYA, iWindowsEffectOrdinal, 4)
6641 TEST_FIELD_OFFSET(SOUNDSENTRYA, iWindowsEffectOrdinal, 44)
6642}
6643
6644static void test_pack_SOUNDSENTRYW(void)
6645{
6646 /* SOUNDSENTRYW */
6649 TEST_FIELD_SIZE (SOUNDSENTRYW, cbSize, 4)
6650 TEST_FIELD_ALIGN (SOUNDSENTRYW, cbSize, 4)
6655 TEST_FIELD_SIZE (SOUNDSENTRYW, iFSTextEffect, 4)
6656 TEST_FIELD_ALIGN (SOUNDSENTRYW, iFSTextEffect, 4)
6657 TEST_FIELD_OFFSET(SOUNDSENTRYW, iFSTextEffect, 8)
6658 TEST_FIELD_SIZE (SOUNDSENTRYW, iFSTextEffectMSec, 4)
6659 TEST_FIELD_ALIGN (SOUNDSENTRYW, iFSTextEffectMSec, 4)
6660 TEST_FIELD_OFFSET(SOUNDSENTRYW, iFSTextEffectMSec, 12)
6661 TEST_FIELD_SIZE (SOUNDSENTRYW, iFSTextEffectColorBits, 4)
6662 TEST_FIELD_ALIGN (SOUNDSENTRYW, iFSTextEffectColorBits, 4)
6663 TEST_FIELD_OFFSET(SOUNDSENTRYW, iFSTextEffectColorBits, 16)
6664 TEST_FIELD_SIZE (SOUNDSENTRYW, iFSGrafEffect, 4)
6665 TEST_FIELD_ALIGN (SOUNDSENTRYW, iFSGrafEffect, 4)
6666 TEST_FIELD_OFFSET(SOUNDSENTRYW, iFSGrafEffect, 20)
6667 TEST_FIELD_SIZE (SOUNDSENTRYW, iFSGrafEffectMSec, 4)
6668 TEST_FIELD_ALIGN (SOUNDSENTRYW, iFSGrafEffectMSec, 4)
6669 TEST_FIELD_OFFSET(SOUNDSENTRYW, iFSGrafEffectMSec, 24)
6670 TEST_FIELD_SIZE (SOUNDSENTRYW, iFSGrafEffectColor, 4)
6671 TEST_FIELD_ALIGN (SOUNDSENTRYW, iFSGrafEffectColor, 4)
6672 TEST_FIELD_OFFSET(SOUNDSENTRYW, iFSGrafEffectColor, 28)
6673 TEST_FIELD_SIZE (SOUNDSENTRYW, iWindowsEffect, 4)
6674 TEST_FIELD_ALIGN (SOUNDSENTRYW, iWindowsEffect, 4)
6675 TEST_FIELD_OFFSET(SOUNDSENTRYW, iWindowsEffect, 32)
6676 TEST_FIELD_SIZE (SOUNDSENTRYW, iWindowsEffectMSec, 4)
6677 TEST_FIELD_ALIGN (SOUNDSENTRYW, iWindowsEffectMSec, 4)
6678 TEST_FIELD_OFFSET(SOUNDSENTRYW, iWindowsEffectMSec, 36)
6679 TEST_FIELD_SIZE (SOUNDSENTRYW, lpszWindowsEffectDLL, 4)
6680 TEST_FIELD_ALIGN (SOUNDSENTRYW, lpszWindowsEffectDLL, 4)
6681 TEST_FIELD_OFFSET(SOUNDSENTRYW, lpszWindowsEffectDLL, 40)
6682 TEST_FIELD_SIZE (SOUNDSENTRYW, iWindowsEffectOrdinal, 4)
6683 TEST_FIELD_ALIGN (SOUNDSENTRYW, iWindowsEffectOrdinal, 4)
6684 TEST_FIELD_OFFSET(SOUNDSENTRYW, iWindowsEffectOrdinal, 44)
6685}
6686
6687static void test_pack_STICKYKEYS(void)
6688{
6689 /* STICKYKEYS */
6692 TEST_FIELD_SIZE (STICKYKEYS, cbSize, 4)
6693 TEST_FIELD_ALIGN (STICKYKEYS, cbSize, 4)
6694 TEST_FIELD_OFFSET(STICKYKEYS, cbSize, 0)
6698}
6699
6700static void test_pack_STYLESTRUCT(void)
6701{
6702 /* STYLESTRUCT */
6705 TEST_FIELD_SIZE (STYLESTRUCT, styleOld, 4)
6706 TEST_FIELD_ALIGN (STYLESTRUCT, styleOld, 4)
6707 TEST_FIELD_OFFSET(STYLESTRUCT, styleOld, 0)
6708 TEST_FIELD_SIZE (STYLESTRUCT, styleNew, 4)
6709 TEST_FIELD_ALIGN (STYLESTRUCT, styleNew, 4)
6710 TEST_FIELD_OFFSET(STYLESTRUCT, styleNew, 4)
6711}
6712
6713static void test_pack_TIMERPROC(void)
6714{
6715 /* TIMERPROC */
6718}
6719
6720static void test_pack_TITLEBARINFO(void)
6721{
6722 /* TITLEBARINFO */
6725 TEST_FIELD_SIZE (TITLEBARINFO, cbSize, 4)
6726 TEST_FIELD_ALIGN (TITLEBARINFO, cbSize, 4)
6728 TEST_FIELD_SIZE (TITLEBARINFO, rcTitleBar, 16)
6729 TEST_FIELD_ALIGN (TITLEBARINFO, rcTitleBar, 4)
6730 TEST_FIELD_OFFSET(TITLEBARINFO, rcTitleBar, 4)
6731 TEST_FIELD_SIZE (TITLEBARINFO, rgstate, 24)
6732 TEST_FIELD_ALIGN (TITLEBARINFO, rgstate, 4)
6733 TEST_FIELD_OFFSET(TITLEBARINFO, rgstate, 20)
6734}
6735
6736static void test_pack_TOGGLEKEYS(void)
6737{
6738 /* TOGGLEKEYS */
6741 TEST_FIELD_SIZE (TOGGLEKEYS, cbSize, 4)
6742 TEST_FIELD_ALIGN (TOGGLEKEYS, cbSize, 4)
6743 TEST_FIELD_OFFSET(TOGGLEKEYS, cbSize, 0)
6747}
6748
6749static void test_pack_TPMPARAMS(void)
6750{
6751 /* TPMPARAMS */
6754 TEST_FIELD_SIZE (TPMPARAMS, cbSize, 4)
6755 TEST_FIELD_ALIGN (TPMPARAMS, cbSize, 4)
6756 TEST_FIELD_OFFSET(TPMPARAMS, cbSize, 0)
6757 TEST_FIELD_SIZE (TPMPARAMS, rcExclude, 16)
6758 TEST_FIELD_ALIGN (TPMPARAMS, rcExclude, 4)
6759 TEST_FIELD_OFFSET(TPMPARAMS, rcExclude, 4)
6760}
6761
6763{
6764 /* TRACKMOUSEEVENT */
6767 TEST_FIELD_SIZE (TRACKMOUSEEVENT, cbSize, 4)
6773 TEST_FIELD_SIZE (TRACKMOUSEEVENT, hwndTrack, 4)
6774 TEST_FIELD_ALIGN (TRACKMOUSEEVENT, hwndTrack, 4)
6775 TEST_FIELD_OFFSET(TRACKMOUSEEVENT, hwndTrack, 8)
6776 TEST_FIELD_SIZE (TRACKMOUSEEVENT, dwHoverTime, 4)
6777 TEST_FIELD_ALIGN (TRACKMOUSEEVENT, dwHoverTime, 4)
6778 TEST_FIELD_OFFSET(TRACKMOUSEEVENT, dwHoverTime, 12)
6779}
6780
6782{
6783 /* USEROBJECTFLAGS */
6786 TEST_FIELD_SIZE (USEROBJECTFLAGS, fInherit, 4)
6787 TEST_FIELD_ALIGN (USEROBJECTFLAGS, fInherit, 4)
6789 TEST_FIELD_SIZE (USEROBJECTFLAGS, fReserved, 4)
6790 TEST_FIELD_ALIGN (USEROBJECTFLAGS, fReserved, 4)
6791 TEST_FIELD_OFFSET(USEROBJECTFLAGS, fReserved, 4)
6795}
6796
6797static void test_pack_WINDOWINFO(void)
6798{
6799 /* WINDOWINFO */
6802 TEST_FIELD_SIZE (WINDOWINFO, cbSize, 4)
6803 TEST_FIELD_ALIGN (WINDOWINFO, cbSize, 4)
6804 TEST_FIELD_OFFSET(WINDOWINFO, cbSize, 0)
6805 TEST_FIELD_SIZE (WINDOWINFO, rcWindow, 16)
6806 TEST_FIELD_ALIGN (WINDOWINFO, rcWindow, 4)
6807 TEST_FIELD_OFFSET(WINDOWINFO, rcWindow, 4)
6808 TEST_FIELD_SIZE (WINDOWINFO, rcClient, 16)
6809 TEST_FIELD_ALIGN (WINDOWINFO, rcClient, 4)
6810 TEST_FIELD_OFFSET(WINDOWINFO, rcClient, 20)
6811 TEST_FIELD_SIZE (WINDOWINFO, dwStyle, 4)
6812 TEST_FIELD_ALIGN (WINDOWINFO, dwStyle, 4)
6813 TEST_FIELD_OFFSET(WINDOWINFO, dwStyle, 36)
6814 TEST_FIELD_SIZE (WINDOWINFO, dwExStyle, 4)
6815 TEST_FIELD_ALIGN (WINDOWINFO, dwExStyle, 4)
6816 TEST_FIELD_OFFSET(WINDOWINFO, dwExStyle, 40)
6817 TEST_FIELD_SIZE (WINDOWINFO, dwWindowStatus, 4)
6818 TEST_FIELD_ALIGN (WINDOWINFO, dwWindowStatus, 4)
6819 TEST_FIELD_OFFSET(WINDOWINFO, dwWindowStatus, 44)
6820 TEST_FIELD_SIZE (WINDOWINFO, cxWindowBorders, 4)
6821 TEST_FIELD_ALIGN (WINDOWINFO, cxWindowBorders, 4)
6822 TEST_FIELD_OFFSET(WINDOWINFO, cxWindowBorders, 48)
6823 TEST_FIELD_SIZE (WINDOWINFO, cyWindowBorders, 4)
6824 TEST_FIELD_ALIGN (WINDOWINFO, cyWindowBorders, 4)
6825 TEST_FIELD_OFFSET(WINDOWINFO, cyWindowBorders, 52)
6826 TEST_FIELD_SIZE (WINDOWINFO, atomWindowType, 2)
6827 TEST_FIELD_ALIGN (WINDOWINFO, atomWindowType, 2)
6828 TEST_FIELD_OFFSET(WINDOWINFO, atomWindowType, 56)
6829 TEST_FIELD_SIZE (WINDOWINFO, wCreatorVersion, 2)
6830 TEST_FIELD_ALIGN (WINDOWINFO, wCreatorVersion, 2)
6831 TEST_FIELD_OFFSET(WINDOWINFO, wCreatorVersion, 58)
6832}
6833
6835{
6836 /* WINDOWPLACEMENT */
6845 TEST_FIELD_SIZE (WINDOWPLACEMENT, showCmd, 4)
6846 TEST_FIELD_ALIGN (WINDOWPLACEMENT, showCmd, 4)
6848 TEST_FIELD_SIZE (WINDOWPLACEMENT, ptMinPosition, 8)
6849 TEST_FIELD_ALIGN (WINDOWPLACEMENT, ptMinPosition, 4)
6850 TEST_FIELD_OFFSET(WINDOWPLACEMENT, ptMinPosition, 12)
6851 TEST_FIELD_SIZE (WINDOWPLACEMENT, ptMaxPosition, 8)
6852 TEST_FIELD_ALIGN (WINDOWPLACEMENT, ptMaxPosition, 4)
6853 TEST_FIELD_OFFSET(WINDOWPLACEMENT, ptMaxPosition, 20)
6854 TEST_FIELD_SIZE (WINDOWPLACEMENT, rcNormalPosition, 16)
6855 TEST_FIELD_ALIGN (WINDOWPLACEMENT, rcNormalPosition, 4)
6856 TEST_FIELD_OFFSET(WINDOWPLACEMENT, rcNormalPosition, 28)
6857}
6858
6859static void test_pack_WINDOWPOS(void)
6860{
6861 /* WINDOWPOS */
6867 TEST_FIELD_SIZE (WINDOWPOS, hwndInsertAfter, 4)
6868 TEST_FIELD_ALIGN (WINDOWPOS, hwndInsertAfter, 4)
6869 TEST_FIELD_OFFSET(WINDOWPOS, hwndInsertAfter, 4)
6885}
6886
6887static void test_pack_WINEVENTPROC(void)
6888{
6889 /* WINEVENTPROC */
6892}
6893
6895{
6896 /* WINSTAENUMPROCA */
6899}
6900
6902{
6903 /* WINSTAENUMPROCW */
6906}
6907
6908static void test_pack_WNDCLASSA(void)
6909{
6910 /* WNDCLASSA */
6916 TEST_FIELD_SIZE (WNDCLASSA, lpfnWndProc, 4)
6917 TEST_FIELD_ALIGN (WNDCLASSA, lpfnWndProc, 4)
6918 TEST_FIELD_OFFSET(WNDCLASSA, lpfnWndProc, 4)
6919 TEST_FIELD_SIZE (WNDCLASSA, cbClsExtra, 4)
6920 TEST_FIELD_ALIGN (WNDCLASSA, cbClsExtra, 4)
6921 TEST_FIELD_OFFSET(WNDCLASSA, cbClsExtra, 8)
6922 TEST_FIELD_SIZE (WNDCLASSA, cbWndExtra, 4)
6923 TEST_FIELD_ALIGN (WNDCLASSA, cbWndExtra, 4)
6924 TEST_FIELD_OFFSET(WNDCLASSA, cbWndExtra, 12)
6931 TEST_FIELD_SIZE (WNDCLASSA, hCursor, 4)
6932 TEST_FIELD_ALIGN (WNDCLASSA, hCursor, 4)
6933 TEST_FIELD_OFFSET(WNDCLASSA, hCursor, 24)
6937 TEST_FIELD_SIZE (WNDCLASSA, lpszMenuName, 4)
6938 TEST_FIELD_ALIGN (WNDCLASSA, lpszMenuName, 4)
6939 TEST_FIELD_OFFSET(WNDCLASSA, lpszMenuName, 32)
6940 TEST_FIELD_SIZE (WNDCLASSA, lpszClassName, 4)
6941 TEST_FIELD_ALIGN (WNDCLASSA, lpszClassName, 4)
6942 TEST_FIELD_OFFSET(WNDCLASSA, lpszClassName, 36)
6943}
6944
6945static void test_pack_WNDCLASSEXA(void)
6946{
6947 /* WNDCLASSEXA */
6950 TEST_FIELD_SIZE (WNDCLASSEXA, cbSize, 4)
6951 TEST_FIELD_ALIGN (WNDCLASSEXA, cbSize, 4)
6952 TEST_FIELD_OFFSET(WNDCLASSEXA, cbSize, 0)
6956 TEST_FIELD_SIZE (WNDCLASSEXA, lpfnWndProc, 4)
6957 TEST_FIELD_ALIGN (WNDCLASSEXA, lpfnWndProc, 4)
6958 TEST_FIELD_OFFSET(WNDCLASSEXA, lpfnWndProc, 8)
6959 TEST_FIELD_SIZE (WNDCLASSEXA, cbClsExtra, 4)
6960 TEST_FIELD_ALIGN (WNDCLASSEXA, cbClsExtra, 4)
6961 TEST_FIELD_OFFSET(WNDCLASSEXA, cbClsExtra, 12)
6962 TEST_FIELD_SIZE (WNDCLASSEXA, cbWndExtra, 4)
6963 TEST_FIELD_ALIGN (WNDCLASSEXA, cbWndExtra, 4)
6964 TEST_FIELD_OFFSET(WNDCLASSEXA, cbWndExtra, 16)
6971 TEST_FIELD_SIZE (WNDCLASSEXA, hCursor, 4)
6972 TEST_FIELD_ALIGN (WNDCLASSEXA, hCursor, 4)
6973 TEST_FIELD_OFFSET(WNDCLASSEXA, hCursor, 28)
6977 TEST_FIELD_SIZE (WNDCLASSEXA, lpszMenuName, 4)
6978 TEST_FIELD_ALIGN (WNDCLASSEXA, lpszMenuName, 4)
6979 TEST_FIELD_OFFSET(WNDCLASSEXA, lpszMenuName, 36)
6980 TEST_FIELD_SIZE (WNDCLASSEXA, lpszClassName, 4)
6981 TEST_FIELD_ALIGN (WNDCLASSEXA, lpszClassName, 4)
6982 TEST_FIELD_OFFSET(WNDCLASSEXA, lpszClassName, 40)
6986}
6987
6988static void test_pack_WNDCLASSEXW(void)
6989{
6990 /* WNDCLASSEXW */
6993 TEST_FIELD_SIZE (WNDCLASSEXW, cbSize, 4)
6994 TEST_FIELD_ALIGN (WNDCLASSEXW, cbSize, 4)
6995 TEST_FIELD_OFFSET(WNDCLASSEXW, cbSize, 0)
6999 TEST_FIELD_SIZE (WNDCLASSEXW, lpfnWndProc, 4)
7000 TEST_FIELD_ALIGN (WNDCLASSEXW, lpfnWndProc, 4)
7001 TEST_FIELD_OFFSET(WNDCLASSEXW, lpfnWndProc, 8)
7002 TEST_FIELD_SIZE (WNDCLASSEXW, cbClsExtra, 4)
7003 TEST_FIELD_ALIGN (WNDCLASSEXW, cbClsExtra, 4)
7004 TEST_FIELD_OFFSET(WNDCLASSEXW, cbClsExtra, 12)
7005 TEST_FIELD_SIZE (WNDCLASSEXW, cbWndExtra, 4)
7006 TEST_FIELD_ALIGN (WNDCLASSEXW, cbWndExtra, 4)
7007 TEST_FIELD_OFFSET(WNDCLASSEXW, cbWndExtra, 16)
7014 TEST_FIELD_SIZE (WNDCLASSEXW, hCursor, 4)
7015 TEST_FIELD_ALIGN (WNDCLASSEXW, hCursor, 4)
7016 TEST_FIELD_OFFSET(WNDCLASSEXW, hCursor, 28)
7020 TEST_FIELD_SIZE (WNDCLASSEXW, lpszMenuName, 4)
7021 TEST_FIELD_ALIGN (WNDCLASSEXW, lpszMenuName, 4)
7022 TEST_FIELD_OFFSET(WNDCLASSEXW, lpszMenuName, 36)
7023 TEST_FIELD_SIZE (WNDCLASSEXW, lpszClassName, 4)
7024 TEST_FIELD_ALIGN (WNDCLASSEXW, lpszClassName, 4)
7025 TEST_FIELD_OFFSET(WNDCLASSEXW, lpszClassName, 40)
7029}
7030
7031static void test_pack_WNDCLASSW(void)
7032{
7033 /* WNDCLASSW */
7039 TEST_FIELD_SIZE (WNDCLASSW, lpfnWndProc, 4)
7040 TEST_FIELD_ALIGN (WNDCLASSW, lpfnWndProc, 4)
7041 TEST_FIELD_OFFSET(WNDCLASSW, lpfnWndProc, 4)
7042 TEST_FIELD_SIZE (WNDCLASSW, cbClsExtra, 4)
7043 TEST_FIELD_ALIGN (WNDCLASSW, cbClsExtra, 4)
7044 TEST_FIELD_OFFSET(WNDCLASSW, cbClsExtra, 8)
7045 TEST_FIELD_SIZE (WNDCLASSW, cbWndExtra, 4)
7046 TEST_FIELD_ALIGN (WNDCLASSW, cbWndExtra, 4)
7047 TEST_FIELD_OFFSET(WNDCLASSW, cbWndExtra, 12)
7054 TEST_FIELD_SIZE (WNDCLASSW, hCursor, 4)
7055 TEST_FIELD_ALIGN (WNDCLASSW, hCursor, 4)
7056 TEST_FIELD_OFFSET(WNDCLASSW, hCursor, 24)
7060 TEST_FIELD_SIZE (WNDCLASSW, lpszMenuName, 4)
7061 TEST_FIELD_ALIGN (WNDCLASSW, lpszMenuName, 4)
7062 TEST_FIELD_OFFSET(WNDCLASSW, lpszMenuName, 32)
7063 TEST_FIELD_SIZE (WNDCLASSW, lpszClassName, 4)
7064 TEST_FIELD_ALIGN (WNDCLASSW, lpszClassName, 4)
7065 TEST_FIELD_OFFSET(WNDCLASSW, lpszClassName, 36)
7066}
7067
7068static void test_pack_WNDENUMPROC(void)
7069{
7070 /* WNDENUMPROC */
7073}
7074
7075static void test_pack_WNDPROC(void)
7076{
7077 /* WNDPROC */
7080}
7081
7082#endif /* _WIN64 */
7083
7084static void test_pack(void)
7085{
7237 test_pack_MSG();
7332}
7333
7334START_TEST(generated)
7335{
7336 test_pack();
7337}
static HDC hDC
Definition: 3dtext.c:33
Arabic default style
Definition: afstyles.h:94
#define START_TEST(x)
Definition: atltest.h:75
HINSTANCE hInstance
Definition: charmap.c:19
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139
static HWND hwndParent
Definition: cryptui.c:300
#define DLGPROC
Definition: maze.c:62
#define pt(x, y)
Definition: drawing.c:79
HBRUSH hbrBackground
Definition: enumwnd.c:12
#define TEST_TARGET_SIZE(type, size)
Definition: generated.c:68
#define TEST_FIELD_OFFSET(type, field, offset)
Definition: generated.c:66
#define TEST_TARGET_ALIGN(type, align)
Definition: generated.c:62
static void test_pack(void)
Definition: generated.c:13122
#define TEST_TYPE_SIZE(type, size)
Definition: generated.c:50
#define TEST_FIELD_SIZE(type, field, size)
Definition: generated.c:69
#define TEST_TYPE_ALIGN(type, align)
Definition: generated.c:55
#define TEST_FIELD_ALIGN(type, field, align)
Definition: generated.c:63
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
GLbitfield flags
Definition: glext.h:7161
GLuint GLsizei GLsizei * length
Definition: glext.h:6040
GLintptr offset
Definition: glext.h:5920
GLint dy
Definition: linetemp.h:97
GLint dx
Definition: linetemp.h:97
TCHAR szTitle[MAX_LOADSTRING]
Definition: magnifier.c:35
__u16 time
Definition: mkdosfs.c:8
HDC hdc
Definition: main.c:9
static DWORD DWORD void LPSTR DWORD cch
Definition: str.c:202
static HANDLE ULONG_PTR dwData
Definition: file.c:35
HICON hIcon
Definition: msconfig.c:44
HICON hIconSm
Definition: msconfig.c:44
_Out_opt_ int _Out_opt_ int * cy
Definition: commctrl.h:586
_Out_opt_ int * cx
Definition: commctrl.h:585
Definition: inflate.c:139
Definition: tftpd.h:60
HMENU hWindowMenu
Definition: taskmgr.c:26
TW_UINT32 TW_UINT16 TW_UINT16 MSG
Definition: twain.h:1829
static void test_pack_LPSERIALKEYSW(void)
Definition: generated.c:5105
static void test_pack_HDWP(void)
Definition: generated.c:4232
static void test_pack_LPMONITORINFOEXW(void)
Definition: generated.c:4952
static void test_pack_LPACCESSTIMEOUT(void)
Definition: generated.c:4477
static void test_pack_CREATESTRUCTA(void)
Definition: generated.c:3736
static void test_pack_MDICREATESTRUCTW(void)
Definition: generated.c:5283
static void test_pack_LPWNDCLASSW(void)
Definition: generated.c:5240
static void test_pack_LPMDINEXTMENU(void)
Definition: generated.c:4871
static void test_pack_MDICREATESTRUCTA(void)
Definition: generated.c:5249
static void test_pack_PDRAWITEMSTRUCT(void)
Definition: generated.c:6115
static void test_pack_LPCREATESTRUCTW(void)
Definition: generated.c:4603
static void test_pack_LPMSG(void)
Definition: generated.c:4988
static void test_pack_PHELPWININFOW(void)
Definition: generated.c:6187
static void test_pack_ICONMETRICSW(void)
Definition: generated.c:4403
static void test_pack_TOGGLEKEYS(void)
Definition: generated.c:6736
static void test_pack_PMSGBOXPARAMSW(void)
Definition: generated.c:6338
static void test_pack_TIMERPROC(void)
Definition: generated.c:6713
static void test_pack_LPICONMETRICSW(void)
Definition: generated.c:4819
static void test_pack_LPGUITHREADINFO(void)
Definition: generated.c:4738
static void test_pack_COPYDATASTRUCT(void)
Definition: generated.c:3720
static void test_pack_PKEYBDINPUT(void)
Definition: generated.c:6239
static void test_pack_PWNDCLASSA(void)
Definition: generated.c:6474
static void test_pack_PICONMETRICSA(void)
Definition: generated.c:6205
static void test_pack_PMSLLHOOKSTRUCT(void)
Definition: generated.c:6347
static void test_pack_MENUITEMINFOW(void)
Definition: generated.c:5429
static void test_pack_PROPENUMPROCW(void)
Definition: generated.c:6422
static void test_pack_MEASUREITEMSTRUCT(void)
Definition: generated.c:5333
static void test_pack_ACCESSTIMEOUT(void)
Definition: generated.c:3580
static void test_pack_WNDCLASSA(void)
Definition: generated.c:6908
static void test_pack_PDELETEITEMSTRUCT(void)
Definition: generated.c:6088
static void test_pack_LPDLGTEMPLATEW(void)
Definition: generated.c:4693
static void test_pack_LPKBDLLHOOKSTRUCT(void)
Definition: generated.c:4835
static void test_pack_MONITORINFOEXW(void)
Definition: generated.c:5593
static void test_pack_PEVENTMSG(void)
Definition: generated.c:6124
static void test_pack_HIGHCONTRASTA(void)
Definition: generated.c:4320
static void test_pack_LPHIGHCONTRASTA(void)
Definition: generated.c:4792
static void test_pack_LPHARDWAREHOOKSTRUCT(void)
Definition: generated.c:4747
static void test_pack_LPMONITORINFO(void)
Definition: generated.c:4934
static void test_pack_WINDOWINFO(void)
Definition: generated.c:6797
static void test_pack_LPCWPSTRUCT(void)
Definition: generated.c:4639
static void test_pack_HELPWININFOA(void)
Definition: generated.c:4264
static void test_pack_LPFILTERKEYS(void)
Definition: generated.c:4729
static void test_pack_KBDLLHOOKSTRUCT(void)
Definition: generated.c:4433
static void test_pack_WINDOWPOS(void)
Definition: generated.c:6859
static void test_pack_LPSOUNDSENTRYW(void)
Definition: generated.c:5123
static void test_pack_DEBUGHOOKINFO(void)
Definition: generated.c:3882
static void test_pack_MDINEXTMENU(void)
Definition: generated.c:5317
static void test_pack_LPKEYBDINPUT(void)
Definition: generated.c:4844
static void test_pack_SOUNDSENTRYW(void)
Definition: generated.c:6644
static void test_pack_DRAWITEMSTRUCT(void)
Definition: generated.c:4003
static void test_pack_MENUITEMINFOA(void)
Definition: generated.c:5386
static void test_pack_PMENUITEMTEMPLATEHEADER(void)
Definition: generated.c:6275
static void test_pack_LPTITLEBARINFO(void)
Definition: generated.c:5150
static void test_pack_CLIENTCREATESTRUCT(void)
Definition: generated.c:3648
static void test_pack_LPWNDCLASSA(void)
Definition: generated.c:5213
static void test_pack_MSGBOXCALLBACK(void)
Definition: generated.c:5712
static void test_pack_GUITHREADINFO(void)
Definition: generated.c:4156
static void test_pack_WNDCLASSEXA(void)
Definition: generated.c:6945
static void test_pack_PHARDWAREINPUT(void)
Definition: generated.c:6160
static void test_pack_LPHELPWININFOW(void)
Definition: generated.c:4783
static void test_pack_PMOUSEINPUT(void)
Definition: generated.c:6311
static void test_pack_DESKTOPENUMPROCA(void)
Definition: generated.c:3926
static void test_pack_PWINDOWPOS(void)
Definition: generated.c:6465
static void test_pack_LPMSGBOXPARAMSA(void)
Definition: generated.c:4997
static void test_pack_MOUSEHOOKSTRUCT(void)
Definition: generated.c:5615
static void test_pack_LPWINDOWPLACEMENT(void)
Definition: generated.c:5195
static void test_pack_TPMPARAMS(void)
Definition: generated.c:6749
static void test_pack_NONCLIENTMETRICSA(void)
Definition: generated.c:5890
static void test_pack_PICONINFO(void)
Definition: generated.c:6196
static void test_pack_LPHIGHCONTRASTW(void)
Definition: generated.c:4801
static void test_pack_WINDOWPLACEMENT(void)
Definition: generated.c:6834
static void test_pack_PHARDWAREHOOKSTRUCT(void)
Definition: generated.c:6151
static void test_pack_LPDLGITEMTEMPLATEA(void)
Definition: generated.c:4666
static void test_pack_WNDENUMPROC(void)
Definition: generated.c:7068
static void test_pack_LPMSGBOXPARAMSW(void)
Definition: generated.c:5006
static void test_pack_LPWNDCLASSEXW(void)
Definition: generated.c:5231
static void test_pack_EDITWORDBREAKPROCA(void)
Definition: generated.c:4066
static void test_pack_CWPSTRUCT(void)
Definition: generated.c:3863
static void test_pack_LPHELPWININFOA(void)
Definition: generated.c:4774
static void test_pack_SOUNDSENTRYA(void)
Definition: generated.c:6601
static void test_pack_ICONINFO(void)
Definition: generated.c:4359
static void test_pack_PWINDOWINFO(void)
Definition: generated.c:6447
static void test_pack_MSG(void)
Definition: generated.c:5687
static void test_pack_LPCMENUINFO(void)
Definition: generated.c:4549
static void test_pack_PGUITHREADINFO(void)
Definition: generated.c:6142
static void test_pack_MOUSEINPUT(void)
Definition: generated.c:5634
static void test_pack_PNONCLIENTMETRICSW(void)
Definition: generated.c:6383
static void test_pack_LPMINIMIZEDMETRICS(void)
Definition: generated.c:4916
static void test_pack_KEYBDINPUT(void)
Definition: generated.c:4455
static void test_pack_CURSORINFO(void)
Definition: generated.c:3822
static void test_pack_PKBDLLHOOKSTRUCT(void)
Definition: generated.c:6230
static void test_pack_LPINPUT(void)
Definition: generated.c:4828
static void test_pack_DRAWTEXTPARAMS(void)
Definition: generated.c:4044
static void test_pack_MONITORINFO(void)
Definition: generated.c:5552
static void test_pack_MSLLHOOKSTRUCT(void)
Definition: generated.c:5793
static void test_pack_MINIMIZEDMETRICS(void)
Definition: generated.c:5501
static void test_pack_LPCOMBOBOXINFO(void)
Definition: generated.c:4576
static void test_pack_LPMENUINFO(void)
Definition: generated.c:4889
static void test_pack_EVENTMSG(void)
Definition: generated.c:4080
static void test_pack_PMOUSEHOOKSTRUCT(void)
Definition: generated.c:6302
static void test_pack_LPCMENUITEMINFOW(void)
Definition: generated.c:4567
static void test_pack_NAMEENUMPROCA(void)
Definition: generated.c:5847
static void test_pack_MSGBOXPARAMSA(void)
Definition: generated.c:5719
static void test_pack_CWPRETSTRUCT(void)
Definition: generated.c:3841
static void test_pack_DESKTOPENUMPROCW(void)
Definition: generated.c:3933
static void test_pack_LPCDLGTEMPLATEW(void)
Definition: generated.c:4531
static void test_pack_PICONMETRICSW(void)
Definition: generated.c:6214
static void test_pack_HARDWAREINPUT(void)
Definition: generated.c:4209
static void test_pack_SCROLLINFO(void)
Definition: generated.c:6510
static void test_pack_NONCLIENTMETRICSW(void)
Definition: generated.c:5945
static void test_pack_LPNMHDR(void)
Definition: generated.c:5051
static void test_pack_COMPAREITEMSTRUCT(void)
Definition: generated.c:3689
static void test_pack_LPCURSORINFO(void)
Definition: generated.c:4621
static void test_pack_PMULTIKEYHELPA(void)
Definition: generated.c:6356
static void test_pack_CBT_CREATEWNDW(void)
Definition: generated.c:3635
static void test_pack_LPTRACKMOUSEEVENT(void)
Definition: generated.c:5177
static void test_pack_LPMDICREATESTRUCTA(void)
Definition: generated.c:4853
static void test_pack_PDEBUGHOOKINFO(void)
Definition: generated.c:6079
static void test_pack_LPCSCROLLINFO(void)
Definition: generated.c:4612
static void test_pack_STICKYKEYS(void)
Definition: generated.c:6687
static void test_pack_GRAYSTRINGPROC(void)
Definition: generated.c:4149
static void test_pack_LPMENUITEMINFOW(void)
Definition: generated.c:4907
static void test_pack_PPAINTSTRUCT(void)
Definition: generated.c:6392
static void test_pack_LPDLGITEMTEMPLATEW(void)
Definition: generated.c:4675
static void test_pack_TRACKMOUSEEVENT(void)
Definition: generated.c:6762
static void test_pack_DELETEITEMSTRUCT(void)
Definition: generated.c:3904
static void test_pack_ICONMETRICSA(void)
Definition: generated.c:4381
static void test_pack_NMHDR(void)
Definition: generated.c:5874
static void test_pack_LPCDLGTEMPLATEA(void)
Definition: generated.c:4522
static void test_pack_NCCALCSIZE_PARAMS(void)
Definition: generated.c:5861
static void test_pack_LPDELETEITEMSTRUCT(void)
Definition: generated.c:4657
static void test_pack_PCWPSTRUCT(void)
Definition: generated.c:6070
static void test_pack_LPTPMPARAMS(void)
Definition: generated.c:5168
static void test_pack_INPUT(void)
Definition: generated.c:4425
static void test_pack_LPCBTACTIVATESTRUCT(void)
Definition: generated.c:4495
static void test_pack_PROPENUMPROCEXA(void)
Definition: generated.c:6408
static void test_pack_WINEVENTPROC(void)
Definition: generated.c:6887
static void test_pack_PMENUITEMTEMPLATE(void)
Definition: generated.c:6266
static void test_pack_LPMINMAXINFO(void)
Definition: generated.c:4925
static void test_pack_PMSGBOXPARAMSA(void)
Definition: generated.c:6329
static void test_pack_LPCWPRETSTRUCT(void)
Definition: generated.c:4630
static void test_pack_PUSEROBJECTFLAGS(void)
Definition: generated.c:6438
static void test_pack_LPNONCLIENTMETRICSA(void)
Definition: generated.c:5060
static void test_pack_FILTERKEYS(void)
Definition: generated.c:4102
static void test_pack_LPEVENTMSG(void)
Definition: generated.c:4720
static void test_pack_LPDLGTEMPLATEA(void)
Definition: generated.c:4684
static void test_pack_LPMONITORINFOEXA(void)
Definition: generated.c:4943
static void test_pack_PCURSORINFO(void)
Definition: generated.c:6052
static void test_pack_LPDEBUGHOOKINFO(void)
Definition: generated.c:4648
static void test_pack_DLGTEMPLATE(void)
Definition: generated.c:3975
static void test_pack_HELPINFO(void)
Definition: generated.c:4239
static void test_pack_LPCBT_CREATEWNDW(void)
Definition: generated.c:4513
static void test_pack_PROPENUMPROCEXW(void)
Definition: generated.c:6415
static void test_pack_PWNDCLASSW(void)
Definition: generated.c:6501
static void test_pack_PMULTIKEYHELPW(void)
Definition: generated.c:6365
static void test_pack_MENUITEMTEMPLATE(void)
Definition: generated.c:5472
static void test_pack_LPSERIALKEYSA(void)
Definition: generated.c:5096
static void test_pack_LPMULTIKEYHELPA(void)
Definition: generated.c:5024
static void test_pack_PWNDCLASSEXW(void)
Definition: generated.c:6492
static void test_pack_MINMAXINFO(void)
Definition: generated.c:5523
static void test_pack_HOOKPROC(void)
Definition: generated.c:4352
static void test_pack_LPMDICREATESTRUCTW(void)
Definition: generated.c:4862
static void test_pack_LPICONMETRICSA(void)
Definition: generated.c:4810
static void test_pack_LPDRAWITEMSTRUCT(void)
Definition: generated.c:4702
static void test_pack_LPHELPINFO(void)
Definition: generated.c:4765
static void test_pack_WNDCLASSEXW(void)
Definition: generated.c:6988
static void test_pack_MULTIKEYHELPA(void)
Definition: generated.c:5815
static void test_pack_LPPAINTSTRUCT(void)
Definition: generated.c:5078
static void test_pack_MSGBOXPARAMSW(void)
Definition: generated.c:5756
static void test_pack_SENDASYNCPROC(void)
Definition: generated.c:6538
static void test_pack_LPWINDOWPOS(void)
Definition: generated.c:5204
static void test_pack_COMBOBOXINFO(void)
Definition: generated.c:3661
static void test_pack_PROPENUMPROCA(void)
Definition: generated.c:6401
static void test_pack_CBT_CREATEWNDA(void)
Definition: generated.c:3622
static void test_pack_DRAWSTATEPROC(void)
Definition: generated.c:4037
static void test_pack_DLGPROC(void)
Definition: generated.c:3968
static void test_pack_PINPUT(void)
Definition: generated.c:6223
static void test_pack_PAINTSTRUCT(void)
Definition: generated.c:6000
static void test_pack_SERIALKEYSW(void)
Definition: generated.c:6573
static void test_pack_ANIMATIONINFO(void)
Definition: generated.c:3596
static void test_pack_LPDRAWTEXTPARAMS(void)
Definition: generated.c:4711
static void test_pack_HARDWAREHOOKSTRUCT(void)
Definition: generated.c:4190
static void test_pack_WNDCLASSW(void)
Definition: generated.c:7031
static void test_pack_PFLASHWINFO(void)
Definition: generated.c:6133
static void test_pack_STYLESTRUCT(void)
Definition: generated.c:6700
static void test_pack_MENUINFO(void)
Definition: generated.c:5358
static void test_pack_LPCREATESTRUCTA(void)
Definition: generated.c:4594
static void test_pack_LPCMENUITEMINFOA(void)
Definition: generated.c:4558
static void test_pack_PMINIMIZEDMETRICS(void)
Definition: generated.c:6284
static void test_pack_HIGHCONTRASTW(void)
Definition: generated.c:4336
static void test_pack_DLGITEMTEMPLATE(void)
Definition: generated.c:3940
static void test_pack_PDLGITEMTEMPLATEA(void)
Definition: generated.c:6097
static void test_pack_LPMOUSEKEYS(void)
Definition: generated.c:4979
static void test_pack_LPSTYLESTRUCT(void)
Definition: generated.c:5141
static void test_pack_LPCLIENTCREATESTRUCT(void)
Definition: generated.c:4540
static void test_pack_MONITORINFOEXA(void)
Definition: generated.c:5571
static void test_pack_WNDPROC(void)
Definition: generated.c:7075
static void test_pack_PTITLEBARINFO(void)
Definition: generated.c:6429
static void test_pack_HELPWININFOW(void)
Definition: generated.c:4292
static void test_pack_CBTACTIVATESTRUCT(void)
Definition: generated.c:3609
static void test_pack_MOUSEKEYS(void)
Definition: generated.c:5659
static void test_pack_LPTOGGLEKEYS(void)
Definition: generated.c:5159
static void test_pack_WINSTAENUMPROCW(void)
Definition: generated.c:6901
static void test_pack_EDITWORDBREAKPROCW(void)
Definition: generated.c:4073
static void test_pack_LPSOUNDSENTRYA(void)
Definition: generated.c:5114
static void test_pack_FLASHWINFO(void)
Definition: generated.c:4127
static void test_pack_PHELPWININFOA(void)
Definition: generated.c:6178
static void test_pack_PWNDCLASSEXA(void)
Definition: generated.c:6483
static void test_pack_MULTIKEYHELPW(void)
Definition: generated.c:5831
static void test_pack_LPHARDWAREINPUT(void)
Definition: generated.c:4756
static void test_pack_PMINMAXINFO(void)
Definition: generated.c:6293
static void test_pack_PCWPRETSTRUCT(void)
Definition: generated.c:6061
static void test_pack_PMDINEXTMENU(void)
Definition: generated.c:6248
static void test_pack_LPMULTIKEYHELPW(void)
Definition: generated.c:5033
static void test_pack_WINSTAENUMPROCA(void)
Definition: generated.c:6894
static void test_pack_MONITORENUMPROC(void)
Definition: generated.c:5545
static void test_pack_NAMEENUMPROCW(void)
Definition: generated.c:5854
static void test_pack_TITLEBARINFO(void)
Definition: generated.c:6720
static void test_pack_PMSG(void)
Definition: generated.c:6320
static void test_pack_SERIALKEYSA(void)
Definition: generated.c:6545
static void test_pack_PNONCLIENTMETRICSA(void)
Definition: generated.c:6374
static void test_pack_HDEVNOTIFY(void)
Definition: generated.c:4225
static void test_pack_LPWNDCLASSEXA(void)
Definition: generated.c:5222
static void test_pack_PWINDOWPLACEMENT(void)
Definition: generated.c:6456
static void test_pack_PCOPYDATASTRUCT(void)
Definition: generated.c:6043
static void test_pack_PHDEVNOTIFY(void)
Definition: generated.c:6169
static void test_pack_CREATESTRUCTW(void)
Definition: generated.c:3779
static void test_pack_MENUITEMTEMPLATEHEADER(void)
Definition: generated.c:5488
static void test_pack_LPSTICKYKEYS(void)
Definition: generated.c:5132
static void test_pack_LPMOUSEINPUT(void)
Definition: generated.c:4970
static void test_pack_PCOMPAREITEMSTRUCT(void)
Definition: generated.c:6034
static void test_pack_LPMOUSEHOOKSTRUCT(void)
Definition: generated.c:4961
static void test_pack_LPNCCALCSIZE_PARAMS(void)
Definition: generated.c:5042
static void test_pack_LPANIMATIONINFO(void)
Definition: generated.c:4486
static void test_pack_LPMSLLHOOKSTRUCT(void)
Definition: generated.c:5015
static void test_pack_LPMEASUREITEMSTRUCT(void)
Definition: generated.c:4880
static void test_pack_LPSCROLLINFO(void)
Definition: generated.c:5087
static void test_pack_PCOMBOBOXINFO(void)
Definition: generated.c:6025
static void test_pack_LPCOMPAREITEMSTRUCT(void)
Definition: generated.c:4585
static void test_pack_USEROBJECTFLAGS(void)
Definition: generated.c:6781
static void test_pack_LPMENUITEMINFOA(void)
Definition: generated.c:4898
static void test_pack_LPNONCLIENTMETRICSW(void)
Definition: generated.c:5069
static void test_pack_PDLGITEMTEMPLATEW(void)
Definition: generated.c:6106
static void test_pack_PMEASUREITEMSTRUCT(void)
Definition: generated.c:6257
static void test_pack_LPWINDOWINFO(void)
Definition: generated.c:5186
static void test_pack_LPCBT_CREATEWNDA(void)
Definition: generated.c:4504
VOID(CALLBACK * WINEVENTPROC)(HWINEVENTHOOK, DWORD, HWND, LONG, LONG, DWORD, DWORD)
Definition: winable.h:68
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Definition: wincrypt.h:1176
_In_ void _In_ PCCERT_CONTEXT _In_opt_ LPFILETIME _In_ DWORD _In_ DWORD dwTimeout
Definition: wincrypt.h:6081
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023
BOOL(CALLBACK * PROPENUMPROCEXW)(HWND, LPWSTR, HANDLE, ULONG_PTR)
Definition: winuser.h:2906
LRESULT(CALLBACK * HOOKPROC)(int, WPARAM, LPARAM)
Definition: winuser.h:2902
void(CALLBACK * SENDASYNCPROC)(HWND, UINT, ULONG_PTR, LRESULT)
Definition: winuser.h:2919
BOOL(CALLBACK * NAMEENUMPROCA)(LPSTR, LPARAM)
Definition: winuser.h:2913
BOOL(CALLBACK * PROPENUMPROCA)(HWND, LPCSTR, HANDLE)
Definition: winuser.h:2903
BOOL(CALLBACK * NAMEENUMPROCW)(LPWSTR, LPARAM)
Definition: winuser.h:2914
BOOL(CALLBACK * GRAYSTRINGPROC)(HDC, LPARAM, int)
Definition: winuser.h:2901
int(CALLBACK * EDITWORDBREAKPROCA)(LPSTR, int, int, int)
Definition: winuser.h:2907
MENUINFO CONST * LPCMENUINFO
Definition: winuser.h:3747
NAMEENUMPROCW DESKTOPENUMPROCW
Definition: winuser.h:2916
BOOL(CALLBACK * PROPENUMPROCEXA)(HWND, LPSTR, HANDLE, ULONG_PTR)
Definition: winuser.h:2905
BOOL(CALLBACK * PROPENUMPROCW)(HWND, LPCWSTR, HANDLE)
Definition: winuser.h:2904
NAMEENUMPROCA WINSTAENUMPROCA
Definition: winuser.h:2917
int(CALLBACK * EDITWORDBREAKPROCW)(LPWSTR, int, int, int)
Definition: winuser.h:2908
BOOL(CALLBACK * MONITORENUMPROC)(HMONITOR, HDC, LPRECT, LPARAM)
Definition: winuser.h:2912
NAMEENUMPROCW WINSTAENUMPROCW
Definition: winuser.h:2918
LRESULT(CALLBACK * WNDPROC)(HWND, UINT, WPARAM, LPARAM)
Definition: winuser.h:2909
NAMEENUMPROCA DESKTOPENUMPROCA
Definition: winuser.h:2915
VOID(CALLBACK * TIMERPROC)(HWND, UINT, UINT_PTR, DWORD)
Definition: winuser.h:2900
void(CALLBACK * MSGBOXCALLBACK)(LPHELPINFO)
Definition: winuser.h:3323
BOOL(CALLBACK * DRAWSTATEPROC)(HDC, LPARAM, WPARAM, int, int)
Definition: winuser.h:2910
BOOL(CALLBACK * WNDENUMPROC)(HWND, LPARAM)
Definition: winuser.h:2911
HDEVNOTIFY * PHDEVNOTIFY
Definition: winuser.h:2923