[USER32_WINETEST] Add a PCH.
[reactos.git] / modules / rostests / winetests / user32 / generated.c
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 #include "precomp.h"
9
10 /***********************************************************************
11 * Compatibility macros
12 */
13
14 #define DWORD_PTR UINT_PTR
15 #define LONG_PTR INT_PTR
16 #define ULONG_PTR UINT_PTR
17
18 /***********************************************************************
19 * Windows API extension
20 */
21
22 #if defined(_MSC_VER) && (_MSC_VER >= 1300) && defined(__cplusplus)
23 # define _TYPE_ALIGNMENT(type) __alignof(type)
24 #elif defined(__GNUC__)
25 # define _TYPE_ALIGNMENT(type) __alignof__(type)
26 #else
27 /*
28 * FIXME: May not be possible without a compiler extension
29 * (if type is not just a name that is, otherwise the normal
30 * TYPE_ALIGNMENT can be used)
31 */
32 #endif
33
34 #if defined(TYPE_ALIGNMENT) && defined(_MSC_VER) && _MSC_VER >= 800 && !defined(__cplusplus)
35 #pragma warning(disable:4116)
36 #endif
37
38 #if !defined(TYPE_ALIGNMENT) && defined(_TYPE_ALIGNMENT)
39 # define TYPE_ALIGNMENT _TYPE_ALIGNMENT
40 #endif
41
42 /***********************************************************************
43 * Test helper macros
44 */
45
46 #define TEST_TYPE_SIZE(type, size) C_ASSERT(sizeof(type) == size);
47
48 #ifdef TYPE_ALIGNMENT
49 # define TEST_TYPE_ALIGN(type, align) C_ASSERT(TYPE_ALIGNMENT(type) == align);
50 #else
51 # define TEST_TYPE_ALIGN(type, align)
52 #endif
53
54 #ifdef _TYPE_ALIGNMENT
55 # define TEST_TARGET_ALIGN(type, align) C_ASSERT(_TYPE_ALIGNMENT(*(type)0) == align);
56 # define TEST_FIELD_ALIGN(type, field, align) C_ASSERT(_TYPE_ALIGNMENT(((type*)0)->field) == align);
57 #else
58 # define TEST_TARGET_ALIGN(type, align)
59 # define TEST_FIELD_ALIGN(type, field, align)
60 #endif
61
62 #define TEST_FIELD_OFFSET(type, field, offset) C_ASSERT(FIELD_OFFSET(type, field) == offset);
63
64 #define TEST_TARGET_SIZE(type, size) TEST_TYPE_SIZE(*(type)0, size)
65 #define TEST_FIELD_SIZE(type, field, size) TEST_TYPE_SIZE((((type*)0)->field), size)
66 #define TEST_TYPE_SIGNED(type) C_ASSERT((type) -1 < 0);
67 #define TEST_TYPE_UNSIGNED(type) C_ASSERT((type) -1 > 0);
68
69
70 #ifdef _WIN64
71
72 static void test_pack_ACCESSTIMEOUT(void)
73 {
74 /* ACCESSTIMEOUT */
75 TEST_TYPE_SIZE (ACCESSTIMEOUT, 12)
76 TEST_TYPE_ALIGN (ACCESSTIMEOUT, 4)
77 TEST_FIELD_SIZE (ACCESSTIMEOUT, cbSize, 4)
78 TEST_FIELD_ALIGN (ACCESSTIMEOUT, cbSize, 4)
79 TEST_FIELD_OFFSET(ACCESSTIMEOUT, cbSize, 0)
80 TEST_FIELD_SIZE (ACCESSTIMEOUT, dwFlags, 4)
81 TEST_FIELD_ALIGN (ACCESSTIMEOUT, dwFlags, 4)
82 TEST_FIELD_OFFSET(ACCESSTIMEOUT, dwFlags, 4)
83 TEST_FIELD_SIZE (ACCESSTIMEOUT, iTimeOutMSec, 4)
84 TEST_FIELD_ALIGN (ACCESSTIMEOUT, iTimeOutMSec, 4)
85 TEST_FIELD_OFFSET(ACCESSTIMEOUT, iTimeOutMSec, 8)
86 }
87
88 static void test_pack_ANIMATIONINFO(void)
89 {
90 /* ANIMATIONINFO */
91 TEST_TYPE_SIZE (ANIMATIONINFO, 8)
92 TEST_TYPE_ALIGN (ANIMATIONINFO, 4)
93 TEST_FIELD_SIZE (ANIMATIONINFO, cbSize, 4)
94 TEST_FIELD_ALIGN (ANIMATIONINFO, cbSize, 4)
95 TEST_FIELD_OFFSET(ANIMATIONINFO, cbSize, 0)
96 TEST_FIELD_SIZE (ANIMATIONINFO, iMinAnimate, 4)
97 TEST_FIELD_ALIGN (ANIMATIONINFO, iMinAnimate, 4)
98 TEST_FIELD_OFFSET(ANIMATIONINFO, iMinAnimate, 4)
99 }
100
101 static void test_pack_CBTACTIVATESTRUCT(void)
102 {
103 /* CBTACTIVATESTRUCT */
104 TEST_TYPE_SIZE (CBTACTIVATESTRUCT, 16)
105 TEST_TYPE_ALIGN (CBTACTIVATESTRUCT, 8)
106 TEST_FIELD_SIZE (CBTACTIVATESTRUCT, fMouse, 4)
107 TEST_FIELD_ALIGN (CBTACTIVATESTRUCT, fMouse, 4)
108 TEST_FIELD_OFFSET(CBTACTIVATESTRUCT, fMouse, 0)
109 TEST_FIELD_SIZE (CBTACTIVATESTRUCT, hWndActive, 8)
110 TEST_FIELD_ALIGN (CBTACTIVATESTRUCT, hWndActive, 8)
111 TEST_FIELD_OFFSET(CBTACTIVATESTRUCT, hWndActive, 8)
112 }
113
114 static void test_pack_CBT_CREATEWNDA(void)
115 {
116 /* CBT_CREATEWNDA */
117 TEST_TYPE_SIZE (CBT_CREATEWNDA, 16)
118 TEST_TYPE_ALIGN (CBT_CREATEWNDA, 8)
119 TEST_FIELD_SIZE (CBT_CREATEWNDA, lpcs, 8)
120 TEST_FIELD_ALIGN (CBT_CREATEWNDA, lpcs, 8)
121 TEST_FIELD_OFFSET(CBT_CREATEWNDA, lpcs, 0)
122 TEST_FIELD_SIZE (CBT_CREATEWNDA, hwndInsertAfter, 8)
123 TEST_FIELD_ALIGN (CBT_CREATEWNDA, hwndInsertAfter, 8)
124 TEST_FIELD_OFFSET(CBT_CREATEWNDA, hwndInsertAfter, 8)
125 }
126
127 static void test_pack_CBT_CREATEWNDW(void)
128 {
129 /* CBT_CREATEWNDW */
130 TEST_TYPE_SIZE (CBT_CREATEWNDW, 16)
131 TEST_TYPE_ALIGN (CBT_CREATEWNDW, 8)
132 TEST_FIELD_SIZE (CBT_CREATEWNDW, lpcs, 8)
133 TEST_FIELD_ALIGN (CBT_CREATEWNDW, lpcs, 8)
134 TEST_FIELD_OFFSET(CBT_CREATEWNDW, lpcs, 0)
135 TEST_FIELD_SIZE (CBT_CREATEWNDW, hwndInsertAfter, 8)
136 TEST_FIELD_ALIGN (CBT_CREATEWNDW, hwndInsertAfter, 8)
137 TEST_FIELD_OFFSET(CBT_CREATEWNDW, hwndInsertAfter, 8)
138 }
139
140 static void test_pack_CLIENTCREATESTRUCT(void)
141 {
142 /* CLIENTCREATESTRUCT */
143 TEST_TYPE_SIZE (CLIENTCREATESTRUCT, 16)
144 TEST_TYPE_ALIGN (CLIENTCREATESTRUCT, 8)
145 TEST_FIELD_SIZE (CLIENTCREATESTRUCT, hWindowMenu, 8)
146 TEST_FIELD_ALIGN (CLIENTCREATESTRUCT, hWindowMenu, 8)
147 TEST_FIELD_OFFSET(CLIENTCREATESTRUCT, hWindowMenu, 0)
148 TEST_FIELD_SIZE (CLIENTCREATESTRUCT, idFirstChild, 4)
149 TEST_FIELD_ALIGN (CLIENTCREATESTRUCT, idFirstChild, 4)
150 TEST_FIELD_OFFSET(CLIENTCREATESTRUCT, idFirstChild, 8)
151 }
152
153 static void test_pack_COMBOBOXINFO(void)
154 {
155 /* COMBOBOXINFO */
156 TEST_TYPE_SIZE (COMBOBOXINFO, 64)
157 TEST_TYPE_ALIGN (COMBOBOXINFO, 8)
158 TEST_FIELD_SIZE (COMBOBOXINFO, cbSize, 4)
159 TEST_FIELD_ALIGN (COMBOBOXINFO, cbSize, 4)
160 TEST_FIELD_OFFSET(COMBOBOXINFO, cbSize, 0)
161 TEST_FIELD_SIZE (COMBOBOXINFO, rcItem, 16)
162 TEST_FIELD_ALIGN (COMBOBOXINFO, rcItem, 4)
163 TEST_FIELD_OFFSET(COMBOBOXINFO, rcItem, 4)
164 TEST_FIELD_SIZE (COMBOBOXINFO, rcButton, 16)
165 TEST_FIELD_ALIGN (COMBOBOXINFO, rcButton, 4)
166 TEST_FIELD_OFFSET(COMBOBOXINFO, rcButton, 20)
167 TEST_FIELD_SIZE (COMBOBOXINFO, stateButton, 4)
168 TEST_FIELD_ALIGN (COMBOBOXINFO, stateButton, 4)
169 TEST_FIELD_OFFSET(COMBOBOXINFO, stateButton, 36)
170 TEST_FIELD_SIZE (COMBOBOXINFO, hwndCombo, 8)
171 TEST_FIELD_ALIGN (COMBOBOXINFO, hwndCombo, 8)
172 TEST_FIELD_OFFSET(COMBOBOXINFO, hwndCombo, 40)
173 TEST_FIELD_SIZE (COMBOBOXINFO, hwndItem, 8)
174 TEST_FIELD_ALIGN (COMBOBOXINFO, hwndItem, 8)
175 TEST_FIELD_OFFSET(COMBOBOXINFO, hwndItem, 48)
176 TEST_FIELD_SIZE (COMBOBOXINFO, hwndList, 8)
177 TEST_FIELD_ALIGN (COMBOBOXINFO, hwndList, 8)
178 TEST_FIELD_OFFSET(COMBOBOXINFO, hwndList, 56)
179 }
180
181 static void test_pack_COMPAREITEMSTRUCT(void)
182 {
183 /* COMPAREITEMSTRUCT */
184 TEST_TYPE_SIZE (COMPAREITEMSTRUCT, 56)
185 TEST_TYPE_ALIGN (COMPAREITEMSTRUCT, 8)
186 TEST_FIELD_SIZE (COMPAREITEMSTRUCT, CtlType, 4)
187 TEST_FIELD_ALIGN (COMPAREITEMSTRUCT, CtlType, 4)
188 TEST_FIELD_OFFSET(COMPAREITEMSTRUCT, CtlType, 0)
189 TEST_FIELD_SIZE (COMPAREITEMSTRUCT, CtlID, 4)
190 TEST_FIELD_ALIGN (COMPAREITEMSTRUCT, CtlID, 4)
191 TEST_FIELD_OFFSET(COMPAREITEMSTRUCT, CtlID, 4)
192 TEST_FIELD_SIZE (COMPAREITEMSTRUCT, hwndItem, 8)
193 TEST_FIELD_ALIGN (COMPAREITEMSTRUCT, hwndItem, 8)
194 TEST_FIELD_OFFSET(COMPAREITEMSTRUCT, hwndItem, 8)
195 TEST_FIELD_SIZE (COMPAREITEMSTRUCT, itemID1, 4)
196 TEST_FIELD_ALIGN (COMPAREITEMSTRUCT, itemID1, 4)
197 TEST_FIELD_OFFSET(COMPAREITEMSTRUCT, itemID1, 16)
198 TEST_FIELD_SIZE (COMPAREITEMSTRUCT, itemData1, 8)
199 TEST_FIELD_ALIGN (COMPAREITEMSTRUCT, itemData1, 8)
200 TEST_FIELD_OFFSET(COMPAREITEMSTRUCT, itemData1, 24)
201 TEST_FIELD_SIZE (COMPAREITEMSTRUCT, itemID2, 4)
202 TEST_FIELD_ALIGN (COMPAREITEMSTRUCT, itemID2, 4)
203 TEST_FIELD_OFFSET(COMPAREITEMSTRUCT, itemID2, 32)
204 TEST_FIELD_SIZE (COMPAREITEMSTRUCT, itemData2, 8)
205 TEST_FIELD_ALIGN (COMPAREITEMSTRUCT, itemData2, 8)
206 TEST_FIELD_OFFSET(COMPAREITEMSTRUCT, itemData2, 40)
207 TEST_FIELD_SIZE (COMPAREITEMSTRUCT, dwLocaleId, 4)
208 TEST_FIELD_ALIGN (COMPAREITEMSTRUCT, dwLocaleId, 4)
209 TEST_FIELD_OFFSET(COMPAREITEMSTRUCT, dwLocaleId, 48)
210 }
211
212 static void test_pack_COPYDATASTRUCT(void)
213 {
214 /* COPYDATASTRUCT */
215 TEST_TYPE_SIZE (COPYDATASTRUCT, 24)
216 TEST_TYPE_ALIGN (COPYDATASTRUCT, 8)
217 TEST_FIELD_SIZE (COPYDATASTRUCT, dwData, 8)
218 TEST_FIELD_ALIGN (COPYDATASTRUCT, dwData, 8)
219 TEST_FIELD_OFFSET(COPYDATASTRUCT, dwData, 0)
220 TEST_FIELD_SIZE (COPYDATASTRUCT, cbData, 4)
221 TEST_FIELD_ALIGN (COPYDATASTRUCT, cbData, 4)
222 TEST_FIELD_OFFSET(COPYDATASTRUCT, cbData, 8)
223 TEST_FIELD_SIZE (COPYDATASTRUCT, lpData, 8)
224 TEST_FIELD_ALIGN (COPYDATASTRUCT, lpData, 8)
225 TEST_FIELD_OFFSET(COPYDATASTRUCT, lpData, 16)
226 }
227
228 static void test_pack_CREATESTRUCTA(void)
229 {
230 /* CREATESTRUCTA */
231 TEST_TYPE_SIZE (CREATESTRUCTA, 80)
232 TEST_TYPE_ALIGN (CREATESTRUCTA, 8)
233 TEST_FIELD_SIZE (CREATESTRUCTA, lpCreateParams, 8)
234 TEST_FIELD_ALIGN (CREATESTRUCTA, lpCreateParams, 8)
235 TEST_FIELD_OFFSET(CREATESTRUCTA, lpCreateParams, 0)
236 TEST_FIELD_SIZE (CREATESTRUCTA, hInstance, 8)
237 TEST_FIELD_ALIGN (CREATESTRUCTA, hInstance, 8)
238 TEST_FIELD_OFFSET(CREATESTRUCTA, hInstance, 8)
239 TEST_FIELD_SIZE (CREATESTRUCTA, hMenu, 8)
240 TEST_FIELD_ALIGN (CREATESTRUCTA, hMenu, 8)
241 TEST_FIELD_OFFSET(CREATESTRUCTA, hMenu, 16)
242 TEST_FIELD_SIZE (CREATESTRUCTA, hwndParent, 8)
243 TEST_FIELD_ALIGN (CREATESTRUCTA, hwndParent, 8)
244 TEST_FIELD_OFFSET(CREATESTRUCTA, hwndParent, 24)
245 TEST_FIELD_SIZE (CREATESTRUCTA, cy, 4)
246 TEST_FIELD_ALIGN (CREATESTRUCTA, cy, 4)
247 TEST_FIELD_OFFSET(CREATESTRUCTA, cy, 32)
248 TEST_FIELD_SIZE (CREATESTRUCTA, cx, 4)
249 TEST_FIELD_ALIGN (CREATESTRUCTA, cx, 4)
250 TEST_FIELD_OFFSET(CREATESTRUCTA, cx, 36)
251 TEST_FIELD_SIZE (CREATESTRUCTA, y, 4)
252 TEST_FIELD_ALIGN (CREATESTRUCTA, y, 4)
253 TEST_FIELD_OFFSET(CREATESTRUCTA, y, 40)
254 TEST_FIELD_SIZE (CREATESTRUCTA, x, 4)
255 TEST_FIELD_ALIGN (CREATESTRUCTA, x, 4)
256 TEST_FIELD_OFFSET(CREATESTRUCTA, x, 44)
257 TEST_FIELD_SIZE (CREATESTRUCTA, style, 4)
258 TEST_FIELD_ALIGN (CREATESTRUCTA, style, 4)
259 TEST_FIELD_OFFSET(CREATESTRUCTA, style, 48)
260 TEST_FIELD_SIZE (CREATESTRUCTA, lpszName, 8)
261 TEST_FIELD_ALIGN (CREATESTRUCTA, lpszName, 8)
262 TEST_FIELD_OFFSET(CREATESTRUCTA, lpszName, 56)
263 TEST_FIELD_SIZE (CREATESTRUCTA, lpszClass, 8)
264 TEST_FIELD_ALIGN (CREATESTRUCTA, lpszClass, 8)
265 TEST_FIELD_OFFSET(CREATESTRUCTA, lpszClass, 64)
266 TEST_FIELD_SIZE (CREATESTRUCTA, dwExStyle, 4)
267 TEST_FIELD_ALIGN (CREATESTRUCTA, dwExStyle, 4)
268 TEST_FIELD_OFFSET(CREATESTRUCTA, dwExStyle, 72)
269 }
270
271 static void test_pack_CREATESTRUCTW(void)
272 {
273 /* CREATESTRUCTW */
274 TEST_TYPE_SIZE (CREATESTRUCTW, 80)
275 TEST_TYPE_ALIGN (CREATESTRUCTW, 8)
276 TEST_FIELD_SIZE (CREATESTRUCTW, lpCreateParams, 8)
277 TEST_FIELD_ALIGN (CREATESTRUCTW, lpCreateParams, 8)
278 TEST_FIELD_OFFSET(CREATESTRUCTW, lpCreateParams, 0)
279 TEST_FIELD_SIZE (CREATESTRUCTW, hInstance, 8)
280 TEST_FIELD_ALIGN (CREATESTRUCTW, hInstance, 8)
281 TEST_FIELD_OFFSET(CREATESTRUCTW, hInstance, 8)
282 TEST_FIELD_SIZE (CREATESTRUCTW, hMenu, 8)
283 TEST_FIELD_ALIGN (CREATESTRUCTW, hMenu, 8)
284 TEST_FIELD_OFFSET(CREATESTRUCTW, hMenu, 16)
285 TEST_FIELD_SIZE (CREATESTRUCTW, hwndParent, 8)
286 TEST_FIELD_ALIGN (CREATESTRUCTW, hwndParent, 8)
287 TEST_FIELD_OFFSET(CREATESTRUCTW, hwndParent, 24)
288 TEST_FIELD_SIZE (CREATESTRUCTW, cy, 4)
289 TEST_FIELD_ALIGN (CREATESTRUCTW, cy, 4)
290 TEST_FIELD_OFFSET(CREATESTRUCTW, cy, 32)
291 TEST_FIELD_SIZE (CREATESTRUCTW, cx, 4)
292 TEST_FIELD_ALIGN (CREATESTRUCTW, cx, 4)
293 TEST_FIELD_OFFSET(CREATESTRUCTW, cx, 36)
294 TEST_FIELD_SIZE (CREATESTRUCTW, y, 4)
295 TEST_FIELD_ALIGN (CREATESTRUCTW, y, 4)
296 TEST_FIELD_OFFSET(CREATESTRUCTW, y, 40)
297 TEST_FIELD_SIZE (CREATESTRUCTW, x, 4)
298 TEST_FIELD_ALIGN (CREATESTRUCTW, x, 4)
299 TEST_FIELD_OFFSET(CREATESTRUCTW, x, 44)
300 TEST_FIELD_SIZE (CREATESTRUCTW, style, 4)
301 TEST_FIELD_ALIGN (CREATESTRUCTW, style, 4)
302 TEST_FIELD_OFFSET(CREATESTRUCTW, style, 48)
303 TEST_FIELD_SIZE (CREATESTRUCTW, lpszName, 8)
304 TEST_FIELD_ALIGN (CREATESTRUCTW, lpszName, 8)
305 TEST_FIELD_OFFSET(CREATESTRUCTW, lpszName, 56)
306 TEST_FIELD_SIZE (CREATESTRUCTW, lpszClass, 8)
307 TEST_FIELD_ALIGN (CREATESTRUCTW, lpszClass, 8)
308 TEST_FIELD_OFFSET(CREATESTRUCTW, lpszClass, 64)
309 TEST_FIELD_SIZE (CREATESTRUCTW, dwExStyle, 4)
310 TEST_FIELD_ALIGN (CREATESTRUCTW, dwExStyle, 4)
311 TEST_FIELD_OFFSET(CREATESTRUCTW, dwExStyle, 72)
312 }
313
314 static void test_pack_CURSORINFO(void)
315 {
316 /* CURSORINFO */
317 TEST_TYPE_SIZE (CURSORINFO, 24)
318 TEST_TYPE_ALIGN (CURSORINFO, 8)
319 TEST_FIELD_SIZE (CURSORINFO, cbSize, 4)
320 TEST_FIELD_ALIGN (CURSORINFO, cbSize, 4)
321 TEST_FIELD_OFFSET(CURSORINFO, cbSize, 0)
322 TEST_FIELD_SIZE (CURSORINFO, flags, 4)
323 TEST_FIELD_ALIGN (CURSORINFO, flags, 4)
324 TEST_FIELD_OFFSET(CURSORINFO, flags, 4)
325 TEST_FIELD_SIZE (CURSORINFO, hCursor, 8)
326 TEST_FIELD_ALIGN (CURSORINFO, hCursor, 8)
327 TEST_FIELD_OFFSET(CURSORINFO, hCursor, 8)
328 TEST_FIELD_SIZE (CURSORINFO, ptScreenPos, 8)
329 TEST_FIELD_ALIGN (CURSORINFO, ptScreenPos, 4)
330 TEST_FIELD_OFFSET(CURSORINFO, ptScreenPos, 16)
331 }
332
333 static void test_pack_CWPRETSTRUCT(void)
334 {
335 /* CWPRETSTRUCT */
336 TEST_TYPE_SIZE (CWPRETSTRUCT, 40)
337 TEST_TYPE_ALIGN (CWPRETSTRUCT, 8)
338 TEST_FIELD_SIZE (CWPRETSTRUCT, lResult, 8)
339 TEST_FIELD_ALIGN (CWPRETSTRUCT, lResult, 8)
340 TEST_FIELD_OFFSET(CWPRETSTRUCT, lResult, 0)
341 TEST_FIELD_SIZE (CWPRETSTRUCT, lParam, 8)
342 TEST_FIELD_ALIGN (CWPRETSTRUCT, lParam, 8)
343 TEST_FIELD_OFFSET(CWPRETSTRUCT, lParam, 8)
344 TEST_FIELD_SIZE (CWPRETSTRUCT, wParam, 8)
345 TEST_FIELD_ALIGN (CWPRETSTRUCT, wParam, 8)
346 TEST_FIELD_OFFSET(CWPRETSTRUCT, wParam, 16)
347 TEST_FIELD_SIZE (CWPRETSTRUCT, message, 4)
348 TEST_FIELD_ALIGN (CWPRETSTRUCT, message, 4)
349 TEST_FIELD_OFFSET(CWPRETSTRUCT, message, 24)
350 TEST_FIELD_SIZE (CWPRETSTRUCT, hwnd, 8)
351 TEST_FIELD_ALIGN (CWPRETSTRUCT, hwnd, 8)
352 TEST_FIELD_OFFSET(CWPRETSTRUCT, hwnd, 32)
353 }
354
355 static void test_pack_CWPSTRUCT(void)
356 {
357 /* CWPSTRUCT */
358 TEST_TYPE_SIZE (CWPSTRUCT, 32)
359 TEST_TYPE_ALIGN (CWPSTRUCT, 8)
360 TEST_FIELD_SIZE (CWPSTRUCT, lParam, 8)
361 TEST_FIELD_ALIGN (CWPSTRUCT, lParam, 8)
362 TEST_FIELD_OFFSET(CWPSTRUCT, lParam, 0)
363 TEST_FIELD_SIZE (CWPSTRUCT, wParam, 8)
364 TEST_FIELD_ALIGN (CWPSTRUCT, wParam, 8)
365 TEST_FIELD_OFFSET(CWPSTRUCT, wParam, 8)
366 TEST_FIELD_SIZE (CWPSTRUCT, message, 4)
367 TEST_FIELD_ALIGN (CWPSTRUCT, message, 4)
368 TEST_FIELD_OFFSET(CWPSTRUCT, message, 16)
369 TEST_FIELD_SIZE (CWPSTRUCT, hwnd, 8)
370 TEST_FIELD_ALIGN (CWPSTRUCT, hwnd, 8)
371 TEST_FIELD_OFFSET(CWPSTRUCT, hwnd, 24)
372 }
373
374 static void test_pack_DEBUGHOOKINFO(void)
375 {
376 /* DEBUGHOOKINFO */
377 TEST_TYPE_SIZE (DEBUGHOOKINFO, 32)
378 TEST_TYPE_ALIGN (DEBUGHOOKINFO, 8)
379 TEST_FIELD_SIZE (DEBUGHOOKINFO, idThread, 4)
380 TEST_FIELD_ALIGN (DEBUGHOOKINFO, idThread, 4)
381 TEST_FIELD_OFFSET(DEBUGHOOKINFO, idThread, 0)
382 TEST_FIELD_SIZE (DEBUGHOOKINFO, idThreadInstaller, 4)
383 TEST_FIELD_ALIGN (DEBUGHOOKINFO, idThreadInstaller, 4)
384 TEST_FIELD_OFFSET(DEBUGHOOKINFO, idThreadInstaller, 4)
385 TEST_FIELD_SIZE (DEBUGHOOKINFO, lParam, 8)
386 TEST_FIELD_ALIGN (DEBUGHOOKINFO, lParam, 8)
387 TEST_FIELD_OFFSET(DEBUGHOOKINFO, lParam, 8)
388 TEST_FIELD_SIZE (DEBUGHOOKINFO, wParam, 8)
389 TEST_FIELD_ALIGN (DEBUGHOOKINFO, wParam, 8)
390 TEST_FIELD_OFFSET(DEBUGHOOKINFO, wParam, 16)
391 TEST_FIELD_SIZE (DEBUGHOOKINFO, code, 4)
392 TEST_FIELD_ALIGN (DEBUGHOOKINFO, code, 4)
393 TEST_FIELD_OFFSET(DEBUGHOOKINFO, code, 24)
394 }
395
396 static void test_pack_DELETEITEMSTRUCT(void)
397 {
398 /* DELETEITEMSTRUCT */
399 TEST_TYPE_SIZE (DELETEITEMSTRUCT, 32)
400 TEST_TYPE_ALIGN (DELETEITEMSTRUCT, 8)
401 TEST_FIELD_SIZE (DELETEITEMSTRUCT, CtlType, 4)
402 TEST_FIELD_ALIGN (DELETEITEMSTRUCT, CtlType, 4)
403 TEST_FIELD_OFFSET(DELETEITEMSTRUCT, CtlType, 0)
404 TEST_FIELD_SIZE (DELETEITEMSTRUCT, CtlID, 4)
405 TEST_FIELD_ALIGN (DELETEITEMSTRUCT, CtlID, 4)
406 TEST_FIELD_OFFSET(DELETEITEMSTRUCT, CtlID, 4)
407 TEST_FIELD_SIZE (DELETEITEMSTRUCT, itemID, 4)
408 TEST_FIELD_ALIGN (DELETEITEMSTRUCT, itemID, 4)
409 TEST_FIELD_OFFSET(DELETEITEMSTRUCT, itemID, 8)
410 TEST_FIELD_SIZE (DELETEITEMSTRUCT, hwndItem, 8)
411 TEST_FIELD_ALIGN (DELETEITEMSTRUCT, hwndItem, 8)
412 TEST_FIELD_OFFSET(DELETEITEMSTRUCT, hwndItem, 16)
413 TEST_FIELD_SIZE (DELETEITEMSTRUCT, itemData, 8)
414 TEST_FIELD_ALIGN (DELETEITEMSTRUCT, itemData, 8)
415 TEST_FIELD_OFFSET(DELETEITEMSTRUCT, itemData, 24)
416 }
417
418 static void test_pack_DESKTOPENUMPROCA(void)
419 {
420 /* DESKTOPENUMPROCA */
421 TEST_TYPE_SIZE (DESKTOPENUMPROCA, 8)
422 TEST_TYPE_ALIGN (DESKTOPENUMPROCA, 8)
423 }
424
425 static void test_pack_DESKTOPENUMPROCW(void)
426 {
427 /* DESKTOPENUMPROCW */
428 TEST_TYPE_SIZE (DESKTOPENUMPROCW, 8)
429 TEST_TYPE_ALIGN (DESKTOPENUMPROCW, 8)
430 }
431
432 static void test_pack_DLGITEMTEMPLATE(void)
433 {
434 /* DLGITEMTEMPLATE (pack 2) */
435 TEST_TYPE_SIZE (DLGITEMTEMPLATE, 18)
436 TEST_TYPE_ALIGN (DLGITEMTEMPLATE, 2)
437 TEST_FIELD_SIZE (DLGITEMTEMPLATE, style, 4)
438 TEST_FIELD_ALIGN (DLGITEMTEMPLATE, style, 2)
439 TEST_FIELD_OFFSET(DLGITEMTEMPLATE, style, 0)
440 TEST_FIELD_SIZE (DLGITEMTEMPLATE, dwExtendedStyle, 4)
441 TEST_FIELD_ALIGN (DLGITEMTEMPLATE, dwExtendedStyle, 2)
442 TEST_FIELD_OFFSET(DLGITEMTEMPLATE, dwExtendedStyle, 4)
443 TEST_FIELD_SIZE (DLGITEMTEMPLATE, x, 2)
444 TEST_FIELD_ALIGN (DLGITEMTEMPLATE, x, 2)
445 TEST_FIELD_OFFSET(DLGITEMTEMPLATE, x, 8)
446 TEST_FIELD_SIZE (DLGITEMTEMPLATE, y, 2)
447 TEST_FIELD_ALIGN (DLGITEMTEMPLATE, y, 2)
448 TEST_FIELD_OFFSET(DLGITEMTEMPLATE, y, 10)
449 TEST_FIELD_SIZE (DLGITEMTEMPLATE, cx, 2)
450 TEST_FIELD_ALIGN (DLGITEMTEMPLATE, cx, 2)
451 TEST_FIELD_OFFSET(DLGITEMTEMPLATE, cx, 12)
452 TEST_FIELD_SIZE (DLGITEMTEMPLATE, cy, 2)
453 TEST_FIELD_ALIGN (DLGITEMTEMPLATE, cy, 2)
454 TEST_FIELD_OFFSET(DLGITEMTEMPLATE, cy, 14)
455 TEST_FIELD_SIZE (DLGITEMTEMPLATE, id, 2)
456 TEST_FIELD_ALIGN (DLGITEMTEMPLATE, id, 2)
457 TEST_FIELD_OFFSET(DLGITEMTEMPLATE, id, 16)
458 }
459
460 static void test_pack_DLGPROC(void)
461 {
462 /* DLGPROC */
463 TEST_TYPE_SIZE (DLGPROC, 8)
464 TEST_TYPE_ALIGN (DLGPROC, 8)
465 }
466
467 static void test_pack_DLGTEMPLATE(void)
468 {
469 /* DLGTEMPLATE (pack 2) */
470 TEST_TYPE_SIZE (DLGTEMPLATE, 18)
471 TEST_TYPE_ALIGN (DLGTEMPLATE, 2)
472 TEST_FIELD_SIZE (DLGTEMPLATE, style, 4)
473 TEST_FIELD_ALIGN (DLGTEMPLATE, style, 2)
474 TEST_FIELD_OFFSET(DLGTEMPLATE, style, 0)
475 TEST_FIELD_SIZE (DLGTEMPLATE, dwExtendedStyle, 4)
476 TEST_FIELD_ALIGN (DLGTEMPLATE, dwExtendedStyle, 2)
477 TEST_FIELD_OFFSET(DLGTEMPLATE, dwExtendedStyle, 4)
478 TEST_FIELD_SIZE (DLGTEMPLATE, cdit, 2)
479 TEST_FIELD_ALIGN (DLGTEMPLATE, cdit, 2)
480 TEST_FIELD_OFFSET(DLGTEMPLATE, cdit, 8)
481 TEST_FIELD_SIZE (DLGTEMPLATE, x, 2)
482 TEST_FIELD_ALIGN (DLGTEMPLATE, x, 2)
483 TEST_FIELD_OFFSET(DLGTEMPLATE, x, 10)
484 TEST_FIELD_SIZE (DLGTEMPLATE, y, 2)
485 TEST_FIELD_ALIGN (DLGTEMPLATE, y, 2)
486 TEST_FIELD_OFFSET(DLGTEMPLATE, y, 12)
487 TEST_FIELD_SIZE (DLGTEMPLATE, cx, 2)
488 TEST_FIELD_ALIGN (DLGTEMPLATE, cx, 2)
489 TEST_FIELD_OFFSET(DLGTEMPLATE, cx, 14)
490 TEST_FIELD_SIZE (DLGTEMPLATE, cy, 2)
491 TEST_FIELD_ALIGN (DLGTEMPLATE, cy, 2)
492 TEST_FIELD_OFFSET(DLGTEMPLATE, cy, 16)
493 }
494
495 static void test_pack_DRAWITEMSTRUCT(void)
496 {
497 /* DRAWITEMSTRUCT */
498 TEST_TYPE_SIZE (DRAWITEMSTRUCT, 64)
499 TEST_TYPE_ALIGN (DRAWITEMSTRUCT, 8)
500 TEST_FIELD_SIZE (DRAWITEMSTRUCT, CtlType, 4)
501 TEST_FIELD_ALIGN (DRAWITEMSTRUCT, CtlType, 4)
502 TEST_FIELD_OFFSET(DRAWITEMSTRUCT, CtlType, 0)
503 TEST_FIELD_SIZE (DRAWITEMSTRUCT, CtlID, 4)
504 TEST_FIELD_ALIGN (DRAWITEMSTRUCT, CtlID, 4)
505 TEST_FIELD_OFFSET(DRAWITEMSTRUCT, CtlID, 4)
506 TEST_FIELD_SIZE (DRAWITEMSTRUCT, itemID, 4)
507 TEST_FIELD_ALIGN (DRAWITEMSTRUCT, itemID, 4)
508 TEST_FIELD_OFFSET(DRAWITEMSTRUCT, itemID, 8)
509 TEST_FIELD_SIZE (DRAWITEMSTRUCT, itemAction, 4)
510 TEST_FIELD_ALIGN (DRAWITEMSTRUCT, itemAction, 4)
511 TEST_FIELD_OFFSET(DRAWITEMSTRUCT, itemAction, 12)
512 TEST_FIELD_SIZE (DRAWITEMSTRUCT, itemState, 4)
513 TEST_FIELD_ALIGN (DRAWITEMSTRUCT, itemState, 4)
514 TEST_FIELD_OFFSET(DRAWITEMSTRUCT, itemState, 16)
515 TEST_FIELD_SIZE (DRAWITEMSTRUCT, hwndItem, 8)
516 TEST_FIELD_ALIGN (DRAWITEMSTRUCT, hwndItem, 8)
517 TEST_FIELD_OFFSET(DRAWITEMSTRUCT, hwndItem, 24)
518 TEST_FIELD_SIZE (DRAWITEMSTRUCT, hDC, 8)
519 TEST_FIELD_ALIGN (DRAWITEMSTRUCT, hDC, 8)
520 TEST_FIELD_OFFSET(DRAWITEMSTRUCT, hDC, 32)
521 TEST_FIELD_SIZE (DRAWITEMSTRUCT, rcItem, 16)
522 TEST_FIELD_ALIGN (DRAWITEMSTRUCT, rcItem, 4)
523 TEST_FIELD_OFFSET(DRAWITEMSTRUCT, rcItem, 40)
524 TEST_FIELD_SIZE (DRAWITEMSTRUCT, itemData, 8)
525 TEST_FIELD_ALIGN (DRAWITEMSTRUCT, itemData, 8)
526 TEST_FIELD_OFFSET(DRAWITEMSTRUCT, itemData, 56)
527 }
528
529 static void test_pack_DRAWSTATEPROC(void)
530 {
531 /* DRAWSTATEPROC */
532 TEST_TYPE_SIZE (DRAWSTATEPROC, 8)
533 TEST_TYPE_ALIGN (DRAWSTATEPROC, 8)
534 }
535
536 static void test_pack_DRAWTEXTPARAMS(void)
537 {
538 /* DRAWTEXTPARAMS */
539 TEST_TYPE_SIZE (DRAWTEXTPARAMS, 20)
540 TEST_TYPE_ALIGN (DRAWTEXTPARAMS, 4)
541 TEST_FIELD_SIZE (DRAWTEXTPARAMS, cbSize, 4)
542 TEST_FIELD_ALIGN (DRAWTEXTPARAMS, cbSize, 4)
543 TEST_FIELD_OFFSET(DRAWTEXTPARAMS, cbSize, 0)
544 TEST_FIELD_SIZE (DRAWTEXTPARAMS, iTabLength, 4)
545 TEST_FIELD_ALIGN (DRAWTEXTPARAMS, iTabLength, 4)
546 TEST_FIELD_OFFSET(DRAWTEXTPARAMS, iTabLength, 4)
547 TEST_FIELD_SIZE (DRAWTEXTPARAMS, iLeftMargin, 4)
548 TEST_FIELD_ALIGN (DRAWTEXTPARAMS, iLeftMargin, 4)
549 TEST_FIELD_OFFSET(DRAWTEXTPARAMS, iLeftMargin, 8)
550 TEST_FIELD_SIZE (DRAWTEXTPARAMS, iRightMargin, 4)
551 TEST_FIELD_ALIGN (DRAWTEXTPARAMS, iRightMargin, 4)
552 TEST_FIELD_OFFSET(DRAWTEXTPARAMS, iRightMargin, 12)
553 TEST_FIELD_SIZE (DRAWTEXTPARAMS, uiLengthDrawn, 4)
554 TEST_FIELD_ALIGN (DRAWTEXTPARAMS, uiLengthDrawn, 4)
555 TEST_FIELD_OFFSET(DRAWTEXTPARAMS, uiLengthDrawn, 16)
556 }
557
558 static void test_pack_EDITWORDBREAKPROCA(void)
559 {
560 /* EDITWORDBREAKPROCA */
561 TEST_TYPE_SIZE (EDITWORDBREAKPROCA, 8)
562 TEST_TYPE_ALIGN (EDITWORDBREAKPROCA, 8)
563 }
564
565 static void test_pack_EDITWORDBREAKPROCW(void)
566 {
567 /* EDITWORDBREAKPROCW */
568 TEST_TYPE_SIZE (EDITWORDBREAKPROCW, 8)
569 TEST_TYPE_ALIGN (EDITWORDBREAKPROCW, 8)
570 }
571
572 static void test_pack_EVENTMSG(void)
573 {
574 /* EVENTMSG */
575 TEST_TYPE_SIZE (EVENTMSG, 24)
576 TEST_TYPE_ALIGN (EVENTMSG, 8)
577 TEST_FIELD_SIZE (EVENTMSG, message, 4)
578 TEST_FIELD_ALIGN (EVENTMSG, message, 4)
579 TEST_FIELD_OFFSET(EVENTMSG, message, 0)
580 TEST_FIELD_SIZE (EVENTMSG, paramL, 4)
581 TEST_FIELD_ALIGN (EVENTMSG, paramL, 4)
582 TEST_FIELD_OFFSET(EVENTMSG, paramL, 4)
583 TEST_FIELD_SIZE (EVENTMSG, paramH, 4)
584 TEST_FIELD_ALIGN (EVENTMSG, paramH, 4)
585 TEST_FIELD_OFFSET(EVENTMSG, paramH, 8)
586 TEST_FIELD_SIZE (EVENTMSG, time, 4)
587 TEST_FIELD_ALIGN (EVENTMSG, time, 4)
588 TEST_FIELD_OFFSET(EVENTMSG, time, 12)
589 TEST_FIELD_SIZE (EVENTMSG, hwnd, 8)
590 TEST_FIELD_ALIGN (EVENTMSG, hwnd, 8)
591 TEST_FIELD_OFFSET(EVENTMSG, hwnd, 16)
592 }
593
594 static void test_pack_FILTERKEYS(void)
595 {
596 /* FILTERKEYS */
597 TEST_TYPE_SIZE (FILTERKEYS, 24)
598 TEST_TYPE_ALIGN (FILTERKEYS, 4)
599 TEST_FIELD_SIZE (FILTERKEYS, cbSize, 4)
600 TEST_FIELD_ALIGN (FILTERKEYS, cbSize, 4)
601 TEST_FIELD_OFFSET(FILTERKEYS, cbSize, 0)
602 TEST_FIELD_SIZE (FILTERKEYS, dwFlags, 4)
603 TEST_FIELD_ALIGN (FILTERKEYS, dwFlags, 4)
604 TEST_FIELD_OFFSET(FILTERKEYS, dwFlags, 4)
605 TEST_FIELD_SIZE (FILTERKEYS, iWaitMSec, 4)
606 TEST_FIELD_ALIGN (FILTERKEYS, iWaitMSec, 4)
607 TEST_FIELD_OFFSET(FILTERKEYS, iWaitMSec, 8)
608 TEST_FIELD_SIZE (FILTERKEYS, iDelayMSec, 4)
609 TEST_FIELD_ALIGN (FILTERKEYS, iDelayMSec, 4)
610 TEST_FIELD_OFFSET(FILTERKEYS, iDelayMSec, 12)
611 TEST_FIELD_SIZE (FILTERKEYS, iRepeatMSec, 4)
612 TEST_FIELD_ALIGN (FILTERKEYS, iRepeatMSec, 4)
613 TEST_FIELD_OFFSET(FILTERKEYS, iRepeatMSec, 16)
614 TEST_FIELD_SIZE (FILTERKEYS, iBounceMSec, 4)
615 TEST_FIELD_ALIGN (FILTERKEYS, iBounceMSec, 4)
616 TEST_FIELD_OFFSET(FILTERKEYS, iBounceMSec, 20)
617 }
618
619 static void test_pack_FLASHWINFO(void)
620 {
621 /* FLASHWINFO */
622 TEST_TYPE_SIZE (FLASHWINFO, 32)
623 TEST_TYPE_ALIGN (FLASHWINFO, 8)
624 TEST_FIELD_SIZE (FLASHWINFO, cbSize, 4)
625 TEST_FIELD_ALIGN (FLASHWINFO, cbSize, 4)
626 TEST_FIELD_OFFSET(FLASHWINFO, cbSize, 0)
627 TEST_FIELD_SIZE (FLASHWINFO, hwnd, 8)
628 TEST_FIELD_ALIGN (FLASHWINFO, hwnd, 8)
629 TEST_FIELD_OFFSET(FLASHWINFO, hwnd, 8)
630 TEST_FIELD_SIZE (FLASHWINFO, dwFlags, 4)
631 TEST_FIELD_ALIGN (FLASHWINFO, dwFlags, 4)
632 TEST_FIELD_OFFSET(FLASHWINFO, dwFlags, 16)
633 TEST_FIELD_SIZE (FLASHWINFO, uCount, 4)
634 TEST_FIELD_ALIGN (FLASHWINFO, uCount, 4)
635 TEST_FIELD_OFFSET(FLASHWINFO, uCount, 20)
636 TEST_FIELD_SIZE (FLASHWINFO, dwTimeout, 4)
637 TEST_FIELD_ALIGN (FLASHWINFO, dwTimeout, 4)
638 TEST_FIELD_OFFSET(FLASHWINFO, dwTimeout, 24)
639 }
640
641 static void test_pack_GRAYSTRINGPROC(void)
642 {
643 /* GRAYSTRINGPROC */
644 TEST_TYPE_SIZE (GRAYSTRINGPROC, 8)
645 TEST_TYPE_ALIGN (GRAYSTRINGPROC, 8)
646 }
647
648 static void test_pack_GUITHREADINFO(void)
649 {
650 /* GUITHREADINFO */
651 TEST_TYPE_SIZE (GUITHREADINFO, 72)
652 TEST_TYPE_ALIGN (GUITHREADINFO, 8)
653 TEST_FIELD_SIZE (GUITHREADINFO, cbSize, 4)
654 TEST_FIELD_ALIGN (GUITHREADINFO, cbSize, 4)
655 TEST_FIELD_OFFSET(GUITHREADINFO, cbSize, 0)
656 TEST_FIELD_SIZE (GUITHREADINFO, flags, 4)
657 TEST_FIELD_ALIGN (GUITHREADINFO, flags, 4)
658 TEST_FIELD_OFFSET(GUITHREADINFO, flags, 4)
659 TEST_FIELD_SIZE (GUITHREADINFO, hwndActive, 8)
660 TEST_FIELD_ALIGN (GUITHREADINFO, hwndActive, 8)
661 TEST_FIELD_OFFSET(GUITHREADINFO, hwndActive, 8)
662 TEST_FIELD_SIZE (GUITHREADINFO, hwndFocus, 8)
663 TEST_FIELD_ALIGN (GUITHREADINFO, hwndFocus, 8)
664 TEST_FIELD_OFFSET(GUITHREADINFO, hwndFocus, 16)
665 TEST_FIELD_SIZE (GUITHREADINFO, hwndCapture, 8)
666 TEST_FIELD_ALIGN (GUITHREADINFO, hwndCapture, 8)
667 TEST_FIELD_OFFSET(GUITHREADINFO, hwndCapture, 24)
668 TEST_FIELD_SIZE (GUITHREADINFO, hwndMenuOwner, 8)
669 TEST_FIELD_ALIGN (GUITHREADINFO, hwndMenuOwner, 8)
670 TEST_FIELD_OFFSET(GUITHREADINFO, hwndMenuOwner, 32)
671 TEST_FIELD_SIZE (GUITHREADINFO, hwndMoveSize, 8)
672 TEST_FIELD_ALIGN (GUITHREADINFO, hwndMoveSize, 8)
673 TEST_FIELD_OFFSET(GUITHREADINFO, hwndMoveSize, 40)
674 TEST_FIELD_SIZE (GUITHREADINFO, hwndCaret, 8)
675 TEST_FIELD_ALIGN (GUITHREADINFO, hwndCaret, 8)
676 TEST_FIELD_OFFSET(GUITHREADINFO, hwndCaret, 48)
677 TEST_FIELD_SIZE (GUITHREADINFO, rcCaret, 16)
678 TEST_FIELD_ALIGN (GUITHREADINFO, rcCaret, 4)
679 TEST_FIELD_OFFSET(GUITHREADINFO, rcCaret, 56)
680 }
681
682 static void test_pack_HARDWAREHOOKSTRUCT(void)
683 {
684 /* HARDWAREHOOKSTRUCT */
685 TEST_TYPE_SIZE (HARDWAREHOOKSTRUCT, 32)
686 TEST_TYPE_ALIGN (HARDWAREHOOKSTRUCT, 8)
687 TEST_FIELD_SIZE (HARDWAREHOOKSTRUCT, hwnd, 8)
688 TEST_FIELD_ALIGN (HARDWAREHOOKSTRUCT, hwnd, 8)
689 TEST_FIELD_OFFSET(HARDWAREHOOKSTRUCT, hwnd, 0)
690 TEST_FIELD_SIZE (HARDWAREHOOKSTRUCT, message, 4)
691 TEST_FIELD_ALIGN (HARDWAREHOOKSTRUCT, message, 4)
692 TEST_FIELD_OFFSET(HARDWAREHOOKSTRUCT, message, 8)
693 TEST_FIELD_SIZE (HARDWAREHOOKSTRUCT, wParam, 8)
694 TEST_FIELD_ALIGN (HARDWAREHOOKSTRUCT, wParam, 8)
695 TEST_FIELD_OFFSET(HARDWAREHOOKSTRUCT, wParam, 16)
696 TEST_FIELD_SIZE (HARDWAREHOOKSTRUCT, lParam, 8)
697 TEST_FIELD_ALIGN (HARDWAREHOOKSTRUCT, lParam, 8)
698 TEST_FIELD_OFFSET(HARDWAREHOOKSTRUCT, lParam, 24)
699 }
700
701 static void test_pack_HARDWAREINPUT(void)
702 {
703 /* HARDWAREINPUT */
704 TEST_TYPE_SIZE (HARDWAREINPUT, 8)
705 TEST_TYPE_ALIGN (HARDWAREINPUT, 4)
706 TEST_FIELD_SIZE (HARDWAREINPUT, uMsg, 4)
707 TEST_FIELD_ALIGN (HARDWAREINPUT, uMsg, 4)
708 TEST_FIELD_OFFSET(HARDWAREINPUT, uMsg, 0)
709 TEST_FIELD_SIZE (HARDWAREINPUT, wParamL, 2)
710 TEST_FIELD_ALIGN (HARDWAREINPUT, wParamL, 2)
711 TEST_FIELD_OFFSET(HARDWAREINPUT, wParamL, 4)
712 TEST_FIELD_SIZE (HARDWAREINPUT, wParamH, 2)
713 TEST_FIELD_ALIGN (HARDWAREINPUT, wParamH, 2)
714 TEST_FIELD_OFFSET(HARDWAREINPUT, wParamH, 6)
715 }
716
717 static void test_pack_HDEVNOTIFY(void)
718 {
719 /* HDEVNOTIFY */
720 TEST_TYPE_SIZE (HDEVNOTIFY, 8)
721 TEST_TYPE_ALIGN (HDEVNOTIFY, 8)
722 }
723
724 static void test_pack_HDWP(void)
725 {
726 /* HDWP */
727 TEST_TYPE_SIZE (HDWP, 8)
728 TEST_TYPE_ALIGN (HDWP, 8)
729 }
730
731 static void test_pack_HELPINFO(void)
732 {
733 /* HELPINFO */
734 TEST_TYPE_SIZE (HELPINFO, 40)
735 TEST_TYPE_ALIGN (HELPINFO, 8)
736 TEST_FIELD_SIZE (HELPINFO, cbSize, 4)
737 TEST_FIELD_ALIGN (HELPINFO, cbSize, 4)
738 TEST_FIELD_OFFSET(HELPINFO, cbSize, 0)
739 TEST_FIELD_SIZE (HELPINFO, iContextType, 4)
740 TEST_FIELD_ALIGN (HELPINFO, iContextType, 4)
741 TEST_FIELD_OFFSET(HELPINFO, iContextType, 4)
742 TEST_FIELD_SIZE (HELPINFO, iCtrlId, 4)
743 TEST_FIELD_ALIGN (HELPINFO, iCtrlId, 4)
744 TEST_FIELD_OFFSET(HELPINFO, iCtrlId, 8)
745 TEST_FIELD_SIZE (HELPINFO, hItemHandle, 8)
746 TEST_FIELD_ALIGN (HELPINFO, hItemHandle, 8)
747 TEST_FIELD_OFFSET(HELPINFO, hItemHandle, 16)
748 TEST_FIELD_SIZE (HELPINFO, dwContextId, 8)
749 TEST_FIELD_ALIGN (HELPINFO, dwContextId, 8)
750 TEST_FIELD_OFFSET(HELPINFO, dwContextId, 24)
751 TEST_FIELD_SIZE (HELPINFO, MousePos, 8)
752 TEST_FIELD_ALIGN (HELPINFO, MousePos, 4)
753 TEST_FIELD_OFFSET(HELPINFO, MousePos, 32)
754 }
755
756 static void test_pack_HELPWININFOA(void)
757 {
758 /* HELPWININFOA */
759 TEST_TYPE_SIZE (HELPWININFOA, 28)
760 TEST_TYPE_ALIGN (HELPWININFOA, 4)
761 TEST_FIELD_SIZE (HELPWININFOA, wStructSize, 4)
762 TEST_FIELD_ALIGN (HELPWININFOA, wStructSize, 4)
763 TEST_FIELD_OFFSET(HELPWININFOA, wStructSize, 0)
764 TEST_FIELD_SIZE (HELPWININFOA, x, 4)
765 TEST_FIELD_ALIGN (HELPWININFOA, x, 4)
766 TEST_FIELD_OFFSET(HELPWININFOA, x, 4)
767 TEST_FIELD_SIZE (HELPWININFOA, y, 4)
768 TEST_FIELD_ALIGN (HELPWININFOA, y, 4)
769 TEST_FIELD_OFFSET(HELPWININFOA, y, 8)
770 TEST_FIELD_SIZE (HELPWININFOA, dx, 4)
771 TEST_FIELD_ALIGN (HELPWININFOA, dx, 4)
772 TEST_FIELD_OFFSET(HELPWININFOA, dx, 12)
773 TEST_FIELD_SIZE (HELPWININFOA, dy, 4)
774 TEST_FIELD_ALIGN (HELPWININFOA, dy, 4)
775 TEST_FIELD_OFFSET(HELPWININFOA, dy, 16)
776 TEST_FIELD_SIZE (HELPWININFOA, wMax, 4)
777 TEST_FIELD_ALIGN (HELPWININFOA, wMax, 4)
778 TEST_FIELD_OFFSET(HELPWININFOA, wMax, 20)
779 TEST_FIELD_SIZE (HELPWININFOA, rgchMember, 2)
780 TEST_FIELD_ALIGN (HELPWININFOA, rgchMember, 1)
781 TEST_FIELD_OFFSET(HELPWININFOA, rgchMember, 24)
782 }
783
784 static void test_pack_HELPWININFOW(void)
785 {
786 /* HELPWININFOW */
787 TEST_TYPE_SIZE (HELPWININFOW, 28)
788 TEST_TYPE_ALIGN (HELPWININFOW, 4)
789 TEST_FIELD_SIZE (HELPWININFOW, wStructSize, 4)
790 TEST_FIELD_ALIGN (HELPWININFOW, wStructSize, 4)
791 TEST_FIELD_OFFSET(HELPWININFOW, wStructSize, 0)
792 TEST_FIELD_SIZE (HELPWININFOW, x, 4)
793 TEST_FIELD_ALIGN (HELPWININFOW, x, 4)
794 TEST_FIELD_OFFSET(HELPWININFOW, x, 4)
795 TEST_FIELD_SIZE (HELPWININFOW, y, 4)
796 TEST_FIELD_ALIGN (HELPWININFOW, y, 4)
797 TEST_FIELD_OFFSET(HELPWININFOW, y, 8)
798 TEST_FIELD_SIZE (HELPWININFOW, dx, 4)
799 TEST_FIELD_ALIGN (HELPWININFOW, dx, 4)
800 TEST_FIELD_OFFSET(HELPWININFOW, dx, 12)
801 TEST_FIELD_SIZE (HELPWININFOW, dy, 4)
802 TEST_FIELD_ALIGN (HELPWININFOW, dy, 4)
803 TEST_FIELD_OFFSET(HELPWININFOW, dy, 16)
804 TEST_FIELD_SIZE (HELPWININFOW, wMax, 4)
805 TEST_FIELD_ALIGN (HELPWININFOW, wMax, 4)
806 TEST_FIELD_OFFSET(HELPWININFOW, wMax, 20)
807 TEST_FIELD_SIZE (HELPWININFOW, rgchMember, 4)
808 TEST_FIELD_ALIGN (HELPWININFOW, rgchMember, 2)
809 TEST_FIELD_OFFSET(HELPWININFOW, rgchMember, 24)
810 }
811
812 static void test_pack_HIGHCONTRASTA(void)
813 {
814 /* HIGHCONTRASTA */
815 TEST_TYPE_SIZE (HIGHCONTRASTA, 16)
816 TEST_TYPE_ALIGN (HIGHCONTRASTA, 8)
817 TEST_FIELD_SIZE (HIGHCONTRASTA, cbSize, 4)
818 TEST_FIELD_ALIGN (HIGHCONTRASTA, cbSize, 4)
819 TEST_FIELD_OFFSET(HIGHCONTRASTA, cbSize, 0)
820 TEST_FIELD_SIZE (HIGHCONTRASTA, dwFlags, 4)
821 TEST_FIELD_ALIGN (HIGHCONTRASTA, dwFlags, 4)
822 TEST_FIELD_OFFSET(HIGHCONTRASTA, dwFlags, 4)
823 TEST_FIELD_SIZE (HIGHCONTRASTA, lpszDefaultScheme, 8)
824 TEST_FIELD_ALIGN (HIGHCONTRASTA, lpszDefaultScheme, 8)
825 TEST_FIELD_OFFSET(HIGHCONTRASTA, lpszDefaultScheme, 8)
826 }
827
828 static void test_pack_HIGHCONTRASTW(void)
829 {
830 /* HIGHCONTRASTW */
831 TEST_TYPE_SIZE (HIGHCONTRASTW, 16)
832 TEST_TYPE_ALIGN (HIGHCONTRASTW, 8)
833 TEST_FIELD_SIZE (HIGHCONTRASTW, cbSize, 4)
834 TEST_FIELD_ALIGN (HIGHCONTRASTW, cbSize, 4)
835 TEST_FIELD_OFFSET(HIGHCONTRASTW, cbSize, 0)
836 TEST_FIELD_SIZE (HIGHCONTRASTW, dwFlags, 4)
837 TEST_FIELD_ALIGN (HIGHCONTRASTW, dwFlags, 4)
838 TEST_FIELD_OFFSET(HIGHCONTRASTW, dwFlags, 4)
839 TEST_FIELD_SIZE (HIGHCONTRASTW, lpszDefaultScheme, 8)
840 TEST_FIELD_ALIGN (HIGHCONTRASTW, lpszDefaultScheme, 8)
841 TEST_FIELD_OFFSET(HIGHCONTRASTW, lpszDefaultScheme, 8)
842 }
843
844 static void test_pack_HOOKPROC(void)
845 {
846 /* HOOKPROC */
847 TEST_TYPE_SIZE (HOOKPROC, 8)
848 TEST_TYPE_ALIGN (HOOKPROC, 8)
849 }
850
851 static void test_pack_ICONINFO(void)
852 {
853 /* ICONINFO */
854 TEST_TYPE_SIZE (ICONINFO, 32)
855 TEST_TYPE_ALIGN (ICONINFO, 8)
856 TEST_FIELD_SIZE (ICONINFO, fIcon, 4)
857 TEST_FIELD_ALIGN (ICONINFO, fIcon, 4)
858 TEST_FIELD_OFFSET(ICONINFO, fIcon, 0)
859 TEST_FIELD_SIZE (ICONINFO, xHotspot, 4)
860 TEST_FIELD_ALIGN (ICONINFO, xHotspot, 4)
861 TEST_FIELD_OFFSET(ICONINFO, xHotspot, 4)
862 TEST_FIELD_SIZE (ICONINFO, yHotspot, 4)
863 TEST_FIELD_ALIGN (ICONINFO, yHotspot, 4)
864 TEST_FIELD_OFFSET(ICONINFO, yHotspot, 8)
865 TEST_FIELD_SIZE (ICONINFO, hbmMask, 8)
866 TEST_FIELD_ALIGN (ICONINFO, hbmMask, 8)
867 TEST_FIELD_OFFSET(ICONINFO, hbmMask, 16)
868 TEST_FIELD_SIZE (ICONINFO, hbmColor, 8)
869 TEST_FIELD_ALIGN (ICONINFO, hbmColor, 8)
870 TEST_FIELD_OFFSET(ICONINFO, hbmColor, 24)
871 }
872
873 static void test_pack_ICONMETRICSA(void)
874 {
875 /* ICONMETRICSA */
876 TEST_TYPE_SIZE (ICONMETRICSA, 76)
877 TEST_TYPE_ALIGN (ICONMETRICSA, 4)
878 TEST_FIELD_SIZE (ICONMETRICSA, cbSize, 4)
879 TEST_FIELD_ALIGN (ICONMETRICSA, cbSize, 4)
880 TEST_FIELD_OFFSET(ICONMETRICSA, cbSize, 0)
881 TEST_FIELD_SIZE (ICONMETRICSA, iHorzSpacing, 4)
882 TEST_FIELD_ALIGN (ICONMETRICSA, iHorzSpacing, 4)
883 TEST_FIELD_OFFSET(ICONMETRICSA, iHorzSpacing, 4)
884 TEST_FIELD_SIZE (ICONMETRICSA, iVertSpacing, 4)
885 TEST_FIELD_ALIGN (ICONMETRICSA, iVertSpacing, 4)
886 TEST_FIELD_OFFSET(ICONMETRICSA, iVertSpacing, 8)
887 TEST_FIELD_SIZE (ICONMETRICSA, iTitleWrap, 4)
888 TEST_FIELD_ALIGN (ICONMETRICSA, iTitleWrap, 4)
889 TEST_FIELD_OFFSET(ICONMETRICSA, iTitleWrap, 12)
890 TEST_FIELD_SIZE (ICONMETRICSA, lfFont, 60)
891 TEST_FIELD_ALIGN (ICONMETRICSA, lfFont, 4)
892 TEST_FIELD_OFFSET(ICONMETRICSA, lfFont, 16)
893 }
894
895 static void test_pack_ICONMETRICSW(void)
896 {
897 /* ICONMETRICSW */
898 TEST_TYPE_SIZE (ICONMETRICSW, 108)
899 TEST_TYPE_ALIGN (ICONMETRICSW, 4)
900 TEST_FIELD_SIZE (ICONMETRICSW, cbSize, 4)
901 TEST_FIELD_ALIGN (ICONMETRICSW, cbSize, 4)
902 TEST_FIELD_OFFSET(ICONMETRICSW, cbSize, 0)
903 TEST_FIELD_SIZE (ICONMETRICSW, iHorzSpacing, 4)
904 TEST_FIELD_ALIGN (ICONMETRICSW, iHorzSpacing, 4)
905 TEST_FIELD_OFFSET(ICONMETRICSW, iHorzSpacing, 4)
906 TEST_FIELD_SIZE (ICONMETRICSW, iVertSpacing, 4)
907 TEST_FIELD_ALIGN (ICONMETRICSW, iVertSpacing, 4)
908 TEST_FIELD_OFFSET(ICONMETRICSW, iVertSpacing, 8)
909 TEST_FIELD_SIZE (ICONMETRICSW, iTitleWrap, 4)
910 TEST_FIELD_ALIGN (ICONMETRICSW, iTitleWrap, 4)
911 TEST_FIELD_OFFSET(ICONMETRICSW, iTitleWrap, 12)
912 TEST_FIELD_SIZE (ICONMETRICSW, lfFont, 92)
913 TEST_FIELD_ALIGN (ICONMETRICSW, lfFont, 4)
914 TEST_FIELD_OFFSET(ICONMETRICSW, lfFont, 16)
915 }
916
917 static void test_pack_INPUT(void)
918 {
919 /* INPUT */
920 TEST_FIELD_SIZE (INPUT, type, 4)
921 TEST_FIELD_ALIGN (INPUT, type, 4)
922 TEST_FIELD_OFFSET(INPUT, type, 0)
923 }
924
925 static void test_pack_KBDLLHOOKSTRUCT(void)
926 {
927 /* KBDLLHOOKSTRUCT */
928 TEST_TYPE_SIZE (KBDLLHOOKSTRUCT, 24)
929 TEST_TYPE_ALIGN (KBDLLHOOKSTRUCT, 8)
930 TEST_FIELD_SIZE (KBDLLHOOKSTRUCT, vkCode, 4)
931 TEST_FIELD_ALIGN (KBDLLHOOKSTRUCT, vkCode, 4)
932 TEST_FIELD_OFFSET(KBDLLHOOKSTRUCT, vkCode, 0)
933 TEST_FIELD_SIZE (KBDLLHOOKSTRUCT, scanCode, 4)
934 TEST_FIELD_ALIGN (KBDLLHOOKSTRUCT, scanCode, 4)
935 TEST_FIELD_OFFSET(KBDLLHOOKSTRUCT, scanCode, 4)
936 TEST_FIELD_SIZE (KBDLLHOOKSTRUCT, flags, 4)
937 TEST_FIELD_ALIGN (KBDLLHOOKSTRUCT, flags, 4)
938 TEST_FIELD_OFFSET(KBDLLHOOKSTRUCT, flags, 8)
939 TEST_FIELD_SIZE (KBDLLHOOKSTRUCT, time, 4)
940 TEST_FIELD_ALIGN (KBDLLHOOKSTRUCT, time, 4)
941 TEST_FIELD_OFFSET(KBDLLHOOKSTRUCT, time, 12)
942 TEST_FIELD_SIZE (KBDLLHOOKSTRUCT, dwExtraInfo, 8)
943 TEST_FIELD_ALIGN (KBDLLHOOKSTRUCT, dwExtraInfo, 8)
944 TEST_FIELD_OFFSET(KBDLLHOOKSTRUCT, dwExtraInfo, 16)
945 }
946
947 static void test_pack_KEYBDINPUT(void)
948 {
949 /* KEYBDINPUT */
950 TEST_TYPE_SIZE (KEYBDINPUT, 24)
951 TEST_TYPE_ALIGN (KEYBDINPUT, 8)
952 TEST_FIELD_SIZE (KEYBDINPUT, wVk, 2)
953 TEST_FIELD_ALIGN (KEYBDINPUT, wVk, 2)
954 TEST_FIELD_OFFSET(KEYBDINPUT, wVk, 0)
955 TEST_FIELD_SIZE (KEYBDINPUT, wScan, 2)
956 TEST_FIELD_ALIGN (KEYBDINPUT, wScan, 2)
957 TEST_FIELD_OFFSET(KEYBDINPUT, wScan, 2)
958 TEST_FIELD_SIZE (KEYBDINPUT, dwFlags, 4)
959 TEST_FIELD_ALIGN (KEYBDINPUT, dwFlags, 4)
960 TEST_FIELD_OFFSET(KEYBDINPUT, dwFlags, 4)
961 TEST_FIELD_SIZE (KEYBDINPUT, time, 4)
962 TEST_FIELD_ALIGN (KEYBDINPUT, time, 4)
963 TEST_FIELD_OFFSET(KEYBDINPUT, time, 8)
964 TEST_FIELD_SIZE (KEYBDINPUT, dwExtraInfo, 8)
965 TEST_FIELD_ALIGN (KEYBDINPUT, dwExtraInfo, 8)
966 TEST_FIELD_OFFSET(KEYBDINPUT, dwExtraInfo, 16)
967 }
968
969 static void test_pack_LPACCESSTIMEOUT(void)
970 {
971 /* LPACCESSTIMEOUT */
972 TEST_TYPE_SIZE (LPACCESSTIMEOUT, 8)
973 TEST_TYPE_ALIGN (LPACCESSTIMEOUT, 8)
974 TEST_TARGET_SIZE (LPACCESSTIMEOUT, 12)
975 TEST_TARGET_ALIGN(LPACCESSTIMEOUT, 4)
976 }
977
978 static void test_pack_LPANIMATIONINFO(void)
979 {
980 /* LPANIMATIONINFO */
981 TEST_TYPE_SIZE (LPANIMATIONINFO, 8)
982 TEST_TYPE_ALIGN (LPANIMATIONINFO, 8)
983 TEST_TARGET_SIZE (LPANIMATIONINFO, 8)
984 TEST_TARGET_ALIGN(LPANIMATIONINFO, 4)
985 }
986
987 static void test_pack_LPCBTACTIVATESTRUCT(void)
988 {
989 /* LPCBTACTIVATESTRUCT */
990 TEST_TYPE_SIZE (LPCBTACTIVATESTRUCT, 8)
991 TEST_TYPE_ALIGN (LPCBTACTIVATESTRUCT, 8)
992 TEST_TARGET_SIZE (LPCBTACTIVATESTRUCT, 16)
993 TEST_TARGET_ALIGN(LPCBTACTIVATESTRUCT, 8)
994 }
995
996 static void test_pack_LPCBT_CREATEWNDA(void)
997 {
998 /* LPCBT_CREATEWNDA */
999 TEST_TYPE_SIZE (LPCBT_CREATEWNDA, 8)
1000 TEST_TYPE_ALIGN (LPCBT_CREATEWNDA, 8)
1001 TEST_TARGET_SIZE (LPCBT_CREATEWNDA, 16)
1002 TEST_TARGET_ALIGN(LPCBT_CREATEWNDA, 8)
1003 }
1004
1005 static void test_pack_LPCBT_CREATEWNDW(void)
1006 {
1007 /* LPCBT_CREATEWNDW */
1008 TEST_TYPE_SIZE (LPCBT_CREATEWNDW, 8)
1009 TEST_TYPE_ALIGN (LPCBT_CREATEWNDW, 8)
1010 TEST_TARGET_SIZE (LPCBT_CREATEWNDW, 16)
1011 TEST_TARGET_ALIGN(LPCBT_CREATEWNDW, 8)
1012 }
1013
1014 static void test_pack_LPCDLGTEMPLATEA(void)
1015 {
1016 /* LPCDLGTEMPLATEA */
1017 TEST_TYPE_SIZE (LPCDLGTEMPLATEA, 8)
1018 TEST_TYPE_ALIGN (LPCDLGTEMPLATEA, 8)
1019 TEST_TARGET_SIZE (LPCDLGTEMPLATEA, 18)
1020 TEST_TARGET_ALIGN(LPCDLGTEMPLATEA, 2)
1021 }
1022
1023 static void test_pack_LPCDLGTEMPLATEW(void)
1024 {
1025 /* LPCDLGTEMPLATEW */
1026 TEST_TYPE_SIZE (LPCDLGTEMPLATEW, 8)
1027 TEST_TYPE_ALIGN (LPCDLGTEMPLATEW, 8)
1028 TEST_TARGET_SIZE (LPCDLGTEMPLATEW, 18)
1029 TEST_TARGET_ALIGN(LPCDLGTEMPLATEW, 2)
1030 }
1031
1032 static void test_pack_LPCLIENTCREATESTRUCT(void)
1033 {
1034 /* LPCLIENTCREATESTRUCT */
1035 TEST_TYPE_SIZE (LPCLIENTCREATESTRUCT, 8)
1036 TEST_TYPE_ALIGN (LPCLIENTCREATESTRUCT, 8)
1037 TEST_TARGET_SIZE (LPCLIENTCREATESTRUCT, 16)
1038 TEST_TARGET_ALIGN(LPCLIENTCREATESTRUCT, 8)
1039 }
1040
1041 static void test_pack_LPCMENUINFO(void)
1042 {
1043 /* LPCMENUINFO */
1044 TEST_TYPE_SIZE (LPCMENUINFO, 8)
1045 TEST_TYPE_ALIGN (LPCMENUINFO, 8)
1046 TEST_TARGET_SIZE (LPCMENUINFO, 40)
1047 TEST_TARGET_ALIGN(LPCMENUINFO, 8)
1048 }
1049
1050 static void test_pack_LPCMENUITEMINFOA(void)
1051 {
1052 /* LPCMENUITEMINFOA */
1053 TEST_TYPE_SIZE (LPCMENUITEMINFOA, 8)
1054 TEST_TYPE_ALIGN (LPCMENUITEMINFOA, 8)
1055 TEST_TARGET_SIZE (LPCMENUITEMINFOA, 80)
1056 TEST_TARGET_ALIGN(LPCMENUITEMINFOA, 8)
1057 }
1058
1059 static void test_pack_LPCMENUITEMINFOW(void)
1060 {
1061 /* LPCMENUITEMINFOW */
1062 TEST_TYPE_SIZE (LPCMENUITEMINFOW, 8)
1063 TEST_TYPE_ALIGN (LPCMENUITEMINFOW, 8)
1064 TEST_TARGET_SIZE (LPCMENUITEMINFOW, 80)
1065 TEST_TARGET_ALIGN(LPCMENUITEMINFOW, 8)
1066 }
1067
1068 static void test_pack_LPCOMBOBOXINFO(void)
1069 {
1070 /* LPCOMBOBOXINFO */
1071 TEST_TYPE_SIZE (LPCOMBOBOXINFO, 8)
1072 TEST_TYPE_ALIGN (LPCOMBOBOXINFO, 8)
1073 TEST_TARGET_SIZE (LPCOMBOBOXINFO, 64)
1074 TEST_TARGET_ALIGN(LPCOMBOBOXINFO, 8)
1075 }
1076
1077 static void test_pack_LPCOMPAREITEMSTRUCT(void)
1078 {
1079 /* LPCOMPAREITEMSTRUCT */
1080 TEST_TYPE_SIZE (LPCOMPAREITEMSTRUCT, 8)
1081 TEST_TYPE_ALIGN (LPCOMPAREITEMSTRUCT, 8)
1082 TEST_TARGET_SIZE (LPCOMPAREITEMSTRUCT, 56)
1083 TEST_TARGET_ALIGN(LPCOMPAREITEMSTRUCT, 8)
1084 }
1085
1086 static void test_pack_LPCREATESTRUCTA(void)
1087 {
1088 /* LPCREATESTRUCTA */
1089 TEST_TYPE_SIZE (LPCREATESTRUCTA, 8)
1090 TEST_TYPE_ALIGN (LPCREATESTRUCTA, 8)
1091 TEST_TARGET_SIZE (LPCREATESTRUCTA, 80)
1092 TEST_TARGET_ALIGN(LPCREATESTRUCTA, 8)
1093 }
1094
1095 static void test_pack_LPCREATESTRUCTW(void)
1096 {
1097 /* LPCREATESTRUCTW */
1098 TEST_TYPE_SIZE (LPCREATESTRUCTW, 8)
1099 TEST_TYPE_ALIGN (LPCREATESTRUCTW, 8)
1100 TEST_TARGET_SIZE (LPCREATESTRUCTW, 80)
1101 TEST_TARGET_ALIGN(LPCREATESTRUCTW, 8)
1102 }
1103
1104 static void test_pack_LPCSCROLLINFO(void)
1105 {
1106 /* LPCSCROLLINFO */
1107 TEST_TYPE_SIZE (LPCSCROLLINFO, 8)
1108 TEST_TYPE_ALIGN (LPCSCROLLINFO, 8)
1109 TEST_TARGET_SIZE (LPCSCROLLINFO, 28)
1110 TEST_TARGET_ALIGN(LPCSCROLLINFO, 4)
1111 }
1112
1113 static void test_pack_LPCURSORINFO(void)
1114 {
1115 /* LPCURSORINFO */
1116 TEST_TYPE_SIZE (LPCURSORINFO, 8)
1117 TEST_TYPE_ALIGN (LPCURSORINFO, 8)
1118 TEST_TARGET_SIZE (LPCURSORINFO, 24)
1119 TEST_TARGET_ALIGN(LPCURSORINFO, 8)
1120 }
1121
1122 static void test_pack_LPCWPRETSTRUCT(void)
1123 {
1124 /* LPCWPRETSTRUCT */
1125 TEST_TYPE_SIZE (LPCWPRETSTRUCT, 8)
1126 TEST_TYPE_ALIGN (LPCWPRETSTRUCT, 8)
1127 TEST_TARGET_SIZE (LPCWPRETSTRUCT, 40)
1128 TEST_TARGET_ALIGN(LPCWPRETSTRUCT, 8)
1129 }
1130
1131 static void test_pack_LPCWPSTRUCT(void)
1132 {
1133 /* LPCWPSTRUCT */
1134 TEST_TYPE_SIZE (LPCWPSTRUCT, 8)
1135 TEST_TYPE_ALIGN (LPCWPSTRUCT, 8)
1136 TEST_TARGET_SIZE (LPCWPSTRUCT, 32)
1137 TEST_TARGET_ALIGN(LPCWPSTRUCT, 8)
1138 }
1139
1140 static void test_pack_LPDEBUGHOOKINFO(void)
1141 {
1142 /* LPDEBUGHOOKINFO */
1143 TEST_TYPE_SIZE (LPDEBUGHOOKINFO, 8)
1144 TEST_TYPE_ALIGN (LPDEBUGHOOKINFO, 8)
1145 TEST_TARGET_SIZE (LPDEBUGHOOKINFO, 32)
1146 TEST_TARGET_ALIGN(LPDEBUGHOOKINFO, 8)
1147 }
1148
1149 static void test_pack_LPDELETEITEMSTRUCT(void)
1150 {
1151 /* LPDELETEITEMSTRUCT */
1152 TEST_TYPE_SIZE (LPDELETEITEMSTRUCT, 8)
1153 TEST_TYPE_ALIGN (LPDELETEITEMSTRUCT, 8)
1154 TEST_TARGET_SIZE (LPDELETEITEMSTRUCT, 32)
1155 TEST_TARGET_ALIGN(LPDELETEITEMSTRUCT, 8)
1156 }
1157
1158 static void test_pack_LPDLGITEMTEMPLATEA(void)
1159 {
1160 /* LPDLGITEMTEMPLATEA */
1161 TEST_TYPE_SIZE (LPDLGITEMTEMPLATEA, 8)
1162 TEST_TYPE_ALIGN (LPDLGITEMTEMPLATEA, 8)
1163 TEST_TARGET_SIZE (LPDLGITEMTEMPLATEA, 18)
1164 TEST_TARGET_ALIGN(LPDLGITEMTEMPLATEA, 2)
1165 }
1166
1167 static void test_pack_LPDLGITEMTEMPLATEW(void)
1168 {
1169 /* LPDLGITEMTEMPLATEW */
1170 TEST_TYPE_SIZE (LPDLGITEMTEMPLATEW, 8)
1171 TEST_TYPE_ALIGN (LPDLGITEMTEMPLATEW, 8)
1172 TEST_TARGET_SIZE (LPDLGITEMTEMPLATEW, 18)
1173 TEST_TARGET_ALIGN(LPDLGITEMTEMPLATEW, 2)
1174 }
1175
1176 static void test_pack_LPDLGTEMPLATEA(void)
1177 {
1178 /* LPDLGTEMPLATEA */
1179 TEST_TYPE_SIZE (LPDLGTEMPLATEA, 8)
1180 TEST_TYPE_ALIGN (LPDLGTEMPLATEA, 8)
1181 TEST_TARGET_SIZE (LPDLGTEMPLATEA, 18)
1182 TEST_TARGET_ALIGN(LPDLGTEMPLATEA, 2)
1183 }
1184
1185 static void test_pack_LPDLGTEMPLATEW(void)
1186 {
1187 /* LPDLGTEMPLATEW */
1188 TEST_TYPE_SIZE (LPDLGTEMPLATEW, 8)
1189 TEST_TYPE_ALIGN (LPDLGTEMPLATEW, 8)
1190 TEST_TARGET_SIZE (LPDLGTEMPLATEW, 18)
1191 TEST_TARGET_ALIGN(LPDLGTEMPLATEW, 2)
1192 }
1193
1194 static void test_pack_LPDRAWITEMSTRUCT(void)
1195 {
1196 /* LPDRAWITEMSTRUCT */
1197 TEST_TYPE_SIZE (LPDRAWITEMSTRUCT, 8)
1198 TEST_TYPE_ALIGN (LPDRAWITEMSTRUCT, 8)
1199 TEST_TARGET_SIZE (LPDRAWITEMSTRUCT, 64)
1200 TEST_TARGET_ALIGN(LPDRAWITEMSTRUCT, 8)
1201 }
1202
1203 static void test_pack_LPDRAWTEXTPARAMS(void)
1204 {
1205 /* LPDRAWTEXTPARAMS */
1206 TEST_TYPE_SIZE (LPDRAWTEXTPARAMS, 8)
1207 TEST_TYPE_ALIGN (LPDRAWTEXTPARAMS, 8)
1208 TEST_TARGET_SIZE (LPDRAWTEXTPARAMS, 20)
1209 TEST_TARGET_ALIGN(LPDRAWTEXTPARAMS, 4)
1210 }
1211
1212 static void test_pack_LPEVENTMSG(void)
1213 {
1214 /* LPEVENTMSG */
1215 TEST_TYPE_SIZE (LPEVENTMSG, 8)
1216 TEST_TYPE_ALIGN (LPEVENTMSG, 8)
1217 TEST_TARGET_SIZE (LPEVENTMSG, 24)
1218 TEST_TARGET_ALIGN(LPEVENTMSG, 8)
1219 }
1220
1221 static void test_pack_LPFILTERKEYS(void)
1222 {
1223 /* LPFILTERKEYS */
1224 TEST_TYPE_SIZE (LPFILTERKEYS, 8)
1225 TEST_TYPE_ALIGN (LPFILTERKEYS, 8)
1226 TEST_TARGET_SIZE (LPFILTERKEYS, 24)
1227 TEST_TARGET_ALIGN(LPFILTERKEYS, 4)
1228 }
1229
1230 static void test_pack_LPGUITHREADINFO(void)
1231 {
1232 /* LPGUITHREADINFO */
1233 TEST_TYPE_SIZE (LPGUITHREADINFO, 8)
1234 TEST_TYPE_ALIGN (LPGUITHREADINFO, 8)
1235 TEST_TARGET_SIZE (LPGUITHREADINFO, 72)
1236 TEST_TARGET_ALIGN(LPGUITHREADINFO, 8)
1237 }
1238
1239 static void test_pack_LPHARDWAREHOOKSTRUCT(void)
1240 {
1241 /* LPHARDWAREHOOKSTRUCT */
1242 TEST_TYPE_SIZE (LPHARDWAREHOOKSTRUCT, 8)
1243 TEST_TYPE_ALIGN (LPHARDWAREHOOKSTRUCT, 8)
1244 TEST_TARGET_SIZE (LPHARDWAREHOOKSTRUCT, 32)
1245 TEST_TARGET_ALIGN(LPHARDWAREHOOKSTRUCT, 8)
1246 }
1247
1248 static void test_pack_LPHARDWAREINPUT(void)
1249 {
1250 /* LPHARDWAREINPUT */
1251 TEST_TYPE_SIZE (LPHARDWAREINPUT, 8)
1252 TEST_TYPE_ALIGN (LPHARDWAREINPUT, 8)
1253 TEST_TARGET_SIZE (LPHARDWAREINPUT, 8)
1254 TEST_TARGET_ALIGN(LPHARDWAREINPUT, 4)
1255 }
1256
1257 static void test_pack_LPHELPINFO(void)
1258 {
1259 /* LPHELPINFO */
1260 TEST_TYPE_SIZE (LPHELPINFO, 8)
1261 TEST_TYPE_ALIGN (LPHELPINFO, 8)
1262 TEST_TARGET_SIZE (LPHELPINFO, 40)
1263 TEST_TARGET_ALIGN(LPHELPINFO, 8)
1264 }
1265
1266 static void test_pack_LPHELPWININFOA(void)
1267 {
1268 /* LPHELPWININFOA */
1269 TEST_TYPE_SIZE (LPHELPWININFOA, 8)
1270 TEST_TYPE_ALIGN (LPHELPWININFOA, 8)
1271 TEST_TARGET_SIZE (LPHELPWININFOA, 28)
1272 TEST_TARGET_ALIGN(LPHELPWININFOA, 4)
1273 }
1274
1275 static void test_pack_LPHELPWININFOW(void)
1276 {
1277 /* LPHELPWININFOW */
1278 TEST_TYPE_SIZE (LPHELPWININFOW, 8)
1279 TEST_TYPE_ALIGN (LPHELPWININFOW, 8)
1280 TEST_TARGET_SIZE (LPHELPWININFOW, 28)
1281 TEST_TARGET_ALIGN(LPHELPWININFOW, 4)
1282 }
1283
1284 static void test_pack_LPHIGHCONTRASTA(void)
1285 {
1286 /* LPHIGHCONTRASTA */
1287 TEST_TYPE_SIZE (LPHIGHCONTRASTA, 8)
1288 TEST_TYPE_ALIGN (LPHIGHCONTRASTA, 8)
1289 TEST_TARGET_SIZE (LPHIGHCONTRASTA, 16)
1290 TEST_TARGET_ALIGN(LPHIGHCONTRASTA, 8)
1291 }
1292
1293 static void test_pack_LPHIGHCONTRASTW(void)
1294 {
1295 /* LPHIGHCONTRASTW */
1296 TEST_TYPE_SIZE (LPHIGHCONTRASTW, 8)
1297 TEST_TYPE_ALIGN (LPHIGHCONTRASTW, 8)
1298 TEST_TARGET_SIZE (LPHIGHCONTRASTW, 16)
1299 TEST_TARGET_ALIGN(LPHIGHCONTRASTW, 8)
1300 }
1301
1302 static void test_pack_LPICONMETRICSA(void)
1303 {
1304 /* LPICONMETRICSA */
1305 TEST_TYPE_SIZE (LPICONMETRICSA, 8)
1306 TEST_TYPE_ALIGN (LPICONMETRICSA, 8)
1307 TEST_TARGET_SIZE (LPICONMETRICSA, 76)
1308 TEST_TARGET_ALIGN(LPICONMETRICSA, 4)
1309 }
1310
1311 static void test_pack_LPICONMETRICSW(void)
1312 {
1313 /* LPICONMETRICSW */
1314 TEST_TYPE_SIZE (LPICONMETRICSW, 8)
1315 TEST_TYPE_ALIGN (LPICONMETRICSW, 8)
1316 TEST_TARGET_SIZE (LPICONMETRICSW, 108)
1317 TEST_TARGET_ALIGN(LPICONMETRICSW, 4)
1318 }
1319
1320 static void test_pack_LPINPUT(void)
1321 {
1322 /* LPINPUT */
1323 TEST_TYPE_SIZE (LPINPUT, 8)
1324 TEST_TYPE_ALIGN (LPINPUT, 8)
1325 }
1326
1327 static void test_pack_LPKBDLLHOOKSTRUCT(void)
1328 {
1329 /* LPKBDLLHOOKSTRUCT */
1330 TEST_TYPE_SIZE (LPKBDLLHOOKSTRUCT, 8)
1331 TEST_TYPE_ALIGN (LPKBDLLHOOKSTRUCT, 8)
1332 TEST_TARGET_SIZE (LPKBDLLHOOKSTRUCT, 24)
1333 TEST_TARGET_ALIGN(LPKBDLLHOOKSTRUCT, 8)
1334 }
1335
1336 static void test_pack_LPKEYBDINPUT(void)
1337 {
1338 /* LPKEYBDINPUT */
1339 TEST_TYPE_SIZE (LPKEYBDINPUT, 8)
1340 TEST_TYPE_ALIGN (LPKEYBDINPUT, 8)
1341 TEST_TARGET_SIZE (LPKEYBDINPUT, 24)
1342 TEST_TARGET_ALIGN(LPKEYBDINPUT, 8)
1343 }
1344
1345 static void test_pack_LPMDICREATESTRUCTA(void)
1346 {
1347 /* LPMDICREATESTRUCTA */
1348 TEST_TYPE_SIZE (LPMDICREATESTRUCTA, 8)
1349 TEST_TYPE_ALIGN (LPMDICREATESTRUCTA, 8)
1350 TEST_TARGET_SIZE (LPMDICREATESTRUCTA, 56)
1351 TEST_TARGET_ALIGN(LPMDICREATESTRUCTA, 8)
1352 }
1353
1354 static void test_pack_LPMDICREATESTRUCTW(void)
1355 {
1356 /* LPMDICREATESTRUCTW */
1357 TEST_TYPE_SIZE (LPMDICREATESTRUCTW, 8)
1358 TEST_TYPE_ALIGN (LPMDICREATESTRUCTW, 8)
1359 TEST_TARGET_SIZE (LPMDICREATESTRUCTW, 56)
1360 TEST_TARGET_ALIGN(LPMDICREATESTRUCTW, 8)
1361 }
1362
1363 static void test_pack_LPMDINEXTMENU(void)
1364 {
1365 /* LPMDINEXTMENU */
1366 TEST_TYPE_SIZE (LPMDINEXTMENU, 8)
1367 TEST_TYPE_ALIGN (LPMDINEXTMENU, 8)
1368 TEST_TARGET_SIZE (LPMDINEXTMENU, 24)
1369 TEST_TARGET_ALIGN(LPMDINEXTMENU, 8)
1370 }
1371
1372 static void test_pack_LPMEASUREITEMSTRUCT(void)
1373 {
1374 /* LPMEASUREITEMSTRUCT */
1375 TEST_TYPE_SIZE (LPMEASUREITEMSTRUCT, 8)
1376 TEST_TYPE_ALIGN (LPMEASUREITEMSTRUCT, 8)
1377 TEST_TARGET_SIZE (LPMEASUREITEMSTRUCT, 32)
1378 TEST_TARGET_ALIGN(LPMEASUREITEMSTRUCT, 8)
1379 }
1380
1381 static void test_pack_LPMENUINFO(void)
1382 {
1383 /* LPMENUINFO */
1384 TEST_TYPE_SIZE (LPMENUINFO, 8)
1385 TEST_TYPE_ALIGN (LPMENUINFO, 8)
1386 TEST_TARGET_SIZE (LPMENUINFO, 40)
1387 TEST_TARGET_ALIGN(LPMENUINFO, 8)
1388 }
1389
1390 static void test_pack_LPMENUITEMINFOA(void)
1391 {
1392 /* LPMENUITEMINFOA */
1393 TEST_TYPE_SIZE (LPMENUITEMINFOA, 8)
1394 TEST_TYPE_ALIGN (LPMENUITEMINFOA, 8)
1395 TEST_TARGET_SIZE (LPMENUITEMINFOA, 80)
1396 TEST_TARGET_ALIGN(LPMENUITEMINFOA, 8)
1397 }
1398
1399 static void test_pack_LPMENUITEMINFOW(void)
1400 {
1401 /* LPMENUITEMINFOW */
1402 TEST_TYPE_SIZE (LPMENUITEMINFOW, 8)
1403 TEST_TYPE_ALIGN (LPMENUITEMINFOW, 8)
1404 TEST_TARGET_SIZE (LPMENUITEMINFOW, 80)
1405 TEST_TARGET_ALIGN(LPMENUITEMINFOW, 8)
1406 }
1407
1408 static void test_pack_LPMINIMIZEDMETRICS(void)
1409 {
1410 /* LPMINIMIZEDMETRICS */
1411 TEST_TYPE_SIZE (LPMINIMIZEDMETRICS, 8)
1412 TEST_TYPE_ALIGN (LPMINIMIZEDMETRICS, 8)
1413 TEST_TARGET_SIZE (LPMINIMIZEDMETRICS, 20)
1414 TEST_TARGET_ALIGN(LPMINIMIZEDMETRICS, 4)
1415 }
1416
1417 static void test_pack_LPMINMAXINFO(void)
1418 {
1419 /* LPMINMAXINFO */
1420 TEST_TYPE_SIZE (LPMINMAXINFO, 8)
1421 TEST_TYPE_ALIGN (LPMINMAXINFO, 8)
1422 TEST_TARGET_SIZE (LPMINMAXINFO, 40)
1423 TEST_TARGET_ALIGN(LPMINMAXINFO, 4)
1424 }
1425
1426 static void test_pack_LPMONITORINFO(void)
1427 {
1428 /* LPMONITORINFO */
1429 TEST_TYPE_SIZE (LPMONITORINFO, 8)
1430 TEST_TYPE_ALIGN (LPMONITORINFO, 8)
1431 TEST_TARGET_SIZE (LPMONITORINFO, 40)
1432 TEST_TARGET_ALIGN(LPMONITORINFO, 4)
1433 }
1434
1435 static void test_pack_LPMONITORINFOEXA(void)
1436 {
1437 /* LPMONITORINFOEXA */
1438 TEST_TYPE_SIZE (LPMONITORINFOEXA, 8)
1439 TEST_TYPE_ALIGN (LPMONITORINFOEXA, 8)
1440 TEST_TARGET_SIZE (LPMONITORINFOEXA, 72)
1441 TEST_TARGET_ALIGN(LPMONITORINFOEXA, 4)
1442 }
1443
1444 static void test_pack_LPMONITORINFOEXW(void)
1445 {
1446 /* LPMONITORINFOEXW */
1447 TEST_TYPE_SIZE (LPMONITORINFOEXW, 8)
1448 TEST_TYPE_ALIGN (LPMONITORINFOEXW, 8)
1449 TEST_TARGET_SIZE (LPMONITORINFOEXW, 104)
1450 TEST_TARGET_ALIGN(LPMONITORINFOEXW, 4)
1451 }
1452
1453 static void test_pack_LPMOUSEHOOKSTRUCT(void)
1454 {
1455 /* LPMOUSEHOOKSTRUCT */
1456 TEST_TYPE_SIZE (LPMOUSEHOOKSTRUCT, 8)
1457 TEST_TYPE_ALIGN (LPMOUSEHOOKSTRUCT, 8)
1458 TEST_TARGET_SIZE (LPMOUSEHOOKSTRUCT, 32)
1459 TEST_TARGET_ALIGN(LPMOUSEHOOKSTRUCT, 8)
1460 }
1461
1462 static void test_pack_LPMOUSEINPUT(void)
1463 {
1464 /* LPMOUSEINPUT */
1465 TEST_TYPE_SIZE (LPMOUSEINPUT, 8)
1466 TEST_TYPE_ALIGN (LPMOUSEINPUT, 8)
1467 TEST_TARGET_SIZE (LPMOUSEINPUT, 32)
1468 TEST_TARGET_ALIGN(LPMOUSEINPUT, 8)
1469 }
1470
1471 static void test_pack_LPMOUSEKEYS(void)
1472 {
1473 /* LPMOUSEKEYS */
1474 TEST_TYPE_SIZE (LPMOUSEKEYS, 8)
1475 TEST_TYPE_ALIGN (LPMOUSEKEYS, 8)
1476 TEST_TARGET_SIZE (LPMOUSEKEYS, 28)
1477 TEST_TARGET_ALIGN(LPMOUSEKEYS, 4)
1478 }
1479
1480 static void test_pack_LPMSG(void)
1481 {
1482 /* LPMSG */
1483 TEST_TYPE_SIZE (LPMSG, 8)
1484 TEST_TYPE_ALIGN (LPMSG, 8)
1485 TEST_TARGET_SIZE (LPMSG, 48)
1486 TEST_TARGET_ALIGN(LPMSG, 8)
1487 }
1488
1489 static void test_pack_LPMSGBOXPARAMSA(void)
1490 {
1491 /* LPMSGBOXPARAMSA */
1492 TEST_TYPE_SIZE (LPMSGBOXPARAMSA, 8)
1493 TEST_TYPE_ALIGN (LPMSGBOXPARAMSA, 8)
1494 TEST_TARGET_SIZE (LPMSGBOXPARAMSA, 80)
1495 TEST_TARGET_ALIGN(LPMSGBOXPARAMSA, 8)
1496 }
1497
1498 static void test_pack_LPMSGBOXPARAMSW(void)
1499 {
1500 /* LPMSGBOXPARAMSW */
1501 TEST_TYPE_SIZE (LPMSGBOXPARAMSW, 8)
1502 TEST_TYPE_ALIGN (LPMSGBOXPARAMSW, 8)
1503 TEST_TARGET_SIZE (LPMSGBOXPARAMSW, 80)
1504 TEST_TARGET_ALIGN(LPMSGBOXPARAMSW, 8)
1505 }
1506
1507 static void test_pack_LPMSLLHOOKSTRUCT(void)
1508 {
1509 /* LPMSLLHOOKSTRUCT */
1510 TEST_TYPE_SIZE (LPMSLLHOOKSTRUCT, 8)
1511 TEST_TYPE_ALIGN (LPMSLLHOOKSTRUCT, 8)
1512 TEST_TARGET_SIZE (LPMSLLHOOKSTRUCT, 32)
1513 TEST_TARGET_ALIGN(LPMSLLHOOKSTRUCT, 8)
1514 }
1515
1516 static void test_pack_LPMULTIKEYHELPA(void)
1517 {
1518 /* LPMULTIKEYHELPA */
1519 TEST_TYPE_SIZE (LPMULTIKEYHELPA, 8)
1520 TEST_TYPE_ALIGN (LPMULTIKEYHELPA, 8)
1521 TEST_TARGET_SIZE (LPMULTIKEYHELPA, 8)
1522 TEST_TARGET_ALIGN(LPMULTIKEYHELPA, 4)
1523 }
1524
1525 static void test_pack_LPMULTIKEYHELPW(void)
1526 {
1527 /* LPMULTIKEYHELPW */
1528 TEST_TYPE_SIZE (LPMULTIKEYHELPW, 8)
1529 TEST_TYPE_ALIGN (LPMULTIKEYHELPW, 8)
1530 TEST_TARGET_SIZE (LPMULTIKEYHELPW, 8)
1531 TEST_TARGET_ALIGN(LPMULTIKEYHELPW, 4)
1532 }
1533
1534 static void test_pack_LPNCCALCSIZE_PARAMS(void)
1535 {
1536 /* LPNCCALCSIZE_PARAMS */
1537 TEST_TYPE_SIZE (LPNCCALCSIZE_PARAMS, 8)
1538 TEST_TYPE_ALIGN (LPNCCALCSIZE_PARAMS, 8)
1539 TEST_TARGET_SIZE (LPNCCALCSIZE_PARAMS, 56)
1540 TEST_TARGET_ALIGN(LPNCCALCSIZE_PARAMS, 8)
1541 }
1542
1543 static void test_pack_LPNMHDR(void)
1544 {
1545 /* LPNMHDR */
1546 TEST_TYPE_SIZE (LPNMHDR, 8)
1547 TEST_TYPE_ALIGN (LPNMHDR, 8)
1548 TEST_TARGET_SIZE (LPNMHDR, 24)
1549 TEST_TARGET_ALIGN(LPNMHDR, 8)
1550 }
1551
1552 static void test_pack_LPNONCLIENTMETRICSA(void)
1553 {
1554 /* LPNONCLIENTMETRICSA */
1555 TEST_TYPE_SIZE (LPNONCLIENTMETRICSA, 8)
1556 TEST_TYPE_ALIGN (LPNONCLIENTMETRICSA, 8)
1557 TEST_TARGET_SIZE (LPNONCLIENTMETRICSA, 344)
1558 TEST_TARGET_ALIGN(LPNONCLIENTMETRICSA, 4)
1559 }
1560
1561 static void test_pack_LPNONCLIENTMETRICSW(void)
1562 {
1563 /* LPNONCLIENTMETRICSW */
1564 TEST_TYPE_SIZE (LPNONCLIENTMETRICSW, 8)
1565 TEST_TYPE_ALIGN (LPNONCLIENTMETRICSW, 8)
1566 TEST_TARGET_SIZE (LPNONCLIENTMETRICSW, 504)
1567 TEST_TARGET_ALIGN(LPNONCLIENTMETRICSW, 4)
1568 }
1569
1570 static void test_pack_LPPAINTSTRUCT(void)
1571 {
1572 /* LPPAINTSTRUCT */
1573 TEST_TYPE_SIZE (LPPAINTSTRUCT, 8)
1574 TEST_TYPE_ALIGN (LPPAINTSTRUCT, 8)
1575 TEST_TARGET_SIZE (LPPAINTSTRUCT, 72)
1576 TEST_TARGET_ALIGN(LPPAINTSTRUCT, 8)
1577 }
1578
1579 static void test_pack_LPSCROLLINFO(void)
1580 {
1581 /* LPSCROLLINFO */
1582 TEST_TYPE_SIZE (LPSCROLLINFO, 8)
1583 TEST_TYPE_ALIGN (LPSCROLLINFO, 8)
1584 TEST_TARGET_SIZE (LPSCROLLINFO, 28)
1585 TEST_TARGET_ALIGN(LPSCROLLINFO, 4)
1586 }
1587
1588 static void test_pack_LPSERIALKEYSA(void)
1589 {
1590 /* LPSERIALKEYSA */
1591 TEST_TYPE_SIZE (LPSERIALKEYSA, 8)
1592 TEST_TYPE_ALIGN (LPSERIALKEYSA, 8)
1593 TEST_TARGET_SIZE (LPSERIALKEYSA, 40)
1594 TEST_TARGET_ALIGN(LPSERIALKEYSA, 8)
1595 }
1596
1597 static void test_pack_LPSERIALKEYSW(void)
1598 {
1599 /* LPSERIALKEYSW */
1600 TEST_TYPE_SIZE (LPSERIALKEYSW, 8)
1601 TEST_TYPE_ALIGN (LPSERIALKEYSW, 8)
1602 TEST_TARGET_SIZE (LPSERIALKEYSW, 40)
1603 TEST_TARGET_ALIGN(LPSERIALKEYSW, 8)
1604 }
1605
1606 static void test_pack_LPSOUNDSENTRYA(void)
1607 {
1608 /* LPSOUNDSENTRYA */
1609 TEST_TYPE_SIZE (LPSOUNDSENTRYA, 8)
1610 TEST_TYPE_ALIGN (LPSOUNDSENTRYA, 8)
1611 TEST_TARGET_SIZE (LPSOUNDSENTRYA, 56)
1612 TEST_TARGET_ALIGN(LPSOUNDSENTRYA, 8)
1613 }
1614
1615 static void test_pack_LPSOUNDSENTRYW(void)
1616 {
1617 /* LPSOUNDSENTRYW */
1618 TEST_TYPE_SIZE (LPSOUNDSENTRYW, 8)
1619 TEST_TYPE_ALIGN (LPSOUNDSENTRYW, 8)
1620 TEST_TARGET_SIZE (LPSOUNDSENTRYW, 56)
1621 TEST_TARGET_ALIGN(LPSOUNDSENTRYW, 8)
1622 }
1623
1624 static void test_pack_LPSTICKYKEYS(void)
1625 {
1626 /* LPSTICKYKEYS */
1627 TEST_TYPE_SIZE (LPSTICKYKEYS, 8)
1628 TEST_TYPE_ALIGN (LPSTICKYKEYS, 8)
1629 TEST_TARGET_SIZE (LPSTICKYKEYS, 8)
1630 TEST_TARGET_ALIGN(LPSTICKYKEYS, 4)
1631 }
1632
1633 static void test_pack_LPSTYLESTRUCT(void)
1634 {
1635 /* LPSTYLESTRUCT */
1636 TEST_TYPE_SIZE (LPSTYLESTRUCT, 8)
1637 TEST_TYPE_ALIGN (LPSTYLESTRUCT, 8)
1638 TEST_TARGET_SIZE (LPSTYLESTRUCT, 8)
1639 TEST_TARGET_ALIGN(LPSTYLESTRUCT, 4)
1640 }
1641
1642 static void test_pack_LPTITLEBARINFO(void)
1643 {
1644 /* LPTITLEBARINFO */
1645 TEST_TYPE_SIZE (LPTITLEBARINFO, 8)
1646 TEST_TYPE_ALIGN (LPTITLEBARINFO, 8)
1647 TEST_TARGET_SIZE (LPTITLEBARINFO, 44)
1648 TEST_TARGET_ALIGN(LPTITLEBARINFO, 4)
1649 }
1650
1651 static void test_pack_LPTOGGLEKEYS(void)
1652 {
1653 /* LPTOGGLEKEYS */
1654 TEST_TYPE_SIZE (LPTOGGLEKEYS, 8)
1655 TEST_TYPE_ALIGN (LPTOGGLEKEYS, 8)
1656 TEST_TARGET_SIZE (LPTOGGLEKEYS, 8)
1657 TEST_TARGET_ALIGN(LPTOGGLEKEYS, 4)
1658 }
1659
1660 static void test_pack_LPTPMPARAMS(void)
1661 {
1662 /* LPTPMPARAMS */
1663 TEST_TYPE_SIZE (LPTPMPARAMS, 8)
1664 TEST_TYPE_ALIGN (LPTPMPARAMS, 8)
1665 TEST_TARGET_SIZE (LPTPMPARAMS, 20)
1666 TEST_TARGET_ALIGN(LPTPMPARAMS, 4)
1667 }
1668
1669 static void test_pack_LPTRACKMOUSEEVENT(void)
1670 {
1671 /* LPTRACKMOUSEEVENT */
1672 TEST_TYPE_SIZE (LPTRACKMOUSEEVENT, 8)
1673 TEST_TYPE_ALIGN (LPTRACKMOUSEEVENT, 8)
1674 TEST_TARGET_SIZE (LPTRACKMOUSEEVENT, 24)
1675 TEST_TARGET_ALIGN(LPTRACKMOUSEEVENT, 8)
1676 }
1677
1678 static void test_pack_LPWINDOWINFO(void)
1679 {
1680 /* LPWINDOWINFO */
1681 TEST_TYPE_SIZE (LPWINDOWINFO, 8)
1682 TEST_TYPE_ALIGN (LPWINDOWINFO, 8)
1683 TEST_TARGET_SIZE (LPWINDOWINFO, 60)
1684 TEST_TARGET_ALIGN(LPWINDOWINFO, 4)
1685 }
1686
1687 static void test_pack_LPWINDOWPLACEMENT(void)
1688 {
1689 /* LPWINDOWPLACEMENT */
1690 TEST_TYPE_SIZE (LPWINDOWPLACEMENT, 8)
1691 TEST_TYPE_ALIGN (LPWINDOWPLACEMENT, 8)
1692 TEST_TARGET_SIZE (LPWINDOWPLACEMENT, 44)
1693 TEST_TARGET_ALIGN(LPWINDOWPLACEMENT, 4)
1694 }
1695
1696 static void test_pack_LPWINDOWPOS(void)
1697 {
1698 /* LPWINDOWPOS */
1699 TEST_TYPE_SIZE (LPWINDOWPOS, 8)
1700 TEST_TYPE_ALIGN (LPWINDOWPOS, 8)
1701 TEST_TARGET_SIZE (LPWINDOWPOS, 40)
1702 TEST_TARGET_ALIGN(LPWINDOWPOS, 8)
1703 }
1704
1705 static void test_pack_LPWNDCLASSA(void)
1706 {
1707 /* LPWNDCLASSA */
1708 TEST_TYPE_SIZE (LPWNDCLASSA, 8)
1709 TEST_TYPE_ALIGN (LPWNDCLASSA, 8)
1710 TEST_TARGET_SIZE (LPWNDCLASSA, 72)
1711 TEST_TARGET_ALIGN(LPWNDCLASSA, 8)
1712 }
1713
1714 static void test_pack_LPWNDCLASSEXA(void)
1715 {
1716 /* LPWNDCLASSEXA */
1717 TEST_TYPE_SIZE (LPWNDCLASSEXA, 8)
1718 TEST_TYPE_ALIGN (LPWNDCLASSEXA, 8)
1719 TEST_TARGET_SIZE (LPWNDCLASSEXA, 80)
1720 TEST_TARGET_ALIGN(LPWNDCLASSEXA, 8)
1721 }
1722
1723 static void test_pack_LPWNDCLASSEXW(void)
1724 {
1725 /* LPWNDCLASSEXW */
1726 TEST_TYPE_SIZE (LPWNDCLASSEXW, 8)
1727 TEST_TYPE_ALIGN (LPWNDCLASSEXW, 8)
1728 TEST_TARGET_SIZE (LPWNDCLASSEXW, 80)
1729 TEST_TARGET_ALIGN(LPWNDCLASSEXW, 8)
1730 }
1731
1732 static void test_pack_LPWNDCLASSW(void)
1733 {
1734 /* LPWNDCLASSW */
1735 TEST_TYPE_SIZE (LPWNDCLASSW, 8)
1736 TEST_TYPE_ALIGN (LPWNDCLASSW, 8)
1737 TEST_TARGET_SIZE (LPWNDCLASSW, 72)
1738 TEST_TARGET_ALIGN(LPWNDCLASSW, 8)
1739 }
1740
1741 static void test_pack_MDICREATESTRUCTA(void)
1742 {
1743 /* MDICREATESTRUCTA */
1744 TEST_TYPE_SIZE (MDICREATESTRUCTA, 56)
1745 TEST_TYPE_ALIGN (MDICREATESTRUCTA, 8)
1746 TEST_FIELD_SIZE (MDICREATESTRUCTA, szClass, 8)
1747 TEST_FIELD_ALIGN (MDICREATESTRUCTA, szClass, 8)
1748 TEST_FIELD_OFFSET(MDICREATESTRUCTA, szClass, 0)
1749 TEST_FIELD_SIZE (MDICREATESTRUCTA, szTitle, 8)
1750 TEST_FIELD_ALIGN (MDICREATESTRUCTA, szTitle, 8)
1751 TEST_FIELD_OFFSET(MDICREATESTRUCTA, szTitle, 8)
1752 TEST_FIELD_SIZE (MDICREATESTRUCTA, hOwner, 8)
1753 TEST_FIELD_ALIGN (MDICREATESTRUCTA, hOwner, 8)
1754 TEST_FIELD_OFFSET(MDICREATESTRUCTA, hOwner, 16)
1755 TEST_FIELD_SIZE (MDICREATESTRUCTA, x, 4)
1756 TEST_FIELD_ALIGN (MDICREATESTRUCTA, x, 4)
1757 TEST_FIELD_OFFSET(MDICREATESTRUCTA, x, 24)
1758 TEST_FIELD_SIZE (MDICREATESTRUCTA, y, 4)
1759 TEST_FIELD_ALIGN (MDICREATESTRUCTA, y, 4)
1760 TEST_FIELD_OFFSET(MDICREATESTRUCTA, y, 28)
1761 TEST_FIELD_SIZE (MDICREATESTRUCTA, cx, 4)
1762 TEST_FIELD_ALIGN (MDICREATESTRUCTA, cx, 4)
1763 TEST_FIELD_OFFSET(MDICREATESTRUCTA, cx, 32)
1764 TEST_FIELD_SIZE (MDICREATESTRUCTA, cy, 4)
1765 TEST_FIELD_ALIGN (MDICREATESTRUCTA, cy, 4)
1766 TEST_FIELD_OFFSET(MDICREATESTRUCTA, cy, 36)
1767 TEST_FIELD_SIZE (MDICREATESTRUCTA, style, 4)
1768 TEST_FIELD_ALIGN (MDICREATESTRUCTA, style, 4)
1769 TEST_FIELD_OFFSET(MDICREATESTRUCTA, style, 40)
1770 TEST_FIELD_SIZE (MDICREATESTRUCTA, lParam, 8)
1771 TEST_FIELD_ALIGN (MDICREATESTRUCTA, lParam, 8)
1772 TEST_FIELD_OFFSET(MDICREATESTRUCTA, lParam, 48)
1773 }
1774
1775 static void test_pack_MDICREATESTRUCTW(void)
1776 {
1777 /* MDICREATESTRUCTW */
1778 TEST_TYPE_SIZE (MDICREATESTRUCTW, 56)
1779 TEST_TYPE_ALIGN (MDICREATESTRUCTW, 8)
1780 TEST_FIELD_SIZE (MDICREATESTRUCTW, szClass, 8)
1781 TEST_FIELD_ALIGN (MDICREATESTRUCTW, szClass, 8)
1782 TEST_FIELD_OFFSET(MDICREATESTRUCTW, szClass, 0)
1783 TEST_FIELD_SIZE (MDICREATESTRUCTW, szTitle, 8)
1784 TEST_FIELD_ALIGN (MDICREATESTRUCTW, szTitle, 8)
1785 TEST_FIELD_OFFSET(MDICREATESTRUCTW, szTitle, 8)
1786 TEST_FIELD_SIZE (MDICREATESTRUCTW, hOwner, 8)
1787 TEST_FIELD_ALIGN (MDICREATESTRUCTW, hOwner, 8)
1788 TEST_FIELD_OFFSET(MDICREATESTRUCTW, hOwner, 16)
1789 TEST_FIELD_SIZE (MDICREATESTRUCTW, x, 4)
1790 TEST_FIELD_ALIGN (MDICREATESTRUCTW, x, 4)
1791 TEST_FIELD_OFFSET(MDICREATESTRUCTW, x, 24)
1792 TEST_FIELD_SIZE (MDICREATESTRUCTW, y, 4)
1793 TEST_FIELD_ALIGN (MDICREATESTRUCTW, y, 4)
1794 TEST_FIELD_OFFSET(MDICREATESTRUCTW, y, 28)
1795 TEST_FIELD_SIZE (MDICREATESTRUCTW, cx, 4)
1796 TEST_FIELD_ALIGN (MDICREATESTRUCTW, cx, 4)
1797 TEST_FIELD_OFFSET(MDICREATESTRUCTW, cx, 32)
1798 TEST_FIELD_SIZE (MDICREATESTRUCTW, cy, 4)
1799 TEST_FIELD_ALIGN (MDICREATESTRUCTW, cy, 4)
1800 TEST_FIELD_OFFSET(MDICREATESTRUCTW, cy, 36)
1801 TEST_FIELD_SIZE (MDICREATESTRUCTW, style, 4)
1802 TEST_FIELD_ALIGN (MDICREATESTRUCTW, style, 4)
1803 TEST_FIELD_OFFSET(MDICREATESTRUCTW, style, 40)
1804 TEST_FIELD_SIZE (MDICREATESTRUCTW, lParam, 8)
1805 TEST_FIELD_ALIGN (MDICREATESTRUCTW, lParam, 8)
1806 TEST_FIELD_OFFSET(MDICREATESTRUCTW, lParam, 48)
1807 }
1808
1809 static void test_pack_MDINEXTMENU(void)
1810 {
1811 /* MDINEXTMENU */
1812 TEST_TYPE_SIZE (MDINEXTMENU, 24)
1813 TEST_TYPE_ALIGN (MDINEXTMENU, 8)
1814 TEST_FIELD_SIZE (MDINEXTMENU, hmenuIn, 8)
1815 TEST_FIELD_ALIGN (MDINEXTMENU, hmenuIn, 8)
1816 TEST_FIELD_OFFSET(MDINEXTMENU, hmenuIn, 0)
1817 TEST_FIELD_SIZE (MDINEXTMENU, hmenuNext, 8)
1818 TEST_FIELD_ALIGN (MDINEXTMENU, hmenuNext, 8)
1819 TEST_FIELD_OFFSET(MDINEXTMENU, hmenuNext, 8)
1820 TEST_FIELD_SIZE (MDINEXTMENU, hwndNext, 8)
1821 TEST_FIELD_ALIGN (MDINEXTMENU, hwndNext, 8)
1822 TEST_FIELD_OFFSET(MDINEXTMENU, hwndNext, 16)
1823 }
1824
1825 static void test_pack_MEASUREITEMSTRUCT(void)
1826 {
1827 /* MEASUREITEMSTRUCT */
1828 TEST_TYPE_SIZE (MEASUREITEMSTRUCT, 32)
1829 TEST_TYPE_ALIGN (MEASUREITEMSTRUCT, 8)
1830 TEST_FIELD_SIZE (MEASUREITEMSTRUCT, CtlType, 4)
1831 TEST_FIELD_ALIGN (MEASUREITEMSTRUCT, CtlType, 4)
1832 TEST_FIELD_OFFSET(MEASUREITEMSTRUCT, CtlType, 0)
1833 TEST_FIELD_SIZE (MEASUREITEMSTRUCT, CtlID, 4)
1834 TEST_FIELD_ALIGN (MEASUREITEMSTRUCT, CtlID, 4)
1835 TEST_FIELD_OFFSET(MEASUREITEMSTRUCT, CtlID, 4)
1836 TEST_FIELD_SIZE (MEASUREITEMSTRUCT, itemID, 4)
1837 TEST_FIELD_ALIGN (MEASUREITEMSTRUCT, itemID, 4)
1838 TEST_FIELD_OFFSET(MEASUREITEMSTRUCT, itemID, 8)
1839 TEST_FIELD_SIZE (MEASUREITEMSTRUCT, itemWidth, 4)
1840 TEST_FIELD_ALIGN (MEASUREITEMSTRUCT, itemWidth, 4)
1841 TEST_FIELD_OFFSET(MEASUREITEMSTRUCT, itemWidth, 12)
1842 TEST_FIELD_SIZE (MEASUREITEMSTRUCT, itemHeight, 4)
1843 TEST_FIELD_ALIGN (MEASUREITEMSTRUCT, itemHeight, 4)
1844 TEST_FIELD_OFFSET(MEASUREITEMSTRUCT, itemHeight, 16)
1845 TEST_FIELD_SIZE (MEASUREITEMSTRUCT, itemData, 8)
1846 TEST_FIELD_ALIGN (MEASUREITEMSTRUCT, itemData, 8)
1847 TEST_FIELD_OFFSET(MEASUREITEMSTRUCT, itemData, 24)
1848 }
1849
1850 static void test_pack_MENUINFO(void)
1851 {
1852 /* MENUINFO */
1853 TEST_TYPE_SIZE (MENUINFO, 40)
1854 TEST_TYPE_ALIGN (MENUINFO, 8)
1855 TEST_FIELD_SIZE (MENUINFO, cbSize, 4)
1856 TEST_FIELD_ALIGN (MENUINFO, cbSize, 4)
1857 TEST_FIELD_OFFSET(MENUINFO, cbSize, 0)
1858 TEST_FIELD_SIZE (MENUINFO, fMask, 4)
1859 TEST_FIELD_ALIGN (MENUINFO, fMask, 4)
1860 TEST_FIELD_OFFSET(MENUINFO, fMask, 4)
1861 TEST_FIELD_SIZE (MENUINFO, dwStyle, 4)
1862 TEST_FIELD_ALIGN (MENUINFO, dwStyle, 4)
1863 TEST_FIELD_OFFSET(MENUINFO, dwStyle, 8)
1864 TEST_FIELD_SIZE (MENUINFO, cyMax, 4)
1865 TEST_FIELD_ALIGN (MENUINFO, cyMax, 4)
1866 TEST_FIELD_OFFSET(MENUINFO, cyMax, 12)
1867 TEST_FIELD_SIZE (MENUINFO, hbrBack, 8)
1868 TEST_FIELD_ALIGN (MENUINFO, hbrBack, 8)
1869 TEST_FIELD_OFFSET(MENUINFO, hbrBack, 16)
1870 TEST_FIELD_SIZE (MENUINFO, dwContextHelpID, 4)
1871 TEST_FIELD_ALIGN (MENUINFO, dwContextHelpID, 4)
1872 TEST_FIELD_OFFSET(MENUINFO, dwContextHelpID, 24)
1873 TEST_FIELD_SIZE (MENUINFO, dwMenuData, 8)
1874 TEST_FIELD_ALIGN (MENUINFO, dwMenuData, 8)
1875 TEST_FIELD_OFFSET(MENUINFO, dwMenuData, 32)
1876 }
1877
1878 static void test_pack_MENUITEMINFOA(void)
1879 {
1880 /* MENUITEMINFOA */
1881 TEST_TYPE_SIZE (MENUITEMINFOA, 80)
1882 TEST_TYPE_ALIGN (MENUITEMINFOA, 8)
1883 TEST_FIELD_SIZE (MENUITEMINFOA, cbSize, 4)
1884 TEST_FIELD_ALIGN (MENUITEMINFOA, cbSize, 4)
1885 TEST_FIELD_OFFSET(MENUITEMINFOA, cbSize, 0)
1886 TEST_FIELD_SIZE (MENUITEMINFOA, fMask, 4)
1887 TEST_FIELD_ALIGN (MENUITEMINFOA, fMask, 4)
1888 TEST_FIELD_OFFSET(MENUITEMINFOA, fMask, 4)
1889 TEST_FIELD_SIZE (MENUITEMINFOA, fType, 4)
1890 TEST_FIELD_ALIGN (MENUITEMINFOA, fType, 4)
1891 TEST_FIELD_OFFSET(MENUITEMINFOA, fType, 8)
1892 TEST_FIELD_SIZE (MENUITEMINFOA, fState, 4)
1893 TEST_FIELD_ALIGN (MENUITEMINFOA, fState, 4)
1894 TEST_FIELD_OFFSET(MENUITEMINFOA, fState, 12)
1895 TEST_FIELD_SIZE (MENUITEMINFOA, wID, 4)
1896 TEST_FIELD_ALIGN (MENUITEMINFOA, wID, 4)
1897 TEST_FIELD_OFFSET(MENUITEMINFOA, wID, 16)
1898 TEST_FIELD_SIZE (MENUITEMINFOA, hSubMenu, 8)
1899 TEST_FIELD_ALIGN (MENUITEMINFOA, hSubMenu, 8)
1900 TEST_FIELD_OFFSET(MENUITEMINFOA, hSubMenu, 24)
1901 TEST_FIELD_SIZE (MENUITEMINFOA, hbmpChecked, 8)
1902 TEST_FIELD_ALIGN (MENUITEMINFOA, hbmpChecked, 8)
1903 TEST_FIELD_OFFSET(MENUITEMINFOA, hbmpChecked, 32)
1904 TEST_FIELD_SIZE (MENUITEMINFOA, hbmpUnchecked, 8)
1905 TEST_FIELD_ALIGN (MENUITEMINFOA, hbmpUnchecked, 8)
1906 TEST_FIELD_OFFSET(MENUITEMINFOA, hbmpUnchecked, 40)
1907 TEST_FIELD_SIZE (MENUITEMINFOA, dwItemData, 8)
1908 TEST_FIELD_ALIGN (MENUITEMINFOA, dwItemData, 8)
1909 TEST_FIELD_OFFSET(MENUITEMINFOA, dwItemData, 48)
1910 TEST_FIELD_SIZE (MENUITEMINFOA, dwTypeData, 8)
1911 TEST_FIELD_ALIGN (MENUITEMINFOA, dwTypeData, 8)
1912 TEST_FIELD_OFFSET(MENUITEMINFOA, dwTypeData, 56)
1913 TEST_FIELD_SIZE (MENUITEMINFOA, cch, 4)
1914 TEST_FIELD_ALIGN (MENUITEMINFOA, cch, 4)
1915 TEST_FIELD_OFFSET(MENUITEMINFOA, cch, 64)
1916 TEST_FIELD_SIZE (MENUITEMINFOA, hbmpItem, 8)
1917 TEST_FIELD_ALIGN (MENUITEMINFOA, hbmpItem, 8)
1918 TEST_FIELD_OFFSET(MENUITEMINFOA, hbmpItem, 72)
1919 }
1920
1921 static void test_pack_MENUITEMINFOW(void)
1922 {
1923 /* MENUITEMINFOW */
1924 TEST_TYPE_SIZE (MENUITEMINFOW, 80)
1925 TEST_TYPE_ALIGN (MENUITEMINFOW, 8)
1926 TEST_FIELD_SIZE (MENUITEMINFOW, cbSize, 4)
1927 TEST_FIELD_ALIGN (MENUITEMINFOW, cbSize, 4)
1928 TEST_FIELD_OFFSET(MENUITEMINFOW, cbSize, 0)
1929 TEST_FIELD_SIZE (MENUITEMINFOW, fMask, 4)
1930 TEST_FIELD_ALIGN (MENUITEMINFOW, fMask, 4)
1931 TEST_FIELD_OFFSET(MENUITEMINFOW, fMask, 4)
1932 TEST_FIELD_SIZE (MENUITEMINFOW, fType, 4)
1933 TEST_FIELD_ALIGN (MENUITEMINFOW, fType, 4)
1934 TEST_FIELD_OFFSET(MENUITEMINFOW, fType, 8)
1935 TEST_FIELD_SIZE (MENUITEMINFOW, fState, 4)
1936 TEST_FIELD_ALIGN (MENUITEMINFOW, fState, 4)
1937 TEST_FIELD_OFFSET(MENUITEMINFOW, fState, 12)
1938 TEST_FIELD_SIZE (MENUITEMINFOW, wID, 4)
1939 TEST_FIELD_ALIGN (MENUITEMINFOW, wID, 4)
1940 TEST_FIELD_OFFSET(MENUITEMINFOW, wID, 16)
1941 TEST_FIELD_SIZE (MENUITEMINFOW, hSubMenu, 8)
1942 TEST_FIELD_ALIGN (MENUITEMINFOW, hSubMenu, 8)
1943 TEST_FIELD_OFFSET(MENUITEMINFOW, hSubMenu, 24)
1944 TEST_FIELD_SIZE (MENUITEMINFOW, hbmpChecked, 8)
1945 TEST_FIELD_ALIGN (MENUITEMINFOW, hbmpChecked, 8)
1946 TEST_FIELD_OFFSET(MENUITEMINFOW, hbmpChecked, 32)
1947 TEST_FIELD_SIZE (MENUITEMINFOW, hbmpUnchecked, 8)
1948 TEST_FIELD_ALIGN (MENUITEMINFOW, hbmpUnchecked, 8)
1949 TEST_FIELD_OFFSET(MENUITEMINFOW, hbmpUnchecked, 40)
1950 TEST_FIELD_SIZE (MENUITEMINFOW, dwItemData, 8)
1951 TEST_FIELD_ALIGN (MENUITEMINFOW, dwItemData, 8)
1952 TEST_FIELD_OFFSET(MENUITEMINFOW, dwItemData, 48)
1953 TEST_FIELD_SIZE (MENUITEMINFOW, dwTypeData, 8)
1954 TEST_FIELD_ALIGN (MENUITEMINFOW, dwTypeData, 8)
1955 TEST_FIELD_OFFSET(MENUITEMINFOW, dwTypeData, 56)
1956 TEST_FIELD_SIZE (MENUITEMINFOW, cch, 4)
1957 TEST_FIELD_ALIGN (MENUITEMINFOW, cch, 4)
1958 TEST_FIELD_OFFSET(MENUITEMINFOW, cch, 64)
1959 TEST_FIELD_SIZE (MENUITEMINFOW, hbmpItem, 8)
1960 TEST_FIELD_ALIGN (MENUITEMINFOW, hbmpItem, 8)
1961 TEST_FIELD_OFFSET(MENUITEMINFOW, hbmpItem, 72)
1962 }
1963
1964 static void test_pack_MENUITEMTEMPLATE(void)
1965 {
1966 /* MENUITEMTEMPLATE */
1967 TEST_TYPE_SIZE (MENUITEMTEMPLATE, 6)
1968 TEST_TYPE_ALIGN (MENUITEMTEMPLATE, 2)
1969 TEST_FIELD_SIZE (MENUITEMTEMPLATE, mtOption, 2)
1970 TEST_FIELD_ALIGN (MENUITEMTEMPLATE, mtOption, 2)
1971 TEST_FIELD_OFFSET(MENUITEMTEMPLATE, mtOption, 0)
1972 TEST_FIELD_SIZE (MENUITEMTEMPLATE, mtID, 2)
1973 TEST_FIELD_ALIGN (MENUITEMTEMPLATE, mtID, 2)
1974 TEST_FIELD_OFFSET(MENUITEMTEMPLATE, mtID, 2)
1975 TEST_FIELD_SIZE (MENUITEMTEMPLATE, mtString, 2)
1976 TEST_FIELD_ALIGN (MENUITEMTEMPLATE, mtString, 2)
1977 TEST_FIELD_OFFSET(MENUITEMTEMPLATE, mtString, 4)
1978 }
1979
1980 static void test_pack_MENUITEMTEMPLATEHEADER(void)
1981 {
1982 /* MENUITEMTEMPLATEHEADER */
1983 TEST_TYPE_SIZE (MENUITEMTEMPLATEHEADER, 4)
1984 TEST_TYPE_ALIGN (MENUITEMTEMPLATEHEADER, 2)
1985 TEST_FIELD_SIZE (MENUITEMTEMPLATEHEADER, versionNumber, 2)
1986 TEST_FIELD_ALIGN (MENUITEMTEMPLATEHEADER, versionNumber, 2)
1987 TEST_FIELD_OFFSET(MENUITEMTEMPLATEHEADER, versionNumber, 0)
1988 TEST_FIELD_SIZE (MENUITEMTEMPLATEHEADER, offset, 2)
1989 TEST_FIELD_ALIGN (MENUITEMTEMPLATEHEADER, offset, 2)
1990 TEST_FIELD_OFFSET(MENUITEMTEMPLATEHEADER, offset, 2)
1991 }
1992
1993 static void test_pack_MINIMIZEDMETRICS(void)
1994 {
1995 /* MINIMIZEDMETRICS */
1996 TEST_TYPE_SIZE (MINIMIZEDMETRICS, 20)
1997 TEST_TYPE_ALIGN (MINIMIZEDMETRICS, 4)
1998 TEST_FIELD_SIZE (MINIMIZEDMETRICS, cbSize, 4)
1999 TEST_FIELD_ALIGN (MINIMIZEDMETRICS, cbSize, 4)
2000 TEST_FIELD_OFFSET(MINIMIZEDMETRICS, cbSize, 0)
2001 TEST_FIELD_SIZE (MINIMIZEDMETRICS, iWidth, 4)
2002 TEST_FIELD_ALIGN (MINIMIZEDMETRICS, iWidth, 4)
2003 TEST_FIELD_OFFSET(MINIMIZEDMETRICS, iWidth, 4)
2004 TEST_FIELD_SIZE (MINIMIZEDMETRICS, iHorzGap, 4)
2005 TEST_FIELD_ALIGN (MINIMIZEDMETRICS, iHorzGap, 4)
2006 TEST_FIELD_OFFSET(MINIMIZEDMETRICS, iHorzGap, 8)
2007 TEST_FIELD_SIZE (MINIMIZEDMETRICS, iVertGap, 4)
2008 TEST_FIELD_ALIGN (MINIMIZEDMETRICS, iVertGap, 4)
2009 TEST_FIELD_OFFSET(MINIMIZEDMETRICS, iVertGap, 12)
2010 TEST_FIELD_SIZE (MINIMIZEDMETRICS, iArrange, 4)
2011 TEST_FIELD_ALIGN (MINIMIZEDMETRICS, iArrange, 4)
2012 TEST_FIELD_OFFSET(MINIMIZEDMETRICS, iArrange, 16)
2013 }
2014
2015 static void test_pack_MINMAXINFO(void)
2016 {
2017 /* MINMAXINFO */
2018 TEST_TYPE_SIZE (MINMAXINFO, 40)
2019 TEST_TYPE_ALIGN (MINMAXINFO, 4)
2020 TEST_FIELD_SIZE (MINMAXINFO, ptReserved, 8)
2021 TEST_FIELD_ALIGN (MINMAXINFO, ptReserved, 4)
2022 TEST_FIELD_OFFSET(MINMAXINFO, ptReserved, 0)
2023 TEST_FIELD_SIZE (MINMAXINFO, ptMaxSize, 8)
2024 TEST_FIELD_ALIGN (MINMAXINFO, ptMaxSize, 4)
2025 TEST_FIELD_OFFSET(MINMAXINFO, ptMaxSize, 8)
2026 TEST_FIELD_SIZE (MINMAXINFO, ptMaxPosition, 8)
2027 TEST_FIELD_ALIGN (MINMAXINFO, ptMaxPosition, 4)
2028 TEST_FIELD_OFFSET(MINMAXINFO, ptMaxPosition, 16)
2029 TEST_FIELD_SIZE (MINMAXINFO, ptMinTrackSize, 8)
2030 TEST_FIELD_ALIGN (MINMAXINFO, ptMinTrackSize, 4)
2031 TEST_FIELD_OFFSET(MINMAXINFO, ptMinTrackSize, 24)
2032 TEST_FIELD_SIZE (MINMAXINFO, ptMaxTrackSize, 8)
2033 TEST_FIELD_ALIGN (MINMAXINFO, ptMaxTrackSize, 4)
2034 TEST_FIELD_OFFSET(MINMAXINFO, ptMaxTrackSize, 32)
2035 }
2036
2037 static void test_pack_MONITORENUMPROC(void)
2038 {
2039 /* MONITORENUMPROC */
2040 TEST_TYPE_SIZE (MONITORENUMPROC, 8)
2041 TEST_TYPE_ALIGN (MONITORENUMPROC, 8)
2042 }
2043
2044 static void test_pack_MONITORINFO(void)
2045 {
2046 /* MONITORINFO */
2047 TEST_TYPE_SIZE (MONITORINFO, 40)
2048 TEST_TYPE_ALIGN (MONITORINFO, 4)
2049 TEST_FIELD_SIZE (MONITORINFO, cbSize, 4)
2050 TEST_FIELD_ALIGN (MONITORINFO, cbSize, 4)
2051 TEST_FIELD_OFFSET(MONITORINFO, cbSize, 0)
2052 TEST_FIELD_SIZE (MONITORINFO, rcMonitor, 16)
2053 TEST_FIELD_ALIGN (MONITORINFO, rcMonitor, 4)
2054 TEST_FIELD_OFFSET(MONITORINFO, rcMonitor, 4)
2055 TEST_FIELD_SIZE (MONITORINFO, rcWork, 16)
2056 TEST_FIELD_ALIGN (MONITORINFO, rcWork, 4)
2057 TEST_FIELD_OFFSET(MONITORINFO, rcWork, 20)
2058 TEST_FIELD_SIZE (MONITORINFO, dwFlags, 4)
2059 TEST_FIELD_ALIGN (MONITORINFO, dwFlags, 4)
2060 TEST_FIELD_OFFSET(MONITORINFO, dwFlags, 36)
2061 }
2062
2063 static void test_pack_MONITORINFOEXA(void)
2064 {
2065 /* MONITORINFOEXA */
2066 TEST_TYPE_SIZE (MONITORINFOEXA, 72)
2067 TEST_TYPE_ALIGN (MONITORINFOEXA, 4)
2068 TEST_FIELD_SIZE (MONITORINFOEXA, cbSize, 4)
2069 TEST_FIELD_ALIGN (MONITORINFOEXA, cbSize, 4)
2070 TEST_FIELD_OFFSET(MONITORINFOEXA, cbSize, 0)
2071 TEST_FIELD_SIZE (MONITORINFOEXA, rcMonitor, 16)
2072 TEST_FIELD_ALIGN (MONITORINFOEXA, rcMonitor, 4)
2073 TEST_FIELD_OFFSET(MONITORINFOEXA, rcMonitor, 4)
2074 TEST_FIELD_SIZE (MONITORINFOEXA, rcWork, 16)
2075 TEST_FIELD_ALIGN (MONITORINFOEXA, rcWork, 4)
2076 TEST_FIELD_OFFSET(MONITORINFOEXA, rcWork, 20)
2077 TEST_FIELD_SIZE (MONITORINFOEXA, dwFlags, 4)
2078 TEST_FIELD_ALIGN (MONITORINFOEXA, dwFlags, 4)
2079 TEST_FIELD_OFFSET(MONITORINFOEXA, dwFlags, 36)
2080 TEST_FIELD_SIZE (MONITORINFOEXA, szDevice, 32)
2081 TEST_FIELD_ALIGN (MONITORINFOEXA, szDevice, 1)
2082 TEST_FIELD_OFFSET(MONITORINFOEXA, szDevice, 40)
2083 }
2084
2085 static void test_pack_MONITORINFOEXW(void)
2086 {
2087 /* MONITORINFOEXW */
2088 TEST_TYPE_SIZE (MONITORINFOEXW, 104)
2089 TEST_TYPE_ALIGN (MONITORINFOEXW, 4)
2090 TEST_FIELD_SIZE (MONITORINFOEXW, cbSize, 4)
2091 TEST_FIELD_ALIGN (MONITORINFOEXW, cbSize, 4)
2092 TEST_FIELD_OFFSET(MONITORINFOEXW, cbSize, 0)
2093 TEST_FIELD_SIZE (MONITORINFOEXW, rcMonitor, 16)
2094 TEST_FIELD_ALIGN (MONITORINFOEXW, rcMonitor, 4)
2095 TEST_FIELD_OFFSET(MONITORINFOEXW, rcMonitor, 4)
2096 TEST_FIELD_SIZE (MONITORINFOEXW, rcWork, 16)
2097 TEST_FIELD_ALIGN (MONITORINFOEXW, rcWork, 4)
2098 TEST_FIELD_OFFSET(MONITORINFOEXW, rcWork, 20)
2099 TEST_FIELD_SIZE (MONITORINFOEXW, dwFlags, 4)
2100 TEST_FIELD_ALIGN (MONITORINFOEXW, dwFlags, 4)
2101 TEST_FIELD_OFFSET(MONITORINFOEXW, dwFlags, 36)
2102 TEST_FIELD_SIZE (MONITORINFOEXW, szDevice, 64)
2103 TEST_FIELD_ALIGN (MONITORINFOEXW, szDevice, 2)
2104 TEST_FIELD_OFFSET(MONITORINFOEXW, szDevice, 40)
2105 }
2106
2107 static void test_pack_MOUSEHOOKSTRUCT(void)
2108 {
2109 /* MOUSEHOOKSTRUCT */
2110 TEST_TYPE_SIZE (MOUSEHOOKSTRUCT, 32)
2111 TEST_TYPE_ALIGN (MOUSEHOOKSTRUCT, 8)
2112 TEST_FIELD_SIZE (MOUSEHOOKSTRUCT, pt, 8)
2113 TEST_FIELD_ALIGN (MOUSEHOOKSTRUCT, pt, 4)
2114 TEST_FIELD_OFFSET(MOUSEHOOKSTRUCT, pt, 0)
2115 TEST_FIELD_SIZE (MOUSEHOOKSTRUCT, hwnd, 8)
2116 TEST_FIELD_ALIGN (MOUSEHOOKSTRUCT, hwnd, 8)
2117 TEST_FIELD_OFFSET(MOUSEHOOKSTRUCT, hwnd, 8)
2118 TEST_FIELD_SIZE (MOUSEHOOKSTRUCT, wHitTestCode, 4)
2119 TEST_FIELD_ALIGN (MOUSEHOOKSTRUCT, wHitTestCode, 4)
2120 TEST_FIELD_OFFSET(MOUSEHOOKSTRUCT, wHitTestCode, 16)
2121 TEST_FIELD_SIZE (MOUSEHOOKSTRUCT, dwExtraInfo, 8)
2122 TEST_FIELD_ALIGN (MOUSEHOOKSTRUCT, dwExtraInfo, 8)
2123 TEST_FIELD_OFFSET(MOUSEHOOKSTRUCT, dwExtraInfo, 24)
2124 }
2125
2126 static void test_pack_MOUSEINPUT(void)
2127 {
2128 /* MOUSEINPUT */
2129 TEST_TYPE_SIZE (MOUSEINPUT, 32)
2130 TEST_TYPE_ALIGN (MOUSEINPUT, 8)
2131 TEST_FIELD_SIZE (MOUSEINPUT, dx, 4)
2132 TEST_FIELD_ALIGN (MOUSEINPUT, dx, 4)
2133 TEST_FIELD_OFFSET(MOUSEINPUT, dx, 0)
2134 TEST_FIELD_SIZE (MOUSEINPUT, dy, 4)
2135 TEST_FIELD_ALIGN (MOUSEINPUT, dy, 4)
2136 TEST_FIELD_OFFSET(MOUSEINPUT, dy, 4)
2137 TEST_FIELD_SIZE (MOUSEINPUT, mouseData, 4)
2138 TEST_FIELD_ALIGN (MOUSEINPUT, mouseData, 4)
2139 TEST_FIELD_OFFSET(MOUSEINPUT, mouseData, 8)
2140 TEST_FIELD_SIZE (MOUSEINPUT, dwFlags, 4)
2141 TEST_FIELD_ALIGN (MOUSEINPUT, dwFlags, 4)
2142 TEST_FIELD_OFFSET(MOUSEINPUT, dwFlags, 12)
2143 TEST_FIELD_SIZE (MOUSEINPUT, time, 4)
2144 TEST_FIELD_ALIGN (MOUSEINPUT, time, 4)
2145 TEST_FIELD_OFFSET(MOUSEINPUT, time, 16)
2146 TEST_FIELD_SIZE (MOUSEINPUT, dwExtraInfo, 8)
2147 TEST_FIELD_ALIGN (MOUSEINPUT, dwExtraInfo, 8)
2148 TEST_FIELD_OFFSET(MOUSEINPUT, dwExtraInfo, 24)
2149 }
2150
2151 static void test_pack_MOUSEKEYS(void)
2152 {
2153 /* MOUSEKEYS */
2154 TEST_TYPE_SIZE (MOUSEKEYS, 28)
2155 TEST_TYPE_ALIGN (MOUSEKEYS, 4)
2156 TEST_FIELD_SIZE (MOUSEKEYS, cbSize, 4)
2157 TEST_FIELD_ALIGN (MOUSEKEYS, cbSize, 4)
2158 TEST_FIELD_OFFSET(MOUSEKEYS, cbSize, 0)
2159 TEST_FIELD_SIZE (MOUSEKEYS, dwFlags, 4)
2160 TEST_FIELD_ALIGN (MOUSEKEYS, dwFlags, 4)
2161 TEST_FIELD_OFFSET(MOUSEKEYS, dwFlags, 4)
2162 TEST_FIELD_SIZE (MOUSEKEYS, iMaxSpeed, 4)
2163 TEST_FIELD_ALIGN (MOUSEKEYS, iMaxSpeed, 4)
2164 TEST_FIELD_OFFSET(MOUSEKEYS, iMaxSpeed, 8)
2165 TEST_FIELD_SIZE (MOUSEKEYS, iTimeToMaxSpeed, 4)
2166 TEST_FIELD_ALIGN (MOUSEKEYS, iTimeToMaxSpeed, 4)
2167 TEST_FIELD_OFFSET(MOUSEKEYS, iTimeToMaxSpeed, 12)
2168 TEST_FIELD_SIZE (MOUSEKEYS, iCtrlSpeed, 4)
2169 TEST_FIELD_ALIGN (MOUSEKEYS, iCtrlSpeed, 4)
2170 TEST_FIELD_OFFSET(MOUSEKEYS, iCtrlSpeed, 16)
2171 TEST_FIELD_SIZE (MOUSEKEYS, dwReserved1, 4)
2172 TEST_FIELD_ALIGN (MOUSEKEYS, dwReserved1, 4)
2173 TEST_FIELD_OFFSET(MOUSEKEYS, dwReserved1, 20)
2174 TEST_FIELD_SIZE (MOUSEKEYS, dwReserved2, 4)
2175 TEST_FIELD_ALIGN (MOUSEKEYS, dwReserved2, 4)
2176 TEST_FIELD_OFFSET(MOUSEKEYS, dwReserved2, 24)
2177 }
2178
2179 static void test_pack_MSG(void)
2180 {
2181 /* MSG */
2182 TEST_TYPE_SIZE (MSG, 48)
2183 TEST_TYPE_ALIGN (MSG, 8)
2184 TEST_FIELD_SIZE (MSG, hwnd, 8)
2185 TEST_FIELD_ALIGN (MSG, hwnd, 8)
2186 TEST_FIELD_OFFSET(MSG, hwnd, 0)
2187 TEST_FIELD_SIZE (MSG, message, 4)
2188 TEST_FIELD_ALIGN (MSG, message, 4)
2189 TEST_FIELD_OFFSET(MSG, message, 8)
2190 TEST_FIELD_SIZE (MSG, wParam, 8)
2191 TEST_FIELD_ALIGN (MSG, wParam, 8)
2192 TEST_FIELD_OFFSET(MSG, wParam, 16)
2193 TEST_FIELD_SIZE (MSG, lParam, 8)
2194 TEST_FIELD_ALIGN (MSG, lParam, 8)
2195 TEST_FIELD_OFFSET(MSG, lParam, 24)
2196 TEST_FIELD_SIZE (MSG, time, 4)
2197 TEST_FIELD_ALIGN (MSG, time, 4)
2198 TEST_FIELD_OFFSET(MSG, time, 32)
2199 TEST_FIELD_SIZE (MSG, pt, 8)
2200 TEST_FIELD_ALIGN (MSG, pt, 4)
2201 TEST_FIELD_OFFSET(MSG, pt, 36)
2202 }
2203
2204 static void test_pack_MSGBOXCALLBACK(void)
2205 {
2206 /* MSGBOXCALLBACK */
2207 TEST_TYPE_SIZE (MSGBOXCALLBACK, 8)
2208 TEST_TYPE_ALIGN (MSGBOXCALLBACK, 8)
2209 }
2210
2211 static void test_pack_MSGBOXPARAMSA(void)
2212 {
2213 /* MSGBOXPARAMSA */
2214 TEST_TYPE_SIZE (MSGBOXPARAMSA, 80)
2215 TEST_TYPE_ALIGN (MSGBOXPARAMSA, 8)
2216 TEST_FIELD_SIZE (MSGBOXPARAMSA, cbSize, 4)
2217 TEST_FIELD_ALIGN (MSGBOXPARAMSA, cbSize, 4)
2218 TEST_FIELD_OFFSET(MSGBOXPARAMSA, cbSize, 0)
2219 TEST_FIELD_SIZE (MSGBOXPARAMSA, hwndOwner, 8)
2220 TEST_FIELD_ALIGN (MSGBOXPARAMSA, hwndOwner, 8)
2221 TEST_FIELD_OFFSET(MSGBOXPARAMSA, hwndOwner, 8)
2222 TEST_FIELD_SIZE (MSGBOXPARAMSA, hInstance, 8)
2223 TEST_FIELD_ALIGN (MSGBOXPARAMSA, hInstance, 8)
2224 TEST_FIELD_OFFSET(MSGBOXPARAMSA, hInstance, 16)
2225 TEST_FIELD_SIZE (MSGBOXPARAMSA, lpszText, 8)
2226 TEST_FIELD_ALIGN (MSGBOXPARAMSA, lpszText, 8)
2227 TEST_FIELD_OFFSET(MSGBOXPARAMSA, lpszText, 24)
2228 TEST_FIELD_SIZE (MSGBOXPARAMSA, lpszCaption, 8)
2229 TEST_FIELD_ALIGN (MSGBOXPARAMSA, lpszCaption, 8)
2230 TEST_FIELD_OFFSET(MSGBOXPARAMSA, lpszCaption, 32)
2231 TEST_FIELD_SIZE (MSGBOXPARAMSA, dwStyle, 4)
2232 TEST_FIELD_ALIGN (MSGBOXPARAMSA, dwStyle, 4)
2233 TEST_FIELD_OFFSET(MSGBOXPARAMSA, dwStyle, 40)
2234 TEST_FIELD_SIZE (MSGBOXPARAMSA, lpszIcon, 8)
2235 TEST_FIELD_ALIGN (MSGBOXPARAMSA, lpszIcon, 8)
2236 TEST_FIELD_OFFSET(MSGBOXPARAMSA, lpszIcon, 48)
2237 TEST_FIELD_SIZE (MSGBOXPARAMSA, dwContextHelpId, 8)
2238 TEST_FIELD_ALIGN (MSGBOXPARAMSA, dwContextHelpId, 8)
2239 TEST_FIELD_OFFSET(MSGBOXPARAMSA, dwContextHelpId, 56)
2240 TEST_FIELD_SIZE (MSGBOXPARAMSA, lpfnMsgBoxCallback, 8)
2241 TEST_FIELD_ALIGN (MSGBOXPARAMSA, lpfnMsgBoxCallback, 8)
2242 TEST_FIELD_OFFSET(MSGBOXPARAMSA, lpfnMsgBoxCallback, 64)
2243 TEST_FIELD_SIZE (MSGBOXPARAMSA, dwLanguageId, 4)
2244 TEST_FIELD_ALIGN (MSGBOXPARAMSA, dwLanguageId, 4)
2245 TEST_FIELD_OFFSET(MSGBOXPARAMSA, dwLanguageId, 72)
2246 }
2247
2248 static void test_pack_MSGBOXPARAMSW(void)
2249 {
2250 /* MSGBOXPARAMSW */
2251 TEST_TYPE_SIZE (MSGBOXPARAMSW, 80)
2252 TEST_TYPE_ALIGN (MSGBOXPARAMSW, 8)
2253 TEST_FIELD_SIZE (MSGBOXPARAMSW, cbSize, 4)
2254 TEST_FIELD_ALIGN (MSGBOXPARAMSW, cbSize, 4)
2255 TEST_FIELD_OFFSET(MSGBOXPARAMSW, cbSize, 0)
2256 TEST_FIELD_SIZE (MSGBOXPARAMSW, hwndOwner, 8)
2257 TEST_FIELD_ALIGN (MSGBOXPARAMSW, hwndOwner, 8)
2258 TEST_FIELD_OFFSET(MSGBOXPARAMSW, hwndOwner, 8)
2259 TEST_FIELD_SIZE (MSGBOXPARAMSW, hInstance, 8)
2260 TEST_FIELD_ALIGN (MSGBOXPARAMSW, hInstance, 8)
2261 TEST_FIELD_OFFSET(MSGBOXPARAMSW, hInstance, 16)
2262 TEST_FIELD_SIZE (MSGBOXPARAMSW, lpszText, 8)
2263 TEST_FIELD_ALIGN (MSGBOXPARAMSW, lpszText, 8)
2264 TEST_FIELD_OFFSET(MSGBOXPARAMSW, lpszText, 24)
2265 TEST_FIELD_SIZE (MSGBOXPARAMSW, lpszCaption, 8)
2266 TEST_FIELD_ALIGN (MSGBOXPARAMSW, lpszCaption, 8)
2267 TEST_FIELD_OFFSET(MSGBOXPARAMSW, lpszCaption, 32)
2268 TEST_FIELD_SIZE (MSGBOXPARAMSW, dwStyle, 4)
2269 TEST_FIELD_ALIGN (MSGBOXPARAMSW, dwStyle, 4)
2270 TEST_FIELD_OFFSET(MSGBOXPARAMSW, dwStyle, 40)
2271 TEST_FIELD_SIZE (MSGBOXPARAMSW, lpszIcon, 8)
2272 TEST_FIELD_ALIGN (MSGBOXPARAMSW, lpszIcon, 8)
2273 TEST_FIELD_OFFSET(MSGBOXPARAMSW, lpszIcon, 48)
2274 TEST_FIELD_SIZE (MSGBOXPARAMSW, dwContextHelpId, 8)
2275 TEST_FIELD_ALIGN (MSGBOXPARAMSW, dwContextHelpId, 8)
2276 TEST_FIELD_OFFSET(MSGBOXPARAMSW, dwContextHelpId, 56)
2277 TEST_FIELD_SIZE (MSGBOXPARAMSW, lpfnMsgBoxCallback, 8)
2278 TEST_FIELD_ALIGN (MSGBOXPARAMSW, lpfnMsgBoxCallback, 8)
2279 TEST_FIELD_OFFSET(MSGBOXPARAMSW, lpfnMsgBoxCallback, 64)
2280 TEST_FIELD_SIZE (MSGBOXPARAMSW, dwLanguageId, 4)
2281 TEST_FIELD_ALIGN (MSGBOXPARAMSW, dwLanguageId, 4)
2282 TEST_FIELD_OFFSET(MSGBOXPARAMSW, dwLanguageId, 72)
2283 }
2284
2285 static void test_pack_MSLLHOOKSTRUCT(void)
2286 {
2287 /* MSLLHOOKSTRUCT */
2288 TEST_TYPE_SIZE (MSLLHOOKSTRUCT, 32)
2289 TEST_TYPE_ALIGN (MSLLHOOKSTRUCT, 8)
2290 TEST_FIELD_SIZE (MSLLHOOKSTRUCT, pt, 8)
2291 TEST_FIELD_ALIGN (MSLLHOOKSTRUCT, pt, 4)
2292 TEST_FIELD_OFFSET(MSLLHOOKSTRUCT, pt, 0)
2293 TEST_FIELD_SIZE (MSLLHOOKSTRUCT, mouseData, 4)
2294 TEST_FIELD_ALIGN (MSLLHOOKSTRUCT, mouseData, 4)
2295 TEST_FIELD_OFFSET(MSLLHOOKSTRUCT, mouseData, 8)
2296 TEST_FIELD_SIZE (MSLLHOOKSTRUCT, flags, 4)
2297 TEST_FIELD_ALIGN (MSLLHOOKSTRUCT, flags, 4)
2298 TEST_FIELD_OFFSET(MSLLHOOKSTRUCT, flags, 12)
2299 TEST_FIELD_SIZE (MSLLHOOKSTRUCT, time, 4)
2300 TEST_FIELD_ALIGN (MSLLHOOKSTRUCT, time, 4)
2301 TEST_FIELD_OFFSET(MSLLHOOKSTRUCT, time, 16)
2302 TEST_FIELD_SIZE (MSLLHOOKSTRUCT, dwExtraInfo, 8)
2303 TEST_FIELD_ALIGN (MSLLHOOKSTRUCT, dwExtraInfo, 8)
2304 TEST_FIELD_OFFSET(MSLLHOOKSTRUCT, dwExtraInfo, 24)
2305 }
2306
2307 static void test_pack_MULTIKEYHELPA(void)
2308 {
2309 /* MULTIKEYHELPA */
2310 TEST_TYPE_SIZE (MULTIKEYHELPA, 8)
2311 TEST_TYPE_ALIGN (MULTIKEYHELPA, 4)
2312 TEST_FIELD_SIZE (MULTIKEYHELPA, mkSize, 4)
2313 TEST_FIELD_ALIGN (MULTIKEYHELPA, mkSize, 4)
2314 TEST_FIELD_OFFSET(MULTIKEYHELPA, mkSize, 0)
2315 TEST_FIELD_SIZE (MULTIKEYHELPA, mkKeylist, 1)
2316 TEST_FIELD_ALIGN (MULTIKEYHELPA, mkKeylist, 1)
2317 TEST_FIELD_OFFSET(MULTIKEYHELPA, mkKeylist, 4)
2318 TEST_FIELD_SIZE (MULTIKEYHELPA, szKeyphrase, 1)
2319 TEST_FIELD_ALIGN (MULTIKEYHELPA, szKeyphrase, 1)
2320 TEST_FIELD_OFFSET(MULTIKEYHELPA, szKeyphrase, 5)
2321 }
2322
2323 static void test_pack_MULTIKEYHELPW(void)
2324 {
2325 /* MULTIKEYHELPW */
2326 TEST_TYPE_SIZE (MULTIKEYHELPW, 8)
2327 TEST_TYPE_ALIGN (MULTIKEYHELPW, 4)
2328 TEST_FIELD_SIZE (MULTIKEYHELPW, mkSize, 4)
2329 TEST_FIELD_ALIGN (MULTIKEYHELPW, mkSize, 4)
2330 TEST_FIELD_OFFSET(MULTIKEYHELPW, mkSize, 0)
2331 TEST_FIELD_SIZE (MULTIKEYHELPW, mkKeylist, 2)
2332 TEST_FIELD_ALIGN (MULTIKEYHELPW, mkKeylist, 2)
2333 TEST_FIELD_OFFSET(MULTIKEYHELPW, mkKeylist, 4)
2334 TEST_FIELD_SIZE (MULTIKEYHELPW, szKeyphrase, 2)
2335 TEST_FIELD_ALIGN (MULTIKEYHELPW, szKeyphrase, 2)
2336 TEST_FIELD_OFFSET(MULTIKEYHELPW, szKeyphrase, 6)
2337 }
2338
2339 static void test_pack_NAMEENUMPROCA(void)
2340 {
2341 /* NAMEENUMPROCA */
2342 TEST_TYPE_SIZE (NAMEENUMPROCA, 8)
2343 TEST_TYPE_ALIGN (NAMEENUMPROCA, 8)
2344 }
2345
2346 static void test_pack_NAMEENUMPROCW(void)
2347 {
2348 /* NAMEENUMPROCW */
2349 TEST_TYPE_SIZE (NAMEENUMPROCW, 8)
2350 TEST_TYPE_ALIGN (NAMEENUMPROCW, 8)
2351 }
2352
2353 static void test_pack_NCCALCSIZE_PARAMS(void)
2354 {
2355 /* NCCALCSIZE_PARAMS */
2356 TEST_TYPE_SIZE (NCCALCSIZE_PARAMS, 56)
2357 TEST_TYPE_ALIGN (NCCALCSIZE_PARAMS, 8)
2358 TEST_FIELD_SIZE (NCCALCSIZE_PARAMS, rgrc, 48)
2359 TEST_FIELD_ALIGN (NCCALCSIZE_PARAMS, rgrc, 4)
2360 TEST_FIELD_OFFSET(NCCALCSIZE_PARAMS, rgrc, 0)
2361 TEST_FIELD_SIZE (NCCALCSIZE_PARAMS, lppos, 8)
2362 TEST_FIELD_ALIGN (NCCALCSIZE_PARAMS, lppos, 8)
2363 TEST_FIELD_OFFSET(NCCALCSIZE_PARAMS, lppos, 48)
2364 }
2365
2366 static void test_pack_NMHDR(void)
2367 {
2368 /* NMHDR */
2369 TEST_TYPE_SIZE (NMHDR, 24)
2370 TEST_TYPE_ALIGN (NMHDR, 8)
2371 TEST_FIELD_SIZE (NMHDR, hwndFrom, 8)
2372 TEST_FIELD_ALIGN (NMHDR, hwndFrom, 8)
2373 TEST_FIELD_OFFSET(NMHDR, hwndFrom, 0)
2374 TEST_FIELD_SIZE (NMHDR, idFrom, 8)
2375 TEST_FIELD_ALIGN (NMHDR, idFrom, 8)
2376 TEST_FIELD_OFFSET(NMHDR, idFrom, 8)
2377 TEST_FIELD_SIZE (NMHDR, code, 4)
2378 TEST_FIELD_ALIGN (NMHDR, code, 4)
2379 TEST_FIELD_OFFSET(NMHDR, code, 16)
2380 }
2381
2382 static void test_pack_NONCLIENTMETRICSA(void)
2383 {
2384 /* NONCLIENTMETRICSA */
2385 TEST_TYPE_SIZE (NONCLIENTMETRICSA, 344)
2386 TEST_TYPE_ALIGN (NONCLIENTMETRICSA, 4)
2387 TEST_FIELD_SIZE (NONCLIENTMETRICSA, cbSize, 4)
2388 TEST_FIELD_ALIGN (NONCLIENTMETRICSA, cbSize, 4)
2389 TEST_FIELD_OFFSET(NONCLIENTMETRICSA, cbSize, 0)
2390 TEST_FIELD_SIZE (NONCLIENTMETRICSA, iBorderWidth, 4)
2391 TEST_FIELD_ALIGN (NONCLIENTMETRICSA, iBorderWidth, 4)
2392 TEST_FIELD_OFFSET(NONCLIENTMETRICSA, iBorderWidth, 4)
2393 TEST_FIELD_SIZE (NONCLIENTMETRICSA, iScrollWidth, 4)
2394 TEST_FIELD_ALIGN (NONCLIENTMETRICSA, iScrollWidth, 4)
2395 TEST_FIELD_OFFSET(NONCLIENTMETRICSA, iScrollWidth, 8)
2396 TEST_FIELD_SIZE (NONCLIENTMETRICSA, iScrollHeight, 4)
2397 TEST_FIELD_ALIGN (NONCLIENTMETRICSA, iScrollHeight, 4)
2398 TEST_FIELD_OFFSET(NONCLIENTMETRICSA, iScrollHeight, 12)
2399 TEST_FIELD_SIZE (NONCLIENTMETRICSA, iCaptionWidth, 4)
2400 TEST_FIELD_ALIGN (NONCLIENTMETRICSA, iCaptionWidth, 4)
2401 TEST_FIELD_OFFSET(NONCLIENTMETRICSA, iCaptionWidth, 16)
2402 TEST_FIELD_SIZE (NONCLIENTMETRICSA, iCaptionHeight, 4)
2403 TEST_FIELD_ALIGN (NONCLIENTMETRICSA, iCaptionHeight, 4)
2404 TEST_FIELD_OFFSET(NONCLIENTMETRICSA, iCaptionHeight, 20)
2405 TEST_FIELD_SIZE (NONCLIENTMETRICSA, lfCaptionFont, 60)
2406 TEST_FIELD_ALIGN (NONCLIENTMETRICSA, lfCaptionFont, 4)
2407 TEST_FIELD_OFFSET(NONCLIENTMETRICSA, lfCaptionFont, 24)
2408 TEST_FIELD_SIZE (NONCLIENTMETRICSA, iSmCaptionWidth, 4)
2409 TEST_FIELD_ALIGN (NONCLIENTMETRICSA, iSmCaptionWidth, 4)
2410 TEST_FIELD_OFFSET(NONCLIENTMETRICSA, iSmCaptionWidth, 84)
2411 TEST_FIELD_SIZE (NONCLIENTMETRICSA, iSmCaptionHeight, 4)
2412 TEST_FIELD_ALIGN (NONCLIENTMETRICSA, iSmCaptionHeight, 4)
2413 TEST_FIELD_OFFSET(NONCLIENTMETRICSA, iSmCaptionHeight, 88)
2414 TEST_FIELD_SIZE (NONCLIENTMETRICSA, lfSmCaptionFont, 60)
2415 TEST_FIELD_ALIGN (NONCLIENTMETRICSA, lfSmCaptionFont, 4)
2416 TEST_FIELD_OFFSET(NONCLIENTMETRICSA, lfSmCaptionFont, 92)
2417 TEST_FIELD_SIZE (NONCLIENTMETRICSA, iMenuWidth, 4)
2418 TEST_FIELD_ALIGN (NONCLIENTMETRICSA, iMenuWidth, 4)
2419 TEST_FIELD_OFFSET(NONCLIENTMETRICSA, iMenuWidth, 152)
2420 TEST_FIELD_SIZE (NONCLIENTMETRICSA, iMenuHeight, 4)
2421 TEST_FIELD_ALIGN (NONCLIENTMETRICSA, iMenuHeight, 4)
2422 TEST_FIELD_OFFSET(NONCLIENTMETRICSA, iMenuHeight, 156)
2423 TEST_FIELD_SIZE (NONCLIENTMETRICSA, lfMenuFont, 60)
2424 TEST_FIELD_ALIGN (NONCLIENTMETRICSA, lfMenuFont, 4)
2425 TEST_FIELD_OFFSET(NONCLIENTMETRICSA, lfMenuFont, 160)
2426 TEST_FIELD_SIZE (NONCLIENTMETRICSA, lfStatusFont, 60)
2427 TEST_FIELD_ALIGN (NONCLIENTMETRICSA, lfStatusFont, 4)
2428 TEST_FIELD_OFFSET(NONCLIENTMETRICSA, lfStatusFont, 220)
2429 TEST_FIELD_SIZE (NONCLIENTMETRICSA, lfMessageFont, 60)
2430 TEST_FIELD_ALIGN (NONCLIENTMETRICSA, lfMessageFont, 4)
2431 TEST_FIELD_OFFSET(NONCLIENTMETRICSA, lfMessageFont, 280)
2432 TEST_FIELD_SIZE (NONCLIENTMETRICSA, iPaddedBorderWidth, 4)
2433 TEST_FIELD_ALIGN (NONCLIENTMETRICSA, iPaddedBorderWidth, 4)
2434 TEST_FIELD_OFFSET(NONCLIENTMETRICSA, iPaddedBorderWidth, 340)
2435 }
2436
2437 static void test_pack_NONCLIENTMETRICSW(void)
2438 {
2439 /* NONCLIENTMETRICSW */
2440 TEST_TYPE_SIZE (NONCLIENTMETRICSW, 504)
2441 TEST_TYPE_ALIGN (NONCLIENTMETRICSW, 4)
2442 TEST_FIELD_SIZE (NONCLIENTMETRICSW, cbSize, 4)
2443 TEST_FIELD_ALIGN (NONCLIENTMETRICSW, cbSize, 4)
2444 TEST_FIELD_OFFSET(NONCLIENTMETRICSW, cbSize, 0)
2445 TEST_FIELD_SIZE (NONCLIENTMETRICSW, iBorderWidth, 4)
2446 TEST_FIELD_ALIGN (NONCLIENTMETRICSW, iBorderWidth, 4)
2447 TEST_FIELD_OFFSET(NONCLIENTMETRICSW, iBorderWidth, 4)
2448 TEST_FIELD_SIZE (NONCLIENTMETRICSW, iScrollWidth, 4)
2449 TEST_FIELD_ALIGN (NONCLIENTMETRICSW, iScrollWidth, 4)
2450 TEST_FIELD_OFFSET(NONCLIENTMETRICSW, iScrollWidth, 8)
2451 TEST_FIELD_SIZE (NONCLIENTMETRICSW, iScrollHeight, 4)
2452 TEST_FIELD_ALIGN (NONCLIENTMETRICSW, iScrollHeight, 4)
2453 TEST_FIELD_OFFSET(NONCLIENTMETRICSW, iScrollHeight, 12)
2454 TEST_FIELD_SIZE (NONCLIENTMETRICSW, iCaptionWidth, 4)
2455 TEST_FIELD_ALIGN (NONCLIENTMETRICSW, iCaptionWidth, 4)
2456 TEST_FIELD_OFFSET(NONCLIENTMETRICSW, iCaptionWidth, 16)
2457 TEST_FIELD_SIZE (NONCLIENTMETRICSW, iCaptionHeight, 4)
2458 TEST_FIELD_ALIGN (NONCLIENTMETRICSW, iCaptionHeight, 4)
2459 TEST_FIELD_OFFSET(NONCLIENTMETRICSW, iCaptionHeight, 20)
2460 TEST_FIELD_SIZE (NONCLIENTMETRICSW, lfCaptionFont, 92)
2461 TEST_FIELD_ALIGN (NONCLIENTMETRICSW, lfCaptionFont, 4)
2462 TEST_FIELD_OFFSET(NONCLIENTMETRICSW, lfCaptionFont, 24)
2463 TEST_FIELD_SIZE (NONCLIENTMETRICSW, iSmCaptionWidth, 4)
2464 TEST_FIELD_ALIGN (NONCLIENTMETRICSW, iSmCaptionWidth, 4)
2465 TEST_FIELD_OFFSET(NONCLIENTMETRICSW, iSmCaptionWidth, 116)
2466 TEST_FIELD_SIZE (NONCLIENTMETRICSW, iSmCaptionHeight, 4)
2467 TEST_FIELD_ALIGN (NONCLIENTMETRICSW, iSmCaptionHeight, 4)
2468 TEST_FIELD_OFFSET(NONCLIENTMETRICSW, iSmCaptionHeight, 120)
2469 TEST_FIELD_SIZE (NONCLIENTMETRICSW, lfSmCaptionFont, 92)
2470 TEST_FIELD_ALIGN (NONCLIENTMETRICSW, lfSmCaptionFont, 4)
2471 TEST_FIELD_OFFSET(NONCLIENTMETRICSW, lfSmCaptionFont, 124)
2472 TEST_FIELD_SIZE (NONCLIENTMETRICSW, iMenuWidth, 4)
2473 TEST_FIELD_ALIGN (NONCLIENTMETRICSW, iMenuWidth, 4)
2474 TEST_FIELD_OFFSET(NONCLIENTMETRICSW, iMenuWidth, 216)
2475 TEST_FIELD_SIZE (NONCLIENTMETRICSW, iMenuHeight, 4)
2476 TEST_FIELD_ALIGN (NONCLIENTMETRICSW, iMenuHeight, 4)
2477 TEST_FIELD_OFFSET(NONCLIENTMETRICSW, iMenuHeight, 220)
2478 TEST_FIELD_SIZE (NONCLIENTMETRICSW, lfMenuFont, 92)
2479 TEST_FIELD_ALIGN (NONCLIENTMETRICSW, lfMenuFont, 4)
2480 TEST_FIELD_OFFSET(NONCLIENTMETRICSW, lfMenuFont, 224)
2481 TEST_FIELD_SIZE (NONCLIENTMETRICSW, lfStatusFont, 92)
2482 TEST_FIELD_ALIGN (NONCLIENTMETRICSW, lfStatusFont, 4)
2483 TEST_FIELD_OFFSET(NONCLIENTMETRICSW, lfStatusFont, 316)
2484 TEST_FIELD_SIZE (NONCLIENTMETRICSW, lfMessageFont, 92)
2485 TEST_FIELD_ALIGN (NONCLIENTMETRICSW, lfMessageFont, 4)
2486 TEST_FIELD_OFFSET(NONCLIENTMETRICSW, lfMessageFont, 408)
2487 TEST_FIELD_SIZE (NONCLIENTMETRICSW, iPaddedBorderWidth, 4)
2488 TEST_FIELD_ALIGN (NONCLIENTMETRICSW, iPaddedBorderWidth, 4)
2489 TEST_FIELD_OFFSET(NONCLIENTMETRICSW, iPaddedBorderWidth, 500)
2490 }
2491
2492 static void test_pack_PAINTSTRUCT(void)
2493 {
2494 /* PAINTSTRUCT */
2495 TEST_TYPE_SIZE (PAINTSTRUCT, 72)
2496 TEST_TYPE_ALIGN (PAINTSTRUCT, 8)
2497 TEST_FIELD_SIZE (PAINTSTRUCT, hdc, 8)
2498 TEST_FIELD_ALIGN (PAINTSTRUCT, hdc, 8)
2499 TEST_FIELD_OFFSET(PAINTSTRUCT, hdc, 0)
2500 TEST_FIELD_SIZE (PAINTSTRUCT, fErase, 4)
2501 TEST_FIELD_ALIGN (PAINTSTRUCT, fErase, 4)
2502 TEST_FIELD_OFFSET(PAINTSTRUCT, fErase, 8)
2503 TEST_FIELD_SIZE (PAINTSTRUCT, rcPaint, 16)
2504 TEST_FIELD_ALIGN (PAINTSTRUCT, rcPaint, 4)
2505 TEST_FIELD_OFFSET(PAINTSTRUCT, rcPaint, 12)
2506 TEST_FIELD_SIZE (PAINTSTRUCT, fRestore, 4)
2507 TEST_FIELD_ALIGN (PAINTSTRUCT, fRestore, 4)
2508 TEST_FIELD_OFFSET(PAINTSTRUCT, fRestore, 28)
2509 TEST_FIELD_SIZE (PAINTSTRUCT, fIncUpdate, 4)
2510 TEST_FIELD_ALIGN (PAINTSTRUCT, fIncUpdate, 4)
2511 TEST_FIELD_OFFSET(PAINTSTRUCT, fIncUpdate, 32)
2512 TEST_FIELD_SIZE (PAINTSTRUCT, rgbReserved, 32)
2513 TEST_FIELD_ALIGN (PAINTSTRUCT, rgbReserved, 1)
2514 TEST_FIELD_OFFSET(PAINTSTRUCT, rgbReserved, 36)
2515 }
2516
2517 static void test_pack_PCOMBOBOXINFO(void)
2518 {
2519 /* PCOMBOBOXINFO */
2520 TEST_TYPE_SIZE (PCOMBOBOXINFO, 8)
2521 TEST_TYPE_ALIGN (PCOMBOBOXINFO, 8)
2522 TEST_TARGET_SIZE (PCOMBOBOXINFO, 64)
2523 TEST_TARGET_ALIGN(PCOMBOBOXINFO, 8)
2524 }
2525
2526 static void test_pack_PCOMPAREITEMSTRUCT(void)
2527 {
2528 /* PCOMPAREITEMSTRUCT */
2529 TEST_TYPE_SIZE (PCOMPAREITEMSTRUCT, 8)
2530 TEST_TYPE_ALIGN (PCOMPAREITEMSTRUCT, 8)
2531 TEST_TARGET_SIZE (PCOMPAREITEMSTRUCT, 56)
2532 TEST_TARGET_ALIGN(PCOMPAREITEMSTRUCT, 8)
2533 }
2534
2535 static void test_pack_PCOPYDATASTRUCT(void)
2536 {
2537 /* PCOPYDATASTRUCT */
2538 TEST_TYPE_SIZE (PCOPYDATASTRUCT, 8)
2539 TEST_TYPE_ALIGN (PCOPYDATASTRUCT, 8)
2540 TEST_TARGET_SIZE (PCOPYDATASTRUCT, 24)
2541 TEST_TARGET_ALIGN(PCOPYDATASTRUCT, 8)
2542 }
2543
2544 static void test_pack_PCURSORINFO(void)
2545 {
2546 /* PCURSORINFO */
2547 TEST_TYPE_SIZE (PCURSORINFO, 8)
2548 TEST_TYPE_ALIGN (PCURSORINFO, 8)
2549 TEST_TARGET_SIZE (PCURSORINFO, 24)
2550 TEST_TARGET_ALIGN(PCURSORINFO, 8)
2551 }
2552
2553 static void test_pack_PCWPRETSTRUCT(void)
2554 {
2555 /* PCWPRETSTRUCT */
2556 TEST_TYPE_SIZE (PCWPRETSTRUCT, 8)
2557 TEST_TYPE_ALIGN (PCWPRETSTRUCT, 8)
2558 TEST_TARGET_SIZE (PCWPRETSTRUCT, 40)
2559 TEST_TARGET_ALIGN(PCWPRETSTRUCT, 8)
2560 }
2561
2562 static void test_pack_PCWPSTRUCT(void)
2563 {
2564 /* PCWPSTRUCT */
2565 TEST_TYPE_SIZE (PCWPSTRUCT, 8)
2566 TEST_TYPE_ALIGN (PCWPSTRUCT, 8)
2567 TEST_TARGET_SIZE (PCWPSTRUCT, 32)
2568 TEST_TARGET_ALIGN(PCWPSTRUCT, 8)
2569 }
2570
2571 static void test_pack_PDEBUGHOOKINFO(void)
2572 {
2573 /* PDEBUGHOOKINFO */
2574 TEST_TYPE_SIZE (PDEBUGHOOKINFO, 8)
2575 TEST_TYPE_ALIGN (PDEBUGHOOKINFO, 8)
2576 TEST_TARGET_SIZE (PDEBUGHOOKINFO, 32)
2577 TEST_TARGET_ALIGN(PDEBUGHOOKINFO, 8)
2578 }
2579
2580 static void test_pack_PDELETEITEMSTRUCT(void)
2581 {
2582 /* PDELETEITEMSTRUCT */
2583 TEST_TYPE_SIZE (PDELETEITEMSTRUCT, 8)
2584 TEST_TYPE_ALIGN (PDELETEITEMSTRUCT, 8)
2585 TEST_TARGET_SIZE (PDELETEITEMSTRUCT, 32)
2586 TEST_TARGET_ALIGN(PDELETEITEMSTRUCT, 8)
2587 }
2588
2589 static void test_pack_PDLGITEMTEMPLATEA(void)
2590 {
2591 /* PDLGITEMTEMPLATEA */
2592 TEST_TYPE_SIZE (PDLGITEMTEMPLATEA, 8)
2593 TEST_TYPE_ALIGN (PDLGITEMTEMPLATEA, 8)
2594 TEST_TARGET_SIZE (PDLGITEMTEMPLATEA, 18)
2595 TEST_TARGET_ALIGN(PDLGITEMTEMPLATEA, 2)
2596 }
2597
2598 static void test_pack_PDLGITEMTEMPLATEW(void)
2599 {
2600 /* PDLGITEMTEMPLATEW */
2601 TEST_TYPE_SIZE (PDLGITEMTEMPLATEW, 8)
2602 TEST_TYPE_ALIGN (PDLGITEMTEMPLATEW, 8)
2603 TEST_TARGET_SIZE (PDLGITEMTEMPLATEW, 18)
2604 TEST_TARGET_ALIGN(PDLGITEMTEMPLATEW, 2)
2605 }
2606
2607 static void test_pack_PDRAWITEMSTRUCT(void)
2608 {
2609 /* PDRAWITEMSTRUCT */
2610 TEST_TYPE_SIZE (PDRAWITEMSTRUCT, 8)
2611 TEST_TYPE_ALIGN (PDRAWITEMSTRUCT, 8)
2612 TEST_TARGET_SIZE (PDRAWITEMSTRUCT, 64)
2613 TEST_TARGET_ALIGN(PDRAWITEMSTRUCT, 8)
2614 }
2615
2616 static void test_pack_PEVENTMSG(void)
2617 {
2618 /* PEVENTMSG */
2619 TEST_TYPE_SIZE (PEVENTMSG, 8)
2620 TEST_TYPE_ALIGN (PEVENTMSG, 8)
2621 TEST_TARGET_SIZE (PEVENTMSG, 24)
2622 TEST_TARGET_ALIGN(PEVENTMSG, 8)
2623 }
2624
2625 static void test_pack_PFLASHWINFO(void)
2626 {
2627 /* PFLASHWINFO */
2628 TEST_TYPE_SIZE (PFLASHWINFO, 8)
2629 TEST_TYPE_ALIGN (PFLASHWINFO, 8)
2630 TEST_TARGET_SIZE (PFLASHWINFO, 32)
2631 TEST_TARGET_ALIGN(PFLASHWINFO, 8)
2632 }
2633
2634 static void test_pack_PGUITHREADINFO(void)
2635 {
2636 /* PGUITHREADINFO */
2637 TEST_TYPE_SIZE (PGUITHREADINFO, 8)
2638 TEST_TYPE_ALIGN (PGUITHREADINFO, 8)
2639 TEST_TARGET_SIZE (PGUITHREADINFO, 72)
2640 TEST_TARGET_ALIGN(PGUITHREADINFO, 8)
2641 }
2642
2643 static void test_pack_PHARDWAREHOOKSTRUCT(void)
2644 {
2645 /* PHARDWAREHOOKSTRUCT */
2646 TEST_TYPE_SIZE (PHARDWAREHOOKSTRUCT, 8)
2647 TEST_TYPE_ALIGN (PHARDWAREHOOKSTRUCT, 8)
2648 TEST_TARGET_SIZE (PHARDWAREHOOKSTRUCT, 32)
2649 TEST_TARGET_ALIGN(PHARDWAREHOOKSTRUCT, 8)
2650 }
2651
2652 static void test_pack_PHARDWAREINPUT(void)
2653 {
2654 /* PHARDWAREINPUT */
2655 TEST_TYPE_SIZE (PHARDWAREINPUT, 8)
2656 TEST_TYPE_ALIGN (PHARDWAREINPUT, 8)
2657 TEST_TARGET_SIZE (PHARDWAREINPUT, 8)
2658 TEST_TARGET_ALIGN(PHARDWAREINPUT, 4)
2659 }
2660
2661 static void test_pack_PHDEVNOTIFY(void)
2662 {
2663 /* PHDEVNOTIFY */
2664 TEST_TYPE_SIZE (PHDEVNOTIFY, 8)
2665 TEST_TYPE_ALIGN (PHDEVNOTIFY, 8)
2666 TEST_TARGET_SIZE (PHDEVNOTIFY, 8)
2667 TEST_TARGET_ALIGN(PHDEVNOTIFY, 8)
2668 }
2669
2670 static void test_pack_PHELPWININFOA(void)
2671 {
2672 /* PHELPWININFOA */
2673 TEST_TYPE_SIZE (PHELPWININFOA, 8)
2674 TEST_TYPE_ALIGN (PHELPWININFOA, 8)
2675 TEST_TARGET_SIZE (PHELPWININFOA, 28)
2676 TEST_TARGET_ALIGN(PHELPWININFOA, 4)
2677 }
2678
2679 static void test_pack_PHELPWININFOW(void)
2680 {
2681 /* PHELPWININFOW */
2682 TEST_TYPE_SIZE (PHELPWININFOW, 8)
2683 TEST_TYPE_ALIGN (PHELPWININFOW, 8)
2684 TEST_TARGET_SIZE (PHELPWININFOW, 28)
2685 TEST_TARGET_ALIGN(PHELPWININFOW, 4)
2686 }
2687
2688 static void test_pack_PICONINFO(void)
2689 {
2690 /* PICONINFO */
2691 TEST_TYPE_SIZE (PICONINFO, 8)
2692 TEST_TYPE_ALIGN (PICONINFO, 8)
2693 TEST_TARGET_SIZE (PICONINFO, 32)
2694 TEST_TARGET_ALIGN(PICONINFO, 8)
2695 }
2696
2697 static void test_pack_PICONMETRICSA(void)
2698 {
2699 /* PICONMETRICSA */
2700 TEST_TYPE_SIZE (PICONMETRICSA, 8)
2701 TEST_TYPE_ALIGN (PICONMETRICSA, 8)
2702 TEST_TARGET_SIZE (PICONMETRICSA, 76)
2703 TEST_TARGET_ALIGN(PICONMETRICSA, 4)
2704 }
2705
2706 static void test_pack_PICONMETRICSW(void)
2707 {
2708 /* PICONMETRICSW */
2709 TEST_TYPE_SIZE (PICONMETRICSW, 8)
2710 TEST_TYPE_ALIGN (PICONMETRICSW, 8)
2711 TEST_TARGET_SIZE (PICONMETRICSW, 108)
2712 TEST_TARGET_ALIGN(PICONMETRICSW, 4)
2713 }
2714
2715 static void test_pack_PINPUT(void)
2716 {
2717 /* PINPUT */
2718 TEST_TYPE_SIZE (PINPUT, 8)
2719 TEST_TYPE_ALIGN (PINPUT, 8)
2720 }
2721
2722 static void test_pack_PKBDLLHOOKSTRUCT(void)
2723 {
2724 /* PKBDLLHOOKSTRUCT */
2725 TEST_TYPE_SIZE (PKBDLLHOOKSTRUCT, 8)
2726 TEST_TYPE_ALIGN (PKBDLLHOOKSTRUCT, 8)
2727 TEST_TARGET_SIZE (PKBDLLHOOKSTRUCT, 24)
2728 TEST_TARGET_ALIGN(PKBDLLHOOKSTRUCT, 8)
2729 }
2730
2731 static void test_pack_PKEYBDINPUT(void)
2732 {
2733 /* PKEYBDINPUT */
2734 TEST_TYPE_SIZE (PKEYBDINPUT, 8)
2735 TEST_TYPE_ALIGN (PKEYBDINPUT, 8)
2736 TEST_TARGET_SIZE (PKEYBDINPUT, 24)
2737 TEST_TARGET_ALIGN(PKEYBDINPUT, 8)
2738 }
2739
2740 static void test_pack_PMDINEXTMENU(void)
2741 {
2742 /* PMDINEXTMENU */
2743 TEST_TYPE_SIZE (PMDINEXTMENU, 8)
2744 TEST_TYPE_ALIGN (PMDINEXTMENU, 8)
2745 TEST_TARGET_SIZE (PMDINEXTMENU, 24)
2746 TEST_TARGET_ALIGN(PMDINEXTMENU, 8)
2747 }
2748
2749 static void test_pack_PMEASUREITEMSTRUCT(void)
2750 {
2751 /* PMEASUREITEMSTRUCT */
2752 TEST_TYPE_SIZE (PMEASUREITEMSTRUCT, 8)
2753 TEST_TYPE_ALIGN (PMEASUREITEMSTRUCT, 8)
2754 TEST_TARGET_SIZE (PMEASUREITEMSTRUCT, 32)
2755 TEST_TARGET_ALIGN(PMEASUREITEMSTRUCT, 8)
2756 }
2757
2758 static void test_pack_PMENUITEMTEMPLATE(void)
2759 {
2760 /* PMENUITEMTEMPLATE */
2761 TEST_TYPE_SIZE (PMENUITEMTEMPLATE, 8)
2762 TEST_TYPE_ALIGN (PMENUITEMTEMPLATE, 8)
2763 TEST_TARGET_SIZE (PMENUITEMTEMPLATE, 6)
2764 TEST_TARGET_ALIGN(PMENUITEMTEMPLATE, 2)
2765 }
2766
2767 static void test_pack_PMENUITEMTEMPLATEHEADER(void)
2768 {
2769 /* PMENUITEMTEMPLATEHEADER */
2770 TEST_TYPE_SIZE (PMENUITEMTEMPLATEHEADER, 8)
2771 TEST_TYPE_ALIGN (PMENUITEMTEMPLATEHEADER, 8)
2772 TEST_TARGET_SIZE (PMENUITEMTEMPLATEHEADER, 4)
2773 TEST_TARGET_ALIGN(PMENUITEMTEMPLATEHEADER, 2)
2774 }
2775
2776 static void test_pack_PMINIMIZEDMETRICS(void)
2777 {
2778 /* PMINIMIZEDMETRICS */
2779 TEST_TYPE_SIZE (PMINIMIZEDMETRICS, 8)
2780 TEST_TYPE_ALIGN (PMINIMIZEDMETRICS, 8)
2781 TEST_TARGET_SIZE (PMINIMIZEDMETRICS, 20)
2782 TEST_TARGET_ALIGN(PMINIMIZEDMETRICS, 4)
2783 }
2784
2785 static void test_pack_PMINMAXINFO(void)
2786 {
2787 /* PMINMAXINFO */
2788 TEST_TYPE_SIZE (PMINMAXINFO, 8)
2789 TEST_TYPE_ALIGN (PMINMAXINFO, 8)
2790 TEST_TARGET_SIZE (PMINMAXINFO, 40)
2791 TEST_TARGET_ALIGN(PMINMAXINFO, 4)
2792 }
2793
2794 static void test_pack_PMOUSEHOOKSTRUCT(void)
2795 {
2796 /* PMOUSEHOOKSTRUCT */
2797 TEST_TYPE_SIZE (PMOUSEHOOKSTRUCT, 8)
2798 TEST_TYPE_ALIGN (PMOUSEHOOKSTRUCT, 8)
2799 TEST_TARGET_SIZE (PMOUSEHOOKSTRUCT, 32)
2800 TEST_TARGET_ALIGN(PMOUSEHOOKSTRUCT, 8)
2801 }
2802
2803 static void test_pack_PMOUSEINPUT(void)
2804 {
2805 /* PMOUSEINPUT */
2806 TEST_TYPE_SIZE (PMOUSEINPUT, 8)
2807 TEST_TYPE_ALIGN (PMOUSEINPUT, 8)
2808 TEST_TARGET_SIZE (PMOUSEINPUT, 32)
2809 TEST_TARGET_ALIGN(PMOUSEINPUT, 8)
2810 }
2811
2812 static void test_pack_PMSG(void)
2813 {
2814 /* PMSG */
2815 TEST_TYPE_SIZE (PMSG, 8)
2816 TEST_TYPE_ALIGN (PMSG, 8)
2817 TEST_TARGET_SIZE (PMSG, 48)
2818 TEST_TARGET_ALIGN(PMSG, 8)
2819 }
2820
2821 static void test_pack_PMSGBOXPARAMSA(void)
2822 {
2823 /* PMSGBOXPARAMSA */
2824 TEST_TYPE_SIZE (PMSGBOXPARAMSA, 8)
2825 TEST_TYPE_ALIGN (PMSGBOXPARAMSA, 8)
2826 TEST_TARGET_SIZE (PMSGBOXPARAMSA, 80)
2827 TEST_TARGET_ALIGN(PMSGBOXPARAMSA, 8)
2828 }
2829
2830 static void test_pack_PMSGBOXPARAMSW(void)
2831 {
2832 /* PMSGBOXPARAMSW */
2833 TEST_TYPE_SIZE (PMSGBOXPARAMSW, 8)
2834 TEST_TYPE_ALIGN (PMSGBOXPARAMSW, 8)
2835 TEST_TARGET_SIZE (PMSGBOXPARAMSW, 80)
2836 TEST_TARGET_ALIGN(PMSGBOXPARAMSW, 8)
2837 }
2838
2839 static void test_pack_PMSLLHOOKSTRUCT(void)
2840 {
2841 /* PMSLLHOOKSTRUCT */
2842 TEST_TYPE_SIZE (PMSLLHOOKSTRUCT, 8)
2843 TEST_TYPE_ALIGN (PMSLLHOOKSTRUCT, 8)
2844 TEST_TARGET_SIZE (PMSLLHOOKSTRUCT, 32)
2845 TEST_TARGET_ALIGN(PMSLLHOOKSTRUCT, 8)
2846 }
2847
2848 static void test_pack_PMULTIKEYHELPA(void)
2849 {
2850 /* PMULTIKEYHELPA */
2851 TEST_TYPE_SIZE (PMULTIKEYHELPA, 8)
2852 TEST_TYPE_ALIGN (PMULTIKEYHELPA, 8)
2853 TEST_TARGET_SIZE (PMULTIKEYHELPA, 8)
2854 TEST_TARGET_ALIGN(PMULTIKEYHELPA, 4)
2855 }
2856
2857 static void test_pack_PMULTIKEYHELPW(void)
2858 {
2859 /* PMULTIKEYHELPW */
2860 TEST_TYPE_SIZE (PMULTIKEYHELPW, 8)
2861 TEST_TYPE_ALIGN (PMULTIKEYHELPW, 8)
2862 TEST_TARGET_SIZE (PMULTIKEYHELPW, 8)
2863 TEST_TARGET_ALIGN(PMULTIKEYHELPW, 4)
2864 }
2865
2866 static void test_pack_PNONCLIENTMETRICSA(void)
2867 {
2868 /* PNONCLIENTMETRICSA */
2869 TEST_TYPE_SIZE (PNONCLIENTMETRICSA, 8)
2870 TEST_TYPE_ALIGN (PNONCLIENTMETRICSA, 8)
2871 TEST_TARGET_SIZE (PNONCLIENTMETRICSA, 344)
2872 TEST_TARGET_ALIGN(PNONCLIENTMETRICSA, 4)
2873 }
2874
2875 static void test_pack_PNONCLIENTMETRICSW(void)
2876 {
2877 /* PNONCLIENTMETRICSW */
2878 TEST_TYPE_SIZE (PNONCLIENTMETRICSW, 8)
2879 TEST_TYPE_ALIGN (PNONCLIENTMETRICSW, 8)
2880 TEST_TARGET_SIZE (PNONCLIENTMETRICSW, 504)
2881 TEST_TARGET_ALIGN(PNONCLIENTMETRICSW, 4)
2882 }
2883
2884 static void test_pack_PPAINTSTRUCT(void)
2885 {
2886 /* PPAINTSTRUCT */
2887 TEST_TYPE_SIZE (PPAINTSTRUCT, 8)
2888 TEST_TYPE_ALIGN (PPAINTSTRUCT, 8)
2889 TEST_TARGET_SIZE (PPAINTSTRUCT, 72)
2890 TEST_TARGET_ALIGN(PPAINTSTRUCT, 8)
2891 }
2892
2893 static void test_pack_PROPENUMPROCA(void)
2894 {
2895 /* PROPENUMPROCA */
2896 TEST_TYPE_SIZE (PROPENUMPROCA, 8)
2897 TEST_TYPE_ALIGN (PROPENUMPROCA, 8)
2898 }
2899
2900 static void test_pack_PROPENUMPROCEXA(void)
2901 {
2902 /* PROPENUMPROCEXA */
2903 TEST_TYPE_SIZE (PROPENUMPROCEXA, 8)
2904 TEST_TYPE_ALIGN (PROPENUMPROCEXA, 8)
2905 }
2906
2907 static void test_pack_PROPENUMPROCEXW(void)
2908 {
2909 /* PROPENUMPROCEXW */
2910 TEST_TYPE_SIZE (PROPENUMPROCEXW, 8)
2911 TEST_TYPE_ALIGN (PROPENUMPROCEXW, 8)
2912 }
2913
2914 static void test_pack_PROPENUMPROCW(void)
2915 {
2916 /* PROPENUMPROCW */
2917 TEST_TYPE_SIZE (PROPENUMPROCW, 8)
2918 TEST_TYPE_ALIGN (PROPENUMPROCW, 8)
2919 }
2920
2921 static void test_pack_PTITLEBARINFO(void)
2922 {
2923 /* PTITLEBARINFO */
2924 TEST_TYPE_SIZE (PTITLEBARINFO, 8)
2925 TEST_TYPE_ALIGN (PTITLEBARINFO, 8)
2926 TEST_TARGET_SIZE (PTITLEBARINFO, 44)
2927 TEST_TARGET_ALIGN(PTITLEBARINFO, 4)
2928 }
2929
2930 static void test_pack_PUSEROBJECTFLAGS(void)
2931 {
2932 /* PUSEROBJECTFLAGS */
2933 TEST_TYPE_SIZE (PUSEROBJECTFLAGS, 8)
2934 TEST_TYPE_ALIGN (PUSEROBJECTFLAGS, 8)
2935 TEST_TARGET_SIZE (PUSEROBJECTFLAGS, 12)
2936 TEST_TARGET_ALIGN(PUSEROBJECTFLAGS, 4)
2937 }
2938
2939 static void test_pack_PWINDOWINFO(void)
2940 {
2941 /* PWINDOWINFO */
2942 TEST_TYPE_SIZE (PWINDOWINFO, 8)
2943 TEST_TYPE_ALIGN (PWINDOWINFO, 8)
2944 TEST_TARGET_SIZE (PWINDOWINFO, 60)
2945 TEST_TARGET_ALIGN(PWINDOWINFO, 4)
2946 }
2947
2948 static void test_pack_PWINDOWPLACEMENT(void)
2949 {
2950 /* PWINDOWPLACEMENT */
2951 TEST_TYPE_SIZE (PWINDOWPLACEMENT, 8)
2952 TEST_TYPE_ALIGN (PWINDOWPLACEMENT, 8)
2953 TEST_TARGET_SIZE (PWINDOWPLACEMENT, 44)
2954 TEST_TARGET_ALIGN(PWINDOWPLACEMENT, 4)
2955 }
2956
2957 static void test_pack_PWINDOWPOS(void)
2958 {
2959 /* PWINDOWPOS */
2960 TEST_TYPE_SIZE (PWINDOWPOS, 8)
2961 TEST_TYPE_ALIGN (PWINDOWPOS, 8)
2962 TEST_TARGET_SIZE (PWINDOWPOS, 40)
2963 TEST_TARGET_ALIGN(PWINDOWPOS, 8)
2964 }
2965
2966 static void test_pack_PWNDCLASSA(void)
2967 {
2968 /* PWNDCLASSA */
2969 TEST_TYPE_SIZE (PWNDCLASSA, 8)
2970 TEST_TYPE_ALIGN (PWNDCLASSA, 8)
2971 TEST_TARGET_SIZE (PWNDCLASSA, 72)
2972 TEST_TARGET_ALIGN(PWNDCLASSA, 8)
2973 }
2974
2975 static void test_pack_PWNDCLASSEXA(void)
2976 {
2977 /* PWNDCLASSEXA */
2978 TEST_TYPE_SIZE (PWNDCLASSEXA, 8)
2979 TEST_TYPE_ALIGN (PWNDCLASSEXA, 8)
2980 TEST_TARGET_SIZE (PWNDCLASSEXA, 80)
2981 TEST_TARGET_ALIGN(PWNDCLASSEXA, 8)
2982 }
2983
2984 static void test_pack_PWNDCLASSEXW(void)
2985 {
2986 /* PWNDCLASSEXW */
2987 TEST_TYPE_SIZE (PWNDCLASSEXW, 8)
2988 TEST_TYPE_ALIGN (PWNDCLASSEXW, 8)
2989 TEST_TARGET_SIZE (PWNDCLASSEXW, 80)
2990 TEST_TARGET_ALIGN(PWNDCLASSEXW, 8)
2991 }
2992
2993 static void test_pack_PWNDCLASSW(void)
2994 {
2995 /* PWNDCLASSW */
2996 TEST_TYPE_SIZE (PWNDCLASSW, 8)
2997 TEST_TYPE_ALIGN (PWNDCLASSW, 8)
2998 TEST_TARGET_SIZE (PWNDCLASSW, 72)
2999 TEST_TARGET_ALIGN(PWNDCLASSW, 8)
3000 }
3001
3002 static void test_pack_SCROLLINFO(void)
3003 {
3004 /* SCROLLINFO */
3005 TEST_TYPE_SIZE (SCROLLINFO, 28)
3006 TEST_TYPE_ALIGN (SCROLLINFO, 4)
3007 TEST_FIELD_SIZE (SCROLLINFO, cbSize, 4)
3008 TEST_FIELD_ALIGN (SCROLLINFO, cbSize, 4)
3009 TEST_FIELD_OFFSET(SCROLLINFO, cbSize, 0)
3010 TEST_FIELD_SIZE (SCROLLINFO, fMask, 4)
3011 TEST_FIELD_ALIGN (SCROLLINFO, fMask, 4)
3012 TEST_FIELD_OFFSET(SCROLLINFO, fMask, 4)
3013 TEST_FIELD_SIZE (SCROLLINFO, nMin, 4)
3014 TEST_FIELD_ALIGN (SCROLLINFO, nMin, 4)
3015 TEST_FIELD_OFFSET(SCROLLINFO, nMin, 8)
3016 TEST_FIELD_SIZE (SCROLLINFO, nMax, 4)
3017 TEST_FIELD_ALIGN (SCROLLINFO, nMax, 4)
3018 TEST_FIELD_OFFSET(SCROLLINFO, nMax, 12)
3019 TEST_FIELD_SIZE (SCROLLINFO, nPage, 4)
3020 TEST_FIELD_ALIGN (SCROLLINFO, nPage, 4)
3021 TEST_FIELD_OFFSET(SCROLLINFO, nPage, 16)
3022 TEST_FIELD_SIZE (SCROLLINFO, nPos, 4)
3023 TEST_FIELD_ALIGN (SCROLLINFO, nPos, 4)
3024 TEST_FIELD_OFFSET(SCROLLINFO, nPos, 20)
3025 TEST_FIELD_SIZE (SCROLLINFO, nTrackPos, 4)
3026 TEST_FIELD_ALIGN (SCROLLINFO, nTrackPos, 4)
3027 TEST_FIELD_OFFSET(SCROLLINFO, nTrackPos, 24)
3028 }
3029
3030 static void test_pack_SENDASYNCPROC(void)
3031 {
3032 /* SENDASYNCPROC */
3033 TEST_TYPE_SIZE (SENDASYNCPROC, 8)
3034 TEST_TYPE_ALIGN (SENDASYNCPROC, 8)
3035 }
3036
3037 static void test_pack_SERIALKEYSA(void)
3038 {
3039 /* SERIALKEYSA */
3040 TEST_TYPE_SIZE (SERIALKEYSA, 40)
3041 TEST_TYPE_ALIGN (SERIALKEYSA, 8)
3042 TEST_FIELD_SIZE (SERIALKEYSA, cbSize, 4)
3043 TEST_FIELD_ALIGN (SERIALKEYSA, cbSize, 4)
3044 TEST_FIELD_OFFSET(SERIALKEYSA, cbSize, 0)
3045 TEST_FIELD_SIZE (SERIALKEYSA, dwFlags, 4)
3046 TEST_FIELD_ALIGN (SERIALKEYSA, dwFlags, 4)
3047 TEST_FIELD_OFFSET(SERIALKEYSA, dwFlags, 4)
3048 TEST_FIELD_SIZE (SERIALKEYSA, lpszActivePort, 8)
3049 TEST_FIELD_ALIGN (SERIALKEYSA, lpszActivePort, 8)
3050 TEST_FIELD_OFFSET(SERIALKEYSA, lpszActivePort, 8)
3051 TEST_FIELD_SIZE (SERIALKEYSA, lpszPort, 8)
3052 TEST_FIELD_ALIGN (SERIALKEYSA, lpszPort, 8)
3053 TEST_FIELD_OFFSET(SERIALKEYSA, lpszPort, 16)
3054 TEST_FIELD_SIZE (SERIALKEYSA, iBaudRate, 4)
3055 TEST_FIELD_ALIGN (SERIALKEYSA, iBaudRate, 4)
3056 TEST_FIELD_OFFSET(SERIALKEYSA, iBaudRate, 24)
3057 TEST_FIELD_SIZE (SERIALKEYSA, iPortState, 4)
3058 TEST_FIELD_ALIGN (SERIALKEYSA, iPortState, 4)
3059 TEST_FIELD_OFFSET(SERIALKEYSA, iPortState, 28)
3060 TEST_FIELD_SIZE (SERIALKEYSA, iActive, 4)
3061 TEST_FIELD_ALIGN (SERIALKEYSA, iActive, 4)
3062 TEST_FIELD_OFFSET(SERIALKEYSA, iActive, 32)
3063 }
3064
3065 static void test_pack_SERIALKEYSW(void)
3066 {
3067 /* SERIALKEYSW */
3068 TEST_TYPE_SIZE (SERIALKEYSW, 40)
3069 TEST_TYPE_ALIGN (SERIALKEYSW, 8)
3070 TEST_FIELD_SIZE (SERIALKEYSW, cbSize, 4)
3071 TEST_FIELD_ALIGN (SERIALKEYSW, cbSize, 4)
3072 TEST_FIELD_OFFSET(SERIALKEYSW, cbSize, 0)
3073 TEST_FIELD_SIZE (SERIALKEYSW, dwFlags, 4)
3074 TEST_FIELD_ALIGN (SERIALKEYSW, dwFlags, 4)
3075 TEST_FIELD_OFFSET(SERIALKEYSW, dwFlags, 4)
3076 TEST_FIELD_SIZE (SERIALKEYSW, lpszActivePort, 8)
3077 TEST_FIELD_ALIGN (SERIALKEYSW, lpszActivePort, 8)
3078 TEST_FIELD_OFFSET(SERIALKEYSW, lpszActivePort, 8)
3079 TEST_FIELD_SIZE (SERIALKEYSW, lpszPort, 8)
3080 TEST_FIELD_ALIGN (SERIALKEYSW, lpszPort, 8)
3081 TEST_FIELD_OFFSET(SERIALKEYSW, lpszPort, 16)
3082 TEST_FIELD_SIZE (SERIALKEYSW, iBaudRate, 4)
3083 TEST_FIELD_ALIGN (SERIALKEYSW, iBaudRate, 4)
3084 TEST_FIELD_OFFSET(SERIALKEYSW, iBaudRate, 24)
3085 TEST_FIELD_SIZE (SERIALKEYSW, iPortState, 4)
3086 TEST_FIELD_ALIGN (SERIALKEYSW, iPortState, 4)
3087 TEST_FIELD_OFFSET(SERIALKEYSW, iPortState, 28)
3088 TEST_FIELD_SIZE (SERIALKEYSW, iActive, 4)
3089 TEST_FIELD_ALIGN (SERIALKEYSW, iActive, 4)
3090 TEST_FIELD_OFFSET(SERIALKEYSW, iActive, 32)
3091 }
3092
3093 static void test_pack_SOUNDSENTRYA(void)
3094 {
3095 /* SOUNDSENTRYA */
3096 TEST_TYPE_SIZE (SOUNDSENTRYA, 56)
3097 TEST_TYPE_ALIGN (SOUNDSENTRYA, 8)
3098 TEST_FIELD_SIZE (SOUNDSENTRYA, cbSize, 4)
3099 TEST_FIELD_ALIGN (SOUNDSENTRYA, cbSize, 4)
3100 TEST_FIELD_OFFSET(SOUNDSENTRYA, cbSize, 0)
3101 TEST_FIELD_SIZE (SOUNDSENTRYA, dwFlags, 4)
3102 TEST_FIELD_ALIGN (SOUNDSENTRYA, dwFlags, 4)