1 /* File generated automatically from tools/winapi/tests.dat; do not edit! */
2 /* This file can be copied, modified and distributed without restriction. */
5 * Unit tests for data structure packing
14 #include "wine/test.h"
16 /***********************************************************************
17 * Compatibility macros
20 #define DWORD_PTR UINT_PTR
21 #define LONG_PTR INT_PTR
22 #define ULONG_PTR UINT_PTR
24 /***********************************************************************
25 * Windows API extension
28 #if defined(_MSC_VER) && (_MSC_VER >= 1300) && defined(__cplusplus)
29 # define _TYPE_ALIGNMENT(type) __alignof(type)
30 #elif defined(__GNUC__) || defined(__clang__)
31 # define _TYPE_ALIGNMENT(type) __alignof__(type)
34 * FIXME: May not be possible without a compiler extension
35 * (if type is not just a name that is, otherwise the normal
36 * TYPE_ALIGNMENT can be used)
40 #if defined(TYPE_ALIGNMENT) && defined(_MSC_VER) && _MSC_VER >= 800 && !defined(__cplusplus)
41 #pragma warning(disable:4116)
44 #if !defined(TYPE_ALIGNMENT) && defined(_TYPE_ALIGNMENT)
45 # define TYPE_ALIGNMENT _TYPE_ALIGNMENT
48 /***********************************************************************
52 #define TEST_TYPE_SIZE(type, size) C_ASSERT(sizeof(type) == size);
55 # define TEST_TYPE_ALIGN(type, align) C_ASSERT(TYPE_ALIGNMENT(type) == align);
57 # define TEST_TYPE_ALIGN(type, align)
60 #ifdef _TYPE_ALIGNMENT
61 # define TEST_TARGET_ALIGN(type, align) C_ASSERT(_TYPE_ALIGNMENT(*(type)0) == align);
62 # define TEST_FIELD_ALIGN(type, field, align) C_ASSERT(_TYPE_ALIGNMENT(((type*)0)->field) == align);
64 # define TEST_TARGET_ALIGN(type, align)
65 # define TEST_FIELD_ALIGN(type, field, align)
68 #define TEST_FIELD_OFFSET(type, field, offset) C_ASSERT(FIELD_OFFSET(type, field) == offset);
70 #define TEST_TARGET_SIZE(type, size) TEST_TYPE_SIZE(*(type)0, size)
71 #define TEST_FIELD_SIZE(type, field, size) TEST_TYPE_SIZE((((type*)0)->field), size)
72 #define TEST_TYPE_SIGNED(type) C_ASSERT((type) -1 < 0);
73 #define TEST_TYPE_UNSIGNED(type) C_ASSERT((type) -1 > 0);
78 static void test_pack_MMTIME(void)
81 TEST_FIELD_SIZE (MMTIME
, wType
, 4)
82 TEST_FIELD_ALIGN (MMTIME
, wType
, 1)
83 TEST_FIELD_OFFSET(MMTIME
, wType
, 0)
86 static void test_pack_DRVCONFIGINFO(void)
88 /* DRVCONFIGINFO (pack 1) */
89 TEST_TYPE_SIZE (DRVCONFIGINFO
, 20)
90 TEST_TYPE_ALIGN (DRVCONFIGINFO
, 1)
91 TEST_FIELD_SIZE (DRVCONFIGINFO
, dwDCISize
, 4)
92 TEST_FIELD_ALIGN (DRVCONFIGINFO
, dwDCISize
, 1)
93 TEST_FIELD_OFFSET(DRVCONFIGINFO
, dwDCISize
, 0)
94 TEST_FIELD_SIZE (DRVCONFIGINFO
, lpszDCISectionName
, 8)
95 TEST_FIELD_ALIGN (DRVCONFIGINFO
, lpszDCISectionName
, 1)
96 TEST_FIELD_OFFSET(DRVCONFIGINFO
, lpszDCISectionName
, 4)
97 TEST_FIELD_SIZE (DRVCONFIGINFO
, lpszDCIAliasName
, 8)
98 TEST_FIELD_ALIGN (DRVCONFIGINFO
, lpszDCIAliasName
, 1)
99 TEST_FIELD_OFFSET(DRVCONFIGINFO
, lpszDCIAliasName
, 12)
102 static void test_pack_WAVEHDR(void)
104 /* WAVEHDR (pack 1) */
105 TEST_TYPE_SIZE (WAVEHDR
, 48)
106 TEST_TYPE_ALIGN (WAVEHDR
, 1)
107 TEST_FIELD_SIZE (WAVEHDR
, lpData
, 8)
108 TEST_FIELD_ALIGN (WAVEHDR
, lpData
, 1)
109 TEST_FIELD_OFFSET(WAVEHDR
, lpData
, 0)
110 TEST_FIELD_SIZE (WAVEHDR
, dwBufferLength
, 4)
111 TEST_FIELD_ALIGN (WAVEHDR
, dwBufferLength
, 1)
112 TEST_FIELD_OFFSET(WAVEHDR
, dwBufferLength
, 8)
113 TEST_FIELD_SIZE (WAVEHDR
, dwBytesRecorded
, 4)
114 TEST_FIELD_ALIGN (WAVEHDR
, dwBytesRecorded
, 1)
115 TEST_FIELD_OFFSET(WAVEHDR
, dwBytesRecorded
, 12)
116 TEST_FIELD_SIZE (WAVEHDR
, dwUser
, 8)
117 TEST_FIELD_ALIGN (WAVEHDR
, dwUser
, 1)
118 TEST_FIELD_OFFSET(WAVEHDR
, dwUser
, 16)
119 TEST_FIELD_SIZE (WAVEHDR
, dwFlags
, 4)
120 TEST_FIELD_ALIGN (WAVEHDR
, dwFlags
, 1)
121 TEST_FIELD_OFFSET(WAVEHDR
, dwFlags
, 24)
122 TEST_FIELD_SIZE (WAVEHDR
, dwLoops
, 4)
123 TEST_FIELD_ALIGN (WAVEHDR
, dwLoops
, 1)
124 TEST_FIELD_OFFSET(WAVEHDR
, dwLoops
, 28)
125 TEST_FIELD_SIZE (WAVEHDR
, lpNext
, 8)
126 TEST_FIELD_ALIGN (WAVEHDR
, lpNext
, 1)
127 TEST_FIELD_OFFSET(WAVEHDR
, lpNext
, 32)
128 TEST_FIELD_SIZE (WAVEHDR
, reserved
, 8)
129 TEST_FIELD_ALIGN (WAVEHDR
, reserved
, 1)
130 TEST_FIELD_OFFSET(WAVEHDR
, reserved
, 40)
133 static void test_pack_WAVEOUTCAPSA(void)
135 /* WAVEOUTCAPSA (pack 1) */
136 TEST_FIELD_SIZE (WAVEOUTCAPSA
, wMid
, 2)
137 TEST_FIELD_ALIGN (WAVEOUTCAPSA
, wMid
, 1)
138 TEST_FIELD_OFFSET(WAVEOUTCAPSA
, wMid
, 0)
139 TEST_FIELD_SIZE (WAVEOUTCAPSA
, wPid
, 2)
140 TEST_FIELD_ALIGN (WAVEOUTCAPSA
, wPid
, 1)
141 TEST_FIELD_OFFSET(WAVEOUTCAPSA
, wPid
, 2)
142 TEST_FIELD_SIZE (WAVEOUTCAPSA
, vDriverVersion
, 4)
143 TEST_FIELD_ALIGN (WAVEOUTCAPSA
, vDriverVersion
, 1)
144 TEST_FIELD_OFFSET(WAVEOUTCAPSA
, vDriverVersion
, 4)
147 static void test_pack_WAVEOUTCAPSW(void)
149 /* WAVEOUTCAPSW (pack 1) */
150 TEST_FIELD_SIZE (WAVEOUTCAPSW
, wMid
, 2)
151 TEST_FIELD_ALIGN (WAVEOUTCAPSW
, wMid
, 1)
152 TEST_FIELD_OFFSET(WAVEOUTCAPSW
, wMid
, 0)
153 TEST_FIELD_SIZE (WAVEOUTCAPSW
, wPid
, 2)
154 TEST_FIELD_ALIGN (WAVEOUTCAPSW
, wPid
, 1)
155 TEST_FIELD_OFFSET(WAVEOUTCAPSW
, wPid
, 2)
156 TEST_FIELD_SIZE (WAVEOUTCAPSW
, vDriverVersion
, 4)
157 TEST_FIELD_ALIGN (WAVEOUTCAPSW
, vDriverVersion
, 1)
158 TEST_FIELD_OFFSET(WAVEOUTCAPSW
, vDriverVersion
, 4)
161 static void test_pack_WAVEOUTCAPS2A(void)
163 /* WAVEOUTCAPS2A (pack 1) */
164 TEST_FIELD_SIZE (WAVEOUTCAPS2A
, wMid
, 2)
165 TEST_FIELD_ALIGN (WAVEOUTCAPS2A
, wMid
, 1)
166 TEST_FIELD_OFFSET(WAVEOUTCAPS2A
, wMid
, 0)
167 TEST_FIELD_SIZE (WAVEOUTCAPS2A
, wPid
, 2)
168 TEST_FIELD_ALIGN (WAVEOUTCAPS2A
, wPid
, 1)
169 TEST_FIELD_OFFSET(WAVEOUTCAPS2A
, wPid
, 2)
170 TEST_FIELD_SIZE (WAVEOUTCAPS2A
, vDriverVersion
, 4)
171 TEST_FIELD_ALIGN (WAVEOUTCAPS2A
, vDriverVersion
, 1)
172 TEST_FIELD_OFFSET(WAVEOUTCAPS2A
, vDriverVersion
, 4)
175 static void test_pack_WAVEOUTCAPS2W(void)
177 /* WAVEOUTCAPS2W (pack 1) */
178 TEST_FIELD_SIZE (WAVEOUTCAPS2W
, wMid
, 2)
179 TEST_FIELD_ALIGN (WAVEOUTCAPS2W
, wMid
, 1)
180 TEST_FIELD_OFFSET(WAVEOUTCAPS2W
, wMid
, 0)
181 TEST_FIELD_SIZE (WAVEOUTCAPS2W
, wPid
, 2)
182 TEST_FIELD_ALIGN (WAVEOUTCAPS2W
, wPid
, 1)
183 TEST_FIELD_OFFSET(WAVEOUTCAPS2W
, wPid
, 2)
184 TEST_FIELD_SIZE (WAVEOUTCAPS2W
, vDriverVersion
, 4)
185 TEST_FIELD_ALIGN (WAVEOUTCAPS2W
, vDriverVersion
, 1)
186 TEST_FIELD_OFFSET(WAVEOUTCAPS2W
, vDriverVersion
, 4)
189 static void test_pack_WAVEINCAPSA(void)
191 /* WAVEINCAPSA (pack 1) */
192 TEST_FIELD_SIZE (WAVEINCAPSA
, wMid
, 2)
193 TEST_FIELD_ALIGN (WAVEINCAPSA
, wMid
, 1)
194 TEST_FIELD_OFFSET(WAVEINCAPSA
, wMid
, 0)
195 TEST_FIELD_SIZE (WAVEINCAPSA
, wPid
, 2)
196 TEST_FIELD_ALIGN (WAVEINCAPSA
, wPid
, 1)
197 TEST_FIELD_OFFSET(WAVEINCAPSA
, wPid
, 2)
198 TEST_FIELD_SIZE (WAVEINCAPSA
, vDriverVersion
, 4)
199 TEST_FIELD_ALIGN (WAVEINCAPSA
, vDriverVersion
, 1)
200 TEST_FIELD_OFFSET(WAVEINCAPSA
, vDriverVersion
, 4)
203 static void test_pack_WAVEINCAPSW(void)
205 /* WAVEINCAPSW (pack 1) */
206 TEST_FIELD_SIZE (WAVEINCAPSW
, wMid
, 2)
207 TEST_FIELD_ALIGN (WAVEINCAPSW
, wMid
, 1)
208 TEST_FIELD_OFFSET(WAVEINCAPSW
, wMid
, 0)
209 TEST_FIELD_SIZE (WAVEINCAPSW
, wPid
, 2)
210 TEST_FIELD_ALIGN (WAVEINCAPSW
, wPid
, 1)
211 TEST_FIELD_OFFSET(WAVEINCAPSW
, wPid
, 2)
212 TEST_FIELD_SIZE (WAVEINCAPSW
, vDriverVersion
, 4)
213 TEST_FIELD_ALIGN (WAVEINCAPSW
, vDriverVersion
, 1)
214 TEST_FIELD_OFFSET(WAVEINCAPSW
, vDriverVersion
, 4)
217 static void test_pack_WAVEINCAPS2A(void)
219 /* WAVEINCAPS2A (pack 1) */
220 TEST_FIELD_SIZE (WAVEINCAPS2A
, wMid
, 2)
221 TEST_FIELD_ALIGN (WAVEINCAPS2A
, wMid
, 1)
222 TEST_FIELD_OFFSET(WAVEINCAPS2A
, wMid
, 0)
223 TEST_FIELD_SIZE (WAVEINCAPS2A
, wPid
, 2)
224 TEST_FIELD_ALIGN (WAVEINCAPS2A
, wPid
, 1)
225 TEST_FIELD_OFFSET(WAVEINCAPS2A
, wPid
, 2)
226 TEST_FIELD_SIZE (WAVEINCAPS2A
, vDriverVersion
, 4)
227 TEST_FIELD_ALIGN (WAVEINCAPS2A
, vDriverVersion
, 1)
228 TEST_FIELD_OFFSET(WAVEINCAPS2A
, vDriverVersion
, 4)
231 static void test_pack_WAVEINCAPS2W(void)
233 /* WAVEINCAPS2W (pack 1) */
234 TEST_FIELD_SIZE (WAVEINCAPS2W
, wMid
, 2)
235 TEST_FIELD_ALIGN (WAVEINCAPS2W
, wMid
, 1)
236 TEST_FIELD_OFFSET(WAVEINCAPS2W
, wMid
, 0)
237 TEST_FIELD_SIZE (WAVEINCAPS2W
, wPid
, 2)
238 TEST_FIELD_ALIGN (WAVEINCAPS2W
, wPid
, 1)
239 TEST_FIELD_OFFSET(WAVEINCAPS2W
, wPid
, 2)
240 TEST_FIELD_SIZE (WAVEINCAPS2W
, vDriverVersion
, 4)
241 TEST_FIELD_ALIGN (WAVEINCAPS2W
, vDriverVersion
, 1)
242 TEST_FIELD_OFFSET(WAVEINCAPS2W
, vDriverVersion
, 4)
245 static void test_pack_WAVEFORMAT(void)
247 /* WAVEFORMAT (pack 1) */
248 TEST_TYPE_SIZE (WAVEFORMAT
, 14)
249 TEST_TYPE_ALIGN (WAVEFORMAT
, 1)
250 TEST_FIELD_SIZE (WAVEFORMAT
, wFormatTag
, 2)
251 TEST_FIELD_ALIGN (WAVEFORMAT
, wFormatTag
, 1)
252 TEST_FIELD_OFFSET(WAVEFORMAT
, wFormatTag
, 0)
253 TEST_FIELD_SIZE (WAVEFORMAT
, nChannels
, 2)
254 TEST_FIELD_ALIGN (WAVEFORMAT
, nChannels
, 1)
255 TEST_FIELD_OFFSET(WAVEFORMAT
, nChannels
, 2)
256 TEST_FIELD_SIZE (WAVEFORMAT
, nSamplesPerSec
, 4)
257 TEST_FIELD_ALIGN (WAVEFORMAT
, nSamplesPerSec
, 1)
258 TEST_FIELD_OFFSET(WAVEFORMAT
, nSamplesPerSec
, 4)
259 TEST_FIELD_SIZE (WAVEFORMAT
, nAvgBytesPerSec
, 4)
260 TEST_FIELD_ALIGN (WAVEFORMAT
, nAvgBytesPerSec
, 1)
261 TEST_FIELD_OFFSET(WAVEFORMAT
, nAvgBytesPerSec
, 8)
262 TEST_FIELD_SIZE (WAVEFORMAT
, nBlockAlign
, 2)
263 TEST_FIELD_ALIGN (WAVEFORMAT
, nBlockAlign
, 1)
264 TEST_FIELD_OFFSET(WAVEFORMAT
, nBlockAlign
, 12)
267 static void test_pack_PCMWAVEFORMAT(void)
269 /* PCMWAVEFORMAT (pack 1) */
270 TEST_TYPE_SIZE (PCMWAVEFORMAT
, 16)
271 TEST_TYPE_ALIGN (PCMWAVEFORMAT
, 1)
272 TEST_FIELD_SIZE (PCMWAVEFORMAT
, wf
, 14)
273 TEST_FIELD_ALIGN (PCMWAVEFORMAT
, wf
, 1)
274 TEST_FIELD_OFFSET(PCMWAVEFORMAT
, wf
, 0)
275 TEST_FIELD_SIZE (PCMWAVEFORMAT
, wBitsPerSample
, 2)
276 TEST_FIELD_ALIGN (PCMWAVEFORMAT
, wBitsPerSample
, 1)
277 TEST_FIELD_OFFSET(PCMWAVEFORMAT
, wBitsPerSample
, 14)
280 static void test_pack_WAVEFORMATEX(void)
282 /* WAVEFORMATEX (pack 1) */
283 TEST_TYPE_SIZE (WAVEFORMATEX
, 18)
284 TEST_TYPE_ALIGN (WAVEFORMATEX
, 1)
285 TEST_FIELD_SIZE (WAVEFORMATEX
, wFormatTag
, 2)
286 TEST_FIELD_ALIGN (WAVEFORMATEX
, wFormatTag
, 1)
287 TEST_FIELD_OFFSET(WAVEFORMATEX
, wFormatTag
, 0)
288 TEST_FIELD_SIZE (WAVEFORMATEX
, nChannels
, 2)
289 TEST_FIELD_ALIGN (WAVEFORMATEX
, nChannels
, 1)
290 TEST_FIELD_OFFSET(WAVEFORMATEX
, nChannels
, 2)
291 TEST_FIELD_SIZE (WAVEFORMATEX
, nSamplesPerSec
, 4)
292 TEST_FIELD_ALIGN (WAVEFORMATEX
, nSamplesPerSec
, 1)
293 TEST_FIELD_OFFSET(WAVEFORMATEX
, nSamplesPerSec
, 4)
294 TEST_FIELD_SIZE (WAVEFORMATEX
, nAvgBytesPerSec
, 4)
295 TEST_FIELD_ALIGN (WAVEFORMATEX
, nAvgBytesPerSec
, 1)
296 TEST_FIELD_OFFSET(WAVEFORMATEX
, nAvgBytesPerSec
, 8)
297 TEST_FIELD_SIZE (WAVEFORMATEX
, nBlockAlign
, 2)
298 TEST_FIELD_ALIGN (WAVEFORMATEX
, nBlockAlign
, 1)
299 TEST_FIELD_OFFSET(WAVEFORMATEX
, nBlockAlign
, 12)
300 TEST_FIELD_SIZE (WAVEFORMATEX
, wBitsPerSample
, 2)
301 TEST_FIELD_ALIGN (WAVEFORMATEX
, wBitsPerSample
, 1)
302 TEST_FIELD_OFFSET(WAVEFORMATEX
, wBitsPerSample
, 14)
303 TEST_FIELD_SIZE (WAVEFORMATEX
, cbSize
, 2)
304 TEST_FIELD_ALIGN (WAVEFORMATEX
, cbSize
, 1)
305 TEST_FIELD_OFFSET(WAVEFORMATEX
, cbSize
, 16)
308 static void test_pack_MIDIOUTCAPSA(void)
310 /* MIDIOUTCAPSA (pack 1) */
311 TEST_FIELD_SIZE (MIDIOUTCAPSA
, wMid
, 2)
312 TEST_FIELD_ALIGN (MIDIOUTCAPSA
, wMid
, 1)
313 TEST_FIELD_OFFSET(MIDIOUTCAPSA
, wMid
, 0)
314 TEST_FIELD_SIZE (MIDIOUTCAPSA
, wPid
, 2)
315 TEST_FIELD_ALIGN (MIDIOUTCAPSA
, wPid
, 1)
316 TEST_FIELD_OFFSET(MIDIOUTCAPSA
, wPid
, 2)
317 TEST_FIELD_SIZE (MIDIOUTCAPSA
, vDriverVersion
, 4)
318 TEST_FIELD_ALIGN (MIDIOUTCAPSA
, vDriverVersion
, 1)
319 TEST_FIELD_OFFSET(MIDIOUTCAPSA
, vDriverVersion
, 4)
322 static void test_pack_MIDIOUTCAPSW(void)
324 /* MIDIOUTCAPSW (pack 1) */
325 TEST_FIELD_SIZE (MIDIOUTCAPSW
, wMid
, 2)
326 TEST_FIELD_ALIGN (MIDIOUTCAPSW
, wMid
, 1)
327 TEST_FIELD_OFFSET(MIDIOUTCAPSW
, wMid
, 0)
328 TEST_FIELD_SIZE (MIDIOUTCAPSW
, wPid
, 2)
329 TEST_FIELD_ALIGN (MIDIOUTCAPSW
, wPid
, 1)
330 TEST_FIELD_OFFSET(MIDIOUTCAPSW
, wPid
, 2)
331 TEST_FIELD_SIZE (MIDIOUTCAPSW
, vDriverVersion
, 4)
332 TEST_FIELD_ALIGN (MIDIOUTCAPSW
, vDriverVersion
, 1)
333 TEST_FIELD_OFFSET(MIDIOUTCAPSW
, vDriverVersion
, 4)
336 static void test_pack_MIDIOUTCAPS2A(void)
338 /* MIDIOUTCAPS2A (pack 1) */
339 TEST_FIELD_SIZE (MIDIOUTCAPS2A
, wMid
, 2)
340 TEST_FIELD_ALIGN (MIDIOUTCAPS2A
, wMid
, 1)
341 TEST_FIELD_OFFSET(MIDIOUTCAPS2A
, wMid
, 0)
342 TEST_FIELD_SIZE (MIDIOUTCAPS2A
, wPid
, 2)
343 TEST_FIELD_ALIGN (MIDIOUTCAPS2A
, wPid
, 1)
344 TEST_FIELD_OFFSET(MIDIOUTCAPS2A
, wPid
, 2)
345 TEST_FIELD_SIZE (MIDIOUTCAPS2A
, vDriverVersion
, 4)
346 TEST_FIELD_ALIGN (MIDIOUTCAPS2A
, vDriverVersion
, 1)
347 TEST_FIELD_OFFSET(MIDIOUTCAPS2A
, vDriverVersion
, 4)
350 static void test_pack_MIDIOUTCAPS2W(void)
352 /* MIDIOUTCAPS2W (pack 1) */
353 TEST_FIELD_SIZE (MIDIOUTCAPS2W
, wMid
, 2)
354 TEST_FIELD_ALIGN (MIDIOUTCAPS2W
, wMid
, 1)
355 TEST_FIELD_OFFSET(MIDIOUTCAPS2W
, wMid
, 0)
356 TEST_FIELD_SIZE (MIDIOUTCAPS2W
, wPid
, 2)
357 TEST_FIELD_ALIGN (MIDIOUTCAPS2W
, wPid
, 1)
358 TEST_FIELD_OFFSET(MIDIOUTCAPS2W
, wPid
, 2)
359 TEST_FIELD_SIZE (MIDIOUTCAPS2W
, vDriverVersion
, 4)
360 TEST_FIELD_ALIGN (MIDIOUTCAPS2W
, vDriverVersion
, 1)
361 TEST_FIELD_OFFSET(MIDIOUTCAPS2W
, vDriverVersion
, 4)
364 static void test_pack_MIDIINCAPSA(void)
366 /* MIDIINCAPSA (pack 1) */
367 TEST_FIELD_SIZE (MIDIINCAPSA
, wMid
, 2)
368 TEST_FIELD_ALIGN (MIDIINCAPSA
, wMid
, 1)
369 TEST_FIELD_OFFSET(MIDIINCAPSA
, wMid
, 0)
370 TEST_FIELD_SIZE (MIDIINCAPSA
, wPid
, 2)
371 TEST_FIELD_ALIGN (MIDIINCAPSA
, wPid
, 1)
372 TEST_FIELD_OFFSET(MIDIINCAPSA
, wPid
, 2)
373 TEST_FIELD_SIZE (MIDIINCAPSA
, vDriverVersion
, 4)
374 TEST_FIELD_ALIGN (MIDIINCAPSA
, vDriverVersion
, 1)
375 TEST_FIELD_OFFSET(MIDIINCAPSA
, vDriverVersion
, 4)
378 static void test_pack_MIDIINCAPSW(void)
380 /* MIDIINCAPSW (pack 1) */
381 TEST_FIELD_SIZE (MIDIINCAPSW
, wMid
, 2)
382 TEST_FIELD_ALIGN (MIDIINCAPSW
, wMid
, 1)
383 TEST_FIELD_OFFSET(MIDIINCAPSW
, wMid
, 0)
384 TEST_FIELD_SIZE (MIDIINCAPSW
, wPid
, 2)
385 TEST_FIELD_ALIGN (MIDIINCAPSW
, wPid
, 1)
386 TEST_FIELD_OFFSET(MIDIINCAPSW
, wPid
, 2)
387 TEST_FIELD_SIZE (MIDIINCAPSW
, vDriverVersion
, 4)
388 TEST_FIELD_ALIGN (MIDIINCAPSW
, vDriverVersion
, 1)
389 TEST_FIELD_OFFSET(MIDIINCAPSW
, vDriverVersion
, 4)
392 static void test_pack_MIDIINCAPS2A(void)
394 /* MIDIINCAPS2A (pack 1) */
395 TEST_FIELD_SIZE (MIDIINCAPS2A
, wMid
, 2)
396 TEST_FIELD_ALIGN (MIDIINCAPS2A
, wMid
, 1)
397 TEST_FIELD_OFFSET(MIDIINCAPS2A
, wMid
, 0)
398 TEST_FIELD_SIZE (MIDIINCAPS2A
, wPid
, 2)
399 TEST_FIELD_ALIGN (MIDIINCAPS2A
, wPid
, 1)
400 TEST_FIELD_OFFSET(MIDIINCAPS2A
, wPid
, 2)
401 TEST_FIELD_SIZE (MIDIINCAPS2A
, vDriverVersion
, 4)
402 TEST_FIELD_ALIGN (MIDIINCAPS2A
, vDriverVersion
, 1)
403 TEST_FIELD_OFFSET(MIDIINCAPS2A
, vDriverVersion
, 4)
406 static void test_pack_MIDIINCAPS2W(void)
408 /* MIDIINCAPS2W (pack 1) */
409 TEST_FIELD_SIZE (MIDIINCAPS2W
, wMid
, 2)
410 TEST_FIELD_ALIGN (MIDIINCAPS2W
, wMid
, 1)
411 TEST_FIELD_OFFSET(MIDIINCAPS2W
, wMid
, 0)
412 TEST_FIELD_SIZE (MIDIINCAPS2W
, wPid
, 2)
413 TEST_FIELD_ALIGN (MIDIINCAPS2W
, wPid
, 1)
414 TEST_FIELD_OFFSET(MIDIINCAPS2W
, wPid
, 2)
415 TEST_FIELD_SIZE (MIDIINCAPS2W
, vDriverVersion
, 4)
416 TEST_FIELD_ALIGN (MIDIINCAPS2W
, vDriverVersion
, 1)
417 TEST_FIELD_OFFSET(MIDIINCAPS2W
, vDriverVersion
, 4)
420 static void test_pack_MIDIHDR(void)
422 /* MIDIHDR (pack 1) */
423 TEST_TYPE_SIZE (MIDIHDR
, 112)
424 TEST_TYPE_ALIGN (MIDIHDR
, 1)
425 TEST_FIELD_SIZE (MIDIHDR
, lpData
, 8)
426 TEST_FIELD_ALIGN (MIDIHDR
, lpData
, 1)
427 TEST_FIELD_OFFSET(MIDIHDR
, lpData
, 0)
428 TEST_FIELD_SIZE (MIDIHDR
, dwBufferLength
, 4)
429 TEST_FIELD_ALIGN (MIDIHDR
, dwBufferLength
, 1)
430 TEST_FIELD_OFFSET(MIDIHDR
, dwBufferLength
, 8)
431 TEST_FIELD_SIZE (MIDIHDR
, dwBytesRecorded
, 4)
432 TEST_FIELD_ALIGN (MIDIHDR
, dwBytesRecorded
, 1)
433 TEST_FIELD_OFFSET(MIDIHDR
, dwBytesRecorded
, 12)
434 TEST_FIELD_SIZE (MIDIHDR
, dwUser
, 8)
435 TEST_FIELD_ALIGN (MIDIHDR
, dwUser
, 1)
436 TEST_FIELD_OFFSET(MIDIHDR
, dwUser
, 16)
437 TEST_FIELD_SIZE (MIDIHDR
, dwFlags
, 4)
438 TEST_FIELD_ALIGN (MIDIHDR
, dwFlags
, 1)
439 TEST_FIELD_OFFSET(MIDIHDR
, dwFlags
, 24)
440 TEST_FIELD_SIZE (MIDIHDR
, lpNext
, 8)
441 TEST_FIELD_ALIGN (MIDIHDR
, lpNext
, 1)
442 TEST_FIELD_OFFSET(MIDIHDR
, lpNext
, 28)
443 TEST_FIELD_SIZE (MIDIHDR
, reserved
, 8)
444 TEST_FIELD_ALIGN (MIDIHDR
, reserved
, 1)
445 TEST_FIELD_OFFSET(MIDIHDR
, reserved
, 36)
446 TEST_FIELD_SIZE (MIDIHDR
, dwOffset
, 4)
447 TEST_FIELD_ALIGN (MIDIHDR
, dwOffset
, 1)
448 TEST_FIELD_OFFSET(MIDIHDR
, dwOffset
, 44)
449 TEST_FIELD_SIZE (MIDIHDR
, dwReserved
, 64)
450 TEST_FIELD_ALIGN (MIDIHDR
, dwReserved
, 1)
451 TEST_FIELD_OFFSET(MIDIHDR
, dwReserved
, 48)
454 static void test_pack_MIDIEVENT(void)
456 /* MIDIEVENT (pack 1) */
457 TEST_TYPE_SIZE (MIDIEVENT
, 16)
458 TEST_TYPE_ALIGN (MIDIEVENT
, 1)
459 TEST_FIELD_SIZE (MIDIEVENT
, dwDeltaTime
, 4)
460 TEST_FIELD_ALIGN (MIDIEVENT
, dwDeltaTime
, 1)
461 TEST_FIELD_OFFSET(MIDIEVENT
, dwDeltaTime
, 0)
462 TEST_FIELD_SIZE (MIDIEVENT
, dwStreamID
, 4)
463 TEST_FIELD_ALIGN (MIDIEVENT
, dwStreamID
, 1)
464 TEST_FIELD_OFFSET(MIDIEVENT
, dwStreamID
, 4)
465 TEST_FIELD_SIZE (MIDIEVENT
, dwEvent
, 4)
466 TEST_FIELD_ALIGN (MIDIEVENT
, dwEvent
, 1)
467 TEST_FIELD_OFFSET(MIDIEVENT
, dwEvent
, 8)
468 TEST_FIELD_SIZE (MIDIEVENT
, dwParms
, 4)
469 TEST_FIELD_ALIGN (MIDIEVENT
, dwParms
, 1)
470 TEST_FIELD_OFFSET(MIDIEVENT
, dwParms
, 12)
473 static void test_pack_AUXCAPSA(void)
475 /* AUXCAPSA (pack 1) */
476 TEST_FIELD_SIZE (AUXCAPSA
, wMid
, 2)
477 TEST_FIELD_ALIGN (AUXCAPSA
, wMid
, 1)
478 TEST_FIELD_OFFSET(AUXCAPSA
, wMid
, 0)
479 TEST_FIELD_SIZE (AUXCAPSA
, wPid
, 2)
480 TEST_FIELD_ALIGN (AUXCAPSA
, wPid
, 1)
481 TEST_FIELD_OFFSET(AUXCAPSA
, wPid
, 2)
482 TEST_FIELD_SIZE (AUXCAPSA
, vDriverVersion
, 4)
483 TEST_FIELD_ALIGN (AUXCAPSA
, vDriverVersion
, 1)
484 TEST_FIELD_OFFSET(AUXCAPSA
, vDriverVersion
, 4)
487 static void test_pack_AUXCAPSW(void)
489 /* AUXCAPSW (pack 1) */
490 TEST_FIELD_SIZE (AUXCAPSW
, wMid
, 2)
491 TEST_FIELD_ALIGN (AUXCAPSW
, wMid
, 1)
492 TEST_FIELD_OFFSET(AUXCAPSW
, wMid
, 0)
493 TEST_FIELD_SIZE (AUXCAPSW
, wPid
, 2)
494 TEST_FIELD_ALIGN (AUXCAPSW
, wPid
, 1)
495 TEST_FIELD_OFFSET(AUXCAPSW
, wPid
, 2)
496 TEST_FIELD_SIZE (AUXCAPSW
, vDriverVersion
, 4)
497 TEST_FIELD_ALIGN (AUXCAPSW
, vDriverVersion
, 1)
498 TEST_FIELD_OFFSET(AUXCAPSW
, vDriverVersion
, 4)
501 static void test_pack_AUXCAPS2A(void)
503 /* AUXCAPS2A (pack 1) */
504 TEST_FIELD_SIZE (AUXCAPS2A
, wMid
, 2)
505 TEST_FIELD_ALIGN (AUXCAPS2A
, wMid
, 1)
506 TEST_FIELD_OFFSET(AUXCAPS2A
, wMid
, 0)
507 TEST_FIELD_SIZE (AUXCAPS2A
, wPid
, 2)
508 TEST_FIELD_ALIGN (AUXCAPS2A
, wPid
, 1)
509 TEST_FIELD_OFFSET(AUXCAPS2A
, wPid
, 2)
510 TEST_FIELD_SIZE (AUXCAPS2A
, vDriverVersion
, 4)
511 TEST_FIELD_ALIGN (AUXCAPS2A
, vDriverVersion
, 1)
512 TEST_FIELD_OFFSET(AUXCAPS2A
, vDriverVersion
, 4)
515 static void test_pack_AUXCAPS2W(void)
517 /* AUXCAPS2W (pack 1) */
518 TEST_FIELD_SIZE (AUXCAPS2W
, wMid
, 2)
519 TEST_FIELD_ALIGN (AUXCAPS2W
, wMid
, 1)
520 TEST_FIELD_OFFSET(AUXCAPS2W
, wMid
, 0)
521 TEST_FIELD_SIZE (AUXCAPS2W
, wPid
, 2)
522 TEST_FIELD_ALIGN (AUXCAPS2W
, wPid
, 1)
523 TEST_FIELD_OFFSET(AUXCAPS2W
, wPid
, 2)
524 TEST_FIELD_SIZE (AUXCAPS2W
, vDriverVersion
, 4)
525 TEST_FIELD_ALIGN (AUXCAPS2W
, vDriverVersion
, 1)
526 TEST_FIELD_OFFSET(AUXCAPS2W
, vDriverVersion
, 4)
529 static void test_pack_TIMECAPS(void)
531 /* TIMECAPS (pack 1) */
532 TEST_TYPE_SIZE (TIMECAPS
, 8)
533 TEST_TYPE_ALIGN (TIMECAPS
, 1)
534 TEST_FIELD_SIZE (TIMECAPS
, wPeriodMin
, 4)
535 TEST_FIELD_ALIGN (TIMECAPS
, wPeriodMin
, 1)
536 TEST_FIELD_OFFSET(TIMECAPS
, wPeriodMin
, 0)
537 TEST_FIELD_SIZE (TIMECAPS
, wPeriodMax
, 4)
538 TEST_FIELD_ALIGN (TIMECAPS
, wPeriodMax
, 1)
539 TEST_FIELD_OFFSET(TIMECAPS
, wPeriodMax
, 4)
542 static void test_pack_JOYCAPSA(void)
544 /* JOYCAPSA (pack 1) */
545 TEST_FIELD_SIZE (JOYCAPSA
, wMid
, 2)
546 TEST_FIELD_ALIGN (JOYCAPSA
, wMid
, 1)
547 TEST_FIELD_OFFSET(JOYCAPSA
, wMid
, 0)
548 TEST_FIELD_SIZE (JOYCAPSA
, wPid
, 2)
549 TEST_FIELD_ALIGN (JOYCAPSA
, wPid
, 1)
550 TEST_FIELD_OFFSET(JOYCAPSA
, wPid
, 2)
553 static void test_pack_JOYCAPSW(void)
555 /* JOYCAPSW (pack 1) */
556 TEST_FIELD_SIZE (JOYCAPSW
, wMid
, 2)
557 TEST_FIELD_ALIGN (JOYCAPSW
, wMid
, 1)
558 TEST_FIELD_OFFSET(JOYCAPSW
, wMid
, 0)
559 TEST_FIELD_SIZE (JOYCAPSW
, wPid
, 2)
560 TEST_FIELD_ALIGN (JOYCAPSW
, wPid
, 1)
561 TEST_FIELD_OFFSET(JOYCAPSW
, wPid
, 2)
564 static void test_pack_JOYCAPS2A(void)
566 /* JOYCAPS2A (pack 1) */
567 TEST_FIELD_SIZE (JOYCAPS2A
, wMid
, 2)
568 TEST_FIELD_ALIGN (JOYCAPS2A
, wMid
, 1)
569 TEST_FIELD_OFFSET(JOYCAPS2A
, wMid
, 0)
570 TEST_FIELD_SIZE (JOYCAPS2A
, wPid
, 2)
571 TEST_FIELD_ALIGN (JOYCAPS2A
, wPid
, 1)
572 TEST_FIELD_OFFSET(JOYCAPS2A
, wPid
, 2)
575 static void test_pack_JOYCAPS2W(void)
577 /* JOYCAPS2W (pack 1) */
578 TEST_FIELD_SIZE (JOYCAPS2W
, wMid
, 2)
579 TEST_FIELD_ALIGN (JOYCAPS2W
, wMid
, 1)
580 TEST_FIELD_OFFSET(JOYCAPS2W
, wMid
, 0)
581 TEST_FIELD_SIZE (JOYCAPS2W
, wPid
, 2)
582 TEST_FIELD_ALIGN (JOYCAPS2W
, wPid
, 1)
583 TEST_FIELD_OFFSET(JOYCAPS2W
, wPid
, 2)
586 static void test_pack_JOYINFO(void)
588 /* JOYINFO (pack 1) */
589 TEST_TYPE_SIZE (JOYINFO
, 16)
590 TEST_TYPE_ALIGN (JOYINFO
, 1)
591 TEST_FIELD_SIZE (JOYINFO
, wXpos
, 4)
592 TEST_FIELD_ALIGN (JOYINFO
, wXpos
, 1)
593 TEST_FIELD_OFFSET(JOYINFO
, wXpos
, 0)
594 TEST_FIELD_SIZE (JOYINFO
, wYpos
, 4)
595 TEST_FIELD_ALIGN (JOYINFO
, wYpos
, 1)
596 TEST_FIELD_OFFSET(JOYINFO
, wYpos
, 4)
597 TEST_FIELD_SIZE (JOYINFO
, wZpos
, 4)
598 TEST_FIELD_ALIGN (JOYINFO
, wZpos
, 1)
599 TEST_FIELD_OFFSET(JOYINFO
, wZpos
, 8)
600 TEST_FIELD_SIZE (JOYINFO
, wButtons
, 4)
601 TEST_FIELD_ALIGN (JOYINFO
, wButtons
, 1)
602 TEST_FIELD_OFFSET(JOYINFO
, wButtons
, 12)
605 static void test_pack_JOYINFOEX(void)
607 /* JOYINFOEX (pack 1) */
608 TEST_TYPE_SIZE (JOYINFOEX
, 52)
609 TEST_TYPE_ALIGN (JOYINFOEX
, 1)
610 TEST_FIELD_SIZE (JOYINFOEX
, dwSize
, 4)
611 TEST_FIELD_ALIGN (JOYINFOEX
, dwSize
, 1)
612 TEST_FIELD_OFFSET(JOYINFOEX
, dwSize
, 0)
613 TEST_FIELD_SIZE (JOYINFOEX
, dwFlags
, 4)
614 TEST_FIELD_ALIGN (JOYINFOEX
, dwFlags
, 1)
615 TEST_FIELD_OFFSET(JOYINFOEX
, dwFlags
, 4)
616 TEST_FIELD_SIZE (JOYINFOEX
, dwXpos
, 4)
617 TEST_FIELD_ALIGN (JOYINFOEX
, dwXpos
, 1)
618 TEST_FIELD_OFFSET(JOYINFOEX
, dwXpos
, 8)
619 TEST_FIELD_SIZE (JOYINFOEX
, dwYpos
, 4)
620 TEST_FIELD_ALIGN (JOYINFOEX
, dwYpos
, 1)
621 TEST_FIELD_OFFSET(JOYINFOEX
, dwYpos
, 12)
622 TEST_FIELD_SIZE (JOYINFOEX
, dwZpos
, 4)
623 TEST_FIELD_ALIGN (JOYINFOEX
, dwZpos
, 1)
624 TEST_FIELD_OFFSET(JOYINFOEX
, dwZpos
, 16)
625 TEST_FIELD_SIZE (JOYINFOEX
, dwRpos
, 4)
626 TEST_FIELD_ALIGN (JOYINFOEX
, dwRpos
, 1)
627 TEST_FIELD_OFFSET(JOYINFOEX
, dwRpos
, 20)
628 TEST_FIELD_SIZE (JOYINFOEX
, dwUpos
, 4)
629 TEST_FIELD_ALIGN (JOYINFOEX
, dwUpos
, 1)
630 TEST_FIELD_OFFSET(JOYINFOEX
, dwUpos
, 24)
631 TEST_FIELD_SIZE (JOYINFOEX
, dwVpos
, 4)
632 TEST_FIELD_ALIGN (JOYINFOEX
, dwVpos
, 1)
633 TEST_FIELD_OFFSET(JOYINFOEX
, dwVpos
, 28)
634 TEST_FIELD_SIZE (JOYINFOEX
, dwButtons
, 4)
635 TEST_FIELD_ALIGN (JOYINFOEX
, dwButtons
, 1)
636 TEST_FIELD_OFFSET(JOYINFOEX
, dwButtons
, 32)
637 TEST_FIELD_SIZE (JOYINFOEX
, dwButtonNumber
, 4)
638 TEST_FIELD_ALIGN (JOYINFOEX
, dwButtonNumber
, 1)
639 TEST_FIELD_OFFSET(JOYINFOEX
, dwButtonNumber
, 36)
640 TEST_FIELD_SIZE (JOYINFOEX
, dwPOV
, 4)
641 TEST_FIELD_ALIGN (JOYINFOEX
, dwPOV
, 1)
642 TEST_FIELD_OFFSET(JOYINFOEX
, dwPOV
, 40)
643 TEST_FIELD_SIZE (JOYINFOEX
, dwReserved1
, 4)
644 TEST_FIELD_ALIGN (JOYINFOEX
, dwReserved1
, 1)
645 TEST_FIELD_OFFSET(JOYINFOEX
, dwReserved1
, 44)
646 TEST_FIELD_SIZE (JOYINFOEX
, dwReserved2
, 4)
647 TEST_FIELD_ALIGN (JOYINFOEX
, dwReserved2
, 1)
648 TEST_FIELD_OFFSET(JOYINFOEX
, dwReserved2
, 48)
651 static void test_pack_MIXERCAPSA(void)
653 /* MIXERCAPSA (pack 1) */
654 TEST_FIELD_SIZE (MIXERCAPSA
, wMid
, 2)
655 TEST_FIELD_ALIGN (MIXERCAPSA
, wMid
, 1)
656 TEST_FIELD_OFFSET(MIXERCAPSA
, wMid
, 0)
657 TEST_FIELD_SIZE (MIXERCAPSA
, wPid
, 2)
658 TEST_FIELD_ALIGN (MIXERCAPSA
, wPid
, 1)
659 TEST_FIELD_OFFSET(MIXERCAPSA
, wPid
, 2)
660 TEST_FIELD_SIZE (MIXERCAPSA
, vDriverVersion
, 4)
661 TEST_FIELD_ALIGN (MIXERCAPSA
, vDriverVersion
, 1)
662 TEST_FIELD_OFFSET(MIXERCAPSA
, vDriverVersion
, 4)
665 static void test_pack_MIXERCAPSW(void)
667 /* MIXERCAPSW (pack 1) */
668 TEST_FIELD_SIZE (MIXERCAPSW
, wMid
, 2)
669 TEST_FIELD_ALIGN (MIXERCAPSW
, wMid
, 1)
670 TEST_FIELD_OFFSET(MIXERCAPSW
, wMid
, 0)
671 TEST_FIELD_SIZE (MIXERCAPSW
, wPid
, 2)
672 TEST_FIELD_ALIGN (MIXERCAPSW
, wPid
, 1)
673 TEST_FIELD_OFFSET(MIXERCAPSW
, wPid
, 2)
674 TEST_FIELD_SIZE (MIXERCAPSW
, vDriverVersion
, 4)
675 TEST_FIELD_ALIGN (MIXERCAPSW
, vDriverVersion
, 1)
676 TEST_FIELD_OFFSET(MIXERCAPSW
, vDriverVersion
, 4)
679 static void test_pack_MIXERCAPS2A(void)
681 /* MIXERCAPS2A (pack 1) */
682 TEST_FIELD_SIZE (MIXERCAPS2A
, wMid
, 2)
683 TEST_FIELD_ALIGN (MIXERCAPS2A
, wMid
, 1)
684 TEST_FIELD_OFFSET(MIXERCAPS2A
, wMid
, 0)
685 TEST_FIELD_SIZE (MIXERCAPS2A
, wPid
, 2)
686 TEST_FIELD_ALIGN (MIXERCAPS2A
, wPid
, 1)
687 TEST_FIELD_OFFSET(MIXERCAPS2A
, wPid
, 2)
688 TEST_FIELD_SIZE (MIXERCAPS2A
, vDriverVersion
, 4)
689 TEST_FIELD_ALIGN (MIXERCAPS2A
, vDriverVersion
, 1)
690 TEST_FIELD_OFFSET(MIXERCAPS2A
, vDriverVersion
, 4)
693 static void test_pack_MIXERCAPS2W(void)
695 /* MIXERCAPS2W (pack 1) */
696 TEST_FIELD_SIZE (MIXERCAPS2W
, wMid
, 2)
697 TEST_FIELD_ALIGN (MIXERCAPS2W
, wMid
, 1)
698 TEST_FIELD_OFFSET(MIXERCAPS2W
, wMid
, 0)
699 TEST_FIELD_SIZE (MIXERCAPS2W
, wPid
, 2)
700 TEST_FIELD_ALIGN (MIXERCAPS2W
, wPid
, 1)
701 TEST_FIELD_OFFSET(MIXERCAPS2W
, wPid
, 2)
702 TEST_FIELD_SIZE (MIXERCAPS2W
, vDriverVersion
, 4)
703 TEST_FIELD_ALIGN (MIXERCAPS2W
, vDriverVersion
, 1)
704 TEST_FIELD_OFFSET(MIXERCAPS2W
, vDriverVersion
, 4)
707 static void test_pack_MIXERLINEA(void)
709 /* MIXERLINEA (pack 1) */
710 TEST_FIELD_SIZE (MIXERLINEA
, cbStruct
, 4)
711 TEST_FIELD_ALIGN (MIXERLINEA
, cbStruct
, 1)
712 TEST_FIELD_OFFSET(MIXERLINEA
, cbStruct
, 0)
713 TEST_FIELD_SIZE (MIXERLINEA
, dwDestination
, 4)
714 TEST_FIELD_ALIGN (MIXERLINEA
, dwDestination
, 1)
715 TEST_FIELD_OFFSET(MIXERLINEA
, dwDestination
, 4)
716 TEST_FIELD_SIZE (MIXERLINEA
, dwSource
, 4)
717 TEST_FIELD_ALIGN (MIXERLINEA
, dwSource
, 1)
718 TEST_FIELD_OFFSET(MIXERLINEA
, dwSource
, 8)
719 TEST_FIELD_SIZE (MIXERLINEA
, dwLineID
, 4)
720 TEST_FIELD_ALIGN (MIXERLINEA
, dwLineID
, 1)
721 TEST_FIELD_OFFSET(MIXERLINEA
, dwLineID
, 12)
722 TEST_FIELD_SIZE (MIXERLINEA
, fdwLine
, 4)
723 TEST_FIELD_ALIGN (MIXERLINEA
, fdwLine
, 1)
724 TEST_FIELD_OFFSET(MIXERLINEA
, fdwLine
, 16)
725 TEST_FIELD_SIZE (MIXERLINEA
, dwUser
, 8)
726 TEST_FIELD_ALIGN (MIXERLINEA
, dwUser
, 1)
727 TEST_FIELD_OFFSET(MIXERLINEA
, dwUser
, 20)
728 TEST_FIELD_SIZE (MIXERLINEA
, dwComponentType
, 4)
729 TEST_FIELD_ALIGN (MIXERLINEA
, dwComponentType
, 1)
730 TEST_FIELD_OFFSET(MIXERLINEA
, dwComponentType
, 28)
731 TEST_FIELD_SIZE (MIXERLINEA
, cChannels
, 4)
732 TEST_FIELD_ALIGN (MIXERLINEA
, cChannels
, 1)
733 TEST_FIELD_OFFSET(MIXERLINEA
, cChannels
, 32)
734 TEST_FIELD_SIZE (MIXERLINEA
, cConnections
, 4)
735 TEST_FIELD_ALIGN (MIXERLINEA
, cConnections
, 1)
736 TEST_FIELD_OFFSET(MIXERLINEA
, cConnections
, 36)
737 TEST_FIELD_SIZE (MIXERLINEA
, cControls
, 4)
738 TEST_FIELD_ALIGN (MIXERLINEA
, cControls
, 1)
739 TEST_FIELD_OFFSET(MIXERLINEA
, cControls
, 40)
742 static void test_pack_MIXERLINEW(void)
744 /* MIXERLINEW (pack 1) */
745 TEST_FIELD_SIZE (MIXERLINEW
, cbStruct
, 4)
746 TEST_FIELD_ALIGN (MIXERLINEW
, cbStruct
, 1)
747 TEST_FIELD_OFFSET(MIXERLINEW
, cbStruct
, 0)
748 TEST_FIELD_SIZE (MIXERLINEW
, dwDestination
, 4)
749 TEST_FIELD_ALIGN (MIXERLINEW
, dwDestination
, 1)
750 TEST_FIELD_OFFSET(MIXERLINEW
, dwDestination
, 4)
751 TEST_FIELD_SIZE (MIXERLINEW
, dwSource
, 4)
752 TEST_FIELD_ALIGN (MIXERLINEW
, dwSource
, 1)
753 TEST_FIELD_OFFSET(MIXERLINEW
, dwSource
, 8)
754 TEST_FIELD_SIZE (MIXERLINEW
, dwLineID
, 4)
755 TEST_FIELD_ALIGN (MIXERLINEW
, dwLineID
, 1)
756 TEST_FIELD_OFFSET(MIXERLINEW
, dwLineID
, 12)
757 TEST_FIELD_SIZE (MIXERLINEW
, fdwLine
, 4)
758 TEST_FIELD_ALIGN (MIXERLINEW
, fdwLine
, 1)
759 TEST_FIELD_OFFSET(MIXERLINEW
, fdwLine
, 16)
760 TEST_FIELD_SIZE (MIXERLINEW
, dwUser
, 8)
761 TEST_FIELD_ALIGN (MIXERLINEW
, dwUser
, 1)
762 TEST_FIELD_OFFSET(MIXERLINEW
, dwUser
, 20)
763 TEST_FIELD_SIZE (MIXERLINEW
, dwComponentType
, 4)
764 TEST_FIELD_ALIGN (MIXERLINEW
, dwComponentType
, 1)
765 TEST_FIELD_OFFSET(MIXERLINEW
, dwComponentType
, 28)
766 TEST_FIELD_SIZE (MIXERLINEW
, cChannels
, 4)
767 TEST_FIELD_ALIGN (MIXERLINEW
, cChannels
, 1)
768 TEST_FIELD_OFFSET(MIXERLINEW
, cChannels
, 32)
769 TEST_FIELD_SIZE (MIXERLINEW
, cConnections
, 4)
770 TEST_FIELD_ALIGN (MIXERLINEW
, cConnections
, 1)
771 TEST_FIELD_OFFSET(MIXERLINEW
, cConnections
, 36)
772 TEST_FIELD_SIZE (MIXERLINEW
, cControls
, 4)
773 TEST_FIELD_ALIGN (MIXERLINEW
, cControls
, 1)
774 TEST_FIELD_OFFSET(MIXERLINEW
, cControls
, 40)
777 static void test_pack_MIXERCONTROLA(void)
779 /* MIXERCONTROLA (pack 1) */
780 TEST_FIELD_SIZE (MIXERCONTROLA
, cbStruct
, 4)
781 TEST_FIELD_ALIGN (MIXERCONTROLA
, cbStruct
, 1)
782 TEST_FIELD_OFFSET(MIXERCONTROLA
, cbStruct
, 0)
783 TEST_FIELD_SIZE (MIXERCONTROLA
, dwControlID
, 4)
784 TEST_FIELD_ALIGN (MIXERCONTROLA
, dwControlID
, 1)
785 TEST_FIELD_OFFSET(MIXERCONTROLA
, dwControlID
, 4)
786 TEST_FIELD_SIZE (MIXERCONTROLA
, dwControlType
, 4)
787 TEST_FIELD_ALIGN (MIXERCONTROLA
, dwControlType
, 1)
788 TEST_FIELD_OFFSET(MIXERCONTROLA
, dwControlType
, 8)
789 TEST_FIELD_SIZE (MIXERCONTROLA
, fdwControl
, 4)
790 TEST_FIELD_ALIGN (MIXERCONTROLA
, fdwControl
, 1)
791 TEST_FIELD_OFFSET(MIXERCONTROLA
, fdwControl
, 12)
792 TEST_FIELD_SIZE (MIXERCONTROLA
, cMultipleItems
, 4)
793 TEST_FIELD_ALIGN (MIXERCONTROLA
, cMultipleItems
, 1)
794 TEST_FIELD_OFFSET(MIXERCONTROLA
, cMultipleItems
, 16)
797 static void test_pack_MIXERCONTROLW(void)
799 /* MIXERCONTROLW (pack 1) */
800 TEST_FIELD_SIZE (MIXERCONTROLW
, cbStruct
, 4)
801 TEST_FIELD_ALIGN (MIXERCONTROLW
, cbStruct
, 1)
802 TEST_FIELD_OFFSET(MIXERCONTROLW
, cbStruct
, 0)
803 TEST_FIELD_SIZE (MIXERCONTROLW
, dwControlID
, 4)
804 TEST_FIELD_ALIGN (MIXERCONTROLW
, dwControlID
, 1)
805 TEST_FIELD_OFFSET(MIXERCONTROLW
, dwControlID
, 4)
806 TEST_FIELD_SIZE (MIXERCONTROLW
, dwControlType
, 4)
807 TEST_FIELD_ALIGN (MIXERCONTROLW
, dwControlType
, 1)
808 TEST_FIELD_OFFSET(MIXERCONTROLW
, dwControlType
, 8)
809 TEST_FIELD_SIZE (MIXERCONTROLW
, fdwControl
, 4)
810 TEST_FIELD_ALIGN (MIXERCONTROLW
, fdwControl
, 1)
811 TEST_FIELD_OFFSET(MIXERCONTROLW
, fdwControl
, 12)
812 TEST_FIELD_SIZE (MIXERCONTROLW
, cMultipleItems
, 4)
813 TEST_FIELD_ALIGN (MIXERCONTROLW
, cMultipleItems
, 1)
814 TEST_FIELD_OFFSET(MIXERCONTROLW
, cMultipleItems
, 16)
817 static void test_pack_MIXERLINECONTROLSA(void)
819 /* MIXERLINECONTROLSA (pack 1) */
820 TEST_FIELD_SIZE (MIXERLINECONTROLSA
, cbStruct
, 4)
821 TEST_FIELD_ALIGN (MIXERLINECONTROLSA
, cbStruct
, 1)
822 TEST_FIELD_OFFSET(MIXERLINECONTROLSA
, cbStruct
, 0)
823 TEST_FIELD_SIZE (MIXERLINECONTROLSA
, dwLineID
, 4)
824 TEST_FIELD_ALIGN (MIXERLINECONTROLSA
, dwLineID
, 1)
825 TEST_FIELD_OFFSET(MIXERLINECONTROLSA
, dwLineID
, 4)
828 static void test_pack_MIXERLINECONTROLSW(void)
830 /* MIXERLINECONTROLSW (pack 1) */
831 TEST_FIELD_SIZE (MIXERLINECONTROLSW
, cbStruct
, 4)
832 TEST_FIELD_ALIGN (MIXERLINECONTROLSW
, cbStruct
, 1)
833 TEST_FIELD_OFFSET(MIXERLINECONTROLSW
, cbStruct
, 0)
834 TEST_FIELD_SIZE (MIXERLINECONTROLSW
, dwLineID
, 4)
835 TEST_FIELD_ALIGN (MIXERLINECONTROLSW
, dwLineID
, 1)
836 TEST_FIELD_OFFSET(MIXERLINECONTROLSW
, dwLineID
, 4)
839 static void test_pack_MIXERCONTROLDETAILS(void)
841 /* MIXERCONTROLDETAILS (pack 1) */
842 TEST_FIELD_SIZE (MIXERCONTROLDETAILS
, cbStruct
, 4)
843 TEST_FIELD_ALIGN (MIXERCONTROLDETAILS
, cbStruct
, 1)
844 TEST_FIELD_OFFSET(MIXERCONTROLDETAILS
, cbStruct
, 0)
845 TEST_FIELD_SIZE (MIXERCONTROLDETAILS
, dwControlID
, 4)
846 TEST_FIELD_ALIGN (MIXERCONTROLDETAILS
, dwControlID
, 1)
847 TEST_FIELD_OFFSET(MIXERCONTROLDETAILS
, dwControlID
, 4)
848 TEST_FIELD_SIZE (MIXERCONTROLDETAILS
, cChannels
, 4)
849 TEST_FIELD_ALIGN (MIXERCONTROLDETAILS
, cChannels
, 1)
850 TEST_FIELD_OFFSET(MIXERCONTROLDETAILS
, cChannels
, 8)
853 static void test_pack_MIXERCONTROLDETAILS_LISTTEXTA(void)
855 /* MIXERCONTROLDETAILS_LISTTEXTA (pack 1) */
856 TEST_FIELD_SIZE (MIXERCONTROLDETAILS_LISTTEXTA
, dwParam1
, 4)
857 TEST_FIELD_ALIGN (MIXERCONTROLDETAILS_LISTTEXTA
, dwParam1
, 1)
858 TEST_FIELD_OFFSET(MIXERCONTROLDETAILS_LISTTEXTA
, dwParam1
, 0)
859 TEST_FIELD_SIZE (MIXERCONTROLDETAILS_LISTTEXTA
, dwParam2
, 4)
860 TEST_FIELD_ALIGN (MIXERCONTROLDETAILS_LISTTEXTA
, dwParam2
, 1)
861 TEST_FIELD_OFFSET(MIXERCONTROLDETAILS_LISTTEXTA
, dwParam2
, 4)
864 static void test_pack_MIXERCONTROLDETAILS_LISTTEXTW(void)
866 /* MIXERCONTROLDETAILS_LISTTEXTW (pack 1) */
867 TEST_FIELD_SIZE (MIXERCONTROLDETAILS_LISTTEXTW
, dwParam1
, 4)
868 TEST_FIELD_ALIGN (MIXERCONTROLDETAILS_LISTTEXTW
, dwParam1
, 1)
869 TEST_FIELD_OFFSET(MIXERCONTROLDETAILS_LISTTEXTW
, dwParam1
, 0)
870 TEST_FIELD_SIZE (MIXERCONTROLDETAILS_LISTTEXTW
, dwParam2
, 4)
871 TEST_FIELD_ALIGN (MIXERCONTROLDETAILS_LISTTEXTW
, dwParam2
, 1)
872 TEST_FIELD_OFFSET(MIXERCONTROLDETAILS_LISTTEXTW
, dwParam2
, 4)
875 static void test_pack_MIXERCONTROLDETAILS_BOOLEAN(void)
877 /* MIXERCONTROLDETAILS_BOOLEAN (pack 1) */
878 TEST_TYPE_SIZE (MIXERCONTROLDETAILS_BOOLEAN
, 4)
879 TEST_TYPE_ALIGN (MIXERCONTROLDETAILS_BOOLEAN
, 1)
880 TEST_FIELD_SIZE (MIXERCONTROLDETAILS_BOOLEAN
, fValue
, 4)
881 TEST_FIELD_ALIGN (MIXERCONTROLDETAILS_BOOLEAN
, fValue
, 1)
882 TEST_FIELD_OFFSET(MIXERCONTROLDETAILS_BOOLEAN
, fValue
, 0)
885 static void test_pack_MIXERCONTROLDETAILS_SIGNED(void)
887 /* MIXERCONTROLDETAILS_SIGNED (pack 1) */
888 TEST_TYPE_SIZE (MIXERCONTROLDETAILS_SIGNED
, 4)
889 TEST_TYPE_ALIGN (MIXERCONTROLDETAILS_SIGNED
, 1)
890 TEST_FIELD_SIZE (MIXERCONTROLDETAILS_SIGNED
, lValue
, 4)
891 TEST_FIELD_ALIGN (MIXERCONTROLDETAILS_SIGNED
, lValue
, 1)
892 TEST_FIELD_OFFSET(MIXERCONTROLDETAILS_SIGNED
, lValue
, 0)
895 static void test_pack_MIXERCONTROLDETAILS_UNSIGNED(void)
897 /* MIXERCONTROLDETAILS_UNSIGNED (pack 1) */
898 TEST_TYPE_SIZE (MIXERCONTROLDETAILS_UNSIGNED
, 4)
899 TEST_TYPE_ALIGN (MIXERCONTROLDETAILS_UNSIGNED
, 1)
900 TEST_FIELD_SIZE (MIXERCONTROLDETAILS_UNSIGNED
, dwValue
, 4)
901 TEST_FIELD_ALIGN (MIXERCONTROLDETAILS_UNSIGNED
, dwValue
, 1)
902 TEST_FIELD_OFFSET(MIXERCONTROLDETAILS_UNSIGNED
, dwValue
, 0)
905 static void test_pack_MMIOINFO(void)
907 /* MMIOINFO (pack 1) */
908 TEST_TYPE_SIZE (MMIOINFO
, 100)
909 TEST_TYPE_ALIGN (MMIOINFO
, 1)
910 TEST_FIELD_SIZE (MMIOINFO
, dwFlags
, 4)
911 TEST_FIELD_ALIGN (MMIOINFO
, dwFlags
, 1)
912 TEST_FIELD_OFFSET(MMIOINFO
, dwFlags
, 0)
913 TEST_FIELD_SIZE (MMIOINFO
, fccIOProc
, 4)
914 TEST_FIELD_ALIGN (MMIOINFO
, fccIOProc
, 1)
915 TEST_FIELD_OFFSET(MMIOINFO
, fccIOProc
, 4)
916 TEST_FIELD_SIZE (MMIOINFO
, pIOProc
, 8)
917 TEST_FIELD_ALIGN (MMIOINFO
, pIOProc
, 1)
918 TEST_FIELD_OFFSET(MMIOINFO
, pIOProc
, 8)
919 TEST_FIELD_SIZE (MMIOINFO
, wErrorRet
, 4)
920 TEST_FIELD_ALIGN (MMIOINFO
, wErrorRet
, 1)
921 TEST_FIELD_OFFSET(MMIOINFO
, wErrorRet
, 16)
922 TEST_FIELD_SIZE (MMIOINFO
, hTask
, 8)
923 TEST_FIELD_ALIGN (MMIOINFO
, hTask
, 1)
924 TEST_FIELD_OFFSET(MMIOINFO
, hTask
, 20)
925 TEST_FIELD_SIZE (MMIOINFO
, cchBuffer
, 4)
926 TEST_FIELD_ALIGN (MMIOINFO
, cchBuffer
, 1)
927 TEST_FIELD_OFFSET(MMIOINFO
, cchBuffer
, 28)
928 TEST_FIELD_SIZE (MMIOINFO
, pchBuffer
, 8)
929 TEST_FIELD_ALIGN (MMIOINFO
, pchBuffer
, 1)
930 TEST_FIELD_OFFSET(MMIOINFO
, pchBuffer
, 32)
931 TEST_FIELD_SIZE (MMIOINFO
, pchNext
, 8)
932 TEST_FIELD_ALIGN (MMIOINFO
, pchNext
, 1)
933 TEST_FIELD_OFFSET(MMIOINFO
, pchNext
, 40)
934 TEST_FIELD_SIZE (MMIOINFO
, pchEndRead
, 8)
935 TEST_FIELD_ALIGN (MMIOINFO
, pchEndRead
, 1)
936 TEST_FIELD_OFFSET(MMIOINFO
, pchEndRead
, 48)
937 TEST_FIELD_SIZE (MMIOINFO
, pchEndWrite
, 8)
938 TEST_FIELD_ALIGN (MMIOINFO
, pchEndWrite
, 1)
939 TEST_FIELD_OFFSET(MMIOINFO
, pchEndWrite
, 56)
940 TEST_FIELD_SIZE (MMIOINFO
, lBufOffset
, 4)
941 TEST_FIELD_ALIGN (MMIOINFO
, lBufOffset
, 1)
942 TEST_FIELD_OFFSET(MMIOINFO
, lBufOffset
, 64)
943 TEST_FIELD_SIZE (MMIOINFO
, lDiskOffset
, 4)
944 TEST_FIELD_ALIGN (MMIOINFO
, lDiskOffset
, 1)
945 TEST_FIELD_OFFSET(MMIOINFO
, lDiskOffset
, 68)
946 TEST_FIELD_SIZE (MMIOINFO
, adwInfo
, 12)
947 TEST_FIELD_ALIGN (MMIOINFO
, adwInfo
, 1)
948 TEST_FIELD_OFFSET(MMIOINFO
, adwInfo
, 72)
949 TEST_FIELD_SIZE (MMIOINFO
, dwReserved1
, 4)
950 TEST_FIELD_ALIGN (MMIOINFO
, dwReserved1
, 1)
951 TEST_FIELD_OFFSET(MMIOINFO
, dwReserved1
, 84)
952 TEST_FIELD_SIZE (MMIOINFO
, dwReserved2
, 4)
953 TEST_FIELD_ALIGN (MMIOINFO
, dwReserved2
, 1)
954 TEST_FIELD_OFFSET(MMIOINFO
, dwReserved2
, 88)
955 TEST_FIELD_SIZE (MMIOINFO
, hmmio
, 8)
956 TEST_FIELD_ALIGN (MMIOINFO
, hmmio
, 1)
957 TEST_FIELD_OFFSET(MMIOINFO
, hmmio
, 92)
960 static void test_pack_MMCKINFO(void)
962 /* MMCKINFO (pack 1) */
963 TEST_TYPE_SIZE (MMCKINFO
, 20)
964 TEST_TYPE_ALIGN (MMCKINFO
, 1)
965 TEST_FIELD_SIZE (MMCKINFO
, ckid
, 4)
966 TEST_FIELD_ALIGN (MMCKINFO
, ckid
, 1)
967 TEST_FIELD_OFFSET(MMCKINFO
, ckid
, 0)
968 TEST_FIELD_SIZE (MMCKINFO
, cksize
, 4)
969 TEST_FIELD_ALIGN (MMCKINFO
, cksize
, 1)
970 TEST_FIELD_OFFSET(MMCKINFO
, cksize
, 4)
971 TEST_FIELD_SIZE (MMCKINFO
, fccType
, 4)
972 TEST_FIELD_ALIGN (MMCKINFO
, fccType
, 1)
973 TEST_FIELD_OFFSET(MMCKINFO
, fccType
, 8)
974 TEST_FIELD_SIZE (MMCKINFO
, dwDataOffset
, 4)
975 TEST_FIELD_ALIGN (MMCKINFO
, dwDataOffset
, 1)
976 TEST_FIELD_OFFSET(MMCKINFO
, dwDataOffset
, 12)
977 TEST_FIELD_SIZE (MMCKINFO
, dwFlags
, 4)
978 TEST_FIELD_ALIGN (MMCKINFO
, dwFlags
, 1)
979 TEST_FIELD_OFFSET(MMCKINFO
, dwFlags
, 16)
982 static void test_pack_MCI_GENERIC_PARMS(void)
984 /* MCI_GENERIC_PARMS (pack 1) */
985 TEST_TYPE_SIZE (MCI_GENERIC_PARMS
, 8)
986 TEST_TYPE_ALIGN (MCI_GENERIC_PARMS
, 1)
987 TEST_FIELD_SIZE (MCI_GENERIC_PARMS
, dwCallback
, 8)
988 TEST_FIELD_ALIGN (MCI_GENERIC_PARMS
, dwCallback
, 1)
989 TEST_FIELD_OFFSET(MCI_GENERIC_PARMS
, dwCallback
, 0)
992 static void test_pack_MCI_OPEN_PARMSA(void)
994 /* MCI_OPEN_PARMSA (pack 1) */
995 TEST_TYPE_SIZE (MCI_OPEN_PARMSA
, 36)
996 TEST_TYPE_ALIGN (MCI_OPEN_PARMSA
, 1)
997 TEST_FIELD_SIZE (MCI_OPEN_PARMSA
, dwCallback
, 8)
998 TEST_FIELD_ALIGN (MCI_OPEN_PARMSA
, dwCallback
, 1)
999 TEST_FIELD_OFFSET(MCI_OPEN_PARMSA
, dwCallback
, 0)
1000 TEST_FIELD_SIZE (MCI_OPEN_PARMSA
, wDeviceID
, 4)
1001 TEST_FIELD_ALIGN (MCI_OPEN_PARMSA
, wDeviceID
, 1)
1002 TEST_FIELD_OFFSET(MCI_OPEN_PARMSA
, wDeviceID
, 8)
1003 TEST_FIELD_SIZE (MCI_OPEN_PARMSA
, lpstrDeviceType
, 8)
1004 TEST_FIELD_ALIGN (MCI_OPEN_PARMSA
, lpstrDeviceType
, 1)
1005 TEST_FIELD_OFFSET(MCI_OPEN_PARMSA
, lpstrDeviceType
, 12)
1006 TEST_FIELD_SIZE (MCI_OPEN_PARMSA
, lpstrElementName
, 8)
1007 TEST_FIELD_ALIGN (MCI_OPEN_PARMSA
, lpstrElementName
, 1)
1008 TEST_FIELD_OFFSET(MCI_OPEN_PARMSA
, lpstrElementName
, 20)
1009 TEST_FIELD_SIZE (MCI_OPEN_PARMSA
, lpstrAlias
, 8)
1010 TEST_FIELD_ALIGN (MCI_OPEN_PARMSA
, lpstrAlias
, 1)
1011 TEST_FIELD_OFFSET(MCI_OPEN_PARMSA
, lpstrAlias
, 28)
1014 static void test_pack_MCI_OPEN_PARMSW(void)
1016 /* MCI_OPEN_PARMSW (pack 1) */
1017 TEST_TYPE_SIZE (MCI_OPEN_PARMSW
, 36)
1018 TEST_TYPE_ALIGN (MCI_OPEN_PARMSW
, 1)
1019 TEST_FIELD_SIZE (MCI_OPEN_PARMSW
, dwCallback
, 8)
1020 TEST_FIELD_ALIGN (MCI_OPEN_PARMSW
, dwCallback
, 1)
1021 TEST_FIELD_OFFSET(MCI_OPEN_PARMSW
, dwCallback
, 0)
1022 TEST_FIELD_SIZE (MCI_OPEN_PARMSW
, wDeviceID
, 4)
1023 TEST_FIELD_ALIGN (MCI_OPEN_PARMSW
, wDeviceID
, 1)
1024 TEST_FIELD_OFFSET(MCI_OPEN_PARMSW
, wDeviceID
, 8)
1025 TEST_FIELD_SIZE (MCI_OPEN_PARMSW
, lpstrDeviceType
, 8)
1026 TEST_FIELD_ALIGN (MCI_OPEN_PARMSW
, lpstrDeviceType
, 1)
1027 TEST_FIELD_OFFSET(MCI_OPEN_PARMSW
, lpstrDeviceType
, 12)
1028 TEST_FIELD_SIZE (MCI_OPEN_PARMSW
, lpstrElementName
, 8)
1029 TEST_FIELD_ALIGN (MCI_OPEN_PARMSW
, lpstrElementName
, 1)
1030 TEST_FIELD_OFFSET(MCI_OPEN_PARMSW
, lpstrElementName
, 20)
1031 TEST_FIELD_SIZE (MCI_OPEN_PARMSW
, lpstrAlias
, 8)
1032 TEST_FIELD_ALIGN (MCI_OPEN_PARMSW
, lpstrAlias
, 1)
1033 TEST_FIELD_OFFSET(MCI_OPEN_PARMSW
, lpstrAlias
, 28)
1036 static void test_pack_MCI_PLAY_PARMS(void)
1038 /* MCI_PLAY_PARMS (pack 1) */
1039 TEST_TYPE_SIZE (MCI_PLAY_PARMS
, 16)
1040 TEST_TYPE_ALIGN (MCI_PLAY_PARMS
, 1)
1041 TEST_FIELD_SIZE (MCI_PLAY_PARMS
, dwCallback
, 8)
1042 TEST_FIELD_ALIGN (MCI_PLAY_PARMS
, dwCallback
, 1)
1043 TEST_FIELD_OFFSET(MCI_PLAY_PARMS
, dwCallback
, 0)
1044 TEST_FIELD_SIZE (MCI_PLAY_PARMS
, dwFrom
, 4)
1045 TEST_FIELD_ALIGN (MCI_PLAY_PARMS
, dwFrom
, 1)
1046 TEST_FIELD_OFFSET(MCI_PLAY_PARMS
, dwFrom
, 8)
1047 TEST_FIELD_SIZE (MCI_PLAY_PARMS
, dwTo
, 4)
1048 TEST_FIELD_ALIGN (MCI_PLAY_PARMS
, dwTo
, 1)
1049 TEST_FIELD_OFFSET(MCI_PLAY_PARMS
, dwTo
, 12)
1052 static void test_pack_MCI_SEEK_PARMS(void)
1054 /* MCI_SEEK_PARMS (pack 1) */
1055 TEST_TYPE_SIZE (MCI_SEEK_PARMS
, 12)
1056 TEST_TYPE_ALIGN (MCI_SEEK_PARMS
, 1)
1057 TEST_FIELD_SIZE (MCI_SEEK_PARMS
, dwCallback
, 8)
1058 TEST_FIELD_ALIGN (MCI_SEEK_PARMS
, dwCallback
, 1)
1059 TEST_FIELD_OFFSET(MCI_SEEK_PARMS
, dwCallback
, 0)
1060 TEST_FIELD_SIZE (MCI_SEEK_PARMS
, dwTo
, 4)
1061 TEST_FIELD_ALIGN (MCI_SEEK_PARMS
, dwTo
, 1)
1062 TEST_FIELD_OFFSET(MCI_SEEK_PARMS
, dwTo
, 8)
1065 static void test_pack_MCI_STATUS_PARMS(void)
1067 /* MCI_STATUS_PARMS (pack 1) */
1068 TEST_TYPE_SIZE (MCI_STATUS_PARMS
, 24)
1069 TEST_TYPE_ALIGN (MCI_STATUS_PARMS
, 1)
1070 TEST_FIELD_SIZE (MCI_STATUS_PARMS
, dwCallback
, 8)
1071 TEST_FIELD_ALIGN (MCI_STATUS_PARMS
, dwCallback
, 1)
1072 TEST_FIELD_OFFSET(MCI_STATUS_PARMS
, dwCallback
, 0)
1073 TEST_FIELD_SIZE (MCI_STATUS_PARMS
, dwReturn
, 8)
1074 TEST_FIELD_ALIGN (MCI_STATUS_PARMS
, dwReturn
, 1)
1075 TEST_FIELD_OFFSET(MCI_STATUS_PARMS
, dwReturn
, 8)
1076 TEST_FIELD_SIZE (MCI_STATUS_PARMS
, dwItem
, 4)
1077 TEST_FIELD_ALIGN (MCI_STATUS_PARMS
, dwItem
, 1)
1078 TEST_FIELD_OFFSET(MCI_STATUS_PARMS
, dwItem
, 16)
1079 TEST_FIELD_SIZE (MCI_STATUS_PARMS
, dwTrack
, 4)
1080 TEST_FIELD_ALIGN (MCI_STATUS_PARMS
, dwTrack
, 1)
1081 TEST_FIELD_OFFSET(MCI_STATUS_PARMS
, dwTrack
, 20)
1084 static void test_pack_MCI_INFO_PARMSA(void)
1086 /* MCI_INFO_PARMSA (pack 1) */
1087 TEST_TYPE_SIZE (MCI_INFO_PARMSA
, 20)
1088 TEST_TYPE_ALIGN (MCI_INFO_PARMSA
, 1)
1089 TEST_FIELD_SIZE (MCI_INFO_PARMSA
, dwCallback
, 8)
1090 TEST_FIELD_ALIGN (MCI_INFO_PARMSA
, dwCallback
, 1)
1091 TEST_FIELD_OFFSET(MCI_INFO_PARMSA
, dwCallback
, 0)
1092 TEST_FIELD_SIZE (MCI_INFO_PARMSA
, lpstrReturn
, 8)
1093 TEST_FIELD_ALIGN (MCI_INFO_PARMSA
, lpstrReturn
, 1)
1094 TEST_FIELD_OFFSET(MCI_INFO_PARMSA
, lpstrReturn
, 8)
1095 TEST_FIELD_SIZE (MCI_INFO_PARMSA
, dwRetSize
, 4)
1096 TEST_FIELD_ALIGN (MCI_INFO_PARMSA
, dwRetSize
, 1)
1097 TEST_FIELD_OFFSET(MCI_INFO_PARMSA
, dwRetSize
, 16)
1100 static void test_pack_MCI_INFO_PARMSW(void)
1102 /* MCI_INFO_PARMSW (pack 1) */
1103 TEST_TYPE_SIZE (MCI_INFO_PARMSW
, 20)
1104 TEST_TYPE_ALIGN (MCI_INFO_PARMSW
, 1)
1105 TEST_FIELD_SIZE (MCI_INFO_PARMSW
, dwCallback
, 8)
1106 TEST_FIELD_ALIGN (MCI_INFO_PARMSW
, dwCallback
, 1)
1107 TEST_FIELD_OFFSET(MCI_INFO_PARMSW
, dwCallback
, 0)
1108 TEST_FIELD_SIZE (MCI_INFO_PARMSW
, lpstrReturn
, 8)
1109 TEST_FIELD_ALIGN (MCI_INFO_PARMSW
, lpstrReturn
, 1)
1110 TEST_FIELD_OFFSET(MCI_INFO_PARMSW
, lpstrReturn
, 8)
1111 TEST_FIELD_SIZE (MCI_INFO_PARMSW
, dwRetSize
, 4)
1112 TEST_FIELD_ALIGN (MCI_INFO_PARMSW
, dwRetSize
, 1)
1113 TEST_FIELD_OFFSET(MCI_INFO_PARMSW
, dwRetSize
, 16)
1116 static void test_pack_MCI_GETDEVCAPS_PARMS(void)
1118 /* MCI_GETDEVCAPS_PARMS (pack 1) */
1119 TEST_TYPE_SIZE (MCI_GETDEVCAPS_PARMS
, 16)
1120 TEST_TYPE_ALIGN (MCI_GETDEVCAPS_PARMS
, 1)
1121 TEST_FIELD_SIZE (MCI_GETDEVCAPS_PARMS
, dwCallback
, 8)
1122 TEST_FIELD_ALIGN (MCI_GETDEVCAPS_PARMS
, dwCallback
, 1)
1123 TEST_FIELD_OFFSET(MCI_GETDEVCAPS_PARMS
, dwCallback
, 0)
1124 TEST_FIELD_SIZE (MCI_GETDEVCAPS_PARMS
, dwReturn
, 4)
1125 TEST_FIELD_ALIGN (MCI_GETDEVCAPS_PARMS
, dwReturn
, 1)
1126 TEST_FIELD_OFFSET(MCI_GETDEVCAPS_PARMS
, dwReturn
, 8)
1127 TEST_FIELD_SIZE (MCI_GETDEVCAPS_PARMS
, dwItem
, 4)
1128 TEST_FIELD_ALIGN (MCI_GETDEVCAPS_PARMS
, dwItem
, 1)
1129 TEST_FIELD_OFFSET(MCI_GETDEVCAPS_PARMS
, dwItem
, 12)
1132 static void test_pack_MCI_SYSINFO_PARMSA(void)
1134 /* MCI_SYSINFO_PARMSA (pack 1) */
1135 TEST_TYPE_SIZE (MCI_SYSINFO_PARMSA
, 28)
1136 TEST_TYPE_ALIGN (MCI_SYSINFO_PARMSA
, 1)
1137 TEST_FIELD_SIZE (MCI_SYSINFO_PARMSA
, dwCallback
, 8)
1138 TEST_FIELD_ALIGN (MCI_SYSINFO_PARMSA
, dwCallback
, 1)
1139 TEST_FIELD_OFFSET(MCI_SYSINFO_PARMSA
, dwCallback
, 0)
1140 TEST_FIELD_SIZE (MCI_SYSINFO_PARMSA
, lpstrReturn
, 8)
1141 TEST_FIELD_ALIGN (MCI_SYSINFO_PARMSA
, lpstrReturn
, 1)
1142 TEST_FIELD_OFFSET(MCI_SYSINFO_PARMSA
, lpstrReturn
, 8)
1143 TEST_FIELD_SIZE (MCI_SYSINFO_PARMSA
, dwRetSize
, 4)
1144 TEST_FIELD_ALIGN (MCI_SYSINFO_PARMSA
, dwRetSize
, 1)
1145 TEST_FIELD_OFFSET(MCI_SYSINFO_PARMSA
, dwRetSize
, 16)
1146 TEST_FIELD_SIZE (MCI_SYSINFO_PARMSA
, dwNumber
, 4)
1147 TEST_FIELD_ALIGN (MCI_SYSINFO_PARMSA
, dwNumber
, 1)
1148 TEST_FIELD_OFFSET(MCI_SYSINFO_PARMSA
, dwNumber
, 20)
1149 TEST_FIELD_SIZE (MCI_SYSINFO_PARMSA
, wDeviceType
, 4)
1150 TEST_FIELD_ALIGN (MCI_SYSINFO_PARMSA
, wDeviceType
, 1)
1151 TEST_FIELD_OFFSET(MCI_SYSINFO_PARMSA
, wDeviceType
, 24)
1154 static void test_pack_MCI_SYSINFO_PARMSW(void)
1156 /* MCI_SYSINFO_PARMSW (pack 1) */
1157 TEST_TYPE_SIZE (MCI_SYSINFO_PARMSW
, 28)
1158 TEST_TYPE_ALIGN (MCI_SYSINFO_PARMSW
, 1)
1159 TEST_FIELD_SIZE (MCI_SYSINFO_PARMSW
, dwCallback
, 8)
1160 TEST_FIELD_ALIGN (MCI_SYSINFO_PARMSW
, dwCallback
, 1)
1161 TEST_FIELD_OFFSET(MCI_SYSINFO_PARMSW
, dwCallback
, 0)
1162 TEST_FIELD_SIZE (MCI_SYSINFO_PARMSW
, lpstrReturn
, 8)
1163 TEST_FIELD_ALIGN (MCI_SYSINFO_PARMSW
, lpstrReturn
, 1)
1164 TEST_FIELD_OFFSET(MCI_SYSINFO_PARMSW
, lpstrReturn
, 8)
1165 TEST_FIELD_SIZE (MCI_SYSINFO_PARMSW
, dwRetSize
, 4)
1166 TEST_FIELD_ALIGN (MCI_SYSINFO_PARMSW
, dwRetSize
, 1)
1167 TEST_FIELD_OFFSET(MCI_SYSINFO_PARMSW
, dwRetSize
, 16)
1168 TEST_FIELD_SIZE (MCI_SYSINFO_PARMSW
, dwNumber
, 4)
1169 TEST_FIELD_ALIGN (MCI_SYSINFO_PARMSW
, dwNumber
, 1)
1170 TEST_FIELD_OFFSET(MCI_SYSINFO_PARMSW
, dwNumber
, 20)
1171 TEST_FIELD_SIZE (MCI_SYSINFO_PARMSW
, wDeviceType
, 4)
1172 TEST_FIELD_ALIGN (MCI_SYSINFO_PARMSW
, wDeviceType
, 1)
1173 TEST_FIELD_OFFSET(MCI_SYSINFO_PARMSW
, wDeviceType
, 24)
1176 static void test_pack_MCI_SET_PARMS(void)
1178 /* MCI_SET_PARMS (pack 1) */
1179 TEST_TYPE_SIZE (MCI_SET_PARMS
, 16)
1180 TEST_TYPE_ALIGN (MCI_SET_PARMS
, 1)
1181 TEST_FIELD_SIZE (MCI_SET_PARMS
, dwCallback
, 8)
1182 TEST_FIELD_ALIGN (MCI_SET_PARMS
, dwCallback
, 1)
1183 TEST_FIELD_OFFSET(MCI_SET_PARMS
, dwCallback
, 0)
1184 TEST_FIELD_SIZE (MCI_SET_PARMS
, dwTimeFormat
, 4)
1185 TEST_FIELD_ALIGN (MCI_SET_PARMS
, dwTimeFormat
, 1)
1186 TEST_FIELD_OFFSET(MCI_SET_PARMS
, dwTimeFormat
, 8)
1187 TEST_FIELD_SIZE (MCI_SET_PARMS
, dwAudio
, 4)
1188 TEST_FIELD_ALIGN (MCI_SET_PARMS
, dwAudio
, 1)
1189 TEST_FIELD_OFFSET(MCI_SET_PARMS
, dwAudio
, 12)
1192 static void test_pack_MCI_BREAK_PARMS(void)
1194 /* MCI_BREAK_PARMS (pack 1) */
1195 TEST_TYPE_SIZE (MCI_BREAK_PARMS
, 20)
1196 TEST_TYPE_ALIGN (MCI_BREAK_PARMS
, 1)
1197 TEST_FIELD_SIZE (MCI_BREAK_PARMS
, dwCallback
, 8)
1198 TEST_FIELD_ALIGN (MCI_BREAK_PARMS
, dwCallback
, 1)
1199 TEST_FIELD_OFFSET(MCI_BREAK_PARMS
, dwCallback
, 0)
1200 TEST_FIELD_SIZE (MCI_BREAK_PARMS
, nVirtKey
, 4)
1201 TEST_FIELD_ALIGN (MCI_BREAK_PARMS
, nVirtKey
, 1)
1202 TEST_FIELD_OFFSET(MCI_BREAK_PARMS
, nVirtKey
, 8)
1203 TEST_FIELD_SIZE (MCI_BREAK_PARMS
, hwndBreak
, 8)
1204 TEST_FIELD_ALIGN (MCI_BREAK_PARMS
, hwndBreak
, 1)
1205 TEST_FIELD_OFFSET(MCI_BREAK_PARMS
, hwndBreak
, 12)
1208 static void test_pack_MCI_SOUND_PARMSA(void)
1210 /* MCI_SOUND_PARMSA (pack 1) */
1211 TEST_TYPE_SIZE (MCI_SOUND_PARMSA
, 16)
1212 TEST_TYPE_ALIGN (MCI_SOUND_PARMSA
, 1)
1213 TEST_FIELD_SIZE (MCI_SOUND_PARMSA
, dwCallback
, 8)
1214 TEST_FIELD_ALIGN (MCI_SOUND_PARMSA
, dwCallback
, 1)
1215 TEST_FIELD_OFFSET(MCI_SOUND_PARMSA
, dwCallback
, 0)
1216 TEST_FIELD_SIZE (MCI_SOUND_PARMSA
, lpstrSoundName
, 8)
1217 TEST_FIELD_ALIGN (MCI_SOUND_PARMSA
, lpstrSoundName
, 1)
1218 TEST_FIELD_OFFSET(MCI_SOUND_PARMSA
, lpstrSoundName
, 8)
1221 static void test_pack_MCI_SOUND_PARMSW(void)
1223 /* MCI_SOUND_PARMSW (pack 1) */
1224 TEST_TYPE_SIZE (MCI_SOUND_PARMSW
, 16)
1225 TEST_TYPE_ALIGN (MCI_SOUND_PARMSW
, 1)
1226 TEST_FIELD_SIZE (MCI_SOUND_PARMSW
, dwCallback
, 8)
1227 TEST_FIELD_ALIGN (MCI_SOUND_PARMSW
, dwCallback
, 1)
1228 TEST_FIELD_OFFSET(MCI_SOUND_PARMSW
, dwCallback
, 0)
1229 TEST_FIELD_SIZE (MCI_SOUND_PARMSW
, lpstrSoundName
, 8)
1230 TEST_FIELD_ALIGN (MCI_SOUND_PARMSW
, lpstrSoundName
, 1)
1231 TEST_FIELD_OFFSET(MCI_SOUND_PARMSW
, lpstrSoundName
, 8)
1234 static void test_pack_MCI_SAVE_PARMSA(void)
1236 /* MCI_SAVE_PARMSA (pack 1) */
1237 TEST_TYPE_SIZE (MCI_SAVE_PARMSA
, 16)
1238 TEST_TYPE_ALIGN (MCI_SAVE_PARMSA
, 1)
1239 TEST_FIELD_SIZE (MCI_SAVE_PARMSA
, dwCallback
, 8)
1240 TEST_FIELD_ALIGN (MCI_SAVE_PARMSA
, dwCallback
, 1)
1241 TEST_FIELD_OFFSET(MCI_SAVE_PARMSA
, dwCallback
, 0)
1242 TEST_FIELD_SIZE (MCI_SAVE_PARMSA
, lpfilename
, 8)
1243 TEST_FIELD_ALIGN (MCI_SAVE_PARMSA
, lpfilename
, 1)
1244 TEST_FIELD_OFFSET(MCI_SAVE_PARMSA
, lpfilename
, 8)
1247 static void test_pack_MCI_SAVE_PARMSW(void)
1249 /* MCI_SAVE_PARMSW (pack 1) */
1250 TEST_TYPE_SIZE (MCI_SAVE_PARMSW
, 16)
1251 TEST_TYPE_ALIGN (MCI_SAVE_PARMSW
, 1)
1252 TEST_FIELD_SIZE (MCI_SAVE_PARMSW
, dwCallback
, 8)
1253 TEST_FIELD_ALIGN (MCI_SAVE_PARMSW
, dwCallback
, 1)
1254 TEST_FIELD_OFFSET(MCI_SAVE_PARMSW
, dwCallback
, 0)
1255 TEST_FIELD_SIZE (MCI_SAVE_PARMSW
, lpfilename
, 8)
1256 TEST_FIELD_ALIGN (MCI_SAVE_PARMSW
, lpfilename
, 1)
1257 TEST_FIELD_OFFSET(MCI_SAVE_PARMSW
, lpfilename
, 8)
1260 static void test_pack_MCI_LOAD_PARMSA(void)
1262 /* MCI_LOAD_PARMSA (pack 1) */
1263 TEST_TYPE_SIZE (MCI_LOAD_PARMSA
, 16)
1264 TEST_TYPE_ALIGN (MCI_LOAD_PARMSA
, 1)
1265 TEST_FIELD_SIZE (MCI_LOAD_PARMSA
, dwCallback
, 8)
1266 TEST_FIELD_ALIGN (MCI_LOAD_PARMSA
, dwCallback
, 1)
1267 TEST_FIELD_OFFSET(MCI_LOAD_PARMSA
, dwCallback
, 0)
1268 TEST_FIELD_SIZE (MCI_LOAD_PARMSA
, lpfilename
, 8)
1269 TEST_FIELD_ALIGN (MCI_LOAD_PARMSA
, lpfilename
, 1)
1270 TEST_FIELD_OFFSET(MCI_LOAD_PARMSA
, lpfilename
, 8)
1273 static void test_pack_MCI_LOAD_PARMSW(void)
1275 /* MCI_LOAD_PARMSW (pack 1) */
1276 TEST_TYPE_SIZE (MCI_LOAD_PARMSW
, 16)
1277 TEST_TYPE_ALIGN (MCI_LOAD_PARMSW
, 1)
1278 TEST_FIELD_SIZE (MCI_LOAD_PARMSW
, dwCallback
, 8)
1279 TEST_FIELD_ALIGN (MCI_LOAD_PARMSW
, dwCallback
, 1)
1280 TEST_FIELD_OFFSET(MCI_LOAD_PARMSW
, dwCallback
, 0)
1281 TEST_FIELD_SIZE (MCI_LOAD_PARMSW
, lpfilename
, 8)
1282 TEST_FIELD_ALIGN (MCI_LOAD_PARMSW
, lpfilename
, 1)
1283 TEST_FIELD_OFFSET(MCI_LOAD_PARMSW
, lpfilename
, 8)
1286 static void test_pack_MCI_RECORD_PARMS(void)
1288 /* MCI_RECORD_PARMS (pack 1) */
1289 TEST_TYPE_SIZE (MCI_RECORD_PARMS
, 16)
1290 TEST_TYPE_ALIGN (MCI_RECORD_PARMS
, 1)
1291 TEST_FIELD_SIZE (MCI_RECORD_PARMS
, dwCallback
, 8)
1292 TEST_FIELD_ALIGN (MCI_RECORD_PARMS
, dwCallback
, 1)
1293 TEST_FIELD_OFFSET(MCI_RECORD_PARMS
, dwCallback
, 0)
1294 TEST_FIELD_SIZE (MCI_RECORD_PARMS
, dwFrom
, 4)
1295 TEST_FIELD_ALIGN (MCI_RECORD_PARMS
, dwFrom
, 1)
1296 TEST_FIELD_OFFSET(MCI_RECORD_PARMS
, dwFrom
, 8)
1297 TEST_FIELD_SIZE (MCI_RECORD_PARMS
, dwTo
, 4)
1298 TEST_FIELD_ALIGN (MCI_RECORD_PARMS
, dwTo
, 1)
1299 TEST_FIELD_OFFSET(MCI_RECORD_PARMS
, dwTo
, 12)
1302 static void test_pack_MCI_VD_PLAY_PARMS(void)
1304 /* MCI_VD_PLAY_PARMS (pack 1) */
1305 TEST_TYPE_SIZE (MCI_VD_PLAY_PARMS
, 20)
1306 TEST_TYPE_ALIGN (MCI_VD_PLAY_PARMS
, 1)
1307 TEST_FIELD_SIZE (MCI_VD_PLAY_PARMS
, dwCallback
, 8)
1308 TEST_FIELD_ALIGN (MCI_VD_PLAY_PARMS
, dwCallback
, 1)
1309 TEST_FIELD_OFFSET(MCI_VD_PLAY_PARMS
, dwCallback
, 0)
1310 TEST_FIELD_SIZE (MCI_VD_PLAY_PARMS
, dwFrom
, 4)
1311 TEST_FIELD_ALIGN (MCI_VD_PLAY_PARMS
, dwFrom
, 1)
1312 TEST_FIELD_OFFSET(MCI_VD_PLAY_PARMS
, dwFrom
, 8)
1313 TEST_FIELD_SIZE (MCI_VD_PLAY_PARMS
, dwTo
, 4)
1314 TEST_FIELD_ALIGN (MCI_VD_PLAY_PARMS
, dwTo
, 1)
1315 TEST_FIELD_OFFSET(MCI_VD_PLAY_PARMS
, dwTo
, 12)
1316 TEST_FIELD_SIZE (MCI_VD_PLAY_PARMS
, dwSpeed
, 4)
1317 TEST_FIELD_ALIGN (MCI_VD_PLAY_PARMS
, dwSpeed
, 1)
1318 TEST_FIELD_OFFSET(MCI_VD_PLAY_PARMS
, dwSpeed
, 16)
1321 static void test_pack_MCI_VD_STEP_PARMS(void)
1323 /* MCI_VD_STEP_PARMS (pack 1) */
1324 TEST_TYPE_SIZE (MCI_VD_STEP_PARMS
, 12)
1325 TEST_TYPE_ALIGN (MCI_VD_STEP_PARMS
, 1)
1326 TEST_FIELD_SIZE (MCI_VD_STEP_PARMS
, dwCallback
, 8)
1327 TEST_FIELD_ALIGN (MCI_VD_STEP_PARMS
, dwCallback
, 1)
1328 TEST_FIELD_OFFSET(MCI_VD_STEP_PARMS
, dwCallback
, 0)
1329 TEST_FIELD_SIZE (MCI_VD_STEP_PARMS
, dwFrames
, 4)
1330 TEST_FIELD_ALIGN (MCI_VD_STEP_PARMS
, dwFrames
, 1)
1331 TEST_FIELD_OFFSET(MCI_VD_STEP_PARMS
, dwFrames
, 8)
1334 static void test_pack_MCI_VD_ESCAPE_PARMSA(void)
1336 /* MCI_VD_ESCAPE_PARMSA (pack 1) */
1337 TEST_TYPE_SIZE (MCI_VD_ESCAPE_PARMSA
, 16)
1338 TEST_TYPE_ALIGN (MCI_VD_ESCAPE_PARMSA
, 1)
1339 TEST_FIELD_SIZE (MCI_VD_ESCAPE_PARMSA
, dwCallback
, 8)
1340 TEST_FIELD_ALIGN (MCI_VD_ESCAPE_PARMSA
, dwCallback
, 1)
1341 TEST_FIELD_OFFSET(MCI_VD_ESCAPE_PARMSA
, dwCallback
, 0)
1342 TEST_FIELD_SIZE (MCI_VD_ESCAPE_PARMSA
, lpstrCommand
, 8)
1343 TEST_FIELD_ALIGN (MCI_VD_ESCAPE_PARMSA
, lpstrCommand
, 1)
1344 TEST_FIELD_OFFSET(MCI_VD_ESCAPE_PARMSA
, lpstrCommand
, 8)
1347 static void test_pack_MCI_VD_ESCAPE_PARMSW(void)
1349 /* MCI_VD_ESCAPE_PARMSW (pack 1) */
1350 TEST_TYPE_SIZE (MCI_VD_ESCAPE_PARMSW
, 16)
1351 TEST_TYPE_ALIGN (MCI_VD_ESCAPE_PARMSW
, 1)
1352 TEST_FIELD_SIZE (MCI_VD_ESCAPE_PARMSW
, dwCallback
, 8)
1353 TEST_FIELD_ALIGN (MCI_VD_ESCAPE_PARMSW
, dwCallback
, 1)
1354 TEST_FIELD_OFFSET(MCI_VD_ESCAPE_PARMSW
, dwCallback
, 0)
1355 TEST_FIELD_SIZE (MCI_VD_ESCAPE_PARMSW
, lpstrCommand
, 8)
1356 TEST_FIELD_ALIGN (MCI_VD_ESCAPE_PARMSW
, lpstrCommand
, 1)
1357 TEST_FIELD_OFFSET(MCI_VD_ESCAPE_PARMSW
, lpstrCommand
, 8)
1360 static void test_pack_MCI_WAVE_OPEN_PARMSA(void)
1362 /* MCI_WAVE_OPEN_PARMSA (pack 1) */
1363 TEST_TYPE_SIZE (MCI_WAVE_OPEN_PARMSA
, 40)
1364 TEST_TYPE_ALIGN (MCI_WAVE_OPEN_PARMSA
, 1)
1365 TEST_FIELD_SIZE (MCI_WAVE_OPEN_PARMSA
, dwCallback
, 8)
1366 TEST_FIELD_ALIGN (MCI_WAVE_OPEN_PARMSA
, dwCallback
, 1)
1367 TEST_FIELD_OFFSET(MCI_WAVE_OPEN_PARMSA
, dwCallback
, 0)
1368 TEST_FIELD_SIZE (MCI_WAVE_OPEN_PARMSA
, wDeviceID
, 4)
1369 TEST_FIELD_ALIGN (MCI_WAVE_OPEN_PARMSA
, wDeviceID
, 1)
1370 TEST_FIELD_OFFSET(MCI_WAVE_OPEN_PARMSA
, wDeviceID
, 8)
1371 TEST_FIELD_SIZE (MCI_WAVE_OPEN_PARMSA
, lpstrDeviceType
, 8)
1372 TEST_FIELD_ALIGN (MCI_WAVE_OPEN_PARMSA
, lpstrDeviceType
, 1)
1373 TEST_FIELD_OFFSET(MCI_WAVE_OPEN_PARMSA
, lpstrDeviceType
, 12)
1374 TEST_FIELD_SIZE (MCI_WAVE_OPEN_PARMSA
, lpstrElementName
, 8)
1375 TEST_FIELD_ALIGN (MCI_WAVE_OPEN_PARMSA
, lpstrElementName
, 1)
1376 TEST_FIELD_OFFSET(MCI_WAVE_OPEN_PARMSA
, lpstrElementName
, 20)
1377 TEST_FIELD_SIZE (MCI_WAVE_OPEN_PARMSA
, lpstrAlias
, 8)
1378 TEST_FIELD_ALIGN (MCI_WAVE_OPEN_PARMSA
, lpstrAlias
, 1)
1379 TEST_FIELD_OFFSET(MCI_WAVE_OPEN_PARMSA
, lpstrAlias
, 28)
1380 TEST_FIELD_SIZE (MCI_WAVE_OPEN_PARMSA
, dwBufferSeconds
, 4)
1381 TEST_FIELD_ALIGN (MCI_WAVE_OPEN_PARMSA
, dwBufferSeconds
, 1)
1382 TEST_FIELD_OFFSET(MCI_WAVE_OPEN_PARMSA
, dwBufferSeconds
, 36)
1385 static void test_pack_MCI_WAVE_OPEN_PARMSW(void)
1387 /* MCI_WAVE_OPEN_PARMSW (pack 1) */
1388 TEST_TYPE_SIZE (MCI_WAVE_OPEN_PARMSW
, 40)
1389 TEST_TYPE_ALIGN (MCI_WAVE_OPEN_PARMSW
, 1)
1390 TEST_FIELD_SIZE (MCI_WAVE_OPEN_PARMSW
, dwCallback
, 8)
1391 TEST_FIELD_ALIGN (MCI_WAVE_OPEN_PARMSW
, dwCallback
, 1)
1392 TEST_FIELD_OFFSET(MCI_WAVE_OPEN_PARMSW
, dwCallback
, 0)
1393 TEST_FIELD_SIZE (MCI_WAVE_OPEN_PARMSW
, wDeviceID
, 4)
1394 TEST_FIELD_ALIGN (MCI_WAVE_OPEN_PARMSW
, wDeviceID
, 1)
1395 TEST_FIELD_OFFSET(MCI_WAVE_OPEN_PARMSW
, wDeviceID
, 8)
1396 TEST_FIELD_SIZE (MCI_WAVE_OPEN_PARMSW
, lpstrDeviceType
, 8)
1397 TEST_FIELD_ALIGN (MCI_WAVE_OPEN_PARMSW
, lpstrDeviceType
, 1)
1398 TEST_FIELD_OFFSET(MCI_WAVE_OPEN_PARMSW
, lpstrDeviceType
, 12)
1399 TEST_FIELD_SIZE (MCI_WAVE_OPEN_PARMSW
, lpstrElementName
, 8)
1400 TEST_FIELD_ALIGN (MCI_WAVE_OPEN_PARMSW
, lpstrElementName
, 1)
1401 TEST_FIELD_OFFSET(MCI_WAVE_OPEN_PARMSW
, lpstrElementName
, 20)
1402 TEST_FIELD_SIZE (MCI_WAVE_OPEN_PARMSW
, lpstrAlias
, 8)
1403 TEST_FIELD_ALIGN (MCI_WAVE_OPEN_PARMSW
, lpstrAlias
, 1)
1404 TEST_FIELD_OFFSET(MCI_WAVE_OPEN_PARMSW
, lpstrAlias
, 28)
1405 TEST_FIELD_SIZE (MCI_WAVE_OPEN_PARMSW
, dwBufferSeconds
, 4)
1406 TEST_FIELD_ALIGN (MCI_WAVE_OPEN_PARMSW
, dwBufferSeconds
, 1)
1407 TEST_FIELD_OFFSET(MCI_WAVE_OPEN_PARMSW
, dwBufferSeconds
, 36)
1410 static void test_pack_MCI_WAVE_DELETE_PARMS(void)
1412 /* MCI_WAVE_DELETE_PARMS (pack 1) */
1413 TEST_TYPE_SIZE (MCI_WAVE_DELETE_PARMS
, 16)
1414 TEST_TYPE_ALIGN (MCI_WAVE_DELETE_PARMS
, 1)
1415 TEST_FIELD_SIZE (MCI_WAVE_DELETE_PARMS
, dwCallback
, 8)
1416 TEST_FIELD_ALIGN (MCI_WAVE_DELETE_PARMS
, dwCallback
, 1)
1417 TEST_FIELD_OFFSET(MCI_WAVE_DELETE_PARMS
, dwCallback
, 0)
1418 TEST_FIELD_SIZE (MCI_WAVE_DELETE_PARMS
, dwFrom
, 4)
1419 TEST_FIELD_ALIGN (MCI_WAVE_DELETE_PARMS
, dwFrom
, 1)
1420 TEST_FIELD_OFFSET(MCI_WAVE_DELETE_PARMS
, dwFrom
, 8)
1421 TEST_FIELD_SIZE (MCI_WAVE_DELETE_PARMS
, dwTo
, 4)
1422 TEST_FIELD_ALIGN (MCI_WAVE_DELETE_PARMS
, dwTo
, 1)
1423 TEST_FIELD_OFFSET(MCI_WAVE_DELETE_PARMS
, dwTo
, 12)
1426 static void test_pack_MCI_WAVE_SET_PARMS(void)
1428 /* MCI_WAVE_SET_PARMS (pack 1) */
1429 TEST_TYPE_SIZE (MCI_WAVE_SET_PARMS
, 48)
1430 TEST_TYPE_ALIGN (MCI_WAVE_SET_PARMS
, 1)
1431 TEST_FIELD_SIZE (MCI_WAVE_SET_PARMS
, dwCallback
, 8)
1432 TEST_FIELD_ALIGN (MCI_WAVE_SET_PARMS
, dwCallback
, 1)
1433 TEST_FIELD_OFFSET(MCI_WAVE_SET_PARMS
, dwCallback
, 0)
1434 TEST_FIELD_SIZE (MCI_WAVE_SET_PARMS
, dwTimeFormat
, 4)
1435 TEST_FIELD_ALIGN (MCI_WAVE_SET_PARMS
, dwTimeFormat
, 1)
1436 TEST_FIELD_OFFSET(MCI_WAVE_SET_PARMS
, dwTimeFormat
, 8)
1437 TEST_FIELD_SIZE (MCI_WAVE_SET_PARMS
, dwAudio
, 4)
1438 TEST_FIELD_ALIGN (MCI_WAVE_SET_PARMS
, dwAudio
, 1)
1439 TEST_FIELD_OFFSET(MCI_WAVE_SET_PARMS
, dwAudio
, 12)
1440 TEST_FIELD_SIZE (MCI_WAVE_SET_PARMS
, wInput
, 4)
1441 TEST_FIELD_ALIGN (MCI_WAVE_SET_PARMS
, wInput
, 1)
1442 TEST_FIELD_OFFSET(MCI_WAVE_SET_PARMS
, wInput
, 16)
1443 TEST_FIELD_SIZE (MCI_WAVE_SET_PARMS
, wOutput
, 4)
1444 TEST_FIELD_ALIGN (MCI_WAVE_SET_PARMS
, wOutput
, 1)
1445 TEST_FIELD_OFFSET(MCI_WAVE_SET_PARMS
, wOutput
, 20)
1446 TEST_FIELD_SIZE (MCI_WAVE_SET_PARMS
, wFormatTag
, 4)
1447 TEST_FIELD_ALIGN (MCI_WAVE_SET_PARMS
, wFormatTag
, 1)
1448 TEST_FIELD_OFFSET(MCI_WAVE_SET_PARMS
, wFormatTag
, 24)
1449 TEST_FIELD_SIZE (MCI_WAVE_SET_PARMS
, nChannels
, 4)
1450 TEST_FIELD_ALIGN (MCI_WAVE_SET_PARMS
, nChannels
, 1)
1451 TEST_FIELD_OFFSET(MCI_WAVE_SET_PARMS
, nChannels
, 28)
1452 TEST_FIELD_SIZE (MCI_WAVE_SET_PARMS
, nSamplesPerSec
, 4)
1453 TEST_FIELD_ALIGN (MCI_WAVE_SET_PARMS
, nSamplesPerSec
, 1)
1454 TEST_FIELD_OFFSET(MCI_WAVE_SET_PARMS
, nSamplesPerSec
, 32)
1455 TEST_FIELD_SIZE (MCI_WAVE_SET_PARMS
, nAvgBytesPerSec
, 4)
1456 TEST_FIELD_ALIGN (MCI_WAVE_SET_PARMS
, nAvgBytesPerSec
, 1)
1457 TEST_FIELD_OFFSET(MCI_WAVE_SET_PARMS
, nAvgBytesPerSec
, 36)
1458 TEST_FIELD_SIZE (MCI_WAVE_SET_PARMS
, nBlockAlign
, 4)
1459 TEST_FIELD_ALIGN (MCI_WAVE_SET_PARMS
, nBlockAlign
, 1)
1460 TEST_FIELD_OFFSET(MCI_WAVE_SET_PARMS
, nBlockAlign
, 40)
1461 TEST_FIELD_SIZE (MCI_WAVE_SET_PARMS
, wBitsPerSample
, 4)
1462 TEST_FIELD_ALIGN (MCI_WAVE_SET_PARMS
, wBitsPerSample
, 1)
1463 TEST_FIELD_OFFSET(MCI_WAVE_SET_PARMS
, wBitsPerSample
, 44)
1466 static void test_pack_MCI_SEQ_SET_PARMS(void)
1468 /* MCI_SEQ_SET_PARMS (pack 1) */
1469 TEST_TYPE_SIZE (MCI_SEQ_SET_PARMS
, 36)
1470 TEST_TYPE_ALIGN (MCI_SEQ_SET_PARMS
, 1)
1471 TEST_FIELD_SIZE (MCI_SEQ_SET_PARMS
, dwCallback
, 8)
1472 TEST_FIELD_ALIGN (MCI_SEQ_SET_PARMS
, dwCallback
, 1)
1473 TEST_FIELD_OFFSET(MCI_SEQ_SET_PARMS
, dwCallback
, 0)
1474 TEST_FIELD_SIZE (MCI_SEQ_SET_PARMS
, dwTimeFormat
, 4)
1475 TEST_FIELD_ALIGN (MCI_SEQ_SET_PARMS
, dwTimeFormat
, 1)
1476 TEST_FIELD_OFFSET(MCI_SEQ_SET_PARMS
, dwTimeFormat
, 8)
1477 TEST_FIELD_SIZE (MCI_SEQ_SET_PARMS
, dwAudio
, 4)
1478 TEST_FIELD_ALIGN (MCI_SEQ_SET_PARMS
, dwAudio
, 1)
1479 TEST_FIELD_OFFSET(MCI_SEQ_SET_PARMS
, dwAudio
, 12)
1480 TEST_FIELD_SIZE (MCI_SEQ_SET_PARMS
, dwTempo
, 4)
1481 TEST_FIELD_ALIGN (MCI_SEQ_SET_PARMS
, dwTempo
, 1)
1482 TEST_FIELD_OFFSET(MCI_SEQ_SET_PARMS
, dwTempo
, 16)
1483 TEST_FIELD_SIZE (MCI_SEQ_SET_PARMS
, dwPort
, 4)
1484 TEST_FIELD_ALIGN (MCI_SEQ_SET_PARMS
, dwPort
, 1)
1485 TEST_FIELD_OFFSET(MCI_SEQ_SET_PARMS
, dwPort
, 20)
1486 TEST_FIELD_SIZE (MCI_SEQ_SET_PARMS
, dwSlave
, 4)
1487 TEST_FIELD_ALIGN (MCI_SEQ_SET_PARMS
, dwSlave
, 1)
1488 TEST_FIELD_OFFSET(MCI_SEQ_SET_PARMS
, dwSlave
, 24)
1489 TEST_FIELD_SIZE (MCI_SEQ_SET_PARMS
, dwMaster
, 4)
1490 TEST_FIELD_ALIGN (MCI_SEQ_SET_PARMS
, dwMaster
, 1)
1491 TEST_FIELD_OFFSET(MCI_SEQ_SET_PARMS
, dwMaster
, 28)
1492 TEST_FIELD_SIZE (MCI_SEQ_SET_PARMS
, dwOffset
, 4)
1493 TEST_FIELD_ALIGN (MCI_SEQ_SET_PARMS
, dwOffset
, 1)
1494 TEST_FIELD_OFFSET(MCI_SEQ_SET_PARMS
, dwOffset
, 32)
1497 static void test_pack_MCI_ANIM_OPEN_PARMSA(void)
1499 /* MCI_ANIM_OPEN_PARMSA (pack 1) */
1500 TEST_TYPE_SIZE (MCI_ANIM_OPEN_PARMSA
, 48)
1501 TEST_TYPE_ALIGN (MCI_ANIM_OPEN_PARMSA
, 1)
1502 TEST_FIELD_SIZE (MCI_ANIM_OPEN_PARMSA
, dwCallback
, 8)
1503 TEST_FIELD_ALIGN (MCI_ANIM_OPEN_PARMSA
, dwCallback
, 1)
1504 TEST_FIELD_OFFSET(MCI_ANIM_OPEN_PARMSA
, dwCallback
, 0)
1505 TEST_FIELD_SIZE (MCI_ANIM_OPEN_PARMSA
, wDeviceID
, 4)
1506 TEST_FIELD_ALIGN (MCI_ANIM_OPEN_PARMSA
, wDeviceID
, 1)
1507 TEST_FIELD_OFFSET(MCI_ANIM_OPEN_PARMSA
, wDeviceID
, 8)
1508 TEST_FIELD_SIZE (MCI_ANIM_OPEN_PARMSA
, lpstrDeviceType
, 8)
1509 TEST_FIELD_ALIGN (MCI_ANIM_OPEN_PARMSA
, lpstrDeviceType
, 1)
1510 TEST_FIELD_OFFSET(MCI_ANIM_OPEN_PARMSA
, lpstrDeviceType
, 12)
1511 TEST_FIELD_SIZE (MCI_ANIM_OPEN_PARMSA
, lpstrElementName
, 8)
1512 TEST_FIELD_ALIGN (MCI_ANIM_OPEN_PARMSA
, lpstrElementName
, 1)
1513 TEST_FIELD_OFFSET(MCI_ANIM_OPEN_PARMSA
, lpstrElementName
, 20)
1514 TEST_FIELD_SIZE (MCI_ANIM_OPEN_PARMSA
, lpstrAlias
, 8)
1515 TEST_FIELD_ALIGN (MCI_ANIM_OPEN_PARMSA
, lpstrAlias
, 1)
1516 TEST_FIELD_OFFSET(MCI_ANIM_OPEN_PARMSA
, lpstrAlias
, 28)
1517 TEST_FIELD_SIZE (MCI_ANIM_OPEN_PARMSA
, dwStyle
, 4)
1518 TEST_FIELD_ALIGN (MCI_ANIM_OPEN_PARMSA
, dwStyle
, 1)
1519 TEST_FIELD_OFFSET(MCI_ANIM_OPEN_PARMSA
, dwStyle
, 36)
1520 TEST_FIELD_SIZE (MCI_ANIM_OPEN_PARMSA
, hWndParent
, 8)
1521 TEST_FIELD_ALIGN (MCI_ANIM_OPEN_PARMSA
, hWndParent
, 1)
1522 TEST_FIELD_OFFSET(MCI_ANIM_OPEN_PARMSA
, hWndParent
, 40)
1525 static void test_pack_MCI_ANIM_OPEN_PARMSW(void)
1527 /* MCI_ANIM_OPEN_PARMSW (pack 1) */
1528 TEST_TYPE_SIZE (MCI_ANIM_OPEN_PARMSW
, 48)
1529 TEST_TYPE_ALIGN (MCI_ANIM_OPEN_PARMSW
, 1)
1530 TEST_FIELD_SIZE (MCI_ANIM_OPEN_PARMSW
, dwCallback
, 8)
1531 TEST_FIELD_ALIGN (MCI_ANIM_OPEN_PARMSW
, dwCallback
, 1)
1532 TEST_FIELD_OFFSET(MCI_ANIM_OPEN_PARMSW
, dwCallback
, 0)
1533 TEST_FIELD_SIZE (MCI_ANIM_OPEN_PARMSW
, wDeviceID
, 4)
1534 TEST_FIELD_ALIGN (MCI_ANIM_OPEN_PARMSW
, wDeviceID
, 1)
1535 TEST_FIELD_OFFSET(MCI_ANIM_OPEN_PARMSW
, wDeviceID
, 8)
1536 TEST_FIELD_SIZE (MCI_ANIM_OPEN_PARMSW
, lpstrDeviceType
, 8)
1537 TEST_FIELD_ALIGN (MCI_ANIM_OPEN_PARMSW
, lpstrDeviceType
, 1)
1538 TEST_FIELD_OFFSET(MCI_ANIM_OPEN_PARMSW
, lpstrDeviceType
, 12)
1539 TEST_FIELD_SIZE (MCI_ANIM_OPEN_PARMSW
, lpstrElementName
, 8)
1540 TEST_FIELD_ALIGN (MCI_ANIM_OPEN_PARMSW
, lpstrElementName
, 1)
1541 TEST_FIELD_OFFSET(MCI_ANIM_OPEN_PARMSW
, lpstrElementName
, 20)
1542 TEST_FIELD_SIZE (MCI_ANIM_OPEN_PARMSW
, lpstrAlias
, 8)
1543 TEST_FIELD_ALIGN (MCI_ANIM_OPEN_PARMSW
, lpstrAlias
, 1)
1544 TEST_FIELD_OFFSET(MCI_ANIM_OPEN_PARMSW
, lpstrAlias
, 28)
1545 TEST_FIELD_SIZE (MCI_ANIM_OPEN_PARMSW
, dwStyle
, 4)
1546 TEST_FIELD_ALIGN (MCI_ANIM_OPEN_PARMSW
, dwStyle
, 1)
1547 TEST_FIELD_OFFSET(MCI_ANIM_OPEN_PARMSW
, dwStyle
, 36)
1548 TEST_FIELD_SIZE (MCI_ANIM_OPEN_PARMSW
, hWndParent
, 8)
1549 TEST_FIELD_ALIGN (MCI_ANIM_OPEN_PARMSW
, hWndParent
, 1)
1550 TEST_FIELD_OFFSET(MCI_ANIM_OPEN_PARMSW
, hWndParent
, 40)
1553 static void test_pack_MCI_ANIM_PLAY_PARMS(void)
1555 /* MCI_ANIM_PLAY_PARMS (pack 1) */
1556 TEST_TYPE_SIZE (MCI_ANIM_PLAY_PARMS
, 20)
1557 TEST_TYPE_ALIGN (MCI_ANIM_PLAY_PARMS
, 1)
1558 TEST_FIELD_SIZE (MCI_ANIM_PLAY_PARMS
, dwCallback
, 8)
1559 TEST_FIELD_ALIGN (MCI_ANIM_PLAY_PARMS
, dwCallback
, 1)
1560 TEST_FIELD_OFFSET(MCI_ANIM_PLAY_PARMS
, dwCallback
, 0)
1561 TEST_FIELD_SIZE (MCI_ANIM_PLAY_PARMS
, dwFrom
, 4)
1562 TEST_FIELD_ALIGN (MCI_ANIM_PLAY_PARMS
, dwFrom
, 1)
1563 TEST_FIELD_OFFSET(MCI_ANIM_PLAY_PARMS
, dwFrom
, 8)
1564 TEST_FIELD_SIZE (MCI_ANIM_PLAY_PARMS
, dwTo
, 4)
1565 TEST_FIELD_ALIGN (MCI_ANIM_PLAY_PARMS
, dwTo
, 1)
1566 TEST_FIELD_OFFSET(MCI_ANIM_PLAY_PARMS
, dwTo
, 12)
1567 TEST_FIELD_SIZE (MCI_ANIM_PLAY_PARMS
, dwSpeed
, 4)
1568 TEST_FIELD_ALIGN (MCI_ANIM_PLAY_PARMS
, dwSpeed
, 1)
1569 TEST_FIELD_OFFSET(MCI_ANIM_PLAY_PARMS
, dwSpeed
, 16)
1572 static void test_pack_MCI_ANIM_STEP_PARMS(void)
1574 /* MCI_ANIM_STEP_PARMS (pack 1) */
1575 TEST_TYPE_SIZE (MCI_ANIM_STEP_PARMS
, 12)
1576 TEST_TYPE_ALIGN (MCI_ANIM_STEP_PARMS
, 1)
1577 TEST_FIELD_SIZE (MCI_ANIM_STEP_PARMS
, dwCallback
, 8)
1578 TEST_FIELD_ALIGN (MCI_ANIM_STEP_PARMS
, dwCallback
, 1)
1579 TEST_FIELD_OFFSET(MCI_ANIM_STEP_PARMS
, dwCallback
, 0)
1580 TEST_FIELD_SIZE (MCI_ANIM_STEP_PARMS
, dwFrames
, 4)
1581 TEST_FIELD_ALIGN (MCI_ANIM_STEP_PARMS
, dwFrames
, 1)
1582 TEST_FIELD_OFFSET(MCI_ANIM_STEP_PARMS
, dwFrames
, 8)
1585 static void test_pack_MCI_ANIM_WINDOW_PARMSA(void)
1587 /* MCI_ANIM_WINDOW_PARMSA (pack 1) */
1588 TEST_TYPE_SIZE (MCI_ANIM_WINDOW_PARMSA
, 28)
1589 TEST_TYPE_ALIGN (MCI_ANIM_WINDOW_PARMSA
, 1)
1590 TEST_FIELD_SIZE (MCI_ANIM_WINDOW_PARMSA
, dwCallback
, 8)
1591 TEST_FIELD_ALIGN (MCI_ANIM_WINDOW_PARMSA
, dwCallback
, 1)
1592 TEST_FIELD_OFFSET(MCI_ANIM_WINDOW_PARMSA
, dwCallback
, 0)
1593 TEST_FIELD_SIZE (MCI_ANIM_WINDOW_PARMSA
, hWnd
, 8)
1594 TEST_FIELD_ALIGN (MCI_ANIM_WINDOW_PARMSA
, hWnd
, 1)
1595 TEST_FIELD_OFFSET(MCI_ANIM_WINDOW_PARMSA
, hWnd
, 8)
1596 TEST_FIELD_SIZE (MCI_ANIM_WINDOW_PARMSA
, nCmdShow
, 4)
1597 TEST_FIELD_ALIGN (MCI_ANIM_WINDOW_PARMSA
, nCmdShow
, 1)
1598 TEST_FIELD_OFFSET(MCI_ANIM_WINDOW_PARMSA
, nCmdShow
, 16)
1599 TEST_FIELD_SIZE (MCI_ANIM_WINDOW_PARMSA
, lpstrText
, 8)
1600 TEST_FIELD_ALIGN (MCI_ANIM_WINDOW_PARMSA
, lpstrText
, 1)
1601 TEST_FIELD_OFFSET(MCI_ANIM_WINDOW_PARMSA
, lpstrText
, 20)
1604 static void test_pack_MCI_ANIM_WINDOW_PARMSW(void)
1606 /* MCI_ANIM_WINDOW_PARMSW (pack 1) */
1607 TEST_TYPE_SIZE (MCI_ANIM_WINDOW_PARMSW
, 28)
1608 TEST_TYPE_ALIGN (MCI_ANIM_WINDOW_PARMSW
, 1)
1609 TEST_FIELD_SIZE (MCI_ANIM_WINDOW_PARMSW
, dwCallback
, 8)
1610 TEST_FIELD_ALIGN (MCI_ANIM_WINDOW_PARMSW
, dwCallback
, 1)
1611 TEST_FIELD_OFFSET(MCI_ANIM_WINDOW_PARMSW
, dwCallback
, 0)
1612 TEST_FIELD_SIZE (MCI_ANIM_WINDOW_PARMSW
, hWnd
, 8)
1613 TEST_FIELD_ALIGN (MCI_ANIM_WINDOW_PARMSW
, hWnd
, 1)
1614 TEST_FIELD_OFFSET(MCI_ANIM_WINDOW_PARMSW
, hWnd
, 8)
1615 TEST_FIELD_SIZE (MCI_ANIM_WINDOW_PARMSW
, nCmdShow
, 4)
1616 TEST_FIELD_ALIGN (MCI_ANIM_WINDOW_PARMSW
, nCmdShow
, 1)
1617 TEST_FIELD_OFFSET(MCI_ANIM_WINDOW_PARMSW
, nCmdShow
, 16)
1618 TEST_FIELD_SIZE (MCI_ANIM_WINDOW_PARMSW
, lpstrText
, 8)
1619 TEST_FIELD_ALIGN (MCI_ANIM_WINDOW_PARMSW
, lpstrText
, 1)
1620 TEST_FIELD_OFFSET(MCI_ANIM_WINDOW_PARMSW
, lpstrText
, 20)
1623 static void test_pack_MCI_ANIM_UPDATE_PARMS(void)
1625 /* MCI_ANIM_UPDATE_PARMS (pack 1) */
1626 TEST_TYPE_SIZE (MCI_ANIM_UPDATE_PARMS
, 32)
1627 TEST_TYPE_ALIGN (MCI_ANIM_UPDATE_PARMS
, 1)
1628 TEST_FIELD_SIZE (MCI_ANIM_UPDATE_PARMS
, dwCallback
, 8)
1629 TEST_FIELD_ALIGN (MCI_ANIM_UPDATE_PARMS
, dwCallback
, 1)
1630 TEST_FIELD_OFFSET(MCI_ANIM_UPDATE_PARMS
, dwCallback
, 0)
1631 TEST_FIELD_SIZE (MCI_ANIM_UPDATE_PARMS
, rc
, 16)
1632 TEST_FIELD_ALIGN (MCI_ANIM_UPDATE_PARMS
, rc
, 1)
1633 TEST_FIELD_OFFSET(MCI_ANIM_UPDATE_PARMS
, rc
, 8)
1634 TEST_FIELD_SIZE (MCI_ANIM_UPDATE_PARMS
, hDC
, 8)
1635 TEST_FIELD_ALIGN (MCI_ANIM_UPDATE_PARMS
, hDC
, 1)
1636 TEST_FIELD_OFFSET(MCI_ANIM_UPDATE_PARMS
, hDC
, 24)
1639 static void test_pack_MCI_OVLY_OPEN_PARMSA(void)
1641 /* MCI_OVLY_OPEN_PARMSA (pack 1) */
1642 TEST_TYPE_SIZE (MCI_OVLY_OPEN_PARMSA
, 48)
1643 TEST_TYPE_ALIGN (MCI_OVLY_OPEN_PARMSA
, 1)
1644 TEST_FIELD_SIZE (MCI_OVLY_OPEN_PARMSA
, dwCallback
, 8)
1645 TEST_FIELD_ALIGN (MCI_OVLY_OPEN_PARMSA
, dwCallback
, 1)
1646 TEST_FIELD_OFFSET(MCI_OVLY_OPEN_PARMSA
, dwCallback
, 0)
1647 TEST_FIELD_SIZE (MCI_OVLY_OPEN_PARMSA
, wDeviceID
, 4)
1648 TEST_FIELD_ALIGN (MCI_OVLY_OPEN_PARMSA
, wDeviceID
, 1)
1649 TEST_FIELD_OFFSET(MCI_OVLY_OPEN_PARMSA
, wDeviceID
, 8)
1650 TEST_FIELD_SIZE (MCI_OVLY_OPEN_PARMSA
, lpstrDeviceType
, 8)
1651 TEST_FIELD_ALIGN (MCI_OVLY_OPEN_PARMSA
, lpstrDeviceType
, 1)
1652 TEST_FIELD_OFFSET(MCI_OVLY_OPEN_PARMSA
, lpstrDeviceType
, 12)
1653 TEST_FIELD_SIZE (MCI_OVLY_OPEN_PARMSA
, lpstrElementName
, 8)
1654 TEST_FIELD_ALIGN (MCI_OVLY_OPEN_PARMSA
, lpstrElementName
, 1)
1655 TEST_FIELD_OFFSET(MCI_OVLY_OPEN_PARMSA
, lpstrElementName
, 20)
1656 TEST_FIELD_SIZE (MCI_OVLY_OPEN_PARMSA
, lpstrAlias
, 8)
1657 TEST_FIELD_ALIGN (MCI_OVLY_OPEN_PARMSA
, lpstrAlias
, 1)
1658 TEST_FIELD_OFFSET(MCI_OVLY_OPEN_PARMSA
, lpstrAlias
, 28)
1659 TEST_FIELD_SIZE (MCI_OVLY_OPEN_PARMSA
, dwStyle
, 4)
1660 TEST_FIELD_ALIGN (MCI_OVLY_OPEN_PARMSA
, dwStyle
, 1)
1661 TEST_FIELD_OFFSET(MCI_OVLY_OPEN_PARMSA
, dwStyle
, 36)
1662 TEST_FIELD_SIZE (MCI_OVLY_OPEN_PARMSA
, hWndParent
, 8)
1663 TEST_FIELD_ALIGN (MCI_OVLY_OPEN_PARMSA
, hWndParent
, 1)
1664 TEST_FIELD_OFFSET(MCI_OVLY_OPEN_PARMSA
, hWndParent
, 40)
1667 static void test_pack_MCI_OVLY_OPEN_PARMSW(void)
1669 /* MCI_OVLY_OPEN_PARMSW (pack 1) */
1670 TEST_TYPE_SIZE (MCI_OVLY_OPEN_PARMSW
, 48)
1671 TEST_TYPE_ALIGN (MCI_OVLY_OPEN_PARMSW
, 1)
1672 TEST_FIELD_SIZE (MCI_OVLY_OPEN_PARMSW
, dwCallback
, 8)
1673 TEST_FIELD_ALIGN (MCI_OVLY_OPEN_PARMSW
, dwCallback
, 1)
1674 TEST_FIELD_OFFSET(MCI_OVLY_OPEN_PARMSW
, dwCallback
, 0)
1675 TEST_FIELD_SIZE (MCI_OVLY_OPEN_PARMSW
, wDeviceID
, 4)
1676 TEST_FIELD_ALIGN (MCI_OVLY_OPEN_PARMSW
, wDeviceID
, 1)
1677 TEST_FIELD_OFFSET(MCI_OVLY_OPEN_PARMSW
, wDeviceID
, 8)
1678 TEST_FIELD_SIZE (MCI_OVLY_OPEN_PARMSW
, lpstrDeviceType
, 8)
1679 TEST_FIELD_ALIGN (MCI_OVLY_OPEN_PARMSW
, lpstrDeviceType
, 1)
1680 TEST_FIELD_OFFSET(MCI_OVLY_OPEN_PARMSW
, lpstrDeviceType
, 12)
1681 TEST_FIELD_SIZE (MCI_OVLY_OPEN_PARMSW
, lpstrElementName
, 8)
1682 TEST_FIELD_ALIGN (MCI_OVLY_OPEN_PARMSW
, lpstrElementName
, 1)
1683 TEST_FIELD_OFFSET(MCI_OVLY_OPEN_PARMSW
, lpstrElementName
, 20)
1684 TEST_FIELD_SIZE (MCI_OVLY_OPEN_PARMSW
, lpstrAlias
, 8)
1685 TEST_FIELD_ALIGN (MCI_OVLY_OPEN_PARMSW
, lpstrAlias
, 1)
1686 TEST_FIELD_OFFSET(MCI_OVLY_OPEN_PARMSW
, lpstrAlias
, 28)
1687 TEST_FIELD_SIZE (MCI_OVLY_OPEN_PARMSW
, dwStyle
, 4)
1688 TEST_FIELD_ALIGN (MCI_OVLY_OPEN_PARMSW
, dwStyle
, 1)
1689 TEST_FIELD_OFFSET(MCI_OVLY_OPEN_PARMSW
, dwStyle
, 36)
1690 TEST_FIELD_SIZE (MCI_OVLY_OPEN_PARMSW
, hWndParent
, 8)
1691 TEST_FIELD_ALIGN (MCI_OVLY_OPEN_PARMSW
, hWndParent
, 1)
1692 TEST_FIELD_OFFSET(MCI_OVLY_OPEN_PARMSW
, hWndParent
, 40)
1695 static void test_pack_MCI_OVLY_WINDOW_PARMSA(void)
1697 /* MCI_OVLY_WINDOW_PARMSA (pack 1) */
1698 TEST_TYPE_SIZE (MCI_OVLY_WINDOW_PARMSA
, 28)
1699 TEST_TYPE_ALIGN (MCI_OVLY_WINDOW_PARMSA
, 1)
1700 TEST_FIELD_SIZE (MCI_OVLY_WINDOW_PARMSA
, dwCallback
, 8)
1701 TEST_FIELD_ALIGN (MCI_OVLY_WINDOW_PARMSA
, dwCallback
, 1)
1702 TEST_FIELD_OFFSET(MCI_OVLY_WINDOW_PARMSA
, dwCallback
, 0)
1703 TEST_FIELD_SIZE (MCI_OVLY_WINDOW_PARMSA
, hWnd
, 8)
1704 TEST_FIELD_ALIGN (MCI_OVLY_WINDOW_PARMSA
, hWnd
, 1)
1705 TEST_FIELD_OFFSET(MCI_OVLY_WINDOW_PARMSA
, hWnd
, 8)
1706 TEST_FIELD_SIZE (MCI_OVLY_WINDOW_PARMSA
, nCmdShow
, 4)
1707 TEST_FIELD_ALIGN (MCI_OVLY_WINDOW_PARMSA
, nCmdShow
, 1)
1708 TEST_FIELD_OFFSET(MCI_OVLY_WINDOW_PARMSA
, nCmdShow
, 16)
1709 TEST_FIELD_SIZE (MCI_OVLY_WINDOW_PARMSA
, lpstrText
, 8)
1710 TEST_FIELD_ALIGN (MCI_OVLY_WINDOW_PARMSA
, lpstrText
, 1)
1711 TEST_FIELD_OFFSET(MCI_OVLY_WINDOW_PARMSA
, lpstrText
, 20)
1714 static void test_pack_MCI_OVLY_WINDOW_PARMSW(void)
1716 /* MCI_OVLY_WINDOW_PARMSW (pack 1) */
1717 TEST_TYPE_SIZE (MCI_OVLY_WINDOW_PARMSW
, 28)
1718 TEST_TYPE_ALIGN (MCI_OVLY_WINDOW_PARMSW
, 1)
1719 TEST_FIELD_SIZE (MCI_OVLY_WINDOW_PARMSW
, dwCallback
, 8)
1720 TEST_FIELD_ALIGN (MCI_OVLY_WINDOW_PARMSW
, dwCallback
, 1)
1721 TEST_FIELD_OFFSET(MCI_OVLY_WINDOW_PARMSW
, dwCallback
, 0)
1722 TEST_FIELD_SIZE (MCI_OVLY_WINDOW_PARMSW
, hWnd
, 8)
1723 TEST_FIELD_ALIGN (MCI_OVLY_WINDOW_PARMSW
, hWnd
, 1)
1724 TEST_FIELD_OFFSET(MCI_OVLY_WINDOW_PARMSW
, hWnd
, 8)
1725 TEST_FIELD_SIZE (MCI_OVLY_WINDOW_PARMSW
, nCmdShow
, 4)
1726 TEST_FIELD_ALIGN (MCI_OVLY_WINDOW_PARMSW
, nCmdShow
, 1)
1727 TEST_FIELD_OFFSET(MCI_OVLY_WINDOW_PARMSW
, nCmdShow
, 16)
1728 TEST_FIELD_SIZE (MCI_OVLY_WINDOW_PARMSW
, lpstrText
, 8)
1729 TEST_FIELD_ALIGN (MCI_OVLY_WINDOW_PARMSW
, lpstrText
, 1)
1730 TEST_FIELD_OFFSET(MCI_OVLY_WINDOW_PARMSW
, lpstrText
, 20)
1733 static void test_pack_MCI_OVLY_SAVE_PARMSA(void)
1735 /* MCI_OVLY_SAVE_PARMSA (pack 1) */
1736 TEST_TYPE_SIZE (MCI_OVLY_SAVE_PARMSA
, 32)
1737 TEST_TYPE_ALIGN (MCI_OVLY_SAVE_PARMSA
, 1)
1738 TEST_FIELD_SIZE (MCI_OVLY_SAVE_PARMSA
, dwCallback
, 8)
1739 TEST_FIELD_ALIGN (MCI_OVLY_SAVE_PARMSA
, dwCallback
, 1)
1740 TEST_FIELD_OFFSET(MCI_OVLY_SAVE_PARMSA
, dwCallback
, 0)
1741 TEST_FIELD_SIZE (MCI_OVLY_SAVE_PARMSA
, lpfilename
, 8)
1742 TEST_FIELD_ALIGN (MCI_OVLY_SAVE_PARMSA
, lpfilename
, 1)
1743 TEST_FIELD_OFFSET(MCI_OVLY_SAVE_PARMSA
, lpfilename
, 8)
1744 TEST_FIELD_SIZE (MCI_OVLY_SAVE_PARMSA
, rc
, 16)
1745 TEST_FIELD_ALIGN (MCI_OVLY_SAVE_PARMSA
, rc
, 1)
1746 TEST_FIELD_OFFSET(MCI_OVLY_SAVE_PARMSA
, rc
, 16)
1749 static void test_pack_MCI_OVLY_SAVE_PARMSW(void)
1751 /* MCI_OVLY_SAVE_PARMSW (pack 1) */
1752 TEST_TYPE_SIZE (MCI_OVLY_SAVE_PARMSW
, 32)
1753 TEST_TYPE_ALIGN (MCI_OVLY_SAVE_PARMSW
, 1)
1754 TEST_FIELD_SIZE (MCI_OVLY_SAVE_PARMSW
, dwCallback
, 8)
1755 TEST_FIELD_ALIGN (MCI_OVLY_SAVE_PARMSW
, dwCallback
, 1)
1756 TEST_FIELD_OFFSET(MCI_OVLY_SAVE_PARMSW
, dwCallback
, 0)
1757 TEST_FIELD_SIZE (MCI_OVLY_SAVE_PARMSW
, lpfilename
, 8)
1758 TEST_FIELD_ALIGN (MCI_OVLY_SAVE_PARMSW
, lpfilename
, 1)
1759 TEST_FIELD_OFFSET(MCI_OVLY_SAVE_PARMSW
, lpfilename
, 8)
1760 TEST_FIELD_SIZE (MCI_OVLY_SAVE_PARMSW
, rc
, 16)
1761 TEST_FIELD_ALIGN (MCI_OVLY_SAVE_PARMSW
, rc
, 1)
1762 TEST_FIELD_OFFSET(MCI_OVLY_SAVE_PARMSW
, rc
, 16)
1765 static void test_pack_MCI_OVLY_LOAD_PARMSA(void)
1767 /* MCI_OVLY_LOAD_PARMSA (pack 1) */
1768 TEST_TYPE_SIZE (MCI_OVLY_LOAD_PARMSA
, 32)
1769 TEST_TYPE_ALIGN (MCI_OVLY_LOAD_PARMSA
, 1)
1770 TEST_FIELD_SIZE (MCI_OVLY_LOAD_PARMSA
, dwCallback
, 8)
1771 TEST_FIELD_ALIGN (MCI_OVLY_LOAD_PARMSA
, dwCallback
, 1)
1772 TEST_FIELD_OFFSET(MCI_OVLY_LOAD_PARMSA
, dwCallback
, 0)
1773 TEST_FIELD_SIZE (MCI_OVLY_LOAD_PARMSA
, lpfilename
, 8)
1774 TEST_FIELD_ALIGN (MCI_OVLY_LOAD_PARMSA
, lpfilename
, 1)
1775 TEST_FIELD_OFFSET(MCI_OVLY_LOAD_PARMSA
, lpfilename
, 8)
1776 TEST_FIELD_SIZE (MCI_OVLY_LOAD_PARMSA
, rc
, 16)
1777 TEST_FIELD_ALIGN (MCI_OVLY_LOAD_PARMSA
, rc
, 1)
1778 TEST_FIELD_OFFSET(MCI_OVLY_LOAD_PARMSA
, rc
, 16)
1781 static void test_pack_MCI_OVLY_LOAD_PARMSW(void)
1783 /* MCI_OVLY_LOAD_PARMSW (pack 1) */
1784 TEST_TYPE_SIZE (MCI_OVLY_LOAD_PARMSW
, 32)
1785 TEST_TYPE_ALIGN (MCI_OVLY_LOAD_PARMSW
, 1)
1786 TEST_FIELD_SIZE (MCI_OVLY_LOAD_PARMSW
, dwCallback
, 8)
1787 TEST_FIELD_ALIGN (MCI_OVLY_LOAD_PARMSW
, dwCallback
, 1)
1788 TEST_FIELD_OFFSET(MCI_OVLY_LOAD_PARMSW
, dwCallback
, 0)
1789 TEST_FIELD_SIZE (MCI_OVLY_LOAD_PARMSW
, lpfilename
, 8)
1790 TEST_FIELD_ALIGN (MCI_OVLY_LOAD_PARMSW
, lpfilename
, 1)
1791 TEST_FIELD_OFFSET(MCI_OVLY_LOAD_PARMSW
, lpfilename
, 8)
1792 TEST_FIELD_SIZE (MCI_OVLY_LOAD_PARMSW
, rc
, 16)
1793 TEST_FIELD_ALIGN (MCI_OVLY_LOAD_PARMSW
, rc
, 1)
1794 TEST_FIELD_OFFSET(MCI_OVLY_LOAD_PARMSW
, rc
, 16)
1797 static void test_pack_MCI_DGV_RECT_PARMS(void)
1799 /* MCI_DGV_RECT_PARMS (pack 1) */
1800 TEST_TYPE_SIZE (MCI_DGV_RECT_PARMS
, 24)
1801 TEST_TYPE_ALIGN (MCI_DGV_RECT_PARMS
, 1)
1802 TEST_FIELD_SIZE (MCI_DGV_RECT_PARMS
, dwCallback
, 8)
1803 TEST_FIELD_ALIGN (MCI_DGV_RECT_PARMS
, dwCallback
, 1)
1804 TEST_FIELD_OFFSET(MCI_DGV_RECT_PARMS
, dwCallback
, 0)
1805 TEST_FIELD_SIZE (MCI_DGV_RECT_PARMS
, rc
, 16)
1806 TEST_FIELD_ALIGN (MCI_DGV_RECT_PARMS
, rc
, 1)
1807 TEST_FIELD_OFFSET(MCI_DGV_RECT_PARMS
, rc
, 8)
1810 static void test_pack_MCI_DGV_CAPTURE_PARMSA(void)
1812 /* MCI_DGV_CAPTURE_PARMSA (pack 1) */
1813 TEST_TYPE_SIZE (MCI_DGV_CAPTURE_PARMSA
, 32)
1814 TEST_TYPE_ALIGN (MCI_DGV_CAPTURE_PARMSA
, 1)
1815 TEST_FIELD_SIZE (MCI_DGV_CAPTURE_PARMSA
, dwCallback
, 8)
1816 TEST_FIELD_ALIGN (MCI_DGV_CAPTURE_PARMSA
, dwCallback
, 1)
1817 TEST_FIELD_OFFSET(MCI_DGV_CAPTURE_PARMSA
, dwCallback
, 0)
1818 TEST_FIELD_SIZE (MCI_DGV_CAPTURE_PARMSA
, lpstrFileName
, 8)
1819 TEST_FIELD_ALIGN (MCI_DGV_CAPTURE_PARMSA
, lpstrFileName
, 1)
1820 TEST_FIELD_OFFSET(MCI_DGV_CAPTURE_PARMSA
, lpstrFileName
, 8)
1821 TEST_FIELD_SIZE (MCI_DGV_CAPTURE_PARMSA
, rc
, 16)
1822 TEST_FIELD_ALIGN (MCI_DGV_CAPTURE_PARMSA
, rc
, 1)
1823 TEST_FIELD_OFFSET(MCI_DGV_CAPTURE_PARMSA
, rc
, 16)
1826 static void test_pack_MCI_DGV_CAPTURE_PARMSW(void)
1828 /* MCI_DGV_CAPTURE_PARMSW (pack 1) */
1829 TEST_TYPE_SIZE (MCI_DGV_CAPTURE_PARMSW
, 32)
1830 TEST_TYPE_ALIGN (MCI_DGV_CAPTURE_PARMSW
, 1)
1831 TEST_FIELD_SIZE (MCI_DGV_CAPTURE_PARMSW
, dwCallback
, 8)
1832 TEST_FIELD_ALIGN (MCI_DGV_CAPTURE_PARMSW
, dwCallback
, 1)
1833 TEST_FIELD_OFFSET(MCI_DGV_CAPTURE_PARMSW
, dwCallback
, 0)
1834 TEST_FIELD_SIZE (MCI_DGV_CAPTURE_PARMSW
, lpstrFileName
, 8)
1835 TEST_FIELD_ALIGN (MCI_DGV_CAPTURE_PARMSW
, lpstrFileName
, 1)
1836 TEST_FIELD_OFFSET(MCI_DGV_CAPTURE_PARMSW
, lpstrFileName
, 8)
1837 TEST_FIELD_SIZE (MCI_DGV_CAPTURE_PARMSW
, rc
, 16)
1838 TEST_FIELD_ALIGN (MCI_DGV_CAPTURE_PARMSW
, rc
, 1)
1839 TEST_FIELD_OFFSET(MCI_DGV_CAPTURE_PARMSW
, rc
, 16)
1842 static void test_pack_MCI_DGV_COPY_PARMS(void)
1844 /* MCI_DGV_COPY_PARMS (pack 1) */
1845 TEST_TYPE_SIZE (MCI_DGV_COPY_PARMS
, 40)
1846 TEST_TYPE_ALIGN (MCI_DGV_COPY_PARMS
, 1)
1847 TEST_FIELD_SIZE (MCI_DGV_COPY_PARMS
, dwCallback
, 8)
1848 TEST_FIELD_ALIGN (MCI_DGV_COPY_PARMS
, dwCallback
, 1)
1849 TEST_FIELD_OFFSET(MCI_DGV_COPY_PARMS
, dwCallback
, 0)
1850 TEST_FIELD_SIZE (MCI_DGV_COPY_PARMS
, dwFrom
, 4)
1851 TEST_FIELD_ALIGN (MCI_DGV_COPY_PARMS
, dwFrom
, 1)
1852 TEST_FIELD_OFFSET(MCI_DGV_COPY_PARMS
, dwFrom
, 8)
1853 TEST_FIELD_SIZE (MCI_DGV_COPY_PARMS
, dwTo
, 4)
1854 TEST_FIELD_ALIGN (MCI_DGV_COPY_PARMS
, dwTo
, 1)
1855 TEST_FIELD_OFFSET(MCI_DGV_COPY_PARMS
, dwTo
, 12)
1856 TEST_FIELD_SIZE (MCI_DGV_COPY_PARMS
, rc
, 16)
1857 TEST_FIELD_ALIGN (MCI_DGV_COPY_PARMS
, rc
, 1)
1858 TEST_FIELD_OFFSET(MCI_DGV_COPY_PARMS
, rc
, 16)
1859 TEST_FIELD_SIZE (MCI_DGV_COPY_PARMS
, dwAudioStream
, 4)
1860 TEST_FIELD_ALIGN (MCI_DGV_COPY_PARMS
, dwAudioStream
, 1)
1861 TEST_FIELD_OFFSET(MCI_DGV_COPY_PARMS
, dwAudioStream
, 32)
1862 TEST_FIELD_SIZE (MCI_DGV_COPY_PARMS
, dwVideoStream
, 4)
1863 TEST_FIELD_ALIGN (MCI_DGV_COPY_PARMS
, dwVideoStream
, 1)
1864 TEST_FIELD_OFFSET(MCI_DGV_COPY_PARMS
, dwVideoStream
, 36)
1867 static void test_pack_MCI_DGV_CUE_PARMS(void)
1869 /* MCI_DGV_CUE_PARMS (pack 1) */
1870 TEST_TYPE_SIZE (MCI_DGV_CUE_PARMS
, 12)
1871 TEST_TYPE_ALIGN (MCI_DGV_CUE_PARMS
, 1)
1872 TEST_FIELD_SIZE (MCI_DGV_CUE_PARMS
, dwCallback
, 8)
1873 TEST_FIELD_ALIGN (MCI_DGV_CUE_PARMS
, dwCallback
, 1)
1874 TEST_FIELD_OFFSET(MCI_DGV_CUE_PARMS
, dwCallback
, 0)
1875 TEST_FIELD_SIZE (MCI_DGV_CUE_PARMS
, dwTo
, 4)
1876 TEST_FIELD_ALIGN (MCI_DGV_CUE_PARMS
, dwTo
, 1)
1877 TEST_FIELD_OFFSET(MCI_DGV_CUE_PARMS
, dwTo
, 8)
1880 static void test_pack_MCI_DGV_CUT_PARMS(void)
1882 /* MCI_DGV_CUT_PARMS (pack 1) */
1883 TEST_TYPE_SIZE (MCI_DGV_CUT_PARMS
, 40)
1884 TEST_TYPE_ALIGN (MCI_DGV_CUT_PARMS
, 1)
1885 TEST_FIELD_SIZE (MCI_DGV_CUT_PARMS
, dwCallback
, 8)
1886 TEST_FIELD_ALIGN (MCI_DGV_CUT_PARMS
, dwCallback
, 1)
1887 TEST_FIELD_OFFSET(MCI_DGV_CUT_PARMS
, dwCallback
, 0)
1888 TEST_FIELD_SIZE (MCI_DGV_CUT_PARMS
, dwFrom
, 4)
1889 TEST_FIELD_ALIGN (MCI_DGV_CUT_PARMS
, dwFrom
, 1)
1890 TEST_FIELD_OFFSET(MCI_DGV_CUT_PARMS
, dwFrom
, 8)
1891 TEST_FIELD_SIZE (MCI_DGV_CUT_PARMS
, dwTo
, 4)
1892 TEST_FIELD_ALIGN (MCI_DGV_CUT_PARMS
, dwTo
, 1)
1893 TEST_FIELD_OFFSET(MCI_DGV_CUT_PARMS
, dwTo
, 12)
1894 TEST_FIELD_SIZE (MCI_DGV_CUT_PARMS
, rc
, 16)
1895 TEST_FIELD_ALIGN (MCI_DGV_CUT_PARMS
, rc
, 1)
1896 TEST_FIELD_OFFSET(MCI_DGV_CUT_PARMS
, rc
, 16)
1897 TEST_FIELD_SIZE (MCI_DGV_CUT_PARMS
, dwAudioStream
, 4)
1898 TEST_FIELD_ALIGN (MCI_DGV_CUT_PARMS
, dwAudioStream
, 1)
1899 TEST_FIELD_OFFSET(MCI_DGV_CUT_PARMS
, dwAudioStream
, 32)
1900 TEST_FIELD_SIZE (MCI_DGV_CUT_PARMS
, dwVideoStream
, 4)
1901 TEST_FIELD_ALIGN (MCI_DGV_CUT_PARMS
, dwVideoStream
, 1)
1902 TEST_FIELD_OFFSET(MCI_DGV_CUT_PARMS
, dwVideoStream
, 36)
1905 static void test_pack_MCI_DGV_DELETE_PARMS(void)
1907 /* MCI_DGV_DELETE_PARMS (pack 1) */
1908 TEST_TYPE_SIZE (MCI_DGV_DELETE_PARMS
, 40)
1909 TEST_TYPE_ALIGN (MCI_DGV_DELETE_PARMS
, 1)
1910 TEST_FIELD_SIZE (MCI_DGV_DELETE_PARMS
, dwCallback
, 8)
1911 TEST_FIELD_ALIGN (MCI_DGV_DELETE_PARMS
, dwCallback
, 1)
1912 TEST_FIELD_OFFSET(MCI_DGV_DELETE_PARMS
, dwCallback
, 0)
1913 TEST_FIELD_SIZE (MCI_DGV_DELETE_PARMS
, dwFrom
, 4)
1914 TEST_FIELD_ALIGN (MCI_DGV_DELETE_PARMS
, dwFrom
, 1)
1915 TEST_FIELD_OFFSET(MCI_DGV_DELETE_PARMS
, dwFrom
, 8)
1916 TEST_FIELD_SIZE (MCI_DGV_DELETE_PARMS
, dwTo
, 4)
1917 TEST_FIELD_ALIGN (MCI_DGV_DELETE_PARMS
, dwTo
, 1)
1918 TEST_FIELD_OFFSET(MCI_DGV_DELETE_PARMS
, dwTo
, 12)
1919 TEST_FIELD_SIZE (MCI_DGV_DELETE_PARMS
, rc
, 16)
1920 TEST_FIELD_ALIGN (MCI_DGV_DELETE_PARMS
, rc
, 1)
1921 TEST_FIELD_OFFSET(MCI_DGV_DELETE_PARMS
, rc
, 16)
1922 TEST_FIELD_SIZE (MCI_DGV_DELETE_PARMS
, dwAudioStream
, 4)
1923 TEST_FIELD_ALIGN (MCI_DGV_DELETE_PARMS
, dwAudioStream
, 1)
1924 TEST_FIELD_OFFSET(MCI_DGV_DELETE_PARMS
, dwAudioStream
, 32)
1925 TEST_FIELD_SIZE (MCI_DGV_DELETE_PARMS
, dwVideoStream
, 4)
1926 TEST_FIELD_ALIGN (MCI_DGV_DELETE_PARMS
, dwVideoStream
, 1)
1927 TEST_FIELD_OFFSET(MCI_DGV_DELETE_PARMS
, dwVideoStream
, 36)
1930 static void test_pack_MCI_DGV_INFO_PARMSA(void)
1932 /* MCI_DGV_INFO_PARMSA (pack 1) */
1933 TEST_TYPE_SIZE (MCI_DGV_INFO_PARMSA
, 24)
1934 TEST_TYPE_ALIGN (MCI_DGV_INFO_PARMSA
, 1)
1935 TEST_FIELD_SIZE (MCI_DGV_INFO_PARMSA
, dwCallback
, 8)
1936 TEST_FIELD_ALIGN (MCI_DGV_INFO_PARMSA
, dwCallback
, 1)
1937 TEST_FIELD_OFFSET(MCI_DGV_INFO_PARMSA
, dwCallback
, 0)
1938 TEST_FIELD_SIZE (MCI_DGV_INFO_PARMSA
, lpstrReturn
, 8)
1939 TEST_FIELD_ALIGN (MCI_DGV_INFO_PARMSA
, lpstrReturn
, 1)
1940 TEST_FIELD_OFFSET(MCI_DGV_INFO_PARMSA
, lpstrReturn
, 8)
1941 TEST_FIELD_SIZE (MCI_DGV_INFO_PARMSA
, dwRetSize
, 4)
1942 TEST_FIELD_ALIGN (MCI_DGV_INFO_PARMSA
, dwRetSize
, 1)
1943 TEST_FIELD_OFFSET(MCI_DGV_INFO_PARMSA
, dwRetSize
, 16)
1944 TEST_FIELD_SIZE (MCI_DGV_INFO_PARMSA
, dwItem
, 4)
1945 TEST_FIELD_ALIGN (MCI_DGV_INFO_PARMSA
, dwItem
, 1)
1946 TEST_FIELD_OFFSET(MCI_DGV_INFO_PARMSA
, dwItem
, 20)
1949 static void test_pack_MCI_DGV_INFO_PARMSW(void)
1951 /* MCI_DGV_INFO_PARMSW (pack 1) */
1952 TEST_TYPE_SIZE (MCI_DGV_INFO_PARMSW
, 24)
1953 TEST_TYPE_ALIGN (MCI_DGV_INFO_PARMSW
, 1)
1954 TEST_FIELD_SIZE (MCI_DGV_INFO_PARMSW
, dwCallback
, 8)
1955 TEST_FIELD_ALIGN (MCI_DGV_INFO_PARMSW
, dwCallback
, 1)
1956 TEST_FIELD_OFFSET(MCI_DGV_INFO_PARMSW
, dwCallback
, 0)
1957 TEST_FIELD_SIZE (MCI_DGV_INFO_PARMSW
, lpstrReturn
, 8)
1958 TEST_FIELD_ALIGN (MCI_DGV_INFO_PARMSW
, lpstrReturn
, 1)
1959 TEST_FIELD_OFFSET(MCI_DGV_INFO_PARMSW
, lpstrReturn
, 8)
1960 TEST_FIELD_SIZE (MCI_DGV_INFO_PARMSW
, dwRetSize
, 4)
1961 TEST_FIELD_ALIGN (MCI_DGV_INFO_PARMSW
, dwRetSize
, 1)
1962 TEST_FIELD_OFFSET(MCI_DGV_INFO_PARMSW
, dwRetSize
, 16)
1963 TEST_FIELD_SIZE (MCI_DGV_INFO_PARMSW
, dwItem
, 4)
1964 TEST_FIELD_ALIGN (MCI_DGV_INFO_PARMSW
, dwItem
, 1)
1965 TEST_FIELD_OFFSET(MCI_DGV_INFO_PARMSW
, dwItem
, 20)
1968 static void test_pack_MCI_DGV_LIST_PARMSA(void)
1970 /* MCI_DGV_LIST_PARMSA (pack 1) */
1971 TEST_TYPE_SIZE (MCI_DGV_LIST_PARMSA
, 36)
1972 TEST_TYPE_ALIGN (MCI_DGV_LIST_PARMSA
, 1)
1973 TEST_FIELD_SIZE (MCI_DGV_LIST_PARMSA
, dwCallback
, 8)
1974 TEST_FIELD_ALIGN (MCI_DGV_LIST_PARMSA
, dwCallback
, 1)
1975 TEST_FIELD_OFFSET(MCI_DGV_LIST_PARMSA
, dwCallback
, 0)
1976 TEST_FIELD_SIZE (MCI_DGV_LIST_PARMSA
, lpstrReturn
, 8)
1977 TEST_FIELD_ALIGN (MCI_DGV_LIST_PARMSA
, lpstrReturn
, 1)
1978 TEST_FIELD_OFFSET(MCI_DGV_LIST_PARMSA
, lpstrReturn
, 8)
1979 TEST_FIELD_SIZE (MCI_DGV_LIST_PARMSA
, dwLength
, 4)
1980 TEST_FIELD_ALIGN (MCI_DGV_LIST_PARMSA
, dwLength
, 1)
1981 TEST_FIELD_OFFSET(MCI_DGV_LIST_PARMSA
, dwLength
, 16)
1982 TEST_FIELD_SIZE (MCI_DGV_LIST_PARMSA
, dwNumber
, 4)
1983 TEST_FIELD_ALIGN (MCI_DGV_LIST_PARMSA
, dwNumber
, 1)
1984 TEST_FIELD_OFFSET(MCI_DGV_LIST_PARMSA
, dwNumber
, 20)
1985 TEST_FIELD_SIZE (MCI_DGV_LIST_PARMSA
, dwItem
, 4)
1986 TEST_FIELD_ALIGN (MCI_DGV_LIST_PARMSA
, dwItem
, 1)
1987 TEST_FIELD_OFFSET(MCI_DGV_LIST_PARMSA
, dwItem
, 24)
1988 TEST_FIELD_SIZE (MCI_DGV_LIST_PARMSA
, lpstrAlgorithm
, 8)
1989 TEST_FIELD_ALIGN (MCI_DGV_LIST_PARMSA
, lpstrAlgorithm
, 1)
1990 TEST_FIELD_OFFSET(MCI_DGV_LIST_PARMSA
, lpstrAlgorithm
, 28)
1993 static void test_pack_MCI_DGV_LIST_PARMSW(void)
1995 /* MCI_DGV_LIST_PARMSW (pack 1) */
1996 TEST_TYPE_SIZE (MCI_DGV_LIST_PARMSW
, 36)
1997 TEST_TYPE_ALIGN (MCI_DGV_LIST_PARMSW
, 1)
1998 TEST_FIELD_SIZE (MCI_DGV_LIST_PARMSW
, dwCallback
, 8)
1999 TEST_FIELD_ALIGN (MCI_DGV_LIST_PARMSW
, dwCallback
, 1)
2000 TEST_FIELD_OFFSET(MCI_DGV_LIST_PARMSW
, dwCallback
, 0)
2001 TEST_FIELD_SIZE (MCI_DGV_LIST_PARMSW
, lpstrReturn
, 8)
2002 TEST_FIELD_ALIGN (MCI_DGV_LIST_PARMSW
, lpstrReturn
, 1)
2003 TEST_FIELD_OFFSET(MCI_DGV_LIST_PARMSW
, lpstrReturn
, 8)
2004 TEST_FIELD_SIZE (MCI_DGV_LIST_PARMSW
, dwLength
, 4)
2005 TEST_FIELD_ALIGN (MCI_DGV_LIST_PARMSW
, dwLength
, 1)
2006 TEST_FIELD_OFFSET(MCI_DGV_LIST_PARMSW
, dwLength
, 16)
2007 TEST_FIELD_SIZE (MCI_DGV_LIST_PARMSW
, dwNumber
, 4)
2008 TEST_FIELD_ALIGN (MCI_DGV_LIST_PARMSW
, dwNumber
, 1)
2009 TEST_FIELD_OFFSET(MCI_DGV_LIST_PARMSW
, dwNumber
, 20)
2010 TEST_FIELD_SIZE (MCI_DGV_LIST_PARMSW
, dwItem
, 4)
2011 TEST_FIELD_ALIGN (MCI_DGV_LIST_PARMSW
, dwItem
, 1)
2012 TEST_FIELD_OFFSET(MCI_DGV_LIST_PARMSW
, dwItem
, 24)
2013 TEST_FIELD_SIZE (MCI_DGV_LIST_PARMSW
, lpstrAlgorithm
, 8)
2014 TEST_FIELD_ALIGN (MCI_DGV_LIST_PARMSW
, lpstrAlgorithm
, 1)
2015 TEST_FIELD_OFFSET(MCI_DGV_LIST_PARMSW
, lpstrAlgorithm
, 28)
2018 static void test_pack_MCI_DGV_MONITOR_PARMS(void)
2020 /* MCI_DGV_MONITOR_PARMS (pack 1) */
2021 TEST_TYPE_SIZE (MCI_DGV_MONITOR_PARMS
, 16)
2022 TEST_TYPE_ALIGN (MCI_DGV_MONITOR_PARMS
, 1)
2023 TEST_FIELD_SIZE (MCI_DGV_MONITOR_PARMS
, dwCallback
, 8)
2024 TEST_FIELD_ALIGN (MCI_DGV_MONITOR_PARMS
, dwCallback
, 1)
2025 TEST_FIELD_OFFSET(MCI_DGV_MONITOR_PARMS
, dwCallback
, 0)
2026 TEST_FIELD_SIZE (MCI_DGV_MONITOR_PARMS
, dwSource
, 4)
2027 TEST_FIELD_ALIGN (MCI_DGV_MONITOR_PARMS
, dwSource
, 1)
2028 TEST_FIELD_OFFSET(MCI_DGV_MONITOR_PARMS
, dwSource
, 8)
2029 TEST_FIELD_SIZE (MCI_DGV_MONITOR_PARMS
, dwMethod
, 4)
2030 TEST_FIELD_ALIGN (MCI_DGV_MONITOR_PARMS
, dwMethod
, 1)
2031 TEST_FIELD_OFFSET(MCI_DGV_MONITOR_PARMS
, dwMethod
, 12)
2034 static void test_pack_MCI_DGV_OPEN_PARMSA(void)
2036 /* MCI_DGV_OPEN_PARMSA (pack 1) */
2037 TEST_TYPE_SIZE (MCI_DGV_OPEN_PARMSA
, 48)
2038 TEST_TYPE_ALIGN (MCI_DGV_OPEN_PARMSA
, 1)
2039 TEST_FIELD_SIZE (MCI_DGV_OPEN_PARMSA
, dwCallback
, 8)
2040 TEST_FIELD_ALIGN (MCI_DGV_OPEN_PARMSA
, dwCallback
, 1)
2041 TEST_FIELD_OFFSET(MCI_DGV_OPEN_PARMSA
, dwCallback
, 0)
2042 TEST_FIELD_SIZE (MCI_DGV_OPEN_PARMSA
, wDeviceID
, 4)
2043 TEST_FIELD_ALIGN (MCI_DGV_OPEN_PARMSA
, wDeviceID
, 1)
2044 TEST_FIELD_OFFSET(MCI_DGV_OPEN_PARMSA
, wDeviceID
, 8)
2045 TEST_FIELD_SIZE (MCI_DGV_OPEN_PARMSA
, lpstrDeviceType
, 8)
2046 TEST_FIELD_ALIGN (MCI_DGV_OPEN_PARMSA
, lpstrDeviceType
, 1)
2047 TEST_FIELD_OFFSET(MCI_DGV_OPEN_PARMSA
, lpstrDeviceType
, 12)
2048 TEST_FIELD_SIZE (MCI_DGV_OPEN_PARMSA
, lpstrElementName
, 8)
2049 TEST_FIELD_ALIGN (MCI_DGV_OPEN_PARMSA
, lpstrElementName
, 1)
2050 TEST_FIELD_OFFSET(MCI_DGV_OPEN_PARMSA
, lpstrElementName
, 20)
2051 TEST_FIELD_SIZE (MCI_DGV_OPEN_PARMSA
, lpstrAlias
, 8)
2052 TEST_FIELD_ALIGN (MCI_DGV_OPEN_PARMSA
, lpstrAlias
, 1)
2053 TEST_FIELD_OFFSET(MCI_DGV_OPEN_PARMSA
, lpstrAlias
, 28)
2054 TEST_FIELD_SIZE (MCI_DGV_OPEN_PARMSA
, dwStyle
, 4)
2055 TEST_FIELD_ALIGN (MCI_DGV_OPEN_PARMSA
, dwStyle
, 1)
2056 TEST_FIELD_OFFSET(MCI_DGV_OPEN_PARMSA
, dwStyle
, 36)
2057 TEST_FIELD_SIZE (MCI_DGV_OPEN_PARMSA
, hWndParent
, 8)
2058 TEST_FIELD_ALIGN (MCI_DGV_OPEN_PARMSA
, hWndParent
, 1)
2059 TEST_FIELD_OFFSET(MCI_DGV_OPEN_PARMSA
, hWndParent
, 40)
2062 static void test_pack_MCI_DGV_OPEN_PARMSW(void)
2064 /* MCI_DGV_OPEN_PARMSW (pack 1) */
2065 TEST_TYPE_SIZE (MCI_DGV_OPEN_PARMSW
, 48)
2066 TEST_TYPE_ALIGN (MCI_DGV_OPEN_PARMSW
, 1)
2067 TEST_FIELD_SIZE (MCI_DGV_OPEN_PARMSW
, dwCallback
, 8)
2068 TEST_FIELD_ALIGN (MCI_DGV_OPEN_PARMSW
, dwCallback
, 1)
2069 TEST_FIELD_OFFSET(MCI_DGV_OPEN_PARMSW
, dwCallback
, 0)
2070 TEST_FIELD_SIZE (MCI_DGV_OPEN_PARMSW
, wDeviceID
, 4)
2071 TEST_FIELD_ALIGN (MCI_DGV_OPEN_PARMSW
, wDeviceID
, 1)
2072 TEST_FIELD_OFFSET(MCI_DGV_OPEN_PARMSW
, wDeviceID
, 8)
2073 TEST_FIELD_SIZE (MCI_DGV_OPEN_PARMSW
, lpstrDeviceType
, 8)
2074 TEST_FIELD_ALIGN (MCI_DGV_OPEN_PARMSW
, lpstrDeviceType
, 1)
2075 TEST_FIELD_OFFSET(MCI_DGV_OPEN_PARMSW
, lpstrDeviceType
, 12)
2076 TEST_FIELD_SIZE (MCI_DGV_OPEN_PARMSW
, lpstrElementName
, 8)
2077 TEST_FIELD_ALIGN (MCI_DGV_OPEN_PARMSW
, lpstrElementName
, 1)
2078 TEST_FIELD_OFFSET(MCI_DGV_OPEN_PARMSW
, lpstrElementName
, 20)
2079 TEST_FIELD_SIZE (MCI_DGV_OPEN_PARMSW
, lpstrAlias
, 8)
2080 TEST_FIELD_ALIGN (MCI_DGV_OPEN_PARMSW
, lpstrAlias
, 1)
2081 TEST_FIELD_OFFSET(MCI_DGV_OPEN_PARMSW
, lpstrAlias
, 28)
2082 TEST_FIELD_SIZE (MCI_DGV_OPEN_PARMSW
, dwStyle
, 4)
2083 TEST_FIELD_ALIGN (MCI_DGV_OPEN_PARMSW
, dwStyle
, 1)
2084 TEST_FIELD_OFFSET(MCI_DGV_OPEN_PARMSW
, dwStyle
, 36)
2085 TEST_FIELD_SIZE (MCI_DGV_OPEN_PARMSW
, hWndParent
, 8)
2086 TEST_FIELD_ALIGN (MCI_DGV_OPEN_PARMSW
, hWndParent
, 1)
2087 TEST_FIELD_OFFSET(MCI_DGV_OPEN_PARMSW
, hWndParent
, 40)
2090 static void test_pack_MCI_DGV_PASTE_PARMS(void)
2092 /* MCI_DGV_PASTE_PARMS (pack 1) */
2093 TEST_TYPE_SIZE (MCI_DGV_PASTE_PARMS
, 36)
2094 TEST_TYPE_ALIGN (MCI_DGV_PASTE_PARMS
, 1)
2095 TEST_FIELD_SIZE (MCI_DGV_PASTE_PARMS
, dwCallback
, 8)
2096 TEST_FIELD_ALIGN (MCI_DGV_PASTE_PARMS
, dwCallback
, 1)
2097 TEST_FIELD_OFFSET(MCI_DGV_PASTE_PARMS
, dwCallback
, 0)
2098 TEST_FIELD_SIZE (MCI_DGV_PASTE_PARMS
, dwTo
, 4)
2099 TEST_FIELD_ALIGN (MCI_DGV_PASTE_PARMS
, dwTo
, 1)
2100 TEST_FIELD_OFFSET(MCI_DGV_PASTE_PARMS
, dwTo
, 8)
2101 TEST_FIELD_SIZE (MCI_DGV_PASTE_PARMS
, rc
, 16)
2102 TEST_FIELD_ALIGN (MCI_DGV_PASTE_PARMS
, rc
, 1)
2103 TEST_FIELD_OFFSET(MCI_DGV_PASTE_PARMS
, rc
, 12)
2104 TEST_FIELD_SIZE (MCI_DGV_PASTE_PARMS
, dwAudioStream
, 4)
2105 TEST_FIELD_ALIGN (MCI_DGV_PASTE_PARMS
, dwAudioStream
, 1)
2106 TEST_FIELD_OFFSET(MCI_DGV_PASTE_PARMS
, dwAudioStream
, 28)
2107 TEST_FIELD_SIZE (MCI_DGV_PASTE_PARMS
, dwVideoStream
, 4)
2108 TEST_FIELD_ALIGN (MCI_DGV_PASTE_PARMS
, dwVideoStream
, 1)
2109 TEST_FIELD_OFFSET(MCI_DGV_PASTE_PARMS
, dwVideoStream
, 32)
2112 static void test_pack_MCI_DGV_QUALITY_PARMSA(void)
2114 /* MCI_DGV_QUALITY_PARMSA (pack 1) */
2115 TEST_TYPE_SIZE (MCI_DGV_QUALITY_PARMSA
, 28)
2116 TEST_TYPE_ALIGN (MCI_DGV_QUALITY_PARMSA
, 1)
2117 TEST_FIELD_SIZE (MCI_DGV_QUALITY_PARMSA
, dwCallback
, 8)
2118 TEST_FIELD_ALIGN (MCI_DGV_QUALITY_PARMSA
, dwCallback
, 1)
2119 TEST_FIELD_OFFSET(MCI_DGV_QUALITY_PARMSA
, dwCallback
, 0)
2120 TEST_FIELD_SIZE (MCI_DGV_QUALITY_PARMSA
, dwItem
, 4)
2121 TEST_FIELD_ALIGN (MCI_DGV_QUALITY_PARMSA
, dwItem
, 1)
2122 TEST_FIELD_OFFSET(MCI_DGV_QUALITY_PARMSA
, dwItem
, 8)
2123 TEST_FIELD_SIZE (MCI_DGV_QUALITY_PARMSA
, lpstrName
, 8)
2124 TEST_FIELD_ALIGN (MCI_DGV_QUALITY_PARMSA
, lpstrName
, 1)
2125 TEST_FIELD_OFFSET(MCI_DGV_QUALITY_PARMSA
, lpstrName
, 12)
2126 TEST_FIELD_SIZE (MCI_DGV_QUALITY_PARMSA
, lpstrAlgorithm
, 4)
2127 TEST_FIELD_ALIGN (MCI_DGV_QUALITY_PARMSA
, lpstrAlgorithm
, 1)
2128 TEST_FIELD_OFFSET(MCI_DGV_QUALITY_PARMSA
, lpstrAlgorithm
, 20)
2129 TEST_FIELD_SIZE (MCI_DGV_QUALITY_PARMSA
, dwHandle
, 4)
2130 TEST_FIELD_ALIGN (MCI_DGV_QUALITY_PARMSA
, dwHandle
, 1)
2131 TEST_FIELD_OFFSET(MCI_DGV_QUALITY_PARMSA
, dwHandle
, 24)
2134 static void test_pack_MCI_DGV_QUALITY_PARMSW(void)
2136 /* MCI_DGV_QUALITY_PARMSW (pack 1) */
2137 TEST_TYPE_SIZE (MCI_DGV_QUALITY_PARMSW
, 28)
2138 TEST_TYPE_ALIGN (MCI_DGV_QUALITY_PARMSW
, 1)
2139 TEST_FIELD_SIZE (MCI_DGV_QUALITY_PARMSW
, dwCallback
, 8)
2140 TEST_FIELD_ALIGN (MCI_DGV_QUALITY_PARMSW
, dwCallback
, 1)
2141 TEST_FIELD_OFFSET(MCI_DGV_QUALITY_PARMSW
, dwCallback
, 0)
2142 TEST_FIELD_SIZE (MCI_DGV_QUALITY_PARMSW
, dwItem
, 4)
2143 TEST_FIELD_ALIGN (MCI_DGV_QUALITY_PARMSW
, dwItem
, 1)
2144 TEST_FIELD_OFFSET(MCI_DGV_QUALITY_PARMSW
, dwItem
, 8)
2145 TEST_FIELD_SIZE (MCI_DGV_QUALITY_PARMSW
, lpstrName
, 8)
2146 TEST_FIELD_ALIGN (MCI_DGV_QUALITY_PARMSW
, lpstrName
, 1)
2147 TEST_FIELD_OFFSET(MCI_DGV_QUALITY_PARMSW
, lpstrName
, 12)
2148 TEST_FIELD_SIZE (MCI_DGV_QUALITY_PARMSW
, lpstrAlgorithm
, 4)
2149 TEST_FIELD_ALIGN (MCI_DGV_QUALITY_PARMSW
, lpstrAlgorithm
, 1)
2150 TEST_FIELD_OFFSET(MCI_DGV_QUALITY_PARMSW
, lpstrAlgorithm
, 20)
2151 TEST_FIELD_SIZE (MCI_DGV_QUALITY_PARMSW
, dwHandle
, 4)
2152 TEST_FIELD_ALIGN (MCI_DGV_QUALITY_PARMSW
, dwHandle
, 1)
2153 TEST_FIELD_OFFSET(MCI_DGV_QUALITY_PARMSW
, dwHandle
, 24)
2156 static void test_pack_MCI_DGV_RECORD_PARMS(void)
2158 /* MCI_DGV_RECORD_PARMS (pack 1) */
2159 TEST_TYPE_SIZE (MCI_DGV_RECORD_PARMS
, 40)
2160 TEST_TYPE_ALIGN (MCI_DGV_RECORD_PARMS
, 1)
2161 TEST_FIELD_SIZE (MCI_DGV_RECORD_PARMS
, dwCallback
, 8)
2162 TEST_FIELD_ALIGN (MCI_DGV_RECORD_PARMS
, dwCallback
, 1)
2163 TEST_FIELD_OFFSET(MCI_DGV_RECORD_PARMS
, dwCallback
, 0)
2164 TEST_FIELD_SIZE (MCI_DGV_RECORD_PARMS
, dwFrom
, 4)
2165 TEST_FIELD_ALIGN (MCI_DGV_RECORD_PARMS
, dwFrom
, 1)
2166 TEST_FIELD_OFFSET(MCI_DGV_RECORD_PARMS
, dwFrom
, 8)
2167 TEST_FIELD_SIZE (MCI_DGV_RECORD_PARMS
, dwTo
, 4)
2168 TEST_FIELD_ALIGN (MCI_DGV_RECORD_PARMS
, dwTo
, 1)
2169 TEST_FIELD_OFFSET(MCI_DGV_RECORD_PARMS
, dwTo
, 12)
2170 TEST_FIELD_SIZE (MCI_DGV_RECORD_PARMS
, rc
, 16)
2171 TEST_FIELD_ALIGN (MCI_DGV_RECORD_PARMS
, rc
, 1)
2172 TEST_FIELD_OFFSET(MCI_DGV_RECORD_PARMS
, rc
, 16)
2173 TEST_FIELD_SIZE (MCI_DGV_RECORD_PARMS
, dwAudioStream
, 4)
2174 TEST_FIELD_ALIGN (MCI_DGV_RECORD_PARMS
, dwAudioStream
, 1)
2175 TEST_FIELD_OFFSET(MCI_DGV_RECORD_PARMS
, dwAudioStream
, 32)
2176 TEST_FIELD_SIZE (MCI_DGV_RECORD_PARMS
, dwVideoStream
, 4)
2177 TEST_FIELD_ALIGN (MCI_DGV_RECORD_PARMS
, dwVideoStream
, 1)
2178 TEST_FIELD_OFFSET(MCI_DGV_RECORD_PARMS
, dwVideoStream
, 36)
2181 static void test_pack_MCI_DGV_RESERVE_PARMSA(void)
2183 /* MCI_DGV_RESERVE_PARMSA (pack 1) */
2184 TEST_TYPE_SIZE (MCI_DGV_RESERVE_PARMSA
, 20)
2185 TEST_TYPE_ALIGN (MCI_DGV_RESERVE_PARMSA
, 1)
2186 TEST_FIELD_SIZE (MCI_DGV_RESERVE_PARMSA
, dwCallback
, 8)
2187 TEST_FIELD_ALIGN (MCI_DGV_RESERVE_PARMSA
, dwCallback
, 1)
2188 TEST_FIELD_OFFSET(MCI_DGV_RESERVE_PARMSA
, dwCallback
, 0)
2189 TEST_FIELD_SIZE (MCI_DGV_RESERVE_PARMSA
, lpstrPath
, 8)
2190 TEST_FIELD_ALIGN (MCI_DGV_RESERVE_PARMSA
, lpstrPath
, 1)
2191 TEST_FIELD_OFFSET(MCI_DGV_RESERVE_PARMSA
, lpstrPath
, 8)
2192 TEST_FIELD_SIZE (MCI_DGV_RESERVE_PARMSA
, dwSize
, 4)
2193 TEST_FIELD_ALIGN (MCI_DGV_RESERVE_PARMSA
, dwSize
, 1)
2194 TEST_FIELD_OFFSET(MCI_DGV_RESERVE_PARMSA
, dwSize
, 16)
2197 static void test_pack_MCI_DGV_RESERVE_PARMSW(void)
2199 /* MCI_DGV_RESERVE_PARMSW (pack 1) */
2200 TEST_TYPE_SIZE (MCI_DGV_RESERVE_PARMSW
, 20)
2201 TEST_TYPE_ALIGN (MCI_DGV_RESERVE_PARMSW
, 1)
2202 TEST_FIELD_SIZE (MCI_DGV_RESERVE_PARMSW
, dwCallback
, 8)
2203 TEST_FIELD_ALIGN (MCI_DGV_RESERVE_PARMSW
, dwCallback
, 1)
2204 TEST_FIELD_OFFSET(MCI_DGV_RESERVE_PARMSW
, dwCallback
, 0)
2205 TEST_FIELD_SIZE (MCI_DGV_RESERVE_PARMSW
, lpstrPath
, 8)
2206 TEST_FIELD_ALIGN (MCI_DGV_RESERVE_PARMSW
, lpstrPath
, 1)
2207 TEST_FIELD_OFFSET(MCI_DGV_RESERVE_PARMSW
, lpstrPath
, 8)
2208 TEST_FIELD_SIZE (MCI_DGV_RESERVE_PARMSW
, dwSize
, 4)
2209 TEST_FIELD_ALIGN (MCI_DGV_RESERVE_PARMSW
, dwSize
, 1)
2210 TEST_FIELD_OFFSET(MCI_DGV_RESERVE_PARMSW
, dwSize
, 16)
2213 static void test_pack_MCI_DGV_RESTORE_PARMSA(void)
2215 /* MCI_DGV_RESTORE_PARMSA (pack 1) */
2216 TEST_TYPE_SIZE (MCI_DGV_RESTORE_PARMSA
, 32)
2217 TEST_TYPE_ALIGN (MCI_DGV_RESTORE_PARMSA
, 1)
2218 TEST_FIELD_SIZE (MCI_DGV_RESTORE_PARMSA
, dwCallback
, 8)
2219 TEST_FIELD_ALIGN (MCI_DGV_RESTORE_PARMSA
, dwCallback
, 1)
2220 TEST_FIELD_OFFSET(MCI_DGV_RESTORE_PARMSA
, dwCallback
, 0)
2221 TEST_FIELD_SIZE (MCI_DGV_RESTORE_PARMSA
, lpstrFileName
, 8)
2222 TEST_FIELD_ALIGN (MCI_DGV_RESTORE_PARMSA
, lpstrFileName
, 1)
2223 TEST_FIELD_OFFSET(MCI_DGV_RESTORE_PARMSA
, lpstrFileName
, 8)
2224 TEST_FIELD_SIZE (MCI_DGV_RESTORE_PARMSA
, rc
, 16)
2225 TEST_FIELD_ALIGN (MCI_DGV_RESTORE_PARMSA
, rc
, 1)
2226 TEST_FIELD_OFFSET(MCI_DGV_RESTORE_PARMSA
, rc
, 16)
2229 static void test_pack_MCI_DGV_RESTORE_PARMSW(void)
2231 /* MCI_DGV_RESTORE_PARMSW (pack 1) */
2232 TEST_TYPE_SIZE (MCI_DGV_RESTORE_PARMSW
, 32)
2233 TEST_TYPE_ALIGN (MCI_DGV_RESTORE_PARMSW
, 1)
2234 TEST_FIELD_SIZE (MCI_DGV_RESTORE_PARMSW
, dwCallback
, 8)
2235 TEST_FIELD_ALIGN (MCI_DGV_RESTORE_PARMSW
, dwCallback
, 1)
2236 TEST_FIELD_OFFSET(MCI_DGV_RESTORE_PARMSW
, dwCallback
, 0)
2237 TEST_FIELD_SIZE (MCI_DGV_RESTORE_PARMSW
, lpstrFileName
, 8)
2238 TEST_FIELD_ALIGN (MCI_DGV_RESTORE_PARMSW
, lpstrFileName
, 1)
2239 TEST_FIELD_OFFSET(MCI_DGV_RESTORE_PARMSW
, lpstrFileName
, 8)
2240 TEST_FIELD_SIZE (MCI_DGV_RESTORE_PARMSW
, rc
, 16)
2241 TEST_FIELD_ALIGN (MCI_DGV_RESTORE_PARMSW
, rc
, 1)
2242 TEST_FIELD_OFFSET(MCI_DGV_RESTORE_PARMSW
, rc
, 16)
2245 static void test_pack_MCI_DGV_SAVE_PARMSA(void)
2247 /* MCI_DGV_SAVE_PARMSA (pack 1) */
2248 TEST_TYPE_SIZE (MCI_DGV_SAVE_PARMSA
, 32)
2249 TEST_TYPE_ALIGN (MCI_DGV_SAVE_PARMSA
, 1)
2250 TEST_FIELD_SIZE (MCI_DGV_SAVE_PARMSA
, dwCallback
, 8)
2251 TEST_FIELD_ALIGN (MCI_DGV_SAVE_PARMSA
, dwCallback
, 1)
2252 TEST_FIELD_OFFSET(MCI_DGV_SAVE_PARMSA
, dwCallback
, 0)
2253 TEST_FIELD_SIZE (MCI_DGV_SAVE_PARMSA
, lpstrFileName
, 8)
2254 TEST_FIELD_ALIGN (MCI_DGV_SAVE_PARMSA
, lpstrFileName
, 1)
2255 TEST_FIELD_OFFSET(MCI_DGV_SAVE_PARMSA
, lpstrFileName
, 8)
2256 TEST_FIELD_SIZE (MCI_DGV_SAVE_PARMSA
, rc
, 16)
2257 TEST_FIELD_ALIGN (MCI_DGV_SAVE_PARMSA
, rc
, 1)
2258 TEST_FIELD_OFFSET(MCI_DGV_SAVE_PARMSA
, rc
, 16)
2261 static void test_pack_MCI_DGV_SAVE_PARMSW(void)
2263 /* MCI_DGV_SAVE_PARMSW (pack 1) */
2264 TEST_TYPE_SIZE (MCI_DGV_SAVE_PARMSW
, 32)
2265 TEST_TYPE_ALIGN (MCI_DGV_SAVE_PARMSW
, 1)
2266 TEST_FIELD_SIZE (MCI_DGV_SAVE_PARMSW
, dwCallback
, 8)
2267 TEST_FIELD_ALIGN (MCI_DGV_SAVE_PARMSW
, dwCallback
, 1)
2268 TEST_FIELD_OFFSET(MCI_DGV_SAVE_PARMSW
, dwCallback
, 0)
2269 TEST_FIELD_SIZE (MCI_DGV_SAVE_PARMSW
, lpstrFileName
, 8)
2270 TEST_FIELD_ALIGN (MCI_DGV_SAVE_PARMSW
, lpstrFileName
, 1)
2271 TEST_FIELD_OFFSET(MCI_DGV_SAVE_PARMSW
, lpstrFileName
, 8)
2272 TEST_FIELD_SIZE (MCI_DGV_SAVE_PARMSW
, rc
, 16)
2273 TEST_FIELD_ALIGN (MCI_DGV_SAVE_PARMSW
, rc
, 1)
2274 TEST_FIELD_OFFSET(MCI_DGV_SAVE_PARMSW
, rc
, 16)
2277 static void test_pack_MCI_DGV_SET_PARMS(void)
2279 /* MCI_DGV_SET_PARMS (pack 1) */
2280 TEST_TYPE_SIZE (MCI_DGV_SET_PARMS
, 24)
2281 TEST_TYPE_ALIGN (MCI_DGV_SET_PARMS
, 1)
2282 TEST_FIELD_SIZE (MCI_DGV_SET_PARMS
, dwCallback
, 8)
2283 TEST_FIELD_ALIGN (MCI_DGV_SET_PARMS
, dwCallback
, 1)
2284 TEST_FIELD_OFFSET(MCI_DGV_SET_PARMS
, dwCallback
, 0)
2285 TEST_FIELD_SIZE (MCI_DGV_SET_PARMS
, dwTimeFormat
, 4)
2286 TEST_FIELD_ALIGN (MCI_DGV_SET_PARMS
, dwTimeFormat
, 1)
2287 TEST_FIELD_OFFSET(MCI_DGV_SET_PARMS
, dwTimeFormat
, 8)
2288 TEST_FIELD_SIZE (MCI_DGV_SET_PARMS
, dwAudio
, 4)
2289 TEST_FIELD_ALIGN (MCI_DGV_SET_PARMS
, dwAudio
, 1)
2290 TEST_FIELD_OFFSET(MCI_DGV_SET_PARMS
, dwAudio
, 12)
2291 TEST_FIELD_SIZE (MCI_DGV_SET_PARMS
, dwFileFormat
, 4)
2292 TEST_FIELD_ALIGN (MCI_DGV_SET_PARMS
, dwFileFormat
, 1)
2293 TEST_FIELD_OFFSET(MCI_DGV_SET_PARMS
, dwFileFormat
, 16)
2294 TEST_FIELD_SIZE (MCI_DGV_SET_PARMS
, dwSpeed
, 4)
2295 TEST_FIELD_ALIGN (MCI_DGV_SET_PARMS
, dwSpeed
, 1)
2296 TEST_FIELD_OFFSET(MCI_DGV_SET_PARMS
, dwSpeed
, 20)
2299 static void test_pack_MCI_DGV_SETAUDIO_PARMSA(void)
2301 /* MCI_DGV_SETAUDIO_PARMSA (pack 1) */
2302 TEST_TYPE_SIZE (MCI_DGV_SETAUDIO_PARMSA
, 36)
2303 TEST_TYPE_ALIGN (MCI_DGV_SETAUDIO_PARMSA
, 1)
2304 TEST_FIELD_SIZE (MCI_DGV_SETAUDIO_PARMSA
, dwCallback
, 8)
2305 TEST_FIELD_ALIGN (MCI_DGV_SETAUDIO_PARMSA
, dwCallback
, 1)
2306 TEST_FIELD_OFFSET(MCI_DGV_SETAUDIO_PARMSA
, dwCallback
, 0)
2307 TEST_FIELD_SIZE (MCI_DGV_SETAUDIO_PARMSA
, dwItem
, 4)
2308 TEST_FIELD_ALIGN (MCI_DGV_SETAUDIO_PARMSA
, dwItem
, 1)
2309 TEST_FIELD_OFFSET(MCI_DGV_SETAUDIO_PARMSA
, dwItem
, 8)
2310 TEST_FIELD_SIZE (MCI_DGV_SETAUDIO_PARMSA
, dwValue
, 4)
2311 TEST_FIELD_ALIGN (MCI_DGV_SETAUDIO_PARMSA
, dwValue
, 1)
2312 TEST_FIELD_OFFSET(MCI_DGV_SETAUDIO_PARMSA
, dwValue
, 12)
2313 TEST_FIELD_SIZE (MCI_DGV_SETAUDIO_PARMSA
, dwOver
, 4)
2314 TEST_FIELD_ALIGN (MCI_DGV_SETAUDIO_PARMSA
, dwOver
, 1)
2315 TEST_FIELD_OFFSET(MCI_DGV_SETAUDIO_PARMSA
, dwOver
, 16)
2316 TEST_FIELD_SIZE (MCI_DGV_SETAUDIO_PARMSA
, lpstrAlgorithm
, 8)
2317 TEST_FIELD_ALIGN (MCI_DGV_SETAUDIO_PARMSA
, lpstrAlgorithm
, 1)
2318 TEST_FIELD_OFFSET(MCI_DGV_SETAUDIO_PARMSA
, lpstrAlgorithm
, 20)
2319 TEST_FIELD_SIZE (MCI_DGV_SETAUDIO_PARMSA
, lpstrQuality
, 8)
2320 TEST_FIELD_ALIGN (MCI_DGV_SETAUDIO_PARMSA
, lpstrQuality
, 1)
2321 TEST_FIELD_OFFSET(MCI_DGV_SETAUDIO_PARMSA
, lpstrQuality
, 28)
2324 static void test_pack_MCI_DGV_SETAUDIO_PARMSW(void)
2326 /* MCI_DGV_SETAUDIO_PARMSW (pack 1) */
2327 TEST_TYPE_SIZE (MCI_DGV_SETAUDIO_PARMSW
, 36)
2328 TEST_TYPE_ALIGN (MCI_DGV_SETAUDIO_PARMSW
, 1)
2329 TEST_FIELD_SIZE (MCI_DGV_SETAUDIO_PARMSW
, dwCallback
, 8)
2330 TEST_FIELD_ALIGN (MCI_DGV_SETAUDIO_PARMSW
, dwCallback
, 1)
2331 TEST_FIELD_OFFSET(MCI_DGV_SETAUDIO_PARMSW
, dwCallback
, 0)
2332 TEST_FIELD_SIZE (MCI_DGV_SETAUDIO_PARMSW
, dwItem
, 4)
2333 TEST_FIELD_ALIGN (MCI_DGV_SETAUDIO_PARMSW
, dwItem
, 1)
2334 TEST_FIELD_OFFSET(MCI_DGV_SETAUDIO_PARMSW
, dwItem
, 8)
2335 TEST_FIELD_SIZE (MCI_DGV_SETAUDIO_PARMSW
, dwValue
, 4)
2336 TEST_FIELD_ALIGN (MCI_DGV_SETAUDIO_PARMSW
, dwValue
, 1)
2337 TEST_FIELD_OFFSET(MCI_DGV_SETAUDIO_PARMSW
, dwValue
, 12)
2338 TEST_FIELD_SIZE (MCI_DGV_SETAUDIO_PARMSW
, dwOver
, 4)
2339 TEST_FIELD_ALIGN (MCI_DGV_SETAUDIO_PARMSW
, dwOver
, 1)
2340 TEST_FIELD_OFFSET(MCI_DGV_SETAUDIO_PARMSW
, dwOver
, 16)
2341 TEST_FIELD_SIZE (MCI_DGV_SETAUDIO_PARMSW
, lpstrAlgorithm
, 8)
2342 TEST_FIELD_ALIGN (MCI_DGV_SETAUDIO_PARMSW
, lpstrAlgorithm
, 1)
2343 TEST_FIELD_OFFSET(MCI_DGV_SETAUDIO_PARMSW
, lpstrAlgorithm
, 20)
2344 TEST_FIELD_SIZE (MCI_DGV_SETAUDIO_PARMSW
, lpstrQuality
, 8)
2345 TEST_FIELD_ALIGN (MCI_DGV_SETAUDIO_PARMSW
, lpstrQuality
, 1)
2346 TEST_FIELD_OFFSET(MCI_DGV_SETAUDIO_PARMSW
, lpstrQuality
, 28)
2349 static void test_pack_MCI_DGV_SIGNAL_PARMS(void)
2351 /* MCI_DGV_SIGNAL_PARMS (pack 1) */
2352 TEST_TYPE_SIZE (MCI_DGV_SIGNAL_PARMS
, 20)
2353 TEST_TYPE_ALIGN (MCI_DGV_SIGNAL_PARMS
, 1)
2354 TEST_FIELD_SIZE (MCI_DGV_SIGNAL_PARMS
, dwCallback
, 8)
2355 TEST_FIELD_ALIGN (MCI_DGV_SIGNAL_PARMS
, dwCallback
, 1)
2356 TEST_FIELD_OFFSET(MCI_DGV_SIGNAL_PARMS
, dwCallback
, 0)
2357 TEST_FIELD_SIZE (MCI_DGV_SIGNAL_PARMS
, dwPosition
, 4)
2358 TEST_FIELD_ALIGN (MCI_DGV_SIGNAL_PARMS
, dwPosition
, 1)
2359 TEST_FIELD_OFFSET(MCI_DGV_SIGNAL_PARMS
, dwPosition
, 8)
2360 TEST_FIELD_SIZE (MCI_DGV_SIGNAL_PARMS
, dwPeriod
, 4)
2361 TEST_FIELD_ALIGN (MCI_DGV_SIGNAL_PARMS
, dwPeriod
, 1)
2362 TEST_FIELD_OFFSET(MCI_DGV_SIGNAL_PARMS
, dwPeriod
, 12)
2363 TEST_FIELD_SIZE (MCI_DGV_SIGNAL_PARMS
, dwUserParm
, 4)
2364 TEST_FIELD_ALIGN (MCI_DGV_SIGNAL_PARMS
, dwUserParm
, 1)
2365 TEST_FIELD_OFFSET(MCI_DGV_SIGNAL_PARMS
, dwUserParm
, 16)
2368 static void test_pack_MCI_DGV_SETVIDEO_PARMSA(void)
2370 /* MCI_DGV_SETVIDEO_PARMSA (pack 1) */
2371 TEST_TYPE_SIZE (MCI_DGV_SETVIDEO_PARMSA
, 40)
2372 TEST_TYPE_ALIGN (MCI_DGV_SETVIDEO_PARMSA
, 1)
2373 TEST_FIELD_SIZE (MCI_DGV_SETVIDEO_PARMSA
, dwCallback
, 8)
2374 TEST_FIELD_ALIGN (MCI_DGV_SETVIDEO_PARMSA
, dwCallback
, 1)
2375 TEST_FIELD_OFFSET(MCI_DGV_SETVIDEO_PARMSA
, dwCallback
, 0)
2376 TEST_FIELD_SIZE (MCI_DGV_SETVIDEO_PARMSA
, dwItem
, 4)
2377 TEST_FIELD_ALIGN (MCI_DGV_SETVIDEO_PARMSA
, dwItem
, 1)
2378 TEST_FIELD_OFFSET(MCI_DGV_SETVIDEO_PARMSA
, dwItem
, 8)
2379 TEST_FIELD_SIZE (MCI_DGV_SETVIDEO_PARMSA
, dwValue
, 4)
2380 TEST_FIELD_ALIGN (MCI_DGV_SETVIDEO_PARMSA
, dwValue
, 1)
2381 TEST_FIELD_OFFSET(MCI_DGV_SETVIDEO_PARMSA
, dwValue
, 12)
2382 TEST_FIELD_SIZE (MCI_DGV_SETVIDEO_PARMSA
, dwOver
, 4)
2383 TEST_FIELD_ALIGN (MCI_DGV_SETVIDEO_PARMSA
, dwOver
, 1)
2384 TEST_FIELD_OFFSET(MCI_DGV_SETVIDEO_PARMSA
, dwOver
, 16)
2385 TEST_FIELD_SIZE (MCI_DGV_SETVIDEO_PARMSA
, lpstrAlgorithm
, 8)
2386 TEST_FIELD_ALIGN (MCI_DGV_SETVIDEO_PARMSA
, lpstrAlgorithm
, 1)
2387 TEST_FIELD_OFFSET(MCI_DGV_SETVIDEO_PARMSA
, lpstrAlgorithm
, 20)
2388 TEST_FIELD_SIZE (MCI_DGV_SETVIDEO_PARMSA
, lpstrQuality
, 8)
2389 TEST_FIELD_ALIGN (MCI_DGV_SETVIDEO_PARMSA
, lpstrQuality
, 1)
2390 TEST_FIELD_OFFSET(MCI_DGV_SETVIDEO_PARMSA
, lpstrQuality
, 28)
2391 TEST_FIELD_SIZE (MCI_DGV_SETVIDEO_PARMSA
, dwSourceNumber
, 4)
2392 TEST_FIELD_ALIGN (MCI_DGV_SETVIDEO_PARMSA
, dwSourceNumber
, 1)
2393 TEST_FIELD_OFFSET(MCI_DGV_SETVIDEO_PARMSA
, dwSourceNumber
, 36)
2396 static void test_pack_MCI_DGV_SETVIDEO_PARMSW(void)
2398 /* MCI_DGV_SETVIDEO_PARMSW (pack 1) */
2399 TEST_TYPE_SIZE (MCI_DGV_SETVIDEO_PARMSW
, 40)
2400 TEST_TYPE_ALIGN (MCI_DGV_SETVIDEO_PARMSW
, 1)
2401 TEST_FIELD_SIZE (MCI_DGV_SETVIDEO_PARMSW
, dwCallback
, 8)
2402 TEST_FIELD_ALIGN (MCI_DGV_SETVIDEO_PARMSW
, dwCallback
, 1)
2403 TEST_FIELD_OFFSET(MCI_DGV_SETVIDEO_PARMSW
, dwCallback
, 0)
2404 TEST_FIELD_SIZE (MCI_DGV_SETVIDEO_PARMSW
, dwItem
, 4)
2405 TEST_FIELD_ALIGN (MCI_DGV_SETVIDEO_PARMSW
, dwItem
, 1)
2406 TEST_FIELD_OFFSET(MCI_DGV_SETVIDEO_PARMSW
, dwItem
, 8)
2407 TEST_FIELD_SIZE (MCI_DGV_SETVIDEO_PARMSW
, dwValue
, 4)
2408 TEST_FIELD_ALIGN (MCI_DGV_SETVIDEO_PARMSW
, dwValue
, 1)
2409 TEST_FIELD_OFFSET(MCI_DGV_SETVIDEO_PARMSW
, dwValue
, 12)
2410 TEST_FIELD_SIZE (MCI_DGV_SETVIDEO_PARMSW
, dwOver
, 4)
2411 TEST_FIELD_ALIGN (MCI_DGV_SETVIDEO_PARMSW
, dwOver
, 1)
2412 TEST_FIELD_OFFSET(MCI_DGV_SETVIDEO_PARMSW
, dwOver
, 16)
2413 TEST_FIELD_SIZE (MCI_DGV_SETVIDEO_PARMSW
, lpstrAlgorithm
, 8)
2414 TEST_FIELD_ALIGN (MCI_DGV_SETVIDEO_PARMSW
, lpstrAlgorithm
, 1)
2415 TEST_FIELD_OFFSET(MCI_DGV_SETVIDEO_PARMSW
, lpstrAlgorithm
, 20)
2416 TEST_FIELD_SIZE (MCI_DGV_SETVIDEO_PARMSW
, lpstrQuality
, 8)
2417 TEST_FIELD_ALIGN (MCI_DGV_SETVIDEO_PARMSW
, lpstrQuality
, 1)
2418 TEST_FIELD_OFFSET(MCI_DGV_SETVIDEO_PARMSW
, lpstrQuality
, 28)
2419 TEST_FIELD_SIZE (MCI_DGV_SETVIDEO_PARMSW
, dwSourceNumber
, 4)
2420 TEST_FIELD_ALIGN (MCI_DGV_SETVIDEO_PARMSW
, dwSourceNumber
, 1)
2421 TEST_FIELD_OFFSET(MCI_DGV_SETVIDEO_PARMSW
, dwSourceNumber
, 36)
2424 static void test_pack_MCI_DGV_STATUS_PARMSA(void)
2426 /* MCI_DGV_STATUS_PARMSA (pack 1) */
2427 TEST_TYPE_SIZE (MCI_DGV_STATUS_PARMSA
, 36)
2428 TEST_TYPE_ALIGN (MCI_DGV_STATUS_PARMSA
, 1)
2429 TEST_FIELD_SIZE (MCI_DGV_STATUS_PARMSA
, dwCallback
, 8)
2430 TEST_FIELD_ALIGN (MCI_DGV_STATUS_PARMSA
, dwCallback
, 1)
2431 TEST_FIELD_OFFSET(MCI_DGV_STATUS_PARMSA
, dwCallback
, 0)
2432 TEST_FIELD_SIZE (MCI_DGV_STATUS_PARMSA
, dwReturn
, 8)
2433 TEST_FIELD_ALIGN (MCI_DGV_STATUS_PARMSA
, dwReturn
, 1)
2434 TEST_FIELD_OFFSET(MCI_DGV_STATUS_PARMSA
, dwReturn
, 8)
2435 TEST_FIELD_SIZE (MCI_DGV_STATUS_PARMSA
, dwItem
, 4)
2436 TEST_FIELD_ALIGN (MCI_DGV_STATUS_PARMSA
, dwItem
, 1)
2437 TEST_FIELD_OFFSET(MCI_DGV_STATUS_PARMSA
, dwItem
, 16)
2438 TEST_FIELD_SIZE (MCI_DGV_STATUS_PARMSA
, dwTrack
, 4)
2439 TEST_FIELD_ALIGN (MCI_DGV_STATUS_PARMSA
, dwTrack
, 1)
2440 TEST_FIELD_OFFSET(MCI_DGV_STATUS_PARMSA
, dwTrack
, 20)
2441 TEST_FIELD_SIZE (MCI_DGV_STATUS_PARMSA
, lpstrDrive
, 8)
2442 TEST_FIELD_ALIGN (MCI_DGV_STATUS_PARMSA
, lpstrDrive
, 1)
2443 TEST_FIELD_OFFSET(MCI_DGV_STATUS_PARMSA
, lpstrDrive
, 24)
2444 TEST_FIELD_SIZE (MCI_DGV_STATUS_PARMSA
, dwReference
, 4)
2445 TEST_FIELD_ALIGN (MCI_DGV_STATUS_PARMSA
, dwReference
, 1)
2446 TEST_FIELD_OFFSET(MCI_DGV_STATUS_PARMSA
, dwReference
, 32)
2449 static void test_pack_MCI_DGV_STATUS_PARMSW(void)
2451 /* MCI_DGV_STATUS_PARMSW (pack 1) */
2452 TEST_TYPE_SIZE (MCI_DGV_STATUS_PARMSW
, 36)
2453 TEST_TYPE_ALIGN (MCI_DGV_STATUS_PARMSW
, 1)
2454 TEST_FIELD_SIZE (MCI_DGV_STATUS_PARMSW
, dwCallback
, 8)
2455 TEST_FIELD_ALIGN (MCI_DGV_STATUS_PARMSW
, dwCallback
, 1)
2456 TEST_FIELD_OFFSET(MCI_DGV_STATUS_PARMSW
, dwCallback
, 0)
2457 TEST_FIELD_SIZE (MCI_DGV_STATUS_PARMSW
, dwReturn
, 8)
2458 TEST_FIELD_ALIGN (MCI_DGV_STATUS_PARMSW
, dwReturn
, 1)
2459 TEST_FIELD_OFFSET(MCI_DGV_STATUS_PARMSW
, dwReturn
, 8)
2460 TEST_FIELD_SIZE (MCI_DGV_STATUS_PARMSW
, dwItem
, 4)
2461 TEST_FIELD_ALIGN (MCI_DGV_STATUS_PARMSW
, dwItem
, 1)
2462 TEST_FIELD_OFFSET(MCI_DGV_STATUS_PARMSW
, dwItem
, 16)
2463 TEST_FIELD_SIZE (MCI_DGV_STATUS_PARMSW
, dwTrack
, 4)
2464 TEST_FIELD_ALIGN (MCI_DGV_STATUS_PARMSW
, dwTrack
, 1)
2465 TEST_FIELD_OFFSET(MCI_DGV_STATUS_PARMSW
, dwTrack
, 20)
2466 TEST_FIELD_SIZE (MCI_DGV_STATUS_PARMSW
, lpstrDrive
, 8)
2467 TEST_FIELD_ALIGN (MCI_DGV_STATUS_PARMSW
, lpstrDrive
, 1)
2468 TEST_FIELD_OFFSET(MCI_DGV_STATUS_PARMSW
, lpstrDrive
, 24)
2469 TEST_FIELD_SIZE (MCI_DGV_STATUS_PARMSW
, dwReference
, 4)
2470 TEST_FIELD_ALIGN (MCI_DGV_STATUS_PARMSW
, dwReference
, 1)
2471 TEST_FIELD_OFFSET(MCI_DGV_STATUS_PARMSW
, dwReference
, 32)
2474 static void test_pack_MCI_DGV_STEP_PARMS(void)
2476 /* MCI_DGV_STEP_PARMS (pack 1) */
2477 TEST_TYPE_SIZE (MCI_DGV_STEP_PARMS
, 12)
2478 TEST_TYPE_ALIGN (MCI_DGV_STEP_PARMS
, 1)
2479 TEST_FIELD_SIZE (MCI_DGV_STEP_PARMS
, dwCallback
, 8)
2480 TEST_FIELD_ALIGN (MCI_DGV_STEP_PARMS
, dwCallback
, 1)
2481 TEST_FIELD_OFFSET(MCI_DGV_STEP_PARMS
, dwCallback
, 0)
2482 TEST_FIELD_SIZE (MCI_DGV_STEP_PARMS
, dwFrames
, 4)
2483 TEST_FIELD_ALIGN (MCI_DGV_STEP_PARMS
, dwFrames
, 1)
2484 TEST_FIELD_OFFSET(MCI_DGV_STEP_PARMS
, dwFrames
, 8)
2487 static void test_pack_MCI_DGV_UPDATE_PARMS(void)
2489 /* MCI_DGV_UPDATE_PARMS (pack 1) */
2490 TEST_TYPE_SIZE (MCI_DGV_UPDATE_PARMS
, 32)
2491 TEST_TYPE_ALIGN (MCI_DGV_UPDATE_PARMS
, 1)
2492 TEST_FIELD_SIZE (MCI_DGV_UPDATE_PARMS
, dwCallback
, 8)
2493 TEST_FIELD_ALIGN (MCI_DGV_UPDATE_PARMS
, dwCallback
, 1)
2494 TEST_FIELD_OFFSET(MCI_DGV_UPDATE_PARMS
, dwCallback
, 0)
2495 TEST_FIELD_SIZE (MCI_DGV_UPDATE_PARMS
, rc
, 16)
2496 TEST_FIELD_ALIGN (MCI_DGV_UPDATE_PARMS
, rc
, 1)
2497 TEST_FIELD_OFFSET(MCI_DGV_UPDATE_PARMS
, rc
, 8)
2498 TEST_FIELD_SIZE (MCI_DGV_UPDATE_PARMS
, hDC
, 8)
2499 TEST_FIELD_ALIGN (MCI_DGV_UPDATE_PARMS
, hDC
, 1)
2500 TEST_FIELD_OFFSET(MCI_DGV_UPDATE_PARMS
, hDC
, 24)
2503 static void test_pack_MCI_DGV_WINDOW_PARMSA(void)
2505 /* MCI_DGV_WINDOW_PARMSA (pack 1) */
2506 TEST_TYPE_SIZE (MCI_DGV_WINDOW_PARMSA
, 28)
2507 TEST_TYPE_ALIGN (MCI_DGV_WINDOW_PARMSA
, 1)
2508 TEST_FIELD_SIZE (MCI_DGV_WINDOW_PARMSA
, dwCallback
, 8)
2509 TEST_FIELD_ALIGN (MCI_DGV_WINDOW_PARMSA
, dwCallback
, 1)
2510 TEST_FIELD_OFFSET(MCI_DGV_WINDOW_PARMSA
, dwCallback
, 0)
2511 TEST_FIELD_SIZE (MCI_DGV_WINDOW_PARMSA
, hWnd
, 8)
2512 TEST_FIELD_ALIGN (MCI_DGV_WINDOW_PARMSA
, hWnd
, 1)
2513 TEST_FIELD_OFFSET(MCI_DGV_WINDOW_PARMSA
, hWnd
, 8)
2514 TEST_FIELD_SIZE (MCI_DGV_WINDOW_PARMSA
, nCmdShow
, 4)
2515 TEST_FIELD_ALIGN (MCI_DGV_WINDOW_PARMSA
, nCmdShow
, 1)
2516 TEST_FIELD_OFFSET(MCI_DGV_WINDOW_PARMSA
, nCmdShow
, 16)
2517 TEST_FIELD_SIZE (MCI_DGV_WINDOW_PARMSA
, lpstrText
, 8)
2518 TEST_FIELD_ALIGN (MCI_DGV_WINDOW_PARMSA
, lpstrText
, 1)
2519 TEST_FIELD_OFFSET(MCI_DGV_WINDOW_PARMSA
, lpstrText
, 20)
2522 static void test_pack_MCI_DGV_WINDOW_PARMSW(void)
2524 /* MCI_DGV_WINDOW_PARMSW (pack 1) */
2525 TEST_TYPE_SIZE (MCI_DGV_WINDOW_PARMSW
, 28)
2526 TEST_TYPE_ALIGN (MCI_DGV_WINDOW_PARMSW
, 1)
2527 TEST_FIELD_SIZE (MCI_DGV_WINDOW_PARMSW
, dwCallback
, 8)
2528 TEST_FIELD_ALIGN (MCI_DGV_WINDOW_PARMSW
, dwCallback
, 1)
2529 TEST_FIELD_OFFSET(MCI_DGV_WINDOW_PARMSW
, dwCallback
, 0)
2530 TEST_FIELD_SIZE (MCI_DGV_WINDOW_PARMSW
, hWnd
, 8)
2531 TEST_FIELD_ALIGN (MCI_DGV_WINDOW_PARMSW
, hWnd
, 1)
2532 TEST_FIELD_OFFSET(MCI_DGV_WINDOW_PARMSW
, hWnd
, 8)
2533 TEST_FIELD_SIZE (MCI_DGV_WINDOW_PARMSW
, nCmdShow
, 4)
2534 TEST_FIELD_ALIGN (MCI_DGV_WINDOW_PARMSW
, nCmdShow
, 1)
2535 TEST_FIELD_OFFSET(MCI_DGV_WINDOW_PARMSW
, nCmdShow
, 16)
2536 TEST_FIELD_SIZE (MCI_DGV_WINDOW_PARMSW
, lpstrText
, 8)
2537 TEST_FIELD_ALIGN (MCI_DGV_WINDOW_PARMSW
, lpstrText
, 1)
2538 TEST_FIELD_OFFSET(MCI_DGV_WINDOW_PARMSW
, lpstrText
, 20)
2543 static void test_pack_MMTIME(void)
2545 /* MMTIME (pack 1) */
2546 TEST_FIELD_SIZE (MMTIME
, wType
, 4)
2547 TEST_FIELD_ALIGN (MMTIME
, wType
, 1)
2548 TEST_FIELD_OFFSET(MMTIME
, wType
, 0)
2551 static void test_pack_DRVCONFIGINFO(void)
2553 /* DRVCONFIGINFO (pack 1) */
2554 TEST_TYPE_SIZE (DRVCONFIGINFO
, 12)
2555 TEST_TYPE_ALIGN (DRVCONFIGINFO
, 1)
2556 TEST_FIELD_SIZE (DRVCONFIGINFO
, dwDCISize
, 4)
2557 TEST_FIELD_ALIGN (DRVCONFIGINFO
, dwDCISize
, 1)
2558 TEST_FIELD_OFFSET(DRVCONFIGINFO
, dwDCISize
, 0)
2559 TEST_FIELD_SIZE (DRVCONFIGINFO
, lpszDCISectionName
, 4)
2560 TEST_FIELD_ALIGN (DRVCONFIGINFO
, lpszDCISectionName
, 1)
2561 TEST_FIELD_OFFSET(DRVCONFIGINFO
, lpszDCISectionName
, 4)
2562 TEST_FIELD_SIZE (DRVCONFIGINFO
, lpszDCIAliasName
, 4)
2563 TEST_FIELD_ALIGN (DRVCONFIGINFO
, lpszDCIAliasName
, 1)
2564 TEST_FIELD_OFFSET(DRVCONFIGINFO
, lpszDCIAliasName
, 8)
2567 static void test_pack_WAVEHDR(void)
2569 /* WAVEHDR (pack 1) */
2570 TEST_TYPE_SIZE (WAVEHDR
, 32)
2571 TEST_TYPE_ALIGN (WAVEHDR
, 1)
2572 TEST_FIELD_SIZE (WAVEHDR
, lpData
, 4)
2573 TEST_FIELD_ALIGN (WAVEHDR
, lpData
, 1)
2574 TEST_FIELD_OFFSET(WAVEHDR
, lpData
, 0)
2575 TEST_FIELD_SIZE (WAVEHDR
, dwBufferLength
, 4)
2576 TEST_FIELD_ALIGN (WAVEHDR
, dwBufferLength
, 1)
2577 TEST_FIELD_OFFSET(WAVEHDR
, dwBufferLength
, 4)
2578 TEST_FIELD_SIZE (WAVEHDR
, dwBytesRecorded
, 4)
2579 TEST_FIELD_ALIGN (WAVEHDR
, dwBytesRecorded
, 1)
2580 TEST_FIELD_OFFSET(WAVEHDR
, dwBytesRecorded
, 8)
2581 TEST_FIELD_SIZE (WAVEHDR
, dwUser
, 4)
2582 TEST_FIELD_ALIGN (WAVEHDR
, dwUser
, 1)
2583 TEST_FIELD_OFFSET(WAVEHDR
, dwUser
, 12)
2584 TEST_FIELD_SIZE (WAVEHDR
, dwFlags
, 4)
2585 TEST_FIELD_ALIGN (WAVEHDR
, dwFlags
, 1)
2586 TEST_FIELD_OFFSET(WAVEHDR
, dwFlags
, 16)
2587 TEST_FIELD_SIZE (WAVEHDR
, dwLoops
, 4)
2588 TEST_FIELD_ALIGN (WAVEHDR
, dwLoops
, 1)
2589 TEST_FIELD_OFFSET(WAVEHDR
, dwLoops
, 20)
2590 TEST_FIELD_SIZE (WAVEHDR
, lpNext
, 4)
2591 TEST_FIELD_ALIGN (WAVEHDR
, lpNext
, 1)
2592 TEST_FIELD_OFFSET(WAVEHDR
, lpNext
, 24)
2593 TEST_FIELD_SIZE (WAVEHDR
, reserved
, 4)
2594 TEST_FIELD_ALIGN (WAVEHDR
, reserved
, 1)
2595 TEST_FIELD_OFFSET(WAVEHDR
, reserved
, 28)
2598 static void test_pack_WAVEOUTCAPSA(void)
2600 /* WAVEOUTCAPSA (pack 1) */
2601 TEST_FIELD_SIZE (WAVEOUTCAPSA
, wMid
, 2)
2602 TEST_FIELD_ALIGN (WAVEOUTCAPSA
, wMid
, 1)
2603 TEST_FIELD_OFFSET(WAVEOUTCAPSA
, wMid
, 0)
2604 TEST_FIELD_SIZE (WAVEOUTCAPSA
, wPid
, 2)
2605 TEST_FIELD_ALIGN (WAVEOUTCAPSA
, wPid
, 1)
2606 TEST_FIELD_OFFSET(WAVEOUTCAPSA
, wPid
, 2)
2607 TEST_FIELD_SIZE (WAVEOUTCAPSA
, vDriverVersion
, 4)
2608 TEST_FIELD_ALIGN (WAVEOUTCAPSA
, vDriverVersion
, 1)
2609 TEST_FIELD_OFFSET(WAVEOUTCAPSA
, vDriverVersion
, 4)
2612 static void test_pack_WAVEOUTCAPSW(void)
2614 /* WAVEOUTCAPSW (pack 1) */
2615 TEST_FIELD_SIZE (WAVEOUTCAPSW
, wMid
, 2)
2616 TEST_FIELD_ALIGN (WAVEOUTCAPSW
, wMid
, 1)
2617 TEST_FIELD_OFFSET(WAVEOUTCAPSW
, wMid
, 0)
2618 TEST_FIELD_SIZE (WAVEOUTCAPSW
, wPid
, 2)
2619 TEST_FIELD_ALIGN (WAVEOUTCAPSW
, wPid
, 1)
2620 TEST_FIELD_OFFSET(WAVEOUTCAPSW
, wPid
, 2)
2621 TEST_FIELD_SIZE (WAVEOUTCAPSW
, vDriverVersion
, 4)
2622 TEST_FIELD_ALIGN (WAVEOUTCAPSW
, vDriverVersion
, 1)
2623 TEST_FIELD_OFFSET(WAVEOUTCAPSW
, vDriverVersion
, 4)
2626 static void test_pack_WAVEOUTCAPS2A(void)
2628 /* WAVEOUTCAPS2A (pack 1) */
2629 TEST_FIELD_SIZE (WAVEOUTCAPS2A
, wMid
, 2)
2630 TEST_FIELD_ALIGN (WAVEOUTCAPS2A
, wMid
, 1)
2631 TEST_FIELD_OFFSET(WAVEOUTCAPS2A
, wMid
, 0)
2632 TEST_FIELD_SIZE (WAVEOUTCAPS2A
, wPid
, 2)
2633 TEST_FIELD_ALIGN (WAVEOUTCAPS2A
, wPid
, 1)
2634 TEST_FIELD_OFFSET(WAVEOUTCAPS2A
, wPid
, 2)
2635 TEST_FIELD_SIZE (WAVEOUTCAPS2A
, vDriverVersion
, 4)
2636 TEST_FIELD_ALIGN (WAVEOUTCAPS2A
, vDriverVersion
, 1)
2637 TEST_FIELD_OFFSET(WAVEOUTCAPS2A
, vDriverVersion
, 4)
2640 static void test_pack_WAVEOUTCAPS2W(void)
2642 /* WAVEOUTCAPS2W (pack 1) */
2643 TEST_FIELD_SIZE (WAVEOUTCAPS2W
, wMid
, 2)
2644 TEST_FIELD_ALIGN (WAVEOUTCAPS2W
, wMid
, 1)
2645 TEST_FIELD_OFFSET(WAVEOUTCAPS2W
, wMid
, 0)
2646 TEST_FIELD_SIZE (WAVEOUTCAPS2W
, wPid
, 2)
2647 TEST_FIELD_ALIGN (WAVEOUTCAPS2W
, wPid
, 1)
2648 TEST_FIELD_OFFSET(WAVEOUTCAPS2W
, wPid
, 2)
2649 TEST_FIELD_SIZE (WAVEOUTCAPS2W
, vDriverVersion
, 4)
2650 TEST_FIELD_ALIGN (WAVEOUTCAPS2W
, vDriverVersion
, 1)
2651 TEST_FIELD_OFFSET(WAVEOUTCAPS2W
, vDriverVersion
, 4)
2654 static void test_pack_WAVEINCAPSA(void)
2656 /* WAVEINCAPSA (pack 1) */
2657 TEST_FIELD_SIZE (WAVEINCAPSA
, wMid
, 2)
2658 TEST_FIELD_ALIGN (WAVEINCAPSA
, wMid
, 1)
2659 TEST_FIELD_OFFSET(WAVEINCAPSA
, wMid
, 0)
2660 TEST_FIELD_SIZE (WAVEINCAPSA
, wPid
, 2)
2661 TEST_FIELD_ALIGN (WAVEINCAPSA
, wPid
, 1)
2662 TEST_FIELD_OFFSET(WAVEINCAPSA
, wPid
, 2)
2663 TEST_FIELD_SIZE (WAVEINCAPSA
, vDriverVersion
, 4)
2664 TEST_FIELD_ALIGN (WAVEINCAPSA
, vDriverVersion
, 1)
2665 TEST_FIELD_OFFSET(WAVEINCAPSA
, vDriverVersion
, 4)
2668 static void test_pack_WAVEINCAPSW(void)
2670 /* WAVEINCAPSW (pack 1) */
2671 TEST_FIELD_SIZE (WAVEINCAPSW
, wMid
, 2)
2672 TEST_FIELD_ALIGN (WAVEINCAPSW
, wMid
, 1)
2673 TEST_FIELD_OFFSET(WAVEINCAPSW
, wMid
, 0)
2674 TEST_FIELD_SIZE (WAVEINCAPSW
, wPid
, 2)
2675 TEST_FIELD_ALIGN (WAVEINCAPSW
, wPid
, 1)
2676 TEST_FIELD_OFFSET(WAVEINCAPSW
, wPid
, 2)
2677 TEST_FIELD_SIZE (WAVEINCAPSW
, vDriverVersion
, 4)
2678 TEST_FIELD_ALIGN (WAVEINCAPSW
, vDriverVersion
, 1)
2679 TEST_FIELD_OFFSET(WAVEINCAPSW
, vDriverVersion
, 4)
2682 static void test_pack_WAVEINCAPS2A(void)
2684 /* WAVEINCAPS2A (pack 1) */
2685 TEST_FIELD_SIZE (WAVEINCAPS2A
, wMid
, 2)
2686 TEST_FIELD_ALIGN (WAVEINCAPS2A
, wMid
, 1)
2687 TEST_FIELD_OFFSET(WAVEINCAPS2A
, wMid
, 0)
2688 TEST_FIELD_SIZE (WAVEINCAPS2A
, wPid
, 2)
2689 TEST_FIELD_ALIGN (WAVEINCAPS2A
, wPid
, 1)
2690 TEST_FIELD_OFFSET(WAVEINCAPS2A
, wPid
, 2)
2691 TEST_FIELD_SIZE (WAVEINCAPS2A
, vDriverVersion
, 4)
2692 TEST_FIELD_ALIGN (WAVEINCAPS2A
, vDriverVersion
, 1)
2693 TEST_FIELD_OFFSET(WAVEINCAPS2A
, vDriverVersion
, 4)
2696 static void test_pack_WAVEINCAPS2W(void)
2698 /* WAVEINCAPS2W (pack 1) */
2699 TEST_FIELD_SIZE (WAVEINCAPS2W
, wMid
, 2)
2700 TEST_FIELD_ALIGN (WAVEINCAPS2W
, wMid
, 1)
2701 TEST_FIELD_OFFSET(WAVEINCAPS2W
, wMid
, 0)
2702 TEST_FIELD_SIZE (WAVEINCAPS2W
, wPid
, 2)
2703 TEST_FIELD_ALIGN (WAVEINCAPS2W
, wPid
, 1)
2704 TEST_FIELD_OFFSET(WAVEINCAPS2W
, wPid
, 2)
2705 TEST_FIELD_SIZE (WAVEINCAPS2W
, vDriverVersion
, 4)
2706 TEST_FIELD_ALIGN (WAVEINCAPS2W
, vDriverVersion
, 1)
2707 TEST_FIELD_OFFSET(WAVEINCAPS2W
, vDriverVersion
, 4)
2710 static void test_pack_WAVEFORMAT(void)
2712 /* WAVEFORMAT (pack 1) */
2713 TEST_TYPE_SIZE (WAVEFORMAT
, 14)
2714 TEST_TYPE_ALIGN (WAVEFORMAT
, 1)
2715 TEST_FIELD_SIZE (WAVEFORMAT
, wFormatTag
, 2)
2716 TEST_FIELD_ALIGN (WAVEFORMAT
, wFormatTag
, 1)
2717 TEST_FIELD_OFFSET(WAVEFORMAT
, wFormatTag
, 0)
2718 TEST_FIELD_SIZE (WAVEFORMAT
, nChannels
, 2)
2719 TEST_FIELD_ALIGN (WAVEFORMAT
, nChannels
, 1)
2720 TEST_FIELD_OFFSET(WAVEFORMAT
, nChannels
, 2)
2721 TEST_FIELD_SIZE (WAVEFORMAT
, nSamplesPerSec
, 4)
2722 TEST_FIELD_ALIGN (WAVEFORMAT
, nSamplesPerSec
, 1)
2723 TEST_FIELD_OFFSET(WAVEFORMAT
, nSamplesPerSec
, 4)
2724 TEST_FIELD_SIZE (WAVEFORMAT
, nAvgBytesPerSec
, 4)
2725 TEST_FIELD_ALIGN (WAVEFORMAT
, nAvgBytesPerSec
, 1)
2726 TEST_FIELD_OFFSET(WAVEFORMAT
, nAvgBytesPerSec
, 8)
2727 TEST_FIELD_SIZE (WAVEFORMAT
, nBlockAlign
, 2)
2728 TEST_FIELD_ALIGN (WAVEFORMAT
, nBlockAlign
, 1)
2729 TEST_FIELD_OFFSET(WAVEFORMAT
, nBlockAlign
, 12)
2732 static void test_pack_PCMWAVEFORMAT(void)
2734 /* PCMWAVEFORMAT (pack 1) */
2735 TEST_TYPE_SIZE (PCMWAVEFORMAT
, 16)
2736 TEST_TYPE_ALIGN (PCMWAVEFORMAT
, 1)
2737 TEST_FIELD_SIZE (PCMWAVEFORMAT
, wf
, 14)
2738 TEST_FIELD_ALIGN (PCMWAVEFORMAT
, wf
, 1)
2739 TEST_FIELD_OFFSET(PCMWAVEFORMAT
, wf
, 0)
2740 TEST_FIELD_SIZE (PCMWAVEFORMAT
, wBitsPerSample
, 2)
2741 TEST_FIELD_ALIGN (PCMWAVEFORMAT
, wBitsPerSample
, 1)
2742 TEST_FIELD_OFFSET(PCMWAVEFORMAT
, wBitsPerSample
, 14)
2745 static void test_pack_WAVEFORMATEX(void)
2747 /* WAVEFORMATEX (pack 1) */
2748 TEST_TYPE_SIZE (WAVEFORMATEX
, 18)
2749 TEST_TYPE_ALIGN (WAVEFORMATEX
, 1)
2750 TEST_FIELD_SIZE (WAVEFORMATEX
, wFormatTag
, 2)
2751 TEST_FIELD_ALIGN (WAVEFORMATEX
, wFormatTag
, 1)
2752 TEST_FIELD_OFFSET(WAVEFORMATEX
, wFormatTag
, 0)
2753 TEST_FIELD_SIZE (WAVEFORMATEX
, nChannels
, 2)
2754 TEST_FIELD_ALIGN (WAVEFORMATEX
, nChannels
, 1)
2755 TEST_FIELD_OFFSET(WAVEFORMATEX
, nChannels
, 2)
2756 TEST_FIELD_SIZE (WAVEFORMATEX
, nSamplesPerSec
, 4)
2757 TEST_FIELD_ALIGN (WAVEFORMATEX
, nSamplesPerSec
, 1)
2758 TEST_FIELD_OFFSET(WAVEFORMATEX
, nSamplesPerSec
, 4)
2759 TEST_FIELD_SIZE (WAVEFORMATEX
, nAvgBytesPerSec
, 4)
2760 TEST_FIELD_ALIGN (WAVEFORMATEX
, nAvgBytesPerSec
, 1)
2761 TEST_FIELD_OFFSET(WAVEFORMATEX
, nAvgBytesPerSec
, 8)
2762 TEST_FIELD_SIZE (WAVEFORMATEX
, nBlockAlign
, 2)
2763 TEST_FIELD_ALIGN (WAVEFORMATEX
, nBlockAlign
, 1)
2764 TEST_FIELD_OFFSET(WAVEFORMATEX
, nBlockAlign
, 12)
2765 TEST_FIELD_SIZE (WAVEFORMATEX
, wBitsPerSample
, 2)
2766 TEST_FIELD_ALIGN (WAVEFORMATEX
, wBitsPerSample
, 1)
2767 TEST_FIELD_OFFSET(WAVEFORMATEX
, wBitsPerSample
, 14)
2768 TEST_FIELD_SIZE (WAVEFORMATEX
, cbSize
, 2)
2769 TEST_FIELD_ALIGN (WAVEFORMATEX
, cbSize
, 1)
2770 TEST_FIELD_OFFSET(WAVEFORMATEX
, cbSize
, 16)
2773 static void test_pack_MIDIOUTCAPSA(void)
2775 /* MIDIOUTCAPSA (pack 1) */
2776 TEST_FIELD_SIZE (MIDIOUTCAPSA
, wMid
, 2)
2777 TEST_FIELD_ALIGN (MIDIOUTCAPSA
, wMid
, 1)
2778 TEST_FIELD_OFFSET(MIDIOUTCAPSA
, wMid
, 0)
2779 TEST_FIELD_SIZE (MIDIOUTCAPSA
, wPid
, 2)
2780 TEST_FIELD_ALIGN (MIDIOUTCAPSA
, wPid
, 1)
2781 TEST_FIELD_OFFSET(MIDIOUTCAPSA
, wPid
, 2)
2782 TEST_FIELD_SIZE (MIDIOUTCAPSA
, vDriverVersion
, 4)
2783 TEST_FIELD_ALIGN (MIDIOUTCAPSA
, vDriverVersion
, 1)
2784 TEST_FIELD_OFFSET(MIDIOUTCAPSA
, vDriverVersion
, 4)
2787 static void test_pack_MIDIOUTCAPSW(void)
2789 /* MIDIOUTCAPSW (pack 1) */
2790 TEST_FIELD_SIZE (MIDIOUTCAPSW
, wMid
, 2)
2791 TEST_FIELD_ALIGN (MIDIOUTCAPSW
, wMid
, 1)
2792 TEST_FIELD_OFFSET(MIDIOUTCAPSW
, wMid
, 0)
2793 TEST_FIELD_SIZE (MIDIOUTCAPSW
, wPid
, 2)
2794 TEST_FIELD_ALIGN (MIDIOUTCAPSW
, wPid
, 1)
2795 TEST_FIELD_OFFSET(MIDIOUTCAPSW
, wPid
, 2)
2796 TEST_FIELD_SIZE (MIDIOUTCAPSW
, vDriverVersion
, 4)
2797 TEST_FIELD_ALIGN (MIDIOUTCAPSW
, vDriverVersion
, 1)
2798 TEST_FIELD_OFFSET(MIDIOUTCAPSW
, vDriverVersion
, 4)
2801 static void test_pack_MIDIOUTCAPS2A(void)
2803 /* MIDIOUTCAPS2A (pack 1) */
2804 TEST_FIELD_SIZE (MIDIOUTCAPS2A
, wMid
, 2)
2805 TEST_FIELD_ALIGN (MIDIOUTCAPS2A
, wMid
, 1)
2806 TEST_FIELD_OFFSET(MIDIOUTCAPS2A
, wMid
, 0)
2807 TEST_FIELD_SIZE (MIDIOUTCAPS2A
, wPid
, 2)
2808 TEST_FIELD_ALIGN (MIDIOUTCAPS2A
, wPid
, 1)
2809 TEST_FIELD_OFFSET(MIDIOUTCAPS2A
, wPid
, 2)
2810 TEST_FIELD_SIZE (MIDIOUTCAPS2A
, vDriverVersion
, 4)
2811 TEST_FIELD_ALIGN (MIDIOUTCAPS2A
, vDriverVersion
, 1)
2812 TEST_FIELD_OFFSET(MIDIOUTCAPS2A
, vDriverVersion
, 4)
2815 static void test_pack_MIDIOUTCAPS2W(void)
2817 /* MIDIOUTCAPS2W (pack 1) */
2818 TEST_FIELD_SIZE (MIDIOUTCAPS2W
, wMid
, 2)
2819 TEST_FIELD_ALIGN (MIDIOUTCAPS2W
, wMid
, 1)
2820 TEST_FIELD_OFFSET(MIDIOUTCAPS2W
, wMid
, 0)
2821 TEST_FIELD_SIZE (MIDIOUTCAPS2W
, wPid
, 2)
2822 TEST_FIELD_ALIGN (MIDIOUTCAPS2W
, wPid
, 1)
2823 TEST_FIELD_OFFSET(MIDIOUTCAPS2W
, wPid
, 2)
2824 TEST_FIELD_SIZE (MIDIOUTCAPS2W
, vDriverVersion
, 4)
2825 TEST_FIELD_ALIGN (MIDIOUTCAPS2W
, vDriverVersion
, 1)
2826 TEST_FIELD_OFFSET(MIDIOUTCAPS2W
, vDriverVersion
, 4)
2829 static void test_pack_MIDIINCAPSA(void)
2831 /* MIDIINCAPSA (pack 1) */
2832 TEST_FIELD_SIZE (MIDIINCAPSA
, wMid
, 2)
2833 TEST_FIELD_ALIGN (MIDIINCAPSA
, wMid
, 1)
2834 TEST_FIELD_OFFSET(MIDIINCAPSA
, wMid
, 0)
2835 TEST_FIELD_SIZE (MIDIINCAPSA
, wPid
, 2)
2836 TEST_FIELD_ALIGN (MIDIINCAPSA
, wPid
, 1)
2837 TEST_FIELD_OFFSET(MIDIINCAPSA
, wPid
, 2)
2838 TEST_FIELD_SIZE (MIDIINCAPSA
, vDriverVersion
, 4)
2839 TEST_FIELD_ALIGN (MIDIINCAPSA
, vDriverVersion
, 1)
2840 TEST_FIELD_OFFSET(MIDIINCAPSA
, vDriverVersion
, 4)
2843 static void test_pack_MIDIINCAPSW(void)
2845 /* MIDIINCAPSW (pack 1) */
2846 TEST_FIELD_SIZE (MIDIINCAPSW
, wMid
, 2)
2847 TEST_FIELD_ALIGN (MIDIINCAPSW
, wMid
, 1)
2848 TEST_FIELD_OFFSET(MIDIINCAPSW
, wMid
, 0)
2849 TEST_FIELD_SIZE (MIDIINCAPSW
, wPid
, 2)
2850 TEST_FIELD_ALIGN (MIDIINCAPSW
, wPid
, 1)
2851 TEST_FIELD_OFFSET(MIDIINCAPSW
, wPid
, 2)
2852 TEST_FIELD_SIZE (MIDIINCAPSW
, vDriverVersion
, 4)
2853 TEST_FIELD_ALIGN (MIDIINCAPSW
, vDriverVersion
, 1)
2854 TEST_FIELD_OFFSET(MIDIINCAPSW
, vDriverVersion
, 4)
2857 static void test_pack_MIDIINCAPS2A(void)
2859 /* MIDIINCAPS2A (pack 1) */
2860 TEST_FIELD_SIZE (MIDIINCAPS2A
, wMid
, 2)
2861 TEST_FIELD_ALIGN (MIDIINCAPS2A
, wMid
, 1)
2862 TEST_FIELD_OFFSET(MIDIINCAPS2A
, wMid
, 0)
2863 TEST_FIELD_SIZE (MIDIINCAPS2A
, wPid
, 2)
2864 TEST_FIELD_ALIGN (MIDIINCAPS2A
, wPid
, 1)
2865 TEST_FIELD_OFFSET(MIDIINCAPS2A
, wPid
, 2)
2866 TEST_FIELD_SIZE (MIDIINCAPS2A
, vDriverVersion
, 4)
2867 TEST_FIELD_ALIGN (MIDIINCAPS2A
, vDriverVersion
, 1)
2868 TEST_FIELD_OFFSET(MIDIINCAPS2A
, vDriverVersion
, 4)
2871 static void test_pack_MIDIINCAPS2W(void)
2873 /* MIDIINCAPS2W (pack 1) */
2874 TEST_FIELD_SIZE (MIDIINCAPS2W
, wMid
, 2)
2875 TEST_FIELD_ALIGN (MIDIINCAPS2W
, wMid
, 1)
2876 TEST_FIELD_OFFSET(MIDIINCAPS2W
, wMid
, 0)
2877 TEST_FIELD_SIZE (MIDIINCAPS2W
, wPid
, 2)
2878 TEST_FIELD_ALIGN (MIDIINCAPS2W
, wPid
, 1)
2879 TEST_FIELD_OFFSET(MIDIINCAPS2W
, wPid
, 2)
2880 TEST_FIELD_SIZE (MIDIINCAPS2W
, vDriverVersion
, 4)
2881 TEST_FIELD_ALIGN (MIDIINCAPS2W
, vDriverVersion
, 1)
2882 TEST_FIELD_OFFSET(MIDIINCAPS2W
, vDriverVersion
, 4)
2885 static void test_pack_MIDIHDR(void)
2887 /* MIDIHDR (pack 1) */
2888 TEST_TYPE_SIZE (MIDIHDR
, 64)
2889 TEST_TYPE_ALIGN (MIDIHDR
, 1)
2890 TEST_FIELD_SIZE (MIDIHDR
, lpData
, 4)
2891 TEST_FIELD_ALIGN (MIDIHDR
, lpData
, 1)
2892 TEST_FIELD_OFFSET(MIDIHDR
, lpData
, 0)
2893 TEST_FIELD_SIZE (MIDIHDR
, dwBufferLength
, 4)
2894 TEST_FIELD_ALIGN (MIDIHDR
, dwBufferLength
, 1)
2895 TEST_FIELD_OFFSET(MIDIHDR
, dwBufferLength
, 4)
2896 TEST_FIELD_SIZE (MIDIHDR
, dwBytesRecorded
, 4)
2897 TEST_FIELD_ALIGN (MIDIHDR
, dwBytesRecorded
, 1)
2898 TEST_FIELD_OFFSET(MIDIHDR
, dwBytesRecorded
, 8)
2899 TEST_FIELD_SIZE (MIDIHDR
, dwUser
, 4)
2900 TEST_FIELD_ALIGN (MIDIHDR
, dwUser
, 1)
2901 TEST_FIELD_OFFSET(MIDIHDR
, dwUser
, 12)
2902 TEST_FIELD_SIZE (MIDIHDR
, dwFlags
, 4)
2903 TEST_FIELD_ALIGN (MIDIHDR
, dwFlags
, 1)
2904 TEST_FIELD_OFFSET(MIDIHDR
, dwFlags
, 16)
2905 TEST_FIELD_SIZE (MIDIHDR
, lpNext
, 4)
2906 TEST_FIELD_ALIGN (MIDIHDR
, lpNext
, 1)
2907 TEST_FIELD_OFFSET(MIDIHDR
, lpNext
, 20)
2908 TEST_FIELD_SIZE (MIDIHDR
, reserved
, 4)
2909 TEST_FIELD_ALIGN (MIDIHDR
, reserved
, 1)
2910 TEST_FIELD_OFFSET(MIDIHDR
, reserved
, 24)
2911 TEST_FIELD_SIZE (MIDIHDR
, dwOffset
, 4)
2912 TEST_FIELD_ALIGN (MIDIHDR
, dwOffset
, 1)
2913 TEST_FIELD_OFFSET(MIDIHDR
, dwOffset
, 28)
2914 TEST_FIELD_SIZE (MIDIHDR
, dwReserved
, 32)
2915 TEST_FIELD_ALIGN (MIDIHDR
, dwReserved
, 1)
2916 TEST_FIELD_OFFSET(MIDIHDR
, dwReserved
, 32)
2919 static void test_pack_MIDIEVENT(void)
2921 /* MIDIEVENT (pack 1) */
2922 TEST_TYPE_SIZE (MIDIEVENT
, 16)
2923 TEST_TYPE_ALIGN (MIDIEVENT
, 1)
2924 TEST_FIELD_SIZE (MIDIEVENT
, dwDeltaTime
, 4)
2925 TEST_FIELD_ALIGN (MIDIEVENT
, dwDeltaTime
, 1)
2926 TEST_FIELD_OFFSET(MIDIEVENT
, dwDeltaTime
, 0)
2927 TEST_FIELD_SIZE (MIDIEVENT
, dwStreamID
, 4)
2928 TEST_FIELD_ALIGN (MIDIEVENT
, dwStreamID
, 1)
2929 TEST_FIELD_OFFSET(MIDIEVENT
, dwStreamID
, 4)
2930 TEST_FIELD_SIZE (MIDIEVENT
, dwEvent
, 4)
2931 TEST_FIELD_ALIGN (MIDIEVENT
, dwEvent
, 1)
2932 TEST_FIELD_OFFSET(MIDIEVENT
, dwEvent
, 8)
2933 TEST_FIELD_SIZE (MIDIEVENT
, dwParms
, 4)
2934 TEST_FIELD_ALIGN (MIDIEVENT
, dwParms
, 1)
2935 TEST_FIELD_OFFSET(MIDIEVENT
, dwParms
, 12)
2938 static void test_pack_AUXCAPSA(void)
2940 /* AUXCAPSA (pack 1) */
2941 TEST_FIELD_SIZE (AUXCAPSA
, wMid
, 2)
2942 TEST_FIELD_ALIGN (AUXCAPSA
, wMid
, 1)
2943 TEST_FIELD_OFFSET(AUXCAPSA
, wMid
, 0)
2944 TEST_FIELD_SIZE (AUXCAPSA
, wPid
, 2)
2945 TEST_FIELD_ALIGN (AUXCAPSA
, wPid
, 1)
2946 TEST_FIELD_OFFSET(AUXCAPSA
, wPid
, 2)
2947 TEST_FIELD_SIZE (AUXCAPSA
, vDriverVersion
, 4)
2948 TEST_FIELD_ALIGN (AUXCAPSA
, vDriverVersion
, 1)
2949 TEST_FIELD_OFFSET(AUXCAPSA
, vDriverVersion
, 4)
2952 static void test_pack_AUXCAPSW(void)
2954 /* AUXCAPSW (pack 1) */
2955 TEST_FIELD_SIZE (AUXCAPSW
, wMid
, 2)
2956 TEST_FIELD_ALIGN (AUXCAPSW
, wMid
, 1)
2957 TEST_FIELD_OFFSET(AUXCAPSW
, wMid
, 0)
2958 TEST_FIELD_SIZE (AUXCAPSW
, wPid
, 2)
2959 TEST_FIELD_ALIGN (AUXCAPSW
, wPid
, 1)
2960 TEST_FIELD_OFFSET(AUXCAPSW
, wPid
, 2)
2961 TEST_FIELD_SIZE (AUXCAPSW
, vDriverVersion
, 4)
2962 TEST_FIELD_ALIGN (AUXCAPSW
, vDriverVersion
, 1)
2963 TEST_FIELD_OFFSET(AUXCAPSW
, vDriverVersion
, 4)
2966 static void test_pack_AUXCAPS2A(void)
2968 /* AUXCAPS2A (pack 1) */
2969 TEST_FIELD_SIZE (AUXCAPS2A
, wMid
, 2)
2970 TEST_FIELD_ALIGN (AUXCAPS2A
, wMid
, 1)
2971 TEST_FIELD_OFFSET(AUXCAPS2A
, wMid
, 0)
2972 TEST_FIELD_SIZE (AUXCAPS2A
, wPid
, 2)
2973 TEST_FIELD_ALIGN (AUXCAPS2A
, wPid
, 1)
2974 TEST_FIELD_OFFSET(AUXCAPS2A
, wPid
, 2)
2975 TEST_FIELD_SIZE (AUXCAPS2A
, vDriverVersion
, 4)
2976 TEST_FIELD_ALIGN (AUXCAPS2A
, vDriverVersion
, 1)
2977 TEST_FIELD_OFFSET(AUXCAPS2A
, vDriverVersion
, 4)
2980 static void test_pack_AUXCAPS2W(void)
2982 /* AUXCAPS2W (pack 1) */
2983 TEST_FIELD_SIZE (AUXCAPS2W
, wMid
, 2)
2984 TEST_FIELD_ALIGN (AUXCAPS2W
, wMid
, 1)
2985 TEST_FIELD_OFFSET(AUXCAPS2W
, wMid
, 0)
2986 TEST_FIELD_SIZE (AUXCAPS2W
, wPid
, 2)
2987 TEST_FIELD_ALIGN (AUXCAPS2W
, wPid
, 1)
2988 TEST_FIELD_OFFSET(AUXCAPS2W
, wPid
, 2)
2989 TEST_FIELD_SIZE (AUXCAPS2W
, vDriverVersion
, 4)
2990 TEST_FIELD_ALIGN (AUXCAPS2W
, vDriverVersion
, 1)
2991 TEST_FIELD_OFFSET(AUXCAPS2W
, vDriverVersion
, 4)
2994 static void test_pack_TIMECAPS(void)
2996 /* TIMECAPS (pack 1) */
2997 TEST_TYPE_SIZE (TIMECAPS
, 8)
2998 TEST_TYPE_ALIGN (TIMECAPS
, 1)
2999 TEST_FIELD_SIZE (TIMECAPS
, wPeriodMin
, 4)
3000 TEST_FIELD_ALIGN (TIMECAPS
, wPeriodMin
, 1)
3001 TEST_FIELD_OFFSET(TIMECAPS
, wPeriodMin
, 0)
3002 TEST_FIELD_SIZE (TIMECAPS
, wPeriodMax
, 4)
3003 TEST_FIELD_ALIGN (TIMECAPS
, wPeriodMax
, 1)
3004 TEST_FIELD_OFFSET(TIMECAPS
, wPeriodMax
, 4)
3007 static void test_pack_JOYCAPSA(void)
3009 /* JOYCAPSA (pack 1) */
3010 TEST_FIELD_SIZE (JOYCAPSA
, wMid
, 2)
3011 TEST_FIELD_ALIGN (JOYCAPSA
, wMid
, 1)
3012 TEST_FIELD_OFFSET(JOYCAPSA
, wMid
, 0)
3013 TEST_FIELD_SIZE (JOYCAPSA
, wPid
, 2)
3014 TEST_FIELD_ALIGN (JOYCAPSA
, wPid
, 1)
3015 TEST_FIELD_OFFSET(JOYCAPSA
, wPid
, 2)
3018 static void test_pack_JOYCAPSW(void)
3020 /* JOYCAPSW (pack 1) */
3021 TEST_FIELD_SIZE (JOYCAPSW
, wMid
, 2)
3022 TEST_FIELD_ALIGN (JOYCAPSW
, wMid
, 1)
3023 TEST_FIELD_OFFSET(JOYCAPSW
, wMid
, 0)
3024 TEST_FIELD_SIZE (JOYCAPSW
, wPid
, 2)
3025 TEST_FIELD_ALIGN (JOYCAPSW
, wPid
, 1)
3026 TEST_FIELD_OFFSET(JOYCAPSW
, wPid
, 2)
3029 static void test_pack_JOYCAPS2A(void)
3031 /* JOYCAPS2A (pack 1) */
3032 TEST_FIELD_SIZE (JOYCAPS2A
, wMid
, 2)
3033 TEST_FIELD_ALIGN (JOYCAPS2A
, wMid
, 1)
3034 TEST_FIELD_OFFSET(JOYCAPS2A
, wMid
, 0)
3035 TEST_FIELD_SIZE (JOYCAPS2A
, wPid
, 2)
3036 TEST_FIELD_ALIGN (JOYCAPS2A
, wPid
, 1)
3037 TEST_FIELD_OFFSET(JOYCAPS2A
, wPid
, 2)
3040 static void test_pack_JOYCAPS2W(void)
3042 /* JOYCAPS2W (pack 1) */
3043 TEST_FIELD_SIZE (JOYCAPS2W
, wMid
, 2)
3044 TEST_FIELD_ALIGN (JOYCAPS2W
, wMid
, 1)
3045 TEST_FIELD_OFFSET(JOYCAPS2W
, wMid
, 0)
3046 TEST_FIELD_SIZE (JOYCAPS2W
, wPid
, 2)
3047 TEST_FIELD_ALIGN (JOYCAPS2W
, wPid
, 1)
3048 TEST_FIELD_OFFSET(JOYCAPS2W
, wPid
, 2)
3051 static void test_pack_JOYINFO(void)
3053 /* JOYINFO (pack 1) */
3054 TEST_TYPE_SIZE (JOYINFO
, 16)
3055 TEST_TYPE_ALIGN (JOYINFO
, 1)
3056 TEST_FIELD_SIZE (JOYINFO
, wXpos
, 4)
3057 TEST_FIELD_ALIGN (JOYINFO
, wXpos
, 1)
3058 TEST_FIELD_OFFSET(JOYINFO
, wXpos
, 0)
3059 TEST_FIELD_SIZE (JOYINFO
, wYpos
, 4)
3060 TEST_FIELD_ALIGN (JOYINFO
, wYpos
, 1)
3061 TEST_FIELD_OFFSET(JOYINFO
, wYpos
, 4)
3062 TEST_FIELD_SIZE (JOYINFO
, wZpos
, 4)
3063 TEST_FIELD_ALIGN (JOYINFO
, wZpos
, 1)
3064 TEST_FIELD_OFFSET(JOYINFO
, wZpos
, 8)
3065 TEST_FIELD_SIZE (JOYINFO
, wButtons
, 4)
3066 TEST_FIELD_ALIGN (JOYINFO
, wButtons
, 1)
3067 TEST_FIELD_OFFSET(JOYINFO
, wButtons
, 12)
3070 static void test_pack_JOYINFOEX(void)
3072 /* JOYINFOEX (pack 1) */
3073 TEST_TYPE_SIZE (JOYINFOEX
, 52)
3074 TEST_TYPE_ALIGN (JOYINFOEX
, 1)
3075 TEST_FIELD_SIZE (JOYINFOEX
, dwSize
, 4)
3076 TEST_FIELD_ALIGN (JOYINFOEX
, dwSize
, 1)
3077 TEST_FIELD_OFFSET(JOYINFOEX
, dwSize
, 0)
3078 TEST_FIELD_SIZE (JOYINFOEX
, dwFlags
, 4)
3079 TEST_FIELD_ALIGN (JOYINFOEX
, dwFlags
, 1)
3080 TEST_FIELD_OFFSET(JOYINFOEX
, dwFlags
, 4)
3081 TEST_FIELD_SIZE (JOYINFOEX
, dwXpos
, 4)
3082 TEST_FIELD_ALIGN (JOYINFOEX
, dwXpos
, 1)
3083 TEST_FIELD_OFFSET(JOYINFOEX
, dwXpos
, 8)
3084 TEST_FIELD_SIZE (JOYINFOEX
, dwYpos
, 4)
3085 TEST_FIELD_ALIGN (JOYINFOEX
, dwYpos
, 1)
3086 TEST_FIELD_OFFSET(JOYINFOEX
, dwYpos
, 12)
3087 TEST_FIELD_SIZE (JOYINFOEX
, dwZpos
, 4)
3088 TEST_FIELD_ALIGN (JOYINFOEX
, dwZpos
, 1)
3089 TEST_FIELD_OFFSET(JOYINFOEX
, dwZpos
, 16)
3090 TEST_FIELD_SIZE (JOYINFOEX
, dwRpos
, 4)
3091 TEST_FIELD_ALIGN (JOYINFOEX
, dwRpos
, 1)
3092 TEST_FIELD_OFFSET(JOYINFOEX
, dwRpos
, 20)
3093 TEST_FIELD_SIZE (JOYINFOEX
, dwUpos
, 4)
3094 TEST_FIELD_ALIGN (JOYINFOEX
, dwUpos
, 1)
3095 TEST_FIELD_OFFSET(JOYINFOEX
, dwUpos
, 24)
3096 TEST_FIELD_SIZE (JOYINFOEX
, dwVpos
, 4)
3097 TEST_FIELD_ALIGN (JOYINFOEX
, dwVpos
, 1)
3098 TEST_FIELD_OFFSET(JOYINFOEX
, dwVpos
, 28)
3099 TEST_FIELD_SIZE (JOYINFOEX
, dwButtons
, 4)
3100 TEST_FIELD_ALIGN (JOYINFOEX
, dwButtons
, 1)
3101 TEST_FIELD_OFFSET(JOYINFOEX
, dwButtons
, 32)
3102 TEST_FIELD_SIZE (JOYINFOEX
, dwButtonNumber
, 4)
3103 TEST_FIELD_ALIGN (JOYINFOEX
, dwButtonNumber
, 1)
3104 TEST_FIELD_OFFSET(JOYINFOEX
, dwButtonNumber
, 36)
3105 TEST_FIELD_SIZE (JOYINFOEX
, dwPOV
, 4)
3106 TEST_FIELD_ALIGN (JOYINFOEX
, dwPOV
, 1)
3107 TEST_FIELD_OFFSET(JOYINFOEX
, dwPOV
, 40)
3108 TEST_FIELD_SIZE (JOYINFOEX
, dwReserved1
, 4)
3109 TEST_FIELD_ALIGN (JOYINFOEX
, dwReserved1
, 1)
3110 TEST_FIELD_OFFSET(JOYINFOEX
, dwReserved1
, 44)
3111 TEST_FIELD_SIZE (JOYINFOEX
, dwReserved2
, 4)
3112 TEST_FIELD_ALIGN (JOYINFOEX
, dwReserved2
, 1)
3113 TEST_FIELD_OFFSET(JOYINFOEX
, dwReserved2
, 48)
3116 static void test_pack_MIXERCAPSA(void)
3118 /* MIXERCAPSA (pack 1) */
3119 TEST_FIELD_SIZE (MIXERCAPSA
, wMid
, 2)
3120 TEST_FIELD_ALIGN (MIXERCAPSA
, wMid
, 1)
3121 TEST_FIELD_OFFSET(MIXERCAPSA
, wMid
, 0)
3122 TEST_FIELD_SIZE (MIXERCAPSA
, wPid
, 2)
3123 TEST_FIELD_ALIGN (MIXERCAPSA
, wPid
, 1)
3124 TEST_FIELD_OFFSET(MIXERCAPSA
, wPid
, 2)
3125 TEST_FIELD_SIZE (MIXERCAPSA
, vDriverVersion
, 4)
3126 TEST_FIELD_ALIGN (MIXERCAPSA
, vDriverVersion
, 1)
3127 TEST_FIELD_OFFSET(MIXERCAPSA
, vDriverVersion
, 4)
3130 static void test_pack_MIXERCAPSW(void)
3132 /* MIXERCAPSW (pack 1) */
3133 TEST_FIELD_SIZE (MIXERCAPSW
, wMid
, 2)
3134 TEST_FIELD_ALIGN (MIXERCAPSW
, wMid
, 1)
3135 TEST_FIELD_OFFSET(MIXERCAPSW
, wMid
, 0)
3136 TEST_FIELD_SIZE (MIXERCAPSW
, wPid
, 2)
3137 TEST_FIELD_ALIGN (MIXERCAPSW
, wPid
, 1)
3138 TEST_FIELD_OFFSET(MIXERCAPSW
, wPid
, 2)
3139 TEST_FIELD_SIZE (MIXERCAPSW
, vDriverVersion
, 4)
3140 TEST_FIELD_ALIGN (MIXERCAPSW
, vDriverVersion
, 1)
3141 TEST_FIELD_OFFSET(MIXERCAPSW
, vDriverVersion
, 4)
3144 static void test_pack_MIXERCAPS2A(void)
3146 /* MIXERCAPS2A (pack 1) */
3147 TEST_FIELD_SIZE (MIXERCAPS2A
, wMid
, 2)
3148 TEST_FIELD_ALIGN (MIXERCAPS2A
, wMid
, 1)
3149 TEST_FIELD_OFFSET(MIXERCAPS2A
, wMid
, 0)
3150 TEST_FIELD_SIZE (MIXERCAPS2A
, wPid
, 2)
3151 TEST_FIELD_ALIGN (MIXERCAPS2A
, wPid
, 1)
3152 TEST_FIELD_OFFSET(MIXERCAPS2A
, wPid
, 2)
3153 TEST_FIELD_SIZE (MIXERCAPS2A
, vDriverVersion
, 4)
3154 TEST_FIELD_ALIGN (MIXERCAPS2A
, vDriverVersion
, 1)
3155 TEST_FIELD_OFFSET(MIXERCAPS2A
, vDriverVersion
, 4)
3158 static void test_pack_MIXERCAPS2W(void)
3160 /* MIXERCAPS2W (pack 1) */
3161 TEST_FIELD_SIZE (MIXERCAPS2W
, wMid
, 2)
3162 TEST_FIELD_ALIGN (MIXERCAPS2W
, wMid
, 1)
3163 TEST_FIELD_OFFSET(MIXERCAPS2W
, wMid
, 0)
3164 TEST_FIELD_SIZE (MIXERCAPS2W
, wPid
, 2)
3165 TEST_FIELD_ALIGN (MIXERCAPS2W
, wPid
, 1)
3166 TEST_FIELD_OFFSET(MIXERCAPS2W
, wPid
, 2)
3167 TEST_FIELD_SIZE (MIXERCAPS2W
, vDriverVersion
, 4)
3168 TEST_FIELD_ALIGN (MIXERCAPS2W
, vDriverVersion
, 1)
3169 TEST_FIELD_OFFSET(MIXERCAPS2W
, vDriverVersion
, 4)
3172 static void test_pack_MIXERLINEA(void)
3174 /* MIXERLINEA (pack 1) */
3175 TEST_FIELD_SIZE (MIXERLINEA
, cbStruct
, 4)
3176 TEST_FIELD_ALIGN (MIXERLINEA
, cbStruct
, 1)
3177 TEST_FIELD_OFFSET(MIXERLINEA
, cbStruct
, 0)
3178 TEST_FIELD_SIZE (MIXERLINEA
, dwDestination
, 4)
3179 TEST_FIELD_ALIGN (MIXERLINEA
, dwDestination
, 1)
3180 TEST_FIELD_OFFSET(MIXERLINEA
, dwDestination
, 4)
3181 TEST_FIELD_SIZE (MIXERLINEA
, dwSource
, 4)
3182 TEST_FIELD_ALIGN (MIXERLINEA
, dwSource
, 1)
3183 TEST_FIELD_OFFSET(MIXERLINEA
, dwSource
, 8)
3184 TEST_FIELD_SIZE (MIXERLINEA
, dwLineID
, 4)
3185 TEST_FIELD_ALIGN (MIXERLINEA
, dwLineID
, 1)
3186 TEST_FIELD_OFFSET(MIXERLINEA
, dwLineID
, 12)
3187 TEST_FIELD_SIZE (MIXERLINEA
, fdwLine
, 4)
3188 TEST_FIELD_ALIGN (MIXERLINEA
, fdwLine
, 1)
3189 TEST_FIELD_OFFSET(MIXERLINEA
, fdwLine
, 16)
3190 TEST_FIELD_SIZE (MIXERLINEA
, dwUser
, 4)
3191 TEST_FIELD_ALIGN (MIXERLINEA
, dwUser
, 1)
3192 TEST_FIELD_OFFSET(MIXERLINEA
, dwUser
, 20)
3193 TEST_FIELD_SIZE (MIXERLINEA
, dwComponentType
, 4)
3194 TEST_FIELD_ALIGN (MIXERLINEA
, dwComponentType
, 1)
3195 TEST_FIELD_OFFSET(MIXERLINEA
, dwComponentType
, 24)
3196 TEST_FIELD_SIZE (MIXERLINEA
, cChannels
, 4)
3197 TEST_FIELD_ALIGN (MIXERLINEA
, cChannels
, 1)
3198 TEST_FIELD_OFFSET(MIXERLINEA
, cChannels
, 28)
3199 TEST_FIELD_SIZE (MIXERLINEA
, cConnections
, 4)
3200 TEST_FIELD_ALIGN (MIXERLINEA
, cConnections
, 1)
3201 TEST_FIELD_OFFSET(MIXERLINEA
, cConnections
, 32)
3202 TEST_FIELD_SIZE (MIXERLINEA
, cControls
, 4)
3203 TEST_FIELD_ALIGN (MIXERLINEA
, cControls
, 1)
3204 TEST_FIELD_OFFSET(MIXERLINEA
, cControls
, 36)
3207 static void test_pack_MIXERLINEW(void)
3209 /* MIXERLINEW (pack 1) */
3210 TEST_FIELD_SIZE (MIXERLINEW
, cbStruct
, 4)
3211 TEST_FIELD_ALIGN (MIXERLINEW
, cbStruct
, 1)
3212 TEST_FIELD_OFFSET(MIXERLINEW
, cbStruct
, 0)
3213 TEST_FIELD_SIZE (MIXERLINEW
, dwDestination
, 4)
3214 TEST_FIELD_ALIGN (MIXERLINEW
, dwDestination
, 1)
3215 TEST_FIELD_OFFSET(MIXERLINEW
, dwDestination
, 4)
3216 TEST_FIELD_SIZE (MIXERLINEW
, dwSource
, 4)
3217 TEST_FIELD_ALIGN (MIXERLINEW
, dwSource
, 1)
3218 TEST_FIELD_OFFSET(MIXERLINEW
, dwSource
, 8)
3219 TEST_FIELD_SIZE (MIXERLINEW
, dwLineID
, 4)
3220 TEST_FIELD_ALIGN (MIXERLINEW
, dwLineID
, 1)
3221 TEST_FIELD_OFFSET(MIXERLINEW
, dwLineID
, 12)
3222 TEST_FIELD_SIZE (MIXERLINEW
, fdwLine
, 4)
3223 TEST_FIELD_ALIGN (MIXERLINEW
, fdwLine
, 1)
3224 TEST_FIELD_OFFSET(MIXERLINEW
, fdwLine
, 16)
3225 TEST_FIELD_SIZE (MIXERLINEW
, dwUser
, 4)
3226 TEST_FIELD_ALIGN (MIXERLINEW
, dwUser
, 1)
3227 TEST_FIELD_OFFSET(MIXERLINEW
, dwUser
, 20)
3228 TEST_FIELD_SIZE (MIXERLINEW
, dwComponentType
, 4)
3229 TEST_FIELD_ALIGN (MIXERLINEW
, dwComponentType
, 1)
3230 TEST_FIELD_OFFSET(MIXERLINEW
, dwComponentType
, 24)
3231 TEST_FIELD_SIZE (MIXERLINEW
, cChannels
, 4)
3232 TEST_FIELD_ALIGN (MIXERLINEW
, cChannels
, 1)
3233 TEST_FIELD_OFFSET(MIXERLINEW
, cChannels
, 28)
3234 TEST_FIELD_SIZE (MIXERLINEW
, cConnections
, 4)
3235 TEST_FIELD_ALIGN (MIXERLINEW
, cConnections
, 1)
3236 TEST_FIELD_OFFSET(MIXERLINEW
, cConnections
, 32)
3237 TEST_FIELD_SIZE (MIXERLINEW
, cControls
, 4)
3238 TEST_FIELD_ALIGN (MIXERLINEW
, cControls
, 1)
3239 TEST_FIELD_OFFSET(MIXERLINEW
, cControls
, 36)
3242 static void test_pack_MIXERCONTROLA(void)
3244 /* MIXERCONTROLA (pack 1) */
3245 TEST_FIELD_SIZE (MIXERCONTROLA
, cbStruct
, 4)
3246 TEST_FIELD_ALIGN (MIXERCONTROLA
, cbStruct
, 1)
3247 TEST_FIELD_OFFSET(MIXERCONTROLA
, cbStruct
, 0)
3248 TEST_FIELD_SIZE (MIXERCONTROLA
, dwControlID
, 4)
3249 TEST_FIELD_ALIGN (MIXERCONTROLA
, dwControlID
, 1)
3250 TEST_FIELD_OFFSET(MIXERCONTROLA
, dwControlID
, 4)
3251 TEST_FIELD_SIZE (MIXERCONTROLA
, dwControlType
, 4)
3252 TEST_FIELD_ALIGN (MIXERCONTROLA
, dwControlType
, 1)
3253 TEST_FIELD_OFFSET(MIXERCONTROLA
, dwControlType
, 8)
3254 TEST_FIELD_SIZE (MIXERCONTROLA
, fdwControl
, 4)
3255 TEST_FIELD_ALIGN (MIXERCONTROLA
, fdwControl
, 1)
3256 TEST_FIELD_OFFSET(MIXERCONTROLA
, fdwControl
, 12)
3257 TEST_FIELD_SIZE (MIXERCONTROLA
, cMultipleItems
, 4)
3258 TEST_FIELD_ALIGN (MIXERCONTROLA
, cMultipleItems
, 1)
3259 TEST_FIELD_OFFSET(MIXERCONTROLA
, cMultipleItems
, 16)
3262 static void test_pack_MIXERCONTROLW(void)
3264 /* MIXERCONTROLW (pack 1) */
3265 TEST_FIELD_SIZE (MIXERCONTROLW
, cbStruct
, 4)
3266 TEST_FIELD_ALIGN (MIXERCONTROLW
, cbStruct
, 1)
3267 TEST_FIELD_OFFSET(MIXERCONTROLW
, cbStruct
, 0)
3268 TEST_FIELD_SIZE (MIXERCONTROLW
, dwControlID
, 4)
3269 TEST_FIELD_ALIGN (MIXERCONTROLW
, dwControlID
, 1)
3270 TEST_FIELD_OFFSET(MIXERCONTROLW
, dwControlID
, 4)
3271 TEST_FIELD_SIZE (MIXERCONTROLW
, dwControlType
, 4)
3272 TEST_FIELD_ALIGN (MIXERCONTROLW
, dwControlType
, 1)
3273 TEST_FIELD_OFFSET(MIXERCONTROLW
, dwControlType
, 8)
3274 TEST_FIELD_SIZE (MIXERCONTROLW
, fdwControl
, 4)
3275 TEST_FIELD_ALIGN (MIXERCONTROLW
, fdwControl
, 1)
3276 TEST_FIELD_OFFSET(MIXERCONTROLW
, fdwControl
, 12)
3277 TEST_FIELD_SIZE (MIXERCONTROLW
, cMultipleItems
, 4)
3278 TEST_FIELD_ALIGN (MIXERCONTROLW
, cMultipleItems
, 1)
3279 TEST_FIELD_OFFSET(MIXERCONTROLW
, cMultipleItems
, 16)
3282 static void test_pack_MIXERLINECONTROLSA(void)
3284 /* MIXERLINECONTROLSA (pack 1) */
3285 TEST_FIELD_SIZE (MIXERLINECONTROLSA
, cbStruct
, 4)
3286 TEST_FIELD_ALIGN (MIXERLINECONTROLSA
, cbStruct
, 1)
3287 TEST_FIELD_OFFSET(MIXERLINECONTROLSA
, cbStruct
, 0)
3288 TEST_FIELD_SIZE (MIXERLINECONTROLSA
, dwLineID
, 4)
3289 TEST_FIELD_ALIGN (MIXERLINECONTROLSA
, dwLineID
, 1)
3290 TEST_FIELD_OFFSET(MIXERLINECONTROLSA
, dwLineID
, 4)
3293 static void test_pack_MIXERLINECONTROLSW(void)
3295 /* MIXERLINECONTROLSW (pack 1) */
3296 TEST_FIELD_SIZE (MIXERLINECONTROLSW
, cbStruct
, 4)
3297 TEST_FIELD_ALIGN (MIXERLINECONTROLSW
, cbStruct
, 1)
3298 TEST_FIELD_OFFSET(MIXERLINECONTROLSW
, cbStruct
, 0)
3299 TEST_FIELD_SIZE (MIXERLINECONTROLSW
, dwLineID
, 4)
3300 TEST_FIELD_ALIGN (MIXERLINECONTROLSW
, dwLineID
, 1)
3301 TEST_FIELD_OFFSET(MIXERLINECONTROLSW
, dwLineID
, 4)
3304 static void test_pack_MIXERCONTROLDETAILS(void)
3306 /* MIXERCONTROLDETAILS (pack 1) */
3307 TEST_FIELD_SIZE (MIXERCONTROLDETAILS
, cbStruct
, 4)
3308 TEST_FIELD_ALIGN (MIXERCONTROLDETAILS
, cbStruct
, 1)
3309 TEST_FIELD_OFFSET(MIXERCONTROLDETAILS
, cbStruct
, 0)
3310 TEST_FIELD_SIZE (MIXERCONTROLDETAILS
, dwControlID
, 4)
3311 TEST_FIELD_ALIGN (MIXERCONTROLDETAILS
, dwControlID
, 1)
3312 TEST_FIELD_OFFSET(MIXERCONTROLDETAILS
, dwControlID
, 4)
3313 TEST_FIELD_SIZE (MIXERCONTROLDETAILS
, cChannels
, 4)
3314 TEST_FIELD_ALIGN (MIXERCONTROLDETAILS
, cChannels
, 1)
3315 TEST_FIELD_OFFSET(MIXERCONTROLDETAILS
, cChannels
, 8)
3318 static void test_pack_MIXERCONTROLDETAILS_LISTTEXTA(void)
3320 /* MIXERCONTROLDETAILS_LISTTEXTA (pack 1) */
3321 TEST_FIELD_SIZE (MIXERCONTROLDETAILS_LISTTEXTA
, dwParam1
, 4)
3322 TEST_FIELD_ALIGN (MIXERCONTROLDETAILS_LISTTEXTA
, dwParam1
, 1)
3323 TEST_FIELD_OFFSET(MIXERCONTROLDETAILS_LISTTEXTA
, dwParam1
, 0)
3324 TEST_FIELD_SIZE (MIXERCONTROLDETAILS_LISTTEXTA
, dwParam2
, 4)
3325 TEST_FIELD_ALIGN (MIXERCONTROLDETAILS_LISTTEXTA
, dwParam2
, 1)
3326 TEST_FIELD_OFFSET(MIXERCONTROLDETAILS_LISTTEXTA
, dwParam2
, 4)
3329 static void test_pack_MIXERCONTROLDETAILS_LISTTEXTW(void)
3331 /* MIXERCONTROLDETAILS_LISTTEXTW (pack 1) */
3332 TEST_FIELD_SIZE (MIXERCONTROLDETAILS_LISTTEXTW
, dwParam1
, 4)
3333 TEST_FIELD_ALIGN (MIXERCONTROLDETAILS_LISTTEXTW
, dwParam1
, 1)
3334 TEST_FIELD_OFFSET(MIXERCONTROLDETAILS_LISTTEXTW
, dwParam1
, 0)
3335 TEST_FIELD_SIZE (MIXERCONTROLDETAILS_LISTTEXTW
, dwParam2
, 4)
3336 TEST_FIELD_ALIGN (MIXERCONTROLDETAILS_LISTTEXTW
, dwParam2
, 1)
3337 TEST_FIELD_OFFSET(MIXERCONTROLDETAILS_LISTTEXTW
, dwParam2
, 4)
3340 static void test_pack_MIXERCONTROLDETAILS_BOOLEAN(void)
3342 /* MIXERCONTROLDETAILS_BOOLEAN (pack 1) */
3343 TEST_TYPE_SIZE (MIXERCONTROLDETAILS_BOOLEAN
, 4)
3344 TEST_TYPE_ALIGN (MIXERCONTROLDETAILS_BOOLEAN
, 1)
3345 TEST_FIELD_SIZE (MIXERCONTROLDETAILS_BOOLEAN
, fValue
, 4)
3346 TEST_FIELD_ALIGN (MIXERCONTROLDETAILS_BOOLEAN
, fValue
, 1)
3347 TEST_FIELD_OFFSET(MIXERCONTROLDETAILS_BOOLEAN
, fValue
, 0)
3350 static void test_pack_MIXERCONTROLDETAILS_SIGNED(void)
3352 /* MIXERCONTROLDETAILS_SIGNED (pack 1) */
3353 TEST_TYPE_SIZE (MIXERCONTROLDETAILS_SIGNED
, 4)
3354 TEST_TYPE_ALIGN (MIXERCONTROLDETAILS_SIGNED
, 1)
3355 TEST_FIELD_SIZE (MIXERCONTROLDETAILS_SIGNED
, lValue
, 4)
3356 TEST_FIELD_ALIGN (MIXERCONTROLDETAILS_SIGNED
, lValue
, 1)
3357 TEST_FIELD_OFFSET(MIXERCONTROLDETAILS_SIGNED
, lValue
, 0)
3360 static void test_pack_MIXERCONTROLDETAILS_UNSIGNED(void)
3362 /* MIXERCONTROLDETAILS_UNSIGNED (pack 1) */
3363 TEST_TYPE_SIZE (MIXERCONTROLDETAILS_UNSIGNED
, 4)
3364 TEST_TYPE_ALIGN (MIXERCONTROLDETAILS_UNSIGNED
, 1)
3365 TEST_FIELD_SIZE (MIXERCONTROLDETAILS_UNSIGNED
, dwValue
, 4)
3366 TEST_FIELD_ALIGN (MIXERCONTROLDETAILS_UNSIGNED
, dwValue
, 1)
3367 TEST_FIELD_OFFSET(MIXERCONTROLDETAILS_UNSIGNED
, dwValue
, 0)
3370 static void test_pack_MMIOINFO(void)
3372 /* MMIOINFO (pack 1) */
3373 TEST_TYPE_SIZE (MMIOINFO
, 72)
3374 TEST_TYPE_ALIGN (MMIOINFO
, 1)
3375 TEST_FIELD_SIZE (MMIOINFO
, dwFlags
, 4)
3376 TEST_FIELD_ALIGN (MMIOINFO
, dwFlags
, 1)
3377 TEST_FIELD_OFFSET(MMIOINFO
, dwFlags
, 0)
3378 TEST_FIELD_SIZE (MMIOINFO
, fccIOProc
, 4)
3379 TEST_FIELD_ALIGN (MMIOINFO
, fccIOProc
, 1)
3380 TEST_FIELD_OFFSET(MMIOINFO
, fccIOProc
, 4)
3381 TEST_FIELD_SIZE (MMIOINFO
, pIOProc
, 4)
3382 TEST_FIELD_ALIGN (MMIOINFO
, pIOProc
, 1)
3383 TEST_FIELD_OFFSET(MMIOINFO
, pIOProc
, 8)
3384 TEST_FIELD_SIZE (MMIOINFO
, wErrorRet
, 4)
3385 TEST_FIELD_ALIGN (MMIOINFO
, wErrorRet
, 1)
3386 TEST_FIELD_OFFSET(MMIOINFO
, wErrorRet
, 12)
3387 TEST_FIELD_SIZE (MMIOINFO
, hTask
, 4)
3388 TEST_FIELD_ALIGN (MMIOINFO
, hTask
, 1)
3389 TEST_FIELD_OFFSET(MMIOINFO
, hTask
, 16)
3390 TEST_FIELD_SIZE (MMIOINFO
, cchBuffer
, 4)
3391 TEST_FIELD_ALIGN (MMIOINFO
, cchBuffer
, 1)
3392 TEST_FIELD_OFFSET(MMIOINFO
, cchBuffer
, 20)
3393 TEST_FIELD_SIZE (MMIOINFO
, pchBuffer
, 4)
3394 TEST_FIELD_ALIGN (MMIOINFO
, pchBuffer
, 1)
3395 TEST_FIELD_OFFSET(MMIOINFO
, pchBuffer
, 24)
3396 TEST_FIELD_SIZE (MMIOINFO
, pchNext
, 4)
3397 TEST_FIELD_ALIGN (MMIOINFO
, pchNext
, 1)
3398 TEST_FIELD_OFFSET(MMIOINFO
, pchNext
, 28)
3399 TEST_FIELD_SIZE (MMIOINFO
, pchEndRead
, 4)
3400 TEST_FIELD_ALIGN (MMIOINFO
, pchEndRead
, 1)
3401 TEST_FIELD_OFFSET(MMIOINFO
, pchEndRead
, 32)
3402 TEST_FIELD_SIZE (MMIOINFO
, pchEndWrite
, 4)
3403 TEST_FIELD_ALIGN (MMIOINFO
, pchEndWrite
, 1)
3404 TEST_FIELD_OFFSET(MMIOINFO
, pchEndWrite
, 36)
3405 TEST_FIELD_SIZE (MMIOINFO
, lBufOffset
, 4)
3406 TEST_FIELD_ALIGN (MMIOINFO
, lBufOffset
, 1)
3407 TEST_FIELD_OFFSET(MMIOINFO
, lBufOffset
, 40)
3408 TEST_FIELD_SIZE (MMIOINFO
, lDiskOffset
, 4)
3409 TEST_FIELD_ALIGN (MMIOINFO
, lDiskOffset
, 1)
3410 TEST_FIELD_OFFSET(MMIOINFO
, lDiskOffset
, 44)
3411 TEST_FIELD_SIZE (MMIOINFO
, adwInfo
, 12)
3412 TEST_FIELD_ALIGN (MMIOINFO
, adwInfo
, 1)
3413 TEST_FIELD_OFFSET(MMIOINFO
, adwInfo
, 48)
3414 TEST_FIELD_SIZE (MMIOINFO
, dwReserved1
, 4)
3415 TEST_FIELD_ALIGN (MMIOINFO
, dwReserved1
, 1)
3416 TEST_FIELD_OFFSET(MMIOINFO
, dwReserved1
, 60)
3417 TEST_FIELD_SIZE (MMIOINFO
, dwReserved2
, 4)
3418 TEST_FIELD_ALIGN (MMIOINFO
, dwReserved2
, 1)
3419 TEST_FIELD_OFFSET(MMIOINFO
, dwReserved2
, 64)
3420 TEST_FIELD_SIZE (MMIOINFO
, hmmio
, 4)
3421 TEST_FIELD_ALIGN (MMIOINFO
, hmmio
, 1)
3422 TEST_FIELD_OFFSET(MMIOINFO
, hmmio
, 68)
3425 static void test_pack_MMCKINFO(void)
3427 /* MMCKINFO (pack 1) */
3428 TEST_TYPE_SIZE (MMCKINFO
, 20)
3429 TEST_TYPE_ALIGN (MMCKINFO
, 1)
3430 TEST_FIELD_SIZE (MMCKINFO
, ckid
, 4)
3431 TEST_FIELD_ALIGN (MMCKINFO
, ckid
, 1)
3432 TEST_FIELD_OFFSET(MMCKINFO
, ckid
, 0)
3433 TEST_FIELD_SIZE (MMCKINFO
, cksize
, 4)
3434 TEST_FIELD_ALIGN (MMCKINFO
, cksize
, 1)
3435 TEST_FIELD_OFFSET(MMCKINFO
, cksize
, 4)
3436 TEST_FIELD_SIZE (MMCKINFO
, fccType
, 4)
3437 TEST_FIELD_ALIGN (MMCKINFO
, fccType
, 1)
3438 TEST_FIELD_OFFSET(MMCKINFO
, fccType
, 8)
3439 TEST_FIELD_SIZE (MMCKINFO
, dwDataOffset
, 4)
3440 TEST_FIELD_ALIGN (MMCKINFO
, dwDataOffset
, 1)
3441 TEST_FIELD_OFFSET(MMCKINFO
, dwDataOffset
, 12)
3442 TEST_FIELD_SIZE (MMCKINFO
, dwFlags
, 4)
3443 TEST_FIELD_ALIGN (MMCKINFO
, dwFlags
, 1)
3444 TEST_FIELD_OFFSET(MMCKINFO
, dwFlags
, 16)
3447 static void test_pack_MCI_GENERIC_PARMS(void)
3449 /* MCI_GENERIC_PARMS (pack 1) */
3450 TEST_TYPE_SIZE (MCI_GENERIC_PARMS
, 4)
3451 TEST_TYPE_ALIGN (MCI_GENERIC_PARMS
, 1)
3452 TEST_FIELD_SIZE (MCI_GENERIC_PARMS
, dwCallback
, 4)
3453 TEST_FIELD_ALIGN (MCI_GENERIC_PARMS
, dwCallback
, 1)
3454 TEST_FIELD_OFFSET(MCI_GENERIC_PARMS
, dwCallback
, 0)
3457 static void test_pack_MCI_OPEN_PARMSA(void)
3459 /* MCI_OPEN_PARMSA (pack 1) */
3460 TEST_TYPE_SIZE (MCI_OPEN_PARMSA
, 20)
3461 TEST_TYPE_ALIGN (MCI_OPEN_PARMSA
, 1)
3462 TEST_FIELD_SIZE (MCI_OPEN_PARMSA
, dwCallback
, 4)
3463 TEST_FIELD_ALIGN (MCI_OPEN_PARMSA
, dwCallback
, 1)
3464 TEST_FIELD_OFFSET(MCI_OPEN_PARMSA
, dwCallback
, 0)
3465 TEST_FIELD_SIZE (MCI_OPEN_PARMSA
, wDeviceID
, 4)
3466 TEST_FIELD_ALIGN (MCI_OPEN_PARMSA
, wDeviceID
, 1)
3467 TEST_FIELD_OFFSET(MCI_OPEN_PARMSA
, wDeviceID
, 4)
3468 TEST_FIELD_SIZE (MCI_OPEN_PARMSA
, lpstrDeviceType
, 4)
3469 TEST_FIELD_ALIGN (MCI_OPEN_PARMSA
, lpstrDeviceType
, 1)
3470 TEST_FIELD_OFFSET(MCI_OPEN_PARMSA
, lpstrDeviceType
, 8)
3471 TEST_FIELD_SIZE (MCI_OPEN_PARMSA
, lpstrElementName
, 4)
3472 TEST_FIELD_ALIGN (MCI_OPEN_PARMSA
, lpstrElementName
, 1)
3473 TEST_FIELD_OFFSET(MCI_OPEN_PARMSA
, lpstrElementName
, 12)
3474 TEST_FIELD_SIZE (MCI_OPEN_PARMSA
, lpstrAlias
, 4)
3475 TEST_FIELD_ALIGN (MCI_OPEN_PARMSA
, lpstrAlias
, 1)
3476 TEST_FIELD_OFFSET(MCI_OPEN_PARMSA
, lpstrAlias
, 16)
3479 static void test_pack_MCI_OPEN_PARMSW(void)
3481 /* MCI_OPEN_PARMSW (pack 1) */
3482 TEST_TYPE_SIZE (MCI_OPEN_PARMSW
, 20)
3483 TEST_TYPE_ALIGN (MCI_OPEN_PARMSW
, 1)
3484 TEST_FIELD_SIZE (MCI_OPEN_PARMSW
, dwCallback
, 4)
3485 TEST_FIELD_ALIGN (MCI_OPEN_PARMSW
, dwCallback
, 1)
3486 TEST_FIELD_OFFSET(MCI_OPEN_PARMSW
, dwCallback
, 0)
3487 TEST_FIELD_SIZE (MCI_OPEN_PARMSW
, wDeviceID
, 4)
3488 TEST_FIELD_ALIGN (MCI_OPEN_PARMSW
, wDeviceID
, 1)
3489 TEST_FIELD_OFFSET(MCI_OPEN_PARMSW
, wDeviceID
, 4)
3490 TEST_FIELD_SIZE (MCI_OPEN_PARMSW
, lpstrDeviceType
, 4)
3491 TEST_FIELD_ALIGN (MCI_OPEN_PARMSW
, lpstrDeviceType
, 1)
3492 TEST_FIELD_OFFSET(MCI_OPEN_PARMSW
, lpstrDeviceType
, 8)
3493 TEST_FIELD_SIZE (MCI_OPEN_PARMSW
, lpstrElementName
, 4)
3494 TEST_FIELD_ALIGN (MCI_OPEN_PARMSW
, lpstrElementName
, 1)
3495 TEST_FIELD_OFFSET(MCI_OPEN_PARMSW
, lpstrElementName
, 12)
3496 TEST_FIELD_SIZE (MCI_OPEN_PARMSW
, lpstrAlias
, 4)
3497 TEST_FIELD_ALIGN (MCI_OPEN_PARMSW
, lpstrAlias
, 1)
3498 TEST_FIELD_OFFSET(MCI_OPEN_PARMSW
, lpstrAlias
, 16)
3501 static void test_pack_MCI_PLAY_PARMS(void)
3503 /* MCI_PLAY_PARMS (pack 1) */
3504 TEST_TYPE_SIZE (MCI_PLAY_PARMS
, 12)
3505 TEST_TYPE_ALIGN (MCI_PLAY_PARMS
, 1)
3506 TEST_FIELD_SIZE (MCI_PLAY_PARMS
, dwCallback
, 4)
3507 TEST_FIELD_ALIGN (MCI_PLAY_PARMS
, dwCallback
, 1)
3508 TEST_FIELD_OFFSET(MCI_PLAY_PARMS
, dwCallback
, 0)
3509 TEST_FIELD_SIZE (MCI_PLAY_PARMS
, dwFrom
, 4)
3510 TEST_FIELD_ALIGN (MCI_PLAY_PARMS
, dwFrom
, 1)
3511 TEST_FIELD_OFFSET(MCI_PLAY_PARMS
, dwFrom
, 4)
3512 TEST_FIELD_SIZE (MCI_PLAY_PARMS
, dwTo
, 4)
3513 TEST_FIELD_ALIGN (MCI_PLAY_PARMS
, dwTo
, 1)
3514 TEST_FIELD_OFFSET(MCI_PLAY_PARMS
, dwTo
, 8)
3517 static void test_pack_MCI_SEEK_PARMS(void)
3519 /* MCI_SEEK_PARMS (pack 1) */
3520 TEST_TYPE_SIZE (MCI_SEEK_PARMS
, 8)
3521 TEST_TYPE_ALIGN (MCI_SEEK_PARMS
, 1)
3522 TEST_FIELD_SIZE (MCI_SEEK_PARMS
, dwCallback
, 4)
3523 TEST_FIELD_ALIGN (MCI_SEEK_PARMS
, dwCallback
, 1)
3524 TEST_FIELD_OFFSET(MCI_SEEK_PARMS
, dwCallback
, 0)
3525 TEST_FIELD_SIZE (MCI_SEEK_PARMS
, dwTo
, 4)
3526 TEST_FIELD_ALIGN (MCI_SEEK_PARMS
, dwTo
, 1)
3527 TEST_FIELD_OFFSET(MCI_SEEK_PARMS
, dwTo
, 4)
3530 static void test_pack_MCI_STATUS_PARMS(void)
3532 /* MCI_STATUS_PARMS (pack 1) */
3533 TEST_TYPE_SIZE (MCI_STATUS_PARMS
, 16)
3534 TEST_TYPE_ALIGN (MCI_STATUS_PARMS
, 1)
3535 TEST_FIELD_SIZE (MCI_STATUS_PARMS
, dwCallback
, 4)
3536 TEST_FIELD_ALIGN (MCI_STATUS_PARMS
, dwCallback
, 1)
3537 TEST_FIELD_OFFSET(MCI_STATUS_PARMS
, dwCallback
, 0)
3538 TEST_FIELD_SIZE (MCI_STATUS_PARMS
, dwReturn
, 4)
3539 TEST_FIELD_ALIGN (MCI_STATUS_PARMS
, dwReturn
, 1)
3540 TEST_FIELD_OFFSET(MCI_STATUS_PARMS
, dwReturn
, 4)
3541 TEST_FIELD_SIZE (MCI_STATUS_PARMS
, dwItem
, 4)
3542 TEST_FIELD_ALIGN (MCI_STATUS_PARMS
, dwItem
, 1)
3543 TEST_FIELD_OFFSET(MCI_STATUS_PARMS
, dwItem
, 8)
3544 TEST_FIELD_SIZE (MCI_STATUS_PARMS
, dwTrack
, 4)
3545 TEST_FIELD_ALIGN (MCI_STATUS_PARMS
, dwTrack
, 1)
3546 TEST_FIELD_OFFSET(MCI_STATUS_PARMS
, dwTrack
, 12)
3549 static void test_pack_MCI_INFO_PARMSA(void)
3551 /* MCI_INFO_PARMSA (pack 1) */
3552 TEST_TYPE_SIZE (MCI_INFO_PARMSA
, 12)
3553 TEST_TYPE_ALIGN (MCI_INFO_PARMSA
, 1)
3554 TEST_FIELD_SIZE (MCI_INFO_PARMSA
, dwCallback
, 4)
3555 TEST_FIELD_ALIGN (MCI_INFO_PARMSA
, dwCallback
, 1)
3556 TEST_FIELD_OFFSET(MCI_INFO_PARMSA
, dwCallback
, 0)
3557 TEST_FIELD_SIZE (MCI_INFO_PARMSA
, lpstrReturn
, 4)
3558 TEST_FIELD_ALIGN (MCI_INFO_PARMSA
, lpstrReturn
, 1)
3559 TEST_FIELD_OFFSET(MCI_INFO_PARMSA
, lpstrReturn
, 4)
3560 TEST_FIELD_SIZE (MCI_INFO_PARMSA
, dwRetSize
, 4)
3561 TEST_FIELD_ALIGN (MCI_INFO_PARMSA
, dwRetSize
, 1)
3562 TEST_FIELD_OFFSET(MCI_INFO_PARMSA
, dwRetSize
, 8)
3565 static void test_pack_MCI_INFO_PARMSW(void)
3567 /* MCI_INFO_PARMSW (pack 1) */
3568 TEST_TYPE_SIZE (MCI_INFO_PARMSW
, 12)
3569 TEST_TYPE_ALIGN (MCI_INFO_PARMSW
, 1)
3570 TEST_FIELD_SIZE (MCI_INFO_PARMSW
, dwCallback
, 4)
3571 TEST_FIELD_ALIGN (MCI_INFO_PARMSW
, dwCallback
, 1)
3572 TEST_FIELD_OFFSET(MCI_INFO_PARMSW
, dwCallback
, 0)
3573 TEST_FIELD_SIZE (MCI_INFO_PARMSW
, lpstrReturn
, 4)
3574 TEST_FIELD_ALIGN (MCI_INFO_PARMSW
, lpstrReturn
, 1)
3575 TEST_FIELD_OFFSET(MCI_INFO_PARMSW
, lpstrReturn
, 4)
3576 TEST_FIELD_SIZE (MCI_INFO_PARMSW
, dwRetSize
, 4)
3577 TEST_FIELD_ALIGN (MCI_INFO_PARMSW
, dwRetSize
, 1)
3578 TEST_FIELD_OFFSET(MCI_INFO_PARMSW
, dwRetSize
, 8)
3581 static void test_pack_MCI_GETDEVCAPS_PARMS(void)
3583 /* MCI_GETDEVCAPS_PARMS (pack 1) */
3584 TEST_TYPE_SIZE (MCI_GETDEVCAPS_PARMS
, 12)
3585 TEST_TYPE_ALIGN (MCI_GETDEVCAPS_PARMS
, 1)
3586 TEST_FIELD_SIZE (MCI_GETDEVCAPS_PARMS
, dwCallback
, 4)
3587 TEST_FIELD_ALIGN (MCI_GETDEVCAPS_PARMS
, dwCallback
, 1)
3588 TEST_FIELD_OFFSET(MCI_GETDEVCAPS_PARMS
, dwCallback
, 0)
3589 TEST_FIELD_SIZE (MCI_GETDEVCAPS_PARMS
, dwReturn
, 4)
3590 TEST_FIELD_ALIGN (MCI_GETDEVCAPS_PARMS
, dwReturn
, 1)
3591 TEST_FIELD_OFFSET(MCI_GETDEVCAPS_PARMS
, dwReturn
, 4)
3592 TEST_FIELD_SIZE (MCI_GETDEVCAPS_PARMS
, dwItem
, 4)
3593 TEST_FIELD_ALIGN (MCI_GETDEVCAPS_PARMS
, dwItem
, 1)
3594 TEST_FIELD_OFFSET(MCI_GETDEVCAPS_PARMS
, dwItem
, 8)
3597 static void test_pack_MCI_SYSINFO_PARMSA(void)
3599 /* MCI_SYSINFO_PARMSA (pack 1) */
3600 TEST_TYPE_SIZE (MCI_SYSINFO_PARMSA
, 20)
3601 TEST_TYPE_ALIGN (MCI_SYSINFO_PARMSA
, 1)
3602 TEST_FIELD_SIZE (MCI_SYSINFO_PARMSA
, dwCallback
, 4)
3603 TEST_FIELD_ALIGN (MCI_SYSINFO_PARMSA
, dwCallback
, 1)
3604 TEST_FIELD_OFFSET(MCI_SYSINFO_PARMSA
, dwCallback
, 0)
3605 TEST_FIELD_SIZE (MCI_SYSINFO_PARMSA
, lpstrReturn
, 4)
3606 TEST_FIELD_ALIGN (MCI_SYSINFO_PARMSA
, lpstrReturn
, 1)
3607 TEST_FIELD_OFFSET(MCI_SYSINFO_PARMSA
, lpstrReturn
, 4)
3608 TEST_FIELD_SIZE (MCI_SYSINFO_PARMSA
, dwRetSize
, 4)
3609 TEST_FIELD_ALIGN (MCI_SYSINFO_PARMSA
, dwRetSize
, 1)
3610 TEST_FIELD_OFFSET(MCI_SYSINFO_PARMSA
, dwRetSize
, 8)
3611 TEST_FIELD_SIZE (MCI_SYSINFO_PARMSA
, dwNumber
, 4)
3612 TEST_FIELD_ALIGN (MCI_SYSINFO_PARMSA
, dwNumber
, 1)
3613 TEST_FIELD_OFFSET(MCI_SYSINFO_PARMSA
, dwNumber
, 12)
3614 TEST_FIELD_SIZE (MCI_SYSINFO_PARMSA
, wDeviceType
, 4)
3615 TEST_FIELD_ALIGN (MCI_SYSINFO_PARMSA
, wDeviceType
, 1)
3616 TEST_FIELD_OFFSET(MCI_SYSINFO_PARMSA
, wDeviceType
, 16)
3619 static void test_pack_MCI_SYSINFO_PARMSW(void)
3621 /* MCI_SYSINFO_PARMSW (pack 1) */
3622 TEST_TYPE_SIZE (MCI_SYSINFO_PARMSW
, 20)
3623 TEST_TYPE_ALIGN (MCI_SYSINFO_PARMSW
, 1)
3624 TEST_FIELD_SIZE (MCI_SYSINFO_PARMSW
, dwCallback
, 4)
3625 TEST_FIELD_ALIGN (MCI_SYSINFO_PARMSW
, dwCallback
, 1)
3626 TEST_FIELD_OFFSET(MCI_SYSINFO_PARMSW
, dwCallback
, 0)
3627 TEST_FIELD_SIZE (MCI_SYSINFO_PARMSW
, lpstrReturn
, 4)
3628 TEST_FIELD_ALIGN (MCI_SYSINFO_PARMSW
, lpstrReturn
, 1)
3629 TEST_FIELD_OFFSET(MCI_SYSINFO_PARMSW
, lpstrReturn
, 4)
3630 TEST_FIELD_SIZE (MCI_SYSINFO_PARMSW
, dwRetSize
, 4)
3631 TEST_FIELD_ALIGN (MCI_SYSINFO_PARMSW
, dwRetSize
, 1)
3632 TEST_FIELD_OFFSET(MCI_SYSINFO_PARMSW
, dwRetSize
, 8)
3633 TEST_FIELD_SIZE (MCI_SYSINFO_PARMSW
, dwNumber
, 4)
3634 TEST_FIELD_ALIGN (MCI_SYSINFO_PARMSW
, dwNumber
, 1)
3635 TEST_FIELD_OFFSET(MCI_SYSINFO_PARMSW
, dwNumber
, 12)
3636 TEST_FIELD_SIZE (MCI_SYSINFO_PARMSW
, wDeviceType
, 4)
3637 TEST_FIELD_ALIGN (MCI_SYSINFO_PARMSW
, wDeviceType
, 1)
3638 TEST_FIELD_OFFSET(MCI_SYSINFO_PARMSW
, wDeviceType
, 16)
3641 static void test_pack_MCI_SET_PARMS(void)
3643 /* MCI_SET_PARMS (pack 1) */
3644 TEST_TYPE_SIZE (MCI_SET_PARMS
, 12)
3645 TEST_TYPE_ALIGN (MCI_SET_PARMS
, 1)
3646 TEST_FIELD_SIZE (MCI_SET_PARMS
, dwCallback
, 4)
3647 TEST_FIELD_ALIGN (MCI_SET_PARMS
, dwCallback
, 1)
3648 TEST_FIELD_OFFSET(MCI_SET_PARMS
, dwCallback
, 0)
3649 TEST_FIELD_SIZE (MCI_SET_PARMS
, dwTimeFormat
, 4)
3650 TEST_FIELD_ALIGN (MCI_SET_PARMS
, dwTimeFormat
, 1)
3651 TEST_FIELD_OFFSET(MCI_SET_PARMS
, dwTimeFormat
, 4)
3652 TEST_FIELD_SIZE (MCI_SET_PARMS
, dwAudio
, 4)
3653 TEST_FIELD_ALIGN (MCI_SET_PARMS
, dwAudio
, 1)
3654 TEST_FIELD_OFFSET(MCI_SET_PARMS
, dwAudio
, 8)
3657 static void test_pack_MCI_BREAK_PARMS(void)
3659 /* MCI_BREAK_PARMS (pack 1) */
3660 TEST_TYPE_SIZE (MCI_BREAK_PARMS
, 12)
3661 TEST_TYPE_ALIGN (MCI_BREAK_PARMS
, 1)
3662 TEST_FIELD_SIZE (MCI_BREAK_PARMS
, dwCallback
, 4)
3663 TEST_FIELD_ALIGN (MCI_BREAK_PARMS
, dwCallback
, 1)
3664 TEST_FIELD_OFFSET(MCI_BREAK_PARMS
, dwCallback
, 0)
3665 TEST_FIELD_SIZE (MCI_BREAK_PARMS
, nVirtKey
, 4)
3666 TEST_FIELD_ALIGN (MCI_BREAK_PARMS
, nVirtKey
, 1)
3667 TEST_FIELD_OFFSET(MCI_BREAK_PARMS
, nVirtKey
, 4)
3668 TEST_FIELD_SIZE (MCI_BREAK_PARMS
, hwndBreak
, 4)
3669 TEST_FIELD_ALIGN (MCI_BREAK_PARMS
, hwndBreak
, 1)
3670 TEST_FIELD_OFFSET(MCI_BREAK_PARMS
, hwndBreak
, 8)
3673 static void test_pack_MCI_SOUND_PARMSA(void)
3675 /* MCI_SOUND_PARMSA (pack 1) */
3676 TEST_TYPE_SIZE (MCI_SOUND_PARMSA
, 8)
3677 TEST_TYPE_ALIGN (MCI_SOUND_PARMSA
, 1)
3678 TEST_FIELD_SIZE (MCI_SOUND_PARMSA
, dwCallback
, 4)
3679 TEST_FIELD_ALIGN (MCI_SOUND_PARMSA
, dwCallback
, 1)
3680 TEST_FIELD_OFFSET(MCI_SOUND_PARMSA
, dwCallback
, 0)
3681 TEST_FIELD_SIZE (MCI_SOUND_PARMSA
, lpstrSoundName
, 4)
3682 TEST_FIELD_ALIGN (MCI_SOUND_PARMSA
, lpstrSoundName
, 1)
3683 TEST_FIELD_OFFSET(MCI_SOUND_PARMSA
, lpstrSoundName
, 4)
3686 static void test_pack_MCI_SOUND_PARMSW(void)
3688 /* MCI_SOUND_PARMSW (pack 1) */
3689 TEST_TYPE_SIZE (MCI_SOUND_PARMSW
, 8)
3690 TEST_TYPE_ALIGN (MCI_SOUND_PARMSW
, 1)
3691 TEST_FIELD_SIZE (MCI_SOUND_PARMSW
, dwCallback
, 4)
3692 TEST_FIELD_ALIGN (MCI_SOUND_PARMSW
, dwCallback
, 1)
3693 TEST_FIELD_OFFSET(MCI_SOUND_PARMSW
, dwCallback
, 0)
3694 TEST_FIELD_SIZE (MCI_SOUND_PARMSW
, lpstrSoundName
, 4)
3695 TEST_FIELD_ALIGN (MCI_SOUND_PARMSW
, lpstrSoundName
, 1)
3696 TEST_FIELD_OFFSET(MCI_SOUND_PARMSW
, lpstrSoundName
, 4)
3699 static void test_pack_MCI_SAVE_PARMSA(void)
3701 /* MCI_SAVE_PARMSA (pack 1) */
3702 TEST_TYPE_SIZE (MCI_SAVE_PARMSA
, 8)
3703 TEST_TYPE_ALIGN (MCI_SAVE_PARMSA
, 1)
3704 TEST_FIELD_SIZE (MCI_SAVE_PARMSA
, dwCallback
, 4)
3705 TEST_FIELD_ALIGN (MCI_SAVE_PARMSA
, dwCallback
, 1)
3706 TEST_FIELD_OFFSET(MCI_SAVE_PARMSA
, dwCallback
, 0)
3707 TEST_FIELD_SIZE (MCI_SAVE_PARMSA
, lpfilename
, 4)
3708 TEST_FIELD_ALIGN (MCI_SAVE_PARMSA
, lpfilename
, 1)
3709 TEST_FIELD_OFFSET(MCI_SAVE_PARMSA
, lpfilename
, 4)
3712 static void test_pack_MCI_SAVE_PARMSW(void)
3714 /* MCI_SAVE_PARMSW (pack 1) */
3715 TEST_TYPE_SIZE (MCI_SAVE_PARMSW
, 8)
3716 TEST_TYPE_ALIGN (MCI_SAVE_PARMSW
, 1)
3717 TEST_FIELD_SIZE (MCI_SAVE_PARMSW
, dwCallback
, 4)
3718 TEST_FIELD_ALIGN (MCI_SAVE_PARMSW
, dwCallback
, 1)
3719 TEST_FIELD_OFFSET(MCI_SAVE_PARMSW
, dwCallback
, 0)
3720 TEST_FIELD_SIZE (MCI_SAVE_PARMSW
, lpfilename
, 4)
3721 TEST_FIELD_ALIGN (MCI_SAVE_PARMSW
, lpfilename
, 1)
3722 TEST_FIELD_OFFSET(MCI_SAVE_PARMSW
, lpfilename
, 4)
3725 static void test_pack_MCI_LOAD_PARMSA(void)
3727 /* MCI_LOAD_PARMSA (pack 1) */
3728 TEST_TYPE_SIZE (MCI_LOAD_PARMSA
, 8)
3729 TEST_TYPE_ALIGN (MCI_LOAD_PARMSA
, 1)
3730 TEST_FIELD_SIZE (MCI_LOAD_PARMSA
, dwCallback
, 4)
3731 TEST_FIELD_ALIGN (MCI_LOAD_PARMSA
, dwCallback
, 1)
3732 TEST_FIELD_OFFSET(MCI_LOAD_PARMSA
, dwCallback
, 0)
3733 TEST_FIELD_SIZE (MCI_LOAD_PARMSA
, lpfilename
, 4)
3734 TEST_FIELD_ALIGN (MCI_LOAD_PARMSA
, lpfilename
, 1)
3735 TEST_FIELD_OFFSET(MCI_LOAD_PARMSA
, lpfilename
, 4)
3738 static void test_pack_MCI_LOAD_PARMSW(void)
3740 /* MCI_LOAD_PARMSW (pack 1) */
3741 TEST_TYPE_SIZE (MCI_LOAD_PARMSW
, 8)
3742 TEST_TYPE_ALIGN (MCI_LOAD_PARMSW
, 1)
3743 TEST_FIELD_SIZE (MCI_LOAD_PARMSW
, dwCallback
, 4)
3744 TEST_FIELD_ALIGN (MCI_LOAD_PARMSW
, dwCallback
, 1)
3745 TEST_FIELD_OFFSET(MCI_LOAD_PARMSW
, dwCallback
, 0)
3746 TEST_FIELD_SIZE (MCI_LOAD_PARMSW
, lpfilename
, 4)
3747 TEST_FIELD_ALIGN (MCI_LOAD_PARMSW
, lpfilename
, 1)
3748 TEST_FIELD_OFFSET(MCI_LOAD_PARMSW
, lpfilename
, 4)
3751 static void test_pack_MCI_RECORD_PARMS(void)
3753 /* MCI_RECORD_PARMS (pack 1) */
3754 TEST_TYPE_SIZE (MCI_RECORD_PARMS
, 12)
3755 TEST_TYPE_ALIGN (MCI_RECORD_PARMS
, 1)
3756 TEST_FIELD_SIZE (MCI_RECORD_PARMS
, dwCallback
, 4)
3757 TEST_FIELD_ALIGN (MCI_RECORD_PARMS
, dwCallback
, 1)
3758 TEST_FIELD_OFFSET(MCI_RECORD_PARMS
, dwCallback
, 0)
3759 TEST_FIELD_SIZE (MCI_RECORD_PARMS
, dwFrom
, 4)
3760 TEST_FIELD_ALIGN (MCI_RECORD_PARMS
, dwFrom
, 1)
3761 TEST_FIELD_OFFSET(MCI_RECORD_PARMS
, dwFrom
, 4)
3762 TEST_FIELD_SIZE (MCI_RECORD_PARMS
, dwTo
, 4)
3763 TEST_FIELD_ALIGN (MCI_RECORD_PARMS
, dwTo
, 1)
3764 TEST_FIELD_OFFSET(MCI_RECORD_PARMS
, dwTo
, 8)
3767 static void test_pack_MCI_VD_PLAY_PARMS(void)
3769 /* MCI_VD_PLAY_PARMS (pack 1) */
3770 TEST_TYPE_SIZE (MCI_VD_PLAY_PARMS
, 16)
3771 TEST_TYPE_ALIGN (MCI_VD_PLAY_PARMS
, 1)
3772 TEST_FIELD_SIZE (MCI_VD_PLAY_PARMS
, dwCallback
, 4)
3773 TEST_FIELD_ALIGN (MCI_VD_PLAY_PARMS
, dwCallback
, 1)
3774 TEST_FIELD_OFFSET(MCI_VD_PLAY_PARMS
, dwCallback
, 0)
3775 TEST_FIELD_SIZE (MCI_VD_PLAY_PARMS
, dwFrom
, 4)
3776 TEST_FIELD_ALIGN (MCI_VD_PLAY_PARMS
, dwFrom
, 1)
3777 TEST_FIELD_OFFSET(MCI_VD_PLAY_PARMS
, dwFrom
, 4)
3778 TEST_FIELD_SIZE (MCI_VD_PLAY_PARMS
, dwTo
, 4)
3779 TEST_FIELD_ALIGN (MCI_VD_PLAY_PARMS
, dwTo
, 1)
3780 TEST_FIELD_OFFSET(MCI_VD_PLAY_PARMS
, dwTo
, 8)
3781 TEST_FIELD_SIZE (MCI_VD_PLAY_PARMS
, dwSpeed
, 4)
3782 TEST_FIELD_ALIGN (MCI_VD_PLAY_PARMS
, dwSpeed
, 1)
3783 TEST_FIELD_OFFSET(MCI_VD_PLAY_PARMS
, dwSpeed
, 12)
3786 static void test_pack_MCI_VD_STEP_PARMS(void)
3788 /* MCI_VD_STEP_PARMS (pack 1) */
3789 TEST_TYPE_SIZE (MCI_VD_STEP_PARMS
, 8)
3790 TEST_TYPE_ALIGN (MCI_VD_STEP_PARMS
, 1)
3791 TEST_FIELD_SIZE (MCI_VD_STEP_PARMS
, dwCallback
, 4)
3792 TEST_FIELD_ALIGN (MCI_VD_STEP_PARMS
, dwCallback
, 1)
3793 TEST_FIELD_OFFSET(MCI_VD_STEP_PARMS
, dwCallback
, 0)
3794 TEST_FIELD_SIZE (MCI_VD_STEP_PARMS
, dwFrames
, 4)
3795 TEST_FIELD_ALIGN (MCI_VD_STEP_PARMS
, dwFrames
, 1)
3796 TEST_FIELD_OFFSET(MCI_VD_STEP_PARMS
, dwFrames
, 4)
3799 static void test_pack_MCI_VD_ESCAPE_PARMSA(void)
3801 /* MCI_VD_ESCAPE_PARMSA (pack 1) */
3802 TEST_TYPE_SIZE (MCI_VD_ESCAPE_PARMSA
, 8)
3803 TEST_TYPE_ALIGN (MCI_VD_ESCAPE_PARMSA
, 1)
3804 TEST_FIELD_SIZE (MCI_VD_ESCAPE_PARMSA
, dwCallback
, 4)
3805 TEST_FIELD_ALIGN (MCI_VD_ESCAPE_PARMSA
, dwCallback
, 1)
3806 TEST_FIELD_OFFSET(MCI_VD_ESCAPE_PARMSA
, dwCallback
, 0)
3807 TEST_FIELD_SIZE (MCI_VD_ESCAPE_PARMSA
, lpstrCommand
, 4)
3808 TEST_FIELD_ALIGN (MCI_VD_ESCAPE_PARMSA
, lpstrCommand
, 1)
3809 TEST_FIELD_OFFSET(MCI_VD_ESCAPE_PARMSA
, lpstrCommand
, 4)
3812 static void test_pack_MCI_VD_ESCAPE_PARMSW(void)
3814 /* MCI_VD_ESCAPE_PARMSW (pack 1) */
3815 TEST_TYPE_SIZE (MCI_VD_ESCAPE_PARMSW
, 8)
3816 TEST_TYPE_ALIGN (MCI_VD_ESCAPE_PARMSW
, 1)
3817 TEST_FIELD_SIZE (MCI_VD_ESCAPE_PARMSW
, dwCallback
, 4)
3818 TEST_FIELD_ALIGN (MCI_VD_ESCAPE_PARMSW
, dwCallback
, 1)
3819 TEST_FIELD_OFFSET(MCI_VD_ESCAPE_PARMSW
, dwCallback
, 0)
3820 TEST_FIELD_SIZE (MCI_VD_ESCAPE_PARMSW
, lpstrCommand
, 4)
3821 TEST_FIELD_ALIGN (MCI_VD_ESCAPE_PARMSW
, lpstrCommand
, 1)
3822 TEST_FIELD_OFFSET(MCI_VD_ESCAPE_PARMSW
, lpstrCommand
, 4)
3825 static void test_pack_MCI_WAVE_OPEN_PARMSA(void)
3827 /* MCI_WAVE_OPEN_PARMSA (pack 1) */
3828 TEST_TYPE_SIZE (MCI_WAVE_OPEN_PARMSA
, 24)
3829 TEST_TYPE_ALIGN (MCI_WAVE_OPEN_PARMSA
, 1)
3830 TEST_FIELD_SIZE (MCI_WAVE_OPEN_PARMSA
, dwCallback
, 4)
3831 TEST_FIELD_ALIGN (MCI_WAVE_OPEN_PARMSA
, dwCallback
, 1)
3832 TEST_FIELD_OFFSET(MCI_WAVE_OPEN_PARMSA
, dwCallback
, 0)
3833 TEST_FIELD_SIZE (MCI_WAVE_OPEN_PARMSA
, wDeviceID
, 4)
3834 TEST_FIELD_ALIGN (MCI_WAVE_OPEN_PARMSA
, wDeviceID
, 1)
3835 TEST_FIELD_OFFSET(MCI_WAVE_OPEN_PARMSA
, wDeviceID
, 4)
3836 TEST_FIELD_SIZE (MCI_WAVE_OPEN_PARMSA
, lpstrDeviceType
, 4)
3837 TEST_FIELD_ALIGN (MCI_WAVE_OPEN_PARMSA
, lpstrDeviceType
, 1)
3838 TEST_FIELD_OFFSET(MCI_WAVE_OPEN_PARMSA
, lpstrDeviceType
, 8)
3839 TEST_FIELD_SIZE (MCI_WAVE_OPEN_PARMSA
, lpstrElementName
, 4)
3840 TEST_FIELD_ALIGN (MCI_WAVE_OPEN_PARMSA
, lpstrElementName
, 1)
3841 TEST_FIELD_OFFSET(MCI_WAVE_OPEN_PARMSA
, lpstrElementName
, 12)
3842 TEST_FIELD_SIZE (MCI_WAVE_OPEN_PARMSA
, lpstrAlias
, 4)
3843 TEST_FIELD_ALIGN (MCI_WAVE_OPEN_PARMSA
, lpstrAlias
, 1)
3844 TEST_FIELD_OFFSET(MCI_WAVE_OPEN_PARMSA
, lpstrAlias
, 16)
3845 TEST_FIELD_SIZE (MCI_WAVE_OPEN_PARMSA
, dwBufferSeconds
, 4)
3846 TEST_FIELD_ALIGN (MCI_WAVE_OPEN_PARMSA
, dwBufferSeconds
, 1)
3847 TEST_FIELD_OFFSET(MCI_WAVE_OPEN_PARMSA
, dwBufferSeconds
, 20)
3850 static void test_pack_MCI_WAVE_OPEN_PARMSW(void)
3852 /* MCI_WAVE_OPEN_PARMSW (pack 1) */
3853 TEST_TYPE_SIZE (MCI_WAVE_OPEN_PARMSW
, 24)
3854 TEST_TYPE_ALIGN (MCI_WAVE_OPEN_PARMSW
, 1)
3855 TEST_FIELD_SIZE (MCI_WAVE_OPEN_PARMSW
, dwCallback
, 4)
3856 TEST_FIELD_ALIGN (MCI_WAVE_OPEN_PARMSW
, dwCallback
, 1)
3857 TEST_FIELD_OFFSET(MCI_WAVE_OPEN_PARMSW
, dwCallback
, 0)
3858 TEST_FIELD_SIZE (MCI_WAVE_OPEN_PARMSW
, wDeviceID
, 4)
3859 TEST_FIELD_ALIGN (MCI_WAVE_OPEN_PARMSW
, wDeviceID
, 1)
3860 TEST_FIELD_OFFSET(MCI_WAVE_OPEN_PARMSW
, wDeviceID
, 4)
3861 TEST_FIELD_SIZE (MCI_WAVE_OPEN_PARMSW
, lpstrDeviceType
, 4)
3862 TEST_FIELD_ALIGN (MCI_WAVE_OPEN_PARMSW
, lpstrDeviceType
, 1)
3863 TEST_FIELD_OFFSET(MCI_WAVE_OPEN_PARMSW
, lpstrDeviceType
, 8)
3864 TEST_FIELD_SIZE (MCI_WAVE_OPEN_PARMSW
, lpstrElementName
, 4)
3865 TEST_FIELD_ALIGN (MCI_WAVE_OPEN_PARMSW
, lpstrElementName
, 1)
3866 TEST_FIELD_OFFSET(MCI_WAVE_OPEN_PARMSW
, lpstrElementName
, 12)
3867 TEST_FIELD_SIZE (MCI_WAVE_OPEN_PARMSW
, lpstrAlias
, 4)
3868 TEST_FIELD_ALIGN (MCI_WAVE_OPEN_PARMSW
, lpstrAlias
, 1)
3869 TEST_FIELD_OFFSET(MCI_WAVE_OPEN_PARMSW
, lpstrAlias
, 16)
3870 TEST_FIELD_SIZE (MCI_WAVE_OPEN_PARMSW
, dwBufferSeconds
, 4)
3871 TEST_FIELD_ALIGN (MCI_WAVE_OPEN_PARMSW
, dwBufferSeconds
, 1)
3872 TEST_FIELD_OFFSET(MCI_WAVE_OPEN_PARMSW
, dwBufferSeconds
, 20)
3875 static void test_pack_MCI_WAVE_DELETE_PARMS(void)
3877 /* MCI_WAVE_DELETE_PARMS (pack 1) */
3878 TEST_TYPE_SIZE (MCI_WAVE_DELETE_PARMS
, 12)
3879 TEST_TYPE_ALIGN (MCI_WAVE_DELETE_PARMS
, 1)
3880 TEST_FIELD_SIZE (MCI_WAVE_DELETE_PARMS
, dwCallback
, 4)
3881 TEST_FIELD_ALIGN (MCI_WAVE_DELETE_PARMS
, dwCallback
, 1)
3882 TEST_FIELD_OFFSET(MCI_WAVE_DELETE_PARMS
, dwCallback
, 0)
3883 TEST_FIELD_SIZE (MCI_WAVE_DELETE_PARMS
, dwFrom
, 4)
3884 TEST_FIELD_ALIGN (MCI_WAVE_DELETE_PARMS
, dwFrom
, 1)
3885 TEST_FIELD_OFFSET(MCI_WAVE_DELETE_PARMS
, dwFrom
, 4)
3886 TEST_FIELD_SIZE (MCI_WAVE_DELETE_PARMS
, dwTo
, 4)
3887 TEST_FIELD_ALIGN (MCI_WAVE_DELETE_PARMS
, dwTo
, 1)
3888 TEST_FIELD_OFFSET(MCI_WAVE_DELETE_PARMS
, dwTo
, 8)
3891 static void test_pack_MCI_WAVE_SET_PARMS(void)
3893 /* MCI_WAVE_SET_PARMS (pack 1) */
3894 TEST_TYPE_SIZE (MCI_WAVE_SET_PARMS
, 44)
3895 TEST_TYPE_ALIGN (MCI_WAVE_SET_PARMS
, 1)
3896 TEST_FIELD_SIZE (MCI_WAVE_SET_PARMS
, dwCallback
, 4)
3897 TEST_FIELD_ALIGN (MCI_WAVE_SET_PARMS
, dwCallback
, 1)
3898 TEST_FIELD_OFFSET(MCI_WAVE_SET_PARMS
, dwCallback
, 0)
3899 TEST_FIELD_SIZE (MCI_WAVE_SET_PARMS
, dwTimeFormat
, 4)
3900 TEST_FIELD_ALIGN (MCI_WAVE_SET_PARMS
, dwTimeFormat
, 1)
3901 TEST_FIELD_OFFSET(MCI_WAVE_SET_PARMS
, dwTimeFormat
, 4)
3902 TEST_FIELD_SIZE (MCI_WAVE_SET_PARMS
, dwAudio
, 4)
3903 TEST_FIELD_ALIGN (MCI_WAVE_SET_PARMS
, dwAudio
, 1)
3904 TEST_FIELD_OFFSET(MCI_WAVE_SET_PARMS
, dwAudio
, 8)
3905 TEST_FIELD_SIZE (MCI_WAVE_SET_PARMS
, wInput
, 4)
3906 TEST_FIELD_ALIGN (MCI_WAVE_SET_PARMS
, wInput
, 1)
3907 TEST_FIELD_OFFSET(MCI_WAVE_SET_PARMS
, wInput
, 12)
3908 TEST_FIELD_SIZE (MCI_WAVE_SET_PARMS
, wOutput
, 4)
3909 TEST_FIELD_ALIGN (MCI_WAVE_SET_PARMS
, wOutput
, 1)
3910 TEST_FIELD_OFFSET(MCI_WAVE_SET_PARMS
, wOutput
, 16)
3911 TEST_FIELD_SIZE (MCI_WAVE_SET_PARMS
, wFormatTag
, 4)
3912 TEST_FIELD_ALIGN (MCI_WAVE_SET_PARMS
, wFormatTag
, 1)
3913 TEST_FIELD_OFFSET(MCI_WAVE_SET_PARMS
, wFormatTag
, 20)
3914 TEST_FIELD_SIZE (MCI_WAVE_SET_PARMS
, nChannels
, 4)
3915 TEST_FIELD_ALIGN (MCI_WAVE_SET_PARMS
, nChannels
, 1)
3916 TEST_FIELD_OFFSET(MCI_WAVE_SET_PARMS
, nChannels
, 24)
3917 TEST_FIELD_SIZE (MCI_WAVE_SET_PARMS
, nSamplesPerSec
, 4)
3918 TEST_FIELD_ALIGN (MCI_WAVE_SET_PARMS
, nSamplesPerSec
, 1)
3919 TEST_FIELD_OFFSET(MCI_WAVE_SET_PARMS
, nSamplesPerSec
, 28)
3920 TEST_FIELD_SIZE (MCI_WAVE_SET_PARMS
, nAvgBytesPerSec
, 4)
3921 TEST_FIELD_ALIGN (MCI_WAVE_SET_PARMS
, nAvgBytesPerSec
, 1)
3922 TEST_FIELD_OFFSET(MCI_WAVE_SET_PARMS
, nAvgBytesPerSec
, 32)
3923 TEST_FIELD_SIZE (MCI_WAVE_SET_PARMS
, nBlockAlign
, 4)
3924 TEST_FIELD_ALIGN (MCI_WAVE_SET_PARMS
, nBlockAlign
, 1)
3925 TEST_FIELD_OFFSET(MCI_WAVE_SET_PARMS
, nBlockAlign
, 36)
3926 TEST_FIELD_SIZE (MCI_WAVE_SET_PARMS
, wBitsPerSample
, 4)
3927 TEST_FIELD_ALIGN (MCI_WAVE_SET_PARMS
, wBitsPerSample
, 1)
3928 TEST_FIELD_OFFSET(MCI_WAVE_SET_PARMS
, wBitsPerSample
, 40)
3931 static void test_pack_MCI_SEQ_SET_PARMS(void)
3933 /* MCI_SEQ_SET_PARMS (pack 1) */
3934 TEST_TYPE_SIZE (MCI_SEQ_SET_PARMS
, 32)
3935 TEST_TYPE_ALIGN (MCI_SEQ_SET_PARMS
, 1)
3936 TEST_FIELD_SIZE (MCI_SEQ_SET_PARMS
, dwCallback
, 4)
3937 TEST_FIELD_ALIGN (MCI_SEQ_SET_PARMS
, dwCallback
, 1)
3938 TEST_FIELD_OFFSET(MCI_SEQ_SET_PARMS
, dwCallback
, 0)
3939 TEST_FIELD_SIZE (MCI_SEQ_SET_PARMS
, dwTimeFormat
, 4)
3940 TEST_FIELD_ALIGN (MCI_SEQ_SET_PARMS
, dwTimeFormat
, 1)
3941 TEST_FIELD_OFFSET(MCI_SEQ_SET_PARMS
, dwTimeFormat
, 4)
3942 TEST_FIELD_SIZE (MCI_SEQ_SET_PARMS
, dwAudio
, 4)
3943 TEST_FIELD_ALIGN (MCI_SEQ_SET_PARMS
, dwAudio
, 1)
3944 TEST_FIELD_OFFSET(MCI_SEQ_SET_PARMS
, dwAudio
, 8)
3945 TEST_FIELD_SIZE (MCI_SEQ_SET_PARMS
, dwTempo
, 4)
3946 TEST_FIELD_ALIGN (MCI_SEQ_SET_PARMS
, dwTempo
, 1)
3947 TEST_FIELD_OFFSET(MCI_SEQ_SET_PARMS
, dwTempo
, 12)
3948 TEST_FIELD_SIZE (MCI_SEQ_SET_PARMS
, dwPort
, 4)
3949 TEST_FIELD_ALIGN (MCI_SEQ_SET_PARMS
, dwPort
, 1)
3950 TEST_FIELD_OFFSET(MCI_SEQ_SET_PARMS
, dwPort
, 16)
3951 TEST_FIELD_SIZE (MCI_SEQ_SET_PARMS
, dwSlave
, 4)
3952 TEST_FIELD_ALIGN (MCI_SEQ_SET_PARMS
, dwSlave
, 1)
3953 TEST_FIELD_OFFSET(MCI_SEQ_SET_PARMS
, dwSlave
, 20)
3954 TEST_FIELD_SIZE (MCI_SEQ_SET_PARMS
, dwMaster
, 4)
3955 TEST_FIELD_ALIGN (MCI_SEQ_SET_PARMS
, dwMaster
, 1)
3956 TEST_FIELD_OFFSET(MCI_SEQ_SET_PARMS
, dwMaster
, 24)
3957 TEST_FIELD_SIZE (MCI_SEQ_SET_PARMS
, dwOffset
, 4)
3958 TEST_FIELD_ALIGN (MCI_SEQ_SET_PARMS
, dwOffset
, 1)
3959 TEST_FIELD_OFFSET(MCI_SEQ_SET_PARMS
, dwOffset
, 28)
3962 static void test_pack_MCI_ANIM_OPEN_PARMSA(void)
3964 /* MCI_ANIM_OPEN_PARMSA (pack 1) */
3965 TEST_TYPE_SIZE (MCI_ANIM_OPEN_PARMSA
, 28)
3966 TEST_TYPE_ALIGN (MCI_ANIM_OPEN_PARMSA
, 1)
3967 TEST_FIELD_SIZE (MCI_ANIM_OPEN_PARMSA
, dwCallback
, 4)
3968 TEST_FIELD_ALIGN (MCI_ANIM_OPEN_PARMSA
, dwCallback
, 1)
3969 TEST_FIELD_OFFSET(MCI_ANIM_OPEN_PARMSA
, dwCallback
, 0)
3970 TEST_FIELD_SIZE (MCI_ANIM_OPEN_PARMSA
, wDeviceID
, 4)
3971 TEST_FIELD_ALIGN (MCI_ANIM_OPEN_PARMSA
, wDeviceID
, 1)
3972 TEST_FIELD_OFFSET(MCI_ANIM_OPEN_PARMSA
, wDeviceID
, 4)
3973 TEST_FIELD_SIZE (MCI_ANIM_OPEN_PARMSA
, lpstrDeviceType
, 4)
3974 TEST_FIELD_ALIGN (MCI_ANIM_OPEN_PARMSA
, lpstrDeviceType
, 1)
3975 TEST_FIELD_OFFSET(MCI_ANIM_OPEN_PARMSA
, lpstrDeviceType
, 8)
3976 TEST_FIELD_SIZE (MCI_ANIM_OPEN_PARMSA
, lpstrElementName
, 4)
3977 TEST_FIELD_ALIGN (MCI_ANIM_OPEN_PARMSA
, lpstrElementName
, 1)
3978 TEST_FIELD_OFFSET(MCI_ANIM_OPEN_PARMSA
, lpstrElementName
, 12)
3979 TEST_FIELD_SIZE (MCI_ANIM_OPEN_PARMSA
, lpstrAlias
, 4)
3980 TEST_FIELD_ALIGN (MCI_ANIM_OPEN_PARMSA
, lpstrAlias
, 1)
3981 TEST_FIELD_OFFSET(MCI_ANIM_OPEN_PARMSA
, lpstrAlias
, 16)
3982 TEST_FIELD_SIZE (MCI_ANIM_OPEN_PARMSA
, dwStyle
, 4)
3983 TEST_FIELD_ALIGN (MCI_ANIM_OPEN_PARMSA
, dwStyle
, 1)
3984 TEST_FIELD_OFFSET(MCI_ANIM_OPEN_PARMSA
, dwStyle
, 20)
3985 TEST_FIELD_SIZE (MCI_ANIM_OPEN_PARMSA
, hWndParent
, 4)
3986 TEST_FIELD_ALIGN (MCI_ANIM_OPEN_PARMSA
, hWndParent
, 1)
3987 TEST_FIELD_OFFSET(MCI_ANIM_OPEN_PARMSA
, hWndParent
, 24)
3990 static void test_pack_MCI_ANIM_OPEN_PARMSW(void)
3992 /* MCI_ANIM_OPEN_PARMSW (pack 1) */
3993 TEST_TYPE_SIZE (MCI_ANIM_OPEN_PARMSW
, 28)
3994 TEST_TYPE_ALIGN (MCI_ANIM_OPEN_PARMSW
, 1)
3995 TEST_FIELD_SIZE (MCI_ANIM_OPEN_PARMSW
, dwCallback
, 4)
3996 TEST_FIELD_ALIGN (MCI_ANIM_OPEN_PARMSW
, dwCallback
, 1)
3997 TEST_FIELD_OFFSET(MCI_ANIM_OPEN_PARMSW
, dwCallback
, 0)
3998 TEST_FIELD_SIZE (MCI_ANIM_OPEN_PARMSW
, wDeviceID
, 4)
3999 TEST_FIELD_ALIGN (MCI_ANIM_OPEN_PARMSW
, wDeviceID
, 1)
4000 TEST_FIELD_OFFSET(MCI_ANIM_OPEN_PARMSW
, wDeviceID
, 4)
4001 TEST_FIELD_SIZE (MCI_ANIM_OPEN_PARMSW
, lpstrDeviceType
, 4)
4002 TEST_FIELD_ALIGN (MCI_ANIM_OPEN_PARMSW
, lpstrDeviceType
, 1)
4003 TEST_FIELD_OFFSET(MCI_ANIM_OPEN_PARMSW
, lpstrDeviceType
, 8)
4004 TEST_FIELD_SIZE (MCI_ANIM_OPEN_PARMSW
, lpstrElementName
, 4)
4005 TEST_FIELD_ALIGN (MCI_ANIM_OPEN_PARMSW
, lpstrElementName
, 1)
4006 TEST_FIELD_OFFSET(MCI_ANIM_OPEN_PARMSW
, lpstrElementName
, 12)
4007 TEST_FIELD_SIZE (MCI_ANIM_OPEN_PARMSW
, lpstrAlias
, 4)
4008 TEST_FIELD_ALIGN (MCI_ANIM_OPEN_PARMSW
, lpstrAlias
, 1)
4009 TEST_FIELD_OFFSET(MCI_ANIM_OPEN_PARMSW
, lpstrAlias
, 16)
4010 TEST_FIELD_SIZE (MCI_ANIM_OPEN_PARMSW
, dwStyle
, 4)
4011 TEST_FIELD_ALIGN (MCI_ANIM_OPEN_PARMSW
, dwStyle
, 1)
4012 TEST_FIELD_OFFSET(MCI_ANIM_OPEN_PARMSW
, dwStyle
, 20)
4013 TEST_FIELD_SIZE (MCI_ANIM_OPEN_PARMSW
, hWndParent
, 4)
4014 TEST_FIELD_ALIGN (MCI_ANIM_OPEN_PARMSW
, hWndParent
, 1)
4015 TEST_FIELD_OFFSET(MCI_ANIM_OPEN_PARMSW
, hWndParent
, 24)
4018 static void test_pack_MCI_ANIM_PLAY_PARMS(void)
4020 /* MCI_ANIM_PLAY_PARMS (pack 1) */
4021 TEST_TYPE_SIZE (MCI_ANIM_PLAY_PARMS
, 16)
4022 TEST_TYPE_ALIGN (MCI_ANIM_PLAY_PARMS
, 1)
4023 TEST_FIELD_SIZE (MCI_ANIM_PLAY_PARMS
, dwCallback
, 4)
4024 TEST_FIELD_ALIGN (MCI_ANIM_PLAY_PARMS
, dwCallback
, 1)
4025 TEST_FIELD_OFFSET(MCI_ANIM_PLAY_PARMS
, dwCallback
, 0)
4026 TEST_FIELD_SIZE (MCI_ANIM_PLAY_PARMS
, dwFrom
, 4)
4027 TEST_FIELD_ALIGN (MCI_ANIM_PLAY_PARMS
, dwFrom
, 1)
4028 TEST_FIELD_OFFSET(MCI_ANIM_PLAY_PARMS
, dwFrom
, 4)
4029 TEST_FIELD_SIZE (MCI_ANIM_PLAY_PARMS
, dwTo
, 4)
4030 TEST_FIELD_ALIGN (MCI_ANIM_PLAY_PARMS
, dwTo
, 1)
4031 TEST_FIELD_OFFSET(MCI_ANIM_PLAY_PARMS
, dwTo
, 8)
4032 TEST_FIELD_SIZE (MCI_ANIM_PLAY_PARMS
, dwSpeed
, 4)
4033 TEST_FIELD_ALIGN (MCI_ANIM_PLAY_PARMS
, dwSpeed
, 1)
4034 TEST_FIELD_OFFSET(MCI_ANIM_PLAY_PARMS
, dwSpeed
, 12)
4037 static void test_pack_MCI_ANIM_STEP_PARMS(void)
4039 /* MCI_ANIM_STEP_PARMS (pack 1) */
4040 TEST_TYPE_SIZE (MCI_ANIM_STEP_PARMS
, 8)
4041 TEST_TYPE_ALIGN (MCI_ANIM_STEP_PARMS
, 1)
4042 TEST_FIELD_SIZE (MCI_ANIM_STEP_PARMS
, dwCallback
, 4)
4043 TEST_FIELD_ALIGN (MCI_ANIM_STEP_PARMS
, dwCallback
, 1)
4044 TEST_FIELD_OFFSET(MCI_ANIM_STEP_PARMS
, dwCallback
, 0)
4045 TEST_FIELD_SIZE (MCI_ANIM_STEP_PARMS
, dwFrames
, 4)
4046 TEST_FIELD_ALIGN (MCI_ANIM_STEP_PARMS
, dwFrames
, 1)
4047 TEST_FIELD_OFFSET(MCI_ANIM_STEP_PARMS
, dwFrames
, 4)
4050 static void test_pack_MCI_ANIM_WINDOW_PARMSA(void)
4052 /* MCI_ANIM_WINDOW_PARMSA (pack 1) */
4053 TEST_TYPE_SIZE (MCI_ANIM_WINDOW_PARMSA
, 16)
4054 TEST_TYPE_ALIGN (MCI_ANIM_WINDOW_PARMSA
, 1)
4055 TEST_FIELD_SIZE (MCI_ANIM_WINDOW_PARMSA
, dwCallback
, 4)
4056 TEST_FIELD_ALIGN (MCI_ANIM_WINDOW_PARMSA
, dwCallback
, 1)
4057 TEST_FIELD_OFFSET(MCI_ANIM_WINDOW_PARMSA
, dwCallback
, 0)
4058 TEST_FIELD_SIZE (MCI_ANIM_WINDOW_PARMSA
, hWnd
, 4)
4059 TEST_FIELD_ALIGN (MCI_ANIM_WINDOW_PARMSA
, hWnd
, 1)
4060 TEST_FIELD_OFFSET(MCI_ANIM_WINDOW_PARMSA
, hWnd
, 4)
4061 TEST_FIELD_SIZE (MCI_ANIM_WINDOW_PARMSA
, nCmdShow
, 4)
4062 TEST_FIELD_ALIGN (MCI_ANIM_WINDOW_PARMSA
, nCmdShow
, 1)
4063 TEST_FIELD_OFFSET(MCI_ANIM_WINDOW_PARMSA
, nCmdShow
, 8)
4064 TEST_FIELD_SIZE (MCI_ANIM_WINDOW_PARMSA
, lpstrText
, 4)
4065 TEST_FIELD_ALIGN (MCI_ANIM_WINDOW_PARMSA
, lpstrText
, 1)
4066 TEST_FIELD_OFFSET(MCI_ANIM_WINDOW_PARMSA
, lpstrText
, 12)
4069 static void test_pack_MCI_ANIM_WINDOW_PARMSW(void)
4071 /* MCI_ANIM_WINDOW_PARMSW (pack 1) */
4072 TEST_TYPE_SIZE (MCI_ANIM_WINDOW_PARMSW
, 16)
4073 TEST_TYPE_ALIGN (MCI_ANIM_WINDOW_PARMSW
, 1)
4074 TEST_FIELD_SIZE (MCI_ANIM_WINDOW_PARMSW
, dwCallback
, 4)
4075 TEST_FIELD_ALIGN (MCI_ANIM_WINDOW_PARMSW
, dwCallback
, 1)
4076 TEST_FIELD_OFFSET(MCI_ANIM_WINDOW_PARMSW
, dwCallback
, 0)
4077 TEST_FIELD_SIZE (MCI_ANIM_WINDOW_PARMSW
, hWnd
, 4)
4078 TEST_FIELD_ALIGN (MCI_ANIM_WINDOW_PARMSW
, hWnd
, 1)
4079 TEST_FIELD_OFFSET(MCI_ANIM_WINDOW_PARMSW
, hWnd
, 4)
4080 TEST_FIELD_SIZE (MCI_ANIM_WINDOW_PARMSW
, nCmdShow
, 4)
4081 TEST_FIELD_ALIGN (MCI_ANIM_WINDOW_PARMSW
, nCmdShow
, 1)
4082 TEST_FIELD_OFFSET(MCI_ANIM_WINDOW_PARMSW
, nCmdShow
, 8)
4083 TEST_FIELD_SIZE (MCI_ANIM_WINDOW_PARMSW
, lpstrText
, 4)
4084 TEST_FIELD_ALIGN (MCI_ANIM_WINDOW_PARMSW
, lpstrText
, 1)
4085 TEST_FIELD_OFFSET(MCI_ANIM_WINDOW_PARMSW
, lpstrText
, 12)
4088 static void test_pack_MCI_ANIM_UPDATE_PARMS(void)
4090 /* MCI_ANIM_UPDATE_PARMS (pack 1) */
4091 TEST_TYPE_SIZE (MCI_ANIM_UPDATE_PARMS
, 24)
4092 TEST_TYPE_ALIGN (MCI_ANIM_UPDATE_PARMS
, 1)
4093 TEST_FIELD_SIZE (MCI_ANIM_UPDATE_PARMS
, dwCallback
, 4)
4094 TEST_FIELD_ALIGN (MCI_ANIM_UPDATE_PARMS
, dwCallback
, 1)
4095 TEST_FIELD_OFFSET(MCI_ANIM_UPDATE_PARMS
, dwCallback
, 0)
4096 TEST_FIELD_SIZE (MCI_ANIM_UPDATE_PARMS
, rc
, 16)
4097 TEST_FIELD_ALIGN (MCI_ANIM_UPDATE_PARMS
, rc
, 1)
4098 TEST_FIELD_OFFSET(MCI_ANIM_UPDATE_PARMS
, rc
, 4)
4099 TEST_FIELD_SIZE (MCI_ANIM_UPDATE_PARMS
, hDC
, 4)
4100 TEST_FIELD_ALIGN (MCI_ANIM_UPDATE_PARMS
, hDC
, 1)
4101 TEST_FIELD_OFFSET(MCI_ANIM_UPDATE_PARMS
, hDC
, 20)
4104 static void test_pack_MCI_OVLY_OPEN_PARMSA(void)
4106 /* MCI_OVLY_OPEN_PARMSA (pack 1) */
4107 TEST_TYPE_SIZE (MCI_OVLY_OPEN_PARMSA
, 28)
4108 TEST_TYPE_ALIGN (MCI_OVLY_OPEN_PARMSA
, 1)
4109 TEST_FIELD_SIZE (MCI_OVLY_OPEN_PARMSA
, dwCallback
, 4)
4110 TEST_FIELD_ALIGN (MCI_OVLY_OPEN_PARMSA
, dwCallback
, 1)
4111 TEST_FIELD_OFFSET(MCI_OVLY_OPEN_PARMSA
, dwCallback
, 0)
4112 TEST_FIELD_SIZE (MCI_OVLY_OPEN_PARMSA
, wDeviceID
, 4)
4113 TEST_FIELD_ALIGN (MCI_OVLY_OPEN_PARMSA
, wDeviceID
, 1)
4114 TEST_FIELD_OFFSET(MCI_OVLY_OPEN_PARMSA
, wDeviceID
, 4)
4115 TEST_FIELD_SIZE (MCI_OVLY_OPEN_PARMSA
, lpstrDeviceType
, 4)
4116 TEST_FIELD_ALIGN (MCI_OVLY_OPEN_PARMSA
, lpstrDeviceType
, 1)
4117 TEST_FIELD_OFFSET(MCI_OVLY_OPEN_PARMSA
, lpstrDeviceType
, 8)
4118 TEST_FIELD_SIZE (MCI_OVLY_OPEN_PARMSA
, lpstrElementName
, 4)
4119 TEST_FIELD_ALIGN (MCI_OVLY_OPEN_PARMSA
, lpstrElementName
, 1)
4120 TEST_FIELD_OFFSET(MCI_OVLY_OPEN_PARMSA
, lpstrElementName
, 12)
4121 TEST_FIELD_SIZE (MCI_OVLY_OPEN_PARMSA
, lpstrAlias
, 4)
4122 TEST_FIELD_ALIGN (MCI_OVLY_OPEN_PARMSA
, lpstrAlias
, 1)
4123 TEST_FIELD_OFFSET(MCI_OVLY_OPEN_PARMSA
, lpstrAlias
, 16)
4124 TEST_FIELD_SIZE (MCI_OVLY_OPEN_PARMSA
, dwStyle
, 4)
4125 TEST_FIELD_ALIGN (MCI_OVLY_OPEN_PARMSA
, dwStyle
, 1)
4126 TEST_FIELD_OFFSET(MCI_OVLY_OPEN_PARMSA
, dwStyle
, 20)
4127 TEST_FIELD_SIZE (MCI_OVLY_OPEN_PARMSA
, hWndParent
, 4)
4128 TEST_FIELD_ALIGN (MCI_OVLY_OPEN_PARMSA
, hWndParent
, 1)
4129 TEST_FIELD_OFFSET(MCI_OVLY_OPEN_PARMSA
, hWndParent
, 24)
4132 static void test_pack_MCI_OVLY_OPEN_PARMSW(void)
4134 /* MCI_OVLY_OPEN_PARMSW (pack 1) */
4135 TEST_TYPE_SIZE (MCI_OVLY_OPEN_PARMSW
, 28)
4136 TEST_TYPE_ALIGN (MCI_OVLY_OPEN_PARMSW
, 1)
4137 TEST_FIELD_SIZE (MCI_OVLY_OPEN_PARMSW
, dwCallback
, 4)
4138 TEST_FIELD_ALIGN (MCI_OVLY_OPEN_PARMSW
, dwCallback
, 1)
4139 TEST_FIELD_OFFSET(MCI_OVLY_OPEN_PARMSW
, dwCallback
, 0)
4140 TEST_FIELD_SIZE (MCI_OVLY_OPEN_PARMSW
, wDeviceID
, 4)
4141 TEST_FIELD_ALIGN (MCI_OVLY_OPEN_PARMSW
, wDeviceID
, 1)
4142 TEST_FIELD_OFFSET(MCI_OVLY_OPEN_PARMSW
, wDeviceID
, 4)
4143 TEST_FIELD_SIZE (MCI_OVLY_OPEN_PARMSW
, lpstrDeviceType
, 4)
4144 TEST_FIELD_ALIGN (MCI_OVLY_OPEN_PARMSW
, lpstrDeviceType
, 1)
4145 TEST_FIELD_OFFSET(MCI_OVLY_OPEN_PARMSW
, lpstrDeviceType
, 8)
4146 TEST_FIELD_SIZE (MCI_OVLY_OPEN_PARMSW
, lpstrElementName
, 4)
4147 TEST_FIELD_ALIGN (MCI_OVLY_OPEN_PARMSW
, lpstrElementName
, 1)
4148 TEST_FIELD_OFFSET(MCI_OVLY_OPEN_PARMSW
, lpstrElementName
, 12)
4149 TEST_FIELD_SIZE (MCI_OVLY_OPEN_PARMSW
, lpstrAlias
, 4)
4150 TEST_FIELD_ALIGN (MCI_OVLY_OPEN_PARMSW
, lpstrAlias
, 1)
4151 TEST_FIELD_OFFSET(MCI_OVLY_OPEN_PARMSW
, lpstrAlias
, 16)
4152 TEST_FIELD_SIZE (MCI_OVLY_OPEN_PARMSW
, dwStyle
, 4)
4153 TEST_FIELD_ALIGN (MCI_OVLY_OPEN_PARMSW
, dwStyle
, 1)
4154 TEST_FIELD_OFFSET(MCI_OVLY_OPEN_PARMSW
, dwStyle
, 20)
4155 TEST_FIELD_SIZE (MCI_OVLY_OPEN_PARMSW
, hWndParent
, 4)
4156 TEST_FIELD_ALIGN (MCI_OVLY_OPEN_PARMSW
, hWndParent
, 1)
4157 TEST_FIELD_OFFSET(MCI_OVLY_OPEN_PARMSW
, hWndParent
, 24)
4160 static void test_pack_MCI_OVLY_WINDOW_PARMSA(void)
4162 /* MCI_OVLY_WINDOW_PARMSA (pack 1) */
4163 TEST_TYPE_SIZE (MCI_OVLY_WINDOW_PARMSA
, 16)
4164 TEST_TYPE_ALIGN (MCI_OVLY_WINDOW_PARMSA
, 1)
4165 TEST_FIELD_SIZE (MCI_OVLY_WINDOW_PARMSA
, dwCallback
, 4)
4166 TEST_FIELD_ALIGN (MCI_OVLY_WINDOW_PARMSA
, dwCallback
, 1)
4167 TEST_FIELD_OFFSET(MCI_OVLY_WINDOW_PARMSA
, dwCallback
, 0)
4168 TEST_FIELD_SIZE (MCI_OVLY_WINDOW_PARMSA
, hWnd
, 4)
4169 TEST_FIELD_ALIGN (MCI_OVLY_WINDOW_PARMSA
, hWnd
, 1)
4170 TEST_FIELD_OFFSET(MCI_OVLY_WINDOW_PARMSA
, hWnd
, 4)
4171 TEST_FIELD_SIZE (MCI_OVLY_WINDOW_PARMSA
, nCmdShow
, 4)
4172 TEST_FIELD_ALIGN (MCI_OVLY_WINDOW_PARMSA
, nCmdShow
, 1)
4173 TEST_FIELD_OFFSET(MCI_OVLY_WINDOW_PARMSA
, nCmdShow
, 8)
4174 TEST_FIELD_SIZE (MCI_OVLY_WINDOW_PARMSA
, lpstrText
, 4)
4175 TEST_FIELD_ALIGN (MCI_OVLY_WINDOW_PARMSA
, lpstrText
, 1)
4176 TEST_FIELD_OFFSET(MCI_OVLY_WINDOW_PARMSA
, lpstrText
, 12)
4179 static void test_pack_MCI_OVLY_WINDOW_PARMSW(void)
4181 /* MCI_OVLY_WINDOW_PARMSW (pack 1) */
4182 TEST_TYPE_SIZE (MCI_OVLY_WINDOW_PARMSW
, 16)
4183 TEST_TYPE_ALIGN (MCI_OVLY_WINDOW_PARMSW
, 1)
4184 TEST_FIELD_SIZE (MCI_OVLY_WINDOW_PARMSW
, dwCallback
, 4)
4185 TEST_FIELD_ALIGN (MCI_OVLY_WINDOW_PARMSW
, dwCallback
, 1)
4186 TEST_FIELD_OFFSET(MCI_OVLY_WINDOW_PARMSW
, dwCallback
, 0)
4187 TEST_FIELD_SIZE (MCI_OVLY_WINDOW_PARMSW
, hWnd
, 4)
4188 TEST_FIELD_ALIGN (MCI_OVLY_WINDOW_PARMSW
, hWnd
, 1)
4189 TEST_FIELD_OFFSET(MCI_OVLY_WINDOW_PARMSW
, hWnd
, 4)
4190 TEST_FIELD_SIZE (MCI_OVLY_WINDOW_PARMSW
, nCmdShow
, 4)
4191 TEST_FIELD_ALIGN (MCI_OVLY_WINDOW_PARMSW
, nCmdShow
, 1)
4192 TEST_FIELD_OFFSET(MCI_OVLY_WINDOW_PARMSW
, nCmdShow
, 8)
4193 TEST_FIELD_SIZE (MCI_OVLY_WINDOW_PARMSW
, lpstrText
, 4)
4194 TEST_FIELD_ALIGN (MCI_OVLY_WINDOW_PARMSW
, lpstrText
, 1)
4195 TEST_FIELD_OFFSET(MCI_OVLY_WINDOW_PARMSW
, lpstrText
, 12)
4198 static void test_pack_MCI_OVLY_SAVE_PARMSA(void)
4200 /* MCI_OVLY_SAVE_PARMSA (pack 1) */
4201 TEST_TYPE_SIZE (MCI_OVLY_SAVE_PARMSA
, 24)
4202 TEST_TYPE_ALIGN (MCI_OVLY_SAVE_PARMSA
, 1)
4203 TEST_FIELD_SIZE (MCI_OVLY_SAVE_PARMSA
, dwCallback
, 4)
4204 TEST_FIELD_ALIGN (MCI_OVLY_SAVE_PARMSA
, dwCallback
, 1)
4205 TEST_FIELD_OFFSET(MCI_OVLY_SAVE_PARMSA
, dwCallback
, 0)
4206 TEST_FIELD_SIZE (MCI_OVLY_SAVE_PARMSA
, lpfilename
, 4)
4207 TEST_FIELD_ALIGN (MCI_OVLY_SAVE_PARMSA
, lpfilename
, 1)
4208 TEST_FIELD_OFFSET(MCI_OVLY_SAVE_PARMSA
, lpfilename
, 4)
4209 TEST_FIELD_SIZE (MCI_OVLY_SAVE_PARMSA
, rc
, 16)
4210 TEST_FIELD_ALIGN (MCI_OVLY_SAVE_PARMSA
, rc
, 1)
4211 TEST_FIELD_OFFSET(MCI_OVLY_SAVE_PARMSA
, rc
, 8)
4214 static void test_pack_MCI_OVLY_SAVE_PARMSW(void)
4216 /* MCI_OVLY_SAVE_PARMSW (pack 1) */
4217 TEST_TYPE_SIZE (MCI_OVLY_SAVE_PARMSW
, 24)
4218 TEST_TYPE_ALIGN (MCI_OVLY_SAVE_PARMSW
, 1)
4219 TEST_FIELD_SIZE (MCI_OVLY_SAVE_PARMSW
, dwCallback
, 4)
4220 TEST_FIELD_ALIGN (MCI_OVLY_SAVE_PARMSW
, dwCallback
, 1)
4221 TEST_FIELD_OFFSET(MCI_OVLY_SAVE_PARMSW
, dwCallback
, 0)
4222 TEST_FIELD_SIZE (MCI_OVLY_SAVE_PARMSW
, lpfilename
, 4)
4223 TEST_FIELD_ALIGN (MCI_OVLY_SAVE_PARMSW
, lpfilename
, 1)
4224 TEST_FIELD_OFFSET(MCI_OVLY_SAVE_PARMSW
, lpfilename
, 4)
4225 TEST_FIELD_SIZE (MCI_OVLY_SAVE_PARMSW
, rc
, 16)
4226 TEST_FIELD_ALIGN (MCI_OVLY_SAVE_PARMSW
, rc
, 1)
4227 TEST_FIELD_OFFSET(MCI_OVLY_SAVE_PARMSW
, rc
, 8)
4230 static void test_pack_MCI_OVLY_LOAD_PARMSA(void)
4232 /* MCI_OVLY_LOAD_PARMSA (pack 1) */
4233 TEST_TYPE_SIZE (MCI_OVLY_LOAD_PARMSA
, 24)
4234 TEST_TYPE_ALIGN (MCI_OVLY_LOAD_PARMSA
, 1)
4235 TEST_FIELD_SIZE (MCI_OVLY_LOAD_PARMSA
, dwCallback
, 4)
4236 TEST_FIELD_ALIGN (MCI_OVLY_LOAD_PARMSA
, dwCallback
, 1)
4237 TEST_FIELD_OFFSET(MCI_OVLY_LOAD_PARMSA
, dwCallback
, 0)
4238 TEST_FIELD_SIZE (MCI_OVLY_LOAD_PARMSA
, lpfilename
, 4)
4239 TEST_FIELD_ALIGN (MCI_OVLY_LOAD_PARMSA
, lpfilename
, 1)
4240 TEST_FIELD_OFFSET(MCI_OVLY_LOAD_PARMSA
, lpfilename
, 4)
4241 TEST_FIELD_SIZE (MCI_OVLY_LOAD_PARMSA
, rc
, 16)
4242 TEST_FIELD_ALIGN (MCI_OVLY_LOAD_PARMSA
, rc
, 1)
4243 TEST_FIELD_OFFSET(MCI_OVLY_LOAD_PARMSA
, rc
, 8)
4246 static void test_pack_MCI_OVLY_LOAD_PARMSW(void)
4248 /* MCI_OVLY_LOAD_PARMSW (pack 1) */
4249 TEST_TYPE_SIZE (MCI_OVLY_LOAD_PARMSW
, 24)
4250 TEST_TYPE_ALIGN (MCI_OVLY_LOAD_PARMSW
, 1)
4251 TEST_FIELD_SIZE (MCI_OVLY_LOAD_PARMSW
, dwCallback
, 4)
4252 TEST_FIELD_ALIGN (MCI_OVLY_LOAD_PARMSW
, dwCallback
, 1)
4253 TEST_FIELD_OFFSET(MCI_OVLY_LOAD_PARMSW
, dwCallback
, 0)
4254 TEST_FIELD_SIZE (MCI_OVLY_LOAD_PARMSW
, lpfilename
, 4)
4255 TEST_FIELD_ALIGN (MCI_OVLY_LOAD_PARMSW
, lpfilename
, 1)
4256 TEST_FIELD_OFFSET(MCI_OVLY_LOAD_PARMSW
, lpfilename
, 4)
4257 TEST_FIELD_SIZE (MCI_OVLY_LOAD_PARMSW
, rc
, 16)
4258 TEST_FIELD_ALIGN (MCI_OVLY_LOAD_PARMSW
, rc
, 1)
4259 TEST_FIELD_OFFSET(MCI_OVLY_LOAD_PARMSW
, rc
, 8)
4262 static void test_pack_MCI_DGV_RECT_PARMS(void)
4264 /* MCI_DGV_RECT_PARMS (pack 1) */
4265 TEST_TYPE_SIZE (MCI_DGV_RECT_PARMS
, 20)
4266 TEST_TYPE_ALIGN (MCI_DGV_RECT_PARMS
, 1)
4267 TEST_FIELD_SIZE (MCI_DGV_RECT_PARMS
, dwCallback
, 4)
4268 TEST_FIELD_ALIGN (MCI_DGV_RECT_PARMS
, dwCallback
, 1)
4269 TEST_FIELD_OFFSET(MCI_DGV_RECT_PARMS
, dwCallback
, 0)
4270 TEST_FIELD_SIZE (MCI_DGV_RECT_PARMS
, rc
, 16)
4271 TEST_FIELD_ALIGN (MCI_DGV_RECT_PARMS
, rc
, 1)
4272 TEST_FIELD_OFFSET(MCI_DGV_RECT_PARMS
, rc
, 4)
4275 static void test_pack_MCI_DGV_CAPTURE_PARMSA(void)
4277 /* MCI_DGV_CAPTURE_PARMSA (pack 1) */
4278 TEST_TYPE_SIZE (MCI_DGV_CAPTURE_PARMSA
, 24)
4279 TEST_TYPE_ALIGN (MCI_DGV_CAPTURE_PARMSA
, 1)
4280 TEST_FIELD_SIZE (MCI_DGV_CAPTURE_PARMSA
, dwCallback
, 4)
4281 TEST_FIELD_ALIGN (MCI_DGV_CAPTURE_PARMSA
, dwCallback
, 1)
4282 TEST_FIELD_OFFSET(MCI_DGV_CAPTURE_PARMSA
, dwCallback
, 0)
4283 TEST_FIELD_SIZE (MCI_DGV_CAPTURE_PARMSA
, lpstrFileName
, 4)
4284 TEST_FIELD_ALIGN (MCI_DGV_CAPTURE_PARMSA
, lpstrFileName
, 1)
4285 TEST_FIELD_OFFSET(MCI_DGV_CAPTURE_PARMSA
, lpstrFileName
, 4)
4286 TEST_FIELD_SIZE (MCI_DGV_CAPTURE_PARMSA
, rc
, 16)
4287 TEST_FIELD_ALIGN (MCI_DGV_CAPTURE_PARMSA
, rc
, 1)
4288 TEST_FIELD_OFFSET(MCI_DGV_CAPTURE_PARMSA
, rc
, 8)
4291 static void test_pack_MCI_DGV_CAPTURE_PARMSW(void)
4293 /* MCI_DGV_CAPTURE_PARMSW (pack 1) */
4294 TEST_TYPE_SIZE (MCI_DGV_CAPTURE_PARMSW
, 24)
4295 TEST_TYPE_ALIGN (MCI_DGV_CAPTURE_PARMSW
, 1)
4296 TEST_FIELD_SIZE (MCI_DGV_CAPTURE_PARMSW
, dwCallback
, 4)
4297 TEST_FIELD_ALIGN (MCI_DGV_CAPTURE_PARMSW
, dwCallback
, 1)
4298 TEST_FIELD_OFFSET(MCI_DGV_CAPTURE_PARMSW
, dwCallback
, 0)
4299 TEST_FIELD_SIZE (MCI_DGV_CAPTURE_PARMSW
, lpstrFileName
, 4)
4300 TEST_FIELD_ALIGN (MCI_DGV_CAPTURE_PARMSW
, lpstrFileName
, 1)
4301 TEST_FIELD_OFFSET(MCI_DGV_CAPTURE_PARMSW
, lpstrFileName
, 4)
4302 TEST_FIELD_SIZE (MCI_DGV_CAPTURE_PARMSW
, rc
, 16)
4303 TEST_FIELD_ALIGN (MCI_DGV_CAPTURE_PARMSW
, rc
, 1)
4304 TEST_FIELD_OFFSET(MCI_DGV_CAPTURE_PARMSW
, rc
, 8)
4307 static void test_pack_MCI_DGV_COPY_PARMS(void)
4309 /* MCI_DGV_COPY_PARMS (pack 1) */
4310 TEST_TYPE_SIZE (MCI_DGV_COPY_PARMS
, 36)
4311 TEST_TYPE_ALIGN (MCI_DGV_COPY_PARMS
, 1)
4312 TEST_FIELD_SIZE (MCI_DGV_COPY_PARMS
, dwCallback
, 4)
4313 TEST_FIELD_ALIGN (MCI_DGV_COPY_PARMS
, dwCallback
, 1)
4314 TEST_FIELD_OFFSET(MCI_DGV_COPY_PARMS
, dwCallback
, 0)
4315 TEST_FIELD_SIZE (MCI_DGV_COPY_PARMS
, dwFrom
, 4)
4316 TEST_FIELD_ALIGN (MCI_DGV_COPY_PARMS
, dwFrom
, 1)
4317 TEST_FIELD_OFFSET(MCI_DGV_COPY_PARMS
, dwFrom
, 4)
4318 TEST_FIELD_SIZE (MCI_DGV_COPY_PARMS
, dwTo
, 4)
4319 TEST_FIELD_ALIGN (MCI_DGV_COPY_PARMS
, dwTo
, 1)
4320 TEST_FIELD_OFFSET(MCI_DGV_COPY_PARMS
, dwTo
, 8)
4321 TEST_FIELD_SIZE (MCI_DGV_COPY_PARMS
, rc
, 16)
4322 TEST_FIELD_ALIGN (MCI_DGV_COPY_PARMS
, rc
, 1)
4323 TEST_FIELD_OFFSET(MCI_DGV_COPY_PARMS
, rc
, 12)
4324 TEST_FIELD_SIZE (MCI_DGV_COPY_PARMS
, dwAudioStream
, 4)
4325 TEST_FIELD_ALIGN (MCI_DGV_COPY_PARMS
, dwAudioStream
, 1)
4326 TEST_FIELD_OFFSET(MCI_DGV_COPY_PARMS
, dwAudioStream
, 28)
4327 TEST_FIELD_SIZE (MCI_DGV_COPY_PARMS
, dwVideoStream
, 4)
4328 TEST_FIELD_ALIGN (MCI_DGV_COPY_PARMS
, dwVideoStream
, 1)
4329 TEST_FIELD_OFFSET(MCI_DGV_COPY_PARMS
, dwVideoStream
, 32)
4332 static void test_pack_MCI_DGV_CUE_PARMS(void)
4334 /* MCI_DGV_CUE_PARMS (pack 1) */
4335 TEST_TYPE_SIZE (MCI_DGV_CUE_PARMS
, 8)
4336 TEST_TYPE_ALIGN (MCI_DGV_CUE_PARMS
, 1)
4337 TEST_FIELD_SIZE (MCI_DGV_CUE_PARMS
, dwCallback
, 4)
4338 TEST_FIELD_ALIGN (MCI_DGV_CUE_PARMS
, dwCallback
, 1)
4339 TEST_FIELD_OFFSET(MCI_DGV_CUE_PARMS
, dwCallback
, 0)
4340 TEST_FIELD_SIZE (MCI_DGV_CUE_PARMS
, dwTo
, 4)
4341 TEST_FIELD_ALIGN (MCI_DGV_CUE_PARMS
, dwTo
, 1)
4342 TEST_FIELD_OFFSET(MCI_DGV_CUE_PARMS
, dwTo
, 4)
4345 static void test_pack_MCI_DGV_CUT_PARMS(void)
4347 /* MCI_DGV_CUT_PARMS (pack 1) */
4348 TEST_TYPE_SIZE (MCI_DGV_CUT_PARMS
, 36)
4349 TEST_TYPE_ALIGN (MCI_DGV_CUT_PARMS
, 1)
4350 TEST_FIELD_SIZE (MCI_DGV_CUT_PARMS
, dwCallback
, 4)
4351 TEST_FIELD_ALIGN (MCI_DGV_CUT_PARMS
, dwCallback
, 1)
4352 TEST_FIELD_OFFSET(MCI_DGV_CUT_PARMS
, dwCallback
, 0)
4353 TEST_FIELD_SIZE (MCI_DGV_CUT_PARMS
, dwFrom
, 4)
4354 TEST_FIELD_ALIGN (MCI_DGV_CUT_PARMS
, dwFrom
, 1)
4355 TEST_FIELD_OFFSET(MCI_DGV_CUT_PARMS
, dwFrom
, 4)
4356 TEST_FIELD_SIZE (MCI_DGV_CUT_PARMS
, dwTo
, 4)
4357 TEST_FIELD_ALIGN (MCI_DGV_CUT_PARMS
, dwTo
, 1)
4358 TEST_FIELD_OFFSET(MCI_DGV_CUT_PARMS
, dwTo
, 8)
4359 TEST_FIELD_SIZE (MCI_DGV_CUT_PARMS
, rc
, 16)
4360 TEST_FIELD_ALIGN (MCI_DGV_CUT_PARMS
, rc
, 1)
4361 TEST_FIELD_OFFSET(MCI_DGV_CUT_PARMS
, rc
, 12)
4362 TEST_FIELD_SIZE (MCI_DGV_CUT_PARMS
, dwAudioStream
, 4)
4363 TEST_FIELD_ALIGN (MCI_DGV_CUT_PARMS
, dwAudioStream
, 1)
4364 TEST_FIELD_OFFSET(MCI_DGV_CUT_PARMS
, dwAudioStream
, 28)
4365 TEST_FIELD_SIZE (MCI_DGV_CUT_PARMS
, dwVideoStream
, 4)
4366 TEST_FIELD_ALIGN (MCI_DGV_CUT_PARMS
, dwVideoStream
, 1)
4367 TEST_FIELD_OFFSET(MCI_DGV_CUT_PARMS
, dwVideoStream
, 32)
4370 static void test_pack_MCI_DGV_DELETE_PARMS(void)
4372 /* MCI_DGV_DELETE_PARMS (pack 1) */
4373 TEST_TYPE_SIZE (MCI_DGV_DELETE_PARMS
, 36)
4374 TEST_TYPE_ALIGN (MCI_DGV_DELETE_PARMS
, 1)
4375 TEST_FIELD_SIZE (MCI_DGV_DELETE_PARMS
, dwCallback
, 4)
4376 TEST_FIELD_ALIGN (MCI_DGV_DELETE_PARMS
, dwCallback
, 1)
4377 TEST_FIELD_OFFSET(MCI_DGV_DELETE_PARMS
, dwCallback
, 0)
4378 TEST_FIELD_SIZE (MCI_DGV_DELETE_PARMS
, dwFrom
, 4)
4379 TEST_FIELD_ALIGN (MCI_DGV_DELETE_PARMS
, dwFrom
, 1)
4380 TEST_FIELD_OFFSET(MCI_DGV_DELETE_PARMS
, dwFrom
, 4)
4381 TEST_FIELD_SIZE (MCI_DGV_DELETE_PARMS
, dwTo
, 4)
4382 TEST_FIELD_ALIGN (MCI_DGV_DELETE_PARMS
, dwTo
, 1)
4383 TEST_FIELD_OFFSET(MCI_DGV_DELETE_PARMS
, dwTo
, 8)
4384 TEST_FIELD_SIZE (MCI_DGV_DELETE_PARMS
, rc
, 16)
4385 TEST_FIELD_ALIGN (MCI_DGV_DELETE_PARMS
, rc
, 1)
4386 TEST_FIELD_OFFSET(MCI_DGV_DELETE_PARMS
, rc
, 12)
4387 TEST_FIELD_SIZE (MCI_DGV_DELETE_PARMS
, dwAudioStream
, 4)
4388 TEST_FIELD_ALIGN (MCI_DGV_DELETE_PARMS
, dwAudioStream
, 1)
4389 TEST_FIELD_OFFSET(MCI_DGV_DELETE_PARMS
, dwAudioStream
, 28)
4390 TEST_FIELD_SIZE (MCI_DGV_DELETE_PARMS
, dwVideoStream
, 4)
4391 TEST_FIELD_ALIGN (MCI_DGV_DELETE_PARMS
, dwVideoStream
, 1)
4392 TEST_FIELD_OFFSET(MCI_DGV_DELETE_PARMS
, dwVideoStream
, 32)
4395 static void test_pack_MCI_DGV_INFO_PARMSA(void)
4397 /* MCI_DGV_INFO_PARMSA (pack 1) */
4398 TEST_TYPE_SIZE (MCI_DGV_INFO_PARMSA
, 16)
4399 TEST_TYPE_ALIGN (MCI_DGV_INFO_PARMSA
, 1)
4400 TEST_FIELD_SIZE (MCI_DGV_INFO_PARMSA
, dwCallback
, 4)
4401 TEST_FIELD_ALIGN (MCI_DGV_INFO_PARMSA
, dwCallback
, 1)
4402 TEST_FIELD_OFFSET(MCI_DGV_INFO_PARMSA
, dwCallback
, 0)
4403 TEST_FIELD_SIZE (MCI_DGV_INFO_PARMSA
, lpstrReturn
, 4)
4404 TEST_FIELD_ALIGN (MCI_DGV_INFO_PARMSA
, lpstrReturn
, 1)
4405 TEST_FIELD_OFFSET(MCI_DGV_INFO_PARMSA
, lpstrReturn
, 4)
4406 TEST_FIELD_SIZE (MCI_DGV_INFO_PARMSA
, dwRetSize
, 4)
4407 TEST_FIELD_ALIGN (MCI_DGV_INFO_PARMSA
, dwRetSize
, 1)
4408 TEST_FIELD_OFFSET(MCI_DGV_INFO_PARMSA
, dwRetSize
, 8)
4409 TEST_FIELD_SIZE (MCI_DGV_INFO_PARMSA
, dwItem
, 4)
4410 TEST_FIELD_ALIGN (MCI_DGV_INFO_PARMSA
, dwItem
, 1)
4411 TEST_FIELD_OFFSET(MCI_DGV_INFO_PARMSA
, dwItem
, 12)
4414 static void test_pack_MCI_DGV_INFO_PARMSW(void)
4416 /* MCI_DGV_INFO_PARMSW (pack 1) */
4417 TEST_TYPE_SIZE (MCI_DGV_INFO_PARMSW
, 16)
4418 TEST_TYPE_ALIGN (MCI_DGV_INFO_PARMSW
, 1)
4419 TEST_FIELD_SIZE (MCI_DGV_INFO_PARMSW
, dwCallback
, 4)
4420 TEST_FIELD_ALIGN (MCI_DGV_INFO_PARMSW
, dwCallback
, 1)
4421 TEST_FIELD_OFFSET(MCI_DGV_INFO_PARMSW
, dwCallback
, 0)
4422 TEST_FIELD_SIZE (MCI_DGV_INFO_PARMSW
, lpstrReturn
, 4)
4423 TEST_FIELD_ALIGN (MCI_DGV_INFO_PARMSW
, lpstrReturn
, 1)
4424 TEST_FIELD_OFFSET(MCI_DGV_INFO_PARMSW
, lpstrReturn
, 4)
4425 TEST_FIELD_SIZE (MCI_DGV_INFO_PARMSW
, dwRetSize
, 4)
4426 TEST_FIELD_ALIGN (MCI_DGV_INFO_PARMSW
, dwRetSize
, 1)
4427 TEST_FIELD_OFFSET(MCI_DGV_INFO_PARMSW
, dwRetSize
, 8)
4428 TEST_FIELD_SIZE (MCI_DGV_INFO_PARMSW
, dwItem
, 4)
4429 TEST_FIELD_ALIGN (MCI_DGV_INFO_PARMSW
, dwItem
, 1)
4430 TEST_FIELD_OFFSET(MCI_DGV_INFO_PARMSW
, dwItem
, 12)
4433 static void test_pack_MCI_DGV_LIST_PARMSA(void)
4435 /* MCI_DGV_LIST_PARMSA (pack 1) */
4436 TEST_TYPE_SIZE (MCI_DGV_LIST_PARMSA
, 24)
4437 TEST_TYPE_ALIGN (MCI_DGV_LIST_PARMSA
, 1)
4438 TEST_FIELD_SIZE (MCI_DGV_LIST_PARMSA
, dwCallback
, 4)
4439 TEST_FIELD_ALIGN (MCI_DGV_LIST_PARMSA
, dwCallback
, 1)
4440 TEST_FIELD_OFFSET(MCI_DGV_LIST_PARMSA
, dwCallback
, 0)
4441 TEST_FIELD_SIZE (MCI_DGV_LIST_PARMSA
, lpstrReturn
, 4)
4442 TEST_FIELD_ALIGN (MCI_DGV_LIST_PARMSA
, lpstrReturn
, 1)
4443 TEST_FIELD_OFFSET(MCI_DGV_LIST_PARMSA
, lpstrReturn
, 4)
4444 TEST_FIELD_SIZE (MCI_DGV_LIST_PARMSA
, dwLength
, 4)
4445 TEST_FIELD_ALIGN (MCI_DGV_LIST_PARMSA
, dwLength
, 1)
4446 TEST_FIELD_OFFSET(MCI_DGV_LIST_PARMSA
, dwLength
, 8)
4447 TEST_FIELD_SIZE (MCI_DGV_LIST_PARMSA
, dwNumber
, 4)
4448 TEST_FIELD_ALIGN (MCI_DGV_LIST_PARMSA
, dwNumber
, 1)
4449 TEST_FIELD_OFFSET(MCI_DGV_LIST_PARMSA
, dwNumber
, 12)
4450 TEST_FIELD_SIZE (MCI_DGV_LIST_PARMSA
, dwItem
, 4)
4451 TEST_FIELD_ALIGN (MCI_DGV_LIST_PARMSA
, dwItem
, 1)
4452 TEST_FIELD_OFFSET(MCI_DGV_LIST_PARMSA
, dwItem
, 16)
4453 TEST_FIELD_SIZE (MCI_DGV_LIST_PARMSA
, lpstrAlgorithm
, 4)
4454 TEST_FIELD_ALIGN (MCI_DGV_LIST_PARMSA
, lpstrAlgorithm
, 1)
4455 TEST_FIELD_OFFSET(MCI_DGV_LIST_PARMSA
, lpstrAlgorithm
, 20)
4458 static void test_pack_MCI_DGV_LIST_PARMSW(void)
4460 /* MCI_DGV_LIST_PARMSW (pack 1) */
4461 TEST_TYPE_SIZE (MCI_DGV_LIST_PARMSW
, 24)
4462 TEST_TYPE_ALIGN (MCI_DGV_LIST_PARMSW
, 1)
4463 TEST_FIELD_SIZE (MCI_DGV_LIST_PARMSW
, dwCallback
, 4)
4464 TEST_FIELD_ALIGN (MCI_DGV_LIST_PARMSW
, dwCallback
, 1)
4465 TEST_FIELD_OFFSET(MCI_DGV_LIST_PARMSW
, dwCallback
, 0)
4466 TEST_FIELD_SIZE (MCI_DGV_LIST_PARMSW
, lpstrReturn
, 4)
4467 TEST_FIELD_ALIGN (MCI_DGV_LIST_PARMSW
, lpstrReturn
, 1)
4468 TEST_FIELD_OFFSET(MCI_DGV_LIST_PARMSW
, lpstrReturn
, 4)
4469 TEST_FIELD_SIZE (MCI_DGV_LIST_PARMSW
, dwLength
, 4)
4470 TEST_FIELD_ALIGN (MCI_DGV_LIST_PARMSW
, dwLength
, 1)
4471 TEST_FIELD_OFFSET(MCI_DGV_LIST_PARMSW
, dwLength
, 8)
4472 TEST_FIELD_SIZE (MCI_DGV_LIST_PARMSW
, dwNumber
, 4)
4473 TEST_FIELD_ALIGN (MCI_DGV_LIST_PARMSW
, dwNumber
, 1)
4474 TEST_FIELD_OFFSET(MCI_DGV_LIST_PARMSW
, dwNumber
, 12)
4475 TEST_FIELD_SIZE (MCI_DGV_LIST_PARMSW
, dwItem
, 4)
4476 TEST_FIELD_ALIGN (MCI_DGV_LIST_PARMSW
, dwItem
, 1)
4477 TEST_FIELD_OFFSET(MCI_DGV_LIST_PARMSW
, dwItem
, 16)
4478 TEST_FIELD_SIZE (MCI_DGV_LIST_PARMSW
, lpstrAlgorithm
, 4)
4479 TEST_FIELD_ALIGN (MCI_DGV_LIST_PARMSW
, lpstrAlgorithm
, 1)
4480 TEST_FIELD_OFFSET(MCI_DGV_LIST_PARMSW
, lpstrAlgorithm
, 20)
4483 static void test_pack_MCI_DGV_MONITOR_PARMS(void)
4485 /* MCI_DGV_MONITOR_PARMS (pack 1) */
4486 TEST_TYPE_SIZE (MCI_DGV_MONITOR_PARMS
, 12)
4487 TEST_TYPE_ALIGN (MCI_DGV_MONITOR_PARMS
, 1)
4488 TEST_FIELD_SIZE (MCI_DGV_MONITOR_PARMS
, dwCallback
, 4)
4489 TEST_FIELD_ALIGN (MCI_DGV_MONITOR_PARMS
, dwCallback
, 1)
4490 TEST_FIELD_OFFSET(MCI_DGV_MONITOR_PARMS
, dwCallback
, 0)
4491 TEST_FIELD_SIZE (MCI_DGV_MONITOR_PARMS
, dwSource
, 4)
4492 TEST_FIELD_ALIGN (MCI_DGV_MONITOR_PARMS
, dwSource
, 1)
4493 TEST_FIELD_OFFSET(MCI_DGV_MONITOR_PARMS
, dwSource
, 4)
4494 TEST_FIELD_SIZE (MCI_DGV_MONITOR_PARMS
, dwMethod
, 4)
4495 TEST_FIELD_ALIGN (MCI_DGV_MONITOR_PARMS
, dwMethod
, 1)
4496 TEST_FIELD_OFFSET(MCI_DGV_MONITOR_PARMS
, dwMethod
, 8)
4499 static void test_pack_MCI_DGV_OPEN_PARMSA(void)
4501 /* MCI_DGV_OPEN_PARMSA (pack 1) */
4502 TEST_TYPE_SIZE (MCI_DGV_OPEN_PARMSA
, 28)
4503 TEST_TYPE_ALIGN (MCI_DGV_OPEN_PARMSA
, 1)
4504 TEST_FIELD_SIZE (MCI_DGV_OPEN_PARMSA
, dwCallback
, 4)
4505 TEST_FIELD_ALIGN (MCI_DGV_OPEN_PARMSA
, dwCallback
, 1)
4506 TEST_FIELD_OFFSET(MCI_DGV_OPEN_PARMSA
, dwCallback
, 0)
4507 TEST_FIELD_SIZE (MCI_DGV_OPEN_PARMSA
, wDeviceID
, 4)
4508 TEST_FIELD_ALIGN (MCI_DGV_OPEN_PARMSA
, wDeviceID
, 1)
4509 TEST_FIELD_OFFSET(MCI_DGV_OPEN_PARMSA
, wDeviceID
, 4)
4510 TEST_FIELD_SIZE (MCI_DGV_OPEN_PARMSA
, lpstrDeviceType
, 4)
4511 TEST_FIELD_ALIGN (MCI_DGV_OPEN_PARMSA
, lpstrDeviceType
, 1)
4512 TEST_FIELD_OFFSET(MCI_DGV_OPEN_PARMSA
, lpstrDeviceType
, 8)
4513 TEST_FIELD_SIZE (MCI_DGV_OPEN_PARMSA
, lpstrElementName
, 4)
4514 TEST_FIELD_ALIGN (MCI_DGV_OPEN_PARMSA
, lpstrElementName
, 1)
4515 TEST_FIELD_OFFSET(MCI_DGV_OPEN_PARMSA
, lpstrElementName
, 12)
4516 TEST_FIELD_SIZE (MCI_DGV_OPEN_PARMSA
, lpstrAlias
, 4)
4517 TEST_FIELD_ALIGN (MCI_DGV_OPEN_PARMSA
, lpstrAlias
, 1)
4518 TEST_FIELD_OFFSET(MCI_DGV_OPEN_PARMSA
, lpstrAlias
, 16)
4519 TEST_FIELD_SIZE (MCI_DGV_OPEN_PARMSA
, dwStyle
, 4)
4520 TEST_FIELD_ALIGN (MCI_DGV_OPEN_PARMSA
, dwStyle
, 1)
4521 TEST_FIELD_OFFSET(MCI_DGV_OPEN_PARMSA
, dwStyle
, 20)
4522 TEST_FIELD_SIZE (MCI_DGV_OPEN_PARMSA
, hWndParent
, 4)
4523 TEST_FIELD_ALIGN (MCI_DGV_OPEN_PARMSA
, hWndParent
, 1)
4524 TEST_FIELD_OFFSET(MCI_DGV_OPEN_PARMSA
, hWndParent
, 24)
4527 static void test_pack_MCI_DGV_OPEN_PARMSW(void)
4529 /* MCI_DGV_OPEN_PARMSW (pack 1) */
4530 TEST_TYPE_SIZE (MCI_DGV_OPEN_PARMSW
, 28)
4531 TEST_TYPE_ALIGN (MCI_DGV_OPEN_PARMSW
, 1)
4532 TEST_FIELD_SIZE (MCI_DGV_OPEN_PARMSW
, dwCallback
, 4)
4533 TEST_FIELD_ALIGN (MCI_DGV_OPEN_PARMSW
, dwCallback
, 1)
4534 TEST_FIELD_OFFSET(MCI_DGV_OPEN_PARMSW
, dwCallback
, 0)
4535 TEST_FIELD_SIZE (MCI_DGV_OPEN_PARMSW
, wDeviceID
, 4)
4536 TEST_FIELD_ALIGN (MCI_DGV_OPEN_PARMSW
, wDeviceID
, 1)
4537 TEST_FIELD_OFFSET(MCI_DGV_OPEN_PARMSW
, wDeviceID
, 4)
4538 TEST_FIELD_SIZE (MCI_DGV_OPEN_PARMSW
, lpstrDeviceType
, 4)
4539 TEST_FIELD_ALIGN (MCI_DGV_OPEN_PARMSW
, lpstrDeviceType
, 1)
4540 TEST_FIELD_OFFSET(MCI_DGV_OPEN_PARMSW
, lpstrDeviceType
, 8)
4541 TEST_FIELD_SIZE (MCI_DGV_OPEN_PARMSW
, lpstrElementName
, 4)
4542 TEST_FIELD_ALIGN (MCI_DGV_OPEN_PARMSW
, lpstrElementName
, 1)
4543 TEST_FIELD_OFFSET(MCI_DGV_OPEN_PARMSW
, lpstrElementName
, 12)
4544 TEST_FIELD_SIZE (MCI_DGV_OPEN_PARMSW
, lpstrAlias
, 4)
4545 TEST_FIELD_ALIGN (MCI_DGV_OPEN_PARMSW
, lpstrAlias
, 1)
4546 TEST_FIELD_OFFSET(MCI_DGV_OPEN_PARMSW
, lpstrAlias
, 16)
4547 TEST_FIELD_SIZE (MCI_DGV_OPEN_PARMSW
, dwStyle
, 4)
4548 TEST_FIELD_ALIGN (MCI_DGV_OPEN_PARMSW
, dwStyle
, 1)
4549 TEST_FIELD_OFFSET(MCI_DGV_OPEN_PARMSW
, dwStyle
, 20)
4550 TEST_FIELD_SIZE (MCI_DGV_OPEN_PARMSW
, hWndParent
, 4)
4551 TEST_FIELD_ALIGN (MCI_DGV_OPEN_PARMSW
, hWndParent
, 1)
4552 TEST_FIELD_OFFSET(MCI_DGV_OPEN_PARMSW
, hWndParent
, 24)
4555 static void test_pack_MCI_DGV_PASTE_PARMS(void)
4557 /* MCI_DGV_PASTE_PARMS (pack 1) */
4558 TEST_TYPE_SIZE (MCI_DGV_PASTE_PARMS
, 32)
4559 TEST_TYPE_ALIGN (MCI_DGV_PASTE_PARMS
, 1)
4560 TEST_FIELD_SIZE (MCI_DGV_PASTE_PARMS
, dwCallback
, 4)
4561 TEST_FIELD_ALIGN (MCI_DGV_PASTE_PARMS
, dwCallback
, 1)
4562 TEST_FIELD_OFFSET(MCI_DGV_PASTE_PARMS
, dwCallback
, 0)
4563 TEST_FIELD_SIZE (MCI_DGV_PASTE_PARMS
, dwTo
, 4)
4564 TEST_FIELD_ALIGN (MCI_DGV_PASTE_PARMS
, dwTo
, 1)
4565 TEST_FIELD_OFFSET(MCI_DGV_PASTE_PARMS
, dwTo
, 4)
4566 TEST_FIELD_SIZE (MCI_DGV_PASTE_PARMS
, rc
, 16)
4567 TEST_FIELD_ALIGN (MCI_DGV_PASTE_PARMS
, rc
, 1)
4568 TEST_FIELD_OFFSET(MCI_DGV_PASTE_PARMS
, rc
, 8)
4569 TEST_FIELD_SIZE (MCI_DGV_PASTE_PARMS
, dwAudioStream
, 4)
4570 TEST_FIELD_ALIGN (MCI_DGV_PASTE_PARMS
, dwAudioStream
, 1)
4571 TEST_FIELD_OFFSET(MCI_DGV_PASTE_PARMS
, dwAudioStream
, 24)
4572 TEST_FIELD_SIZE (MCI_DGV_PASTE_PARMS
, dwVideoStream
, 4)
4573 TEST_FIELD_ALIGN (MCI_DGV_PASTE_PARMS
, dwVideoStream
, 1)
4574 TEST_FIELD_OFFSET(MCI_DGV_PASTE_PARMS
, dwVideoStream
, 28)
4577 static void test_pack_MCI_DGV_QUALITY_PARMSA(void)
4579 /* MCI_DGV_QUALITY_PARMSA (pack 1) */
4580 TEST_TYPE_SIZE (MCI_DGV_QUALITY_PARMSA
, 20)
4581 TEST_TYPE_ALIGN (MCI_DGV_QUALITY_PARMSA
, 1)
4582 TEST_FIELD_SIZE (MCI_DGV_QUALITY_PARMSA
, dwCallback
, 4)
4583 TEST_FIELD_ALIGN (MCI_DGV_QUALITY_PARMSA
, dwCallback
, 1)
4584 TEST_FIELD_OFFSET(MCI_DGV_QUALITY_PARMSA
, dwCallback
, 0)
4585 TEST_FIELD_SIZE (MCI_DGV_QUALITY_PARMSA
, dwItem
, 4)
4586 TEST_FIELD_ALIGN (MCI_DGV_QUALITY_PARMSA
, dwItem
, 1)
4587 TEST_FIELD_OFFSET(MCI_DGV_QUALITY_PARMSA
, dwItem
, 4)
4588 TEST_FIELD_SIZE (MCI_DGV_QUALITY_PARMSA
, lpstrName
, 4)
4589 TEST_FIELD_ALIGN (MCI_DGV_QUALITY_PARMSA
, lpstrName
, 1)
4590 TEST_FIELD_OFFSET(MCI_DGV_QUALITY_PARMSA
, lpstrName
, 8)
4591 TEST_FIELD_SIZE (MCI_DGV_QUALITY_PARMSA
, lpstrAlgorithm
, 4)
4592 TEST_FIELD_ALIGN (MCI_DGV_QUALITY_PARMSA
, lpstrAlgorithm
, 1)
4593 TEST_FIELD_OFFSET(MCI_DGV_QUALITY_PARMSA
, lpstrAlgorithm
, 12)
4594 TEST_FIELD_SIZE (MCI_DGV_QUALITY_PARMSA
, dwHandle
, 4)
4595 TEST_FIELD_ALIGN (MCI_DGV_QUALITY_PARMSA
, dwHandle
, 1)
4596 TEST_FIELD_OFFSET(MCI_DGV_QUALITY_PARMSA
, dwHandle
, 16)
4599 static void test_pack_MCI_DGV_QUALITY_PARMSW(void)
4601 /* MCI_DGV_QUALITY_PARMSW (pack 1) */
4602 TEST_TYPE_SIZE (MCI_DGV_QUALITY_PARMSW
, 20)
4603 TEST_TYPE_ALIGN (MCI_DGV_QUALITY_PARMSW
, 1)
4604 TEST_FIELD_SIZE (MCI_DGV_QUALITY_PARMSW
, dwCallback
, 4)
4605 TEST_FIELD_ALIGN (MCI_DGV_QUALITY_PARMSW
, dwCallback
, 1)
4606 TEST_FIELD_OFFSET(MCI_DGV_QUALITY_PARMSW
, dwCallback
, 0)
4607 TEST_FIELD_SIZE (MCI_DGV_QUALITY_PARMSW
, dwItem
, 4)
4608 TEST_FIELD_ALIGN (MCI_DGV_QUALITY_PARMSW
, dwItem
, 1)
4609 TEST_FIELD_OFFSET(MCI_DGV_QUALITY_PARMSW
, dwItem
, 4)
4610 TEST_FIELD_SIZE (MCI_DGV_QUALITY_PARMSW
, lpstrName
, 4)
4611 TEST_FIELD_ALIGN (MCI_DGV_QUALITY_PARMSW
, lpstrName
, 1)
4612 TEST_FIELD_OFFSET(MCI_DGV_QUALITY_PARMSW
, lpstrName
, 8)
4613 TEST_FIELD_SIZE (MCI_DGV_QUALITY_PARMSW
, lpstrAlgorithm
, 4)
4614 TEST_FIELD_ALIGN (MCI_DGV_QUALITY_PARMSW
, lpstrAlgorithm
, 1)
4615 TEST_FIELD_OFFSET(MCI_DGV_QUALITY_PARMSW
, lpstrAlgorithm
, 12)
4616 TEST_FIELD_SIZE (MCI_DGV_QUALITY_PARMSW
, dwHandle
, 4)
4617 TEST_FIELD_ALIGN (MCI_DGV_QUALITY_PARMSW
, dwHandle
, 1)
4618 TEST_FIELD_OFFSET(MCI_DGV_QUALITY_PARMSW
, dwHandle
, 16)
4621 static void test_pack_MCI_DGV_RECORD_PARMS(void)
4623 /* MCI_DGV_RECORD_PARMS (pack 1) */
4624 TEST_TYPE_SIZE (MCI_DGV_RECORD_PARMS
, 36)
4625 TEST_TYPE_ALIGN (MCI_DGV_RECORD_PARMS
, 1)
4626 TEST_FIELD_SIZE (MCI_DGV_RECORD_PARMS
, dwCallback
, 4)
4627 TEST_FIELD_ALIGN (MCI_DGV_RECORD_PARMS
, dwCallback
, 1)
4628 TEST_FIELD_OFFSET(MCI_DGV_RECORD_PARMS
, dwCallback
, 0)
4629 TEST_FIELD_SIZE (MCI_DGV_RECORD_PARMS
, dwFrom
, 4)
4630 TEST_FIELD_ALIGN (MCI_DGV_RECORD_PARMS
, dwFrom
, 1)
4631 TEST_FIELD_OFFSET(MCI_DGV_RECORD_PARMS
, dwFrom
, 4)
4632 TEST_FIELD_SIZE (MCI_DGV_RECORD_PARMS
, dwTo
, 4)
4633 TEST_FIELD_ALIGN (MCI_DGV_RECORD_PARMS
, dwTo
, 1)
4634 TEST_FIELD_OFFSET(MCI_DGV_RECORD_PARMS
, dwTo
, 8)
4635 TEST_FIELD_SIZE (MCI_DGV_RECORD_PARMS
, rc
, 16)
4636 TEST_FIELD_ALIGN (MCI_DGV_RECORD_PARMS
, rc
, 1)
4637 TEST_FIELD_OFFSET(MCI_DGV_RECORD_PARMS
, rc
, 12)
4638 TEST_FIELD_SIZE (MCI_DGV_RECORD_PARMS
, dwAudioStream
, 4)
4639 TEST_FIELD_ALIGN (MCI_DGV_RECORD_PARMS
, dwAudioStream
, 1)
4640 TEST_FIELD_OFFSET(MCI_DGV_RECORD_PARMS
, dwAudioStream
, 28)
4641 TEST_FIELD_SIZE (MCI_DGV_RECORD_PARMS
, dwVideoStream
, 4)
4642 TEST_FIELD_ALIGN (MCI_DGV_RECORD_PARMS
, dwVideoStream
, 1)
4643 TEST_FIELD_OFFSET(MCI_DGV_RECORD_PARMS
, dwVideoStream
, 32)
4646 static void test_pack_MCI_DGV_RESERVE_PARMSA(void)
4648 /* MCI_DGV_RESERVE_PARMSA (pack 1) */
4649 TEST_TYPE_SIZE (MCI_DGV_RESERVE_PARMSA
, 12)
4650 TEST_TYPE_ALIGN (MCI_DGV_RESERVE_PARMSA
, 1)
4651 TEST_FIELD_SIZE (MCI_DGV_RESERVE_PARMSA
, dwCallback
, 4)
4652 TEST_FIELD_ALIGN (MCI_DGV_RESERVE_PARMSA
, dwCallback
, 1)
4653 TEST_FIELD_OFFSET(MCI_DGV_RESERVE_PARMSA
, dwCallback
, 0)
4654 TEST_FIELD_SIZE (MCI_DGV_RESERVE_PARMSA
, lpstrPath
, 4)
4655 TEST_FIELD_ALIGN (MCI_DGV_RESERVE_PARMSA
, lpstrPath
, 1)
4656 TEST_FIELD_OFFSET(MCI_DGV_RESERVE_PARMSA
, lpstrPath
, 4)
4657 TEST_FIELD_SIZE (MCI_DGV_RESERVE_PARMSA
, dwSize
, 4)
4658 TEST_FIELD_ALIGN (MCI_DGV_RESERVE_PARMSA
, dwSize
, 1)
4659 TEST_FIELD_OFFSET(MCI_DGV_RESERVE_PARMSA
, dwSize
, 8)
4662 static void test_pack_MCI_DGV_RESERVE_PARMSW(void)
4664 /* MCI_DGV_RESERVE_PARMSW (pack 1) */
4665 TEST_TYPE_SIZE (MCI_DGV_RESERVE_PARMSW
, 12)
4666 TEST_TYPE_ALIGN (MCI_DGV_RESERVE_PARMSW
, 1)
4667 TEST_FIELD_SIZE (MCI_DGV_RESERVE_PARMSW
, dwCallback
, 4)
4668 TEST_FIELD_ALIGN (MCI_DGV_RESERVE_PARMSW
, dwCallback
, 1)
4669 TEST_FIELD_OFFSET(MCI_DGV_RESERVE_PARMSW
, dwCallback
, 0)
4670 TEST_FIELD_SIZE (MCI_DGV_RESERVE_PARMSW
, lpstrPath
, 4)
4671 TEST_FIELD_ALIGN (MCI_DGV_RESERVE_PARMSW
, lpstrPath
, 1)
4672 TEST_FIELD_OFFSET(MCI_DGV_RESERVE_PARMSW
, lpstrPath
, 4)
4673 TEST_FIELD_SIZE (MCI_DGV_RESERVE_PARMSW
, dwSize
, 4)
4674 TEST_FIELD_ALIGN (MCI_DGV_RESERVE_PARMSW
, dwSize
, 1)
4675 TEST_FIELD_OFFSET(MCI_DGV_RESERVE_PARMSW
, dwSize
, 8)
4678 static void test_pack_MCI_DGV_RESTORE_PARMSA(void)
4680 /* MCI_DGV_RESTORE_PARMSA (pack 1) */
4681 TEST_TYPE_SIZE (MCI_DGV_RESTORE_PARMSA
, 24)
4682 TEST_TYPE_ALIGN (MCI_DGV_RESTORE_PARMSA
, 1)
4683 TEST_FIELD_SIZE (MCI_DGV_RESTORE_PARMSA
, dwCallback
, 4)
4684 TEST_FIELD_ALIGN (MCI_DGV_RESTORE_PARMSA
, dwCallback
, 1)
4685 TEST_FIELD_OFFSET(MCI_DGV_RESTORE_PARMSA
, dwCallback
, 0)
4686 TEST_FIELD_SIZE (MCI_DGV_RESTORE_PARMSA
, lpstrFileName
, 4)
4687 TEST_FIELD_ALIGN (MCI_DGV_RESTORE_PARMSA
, lpstrFileName
, 1)
4688 TEST_FIELD_OFFSET(MCI_DGV_RESTORE_PARMSA
, lpstrFileName
, 4)
4689 TEST_FIELD_SIZE (MCI_DGV_RESTORE_PARMSA
, rc
, 16)
4690 TEST_FIELD_ALIGN (MCI_DGV_RESTORE_PARMSA
, rc
, 1)
4691 TEST_FIELD_OFFSET(MCI_DGV_RESTORE_PARMSA
, rc
, 8)
4694 static void test_pack_MCI_DGV_RESTORE_PARMSW(void)
4696 /* MCI_DGV_RESTORE_PARMSW (pack 1) */
4697 TEST_TYPE_SIZE (MCI_DGV_RESTORE_PARMSW
, 24)
4698 TEST_TYPE_ALIGN (MCI_DGV_RESTORE_PARMSW
, 1)
4699 TEST_FIELD_SIZE (MCI_DGV_RESTORE_PARMSW
, dwCallback
, 4)
4700 TEST_FIELD_ALIGN (MCI_DGV_RESTORE_PARMSW
, dwCallback
, 1)
4701 TEST_FIELD_OFFSET(MCI_DGV_RESTORE_PARMSW
, dwCallback
, 0)
4702 TEST_FIELD_SIZE (MCI_DGV_RESTORE_PARMSW
, lpstrFileName
, 4)
4703 TEST_FIELD_ALIGN (MCI_DGV_RESTORE_PARMSW
, lpstrFileName
, 1)
4704 TEST_FIELD_OFFSET(MCI_DGV_RESTORE_PARMSW
, lpstrFileName
, 4)
4705 TEST_FIELD_SIZE (MCI_DGV_RESTORE_PARMSW
, rc
, 16)
4706 TEST_FIELD_ALIGN (MCI_DGV_RESTORE_PARMSW
, rc
, 1)
4707 TEST_FIELD_OFFSET(MCI_DGV_RESTORE_PARMSW
, rc
, 8)
4710 static void test_pack_MCI_DGV_SAVE_PARMSA(void)
4712 /* MCI_DGV_SAVE_PARMSA (pack 1) */
4713 TEST_TYPE_SIZE (MCI_DGV_SAVE_PARMSA
, 24)
4714 TEST_TYPE_ALIGN (MCI_DGV_SAVE_PARMSA
, 1)
4715 TEST_FIELD_SIZE (MCI_DGV_SAVE_PARMSA
, dwCallback
, 4)
4716 TEST_FIELD_ALIGN (MCI_DGV_SAVE_PARMSA
, dwCallback
, 1)
4717 TEST_FIELD_OFFSET(MCI_DGV_SAVE_PARMSA
, dwCallback
, 0)
4718 TEST_FIELD_SIZE (MCI_DGV_SAVE_PARMSA
, lpstrFileName
, 4)
4719 TEST_FIELD_ALIGN (MCI_DGV_SAVE_PARMSA
, lpstrFileName
, 1)
4720 TEST_FIELD_OFFSET(MCI_DGV_SAVE_PARMSA
, lpstrFileName
, 4)
4721 TEST_FIELD_SIZE (MCI_DGV_SAVE_PARMSA
, rc
, 16)
4722 TEST_FIELD_ALIGN (MCI_DGV_SAVE_PARMSA
, rc
, 1)
4723 TEST_FIELD_OFFSET(MCI_DGV_SAVE_PARMSA
, rc
, 8)
4726 static void test_pack_MCI_DGV_SAVE_PARMSW(void)
4728 /* MCI_DGV_SAVE_PARMSW (pack 1) */
4729 TEST_TYPE_SIZE (MCI_DGV_SAVE_PARMSW
, 24)
4730 TEST_TYPE_ALIGN (MCI_DGV_SAVE_PARMSW
, 1)
4731 TEST_FIELD_SIZE (MCI_DGV_SAVE_PARMSW
, dwCallback
, 4)
4732 TEST_FIELD_ALIGN (MCI_DGV_SAVE_PARMSW
, dwCallback
, 1)
4733 TEST_FIELD_OFFSET(MCI_DGV_SAVE_PARMSW
, dwCallback
, 0)
4734 TEST_FIELD_SIZE (MCI_DGV_SAVE_PARMSW
, lpstrFileName
, 4)
4735 TEST_FIELD_ALIGN (MCI_DGV_SAVE_PARMSW
, lpstrFileName
, 1)
4736 TEST_FIELD_OFFSET(MCI_DGV_SAVE_PARMSW
, lpstrFileName
, 4)
4737 TEST_FIELD_SIZE (MCI_DGV_SAVE_PARMSW
, rc
, 16)
4738 TEST_FIELD_ALIGN (MCI_DGV_SAVE_PARMSW
, rc
, 1)
4739 TEST_FIELD_OFFSET(MCI_DGV_SAVE_PARMSW
, rc
, 8)
4742 static void test_pack_MCI_DGV_SET_PARMS(void)
4744 /* MCI_DGV_SET_PARMS (pack 1) */
4745 TEST_TYPE_SIZE (MCI_DGV_SET_PARMS
, 20)
4746 TEST_TYPE_ALIGN (MCI_DGV_SET_PARMS
, 1)
4747 TEST_FIELD_SIZE (MCI_DGV_SET_PARMS
, dwCallback
, 4)
4748 TEST_FIELD_ALIGN (MCI_DGV_SET_PARMS
, dwCallback
, 1)
4749 TEST_FIELD_OFFSET(MCI_DGV_SET_PARMS
, dwCallback
, 0)
4750 TEST_FIELD_SIZE (MCI_DGV_SET_PARMS
, dwTimeFormat
, 4)
4751 TEST_FIELD_ALIGN (MCI_DGV_SET_PARMS
, dwTimeFormat
, 1)
4752 TEST_FIELD_OFFSET(MCI_DGV_SET_PARMS
, dwTimeFormat
, 4)
4753 TEST_FIELD_SIZE (MCI_DGV_SET_PARMS
, dwAudio
, 4)
4754 TEST_FIELD_ALIGN (MCI_DGV_SET_PARMS
, dwAudio
, 1)
4755 TEST_FIELD_OFFSET(MCI_DGV_SET_PARMS
, dwAudio
, 8)
4756 TEST_FIELD_SIZE (MCI_DGV_SET_PARMS
, dwFileFormat
, 4)
4757 TEST_FIELD_ALIGN (MCI_DGV_SET_PARMS
, dwFileFormat
, 1)
4758 TEST_FIELD_OFFSET(MCI_DGV_SET_PARMS
, dwFileFormat
, 12)
4759 TEST_FIELD_SIZE (MCI_DGV_SET_PARMS
, dwSpeed
, 4)
4760 TEST_FIELD_ALIGN (MCI_DGV_SET_PARMS
, dwSpeed
, 1)
4761 TEST_FIELD_OFFSET(MCI_DGV_SET_PARMS
, dwSpeed
, 16)
4764 static void test_pack_MCI_DGV_SETAUDIO_PARMSA(void)
4766 /* MCI_DGV_SETAUDIO_PARMSA (pack 1) */
4767 TEST_TYPE_SIZE (MCI_DGV_SETAUDIO_PARMSA
, 24)
4768 TEST_TYPE_ALIGN (MCI_DGV_SETAUDIO_PARMSA
, 1)
4769 TEST_FIELD_SIZE (MCI_DGV_SETAUDIO_PARMSA
, dwCallback
, 4)
4770 TEST_FIELD_ALIGN (MCI_DGV_SETAUDIO_PARMSA
, dwCallback
, 1)
4771 TEST_FIELD_OFFSET(MCI_DGV_SETAUDIO_PARMSA
, dwCallback
, 0)
4772 TEST_FIELD_SIZE (MCI_DGV_SETAUDIO_PARMSA
, dwItem
, 4)
4773 TEST_FIELD_ALIGN (MCI_DGV_SETAUDIO_PARMSA
, dwItem
, 1)
4774 TEST_FIELD_OFFSET(MCI_DGV_SETAUDIO_PARMSA
, dwItem
, 4)
4775 TEST_FIELD_SIZE (MCI_DGV_SETAUDIO_PARMSA
, dwValue
, 4)
4776 TEST_FIELD_ALIGN (MCI_DGV_SETAUDIO_PARMSA
, dwValue
, 1)
4777 TEST_FIELD_OFFSET(MCI_DGV_SETAUDIO_PARMSA
, dwValue
, 8)
4778 TEST_FIELD_SIZE (MCI_DGV_SETAUDIO_PARMSA
, dwOver
, 4)
4779 TEST_FIELD_ALIGN (MCI_DGV_SETAUDIO_PARMSA
, dwOver
, 1)
4780 TEST_FIELD_OFFSET(MCI_DGV_SETAUDIO_PARMSA
, dwOver
, 12)
4781 TEST_FIELD_SIZE (MCI_DGV_SETAUDIO_PARMSA
, lpstrAlgorithm
, 4)
4782 TEST_FIELD_ALIGN (MCI_DGV_SETAUDIO_PARMSA
, lpstrAlgorithm
, 1)
4783 TEST_FIELD_OFFSET(MCI_DGV_SETAUDIO_PARMSA
, lpstrAlgorithm
, 16)
4784 TEST_FIELD_SIZE (MCI_DGV_SETAUDIO_PARMSA
, lpstrQuality
, 4)
4785 TEST_FIELD_ALIGN (MCI_DGV_SETAUDIO_PARMSA
, lpstrQuality
, 1)
4786 TEST_FIELD_OFFSET(MCI_DGV_SETAUDIO_PARMSA
, lpstrQuality
, 20)
4789 static void test_pack_MCI_DGV_SETAUDIO_PARMSW(void)
4791 /* MCI_DGV_SETAUDIO_PARMSW (pack 1) */
4792 TEST_TYPE_SIZE (MCI_DGV_SETAUDIO_PARMSW
, 24)
4793 TEST_TYPE_ALIGN (MCI_DGV_SETAUDIO_PARMSW
, 1)
4794 TEST_FIELD_SIZE (MCI_DGV_SETAUDIO_PARMSW
, dwCallback
, 4)
4795 TEST_FIELD_ALIGN (MCI_DGV_SETAUDIO_PARMSW
, dwCallback
, 1)
4796 TEST_FIELD_OFFSET(MCI_DGV_SETAUDIO_PARMSW
, dwCallback
, 0)
4797 TEST_FIELD_SIZE (MCI_DGV_SETAUDIO_PARMSW
, dwItem
, 4)
4798 TEST_FIELD_ALIGN (MCI_DGV_SETAUDIO_PARMSW
, dwItem
, 1)
4799 TEST_FIELD_OFFSET(MCI_DGV_SETAUDIO_PARMSW
, dwItem
, 4)
4800 TEST_FIELD_SIZE (MCI_DGV_SETAUDIO_PARMSW
, dwValue
, 4)
4801 TEST_FIELD_ALIGN (MCI_DGV_SETAUDIO_PARMSW
, dwValue
, 1)
4802 TEST_FIELD_OFFSET(MCI_DGV_SETAUDIO_PARMSW
, dwValue
, 8)
4803 TEST_FIELD_SIZE (MCI_DGV_SETAUDIO_PARMSW
, dwOver
, 4)
4804 TEST_FIELD_ALIGN (MCI_DGV_SETAUDIO_PARMSW
, dwOver
, 1)
4805 TEST_FIELD_OFFSET(MCI_DGV_SETAUDIO_PARMSW
, dwOver
, 12)
4806 TEST_FIELD_SIZE (MCI_DGV_SETAUDIO_PARMSW
, lpstrAlgorithm
, 4)
4807 TEST_FIELD_ALIGN (MCI_DGV_SETAUDIO_PARMSW
, lpstrAlgorithm
, 1)
4808 TEST_FIELD_OFFSET(MCI_DGV_SETAUDIO_PARMSW
, lpstrAlgorithm
, 16)
4809 TEST_FIELD_SIZE (MCI_DGV_SETAUDIO_PARMSW
, lpstrQuality
, 4)
4810 TEST_FIELD_ALIGN (MCI_DGV_SETAUDIO_PARMSW
, lpstrQuality
, 1)
4811 TEST_FIELD_OFFSET(MCI_DGV_SETAUDIO_PARMSW
, lpstrQuality
, 20)
4814 static void test_pack_MCI_DGV_SIGNAL_PARMS(void)
4816 /* MCI_DGV_SIGNAL_PARMS (pack 1) */
4817 TEST_TYPE_SIZE (MCI_DGV_SIGNAL_PARMS
, 16)
4818 TEST_TYPE_ALIGN (MCI_DGV_SIGNAL_PARMS
, 1)
4819 TEST_FIELD_SIZE (MCI_DGV_SIGNAL_PARMS
, dwCallback
, 4)
4820 TEST_FIELD_ALIGN (MCI_DGV_SIGNAL_PARMS
, dwCallback
, 1)
4821 TEST_FIELD_OFFSET(MCI_DGV_SIGNAL_PARMS
, dwCallback
, 0)
4822 TEST_FIELD_SIZE (MCI_DGV_SIGNAL_PARMS
, dwPosition
, 4)
4823 TEST_FIELD_ALIGN (MCI_DGV_SIGNAL_PARMS
, dwPosition
, 1)
4824 TEST_FIELD_OFFSET(MCI_DGV_SIGNAL_PARMS
, dwPosition
, 4)
4825 TEST_FIELD_SIZE (MCI_DGV_SIGNAL_PARMS
, dwPeriod
, 4)
4826 TEST_FIELD_ALIGN (MCI_DGV_SIGNAL_PARMS
, dwPeriod
, 1)
4827 TEST_FIELD_OFFSET(MCI_DGV_SIGNAL_PARMS
, dwPeriod
, 8)
4828 TEST_FIELD_SIZE (MCI_DGV_SIGNAL_PARMS
, dwUserParm
, 4)
4829 TEST_FIELD_ALIGN (MCI_DGV_SIGNAL_PARMS
, dwUserParm
, 1)
4830 TEST_FIELD_OFFSET(MCI_DGV_SIGNAL_PARMS
, dwUserParm
, 12)
4833 static void test_pack_MCI_DGV_SETVIDEO_PARMSA(void)
4835 /* MCI_DGV_SETVIDEO_PARMSA (pack 1) */
4836 TEST_TYPE_SIZE (MCI_DGV_SETVIDEO_PARMSA
, 28)
4837 TEST_TYPE_ALIGN (MCI_DGV_SETVIDEO_PARMSA
, 1)
4838 TEST_FIELD_SIZE (MCI_DGV_SETVIDEO_PARMSA
, dwCallback
, 4)
4839 TEST_FIELD_ALIGN (MCI_DGV_SETVIDEO_PARMSA
, dwCallback
, 1)
4840 TEST_FIELD_OFFSET(MCI_DGV_SETVIDEO_PARMSA
, dwCallback
, 0)
4841 TEST_FIELD_SIZE (MCI_DGV_SETVIDEO_PARMSA
, dwItem
, 4)
4842 TEST_FIELD_ALIGN (MCI_DGV_SETVIDEO_PARMSA
, dwItem
, 1)
4843 TEST_FIELD_OFFSET(MCI_DGV_SETVIDEO_PARMSA
, dwItem
, 4)
4844 TEST_FIELD_SIZE (MCI_DGV_SETVIDEO_PARMSA
, dwValue
, 4)
4845 TEST_FIELD_ALIGN (MCI_DGV_SETVIDEO_PARMSA
, dwValue
, 1)
4846 TEST_FIELD_OFFSET(MCI_DGV_SETVIDEO_PARMSA
, dwValue
, 8)
4847 TEST_FIELD_SIZE (MCI_DGV_SETVIDEO_PARMSA
, dwOver
, 4)
4848 TEST_FIELD_ALIGN (MCI_DGV_SETVIDEO_PARMSA
, dwOver
, 1)
4849 TEST_FIELD_OFFSET(MCI_DGV_SETVIDEO_PARMSA
, dwOver
, 12)
4850 TEST_FIELD_SIZE (MCI_DGV_SETVIDEO_PARMSA
, lpstrAlgorithm
, 4)
4851 TEST_FIELD_ALIGN (MCI_DGV_SETVIDEO_PARMSA
, lpstrAlgorithm
, 1)
4852 TEST_FIELD_OFFSET(MCI_DGV_SETVIDEO_PARMSA
, lpstrAlgorithm
, 16)
4853 TEST_FIELD_SIZE (MCI_DGV_SETVIDEO_PARMSA
, lpstrQuality
, 4)
4854 TEST_FIELD_ALIGN (MCI_DGV_SETVIDEO_PARMSA
, lpstrQuality
, 1)
4855 TEST_FIELD_OFFSET(MCI_DGV_SETVIDEO_PARMSA
, lpstrQuality
, 20)
4856 TEST_FIELD_SIZE (MCI_DGV_SETVIDEO_PARMSA
, dwSourceNumber
, 4)
4857 TEST_FIELD_ALIGN (MCI_DGV_SETVIDEO_PARMSA
, dwSourceNumber
, 1)
4858 TEST_FIELD_OFFSET(MCI_DGV_SETVIDEO_PARMSA
, dwSourceNumber
, 24)
4861 static void test_pack_MCI_DGV_SETVIDEO_PARMSW(void)
4863 /* MCI_DGV_SETVIDEO_PARMSW (pack 1) */
4864 TEST_TYPE_SIZE (MCI_DGV_SETVIDEO_PARMSW
, 28)
4865 TEST_TYPE_ALIGN (MCI_DGV_SETVIDEO_PARMSW
, 1)
4866 TEST_FIELD_SIZE (MCI_DGV_SETVIDEO_PARMSW
, dwCallback
, 4)
4867 TEST_FIELD_ALIGN (MCI_DGV_SETVIDEO_PARMSW
, dwCallback
, 1)
4868 TEST_FIELD_OFFSET(MCI_DGV_SETVIDEO_PARMSW
, dwCallback
, 0)
4869 TEST_FIELD_SIZE (MCI_DGV_SETVIDEO_PARMSW
, dwItem
, 4)
4870 TEST_FIELD_ALIGN (MCI_DGV_SETVIDEO_PARMSW
, dwItem
, 1)
4871 TEST_FIELD_OFFSET(MCI_DGV_SETVIDEO_PARMSW
, dwItem
, 4)
4872 TEST_FIELD_SIZE (MCI_DGV_SETVIDEO_PARMSW
, dwValue
, 4)
4873 TEST_FIELD_ALIGN (MCI_DGV_SETVIDEO_PARMSW
, dwValue
, 1)
4874 TEST_FIELD_OFFSET(MCI_DGV_SETVIDEO_PARMSW
, dwValue
, 8)
4875 TEST_FIELD_SIZE (MCI_DGV_SETVIDEO_PARMSW
, dwOver
, 4)
4876 TEST_FIELD_ALIGN (MCI_DGV_SETVIDEO_PARMSW
, dwOver
, 1)
4877 TEST_FIELD_OFFSET(MCI_DGV_SETVIDEO_PARMSW
, dwOver
, 12)
4878 TEST_FIELD_SIZE (MCI_DGV_SETVIDEO_PARMSW
, lpstrAlgorithm
, 4)
4879 TEST_FIELD_ALIGN (MCI_DGV_SETVIDEO_PARMSW
, lpstrAlgorithm
, 1)
4880 TEST_FIELD_OFFSET(MCI_DGV_SETVIDEO_PARMSW
, lpstrAlgorithm
, 16)
4881 TEST_FIELD_SIZE (MCI_DGV_SETVIDEO_PARMSW
, lpstrQuality
, 4)
4882 TEST_FIELD_ALIGN (MCI_DGV_SETVIDEO_PARMSW
, lpstrQuality
, 1)
4883 TEST_FIELD_OFFSET(MCI_DGV_SETVIDEO_PARMSW
, lpstrQuality
, 20)
4884 TEST_FIELD_SIZE (MCI_DGV_SETVIDEO_PARMSW
, dwSourceNumber
, 4)
4885 TEST_FIELD_ALIGN (MCI_DGV_SETVIDEO_PARMSW
, dwSourceNumber
, 1)
4886 TEST_FIELD_OFFSET(MCI_DGV_SETVIDEO_PARMSW
, dwSourceNumber
, 24)
4889 static void test_pack_MCI_DGV_STATUS_PARMSA(void)
4891 /* MCI_DGV_STATUS_PARMSA (pack 1) */
4892 TEST_TYPE_SIZE (MCI_DGV_STATUS_PARMSA
, 24)
4893 TEST_TYPE_ALIGN (MCI_DGV_STATUS_PARMSA
, 1)
4894 TEST_FIELD_SIZE (MCI_DGV_STATUS_PARMSA
, dwCallback
, 4)
4895 TEST_FIELD_ALIGN (MCI_DGV_STATUS_PARMSA
, dwCallback
, 1)
4896 TEST_FIELD_OFFSET(MCI_DGV_STATUS_PARMSA
, dwCallback
, 0)
4897 TEST_FIELD_SIZE (MCI_DGV_STATUS_PARMSA
, dwReturn
, 4)
4898 TEST_FIELD_ALIGN (MCI_DGV_STATUS_PARMSA
, dwReturn
, 1)
4899 TEST_FIELD_OFFSET(MCI_DGV_STATUS_PARMSA
, dwReturn
, 4)
4900 TEST_FIELD_SIZE (MCI_DGV_STATUS_PARMSA
, dwItem
, 4)
4901 TEST_FIELD_ALIGN (MCI_DGV_STATUS_PARMSA
, dwItem
, 1)
4902 TEST_FIELD_OFFSET(MCI_DGV_STATUS_PARMSA
, dwItem
, 8)
4903 TEST_FIELD_SIZE (MCI_DGV_STATUS_PARMSA
, dwTrack
, 4)
4904 TEST_FIELD_ALIGN (MCI_DGV_STATUS_PARMSA
, dwTrack
, 1)
4905 TEST_FIELD_OFFSET(MCI_DGV_STATUS_PARMSA
, dwTrack
, 12)
4906 TEST_FIELD_SIZE (MCI_DGV_STATUS_PARMSA
, lpstrDrive
, 4)
4907 TEST_FIELD_ALIGN (MCI_DGV_STATUS_PARMSA
, lpstrDrive
, 1)
4908 TEST_FIELD_OFFSET(MCI_DGV_STATUS_PARMSA
, lpstrDrive
, 16)
4909 TEST_FIELD_SIZE (MCI_DGV_STATUS_PARMSA
, dwReference
, 4)
4910 TEST_FIELD_ALIGN (MCI_DGV_STATUS_PARMSA
, dwReference
, 1)
4911 TEST_FIELD_OFFSET(MCI_DGV_STATUS_PARMSA
, dwReference
, 20)
4914 static void test_pack_MCI_DGV_STATUS_PARMSW(void)
4916 /* MCI_DGV_STATUS_PARMSW (pack 1) */
4917 TEST_TYPE_SIZE (MCI_DGV_STATUS_PARMSW
, 24)
4918 TEST_TYPE_ALIGN (MCI_DGV_STATUS_PARMSW
, 1)
4919 TEST_FIELD_SIZE (MCI_DGV_STATUS_PARMSW
, dwCallback
, 4)
4920 TEST_FIELD_ALIGN (MCI_DGV_STATUS_PARMSW
, dwCallback
, 1)
4921 TEST_FIELD_OFFSET(MCI_DGV_STATUS_PARMSW
, dwCallback
, 0)
4922 TEST_FIELD_SIZE (MCI_DGV_STATUS_PARMSW
, dwReturn
, 4)
4923 TEST_FIELD_ALIGN (MCI_DGV_STATUS_PARMSW
, dwReturn
, 1)
4924 TEST_FIELD_OFFSET(MCI_DGV_STATUS_PARMSW
, dwReturn
, 4)
4925 TEST_FIELD_SIZE (MCI_DGV_STATUS_PARMSW
, dwItem
, 4)
4926 TEST_FIELD_ALIGN (MCI_DGV_STATUS_PARMSW
, dwItem
, 1)
4927 TEST_FIELD_OFFSET(MCI_DGV_STATUS_PARMSW
, dwItem
, 8)
4928 TEST_FIELD_SIZE (MCI_DGV_STATUS_PARMSW
, dwTrack
, 4)
4929 TEST_FIELD_ALIGN (MCI_DGV_STATUS_PARMSW
, dwTrack
, 1)
4930 TEST_FIELD_OFFSET(MCI_DGV_STATUS_PARMSW
, dwTrack
, 12)
4931 TEST_FIELD_SIZE (MCI_DGV_STATUS_PARMSW
, lpstrDrive
, 4)
4932 TEST_FIELD_ALIGN (MCI_DGV_STATUS_PARMSW
, lpstrDrive
, 1)
4933 TEST_FIELD_OFFSET(MCI_DGV_STATUS_PARMSW
, lpstrDrive
, 16)
4934 TEST_FIELD_SIZE (MCI_DGV_STATUS_PARMSW
, dwReference
, 4)
4935 TEST_FIELD_ALIGN (MCI_DGV_STATUS_PARMSW
, dwReference
, 1)
4936 TEST_FIELD_OFFSET(MCI_DGV_STATUS_PARMSW
, dwReference
, 20)
4939 static void test_pack_MCI_DGV_STEP_PARMS(void)
4941 /* MCI_DGV_STEP_PARMS (pack 1) */
4942 TEST_TYPE_SIZE (MCI_DGV_STEP_PARMS
, 8)
4943 TEST_TYPE_ALIGN (MCI_DGV_STEP_PARMS
, 1)
4944 TEST_FIELD_SIZE (MCI_DGV_STEP_PARMS
, dwCallback
, 4)
4945 TEST_FIELD_ALIGN (MCI_DGV_STEP_PARMS
, dwCallback
, 1)
4946 TEST_FIELD_OFFSET(MCI_DGV_STEP_PARMS
, dwCallback
, 0)
4947 TEST_FIELD_SIZE (MCI_DGV_STEP_PARMS
, dwFrames
, 4)
4948 TEST_FIELD_ALIGN (MCI_DGV_STEP_PARMS
, dwFrames
, 1)
4949 TEST_FIELD_OFFSET(MCI_DGV_STEP_PARMS
, dwFrames
, 4)
4952 static void test_pack_MCI_DGV_UPDATE_PARMS(void)
4954 /* MCI_DGV_UPDATE_PARMS (pack 1) */
4955 TEST_TYPE_SIZE (MCI_DGV_UPDATE_PARMS
, 24)
4956 TEST_TYPE_ALIGN (MCI_DGV_UPDATE_PARMS
, 1)
4957 TEST_FIELD_SIZE (MCI_DGV_UPDATE_PARMS
, dwCallback
, 4)
4958 TEST_FIELD_ALIGN (MCI_DGV_UPDATE_PARMS
, dwCallback
, 1)
4959 TEST_FIELD_OFFSET(MCI_DGV_UPDATE_PARMS
, dwCallback
, 0)
4960 TEST_FIELD_SIZE (MCI_DGV_UPDATE_PARMS
, rc
, 16)
4961 TEST_FIELD_ALIGN (MCI_DGV_UPDATE_PARMS
, rc
, 1)
4962 TEST_FIELD_OFFSET(MCI_DGV_UPDATE_PARMS
, rc
, 4)
4963 TEST_FIELD_SIZE (MCI_DGV_UPDATE_PARMS
, hDC
, 4)
4964 TEST_FIELD_ALIGN (MCI_DGV_UPDATE_PARMS
, hDC
, 1)
4965 TEST_FIELD_OFFSET(MCI_DGV_UPDATE_PARMS
, hDC
, 20)
4968 static void test_pack_MCI_DGV_WINDOW_PARMSA(void)
4970 /* MCI_DGV_WINDOW_PARMSA (pack 1) */
4971 TEST_TYPE_SIZE (MCI_DGV_WINDOW_PARMSA
, 16)
4972 TEST_TYPE_ALIGN (MCI_DGV_WINDOW_PARMSA
, 1)
4973 TEST_FIELD_SIZE (MCI_DGV_WINDOW_PARMSA
, dwCallback
, 4)
4974 TEST_FIELD_ALIGN (MCI_DGV_WINDOW_PARMSA
, dwCallback
, 1)
4975 TEST_FIELD_OFFSET(MCI_DGV_WINDOW_PARMSA
, dwCallback
, 0)
4976 TEST_FIELD_SIZE (MCI_DGV_WINDOW_PARMSA
, hWnd
, 4)
4977 TEST_FIELD_ALIGN (MCI_DGV_WINDOW_PARMSA
, hWnd
, 1)
4978 TEST_FIELD_OFFSET(MCI_DGV_WINDOW_PARMSA
, hWnd
, 4)
4979 TEST_FIELD_SIZE (MCI_DGV_WINDOW_PARMSA
, nCmdShow
, 4)
4980 TEST_FIELD_ALIGN (MCI_DGV_WINDOW_PARMSA
, nCmdShow
, 1)
4981 TEST_FIELD_OFFSET(MCI_DGV_WINDOW_PARMSA
, nCmdShow
, 8)
4982 TEST_FIELD_SIZE (MCI_DGV_WINDOW_PARMSA
, lpstrText
, 4)
4983 TEST_FIELD_ALIGN (MCI_DGV_WINDOW_PARMSA
, lpstrText
, 1)
4984 TEST_FIELD_OFFSET(MCI_DGV_WINDOW_PARMSA
, lpstrText
, 12)
4987 static void test_pack_MCI_DGV_WINDOW_PARMSW(void)
4989 /* MCI_DGV_WINDOW_PARMSW (pack 1) */
4990 TEST_TYPE_SIZE (MCI_DGV_WINDOW_PARMSW
, 16)
4991 TEST_TYPE_ALIGN (MCI_DGV_WINDOW_PARMSW
, 1)
4992 TEST_FIELD_SIZE (MCI_DGV_WINDOW_PARMSW
, dwCallback
, 4)
4993 TEST_FIELD_ALIGN (MCI_DGV_WINDOW_PARMSW
, dwCallback
, 1)
4994 TEST_FIELD_OFFSET(MCI_DGV_WINDOW_PARMSW
, dwCallback
, 0)
4995 TEST_FIELD_SIZE (MCI_DGV_WINDOW_PARMSW
, hWnd
, 4)
4996 TEST_FIELD_ALIGN (MCI_DGV_WINDOW_PARMSW
, hWnd
, 1)
4997 TEST_FIELD_OFFSET(MCI_DGV_WINDOW_PARMSW
, hWnd
, 4)
4998 TEST_FIELD_SIZE (MCI_DGV_WINDOW_PARMSW
, nCmdShow
, 4)
4999 TEST_FIELD_ALIGN (MCI_DGV_WINDOW_PARMSW
, nCmdShow
, 1)
5000 TEST_FIELD_OFFSET(MCI_DGV_WINDOW_PARMSW
, nCmdShow
, 8)
5001 TEST_FIELD_SIZE (MCI_DGV_WINDOW_PARMSW
, lpstrText
, 4)
5002 TEST_FIELD_ALIGN (MCI_DGV_WINDOW_PARMSW
, lpstrText
, 1)
5003 TEST_FIELD_OFFSET(MCI_DGV_WINDOW_PARMSW
, lpstrText
, 12)
5008 static void test_pack(void)
5010 test_pack_AUXCAPS2A();
5011 test_pack_AUXCAPS2W();
5012 test_pack_AUXCAPSA();
5013 test_pack_AUXCAPSW();
5014 test_pack_DRVCONFIGINFO();
5015 test_pack_JOYCAPS2A();
5016 test_pack_JOYCAPS2W();
5017 test_pack_JOYCAPSA();
5018 test_pack_JOYCAPSW();
5019 test_pack_JOYINFO();
5020 test_pack_JOYINFOEX();
5021 test_pack_MCI_ANIM_OPEN_PARMSA();
5022 test_pack_MCI_ANIM_OPEN_PARMSW();
5023 test_pack_MCI_ANIM_PLAY_PARMS();
5024 test_pack_MCI_ANIM_STEP_PARMS();
5025 test_pack_MCI_ANIM_UPDATE_PARMS();
5026 test_pack_MCI_ANIM_WINDOW_PARMSA();
5027 test_pack_MCI_ANIM_WINDOW_PARMSW();
5028 test_pack_MCI_BREAK_PARMS();
5029 test_pack_MCI_DGV_CAPTURE_PARMSA();
5030 test_pack_MCI_DGV_CAPTURE_PARMSW();
5031 test_pack_MCI_DGV_COPY_PARMS();
5032 test_pack_MCI_DGV_CUE_PARMS();
5033 test_pack_MCI_DGV_CUT_PARMS();
5034 test_pack_MCI_DGV_DELETE_PARMS();
5035 test_pack_MCI_DGV_INFO_PARMSA();
5036 test_pack_MCI_DGV_INFO_PARMSW();
5037 test_pack_MCI_DGV_LIST_PARMSA();
5038 test_pack_MCI_DGV_LIST_PARMSW();
5039 test_pack_MCI_DGV_MONITOR_PARMS();
5040 test_pack_MCI_DGV_OPEN_PARMSA();
5041 test_pack_MCI_DGV_OPEN_PARMSW();
5042 test_pack_MCI_DGV_PASTE_PARMS();
5043 test_pack_MCI_DGV_QUALITY_PARMSA();
5044 test_pack_MCI_DGV_QUALITY_PARMSW();
5045 test_pack_MCI_DGV_RECORD_PARMS();
5046 test_pack_MCI_DGV_RECT_PARMS();
5047 test_pack_MCI_DGV_RESERVE_PARMSA();
5048 test_pack_MCI_DGV_RESERVE_PARMSW();
5049 test_pack_MCI_DGV_RESTORE_PARMSA();
5050 test_pack_MCI_DGV_RESTORE_PARMSW();
5051 test_pack_MCI_DGV_SAVE_PARMSA();
5052 test_pack_MCI_DGV_SAVE_PARMSW();
5053 test_pack_MCI_DGV_SETAUDIO_PARMSA();
5054 test_pack_MCI_DGV_SETAUDIO_PARMSW();
5055 test_pack_MCI_DGV_SETVIDEO_PARMSA();
5056 test_pack_MCI_DGV_SETVIDEO_PARMSW();
5057 test_pack_MCI_DGV_SET_PARMS();
5058 test_pack_MCI_DGV_SIGNAL_PARMS();
5059 test_pack_MCI_DGV_STATUS_PARMSA();
5060 test_pack_MCI_DGV_STATUS_PARMSW();
5061 test_pack_MCI_DGV_STEP_PARMS();
5062 test_pack_MCI_DGV_UPDATE_PARMS();
5063 test_pack_MCI_DGV_WINDOW_PARMSA();
5064 test_pack_MCI_DGV_WINDOW_PARMSW();
5065 test_pack_MCI_GENERIC_PARMS();
5066 test_pack_MCI_GETDEVCAPS_PARMS();
5067 test_pack_MCI_INFO_PARMSA();
5068 test_pack_MCI_INFO_PARMSW();
5069 test_pack_MCI_LOAD_PARMSA();
5070 test_pack_MCI_LOAD_PARMSW();
5071 test_pack_MCI_OPEN_PARMSA();
5072 test_pack_MCI_OPEN_PARMSW();
5073 test_pack_MCI_OVLY_LOAD_PARMSA();
5074 test_pack_MCI_OVLY_LOAD_PARMSW();
5075 test_pack_MCI_OVLY_OPEN_PARMSA();
5076 test_pack_MCI_OVLY_OPEN_PARMSW();
5077 test_pack_MCI_OVLY_SAVE_PARMSA();
5078 test_pack_MCI_OVLY_SAVE_PARMSW();
5079 test_pack_MCI_OVLY_WINDOW_PARMSA();
5080 test_pack_MCI_OVLY_WINDOW_PARMSW();
5081 test_pack_MCI_PLAY_PARMS();
5082 test_pack_MCI_RECORD_PARMS();
5083 test_pack_MCI_SAVE_PARMSA();
5084 test_pack_MCI_SAVE_PARMSW();
5085 test_pack_MCI_SEEK_PARMS();
5086 test_pack_MCI_SEQ_SET_PARMS();
5087 test_pack_MCI_SET_PARMS();
5088 test_pack_MCI_SOUND_PARMSA();
5089 test_pack_MCI_SOUND_PARMSW();
5090 test_pack_MCI_STATUS_PARMS();
5091 test_pack_MCI_SYSINFO_PARMSA();
5092 test_pack_MCI_SYSINFO_PARMSW();
5093 test_pack_MCI_VD_ESCAPE_PARMSA();
5094 test_pack_MCI_VD_ESCAPE_PARMSW();
5095 test_pack_MCI_VD_PLAY_PARMS();
5096 test_pack_MCI_VD_STEP_PARMS();
5097 test_pack_MCI_WAVE_DELETE_PARMS();
5098 test_pack_MCI_WAVE_OPEN_PARMSA();
5099 test_pack_MCI_WAVE_OPEN_PARMSW();
5100 test_pack_MCI_WAVE_SET_PARMS();
5101 test_pack_MIDIEVENT();
5102 test_pack_MIDIHDR();
5103 test_pack_MIDIINCAPS2A();
5104 test_pack_MIDIINCAPS2W();
5105 test_pack_MIDIINCAPSA();
5106 test_pack_MIDIINCAPSW();
5107 test_pack_MIDIOUTCAPS2A();
5108 test_pack_MIDIOUTCAPS2W();
5109 test_pack_MIDIOUTCAPSA();
5110 test_pack_MIDIOUTCAPSW();
5111 test_pack_MIXERCAPS2A();
5112 test_pack_MIXERCAPS2W();
5113 test_pack_MIXERCAPSA();
5114 test_pack_MIXERCAPSW();
5115 test_pack_MIXERCONTROLA();
5116 test_pack_MIXERCONTROLDETAILS();
5117 test_pack_MIXERCONTROLDETAILS_BOOLEAN();
5118 test_pack_MIXERCONTROLDETAILS_LISTTEXTA();
5119 test_pack_MIXERCONTROLDETAILS_LISTTEXTW();
5120 test_pack_MIXERCONTROLDETAILS_SIGNED();
5121 test_pack_MIXERCONTROLDETAILS_UNSIGNED();
5122 test_pack_MIXERCONTROLW();
5123 test_pack_MIXERLINEA();
5124 test_pack_MIXERLINECONTROLSA();
5125 test_pack_MIXERLINECONTROLSW();
5126 test_pack_MIXERLINEW();
5127 test_pack_MMCKINFO();
5128 test_pack_MMIOINFO();
5130 test_pack_PCMWAVEFORMAT();
5131 test_pack_TIMECAPS();
5132 test_pack_WAVEFORMAT();
5133 test_pack_WAVEFORMATEX();
5134 test_pack_WAVEHDR();
5135 test_pack_WAVEINCAPS2A();
5136 test_pack_WAVEINCAPS2W();
5137 test_pack_WAVEINCAPSA();
5138 test_pack_WAVEINCAPSW();
5139 test_pack_WAVEOUTCAPS2A();
5140 test_pack_WAVEOUTCAPS2W();
5141 test_pack_WAVEOUTCAPSA();
5142 test_pack_WAVEOUTCAPSW();
5145 START_TEST(generated
)