1 /* File generated automatically from tools/winapi/test.dat; do not edit! */
2 /* This file can be copied, modified and distributed without restriction. */
5 * Unit tests for data structure packing
9 #define _WIN32_IE 0x0501
10 #define _WIN32_WINNT 0x0501
12 #define WINE_NOWINSOCK
16 #include "wine/test.h"
18 /***********************************************************************
22 #define DWORD_PTR UINT_PTR
23 #define LONG_PTR INT_PTR
24 #define ULONG_PTR UINT_PTR
26 /***********************************************************************
27 * Windows API extension
30 #if defined(_MSC_VER) && (_MSC_VER >= 1300) && defined(__cplusplus)
31 # define FIELD_ALIGNMENT(type, field) __alignof(((type*)0)->field)
32 #elif defined(__GNUC__)
33 # define FIELD_ALIGNMENT(type, field) __alignof__(((type*)0)->field)
35 /* FIXME: Not sure if is possible to do without compiler extension */
38 #if defined(_MSC_VER) && (_MSC_VER >= 1300) && defined(__cplusplus)
39 # define _TYPE_ALIGNMENT(type) __alignof(type)
40 #elif defined(__GNUC__)
41 # define _TYPE_ALIGNMENT(type) __alignof__(type)
44 * FIXME: Not sure if is possible to do without compiler extension
45 * (if type is not just a name that is, if so the normal)
46 * TYPE_ALIGNMENT can be used)
50 #if defined(TYPE_ALIGNMENT) && defined(_MSC_VER) && _MSC_VER >= 800 && !defined(__cplusplus)
51 #pragma warning(disable:4116)
54 #if !defined(TYPE_ALIGNMENT) && defined(_TYPE_ALIGNMENT)
55 # define TYPE_ALIGNMENT _TYPE_ALIGNMENT
58 /***********************************************************************
62 #ifdef FIELD_ALIGNMENT
63 # define TEST_FIELD_ALIGNMENT(type, field, align) \
64 ok(FIELD_ALIGNMENT(type, field) == align, \
65 "FIELD_ALIGNMENT(" #type ", " #field ") == %d (expected " #align ")\n", \
66 FIELD_ALIGNMENT(type, field))
68 # define TEST_FIELD_ALIGNMENT(type, field, align) do { } while (0)
71 #define TEST_FIELD_OFFSET(type, field, offset) \
72 ok(FIELD_OFFSET(type, field) == offset, \
73 "FIELD_OFFSET(" #type ", " #field ") == %ld (expected " #offset ")\n", \
74 FIELD_OFFSET(type, field))
76 #ifdef _TYPE_ALIGNMENT
77 #define TEST__TYPE_ALIGNMENT(type, align) \
78 ok(_TYPE_ALIGNMENT(type) == align, "TYPE_ALIGNMENT(" #type ") == %d (expected " #align ")\n", _TYPE_ALIGNMENT(type))
80 # define TEST__TYPE_ALIGNMENT(type, align) do { } while (0)
84 #define TEST_TYPE_ALIGNMENT(type, align) \
85 ok(TYPE_ALIGNMENT(type) == align, "TYPE_ALIGNMENT(" #type ") == %d (expected " #align ")\n", TYPE_ALIGNMENT(type))
87 # define TEST_TYPE_ALIGNMENT(type, align) do { } while (0)
90 #define TEST_TYPE_SIZE(type, size) \
91 ok(sizeof(type) == size, "sizeof(" #type ") == %d (expected " #size ")\n", sizeof(type))
93 /***********************************************************************
97 #define TEST_FIELD(type, field_type, field_name, field_offset, field_size, field_align) \
98 TEST_TYPE_SIZE(field_type, field_size); \
99 TEST_FIELD_ALIGNMENT(type, field_name, field_align); \
100 TEST_FIELD_OFFSET(type, field_name, field_offset); \
102 #define TEST_TYPE(type, size, align) \
103 TEST_TYPE_ALIGNMENT(type, align); \
104 TEST_TYPE_SIZE(type, size)
106 #define TEST_TYPE_POINTER(type, size, align) \
107 TEST__TYPE_ALIGNMENT(*(type)0, align); \
108 TEST_TYPE_SIZE(*(type)0, size)
110 #define TEST_TYPE_SIGNED(type) \
111 ok((type) -1 < 0, "(" #type ") -1 < 0\n");
113 #define TEST_TYPE_UNSIGNED(type) \
114 ok((type) -1 > 0, "(" #type ") -1 > 0\n");
116 static void test_pack_ACCEL(void)
119 TEST_TYPE(ACCEL, 6, 2);
120 TEST_FIELD(ACCEL, BYTE, fVirt, 0, 1, 1);
121 TEST_FIELD(ACCEL, WORD, key, 2, 2, 2);
122 TEST_FIELD(ACCEL, WORD, cmd, 4, 2, 2);
125 static void test_pack_ACCESSTIMEOUT(void)
127 /* ACCESSTIMEOUT (pack 4) */
128 TEST_TYPE(ACCESSTIMEOUT, 12, 4);
129 TEST_FIELD(ACCESSTIMEOUT, UINT, cbSize, 0, 4, 4);
130 TEST_FIELD(ACCESSTIMEOUT, DWORD, dwFlags, 4, 4, 4);
131 TEST_FIELD(ACCESSTIMEOUT, DWORD, iTimeOutMSec, 8, 4, 4);
134 static void test_pack_ANIMATIONINFO(void)
136 /* ANIMATIONINFO (pack 4) */
137 TEST_TYPE(ANIMATIONINFO, 8, 4);
138 TEST_FIELD(ANIMATIONINFO, UINT, cbSize, 0, 4, 4);
139 TEST_FIELD(ANIMATIONINFO, INT, iMinAnimate, 4, 4, 4);
142 static void test_pack_CBTACTIVATESTRUCT(void)
144 /* CBTACTIVATESTRUCT (pack 4) */
145 TEST_TYPE(CBTACTIVATESTRUCT, 8, 4);
146 TEST_FIELD(CBTACTIVATESTRUCT, BOOL, fMouse, 0, 4, 4);
147 TEST_FIELD(CBTACTIVATESTRUCT, HWND, hWndActive, 4, 4, 4);
150 static void test_pack_CBT_CREATEWNDA(void)
152 /* CBT_CREATEWNDA (pack 4) */
153 TEST_TYPE(CBT_CREATEWNDA, 8, 4);
154 TEST_FIELD(CBT_CREATEWNDA, CREATESTRUCTA *, lpcs, 0, 4, 4);
155 TEST_FIELD(CBT_CREATEWNDA, HWND, hwndInsertAfter, 4, 4, 4);
158 static void test_pack_CBT_CREATEWNDW(void)
160 /* CBT_CREATEWNDW (pack 4) */
161 TEST_TYPE(CBT_CREATEWNDW, 8, 4);
162 TEST_FIELD(CBT_CREATEWNDW, CREATESTRUCTW *, lpcs, 0, 4, 4);
163 TEST_FIELD(CBT_CREATEWNDW, HWND, hwndInsertAfter, 4, 4, 4);
166 static void test_pack_CLIENTCREATESTRUCT(void)
168 /* CLIENTCREATESTRUCT (pack 4) */
169 TEST_TYPE(CLIENTCREATESTRUCT, 8, 4);
170 TEST_FIELD(CLIENTCREATESTRUCT, HMENU, hWindowMenu, 0, 4, 4);
171 TEST_FIELD(CLIENTCREATESTRUCT, UINT, idFirstChild, 4, 4, 4);
174 static void test_pack_COMBOBOXINFO(void)
176 /* COMBOBOXINFO (pack 4) */
177 TEST_TYPE(COMBOBOXINFO, 52, 4);
178 TEST_FIELD(COMBOBOXINFO, DWORD, cbSize, 0, 4, 4);
179 TEST_FIELD(COMBOBOXINFO, RECT, rcItem, 4, 16, 4);
180 TEST_FIELD(COMBOBOXINFO, RECT, rcButton, 20, 16, 4);
181 TEST_FIELD(COMBOBOXINFO, DWORD, stateButton, 36, 4, 4);
182 TEST_FIELD(COMBOBOXINFO, HWND, hwndCombo, 40, 4, 4);
183 TEST_FIELD(COMBOBOXINFO, HWND, hwndItem, 44, 4, 4);
184 TEST_FIELD(COMBOBOXINFO, HWND, hwndList, 48, 4, 4);
187 static void test_pack_COMPAREITEMSTRUCT(void)
189 /* COMPAREITEMSTRUCT (pack 4) */
190 TEST_TYPE(COMPAREITEMSTRUCT, 32, 4);
191 TEST_FIELD(COMPAREITEMSTRUCT, UINT, CtlType, 0, 4, 4);
192 TEST_FIELD(COMPAREITEMSTRUCT, UINT, CtlID, 4, 4, 4);
193 TEST_FIELD(COMPAREITEMSTRUCT, HWND, hwndItem, 8, 4, 4);
194 TEST_FIELD(COMPAREITEMSTRUCT, UINT, itemID1, 12, 4, 4);
195 TEST_FIELD(COMPAREITEMSTRUCT, ULONG_PTR, itemData1, 16, 4, 4);
196 TEST_FIELD(COMPAREITEMSTRUCT, UINT, itemID2, 20, 4, 4);
197 TEST_FIELD(COMPAREITEMSTRUCT, ULONG_PTR, itemData2, 24, 4, 4);
198 TEST_FIELD(COMPAREITEMSTRUCT, DWORD, dwLocaleId, 28, 4, 4);
201 static void test_pack_COPYDATASTRUCT(void)
203 /* COPYDATASTRUCT (pack 4) */
204 TEST_TYPE(COPYDATASTRUCT, 12, 4);
205 TEST_FIELD(COPYDATASTRUCT, ULONG_PTR, dwData, 0, 4, 4);
206 TEST_FIELD(COPYDATASTRUCT, DWORD, cbData, 4, 4, 4);
207 TEST_FIELD(COPYDATASTRUCT, PVOID, lpData, 8, 4, 4);
210 static void test_pack_CREATESTRUCTA(void)
212 /* CREATESTRUCTA (pack 4) */
213 TEST_TYPE(CREATESTRUCTA, 48, 4);
214 TEST_FIELD(CREATESTRUCTA, LPVOID, lpCreateParams, 0, 4, 4);
215 TEST_FIELD(CREATESTRUCTA, HINSTANCE, hInstance, 4, 4, 4);
216 TEST_FIELD(CREATESTRUCTA, HMENU, hMenu, 8, 4, 4);
217 TEST_FIELD(CREATESTRUCTA, HWND, hwndParent, 12, 4, 4);
218 TEST_FIELD(CREATESTRUCTA, INT, cy, 16, 4, 4);
219 TEST_FIELD(CREATESTRUCTA, INT, cx, 20, 4, 4);
220 TEST_FIELD(CREATESTRUCTA, INT, y, 24, 4, 4);
221 TEST_FIELD(CREATESTRUCTA, INT, x, 28, 4, 4);
222 TEST_FIELD(CREATESTRUCTA, LONG, style, 32, 4, 4);
223 TEST_FIELD(CREATESTRUCTA, LPCSTR, lpszName, 36, 4, 4);
224 TEST_FIELD(CREATESTRUCTA, LPCSTR, lpszClass, 40, 4, 4);
225 TEST_FIELD(CREATESTRUCTA, DWORD, dwExStyle, 44, 4, 4);
228 static void test_pack_CREATESTRUCTW(void)
230 /* CREATESTRUCTW (pack 4) */
231 TEST_TYPE(CREATESTRUCTW, 48, 4);
232 TEST_FIELD(CREATESTRUCTW, LPVOID, lpCreateParams, 0, 4, 4);
233 TEST_FIELD(CREATESTRUCTW, HINSTANCE, hInstance, 4, 4, 4);
234 TEST_FIELD(CREATESTRUCTW, HMENU, hMenu, 8, 4, 4);
235 TEST_FIELD(CREATESTRUCTW, HWND, hwndParent, 12, 4, 4);
236 TEST_FIELD(CREATESTRUCTW, INT, cy, 16, 4, 4);
237 TEST_FIELD(CREATESTRUCTW, INT, cx, 20, 4, 4);
238 TEST_FIELD(CREATESTRUCTW, INT, y, 24, 4, 4);
239 TEST_FIELD(CREATESTRUCTW, INT, x, 28, 4, 4);
240 TEST_FIELD(CREATESTRUCTW, LONG, style, 32, 4, 4);
241 TEST_FIELD(CREATESTRUCTW, LPCWSTR, lpszName, 36, 4, 4);
242 TEST_FIELD(CREATESTRUCTW, LPCWSTR, lpszClass, 40, 4, 4);
243 TEST_FIELD(CREATESTRUCTW, DWORD, dwExStyle, 44, 4, 4);
246 static void test_pack_CURSORINFO(void)
248 /* CURSORINFO (pack 4) */
249 TEST_TYPE(CURSORINFO, 20, 4);
250 TEST_FIELD(CURSORINFO, DWORD, cbSize, 0, 4, 4);
251 TEST_FIELD(CURSORINFO, DWORD, flags, 4, 4, 4);
252 TEST_FIELD(CURSORINFO, HCURSOR, hCursor, 8, 4, 4);
253 TEST_FIELD(CURSORINFO, POINT, ptScreenPos, 12, 8, 4);
256 static void test_pack_CWPRETSTRUCT(void)
258 /* CWPRETSTRUCT (pack 4) */
259 TEST_TYPE(CWPRETSTRUCT, 20, 4);
260 TEST_FIELD(CWPRETSTRUCT, LRESULT, lResult, 0, 4, 4);
261 TEST_FIELD(CWPRETSTRUCT, LPARAM, lParam, 4, 4, 4);
262 TEST_FIELD(CWPRETSTRUCT, WPARAM, wParam, 8, 4, 4);
263 TEST_FIELD(CWPRETSTRUCT, DWORD, message, 12, 4, 4);
264 TEST_FIELD(CWPRETSTRUCT, HWND, hwnd, 16, 4, 4);
267 static void test_pack_CWPSTRUCT(void)
269 /* CWPSTRUCT (pack 4) */
270 TEST_TYPE(CWPSTRUCT, 16, 4);
271 TEST_FIELD(CWPSTRUCT, LPARAM, lParam, 0, 4, 4);
272 TEST_FIELD(CWPSTRUCT, WPARAM, wParam, 4, 4, 4);
273 TEST_FIELD(CWPSTRUCT, UINT, message, 8, 4, 4);
274 TEST_FIELD(CWPSTRUCT, HWND, hwnd, 12, 4, 4);
277 static void test_pack_DEBUGHOOKINFO(void)
279 /* DEBUGHOOKINFO (pack 4) */
280 TEST_TYPE(DEBUGHOOKINFO, 20, 4);
281 TEST_FIELD(DEBUGHOOKINFO, DWORD, idThread, 0, 4, 4);
282 TEST_FIELD(DEBUGHOOKINFO, DWORD, idThreadInstaller, 4, 4, 4);
283 TEST_FIELD(DEBUGHOOKINFO, LPARAM, lParam, 8, 4, 4);
284 TEST_FIELD(DEBUGHOOKINFO, WPARAM, wParam, 12, 4, 4);
285 TEST_FIELD(DEBUGHOOKINFO, INT, code, 16, 4, 4);
288 static void test_pack_DELETEITEMSTRUCT(void)
290 /* DELETEITEMSTRUCT (pack 4) */
291 TEST_TYPE(DELETEITEMSTRUCT, 20, 4);
292 TEST_FIELD(DELETEITEMSTRUCT, UINT, CtlType, 0, 4, 4);
293 TEST_FIELD(DELETEITEMSTRUCT, UINT, CtlID, 4, 4, 4);
294 TEST_FIELD(DELETEITEMSTRUCT, UINT, itemID, 8, 4, 4);
295 TEST_FIELD(DELETEITEMSTRUCT, HWND, hwndItem, 12, 4, 4);
296 TEST_FIELD(DELETEITEMSTRUCT, ULONG_PTR, itemData, 16, 4, 4);
299 static void test_pack_DESKTOPENUMPROCA(void)
301 /* DESKTOPENUMPROCA */
302 TEST_TYPE(DESKTOPENUMPROCA, 4, 4);
305 static void test_pack_DESKTOPENUMPROCW(void)
307 /* DESKTOPENUMPROCW */
308 TEST_TYPE(DESKTOPENUMPROCW, 4, 4);
311 static void test_pack_DLGITEMTEMPLATE(void)
313 /* DLGITEMTEMPLATE (pack 2) */
314 TEST_TYPE(DLGITEMTEMPLATE, 18, 2);
315 TEST_FIELD(DLGITEMTEMPLATE, DWORD, style, 0, 4, 2);
316 TEST_FIELD(DLGITEMTEMPLATE, DWORD, dwExtendedStyle, 4, 4, 2);
317 TEST_FIELD(DLGITEMTEMPLATE, short, x, 8, 2, 2);
318 TEST_FIELD(DLGITEMTEMPLATE, short, y, 10, 2, 2);
319 TEST_FIELD(DLGITEMTEMPLATE, short, cx, 12, 2, 2);
320 TEST_FIELD(DLGITEMTEMPLATE, short, cy, 14, 2, 2);
321 TEST_FIELD(DLGITEMTEMPLATE, WORD, id, 16, 2, 2);
324 static void test_pack_DLGPROC(void)
327 TEST_TYPE(DLGPROC, 4, 4);
330 static void test_pack_DLGTEMPLATE(void)
332 /* DLGTEMPLATE (pack 2) */
333 TEST_TYPE(DLGTEMPLATE, 18, 2);
334 TEST_FIELD(DLGTEMPLATE, DWORD, style, 0, 4, 2);
335 TEST_FIELD(DLGTEMPLATE, DWORD, dwExtendedStyle, 4, 4, 2);
336 TEST_FIELD(DLGTEMPLATE, WORD, cdit, 8, 2, 2);
337 TEST_FIELD(DLGTEMPLATE, short, x, 10, 2, 2);
338 TEST_FIELD(DLGTEMPLATE, short, y, 12, 2, 2);
339 TEST_FIELD(DLGTEMPLATE, short, cx, 14, 2, 2);
340 TEST_FIELD(DLGTEMPLATE, short, cy, 16, 2, 2);
343 static void test_pack_DRAWITEMSTRUCT(void)
345 /* DRAWITEMSTRUCT (pack 4) */
346 TEST_TYPE(DRAWITEMSTRUCT, 48, 4);
347 TEST_FIELD(DRAWITEMSTRUCT, UINT, CtlType, 0, 4, 4);
348 TEST_FIELD(DRAWITEMSTRUCT, UINT, CtlID, 4, 4, 4);
349 TEST_FIELD(DRAWITEMSTRUCT, UINT, itemID, 8, 4, 4);
350 TEST_FIELD(DRAWITEMSTRUCT, UINT, itemAction, 12, 4, 4);
351 TEST_FIELD(DRAWITEMSTRUCT, UINT, itemState, 16, 4, 4);
352 TEST_FIELD(DRAWITEMSTRUCT, HWND, hwndItem, 20, 4, 4);
353 TEST_FIELD(DRAWITEMSTRUCT, HDC, hDC, 24, 4, 4);
354 TEST_FIELD(DRAWITEMSTRUCT, RECT, rcItem, 28, 16, 4);
355 TEST_FIELD(DRAWITEMSTRUCT, ULONG_PTR, itemData, 44, 4, 4);
358 static void test_pack_DRAWSTATEPROC(void)
361 TEST_TYPE(DRAWSTATEPROC, 4, 4);
364 static void test_pack_DRAWTEXTPARAMS(void)
366 /* DRAWTEXTPARAMS (pack 4) */
367 TEST_TYPE(DRAWTEXTPARAMS, 20, 4);
368 TEST_FIELD(DRAWTEXTPARAMS, UINT, cbSize, 0, 4, 4);
369 TEST_FIELD(DRAWTEXTPARAMS, INT, iTabLength, 4, 4, 4);
370 TEST_FIELD(DRAWTEXTPARAMS, INT, iLeftMargin, 8, 4, 4);
371 TEST_FIELD(DRAWTEXTPARAMS, INT, iRightMargin, 12, 4, 4);
372 TEST_FIELD(DRAWTEXTPARAMS, UINT, uiLengthDrawn, 16, 4, 4);
375 static void test_pack_EDITWORDBREAKPROCA(void)
377 /* EDITWORDBREAKPROCA */
378 TEST_TYPE(EDITWORDBREAKPROCA, 4, 4);
381 static void test_pack_EDITWORDBREAKPROCW(void)
383 /* EDITWORDBREAKPROCW */
384 TEST_TYPE(EDITWORDBREAKPROCW, 4, 4);
387 static void test_pack_EVENTMSG(void)
389 /* EVENTMSG (pack 4) */
390 TEST_TYPE(EVENTMSG, 20, 4);
391 TEST_FIELD(EVENTMSG, UINT, message, 0, 4, 4);
392 TEST_FIELD(EVENTMSG, UINT, paramL, 4, 4, 4);
393 TEST_FIELD(EVENTMSG, UINT, paramH, 8, 4, 4);
394 TEST_FIELD(EVENTMSG, DWORD, time, 12, 4, 4);
395 TEST_FIELD(EVENTMSG, HWND, hwnd, 16, 4, 4);
398 static void test_pack_FILTERKEYS(void)
400 /* FILTERKEYS (pack 4) */
401 TEST_TYPE(FILTERKEYS, 24, 4);
402 TEST_FIELD(FILTERKEYS, UINT, cbSize, 0, 4, 4);
403 TEST_FIELD(FILTERKEYS, DWORD, dwFlags, 4, 4, 4);
404 TEST_FIELD(FILTERKEYS, DWORD, iWaitMSec, 8, 4, 4);
405 TEST_FIELD(FILTERKEYS, DWORD, iDelayMSec, 12, 4, 4);
406 TEST_FIELD(FILTERKEYS, DWORD, iRepeatMSec, 16, 4, 4);
407 TEST_FIELD(FILTERKEYS, DWORD, iBounceMSec, 20, 4, 4);
410 static void test_pack_FLASHWINFO(void)
412 /* FLASHWINFO (pack 4) */
413 TEST_TYPE(FLASHWINFO, 20, 4);
414 TEST_FIELD(FLASHWINFO, UINT, cbSize, 0, 4, 4);
415 TEST_FIELD(FLASHWINFO, HWND, hwnd, 4, 4, 4);
416 TEST_FIELD(FLASHWINFO, DWORD, dwFlags, 8, 4, 4);
417 TEST_FIELD(FLASHWINFO, UINT, uCount, 12, 4, 4);
418 TEST_FIELD(FLASHWINFO, DWORD, dwTimeout, 16, 4, 4);
421 static void test_pack_GRAYSTRINGPROC(void)
424 TEST_TYPE(GRAYSTRINGPROC, 4, 4);
427 static void test_pack_GUITHREADINFO(void)
429 /* GUITHREADINFO (pack 4) */
430 TEST_TYPE(GUITHREADINFO, 48, 4);
431 TEST_FIELD(GUITHREADINFO, DWORD, cbSize, 0, 4, 4);
432 TEST_FIELD(GUITHREADINFO, DWORD, flags, 4, 4, 4);
433 TEST_FIELD(GUITHREADINFO, HWND, hwndActive, 8, 4, 4);
434 TEST_FIELD(GUITHREADINFO, HWND, hwndFocus, 12, 4, 4);
435 TEST_FIELD(GUITHREADINFO, HWND, hwndCapture, 16, 4, 4);
436 TEST_FIELD(GUITHREADINFO, HWND, hwndMenuOwner, 20, 4, 4);
437 TEST_FIELD(GUITHREADINFO, HWND, hwndMoveSize, 24, 4, 4);
438 TEST_FIELD(GUITHREADINFO, HWND, hwndCaret, 28, 4, 4);
439 TEST_FIELD(GUITHREADINFO, RECT, rcCaret, 32, 16, 4);
442 static void test_pack_HARDWAREHOOKSTRUCT(void)
444 /* HARDWAREHOOKSTRUCT (pack 4) */
445 TEST_TYPE(HARDWAREHOOKSTRUCT, 16, 4);
446 TEST_FIELD(HARDWAREHOOKSTRUCT, HWND, hwnd, 0, 4, 4);
447 TEST_FIELD(HARDWAREHOOKSTRUCT, UINT, message, 4, 4, 4);
448 TEST_FIELD(HARDWAREHOOKSTRUCT, WPARAM, wParam, 8, 4, 4);
449 TEST_FIELD(HARDWAREHOOKSTRUCT, LPARAM, lParam, 12, 4, 4);
452 static void test_pack_HARDWAREINPUT(void)
454 /* HARDWAREINPUT (pack 4) */
455 TEST_TYPE(HARDWAREINPUT, 8, 4);
456 TEST_FIELD(HARDWAREINPUT, DWORD, uMsg, 0, 4, 4);
457 TEST_FIELD(HARDWAREINPUT, WORD, wParamL, 4, 2, 2);
458 TEST_FIELD(HARDWAREINPUT, WORD, wParamH, 6, 2, 2);
461 static void test_pack_HDEVNOTIFY(void)
464 TEST_TYPE(HDEVNOTIFY, 4, 4);
467 static void test_pack_HDWP(void)
470 TEST_TYPE(HDWP, 4, 4);
473 static void test_pack_HELPINFO(void)
475 /* HELPINFO (pack 4) */
476 TEST_TYPE(HELPINFO, 28, 4);
477 TEST_FIELD(HELPINFO, UINT, cbSize, 0, 4, 4);
478 TEST_FIELD(HELPINFO, INT, iContextType, 4, 4, 4);
479 TEST_FIELD(HELPINFO, INT, iCtrlId, 8, 4, 4);
480 TEST_FIELD(HELPINFO, HANDLE, hItemHandle, 12, 4, 4);
481 TEST_FIELD(HELPINFO, DWORD_PTR, dwContextId, 16, 4, 4);
482 TEST_FIELD(HELPINFO, POINT, MousePos, 20, 8, 4);
485 static void test_pack_HELPWININFOA(void)
487 /* HELPWININFOA (pack 4) */
488 TEST_TYPE(HELPWININFOA, 28, 4);
489 TEST_FIELD(HELPWININFOA, int, wStructSize, 0, 4, 4);
490 TEST_FIELD(HELPWININFOA, int, x, 4, 4, 4);
491 TEST_FIELD(HELPWININFOA, int, y, 8, 4, 4);
492 TEST_FIELD(HELPWININFOA, int, dx, 12, 4, 4);
493 TEST_FIELD(HELPWININFOA, int, dy, 16, 4, 4);
494 TEST_FIELD(HELPWININFOA, int, wMax, 20, 4, 4);
495 TEST_FIELD(HELPWININFOA, CHAR[2], rgchMember, 24, 2, 1);
498 static void test_pack_HELPWININFOW(void)
500 /* HELPWININFOW (pack 4) */
501 TEST_TYPE(HELPWININFOW, 28, 4);
502 TEST_FIELD(HELPWININFOW, int, wStructSize, 0, 4, 4);
503 TEST_FIELD(HELPWININFOW, int, x, 4, 4, 4);
504 TEST_FIELD(HELPWININFOW, int, y, 8, 4, 4);
505 TEST_FIELD(HELPWININFOW, int, dx, 12, 4, 4);
506 TEST_FIELD(HELPWININFOW, int, dy, 16, 4, 4);
507 TEST_FIELD(HELPWININFOW, int, wMax, 20, 4, 4);
508 TEST_FIELD(HELPWININFOW, WCHAR[2], rgchMember, 24, 4, 2);
511 static void test_pack_HIGHCONTRASTA(void)
513 /* HIGHCONTRASTA (pack 4) */
514 TEST_TYPE(HIGHCONTRASTA, 12, 4);
515 TEST_FIELD(HIGHCONTRASTA, UINT, cbSize, 0, 4, 4);
516 TEST_FIELD(HIGHCONTRASTA, DWORD, dwFlags, 4, 4, 4);
517 TEST_FIELD(HIGHCONTRASTA, LPSTR, lpszDefaultScheme, 8, 4, 4);
520 static void test_pack_HIGHCONTRASTW(void)
522 /* HIGHCONTRASTW (pack 4) */
523 TEST_TYPE(HIGHCONTRASTW, 12, 4);
524 TEST_FIELD(HIGHCONTRASTW, UINT, cbSize, 0, 4, 4);
525 TEST_FIELD(HIGHCONTRASTW, DWORD, dwFlags, 4, 4, 4);
526 TEST_FIELD(HIGHCONTRASTW, LPWSTR, lpszDefaultScheme, 8, 4, 4);
529 static void test_pack_HOOKPROC(void)
532 TEST_TYPE(HOOKPROC, 4, 4);
535 static void test_pack_ICONINFO(void)
537 /* ICONINFO (pack 4) */
538 TEST_TYPE(ICONINFO, 20, 4);
539 TEST_FIELD(ICONINFO, BOOL, fIcon, 0, 4, 4);
540 TEST_FIELD(ICONINFO, DWORD, xHotspot, 4, 4, 4);
541 TEST_FIELD(ICONINFO, DWORD, yHotspot, 8, 4, 4);
542 TEST_FIELD(ICONINFO, HBITMAP, hbmMask, 12, 4, 4);
543 TEST_FIELD(ICONINFO, HBITMAP, hbmColor, 16, 4, 4);
546 static void test_pack_ICONMETRICSA(void)
548 /* ICONMETRICSA (pack 4) */
549 TEST_TYPE(ICONMETRICSA, 76, 4);
550 TEST_FIELD(ICONMETRICSA, UINT, cbSize, 0, 4, 4);
551 TEST_FIELD(ICONMETRICSA, int, iHorzSpacing, 4, 4, 4);
552 TEST_FIELD(ICONMETRICSA, int, iVertSpacing, 8, 4, 4);
553 TEST_FIELD(ICONMETRICSA, int, iTitleWrap, 12, 4, 4);
554 TEST_FIELD(ICONMETRICSA, LOGFONTA, lfFont, 16, 60, 4);
557 static void test_pack_ICONMETRICSW(void)
559 /* ICONMETRICSW (pack 4) */
560 TEST_TYPE(ICONMETRICSW, 108, 4);
561 TEST_FIELD(ICONMETRICSW, UINT, cbSize, 0, 4, 4);
562 TEST_FIELD(ICONMETRICSW, int, iHorzSpacing, 4, 4, 4);
563 TEST_FIELD(ICONMETRICSW, int, iVertSpacing, 8, 4, 4);
564 TEST_FIELD(ICONMETRICSW, int, iTitleWrap, 12, 4, 4);
565 TEST_FIELD(ICONMETRICSW, LOGFONTW, lfFont, 16, 92, 4);
568 static void test_pack_INPUT(void)
571 TEST_FIELD(INPUT, DWORD, type, 0, 4, 4);
574 static void test_pack_KBDLLHOOKSTRUCT(void)
576 /* KBDLLHOOKSTRUCT (pack 4) */
577 TEST_TYPE(KBDLLHOOKSTRUCT, 20, 4);
578 TEST_FIELD(KBDLLHOOKSTRUCT, DWORD, vkCode, 0, 4, 4);
579 TEST_FIELD(KBDLLHOOKSTRUCT, DWORD, scanCode, 4, 4, 4);
580 TEST_FIELD(KBDLLHOOKSTRUCT, DWORD, flags, 8, 4, 4);
581 TEST_FIELD(KBDLLHOOKSTRUCT, DWORD, time, 12, 4, 4);
582 TEST_FIELD(KBDLLHOOKSTRUCT, ULONG_PTR, dwExtraInfo, 16, 4, 4);
585 static void test_pack_KEYBDINPUT(void)
587 /* KEYBDINPUT (pack 4) */
588 TEST_TYPE(KEYBDINPUT, 16, 4);
589 TEST_FIELD(KEYBDINPUT, WORD, wVk, 0, 2, 2);
590 TEST_FIELD(KEYBDINPUT, WORD, wScan, 2, 2, 2);
591 TEST_FIELD(KEYBDINPUT, DWORD, dwFlags, 4, 4, 4);
592 TEST_FIELD(KEYBDINPUT, DWORD, time, 8, 4, 4);
593 TEST_FIELD(KEYBDINPUT, ULONG_PTR, dwExtraInfo, 12, 4, 4);
596 static void test_pack_LPACCEL(void)
599 TEST_TYPE(LPACCEL, 4, 4);
600 TEST_TYPE_POINTER(LPACCEL, 6, 2);
603 static void test_pack_LPACCESSTIMEOUT(void)
605 /* LPACCESSTIMEOUT */
606 TEST_TYPE(LPACCESSTIMEOUT, 4, 4);
607 TEST_TYPE_POINTER(LPACCESSTIMEOUT, 12, 4);
610 static void test_pack_LPANIMATIONINFO(void)
612 /* LPANIMATIONINFO */
613 TEST_TYPE(LPANIMATIONINFO, 4, 4);
614 TEST_TYPE_POINTER(LPANIMATIONINFO, 8, 4);
617 static void test_pack_LPCBTACTIVATESTRUCT(void)
619 /* LPCBTACTIVATESTRUCT */
620 TEST_TYPE(LPCBTACTIVATESTRUCT, 4, 4);
621 TEST_TYPE_POINTER(LPCBTACTIVATESTRUCT, 8, 4);
624 static void test_pack_LPCBT_CREATEWNDA(void)
626 /* LPCBT_CREATEWNDA */
627 TEST_TYPE(LPCBT_CREATEWNDA, 4, 4);
628 TEST_TYPE_POINTER(LPCBT_CREATEWNDA, 8, 4);
631 static void test_pack_LPCBT_CREATEWNDW(void)
633 /* LPCBT_CREATEWNDW */
634 TEST_TYPE(LPCBT_CREATEWNDW, 4, 4);
635 TEST_TYPE_POINTER(LPCBT_CREATEWNDW, 8, 4);
638 static void test_pack_LPCDLGTEMPLATEA(void)
640 /* LPCDLGTEMPLATEA */
641 TEST_TYPE(LPCDLGTEMPLATEA, 4, 4);
642 TEST_TYPE_POINTER(LPCDLGTEMPLATEA, 18, 2);
645 static void test_pack_LPCDLGTEMPLATEW(void)
647 /* LPCDLGTEMPLATEW */
648 TEST_TYPE(LPCDLGTEMPLATEW, 4, 4);
649 TEST_TYPE_POINTER(LPCDLGTEMPLATEW, 18, 2);
652 static void test_pack_LPCLIENTCREATESTRUCT(void)
654 /* LPCLIENTCREATESTRUCT */
655 TEST_TYPE(LPCLIENTCREATESTRUCT, 4, 4);
656 TEST_TYPE_POINTER(LPCLIENTCREATESTRUCT, 8, 4);
659 static void test_pack_LPCMENUINFO(void)
662 TEST_TYPE(LPCMENUINFO, 4, 4);
663 TEST_TYPE_POINTER(LPCMENUINFO, 28, 4);
666 static void test_pack_LPCMENUITEMINFOA(void)
668 /* LPCMENUITEMINFOA */
669 TEST_TYPE(LPCMENUITEMINFOA, 4, 4);
670 TEST_TYPE_POINTER(LPCMENUITEMINFOA, 48, 4);
673 static void test_pack_LPCMENUITEMINFOW(void)
675 /* LPCMENUITEMINFOW */
676 TEST_TYPE(LPCMENUITEMINFOW, 4, 4);
677 TEST_TYPE_POINTER(LPCMENUITEMINFOW, 48, 4);
680 static void test_pack_LPCOMBOBOXINFO(void)
683 TEST_TYPE(LPCOMBOBOXINFO, 4, 4);
684 TEST_TYPE_POINTER(LPCOMBOBOXINFO, 52, 4);
687 static void test_pack_LPCOMPAREITEMSTRUCT(void)
689 /* LPCOMPAREITEMSTRUCT */
690 TEST_TYPE(LPCOMPAREITEMSTRUCT, 4, 4);
691 TEST_TYPE_POINTER(LPCOMPAREITEMSTRUCT, 32, 4);
694 static void test_pack_LPCREATESTRUCTA(void)
696 /* LPCREATESTRUCTA */
697 TEST_TYPE(LPCREATESTRUCTA, 4, 4);
698 TEST_TYPE_POINTER(LPCREATESTRUCTA, 48, 4);
701 static void test_pack_LPCREATESTRUCTW(void)
703 /* LPCREATESTRUCTW */
704 TEST_TYPE(LPCREATESTRUCTW, 4, 4);
705 TEST_TYPE_POINTER(LPCREATESTRUCTW, 48, 4);
708 static void test_pack_LPCSCROLLINFO(void)
711 TEST_TYPE(LPCSCROLLINFO, 4, 4);
712 TEST_TYPE_POINTER(LPCSCROLLINFO, 28, 4);
715 static void test_pack_LPCURSORINFO(void)
718 TEST_TYPE(LPCURSORINFO, 4, 4);
719 TEST_TYPE_POINTER(LPCURSORINFO, 20, 4);
722 static void test_pack_LPCWPRETSTRUCT(void)
725 TEST_TYPE(LPCWPRETSTRUCT, 4, 4);
726 TEST_TYPE_POINTER(LPCWPRETSTRUCT, 20, 4);
729 static void test_pack_LPCWPSTRUCT(void)
732 TEST_TYPE(LPCWPSTRUCT, 4, 4);
733 TEST_TYPE_POINTER(LPCWPSTRUCT, 16, 4);
736 static void test_pack_LPDEBUGHOOKINFO(void)
738 /* LPDEBUGHOOKINFO */
739 TEST_TYPE(LPDEBUGHOOKINFO, 4, 4);
740 TEST_TYPE_POINTER(LPDEBUGHOOKINFO, 20, 4);
743 static void test_pack_LPDELETEITEMSTRUCT(void)
745 /* LPDELETEITEMSTRUCT */
746 TEST_TYPE(LPDELETEITEMSTRUCT, 4, 4);
747 TEST_TYPE_POINTER(LPDELETEITEMSTRUCT, 20, 4);
750 static void test_pack_LPDLGITEMTEMPLATEA(void)
752 /* LPDLGITEMTEMPLATEA */
753 TEST_TYPE(LPDLGITEMTEMPLATEA, 4, 4);
754 TEST_TYPE_POINTER(LPDLGITEMTEMPLATEA, 18, 2);
757 static void test_pack_LPDLGITEMTEMPLATEW(void)
759 /* LPDLGITEMTEMPLATEW */
760 TEST_TYPE(LPDLGITEMTEMPLATEW, 4, 4);
761 TEST_TYPE_POINTER(LPDLGITEMTEMPLATEW, 18, 2);
764 static void test_pack_LPDLGTEMPLATEA(void)
767 TEST_TYPE(LPDLGTEMPLATEA, 4, 4);
768 TEST_TYPE_POINTER(LPDLGTEMPLATEA, 18, 2);
771 static void test_pack_LPDLGTEMPLATEW(void)
774 TEST_TYPE(LPDLGTEMPLATEW, 4, 4);
775 TEST_TYPE_POINTER(LPDLGTEMPLATEW, 18, 2);
778 static void test_pack_LPDRAWITEMSTRUCT(void)
780 /* LPDRAWITEMSTRUCT */
781 TEST_TYPE(LPDRAWITEMSTRUCT, 4, 4);
782 TEST_TYPE_POINTER(LPDRAWITEMSTRUCT, 48, 4);
785 static void test_pack_LPDRAWTEXTPARAMS(void)
787 /* LPDRAWTEXTPARAMS */
788 TEST_TYPE(LPDRAWTEXTPARAMS, 4, 4);
789 TEST_TYPE_POINTER(LPDRAWTEXTPARAMS, 20, 4);
792 static void test_pack_LPEVENTMSG(void)
795 TEST_TYPE(LPEVENTMSG, 4, 4);
796 TEST_TYPE_POINTER(LPEVENTMSG, 20, 4);
799 static void test_pack_LPFILTERKEYS(void)
802 TEST_TYPE(LPFILTERKEYS, 4, 4);
803 TEST_TYPE_POINTER(LPFILTERKEYS, 24, 4);
806 static void test_pack_LPGUITHREADINFO(void)
808 /* LPGUITHREADINFO */
809 TEST_TYPE(LPGUITHREADINFO, 4, 4);
810 TEST_TYPE_POINTER(LPGUITHREADINFO, 48, 4);
813 static void test_pack_LPHARDWAREHOOKSTRUCT(void)
815 /* LPHARDWAREHOOKSTRUCT */
816 TEST_TYPE(LPHARDWAREHOOKSTRUCT, 4, 4);
817 TEST_TYPE_POINTER(LPHARDWAREHOOKSTRUCT, 16, 4);
820 static void test_pack_LPHARDWAREINPUT(void)
822 /* LPHARDWAREINPUT */
823 TEST_TYPE(LPHARDWAREINPUT, 4, 4);
824 TEST_TYPE_POINTER(LPHARDWAREINPUT, 8, 4);
827 static void test_pack_LPHELPINFO(void)
830 TEST_TYPE(LPHELPINFO, 4, 4);
831 TEST_TYPE_POINTER(LPHELPINFO, 28, 4);
834 static void test_pack_LPHELPWININFOA(void)
837 TEST_TYPE(LPHELPWININFOA, 4, 4);
838 TEST_TYPE_POINTER(LPHELPWININFOA, 28, 4);
841 static void test_pack_LPHELPWININFOW(void)
844 TEST_TYPE(LPHELPWININFOW, 4, 4);
845 TEST_TYPE_POINTER(LPHELPWININFOW, 28, 4);
848 static void test_pack_LPHIGHCONTRASTA(void)
850 /* LPHIGHCONTRASTA */
851 TEST_TYPE(LPHIGHCONTRASTA, 4, 4);
852 TEST_TYPE_POINTER(LPHIGHCONTRASTA, 12, 4);
855 static void test_pack_LPHIGHCONTRASTW(void)
857 /* LPHIGHCONTRASTW */
858 TEST_TYPE(LPHIGHCONTRASTW, 4, 4);
859 TEST_TYPE_POINTER(LPHIGHCONTRASTW, 12, 4);
862 static void test_pack_LPICONMETRICSA(void)
865 TEST_TYPE(LPICONMETRICSA, 4, 4);
866 TEST_TYPE_POINTER(LPICONMETRICSA, 76, 4);
869 static void test_pack_LPICONMETRICSW(void)
872 TEST_TYPE(LPICONMETRICSW, 4, 4);
873 TEST_TYPE_POINTER(LPICONMETRICSW, 108, 4);
876 static void test_pack_LPINPUT(void)
879 TEST_TYPE(LPINPUT, 4, 4);
882 static void test_pack_LPKBDLLHOOKSTRUCT(void)
884 /* LPKBDLLHOOKSTRUCT */
885 TEST_TYPE(LPKBDLLHOOKSTRUCT, 4, 4);
886 TEST_TYPE_POINTER(LPKBDLLHOOKSTRUCT, 20, 4);
889 static void test_pack_LPKEYBDINPUT(void)
892 TEST_TYPE(LPKEYBDINPUT, 4, 4);
893 TEST_TYPE_POINTER(LPKEYBDINPUT, 16, 4);
896 static void test_pack_LPMDICREATESTRUCTA(void)
898 /* LPMDICREATESTRUCTA */
899 TEST_TYPE(LPMDICREATESTRUCTA, 4, 4);
900 TEST_TYPE_POINTER(LPMDICREATESTRUCTA, 36, 4);
903 static void test_pack_LPMDICREATESTRUCTW(void)
905 /* LPMDICREATESTRUCTW */
906 TEST_TYPE(LPMDICREATESTRUCTW, 4, 4);
907 TEST_TYPE_POINTER(LPMDICREATESTRUCTW, 36, 4);
910 static void test_pack_LPMDINEXTMENU(void)
913 TEST_TYPE(LPMDINEXTMENU, 4, 4);
914 TEST_TYPE_POINTER(LPMDINEXTMENU, 12, 4);
917 static void test_pack_LPMEASUREITEMSTRUCT(void)
919 /* LPMEASUREITEMSTRUCT */
920 TEST_TYPE(LPMEASUREITEMSTRUCT, 4, 4);
921 TEST_TYPE_POINTER(LPMEASUREITEMSTRUCT, 24, 4);
924 static void test_pack_LPMENUINFO(void)
927 TEST_TYPE(LPMENUINFO, 4, 4);
928 TEST_TYPE_POINTER(LPMENUINFO, 28, 4);
931 static void test_pack_LPMENUITEMINFOA(void)
933 /* LPMENUITEMINFOA */
934 TEST_TYPE(LPMENUITEMINFOA, 4, 4);
935 TEST_TYPE_POINTER(LPMENUITEMINFOA, 48, 4);
938 static void test_pack_LPMENUITEMINFOW(void)
940 /* LPMENUITEMINFOW */
941 TEST_TYPE(LPMENUITEMINFOW, 4, 4);
942 TEST_TYPE_POINTER(LPMENUITEMINFOW, 48, 4);
945 static void test_pack_LPMINIMIZEDMETRICS(void)
947 /* LPMINIMIZEDMETRICS */
948 TEST_TYPE(LPMINIMIZEDMETRICS, 4, 4);
949 TEST_TYPE_POINTER(LPMINIMIZEDMETRICS, 20, 4);
952 static void test_pack_LPMINMAXINFO(void)
955 TEST_TYPE(LPMINMAXINFO, 4, 4);
956 TEST_TYPE_POINTER(LPMINMAXINFO, 40, 4);
959 static void test_pack_LPMONITORINFO(void)
962 TEST_TYPE(LPMONITORINFO, 4, 4);
963 TEST_TYPE_POINTER(LPMONITORINFO, 40, 4);
966 static void test_pack_LPMONITORINFOEXA(void)
968 /* LPMONITORINFOEXA */
969 TEST_TYPE(LPMONITORINFOEXA, 4, 4);
970 TEST_TYPE_POINTER(LPMONITORINFOEXA, 72, 4);
973 static void test_pack_LPMONITORINFOEXW(void)
975 /* LPMONITORINFOEXW */
976 TEST_TYPE(LPMONITORINFOEXW, 4, 4);
977 TEST_TYPE_POINTER(LPMONITORINFOEXW, 104, 4);
980 static void test_pack_LPMOUSEHOOKSTRUCT(void)
982 /* LPMOUSEHOOKSTRUCT */
983 TEST_TYPE(LPMOUSEHOOKSTRUCT, 4, 4);
984 TEST_TYPE_POINTER(LPMOUSEHOOKSTRUCT, 20, 4);
987 static void test_pack_LPMOUSEINPUT(void)
990 TEST_TYPE(LPMOUSEINPUT, 4, 4);
991 TEST_TYPE_POINTER(LPMOUSEINPUT, 24, 4);
994 static void test_pack_LPMOUSEKEYS(void)
997 TEST_TYPE(LPMOUSEKEYS, 4, 4);
998 TEST_TYPE_POINTER(LPMOUSEKEYS, 28, 4);
1001 static void test_pack_LPMSG(void)
1004 TEST_TYPE(LPMSG, 4, 4);
1005 TEST_TYPE_POINTER(LPMSG, 28, 4);
1008 static void test_pack_LPMSGBOXPARAMSA(void)
1010 /* LPMSGBOXPARAMSA */
1011 TEST_TYPE(LPMSGBOXPARAMSA, 4, 4);
1012 TEST_TYPE_POINTER(LPMSGBOXPARAMSA, 40, 4);
1015 static void test_pack_LPMSGBOXPARAMSW(void)
1017 /* LPMSGBOXPARAMSW */
1018 TEST_TYPE(LPMSGBOXPARAMSW, 4, 4);
1019 TEST_TYPE_POINTER(LPMSGBOXPARAMSW, 40, 4);
1022 static void test_pack_LPMSLLHOOKSTRUCT(void)
1024 /* LPMSLLHOOKSTRUCT */
1025 TEST_TYPE(LPMSLLHOOKSTRUCT, 4, 4);
1026 TEST_TYPE_POINTER(LPMSLLHOOKSTRUCT, 24, 4);
1029 static void test_pack_LPMULTIKEYHELPA(void)
1031 /* LPMULTIKEYHELPA */
1032 TEST_TYPE(LPMULTIKEYHELPA, 4, 4);
1033 TEST_TYPE_POINTER(LPMULTIKEYHELPA, 8, 4);
1036 static void test_pack_LPMULTIKEYHELPW(void)
1038 /* LPMULTIKEYHELPW */
1039 TEST_TYPE(LPMULTIKEYHELPW, 4, 4);
1040 TEST_TYPE_POINTER(LPMULTIKEYHELPW, 8, 4);
1043 static void test_pack_LPNCCALCSIZE_PARAMS(void)
1045 /* LPNCCALCSIZE_PARAMS */
1046 TEST_TYPE(LPNCCALCSIZE_PARAMS, 4, 4);
1047 TEST_TYPE_POINTER(LPNCCALCSIZE_PARAMS, 52, 4);
1050 static void test_pack_LPNMHDR(void)
1053 TEST_TYPE(LPNMHDR, 4, 4);
1054 TEST_TYPE_POINTER(LPNMHDR, 12, 4);
1057 static void test_pack_LPNONCLIENTMETRICSA(void)
1059 /* LPNONCLIENTMETRICSA */
1060 TEST_TYPE(LPNONCLIENTMETRICSA, 4, 4);
1061 TEST_TYPE_POINTER(LPNONCLIENTMETRICSA, 340, 4);
1064 static void test_pack_LPNONCLIENTMETRICSW(void)
1066 /* LPNONCLIENTMETRICSW */
1067 TEST_TYPE(LPNONCLIENTMETRICSW, 4, 4);
1068 TEST_TYPE_POINTER(LPNONCLIENTMETRICSW, 500, 4);
1071 static void test_pack_LPPAINTSTRUCT(void)
1074 TEST_TYPE(LPPAINTSTRUCT, 4, 4);
1075 TEST_TYPE_POINTER(LPPAINTSTRUCT, 64, 4);
1078 static void test_pack_LPSCROLLINFO(void)
1081 TEST_TYPE(LPSCROLLINFO, 4, 4);
1082 TEST_TYPE_POINTER(LPSCROLLINFO, 28, 4);
1085 static void test_pack_LPSERIALKEYSA(void)
1088 TEST_TYPE(LPSERIALKEYSA, 4, 4);
1089 TEST_TYPE_POINTER(LPSERIALKEYSA, 28, 4);
1092 static void test_pack_LPSERIALKEYSW(void)
1095 TEST_TYPE(LPSERIALKEYSW, 4, 4);
1096 TEST_TYPE_POINTER(LPSERIALKEYSW, 28, 4);
1099 static void test_pack_LPSOUNDSENTRYA(void)
1101 /* LPSOUNDSENTRYA */
1102 TEST_TYPE(LPSOUNDSENTRYA, 4, 4);
1103 TEST_TYPE_POINTER(LPSOUNDSENTRYA, 48, 4);
1106 static void test_pack_LPSOUNDSENTRYW(void)
1108 /* LPSOUNDSENTRYW */
1109 TEST_TYPE(LPSOUNDSENTRYW, 4, 4);
1110 TEST_TYPE_POINTER(LPSOUNDSENTRYW, 48, 4);
1113 static void test_pack_LPSTICKYKEYS(void)
1116 TEST_TYPE(LPSTICKYKEYS, 4, 4);
1117 TEST_TYPE_POINTER(LPSTICKYKEYS, 8, 4);
1120 static void test_pack_LPSTYLESTRUCT(void)
1123 TEST_TYPE(LPSTYLESTRUCT, 4, 4);
1124 TEST_TYPE_POINTER(LPSTYLESTRUCT, 8, 4);
1127 static void test_pack_LPTITLEBARINFO(void)
1129 /* LPTITLEBARINFO */
1130 TEST_TYPE(LPTITLEBARINFO, 4, 4);
1131 TEST_TYPE_POINTER(LPTITLEBARINFO, 44, 4);
1134 static void test_pack_LPTOGGLEKEYS(void)
1137 TEST_TYPE(LPTOGGLEKEYS, 4, 4);
1138 TEST_TYPE_POINTER(LPTOGGLEKEYS, 8, 4);
1141 static void test_pack_LPTPMPARAMS(void)
1144 TEST_TYPE(LPTPMPARAMS, 4, 4);
1145 TEST_TYPE_POINTER(LPTPMPARAMS, 20, 4);
1148 static void test_pack_LPTRACKMOUSEEVENT(void)
1150 /* LPTRACKMOUSEEVENT */
1151 TEST_TYPE(LPTRACKMOUSEEVENT, 4, 4);
1152 TEST_TYPE_POINTER(LPTRACKMOUSEEVENT, 16, 4);
1155 static void test_pack_LPWINDOWINFO(void)
1158 TEST_TYPE(LPWINDOWINFO, 4, 4);
1159 TEST_TYPE_POINTER(LPWINDOWINFO, 60, 4);
1162 static void test_pack_LPWINDOWPLACEMENT(void)
1164 /* LPWINDOWPLACEMENT */
1165 TEST_TYPE(LPWINDOWPLACEMENT, 4, 4);
1166 TEST_TYPE_POINTER(LPWINDOWPLACEMENT, 44, 4);
1169 static void test_pack_LPWINDOWPOS(void)
1172 TEST_TYPE(LPWINDOWPOS, 4, 4);
1173 TEST_TYPE_POINTER(LPWINDOWPOS, 28, 4);
1176 static void test_pack_LPWNDCLASSA(void)
1179 TEST_TYPE(LPWNDCLASSA, 4, 4);
1180 TEST_TYPE_POINTER(LPWNDCLASSA, 40, 4);
1183 static void test_pack_LPWNDCLASSEXA(void)
1186 TEST_TYPE(LPWNDCLASSEXA, 4, 4);
1187 TEST_TYPE_POINTER(LPWNDCLASSEXA, 48, 4);
1190 static void test_pack_LPWNDCLASSEXW(void)
1193 TEST_TYPE(LPWNDCLASSEXW, 4, 4);
1194 TEST_TYPE_POINTER(LPWNDCLASSEXW, 48, 4);
1197 static void test_pack_LPWNDCLASSW(void)
1200 TEST_TYPE(LPWNDCLASSW, 4, 4);
1201 TEST_TYPE_POINTER(LPWNDCLASSW, 40, 4);
1204 static void test_pack_MDICREATESTRUCTA(void)
1206 /* MDICREATESTRUCTA (pack 4) */
1207 TEST_TYPE(MDICREATESTRUCTA, 36, 4);
1208 TEST_FIELD(MDICREATESTRUCTA, LPCSTR, szClass, 0, 4, 4);
1209 TEST_FIELD(MDICREATESTRUCTA, LPCSTR, szTitle, 4, 4, 4);
1210 TEST_FIELD(MDICREATESTRUCTA, HINSTANCE, hOwner, 8, 4, 4);
1211 TEST_FIELD(MDICREATESTRUCTA, INT, x, 12, 4, 4);
1212 TEST_FIELD(MDICREATESTRUCTA, INT, y, 16, 4, 4);
1213 TEST_FIELD(MDICREATESTRUCTA, INT, cx, 20, 4, 4);
1214 TEST_FIELD(MDICREATESTRUCTA, INT, cy, 24, 4, 4);
1215 TEST_FIELD(MDICREATESTRUCTA, DWORD, style, 28, 4, 4);
1216 TEST_FIELD(MDICREATESTRUCTA, LPARAM, lParam, 32, 4, 4);
1219 static void test_pack_MDICREATESTRUCTW(void)
1221 /* MDICREATESTRUCTW (pack 4) */
1222 TEST_TYPE(MDICREATESTRUCTW, 36, 4);
1223 TEST_FIELD(MDICREATESTRUCTW, LPCWSTR, szClass, 0, 4, 4);
1224 TEST_FIELD(MDICREATESTRUCTW, LPCWSTR, szTitle, 4, 4, 4);
1225 TEST_FIELD(MDICREATESTRUCTW, HINSTANCE, hOwner, 8, 4, 4);
1226 TEST_FIELD(MDICREATESTRUCTW, INT, x, 12, 4, 4);
1227 TEST_FIELD(MDICREATESTRUCTW, INT, y, 16, 4, 4);
1228 TEST_FIELD(MDICREATESTRUCTW, INT, cx, 20, 4, 4);
1229 TEST_FIELD(MDICREATESTRUCTW, INT, cy, 24, 4, 4);
1230 TEST_FIELD(MDICREATESTRUCTW, DWORD, style, 28, 4, 4);
1231 TEST_FIELD(MDICREATESTRUCTW, LPARAM, lParam, 32, 4, 4);
1234 static void test_pack_MDINEXTMENU(void)
1236 /* MDINEXTMENU (pack 4) */
1237 TEST_TYPE(MDINEXTMENU, 12, 4);
1238 TEST_FIELD(MDINEXTMENU, HMENU, hmenuIn, 0, 4, 4);
1239 TEST_FIELD(MDINEXTMENU, HMENU, hmenuNext, 4, 4, 4);
1240 TEST_FIELD(MDINEXTMENU, HWND, hwndNext, 8, 4, 4);
1243 static void test_pack_MEASUREITEMSTRUCT(void)
1245 /* MEASUREITEMSTRUCT (pack 4) */
1246 TEST_TYPE(MEASUREITEMSTRUCT, 24, 4);
1247 TEST_FIELD(MEASUREITEMSTRUCT, UINT, CtlType, 0, 4, 4);
1248 TEST_FIELD(MEASUREITEMSTRUCT, UINT, CtlID, 4, 4, 4);
1249 TEST_FIELD(MEASUREITEMSTRUCT, UINT, itemID, 8, 4, 4);
1250 TEST_FIELD(MEASUREITEMSTRUCT, UINT, itemWidth, 12, 4, 4);
1251 TEST_FIELD(MEASUREITEMSTRUCT, UINT, itemHeight, 16, 4, 4);
1252 TEST_FIELD(MEASUREITEMSTRUCT, ULONG_PTR, itemData, 20, 4, 4);
1255 static void test_pack_MENUINFO(void)
1257 /* MENUINFO (pack 4) */
1258 TEST_TYPE(MENUINFO, 28, 4);
1259 TEST_FIELD(MENUINFO, DWORD, cbSize, 0, 4, 4);
1260 TEST_FIELD(MENUINFO, DWORD, fMask, 4, 4, 4);
1261 TEST_FIELD(MENUINFO, DWORD, dwStyle, 8, 4, 4);
1262 TEST_FIELD(MENUINFO, UINT, cyMax, 12, 4, 4);
1263 TEST_FIELD(MENUINFO, HBRUSH, hbrBack, 16, 4, 4);
1264 TEST_FIELD(MENUINFO, DWORD, dwContextHelpID, 20, 4, 4);
1265 TEST_FIELD(MENUINFO, ULONG_PTR, dwMenuData, 24, 4, 4);
1268 static void test_pack_MENUITEMINFOA(void)
1270 /* MENUITEMINFOA (pack 4) */
1271 TEST_TYPE(MENUITEMINFOA, 48, 4);
1272 TEST_FIELD(MENUITEMINFOA, UINT, cbSize, 0, 4, 4);
1273 TEST_FIELD(MENUITEMINFOA, UINT, fMask, 4, 4, 4);
1274 TEST_FIELD(MENUITEMINFOA, UINT, fType, 8, 4, 4);
1275 TEST_FIELD(MENUITEMINFOA, UINT, fState, 12, 4, 4);
1276 TEST_FIELD(MENUITEMINFOA, UINT, wID, 16, 4, 4);
1277 TEST_FIELD(MENUITEMINFOA, HMENU, hSubMenu, 20, 4, 4);
1278 TEST_FIELD(MENUITEMINFOA, HBITMAP, hbmpChecked, 24, 4, 4);
1279 TEST_FIELD(MENUITEMINFOA, HBITMAP, hbmpUnchecked, 28, 4, 4);
1280 TEST_FIELD(MENUITEMINFOA, ULONG_PTR, dwItemData, 32, 4, 4);
1281 TEST_FIELD(MENUITEMINFOA, LPSTR, dwTypeData, 36, 4, 4);
1282 TEST_FIELD(MENUITEMINFOA, UINT, cch, 40, 4, 4);
1283 TEST_FIELD(MENUITEMINFOA, HBITMAP, hbmpItem, 44, 4, 4);
1286 static void test_pack_MENUITEMINFOW(void)
1288 /* MENUITEMINFOW (pack 4) */
1289 TEST_TYPE(MENUITEMINFOW, 48, 4);
1290 TEST_FIELD(MENUITEMINFOW, UINT, cbSize, 0, 4, 4);
1291 TEST_FIELD(MENUITEMINFOW, UINT, fMask, 4, 4, 4);
1292 TEST_FIELD(MENUITEMINFOW, UINT, fType, 8, 4, 4);
1293 TEST_FIELD(MENUITEMINFOW, UINT, fState, 12, 4, 4);
1294 TEST_FIELD(MENUITEMINFOW, UINT, wID, 16, 4, 4);
1295 TEST_FIELD(MENUITEMINFOW, HMENU, hSubMenu, 20, 4, 4);
1296 TEST_FIELD(MENUITEMINFOW, HBITMAP, hbmpChecked, 24, 4, 4);
1297 TEST_FIELD(MENUITEMINFOW, HBITMAP, hbmpUnchecked, 28, 4, 4);
1298 TEST_FIELD(MENUITEMINFOW, ULONG_PTR, dwItemData, 32, 4, 4);
1299 TEST_FIELD(MENUITEMINFOW, LPWSTR, dwTypeData, 36, 4, 4);
1300 TEST_FIELD(MENUITEMINFOW, UINT, cch, 40, 4, 4);
1301 TEST_FIELD(MENUITEMINFOW, HBITMAP, hbmpItem, 44, 4, 4);
1304 static void test_pack_MENUITEMTEMPLATE(void)
1306 /* MENUITEMTEMPLATE (pack 4) */
1307 TEST_TYPE(MENUITEMTEMPLATE, 6, 2);
1308 TEST_FIELD(MENUITEMTEMPLATE, WORD, mtOption, 0, 2, 2);
1309 TEST_FIELD(MENUITEMTEMPLATE, WORD, mtID, 2, 2, 2);
1310 TEST_FIELD(MENUITEMTEMPLATE, WCHAR[1], mtString, 4, 2, 2);
1313 static void test_pack_MENUITEMTEMPLATEHEADER(void)
1315 /* MENUITEMTEMPLATEHEADER (pack 4) */
1316 TEST_TYPE(MENUITEMTEMPLATEHEADER, 4, 2);
1317 TEST_FIELD(MENUITEMTEMPLATEHEADER, WORD, versionNumber, 0, 2, 2);
1318 TEST_FIELD(MENUITEMTEMPLATEHEADER, WORD, offset, 2, 2, 2);
1321 static void test_pack_MINIMIZEDMETRICS(void)
1323 /* MINIMIZEDMETRICS (pack 4) */
1324 TEST_TYPE(MINIMIZEDMETRICS, 20, 4);
1325 TEST_FIELD(MINIMIZEDMETRICS, UINT, cbSize, 0, 4, 4);
1326 TEST_FIELD(MINIMIZEDMETRICS, int, iWidth, 4, 4, 4);
1327 TEST_FIELD(MINIMIZEDMETRICS, int, iHorzGap, 8, 4, 4);
1328 TEST_FIELD(MINIMIZEDMETRICS, int, iVertGap, 12, 4, 4);
1329 TEST_FIELD(MINIMIZEDMETRICS, int, iArrange, 16, 4, 4);
1332 static void test_pack_MINMAXINFO(void)
1334 /* MINMAXINFO (pack 4) */
1335 TEST_TYPE(MINMAXINFO, 40, 4);
1336 TEST_FIELD(MINMAXINFO, POINT, ptReserved, 0, 8, 4);
1337 TEST_FIELD(MINMAXINFO, POINT, ptMaxSize, 8, 8, 4);
1338 TEST_FIELD(MINMAXINFO, POINT, ptMaxPosition, 16, 8, 4);
1339 TEST_FIELD(MINMAXINFO, POINT, ptMinTrackSize, 24, 8, 4);
1340 TEST_FIELD(MINMAXINFO, POINT, ptMaxTrackSize, 32, 8, 4);
1343 static void test_pack_MONITORENUMPROC(void)
1345 /* MONITORENUMPROC */
1346 TEST_TYPE(MONITORENUMPROC, 4, 4);
1349 static void test_pack_MONITORINFO(void)
1351 /* MONITORINFO (pack 4) */
1352 TEST_TYPE(MONITORINFO, 40, 4);
1353 TEST_FIELD(MONITORINFO, DWORD, cbSize, 0, 4, 4);
1354 TEST_FIELD(MONITORINFO, RECT, rcMonitor, 4, 16, 4);
1355 TEST_FIELD(MONITORINFO, RECT, rcWork, 20, 16, 4);
1356 TEST_FIELD(MONITORINFO, DWORD, dwFlags, 36, 4, 4);
1359 static void test_pack_MONITORINFOEXA(void)
1361 /* MONITORINFOEXA (pack 4) */
1362 TEST_TYPE(MONITORINFOEXA, 72, 4);
1363 TEST_FIELD(MONITORINFOEXA, DWORD, cbSize, 0, 4, 4);
1364 TEST_FIELD(MONITORINFOEXA, RECT, rcMonitor, 4, 16, 4);
1365 TEST_FIELD(MONITORINFOEXA, RECT, rcWork, 20, 16, 4);
1366 TEST_FIELD(MONITORINFOEXA, DWORD, dwFlags, 36, 4, 4);
1367 TEST_FIELD(MONITORINFOEXA, CHAR[CCHDEVICENAME], szDevice, 40, 32, 1);
1370 static void test_pack_MONITORINFOEXW(void)
1372 /* MONITORINFOEXW (pack 4) */
1373 TEST_TYPE(MONITORINFOEXW, 104, 4);
1374 TEST_FIELD(MONITORINFOEXW, DWORD, cbSize, 0, 4, 4);
1375 TEST_FIELD(MONITORINFOEXW, RECT, rcMonitor, 4, 16, 4);
1376 TEST_FIELD(MONITORINFOEXW, RECT, rcWork, 20, 16, 4);
1377 TEST_FIELD(MONITORINFOEXW, DWORD, dwFlags, 36, 4, 4);
1378 TEST_FIELD(MONITORINFOEXW, WCHAR[CCHDEVICENAME], szDevice, 40, 64, 2);
1381 static void test_pack_MOUSEHOOKSTRUCT(void)
1383 /* MOUSEHOOKSTRUCT (pack 4) */
1384 TEST_TYPE(MOUSEHOOKSTRUCT, 20, 4);
1385 TEST_FIELD(MOUSEHOOKSTRUCT, POINT, pt, 0, 8, 4);
1386 TEST_FIELD(MOUSEHOOKSTRUCT, HWND, hwnd, 8, 4, 4);
1387 TEST_FIELD(MOUSEHOOKSTRUCT, UINT, wHitTestCode, 12, 4, 4);
1388 TEST_FIELD(MOUSEHOOKSTRUCT, ULONG_PTR, dwExtraInfo, 16, 4, 4);
1391 static void test_pack_MOUSEINPUT(void)
1393 /* MOUSEINPUT (pack 4) */
1394 TEST_TYPE(MOUSEINPUT, 24, 4);
1395 TEST_FIELD(MOUSEINPUT, LONG, dx, 0, 4, 4);
1396 TEST_FIELD(MOUSEINPUT, LONG, dy, 4, 4, 4);
1397 TEST_FIELD(MOUSEINPUT, DWORD, mouseData, 8, 4, 4);
1398 TEST_FIELD(MOUSEINPUT, DWORD, dwFlags, 12, 4, 4);
1399 TEST_FIELD(MOUSEINPUT, DWORD, time, 16, 4, 4);
1400 TEST_FIELD(MOUSEINPUT, ULONG_PTR, dwExtraInfo, 20, 4, 4);
1403 static void test_pack_MOUSEKEYS(void)
1405 /* MOUSEKEYS (pack 4) */
1406 TEST_TYPE(MOUSEKEYS, 28, 4);
1407 TEST_FIELD(MOUSEKEYS, UINT, cbSize, 0, 4, 4);
1408 TEST_FIELD(MOUSEKEYS, DWORD, dwFlags, 4, 4, 4);
1409 TEST_FIELD(MOUSEKEYS, DWORD, iMaxSpeed, 8, 4, 4);
1410 TEST_FIELD(MOUSEKEYS, DWORD, iTimeToMaxSpeed, 12, 4, 4);
1411 TEST_FIELD(MOUSEKEYS, DWORD, iCtrlSpeed, 16, 4, 4);
1412 TEST_FIELD(MOUSEKEYS, DWORD, dwReserved1, 20, 4, 4);
1413 TEST_FIELD(MOUSEKEYS, DWORD, dwReserved2, 24, 4, 4);
1416 static void test_pack_MSG(void)
1419 TEST_TYPE(MSG, 28, 4);
1420 TEST_FIELD(MSG, HWND, hwnd, 0, 4, 4);
1421 TEST_FIELD(MSG, UINT, message, 4, 4, 4);
1422 TEST_FIELD(MSG, WPARAM, wParam, 8, 4, 4);
1423 TEST_FIELD(MSG, LPARAM, lParam, 12, 4, 4);
1424 TEST_FIELD(MSG, DWORD, time, 16, 4, 4);
1425 TEST_FIELD(MSG, POINT, pt, 20, 8, 4);
1428 static void test_pack_MSGBOXCALLBACK(void)
1430 /* MSGBOXCALLBACK */
1431 TEST_TYPE(MSGBOXCALLBACK, 4, 4);
1434 static void test_pack_MSGBOXPARAMSA(void)
1436 /* MSGBOXPARAMSA (pack 4) */
1437 TEST_TYPE(MSGBOXPARAMSA, 40, 4);
1438 TEST_FIELD(MSGBOXPARAMSA, UINT, cbSize, 0, 4, 4);
1439 TEST_FIELD(MSGBOXPARAMSA, HWND, hwndOwner, 4, 4, 4);
1440 TEST_FIELD(MSGBOXPARAMSA, HINSTANCE, hInstance, 8, 4, 4);
1441 TEST_FIELD(MSGBOXPARAMSA, LPCSTR, lpszText, 12, 4, 4);
1442 TEST_FIELD(MSGBOXPARAMSA, LPCSTR, lpszCaption, 16, 4, 4);
1443 TEST_FIELD(MSGBOXPARAMSA, DWORD, dwStyle, 20, 4, 4);
1444 TEST_FIELD(MSGBOXPARAMSA, LPCSTR, lpszIcon, 24, 4, 4);
1445 TEST_FIELD(MSGBOXPARAMSA, DWORD_PTR, dwContextHelpId, 28, 4, 4);
1446 TEST_FIELD(MSGBOXPARAMSA, MSGBOXCALLBACK, lpfnMsgBoxCallback, 32, 4, 4);
1447 TEST_FIELD(MSGBOXPARAMSA, DWORD, dwLanguageId, 36, 4, 4);
1450 static void test_pack_MSGBOXPARAMSW(void)
1452 /* MSGBOXPARAMSW (pack 4) */
1453 TEST_TYPE(MSGBOXPARAMSW, 40, 4);
1454 TEST_FIELD(MSGBOXPARAMSW, UINT, cbSize, 0, 4, 4);
1455 TEST_FIELD(MSGBOXPARAMSW, HWND, hwndOwner, 4, 4, 4);
1456 TEST_FIELD(MSGBOXPARAMSW, HINSTANCE, hInstance, 8, 4, 4);
1457 TEST_FIELD(MSGBOXPARAMSW, LPCWSTR, lpszText, 12, 4, 4);
1458 TEST_FIELD(MSGBOXPARAMSW, LPCWSTR, lpszCaption, 16, 4, 4);
1459 TEST_FIELD(MSGBOXPARAMSW, DWORD, dwStyle, 20, 4, 4);
1460 TEST_FIELD(MSGBOXPARAMSW, LPCWSTR, lpszIcon, 24, 4, 4);
1461 TEST_FIELD(MSGBOXPARAMSW, DWORD_PTR, dwContextHelpId, 28, 4, 4);
1462 TEST_FIELD(MSGBOXPARAMSW, MSGBOXCALLBACK, lpfnMsgBoxCallback, 32, 4, 4);
1463 TEST_FIELD(MSGBOXPARAMSW, DWORD, dwLanguageId, 36, 4, 4);
1466 static void test_pack_MSLLHOOKSTRUCT(void)
1468 /* MSLLHOOKSTRUCT (pack 4) */
1469 TEST_TYPE(MSLLHOOKSTRUCT, 24, 4);
1470 TEST_FIELD(MSLLHOOKSTRUCT, POINT, pt, 0, 8, 4);
1471 TEST_FIELD(MSLLHOOKSTRUCT, DWORD, mouseData, 8, 4, 4);
1472 TEST_FIELD(MSLLHOOKSTRUCT, DWORD, flags, 12, 4, 4);
1473 TEST_FIELD(MSLLHOOKSTRUCT, DWORD, time, 16, 4, 4);
1474 TEST_FIELD(MSLLHOOKSTRUCT, ULONG_PTR, dwExtraInfo, 20, 4, 4);
1477 static void test_pack_MULTIKEYHELPA(void)
1479 /* MULTIKEYHELPA (pack 4) */
1480 TEST_TYPE(MULTIKEYHELPA, 8, 4);
1481 TEST_FIELD(MULTIKEYHELPA, DWORD, mkSize, 0, 4, 4);
1482 TEST_FIELD(MULTIKEYHELPA, CHAR, mkKeylist, 4, 1, 1);
1483 TEST_FIELD(MULTIKEYHELPA, CHAR[1], szKeyphrase, 5, 1, 1);
1486 static void test_pack_MULTIKEYHELPW(void)
1488 /* MULTIKEYHELPW (pack 4) */
1489 TEST_TYPE(MULTIKEYHELPW, 8, 4);
1490 TEST_FIELD(MULTIKEYHELPW, DWORD, mkSize, 0, 4, 4);
1491 TEST_FIELD(MULTIKEYHELPW, WCHAR, mkKeylist, 4, 2, 2);
1492 TEST_FIELD(MULTIKEYHELPW, WCHAR[1], szKeyphrase, 6, 2, 2);
1495 static void test_pack_NAMEENUMPROCA(void)
1498 TEST_TYPE(NAMEENUMPROCA, 4, 4);
1501 static void test_pack_NAMEENUMPROCW(void)
1504 TEST_TYPE(NAMEENUMPROCW, 4, 4);
1507 static void test_pack_NCCALCSIZE_PARAMS(void)
1509 /* NCCALCSIZE_PARAMS (pack 4) */
1510 TEST_TYPE(NCCALCSIZE_PARAMS, 52, 4);
1511 TEST_FIELD(NCCALCSIZE_PARAMS, RECT[3], rgrc, 0, 48, 4);
1512 TEST_FIELD(NCCALCSIZE_PARAMS, WINDOWPOS *, lppos, 48, 4, 4);
1515 static void test_pack_NMHDR(void)
1517 /* NMHDR (pack 4) */
1518 TEST_TYPE(NMHDR, 12, 4);
1519 TEST_FIELD(NMHDR, HWND, hwndFrom, 0, 4, 4);
1520 TEST_FIELD(NMHDR, UINT_PTR, idFrom, 4, 4, 4);
1521 TEST_FIELD(NMHDR, UINT, code, 8, 4, 4);
1524 static void test_pack_NONCLIENTMETRICSA(void)
1526 /* NONCLIENTMETRICSA (pack 4) */
1527 TEST_TYPE(NONCLIENTMETRICSA, 340, 4);
1528 TEST_FIELD(NONCLIENTMETRICSA, UINT, cbSize, 0, 4, 4);
1529 TEST_FIELD(NONCLIENTMETRICSA, INT, iBorderWidth, 4, 4, 4);
1530 TEST_FIELD(NONCLIENTMETRICSA, INT, iScrollWidth, 8, 4, 4);
1531 TEST_FIELD(NONCLIENTMETRICSA, INT, iScrollHeight, 12, 4, 4);
1532 TEST_FIELD(NONCLIENTMETRICSA, INT, iCaptionWidth, 16, 4, 4);
1533 TEST_FIELD(NONCLIENTMETRICSA, INT, iCaptionHeight, 20, 4, 4);
1534 TEST_FIELD(NONCLIENTMETRICSA, LOGFONTA, lfCaptionFont, 24, 60, 4);
1535 TEST_FIELD(NONCLIENTMETRICSA, INT, iSmCaptionWidth, 84, 4, 4);
1536 TEST_FIELD(NONCLIENTMETRICSA, INT, iSmCaptionHeight, 88, 4, 4);
1537 TEST_FIELD(NONCLIENTMETRICSA, LOGFONTA, lfSmCaptionFont, 92, 60, 4);
1538 TEST_FIELD(NONCLIENTMETRICSA, INT, iMenuWidth, 152, 4, 4);
1539 TEST_FIELD(NONCLIENTMETRICSA, INT, iMenuHeight, 156, 4, 4);
1540 TEST_FIELD(NONCLIENTMETRICSA, LOGFONTA, lfMenuFont, 160, 60, 4);
1541 TEST_FIELD(NONCLIENTMETRICSA, LOGFONTA, lfStatusFont, 220, 60, 4);
1542 TEST_FIELD(NONCLIENTMETRICSA, LOGFONTA, lfMessageFont, 280, 60, 4);
1545 static void test_pack_NONCLIENTMETRICSW(void)
1547 /* NONCLIENTMETRICSW (pack 4) */
1548 TEST_TYPE(NONCLIENTMETRICSW, 500, 4);
1549 TEST_FIELD(NONCLIENTMETRICSW, UINT, cbSize, 0, 4, 4);
1550 TEST_FIELD(NONCLIENTMETRICSW, INT, iBorderWidth, 4, 4, 4);
1551 TEST_FIELD(NONCLIENTMETRICSW, INT, iScrollWidth, 8, 4, 4);
1552 TEST_FIELD(NONCLIENTMETRICSW, INT, iScrollHeight, 12, 4, 4);
1553 TEST_FIELD(NONCLIENTMETRICSW, INT, iCaptionWidth, 16, 4, 4);
1554 TEST_FIELD(NONCLIENTMETRICSW, INT, iCaptionHeight, 20, 4, 4);
1555 TEST_FIELD(NONCLIENTMETRICSW, LOGFONTW, lfCaptionFont, 24, 92, 4);
1556 TEST_FIELD(NONCLIENTMETRICSW, INT, iSmCaptionWidth, 116, 4, 4);
1557 TEST_FIELD(NONCLIENTMETRICSW, INT, iSmCaptionHeight, 120, 4, 4);
1558 TEST_FIELD(NONCLIENTMETRICSW, LOGFONTW, lfSmCaptionFont, 124, 92, 4);
1559 TEST_FIELD(NONCLIENTMETRICSW, INT, iMenuWidth, 216, 4, 4);
1560 TEST_FIELD(NONCLIENTMETRICSW, INT, iMenuHeight, 220, 4, 4);
1561 TEST_FIELD(NONCLIENTMETRICSW, LOGFONTW, lfMenuFont, 224, 92, 4);
1562 TEST_FIELD(NONCLIENTMETRICSW, LOGFONTW, lfStatusFont, 316, 92, 4);
1563 TEST_FIELD(NONCLIENTMETRICSW, LOGFONTW, lfMessageFont, 408, 92, 4);
1566 static void test_pack_PAINTSTRUCT(void)
1568 /* PAINTSTRUCT (pack 4) */
1569 TEST_TYPE(PAINTSTRUCT, 64, 4);
1570 TEST_FIELD(PAINTSTRUCT, HDC, hdc, 0, 4, 4);
1571 TEST_FIELD(PAINTSTRUCT, BOOL, fErase, 4, 4, 4);
1572 TEST_FIELD(PAINTSTRUCT, RECT, rcPaint, 8, 16, 4);
1573 TEST_FIELD(PAINTSTRUCT, BOOL, fRestore, 24, 4, 4);
1574 TEST_FIELD(PAINTSTRUCT, BOOL, fIncUpdate, 28, 4, 4);
1575 TEST_FIELD(PAINTSTRUCT, BYTE[32], rgbReserved, 32, 32, 1);
1578 static void test_pack_PCOMBOBOXINFO(void)
1581 TEST_TYPE(PCOMBOBOXINFO, 4, 4);
1582 TEST_TYPE_POINTER(PCOMBOBOXINFO, 52, 4);
1585 static void test_pack_PCOMPAREITEMSTRUCT(void)
1587 /* PCOMPAREITEMSTRUCT */
1588 TEST_TYPE(PCOMPAREITEMSTRUCT, 4, 4);
1589 TEST_TYPE_POINTER(PCOMPAREITEMSTRUCT, 32, 4);
1592 static void test_pack_PCOPYDATASTRUCT(void)
1594 /* PCOPYDATASTRUCT */
1595 TEST_TYPE(PCOPYDATASTRUCT, 4, 4);
1596 TEST_TYPE_POINTER(PCOPYDATASTRUCT, 12, 4);
1599 static void test_pack_PCURSORINFO(void)
1602 TEST_TYPE(PCURSORINFO, 4, 4);
1603 TEST_TYPE_POINTER(PCURSORINFO, 20, 4);
1606 static void test_pack_PCWPRETSTRUCT(void)
1609 TEST_TYPE(PCWPRETSTRUCT, 4, 4);
1610 TEST_TYPE_POINTER(PCWPRETSTRUCT, 20, 4);
1613 static void test_pack_PCWPSTRUCT(void)
1616 TEST_TYPE(PCWPSTRUCT, 4, 4);
1617 TEST_TYPE_POINTER(PCWPSTRUCT, 16, 4);
1620 static void test_pack_PDEBUGHOOKINFO(void)
1622 /* PDEBUGHOOKINFO */
1623 TEST_TYPE(PDEBUGHOOKINFO, 4, 4);
1624 TEST_TYPE_POINTER(PDEBUGHOOKINFO, 20, 4);
1627 static void test_pack_PDELETEITEMSTRUCT(void)
1629 /* PDELETEITEMSTRUCT */
1630 TEST_TYPE(PDELETEITEMSTRUCT, 4, 4);
1631 TEST_TYPE_POINTER(PDELETEITEMSTRUCT, 20, 4);
1634 static void test_pack_PDLGITEMTEMPLATEA(void)
1636 /* PDLGITEMTEMPLATEA */
1637 TEST_TYPE(PDLGITEMTEMPLATEA, 4, 4);
1638 TEST_TYPE_POINTER(PDLGITEMTEMPLATEA, 18, 2);
1641 static void test_pack_PDLGITEMTEMPLATEW(void)
1643 /* PDLGITEMTEMPLATEW */
1644 TEST_TYPE(PDLGITEMTEMPLATEW, 4, 4);
1645 TEST_TYPE_POINTER(PDLGITEMTEMPLATEW, 18, 2);
1648 static void test_pack_PDRAWITEMSTRUCT(void)
1650 /* PDRAWITEMSTRUCT */
1651 TEST_TYPE(PDRAWITEMSTRUCT, 4, 4);
1652 TEST_TYPE_POINTER(PDRAWITEMSTRUCT, 48, 4);
1655 static void test_pack_PEVENTMSG(void)
1658 TEST_TYPE(PEVENTMSG, 4, 4);
1659 TEST_TYPE_POINTER(PEVENTMSG, 20, 4);
1662 static void test_pack_PFLASHWINFO(void)
1665 TEST_TYPE(PFLASHWINFO, 4, 4);
1666 TEST_TYPE_POINTER(PFLASHWINFO, 20, 4);
1669 static void test_pack_PGUITHREADINFO(void)
1671 /* PGUITHREADINFO */
1672 TEST_TYPE(PGUITHREADINFO, 4, 4);
1673 TEST_TYPE_POINTER(PGUITHREADINFO, 48, 4);
1676 static void test_pack_PHARDWAREHOOKSTRUCT(void)
1678 /* PHARDWAREHOOKSTRUCT */
1679 TEST_TYPE(PHARDWAREHOOKSTRUCT, 4, 4);
1680 TEST_TYPE_POINTER(PHARDWAREHOOKSTRUCT, 16, 4);
1683 static void test_pack_PHARDWAREINPUT(void)
1685 /* PHARDWAREINPUT */
1686 TEST_TYPE(PHARDWAREINPUT, 4, 4);
1687 TEST_TYPE_POINTER(PHARDWAREINPUT, 8, 4);
1690 static void test_pack_PHDEVNOTIFY(void)
1693 TEST_TYPE(PHDEVNOTIFY, 4, 4);
1694 TEST_TYPE_POINTER(PHDEVNOTIFY, 4, 4);
1697 static void test_pack_PHELPWININFOA(void)
1700 TEST_TYPE(PHELPWININFOA, 4, 4);
1701 TEST_TYPE_POINTER(PHELPWININFOA, 28, 4);
1704 static void test_pack_PHELPWININFOW(void)
1707 TEST_TYPE(PHELPWININFOW, 4, 4);
1708 TEST_TYPE_POINTER(PHELPWININFOW, 28, 4);
1711 static void test_pack_PICONINFO(void)
1714 TEST_TYPE(PICONINFO, 4, 4);
1715 TEST_TYPE_POINTER(PICONINFO, 20, 4);
1718 static void test_pack_PICONMETRICSA(void)
1721 TEST_TYPE(PICONMETRICSA, 4, 4);
1722 TEST_TYPE_POINTER(PICONMETRICSA, 76, 4);
1725 static void test_pack_PICONMETRICSW(void)
1728 TEST_TYPE(PICONMETRICSW, 4, 4);
1729 TEST_TYPE_POINTER(PICONMETRICSW, 108, 4);
1732 static void test_pack_PINPUT(void)
1735 TEST_TYPE(PINPUT, 4, 4);
1738 static void test_pack_PKBDLLHOOKSTRUCT(void)
1740 /* PKBDLLHOOKSTRUCT */
1741 TEST_TYPE(PKBDLLHOOKSTRUCT, 4, 4);
1742 TEST_TYPE_POINTER(PKBDLLHOOKSTRUCT, 20, 4);
1745 static void test_pack_PKEYBDINPUT(void)
1748 TEST_TYPE(PKEYBDINPUT, 4, 4);
1749 TEST_TYPE_POINTER(PKEYBDINPUT, 16, 4);
1752 static void test_pack_PMDINEXTMENU(void)
1755 TEST_TYPE(PMDINEXTMENU, 4, 4);
1756 TEST_TYPE_POINTER(PMDINEXTMENU, 12, 4);
1759 static void test_pack_PMEASUREITEMSTRUCT(void)
1761 /* PMEASUREITEMSTRUCT */
1762 TEST_TYPE(PMEASUREITEMSTRUCT, 4, 4);
1763 TEST_TYPE_POINTER(PMEASUREITEMSTRUCT, 24, 4);
1766 static void test_pack_PMENUITEMTEMPLATE(void)
1768 /* PMENUITEMTEMPLATE */
1769 TEST_TYPE(PMENUITEMTEMPLATE, 4, 4);
1770 TEST_TYPE_POINTER(PMENUITEMTEMPLATE, 6, 2);
1773 static void test_pack_PMENUITEMTEMPLATEHEADER(void)
1775 /* PMENUITEMTEMPLATEHEADER */
1776 TEST_TYPE(PMENUITEMTEMPLATEHEADER, 4, 4);
1777 TEST_TYPE_POINTER(PMENUITEMTEMPLATEHEADER, 4, 2);
1780 static void test_pack_PMINIMIZEDMETRICS(void)
1782 /* PMINIMIZEDMETRICS */
1783 TEST_TYPE(PMINIMIZEDMETRICS, 4, 4);
1784 TEST_TYPE_POINTER(PMINIMIZEDMETRICS, 20, 4);
1787 static void test_pack_PMINMAXINFO(void)
1790 TEST_TYPE(PMINMAXINFO, 4, 4);
1791 TEST_TYPE_POINTER(PMINMAXINFO, 40, 4);
1794 static void test_pack_PMOUSEHOOKSTRUCT(void)
1796 /* PMOUSEHOOKSTRUCT */
1797 TEST_TYPE(PMOUSEHOOKSTRUCT, 4, 4);
1798 TEST_TYPE_POINTER(PMOUSEHOOKSTRUCT, 20, 4);
1801 static void test_pack_PMOUSEINPUT(void)
1804 TEST_TYPE(PMOUSEINPUT, 4, 4);
1805 TEST_TYPE_POINTER(PMOUSEINPUT, 24, 4);
1808 static void test_pack_PMSG(void)
1811 TEST_TYPE(PMSG, 4, 4);
1812 TEST_TYPE_POINTER(PMSG, 28, 4);
1815 static void test_pack_PMSGBOXPARAMSA(void)
1817 /* PMSGBOXPARAMSA */
1818 TEST_TYPE(PMSGBOXPARAMSA, 4, 4);
1819 TEST_TYPE_POINTER(PMSGBOXPARAMSA, 40, 4);
1822 static void test_pack_PMSGBOXPARAMSW(void)
1824 /* PMSGBOXPARAMSW */
1825 TEST_TYPE(PMSGBOXPARAMSW, 4, 4);
1826 TEST_TYPE_POINTER(PMSGBOXPARAMSW, 40, 4);
1829 static void test_pack_PMSLLHOOKSTRUCT(void)
1831 /* PMSLLHOOKSTRUCT */
1832 TEST_TYPE(PMSLLHOOKSTRUCT, 4, 4);
1833 TEST_TYPE_POINTER(PMSLLHOOKSTRUCT, 24, 4);
1836 static void test_pack_PMULTIKEYHELPA(void)
1838 /* PMULTIKEYHELPA */
1839 TEST_TYPE(PMULTIKEYHELPA, 4, 4);
1840 TEST_TYPE_POINTER(PMULTIKEYHELPA, 8, 4);
1843 static void test_pack_PMULTIKEYHELPW(void)
1845 /* PMULTIKEYHELPW */
1846 TEST_TYPE(PMULTIKEYHELPW, 4, 4);
1847 TEST_TYPE_POINTER(PMULTIKEYHELPW, 8, 4);
1850 static void test_pack_PNONCLIENTMETRICSA(void)
1852 /* PNONCLIENTMETRICSA */
1853 TEST_TYPE(PNONCLIENTMETRICSA, 4, 4);
1854 TEST_TYPE_POINTER(PNONCLIENTMETRICSA, 340, 4);
1857 static void test_pack_PNONCLIENTMETRICSW(void)
1859 /* PNONCLIENTMETRICSW */
1860 TEST_TYPE(PNONCLIENTMETRICSW, 4, 4);
1861 TEST_TYPE_POINTER(PNONCLIENTMETRICSW, 500, 4);
1864 static void test_pack_PPAINTSTRUCT(void)
1867 TEST_TYPE(PPAINTSTRUCT, 4, 4);
1868 TEST_TYPE_POINTER(PPAINTSTRUCT, 64, 4);
1871 static void test_pack_PROPENUMPROCA(void)
1874 TEST_TYPE(PROPENUMPROCA, 4, 4);
1877 static void test_pack_PROPENUMPROCEXA(void)
1879 /* PROPENUMPROCEXA */
1880 TEST_TYPE(PROPENUMPROCEXA, 4, 4);
1883 static void test_pack_PROPENUMPROCEXW(void)
1885 /* PROPENUMPROCEXW */
1886 TEST_TYPE(PROPENUMPROCEXW, 4, 4);
1889 static void test_pack_PROPENUMPROCW(void)
1892 TEST_TYPE(PROPENUMPROCW, 4, 4);
1895 static void test_pack_PTITLEBARINFO(void)
1898 TEST_TYPE(PTITLEBARINFO, 4, 4);
1899 TEST_TYPE_POINTER(PTITLEBARINFO, 44, 4);
1902 static void test_pack_PUSEROBJECTFLAGS(void)
1904 /* PUSEROBJECTFLAGS */
1905 TEST_TYPE(PUSEROBJECTFLAGS, 4, 4);
1906 TEST_TYPE_POINTER(PUSEROBJECTFLAGS, 12, 4);
1909 static void test_pack_PWINDOWINFO(void)
1912 TEST_TYPE(PWINDOWINFO, 4, 4);
1913 TEST_TYPE_POINTER(PWINDOWINFO, 60, 4);
1916 static void test_pack_PWINDOWPLACEMENT(void)
1918 /* PWINDOWPLACEMENT */
1919 TEST_TYPE(PWINDOWPLACEMENT, 4, 4);
1920 TEST_TYPE_POINTER(PWINDOWPLACEMENT, 44, 4);
1923 static void test_pack_PWINDOWPOS(void)
1926 TEST_TYPE(PWINDOWPOS, 4, 4);
1927 TEST_TYPE_POINTER(PWINDOWPOS, 28, 4);
1930 static void test_pack_PWNDCLASSA(void)
1933 TEST_TYPE(PWNDCLASSA, 4, 4);
1934 TEST_TYPE_POINTER(PWNDCLASSA, 40, 4);
1937 static void test_pack_PWNDCLASSEXA(void)
1940 TEST_TYPE(PWNDCLASSEXA, 4, 4);
1941 TEST_TYPE_POINTER(PWNDCLASSEXA, 48, 4);
1944 static void test_pack_PWNDCLASSEXW(void)
1947 TEST_TYPE(PWNDCLASSEXW, 4, 4);
1948 TEST_TYPE_POINTER(PWNDCLASSEXW, 48, 4);
1951 static void test_pack_PWNDCLASSW(void)
1954 TEST_TYPE(PWNDCLASSW, 4, 4);
1955 TEST_TYPE_POINTER(PWNDCLASSW, 40, 4);
1958 static void test_pack_SCROLLINFO(void)
1960 /* SCROLLINFO (pack 4) */
1961 TEST_TYPE(SCROLLINFO, 28, 4);
1962 TEST_FIELD(SCROLLINFO, UINT, cbSize, 0, 4, 4);
1963 TEST_FIELD(SCROLLINFO, UINT, fMask, 4, 4, 4);
1964 TEST_FIELD(SCROLLINFO, INT, nMin, 8, 4, 4);
1965 TEST_FIELD(SCROLLINFO, INT, nMax, 12, 4, 4);
1966 TEST_FIELD(SCROLLINFO, UINT, nPage, 16, 4, 4);
1967 TEST_FIELD(SCROLLINFO, INT, nPos, 20, 4, 4);
1968 TEST_FIELD(SCROLLINFO, INT, nTrackPos, 24, 4, 4);
1971 static void test_pack_SENDASYNCPROC(void)
1974 TEST_TYPE(SENDASYNCPROC, 4, 4);
1977 static void test_pack_SERIALKEYSA(void)
1979 /* SERIALKEYSA (pack 4) */
1980 TEST_TYPE(SERIALKEYSA, 28, 4);
1981 TEST_FIELD(SERIALKEYSA, UINT, cbSize, 0, 4, 4);
1982 TEST_FIELD(SERIALKEYSA, DWORD, dwFlags, 4, 4, 4);
1983 TEST_FIELD(SERIALKEYSA, LPSTR, lpszActivePort, 8, 4, 4);
1984 TEST_FIELD(SERIALKEYSA, LPSTR, lpszPort, 12, 4, 4);
1985 TEST_FIELD(SERIALKEYSA, UINT, iBaudRate, 16, 4, 4);
1986 TEST_FIELD(SERIALKEYSA, UINT, iPortState, 20, 4, 4);
1987 TEST_FIELD(SERIALKEYSA, UINT, iActive, 24, 4, 4);
1990 static void test_pack_SERIALKEYSW(void)
1992 /* SERIALKEYSW (pack 4) */
1993 TEST_TYPE(SERIALKEYSW, 28, 4);
1994 TEST_FIELD(SERIALKEYSW, UINT, cbSize, 0, 4, 4);
1995 TEST_FIELD(SERIALKEYSW, DWORD, dwFlags, 4, 4, 4);
1996 TEST_FIELD(SERIALKEYSW, LPWSTR, lpszActivePort, 8, 4, 4);
1997 TEST_FIELD(SERIALKEYSW, LPWSTR, lpszPort, 12, 4, 4);
1998 TEST_FIELD(SERIALKEYSW, UINT, iBaudRate, 16, 4, 4);
1999 TEST_FIELD(SERIALKEYSW, UINT, iPortState, 20, 4, 4);
2000 TEST_FIELD(SERIALKEYSW, UINT, iActive, 24, 4, 4);
2003 static void test_pack_SOUNDSENTRYA(void)
2005 /* SOUNDSENTRYA (pack 4) */
2006 TEST_TYPE(SOUNDSENTRYA, 48, 4);
2007 TEST_FIELD(SOUNDSENTRYA, UINT, cbSize, 0, 4, 4);
2008 TEST_FIELD(SOUNDSENTRYA, DWORD, dwFlags, 4, 4, 4);
2009 TEST_FIELD(SOUNDSENTRYA, DWORD, iFSTextEffect, 8, 4, 4);
2010 TEST_FIELD(SOUNDSENTRYA, DWORD, iFSTextEffectMSec, 12, 4, 4);
2011 TEST_FIELD(SOUNDSENTRYA, DWORD, iFSTextEffectColorBits, 16, 4, 4);
2012 TEST_FIELD(SOUNDSENTRYA, DWORD, iFSGrafEffect, 20, 4, 4);
2013 TEST_FIELD(SOUNDSENTRYA, DWORD, iFSGrafEffectMSec, 24, 4, 4);
2014 TEST_FIELD(SOUNDSENTRYA, DWORD, iFSGrafEffectColor, 28, 4, 4);
2015 TEST_FIELD(SOUNDSENTRYA, DWORD, iWindowsEffect, 32, 4, 4);
2016 TEST_FIELD(SOUNDSENTRYA, DWORD, iWindowsEffectMSec, 36, 4, 4);
2017 TEST_FIELD(SOUNDSENTRYA, LPSTR, lpszWindowsEffectDLL, 40, 4, 4);
2018 TEST_FIELD(SOUNDSENTRYA, DWORD, iWindowsEffectOrdinal, 44, 4, 4);
2021 static void test_pack_SOUNDSENTRYW(void)
2023 /* SOUNDSENTRYW (pack 4) */
2024 TEST_TYPE(SOUNDSENTRYW, 48, 4);
2025 TEST_FIELD(SOUNDSENTRYW, UINT, cbSize, 0, 4, 4);
2026 TEST_FIELD(SOUNDSENTRYW, DWORD, dwFlags, 4, 4, 4);
2027 TEST_FIELD(SOUNDSENTRYW, DWORD, iFSTextEffect, 8, 4, 4);
2028 TEST_FIELD(SOUNDSENTRYW, DWORD, iFSTextEffectMSec, 12, 4, 4);
2029 TEST_FIELD(SOUNDSENTRYW, DWORD, iFSTextEffectColorBits, 16, 4, 4);
2030 TEST_FIELD(SOUNDSENTRYW, DWORD, iFSGrafEffect, 20, 4, 4);
2031 TEST_FIELD(SOUNDSENTRYW, DWORD, iFSGrafEffectMSec, 24, 4, 4);
2032 TEST_FIELD(SOUNDSENTRYW, DWORD, iFSGrafEffectColor, 28, 4, 4);
2033 TEST_FIELD(SOUNDSENTRYW, DWORD, iWindowsEffect, 32, 4, 4);
2034 TEST_FIELD(SOUNDSENTRYW, DWORD, iWindowsEffectMSec, 36, 4, 4);
2035 TEST_FIELD(SOUNDSENTRYW, LPWSTR, lpszWindowsEffectDLL, 40, 4, 4);
2036 TEST_FIELD(SOUNDSENTRYW, DWORD, iWindowsEffectOrdinal, 44, 4, 4);
2039 static void test_pack_STICKYKEYS(void)
2041 /* STICKYKEYS (pack 4) */
2042 TEST_TYPE(STICKYKEYS, 8, 4);
2043 TEST_FIELD(STICKYKEYS, DWORD, cbSize, 0, 4, 4);
2044 TEST_FIELD(STICKYKEYS, DWORD, dwFlags, 4, 4, 4);
2047 static void test_pack_STYLESTRUCT(void)
2049 /* STYLESTRUCT (pack 4) */
2050 TEST_TYPE(STYLESTRUCT, 8, 4);
2051 TEST_FIELD(STYLESTRUCT, DWORD, styleOld, 0, 4, 4);
2052 TEST_FIELD(STYLESTRUCT, DWORD, styleNew, 4, 4, 4);
2055 static void test_pack_TIMERPROC(void)
2058 TEST_TYPE(TIMERPROC, 4, 4);
2061 static void test_pack_TITLEBARINFO(void)
2063 /* TITLEBARINFO (pack 4) */
2064 TEST_TYPE(TITLEBARINFO, 44, 4);
2065 TEST_FIELD(TITLEBARINFO, DWORD, cbSize, 0, 4, 4);
2066 TEST_FIELD(TITLEBARINFO, RECT, rcTitleBar, 4, 16, 4);
2067 TEST_FIELD(TITLEBARINFO, DWORD[CCHILDREN_TITLEBAR+1], rgstate, 20, 24, 4);
2070 static void test_pack_TOGGLEKEYS(void)
2072 /* TOGGLEKEYS (pack 4) */
2073 TEST_TYPE(TOGGLEKEYS, 8, 4);
2074 TEST_FIELD(TOGGLEKEYS, DWORD, cbSize, 0, 4, 4);
2075 TEST_FIELD(TOGGLEKEYS, DWORD, dwFlags, 4, 4, 4);
2078 static void test_pack_TPMPARAMS(void)
2080 /* TPMPARAMS (pack 4) */
2081 TEST_TYPE(TPMPARAMS, 20, 4);
2082 TEST_FIELD(TPMPARAMS, UINT, cbSize, 0, 4, 4);
2083 TEST_FIELD(TPMPARAMS, RECT, rcExclude, 4, 16, 4);
2086 static void test_pack_TRACKMOUSEEVENT(void)
2088 /* TRACKMOUSEEVENT (pack 4) */
2089 TEST_TYPE(TRACKMOUSEEVENT, 16, 4);
2090 TEST_FIELD(TRACKMOUSEEVENT, DWORD, cbSize, 0, 4, 4);
2091 TEST_FIELD(TRACKMOUSEEVENT, DWORD, dwFlags, 4, 4, 4);
2092 TEST_FIELD(TRACKMOUSEEVENT, HWND, hwndTrack, 8, 4, 4);
2093 TEST_FIELD(TRACKMOUSEEVENT, DWORD, dwHoverTime, 12, 4, 4);
2096 static void test_pack_USEROBJECTFLAGS(void)
2098 /* USEROBJECTFLAGS (pack 4) */
2099 TEST_TYPE(USEROBJECTFLAGS, 12, 4);
2100 TEST_FIELD(USEROBJECTFLAGS, BOOL, fInherit, 0, 4, 4);
2101 TEST_FIELD(USEROBJECTFLAGS, BOOL, fReserved, 4, 4, 4);
2102 TEST_FIELD(USEROBJECTFLAGS, DWORD, dwFlags, 8, 4, 4);
2105 static void test_pack_WINDOWINFO(void)
2107 /* WINDOWINFO (pack 4) */
2108 TEST_TYPE(WINDOWINFO, 60, 4);
2109 TEST_FIELD(WINDOWINFO, DWORD, cbSize, 0, 4, 4);
2110 TEST_FIELD(WINDOWINFO, RECT, rcWindow, 4, 16, 4);
2111 TEST_FIELD(WINDOWINFO, RECT, rcClient, 20, 16, 4);
2112 TEST_FIELD(WINDOWINFO, DWORD, dwStyle, 36, 4, 4);
2113 TEST_FIELD(WINDOWINFO, DWORD, dwExStyle, 40, 4, 4);
2114 TEST_FIELD(WINDOWINFO, DWORD, dwWindowStatus, 44, 4, 4);
2115 TEST_FIELD(WINDOWINFO, UINT, cxWindowBorders, 48, 4, 4);
2116 TEST_FIELD(WINDOWINFO, UINT, cyWindowBorders, 52, 4, 4);
2117 TEST_FIELD(WINDOWINFO, ATOM, atomWindowType, 56, 2, 2);
2118 TEST_FIELD(WINDOWINFO, WORD, wCreatorVersion, 58, 2, 2);
2121 static void test_pack_WINDOWPLACEMENT(void)
2123 /* WINDOWPLACEMENT (pack 4) */
2124 TEST_TYPE(WINDOWPLACEMENT, 44, 4);
2125 TEST_FIELD(WINDOWPLACEMENT, UINT, length, 0, 4, 4);
2126 TEST_FIELD(WINDOWPLACEMENT, UINT, flags, 4, 4, 4);
2127 TEST_FIELD(WINDOWPLACEMENT, UINT, showCmd, 8, 4, 4);
2128 TEST_FIELD(WINDOWPLACEMENT, POINT, ptMinPosition, 12, 8, 4);
2129 TEST_FIELD(WINDOWPLACEMENT, POINT, ptMaxPosition, 20, 8, 4);
2130 TEST_FIELD(WINDOWPLACEMENT, RECT, rcNormalPosition, 28, 16, 4);
2133 static void test_pack_WINDOWPOS(void)
2135 /* WINDOWPOS (pack 4) */
2136 TEST_TYPE(WINDOWPOS, 28, 4);
2137 TEST_FIELD(WINDOWPOS, HWND, hwnd, 0, 4, 4);
2138 TEST_FIELD(WINDOWPOS, HWND, hwndInsertAfter, 4, 4, 4);
2139 TEST_FIELD(WINDOWPOS, INT, x, 8, 4, 4);
2140 TEST_FIELD(WINDOWPOS, INT, y, 12, 4, 4);
2141 TEST_FIELD(WINDOWPOS, INT, cx, 16, 4, 4);
2142 TEST_FIELD(WINDOWPOS, INT, cy, 20, 4, 4);
2143 TEST_FIELD(WINDOWPOS, UINT, flags, 24, 4, 4);
2146 static void test_pack_WINEVENTPROC(void)
2149 TEST_TYPE(WINEVENTPROC, 4, 4);
2152 static void test_pack_WINSTAENUMPROCA(void)
2154 /* WINSTAENUMPROCA */
2155 TEST_TYPE(WINSTAENUMPROCA, 4, 4);
2158 static void test_pack_WINSTAENUMPROCW(void)
2160 /* WINSTAENUMPROCW */
2161 TEST_TYPE(WINSTAENUMPROCW, 4, 4);
2164 static void test_pack_WNDCLASSA(void)
2166 /* WNDCLASSA (pack 4) */
2167 TEST_TYPE(WNDCLASSA, 40, 4);
2168 TEST_FIELD(WNDCLASSA, UINT, style, 0, 4, 4);
2169 TEST_FIELD(WNDCLASSA, WNDPROC, lpfnWndProc, 4, 4, 4);
2170 TEST_FIELD(WNDCLASSA, INT, cbClsExtra, 8, 4, 4);
2171 TEST_FIELD(WNDCLASSA, INT, cbWndExtra, 12, 4, 4);
2172 TEST_FIELD(WNDCLASSA, HINSTANCE, hInstance, 16, 4, 4);
2173 TEST_FIELD(WNDCLASSA, HICON, hIcon, 20, 4, 4);
2174 TEST_FIELD(WNDCLASSA, HCURSOR, hCursor, 24, 4, 4);
2175 TEST_FIELD(WNDCLASSA, HBRUSH, hbrBackground, 28, 4, 4);
2176 TEST_FIELD(WNDCLASSA, LPCSTR, lpszMenuName, 32, 4, 4);
2177 TEST_FIELD(WNDCLASSA, LPCSTR, lpszClassName, 36, 4, 4);
2180 static void test_pack_WNDCLASSEXA(void)
2182 /* WNDCLASSEXA (pack 4) */
2183 TEST_TYPE(WNDCLASSEXA, 48, 4);
2184 TEST_FIELD(WNDCLASSEXA, UINT, cbSize, 0, 4, 4);
2185 TEST_FIELD(WNDCLASSEXA, UINT, style, 4, 4, 4);
2186 TEST_FIELD(WNDCLASSEXA, WNDPROC, lpfnWndProc, 8, 4, 4);
2187 TEST_FIELD(WNDCLASSEXA, INT, cbClsExtra, 12, 4, 4);
2188 TEST_FIELD(WNDCLASSEXA, INT, cbWndExtra, 16, 4, 4);
2189 TEST_FIELD(WNDCLASSEXA, HINSTANCE, hInstance, 20, 4, 4);
2190 TEST_FIELD(WNDCLASSEXA, HICON, hIcon, 24, 4, 4);
2191 TEST_FIELD(WNDCLASSEXA, HCURSOR, hCursor, 28, 4, 4);
2192 TEST_FIELD(WNDCLASSEXA, HBRUSH, hbrBackground, 32, 4, 4);
2193 TEST_FIELD(WNDCLASSEXA, LPCSTR, lpszMenuName, 36, 4, 4);
2194 TEST_FIELD(WNDCLASSEXA, LPCSTR, lpszClassName, 40, 4, 4);
2195 TEST_FIELD(WNDCLASSEXA, HICON, hIconSm, 44, 4, 4);
2198 static void test_pack_WNDCLASSEXW(void)
2200 /* WNDCLASSEXW (pack 4) */
2201 TEST_TYPE(WNDCLASSEXW, 48, 4);
2202 TEST_FIELD(WNDCLASSEXW, UINT, cbSize, 0, 4, 4);
2203 TEST_FIELD(WNDCLASSEXW, UINT, style, 4, 4, 4);
2204 TEST_FIELD(WNDCLASSEXW, WNDPROC, lpfnWndProc, 8, 4, 4);
2205 TEST_FIELD(WNDCLASSEXW, INT, cbClsExtra, 12, 4, 4);
2206 TEST_FIELD(WNDCLASSEXW, INT, cbWndExtra, 16, 4, 4);
2207 TEST_FIELD(WNDCLASSEXW, HINSTANCE, hInstance, 20, 4, 4);
2208 TEST_FIELD(WNDCLASSEXW, HICON, hIcon, 24, 4, 4);
2209 TEST_FIELD(WNDCLASSEXW, HCURSOR, hCursor, 28, 4, 4);
2210 TEST_FIELD(WNDCLASSEXW, HBRUSH, hbrBackground, 32, 4, 4);
2211 TEST_FIELD(WNDCLASSEXW, LPCWSTR, lpszMenuName, 36, 4, 4);
2212 TEST_FIELD(WNDCLASSEXW, LPCWSTR, lpszClassName, 40, 4, 4);
2213 TEST_FIELD(WNDCLASSEXW, HICON, hIconSm, 44, 4, 4);
2216 static void test_pack_WNDCLASSW(void)
2218 /* WNDCLASSW (pack 4) */
2219 TEST_TYPE(WNDCLASSW, 40, 4);
2220 TEST_FIELD(WNDCLASSW, UINT, style, 0, 4, 4);
2221 TEST_FIELD(WNDCLASSW, WNDPROC, lpfnWndProc, 4, 4, 4);
2222 TEST_FIELD(WNDCLASSW, INT, cbClsExtra, 8, 4, 4);
2223 TEST_FIELD(WNDCLASSW, INT, cbWndExtra, 12, 4, 4);
2224 TEST_FIELD(WNDCLASSW, HINSTANCE, hInstance, 16, 4, 4);
2225 TEST_FIELD(WNDCLASSW, HICON, hIcon, 20, 4, 4);
2226 TEST_FIELD(WNDCLASSW, HCURSOR, hCursor, 24, 4, 4);
2227 TEST_FIELD(WNDCLASSW, HBRUSH, hbrBackground, 28, 4, 4);
2228 TEST_FIELD(WNDCLASSW, LPCWSTR, lpszMenuName, 32, 4, 4);
2229 TEST_FIELD(WNDCLASSW, LPCWSTR, lpszClassName, 36, 4, 4);
2232 static void test_pack_WNDENUMPROC(void)
2235 TEST_TYPE(WNDENUMPROC, 4, 4);
2238 static void test_pack_WNDPROC(void)
2241 TEST_TYPE(WNDPROC, 4, 4);
2244 static void test_pack(void)
2247 test_pack_ACCESSTIMEOUT();
2248 test_pack_ANIMATIONINFO();
2249 test_pack_CBTACTIVATESTRUCT();
2250 test_pack_CBT_CREATEWNDA();
2251 test_pack_CBT_CREATEWNDW();
2252 test_pack_CLIENTCREATESTRUCT();
2253 test_pack_COMBOBOXINFO();
2254 test_pack_COMPAREITEMSTRUCT();
2255 test_pack_COPYDATASTRUCT();
2256 test_pack_CREATESTRUCTA();
2257 test_pack_CREATESTRUCTW();
2258 test_pack_CURSORINFO();
2259 test_pack_CWPRETSTRUCT();
2260 test_pack_CWPSTRUCT();
2261 test_pack_DEBUGHOOKINFO();
2262 test_pack_DELETEITEMSTRUCT();
2263 test_pack_DESKTOPENUMPROCA();
2264 test_pack_DESKTOPENUMPROCW();
2265 test_pack_DLGITEMTEMPLATE();
2266 test_pack_DLGPROC();
2267 test_pack_DLGTEMPLATE();
2268 test_pack_DRAWITEMSTRUCT();
2269 test_pack_DRAWSTATEPROC();
2270 test_pack_DRAWTEXTPARAMS();
2271 test_pack_EDITWORDBREAKPROCA();
2272 test_pack_EDITWORDBREAKPROCW();
2273 test_pack_EVENTMSG();
2274 test_pack_FILTERKEYS();
2275 test_pack_FLASHWINFO();
2276 test_pack_GRAYSTRINGPROC();
2277 test_pack_GUITHREADINFO();
2278 test_pack_HARDWAREHOOKSTRUCT();
2279 test_pack_HARDWAREINPUT();
2280 test_pack_HDEVNOTIFY();
2282 test_pack_HELPINFO();
2283 test_pack_HELPWININFOA();
2284 test_pack_HELPWININFOW();
2285 test_pack_HIGHCONTRASTA();
2286 test_pack_HIGHCONTRASTW();
2287 test_pack_HOOKPROC();
2288 test_pack_ICONINFO();
2289 test_pack_ICONMETRICSA();
2290 test_pack_ICONMETRICSW();
2292 test_pack_KBDLLHOOKSTRUCT();
2293 test_pack_KEYBDINPUT();
2294 test_pack_LPACCEL();
2295 test_pack_LPACCESSTIMEOUT();
2296 test_pack_LPANIMATIONINFO();
2297 test_pack_LPCBTACTIVATESTRUCT();
2298 test_pack_LPCBT_CREATEWNDA();
2299 test_pack_LPCBT_CREATEWNDW();
2300 test_pack_LPCDLGTEMPLATEA();
2301 test_pack_LPCDLGTEMPLATEW();
2302 test_pack_LPCLIENTCREATESTRUCT();
2303 test_pack_LPCMENUINFO();
2304 test_pack_LPCMENUITEMINFOA();
2305 test_pack_LPCMENUITEMINFOW();
2306 test_pack_LPCOMBOBOXINFO();
2307 test_pack_LPCOMPAREITEMSTRUCT();
2308 test_pack_LPCREATESTRUCTA();
2309 test_pack_LPCREATESTRUCTW();
2310 test_pack_LPCSCROLLINFO();
2311 test_pack_LPCURSORINFO();
2312 test_pack_LPCWPRETSTRUCT();
2313 test_pack_LPCWPSTRUCT();
2314 test_pack_LPDEBUGHOOKINFO();
2315 test_pack_LPDELETEITEMSTRUCT();
2316 test_pack_LPDLGITEMTEMPLATEA();
2317 test_pack_LPDLGITEMTEMPLATEW();
2318 test_pack_LPDLGTEMPLATEA();
2319 test_pack_LPDLGTEMPLATEW();
2320 test_pack_LPDRAWITEMSTRUCT();
2321 test_pack_LPDRAWTEXTPARAMS();
2322 test_pack_LPEVENTMSG();
2323 test_pack_LPFILTERKEYS();
2324 test_pack_LPGUITHREADINFO();
2325 test_pack_LPHARDWAREHOOKSTRUCT();
2326 test_pack_LPHARDWAREINPUT();
2327 test_pack_LPHELPINFO();
2328 test_pack_LPHELPWININFOA();
2329 test_pack_LPHELPWININFOW();
2330 test_pack_LPHIGHCONTRASTA();
2331 test_pack_LPHIGHCONTRASTW();
2332 test_pack_LPICONMETRICSA();
2333 test_pack_LPICONMETRICSW();
2334 test_pack_LPINPUT();
2335 test_pack_LPKBDLLHOOKSTRUCT();
2336 test_pack_LPKEYBDINPUT();
2337 test_pack_LPMDICREATESTRUCTA();
2338 test_pack_LPMDICREATESTRUCTW();
2339 test_pack_LPMDINEXTMENU();
2340 test_pack_LPMEASUREITEMSTRUCT();
2341 test_pack_LPMENUINFO();
2342 test_pack_LPMENUITEMINFOA();
2343 test_pack_LPMENUITEMINFOW();
2344 test_pack_LPMINIMIZEDMETRICS();
2345 test_pack_LPMINMAXINFO();
2346 test_pack_LPMONITORINFO();
2347 test_pack_LPMONITORINFOEXA();
2348 test_pack_LPMONITORINFOEXW();
2349 test_pack_LPMOUSEHOOKSTRUCT();
2350 test_pack_LPMOUSEINPUT();
2351 test_pack_LPMOUSEKEYS();
2353 test_pack_LPMSGBOXPARAMSA();
2354 test_pack_LPMSGBOXPARAMSW();
2355 test_pack_LPMSLLHOOKSTRUCT();
2356 test_pack_LPMULTIKEYHELPA();
2357 test_pack_LPMULTIKEYHELPW();
2358 test_pack_LPNCCALCSIZE_PARAMS();
2359 test_pack_LPNMHDR();
2360 test_pack_LPNONCLIENTMETRICSA();
2361 test_pack_LPNONCLIENTMETRICSW();
2362 test_pack_LPPAINTSTRUCT();
2363 test_pack_LPSCROLLINFO();
2364 test_pack_LPSERIALKEYSA();
2365 test_pack_LPSERIALKEYSW();
2366 test_pack_LPSOUNDSENTRYA();
2367 test_pack_LPSOUNDSENTRYW();
2368 test_pack_LPSTICKYKEYS();
2369 test_pack_LPSTYLESTRUCT();
2370 test_pack_LPTITLEBARINFO();
2371 test_pack_LPTOGGLEKEYS();
2372 test_pack_LPTPMPARAMS();
2373 test_pack_LPTRACKMOUSEEVENT();
2374 test_pack_LPWINDOWINFO();
2375 test_pack_LPWINDOWPLACEMENT();
2376 test_pack_LPWINDOWPOS();
2377 test_pack_LPWNDCLASSA();
2378 test_pack_LPWNDCLASSEXA();
2379 test_pack_LPWNDCLASSEXW();
2380 test_pack_LPWNDCLASSW();
2381 test_pack_MDICREATESTRUCTA();
2382 test_pack_MDICREATESTRUCTW();
2383 test_pack_MDINEXTMENU();
2384 test_pack_MEASUREITEMSTRUCT();
2385 test_pack_MENUINFO();
2386 test_pack_MENUITEMINFOA();
2387 test_pack_MENUITEMINFOW();
2388 test_pack_MENUITEMTEMPLATE();
2389 test_pack_MENUITEMTEMPLATEHEADER();
2390 test_pack_MINIMIZEDMETRICS();
2391 test_pack_MINMAXINFO();
2392 test_pack_MONITORENUMPROC();
2393 test_pack_MONITORINFO();
2394 test_pack_MONITORINFOEXA();
2395 test_pack_MONITORINFOEXW();
2396 test_pack_MOUSEHOOKSTRUCT();
2397 test_pack_MOUSEINPUT();
2398 test_pack_MOUSEKEYS();
2400 test_pack_MSGBOXCALLBACK();
2401 test_pack_MSGBOXPARAMSA();
2402 test_pack_MSGBOXPARAMSW();
2403 test_pack_MSLLHOOKSTRUCT();
2404 test_pack_MULTIKEYHELPA();
2405 test_pack_MULTIKEYHELPW();
2406 test_pack_NAMEENUMPROCA();
2407 test_pack_NAMEENUMPROCW();
2408 test_pack_NCCALCSIZE_PARAMS();
2410 test_pack_NONCLIENTMETRICSA();
2411 test_pack_NONCLIENTMETRICSW();
2412 test_pack_PAINTSTRUCT();
2413 test_pack_PCOMBOBOXINFO();
2414 test_pack_PCOMPAREITEMSTRUCT();
2415 test_pack_PCOPYDATASTRUCT();
2416 test_pack_PCURSORINFO();
2417 test_pack_PCWPRETSTRUCT();
2418 test_pack_PCWPSTRUCT();
2419 test_pack_PDEBUGHOOKINFO();
2420 test_pack_PDELETEITEMSTRUCT();
2421 test_pack_PDLGITEMTEMPLATEA();
2422 test_pack_PDLGITEMTEMPLATEW();
2423 test_pack_PDRAWITEMSTRUCT();
2424 test_pack_PEVENTMSG();
2425 test_pack_PFLASHWINFO();
2426 test_pack_PGUITHREADINFO();
2427 test_pack_PHARDWAREHOOKSTRUCT();
2428 test_pack_PHARDWAREINPUT();
2429 test_pack_PHDEVNOTIFY();
2430 test_pack_PHELPWININFOA();
2431 test_pack_PHELPWININFOW();
2432 test_pack_PICONINFO();
2433 test_pack_PICONMETRICSA();
2434 test_pack_PICONMETRICSW();
2436 test_pack_PKBDLLHOOKSTRUCT();
2437 test_pack_PKEYBDINPUT();
2438 test_pack_PMDINEXTMENU();
2439 test_pack_PMEASUREITEMSTRUCT();
2440 test_pack_PMENUITEMTEMPLATE();
2441 test_pack_PMENUITEMTEMPLATEHEADER();
2442 test_pack_PMINIMIZEDMETRICS();
2443 test_pack_PMINMAXINFO();
2444 test_pack_PMOUSEHOOKSTRUCT();
2445 test_pack_PMOUSEINPUT();
2447 test_pack_PMSGBOXPARAMSA();
2448 test_pack_PMSGBOXPARAMSW();
2449 test_pack_PMSLLHOOKSTRUCT();
2450 test_pack_PMULTIKEYHELPA();
2451 test_pack_PMULTIKEYHELPW();
2452 test_pack_PNONCLIENTMETRICSA();
2453 test_pack_PNONCLIENTMETRICSW();
2454 test_pack_PPAINTSTRUCT();
2455 test_pack_PROPENUMPROCA();
2456 test_pack_PROPENUMPROCEXA();
2457 test_pack_PROPENUMPROCEXW();
2458 test_pack_PROPENUMPROCW();
2459 test_pack_PTITLEBARINFO();
2460 test_pack_PUSEROBJECTFLAGS();
2461 test_pack_PWINDOWINFO();
2462 test_pack_PWINDOWPLACEMENT();
2463 test_pack_PWINDOWPOS();
2464 test_pack_PWNDCLASSA();
2465 test_pack_PWNDCLASSEXA();
2466 test_pack_PWNDCLASSEXW();
2467 test_pack_PWNDCLASSW();
2468 test_pack_SCROLLINFO();
2469 test_pack_SENDASYNCPROC();
2470 test_pack_SERIALKEYSA();
2471 test_pack_SERIALKEYSW();
2472 test_pack_SOUNDSENTRYA();
2473 test_pack_SOUNDSENTRYW();
2474 test_pack_STICKYKEYS();
2475 test_pack_STYLESTRUCT();
2476 test_pack_TIMERPROC();
2477 test_pack_TITLEBARINFO();
2478 test_pack_TOGGLEKEYS();
2479 test_pack_TPMPARAMS();
2480 test_pack_TRACKMOUSEEVENT();
2481 test_pack_USEROBJECTFLAGS();
2482 test_pack_WINDOWINFO();
2483 test_pack_WINDOWPLACEMENT();
2484 test_pack_WINDOWPOS();
2485 test_pack_WINEVENTPROC();
2486 test_pack_WINSTAENUMPROCA();
2487 test_pack_WINSTAENUMPROCW();
2488 test_pack_WNDCLASSA();
2489 test_pack_WNDCLASSEXA();
2490 test_pack_WNDCLASSEXW();
2491 test_pack_WNDCLASSW();
2492 test_pack_WNDENUMPROC();
2493 test_pack_WNDPROC();
2496 START_TEST(generated)