ReactOS  0.4.15-dev-1384-g878186b
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 
82 static 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 
90 static 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 
106 static void test_pack_WAVEHDR(void)
107 {
108  /* WAVEHDR (pack 1) */
109  TEST_TYPE_SIZE (WAVEHDR, 48)
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 
137 static void test_pack_WAVEOUTCAPSA(void)
138 {
139  /* WAVEOUTCAPSA (pack 1) */
140  TEST_FIELD_SIZE (WAVEOUTCAPSA, wMid, 2)
141  TEST_FIELD_ALIGN (WAVEOUTCAPSA, wMid, 1)
143  TEST_FIELD_SIZE (WAVEOUTCAPSA, wPid, 2)
144  TEST_FIELD_ALIGN (WAVEOUTCAPSA, wPid, 1)
146  TEST_FIELD_SIZE (WAVEOUTCAPSA, vDriverVersion, 4)
147  TEST_FIELD_ALIGN (WAVEOUTCAPSA, vDriverVersion, 1)
148  TEST_FIELD_OFFSET(WAVEOUTCAPSA, vDriverVersion, 4)
149 }
150 
151 static void test_pack_WAVEOUTCAPSW(void)
152 {
153  /* WAVEOUTCAPSW (pack 1) */
154  TEST_FIELD_SIZE (WAVEOUTCAPSW, wMid, 2)
155  TEST_FIELD_ALIGN (WAVEOUTCAPSW, wMid, 1)
157  TEST_FIELD_SIZE (WAVEOUTCAPSW, wPid, 2)
158  TEST_FIELD_ALIGN (WAVEOUTCAPSW, wPid, 1)
160  TEST_FIELD_SIZE (WAVEOUTCAPSW, vDriverVersion, 4)
161  TEST_FIELD_ALIGN (WAVEOUTCAPSW, vDriverVersion, 1)
162  TEST_FIELD_OFFSET(WAVEOUTCAPSW, vDriverVersion, 4)
163 }
164 
165 static void test_pack_WAVEOUTCAPS2A(void)
166 {
167  /* WAVEOUTCAPS2A (pack 1) */
168  TEST_FIELD_SIZE (WAVEOUTCAPS2A, wMid, 2)
171  TEST_FIELD_SIZE (WAVEOUTCAPS2A, wPid, 2)
174  TEST_FIELD_SIZE (WAVEOUTCAPS2A, vDriverVersion, 4)
175  TEST_FIELD_ALIGN (WAVEOUTCAPS2A, vDriverVersion, 1)
176  TEST_FIELD_OFFSET(WAVEOUTCAPS2A, vDriverVersion, 4)
177 }
178 
179 static void test_pack_WAVEOUTCAPS2W(void)
180 {
181  /* WAVEOUTCAPS2W (pack 1) */
182  TEST_FIELD_SIZE (WAVEOUTCAPS2W, wMid, 2)
185  TEST_FIELD_SIZE (WAVEOUTCAPS2W, wPid, 2)
188  TEST_FIELD_SIZE (WAVEOUTCAPS2W, vDriverVersion, 4)
189  TEST_FIELD_ALIGN (WAVEOUTCAPS2W, vDriverVersion, 1)
190  TEST_FIELD_OFFSET(WAVEOUTCAPS2W, vDriverVersion, 4)
191 }
192 
193 static void test_pack_WAVEINCAPSA(void)
194 {
195  /* WAVEINCAPSA (pack 1) */
196  TEST_FIELD_SIZE (WAVEINCAPSA, wMid, 2)
197  TEST_FIELD_ALIGN (WAVEINCAPSA, wMid, 1)
199  TEST_FIELD_SIZE (WAVEINCAPSA, wPid, 2)
200  TEST_FIELD_ALIGN (WAVEINCAPSA, wPid, 1)
202  TEST_FIELD_SIZE (WAVEINCAPSA, vDriverVersion, 4)
203  TEST_FIELD_ALIGN (WAVEINCAPSA, vDriverVersion, 1)
204  TEST_FIELD_OFFSET(WAVEINCAPSA, vDriverVersion, 4)
205 }
206 
207 static void test_pack_WAVEINCAPSW(void)
208 {
209  /* WAVEINCAPSW (pack 1) */
210  TEST_FIELD_SIZE (WAVEINCAPSW, wMid, 2)
211  TEST_FIELD_ALIGN (WAVEINCAPSW, wMid, 1)
213  TEST_FIELD_SIZE (WAVEINCAPSW, wPid, 2)
214  TEST_FIELD_ALIGN (WAVEINCAPSW, wPid, 1)
216  TEST_FIELD_SIZE (WAVEINCAPSW, vDriverVersion, 4)
217  TEST_FIELD_ALIGN (WAVEINCAPSW, vDriverVersion, 1)
218  TEST_FIELD_OFFSET(WAVEINCAPSW, vDriverVersion, 4)
219 }
220 
221 static void test_pack_WAVEINCAPS2A(void)
222 {
223  /* WAVEINCAPS2A (pack 1) */
224  TEST_FIELD_SIZE (WAVEINCAPS2A, wMid, 2)
225  TEST_FIELD_ALIGN (WAVEINCAPS2A, wMid, 1)
227  TEST_FIELD_SIZE (WAVEINCAPS2A, wPid, 2)
228  TEST_FIELD_ALIGN (WAVEINCAPS2A, wPid, 1)
230  TEST_FIELD_SIZE (WAVEINCAPS2A, vDriverVersion, 4)
231  TEST_FIELD_ALIGN (WAVEINCAPS2A, vDriverVersion, 1)
232  TEST_FIELD_OFFSET(WAVEINCAPS2A, vDriverVersion, 4)
233 }
234 
235 static void test_pack_WAVEINCAPS2W(void)
236 {
237  /* WAVEINCAPS2W (pack 1) */
238  TEST_FIELD_SIZE (WAVEINCAPS2W, wMid, 2)
239  TEST_FIELD_ALIGN (WAVEINCAPS2W, wMid, 1)
241  TEST_FIELD_SIZE (WAVEINCAPS2W, wPid, 2)
242  TEST_FIELD_ALIGN (WAVEINCAPS2W, wPid, 1)
244  TEST_FIELD_SIZE (WAVEINCAPS2W, vDriverVersion, 4)
245  TEST_FIELD_ALIGN (WAVEINCAPS2W, vDriverVersion, 1)
246  TEST_FIELD_OFFSET(WAVEINCAPS2W, vDriverVersion, 4)
247 }
248 
249 static 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 
271 static 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 
284 static 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)
309  TEST_FIELD_OFFSET(WAVEFORMATEX, cbSize, 16)
310 }
311 
312 static void test_pack_MIDIOUTCAPSA(void)
313 {
314  /* MIDIOUTCAPSA (pack 1) */
315  TEST_FIELD_SIZE (MIDIOUTCAPSA, wMid, 2)
316  TEST_FIELD_ALIGN (MIDIOUTCAPSA, wMid, 1)
318  TEST_FIELD_SIZE (MIDIOUTCAPSA, wPid, 2)
319  TEST_FIELD_ALIGN (MIDIOUTCAPSA, wPid, 1)
321  TEST_FIELD_SIZE (MIDIOUTCAPSA, vDriverVersion, 4)
322  TEST_FIELD_ALIGN (MIDIOUTCAPSA, vDriverVersion, 1)
323  TEST_FIELD_OFFSET(MIDIOUTCAPSA, vDriverVersion, 4)
324 }
325 
326 static void test_pack_MIDIOUTCAPSW(void)
327 {
328  /* MIDIOUTCAPSW (pack 1) */
329  TEST_FIELD_SIZE (MIDIOUTCAPSW, wMid, 2)
330  TEST_FIELD_ALIGN (MIDIOUTCAPSW, wMid, 1)
332  TEST_FIELD_SIZE (MIDIOUTCAPSW, wPid, 2)
333  TEST_FIELD_ALIGN (MIDIOUTCAPSW, wPid, 1)
335  TEST_FIELD_SIZE (MIDIOUTCAPSW, vDriverVersion, 4)
336  TEST_FIELD_ALIGN (MIDIOUTCAPSW, vDriverVersion, 1)
337  TEST_FIELD_OFFSET(MIDIOUTCAPSW, vDriverVersion, 4)
338 }
339 
340 static void test_pack_MIDIOUTCAPS2A(void)
341 {
342  /* MIDIOUTCAPS2A (pack 1) */
343  TEST_FIELD_SIZE (MIDIOUTCAPS2A, wMid, 2)
346  TEST_FIELD_SIZE (MIDIOUTCAPS2A, wPid, 2)
349  TEST_FIELD_SIZE (MIDIOUTCAPS2A, vDriverVersion, 4)
350  TEST_FIELD_ALIGN (MIDIOUTCAPS2A, vDriverVersion, 1)
351  TEST_FIELD_OFFSET(MIDIOUTCAPS2A, vDriverVersion, 4)
352 }
353 
354 static void test_pack_MIDIOUTCAPS2W(void)
355 {
356  /* MIDIOUTCAPS2W (pack 1) */
357  TEST_FIELD_SIZE (MIDIOUTCAPS2W, wMid, 2)
360  TEST_FIELD_SIZE (MIDIOUTCAPS2W, wPid, 2)
363  TEST_FIELD_SIZE (MIDIOUTCAPS2W, vDriverVersion, 4)
364  TEST_FIELD_ALIGN (MIDIOUTCAPS2W, vDriverVersion, 1)
365  TEST_FIELD_OFFSET(MIDIOUTCAPS2W, vDriverVersion, 4)
366 }
367 
368 static void test_pack_MIDIINCAPSA(void)
369 {
370  /* MIDIINCAPSA (pack 1) */
371  TEST_FIELD_SIZE (MIDIINCAPSA, wMid, 2)
372  TEST_FIELD_ALIGN (MIDIINCAPSA, wMid, 1)
374  TEST_FIELD_SIZE (MIDIINCAPSA, wPid, 2)
375  TEST_FIELD_ALIGN (MIDIINCAPSA, wPid, 1)
377  TEST_FIELD_SIZE (MIDIINCAPSA, vDriverVersion, 4)
378  TEST_FIELD_ALIGN (MIDIINCAPSA, vDriverVersion, 1)
379  TEST_FIELD_OFFSET(MIDIINCAPSA, vDriverVersion, 4)
380 }
381 
382 static void test_pack_MIDIINCAPSW(void)
383 {
384  /* MIDIINCAPSW (pack 1) */
385  TEST_FIELD_SIZE (MIDIINCAPSW, wMid, 2)
386  TEST_FIELD_ALIGN (MIDIINCAPSW, wMid, 1)
388  TEST_FIELD_SIZE (MIDIINCAPSW, wPid, 2)
389  TEST_FIELD_ALIGN (MIDIINCAPSW, wPid, 1)
391  TEST_FIELD_SIZE (MIDIINCAPSW, vDriverVersion, 4)
392  TEST_FIELD_ALIGN (MIDIINCAPSW, vDriverVersion, 1)
393  TEST_FIELD_OFFSET(MIDIINCAPSW, vDriverVersion, 4)
394 }
395 
396 static void test_pack_MIDIINCAPS2A(void)
397 {
398  /* MIDIINCAPS2A (pack 1) */
399  TEST_FIELD_SIZE (MIDIINCAPS2A, wMid, 2)
400  TEST_FIELD_ALIGN (MIDIINCAPS2A, wMid, 1)
402  TEST_FIELD_SIZE (MIDIINCAPS2A, wPid, 2)
403  TEST_FIELD_ALIGN (MIDIINCAPS2A, wPid, 1)
405  TEST_FIELD_SIZE (MIDIINCAPS2A, vDriverVersion, 4)
406  TEST_FIELD_ALIGN (MIDIINCAPS2A, vDriverVersion, 1)
407  TEST_FIELD_OFFSET(MIDIINCAPS2A, vDriverVersion, 4)
408 }
409 
410 static void test_pack_MIDIINCAPS2W(void)
411 {
412  /* MIDIINCAPS2W (pack 1) */
413  TEST_FIELD_SIZE (MIDIINCAPS2W, wMid, 2)
414  TEST_FIELD_ALIGN (MIDIINCAPS2W, wMid, 1)
416  TEST_FIELD_SIZE (MIDIINCAPS2W, wPid, 2)
417  TEST_FIELD_ALIGN (MIDIINCAPS2W, wPid, 1)
419  TEST_FIELD_SIZE (MIDIINCAPS2W, vDriverVersion, 4)
420  TEST_FIELD_ALIGN (MIDIINCAPS2W, vDriverVersion, 1)
421  TEST_FIELD_OFFSET(MIDIINCAPS2W, vDriverVersion, 4)
422 }
423 
424 static void test_pack_MIDIHDR(void)
425 {
426  /* MIDIHDR (pack 1) */
427  TEST_TYPE_SIZE (MIDIHDR, 112)
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 
458 static 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 
477 static void test_pack_AUXCAPSA(void)
478 {
479  /* AUXCAPSA (pack 1) */
480  TEST_FIELD_SIZE (AUXCAPSA, wMid, 2)
481  TEST_FIELD_ALIGN (AUXCAPSA, wMid, 1)
482  TEST_FIELD_OFFSET(AUXCAPSA, wMid, 0)
483  TEST_FIELD_SIZE (AUXCAPSA, wPid, 2)
484  TEST_FIELD_ALIGN (AUXCAPSA, wPid, 1)
485  TEST_FIELD_OFFSET(AUXCAPSA, wPid, 2)
486  TEST_FIELD_SIZE (AUXCAPSA, vDriverVersion, 4)
487  TEST_FIELD_ALIGN (AUXCAPSA, vDriverVersion, 1)
488  TEST_FIELD_OFFSET(AUXCAPSA, vDriverVersion, 4)
489 }
490 
491 static void test_pack_AUXCAPSW(void)
492 {
493  /* AUXCAPSW (pack 1) */
494  TEST_FIELD_SIZE (AUXCAPSW, wMid, 2)
495  TEST_FIELD_ALIGN (AUXCAPSW, wMid, 1)
496  TEST_FIELD_OFFSET(AUXCAPSW, wMid, 0)
497  TEST_FIELD_SIZE (AUXCAPSW, wPid, 2)
498  TEST_FIELD_ALIGN (AUXCAPSW, wPid, 1)
499  TEST_FIELD_OFFSET(AUXCAPSW, wPid, 2)
500  TEST_FIELD_SIZE (AUXCAPSW, vDriverVersion, 4)
501  TEST_FIELD_ALIGN (AUXCAPSW, vDriverVersion, 1)
502  TEST_FIELD_OFFSET(AUXCAPSW, vDriverVersion, 4)
503 }
504 
505 static void test_pack_AUXCAPS2A(void)
506 {
507  /* AUXCAPS2A (pack 1) */
508  TEST_FIELD_SIZE (AUXCAPS2A, wMid, 2)
509  TEST_FIELD_ALIGN (AUXCAPS2A, wMid, 1)
510  TEST_FIELD_OFFSET(AUXCAPS2A, wMid, 0)
511  TEST_FIELD_SIZE (AUXCAPS2A, wPid, 2)
512  TEST_FIELD_ALIGN (AUXCAPS2A, wPid, 1)
513  TEST_FIELD_OFFSET(AUXCAPS2A, wPid, 2)
514  TEST_FIELD_SIZE (AUXCAPS2A, vDriverVersion, 4)
515  TEST_FIELD_ALIGN (AUXCAPS2A, vDriverVersion, 1)
516  TEST_FIELD_OFFSET(AUXCAPS2A, vDriverVersion, 4)
517 }
518 
519 static void test_pack_AUXCAPS2W(void)
520 {
521  /* AUXCAPS2W (pack 1) */
522  TEST_FIELD_SIZE (AUXCAPS2W, wMid, 2)
523  TEST_FIELD_ALIGN (AUXCAPS2W, wMid, 1)
524  TEST_FIELD_OFFSET(AUXCAPS2W, wMid, 0)
525  TEST_FIELD_SIZE (AUXCAPS2W, wPid, 2)
526  TEST_FIELD_ALIGN (AUXCAPS2W, wPid, 1)
527  TEST_FIELD_OFFSET(AUXCAPS2W, wPid, 2)
528  TEST_FIELD_SIZE (AUXCAPS2W, vDriverVersion, 4)
529  TEST_FIELD_ALIGN (AUXCAPS2W, vDriverVersion, 1)
530  TEST_FIELD_OFFSET(AUXCAPS2W, vDriverVersion, 4)
531 }
532 
533 static 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 
546 static void test_pack_JOYCAPSA(void)
547 {
548  /* JOYCAPSA (pack 1) */
549  TEST_FIELD_SIZE (JOYCAPSA, wMid, 2)
550  TEST_FIELD_ALIGN (JOYCAPSA, wMid, 1)
551  TEST_FIELD_OFFSET(JOYCAPSA, wMid, 0)
552  TEST_FIELD_SIZE (JOYCAPSA, wPid, 2)
553  TEST_FIELD_ALIGN (JOYCAPSA, wPid, 1)
554  TEST_FIELD_OFFSET(JOYCAPSA, wPid, 2)
555 }
556 
557 static void test_pack_JOYCAPSW(void)
558 {
559  /* JOYCAPSW (pack 1) */
560  TEST_FIELD_SIZE (JOYCAPSW, wMid, 2)
561  TEST_FIELD_ALIGN (JOYCAPSW, wMid, 1)
562  TEST_FIELD_OFFSET(JOYCAPSW, wMid, 0)
563  TEST_FIELD_SIZE (JOYCAPSW, wPid, 2)
564  TEST_FIELD_ALIGN (JOYCAPSW, wPid, 1)
565  TEST_FIELD_OFFSET(JOYCAPSW, wPid, 2)
566 }
567 
568 static void test_pack_JOYCAPS2A(void)
569 {
570  /* JOYCAPS2A (pack 1) */
571  TEST_FIELD_SIZE (JOYCAPS2A, wMid, 2)
572  TEST_FIELD_ALIGN (JOYCAPS2A, wMid, 1)
573  TEST_FIELD_OFFSET(JOYCAPS2A, wMid, 0)
574  TEST_FIELD_SIZE (JOYCAPS2A, wPid, 2)
575  TEST_FIELD_ALIGN (JOYCAPS2A, wPid, 1)
576  TEST_FIELD_OFFSET(JOYCAPS2A, wPid, 2)
577 }
578 
579 static void test_pack_JOYCAPS2W(void)
580 {
581  /* JOYCAPS2W (pack 1) */
582  TEST_FIELD_SIZE (JOYCAPS2W, wMid, 2)
583  TEST_FIELD_ALIGN (JOYCAPS2W, wMid, 1)
584  TEST_FIELD_OFFSET(JOYCAPS2W, wMid, 0)
585  TEST_FIELD_SIZE (JOYCAPS2W, wPid, 2)
586  TEST_FIELD_ALIGN (JOYCAPS2W, wPid, 1)
587  TEST_FIELD_OFFSET(JOYCAPS2W, wPid, 2)
588 }
589 
590 static void test_pack_JOYINFO(void)
591 {
592  /* JOYINFO (pack 1) */
593  TEST_TYPE_SIZE (JOYINFO, 16)
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 
609 static 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 
655 static void test_pack_MIXERCAPSA(void)
656 {
657  /* MIXERCAPSA (pack 1) */
658  TEST_FIELD_SIZE (MIXERCAPSA, wMid, 2)
659  TEST_FIELD_ALIGN (MIXERCAPSA, wMid, 1)
660  TEST_FIELD_OFFSET(MIXERCAPSA, wMid, 0)
661  TEST_FIELD_SIZE (MIXERCAPSA, wPid, 2)
662  TEST_FIELD_ALIGN (MIXERCAPSA, wPid, 1)
663  TEST_FIELD_OFFSET(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 
669 static void test_pack_MIXERCAPSW(void)
670 {
671  /* MIXERCAPSW (pack 1) */
672  TEST_FIELD_SIZE (MIXERCAPSW, wMid, 2)
673  TEST_FIELD_ALIGN (MIXERCAPSW, wMid, 1)
674  TEST_FIELD_OFFSET(MIXERCAPSW, wMid, 0)
675  TEST_FIELD_SIZE (MIXERCAPSW, wPid, 2)
676  TEST_FIELD_ALIGN (MIXERCAPSW, wPid, 1)
677  TEST_FIELD_OFFSET(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 
683 static void test_pack_MIXERCAPS2A(void)
684 {
685  /* MIXERCAPS2A (pack 1) */
686  TEST_FIELD_SIZE (MIXERCAPS2A, wMid, 2)
687  TEST_FIELD_ALIGN (MIXERCAPS2A, wMid, 1)
689  TEST_FIELD_SIZE (MIXERCAPS2A, wPid, 2)
690  TEST_FIELD_ALIGN (MIXERCAPS2A, wPid, 1)
692  TEST_FIELD_SIZE (MIXERCAPS2A, vDriverVersion, 4)
693  TEST_FIELD_ALIGN (MIXERCAPS2A, vDriverVersion, 1)
694  TEST_FIELD_OFFSET(MIXERCAPS2A, vDriverVersion, 4)
695 }
696 
697 static void test_pack_MIXERCAPS2W(void)
698 {
699  /* MIXERCAPS2W (pack 1) */
700  TEST_FIELD_SIZE (MIXERCAPS2W, wMid, 2)
701  TEST_FIELD_ALIGN (MIXERCAPS2W, wMid, 1)
703  TEST_FIELD_SIZE (MIXERCAPS2W, wPid, 2)
704  TEST_FIELD_ALIGN (MIXERCAPS2W, wPid, 1)
706  TEST_FIELD_SIZE (MIXERCAPS2W, vDriverVersion, 4)
707  TEST_FIELD_ALIGN (MIXERCAPS2W, vDriverVersion, 1)
708  TEST_FIELD_OFFSET(MIXERCAPS2W, vDriverVersion, 4)
709 }
710 
711 static 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 
746 static 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 
781 static 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 
801 static 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 
821 static void test_pack_MIXERCONTROLDETAILS(void)
822 {
823  /* MIXERCONTROLDETAILS (pack 1) */
824  TEST_FIELD_SIZE (MIXERCONTROLDETAILS, cbStruct, 4)
827  TEST_FIELD_SIZE (MIXERCONTROLDETAILS, dwControlID, 4)
828  TEST_FIELD_ALIGN (MIXERCONTROLDETAILS, dwControlID, 1)
829  TEST_FIELD_OFFSET(MIXERCONTROLDETAILS, dwControlID, 4)
830  TEST_FIELD_SIZE (MIXERCONTROLDETAILS, cChannels, 4)
831  TEST_FIELD_ALIGN (MIXERCONTROLDETAILS, cChannels, 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 
867 static void test_pack_MIXERCONTROLDETAILS_SIGNED(void)
868 {
869  /* MIXERCONTROLDETAILS_SIGNED (pack 1) */
875 }
876 
878 {
879  /* MIXERCONTROLDETAILS_UNSIGNED (pack 1) */
885 }
886 
887 static 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 
904 static void test_pack_MMCKINFO(void)
905 {
906  /* MMCKINFO (pack 1) */
909  TEST_FIELD_SIZE (MMCKINFO, ckid, 4)
910  TEST_FIELD_ALIGN (MMCKINFO, ckid, 1)
911  TEST_FIELD_OFFSET(MMCKINFO, ckid, 0)
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 
926 static 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)
933  TEST_FIELD_OFFSET(MCI_GENERIC_PARMS, dwCallback, 0)
934 }
935 
936 static 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)
946  TEST_FIELD_OFFSET(MCI_OPEN_PARMSA, wDeviceID, 8)
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 
958 static 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)
968  TEST_FIELD_OFFSET(MCI_OPEN_PARMSW, wDeviceID, 8)
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 
980 static 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)
988  TEST_FIELD_SIZE (MCI_PLAY_PARMS, dwFrom, 4)
989  TEST_FIELD_ALIGN (MCI_PLAY_PARMS, dwFrom, 1)
994 }
995 
996 static 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)
1004  TEST_FIELD_SIZE (MCI_SEEK_PARMS, dwTo, 4)
1005  TEST_FIELD_ALIGN (MCI_SEEK_PARMS, dwTo, 1)
1007 }
1008 
1009 static 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)
1019  TEST_FIELD_OFFSET(MCI_STATUS_PARMS, dwReturn, 8)
1020  TEST_FIELD_SIZE (MCI_STATUS_PARMS, dwItem, 4)
1021  TEST_FIELD_ALIGN (MCI_STATUS_PARMS, dwItem, 1)
1022  TEST_FIELD_OFFSET(MCI_STATUS_PARMS, dwItem, 16)
1023  TEST_FIELD_SIZE (MCI_STATUS_PARMS, dwTrack, 4)
1024  TEST_FIELD_ALIGN (MCI_STATUS_PARMS, dwTrack, 1)
1025  TEST_FIELD_OFFSET(MCI_STATUS_PARMS, dwTrack, 20)
1026 }
1027 
1028 static 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 
1044 static 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 
1060 static 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)
1067  TEST_FIELD_OFFSET(MCI_GETDEVCAPS_PARMS, dwCallback, 0)
1068  TEST_FIELD_SIZE (MCI_GETDEVCAPS_PARMS, dwReturn, 4)
1069  TEST_FIELD_ALIGN (MCI_GETDEVCAPS_PARMS, dwReturn, 1)
1074 }
1075 
1076 static 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)
1083  TEST_FIELD_OFFSET(MCI_SYSINFO_PARMSA, dwCallback, 0)
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)
1089  TEST_FIELD_OFFSET(MCI_SYSINFO_PARMSA, dwRetSize, 16)
1090  TEST_FIELD_SIZE (MCI_SYSINFO_PARMSA, dwNumber, 4)
1091  TEST_FIELD_ALIGN (MCI_SYSINFO_PARMSA, dwNumber, 1)
1092  TEST_FIELD_OFFSET(MCI_SYSINFO_PARMSA, dwNumber, 20)
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 
1098 static 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)
1105  TEST_FIELD_OFFSET(MCI_SYSINFO_PARMSW, dwCallback, 0)
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)
1111  TEST_FIELD_OFFSET(MCI_SYSINFO_PARMSW, dwRetSize, 16)
1112  TEST_FIELD_SIZE (MCI_SYSINFO_PARMSW, dwNumber, 4)
1113  TEST_FIELD_ALIGN (MCI_SYSINFO_PARMSW, dwNumber, 1)
1114  TEST_FIELD_OFFSET(MCI_SYSINFO_PARMSW, dwNumber, 20)
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 
1120 static 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 
1136 static 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)
1146  TEST_FIELD_OFFSET(MCI_BREAK_PARMS, nVirtKey, 8)
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 
1152 static 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 
1165 static 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 
1178 static 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 
1191 static 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 
1204 static 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 
1217 static 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 
1230 static 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)
1238  TEST_FIELD_SIZE (MCI_RECORD_PARMS, dwFrom, 4)
1239  TEST_FIELD_ALIGN (MCI_RECORD_PARMS, dwFrom, 1)
1244 }
1245 
1246 static 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)
1254  TEST_FIELD_SIZE (MCI_VD_PLAY_PARMS, dwFrom, 4)
1255  TEST_FIELD_ALIGN (MCI_VD_PLAY_PARMS, dwFrom, 1)
1260  TEST_FIELD_SIZE (MCI_VD_PLAY_PARMS, dwSpeed, 4)
1261  TEST_FIELD_ALIGN (MCI_VD_PLAY_PARMS, dwSpeed, 1)
1262  TEST_FIELD_OFFSET(MCI_VD_PLAY_PARMS, dwSpeed, 16)
1263 }
1264 
1265 static 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)
1275  TEST_FIELD_OFFSET(MCI_VD_STEP_PARMS, dwFrames, 8)
1276 }
1277 
1278 static 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)
1285  TEST_FIELD_OFFSET(MCI_VD_ESCAPE_PARMSA, dwCallback, 0)
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 
1291 static 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)
1298  TEST_FIELD_OFFSET(MCI_VD_ESCAPE_PARMSW, dwCallback, 0)
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 
1304 static 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)
1311  TEST_FIELD_OFFSET(MCI_WAVE_OPEN_PARMSA, dwCallback, 0)
1312  TEST_FIELD_SIZE (MCI_WAVE_OPEN_PARMSA, wDeviceID, 4)
1313  TEST_FIELD_ALIGN (MCI_WAVE_OPEN_PARMSA, wDeviceID, 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)
1323  TEST_FIELD_OFFSET(MCI_WAVE_OPEN_PARMSA, lpstrAlias, 28)
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 
1329 static 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)
1336  TEST_FIELD_OFFSET(MCI_WAVE_OPEN_PARMSW, dwCallback, 0)
1337  TEST_FIELD_SIZE (MCI_WAVE_OPEN_PARMSW, wDeviceID, 4)
1338  TEST_FIELD_ALIGN (MCI_WAVE_OPEN_PARMSW, wDeviceID, 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)
1348  TEST_FIELD_OFFSET(MCI_WAVE_OPEN_PARMSW, lpstrAlias, 28)
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 
1354 static 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)
1360  TEST_FIELD_ALIGN (MCI_WAVE_DELETE_PARMS, dwCallback, 1)
1368 }
1369 
1370 static 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)
1377  TEST_FIELD_OFFSET(MCI_WAVE_SET_PARMS, dwCallback, 0)
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)
1381  TEST_FIELD_SIZE (MCI_WAVE_SET_PARMS, dwAudio, 4)
1382  TEST_FIELD_ALIGN (MCI_WAVE_SET_PARMS, dwAudio, 1)
1384  TEST_FIELD_SIZE (MCI_WAVE_SET_PARMS, wInput, 4)
1387  TEST_FIELD_SIZE (MCI_WAVE_SET_PARMS, wOutput, 4)
1388  TEST_FIELD_ALIGN (MCI_WAVE_SET_PARMS, wOutput, 1)
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 
1410 static 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)
1421  TEST_FIELD_SIZE (MCI_SEQ_SET_PARMS, dwAudio, 4)
1422  TEST_FIELD_ALIGN (MCI_SEQ_SET_PARMS, dwAudio, 1)
1423  TEST_FIELD_OFFSET(MCI_SEQ_SET_PARMS, dwAudio, 12)
1424  TEST_FIELD_SIZE (MCI_SEQ_SET_PARMS, dwTempo, 4)
1425  TEST_FIELD_ALIGN (MCI_SEQ_SET_PARMS, dwTempo, 1)
1426  TEST_FIELD_OFFSET(MCI_SEQ_SET_PARMS, dwTempo, 16)
1427  TEST_FIELD_SIZE (MCI_SEQ_SET_PARMS, dwPort, 4)
1428  TEST_FIELD_ALIGN (MCI_SEQ_SET_PARMS, dwPort, 1)
1430  TEST_FIELD_SIZE (MCI_SEQ_SET_PARMS, dwSlave, 4)
1431  TEST_FIELD_ALIGN (MCI_SEQ_SET_PARMS, dwSlave, 1)
1432  TEST_FIELD_OFFSET(MCI_SEQ_SET_PARMS, dwSlave, 24)
1433  TEST_FIELD_SIZE (MCI_SEQ_SET_PARMS, dwMaster, 4)
1434  TEST_FIELD_ALIGN (MCI_SEQ_SET_PARMS, dwMaster, 1)
1435  TEST_FIELD_OFFSET(MCI_SEQ_SET_PARMS, dwMaster, 28)
1439 }
1440 
1441 static 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)
1448  TEST_FIELD_OFFSET(MCI_ANIM_OPEN_PARMSA, dwCallback, 0)
1449  TEST_FIELD_SIZE (MCI_ANIM_OPEN_PARMSA, wDeviceID, 4)
1450  TEST_FIELD_ALIGN (MCI_ANIM_OPEN_PARMSA, wDeviceID, 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)
1460  TEST_FIELD_OFFSET(MCI_ANIM_OPEN_PARMSA, lpstrAlias, 28)
1467 }
1468 
1469 static 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)
1476  TEST_FIELD_OFFSET(MCI_ANIM_OPEN_PARMSW, dwCallback, 0)
1477  TEST_FIELD_SIZE (MCI_ANIM_OPEN_PARMSW, wDeviceID, 4)
1478  TEST_FIELD_ALIGN (MCI_ANIM_OPEN_PARMSW, wDeviceID, 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)
1488  TEST_FIELD_OFFSET(MCI_ANIM_OPEN_PARMSW, lpstrAlias, 28)
1495 }
1496 
1497 static 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)
1504  TEST_FIELD_OFFSET(MCI_ANIM_PLAY_PARMS, dwCallback, 0)
1511  TEST_FIELD_SIZE (MCI_ANIM_PLAY_PARMS, dwSpeed, 4)
1514 }
1515 
1516 static 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)
1523  TEST_FIELD_OFFSET(MCI_ANIM_STEP_PARMS, dwCallback, 0)
1524  TEST_FIELD_SIZE (MCI_ANIM_STEP_PARMS, dwFrames, 4)
1525  TEST_FIELD_ALIGN (MCI_ANIM_STEP_PARMS, dwFrames, 1)
1527 }
1528 
1529 static void test_pack_MCI_ANIM_WINDOW_PARMSA(void)
1530 {
1531  /* MCI_ANIM_WINDOW_PARMSA (pack 1) */
1534  TEST_FIELD_SIZE (MCI_ANIM_WINDOW_PARMSA, dwCallback, 8)
1535  TEST_FIELD_ALIGN (MCI_ANIM_WINDOW_PARMSA, dwCallback, 1)
1543  TEST_FIELD_SIZE (MCI_ANIM_WINDOW_PARMSA, lpstrText, 8)
1546 }
1547 
1548 static void test_pack_MCI_ANIM_WINDOW_PARMSW(void)
1549 {
1550  /* MCI_ANIM_WINDOW_PARMSW (pack 1) */
1553  TEST_FIELD_SIZE (MCI_ANIM_WINDOW_PARMSW, dwCallback, 8)
1554  TEST_FIELD_ALIGN (MCI_ANIM_WINDOW_PARMSW, dwCallback, 1)
1562  TEST_FIELD_SIZE (MCI_ANIM_WINDOW_PARMSW, lpstrText, 8)
1565 }
1566 
1567 static 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)
1573  TEST_FIELD_ALIGN (MCI_ANIM_UPDATE_PARMS, dwCallback, 1)
1581 }
1582 
1583 static 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)
1590  TEST_FIELD_OFFSET(MCI_OVLY_OPEN_PARMSA, dwCallback, 0)
1591  TEST_FIELD_SIZE (MCI_OVLY_OPEN_PARMSA, wDeviceID, 4)
1592  TEST_FIELD_ALIGN (MCI_OVLY_OPEN_PARMSA, wDeviceID, 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)
1602  TEST_FIELD_OFFSET(MCI_OVLY_OPEN_PARMSA, lpstrAlias, 28)
1609 }
1610 
1611 static 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)
1618  TEST_FIELD_OFFSET(MCI_OVLY_OPEN_PARMSW, dwCallback, 0)
1619  TEST_FIELD_SIZE (MCI_OVLY_OPEN_PARMSW, wDeviceID, 4)
1620  TEST_FIELD_ALIGN (MCI_OVLY_OPEN_PARMSW, wDeviceID, 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)
1630  TEST_FIELD_OFFSET(MCI_OVLY_OPEN_PARMSW, lpstrAlias, 28)
1637 }
1638 
1639 static void test_pack_MCI_OVLY_WINDOW_PARMSA(void)
1640 {
1641  /* MCI_OVLY_WINDOW_PARMSA (pack 1) */
1644  TEST_FIELD_SIZE (MCI_OVLY_WINDOW_PARMSA, dwCallback, 8)
1645  TEST_FIELD_ALIGN (MCI_OVLY_WINDOW_PARMSA, dwCallback, 1)
1653  TEST_FIELD_SIZE (MCI_OVLY_WINDOW_PARMSA, lpstrText, 8)
1656 }
1657 
1658 static void test_pack_MCI_OVLY_WINDOW_PARMSW(void)
1659 {
1660  /* MCI_OVLY_WINDOW_PARMSW (pack 1) */
1663  TEST_FIELD_SIZE (MCI_OVLY_WINDOW_PARMSW, dwCallback, 8)
1664  TEST_FIELD_ALIGN (MCI_OVLY_WINDOW_PARMSW, dwCallback, 1)
1672  TEST_FIELD_SIZE (MCI_OVLY_WINDOW_PARMSW, lpstrText, 8)
1675 }
1676 
1677 static 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)
1684  TEST_FIELD_OFFSET(MCI_OVLY_SAVE_PARMSA, dwCallback, 0)
1685  TEST_FIELD_SIZE (MCI_OVLY_SAVE_PARMSA, lpfilename, 8)
1686  TEST_FIELD_ALIGN (MCI_OVLY_SAVE_PARMSA, lpfilename, 1)
1687  TEST_FIELD_OFFSET(MCI_OVLY_SAVE_PARMSA, lpfilename, 8)
1691 }
1692 
1693 static 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)
1700  TEST_FIELD_OFFSET(MCI_OVLY_SAVE_PARMSW, dwCallback, 0)
1701  TEST_FIELD_SIZE (MCI_OVLY_SAVE_PARMSW, lpfilename, 8)
1702  TEST_FIELD_ALIGN (MCI_OVLY_SAVE_PARMSW, lpfilename, 1)
1703  TEST_FIELD_OFFSET(MCI_OVLY_SAVE_PARMSW, lpfilename, 8)
1707 }
1708 
1709 static 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)
1716  TEST_FIELD_OFFSET(MCI_OVLY_LOAD_PARMSA, dwCallback, 0)
1717  TEST_FIELD_SIZE (MCI_OVLY_LOAD_PARMSA, lpfilename, 8)
1718  TEST_FIELD_ALIGN (MCI_OVLY_LOAD_PARMSA, lpfilename, 1)
1719  TEST_FIELD_OFFSET(MCI_OVLY_LOAD_PARMSA, lpfilename, 8)
1723 }
1724 
1725 static 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)
1732  TEST_FIELD_OFFSET(MCI_OVLY_LOAD_PARMSW, dwCallback, 0)
1733  TEST_FIELD_SIZE (MCI_OVLY_LOAD_PARMSW, lpfilename, 8)
1734  TEST_FIELD_ALIGN (MCI_OVLY_LOAD_PARMSW, lpfilename, 1)
1735  TEST_FIELD_OFFSET(MCI_OVLY_LOAD_PARMSW, lpfilename, 8)
1739 }
1740 
1741 static 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)
1748  TEST_FIELD_OFFSET(MCI_DGV_RECT_PARMS, dwCallback, 0)
1752 }
1753 
1754 static void test_pack_MCI_DGV_CAPTURE_PARMSA(void)
1755 {
1756  /* MCI_DGV_CAPTURE_PARMSA (pack 1) */
1759  TEST_FIELD_SIZE (MCI_DGV_CAPTURE_PARMSA, dwCallback, 8)
1760  TEST_FIELD_ALIGN (MCI_DGV_CAPTURE_PARMSA, dwCallback, 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 
1770 static void test_pack_MCI_DGV_CAPTURE_PARMSW(void)
1771 {
1772  /* MCI_DGV_CAPTURE_PARMSW (pack 1) */
1775  TEST_FIELD_SIZE (MCI_DGV_CAPTURE_PARMSW, dwCallback, 8)
1776  TEST_FIELD_ALIGN (MCI_DGV_CAPTURE_PARMSW, dwCallback, 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 
1786 static 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)
1793  TEST_FIELD_OFFSET(MCI_DGV_COPY_PARMS, dwCallback, 0)
1794  TEST_FIELD_SIZE (MCI_DGV_COPY_PARMS, dwFrom, 4)
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 
1811 static 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 
1824 static 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)
1832  TEST_FIELD_SIZE (MCI_DGV_CUT_PARMS, dwFrom, 4)
1833  TEST_FIELD_ALIGN (MCI_DGV_CUT_PARMS, dwFrom, 1)
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 
1849 static 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)
1856  TEST_FIELD_OFFSET(MCI_DGV_DELETE_PARMS, dwCallback, 0)
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 
1874 static 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)
1881  TEST_FIELD_OFFSET(MCI_DGV_INFO_PARMSA, dwCallback, 0)
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)
1886  TEST_FIELD_ALIGN (MCI_DGV_INFO_PARMSA, dwRetSize, 1)
1887  TEST_FIELD_OFFSET(MCI_DGV_INFO_PARMSA, dwRetSize, 16)
1891 }
1892 
1893 static 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)
1900  TEST_FIELD_OFFSET(MCI_DGV_INFO_PARMSW, dwCallback, 0)
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)
1905  TEST_FIELD_ALIGN (MCI_DGV_INFO_PARMSW, dwRetSize, 1)
1906  TEST_FIELD_OFFSET(MCI_DGV_INFO_PARMSW, dwRetSize, 16)
1910 }
1911 
1912 static 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)
1919  TEST_FIELD_OFFSET(MCI_DGV_LIST_PARMSA, dwCallback, 0)
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)
1926  TEST_FIELD_SIZE (MCI_DGV_LIST_PARMSA, dwNumber, 4)
1927  TEST_FIELD_ALIGN (MCI_DGV_LIST_PARMSA, dwNumber, 1)
1928  TEST_FIELD_OFFSET(MCI_DGV_LIST_PARMSA, dwNumber, 20)
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 
1937 static 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)
1944  TEST_FIELD_OFFSET(MCI_DGV_LIST_PARMSW, dwCallback, 0)
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)
1951  TEST_FIELD_SIZE (MCI_DGV_LIST_PARMSW, dwNumber, 4)
1952  TEST_FIELD_ALIGN (MCI_DGV_LIST_PARMSW, dwNumber, 1)
1953  TEST_FIELD_OFFSET(MCI_DGV_LIST_PARMSW, dwNumber, 20)
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 
1962 static 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)
1968  TEST_FIELD_ALIGN (MCI_DGV_MONITOR_PARMS, dwCallback, 1)
1970  TEST_FIELD_SIZE (MCI_DGV_MONITOR_PARMS, dwSource, 4)
1973  TEST_FIELD_SIZE (MCI_DGV_MONITOR_PARMS, dwMethod, 4)
1976 }
1977 
1978 static 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)
1985  TEST_FIELD_OFFSET(MCI_DGV_OPEN_PARMSA, dwCallback, 0)
1986  TEST_FIELD_SIZE (MCI_DGV_OPEN_PARMSA, wDeviceID, 4)
1987  TEST_FIELD_ALIGN (MCI_DGV_OPEN_PARMSA, wDeviceID, 1)
1988  TEST_FIELD_OFFSET(MCI_DGV_OPEN_PARMSA, wDeviceID, 8)
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)
1998  TEST_FIELD_SIZE (MCI_DGV_OPEN_PARMSA, dwStyle, 4)
2004 }
2005 
2006 static 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)
2013  TEST_FIELD_OFFSET(MCI_DGV_OPEN_PARMSW, dwCallback, 0)
2014  TEST_FIELD_SIZE (MCI_DGV_OPEN_PARMSW, wDeviceID, 4)
2015  TEST_FIELD_ALIGN (MCI_DGV_OPEN_PARMSW, wDeviceID, 1)
2016  TEST_FIELD_OFFSET(MCI_DGV_OPEN_PARMSW, wDeviceID, 8)
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)
2026  TEST_FIELD_SIZE (MCI_DGV_OPEN_PARMSW, dwStyle, 4)
2032 }
2033 
2034 static 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)
2041  TEST_FIELD_OFFSET(MCI_DGV_PASTE_PARMS, dwCallback, 0)
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 
2056 static void test_pack_MCI_DGV_QUALITY_PARMSA(void)
2057 {
2058  /* MCI_DGV_QUALITY_PARMSA (pack 1) */
2061  TEST_FIELD_SIZE (MCI_DGV_QUALITY_PARMSA, dwCallback, 8)
2062  TEST_FIELD_ALIGN (MCI_DGV_QUALITY_PARMSA, dwCallback, 1)
2067  TEST_FIELD_SIZE (MCI_DGV_QUALITY_PARMSA, lpstrName, 8)
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 
2078 static void test_pack_MCI_DGV_QUALITY_PARMSW(void)
2079 {
2080  /* MCI_DGV_QUALITY_PARMSW (pack 1) */
2083  TEST_FIELD_SIZE (MCI_DGV_QUALITY_PARMSW, dwCallback, 8)
2084  TEST_FIELD_ALIGN (MCI_DGV_QUALITY_PARMSW, dwCallback, 1)
2089  TEST_FIELD_SIZE (MCI_DGV_QUALITY_PARMSW, lpstrName, 8)
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 
2100 static 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)
2107  TEST_FIELD_OFFSET(MCI_DGV_RECORD_PARMS, dwCallback, 0)
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 
2125 static void test_pack_MCI_DGV_RESERVE_PARMSA(void)
2126 {
2127  /* MCI_DGV_RESERVE_PARMSA (pack 1) */
2130  TEST_FIELD_SIZE (MCI_DGV_RESERVE_PARMSA, dwCallback, 8)
2131  TEST_FIELD_ALIGN (MCI_DGV_RESERVE_PARMSA, dwCallback, 1)
2133  TEST_FIELD_SIZE (MCI_DGV_RESERVE_PARMSA, lpstrPath, 8)
2139 }
2140 
2141 static void test_pack_MCI_DGV_RESERVE_PARMSW(void)
2142 {
2143  /* MCI_DGV_RESERVE_PARMSW (pack 1) */
2146  TEST_FIELD_SIZE (MCI_DGV_RESERVE_PARMSW, dwCallback, 8)
2147  TEST_FIELD_ALIGN (MCI_DGV_RESERVE_PARMSW, dwCallback, 1)
2149  TEST_FIELD_SIZE (MCI_DGV_RESERVE_PARMSW, lpstrPath, 8)
2155 }
2156 
2157 static void test_pack_MCI_DGV_RESTORE_PARMSA(void)
2158 {
2159  /* MCI_DGV_RESTORE_PARMSA (pack 1) */
2162  TEST_FIELD_SIZE (MCI_DGV_RESTORE_PARMSA, dwCallback, 8)
2163  TEST_FIELD_ALIGN (MCI_DGV_RESTORE_PARMSA, dwCallback, 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 
2173 static void test_pack_MCI_DGV_RESTORE_PARMSW(void)
2174 {
2175  /* MCI_DGV_RESTORE_PARMSW (pack 1) */
2178  TEST_FIELD_SIZE (MCI_DGV_RESTORE_PARMSW, dwCallback, 8)
2179  TEST_FIELD_ALIGN (MCI_DGV_RESTORE_PARMSW, dwCallback, 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 
2189 static 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)
2196  TEST_FIELD_OFFSET(MCI_DGV_SAVE_PARMSA, dwCallback, 0)
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 
2205 static 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)
2212  TEST_FIELD_OFFSET(MCI_DGV_SAVE_PARMSW, dwCallback, 0)
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 
2221 static 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)
2232  TEST_FIELD_SIZE (MCI_DGV_SET_PARMS, dwAudio, 4)
2233  TEST_FIELD_ALIGN (MCI_DGV_SET_PARMS, dwAudio, 1)
2234  TEST_FIELD_OFFSET(MCI_DGV_SET_PARMS, dwAudio, 12)
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)
2238  TEST_FIELD_SIZE (MCI_DGV_SET_PARMS, dwSpeed, 4)
2239  TEST_FIELD_ALIGN (MCI_DGV_SET_PARMS, dwSpeed, 1)
2240  TEST_FIELD_OFFSET(MCI_DGV_SET_PARMS, dwSpeed, 20)
2241 }
2242 
2243 static void test_pack_MCI_DGV_SETAUDIO_PARMSA(void)
2244 {
2245  /* MCI_DGV_SETAUDIO_PARMSA (pack 1) */
2248  TEST_FIELD_SIZE (MCI_DGV_SETAUDIO_PARMSA, dwCallback, 8)
2249  TEST_FIELD_ALIGN (MCI_DGV_SETAUDIO_PARMSA, dwCallback, 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)
2265  TEST_FIELD_OFFSET(MCI_DGV_SETAUDIO_PARMSA, lpstrQuality, 28)
2266 }
2267 
2268 static void test_pack_MCI_DGV_SETAUDIO_PARMSW(void)
2269 {
2270  /* MCI_DGV_SETAUDIO_PARMSW (pack 1) */
2273  TEST_FIELD_SIZE (MCI_DGV_SETAUDIO_PARMSW, dwCallback, 8)
2274  TEST_FIELD_ALIGN (MCI_DGV_SETAUDIO_PARMSW, dwCallback, 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)
2290  TEST_FIELD_OFFSET(MCI_DGV_SETAUDIO_PARMSW, lpstrQuality, 28)
2291 }
2292 
2293 static 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)
2300  TEST_FIELD_OFFSET(MCI_DGV_SIGNAL_PARMS, dwCallback, 0)
2301  TEST_FIELD_SIZE (MCI_DGV_SIGNAL_PARMS, dwPosition, 4)
2302  TEST_FIELD_ALIGN (MCI_DGV_SIGNAL_PARMS, dwPosition, 1)
2303  TEST_FIELD_OFFSET(MCI_DGV_SIGNAL_PARMS, dwPosition, 8)
2304  TEST_FIELD_SIZE (MCI_DGV_SIGNAL_PARMS, dwPeriod, 4)
2305  TEST_FIELD_ALIGN (MCI_DGV_SIGNAL_PARMS, dwPeriod, 1)
2307  TEST_FIELD_SIZE (MCI_DGV_SIGNAL_PARMS, dwUserParm, 4)
2308  TEST_FIELD_ALIGN (MCI_DGV_SIGNAL_PARMS, dwUserParm, 1)
2309  TEST_FIELD_OFFSET(MCI_DGV_SIGNAL_PARMS, dwUserParm, 16)
2310 }
2311 
2312 static void test_pack_MCI_DGV_SETVIDEO_PARMSA(void)
2313 {
2314  /* MCI_DGV_SETVIDEO_PARMSA (pack 1) */
2317  TEST_FIELD_SIZE (MCI_DGV_SETVIDEO_PARMSA, dwCallback, 8)
2318  TEST_FIELD_ALIGN (MCI_DGV_SETVIDEO_PARMSA, dwCallback, 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)
2334  TEST_FIELD_OFFSET(MCI_DGV_SETVIDEO_PARMSA, lpstrQuality, 28)
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 
2340 static void test_pack_MCI_DGV_SETVIDEO_PARMSW(void)
2341 {
2342  /* MCI_DGV_SETVIDEO_PARMSW (pack 1) */
2345  TEST_FIELD_SIZE (MCI_DGV_SETVIDEO_PARMSW, dwCallback, 8)
2346  TEST_FIELD_ALIGN (MCI_DGV_SETVIDEO_PARMSW, dwCallback, 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)
2362  TEST_FIELD_OFFSET(MCI_DGV_SETVIDEO_PARMSW, lpstrQuality, 28)
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 
2368 static 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)
2374  TEST_FIELD_ALIGN (MCI_DGV_STATUS_PARMSA, dwCallback, 1)
2376  TEST_FIELD_SIZE (MCI_DGV_STATUS_PARMSA, dwReturn, 8)
2385  TEST_FIELD_SIZE (MCI_DGV_STATUS_PARMSA, lpstrDrive, 8)
2386  TEST_FIELD_ALIGN (MCI_DGV_STATUS_PARMSA, lpstrDrive, 1)
2387  TEST_FIELD_OFFSET(MCI_DGV_STATUS_PARMSA, lpstrDrive, 24)
2388  TEST_FIELD_SIZE (MCI_DGV_STATUS_PARMSA, dwReference, 4)
2389  TEST_FIELD_ALIGN (MCI_DGV_STATUS_PARMSA, dwReference, 1)
2390  TEST_FIELD_OFFSET(MCI_DGV_STATUS_PARMSA, dwReference, 32)
2391 }
2392 
2393 static 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)
2399  TEST_FIELD_ALIGN (MCI_DGV_STATUS_PARMSW, dwCallback, 1)
2401  TEST_FIELD_SIZE (MCI_DGV_STATUS_PARMSW, dwReturn, 8)
2410  TEST_FIELD_SIZE (MCI_DGV_STATUS_PARMSW, lpstrDrive, 8)
2411  TEST_FIELD_ALIGN (MCI_DGV_STATUS_PARMSW, lpstrDrive, 1)
2412  TEST_FIELD_OFFSET(MCI_DGV_STATUS_PARMSW, lpstrDrive, 24)
2413  TEST_FIELD_SIZE (MCI_DGV_STATUS_PARMSW, dwReference, 4)
2414  TEST_FIELD_ALIGN (MCI_DGV_STATUS_PARMSW, dwReference, 1)
2415  TEST_FIELD_OFFSET(MCI_DGV_STATUS_PARMSW, dwReference, 32)
2416 }
2417 
2418 static 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)
2425  TEST_FIELD_OFFSET(MCI_DGV_STEP_PARMS, dwCallback, 0)
2426  TEST_FIELD_SIZE (MCI_DGV_STEP_PARMS, dwFrames, 4)
2427  TEST_FIELD_ALIGN (MCI_DGV_STEP_PARMS, dwFrames, 1)
2429 }
2430 
2431 static 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)
2438  TEST_FIELD_OFFSET(MCI_DGV_UPDATE_PARMS, dwCallback, 0)
2445 }
2446 
2447 static 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)
2453  TEST_FIELD_ALIGN (MCI_DGV_WINDOW_PARMSA, dwCallback, 1)
2458  TEST_FIELD_SIZE (MCI_DGV_WINDOW_PARMSA, nCmdShow, 4)
2461  TEST_FIELD_SIZE (MCI_DGV_WINDOW_PARMSA, lpstrText, 8)
2462  TEST_FIELD_ALIGN (MCI_DGV_WINDOW_PARMSA, lpstrText, 1)
2464 }
2465 
2466 static 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)
2472  TEST_FIELD_ALIGN (MCI_DGV_WINDOW_PARMSW, dwCallback, 1)
2477  TEST_FIELD_SIZE (MCI_DGV_WINDOW_PARMSW, nCmdShow, 4)
2480  TEST_FIELD_SIZE (MCI_DGV_WINDOW_PARMSW, lpstrText, 8)
2481  TEST_FIELD_ALIGN (MCI_DGV_WINDOW_PARMSW, lpstrText, 1)
2483 }
2484 
2485 #else /* _WIN64 */
2486 
2487 static 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 
2495 static void test_pack_DRVCONFIGINFO(void)
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 
2511 static void test_pack_WAVEHDR(void)
2512 {
2513  /* WAVEHDR (pack 1) */
2514  TEST_TYPE_SIZE (WAVEHDR, 32)
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 
2542 static void test_pack_WAVEOUTCAPSA(void)
2543 {
2544  /* WAVEOUTCAPSA (pack 1) */
2545  TEST_FIELD_SIZE (WAVEOUTCAPSA, wMid, 2)
2546  TEST_FIELD_ALIGN (WAVEOUTCAPSA, wMid, 1)
2548  TEST_FIELD_SIZE (WAVEOUTCAPSA, wPid, 2)
2549  TEST_FIELD_ALIGN (WAVEOUTCAPSA, wPid, 1)
2551  TEST_FIELD_SIZE (WAVEOUTCAPSA, vDriverVersion, 4)
2552  TEST_FIELD_ALIGN (WAVEOUTCAPSA, vDriverVersion, 1)
2553  TEST_FIELD_OFFSET(WAVEOUTCAPSA, vDriverVersion, 4)
2554 }
2555 
2556 static void test_pack_WAVEOUTCAPSW(void)
2557 {
2558  /* WAVEOUTCAPSW (pack 1) */
2559  TEST_FIELD_SIZE (WAVEOUTCAPSW, wMid, 2)
2560  TEST_FIELD_ALIGN (WAVEOUTCAPSW, wMid, 1)
2562  TEST_FIELD_SIZE (WAVEOUTCAPSW, wPid, 2)
2563  TEST_FIELD_ALIGN (WAVEOUTCAPSW, wPid, 1)
2565  TEST_FIELD_SIZE (WAVEOUTCAPSW, vDriverVersion, 4)
2566  TEST_FIELD_ALIGN (WAVEOUTCAPSW, vDriverVersion, 1)
2567  TEST_FIELD_OFFSET(WAVEOUTCAPSW, vDriverVersion, 4)
2568 }
2569 
2570 static void test_pack_WAVEOUTCAPS2A(void)
2571 {
2572  /* WAVEOUTCAPS2A (pack 1) */
2573  TEST_FIELD_SIZE (WAVEOUTCAPS2A, wMid, 2)
2574  TEST_FIELD_ALIGN (WAVEOUTCAPS2A, wMid, 1)
2576  TEST_FIELD_SIZE (WAVEOUTCAPS2A, wPid, 2)
2577  TEST_FIELD_ALIGN (WAVEOUTCAPS2A, wPid, 1)
2579  TEST_FIELD_SIZE (WAVEOUTCAPS2A, vDriverVersion, 4)
2580  TEST_FIELD_ALIGN (WAVEOUTCAPS2A, vDriverVersion, 1)
2581  TEST_FIELD_OFFSET(WAVEOUTCAPS2A, vDriverVersion, 4)
2582 }
2583 
2584 static void test_pack_WAVEOUTCAPS2W(void)
2585 {
2586  /* WAVEOUTCAPS2W (pack 1) */
2587  TEST_FIELD_SIZE (WAVEOUTCAPS2W, wMid, 2)
2588  TEST_FIELD_ALIGN (WAVEOUTCAPS2W, wMid, 1)
2590  TEST_FIELD_SIZE (WAVEOUTCAPS2W, wPid, 2)
2591  TEST_FIELD_ALIGN (WAVEOUTCAPS2W, wPid, 1)
2593  TEST_FIELD_SIZE (WAVEOUTCAPS2W, vDriverVersion, 4)
2594  TEST_FIELD_ALIGN (WAVEOUTCAPS2W, vDriverVersion, 1)
2595  TEST_FIELD_OFFSET(WAVEOUTCAPS2W, vDriverVersion, 4)
2596 }
2597 
2598 static void test_pack_WAVEINCAPSA(void)
2599 {
2600  /* WAVEINCAPSA (pack 1) */
2601  TEST_FIELD_SIZE (WAVEINCAPSA, wMid, 2)
2602  TEST_FIELD_ALIGN (WAVEINCAPSA, wMid, 1)
2603  TEST_FIELD_OFFSET(WAVEINCAPSA, wMid, 0)
2604  TEST_FIELD_SIZE (WAVEINCAPSA, wPid, 2)
2605  TEST_FIELD_ALIGN (WAVEINCAPSA, wPid, 1)
2606  TEST_FIELD_OFFSET(WAVEINCAPSA, wPid, 2)
2607  TEST_FIELD_SIZE (WAVEINCAPSA, vDriverVersion, 4)
2608  TEST_FIELD_ALIGN (WAVEINCAPSA, vDriverVersion, 1)
2609  TEST_FIELD_OFFSET(WAVEINCAPSA, vDriverVersion, 4)
2610 }
2611 
2612 static void test_pack_WAVEINCAPSW(void)
2613 {
2614  /* WAVEINCAPSW (pack 1) */
2615  TEST_FIELD_SIZE (WAVEINCAPSW, wMid, 2)
2616  TEST_FIELD_ALIGN (WAVEINCAPSW, wMid, 1)
2617  TEST_FIELD_OFFSET(WAVEINCAPSW, wMid, 0)
2618  TEST_FIELD_SIZE (WAVEINCAPSW, wPid, 2)
2619  TEST_FIELD_ALIGN (WAVEINCAPSW, wPid, 1)
2620  TEST_FIELD_OFFSET(WAVEINCAPSW, wPid, 2)
2621  TEST_FIELD_SIZE (WAVEINCAPSW, vDriverVersion, 4)
2622  TEST_FIELD_ALIGN (WAVEINCAPSW, vDriverVersion, 1)
2623  TEST_FIELD_OFFSET(WAVEINCAPSW, vDriverVersion, 4)
2624 }
2625 
2626 static void test_pack_WAVEINCAPS2A(void)
2627 {
2628  /* WAVEINCAPS2A (pack 1) */
2629  TEST_FIELD_SIZE (WAVEINCAPS2A, wMid, 2)
2630  TEST_FIELD_ALIGN (WAVEINCAPS2A, wMid, 1)
2632  TEST_FIELD_SIZE (WAVEINCAPS2A, wPid, 2)
2633  TEST_FIELD_ALIGN (WAVEINCAPS2A, wPid, 1)
2635  TEST_FIELD_SIZE (WAVEINCAPS2A, vDriverVersion, 4)
2636  TEST_FIELD_ALIGN (WAVEINCAPS2A, vDriverVersion, 1)
2637  TEST_FIELD_OFFSET(WAVEINCAPS2A, vDriverVersion, 4)
2638 }
2639 
2640 static void test_pack_WAVEINCAPS2W(void)
2641 {
2642  /* WAVEINCAPS2W (pack 1) */
2643  TEST_FIELD_SIZE (WAVEINCAPS2W, wMid, 2)
2644  TEST_FIELD_ALIGN (WAVEINCAPS2W, wMid, 1)
2646  TEST_FIELD_SIZE (WAVEINCAPS2W, wPid, 2)
2647  TEST_FIELD_ALIGN (WAVEINCAPS2W, wPid, 1)
2649  TEST_FIELD_SIZE (WAVEINCAPS2W, vDriverVersion, 4)
2650  TEST_FIELD_ALIGN (WAVEINCAPS2W, vDriverVersion, 1)
2651  TEST_FIELD_OFFSET(WAVEINCAPS2W, vDriverVersion, 4)
2652 }
2653 
2654 static 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 
2676 static void test_pack_PCMWAVEFORMAT(void)
2677 {
2678  /* PCMWAVEFORMAT (pack 1) */
2681  TEST_FIELD_SIZE (PCMWAVEFORMAT, wf, 14)
2684  TEST_FIELD_SIZE (PCMWAVEFORMAT, wBitsPerSample, 2)
2685  TEST_FIELD_ALIGN (PCMWAVEFORMAT, wBitsPerSample, 1)
2686  TEST_FIELD_OFFSET(PCMWAVEFORMAT, wBitsPerSample, 14)
2687 }
2688 
2689 static 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 
2717 static void test_pack_MIDIOUTCAPSA(void)
2718 {
2719  /* MIDIOUTCAPSA (pack 1) */
2720  TEST_FIELD_SIZE (MIDIOUTCAPSA, wMid, 2)
2721  TEST_FIELD_ALIGN (MIDIOUTCAPSA, wMid, 1)
2723  TEST_FIELD_SIZE (MIDIOUTCAPSA, wPid, 2)
2724  TEST_FIELD_ALIGN (MIDIOUTCAPSA, wPid, 1)
2726  TEST_FIELD_SIZE (MIDIOUTCAPSA, vDriverVersion, 4)
2727  TEST_FIELD_ALIGN (MIDIOUTCAPSA, vDriverVersion, 1)
2728  TEST_FIELD_OFFSET(MIDIOUTCAPSA, vDriverVersion, 4)
2729 }
2730 
2731 static void test_pack_MIDIOUTCAPSW(void)
2732 {
2733  /* MIDIOUTCAPSW (pack 1) */
2734  TEST_FIELD_SIZE (MIDIOUTCAPSW, wMid, 2)
2735  TEST_FIELD_ALIGN (MIDIOUTCAPSW, wMid, 1)
2737  TEST_FIELD_SIZE (MIDIOUTCAPSW, wPid, 2)
2738  TEST_FIELD_ALIGN (MIDIOUTCAPSW, wPid, 1)
2740  TEST_FIELD_SIZE (MIDIOUTCAPSW, vDriverVersion, 4)
2741  TEST_FIELD_ALIGN (MIDIOUTCAPSW, vDriverVersion, 1)
2742  TEST_FIELD_OFFSET(MIDIOUTCAPSW, vDriverVersion, 4)
2743 }
2744 
2745 static void test_pack_MIDIOUTCAPS2A(void)
2746 {
2747  /* MIDIOUTCAPS2A (pack 1) */
2748  TEST_FIELD_SIZE (MIDIOUTCAPS2A, wMid, 2)
2749  TEST_FIELD_ALIGN (MIDIOUTCAPS2A, wMid, 1)
2751  TEST_FIELD_SIZE (MIDIOUTCAPS2A, wPid, 2)
2752  TEST_FIELD_ALIGN (MIDIOUTCAPS2A, wPid, 1)
2754  TEST_FIELD_SIZE (MIDIOUTCAPS2A, vDriverVersion, 4)
2755  TEST_FIELD_ALIGN (MIDIOUTCAPS2A, vDriverVersion, 1)
2756  TEST_FIELD_OFFSET(MIDIOUTCAPS2A, vDriverVersion, 4)
2757 }
2758 
2759 static void test_pack_MIDIOUTCAPS2W(void)
2760 {
2761  /* MIDIOUTCAPS2W (pack 1) */
2762  TEST_FIELD_SIZE (MIDIOUTCAPS2W, wMid, 2)
2763  TEST_FIELD_ALIGN (MIDIOUTCAPS2W, wMid, 1)
2765  TEST_FIELD_SIZE (MIDIOUTCAPS2W, wPid, 2)
2766  TEST_FIELD_ALIGN (MIDIOUTCAPS2W, wPid, 1)
2768  TEST_FIELD_SIZE (MIDIOUTCAPS2W, vDriverVersion, 4)
2769  TEST_FIELD_ALIGN (MIDIOUTCAPS2W, vDriverVersion, 1)
2770  TEST_FIELD_OFFSET(MIDIOUTCAPS2W, vDriverVersion, 4)
2771 }
2772 
2773 static void test_pack_MIDIINCAPSA(void)
2774 {
2775  /* MIDIINCAPSA (pack 1) */
2776  TEST_FIELD_SIZE (MIDIINCAPSA, wMid, 2)
2777  TEST_FIELD_ALIGN (MIDIINCAPSA, wMid, 1)
2778  TEST_FIELD_OFFSET(MIDIINCAPSA, wMid, 0)
2779  TEST_FIELD_SIZE (MIDIINCAPSA, wPid, 2)
2780  TEST_FIELD_ALIGN (MIDIINCAPSA, wPid, 1)
2781  TEST_FIELD_OFFSET(MIDIINCAPSA, wPid, 2)
2782  TEST_FIELD_SIZE (MIDIINCAPSA, vDriverVersion, 4)
2783  TEST_FIELD_ALIGN (MIDIINCAPSA, vDriverVersion, 1)
2784  TEST_FIELD_OFFSET(MIDIINCAPSA, vDriverVersion, 4)
2785 }
2786 
2787 static void test_pack_MIDIINCAPSW(void)
2788 {
2789  /* MIDIINCAPSW (pack 1) */
2790  TEST_FIELD_SIZE (MIDIINCAPSW, wMid, 2)
2791  TEST_FIELD_ALIGN (MIDIINCAPSW, wMid, 1)
2792  TEST_FIELD_OFFSET(MIDIINCAPSW, wMid, 0)
2793  TEST_FIELD_SIZE (MIDIINCAPSW, wPid, 2)
2794  TEST_FIELD_ALIGN (MIDIINCAPSW, wPid, 1)
2795  TEST_FIELD_OFFSET(MIDIINCAPSW, wPid, 2)
2796  TEST_FIELD_SIZE (MIDIINCAPSW, vDriverVersion, 4)
2797  TEST_FIELD_ALIGN (MIDIINCAPSW, vDriverVersion, 1)
2798  TEST_FIELD_OFFSET(MIDIINCAPSW, vDriverVersion, 4)
2799 }
2800 
2801 static void test_pack_MIDIINCAPS2A(void)
2802 {
2803  /* MIDIINCAPS2A (pack 1) */
2804  TEST_FIELD_SIZE (MIDIINCAPS2A, wMid, 2)
2805  TEST_FIELD_ALIGN (MIDIINCAPS2A, wMid, 1)
2807  TEST_FIELD_SIZE (MIDIINCAPS2A, wPid, 2)
2808  TEST_FIELD_ALIGN (MIDIINCAPS2A, wPid, 1)
2810  TEST_FIELD_SIZE (MIDIINCAPS2A, vDriverVersion, 4)
2811  TEST_FIELD_ALIGN (MIDIINCAPS2A, vDriverVersion, 1)
2812  TEST_FIELD_OFFSET(MIDIINCAPS2A, vDriverVersion, 4)
2813 }
2814 
2815 static void test_pack_MIDIINCAPS2W(void)
2816 {
2817  /* MIDIINCAPS2W (pack 1) */
2818  TEST_FIELD_SIZE (MIDIINCAPS2W, wMid, 2)
2819  TEST_FIELD_ALIGN (MIDIINCAPS2W, wMid, 1)
2821  TEST_FIELD_SIZE (MIDIINCAPS2W, wPid, 2)
2822  TEST_FIELD_ALIGN (MIDIINCAPS2W, wPid, 1)
2824  TEST_FIELD_SIZE (MIDIINCAPS2W, vDriverVersion, 4)
2825  TEST_FIELD_ALIGN (MIDIINCAPS2W, vDriverVersion, 1)
2826  TEST_FIELD_OFFSET(MIDIINCAPS2W, vDriverVersion, 4)
2827 }
2828 
2829 static void test_pack_MIDIHDR(void)
2830 {
2831  /* MIDIHDR (pack 1) */
2832  TEST_TYPE_SIZE (MIDIHDR, 64)
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 
2863 static 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 
2882 static 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 
2896 static 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 
2910 static void test_pack_AUXCAPS2A(void)
2911 {
2912  /* AUXCAPS2A (pack 1) */
2913  TEST_FIELD_SIZE (AUXCAPS2A, wMid, 2)
2914  TEST_FIELD_ALIGN (AUXCAPS2A, wMid, 1)
2915  TEST_FIELD_OFFSET(AUXCAPS2A, wMid, 0)
2916  TEST_FIELD_SIZE (AUXCAPS2A, wPid, 2)
2917  TEST_FIELD_ALIGN (AUXCAPS2A, wPid, 1)
2918  TEST_FIELD_OFFSET(AUXCAPS2A, wPid, 2)
2919  TEST_FIELD_SIZE (AUXCAPS2A, vDriverVersion, 4)
2920  TEST_FIELD_ALIGN (AUXCAPS2A, vDriverVersion, 1)
2921  TEST_FIELD_OFFSET(AUXCAPS2A, vDriverVersion, 4)
2922 }
2923 
2924 static void test_pack_AUXCAPS2W(void)
2925 {
2926  /* AUXCAPS2W (pack 1) */
2927  TEST_FIELD_SIZE (AUXCAPS2W, wMid, 2)
2928  TEST_FIELD_ALIGN (AUXCAPS2W, wMid, 1)
2929  TEST_FIELD_OFFSET(AUXCAPS2W, wMid, 0)
2930  TEST_FIELD_SIZE (AUXCAPS2W, wPid, 2)
2931  TEST_FIELD_ALIGN (AUXCAPS2W, wPid, 1)
2932  TEST_FIELD_OFFSET(AUXCAPS2W, wPid, 2)
2933  TEST_FIELD_SIZE (AUXCAPS2W, vDriverVersion, 4)
2934  TEST_FIELD_ALIGN (AUXCAPS2W, vDriverVersion, 1)
2935  TEST_FIELD_OFFSET(AUXCAPS2W, vDriverVersion, 4)
2936 }
2937 
2938 static 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 
2951 static 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 
2962 static 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 
2973 static void test_pack_JOYCAPS2A(void)
2974 {
2975  /* JOYCAPS2A (pack 1) */
2976  TEST_FIELD_SIZE (JOYCAPS2A, wMid, 2)
2977  TEST_FIELD_ALIGN (JOYCAPS2A, wMid, 1)
2978  TEST_FIELD_OFFSET(JOYCAPS2A, wMid, 0)
2979  TEST_FIELD_SIZE (JOYCAPS2A, wPid, 2)
2980  TEST_FIELD_ALIGN (JOYCAPS2A, wPid, 1)
2981  TEST_FIELD_OFFSET(JOYCAPS2A, wPid, 2)
2982 }
2983 
2984 static void test_pack_JOYCAPS2W(void)
2985 {
2986  /* JOYCAPS2W (pack 1) */
2987  TEST_FIELD_SIZE (JOYCAPS2W, wMid, 2)
2988  TEST_FIELD_ALIGN (JOYCAPS2W, wMid, 1)
2989  TEST_FIELD_OFFSET(JOYCAPS2W, wMid, 0)
2990  TEST_FIELD_SIZE (JOYCAPS2W, wPid, 2)
2991  TEST_FIELD_ALIGN (JOYCAPS2W, wPid, 1)
2992  TEST_FIELD_OFFSET(JOYCAPS2W, wPid, 2)
2993 }
2994 
2995 static void test_pack_JOYINFO(void)
2996 {
2997  /* JOYINFO (pack 1) */
2998  TEST_TYPE_SIZE (JOYINFO, 16)
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 
3014 static 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 
3060 static void test_pack_MIXERCAPSA(void)
3061 {
3062  /* MIXERCAPSA (pack 1) */
3063  TEST_FIELD_SIZE (MIXERCAPSA, wMid, 2)
3064  TEST_FIELD_ALIGN (MIXERCAPSA, wMid, 1)
3065  TEST_FIELD_OFFSET(MIXERCAPSA, wMid, 0)
3066  TEST_FIELD_SIZE (MIXERCAPSA, wPid, 2)
3067  TEST_FIELD_ALIGN (MIXERCAPSA, wPid, 1)
3068  TEST_FIELD_OFFSET(MIXERCAPSA, wPid, 2)
3069  TEST_FIELD_SIZE (MIXERCAPSA, vDriverVersion, 4)
3070  TEST_FIELD_ALIGN (MIXERCAPSA, vDriverVersion, 1)
3071  TEST_FIELD_OFFSET(MIXERCAPSA, vDriverVersion, 4)
3072 }
3073 
3074 static void test_pack_MIXERCAPSW(void)
3075 {
3076  /* MIXERCAPSW (pack 1) */
3077  TEST_FIELD_SIZE (MIXERCAPSW, wMid, 2)
3078  TEST_FIELD_ALIGN (MIXERCAPSW, wMid, 1)
3079  TEST_FIELD_OFFSET(MIXERCAPSW, wMid, 0)
3080  TEST_FIELD_SIZE (MIXERCAPSW, wPid, 2)
3081  TEST_FIELD_ALIGN (MIXERCAPSW, wPid, 1)
3082  TEST_FIELD_OFFSET(MIXERCAPSW, wPid, 2)
3083  TEST_FIELD_SIZE (MIXERCAPSW, vDriverVersion, 4)
3084  TEST_FIELD_ALIGN (MIXERCAPSW, vDriverVersion, 1)
3085  TEST_FIELD_OFFSET(MIXERCAPSW, vDriverVersion, 4)
3086 }
3087 
3088 static void test_pack_MIXERCAPS2A(void)
3089 {
3090  /* MIXERCAPS2A (pack 1) */
3091  TEST_FIELD_SIZE (MIXERCAPS2A, wMid, 2)
3092  TEST_FIELD_ALIGN (MIXERCAPS2A, wMid, 1)
3093  TEST_FIELD_OFFSET(MIXERCAPS2A, wMid, 0)
3094  TEST_FIELD_SIZE (MIXERCAPS2A, wPid, 2)
3095  TEST_FIELD_ALIGN (MIXERCAPS2A, wPid, 1)
3096  TEST_FIELD_OFFSET(MIXERCAPS2A, wPid, 2)
3097  TEST_FIELD_SIZE (MIXERCAPS2A, vDriverVersion, 4)
3098  TEST_FIELD_ALIGN (MIXERCAPS2A, vDriverVersion, 1)
3099  TEST_FIELD_OFFSET(MIXERCAPS2A, vDriverVersion, 4)
3100 }
3101 
3102 static void test_pack_MIXERCAPS2W(void)
3103 {
3104  /* MIXERCAPS2W (pack 1) */
3105  TEST_FIELD_SIZE (MIXERCAPS2W, wMid, 2)
3106  TEST_FIELD_ALIGN (MIXERCAPS2W, wMid, 1)
3107  TEST_FIELD_OFFSET(MIXERCAPS2W, wMid, 0)
3108  TEST_FIELD_SIZE (MIXERCAPS2W, wPid, 2)
3109  TEST_FIELD_ALIGN (MIXERCAPS2W, wPid, 1)
3110  TEST_FIELD_OFFSET(MIXERCAPS2W, wPid, 2)
3111  TEST_FIELD_SIZE (MIXERCAPS2W, vDriverVersion, 4)
3112  TEST_FIELD_ALIGN (MIXERCAPS2W, vDriverVersion, 1)
3113  TEST_FIELD_OFFSET(MIXERCAPS2W, vDriverVersion, 4)
3114 }
3115 
3116 static 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 
3151 static 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 
3186 static void test_pack_MIXERCONTROLA(void)
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 
3206 static void test_pack_MIXERCONTROLW(void)
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) */
3229  TEST_FIELD_SIZE (MIXERCONTROLDETAILS, cbStruct, 4)
3230  TEST_FIELD_ALIGN (MIXERCONTROLDETAILS, cbStruct, 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)
3236  TEST_FIELD_ALIGN (MIXERCONTROLDETAILS, cChannels, 1)
3237  TEST_FIELD_OFFSET(MIXERCONTROLDETAILS, cChannels, 8)
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 
3292 static 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 
3309 static void test_pack_MMCKINFO(void)
3310 {
3311  /* MMCKINFO (pack 1) */
3312  TEST_TYPE_SIZE (MMCKINFO, 20)
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 
3341 static void test_pack_MCI_OPEN_PARMSA(void)
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 
3363 static void test_pack_MCI_OPEN_PARMSW(void)
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 
3385 static void test_pack_MCI_PLAY_PARMS(void)
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)
3395  TEST_FIELD_OFFSET(MCI_PLAY_PARMS, dwFrom, 4)
3396  TEST_FIELD_SIZE (MCI_PLAY_PARMS, dwTo, 4)
3397  TEST_FIELD_ALIGN (MCI_PLAY_PARMS, dwTo, 1)
3399 }
3400 
3401 static void test_pack_MCI_SEEK_PARMS(void)
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)
3409  TEST_FIELD_SIZE (MCI_SEEK_PARMS, dwTo, 4)
3410  TEST_FIELD_ALIGN (MCI_SEEK_PARMS, dwTo, 1)
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)
3424  TEST_FIELD_OFFSET(MCI_STATUS_PARMS, dwReturn, 4)
3425  TEST_FIELD_SIZE (MCI_STATUS_PARMS, dwItem, 4)
3426  TEST_FIELD_ALIGN (MCI_STATUS_PARMS, dwItem, 1)
3428  TEST_FIELD_SIZE (MCI_STATUS_PARMS, dwTrack, 4)
3429  TEST_FIELD_ALIGN (MCI_STATUS_PARMS, dwTrack, 1)
3430  TEST_FIELD_OFFSET(MCI_STATUS_PARMS, dwTrack, 12)
3431 }
3432 
3433 static void test_pack_MCI_INFO_PARMSA(void)
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 
3449 static void test_pack_MCI_INFO_PARMSW(void)
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)
3472  TEST_FIELD_OFFSET(MCI_GETDEVCAPS_PARMS, dwCallback, 0)
3473  TEST_FIELD_SIZE (MCI_GETDEVCAPS_PARMS, dwReturn, 4)
3474  TEST_FIELD_ALIGN (MCI_GETDEVCAPS_PARMS, dwReturn, 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)
3488  TEST_FIELD_OFFSET(MCI_SYSINFO_PARMSA, dwCallback, 0)
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)
3494  TEST_FIELD_OFFSET(MCI_SYSINFO_PARMSA, dwRetSize, 8)
3495  TEST_FIELD_SIZE (MCI_SYSINFO_PARMSA, dwNumber, 4)
3496  TEST_FIELD_ALIGN (MCI_SYSINFO_PARMSA, dwNumber, 1)
3497  TEST_FIELD_OFFSET(MCI_SYSINFO_PARMSA, dwNumber, 12)
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)
3510  TEST_FIELD_OFFSET(MCI_SYSINFO_PARMSW, dwCallback, 0)
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)
3516  TEST_FIELD_OFFSET(MCI_SYSINFO_PARMSW, dwRetSize, 8)
3517  TEST_FIELD_SIZE (MCI_SYSINFO_PARMSW, dwNumber, 4)
3518  TEST_FIELD_ALIGN (MCI_SYSINFO_PARMSW, dwNumber, 1)
3519  TEST_FIELD_OFFSET(MCI_SYSINFO_PARMSW, dwNumber, 12)
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 
3525 static void test_pack_MCI_SET_PARMS(void)
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 
3541 static void test_pack_MCI_BREAK_PARMS(void)
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)
3551  TEST_FIELD_OFFSET(MCI_BREAK_PARMS, nVirtKey, 4)
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 
3583 static void test_pack_MCI_SAVE_PARMSA(void)
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 
3596 static void test_pack_MCI_SAVE_PARMSW(void)
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 
3609 static void test_pack_MCI_LOAD_PARMSA(void)
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 
3622 static void test_pack_MCI_LOAD_PARMSW(void)
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)
3643  TEST_FIELD_SIZE (MCI_RECORD_PARMS, dwFrom, 4)
3644  TEST_FIELD_ALIGN (MCI_RECORD_PARMS, dwFrom, 1)
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)
3659  TEST_FIELD_SIZE (MCI_VD_PLAY_PARMS, dwFrom, 4)
3660  TEST_FIELD_ALIGN (MCI_VD_PLAY_PARMS, dwFrom, 1)
3665  TEST_FIELD_SIZE (MCI_VD_PLAY_PARMS, dwSpeed, 4)
3666  TEST_FIELD_ALIGN (MCI_VD_PLAY_PARMS, dwSpeed, 1)
3667  TEST_FIELD_OFFSET(MCI_VD_PLAY_PARMS, dwSpeed, 12)
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)
3680  TEST_FIELD_OFFSET(MCI_VD_STEP_PARMS, dwFrames, 4)
3681 }
3682 
3684 {
3685  /* MCI_VD_ESCAPE_PARMSA (pack 1) */
3688  TEST_FIELD_SIZE (MCI_VD_ESCAPE_PARMSA, dwCallback, 4)
3689  TEST_FIELD_ALIGN (MCI_VD_ESCAPE_PARMSA, dwCallback, 1)
3690  TEST_FIELD_OFFSET(MCI_VD_ESCAPE_PARMSA, dwCallback, 0)
3691  TEST_FIELD_SIZE (MCI_VD_ESCAPE_PARMSA, lpstrCommand, 4)
3692  TEST_FIELD_ALIGN (MCI_VD_ESCAPE_PARMSA, lpstrCommand, 1)
3693  TEST_FIELD_OFFSET(MCI_VD_ESCAPE_PARMSA, lpstrCommand, 4)
3694 }
3695 
3697 {
3698  /* MCI_VD_ESCAPE_PARMSW (pack 1) */
3701  TEST_FIELD_SIZE (MCI_VD_ESCAPE_PARMSW, dwCallback, 4)
3702  TEST_FIELD_ALIGN (MCI_VD_ESCAPE_PARMSW, dwCallback, 1)
3703  TEST_FIELD_OFFSET(MCI_VD_ESCAPE_PARMSW, dwCallback, 0)
3704  TEST_FIELD_SIZE (MCI_VD_ESCAPE_PARMSW, lpstrCommand, 4)
3705  TEST_FIELD_ALIGN (MCI_VD_ESCAPE_PARMSW, lpstrCommand, 1)
3706  TEST_FIELD_OFFSET(MCI_VD_ESCAPE_PARMSW, lpstrCommand, 4)
3707 }
3708 
3710 {
3711  /* MCI_WAVE_OPEN_PARMSA (pack 1) */
3714  TEST_FIELD_SIZE (MCI_WAVE_OPEN_PARMSA, dwCallback, 4)
3715  TEST_FIELD_ALIGN (MCI_WAVE_OPEN_PARMSA, dwCallback, 1)
3716  TEST_FIELD_OFFSET(MCI_WAVE_OPEN_PARMSA, dwCallback, 0)
3717  TEST_FIELD_SIZE (MCI_WAVE_OPEN_PARMSA, wDeviceID, 4)
3718  TEST_FIELD_ALIGN (MCI_WAVE_OPEN_PARMSA, wDeviceID, 1)
3720  TEST_FIELD_SIZE (MCI_WAVE_OPEN_PARMSA, lpstrDeviceType, 4)
3721  TEST_FIELD_ALIGN (MCI_WAVE_OPEN_PARMSA, lpstrDeviceType, 1)
3722  TEST_FIELD_OFFSET(MCI_WAVE_OPEN_PARMSA, lpstrDeviceType, 8)
3723  TEST_FIELD_SIZE (MCI_WAVE_OPEN_PARMSA, lpstrElementName, 4)
3724  TEST_FIELD_ALIGN (MCI_WAVE_OPEN_PARMSA, lpstrElementName, 1)
3725  TEST_FIELD_OFFSET(MCI_WAVE_OPEN_PARMSA, lpstrElementName, 12)
3726  TEST_FIELD_SIZE (MCI_WAVE_OPEN_PARMSA, lpstrAlias, 4)
3727  TEST_FIELD_ALIGN (MCI_WAVE_OPEN_PARMSA, lpstrAlias, 1)
3728  TEST_FIELD_OFFSET(MCI_WAVE_OPEN_PARMSA, lpstrAlias, 16)
3729  TEST_FIELD_SIZE (MCI_WAVE_OPEN_PARMSA, dwBufferSeconds, 4)
3730  TEST_FIELD_ALIGN (MCI_WAVE_OPEN_PARMSA, dwBufferSeconds, 1)
3731  TEST_FIELD_OFFSET(MCI_WAVE_OPEN_PARMSA, dwBufferSeconds, 20)
3732 }
3733 
3735 {
3736  /* MCI_WAVE_OPEN_PARMSW (pack 1) */
3739  TEST_FIELD_SIZE (MCI_WAVE_OPEN_PARMSW, dwCallback, 4)
3740  TEST_FIELD_ALIGN (MCI_WAVE_OPEN_PARMSW, dwCallback, 1)
3741  TEST_FIELD_OFFSET(MCI_WAVE_OPEN_PARMSW, dwCallback, 0)
3742  TEST_FIELD_SIZE (MCI_WAVE_OPEN_PARMSW, wDeviceID, 4)
3743  TEST_FIELD_ALIGN (MCI_WAVE_OPEN_PARMSW, wDeviceID, 1)
3745  TEST_FIELD_SIZE (MCI_WAVE_OPEN_PARMSW, lpstrDeviceType, 4)
3746  TEST_FIELD_ALIGN (MCI_WAVE_OPEN_PARMSW, lpstrDeviceType, 1)
3747  TEST_FIELD_OFFSET(MCI_WAVE_OPEN_PARMSW, lpstrDeviceType, 8)
3748  TEST_FIELD_SIZE (MCI_WAVE_OPEN_PARMSW, lpstrElementName, 4)
3749  TEST_FIELD_ALIGN (MCI_WAVE_OPEN_PARMSW, lpstrElementName, 1)
3750  TEST_FIELD_OFFSET(MCI_WAVE_OPEN_PARMSW, lpstrElementName, 12)
3751  TEST_FIELD_SIZE (MCI_WAVE_OPEN_PARMSW, lpstrAlias, 4)
3752  TEST_FIELD_ALIGN (MCI_WAVE_OPEN_PARMSW, lpstrAlias, 1)
3753  TEST_FIELD_OFFSET(MCI_WAVE_OPEN_PARMSW, lpstrAlias, 16)
3754  TEST_FIELD_SIZE (MCI_WAVE_OPEN_PARMSW, dwBufferSeconds, 4)
3755  TEST_FIELD_ALIGN (MCI_WAVE_OPEN_PARMSW, dwBufferSeconds, 1)
3756  TEST_FIELD_OFFSET(MCI_WAVE_OPEN_PARMSW, dwBufferSeconds, 20)
3757 }
3758 
3760 {
3761  /* MCI_WAVE_DELETE_PARMS (pack 1) */
3764  TEST_FIELD_SIZE (MCI_WAVE_DELETE_PARMS, dwCallback, 4)
3765  TEST_FIELD_ALIGN (MCI_WAVE_DELETE_PARMS, dwCallback, 1)
3773 }
3774 
3776 {
3777  /* MCI_WAVE_SET_PARMS (pack 1) */
3780  TEST_FIELD_SIZE (MCI_WAVE_SET_PARMS, dwCallback, 4)
3781  TEST_FIELD_ALIGN (MCI_WAVE_SET_PARMS, dwCallback, 1)
3782  TEST_FIELD_OFFSET(MCI_WAVE_SET_PARMS, dwCallback, 0)
3783  TEST_FIELD_SIZE (MCI_WAVE_SET_PARMS, dwTimeFormat, 4)
3784  TEST_FIELD_ALIGN (MCI_WAVE_SET_PARMS, dwTimeFormat, 1)
3785  TEST_FIELD_OFFSET(MCI_WAVE_SET_PARMS, dwTimeFormat, 4)
3786  TEST_FIELD_SIZE (MCI_WAVE_SET_PARMS, dwAudio, 4)
3787  TEST_FIELD_ALIGN (MCI_WAVE_SET_PARMS, dwAudio, 1)
3789  TEST_FIELD_SIZE (MCI_WAVE_SET_PARMS, wInput, 4)
3792  TEST_FIELD_SIZE (MCI_WAVE_SET_PARMS, wOutput, 4)
3793  TEST_FIELD_ALIGN (MCI_WAVE_SET_PARMS, wOutput, 1)
3795 #ifndef __REACTOS__ /* FIXME: Inspect */
3796  TEST_FIELD_SIZE (MCI_WAVE_SET_PARMS, wFormatTag, 4)
3797 #endif
3798  TEST_FIELD_ALIGN (MCI_WAVE_SET_PARMS, wFormatTag, 1)
3799  TEST_FIELD_OFFSET(MCI_WAVE_SET_PARMS, wFormatTag, 20)
3800 #ifndef __REACTOS__ /* FIXME: Inspect */
3802 #endif
3805  TEST_FIELD_SIZE (MCI_WAVE_SET_PARMS, nSamplesPerSec, 4)
3806  TEST_FIELD_ALIGN (MCI_WAVE_SET_PARMS, nSamplesPerSec, 1)
3807  TEST_FIELD_OFFSET(MCI_WAVE_SET_PARMS, nSamplesPerSec, 28)
3808  TEST_FIELD_SIZE (MCI_WAVE_SET_PARMS, nAvgBytesPerSec, 4)
3809  TEST_FIELD_ALIGN (MCI_WAVE_SET_PARMS, nAvgBytesPerSec, 1)
3810  TEST_FIELD_OFFSET(MCI_WAVE_SET_PARMS, nAvgBytesPerSec, 32)
3811 #ifndef __REACTOS__ /* FIXME: Inspect */
3812  TEST_FIELD_SIZE (MCI_WAVE_SET_PARMS, nBlockAlign, 4)
3813 #endif
3814  TEST_FIELD_ALIGN (MCI_WAVE_SET_PARMS, nBlockAlign, 1)
3815  TEST_FIELD_OFFSET(MCI_WAVE_SET_PARMS, nBlockAlign, 36)
3816 #ifndef __REACTOS__ /* FIXME: Inspect */
3817  TEST_FIELD_SIZE (MCI_WAVE_SET_PARMS, wBitsPerSample, 4)
3818 #endif
3819  TEST_FIELD_ALIGN (MCI_WAVE_SET_PARMS, wBitsPerSample, 1)
3820  TEST_FIELD_OFFSET(MCI_WAVE_SET_PARMS, wBitsPerSample, 40)
3821 }
3822 
3824 {
3825  /* MCI_SEQ_SET_PARMS (pack 1) */
3828  TEST_FIELD_SIZE (MCI_SEQ_SET_PARMS, dwCallback, 4)
3829  TEST_FIELD_ALIGN (MCI_SEQ_SET_PARMS, dwCallback, 1)
3830  TEST_FIELD_OFFSET(MCI_SEQ_SET_PARMS, dwCallback, 0)
3831  TEST_FIELD_SIZE (MCI_SEQ_SET_PARMS, dwTimeFormat, 4)
3832  TEST_FIELD_ALIGN (MCI_SEQ_SET_PARMS, dwTimeFormat, 1)
3833  TEST_FIELD_OFFSET(MCI_SEQ_SET_PARMS, dwTimeFormat, 4)
3834  TEST_FIELD_SIZE (MCI_SEQ_SET_PARMS, dwAudio, 4)
3835  TEST_FIELD_ALIGN (MCI_SEQ_SET_PARMS, dwAudio, 1)
3837  TEST_FIELD_SIZE (MCI_SEQ_SET_PARMS, dwTempo, 4)
3838  TEST_FIELD_ALIGN (MCI_SEQ_SET_PARMS, dwTempo, 1)
3839  TEST_FIELD_OFFSET(MCI_SEQ_SET_PARMS, dwTempo, 12)
3840  TEST_FIELD_SIZE (MCI_SEQ_SET_PARMS, dwPort, 4)
3841  TEST_FIELD_ALIGN (MCI_SEQ_SET_PARMS, dwPort, 1)
3843  TEST_FIELD_SIZE (MCI_SEQ_SET_PARMS, dwSlave, 4)
3844  TEST_FIELD_ALIGN (MCI_SEQ_SET_PARMS, dwSlave, 1)
3845  TEST_FIELD_OFFSET(MCI_SEQ_SET_PARMS, dwSlave, 20)
3846  TEST_FIELD_SIZE (MCI_SEQ_SET_PARMS, dwMaster, 4)
3847  TEST_FIELD_ALIGN (MCI_SEQ_SET_PARMS, dwMaster, 1)
3848  TEST_FIELD_OFFSET(MCI_SEQ_SET_PARMS, dwMaster, 24)
3852 }
3853 
3855 {
3856  /* MCI_ANIM_OPEN_PARMSA (pack 1) */
3859  TEST_FIELD_SIZE (MCI_ANIM_OPEN_PARMSA, dwCallback, 4)
3860  TEST_FIELD_ALIGN (MCI_ANIM_OPEN_PARMSA, dwCallback, 1)
3861  TEST_FIELD_OFFSET(MCI_ANIM_OPEN_PARMSA, dwCallback, 0)
3862  TEST_FIELD_SIZE (MCI_ANIM_OPEN_PARMSA, wDeviceID, 4)
3863  TEST_FIELD_ALIGN (MCI_ANIM_OPEN_PARMSA, wDeviceID, 1)
3865  TEST_FIELD_SIZE (MCI_ANIM_OPEN_PARMSA, lpstrDeviceType, 4)
3866  TEST_FIELD_ALIGN (MCI_ANIM_OPEN_PARMSA, lpstrDeviceType, 1)
3867  TEST_FIELD_OFFSET(MCI_ANIM_OPEN_PARMSA, lpstrDeviceType, 8)
3868  TEST_FIELD_SIZE (MCI_ANIM_OPEN_PARMSA, lpstrElementName, 4)
3869  TEST_FIELD_ALIGN (MCI_ANIM_OPEN_PARMSA, lpstrElementName, 1)
3870  TEST_FIELD_OFFSET(MCI_ANIM_OPEN_PARMSA, lpstrElementName, 12)
3871  TEST_FIELD_SIZE (MCI_ANIM_OPEN_PARMSA, lpstrAlias, 4)
3872  TEST_FIELD_ALIGN (MCI_ANIM_OPEN_PARMSA, lpstrAlias, 1)
3873  TEST_FIELD_OFFSET(MCI_ANIM_OPEN_PARMSA, lpstrAlias, 16)
3880 }
3881 
3883 {
3884  /* MCI_ANIM_OPEN_PARMSW (pack 1) */
3887  TEST_FIELD_SIZE (MCI_ANIM_OPEN_PARMSW, dwCallback, 4)
3888  TEST_FIELD_ALIGN (MCI_ANIM_OPEN_PARMSW, dwCallback, 1)
3889  TEST_FIELD_OFFSET(MCI_ANIM_OPEN_PARMSW, dwCallback, 0)
3890  TEST_FIELD_SIZE (MCI_ANIM_OPEN_PARMSW, wDeviceID, 4)
3891  TEST_FIELD_ALIGN (MCI_ANIM_OPEN_PARMSW, wDeviceID, 1)
3893  TEST_FIELD_SIZE (MCI_ANIM_OPEN_PARMSW, lpstrDeviceType, 4)
3894  TEST_FIELD_ALIGN (MCI_ANIM_OPEN_PARMSW, lpstrDeviceType, 1)
3895  TEST_FIELD_OFFSET(MCI_ANIM_OPEN_PARMSW, lpstrDeviceType, 8)
3896  TEST_FIELD_SIZE (MCI_ANIM_OPEN_PARMSW, lpstrElementName, 4)
3897  TEST_FIELD_ALIGN (MCI_ANIM_OPEN_PARMSW, lpstrElementName, 1)
3898  TEST_FIELD_OFFSET(MCI_ANIM_OPEN_PARMSW, lpstrElementName, 12)
3899  TEST_FIELD_SIZE (MCI_ANIM_OPEN_PARMSW, lpstrAlias, 4)
3900  TEST_FIELD_ALIGN (MCI_ANIM_OPEN_PARMSW, lpstrAlias, 1)
3901  TEST_FIELD_OFFSET(MCI_ANIM_OPEN_PARMSW, lpstrAlias, 16)
3908 }
3909 
3911 {
3912  /* MCI_ANIM_PLAY_PARMS (pack 1) */
3915  TEST_FIELD_SIZE (MCI_ANIM_PLAY_PARMS, dwCallback, 4)
3916  TEST_FIELD_ALIGN (MCI_ANIM_PLAY_PARMS, dwCallback, 1)
3917  TEST_FIELD_OFFSET(MCI_ANIM_PLAY_PARMS, dwCallback, 0)
3924  TEST_FIELD_SIZE (MCI_ANIM_PLAY_PARMS, dwSpeed, 4)
3927 }
3928 
3930 {
3931  /* MCI_ANIM_STEP_PARMS (pack 1) */
3934  TEST_FIELD_SIZE (MCI_ANIM_STEP_PARMS, dwCallback, 4)
3935  TEST_FIELD_ALIGN (MCI_ANIM_STEP_PARMS, dwCallback, 1)
3936  TEST_FIELD_OFFSET(MCI_ANIM_STEP_PARMS, dwCallback, 0)
3937  TEST_FIELD_SIZE (MCI_ANIM_STEP_PARMS, dwFrames, 4)
3938  TEST_FIELD_ALIGN (MCI_ANIM_STEP_PARMS, dwFrames, 1)
3940 }
3941 
3943 {
3944  /* MCI_ANIM_WINDOW_PARMSA (pack 1) */
3947  TEST_FIELD_SIZE (MCI_ANIM_WINDOW_PARMSA, dwCallback, 4)
3948  TEST_FIELD_ALIGN (MCI_ANIM_WINDOW_PARMSA, dwCallback, 1)
3956  TEST_FIELD_SIZE (MCI_ANIM_WINDOW_PARMSA, lpstrText, 4)
3959 }
3960 
3962 {
3963  /* MCI_ANIM_WINDOW_PARMSW (pack 1) */
3966  TEST_FIELD_SIZE (MCI_ANIM_WINDOW_PARMSW, dwCallback, 4)
3967  TEST_FIELD_ALIGN (MCI_ANIM_WINDOW_PARMSW, dwCallback, 1)
3970