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