ReactOS 0.4.15-dev-8102-g108db8f
generated.c
Go to the documentation of this file.
1/* File generated automatically from tools/winapi/tests.dat; do not edit! */
2/* This file can be copied, modified and distributed without restriction. */
3
4/*
5 * Unit tests for data structure packing
6 */
7
8#ifdef __REACTOS__
9#define _WINE
10#endif
11
12#define WINE_NOWINSOCK
13
14#include "windef.h"
15#include "mmsystem.h"
16#include "digitalv.h"
17
18#include "wine/test.h"
19
20/***********************************************************************
21 * Compatibility macros
22 */
23
24#define DWORD_PTR UINT_PTR
25#define LONG_PTR INT_PTR
26#define ULONG_PTR UINT_PTR
27
28/***********************************************************************
29 * Windows API extension
30 */
31
32#if defined(_MSC_VER) && (_MSC_VER >= 1300) && defined(__cplusplus)
33# define _TYPE_ALIGNMENT(type) __alignof(type)
34#elif defined(__GNUC__)
35# define _TYPE_ALIGNMENT(type) __alignof__(type)
36#else
37/*
38 * FIXME: May not be possible without a compiler extension
39 * (if type is not just a name that is, otherwise the normal
40 * TYPE_ALIGNMENT can be used)
41 */
42#endif
43
44#if defined(TYPE_ALIGNMENT) && defined(_MSC_VER) && _MSC_VER >= 800 && !defined(__cplusplus)
45#pragma warning(disable:4116)
46#endif
47
48#if !defined(TYPE_ALIGNMENT) && defined(_TYPE_ALIGNMENT)
49# define TYPE_ALIGNMENT _TYPE_ALIGNMENT
50#endif
51
52/***********************************************************************
53 * Test helper macros
54 */
55
56#define TEST_TYPE_SIZE(type, size) C_ASSERT(sizeof(type) == size);
57
58#ifdef TYPE_ALIGNMENT
59# define TEST_TYPE_ALIGN(type, align) C_ASSERT(TYPE_ALIGNMENT(type) == align);
60#else
61# define TEST_TYPE_ALIGN(type, align)
62#endif
63
64#ifdef _TYPE_ALIGNMENT
65# define TEST_TARGET_ALIGN(type, align) C_ASSERT(_TYPE_ALIGNMENT(*(type)0) == align);
66# define TEST_FIELD_ALIGN(type, field, align) C_ASSERT(_TYPE_ALIGNMENT(((type*)0)->field) == align);
67#else
68# define TEST_TARGET_ALIGN(type, align)
69# define TEST_FIELD_ALIGN(type, field, align)
70#endif
71
72#define TEST_FIELD_OFFSET(type, field, offset) C_ASSERT(FIELD_OFFSET(type, field) == offset);
73
74#define TEST_TARGET_SIZE(type, size) TEST_TYPE_SIZE(*(type)0, size)
75#define TEST_FIELD_SIZE(type, field, size) TEST_TYPE_SIZE((((type*)0)->field), size)
76#define TEST_TYPE_SIGNED(type) C_ASSERT((type) -1 < 0);
77#define TEST_TYPE_UNSIGNED(type) C_ASSERT((type) -1 > 0);
78
79
80#ifdef _WIN64
81
82static void test_pack_MMTIME(void)
83{
84 /* MMTIME (pack 1) */
85 TEST_FIELD_SIZE (MMTIME, wType, 4)
86 TEST_FIELD_ALIGN (MMTIME, wType, 1)
87 TEST_FIELD_OFFSET(MMTIME, wType, 0)
88}
89
90static void test_pack_DRVCONFIGINFO(void)
91{
92 /* DRVCONFIGINFO (pack 1) */
95 TEST_FIELD_SIZE (DRVCONFIGINFO, dwDCISize, 4)
96 TEST_FIELD_ALIGN (DRVCONFIGINFO, dwDCISize, 1)
97 TEST_FIELD_OFFSET(DRVCONFIGINFO, dwDCISize, 0)
98 TEST_FIELD_SIZE (DRVCONFIGINFO, lpszDCISectionName, 8)
99 TEST_FIELD_ALIGN (DRVCONFIGINFO, lpszDCISectionName, 1)
100 TEST_FIELD_OFFSET(DRVCONFIGINFO, lpszDCISectionName, 4)
101 TEST_FIELD_SIZE (DRVCONFIGINFO, lpszDCIAliasName, 8)
102 TEST_FIELD_ALIGN (DRVCONFIGINFO, lpszDCIAliasName, 1)
103 TEST_FIELD_OFFSET(DRVCONFIGINFO, lpszDCIAliasName, 12)
104}
105
106static void test_pack_WAVEHDR(void)
107{
108 /* WAVEHDR (pack 1) */
111 TEST_FIELD_SIZE (WAVEHDR, lpData, 8)
112 TEST_FIELD_ALIGN (WAVEHDR, lpData, 1)
113 TEST_FIELD_OFFSET(WAVEHDR, lpData, 0)
114 TEST_FIELD_SIZE (WAVEHDR, dwBufferLength, 4)
115 TEST_FIELD_ALIGN (WAVEHDR, dwBufferLength, 1)
116 TEST_FIELD_OFFSET(WAVEHDR, dwBufferLength, 8)
117 TEST_FIELD_SIZE (WAVEHDR, dwBytesRecorded, 4)
118 TEST_FIELD_ALIGN (WAVEHDR, dwBytesRecorded, 1)
119 TEST_FIELD_OFFSET(WAVEHDR, dwBytesRecorded, 12)
120 TEST_FIELD_SIZE (WAVEHDR, dwUser, 8)
121 TEST_FIELD_ALIGN (WAVEHDR, dwUser, 1)
122 TEST_FIELD_OFFSET(WAVEHDR, dwUser, 16)
126 TEST_FIELD_SIZE (WAVEHDR, dwLoops, 4)
127 TEST_FIELD_ALIGN (WAVEHDR, dwLoops, 1)
128 TEST_FIELD_OFFSET(WAVEHDR, dwLoops, 28)
129 TEST_FIELD_SIZE (WAVEHDR, lpNext, 8)
130 TEST_FIELD_ALIGN (WAVEHDR, lpNext, 1)
131 TEST_FIELD_OFFSET(WAVEHDR, lpNext, 32)
135}
136
137static void test_pack_WAVEOUTCAPSA(void)
138{
139 /* WAVEOUTCAPSA (pack 1) */
146 TEST_FIELD_SIZE (WAVEOUTCAPSA, vDriverVersion, 4)
147 TEST_FIELD_ALIGN (WAVEOUTCAPSA, vDriverVersion, 1)
148 TEST_FIELD_OFFSET(WAVEOUTCAPSA, vDriverVersion, 4)
149}
150
151static void test_pack_WAVEOUTCAPSW(void)
152{
153 /* WAVEOUTCAPSW (pack 1) */
160 TEST_FIELD_SIZE (WAVEOUTCAPSW, vDriverVersion, 4)
161 TEST_FIELD_ALIGN (WAVEOUTCAPSW, vDriverVersion, 1)
162 TEST_FIELD_OFFSET(WAVEOUTCAPSW, vDriverVersion, 4)
163}
164
165static void test_pack_WAVEOUTCAPS2A(void)
166{
167 /* WAVEOUTCAPS2A (pack 1) */
174 TEST_FIELD_SIZE (WAVEOUTCAPS2A, vDriverVersion, 4)
175 TEST_FIELD_ALIGN (WAVEOUTCAPS2A, vDriverVersion, 1)
176 TEST_FIELD_OFFSET(WAVEOUTCAPS2A, vDriverVersion, 4)
177}
178
179static void test_pack_WAVEOUTCAPS2W(void)
180{
181 /* WAVEOUTCAPS2W (pack 1) */
188 TEST_FIELD_SIZE (WAVEOUTCAPS2W, vDriverVersion, 4)
189 TEST_FIELD_ALIGN (WAVEOUTCAPS2W, vDriverVersion, 1)
190 TEST_FIELD_OFFSET(WAVEOUTCAPS2W, vDriverVersion, 4)
191}
192
193static void test_pack_WAVEINCAPSA(void)
194{
195 /* WAVEINCAPSA (pack 1) */
202 TEST_FIELD_SIZE (WAVEINCAPSA, vDriverVersion, 4)
203 TEST_FIELD_ALIGN (WAVEINCAPSA, vDriverVersion, 1)
204 TEST_FIELD_OFFSET(WAVEINCAPSA, vDriverVersion, 4)
205}
206
207static void test_pack_WAVEINCAPSW(void)
208{
209 /* WAVEINCAPSW (pack 1) */
216 TEST_FIELD_SIZE (WAVEINCAPSW, vDriverVersion, 4)
217 TEST_FIELD_ALIGN (WAVEINCAPSW, vDriverVersion, 1)
218 TEST_FIELD_OFFSET(WAVEINCAPSW, vDriverVersion, 4)
219}
220
221static void test_pack_WAVEINCAPS2A(void)
222{
223 /* WAVEINCAPS2A (pack 1) */
230 TEST_FIELD_SIZE (WAVEINCAPS2A, vDriverVersion, 4)
231 TEST_FIELD_ALIGN (WAVEINCAPS2A, vDriverVersion, 1)
232 TEST_FIELD_OFFSET(WAVEINCAPS2A, vDriverVersion, 4)
233}
234
235static void test_pack_WAVEINCAPS2W(void)
236{
237 /* WAVEINCAPS2W (pack 1) */
244 TEST_FIELD_SIZE (WAVEINCAPS2W, vDriverVersion, 4)
245 TEST_FIELD_ALIGN (WAVEINCAPS2W, vDriverVersion, 1)
246 TEST_FIELD_OFFSET(WAVEINCAPS2W, vDriverVersion, 4)
247}
248
249static void test_pack_WAVEFORMAT(void)
250{
251 /* WAVEFORMAT (pack 1) */
254 TEST_FIELD_SIZE (WAVEFORMAT, wFormatTag, 2)
255 TEST_FIELD_ALIGN (WAVEFORMAT, wFormatTag, 1)
256 TEST_FIELD_OFFSET(WAVEFORMAT, wFormatTag, 0)
260 TEST_FIELD_SIZE (WAVEFORMAT, nSamplesPerSec, 4)
261 TEST_FIELD_ALIGN (WAVEFORMAT, nSamplesPerSec, 1)
262 TEST_FIELD_OFFSET(WAVEFORMAT, nSamplesPerSec, 4)
263 TEST_FIELD_SIZE (WAVEFORMAT, nAvgBytesPerSec, 4)
264 TEST_FIELD_ALIGN (WAVEFORMAT, nAvgBytesPerSec, 1)
265 TEST_FIELD_OFFSET(WAVEFORMAT, nAvgBytesPerSec, 8)
266 TEST_FIELD_SIZE (WAVEFORMAT, nBlockAlign, 2)
267 TEST_FIELD_ALIGN (WAVEFORMAT, nBlockAlign, 1)
268 TEST_FIELD_OFFSET(WAVEFORMAT, nBlockAlign, 12)
269}
270
271static void test_pack_PCMWAVEFORMAT(void)
272{
273 /* PCMWAVEFORMAT (pack 1) */
279 TEST_FIELD_SIZE (PCMWAVEFORMAT, wBitsPerSample, 2)
280 TEST_FIELD_ALIGN (PCMWAVEFORMAT, wBitsPerSample, 1)
281 TEST_FIELD_OFFSET(PCMWAVEFORMAT, wBitsPerSample, 14)
282}
283
284static void test_pack_WAVEFORMATEX(void)
285{
286 /* WAVEFORMATEX (pack 1) */
289 TEST_FIELD_SIZE (WAVEFORMATEX, wFormatTag, 2)
290 TEST_FIELD_ALIGN (WAVEFORMATEX, wFormatTag, 1)
291 TEST_FIELD_OFFSET(WAVEFORMATEX, wFormatTag, 0)
295 TEST_FIELD_SIZE (WAVEFORMATEX, nSamplesPerSec, 4)
296 TEST_FIELD_ALIGN (WAVEFORMATEX, nSamplesPerSec, 1)
297 TEST_FIELD_OFFSET(WAVEFORMATEX, nSamplesPerSec, 4)
298 TEST_FIELD_SIZE (WAVEFORMATEX, nAvgBytesPerSec, 4)
299 TEST_FIELD_ALIGN (WAVEFORMATEX, nAvgBytesPerSec, 1)
300 TEST_FIELD_OFFSET(WAVEFORMATEX, nAvgBytesPerSec, 8)
301 TEST_FIELD_SIZE (WAVEFORMATEX, nBlockAlign, 2)
302 TEST_FIELD_ALIGN (WAVEFORMATEX, nBlockAlign, 1)
303 TEST_FIELD_OFFSET(WAVEFORMATEX, nBlockAlign, 12)
304 TEST_FIELD_SIZE (WAVEFORMATEX, wBitsPerSample, 2)
305 TEST_FIELD_ALIGN (WAVEFORMATEX, wBitsPerSample, 1)
306 TEST_FIELD_OFFSET(WAVEFORMATEX, wBitsPerSample, 14)
307 TEST_FIELD_SIZE (WAVEFORMATEX, cbSize, 2)
308 TEST_FIELD_ALIGN (WAVEFORMATEX, cbSize, 1)
310}
311
312static void test_pack_MIDIOUTCAPSA(void)
313{
314 /* MIDIOUTCAPSA (pack 1) */
321 TEST_FIELD_SIZE (MIDIOUTCAPSA, vDriverVersion, 4)
322 TEST_FIELD_ALIGN (MIDIOUTCAPSA, vDriverVersion, 1)
323 TEST_FIELD_OFFSET(MIDIOUTCAPSA, vDriverVersion, 4)
324}
325
326static void test_pack_MIDIOUTCAPSW(void)
327{
328 /* MIDIOUTCAPSW (pack 1) */
335 TEST_FIELD_SIZE (MIDIOUTCAPSW, vDriverVersion, 4)
336 TEST_FIELD_ALIGN (MIDIOUTCAPSW, vDriverVersion, 1)
337 TEST_FIELD_OFFSET(MIDIOUTCAPSW, vDriverVersion, 4)
338}
339
340static void test_pack_MIDIOUTCAPS2A(void)
341{
342 /* MIDIOUTCAPS2A (pack 1) */
349 TEST_FIELD_SIZE (MIDIOUTCAPS2A, vDriverVersion, 4)
350 TEST_FIELD_ALIGN (MIDIOUTCAPS2A, vDriverVersion, 1)
351 TEST_FIELD_OFFSET(MIDIOUTCAPS2A, vDriverVersion, 4)
352}
353
354static void test_pack_MIDIOUTCAPS2W(void)
355{
356 /* MIDIOUTCAPS2W (pack 1) */
363 TEST_FIELD_SIZE (MIDIOUTCAPS2W, vDriverVersion, 4)
364 TEST_FIELD_ALIGN (MIDIOUTCAPS2W, vDriverVersion, 1)
365 TEST_FIELD_OFFSET(MIDIOUTCAPS2W, vDriverVersion, 4)
366}
367
368static void test_pack_MIDIINCAPSA(void)
369{
370 /* MIDIINCAPSA (pack 1) */
377 TEST_FIELD_SIZE (MIDIINCAPSA, vDriverVersion, 4)
378 TEST_FIELD_ALIGN (MIDIINCAPSA, vDriverVersion, 1)
379 TEST_FIELD_OFFSET(MIDIINCAPSA, vDriverVersion, 4)
380}
381
382static void test_pack_MIDIINCAPSW(void)
383{
384 /* MIDIINCAPSW (pack 1) */
391 TEST_FIELD_SIZE (MIDIINCAPSW, vDriverVersion, 4)
392 TEST_FIELD_ALIGN (MIDIINCAPSW, vDriverVersion, 1)
393 TEST_FIELD_OFFSET(MIDIINCAPSW, vDriverVersion, 4)
394}
395
396static void test_pack_MIDIINCAPS2A(void)
397{
398 /* MIDIINCAPS2A (pack 1) */
405 TEST_FIELD_SIZE (MIDIINCAPS2A, vDriverVersion, 4)
406 TEST_FIELD_ALIGN (MIDIINCAPS2A, vDriverVersion, 1)
407 TEST_FIELD_OFFSET(MIDIINCAPS2A, vDriverVersion, 4)
408}
409
410static void test_pack_MIDIINCAPS2W(void)
411{
412 /* MIDIINCAPS2W (pack 1) */
419 TEST_FIELD_SIZE (MIDIINCAPS2W, vDriverVersion, 4)
420 TEST_FIELD_ALIGN (MIDIINCAPS2W, vDriverVersion, 1)
421 TEST_FIELD_OFFSET(MIDIINCAPS2W, vDriverVersion, 4)
422}
423
424static void test_pack_MIDIHDR(void)
425{
426 /* MIDIHDR (pack 1) */
429 TEST_FIELD_SIZE (MIDIHDR, lpData, 8)
430 TEST_FIELD_ALIGN (MIDIHDR, lpData, 1)
431 TEST_FIELD_OFFSET(MIDIHDR, lpData, 0)
432 TEST_FIELD_SIZE (MIDIHDR, dwBufferLength, 4)
433 TEST_FIELD_ALIGN (MIDIHDR, dwBufferLength, 1)
434 TEST_FIELD_OFFSET(MIDIHDR, dwBufferLength, 8)
435 TEST_FIELD_SIZE (MIDIHDR, dwBytesRecorded, 4)
436 TEST_FIELD_ALIGN (MIDIHDR, dwBytesRecorded, 1)
437 TEST_FIELD_OFFSET(MIDIHDR, dwBytesRecorded, 12)
438 TEST_FIELD_SIZE (MIDIHDR, dwUser, 8)
439 TEST_FIELD_ALIGN (MIDIHDR, dwUser, 1)
440 TEST_FIELD_OFFSET(MIDIHDR, dwUser, 16)
444 TEST_FIELD_SIZE (MIDIHDR, lpNext, 8)
445 TEST_FIELD_ALIGN (MIDIHDR, lpNext, 1)
446 TEST_FIELD_OFFSET(MIDIHDR, lpNext, 28)
456}
457
458static void test_pack_MIDIEVENT(void)
459{
460 /* MIDIEVENT (pack 1) */
463 TEST_FIELD_SIZE (MIDIEVENT, dwDeltaTime, 4)
464 TEST_FIELD_ALIGN (MIDIEVENT, dwDeltaTime, 1)
465 TEST_FIELD_OFFSET(MIDIEVENT, dwDeltaTime, 0)
466 TEST_FIELD_SIZE (MIDIEVENT, dwStreamID, 4)
467 TEST_FIELD_ALIGN (MIDIEVENT, dwStreamID, 1)
468 TEST_FIELD_OFFSET(MIDIEVENT, dwStreamID, 4)
469 TEST_FIELD_SIZE (MIDIEVENT, dwEvent, 4)
470 TEST_FIELD_ALIGN (MIDIEVENT, dwEvent, 1)
471 TEST_FIELD_OFFSET(MIDIEVENT, dwEvent, 8)
472 TEST_FIELD_SIZE (MIDIEVENT, dwParms, 4)
473 TEST_FIELD_ALIGN (MIDIEVENT, dwParms, 1)
474 TEST_FIELD_OFFSET(MIDIEVENT, dwParms, 12)
475}
476
477static void test_pack_AUXCAPSA(void)
478{
479 /* AUXCAPSA (pack 1) */
480 TEST_FIELD_SIZE (AUXCAPSA, wMid, 2)
481 TEST_FIELD_ALIGN (AUXCAPSA, wMid, 1)
483 TEST_FIELD_SIZE (AUXCAPSA, wPid, 2)
484 TEST_FIELD_ALIGN (AUXCAPSA, wPid, 1)
486 TEST_FIELD_SIZE (AUXCAPSA, vDriverVersion, 4)
487 TEST_FIELD_ALIGN (AUXCAPSA, vDriverVersion, 1)
488 TEST_FIELD_OFFSET(AUXCAPSA, vDriverVersion, 4)
489}
490
491static void test_pack_AUXCAPSW(void)
492{
493 /* AUXCAPSW (pack 1) */
494 TEST_FIELD_SIZE (AUXCAPSW, wMid, 2)
495 TEST_FIELD_ALIGN (AUXCAPSW, wMid, 1)
497 TEST_FIELD_SIZE (AUXCAPSW, wPid, 2)
498 TEST_FIELD_ALIGN (AUXCAPSW, wPid, 1)
500 TEST_FIELD_SIZE (AUXCAPSW, vDriverVersion, 4)
501 TEST_FIELD_ALIGN (AUXCAPSW, vDriverVersion, 1)
502 TEST_FIELD_OFFSET(AUXCAPSW, vDriverVersion, 4)
503}
504
505static void test_pack_AUXCAPS2A(void)
506{
507 /* AUXCAPS2A (pack 1) */
508 TEST_FIELD_SIZE (AUXCAPS2A, wMid, 2)
509 TEST_FIELD_ALIGN (AUXCAPS2A, wMid, 1)
511 TEST_FIELD_SIZE (AUXCAPS2A, wPid, 2)
512 TEST_FIELD_ALIGN (AUXCAPS2A, wPid, 1)
514 TEST_FIELD_SIZE (AUXCAPS2A, vDriverVersion, 4)
515 TEST_FIELD_ALIGN (AUXCAPS2A, vDriverVersion, 1)
516 TEST_FIELD_OFFSET(AUXCAPS2A, vDriverVersion, 4)
517}
518
519static void test_pack_AUXCAPS2W(void)
520{
521 /* AUXCAPS2W (pack 1) */
522 TEST_FIELD_SIZE (AUXCAPS2W, wMid, 2)
523 TEST_FIELD_ALIGN (AUXCAPS2W, wMid, 1)
525 TEST_FIELD_SIZE (AUXCAPS2W, wPid, 2)
526 TEST_FIELD_ALIGN (AUXCAPS2W, wPid, 1)
528 TEST_FIELD_SIZE (AUXCAPS2W, vDriverVersion, 4)
529 TEST_FIELD_ALIGN (AUXCAPS2W, vDriverVersion, 1)
530 TEST_FIELD_OFFSET(AUXCAPS2W, vDriverVersion, 4)
531}
532
533static void test_pack_TIMECAPS(void)
534{
535 /* TIMECAPS (pack 1) */
538 TEST_FIELD_SIZE (TIMECAPS, wPeriodMin, 4)
539 TEST_FIELD_ALIGN (TIMECAPS, wPeriodMin, 1)
540 TEST_FIELD_OFFSET(TIMECAPS, wPeriodMin, 0)
541 TEST_FIELD_SIZE (TIMECAPS, wPeriodMax, 4)
542 TEST_FIELD_ALIGN (TIMECAPS, wPeriodMax, 1)
543 TEST_FIELD_OFFSET(TIMECAPS, wPeriodMax, 4)
544}
545
546static void test_pack_JOYCAPSA(void)
547{
548 /* JOYCAPSA (pack 1) */
549 TEST_FIELD_SIZE (JOYCAPSA, wMid, 2)
550 TEST_FIELD_ALIGN (JOYCAPSA, wMid, 1)
552 TEST_FIELD_SIZE (JOYCAPSA, wPid, 2)
553 TEST_FIELD_ALIGN (JOYCAPSA, wPid, 1)
555}
556
557static void test_pack_JOYCAPSW(void)
558{
559 /* JOYCAPSW (pack 1) */
560 TEST_FIELD_SIZE (JOYCAPSW, wMid, 2)
561 TEST_FIELD_ALIGN (JOYCAPSW, wMid, 1)
563 TEST_FIELD_SIZE (JOYCAPSW, wPid, 2)
564 TEST_FIELD_ALIGN (JOYCAPSW, wPid, 1)
566}
567
568static void test_pack_JOYCAPS2A(void)
569{
570 /* JOYCAPS2A (pack 1) */
571 TEST_FIELD_SIZE (JOYCAPS2A, wMid, 2)
572 TEST_FIELD_ALIGN (JOYCAPS2A, wMid, 1)
574 TEST_FIELD_SIZE (JOYCAPS2A, wPid, 2)
575 TEST_FIELD_ALIGN (JOYCAPS2A, wPid, 1)
577}
578
579static void test_pack_JOYCAPS2W(void)
580{
581 /* JOYCAPS2W (pack 1) */
582 TEST_FIELD_SIZE (JOYCAPS2W, wMid, 2)
583 TEST_FIELD_ALIGN (JOYCAPS2W, wMid, 1)
585 TEST_FIELD_SIZE (JOYCAPS2W, wPid, 2)
586 TEST_FIELD_ALIGN (JOYCAPS2W, wPid, 1)
588}
589
590static void test_pack_JOYINFO(void)
591{
592 /* JOYINFO (pack 1) */
595 TEST_FIELD_SIZE (JOYINFO, wXpos, 4)
596 TEST_FIELD_ALIGN (JOYINFO, wXpos, 1)
597 TEST_FIELD_OFFSET(JOYINFO, wXpos, 0)
598 TEST_FIELD_SIZE (JOYINFO, wYpos, 4)
599 TEST_FIELD_ALIGN (JOYINFO, wYpos, 1)
600 TEST_FIELD_OFFSET(JOYINFO, wYpos, 4)
601 TEST_FIELD_SIZE (JOYINFO, wZpos, 4)
602 TEST_FIELD_ALIGN (JOYINFO, wZpos, 1)
603 TEST_FIELD_OFFSET(JOYINFO, wZpos, 8)
604 TEST_FIELD_SIZE (JOYINFO, wButtons, 4)
605 TEST_FIELD_ALIGN (JOYINFO, wButtons, 1)
606 TEST_FIELD_OFFSET(JOYINFO, wButtons, 12)
607}
608
609static void test_pack_JOYINFOEX(void)
610{
611 /* JOYINFOEX (pack 1) */
620 TEST_FIELD_SIZE (JOYINFOEX, dwXpos, 4)
621 TEST_FIELD_ALIGN (JOYINFOEX, dwXpos, 1)
622 TEST_FIELD_OFFSET(JOYINFOEX, dwXpos, 8)
623 TEST_FIELD_SIZE (JOYINFOEX, dwYpos, 4)
624 TEST_FIELD_ALIGN (JOYINFOEX, dwYpos, 1)
625 TEST_FIELD_OFFSET(JOYINFOEX, dwYpos, 12)
626 TEST_FIELD_SIZE (JOYINFOEX, dwZpos, 4)
627 TEST_FIELD_ALIGN (JOYINFOEX, dwZpos, 1)
628 TEST_FIELD_OFFSET(JOYINFOEX, dwZpos, 16)
629 TEST_FIELD_SIZE (JOYINFOEX, dwRpos, 4)
630 TEST_FIELD_ALIGN (JOYINFOEX, dwRpos, 1)
631 TEST_FIELD_OFFSET(JOYINFOEX, dwRpos, 20)
632 TEST_FIELD_SIZE (JOYINFOEX, dwUpos, 4)
633 TEST_FIELD_ALIGN (JOYINFOEX, dwUpos, 1)
634 TEST_FIELD_OFFSET(JOYINFOEX, dwUpos, 24)
635 TEST_FIELD_SIZE (JOYINFOEX, dwVpos, 4)
636 TEST_FIELD_ALIGN (JOYINFOEX, dwVpos, 1)
637 TEST_FIELD_OFFSET(JOYINFOEX, dwVpos, 28)
638 TEST_FIELD_SIZE (JOYINFOEX, dwButtons, 4)
639 TEST_FIELD_ALIGN (JOYINFOEX, dwButtons, 1)
640 TEST_FIELD_OFFSET(JOYINFOEX, dwButtons, 32)
641 TEST_FIELD_SIZE (JOYINFOEX, dwButtonNumber, 4)
642 TEST_FIELD_ALIGN (JOYINFOEX, dwButtonNumber, 1)
643 TEST_FIELD_OFFSET(JOYINFOEX, dwButtonNumber, 36)
644 TEST_FIELD_SIZE (JOYINFOEX, dwPOV, 4)
645 TEST_FIELD_ALIGN (JOYINFOEX, dwPOV, 1)
646 TEST_FIELD_OFFSET(JOYINFOEX, dwPOV, 40)
647 TEST_FIELD_SIZE (JOYINFOEX, dwReserved1, 4)
648 TEST_FIELD_ALIGN (JOYINFOEX, dwReserved1, 1)
649 TEST_FIELD_OFFSET(JOYINFOEX, dwReserved1, 44)
650 TEST_FIELD_SIZE (JOYINFOEX, dwReserved2, 4)
651 TEST_FIELD_ALIGN (JOYINFOEX, dwReserved2, 1)
652 TEST_FIELD_OFFSET(JOYINFOEX, dwReserved2, 48)
653}
654
655static void test_pack_MIXERCAPSA(void)
656{
657 /* MIXERCAPSA (pack 1) */
658 TEST_FIELD_SIZE (MIXERCAPSA, wMid, 2)
661 TEST_FIELD_SIZE (MIXERCAPSA, wPid, 2)
664 TEST_FIELD_SIZE (MIXERCAPSA, vDriverVersion, 4)
665 TEST_FIELD_ALIGN (MIXERCAPSA, vDriverVersion, 1)
666 TEST_FIELD_OFFSET(MIXERCAPSA, vDriverVersion, 4)
667}
668
669static void test_pack_MIXERCAPSW(void)
670{
671 /* MIXERCAPSW (pack 1) */
672 TEST_FIELD_SIZE (MIXERCAPSW, wMid, 2)
675 TEST_FIELD_SIZE (MIXERCAPSW, wPid, 2)
678 TEST_FIELD_SIZE (MIXERCAPSW, vDriverVersion, 4)
679 TEST_FIELD_ALIGN (MIXERCAPSW, vDriverVersion, 1)
680 TEST_FIELD_OFFSET(MIXERCAPSW, vDriverVersion, 4)
681}
682
683static void test_pack_MIXERCAPS2A(void)
684{
685 /* MIXERCAPS2A (pack 1) */
692 TEST_FIELD_SIZE (MIXERCAPS2A, vDriverVersion, 4)
693 TEST_FIELD_ALIGN (MIXERCAPS2A, vDriverVersion, 1)
694 TEST_FIELD_OFFSET(MIXERCAPS2A, vDriverVersion, 4)
695}
696
697static void test_pack_MIXERCAPS2W(void)
698{
699 /* MIXERCAPS2W (pack 1) */
706 TEST_FIELD_SIZE (MIXERCAPS2W, vDriverVersion, 4)
707 TEST_FIELD_ALIGN (MIXERCAPS2W, vDriverVersion, 1)
708 TEST_FIELD_OFFSET(MIXERCAPS2W, vDriverVersion, 4)
709}
710
711static void test_pack_MIXERLINEA(void)
712{
713 /* MIXERLINEA (pack 1) */
714 TEST_FIELD_SIZE (MIXERLINEA, cbStruct, 4)
715 TEST_FIELD_ALIGN (MIXERLINEA, cbStruct, 1)
716 TEST_FIELD_OFFSET(MIXERLINEA, cbStruct, 0)
717 TEST_FIELD_SIZE (MIXERLINEA, dwDestination, 4)
718 TEST_FIELD_ALIGN (MIXERLINEA, dwDestination, 1)
719 TEST_FIELD_OFFSET(MIXERLINEA, dwDestination, 4)
720 TEST_FIELD_SIZE (MIXERLINEA, dwSource, 4)
721 TEST_FIELD_ALIGN (MIXERLINEA, dwSource, 1)
722 TEST_FIELD_OFFSET(MIXERLINEA, dwSource, 8)
723 TEST_FIELD_SIZE (MIXERLINEA, dwLineID, 4)
724 TEST_FIELD_ALIGN (MIXERLINEA, dwLineID, 1)
725 TEST_FIELD_OFFSET(MIXERLINEA, dwLineID, 12)
726 TEST_FIELD_SIZE (MIXERLINEA, fdwLine, 4)
727 TEST_FIELD_ALIGN (MIXERLINEA, fdwLine, 1)
728 TEST_FIELD_OFFSET(MIXERLINEA, fdwLine, 16)
729 TEST_FIELD_SIZE (MIXERLINEA, dwUser, 8)
730 TEST_FIELD_ALIGN (MIXERLINEA, dwUser, 1)
731 TEST_FIELD_OFFSET(MIXERLINEA, dwUser, 20)
732 TEST_FIELD_SIZE (MIXERLINEA, dwComponentType, 4)
733 TEST_FIELD_ALIGN (MIXERLINEA, dwComponentType, 1)
734 TEST_FIELD_OFFSET(MIXERLINEA, dwComponentType, 28)
735 TEST_FIELD_SIZE (MIXERLINEA, cChannels, 4)
736 TEST_FIELD_ALIGN (MIXERLINEA, cChannels, 1)
737 TEST_FIELD_OFFSET(MIXERLINEA, cChannels, 32)
738 TEST_FIELD_SIZE (MIXERLINEA, cConnections, 4)
739 TEST_FIELD_ALIGN (MIXERLINEA, cConnections, 1)
740 TEST_FIELD_OFFSET(MIXERLINEA, cConnections, 36)
741 TEST_FIELD_SIZE (MIXERLINEA, cControls, 4)
742 TEST_FIELD_ALIGN (MIXERLINEA, cControls, 1)
743 TEST_FIELD_OFFSET(MIXERLINEA, cControls, 40)
744}
745
746static void test_pack_MIXERLINEW(void)
747{
748 /* MIXERLINEW (pack 1) */
749 TEST_FIELD_SIZE (MIXERLINEW, cbStruct, 4)
750 TEST_FIELD_ALIGN (MIXERLINEW, cbStruct, 1)
751 TEST_FIELD_OFFSET(MIXERLINEW, cbStruct, 0)
752 TEST_FIELD_SIZE (MIXERLINEW, dwDestination, 4)
753 TEST_FIELD_ALIGN (MIXERLINEW, dwDestination, 1)
754 TEST_FIELD_OFFSET(MIXERLINEW, dwDestination, 4)
755 TEST_FIELD_SIZE (MIXERLINEW, dwSource, 4)
756 TEST_FIELD_ALIGN (MIXERLINEW, dwSource, 1)
757 TEST_FIELD_OFFSET(MIXERLINEW, dwSource, 8)
758 TEST_FIELD_SIZE (MIXERLINEW, dwLineID, 4)
759 TEST_FIELD_ALIGN (MIXERLINEW, dwLineID, 1)
760 TEST_FIELD_OFFSET(MIXERLINEW, dwLineID, 12)
761 TEST_FIELD_SIZE (MIXERLINEW, fdwLine, 4)
762 TEST_FIELD_ALIGN (MIXERLINEW, fdwLine, 1)
763 TEST_FIELD_OFFSET(MIXERLINEW, fdwLine, 16)
764 TEST_FIELD_SIZE (MIXERLINEW, dwUser, 8)
765 TEST_FIELD_ALIGN (MIXERLINEW, dwUser, 1)
766 TEST_FIELD_OFFSET(MIXERLINEW, dwUser, 20)
767 TEST_FIELD_SIZE (MIXERLINEW, dwComponentType, 4)
768 TEST_FIELD_ALIGN (MIXERLINEW, dwComponentType, 1)
769 TEST_FIELD_OFFSET(MIXERLINEW, dwComponentType, 28)
770 TEST_FIELD_SIZE (MIXERLINEW, cChannels, 4)
771 TEST_FIELD_ALIGN (MIXERLINEW, cChannels, 1)
772 TEST_FIELD_OFFSET(MIXERLINEW, cChannels, 32)
773 TEST_FIELD_SIZE (MIXERLINEW, cConnections, 4)
774 TEST_FIELD_ALIGN (MIXERLINEW, cConnections, 1)
775 TEST_FIELD_OFFSET(MIXERLINEW, cConnections, 36)
776 TEST_FIELD_SIZE (MIXERLINEW, cControls, 4)
777 TEST_FIELD_ALIGN (MIXERLINEW, cControls, 1)
778 TEST_FIELD_OFFSET(MIXERLINEW, cControls, 40)
779}
780
781static void test_pack_MIXERCONTROLA(void)
782{
783 /* MIXERCONTROLA (pack 1) */
784 TEST_FIELD_SIZE (MIXERCONTROLA, cbStruct, 4)
785 TEST_FIELD_ALIGN (MIXERCONTROLA, cbStruct, 1)
786 TEST_FIELD_OFFSET(MIXERCONTROLA, cbStruct, 0)
787 TEST_FIELD_SIZE (MIXERCONTROLA, dwControlID, 4)
788 TEST_FIELD_ALIGN (MIXERCONTROLA, dwControlID, 1)
789 TEST_FIELD_OFFSET(MIXERCONTROLA, dwControlID, 4)
790 TEST_FIELD_SIZE (MIXERCONTROLA, dwControlType, 4)
791 TEST_FIELD_ALIGN (MIXERCONTROLA, dwControlType, 1)
792 TEST_FIELD_OFFSET(MIXERCONTROLA, dwControlType, 8)
793 TEST_FIELD_SIZE (MIXERCONTROLA, fdwControl, 4)
794 TEST_FIELD_ALIGN (MIXERCONTROLA, fdwControl, 1)
795 TEST_FIELD_OFFSET(MIXERCONTROLA, fdwControl, 12)
796 TEST_FIELD_SIZE (MIXERCONTROLA, cMultipleItems, 4)
797 TEST_FIELD_ALIGN (MIXERCONTROLA, cMultipleItems, 1)
798 TEST_FIELD_OFFSET(MIXERCONTROLA, cMultipleItems, 16)
799}
800
801static void test_pack_MIXERCONTROLW(void)
802{
803 /* MIXERCONTROLW (pack 1) */
804 TEST_FIELD_SIZE (MIXERCONTROLW, cbStruct, 4)
805 TEST_FIELD_ALIGN (MIXERCONTROLW, cbStruct, 1)
806 TEST_FIELD_OFFSET(MIXERCONTROLW, cbStruct, 0)
807 TEST_FIELD_SIZE (MIXERCONTROLW, dwControlID, 4)
808 TEST_FIELD_ALIGN (MIXERCONTROLW, dwControlID, 1)
809 TEST_FIELD_OFFSET(MIXERCONTROLW, dwControlID, 4)
810 TEST_FIELD_SIZE (MIXERCONTROLW, dwControlType, 4)
811 TEST_FIELD_ALIGN (MIXERCONTROLW, dwControlType, 1)
812 TEST_FIELD_OFFSET(MIXERCONTROLW, dwControlType, 8)
813 TEST_FIELD_SIZE (MIXERCONTROLW, fdwControl, 4)
814 TEST_FIELD_ALIGN (MIXERCONTROLW, fdwControl, 1)
815 TEST_FIELD_OFFSET(MIXERCONTROLW, fdwControl, 12)
816 TEST_FIELD_SIZE (MIXERCONTROLW, cMultipleItems, 4)
817 TEST_FIELD_ALIGN (MIXERCONTROLW, cMultipleItems, 1)
818 TEST_FIELD_OFFSET(MIXERCONTROLW, cMultipleItems, 16)
819}
820
821static void test_pack_MIXERCONTROLDETAILS(void)
822{
823 /* MIXERCONTROLDETAILS (pack 1) */
827 TEST_FIELD_SIZE (MIXERCONTROLDETAILS, dwControlID, 4)
828 TEST_FIELD_ALIGN (MIXERCONTROLDETAILS, dwControlID, 1)
833}
834
836{
837 /* MIXERCONTROLDETAILS_LISTTEXTA (pack 1) */
844}
845
847{
848 /* MIXERCONTROLDETAILS_LISTTEXTW (pack 1) */
855}
856
858{
859 /* MIXERCONTROLDETAILS_BOOLEAN (pack 1) */
865}
866
868{
869 /* MIXERCONTROLDETAILS_SIGNED (pack 1) */
875}
876
878{
879 /* MIXERCONTROLDETAILS_UNSIGNED (pack 1) */
885}
886
887static void test_pack_MMIOINFO(void)
888{
889 /* MMIOINFO (pack 1) */
893 TEST_FIELD_SIZE (MMIOINFO, fccIOProc, 4)
894 TEST_FIELD_ALIGN (MMIOINFO, fccIOProc, 1)
895 TEST_FIELD_OFFSET(MMIOINFO, fccIOProc, 4)
896 TEST_FIELD_SIZE (MMIOINFO, pIOProc, 8)
897 TEST_FIELD_ALIGN (MMIOINFO, pIOProc, 1)
898 TEST_FIELD_OFFSET(MMIOINFO, pIOProc, 8)
899 TEST_FIELD_SIZE (MMIOINFO, wErrorRet, 4)
900 TEST_FIELD_ALIGN (MMIOINFO, wErrorRet, 1)
901 TEST_FIELD_OFFSET(MMIOINFO, wErrorRet, 16)
902}
903
904static void test_pack_MMCKINFO(void)
905{
906 /* MMCKINFO (pack 1) */
909 TEST_FIELD_SIZE (MMCKINFO, ckid, 4)
910 TEST_FIELD_ALIGN (MMCKINFO, ckid, 1)
912 TEST_FIELD_SIZE (MMCKINFO, cksize, 4)
913 TEST_FIELD_ALIGN (MMCKINFO, cksize, 1)
914 TEST_FIELD_OFFSET(MMCKINFO, cksize, 4)
915 TEST_FIELD_SIZE (MMCKINFO, fccType, 4)
916 TEST_FIELD_ALIGN (MMCKINFO, fccType, 1)
917 TEST_FIELD_OFFSET(MMCKINFO, fccType, 8)
918 TEST_FIELD_SIZE (MMCKINFO, dwDataOffset, 4)
919 TEST_FIELD_ALIGN (MMCKINFO, dwDataOffset, 1)
920 TEST_FIELD_OFFSET(MMCKINFO, dwDataOffset, 12)
924}
925
926static void test_pack_MCI_GENERIC_PARMS(void)
927{
928 /* MCI_GENERIC_PARMS (pack 1) */
931 TEST_FIELD_SIZE (MCI_GENERIC_PARMS, dwCallback, 8)
932 TEST_FIELD_ALIGN (MCI_GENERIC_PARMS, dwCallback, 1)
934}
935
936static void test_pack_MCI_OPEN_PARMSA(void)
937{
938 /* MCI_OPEN_PARMSA (pack 1) */
941 TEST_FIELD_SIZE (MCI_OPEN_PARMSA, dwCallback, 8)
942 TEST_FIELD_ALIGN (MCI_OPEN_PARMSA, dwCallback, 1)
943 TEST_FIELD_OFFSET(MCI_OPEN_PARMSA, dwCallback, 0)
944 TEST_FIELD_SIZE (MCI_OPEN_PARMSA, wDeviceID, 4)
945 TEST_FIELD_ALIGN (MCI_OPEN_PARMSA, wDeviceID, 1)
947 TEST_FIELD_SIZE (MCI_OPEN_PARMSA, lpstrDeviceType, 8)
948 TEST_FIELD_ALIGN (MCI_OPEN_PARMSA, lpstrDeviceType, 1)
949 TEST_FIELD_OFFSET(MCI_OPEN_PARMSA, lpstrDeviceType, 12)
950 TEST_FIELD_SIZE (MCI_OPEN_PARMSA, lpstrElementName, 8)
951 TEST_FIELD_ALIGN (MCI_OPEN_PARMSA, lpstrElementName, 1)
952 TEST_FIELD_OFFSET(MCI_OPEN_PARMSA, lpstrElementName, 20)
953 TEST_FIELD_SIZE (MCI_OPEN_PARMSA, lpstrAlias, 8)
954 TEST_FIELD_ALIGN (MCI_OPEN_PARMSA, lpstrAlias, 1)
955 TEST_FIELD_OFFSET(MCI_OPEN_PARMSA, lpstrAlias, 28)
956}
957
958static void test_pack_MCI_OPEN_PARMSW(void)
959{
960 /* MCI_OPEN_PARMSW (pack 1) */
963 TEST_FIELD_SIZE (MCI_OPEN_PARMSW, dwCallback, 8)
964 TEST_FIELD_ALIGN (MCI_OPEN_PARMSW, dwCallback, 1)
965 TEST_FIELD_OFFSET(MCI_OPEN_PARMSW, dwCallback, 0)
966 TEST_FIELD_SIZE (MCI_OPEN_PARMSW, wDeviceID, 4)
967 TEST_FIELD_ALIGN (MCI_OPEN_PARMSW, wDeviceID, 1)
969 TEST_FIELD_SIZE (MCI_OPEN_PARMSW, lpstrDeviceType, 8)
970 TEST_FIELD_ALIGN (MCI_OPEN_PARMSW, lpstrDeviceType, 1)
971 TEST_FIELD_OFFSET(MCI_OPEN_PARMSW, lpstrDeviceType, 12)
972 TEST_FIELD_SIZE (MCI_OPEN_PARMSW, lpstrElementName, 8)
973 TEST_FIELD_ALIGN (MCI_OPEN_PARMSW, lpstrElementName, 1)
974 TEST_FIELD_OFFSET(MCI_OPEN_PARMSW, lpstrElementName, 20)
975 TEST_FIELD_SIZE (MCI_OPEN_PARMSW, lpstrAlias, 8)
976 TEST_FIELD_ALIGN (MCI_OPEN_PARMSW, lpstrAlias, 1)
977 TEST_FIELD_OFFSET(MCI_OPEN_PARMSW, lpstrAlias, 28)
978}
979
980static void test_pack_MCI_PLAY_PARMS(void)
981{
982 /* MCI_PLAY_PARMS (pack 1) */
985 TEST_FIELD_SIZE (MCI_PLAY_PARMS, dwCallback, 8)
986 TEST_FIELD_ALIGN (MCI_PLAY_PARMS, dwCallback, 1)
987 TEST_FIELD_OFFSET(MCI_PLAY_PARMS, dwCallback, 0)
994}
995
996static void test_pack_MCI_SEEK_PARMS(void)
997{
998 /* MCI_SEEK_PARMS (pack 1) */
1001 TEST_FIELD_SIZE (MCI_SEEK_PARMS, dwCallback, 8)
1002 TEST_FIELD_ALIGN (MCI_SEEK_PARMS, dwCallback, 1)
1003 TEST_FIELD_OFFSET(MCI_SEEK_PARMS, dwCallback, 0)
1007}
1008
1009static void test_pack_MCI_STATUS_PARMS(void)
1010{
1011 /* MCI_STATUS_PARMS (pack 1) */
1014 TEST_FIELD_SIZE (MCI_STATUS_PARMS, dwCallback, 8)
1015 TEST_FIELD_ALIGN (MCI_STATUS_PARMS, dwCallback, 1)
1016 TEST_FIELD_OFFSET(MCI_STATUS_PARMS, dwCallback, 0)
1017 TEST_FIELD_SIZE (MCI_STATUS_PARMS, dwReturn, 8)
1018 TEST_FIELD_ALIGN (MCI_STATUS_PARMS, dwReturn, 1)
1023 TEST_FIELD_SIZE (MCI_STATUS_PARMS, dwTrack, 4)
1026}
1027
1028static void test_pack_MCI_INFO_PARMSA(void)
1029{
1030 /* MCI_INFO_PARMSA (pack 1) */
1033 TEST_FIELD_SIZE (MCI_INFO_PARMSA, dwCallback, 8)
1034 TEST_FIELD_ALIGN (MCI_INFO_PARMSA, dwCallback, 1)
1035 TEST_FIELD_OFFSET(MCI_INFO_PARMSA, dwCallback, 0)
1036 TEST_FIELD_SIZE (MCI_INFO_PARMSA, lpstrReturn, 8)
1037 TEST_FIELD_ALIGN (MCI_INFO_PARMSA, lpstrReturn, 1)
1038 TEST_FIELD_OFFSET(MCI_INFO_PARMSA, lpstrReturn, 8)
1039 TEST_FIELD_SIZE (MCI_INFO_PARMSA, dwRetSize, 4)
1040 TEST_FIELD_ALIGN (MCI_INFO_PARMSA, dwRetSize, 1)
1041 TEST_FIELD_OFFSET(MCI_INFO_PARMSA, dwRetSize, 16)
1042}
1043
1044static void test_pack_MCI_INFO_PARMSW(void)
1045{
1046 /* MCI_INFO_PARMSW (pack 1) */
1049 TEST_FIELD_SIZE (MCI_INFO_PARMSW, dwCallback, 8)
1050 TEST_FIELD_ALIGN (MCI_INFO_PARMSW, dwCallback, 1)
1051 TEST_FIELD_OFFSET(MCI_INFO_PARMSW, dwCallback, 0)
1052 TEST_FIELD_SIZE (MCI_INFO_PARMSW, lpstrReturn, 8)
1053 TEST_FIELD_ALIGN (MCI_INFO_PARMSW, lpstrReturn, 1)
1054 TEST_FIELD_OFFSET(MCI_INFO_PARMSW, lpstrReturn, 8)
1055 TEST_FIELD_SIZE (MCI_INFO_PARMSW, dwRetSize, 4)
1056 TEST_FIELD_ALIGN (MCI_INFO_PARMSW, dwRetSize, 1)
1057 TEST_FIELD_OFFSET(MCI_INFO_PARMSW, dwRetSize, 16)
1058}
1059
1060static void test_pack_MCI_GETDEVCAPS_PARMS(void)
1061{
1062 /* MCI_GETDEVCAPS_PARMS (pack 1) */
1065 TEST_FIELD_SIZE (MCI_GETDEVCAPS_PARMS, dwCallback, 8)
1066 TEST_FIELD_ALIGN (MCI_GETDEVCAPS_PARMS, dwCallback, 1)
1074}
1075
1076static void test_pack_MCI_SYSINFO_PARMSA(void)
1077{
1078 /* MCI_SYSINFO_PARMSA (pack 1) */
1081 TEST_FIELD_SIZE (MCI_SYSINFO_PARMSA, dwCallback, 8)
1082 TEST_FIELD_ALIGN (MCI_SYSINFO_PARMSA, dwCallback, 1)
1084 TEST_FIELD_SIZE (MCI_SYSINFO_PARMSA, lpstrReturn, 8)
1085 TEST_FIELD_ALIGN (MCI_SYSINFO_PARMSA, lpstrReturn, 1)
1086 TEST_FIELD_OFFSET(MCI_SYSINFO_PARMSA, lpstrReturn, 8)
1087 TEST_FIELD_SIZE (MCI_SYSINFO_PARMSA, dwRetSize, 4)
1088 TEST_FIELD_ALIGN (MCI_SYSINFO_PARMSA, dwRetSize, 1)
1090 TEST_FIELD_SIZE (MCI_SYSINFO_PARMSA, dwNumber, 4)
1093 TEST_FIELD_SIZE (MCI_SYSINFO_PARMSA, wDeviceType, 4)
1094 TEST_FIELD_ALIGN (MCI_SYSINFO_PARMSA, wDeviceType, 1)
1095 TEST_FIELD_OFFSET(MCI_SYSINFO_PARMSA, wDeviceType, 24)
1096}
1097
1098static void test_pack_MCI_SYSINFO_PARMSW(void)
1099{
1100 /* MCI_SYSINFO_PARMSW (pack 1) */
1103 TEST_FIELD_SIZE (MCI_SYSINFO_PARMSW, dwCallback, 8)
1104 TEST_FIELD_ALIGN (MCI_SYSINFO_PARMSW, dwCallback, 1)
1106 TEST_FIELD_SIZE (MCI_SYSINFO_PARMSW, lpstrReturn, 8)
1107 TEST_FIELD_ALIGN (MCI_SYSINFO_PARMSW, lpstrReturn, 1)
1108 TEST_FIELD_OFFSET(MCI_SYSINFO_PARMSW, lpstrReturn, 8)
1109 TEST_FIELD_SIZE (MCI_SYSINFO_PARMSW, dwRetSize, 4)
1110 TEST_FIELD_ALIGN (MCI_SYSINFO_PARMSW, dwRetSize, 1)
1112 TEST_FIELD_SIZE (MCI_SYSINFO_PARMSW, dwNumber, 4)
1115 TEST_FIELD_SIZE (MCI_SYSINFO_PARMSW, wDeviceType, 4)
1116 TEST_FIELD_ALIGN (MCI_SYSINFO_PARMSW, wDeviceType, 1)
1117 TEST_FIELD_OFFSET(MCI_SYSINFO_PARMSW, wDeviceType, 24)
1118}
1119
1120static void test_pack_MCI_SET_PARMS(void)
1121{
1122 /* MCI_SET_PARMS (pack 1) */
1125 TEST_FIELD_SIZE (MCI_SET_PARMS, dwCallback, 8)
1126 TEST_FIELD_ALIGN (MCI_SET_PARMS, dwCallback, 1)
1127 TEST_FIELD_OFFSET(MCI_SET_PARMS, dwCallback, 0)
1128 TEST_FIELD_SIZE (MCI_SET_PARMS, dwTimeFormat, 4)
1129 TEST_FIELD_ALIGN (MCI_SET_PARMS, dwTimeFormat, 1)
1130 TEST_FIELD_OFFSET(MCI_SET_PARMS, dwTimeFormat, 8)
1131 TEST_FIELD_SIZE (MCI_SET_PARMS, dwAudio, 4)
1132 TEST_FIELD_ALIGN (MCI_SET_PARMS, dwAudio, 1)
1133 TEST_FIELD_OFFSET(MCI_SET_PARMS, dwAudio, 12)
1134}
1135
1136static void test_pack_MCI_BREAK_PARMS(void)
1137{
1138 /* MCI_BREAK_PARMS (pack 1) */
1141 TEST_FIELD_SIZE (MCI_BREAK_PARMS, dwCallback, 8)
1142 TEST_FIELD_ALIGN (MCI_BREAK_PARMS, dwCallback, 1)
1143 TEST_FIELD_OFFSET(MCI_BREAK_PARMS, dwCallback, 0)
1144 TEST_FIELD_SIZE (MCI_BREAK_PARMS, nVirtKey, 4)
1145 TEST_FIELD_ALIGN (MCI_BREAK_PARMS, nVirtKey, 1)
1147 TEST_FIELD_SIZE (MCI_BREAK_PARMS, hwndBreak, 8)
1148 TEST_FIELD_ALIGN (MCI_BREAK_PARMS, hwndBreak, 1)
1149 TEST_FIELD_OFFSET(MCI_BREAK_PARMS, hwndBreak, 12)
1150}
1151
1152static void test_pack_MCI_SOUND_PARMSA(void)
1153{
1154 /* MCI_SOUND_PARMSA (pack 1) */
1155 TEST_TYPE_SIZE (MCI_SOUND_PARMSA, 16)
1156 TEST_TYPE_ALIGN (MCI_SOUND_PARMSA, 1)
1157 TEST_FIELD_SIZE (MCI_SOUND_PARMSA, dwCallback, 8)
1158 TEST_FIELD_ALIGN (MCI_SOUND_PARMSA, dwCallback, 1)
1159 TEST_FIELD_OFFSET(MCI_SOUND_PARMSA, dwCallback, 0)
1160 TEST_FIELD_SIZE (MCI_SOUND_PARMSA, lpstrSoundName, 8)
1161 TEST_FIELD_ALIGN (MCI_SOUND_PARMSA, lpstrSoundName, 1)
1162 TEST_FIELD_OFFSET(MCI_SOUND_PARMSA, lpstrSoundName, 8)
1163}
1164
1165static void test_pack_MCI_SOUND_PARMSW(void)
1166{
1167 /* MCI_SOUND_PARMSW (pack 1) */
1168 TEST_TYPE_SIZE (MCI_SOUND_PARMSW, 16)
1169 TEST_TYPE_ALIGN (MCI_SOUND_PARMSW, 1)
1170 TEST_FIELD_SIZE (MCI_SOUND_PARMSW, dwCallback, 8)
1171 TEST_FIELD_ALIGN (MCI_SOUND_PARMSW, dwCallback, 1)
1172 TEST_FIELD_OFFSET(MCI_SOUND_PARMSW, dwCallback, 0)
1173 TEST_FIELD_SIZE (MCI_SOUND_PARMSW, lpstrSoundName, 8)
1174 TEST_FIELD_ALIGN (MCI_SOUND_PARMSW, lpstrSoundName, 1)
1175 TEST_FIELD_OFFSET(MCI_SOUND_PARMSW, lpstrSoundName, 8)
1176}
1177
1178static void test_pack_MCI_SAVE_PARMSA(void)
1179{
1180 /* MCI_SAVE_PARMSA (pack 1) */
1183 TEST_FIELD_SIZE (MCI_SAVE_PARMSA, dwCallback, 8)
1184 TEST_FIELD_ALIGN (MCI_SAVE_PARMSA, dwCallback, 1)
1185 TEST_FIELD_OFFSET(MCI_SAVE_PARMSA, dwCallback, 0)
1186 TEST_FIELD_SIZE (MCI_SAVE_PARMSA, lpfilename, 8)
1187 TEST_FIELD_ALIGN (MCI_SAVE_PARMSA, lpfilename, 1)
1188 TEST_FIELD_OFFSET(MCI_SAVE_PARMSA, lpfilename, 8)
1189}
1190
1191static void test_pack_MCI_SAVE_PARMSW(void)
1192{
1193 /* MCI_SAVE_PARMSW (pack 1) */
1196 TEST_FIELD_SIZE (MCI_SAVE_PARMSW, dwCallback, 8)
1197 TEST_FIELD_ALIGN (MCI_SAVE_PARMSW, dwCallback, 1)
1198 TEST_FIELD_OFFSET(MCI_SAVE_PARMSW, dwCallback, 0)
1199 TEST_FIELD_SIZE (MCI_SAVE_PARMSW, lpfilename, 8)
1200 TEST_FIELD_ALIGN (MCI_SAVE_PARMSW, lpfilename, 1)
1201 TEST_FIELD_OFFSET(MCI_SAVE_PARMSW, lpfilename, 8)
1202}
1203
1204static void test_pack_MCI_LOAD_PARMSA(void)
1205{
1206 /* MCI_LOAD_PARMSA (pack 1) */
1209 TEST_FIELD_SIZE (MCI_LOAD_PARMSA, dwCallback, 8)
1210 TEST_FIELD_ALIGN (MCI_LOAD_PARMSA, dwCallback, 1)
1211 TEST_FIELD_OFFSET(MCI_LOAD_PARMSA, dwCallback, 0)
1212 TEST_FIELD_SIZE (MCI_LOAD_PARMSA, lpfilename, 8)
1213 TEST_FIELD_ALIGN (MCI_LOAD_PARMSA, lpfilename, 1)
1214 TEST_FIELD_OFFSET(MCI_LOAD_PARMSA, lpfilename, 8)
1215}
1216
1217static void test_pack_MCI_LOAD_PARMSW(void)
1218{
1219 /* MCI_LOAD_PARMSW (pack 1) */
1222 TEST_FIELD_SIZE (MCI_LOAD_PARMSW, dwCallback, 8)
1223 TEST_FIELD_ALIGN (MCI_LOAD_PARMSW, dwCallback, 1)
1224 TEST_FIELD_OFFSET(MCI_LOAD_PARMSW, dwCallback, 0)
1225 TEST_FIELD_SIZE (MCI_LOAD_PARMSW, lpfilename, 8)
1226 TEST_FIELD_ALIGN (MCI_LOAD_PARMSW, lpfilename, 1)
1227 TEST_FIELD_OFFSET(MCI_LOAD_PARMSW, lpfilename, 8)
1228}
1229
1230static void test_pack_MCI_RECORD_PARMS(void)
1231{
1232 /* MCI_RECORD_PARMS (pack 1) */
1235 TEST_FIELD_SIZE (MCI_RECORD_PARMS, dwCallback, 8)
1236 TEST_FIELD_ALIGN (MCI_RECORD_PARMS, dwCallback, 1)
1237 TEST_FIELD_OFFSET(MCI_RECORD_PARMS, dwCallback, 0)
1244}
1245
1246static void test_pack_MCI_VD_PLAY_PARMS(void)
1247{
1248 /* MCI_VD_PLAY_PARMS (pack 1) */
1251 TEST_FIELD_SIZE (MCI_VD_PLAY_PARMS, dwCallback, 8)
1252 TEST_FIELD_ALIGN (MCI_VD_PLAY_PARMS, dwCallback, 1)
1253 TEST_FIELD_OFFSET(MCI_VD_PLAY_PARMS, dwCallback, 0)
1263}
1264
1265static void test_pack_MCI_VD_STEP_PARMS(void)
1266{
1267 /* MCI_VD_STEP_PARMS (pack 1) */
1270 TEST_FIELD_SIZE (MCI_VD_STEP_PARMS, dwCallback, 8)
1271 TEST_FIELD_ALIGN (MCI_VD_STEP_PARMS, dwCallback, 1)
1272 TEST_FIELD_OFFSET(MCI_VD_STEP_PARMS, dwCallback, 0)
1273 TEST_FIELD_SIZE (MCI_VD_STEP_PARMS, dwFrames, 4)
1274 TEST_FIELD_ALIGN (MCI_VD_STEP_PARMS, dwFrames, 1)
1276}
1277
1278static void test_pack_MCI_VD_ESCAPE_PARMSA(void)
1279{
1280 /* MCI_VD_ESCAPE_PARMSA (pack 1) */
1283 TEST_FIELD_SIZE (MCI_VD_ESCAPE_PARMSA, dwCallback, 8)
1284 TEST_FIELD_ALIGN (MCI_VD_ESCAPE_PARMSA, dwCallback, 1)
1286 TEST_FIELD_SIZE (MCI_VD_ESCAPE_PARMSA, lpstrCommand, 8)
1287 TEST_FIELD_ALIGN (MCI_VD_ESCAPE_PARMSA, lpstrCommand, 1)
1288 TEST_FIELD_OFFSET(MCI_VD_ESCAPE_PARMSA, lpstrCommand, 8)
1289}
1290
1291static void test_pack_MCI_VD_ESCAPE_PARMSW(void)
1292{
1293 /* MCI_VD_ESCAPE_PARMSW (pack 1) */
1296 TEST_FIELD_SIZE (MCI_VD_ESCAPE_PARMSW, dwCallback, 8)
1297 TEST_FIELD_ALIGN (MCI_VD_ESCAPE_PARMSW, dwCallback, 1)
1299 TEST_FIELD_SIZE (MCI_VD_ESCAPE_PARMSW, lpstrCommand, 8)
1300 TEST_FIELD_ALIGN (MCI_VD_ESCAPE_PARMSW, lpstrCommand, 1)
1301 TEST_FIELD_OFFSET(MCI_VD_ESCAPE_PARMSW, lpstrCommand, 8)
1302}
1303
1304static void test_pack_MCI_WAVE_OPEN_PARMSA(void)
1305{
1306 /* MCI_WAVE_OPEN_PARMSA (pack 1) */
1309 TEST_FIELD_SIZE (MCI_WAVE_OPEN_PARMSA, dwCallback, 8)
1310 TEST_FIELD_ALIGN (MCI_WAVE_OPEN_PARMSA, dwCallback, 1)
1315 TEST_FIELD_SIZE (MCI_WAVE_OPEN_PARMSA, lpstrDeviceType, 8)
1316 TEST_FIELD_ALIGN (MCI_WAVE_OPEN_PARMSA, lpstrDeviceType, 1)
1317 TEST_FIELD_OFFSET(MCI_WAVE_OPEN_PARMSA, lpstrDeviceType, 12)
1318 TEST_FIELD_SIZE (MCI_WAVE_OPEN_PARMSA, lpstrElementName, 8)
1319 TEST_FIELD_ALIGN (MCI_WAVE_OPEN_PARMSA, lpstrElementName, 1)
1320 TEST_FIELD_OFFSET(MCI_WAVE_OPEN_PARMSA, lpstrElementName, 20)
1321 TEST_FIELD_SIZE (MCI_WAVE_OPEN_PARMSA, lpstrAlias, 8)
1322 TEST_FIELD_ALIGN (MCI_WAVE_OPEN_PARMSA, lpstrAlias, 1)
1324 TEST_FIELD_SIZE (MCI_WAVE_OPEN_PARMSA, dwBufferSeconds, 4)
1325 TEST_FIELD_ALIGN (MCI_WAVE_OPEN_PARMSA, dwBufferSeconds, 1)
1326 TEST_FIELD_OFFSET(MCI_WAVE_OPEN_PARMSA, dwBufferSeconds, 36)
1327}
1328
1329static void test_pack_MCI_WAVE_OPEN_PARMSW(void)
1330{
1331 /* MCI_WAVE_OPEN_PARMSW (pack 1) */
1334 TEST_FIELD_SIZE (MCI_WAVE_OPEN_PARMSW, dwCallback, 8)
1335 TEST_FIELD_ALIGN (MCI_WAVE_OPEN_PARMSW, dwCallback, 1)
1340 TEST_FIELD_SIZE (MCI_WAVE_OPEN_PARMSW, lpstrDeviceType, 8)
1341 TEST_FIELD_ALIGN (MCI_WAVE_OPEN_PARMSW, lpstrDeviceType, 1)
1342 TEST_FIELD_OFFSET(MCI_WAVE_OPEN_PARMSW, lpstrDeviceType, 12)
1343 TEST_FIELD_SIZE (MCI_WAVE_OPEN_PARMSW, lpstrElementName, 8)
1344 TEST_FIELD_ALIGN (MCI_WAVE_OPEN_PARMSW, lpstrElementName, 1)
1345 TEST_FIELD_OFFSET(MCI_WAVE_OPEN_PARMSW, lpstrElementName, 20)
1346 TEST_FIELD_SIZE (MCI_WAVE_OPEN_PARMSW, lpstrAlias, 8)
1347 TEST_FIELD_ALIGN (MCI_WAVE_OPEN_PARMSW, lpstrAlias, 1)
1349 TEST_FIELD_SIZE (MCI_WAVE_OPEN_PARMSW, dwBufferSeconds, 4)
1350 TEST_FIELD_ALIGN (MCI_WAVE_OPEN_PARMSW, dwBufferSeconds, 1)
1351 TEST_FIELD_OFFSET(MCI_WAVE_OPEN_PARMSW, dwBufferSeconds, 36)
1352}
1353
1354static void test_pack_MCI_WAVE_DELETE_PARMS(void)
1355{
1356 /* MCI_WAVE_DELETE_PARMS (pack 1) */
1359 TEST_FIELD_SIZE (MCI_WAVE_DELETE_PARMS, dwCallback, 8)
1368}
1369
1370static void test_pack_MCI_WAVE_SET_PARMS(void)
1371{
1372 /* MCI_WAVE_SET_PARMS (pack 1) */
1375 TEST_FIELD_SIZE (MCI_WAVE_SET_PARMS, dwCallback, 8)
1376 TEST_FIELD_ALIGN (MCI_WAVE_SET_PARMS, dwCallback, 1)
1378 TEST_FIELD_SIZE (MCI_WAVE_SET_PARMS, dwTimeFormat, 4)
1379 TEST_FIELD_ALIGN (MCI_WAVE_SET_PARMS, dwTimeFormat, 1)
1380 TEST_FIELD_OFFSET(MCI_WAVE_SET_PARMS, dwTimeFormat, 8)
1390 TEST_FIELD_SIZE (MCI_WAVE_SET_PARMS, wFormatTag, 4)
1391 TEST_FIELD_ALIGN (MCI_WAVE_SET_PARMS, wFormatTag, 1)
1392 TEST_FIELD_OFFSET(MCI_WAVE_SET_PARMS, wFormatTag, 24)
1396 TEST_FIELD_SIZE (MCI_WAVE_SET_PARMS, nSamplesPerSec, 4)
1397 TEST_FIELD_ALIGN (MCI_WAVE_SET_PARMS, nSamplesPerSec, 1)
1398 TEST_FIELD_OFFSET(MCI_WAVE_SET_PARMS, nSamplesPerSec, 32)
1399 TEST_FIELD_SIZE (MCI_WAVE_SET_PARMS, nAvgBytesPerSec, 4)
1400 TEST_FIELD_ALIGN (MCI_WAVE_SET_PARMS, nAvgBytesPerSec, 1)
1401 TEST_FIELD_OFFSET(MCI_WAVE_SET_PARMS, nAvgBytesPerSec, 36)
1402 TEST_FIELD_SIZE (MCI_WAVE_SET_PARMS, nBlockAlign, 4)
1403 TEST_FIELD_ALIGN (MCI_WAVE_SET_PARMS, nBlockAlign, 1)
1404 TEST_FIELD_OFFSET(MCI_WAVE_SET_PARMS, nBlockAlign, 40)
1405 TEST_FIELD_SIZE (MCI_WAVE_SET_PARMS, wBitsPerSample, 4)
1406 TEST_FIELD_ALIGN (MCI_WAVE_SET_PARMS, wBitsPerSample, 1)
1407 TEST_FIELD_OFFSET(MCI_WAVE_SET_PARMS, wBitsPerSample, 44)
1408}
1409
1410static void test_pack_MCI_SEQ_SET_PARMS(void)
1411{
1412 /* MCI_SEQ_SET_PARMS (pack 1) */
1415 TEST_FIELD_SIZE (MCI_SEQ_SET_PARMS, dwCallback, 8)
1416 TEST_FIELD_ALIGN (MCI_SEQ_SET_PARMS, dwCallback, 1)
1417 TEST_FIELD_OFFSET(MCI_SEQ_SET_PARMS, dwCallback, 0)
1418 TEST_FIELD_SIZE (MCI_SEQ_SET_PARMS, dwTimeFormat, 4)
1419 TEST_FIELD_ALIGN (MCI_SEQ_SET_PARMS, dwTimeFormat, 1)
1420 TEST_FIELD_OFFSET(MCI_SEQ_SET_PARMS, dwTimeFormat, 8)
1433 TEST_FIELD_SIZE (MCI_SEQ_SET_PARMS, dwMaster, 4)
1434 TEST_FIELD_ALIGN (MCI_SEQ_SET_PARMS, dwMaster, 1)
1439}
1440
1441static void test_pack_MCI_ANIM_OPEN_PARMSA(void)
1442{
1443 /* MCI_ANIM_OPEN_PARMSA (pack 1) */
1446 TEST_FIELD_SIZE (MCI_ANIM_OPEN_PARMSA, dwCallback, 8)
1447 TEST_FIELD_ALIGN (MCI_ANIM_OPEN_PARMSA, dwCallback, 1)
1452 TEST_FIELD_SIZE (MCI_ANIM_OPEN_PARMSA, lpstrDeviceType, 8)
1453 TEST_FIELD_ALIGN (MCI_ANIM_OPEN_PARMSA, lpstrDeviceType, 1)
1454 TEST_FIELD_OFFSET(MCI_ANIM_OPEN_PARMSA, lpstrDeviceType, 12)
1455 TEST_FIELD_SIZE (MCI_ANIM_OPEN_PARMSA, lpstrElementName, 8)
1456 TEST_FIELD_ALIGN (MCI_ANIM_OPEN_PARMSA, lpstrElementName, 1)
1457 TEST_FIELD_OFFSET(MCI_ANIM_OPEN_PARMSA, lpstrElementName, 20)
1458 TEST_FIELD_SIZE (MCI_ANIM_OPEN_PARMSA, lpstrAlias, 8)
1459 TEST_FIELD_ALIGN (MCI_ANIM_OPEN_PARMSA, lpstrAlias, 1)
1467}
1468
1469static void test_pack_MCI_ANIM_OPEN_PARMSW(void)
1470{
1471 /* MCI_ANIM_OPEN_PARMSW (pack 1) */
1474 TEST_FIELD_SIZE (MCI_ANIM_OPEN_PARMSW, dwCallback, 8)
1475 TEST_FIELD_ALIGN (MCI_ANIM_OPEN_PARMSW, dwCallback, 1)
1480 TEST_FIELD_SIZE (MCI_ANIM_OPEN_PARMSW, lpstrDeviceType, 8)
1481 TEST_FIELD_ALIGN (MCI_ANIM_OPEN_PARMSW, lpstrDeviceType, 1)
1482 TEST_FIELD_OFFSET(MCI_ANIM_OPEN_PARMSW, lpstrDeviceType, 12)
1483 TEST_FIELD_SIZE (MCI_ANIM_OPEN_PARMSW, lpstrElementName, 8)
1484 TEST_FIELD_ALIGN (MCI_ANIM_OPEN_PARMSW, lpstrElementName, 1)
1485 TEST_FIELD_OFFSET(MCI_ANIM_OPEN_PARMSW, lpstrElementName, 20)
1486 TEST_FIELD_SIZE (MCI_ANIM_OPEN_PARMSW, lpstrAlias, 8)
1487 TEST_FIELD_ALIGN (MCI_ANIM_OPEN_PARMSW, lpstrAlias, 1)
1495}
1496
1497static void test_pack_MCI_ANIM_PLAY_PARMS(void)
1498{
1499 /* MCI_ANIM_PLAY_PARMS (pack 1) */
1502 TEST_FIELD_SIZE (MCI_ANIM_PLAY_PARMS, dwCallback, 8)
1503 TEST_FIELD_ALIGN (MCI_ANIM_PLAY_PARMS, dwCallback, 1)
1514}
1515
1516static void test_pack_MCI_ANIM_STEP_PARMS(void)
1517{
1518 /* MCI_ANIM_STEP_PARMS (pack 1) */
1521 TEST_FIELD_SIZE (MCI_ANIM_STEP_PARMS, dwCallback, 8)
1522 TEST_FIELD_ALIGN (MCI_ANIM_STEP_PARMS, dwCallback, 1)
1527}
1528
1529static void test_pack_MCI_ANIM_WINDOW_PARMSA(void)
1530{
1531 /* MCI_ANIM_WINDOW_PARMSA (pack 1) */
1546}
1547
1548static void test_pack_MCI_ANIM_WINDOW_PARMSW(void)
1549{
1550 /* MCI_ANIM_WINDOW_PARMSW (pack 1) */
1565}
1566
1567static void test_pack_MCI_ANIM_UPDATE_PARMS(void)
1568{
1569 /* MCI_ANIM_UPDATE_PARMS (pack 1) */
1572 TEST_FIELD_SIZE (MCI_ANIM_UPDATE_PARMS, dwCallback, 8)
1581}
1582
1583static void test_pack_MCI_OVLY_OPEN_PARMSA(void)
1584{
1585 /* MCI_OVLY_OPEN_PARMSA (pack 1) */
1588 TEST_FIELD_SIZE (MCI_OVLY_OPEN_PARMSA, dwCallback, 8)
1589 TEST_FIELD_ALIGN (MCI_OVLY_OPEN_PARMSA, dwCallback, 1)
1594 TEST_FIELD_SIZE (MCI_OVLY_OPEN_PARMSA, lpstrDeviceType, 8)
1595 TEST_FIELD_ALIGN (MCI_OVLY_OPEN_PARMSA, lpstrDeviceType, 1)
1596 TEST_FIELD_OFFSET(MCI_OVLY_OPEN_PARMSA, lpstrDeviceType, 12)
1597 TEST_FIELD_SIZE (MCI_OVLY_OPEN_PARMSA, lpstrElementName, 8)
1598 TEST_FIELD_ALIGN (MCI_OVLY_OPEN_PARMSA, lpstrElementName, 1)
1599 TEST_FIELD_OFFSET(MCI_OVLY_OPEN_PARMSA, lpstrElementName, 20)
1600 TEST_FIELD_SIZE (MCI_OVLY_OPEN_PARMSA, lpstrAlias, 8)
1601 TEST_FIELD_ALIGN (MCI_OVLY_OPEN_PARMSA, lpstrAlias, 1)
1609}
1610
1611static void test_pack_MCI_OVLY_OPEN_PARMSW(void)
1612{
1613 /* MCI_OVLY_OPEN_PARMSW (pack 1) */
1616 TEST_FIELD_SIZE (MCI_OVLY_OPEN_PARMSW, dwCallback, 8)
1617 TEST_FIELD_ALIGN (MCI_OVLY_OPEN_PARMSW, dwCallback, 1)
1622 TEST_FIELD_SIZE (MCI_OVLY_OPEN_PARMSW, lpstrDeviceType, 8)
1623 TEST_FIELD_ALIGN (MCI_OVLY_OPEN_PARMSW, lpstrDeviceType, 1)
1624 TEST_FIELD_OFFSET(MCI_OVLY_OPEN_PARMSW, lpstrDeviceType, 12)
1625 TEST_FIELD_SIZE (MCI_OVLY_OPEN_PARMSW, lpstrElementName, 8)
1626 TEST_FIELD_ALIGN (MCI_OVLY_OPEN_PARMSW, lpstrElementName, 1)
1627 TEST_FIELD_OFFSET(MCI_OVLY_OPEN_PARMSW, lpstrElementName, 20)
1628 TEST_FIELD_SIZE (MCI_OVLY_OPEN_PARMSW, lpstrAlias, 8)
1629 TEST_FIELD_ALIGN (MCI_OVLY_OPEN_PARMSW, lpstrAlias, 1)
1637}
1638
1639static void test_pack_MCI_OVLY_WINDOW_PARMSA(void)
1640{
1641 /* MCI_OVLY_WINDOW_PARMSA (pack 1) */
1656}
1657
1658static void test_pack_MCI_OVLY_WINDOW_PARMSW(void)
1659{
1660 /* MCI_OVLY_WINDOW_PARMSW (pack 1) */
1675}
1676
1677static void test_pack_MCI_OVLY_SAVE_PARMSA(void)
1678{
1679 /* MCI_OVLY_SAVE_PARMSA (pack 1) */
1682 TEST_FIELD_SIZE (MCI_OVLY_SAVE_PARMSA, dwCallback, 8)
1683 TEST_FIELD_ALIGN (MCI_OVLY_SAVE_PARMSA, dwCallback, 1)
1685 TEST_FIELD_SIZE (MCI_OVLY_SAVE_PARMSA, lpfilename, 8)
1686 TEST_FIELD_ALIGN (MCI_OVLY_SAVE_PARMSA, lpfilename, 1)
1691}
1692
1693static void test_pack_MCI_OVLY_SAVE_PARMSW(void)
1694{
1695 /* MCI_OVLY_SAVE_PARMSW (pack 1) */
1698 TEST_FIELD_SIZE (MCI_OVLY_SAVE_PARMSW, dwCallback, 8)
1699 TEST_FIELD_ALIGN (MCI_OVLY_SAVE_PARMSW, dwCallback, 1)
1701 TEST_FIELD_SIZE (MCI_OVLY_SAVE_PARMSW, lpfilename, 8)
1702 TEST_FIELD_ALIGN (MCI_OVLY_SAVE_PARMSW, lpfilename, 1)
1707}
1708
1709static void test_pack_MCI_OVLY_LOAD_PARMSA(void)
1710{
1711 /* MCI_OVLY_LOAD_PARMSA (pack 1) */
1714 TEST_FIELD_SIZE (MCI_OVLY_LOAD_PARMSA, dwCallback, 8)
1715 TEST_FIELD_ALIGN (MCI_OVLY_LOAD_PARMSA, dwCallback, 1)
1717 TEST_FIELD_SIZE (MCI_OVLY_LOAD_PARMSA, lpfilename, 8)
1718 TEST_FIELD_ALIGN (MCI_OVLY_LOAD_PARMSA, lpfilename, 1)
1723}
1724
1725static void test_pack_MCI_OVLY_LOAD_PARMSW(void)
1726{
1727 /* MCI_OVLY_LOAD_PARMSW (pack 1) */
1730 TEST_FIELD_SIZE (MCI_OVLY_LOAD_PARMSW, dwCallback, 8)
1731 TEST_FIELD_ALIGN (MCI_OVLY_LOAD_PARMSW, dwCallback, 1)
1733 TEST_FIELD_SIZE (MCI_OVLY_LOAD_PARMSW, lpfilename, 8)
1734 TEST_FIELD_ALIGN (MCI_OVLY_LOAD_PARMSW, lpfilename, 1)
1739}
1740
1741static void test_pack_MCI_DGV_RECT_PARMS(void)
1742{
1743 /* MCI_DGV_RECT_PARMS (pack 1) */
1746 TEST_FIELD_SIZE (MCI_DGV_RECT_PARMS, dwCallback, 8)
1747 TEST_FIELD_ALIGN (MCI_DGV_RECT_PARMS, dwCallback, 1)
1752}
1753
1754static void test_pack_MCI_DGV_CAPTURE_PARMSA(void)
1755{
1756 /* MCI_DGV_CAPTURE_PARMSA (pack 1) */
1762 TEST_FIELD_SIZE (MCI_DGV_CAPTURE_PARMSA, lpstrFileName, 8)
1763 TEST_FIELD_ALIGN (MCI_DGV_CAPTURE_PARMSA, lpstrFileName, 1)
1764 TEST_FIELD_OFFSET(MCI_DGV_CAPTURE_PARMSA, lpstrFileName, 8)
1768}
1769
1770static void test_pack_MCI_DGV_CAPTURE_PARMSW(void)
1771{
1772 /* MCI_DGV_CAPTURE_PARMSW (pack 1) */
1778 TEST_FIELD_SIZE (MCI_DGV_CAPTURE_PARMSW, lpstrFileName, 8)
1779 TEST_FIELD_ALIGN (MCI_DGV_CAPTURE_PARMSW, lpstrFileName, 1)
1780 TEST_FIELD_OFFSET(MCI_DGV_CAPTURE_PARMSW, lpstrFileName, 8)
1784}
1785
1786static void test_pack_MCI_DGV_COPY_PARMS(void)
1787{
1788 /* MCI_DGV_COPY_PARMS (pack 1) */
1791 TEST_FIELD_SIZE (MCI_DGV_COPY_PARMS, dwCallback, 8)
1792 TEST_FIELD_ALIGN (MCI_DGV_COPY_PARMS, dwCallback, 1)
1803 TEST_FIELD_SIZE (MCI_DGV_COPY_PARMS, dwAudioStream, 4)
1804 TEST_FIELD_ALIGN (MCI_DGV_COPY_PARMS, dwAudioStream, 1)
1805 TEST_FIELD_OFFSET(MCI_DGV_COPY_PARMS, dwAudioStream, 32)
1806 TEST_FIELD_SIZE (MCI_DGV_COPY_PARMS, dwVideoStream, 4)
1807 TEST_FIELD_ALIGN (MCI_DGV_COPY_PARMS, dwVideoStream, 1)
1808 TEST_FIELD_OFFSET(MCI_DGV_COPY_PARMS, dwVideoStream, 36)
1809}
1810
1811static void test_pack_MCI_DGV_CUE_PARMS(void)
1812{
1813 /* MCI_DGV_CUE_PARMS (pack 1) */
1816 TEST_FIELD_SIZE (MCI_DGV_CUE_PARMS, dwCallback, 8)
1817 TEST_FIELD_ALIGN (MCI_DGV_CUE_PARMS, dwCallback, 1)
1818 TEST_FIELD_OFFSET(MCI_DGV_CUE_PARMS, dwCallback, 0)
1822}
1823
1824static void test_pack_MCI_DGV_CUT_PARMS(void)
1825{
1826 /* MCI_DGV_CUT_PARMS (pack 1) */
1829 TEST_FIELD_SIZE (MCI_DGV_CUT_PARMS, dwCallback, 8)
1830 TEST_FIELD_ALIGN (MCI_DGV_CUT_PARMS, dwCallback, 1)
1831 TEST_FIELD_OFFSET(MCI_DGV_CUT_PARMS, dwCallback, 0)
1841 TEST_FIELD_SIZE (MCI_DGV_CUT_PARMS, dwAudioStream, 4)
1842 TEST_FIELD_ALIGN (MCI_DGV_CUT_PARMS, dwAudioStream, 1)
1843 TEST_FIELD_OFFSET(MCI_DGV_CUT_PARMS, dwAudioStream, 32)
1844 TEST_FIELD_SIZE (MCI_DGV_CUT_PARMS, dwVideoStream, 4)
1845 TEST_FIELD_ALIGN (MCI_DGV_CUT_PARMS, dwVideoStream, 1)
1846 TEST_FIELD_OFFSET(MCI_DGV_CUT_PARMS, dwVideoStream, 36)
1847}
1848
1849static void test_pack_MCI_DGV_DELETE_PARMS(void)
1850{
1851 /* MCI_DGV_DELETE_PARMS (pack 1) */
1854 TEST_FIELD_SIZE (MCI_DGV_DELETE_PARMS, dwCallback, 8)
1855 TEST_FIELD_ALIGN (MCI_DGV_DELETE_PARMS, dwCallback, 1)
1866 TEST_FIELD_SIZE (MCI_DGV_DELETE_PARMS, dwAudioStream, 4)
1867 TEST_FIELD_ALIGN (MCI_DGV_DELETE_PARMS, dwAudioStream, 1)
1868 TEST_FIELD_OFFSET(MCI_DGV_DELETE_PARMS, dwAudioStream, 32)
1869 TEST_FIELD_SIZE (MCI_DGV_DELETE_PARMS, dwVideoStream, 4)
1870 TEST_FIELD_ALIGN (MCI_DGV_DELETE_PARMS, dwVideoStream, 1)
1871 TEST_FIELD_OFFSET(MCI_DGV_DELETE_PARMS, dwVideoStream, 36)
1872}
1873
1874static void test_pack_MCI_DGV_INFO_PARMSA(void)
1875{
1876 /* MCI_DGV_INFO_PARMSA (pack 1) */
1879 TEST_FIELD_SIZE (MCI_DGV_INFO_PARMSA, dwCallback, 8)
1880 TEST_FIELD_ALIGN (MCI_DGV_INFO_PARMSA, dwCallback, 1)
1882 TEST_FIELD_SIZE (MCI_DGV_INFO_PARMSA, lpstrReturn, 8)
1883 TEST_FIELD_ALIGN (MCI_DGV_INFO_PARMSA, lpstrReturn, 1)
1884 TEST_FIELD_OFFSET(MCI_DGV_INFO_PARMSA, lpstrReturn, 8)
1885 TEST_FIELD_SIZE (MCI_DGV_INFO_PARMSA, dwRetSize, 4)
1891}
1892
1893static void test_pack_MCI_DGV_INFO_PARMSW(void)
1894{
1895 /* MCI_DGV_INFO_PARMSW (pack 1) */
1898 TEST_FIELD_SIZE (MCI_DGV_INFO_PARMSW, dwCallback, 8)
1899 TEST_FIELD_ALIGN (MCI_DGV_INFO_PARMSW, dwCallback, 1)
1901 TEST_FIELD_SIZE (MCI_DGV_INFO_PARMSW, lpstrReturn, 8)
1902 TEST_FIELD_ALIGN (MCI_DGV_INFO_PARMSW, lpstrReturn, 1)
1903 TEST_FIELD_OFFSET(MCI_DGV_INFO_PARMSW, lpstrReturn, 8)
1904 TEST_FIELD_SIZE (MCI_DGV_INFO_PARMSW, dwRetSize, 4)
1910}
1911
1912static void test_pack_MCI_DGV_LIST_PARMSA(void)
1913{
1914 /* MCI_DGV_LIST_PARMSA (pack 1) */
1917 TEST_FIELD_SIZE (MCI_DGV_LIST_PARMSA, dwCallback, 8)
1918 TEST_FIELD_ALIGN (MCI_DGV_LIST_PARMSA, dwCallback, 1)
1920 TEST_FIELD_SIZE (MCI_DGV_LIST_PARMSA, lpstrReturn, 8)
1921 TEST_FIELD_ALIGN (MCI_DGV_LIST_PARMSA, lpstrReturn, 1)
1922 TEST_FIELD_OFFSET(MCI_DGV_LIST_PARMSA, lpstrReturn, 8)
1932 TEST_FIELD_SIZE (MCI_DGV_LIST_PARMSA, lpstrAlgorithm, 8)
1933 TEST_FIELD_ALIGN (MCI_DGV_LIST_PARMSA, lpstrAlgorithm, 1)
1934 TEST_FIELD_OFFSET(MCI_DGV_LIST_PARMSA, lpstrAlgorithm, 28)
1935}
1936
1937static void test_pack_MCI_DGV_LIST_PARMSW(void)
1938{
1939 /* MCI_DGV_LIST_PARMSW (pack 1) */
1942 TEST_FIELD_SIZE (MCI_DGV_LIST_PARMSW, dwCallback, 8)
1943 TEST_FIELD_ALIGN (MCI_DGV_LIST_PARMSW, dwCallback, 1)
1945 TEST_FIELD_SIZE (MCI_DGV_LIST_PARMSW, lpstrReturn, 8)
1946 TEST_FIELD_ALIGN (MCI_DGV_LIST_PARMSW, lpstrReturn, 1)
1947 TEST_FIELD_OFFSET(MCI_DGV_LIST_PARMSW, lpstrReturn, 8)
1957 TEST_FIELD_SIZE (MCI_DGV_LIST_PARMSW, lpstrAlgorithm, 8)
1958 TEST_FIELD_ALIGN (MCI_DGV_LIST_PARMSW, lpstrAlgorithm, 1)
1959 TEST_FIELD_OFFSET(MCI_DGV_LIST_PARMSW, lpstrAlgorithm, 28)
1960}
1961
1962static void test_pack_MCI_DGV_MONITOR_PARMS(void)
1963{
1964 /* MCI_DGV_MONITOR_PARMS (pack 1) */
1967 TEST_FIELD_SIZE (MCI_DGV_MONITOR_PARMS, dwCallback, 8)
1976}
1977
1978static void test_pack_MCI_DGV_OPEN_PARMSA(void)
1979{
1980 /* MCI_DGV_OPEN_PARMSA (pack 1) */
1983 TEST_FIELD_SIZE (MCI_DGV_OPEN_PARMSA, dwCallback, 8)
1984 TEST_FIELD_ALIGN (MCI_DGV_OPEN_PARMSA, dwCallback, 1)
1986 TEST_FIELD_SIZE (MCI_DGV_OPEN_PARMSA, wDeviceID, 4)
1989 TEST_FIELD_SIZE (MCI_DGV_OPEN_PARMSA, lpstrDeviceType, 8)
1990 TEST_FIELD_ALIGN (MCI_DGV_OPEN_PARMSA, lpstrDeviceType, 1)
1991 TEST_FIELD_OFFSET(MCI_DGV_OPEN_PARMSA, lpstrDeviceType, 12)
1992 TEST_FIELD_SIZE (MCI_DGV_OPEN_PARMSA, lpstrElementName, 8)
1993 TEST_FIELD_ALIGN (MCI_DGV_OPEN_PARMSA, lpstrElementName, 1)
1994 TEST_FIELD_OFFSET(MCI_DGV_OPEN_PARMSA, lpstrElementName, 20)
1995 TEST_FIELD_SIZE (MCI_DGV_OPEN_PARMSA, lpstrAlias, 8)
1996 TEST_FIELD_ALIGN (MCI_DGV_OPEN_PARMSA, lpstrAlias, 1)
1997 TEST_FIELD_OFFSET(MCI_DGV_OPEN_PARMSA, lpstrAlias, 28)
2004}
2005
2006static void test_pack_MCI_DGV_OPEN_PARMSW(void)
2007{
2008 /* MCI_DGV_OPEN_PARMSW (pack 1) */
2011 TEST_FIELD_SIZE (MCI_DGV_OPEN_PARMSW, dwCallback, 8)
2012 TEST_FIELD_ALIGN (MCI_DGV_OPEN_PARMSW, dwCallback, 1)
2014 TEST_FIELD_SIZE (MCI_DGV_OPEN_PARMSW, wDeviceID, 4)
2017 TEST_FIELD_SIZE (MCI_DGV_OPEN_PARMSW, lpstrDeviceType, 8)
2018 TEST_FIELD_ALIGN (MCI_DGV_OPEN_PARMSW, lpstrDeviceType, 1)
2019 TEST_FIELD_OFFSET(MCI_DGV_OPEN_PARMSW, lpstrDeviceType, 12)
2020 TEST_FIELD_SIZE (MCI_DGV_OPEN_PARMSW, lpstrElementName, 8)
2021 TEST_FIELD_ALIGN (MCI_DGV_OPEN_PARMSW, lpstrElementName, 1)
2022 TEST_FIELD_OFFSET(MCI_DGV_OPEN_PARMSW, lpstrElementName, 20)
2023 TEST_FIELD_SIZE (MCI_DGV_OPEN_PARMSW, lpstrAlias, 8)
2024 TEST_FIELD_ALIGN (MCI_DGV_OPEN_PARMSW, lpstrAlias, 1)
2025 TEST_FIELD_OFFSET(MCI_DGV_OPEN_PARMSW, lpstrAlias, 28)
2032}
2033
2034static void test_pack_MCI_DGV_PASTE_PARMS(void)
2035{
2036 /* MCI_DGV_PASTE_PARMS (pack 1) */
2039 TEST_FIELD_SIZE (MCI_DGV_PASTE_PARMS, dwCallback, 8)
2040 TEST_FIELD_ALIGN (MCI_DGV_PASTE_PARMS, dwCallback, 1)
2048 TEST_FIELD_SIZE (MCI_DGV_PASTE_PARMS, dwAudioStream, 4)
2049 TEST_FIELD_ALIGN (MCI_DGV_PASTE_PARMS, dwAudioStream, 1)
2050 TEST_FIELD_OFFSET(MCI_DGV_PASTE_PARMS, dwAudioStream, 28)
2051 TEST_FIELD_SIZE (MCI_DGV_PASTE_PARMS, dwVideoStream, 4)
2052 TEST_FIELD_ALIGN (MCI_DGV_PASTE_PARMS, dwVideoStream, 1)
2053 TEST_FIELD_OFFSET(MCI_DGV_PASTE_PARMS, dwVideoStream, 32)
2054}
2055
2056static void test_pack_MCI_DGV_QUALITY_PARMSA(void)
2057{
2058 /* MCI_DGV_QUALITY_PARMSA (pack 1) */
2070 TEST_FIELD_SIZE (MCI_DGV_QUALITY_PARMSA, lpstrAlgorithm, 4)
2071 TEST_FIELD_ALIGN (MCI_DGV_QUALITY_PARMSA, lpstrAlgorithm, 1)
2072 TEST_FIELD_OFFSET(MCI_DGV_QUALITY_PARMSA, lpstrAlgorithm, 20)
2076}
2077
2078static void test_pack_MCI_DGV_QUALITY_PARMSW(void)
2079{
2080 /* MCI_DGV_QUALITY_PARMSW (pack 1) */
2092 TEST_FIELD_SIZE (MCI_DGV_QUALITY_PARMSW, lpstrAlgorithm, 4)
2093 TEST_FIELD_ALIGN (MCI_DGV_QUALITY_PARMSW, lpstrAlgorithm, 1)
2094 TEST_FIELD_OFFSET(MCI_DGV_QUALITY_PARMSW, lpstrAlgorithm, 20)
2098}
2099
2100static void test_pack_MCI_DGV_RECORD_PARMS(void)
2101{
2102 /* MCI_DGV_RECORD_PARMS (pack 1) */
2105 TEST_FIELD_SIZE (MCI_DGV_RECORD_PARMS, dwCallback, 8)
2106 TEST_FIELD_ALIGN (MCI_DGV_RECORD_PARMS, dwCallback, 1)
2117 TEST_FIELD_SIZE (MCI_DGV_RECORD_PARMS, dwAudioStream, 4)
2118 TEST_FIELD_ALIGN (MCI_DGV_RECORD_PARMS, dwAudioStream, 1)
2119 TEST_FIELD_OFFSET(MCI_DGV_RECORD_PARMS, dwAudioStream, 32)
2120 TEST_FIELD_SIZE (MCI_DGV_RECORD_PARMS, dwVideoStream, 4)
2121 TEST_FIELD_ALIGN (MCI_DGV_RECORD_PARMS, dwVideoStream, 1)
2122 TEST_FIELD_OFFSET(MCI_DGV_RECORD_PARMS, dwVideoStream, 36)
2123}
2124
2125static void test_pack_MCI_DGV_RESERVE_PARMSA(void)
2126{
2127 /* MCI_DGV_RESERVE_PARMSA (pack 1) */
2139}
2140
2141static void test_pack_MCI_DGV_RESERVE_PARMSW(void)
2142{
2143 /* MCI_DGV_RESERVE_PARMSW (pack 1) */
2155}
2156
2157static void test_pack_MCI_DGV_RESTORE_PARMSA(void)
2158{
2159 /* MCI_DGV_RESTORE_PARMSA (pack 1) */
2165 TEST_FIELD_SIZE (MCI_DGV_RESTORE_PARMSA, lpstrFileName, 8)
2166 TEST_FIELD_ALIGN (MCI_DGV_RESTORE_PARMSA, lpstrFileName, 1)
2167 TEST_FIELD_OFFSET(MCI_DGV_RESTORE_PARMSA, lpstrFileName, 8)
2171}
2172
2173static void test_pack_MCI_DGV_RESTORE_PARMSW(void)
2174{
2175 /* MCI_DGV_RESTORE_PARMSW (pack 1) */
2181 TEST_FIELD_SIZE (MCI_DGV_RESTORE_PARMSW, lpstrFileName, 8)
2182 TEST_FIELD_ALIGN (MCI_DGV_RESTORE_PARMSW, lpstrFileName, 1)
2183 TEST_FIELD_OFFSET(MCI_DGV_RESTORE_PARMSW, lpstrFileName, 8)
2187}
2188
2189static void test_pack_MCI_DGV_SAVE_PARMSA(void)
2190{
2191 /* MCI_DGV_SAVE_PARMSA (pack 1) */
2194 TEST_FIELD_SIZE (MCI_DGV_SAVE_PARMSA, dwCallback, 8)
2195 TEST_FIELD_ALIGN (MCI_DGV_SAVE_PARMSA, dwCallback, 1)
2197 TEST_FIELD_SIZE (MCI_DGV_SAVE_PARMSA, lpstrFileName, 8)
2198 TEST_FIELD_ALIGN (MCI_DGV_SAVE_PARMSA, lpstrFileName, 1)
2199 TEST_FIELD_OFFSET(MCI_DGV_SAVE_PARMSA, lpstrFileName, 8)
2203}
2204
2205static void test_pack_MCI_DGV_SAVE_PARMSW(void)
2206{
2207 /* MCI_DGV_SAVE_PARMSW (pack 1) */
2210 TEST_FIELD_SIZE (MCI_DGV_SAVE_PARMSW, dwCallback, 8)
2211 TEST_FIELD_ALIGN (MCI_DGV_SAVE_PARMSW, dwCallback, 1)
2213 TEST_FIELD_SIZE (MCI_DGV_SAVE_PARMSW, lpstrFileName, 8)
2214 TEST_FIELD_ALIGN (MCI_DGV_SAVE_PARMSW, lpstrFileName, 1)
2215 TEST_FIELD_OFFSET(MCI_DGV_SAVE_PARMSW, lpstrFileName, 8)
2219}
2220
2221static void test_pack_MCI_DGV_SET_PARMS(void)
2222{
2223 /* MCI_DGV_SET_PARMS (pack 1) */
2226 TEST_FIELD_SIZE (MCI_DGV_SET_PARMS, dwCallback, 8)
2227 TEST_FIELD_ALIGN (MCI_DGV_SET_PARMS, dwCallback, 1)
2228 TEST_FIELD_OFFSET(MCI_DGV_SET_PARMS, dwCallback, 0)
2229 TEST_FIELD_SIZE (MCI_DGV_SET_PARMS, dwTimeFormat, 4)
2230 TEST_FIELD_ALIGN (MCI_DGV_SET_PARMS, dwTimeFormat, 1)
2231 TEST_FIELD_OFFSET(MCI_DGV_SET_PARMS, dwTimeFormat, 8)
2235 TEST_FIELD_SIZE (MCI_DGV_SET_PARMS, dwFileFormat, 4)
2236 TEST_FIELD_ALIGN (MCI_DGV_SET_PARMS, dwFileFormat, 1)
2237 TEST_FIELD_OFFSET(MCI_DGV_SET_PARMS, dwFileFormat, 16)
2241}
2242
2243static void test_pack_MCI_DGV_SETAUDIO_PARMSA(void)
2244{
2245 /* MCI_DGV_SETAUDIO_PARMSA (pack 1) */
2260 TEST_FIELD_SIZE (MCI_DGV_SETAUDIO_PARMSA, lpstrAlgorithm, 8)
2261 TEST_FIELD_ALIGN (MCI_DGV_SETAUDIO_PARMSA, lpstrAlgorithm, 1)
2262 TEST_FIELD_OFFSET(MCI_DGV_SETAUDIO_PARMSA, lpstrAlgorithm, 20)
2263 TEST_FIELD_SIZE (MCI_DGV_SETAUDIO_PARMSA, lpstrQuality, 8)
2264 TEST_FIELD_ALIGN (MCI_DGV_SETAUDIO_PARMSA, lpstrQuality, 1)
2266}
2267
2268static void test_pack_MCI_DGV_SETAUDIO_PARMSW(void)
2269{
2270 /* MCI_DGV_SETAUDIO_PARMSW (pack 1) */
2285 TEST_FIELD_SIZE (MCI_DGV_SETAUDIO_PARMSW, lpstrAlgorithm, 8)
2286 TEST_FIELD_ALIGN (MCI_DGV_SETAUDIO_PARMSW, lpstrAlgorithm, 1)
2287 TEST_FIELD_OFFSET(MCI_DGV_SETAUDIO_PARMSW, lpstrAlgorithm, 20)
2288 TEST_FIELD_SIZE (MCI_DGV_SETAUDIO_PARMSW, lpstrQuality, 8)
2289 TEST_FIELD_ALIGN (MCI_DGV_SETAUDIO_PARMSW, lpstrQuality, 1)
2291}
2292
2293static void test_pack_MCI_DGV_SIGNAL_PARMS(void)
2294{
2295 /* MCI_DGV_SIGNAL_PARMS (pack 1) */
2298 TEST_FIELD_SIZE (MCI_DGV_SIGNAL_PARMS, dwCallback, 8)
2299 TEST_FIELD_ALIGN (MCI_DGV_SIGNAL_PARMS, dwCallback, 1)
2301 TEST_FIELD_SIZE (MCI_DGV_SIGNAL_PARMS, dwPosition, 4)
2302 TEST_FIELD_ALIGN (MCI_DGV_SIGNAL_PARMS, dwPosition, 1)
2307 TEST_FIELD_SIZE (MCI_DGV_SIGNAL_PARMS, dwUserParm, 4)
2308 TEST_FIELD_ALIGN (MCI_DGV_SIGNAL_PARMS, dwUserParm, 1)
2310}
2311
2312static void test_pack_MCI_DGV_SETVIDEO_PARMSA(void)
2313{
2314 /* MCI_DGV_SETVIDEO_PARMSA (pack 1) */
2329 TEST_FIELD_SIZE (MCI_DGV_SETVIDEO_PARMSA, lpstrAlgorithm, 8)
2330 TEST_FIELD_ALIGN (MCI_DGV_SETVIDEO_PARMSA, lpstrAlgorithm, 1)
2331 TEST_FIELD_OFFSET(MCI_DGV_SETVIDEO_PARMSA, lpstrAlgorithm, 20)
2332 TEST_FIELD_SIZE (MCI_DGV_SETVIDEO_PARMSA, lpstrQuality, 8)
2333 TEST_FIELD_ALIGN (MCI_DGV_SETVIDEO_PARMSA, lpstrQuality, 1)
2335 TEST_FIELD_SIZE (MCI_DGV_SETVIDEO_PARMSA, dwSourceNumber, 4)
2336 TEST_FIELD_ALIGN (MCI_DGV_SETVIDEO_PARMSA, dwSourceNumber, 1)
2337 TEST_FIELD_OFFSET(MCI_DGV_SETVIDEO_PARMSA, dwSourceNumber, 36)
2338}
2339
2340static void test_pack_MCI_DGV_SETVIDEO_PARMSW(void)
2341{
2342 /* MCI_DGV_SETVIDEO_PARMSW (pack 1) */
2357 TEST_FIELD_SIZE (MCI_DGV_SETVIDEO_PARMSW, lpstrAlgorithm, 8)
2358 TEST_FIELD_ALIGN (MCI_DGV_SETVIDEO_PARMSW, lpstrAlgorithm, 1)
2359 TEST_FIELD_OFFSET(MCI_DGV_SETVIDEO_PARMSW, lpstrAlgorithm, 20)
2360 TEST_FIELD_SIZE (MCI_DGV_SETVIDEO_PARMSW, lpstrQuality, 8)
2361 TEST_FIELD_ALIGN (MCI_DGV_SETVIDEO_PARMSW, lpstrQuality, 1)
2363 TEST_FIELD_SIZE (MCI_DGV_SETVIDEO_PARMSW, dwSourceNumber, 4)
2364 TEST_FIELD_ALIGN (MCI_DGV_SETVIDEO_PARMSW, dwSourceNumber, 1)
2365 TEST_FIELD_OFFSET(MCI_DGV_SETVIDEO_PARMSW, dwSourceNumber, 36)
2366}
2367
2368static void test_pack_MCI_DGV_STATUS_PARMSA(void)
2369{
2370 /* MCI_DGV_STATUS_PARMSA (pack 1) */
2373 TEST_FIELD_SIZE (MCI_DGV_STATUS_PARMSA, dwCallback, 8)
2385 TEST_FIELD_SIZE (MCI_DGV_STATUS_PARMSA, lpstrDrive, 8)
2388 TEST_FIELD_SIZE (MCI_DGV_STATUS_PARMSA, dwReference, 4)
2389 TEST_FIELD_ALIGN (MCI_DGV_STATUS_PARMSA, dwReference, 1)
2391}
2392
2393static void test_pack_MCI_DGV_STATUS_PARMSW(void)
2394{
2395 /* MCI_DGV_STATUS_PARMSW (pack 1) */
2398 TEST_FIELD_SIZE (MCI_DGV_STATUS_PARMSW, dwCallback, 8)
2410 TEST_FIELD_SIZE (MCI_DGV_STATUS_PARMSW, lpstrDrive, 8)
2413 TEST_FIELD_SIZE (MCI_DGV_STATUS_PARMSW, dwReference, 4)
2414 TEST_FIELD_ALIGN (MCI_DGV_STATUS_PARMSW, dwReference, 1)
2416}
2417
2418static void test_pack_MCI_DGV_STEP_PARMS(void)
2419{
2420 /* MCI_DGV_STEP_PARMS (pack 1) */
2423 TEST_FIELD_SIZE (MCI_DGV_STEP_PARMS, dwCallback, 8)
2424 TEST_FIELD_ALIGN (MCI_DGV_STEP_PARMS, dwCallback, 1)
2426 TEST_FIELD_SIZE (MCI_DGV_STEP_PARMS, dwFrames, 4)
2429}
2430
2431static void test_pack_MCI_DGV_UPDATE_PARMS(void)
2432{
2433 /* MCI_DGV_UPDATE_PARMS (pack 1) */
2436 TEST_FIELD_SIZE (MCI_DGV_UPDATE_PARMS, dwCallback, 8)
2437 TEST_FIELD_ALIGN (MCI_DGV_UPDATE_PARMS, dwCallback, 1)
2445}
2446
2447static void test_pack_MCI_DGV_WINDOW_PARMSA(void)
2448{
2449 /* MCI_DGV_WINDOW_PARMSA (pack 1) */
2452 TEST_FIELD_SIZE (MCI_DGV_WINDOW_PARMSA, dwCallback, 8)
2464}
2465
2466static void test_pack_MCI_DGV_WINDOW_PARMSW(void)
2467{
2468 /* MCI_DGV_WINDOW_PARMSW (pack 1) */
2471 TEST_FIELD_SIZE (MCI_DGV_WINDOW_PARMSW, dwCallback, 8)
2483}
2484
2485#else /* _WIN64 */
2486
2487static void test_pack_MMTIME(void)
2488{
2489 /* MMTIME (pack 1) */
2490 TEST_FIELD_SIZE (MMTIME, wType, 4)
2491 TEST_FIELD_ALIGN (MMTIME, wType, 1)
2492 TEST_FIELD_OFFSET(MMTIME, wType, 0)
2493}
2494
2496{
2497 /* DRVCONFIGINFO (pack 1) */
2500 TEST_FIELD_SIZE (DRVCONFIGINFO, dwDCISize, 4)
2501 TEST_FIELD_ALIGN (DRVCONFIGINFO, dwDCISize, 1)
2502 TEST_FIELD_OFFSET(DRVCONFIGINFO, dwDCISize, 0)
2503 TEST_FIELD_SIZE (DRVCONFIGINFO, lpszDCISectionName, 4)
2504 TEST_FIELD_ALIGN (DRVCONFIGINFO, lpszDCISectionName, 1)
2505 TEST_FIELD_OFFSET(DRVCONFIGINFO, lpszDCISectionName, 4)
2506 TEST_FIELD_SIZE (DRVCONFIGINFO, lpszDCIAliasName, 4)
2507 TEST_FIELD_ALIGN (DRVCONFIGINFO, lpszDCIAliasName, 1)
2508 TEST_FIELD_OFFSET(DRVCONFIGINFO, lpszDCIAliasName, 8)
2509}
2510
2511static void test_pack_WAVEHDR(void)
2512{
2513 /* WAVEHDR (pack 1) */
2516 TEST_FIELD_SIZE (WAVEHDR, lpData, 4)
2517 TEST_FIELD_ALIGN (WAVEHDR, lpData, 1)
2518 TEST_FIELD_OFFSET(WAVEHDR, lpData, 0)
2519 TEST_FIELD_SIZE (WAVEHDR, dwBufferLength, 4)
2520 TEST_FIELD_ALIGN (WAVEHDR, dwBufferLength, 1)
2521 TEST_FIELD_OFFSET(WAVEHDR, dwBufferLength, 4)
2522 TEST_FIELD_SIZE (WAVEHDR, dwBytesRecorded, 4)
2523 TEST_FIELD_ALIGN (WAVEHDR, dwBytesRecorded, 1)
2524 TEST_FIELD_OFFSET(WAVEHDR, dwBytesRecorded, 8)
2525 TEST_FIELD_SIZE (WAVEHDR, dwUser, 4)
2526 TEST_FIELD_ALIGN (WAVEHDR, dwUser, 1)
2527 TEST_FIELD_OFFSET(WAVEHDR, dwUser, 12)
2531 TEST_FIELD_SIZE (WAVEHDR, dwLoops, 4)
2532 TEST_FIELD_ALIGN (WAVEHDR, dwLoops, 1)
2533 TEST_FIELD_OFFSET(WAVEHDR, dwLoops, 20)
2534 TEST_FIELD_SIZE (WAVEHDR, lpNext, 4)
2535 TEST_FIELD_ALIGN (WAVEHDR, lpNext, 1)
2536 TEST_FIELD_OFFSET(WAVEHDR, lpNext, 24)
2540}
2541
2542static void test_pack_WAVEOUTCAPSA(void)
2543{
2544 /* WAVEOUTCAPSA (pack 1) */
2545 TEST_FIELD_SIZE (WAVEOUTCAPSA, wMid, 2)
2548 TEST_FIELD_SIZE (WAVEOUTCAPSA, wPid, 2)
2551 TEST_FIELD_SIZE (WAVEOUTCAPSA, vDriverVersion, 4)
2552 TEST_FIELD_ALIGN (WAVEOUTCAPSA, vDriverVersion, 1)
2553 TEST_FIELD_OFFSET(WAVEOUTCAPSA, vDriverVersion, 4)
2554}
2555
2556static void test_pack_WAVEOUTCAPSW(void)
2557{
2558 /* WAVEOUTCAPSW (pack 1) */
2559 TEST_FIELD_SIZE (WAVEOUTCAPSW, wMid, 2)
2562 TEST_FIELD_SIZE (WAVEOUTCAPSW, wPid, 2)
2565 TEST_FIELD_SIZE (WAVEOUTCAPSW, vDriverVersion, 4)
2566 TEST_FIELD_ALIGN (WAVEOUTCAPSW, vDriverVersion, 1)
2567 TEST_FIELD_OFFSET(WAVEOUTCAPSW, vDriverVersion, 4)
2568}
2569
2571{
2572 /* WAVEOUTCAPS2A (pack 1) */
2579 TEST_FIELD_SIZE (WAVEOUTCAPS2A, vDriverVersion, 4)
2580 TEST_FIELD_ALIGN (WAVEOUTCAPS2A, vDriverVersion, 1)
2581 TEST_FIELD_OFFSET(WAVEOUTCAPS2A, vDriverVersion, 4)
2582}
2583
2585{
2586 /* WAVEOUTCAPS2W (pack 1) */
2593 TEST_FIELD_SIZE (WAVEOUTCAPS2W, vDriverVersion, 4)
2594 TEST_FIELD_ALIGN (WAVEOUTCAPS2W, vDriverVersion, 1)
2595 TEST_FIELD_OFFSET(WAVEOUTCAPS2W, vDriverVersion, 4)
2596}
2597
2598static void test_pack_WAVEINCAPSA(void)
2599{
2600 /* WAVEINCAPSA (pack 1) */
2601 TEST_FIELD_SIZE (WAVEINCAPSA, wMid, 2)
2602 TEST_FIELD_ALIGN (WAVEINCAPSA, wMid, 1)
2604 TEST_FIELD_SIZE (WAVEINCAPSA, wPid, 2)
2605 TEST_FIELD_ALIGN (WAVEINCAPSA, wPid, 1)
2607 TEST_FIELD_SIZE (WAVEINCAPSA, vDriverVersion, 4)
2608 TEST_FIELD_ALIGN (WAVEINCAPSA, vDriverVersion, 1)
2609 TEST_FIELD_OFFSET(WAVEINCAPSA, vDriverVersion, 4)
2610}
2611
2612static void test_pack_WAVEINCAPSW(void)
2613{
2614 /* WAVEINCAPSW (pack 1) */
2615 TEST_FIELD_SIZE (WAVEINCAPSW, wMid, 2)
2616 TEST_FIELD_ALIGN (WAVEINCAPSW, wMid, 1)
2618 TEST_FIELD_SIZE (WAVEINCAPSW, wPid, 2)
2619 TEST_FIELD_ALIGN (WAVEINCAPSW, wPid, 1)
2621 TEST_FIELD_SIZE (WAVEINCAPSW, vDriverVersion, 4)
2622 TEST_FIELD_ALIGN (WAVEINCAPSW, vDriverVersion, 1)
2623 TEST_FIELD_OFFSET(WAVEINCAPSW, vDriverVersion, 4)
2624}
2625
2626static void test_pack_WAVEINCAPS2A(void)
2627{
2628 /* WAVEINCAPS2A (pack 1) */
2629 TEST_FIELD_SIZE (WAVEINCAPS2A, wMid, 2)
2632 TEST_FIELD_SIZE (WAVEINCAPS2A, wPid, 2)
2635 TEST_FIELD_SIZE (WAVEINCAPS2A, vDriverVersion, 4)
2636 TEST_FIELD_ALIGN (WAVEINCAPS2A, vDriverVersion, 1)
2637 TEST_FIELD_OFFSET(WAVEINCAPS2A, vDriverVersion, 4)
2638}
2639
2640static void test_pack_WAVEINCAPS2W(void)
2641{
2642 /* WAVEINCAPS2W (pack 1) */
2643 TEST_FIELD_SIZE (WAVEINCAPS2W, wMid, 2)
2646 TEST_FIELD_SIZE (WAVEINCAPS2W, wPid, 2)
2649 TEST_FIELD_SIZE (WAVEINCAPS2W, vDriverVersion, 4)
2650 TEST_FIELD_ALIGN (WAVEINCAPS2W, vDriverVersion, 1)
2651 TEST_FIELD_OFFSET(WAVEINCAPS2W, vDriverVersion, 4)
2652}
2653
2654static void test_pack_WAVEFORMAT(void)
2655{
2656 /* WAVEFORMAT (pack 1) */
2659 TEST_FIELD_SIZE (WAVEFORMAT, wFormatTag, 2)
2660 TEST_FIELD_ALIGN (WAVEFORMAT, wFormatTag, 1)
2661 TEST_FIELD_OFFSET(WAVEFORMAT, wFormatTag, 0)
2665 TEST_FIELD_SIZE (WAVEFORMAT, nSamplesPerSec, 4)
2666 TEST_FIELD_ALIGN (WAVEFORMAT, nSamplesPerSec, 1)
2667 TEST_FIELD_OFFSET(WAVEFORMAT, nSamplesPerSec, 4)
2668 TEST_FIELD_SIZE (WAVEFORMAT, nAvgBytesPerSec, 4)
2669 TEST_FIELD_ALIGN (WAVEFORMAT, nAvgBytesPerSec, 1)
2670 TEST_FIELD_OFFSET(WAVEFORMAT, nAvgBytesPerSec, 8)
2671 TEST_FIELD_SIZE (WAVEFORMAT, nBlockAlign, 2)
2672 TEST_FIELD_ALIGN (WAVEFORMAT, nBlockAlign, 1)
2673 TEST_FIELD_OFFSET(WAVEFORMAT, nBlockAlign, 12)
2674}
2675
2677{
2678 /* PCMWAVEFORMAT (pack 1) */
2684 TEST_FIELD_SIZE (PCMWAVEFORMAT, wBitsPerSample, 2)
2685 TEST_FIELD_ALIGN (PCMWAVEFORMAT, wBitsPerSample, 1)
2686 TEST_FIELD_OFFSET(PCMWAVEFORMAT, wBitsPerSample, 14)
2687}
2688
2689static void test_pack_WAVEFORMATEX(void)
2690{
2691 /* WAVEFORMATEX (pack 1) */
2694 TEST_FIELD_SIZE (WAVEFORMATEX, wFormatTag, 2)
2695 TEST_FIELD_ALIGN (WAVEFORMATEX, wFormatTag, 1)
2696 TEST_FIELD_OFFSET(WAVEFORMATEX, wFormatTag, 0)
2700 TEST_FIELD_SIZE (WAVEFORMATEX, nSamplesPerSec, 4)
2701 TEST_FIELD_ALIGN (WAVEFORMATEX, nSamplesPerSec, 1)
2702 TEST_FIELD_OFFSET(WAVEFORMATEX, nSamplesPerSec, 4)
2703 TEST_FIELD_SIZE (WAVEFORMATEX, nAvgBytesPerSec, 4)
2704 TEST_FIELD_ALIGN (WAVEFORMATEX, nAvgBytesPerSec, 1)
2705 TEST_FIELD_OFFSET(WAVEFORMATEX, nAvgBytesPerSec, 8)
2706 TEST_FIELD_SIZE (WAVEFORMATEX, nBlockAlign, 2)
2707 TEST_FIELD_ALIGN (WAVEFORMATEX, nBlockAlign, 1)
2708 TEST_FIELD_OFFSET(WAVEFORMATEX, nBlockAlign, 12)
2709 TEST_FIELD_SIZE (WAVEFORMATEX, wBitsPerSample, 2)
2710 TEST_FIELD_ALIGN (WAVEFORMATEX, wBitsPerSample, 1)
2711 TEST_FIELD_OFFSET(WAVEFORMATEX, wBitsPerSample, 14)
2712 TEST_FIELD_SIZE (WAVEFORMATEX, cbSize, 2)
2713 TEST_FIELD_ALIGN (WAVEFORMATEX, cbSize, 1)
2714 TEST_FIELD_OFFSET(WAVEFORMATEX, cbSize, 16)
2715}
2716
2717static void test_pack_MIDIOUTCAPSA(void)
2718{
2719 /* MIDIOUTCAPSA (pack 1) */
2720 TEST_FIELD_SIZE (MIDIOUTCAPSA, wMid, 2)
2723 TEST_FIELD_SIZE (MIDIOUTCAPSA, wPid, 2)
2726 TEST_FIELD_SIZE (MIDIOUTCAPSA, vDriverVersion, 4)
2727 TEST_FIELD_ALIGN (MIDIOUTCAPSA, vDriverVersion, 1)
2728 TEST_FIELD_OFFSET(MIDIOUTCAPSA, vDriverVersion, 4)
2729}
2730
2731static void test_pack_MIDIOUTCAPSW(void)
2732{
2733 /* MIDIOUTCAPSW (pack 1) */
2734 TEST_FIELD_SIZE (MIDIOUTCAPSW, wMid, 2)
2737 TEST_FIELD_SIZE (MIDIOUTCAPSW, wPid, 2)
2740 TEST_FIELD_SIZE (MIDIOUTCAPSW, vDriverVersion, 4)
2741 TEST_FIELD_ALIGN (MIDIOUTCAPSW, vDriverVersion, 1)
2742 TEST_FIELD_OFFSET(MIDIOUTCAPSW, vDriverVersion, 4)
2743}
2744
2746{
2747 /* MIDIOUTCAPS2A (pack 1) */
2754 TEST_FIELD_SIZE (MIDIOUTCAPS2A, vDriverVersion, 4)
2755 TEST_FIELD_ALIGN (MIDIOUTCAPS2A, vDriverVersion, 1)
2756 TEST_FIELD_OFFSET(MIDIOUTCAPS2A, vDriverVersion, 4)
2757}
2758
2760{
2761 /* MIDIOUTCAPS2W (pack 1) */
2768 TEST_FIELD_SIZE (MIDIOUTCAPS2W, vDriverVersion, 4)
2769 TEST_FIELD_ALIGN (MIDIOUTCAPS2W, vDriverVersion, 1)
2770 TEST_FIELD_OFFSET(MIDIOUTCAPS2W, vDriverVersion, 4)
2771}
2772
2773static void test_pack_MIDIINCAPSA(void)
2774{
2775 /* MIDIINCAPSA (pack 1) */
2776 TEST_FIELD_SIZE (MIDIINCAPSA, wMid, 2)
2777 TEST_FIELD_ALIGN (MIDIINCAPSA, wMid, 1)
2779 TEST_FIELD_SIZE (MIDIINCAPSA, wPid, 2)
2780 TEST_FIELD_ALIGN (MIDIINCAPSA, wPid, 1)
2782 TEST_FIELD_SIZE (MIDIINCAPSA, vDriverVersion, 4)
2783 TEST_FIELD_ALIGN (MIDIINCAPSA, vDriverVersion, 1)
2784 TEST_FIELD_OFFSET(MIDIINCAPSA, vDriverVersion, 4)
2785}
2786
2787static void test_pack_MIDIINCAPSW(void)
2788{
2789 /* MIDIINCAPSW (pack 1) */
2790 TEST_FIELD_SIZE (MIDIINCAPSW, wMid, 2)
2791 TEST_FIELD_ALIGN (MIDIINCAPSW, wMid, 1)
2793 TEST_FIELD_SIZE (MIDIINCAPSW, wPid, 2)
2794 TEST_FIELD_ALIGN (MIDIINCAPSW, wPid, 1)
2796 TEST_FIELD_SIZE (MIDIINCAPSW, vDriverVersion, 4)
2797 TEST_FIELD_ALIGN (MIDIINCAPSW, vDriverVersion, 1)
2798 TEST_FIELD_OFFSET(MIDIINCAPSW, vDriverVersion, 4)
2799}
2800
2801static void test_pack_MIDIINCAPS2A(void)
2802{
2803 /* MIDIINCAPS2A (pack 1) */
2804 TEST_FIELD_SIZE (MIDIINCAPS2A, wMid, 2)
2807 TEST_FIELD_SIZE (MIDIINCAPS2A, wPid, 2)
2810 TEST_FIELD_SIZE (MIDIINCAPS2A, vDriverVersion, 4)
2811 TEST_FIELD_ALIGN (MIDIINCAPS2A, vDriverVersion, 1)
2812 TEST_FIELD_OFFSET(MIDIINCAPS2A, vDriverVersion, 4)
2813}
2814
2815static void test_pack_MIDIINCAPS2W(void)
2816{
2817 /* MIDIINCAPS2W (pack 1) */
2818 TEST_FIELD_SIZE (MIDIINCAPS2W, wMid, 2)
2821 TEST_FIELD_SIZE (MIDIINCAPS2W, wPid, 2)
2824 TEST_FIELD_SIZE (MIDIINCAPS2W, vDriverVersion, 4)
2825 TEST_FIELD_ALIGN (MIDIINCAPS2W, vDriverVersion, 1)
2826 TEST_FIELD_OFFSET(MIDIINCAPS2W, vDriverVersion, 4)
2827}
2828
2829static void test_pack_MIDIHDR(void)
2830{
2831 /* MIDIHDR (pack 1) */
2834 TEST_FIELD_SIZE (MIDIHDR, lpData, 4)
2835 TEST_FIELD_ALIGN (MIDIHDR, lpData, 1)
2836 TEST_FIELD_OFFSET(MIDIHDR, lpData, 0)
2837 TEST_FIELD_SIZE (MIDIHDR, dwBufferLength, 4)
2838 TEST_FIELD_ALIGN (MIDIHDR, dwBufferLength, 1)
2839 TEST_FIELD_OFFSET(MIDIHDR, dwBufferLength, 4)
2840 TEST_FIELD_SIZE (MIDIHDR, dwBytesRecorded, 4)
2841 TEST_FIELD_ALIGN (MIDIHDR, dwBytesRecorded, 1)
2842 TEST_FIELD_OFFSET(MIDIHDR, dwBytesRecorded, 8)
2843 TEST_FIELD_SIZE (MIDIHDR, dwUser, 4)
2844 TEST_FIELD_ALIGN (MIDIHDR, dwUser, 1)
2845 TEST_FIELD_OFFSET(MIDIHDR, dwUser, 12)
2849 TEST_FIELD_SIZE (MIDIHDR, lpNext, 4)
2850 TEST_FIELD_ALIGN (MIDIHDR, lpNext, 1)
2851 TEST_FIELD_OFFSET(MIDIHDR, lpNext, 20)
2861}
2862
2863static void test_pack_MIDIEVENT(void)
2864{
2865 /* MIDIEVENT (pack 1) */
2868 TEST_FIELD_SIZE (MIDIEVENT, dwDeltaTime, 4)
2869 TEST_FIELD_ALIGN (MIDIEVENT, dwDeltaTime, 1)
2870 TEST_FIELD_OFFSET(MIDIEVENT, dwDeltaTime, 0)
2871 TEST_FIELD_SIZE (MIDIEVENT, dwStreamID, 4)
2872 TEST_FIELD_ALIGN (MIDIEVENT, dwStreamID, 1)
2873 TEST_FIELD_OFFSET(MIDIEVENT, dwStreamID, 4)
2874 TEST_FIELD_SIZE (MIDIEVENT, dwEvent, 4)
2875 TEST_FIELD_ALIGN (MIDIEVENT, dwEvent, 1)
2876 TEST_FIELD_OFFSET(MIDIEVENT, dwEvent, 8)
2877 TEST_FIELD_SIZE (MIDIEVENT, dwParms, 4)
2878 TEST_FIELD_ALIGN (MIDIEVENT, dwParms, 1)
2879 TEST_FIELD_OFFSET(MIDIEVENT, dwParms, 12)
2880}
2881
2882static void test_pack_AUXCAPSA(void)
2883{
2884 /* AUXCAPSA (pack 1) */
2885 TEST_FIELD_SIZE (AUXCAPSA, wMid, 2)
2886 TEST_FIELD_ALIGN (AUXCAPSA, wMid, 1)
2887 TEST_FIELD_OFFSET(AUXCAPSA, wMid, 0)
2888 TEST_FIELD_SIZE (AUXCAPSA, wPid, 2)
2889 TEST_FIELD_ALIGN (AUXCAPSA, wPid, 1)
2890 TEST_FIELD_OFFSET(AUXCAPSA, wPid, 2)
2891 TEST_FIELD_SIZE (AUXCAPSA, vDriverVersion, 4)
2892 TEST_FIELD_ALIGN (AUXCAPSA, vDriverVersion, 1)
2893 TEST_FIELD_OFFSET(AUXCAPSA, vDriverVersion, 4)
2894}
2895
2896static void test_pack_AUXCAPSW(void)
2897{
2898 /* AUXCAPSW (pack 1) */
2899 TEST_FIELD_SIZE (AUXCAPSW, wMid, 2)
2900 TEST_FIELD_ALIGN (AUXCAPSW, wMid, 1)
2901 TEST_FIELD_OFFSET(AUXCAPSW, wMid, 0)
2902 TEST_FIELD_SIZE (AUXCAPSW, wPid, 2)
2903 TEST_FIELD_ALIGN (AUXCAPSW, wPid, 1)
2904 TEST_FIELD_OFFSET(AUXCAPSW, wPid, 2)
2905 TEST_FIELD_SIZE (AUXCAPSW, vDriverVersion, 4)
2906 TEST_FIELD_ALIGN (AUXCAPSW, vDriverVersion, 1)
2907 TEST_FIELD_OFFSET(AUXCAPSW, vDriverVersion, 4)
2908}
2909
2910static void test_pack_AUXCAPS2A(void)
2911{
2912 /* AUXCAPS2A (pack 1) */
2913 TEST_FIELD_SIZE (AUXCAPS2A, wMid, 2)
2914 TEST_FIELD_ALIGN (AUXCAPS2A, wMid, 1)
2916 TEST_FIELD_SIZE (AUXCAPS2A, wPid, 2)
2917 TEST_FIELD_ALIGN (AUXCAPS2A, wPid, 1)
2919 TEST_FIELD_SIZE (AUXCAPS2A, vDriverVersion, 4)
2920 TEST_FIELD_ALIGN (AUXCAPS2A, vDriverVersion, 1)
2921 TEST_FIELD_OFFSET(AUXCAPS2A, vDriverVersion, 4)
2922}
2923
2924static void test_pack_AUXCAPS2W(void)
2925{
2926 /* AUXCAPS2W (pack 1) */
2927 TEST_FIELD_SIZE (AUXCAPS2W, wMid, 2)
2928 TEST_FIELD_ALIGN (AUXCAPS2W, wMid, 1)
2930 TEST_FIELD_SIZE (AUXCAPS2W, wPid, 2)
2931 TEST_FIELD_ALIGN (AUXCAPS2W, wPid, 1)
2933 TEST_FIELD_SIZE (AUXCAPS2W, vDriverVersion, 4)
2934 TEST_FIELD_ALIGN (AUXCAPS2W, vDriverVersion, 1)
2935 TEST_FIELD_OFFSET(AUXCAPS2W, vDriverVersion, 4)
2936}
2937
2938static void test_pack_TIMECAPS(void)
2939{
2940 /* TIMECAPS (pack 1) */
2943 TEST_FIELD_SIZE (TIMECAPS, wPeriodMin, 4)
2944 TEST_FIELD_ALIGN (TIMECAPS, wPeriodMin, 1)
2945 TEST_FIELD_OFFSET(TIMECAPS, wPeriodMin, 0)
2946 TEST_FIELD_SIZE (TIMECAPS, wPeriodMax, 4)
2947 TEST_FIELD_ALIGN (TIMECAPS, wPeriodMax, 1)
2948 TEST_FIELD_OFFSET(TIMECAPS, wPeriodMax, 4)
2949}
2950
2951static void test_pack_JOYCAPSA(void)
2952{
2953 /* JOYCAPSA (pack 1) */
2954 TEST_FIELD_SIZE (JOYCAPSA, wMid, 2)
2955 TEST_FIELD_ALIGN (JOYCAPSA, wMid, 1)
2956 TEST_FIELD_OFFSET(JOYCAPSA, wMid, 0)
2957 TEST_FIELD_SIZE (JOYCAPSA, wPid, 2)
2958 TEST_FIELD_ALIGN (JOYCAPSA, wPid, 1)
2959 TEST_FIELD_OFFSET(JOYCAPSA, wPid, 2)
2960}
2961
2962static void test_pack_JOYCAPSW(void)
2963{
2964 /* JOYCAPSW (pack 1) */
2965 TEST_FIELD_SIZE (JOYCAPSW, wMid, 2)
2966 TEST_FIELD_ALIGN (JOYCAPSW, wMid, 1)
2967 TEST_FIELD_OFFSET(JOYCAPSW, wMid, 0)
2968 TEST_FIELD_SIZE (JOYCAPSW, wPid, 2)
2969 TEST_FIELD_ALIGN (JOYCAPSW, wPid, 1)
2970 TEST_FIELD_OFFSET(JOYCAPSW, wPid, 2)
2971}
2972
2973static void test_pack_JOYCAPS2A(void)
2974{
2975 /* JOYCAPS2A (pack 1) */
2976 TEST_FIELD_SIZE (JOYCAPS2A, wMid, 2)
2977 TEST_FIELD_ALIGN (JOYCAPS2A, wMid, 1)
2979 TEST_FIELD_SIZE (JOYCAPS2A, wPid, 2)
2980 TEST_FIELD_ALIGN (JOYCAPS2A, wPid, 1)
2982}
2983
2984static void test_pack_JOYCAPS2W(void)
2985{
2986 /* JOYCAPS2W (pack 1) */
2987 TEST_FIELD_SIZE (JOYCAPS2W, wMid, 2)
2988 TEST_FIELD_ALIGN (JOYCAPS2W, wMid, 1)
2990 TEST_FIELD_SIZE (JOYCAPS2W, wPid, 2)
2991 TEST_FIELD_ALIGN (JOYCAPS2W, wPid, 1)
2993}
2994
2995static void test_pack_JOYINFO(void)
2996{
2997 /* JOYINFO (pack 1) */
3000 TEST_FIELD_SIZE (JOYINFO, wXpos, 4)
3001 TEST_FIELD_ALIGN (JOYINFO, wXpos, 1)
3002 TEST_FIELD_OFFSET(JOYINFO, wXpos, 0)
3003 TEST_FIELD_SIZE (JOYINFO, wYpos, 4)
3004 TEST_FIELD_ALIGN (JOYINFO, wYpos, 1)
3005 TEST_FIELD_OFFSET(JOYINFO, wYpos, 4)
3006 TEST_FIELD_SIZE (JOYINFO, wZpos, 4)
3007 TEST_FIELD_ALIGN (JOYINFO, wZpos, 1)
3008 TEST_FIELD_OFFSET(JOYINFO, wZpos, 8)
3009 TEST_FIELD_SIZE (JOYINFO, wButtons, 4)
3010 TEST_FIELD_ALIGN (JOYINFO, wButtons, 1)
3011 TEST_FIELD_OFFSET(JOYINFO, wButtons, 12)
3012}
3013
3014static void test_pack_JOYINFOEX(void)
3015{
3016 /* JOYINFOEX (pack 1) */
3025 TEST_FIELD_SIZE (JOYINFOEX, dwXpos, 4)
3026 TEST_FIELD_ALIGN (JOYINFOEX, dwXpos, 1)
3027 TEST_FIELD_OFFSET(JOYINFOEX, dwXpos, 8)
3028 TEST_FIELD_SIZE (JOYINFOEX, dwYpos, 4)
3029 TEST_FIELD_ALIGN (JOYINFOEX, dwYpos, 1)
3030 TEST_FIELD_OFFSET(JOYINFOEX, dwYpos, 12)
3031 TEST_FIELD_SIZE (JOYINFOEX, dwZpos, 4)
3032 TEST_FIELD_ALIGN (JOYINFOEX, dwZpos, 1)
3033 TEST_FIELD_OFFSET(JOYINFOEX, dwZpos, 16)
3034 TEST_FIELD_SIZE (JOYINFOEX, dwRpos, 4)
3035 TEST_FIELD_ALIGN (JOYINFOEX, dwRpos, 1)
3036 TEST_FIELD_OFFSET(JOYINFOEX, dwRpos, 20)
3037 TEST_FIELD_SIZE (JOYINFOEX, dwUpos, 4)
3038 TEST_FIELD_ALIGN (JOYINFOEX, dwUpos, 1)
3039 TEST_FIELD_OFFSET(JOYINFOEX, dwUpos, 24)
3040 TEST_FIELD_SIZE (JOYINFOEX, dwVpos, 4)
3041 TEST_FIELD_ALIGN (JOYINFOEX, dwVpos, 1)
3042 TEST_FIELD_OFFSET(JOYINFOEX, dwVpos, 28)
3043 TEST_FIELD_SIZE (JOYINFOEX, dwButtons, 4)
3044 TEST_FIELD_ALIGN (JOYINFOEX, dwButtons, 1)
3045 TEST_FIELD_OFFSET(JOYINFOEX, dwButtons, 32)
3046 TEST_FIELD_SIZE (JOYINFOEX, dwButtonNumber, 4)
3047 TEST_FIELD_ALIGN (JOYINFOEX, dwButtonNumber, 1)
3048 TEST_FIELD_OFFSET(JOYINFOEX, dwButtonNumber, 36)
3049 TEST_FIELD_SIZE (JOYINFOEX, dwPOV, 4)
3050 TEST_FIELD_ALIGN (JOYINFOEX, dwPOV, 1)
3051 TEST_FIELD_OFFSET(JOYINFOEX, dwPOV, 40)
3052 TEST_FIELD_SIZE (JOYINFOEX, dwReserved1, 4)
3053 TEST_FIELD_ALIGN (JOYINFOEX, dwReserved1, 1)
3054 TEST_FIELD_OFFSET(JOYINFOEX, dwReserved1, 44)
3055 TEST_FIELD_SIZE (JOYINFOEX, dwReserved2, 4)
3056 TEST_FIELD_ALIGN (JOYINFOEX, dwReserved2, 1)
3057 TEST_FIELD_OFFSET(JOYINFOEX, dwReserved2, 48)
3058}
3059
3060static void test_pack_MIXERCAPSA(void)
3061{
3062 /* MIXERCAPSA (pack 1) */
3063 TEST_FIELD_SIZE (MIXERCAPSA, wMid, 2)
3064 TEST_FIELD_ALIGN (MIXERCAPSA, wMid, 1)
3066 TEST_FIELD_SIZE (MIXERCAPSA, wPid, 2)
3067 TEST_FIELD_ALIGN (MIXERCAPSA, wPid, 1)
3069 TEST_FIELD_SIZE (MIXERCAPSA, vDriverVersion, 4)
3070 TEST_FIELD_ALIGN (MIXERCAPSA, vDriverVersion, 1)
3071 TEST_FIELD_OFFSET(MIXERCAPSA, vDriverVersion, 4)
3072}
3073
3074static void test_pack_MIXERCAPSW(void)
3075{
3076 /* MIXERCAPSW (pack 1) */
3077 TEST_FIELD_SIZE (MIXERCAPSW, wMid, 2)
3078 TEST_FIELD_ALIGN (MIXERCAPSW, wMid, 1)
3080 TEST_FIELD_SIZE (MIXERCAPSW, wPid, 2)
3081 TEST_FIELD_ALIGN (MIXERCAPSW, wPid, 1)
3083 TEST_FIELD_SIZE (MIXERCAPSW, vDriverVersion, 4)
3084 TEST_FIELD_ALIGN (MIXERCAPSW, vDriverVersion, 1)
3085 TEST_FIELD_OFFSET(MIXERCAPSW, vDriverVersion, 4)
3086}
3087
3088static void test_pack_MIXERCAPS2A(void)
3089{
3090 /* MIXERCAPS2A (pack 1) */
3091 TEST_FIELD_SIZE (MIXERCAPS2A, wMid, 2)
3092 TEST_FIELD_ALIGN (MIXERCAPS2A, wMid, 1)
3094 TEST_FIELD_SIZE (MIXERCAPS2A, wPid, 2)
3095 TEST_FIELD_ALIGN (MIXERCAPS2A, wPid, 1)
3097 TEST_FIELD_SIZE (MIXERCAPS2A, vDriverVersion, 4)
3098 TEST_FIELD_ALIGN (MIXERCAPS2A, vDriverVersion, 1)
3099 TEST_FIELD_OFFSET(MIXERCAPS2A, vDriverVersion, 4)
3100}
3101
3102static void test_pack_MIXERCAPS2W(void)
3103{
3104 /* MIXERCAPS2W (pack 1) */
3105 TEST_FIELD_SIZE (MIXERCAPS2W, wMid, 2)
3106 TEST_FIELD_ALIGN (MIXERCAPS2W, wMid, 1)
3108 TEST_FIELD_SIZE (MIXERCAPS2W, wPid, 2)
3109 TEST_FIELD_ALIGN (MIXERCAPS2W, wPid, 1)
3111 TEST_FIELD_SIZE (MIXERCAPS2W, vDriverVersion, 4)
3112 TEST_FIELD_ALIGN (MIXERCAPS2W, vDriverVersion, 1)
3113 TEST_FIELD_OFFSET(MIXERCAPS2W, vDriverVersion, 4)
3114}
3115
3116static void test_pack_MIXERLINEA(void)
3117{
3118 /* MIXERLINEA (pack 1) */
3119 TEST_FIELD_SIZE (MIXERLINEA, cbStruct, 4)
3120 TEST_FIELD_ALIGN (MIXERLINEA, cbStruct, 1)
3121 TEST_FIELD_OFFSET(MIXERLINEA, cbStruct, 0)
3122 TEST_FIELD_SIZE (MIXERLINEA, dwDestination, 4)
3123 TEST_FIELD_ALIGN (MIXERLINEA, dwDestination, 1)
3124 TEST_FIELD_OFFSET(MIXERLINEA, dwDestination, 4)
3125 TEST_FIELD_SIZE (MIXERLINEA, dwSource, 4)
3126 TEST_FIELD_ALIGN (MIXERLINEA, dwSource, 1)
3127 TEST_FIELD_OFFSET(MIXERLINEA, dwSource, 8)
3128 TEST_FIELD_SIZE (MIXERLINEA, dwLineID, 4)
3129 TEST_FIELD_ALIGN (MIXERLINEA, dwLineID, 1)
3130 TEST_FIELD_OFFSET(MIXERLINEA, dwLineID, 12)
3131 TEST_FIELD_SIZE (MIXERLINEA, fdwLine, 4)
3132 TEST_FIELD_ALIGN (MIXERLINEA, fdwLine, 1)
3133 TEST_FIELD_OFFSET(MIXERLINEA, fdwLine, 16)
3134 TEST_FIELD_SIZE (MIXERLINEA, dwUser, 4)
3135 TEST_FIELD_ALIGN (MIXERLINEA, dwUser, 1)
3136 TEST_FIELD_OFFSET(MIXERLINEA, dwUser, 20)
3137 TEST_FIELD_SIZE (MIXERLINEA, dwComponentType, 4)
3138 TEST_FIELD_ALIGN (MIXERLINEA, dwComponentType, 1)
3139 TEST_FIELD_OFFSET(MIXERLINEA, dwComponentType, 24)
3140 TEST_FIELD_SIZE (MIXERLINEA, cChannels, 4)
3141 TEST_FIELD_ALIGN (MIXERLINEA, cChannels, 1)
3142 TEST_FIELD_OFFSET(MIXERLINEA, cChannels, 28)
3143 TEST_FIELD_SIZE (MIXERLINEA, cConnections, 4)
3144 TEST_FIELD_ALIGN (MIXERLINEA, cConnections, 1)
3145 TEST_FIELD_OFFSET(MIXERLINEA, cConnections, 32)
3146 TEST_FIELD_SIZE (MIXERLINEA, cControls, 4)
3147 TEST_FIELD_ALIGN (MIXERLINEA, cControls, 1)
3148 TEST_FIELD_OFFSET(MIXERLINEA, cControls, 36)
3149}
3150
3151static void test_pack_MIXERLINEW(void)
3152{
3153 /* MIXERLINEW (pack 1) */
3154 TEST_FIELD_SIZE (MIXERLINEW, cbStruct, 4)
3155 TEST_FIELD_ALIGN (MIXERLINEW, cbStruct, 1)
3156 TEST_FIELD_OFFSET(MIXERLINEW, cbStruct, 0)
3157 TEST_FIELD_SIZE (MIXERLINEW, dwDestination, 4)
3158 TEST_FIELD_ALIGN (MIXERLINEW, dwDestination, 1)
3159 TEST_FIELD_OFFSET(MIXERLINEW, dwDestination, 4)
3160 TEST_FIELD_SIZE (MIXERLINEW, dwSource, 4)
3161 TEST_FIELD_ALIGN (MIXERLINEW, dwSource, 1)
3162 TEST_FIELD_OFFSET(MIXERLINEW, dwSource, 8)
3163 TEST_FIELD_SIZE (MIXERLINEW, dwLineID, 4)
3164 TEST_FIELD_ALIGN (MIXERLINEW, dwLineID, 1)
3165 TEST_FIELD_OFFSET(MIXERLINEW, dwLineID, 12)
3166 TEST_FIELD_SIZE (MIXERLINEW, fdwLine, 4)
3167 TEST_FIELD_ALIGN (MIXERLINEW, fdwLine, 1)
3168 TEST_FIELD_OFFSET(MIXERLINEW, fdwLine, 16)
3169 TEST_FIELD_SIZE (MIXERLINEW, dwUser, 4)
3170 TEST_FIELD_ALIGN (MIXERLINEW, dwUser, 1)
3171 TEST_FIELD_OFFSET(MIXERLINEW, dwUser, 20)
3172 TEST_FIELD_SIZE (MIXERLINEW, dwComponentType, 4)
3173 TEST_FIELD_ALIGN (MIXERLINEW, dwComponentType, 1)
3174 TEST_FIELD_OFFSET(MIXERLINEW, dwComponentType, 24)
3175 TEST_FIELD_SIZE (MIXERLINEW, cChannels, 4)
3176 TEST_FIELD_ALIGN (MIXERLINEW, cChannels, 1)
3177 TEST_FIELD_OFFSET(MIXERLINEW, cChannels, 28)
3178 TEST_FIELD_SIZE (MIXERLINEW, cConnections, 4)
3179 TEST_FIELD_ALIGN (MIXERLINEW, cConnections, 1)
3180 TEST_FIELD_OFFSET(MIXERLINEW, cConnections, 32)
3181 TEST_FIELD_SIZE (MIXERLINEW, cControls, 4)
3182 TEST_FIELD_ALIGN (MIXERLINEW, cControls, 1)
3183 TEST_FIELD_OFFSET(MIXERLINEW, cControls, 36)
3184}
3185
3187{
3188 /* MIXERCONTROLA (pack 1) */
3189 TEST_FIELD_SIZE (MIXERCONTROLA, cbStruct, 4)
3190 TEST_FIELD_ALIGN (MIXERCONTROLA, cbStruct, 1)
3191 TEST_FIELD_OFFSET(MIXERCONTROLA, cbStruct, 0)
3192 TEST_FIELD_SIZE (MIXERCONTROLA, dwControlID, 4)
3193 TEST_FIELD_ALIGN (MIXERCONTROLA, dwControlID, 1)
3194 TEST_FIELD_OFFSET(MIXERCONTROLA, dwControlID, 4)
3195 TEST_FIELD_SIZE (MIXERCONTROLA, dwControlType, 4)
3196 TEST_FIELD_ALIGN (MIXERCONTROLA, dwControlType, 1)
3197 TEST_FIELD_OFFSET(MIXERCONTROLA, dwControlType, 8)
3198 TEST_FIELD_SIZE (MIXERCONTROLA, fdwControl, 4)
3199 TEST_FIELD_ALIGN (MIXERCONTROLA, fdwControl, 1)
3200 TEST_FIELD_OFFSET(MIXERCONTROLA, fdwControl, 12)
3201 TEST_FIELD_SIZE (MIXERCONTROLA, cMultipleItems, 4)
3202 TEST_FIELD_ALIGN (MIXERCONTROLA, cMultipleItems, 1)
3203 TEST_FIELD_OFFSET(MIXERCONTROLA, cMultipleItems, 16)
3204}
3205
3207{
3208 /* MIXERCONTROLW (pack 1) */
3209 TEST_FIELD_SIZE (MIXERCONTROLW, cbStruct, 4)
3210 TEST_FIELD_ALIGN (MIXERCONTROLW, cbStruct, 1)
3211 TEST_FIELD_OFFSET(MIXERCONTROLW, cbStruct, 0)
3212 TEST_FIELD_SIZE (MIXERCONTROLW, dwControlID, 4)
3213 TEST_FIELD_ALIGN (MIXERCONTROLW, dwControlID, 1)
3214 TEST_FIELD_OFFSET(MIXERCONTROLW, dwControlID, 4)
3215 TEST_FIELD_SIZE (MIXERCONTROLW, dwControlType, 4)
3216 TEST_FIELD_ALIGN (MIXERCONTROLW, dwControlType, 1)
3217 TEST_FIELD_OFFSET(MIXERCONTROLW, dwControlType, 8)
3218 TEST_FIELD_SIZE (MIXERCONTROLW, fdwControl, 4)
3219 TEST_FIELD_ALIGN (MIXERCONTROLW, fdwControl, 1)
3220 TEST_FIELD_OFFSET(MIXERCONTROLW, fdwControl, 12)
3221 TEST_FIELD_SIZE (MIXERCONTROLW, cMultipleItems, 4)
3222 TEST_FIELD_ALIGN (MIXERCONTROLW, cMultipleItems, 1)
3223 TEST_FIELD_OFFSET(MIXERCONTROLW, cMultipleItems, 16)
3224}
3225
3227{
3228 /* MIXERCONTROLDETAILS (pack 1) */
3232 TEST_FIELD_SIZE (MIXERCONTROLDETAILS, dwControlID, 4)
3233 TEST_FIELD_ALIGN (MIXERCONTROLDETAILS, dwControlID, 1)
3234 TEST_FIELD_OFFSET(MIXERCONTROLDETAILS, dwControlID, 4)
3235 TEST_FIELD_SIZE (MIXERCONTROLDETAILS, cChannels, 4)
3238}
3239
3241{
3242 /* MIXERCONTROLDETAILS_LISTTEXTA (pack 1) */
3249}
3250
3252{
3253 /* MIXERCONTROLDETAILS_LISTTEXTW (pack 1) */
3260}
3261
3263{
3264 /* MIXERCONTROLDETAILS_BOOLEAN (pack 1) */
3270}
3271
3273{
3274 /* MIXERCONTROLDETAILS_SIGNED (pack 1) */
3280}
3281
3283{
3284 /* MIXERCONTROLDETAILS_UNSIGNED (pack 1) */
3290}
3291
3292static void test_pack_MMIOINFO(void)
3293{
3294 /* MMIOINFO (pack 1) */
3298 TEST_FIELD_SIZE (MMIOINFO, fccIOProc, 4)
3299 TEST_FIELD_ALIGN (MMIOINFO, fccIOProc, 1)
3300 TEST_FIELD_OFFSET(MMIOINFO, fccIOProc, 4)
3301 TEST_FIELD_SIZE (MMIOINFO, pIOProc, 4)
3302 TEST_FIELD_ALIGN (MMIOINFO, pIOProc, 1)
3303 TEST_FIELD_OFFSET(MMIOINFO, pIOProc, 8)
3304 TEST_FIELD_SIZE (MMIOINFO, wErrorRet, 4)
3305 TEST_FIELD_ALIGN (MMIOINFO, wErrorRet, 1)
3306 TEST_FIELD_OFFSET(MMIOINFO, wErrorRet, 12)
3307}
3308
3309static void test_pack_MMCKINFO(void)
3310{
3311 /* MMCKINFO (pack 1) */
3314 TEST_FIELD_SIZE (MMCKINFO, ckid, 4)
3315 TEST_FIELD_ALIGN (MMCKINFO, ckid, 1)
3316 TEST_FIELD_OFFSET(MMCKINFO, ckid, 0)
3317 TEST_FIELD_SIZE (MMCKINFO, cksize, 4)
3318 TEST_FIELD_ALIGN (MMCKINFO, cksize, 1)
3319 TEST_FIELD_OFFSET(MMCKINFO, cksize, 4)
3320 TEST_FIELD_SIZE (MMCKINFO, fccType, 4)
3321 TEST_FIELD_ALIGN (MMCKINFO, fccType, 1)
3322 TEST_FIELD_OFFSET(MMCKINFO, fccType, 8)
3323 TEST_FIELD_SIZE (MMCKINFO, dwDataOffset, 4)
3324 TEST_FIELD_ALIGN (MMCKINFO, dwDataOffset, 1)
3325 TEST_FIELD_OFFSET(MMCKINFO, dwDataOffset, 12)
3329}
3330
3332{
3333 /* MCI_GENERIC_PARMS (pack 1) */
3336 TEST_FIELD_SIZE (MCI_GENERIC_PARMS, dwCallback, 4)
3337 TEST_FIELD_ALIGN (MCI_GENERIC_PARMS, dwCallback, 1)
3338 TEST_FIELD_OFFSET(MCI_GENERIC_PARMS, dwCallback, 0)
3339}
3340
3342{
3343 /* MCI_OPEN_PARMSA (pack 1) */
3346 TEST_FIELD_SIZE (MCI_OPEN_PARMSA, dwCallback, 4)
3347 TEST_FIELD_ALIGN (MCI_OPEN_PARMSA, dwCallback, 1)
3348 TEST_FIELD_OFFSET(MCI_OPEN_PARMSA, dwCallback, 0)
3349 TEST_FIELD_SIZE (MCI_OPEN_PARMSA, wDeviceID, 4)
3350 TEST_FIELD_ALIGN (MCI_OPEN_PARMSA, wDeviceID, 1)
3351 TEST_FIELD_OFFSET(MCI_OPEN_PARMSA, wDeviceID, 4)
3352 TEST_FIELD_SIZE (MCI_OPEN_PARMSA, lpstrDeviceType, 4)
3353 TEST_FIELD_ALIGN (MCI_OPEN_PARMSA, lpstrDeviceType, 1)
3354 TEST_FIELD_OFFSET(MCI_OPEN_PARMSA, lpstrDeviceType, 8)
3355 TEST_FIELD_SIZE (MCI_OPEN_PARMSA, lpstrElementName, 4)
3356 TEST_FIELD_ALIGN (MCI_OPEN_PARMSA, lpstrElementName, 1)
3357 TEST_FIELD_OFFSET(MCI_OPEN_PARMSA, lpstrElementName, 12)
3358 TEST_FIELD_SIZE (MCI_OPEN_PARMSA, lpstrAlias, 4)
3359 TEST_FIELD_ALIGN (MCI_OPEN_PARMSA, lpstrAlias, 1)
3360 TEST_FIELD_OFFSET(MCI_OPEN_PARMSA, lpstrAlias, 16)
3361}
3362
3364{
3365 /* MCI_OPEN_PARMSW (pack 1) */
3368 TEST_FIELD_SIZE (MCI_OPEN_PARMSW, dwCallback, 4)
3369 TEST_FIELD_ALIGN (MCI_OPEN_PARMSW, dwCallback, 1)
3370 TEST_FIELD_OFFSET(MCI_OPEN_PARMSW, dwCallback, 0)
3371 TEST_FIELD_SIZE (MCI_OPEN_PARMSW, wDeviceID, 4)
3372 TEST_FIELD_ALIGN (MCI_OPEN_PARMSW, wDeviceID, 1)
3373 TEST_FIELD_OFFSET(MCI_OPEN_PARMSW, wDeviceID, 4)
3374 TEST_FIELD_SIZE (MCI_OPEN_PARMSW, lpstrDeviceType, 4)
3375 TEST_FIELD_ALIGN (MCI_OPEN_PARMSW, lpstrDeviceType, 1)
3376 TEST_FIELD_OFFSET(MCI_OPEN_PARMSW, lpstrDeviceType, 8)
3377 TEST_FIELD_SIZE (MCI_OPEN_PARMSW, lpstrElementName, 4)
3378 TEST_FIELD_ALIGN (MCI_OPEN_PARMSW, lpstrElementName, 1)
3379 TEST_FIELD_OFFSET(MCI_OPEN_PARMSW, lpstrElementName, 12)
3380 TEST_FIELD_SIZE (MCI_OPEN_PARMSW, lpstrAlias, 4)
3381 TEST_FIELD_ALIGN (MCI_OPEN_PARMSW, lpstrAlias, 1)
3382 TEST_FIELD_OFFSET(MCI_OPEN_PARMSW, lpstrAlias, 16)
3383}
3384
3386{
3387 /* MCI_PLAY_PARMS (pack 1) */
3390 TEST_FIELD_SIZE (MCI_PLAY_PARMS, dwCallback, 4)
3391 TEST_FIELD_ALIGN (MCI_PLAY_PARMS, dwCallback, 1)
3392 TEST_FIELD_OFFSET(MCI_PLAY_PARMS, dwCallback, 0)
3393 TEST_FIELD_SIZE (MCI_PLAY_PARMS, dwFrom, 4)
3394 TEST_FIELD_ALIGN (MCI_PLAY_PARMS, dwFrom, 1)
3399}
3400
3402{
3403 /* MCI_SEEK_PARMS (pack 1) */
3406 TEST_FIELD_SIZE (MCI_SEEK_PARMS, dwCallback, 4)
3407 TEST_FIELD_ALIGN (MCI_SEEK_PARMS, dwCallback, 1)
3408 TEST_FIELD_OFFSET(MCI_SEEK_PARMS, dwCallback, 0)
3412}
3413
3415{
3416 /* MCI_STATUS_PARMS (pack 1) */
3419 TEST_FIELD_SIZE (MCI_STATUS_PARMS, dwCallback, 4)
3420 TEST_FIELD_ALIGN (MCI_STATUS_PARMS, dwCallback, 1)
3421 TEST_FIELD_OFFSET(MCI_STATUS_PARMS, dwCallback, 0)
3422 TEST_FIELD_SIZE (MCI_STATUS_PARMS, dwReturn, 4)
3423 TEST_FIELD_ALIGN (MCI_STATUS_PARMS, dwReturn, 1)
3428 TEST_FIELD_SIZE (MCI_STATUS_PARMS, dwTrack, 4)
3431}
3432
3434{
3435 /* MCI_INFO_PARMSA (pack 1) */
3438 TEST_FIELD_SIZE (MCI_INFO_PARMSA, dwCallback, 4)
3439 TEST_FIELD_ALIGN (MCI_INFO_PARMSA, dwCallback, 1)
3440 TEST_FIELD_OFFSET(MCI_INFO_PARMSA, dwCallback, 0)
3441 TEST_FIELD_SIZE (MCI_INFO_PARMSA, lpstrReturn, 4)
3442 TEST_FIELD_ALIGN (MCI_INFO_PARMSA, lpstrReturn, 1)
3443 TEST_FIELD_OFFSET(MCI_INFO_PARMSA, lpstrReturn, 4)
3444 TEST_FIELD_SIZE (MCI_INFO_PARMSA, dwRetSize, 4)
3445 TEST_FIELD_ALIGN (MCI_INFO_PARMSA, dwRetSize, 1)
3446 TEST_FIELD_OFFSET(MCI_INFO_PARMSA, dwRetSize, 8)
3447}
3448
3450{
3451 /* MCI_INFO_PARMSW (pack 1) */
3454 TEST_FIELD_SIZE (MCI_INFO_PARMSW, dwCallback, 4)
3455 TEST_FIELD_ALIGN (MCI_INFO_PARMSW, dwCallback, 1)
3456 TEST_FIELD_OFFSET(MCI_INFO_PARMSW, dwCallback, 0)
3457 TEST_FIELD_SIZE (MCI_INFO_PARMSW, lpstrReturn, 4)
3458 TEST_FIELD_ALIGN (MCI_INFO_PARMSW, lpstrReturn, 1)
3459 TEST_FIELD_OFFSET(MCI_INFO_PARMSW, lpstrReturn, 4)
3460 TEST_FIELD_SIZE (MCI_INFO_PARMSW, dwRetSize, 4)
3461 TEST_FIELD_ALIGN (MCI_INFO_PARMSW, dwRetSize, 1)
3462 TEST_FIELD_OFFSET(MCI_INFO_PARMSW, dwRetSize, 8)
3463}
3464
3466{
3467 /* MCI_GETDEVCAPS_PARMS (pack 1) */
3470 TEST_FIELD_SIZE (MCI_GETDEVCAPS_PARMS, dwCallback, 4)
3471 TEST_FIELD_ALIGN (MCI_GETDEVCAPS_PARMS, dwCallback, 1)
3479}
3480
3482{
3483 /* MCI_SYSINFO_PARMSA (pack 1) */
3486 TEST_FIELD_SIZE (MCI_SYSINFO_PARMSA, dwCallback, 4)
3487 TEST_FIELD_ALIGN (MCI_SYSINFO_PARMSA, dwCallback, 1)
3489 TEST_FIELD_SIZE (MCI_SYSINFO_PARMSA, lpstrReturn, 4)
3490 TEST_FIELD_ALIGN (MCI_SYSINFO_PARMSA, lpstrReturn, 1)
3491 TEST_FIELD_OFFSET(MCI_SYSINFO_PARMSA, lpstrReturn, 4)
3492 TEST_FIELD_SIZE (MCI_SYSINFO_PARMSA, dwRetSize, 4)
3493 TEST_FIELD_ALIGN (MCI_SYSINFO_PARMSA, dwRetSize, 1)
3495 TEST_FIELD_SIZE (MCI_SYSINFO_PARMSA, dwNumber, 4)
3498 TEST_FIELD_SIZE (MCI_SYSINFO_PARMSA, wDeviceType, 4)
3499 TEST_FIELD_ALIGN (MCI_SYSINFO_PARMSA, wDeviceType, 1)
3500 TEST_FIELD_OFFSET(MCI_SYSINFO_PARMSA, wDeviceType, 16)
3501}
3502
3504{
3505 /* MCI_SYSINFO_PARMSW (pack 1) */
3508 TEST_FIELD_SIZE (MCI_SYSINFO_PARMSW, dwCallback, 4)
3509 TEST_FIELD_ALIGN (MCI_SYSINFO_PARMSW, dwCallback, 1)
3511 TEST_FIELD_SIZE (MCI_SYSINFO_PARMSW, lpstrReturn, 4)
3512 TEST_FIELD_ALIGN (MCI_SYSINFO_PARMSW, lpstrReturn, 1)
3513 TEST_FIELD_OFFSET(MCI_SYSINFO_PARMSW, lpstrReturn, 4)
3514 TEST_FIELD_SIZE (MCI_SYSINFO_PARMSW, dwRetSize, 4)
3515 TEST_FIELD_ALIGN (MCI_SYSINFO_PARMSW, dwRetSize, 1)
3517 TEST_FIELD_SIZE (MCI_SYSINFO_PARMSW, dwNumber, 4)
3520 TEST_FIELD_SIZE (MCI_SYSINFO_PARMSW, wDeviceType, 4)
3521 TEST_FIELD_ALIGN (MCI_SYSINFO_PARMSW, wDeviceType, 1)
3522 TEST_FIELD_OFFSET(MCI_SYSINFO_PARMSW, wDeviceType, 16)
3523}
3524
3526{
3527 /* MCI_SET_PARMS (pack 1) */
3530 TEST_FIELD_SIZE (MCI_SET_PARMS, dwCallback, 4)
3531 TEST_FIELD_ALIGN (MCI_SET_PARMS, dwCallback, 1)
3532 TEST_FIELD_OFFSET(MCI_SET_PARMS, dwCallback, 0)
3533 TEST_FIELD_SIZE (MCI_SET_PARMS, dwTimeFormat, 4)
3534 TEST_FIELD_ALIGN (MCI_SET_PARMS, dwTimeFormat, 1)
3535 TEST_FIELD_OFFSET(MCI_SET_PARMS, dwTimeFormat, 4)
3536 TEST_FIELD_SIZE (MCI_SET_PARMS, dwAudio, 4)
3537 TEST_FIELD_ALIGN (MCI_SET_PARMS, dwAudio, 1)
3538 TEST_FIELD_OFFSET(MCI_SET_PARMS, dwAudio, 8)
3539}
3540
3542{
3543 /* MCI_BREAK_PARMS (pack 1) */
3546 TEST_FIELD_SIZE (MCI_BREAK_PARMS, dwCallback, 4)
3547 TEST_FIELD_ALIGN (MCI_BREAK_PARMS, dwCallback, 1)
3548 TEST_FIELD_OFFSET(MCI_BREAK_PARMS, dwCallback, 0)
3549 TEST_FIELD_SIZE (MCI_BREAK_PARMS, nVirtKey, 4)
3550 TEST_FIELD_ALIGN (MCI_BREAK_PARMS, nVirtKey, 1)
3552 TEST_FIELD_SIZE (MCI_BREAK_PARMS, hwndBreak, 4)
3553 TEST_FIELD_ALIGN (MCI_BREAK_PARMS, hwndBreak, 1)
3554 TEST_FIELD_OFFSET(MCI_BREAK_PARMS, hwndBreak, 8)
3555}
3556
3558{
3559 /* MCI_SOUND_PARMSA (pack 1) */
3560 TEST_TYPE_SIZE (MCI_SOUND_PARMSA, 8)
3561 TEST_TYPE_ALIGN (MCI_SOUND_PARMSA, 1)
3562 TEST_FIELD_SIZE (MCI_SOUND_PARMSA, dwCallback, 4)
3563 TEST_FIELD_ALIGN (MCI_SOUND_PARMSA, dwCallback, 1)
3564 TEST_FIELD_OFFSET(MCI_SOUND_PARMSA, dwCallback, 0)
3565 TEST_FIELD_SIZE (MCI_SOUND_PARMSA, lpstrSoundName, 4)
3566 TEST_FIELD_ALIGN (MCI_SOUND_PARMSA, lpstrSoundName, 1)
3567 TEST_FIELD_OFFSET(MCI_SOUND_PARMSA, lpstrSoundName, 4)
3568}
3569
3571{
3572 /* MCI_SOUND_PARMSW (pack 1) */
3573 TEST_TYPE_SIZE (MCI_SOUND_PARMSW, 8)
3574 TEST_TYPE_ALIGN (MCI_SOUND_PARMSW, 1)
3575 TEST_FIELD_SIZE (MCI_SOUND_PARMSW, dwCallback, 4)
3576 TEST_FIELD_ALIGN (MCI_SOUND_PARMSW, dwCallback, 1)
3577 TEST_FIELD_OFFSET(MCI_SOUND_PARMSW, dwCallback, 0)
3578 TEST_FIELD_SIZE (MCI_SOUND_PARMSW, lpstrSoundName, 4)
3579 TEST_FIELD_ALIGN (MCI_SOUND_PARMSW, lpstrSoundName, 1)
3580 TEST_FIELD_OFFSET(MCI_SOUND_PARMSW, lpstrSoundName, 4)
3581}
3582
3584{
3585 /* MCI_SAVE_PARMSA (pack 1) */
3588 TEST_FIELD_SIZE (MCI_SAVE_PARMSA, dwCallback, 4)
3589 TEST_FIELD_ALIGN (MCI_SAVE_PARMSA, dwCallback, 1)
3590 TEST_FIELD_OFFSET(MCI_SAVE_PARMSA, dwCallback, 0)
3591 TEST_FIELD_SIZE (MCI_SAVE_PARMSA, lpfilename, 4)
3592 TEST_FIELD_ALIGN (MCI_SAVE_PARMSA, lpfilename, 1)
3593 TEST_FIELD_OFFSET(MCI_SAVE_PARMSA, lpfilename, 4)
3594}
3595
3597{
3598 /* MCI_SAVE_PARMSW (pack 1) */
3601 TEST_FIELD_SIZE (MCI_SAVE_PARMSW, dwCallback, 4)
3602 TEST_FIELD_ALIGN (MCI_SAVE_PARMSW, dwCallback, 1)
3603 TEST_FIELD_OFFSET(MCI_SAVE_PARMSW, dwCallback, 0)
3604 TEST_FIELD_SIZE (MCI_SAVE_PARMSW, lpfilename, 4)
3605 TEST_FIELD_ALIGN (MCI_SAVE_PARMSW, lpfilename, 1)
3606 TEST_FIELD_OFFSET(MCI_SAVE_PARMSW, lpfilename, 4)
3607}
3608
3610{
3611 /* MCI_LOAD_PARMSA (pack 1) */
3614 TEST_FIELD_SIZE (MCI_LOAD_PARMSA, dwCallback, 4)
3615 TEST_FIELD_ALIGN (MCI_LOAD_PARMSA, dwCallback, 1)
3616 TEST_FIELD_OFFSET(MCI_LOAD_PARMSA, dwCallback, 0)
3617 TEST_FIELD_SIZE (MCI_LOAD_PARMSA, lpfilename, 4)
3618 TEST_FIELD_ALIGN (MCI_LOAD_PARMSA, lpfilename, 1)
3619 TEST_FIELD_OFFSET(MCI_LOAD_PARMSA, lpfilename, 4)
3620}
3621
3623{
3624 /* MCI_LOAD_PARMSW (pack 1) */
3627 TEST_FIELD_SIZE (MCI_LOAD_PARMSW, dwCallback, 4)
3628 TEST_FIELD_ALIGN (MCI_LOAD_PARMSW, dwCallback, 1)
3629 TEST_FIELD_OFFSET(MCI_LOAD_PARMSW, dwCallback, 0)
3630 TEST_FIELD_SIZE (MCI_LOAD_PARMSW, lpfilename, 4)
3631 TEST_FIELD_ALIGN (MCI_LOAD_PARMSW, lpfilename, 1)
3632 TEST_FIELD_OFFSET(MCI_LOAD_PARMSW, lpfilename, 4)
3633}
3634
3636{
3637 /* MCI_RECORD_PARMS (pack 1) */
3640 TEST_FIELD_SIZE (MCI_RECORD_PARMS, dwCallback, 4)
3641 TEST_FIELD_ALIGN (MCI_RECORD_PARMS, dwCallback, 1)
3642 TEST_FIELD_OFFSET(MCI_RECORD_PARMS, dwCallback, 0)
3649}
3650
3652{
3653 /* MCI_VD_PLAY_PARMS (pack 1) */
3656 TEST_FIELD_SIZE (MCI_VD_PLAY_PARMS, dwCallback, 4)
3657 TEST_FIELD_ALIGN (MCI_VD_PLAY_PARMS, dwCallback, 1)
3658 TEST_FIELD_OFFSET(MCI_VD_PLAY_PARMS, dwCallback, 0)
3668}
3669
3671{
3672 /* MCI_VD_STEP_PARMS (pack 1) */
3675 TEST_FIELD_SIZE (MCI_VD_STEP_PARMS, dwCallback, 4)
3676 TEST_FIELD_ALIGN (MCI_VD_STEP_PARMS, dwCallback, 1)
3677 TEST_FIELD_OFFSET(MCI_VD_STEP_PARMS, dwCallback, 0)
3678 TEST_FIELD_SIZE (MCI_VD_STEP_PARMS, dwFrames, 4)
3679 TEST_FIELD_ALIGN (MCI_VD_STEP_PARMS, dwFrames, 1)
3681}
3682
3684{
3685 /* MCI_VD_ESCAPE_PARMSA (pack 1) */