ReactOS 0.4.15-dev-7131-ge4d03f4
generated.c
Go to the documentation of this file.
1/* File generated automatically from tools/winapi/tests.dat; do not edit! */
2/* This file can be copied, modified and distributed without restriction. */
3
4/*
5 * Unit tests for data structure packing
6 */
7
8#define WINE_NOWINSOCK
9
10#include "windows.h"
11
12#include "wine/test.h"
13
14/***********************************************************************
15 * Compatibility macros
16 */
17
18#define DWORD_PTR UINT_PTR
19#define LONG_PTR INT_PTR
20#define ULONG_PTR UINT_PTR
21
22/***********************************************************************
23 * Windows API extension
24 */
25
26#if defined(_MSC_VER) && (_MSC_VER >= 1300) && defined(__cplusplus)
27# define _TYPE_ALIGNMENT(type) __alignof(type)
28#elif defined(__GNUC__)
29# define _TYPE_ALIGNMENT(type) __alignof__(type)
30#else
31/*
32 * FIXME: May not be possible without a compiler extension
33 * (if type is not just a name that is, otherwise the normal
34 * TYPE_ALIGNMENT can be used)
35 */
36#endif
37
38#if defined(TYPE_ALIGNMENT) && defined(_MSC_VER) && _MSC_VER >= 800 && !defined(__cplusplus)
39#pragma warning(disable:4116)
40#endif
41
42#if !defined(TYPE_ALIGNMENT) && defined(_TYPE_ALIGNMENT)
43# define TYPE_ALIGNMENT _TYPE_ALIGNMENT
44#endif
45
46/***********************************************************************
47 * Test helper macros
48 */
49
50#define TEST_TYPE_SIZE(type, size) C_ASSERT(sizeof(type) == size);
51
52#ifdef TYPE_ALIGNMENT
53# define TEST_TYPE_ALIGN(type, align) C_ASSERT(TYPE_ALIGNMENT(type) == align);
54#else
55# define TEST_TYPE_ALIGN(type, align)
56#endif
57
58#ifdef _TYPE_ALIGNMENT
59# define TEST_TARGET_ALIGN(type, align) C_ASSERT(_TYPE_ALIGNMENT(*(type)0) == align);
60# define TEST_FIELD_ALIGN(type, field, align) C_ASSERT(_TYPE_ALIGNMENT(((type*)0)->field) == align);
61#else
62# define TEST_TARGET_ALIGN(type, align)
63# define TEST_FIELD_ALIGN(type, field, align)
64#endif
65
66#define TEST_FIELD_OFFSET(type, field, offset) C_ASSERT(FIELD_OFFSET(type, field) == offset);
67
68#define TEST_TARGET_SIZE(type, size) TEST_TYPE_SIZE(*(type)0, size)
69#define TEST_FIELD_SIZE(type, field, size) TEST_TYPE_SIZE((((type*)0)->field), size)
70#define TEST_TYPE_SIGNED(type) C_ASSERT((type) -1 < 0);
71#define TEST_TYPE_UNSIGNED(type) C_ASSERT((type) -1 > 0);
72
73
74#ifdef _WIN64
75
76static void test_pack_LPOSVERSIONINFOA(void)
77{
78 /* LPOSVERSIONINFOA */
83}
84
85static void test_pack_LPOSVERSIONINFOEXA(void)
86{
87 /* LPOSVERSIONINFOEXA */
92}
93
94static void test_pack_LPOSVERSIONINFOEXW(void)
95{
96 /* LPOSVERSIONINFOEXW */
101}
102
103static void test_pack_LPOSVERSIONINFOW(void)
104{
105 /* LPOSVERSIONINFOW */
110}
111
112static void test_pack_OSVERSIONINFOA(void)
113{
114 /* OSVERSIONINFOA */
117 TEST_FIELD_SIZE (OSVERSIONINFOA, dwOSVersionInfoSize, 4)
118 TEST_FIELD_ALIGN (OSVERSIONINFOA, dwOSVersionInfoSize, 4)
119 TEST_FIELD_OFFSET(OSVERSIONINFOA, dwOSVersionInfoSize, 0)
120 TEST_FIELD_SIZE (OSVERSIONINFOA, dwMajorVersion, 4)
121 TEST_FIELD_ALIGN (OSVERSIONINFOA, dwMajorVersion, 4)
122 TEST_FIELD_OFFSET(OSVERSIONINFOA, dwMajorVersion, 4)
123 TEST_FIELD_SIZE (OSVERSIONINFOA, dwMinorVersion, 4)
124 TEST_FIELD_ALIGN (OSVERSIONINFOA, dwMinorVersion, 4)
125 TEST_FIELD_OFFSET(OSVERSIONINFOA, dwMinorVersion, 8)
126 TEST_FIELD_SIZE (OSVERSIONINFOA, dwBuildNumber, 4)
127 TEST_FIELD_ALIGN (OSVERSIONINFOA, dwBuildNumber, 4)
128 TEST_FIELD_OFFSET(OSVERSIONINFOA, dwBuildNumber, 12)
129 TEST_FIELD_SIZE (OSVERSIONINFOA, dwPlatformId, 4)
130 TEST_FIELD_ALIGN (OSVERSIONINFOA, dwPlatformId, 4)
131 TEST_FIELD_OFFSET(OSVERSIONINFOA, dwPlatformId, 16)
132 TEST_FIELD_SIZE (OSVERSIONINFOA, szCSDVersion, 128)
133 TEST_FIELD_ALIGN (OSVERSIONINFOA, szCSDVersion, 1)
134 TEST_FIELD_OFFSET(OSVERSIONINFOA, szCSDVersion, 20)
135}
136
137static void test_pack_OSVERSIONINFOEXA(void)
138{
139 /* OSVERSIONINFOEXA */
142 TEST_FIELD_SIZE (OSVERSIONINFOEXA, dwOSVersionInfoSize, 4)
143 TEST_FIELD_ALIGN (OSVERSIONINFOEXA, dwOSVersionInfoSize, 4)
144 TEST_FIELD_OFFSET(OSVERSIONINFOEXA, dwOSVersionInfoSize, 0)
145 TEST_FIELD_SIZE (OSVERSIONINFOEXA, dwMajorVersion, 4)
146 TEST_FIELD_ALIGN (OSVERSIONINFOEXA, dwMajorVersion, 4)
147 TEST_FIELD_OFFSET(OSVERSIONINFOEXA, dwMajorVersion, 4)
148 TEST_FIELD_SIZE (OSVERSIONINFOEXA, dwMinorVersion, 4)
149 TEST_FIELD_ALIGN (OSVERSIONINFOEXA, dwMinorVersion, 4)
150 TEST_FIELD_OFFSET(OSVERSIONINFOEXA, dwMinorVersion, 8)
151 TEST_FIELD_SIZE (OSVERSIONINFOEXA, dwBuildNumber, 4)
152 TEST_FIELD_ALIGN (OSVERSIONINFOEXA, dwBuildNumber, 4)
153 TEST_FIELD_OFFSET(OSVERSIONINFOEXA, dwBuildNumber, 12)
154 TEST_FIELD_SIZE (OSVERSIONINFOEXA, dwPlatformId, 4)
155 TEST_FIELD_ALIGN (OSVERSIONINFOEXA, dwPlatformId, 4)
156 TEST_FIELD_OFFSET(OSVERSIONINFOEXA, dwPlatformId, 16)
157 TEST_FIELD_SIZE (OSVERSIONINFOEXA, szCSDVersion, 128)
158 TEST_FIELD_ALIGN (OSVERSIONINFOEXA, szCSDVersion, 1)
159 TEST_FIELD_OFFSET(OSVERSIONINFOEXA, szCSDVersion, 20)
160 TEST_FIELD_SIZE (OSVERSIONINFOEXA, wServicePackMajor, 2)
161 TEST_FIELD_ALIGN (OSVERSIONINFOEXA, wServicePackMajor, 2)
162 TEST_FIELD_OFFSET(OSVERSIONINFOEXA, wServicePackMajor, 148)
163 TEST_FIELD_SIZE (OSVERSIONINFOEXA, wServicePackMinor, 2)
164 TEST_FIELD_ALIGN (OSVERSIONINFOEXA, wServicePackMinor, 2)
165 TEST_FIELD_OFFSET(OSVERSIONINFOEXA, wServicePackMinor, 150)
166 TEST_FIELD_SIZE (OSVERSIONINFOEXA, wSuiteMask, 2)
167 TEST_FIELD_ALIGN (OSVERSIONINFOEXA, wSuiteMask, 2)
168 TEST_FIELD_OFFSET(OSVERSIONINFOEXA, wSuiteMask, 152)
169 TEST_FIELD_SIZE (OSVERSIONINFOEXA, wProductType, 1)
170 TEST_FIELD_ALIGN (OSVERSIONINFOEXA, wProductType, 1)
171 TEST_FIELD_OFFSET(OSVERSIONINFOEXA, wProductType, 154)
172 TEST_FIELD_SIZE (OSVERSIONINFOEXA, wReserved, 1)
173 TEST_FIELD_ALIGN (OSVERSIONINFOEXA, wReserved, 1)
174 TEST_FIELD_OFFSET(OSVERSIONINFOEXA, wReserved, 155)
175}
176
177static void test_pack_OSVERSIONINFOEXW(void)
178{
179 /* OSVERSIONINFOEXW */
182 TEST_FIELD_SIZE (OSVERSIONINFOEXW, dwOSVersionInfoSize, 4)
183 TEST_FIELD_ALIGN (OSVERSIONINFOEXW, dwOSVersionInfoSize, 4)
184 TEST_FIELD_OFFSET(OSVERSIONINFOEXW, dwOSVersionInfoSize, 0)
185 TEST_FIELD_SIZE (OSVERSIONINFOEXW, dwMajorVersion, 4)
186 TEST_FIELD_ALIGN (OSVERSIONINFOEXW, dwMajorVersion, 4)
187 TEST_FIELD_OFFSET(OSVERSIONINFOEXW, dwMajorVersion, 4)
188 TEST_FIELD_SIZE (OSVERSIONINFOEXW, dwMinorVersion, 4)
189 TEST_FIELD_ALIGN (OSVERSIONINFOEXW, dwMinorVersion, 4)
190 TEST_FIELD_OFFSET(OSVERSIONINFOEXW, dwMinorVersion, 8)
191 TEST_FIELD_SIZE (OSVERSIONINFOEXW, dwBuildNumber, 4)
192 TEST_FIELD_ALIGN (OSVERSIONINFOEXW, dwBuildNumber, 4)
193 TEST_FIELD_OFFSET(OSVERSIONINFOEXW, dwBuildNumber, 12)
194 TEST_FIELD_SIZE (OSVERSIONINFOEXW, dwPlatformId, 4)
195 TEST_FIELD_ALIGN (OSVERSIONINFOEXW, dwPlatformId, 4)
196 TEST_FIELD_OFFSET(OSVERSIONINFOEXW, dwPlatformId, 16)
197 TEST_FIELD_SIZE (OSVERSIONINFOEXW, szCSDVersion, 256)
198 TEST_FIELD_ALIGN (OSVERSIONINFOEXW, szCSDVersion, 2)
199 TEST_FIELD_OFFSET(OSVERSIONINFOEXW, szCSDVersion, 20)
200 TEST_FIELD_SIZE (OSVERSIONINFOEXW, wServicePackMajor, 2)
201 TEST_FIELD_ALIGN (OSVERSIONINFOEXW, wServicePackMajor, 2)
202 TEST_FIELD_OFFSET(OSVERSIONINFOEXW, wServicePackMajor, 276)
203 TEST_FIELD_SIZE (OSVERSIONINFOEXW, wServicePackMinor, 2)
204 TEST_FIELD_ALIGN (OSVERSIONINFOEXW, wServicePackMinor, 2)
205 TEST_FIELD_OFFSET(OSVERSIONINFOEXW, wServicePackMinor, 278)
206 TEST_FIELD_SIZE (OSVERSIONINFOEXW, wSuiteMask, 2)
207 TEST_FIELD_ALIGN (OSVERSIONINFOEXW, wSuiteMask, 2)
208 TEST_FIELD_OFFSET(OSVERSIONINFOEXW, wSuiteMask, 280)
209 TEST_FIELD_SIZE (OSVERSIONINFOEXW, wProductType, 1)
210 TEST_FIELD_ALIGN (OSVERSIONINFOEXW, wProductType, 1)
211 TEST_FIELD_OFFSET(OSVERSIONINFOEXW, wProductType, 282)
212 TEST_FIELD_SIZE (OSVERSIONINFOEXW, wReserved, 1)
213 TEST_FIELD_ALIGN (OSVERSIONINFOEXW, wReserved, 1)
214 TEST_FIELD_OFFSET(OSVERSIONINFOEXW, wReserved, 283)
215}
216
217static void test_pack_OSVERSIONINFOW(void)
218{
219 /* OSVERSIONINFOW */
222 TEST_FIELD_SIZE (OSVERSIONINFOW, dwOSVersionInfoSize, 4)
223 TEST_FIELD_ALIGN (OSVERSIONINFOW, dwOSVersionInfoSize, 4)
224 TEST_FIELD_OFFSET(OSVERSIONINFOW, dwOSVersionInfoSize, 0)
225 TEST_FIELD_SIZE (OSVERSIONINFOW, dwMajorVersion, 4)
226 TEST_FIELD_ALIGN (OSVERSIONINFOW, dwMajorVersion, 4)
227 TEST_FIELD_OFFSET(OSVERSIONINFOW, dwMajorVersion, 4)
228 TEST_FIELD_SIZE (OSVERSIONINFOW, dwMinorVersion, 4)
229 TEST_FIELD_ALIGN (OSVERSIONINFOW, dwMinorVersion, 4)
230 TEST_FIELD_OFFSET(OSVERSIONINFOW, dwMinorVersion, 8)
231 TEST_FIELD_SIZE (OSVERSIONINFOW, dwBuildNumber, 4)
232 TEST_FIELD_ALIGN (OSVERSIONINFOW, dwBuildNumber, 4)
233 TEST_FIELD_OFFSET(OSVERSIONINFOW, dwBuildNumber, 12)
234 TEST_FIELD_SIZE (OSVERSIONINFOW, dwPlatformId, 4)
235 TEST_FIELD_ALIGN (OSVERSIONINFOW, dwPlatformId, 4)
236 TEST_FIELD_OFFSET(OSVERSIONINFOW, dwPlatformId, 16)
237 TEST_FIELD_SIZE (OSVERSIONINFOW, szCSDVersion, 256)
238 TEST_FIELD_ALIGN (OSVERSIONINFOW, szCSDVersion, 2)
239 TEST_FIELD_OFFSET(OSVERSIONINFOW, szCSDVersion, 20)
240}
241
242static void test_pack_POSVERSIONINFOA(void)
243{
244 /* POSVERSIONINFOA */
249}
250
251static void test_pack_POSVERSIONINFOEXA(void)
252{
253 /* POSVERSIONINFOEXA */
258}
259
260static void test_pack_POSVERSIONINFOEXW(void)
261{
262 /* POSVERSIONINFOEXW */
267}
268
269static void test_pack_POSVERSIONINFOW(void)
270{
271 /* POSVERSIONINFOW */
276}
277
278static void test_pack_LPLONG(void)
279{
280 /* LPLONG */
283}
284
285static void test_pack_LPVOID(void)
286{
287 /* LPVOID */
290}
291
292static void test_pack_PHKEY(void)
293{
294 /* PHKEY */
297}
298
299static void test_pack_ACTCTXA(void)
300{
301 /* ACTCTXA */
302 TEST_TYPE_SIZE (ACTCTXA, 56)
303 TEST_TYPE_ALIGN (ACTCTXA, 8)
304 TEST_FIELD_SIZE (ACTCTXA, cbSize, 4)
305 TEST_FIELD_ALIGN (ACTCTXA, cbSize, 4)
306 TEST_FIELD_OFFSET(ACTCTXA, cbSize, 0)
307 TEST_FIELD_SIZE (ACTCTXA, dwFlags, 4)
308 TEST_FIELD_ALIGN (ACTCTXA, dwFlags, 4)
309 TEST_FIELD_OFFSET(ACTCTXA, dwFlags, 4)
310 TEST_FIELD_SIZE (ACTCTXA, lpSource, 8)
311 TEST_FIELD_ALIGN (ACTCTXA, lpSource, 8)
312 TEST_FIELD_OFFSET(ACTCTXA, lpSource, 8)
313 TEST_FIELD_SIZE (ACTCTXA, wProcessorArchitecture, 2)
314 TEST_FIELD_ALIGN (ACTCTXA, wProcessorArchitecture, 2)
315 TEST_FIELD_OFFSET(ACTCTXA, wProcessorArchitecture, 16)
316 TEST_FIELD_SIZE (ACTCTXA, wLangId, 2)
317 TEST_FIELD_ALIGN (ACTCTXA, wLangId, 2)
318 TEST_FIELD_OFFSET(ACTCTXA, wLangId, 18)
319 TEST_FIELD_SIZE (ACTCTXA, lpAssemblyDirectory, 8)
320 TEST_FIELD_ALIGN (ACTCTXA, lpAssemblyDirectory, 8)
321 TEST_FIELD_OFFSET(ACTCTXA, lpAssemblyDirectory, 24)
322 TEST_FIELD_SIZE (ACTCTXA, lpResourceName, 8)
323 TEST_FIELD_ALIGN (ACTCTXA, lpResourceName, 8)
324 TEST_FIELD_OFFSET(ACTCTXA, lpResourceName, 32)
325 TEST_FIELD_SIZE (ACTCTXA, lpApplicationName, 8)
326 TEST_FIELD_ALIGN (ACTCTXA, lpApplicationName, 8)
327 TEST_FIELD_OFFSET(ACTCTXA, lpApplicationName, 40)
328 TEST_FIELD_SIZE (ACTCTXA, hModule, 8)
329 TEST_FIELD_ALIGN (ACTCTXA, hModule, 8)
330 TEST_FIELD_OFFSET(ACTCTXA, hModule, 48)
331}
332
333static void test_pack_ACTCTXW(void)
334{
335 /* ACTCTXW */
336 TEST_TYPE_SIZE (ACTCTXW, 56)
337 TEST_TYPE_ALIGN (ACTCTXW, 8)
338 TEST_FIELD_SIZE (ACTCTXW, cbSize, 4)
339 TEST_FIELD_ALIGN (ACTCTXW, cbSize, 4)
340 TEST_FIELD_OFFSET(ACTCTXW, cbSize, 0)
341 TEST_FIELD_SIZE (ACTCTXW, dwFlags, 4)
342 TEST_FIELD_ALIGN (ACTCTXW, dwFlags, 4)
343 TEST_FIELD_OFFSET(ACTCTXW, dwFlags, 4)
344 TEST_FIELD_SIZE (ACTCTXW, lpSource, 8)
345 TEST_FIELD_ALIGN (ACTCTXW, lpSource, 8)
346 TEST_FIELD_OFFSET(ACTCTXW, lpSource, 8)
347 TEST_FIELD_SIZE (ACTCTXW, wProcessorArchitecture, 2)
348 TEST_FIELD_ALIGN (ACTCTXW, wProcessorArchitecture, 2)
349 TEST_FIELD_OFFSET(ACTCTXW, wProcessorArchitecture, 16)
350 TEST_FIELD_SIZE (ACTCTXW, wLangId, 2)
351 TEST_FIELD_ALIGN (ACTCTXW, wLangId, 2)
352 TEST_FIELD_OFFSET(ACTCTXW, wLangId, 18)
353 TEST_FIELD_SIZE (ACTCTXW, lpAssemblyDirectory, 8)
354 TEST_FIELD_ALIGN (ACTCTXW, lpAssemblyDirectory, 8)
355 TEST_FIELD_OFFSET(ACTCTXW, lpAssemblyDirectory, 24)
356 TEST_FIELD_SIZE (ACTCTXW, lpResourceName, 8)
357 TEST_FIELD_ALIGN (ACTCTXW, lpResourceName, 8)
358 TEST_FIELD_OFFSET(ACTCTXW, lpResourceName, 32)
359 TEST_FIELD_SIZE (ACTCTXW, lpApplicationName, 8)
360 TEST_FIELD_ALIGN (ACTCTXW, lpApplicationName, 8)
361 TEST_FIELD_OFFSET(ACTCTXW, lpApplicationName, 40)
362 TEST_FIELD_SIZE (ACTCTXW, hModule, 8)
363 TEST_FIELD_ALIGN (ACTCTXW, hModule, 8)
364 TEST_FIELD_OFFSET(ACTCTXW, hModule, 48)
365}
366
368{
369 /* ACTCTX_SECTION_KEYED_DATA */
370 TEST_TYPE_SIZE (ACTCTX_SECTION_KEYED_DATA, 112)
371 TEST_TYPE_ALIGN (ACTCTX_SECTION_KEYED_DATA, 8)
372 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA, cbSize, 4)
373 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA, cbSize, 4)
374 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA, cbSize, 0)
375 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA, ulDataFormatVersion, 4)
376 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA, ulDataFormatVersion, 4)
377 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA, ulDataFormatVersion, 4)
378 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA, lpData, 8)
379 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA, lpData, 8)
380 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA, lpData, 8)
381 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA, ulLength, 4)
382 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA, ulLength, 4)
383 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA, ulLength, 16)
384 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA, lpSectionGlobalData, 8)
385 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA, lpSectionGlobalData, 8)
386 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA, lpSectionGlobalData, 24)
387 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA, ulSectionGlobalDataLength, 4)
388 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA, ulSectionGlobalDataLength, 4)
389 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA, ulSectionGlobalDataLength, 32)
390 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA, lpSectionBase, 8)
391 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA, lpSectionBase, 8)
392 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA, lpSectionBase, 40)
393 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA, ulSectionTotalLength, 4)
394 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA, ulSectionTotalLength, 4)
395 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA, ulSectionTotalLength, 48)
396 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA, hActCtx, 8)
397 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA, hActCtx, 8)
398 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA, hActCtx, 56)
399 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA, ulAssemblyRosterIndex, 4)
400 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA, ulAssemblyRosterIndex, 4)
401 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA, ulAssemblyRosterIndex, 64)
402 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA, ulFlags, 4)
403 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA, ulFlags, 4)
404 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA, ulFlags, 68)
405 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA, AssemblyMetadata, 40)
406 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA, AssemblyMetadata, 8)
407 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA, AssemblyMetadata, 72)
408}
409
411{
412 /* ACTCTX_SECTION_KEYED_DATA_2600 */
413 TEST_TYPE_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, 72)
414 TEST_TYPE_ALIGN (ACTCTX_SECTION_KEYED_DATA_2600, 8)
415 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, cbSize, 4)
416 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_2600, cbSize, 4)
417 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_2600, cbSize, 0)
418 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, ulDataFormatVersion, 4)
419 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_2600, ulDataFormatVersion, 4)
420 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_2600, ulDataFormatVersion, 4)
421 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, lpData, 8)
422 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_2600, lpData, 8)
423 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_2600, lpData, 8)
424 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, ulLength, 4)
425 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_2600, ulLength, 4)
426 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_2600, ulLength, 16)
427 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, lpSectionGlobalData, 8)
428 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_2600, lpSectionGlobalData, 8)
429 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_2600, lpSectionGlobalData, 24)
430 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, ulSectionGlobalDataLength, 4)
431 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_2600, ulSectionGlobalDataLength, 4)
432 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_2600, ulSectionGlobalDataLength, 32)
433 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, lpSectionBase, 8)
434 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_2600, lpSectionBase, 8)
435 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_2600, lpSectionBase, 40)
436 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, ulSectionTotalLength, 4)
437 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_2600, ulSectionTotalLength, 4)
438 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_2600, ulSectionTotalLength, 48)
439 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, hActCtx, 8)
440 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_2600, hActCtx, 8)
441 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_2600, hActCtx, 56)
442 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, ulAssemblyRosterIndex, 4)
443 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_2600, ulAssemblyRosterIndex, 4)
444 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_2600, ulAssemblyRosterIndex, 64)
445}
446
448{
449 /* ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA */
450 TEST_TYPE_SIZE (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, 40)
451 TEST_TYPE_ALIGN (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, 8)
452 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, lpInformation, 8)
453 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, lpInformation, 8)
454 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, lpInformation, 0)
455 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, lpSectionBase, 8)
456 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, lpSectionBase, 8)
457 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, lpSectionBase, 8)
458 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, ulSectionLength, 4)
459 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, ulSectionLength, 4)
460 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, ulSectionLength, 16)
461 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, lpSectionGlobalDataBase, 8)
462 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, lpSectionGlobalDataBase, 8)
463 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, lpSectionGlobalDataBase, 24)
464 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, ulSectionGlobalDataLength, 4)
465 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, ulSectionGlobalDataLength, 4)
466 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, ulSectionGlobalDataLength, 32)
467}
468
470{
471 /* ACTIVATION_CONTEXT_BASIC_INFORMATION */
472 TEST_TYPE_SIZE (ACTIVATION_CONTEXT_BASIC_INFORMATION, 16)
473 TEST_TYPE_ALIGN (ACTIVATION_CONTEXT_BASIC_INFORMATION, 8)
474 TEST_FIELD_SIZE (ACTIVATION_CONTEXT_BASIC_INFORMATION, hActCtx, 8)
475 TEST_FIELD_ALIGN (ACTIVATION_CONTEXT_BASIC_INFORMATION, hActCtx, 8)
476 TEST_FIELD_OFFSET(ACTIVATION_CONTEXT_BASIC_INFORMATION, hActCtx, 0)
477 TEST_FIELD_SIZE (ACTIVATION_CONTEXT_BASIC_INFORMATION, dwFlags, 4)
478 TEST_FIELD_ALIGN (ACTIVATION_CONTEXT_BASIC_INFORMATION, dwFlags, 4)
479 TEST_FIELD_OFFSET(ACTIVATION_CONTEXT_BASIC_INFORMATION, dwFlags, 8)
480}
481
483{
484 /* BY_HANDLE_FILE_INFORMATION */
493 TEST_FIELD_SIZE (BY_HANDLE_FILE_INFORMATION, ftLastAccessTime, 8)
494 TEST_FIELD_ALIGN (BY_HANDLE_FILE_INFORMATION, ftLastAccessTime, 4)
495 TEST_FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, ftLastAccessTime, 12)
496 TEST_FIELD_SIZE (BY_HANDLE_FILE_INFORMATION, ftLastWriteTime, 8)
497 TEST_FIELD_ALIGN (BY_HANDLE_FILE_INFORMATION, ftLastWriteTime, 4)
499 TEST_FIELD_SIZE (BY_HANDLE_FILE_INFORMATION, dwVolumeSerialNumber, 4)
500 TEST_FIELD_ALIGN (BY_HANDLE_FILE_INFORMATION, dwVolumeSerialNumber, 4)
501 TEST_FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, dwVolumeSerialNumber, 28)
517}
518
519static void test_pack_COMMCONFIG(void)
520{
521 /* COMMCONFIG */
527 TEST_FIELD_SIZE (COMMCONFIG, wVersion, 2)
528 TEST_FIELD_ALIGN (COMMCONFIG, wVersion, 2)
529 TEST_FIELD_OFFSET(COMMCONFIG, wVersion, 4)
530 TEST_FIELD_SIZE (COMMCONFIG, wReserved, 2)
531 TEST_FIELD_ALIGN (COMMCONFIG, wReserved, 2)
532 TEST_FIELD_OFFSET(COMMCONFIG, wReserved, 6)
533 TEST_FIELD_SIZE (COMMCONFIG, dcb, 28)
536 TEST_FIELD_SIZE (COMMCONFIG, dwProviderSubType, 4)
537 TEST_FIELD_ALIGN (COMMCONFIG, dwProviderSubType, 4)
538 TEST_FIELD_OFFSET(COMMCONFIG, dwProviderSubType, 36)
539 TEST_FIELD_SIZE (COMMCONFIG, dwProviderOffset, 4)
540 TEST_FIELD_ALIGN (COMMCONFIG, dwProviderOffset, 4)
541 TEST_FIELD_OFFSET(COMMCONFIG, dwProviderOffset, 40)
542 TEST_FIELD_SIZE (COMMCONFIG, dwProviderSize, 4)
543 TEST_FIELD_ALIGN (COMMCONFIG, dwProviderSize, 4)
544 TEST_FIELD_OFFSET(COMMCONFIG, dwProviderSize, 44)
545 TEST_FIELD_SIZE (COMMCONFIG, wcProviderData, 2)
546 TEST_FIELD_ALIGN (COMMCONFIG, wcProviderData, 2)
547 TEST_FIELD_OFFSET(COMMCONFIG, wcProviderData, 48)
548}
549
550static void test_pack_COMMPROP(void)
551{
552 /* COMMPROP */
555 TEST_FIELD_SIZE (COMMPROP, wPacketLength, 2)
556 TEST_FIELD_ALIGN (COMMPROP, wPacketLength, 2)
557 TEST_FIELD_OFFSET(COMMPROP, wPacketLength, 0)
558 TEST_FIELD_SIZE (COMMPROP, wPacketVersion, 2)
559 TEST_FIELD_ALIGN (COMMPROP, wPacketVersion, 2)
560 TEST_FIELD_OFFSET(COMMPROP, wPacketVersion, 2)
561 TEST_FIELD_SIZE (COMMPROP, dwServiceMask, 4)
562 TEST_FIELD_ALIGN (COMMPROP, dwServiceMask, 4)
563 TEST_FIELD_OFFSET(COMMPROP, dwServiceMask, 4)
564 TEST_FIELD_SIZE (COMMPROP, dwReserved1, 4)
565 TEST_FIELD_ALIGN (COMMPROP, dwReserved1, 4)
566 TEST_FIELD_OFFSET(COMMPROP, dwReserved1, 8)
567 TEST_FIELD_SIZE (COMMPROP, dwMaxTxQueue, 4)
568 TEST_FIELD_ALIGN (COMMPROP, dwMaxTxQueue, 4)
569 TEST_FIELD_OFFSET(COMMPROP, dwMaxTxQueue, 12)
570 TEST_FIELD_SIZE (COMMPROP, dwMaxRxQueue, 4)
571 TEST_FIELD_ALIGN (COMMPROP, dwMaxRxQueue, 4)
572 TEST_FIELD_OFFSET(COMMPROP, dwMaxRxQueue, 16)
573 TEST_FIELD_SIZE (COMMPROP, dwMaxBaud, 4)
574 TEST_FIELD_ALIGN (COMMPROP, dwMaxBaud, 4)
575 TEST_FIELD_OFFSET(COMMPROP, dwMaxBaud, 20)
576 TEST_FIELD_SIZE (COMMPROP, dwProvSubType, 4)
577 TEST_FIELD_ALIGN (COMMPROP, dwProvSubType, 4)
578 TEST_FIELD_OFFSET(COMMPROP, dwProvSubType, 24)
579 TEST_FIELD_SIZE (COMMPROP, dwProvCapabilities, 4)
580 TEST_FIELD_ALIGN (COMMPROP, dwProvCapabilities, 4)
581 TEST_FIELD_OFFSET(COMMPROP, dwProvCapabilities, 28)
582 TEST_FIELD_SIZE (COMMPROP, dwSettableParams, 4)
583 TEST_FIELD_ALIGN (COMMPROP, dwSettableParams, 4)
584 TEST_FIELD_OFFSET(COMMPROP, dwSettableParams, 32)
585 TEST_FIELD_SIZE (COMMPROP, dwSettableBaud, 4)
586 TEST_FIELD_ALIGN (COMMPROP, dwSettableBaud, 4)
587 TEST_FIELD_OFFSET(COMMPROP, dwSettableBaud, 36)
588 TEST_FIELD_SIZE (COMMPROP, wSettableData, 2)
589 TEST_FIELD_ALIGN (COMMPROP, wSettableData, 2)
590 TEST_FIELD_OFFSET(COMMPROP, wSettableData, 40)
591 TEST_FIELD_SIZE (COMMPROP, wSettableStopParity, 2)
592 TEST_FIELD_ALIGN (COMMPROP, wSettableStopParity, 2)
593 TEST_FIELD_OFFSET(COMMPROP, wSettableStopParity, 42)
594 TEST_FIELD_SIZE (COMMPROP, dwCurrentTxQueue, 4)
595 TEST_FIELD_ALIGN (COMMPROP, dwCurrentTxQueue, 4)
596 TEST_FIELD_OFFSET(COMMPROP, dwCurrentTxQueue, 44)
597 TEST_FIELD_SIZE (COMMPROP, dwCurrentRxQueue, 4)
598 TEST_FIELD_ALIGN (COMMPROP, dwCurrentRxQueue, 4)
599 TEST_FIELD_OFFSET(COMMPROP, dwCurrentRxQueue, 48)
600 TEST_FIELD_SIZE (COMMPROP, dwProvSpec1, 4)
601 TEST_FIELD_ALIGN (COMMPROP, dwProvSpec1, 4)
602 TEST_FIELD_OFFSET(COMMPROP, dwProvSpec1, 52)
603 TEST_FIELD_SIZE (COMMPROP, dwProvSpec2, 4)
604 TEST_FIELD_ALIGN (COMMPROP, dwProvSpec2, 4)
605 TEST_FIELD_OFFSET(COMMPROP, dwProvSpec2, 56)
606 TEST_FIELD_SIZE (COMMPROP, wcProvChar, 2)
607 TEST_FIELD_ALIGN (COMMPROP, wcProvChar, 2)
608 TEST_FIELD_OFFSET(COMMPROP, wcProvChar, 60)
609}
610
611static void test_pack_COMMTIMEOUTS(void)
612{
613 /* COMMTIMEOUTS */
616 TEST_FIELD_SIZE (COMMTIMEOUTS, ReadIntervalTimeout, 4)
617 TEST_FIELD_ALIGN (COMMTIMEOUTS, ReadIntervalTimeout, 4)
618 TEST_FIELD_OFFSET(COMMTIMEOUTS, ReadIntervalTimeout, 0)
619 TEST_FIELD_SIZE (COMMTIMEOUTS, ReadTotalTimeoutMultiplier, 4)
620 TEST_FIELD_ALIGN (COMMTIMEOUTS, ReadTotalTimeoutMultiplier, 4)
621 TEST_FIELD_OFFSET(COMMTIMEOUTS, ReadTotalTimeoutMultiplier, 4)
622 TEST_FIELD_SIZE (COMMTIMEOUTS, ReadTotalTimeoutConstant, 4)
623 TEST_FIELD_ALIGN (COMMTIMEOUTS, ReadTotalTimeoutConstant, 4)
624 TEST_FIELD_OFFSET(COMMTIMEOUTS, ReadTotalTimeoutConstant, 8)
625 TEST_FIELD_SIZE (COMMTIMEOUTS, WriteTotalTimeoutMultiplier, 4)
626 TEST_FIELD_ALIGN (COMMTIMEOUTS, WriteTotalTimeoutMultiplier, 4)
627 TEST_FIELD_OFFSET(COMMTIMEOUTS, WriteTotalTimeoutMultiplier, 12)
628 TEST_FIELD_SIZE (COMMTIMEOUTS, WriteTotalTimeoutConstant, 4)
629 TEST_FIELD_ALIGN (COMMTIMEOUTS, WriteTotalTimeoutConstant, 4)
630 TEST_FIELD_OFFSET(COMMTIMEOUTS, WriteTotalTimeoutConstant, 16)
631}
632
633static void test_pack_COMSTAT(void)
634{
635 /* COMSTAT */
638 TEST_FIELD_SIZE (COMSTAT, cbInQue, 4)
639 TEST_FIELD_ALIGN (COMSTAT, cbInQue, 4)
640 TEST_FIELD_OFFSET(COMSTAT, cbInQue, 4)
641 TEST_FIELD_SIZE (COMSTAT, cbOutQue, 4)
642 TEST_FIELD_ALIGN (COMSTAT, cbOutQue, 4)
643 TEST_FIELD_OFFSET(COMSTAT, cbOutQue, 8)
644}
645
647{
648 /* CREATE_PROCESS_DEBUG_INFO */
663 TEST_FIELD_SIZE (CREATE_PROCESS_DEBUG_INFO, dwDebugInfoFileOffset, 4)
664 TEST_FIELD_ALIGN (CREATE_PROCESS_DEBUG_INFO, dwDebugInfoFileOffset, 4)
665 TEST_FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, dwDebugInfoFileOffset, 32)
666 TEST_FIELD_SIZE (CREATE_PROCESS_DEBUG_INFO, nDebugInfoSize, 4)
669 TEST_FIELD_SIZE (CREATE_PROCESS_DEBUG_INFO, lpThreadLocalBase, 8)
670 TEST_FIELD_ALIGN (CREATE_PROCESS_DEBUG_INFO, lpThreadLocalBase, 8)
671 TEST_FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, lpThreadLocalBase, 40)
672 TEST_FIELD_SIZE (CREATE_PROCESS_DEBUG_INFO, lpStartAddress, 8)
681}
682
684{
685 /* CREATE_THREAD_DEBUG_INFO */
691 TEST_FIELD_SIZE (CREATE_THREAD_DEBUG_INFO, lpThreadLocalBase, 8)
692 TEST_FIELD_ALIGN (CREATE_THREAD_DEBUG_INFO, lpThreadLocalBase, 8)
693 TEST_FIELD_OFFSET(CREATE_THREAD_DEBUG_INFO, lpThreadLocalBase, 8)
694 TEST_FIELD_SIZE (CREATE_THREAD_DEBUG_INFO, lpStartAddress, 8)
695 TEST_FIELD_ALIGN (CREATE_THREAD_DEBUG_INFO, lpStartAddress, 8)
697}
698
699static void test_pack_CRITICAL_SECTION(void)
700{
701 /* CRITICAL_SECTION */
704}
705
706static void test_pack_CRITICAL_SECTION_DEBUG(void)
707{
708 /* CRITICAL_SECTION_DEBUG */
709}
710
711static void test_pack_DCB(void)
712{
713 /* DCB */
714 TEST_TYPE_SIZE (DCB, 28)
716 TEST_FIELD_SIZE (DCB, DCBlength, 4)
717 TEST_FIELD_ALIGN (DCB, DCBlength, 4)
718 TEST_FIELD_OFFSET(DCB, DCBlength, 0)
719 TEST_FIELD_SIZE (DCB, BaudRate, 4)
720 TEST_FIELD_ALIGN (DCB, BaudRate, 4)
721 TEST_FIELD_OFFSET(DCB, BaudRate, 4)
722 TEST_FIELD_SIZE (DCB, wReserved, 2)
723 TEST_FIELD_ALIGN (DCB, wReserved, 2)
724 TEST_FIELD_OFFSET(DCB, wReserved, 12)
725 TEST_FIELD_SIZE (DCB, XonLim, 2)
726 TEST_FIELD_ALIGN (DCB, XonLim, 2)
727 TEST_FIELD_OFFSET(DCB, XonLim, 14)
728 TEST_FIELD_SIZE (DCB, XoffLim, 2)
729 TEST_FIELD_ALIGN (DCB, XoffLim, 2)
730 TEST_FIELD_OFFSET(DCB, XoffLim, 16)
734 TEST_FIELD_SIZE (DCB, Parity, 1)
735 TEST_FIELD_ALIGN (DCB, Parity, 1)
736 TEST_FIELD_OFFSET(DCB, Parity, 19)
740 TEST_FIELD_SIZE (DCB, XonChar, 1)
741 TEST_FIELD_ALIGN (DCB, XonChar, 1)
742 TEST_FIELD_OFFSET(DCB, XonChar, 21)
743 TEST_FIELD_SIZE (DCB, XoffChar, 1)
744 TEST_FIELD_ALIGN (DCB, XoffChar, 1)
745 TEST_FIELD_OFFSET(DCB, XoffChar, 22)
746 TEST_FIELD_SIZE (DCB, ErrorChar, 1)
747 TEST_FIELD_ALIGN (DCB, ErrorChar, 1)
748 TEST_FIELD_OFFSET(DCB, ErrorChar, 23)
749 TEST_FIELD_SIZE (DCB, EofChar, 1)
750 TEST_FIELD_ALIGN (DCB, EofChar, 1)
751 TEST_FIELD_OFFSET(DCB, EofChar, 24)
752 TEST_FIELD_SIZE (DCB, EvtChar, 1)
753 TEST_FIELD_ALIGN (DCB, EvtChar, 1)
754 TEST_FIELD_OFFSET(DCB, EvtChar, 25)
755 TEST_FIELD_SIZE (DCB, wReserved1, 2)
756 TEST_FIELD_ALIGN (DCB, wReserved1, 2)
757 TEST_FIELD_OFFSET(DCB, wReserved1, 26)
758}
759
760static void test_pack_DEBUG_EVENT(void)
761{
762 /* DEBUG_EVENT */
763 TEST_FIELD_SIZE (DEBUG_EVENT, dwDebugEventCode, 4)
764 TEST_FIELD_ALIGN (DEBUG_EVENT, dwDebugEventCode, 4)
765 TEST_FIELD_OFFSET(DEBUG_EVENT, dwDebugEventCode, 0)
766 TEST_FIELD_SIZE (DEBUG_EVENT, dwProcessId, 4)
767 TEST_FIELD_ALIGN (DEBUG_EVENT, dwProcessId, 4)
768 TEST_FIELD_OFFSET(DEBUG_EVENT, dwProcessId, 4)
772}
773
774static void test_pack_ENUMRESLANGPROCA(void)
775{
776 /* ENUMRESLANGPROCA */
779}
780
781static void test_pack_ENUMRESLANGPROCW(void)
782{
783 /* ENUMRESLANGPROCW */
786}
787
788static void test_pack_ENUMRESNAMEPROCA(void)
789{
790 /* ENUMRESNAMEPROCA */
793}
794
795static void test_pack_ENUMRESNAMEPROCW(void)
796{
797 /* ENUMRESNAMEPROCW */
800}
801
802static void test_pack_ENUMRESTYPEPROCA(void)
803{
804 /* ENUMRESTYPEPROCA */
807}
808
809static void test_pack_ENUMRESTYPEPROCW(void)
810{
811 /* ENUMRESTYPEPROCW */
814}
815
816static void test_pack_EXCEPTION_DEBUG_INFO(void)
817{
818 /* EXCEPTION_DEBUG_INFO */
821 TEST_FIELD_SIZE (EXCEPTION_DEBUG_INFO, ExceptionRecord, 152)
822 TEST_FIELD_ALIGN (EXCEPTION_DEBUG_INFO, ExceptionRecord, 8)
823 TEST_FIELD_OFFSET(EXCEPTION_DEBUG_INFO, ExceptionRecord, 0)
824 TEST_FIELD_SIZE (EXCEPTION_DEBUG_INFO, dwFirstChance, 4)
825 TEST_FIELD_ALIGN (EXCEPTION_DEBUG_INFO, dwFirstChance, 4)
826 TEST_FIELD_OFFSET(EXCEPTION_DEBUG_INFO, dwFirstChance, 152)
827}
828
829static void test_pack_EXIT_PROCESS_DEBUG_INFO(void)
830{
831 /* EXIT_PROCESS_DEBUG_INFO */
837}
838
839static void test_pack_EXIT_THREAD_DEBUG_INFO(void)
840{
841 /* EXIT_THREAD_DEBUG_INFO */
847}
848
849static void test_pack_HW_PROFILE_INFOA(void)
850{
851 /* HW_PROFILE_INFOA */
854 TEST_FIELD_SIZE (HW_PROFILE_INFOA, dwDockInfo, 4)
855 TEST_FIELD_ALIGN (HW_PROFILE_INFOA, dwDockInfo, 4)
856 TEST_FIELD_OFFSET(HW_PROFILE_INFOA, dwDockInfo, 0)
857 TEST_FIELD_SIZE (HW_PROFILE_INFOA, szHwProfileGuid, 39)
858 TEST_FIELD_ALIGN (HW_PROFILE_INFOA, szHwProfileGuid, 1)
859 TEST_FIELD_OFFSET(HW_PROFILE_INFOA, szHwProfileGuid, 4)
860 TEST_FIELD_SIZE (HW_PROFILE_INFOA, szHwProfileName, 80)
861 TEST_FIELD_ALIGN (HW_PROFILE_INFOA, szHwProfileName, 1)
862 TEST_FIELD_OFFSET(HW_PROFILE_INFOA, szHwProfileName, 43)
863}
864
865static void test_pack_HW_PROFILE_INFOW(void)
866{
867 /* HW_PROFILE_INFOW */
870 TEST_FIELD_SIZE (HW_PROFILE_INFOW, dwDockInfo, 4)
871 TEST_FIELD_ALIGN (HW_PROFILE_INFOW, dwDockInfo, 4)
872 TEST_FIELD_OFFSET(HW_PROFILE_INFOW, dwDockInfo, 0)
873 TEST_FIELD_SIZE (HW_PROFILE_INFOW, szHwProfileGuid, 78)
874 TEST_FIELD_ALIGN (HW_PROFILE_INFOW, szHwProfileGuid, 2)
875 TEST_FIELD_OFFSET(HW_PROFILE_INFOW, szHwProfileGuid, 4)
876 TEST_FIELD_SIZE (HW_PROFILE_INFOW, szHwProfileName, 160)
877 TEST_FIELD_ALIGN (HW_PROFILE_INFOW, szHwProfileName, 2)
878 TEST_FIELD_OFFSET(HW_PROFILE_INFOW, szHwProfileName, 82)
879}
880
881static void test_pack_LOAD_DLL_DEBUG_INFO(void)
882{
883 /* LOAD_DLL_DEBUG_INFO */
889 TEST_FIELD_SIZE (LOAD_DLL_DEBUG_INFO, lpBaseOfDll, 8)
890 TEST_FIELD_ALIGN (LOAD_DLL_DEBUG_INFO, lpBaseOfDll, 8)
892 TEST_FIELD_SIZE (LOAD_DLL_DEBUG_INFO, dwDebugInfoFileOffset, 4)
893 TEST_FIELD_ALIGN (LOAD_DLL_DEBUG_INFO, dwDebugInfoFileOffset, 4)
894 TEST_FIELD_OFFSET(LOAD_DLL_DEBUG_INFO, dwDebugInfoFileOffset, 16)
895 TEST_FIELD_SIZE (LOAD_DLL_DEBUG_INFO, nDebugInfoSize, 4)
896 TEST_FIELD_ALIGN (LOAD_DLL_DEBUG_INFO, nDebugInfoSize, 4)
897 TEST_FIELD_OFFSET(LOAD_DLL_DEBUG_INFO, nDebugInfoSize, 20)
898 TEST_FIELD_SIZE (LOAD_DLL_DEBUG_INFO, lpImageName, 8)
899 TEST_FIELD_ALIGN (LOAD_DLL_DEBUG_INFO, lpImageName, 8)
900 TEST_FIELD_OFFSET(LOAD_DLL_DEBUG_INFO, lpImageName, 24)
904}
905
907{
908 /* LPBY_HANDLE_FILE_INFORMATION */
913}
914
915static void test_pack_LPCOMMCONFIG(void)
916{
917 /* LPCOMMCONFIG */
922}
923
924static void test_pack_LPCOMMPROP(void)
925{
926 /* LPCOMMPROP */
931}
932
933static void test_pack_LPCOMMTIMEOUTS(void)
934{
935 /* LPCOMMTIMEOUTS */
940}
941
942static void test_pack_LPCOMSTAT(void)
943{
944 /* LPCOMSTAT */
949}
950
951static void test_pack_LPCRITICAL_SECTION(void)
952{
953 /* LPCRITICAL_SECTION */
956}
957
959{
960 /* LPCRITICAL_SECTION_DEBUG */
963}
964
965static void test_pack_LPDCB(void)
966{
967 /* LPDCB */
972}
973
974static void test_pack_LPDEBUG_EVENT(void)
975{
976 /* LPDEBUG_EVENT */
979}
980
981static void test_pack_LPEXCEPTION_POINTERS(void)
982{
983 /* LPEXCEPTION_POINTERS */
986}
987
988static void test_pack_LPEXCEPTION_RECORD(void)
989{
990 /* LPEXCEPTION_RECORD */
993}
994
995static void test_pack_LPFIBER_START_ROUTINE(void)
996{
997 /* LPFIBER_START_ROUTINE */
1000}
1001
1002static void test_pack_LPHW_PROFILE_INFOA(void)
1003{
1004 /* LPHW_PROFILE_INFOA */
1009}
1010
1011static void test_pack_LPHW_PROFILE_INFOW(void)
1012{
1013 /* LPHW_PROFILE_INFOW */
1018}
1019
1020static void test_pack_LPMEMORYSTATUS(void)
1021{
1022 /* LPMEMORYSTATUS */
1027}
1028
1029static void test_pack_LPMEMORYSTATUSEX(void)
1030{
1031 /* LPMEMORYSTATUSEX */
1032 TEST_TYPE_SIZE (LPMEMORYSTATUSEX, 8)
1033 TEST_TYPE_ALIGN (LPMEMORYSTATUSEX, 8)
1034 TEST_TARGET_SIZE (LPMEMORYSTATUSEX, 64)
1035 TEST_TARGET_ALIGN(LPMEMORYSTATUSEX, 8)
1036}
1037
1038static void test_pack_LPOFSTRUCT(void)
1039{
1040 /* LPOFSTRUCT */
1045}
1046
1047static void test_pack_LPOVERLAPPED(void)
1048{
1049 /* LPOVERLAPPED */
1052}
1053
1055{
1056 /* LPOVERLAPPED_COMPLETION_ROUTINE */
1059}
1060
1061static void test_pack_LPPROCESS_HEAP_ENTRY(void)
1062{
1063 /* LPPROCESS_HEAP_ENTRY */
1066}
1067
1068static void test_pack_LPPROCESS_INFORMATION(void)
1069{
1070 /* LPPROCESS_INFORMATION */
1075}
1076
1077static void test_pack_LPPROGRESS_ROUTINE(void)
1078{
1079 /* LPPROGRESS_ROUTINE */
1082}
1083
1084static void test_pack_LPSECURITY_ATTRIBUTES(void)
1085{
1086 /* LPSECURITY_ATTRIBUTES */
1091}
1092
1093static void test_pack_LPSTARTUPINFOA(void)
1094{
1095 /* LPSTARTUPINFOA */
1100}
1101
1102static void test_pack_LPSTARTUPINFOW(void)
1103{
1104 /* LPSTARTUPINFOW */
1109}
1110
1111static void test_pack_LPSYSTEMTIME(void)
1112{
1113 /* LPSYSTEMTIME */
1118}
1119
1120static void test_pack_LPSYSTEM_INFO(void)
1121{
1122 /* LPSYSTEM_INFO */
1125}
1126
1127static void test_pack_LPSYSTEM_POWER_STATUS(void)
1128{
1129 /* LPSYSTEM_POWER_STATUS */
1134}
1135
1136static void test_pack_LPTHREAD_START_ROUTINE(void)
1137{
1138 /* LPTHREAD_START_ROUTINE */
1141}
1142
1143static void test_pack_LPTIME_ZONE_INFORMATION(void)
1144{
1145 /* LPTIME_ZONE_INFORMATION */
1150}
1151
1153{
1154 /* LPWIN32_FILE_ATTRIBUTE_DATA */
1159}
1160
1161static void test_pack_LPWIN32_FIND_DATAA(void)
1162{
1163 /* LPWIN32_FIND_DATAA */
1168}
1169
1170static void test_pack_LPWIN32_FIND_DATAW(void)
1171{
1172 /* LPWIN32_FIND_DATAW */
1177}
1178
1179static void test_pack_LPWIN32_STREAM_ID(void)
1180{
1181 /* LPWIN32_STREAM_ID */
1186}
1187
1188static void test_pack_MEMORYSTATUS(void)
1189{
1190 /* MEMORYSTATUS */
1196 TEST_FIELD_SIZE (MEMORYSTATUS, dwMemoryLoad, 4)
1197 TEST_FIELD_ALIGN (MEMORYSTATUS, dwMemoryLoad, 4)
1198 TEST_FIELD_OFFSET(MEMORYSTATUS, dwMemoryLoad, 4)
1199 TEST_FIELD_SIZE (MEMORYSTATUS, dwTotalPhys, 8)
1200 TEST_FIELD_ALIGN (MEMORYSTATUS, dwTotalPhys, 8)
1201 TEST_FIELD_OFFSET(MEMORYSTATUS, dwTotalPhys, 8)
1202 TEST_FIELD_SIZE (MEMORYSTATUS, dwAvailPhys, 8)
1203 TEST_FIELD_ALIGN (MEMORYSTATUS, dwAvailPhys, 8)
1204 TEST_FIELD_OFFSET(MEMORYSTATUS, dwAvailPhys, 16)
1205 TEST_FIELD_SIZE (MEMORYSTATUS, dwTotalPageFile, 8)
1206 TEST_FIELD_ALIGN (MEMORYSTATUS, dwTotalPageFile, 8)
1207 TEST_FIELD_OFFSET(MEMORYSTATUS, dwTotalPageFile, 24)
1208 TEST_FIELD_SIZE (MEMORYSTATUS, dwAvailPageFile, 8)
1209 TEST_FIELD_ALIGN (MEMORYSTATUS, dwAvailPageFile, 8)
1210 TEST_FIELD_OFFSET(MEMORYSTATUS, dwAvailPageFile, 32)
1211 TEST_FIELD_SIZE (MEMORYSTATUS, dwTotalVirtual, 8)
1212 TEST_FIELD_ALIGN (MEMORYSTATUS, dwTotalVirtual, 8)
1213 TEST_FIELD_OFFSET(MEMORYSTATUS, dwTotalVirtual, 40)
1214 TEST_FIELD_SIZE (MEMORYSTATUS, dwAvailVirtual, 8)
1215 TEST_FIELD_ALIGN (MEMORYSTATUS, dwAvailVirtual, 8)
1216 TEST_FIELD_OFFSET(MEMORYSTATUS, dwAvailVirtual, 48)
1217}
1218
1219static void test_pack_MEMORYSTATUSEX(void)
1220{
1221 /* MEMORYSTATUSEX (pack 8) */
1222 TEST_TYPE_SIZE (MEMORYSTATUSEX, 64)
1223 TEST_TYPE_ALIGN (MEMORYSTATUSEX, 8)
1224 TEST_FIELD_SIZE (MEMORYSTATUSEX, dwLength, 4)
1225 TEST_FIELD_ALIGN (MEMORYSTATUSEX, dwLength, 4)
1226 TEST_FIELD_OFFSET(MEMORYSTATUSEX, dwLength, 0)
1227 TEST_FIELD_SIZE (MEMORYSTATUSEX, dwMemoryLoad, 4)
1228 TEST_FIELD_ALIGN (MEMORYSTATUSEX, dwMemoryLoad, 4)
1229 TEST_FIELD_OFFSET(MEMORYSTATUSEX, dwMemoryLoad, 4)
1230 TEST_FIELD_SIZE (MEMORYSTATUSEX, ullTotalPhys, 8)
1231 TEST_FIELD_ALIGN (MEMORYSTATUSEX, ullTotalPhys, 8)
1232 TEST_FIELD_OFFSET(MEMORYSTATUSEX, ullTotalPhys, 8)
1233 TEST_FIELD_SIZE (MEMORYSTATUSEX, ullAvailPhys, 8)
1234 TEST_FIELD_ALIGN (MEMORYSTATUSEX, ullAvailPhys, 8)
1235 TEST_FIELD_OFFSET(MEMORYSTATUSEX, ullAvailPhys, 16)
1236 TEST_FIELD_SIZE (MEMORYSTATUSEX, ullTotalPageFile, 8)
1237 TEST_FIELD_ALIGN (MEMORYSTATUSEX, ullTotalPageFile, 8)
1238 TEST_FIELD_OFFSET(MEMORYSTATUSEX, ullTotalPageFile, 24)
1239 TEST_FIELD_SIZE (MEMORYSTATUSEX, ullAvailPageFile, 8)
1240 TEST_FIELD_ALIGN (MEMORYSTATUSEX, ullAvailPageFile, 8)
1241 TEST_FIELD_OFFSET(MEMORYSTATUSEX, ullAvailPageFile, 32)
1242 TEST_FIELD_SIZE (MEMORYSTATUSEX, ullTotalVirtual, 8)
1243 TEST_FIELD_ALIGN (MEMORYSTATUSEX, ullTotalVirtual, 8)
1244 TEST_FIELD_OFFSET(MEMORYSTATUSEX, ullTotalVirtual, 40)
1245 TEST_FIELD_SIZE (MEMORYSTATUSEX, ullAvailVirtual, 8)
1246 TEST_FIELD_ALIGN (MEMORYSTATUSEX, ullAvailVirtual, 8)
1247 TEST_FIELD_OFFSET(MEMORYSTATUSEX, ullAvailVirtual, 48)
1248 TEST_FIELD_SIZE (MEMORYSTATUSEX, ullAvailExtendedVirtual, 8)
1249 TEST_FIELD_ALIGN (MEMORYSTATUSEX, ullAvailExtendedVirtual, 8)
1250 TEST_FIELD_OFFSET(MEMORYSTATUSEX, ullAvailExtendedVirtual, 56)
1251}
1252
1253static void test_pack_OFSTRUCT(void)
1254{
1255 /* OFSTRUCT */
1258 TEST_FIELD_SIZE (OFSTRUCT, cBytes, 1)
1259 TEST_FIELD_ALIGN (OFSTRUCT, cBytes, 1)
1260 TEST_FIELD_OFFSET(OFSTRUCT, cBytes, 0)
1261 TEST_FIELD_SIZE (OFSTRUCT, fFixedDisk, 1)
1262 TEST_FIELD_ALIGN (OFSTRUCT, fFixedDisk, 1)
1263 TEST_FIELD_OFFSET(OFSTRUCT, fFixedDisk, 1)
1264 TEST_FIELD_SIZE (OFSTRUCT, nErrCode, 2)
1265 TEST_FIELD_ALIGN (OFSTRUCT, nErrCode, 2)
1266 TEST_FIELD_OFFSET(OFSTRUCT, nErrCode, 2)
1273 TEST_FIELD_SIZE (OFSTRUCT, szPathName, 128)
1274 TEST_FIELD_ALIGN (OFSTRUCT, szPathName, 1)
1275 TEST_FIELD_OFFSET(OFSTRUCT, szPathName, 8)
1276}
1277
1278static void test_pack_OUTPUT_DEBUG_STRING_INFO(void)
1279{
1280 /* OUTPUT_DEBUG_STRING_INFO */
1283 TEST_FIELD_SIZE (OUTPUT_DEBUG_STRING_INFO, lpDebugStringData, 8)
1284 TEST_FIELD_ALIGN (OUTPUT_DEBUG_STRING_INFO, lpDebugStringData, 8)
1285 TEST_FIELD_OFFSET(OUTPUT_DEBUG_STRING_INFO, lpDebugStringData, 0)
1289 TEST_FIELD_SIZE (OUTPUT_DEBUG_STRING_INFO, nDebugStringLength, 2)
1290 TEST_FIELD_ALIGN (OUTPUT_DEBUG_STRING_INFO, nDebugStringLength, 2)
1291 TEST_FIELD_OFFSET(OUTPUT_DEBUG_STRING_INFO, nDebugStringLength, 10)
1292}
1293
1294static void test_pack_PACTCTXA(void)
1295{
1296 /* PACTCTXA */
1297 TEST_TYPE_SIZE (PACTCTXA, 8)
1298 TEST_TYPE_ALIGN (PACTCTXA, 8)
1299 TEST_TARGET_SIZE (PACTCTXA, 56)
1300 TEST_TARGET_ALIGN(PACTCTXA, 8)
1301}
1302
1303static void test_pack_PACTCTXW(void)
1304{
1305 /* PACTCTXW */
1306 TEST_TYPE_SIZE (PACTCTXW, 8)
1307 TEST_TYPE_ALIGN (PACTCTXW, 8)
1308 TEST_TARGET_SIZE (PACTCTXW, 56)
1309 TEST_TARGET_ALIGN(PACTCTXW, 8)
1310}
1311
1313{
1314 /* PACTCTX_SECTION_KEYED_DATA */
1319}
1320
1322{
1323 /* PACTCTX_SECTION_KEYED_DATA_2600 */
1324 TEST_TYPE_SIZE (PACTCTX_SECTION_KEYED_DATA_2600, 8)
1325 TEST_TYPE_ALIGN (PACTCTX_SECTION_KEYED_DATA_2600, 8)
1326 TEST_TARGET_SIZE (PACTCTX_SECTION_KEYED_DATA_2600, 72)
1327 TEST_TARGET_ALIGN(PACTCTX_SECTION_KEYED_DATA_2600, 8)
1328}
1329
1331{
1332 /* PACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA */
1333 TEST_TYPE_SIZE (PACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, 8)
1334 TEST_TYPE_ALIGN (PACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, 8)
1335 TEST_TARGET_SIZE (PACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, 40)
1336 TEST_TARGET_ALIGN(PACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, 8)
1337}
1338
1340{
1341 /* PACTIVATION_CONTEXT_BASIC_INFORMATION */
1342 TEST_TYPE_SIZE (PACTIVATION_CONTEXT_BASIC_INFORMATION, 8)
1343 TEST_TYPE_ALIGN (PACTIVATION_CONTEXT_BASIC_INFORMATION, 8)
1344 TEST_TARGET_SIZE (PACTIVATION_CONTEXT_BASIC_INFORMATION, 16)
1345 TEST_TARGET_ALIGN(PACTIVATION_CONTEXT_BASIC_INFORMATION, 8)
1346}
1347
1348static void test_pack_PAPCFUNC(void)
1349{
1350 /* PAPCFUNC */
1353}
1354
1356{
1357 /* PBY_HANDLE_FILE_INFORMATION */
1362}
1363
1364static void test_pack_PCACTCTXA(void)
1365{
1366 /* PCACTCTXA */
1367 TEST_TYPE_SIZE (PCACTCTXA, 8)
1368 TEST_TYPE_ALIGN (PCACTCTXA, 8)
1369 TEST_TARGET_SIZE (PCACTCTXA, 56)
1370 TEST_TARGET_ALIGN(PCACTCTXA, 8)
1371}
1372
1373static void test_pack_PCACTCTXW(void)
1374{
1375 /* PCACTCTXW */
1376 TEST_TYPE_SIZE (PCACTCTXW, 8)
1377 TEST_TYPE_ALIGN (PCACTCTXW, 8)
1378 TEST_TARGET_SIZE (PCACTCTXW, 56)
1379 TEST_TARGET_ALIGN(PCACTCTXW, 8)
1380}
1381
1383{
1384 /* PCACTCTX_SECTION_KEYED_DATA */
1385 TEST_TYPE_SIZE (PCACTCTX_SECTION_KEYED_DATA, 8)
1386 TEST_TYPE_ALIGN (PCACTCTX_SECTION_KEYED_DATA, 8)
1387 TEST_TARGET_SIZE (PCACTCTX_SECTION_KEYED_DATA, 112)
1388 TEST_TARGET_ALIGN(PCACTCTX_SECTION_KEYED_DATA, 8)
1389}
1390
1392{
1393 /* PCACTCTX_SECTION_KEYED_DATA_2600 */
1394 TEST_TYPE_SIZE (PCACTCTX_SECTION_KEYED_DATA_2600, 8)
1395 TEST_TYPE_ALIGN (PCACTCTX_SECTION_KEYED_DATA_2600, 8)
1396 TEST_TARGET_SIZE (PCACTCTX_SECTION_KEYED_DATA_2600, 72)
1397 TEST_TARGET_ALIGN(PCACTCTX_SECTION_KEYED_DATA_2600, 8)
1398}
1399
1401{
1402 /* PCACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA */
1403 TEST_TYPE_SIZE (PCACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, 8)
1404 TEST_TYPE_ALIGN (PCACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, 8)
1405 TEST_TARGET_SIZE (PCACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, 40)
1406 TEST_TARGET_ALIGN(PCACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, 8)
1407}
1408
1409static void test_pack_PCRITICAL_SECTION(void)
1410{
1411 /* PCRITICAL_SECTION */
1414}
1415
1416static void test_pack_PCRITICAL_SECTION_DEBUG(void)
1417{
1418 /* PCRITICAL_SECTION_DEBUG */
1421}
1422
1423static void test_pack_PFIBER_START_ROUTINE(void)
1424{
1425 /* PFIBER_START_ROUTINE */
1428}
1429
1430static void test_pack_POFSTRUCT(void)
1431{
1432 /* POFSTRUCT */
1437}
1438
1439static void test_pack_PPROCESS_HEAP_ENTRY(void)
1440{
1441 /* PPROCESS_HEAP_ENTRY */
1444}
1445
1446static void test_pack_PPROCESS_INFORMATION(void)
1447{
1448 /* PPROCESS_INFORMATION */
1453}
1454
1455static void test_pack_PQUERYACTCTXW_FUNC(void)
1456{
1457 /* PQUERYACTCTXW_FUNC */
1458 TEST_TYPE_SIZE (PQUERYACTCTXW_FUNC, 8)
1459 TEST_TYPE_ALIGN (PQUERYACTCTXW_FUNC, 8)
1460}
1461
1462static void test_pack_PROCESS_HEAP_ENTRY(void)
1463{
1464 /* PROCESS_HEAP_ENTRY */
1471 TEST_FIELD_SIZE (PROCESS_HEAP_ENTRY, cbOverhead, 1)
1472 TEST_FIELD_ALIGN (PROCESS_HEAP_ENTRY, cbOverhead, 1)
1473 TEST_FIELD_OFFSET(PROCESS_HEAP_ENTRY, cbOverhead, 12)
1474 TEST_FIELD_SIZE (PROCESS_HEAP_ENTRY, iRegionIndex, 1)
1475 TEST_FIELD_ALIGN (PROCESS_HEAP_ENTRY, iRegionIndex, 1)
1476 TEST_FIELD_OFFSET(PROCESS_HEAP_ENTRY, iRegionIndex, 13)
1480}
1481
1482static void test_pack_PROCESS_INFORMATION(void)
1483{
1484 /* PROCESS_INFORMATION */
1493 TEST_FIELD_SIZE (PROCESS_INFORMATION, dwProcessId, 4)
1494 TEST_FIELD_ALIGN (PROCESS_INFORMATION, dwProcessId, 4)
1495 TEST_FIELD_OFFSET(PROCESS_INFORMATION, dwProcessId, 16)
1499}
1500
1501static void test_pack_PSECURITY_ATTRIBUTES(void)
1502{
1503 /* PSECURITY_ATTRIBUTES */
1508}
1509
1510static void test_pack_PSYSTEMTIME(void)
1511{
1512 /* PSYSTEMTIME */
1517}
1518
1519static void test_pack_PTIMERAPCROUTINE(void)
1520{
1521 /* PTIMERAPCROUTINE */
1524}
1525
1526static void test_pack_PTIME_ZONE_INFORMATION(void)
1527{
1528 /* PTIME_ZONE_INFORMATION */
1533}
1534
1535static void test_pack_PWIN32_FIND_DATAA(void)
1536{
1537 /* PWIN32_FIND_DATAA */
1542}
1543
1544static void test_pack_PWIN32_FIND_DATAW(void)
1545{
1546 /* PWIN32_FIND_DATAW */
1551}
1552
1553static void test_pack_RIP_INFO(void)
1554{
1555 /* RIP_INFO */
1558 TEST_FIELD_SIZE (RIP_INFO, dwError, 4)
1559 TEST_FIELD_ALIGN (RIP_INFO, dwError, 4)
1560 TEST_FIELD_OFFSET(RIP_INFO, dwError, 0)
1561 TEST_FIELD_SIZE (RIP_INFO, dwType, 4)
1562 TEST_FIELD_ALIGN (RIP_INFO, dwType, 4)
1563 TEST_FIELD_OFFSET(RIP_INFO, dwType, 4)
1564}
1565
1566static void test_pack_SECURITY_ATTRIBUTES(void)
1567{
1568 /* SECURITY_ATTRIBUTES */
1574 TEST_FIELD_SIZE (SECURITY_ATTRIBUTES, lpSecurityDescriptor, 8)
1575 TEST_FIELD_ALIGN (SECURITY_ATTRIBUTES, lpSecurityDescriptor, 8)
1576 TEST_FIELD_OFFSET(SECURITY_ATTRIBUTES, lpSecurityDescriptor, 8)
1580}
1581
1582static void test_pack_STARTUPINFOA(void)
1583{
1584 /* STARTUPINFOA */
1590 TEST_FIELD_SIZE (STARTUPINFOA, lpReserved, 8)
1591 TEST_FIELD_ALIGN (STARTUPINFOA, lpReserved, 8)
1592 TEST_FIELD_OFFSET(STARTUPINFOA, lpReserved, 8)
1593 TEST_FIELD_SIZE (STARTUPINFOA, lpDesktop, 8)
1594 TEST_FIELD_ALIGN (STARTUPINFOA, lpDesktop, 8)
1595 TEST_FIELD_OFFSET(STARTUPINFOA, lpDesktop, 16)
1605 TEST_FIELD_SIZE (STARTUPINFOA, dwXSize, 4)
1606 TEST_FIELD_ALIGN (STARTUPINFOA, dwXSize, 4)
1607 TEST_FIELD_OFFSET(STARTUPINFOA, dwXSize, 40)
1608 TEST_FIELD_SIZE (STARTUPINFOA, dwYSize, 4)
1609 TEST_FIELD_ALIGN (STARTUPINFOA, dwYSize, 4)
1610 TEST_FIELD_OFFSET(STARTUPINFOA, dwYSize, 44)
1611 TEST_FIELD_SIZE (STARTUPINFOA, dwXCountChars, 4)
1612 TEST_FIELD_ALIGN (STARTUPINFOA, dwXCountChars, 4)
1613 TEST_FIELD_OFFSET(STARTUPINFOA, dwXCountChars, 48)
1614 TEST_FIELD_SIZE (STARTUPINFOA, dwYCountChars, 4)
1615 TEST_FIELD_ALIGN (STARTUPINFOA, dwYCountChars, 4)
1616 TEST_FIELD_OFFSET(STARTUPINFOA, dwYCountChars, 52)
1617 TEST_FIELD_SIZE (STARTUPINFOA, dwFillAttribute, 4)
1618 TEST_FIELD_ALIGN (STARTUPINFOA, dwFillAttribute, 4)
1619 TEST_FIELD_OFFSET(STARTUPINFOA, dwFillAttribute, 56)
1623 TEST_FIELD_SIZE (STARTUPINFOA, wShowWindow, 2)
1624 TEST_FIELD_ALIGN (STARTUPINFOA, wShowWindow, 2)
1625 TEST_FIELD_OFFSET(STARTUPINFOA, wShowWindow, 64)
1626 TEST_FIELD_SIZE (STARTUPINFOA, cbReserved2, 2)
1627 TEST_FIELD_ALIGN (STARTUPINFOA, cbReserved2, 2)
1628 TEST_FIELD_OFFSET(STARTUPINFOA, cbReserved2, 66)
1629 TEST_FIELD_SIZE (STARTUPINFOA, lpReserved2, 8)
1630 TEST_FIELD_ALIGN (STARTUPINFOA, lpReserved2, 8)
1631 TEST_FIELD_OFFSET(STARTUPINFOA, lpReserved2, 72)
1632 TEST_FIELD_SIZE (STARTUPINFOA, hStdInput, 8)
1633 TEST_FIELD_ALIGN (STARTUPINFOA, hStdInput, 8)
1634 TEST_FIELD_OFFSET(STARTUPINFOA, hStdInput, 80)
1638 TEST_FIELD_SIZE (STARTUPINFOA, hStdError, 8)
1639 TEST_FIELD_ALIGN (STARTUPINFOA, hStdError, 8)
1640 TEST_FIELD_OFFSET(STARTUPINFOA, hStdError, 96)
1641}
1642
1643static void test_pack_STARTUPINFOW(void)
1644{
1645 /* STARTUPINFOW */
1651 TEST_FIELD_SIZE (STARTUPINFOW, lpReserved, 8)
1652 TEST_FIELD_ALIGN (STARTUPINFOW, lpReserved, 8)
1653 TEST_FIELD_OFFSET(STARTUPINFOW, lpReserved, 8)
1654 TEST_FIELD_SIZE (STARTUPINFOW, lpDesktop, 8)
1655 TEST_FIELD_ALIGN (STARTUPINFOW, lpDesktop, 8)
1656 TEST_FIELD_OFFSET(STARTUPINFOW, lpDesktop, 16)
1666 TEST_FIELD_SIZE (STARTUPINFOW, dwXSize, 4)
1667 TEST_FIELD_ALIGN (STARTUPINFOW, dwXSize, 4)
1668 TEST_FIELD_OFFSET(STARTUPINFOW, dwXSize, 40)
1669 TEST_FIELD_SIZE (STARTUPINFOW, dwYSize, 4)
1670 TEST_FIELD_ALIGN (STARTUPINFOW, dwYSize, 4)
1671 TEST_FIELD_OFFSET(STARTUPINFOW, dwYSize, 44)
1672 TEST_FIELD_SIZE (STARTUPINFOW, dwXCountChars, 4)
1673 TEST_FIELD_ALIGN (STARTUPINFOW, dwXCountChars, 4)
1674 TEST_FIELD_OFFSET(STARTUPINFOW, dwXCountChars, 48)
1675 TEST_FIELD_SIZE (STARTUPINFOW, dwYCountChars, 4)
1676 TEST_FIELD_ALIGN (STARTUPINFOW, dwYCountChars, 4)
1677 TEST_FIELD_OFFSET(STARTUPINFOW, dwYCountChars, 52)
1678 TEST_FIELD_SIZE (STARTUPINFOW, dwFillAttribute, 4)
1679 TEST_FIELD_ALIGN (STARTUPINFOW, dwFillAttribute, 4)
1680 TEST_FIELD_OFFSET(STARTUPINFOW, dwFillAttribute, 56)
1684 TEST_FIELD_SIZE (STARTUPINFOW, wShowWindow, 2)
1685 TEST_FIELD_ALIGN (STARTUPINFOW, wShowWindow, 2)
1686 TEST_FIELD_OFFSET(STARTUPINFOW, wShowWindow, 64)
1687 TEST_FIELD_SIZE (STARTUPINFOW, cbReserved2, 2)
1688 TEST_FIELD_ALIGN (STARTUPINFOW, cbReserved2, 2)
1689 TEST_FIELD_OFFSET(STARTUPINFOW, cbReserved2, 66)
1690 TEST_FIELD_SIZE (STARTUPINFOW, lpReserved2, 8)
1691 TEST_FIELD_ALIGN (STARTUPINFOW, lpReserved2, 8)
1692 TEST_FIELD_OFFSET(STARTUPINFOW, lpReserved2, 72)
1693 TEST_FIELD_SIZE (STARTUPINFOW, hStdInput, 8)
1694 TEST_FIELD_ALIGN (STARTUPINFOW, hStdInput, 8)
1695 TEST_FIELD_OFFSET(STARTUPINFOW, hStdInput, 80)
1699 TEST_FIELD_SIZE (STARTUPINFOW, hStdError, 8)
1700 TEST_FIELD_ALIGN (STARTUPINFOW, hStdError, 8)
1701 TEST_FIELD_OFFSET(STARTUPINFOW, hStdError, 96)
1702}
1703
1704static void test_pack_SYSTEMTIME(void)
1705{
1706 /* SYSTEMTIME */
1709 TEST_FIELD_SIZE (SYSTEMTIME, wYear, 2)
1710 TEST_FIELD_ALIGN (SYSTEMTIME, wYear, 2)
1711 TEST_FIELD_OFFSET(SYSTEMTIME, wYear, 0)
1712 TEST_FIELD_SIZE (SYSTEMTIME, wMonth, 2)
1713 TEST_FIELD_ALIGN (SYSTEMTIME, wMonth, 2)
1714 TEST_FIELD_OFFSET(SYSTEMTIME, wMonth, 2)
1715 TEST_FIELD_SIZE (SYSTEMTIME, wDayOfWeek, 2)
1716 TEST_FIELD_ALIGN (SYSTEMTIME, wDayOfWeek, 2)
1717 TEST_FIELD_OFFSET(SYSTEMTIME, wDayOfWeek, 4)
1718 TEST_FIELD_SIZE (SYSTEMTIME, wDay, 2)
1719 TEST_FIELD_ALIGN (SYSTEMTIME, wDay, 2)
1721 TEST_FIELD_SIZE (SYSTEMTIME, wHour, 2)
1722 TEST_FIELD_ALIGN (SYSTEMTIME, wHour, 2)
1723 TEST_FIELD_OFFSET(SYSTEMTIME, wHour, 8)
1724 TEST_FIELD_SIZE (SYSTEMTIME, wMinute, 2)
1725 TEST_FIELD_ALIGN (SYSTEMTIME, wMinute, 2)
1726 TEST_FIELD_OFFSET(SYSTEMTIME, wMinute, 10)
1727 TEST_FIELD_SIZE (SYSTEMTIME, wSecond, 2)
1728 TEST_FIELD_ALIGN (SYSTEMTIME, wSecond, 2)
1729 TEST_FIELD_OFFSET(SYSTEMTIME, wSecond, 12)
1730 TEST_FIELD_SIZE (SYSTEMTIME, wMilliseconds, 2)
1731 TEST_FIELD_ALIGN (SYSTEMTIME, wMilliseconds, 2)
1732 TEST_FIELD_OFFSET(SYSTEMTIME, wMilliseconds, 14)
1733}
1734
1735static void test_pack_SYSTEM_INFO(void)
1736{
1737 /* SYSTEM_INFO */
1738}
1739
1740static void test_pack_SYSTEM_POWER_STATUS(void)
1741{
1742 /* SYSTEM_POWER_STATUS */
1745 TEST_FIELD_SIZE (SYSTEM_POWER_STATUS, ACLineStatus, 1)
1746 TEST_FIELD_ALIGN (SYSTEM_POWER_STATUS, ACLineStatus, 1)
1747 TEST_FIELD_OFFSET(SYSTEM_POWER_STATUS, ACLineStatus, 0)
1748 TEST_FIELD_SIZE (SYSTEM_POWER_STATUS, BatteryFlag, 1)
1749 TEST_FIELD_ALIGN (SYSTEM_POWER_STATUS, BatteryFlag, 1)
1750 TEST_FIELD_OFFSET(SYSTEM_POWER_STATUS, BatteryFlag, 1)
1751 TEST_FIELD_SIZE (SYSTEM_POWER_STATUS, BatteryLifePercent, 1)
1752 TEST_FIELD_ALIGN (SYSTEM_POWER_STATUS, BatteryLifePercent, 1)
1753 TEST_FIELD_OFFSET(SYSTEM_POWER_STATUS, BatteryLifePercent, 2)
1754 TEST_FIELD_SIZE (SYSTEM_POWER_STATUS, SystemStatusFlag, 1)
1755 TEST_FIELD_ALIGN (SYSTEM_POWER_STATUS, SystemStatusFlag, 1)
1756 TEST_FIELD_OFFSET(SYSTEM_POWER_STATUS, SystemStatusFlag, 3)
1757 TEST_FIELD_SIZE (SYSTEM_POWER_STATUS, BatteryLifeTime, 4)
1758 TEST_FIELD_ALIGN (SYSTEM_POWER_STATUS, BatteryLifeTime, 4)
1759 TEST_FIELD_OFFSET(SYSTEM_POWER_STATUS, BatteryLifeTime, 4)
1760 TEST_FIELD_SIZE (SYSTEM_POWER_STATUS, BatteryFullLifeTime, 4)
1761 TEST_FIELD_ALIGN (SYSTEM_POWER_STATUS, BatteryFullLifeTime, 4)
1762 TEST_FIELD_OFFSET(SYSTEM_POWER_STATUS, BatteryFullLifeTime, 8)
1763}
1764
1765static void test_pack_TIME_ZONE_INFORMATION(void)
1766{
1767 /* TIME_ZONE_INFORMATION */
1773 TEST_FIELD_SIZE (TIME_ZONE_INFORMATION, StandardName, 64)
1774 TEST_FIELD_ALIGN (TIME_ZONE_INFORMATION, StandardName, 2)
1776 TEST_FIELD_SIZE (TIME_ZONE_INFORMATION, StandardDate, 16)
1777 TEST_FIELD_ALIGN (TIME_ZONE_INFORMATION, StandardDate, 2)
1778 TEST_FIELD_OFFSET(TIME_ZONE_INFORMATION, StandardDate, 68)
1779 TEST_FIELD_SIZE (TIME_ZONE_INFORMATION, StandardBias, 4)
1780 TEST_FIELD_ALIGN (TIME_ZONE_INFORMATION, StandardBias, 4)
1781 TEST_FIELD_OFFSET(TIME_ZONE_INFORMATION, StandardBias, 84)
1782 TEST_FIELD_SIZE (TIME_ZONE_INFORMATION, DaylightName, 64)
1783 TEST_FIELD_ALIGN (TIME_ZONE_INFORMATION, DaylightName, 2)
1784 TEST_FIELD_OFFSET(TIME_ZONE_INFORMATION, DaylightName, 88)
1785 TEST_FIELD_SIZE (TIME_ZONE_INFORMATION, DaylightDate, 16)
1786 TEST_FIELD_ALIGN (TIME_ZONE_INFORMATION, DaylightDate, 2)
1787 TEST_FIELD_OFFSET(TIME_ZONE_INFORMATION, DaylightDate, 152)
1788 TEST_FIELD_SIZE (TIME_ZONE_INFORMATION, DaylightBias, 4)
1789 TEST_FIELD_ALIGN (TIME_ZONE_INFORMATION, DaylightBias, 4)
1790 TEST_FIELD_OFFSET(TIME_ZONE_INFORMATION, DaylightBias, 168)
1791}
1792
1793static void test_pack_UNLOAD_DLL_DEBUG_INFO(void)
1794{
1795 /* UNLOAD_DLL_DEBUG_INFO */
1798 TEST_FIELD_SIZE (UNLOAD_DLL_DEBUG_INFO, lpBaseOfDll, 8)
1799 TEST_FIELD_ALIGN (UNLOAD_DLL_DEBUG_INFO, lpBaseOfDll, 8)
1801}
1802
1803static void test_pack_WAITORTIMERCALLBACK(void)
1804{
1805 /* WAITORTIMERCALLBACK */
1808}
1809
1811{
1812 /* WIN32_FILE_ATTRIBUTE_DATA */
1818 TEST_FIELD_SIZE (WIN32_FILE_ATTRIBUTE_DATA, ftCreationTime, 8)
1819 TEST_FIELD_ALIGN (WIN32_FILE_ATTRIBUTE_DATA, ftCreationTime, 4)
1821 TEST_FIELD_SIZE (WIN32_FILE_ATTRIBUTE_DATA, ftLastAccessTime, 8)
1822 TEST_FIELD_ALIGN (WIN32_FILE_ATTRIBUTE_DATA, ftLastAccessTime, 4)
1823 TEST_FIELD_OFFSET(WIN32_FILE_ATTRIBUTE_DATA, ftLastAccessTime, 12)
1824 TEST_FIELD_SIZE (WIN32_FILE_ATTRIBUTE_DATA, ftLastWriteTime, 8)
1825 TEST_FIELD_ALIGN (WIN32_FILE_ATTRIBUTE_DATA, ftLastWriteTime, 4)
1826 TEST_FIELD_OFFSET(WIN32_FILE_ATTRIBUTE_DATA, ftLastWriteTime, 20)
1827 TEST_FIELD_SIZE (WIN32_FILE_ATTRIBUTE_DATA, nFileSizeHigh, 4)
1833}
1834
1835static void test_pack_WIN32_FIND_DATAA(void)
1836{
1837 /* WIN32_FIND_DATAA */
1843 TEST_FIELD_SIZE (WIN32_FIND_DATAA, ftCreationTime, 8)
1844 TEST_FIELD_ALIGN (WIN32_FIND_DATAA, ftCreationTime, 4)
1845 TEST_FIELD_OFFSET(WIN32_FIND_DATAA, ftCreationTime, 4)
1846 TEST_FIELD_SIZE (WIN32_FIND_DATAA, ftLastAccessTime, 8)
1847 TEST_FIELD_ALIGN (WIN32_FIND_DATAA, ftLastAccessTime, 4)
1848 TEST_FIELD_OFFSET(WIN32_FIND_DATAA, ftLastAccessTime, 12)
1849 TEST_FIELD_SIZE (WIN32_FIND_DATAA, ftLastWriteTime, 8)
1850 TEST_FIELD_ALIGN (WIN32_FIND_DATAA, ftLastWriteTime, 4)
1851 TEST_FIELD_OFFSET(WIN32_FIND_DATAA, ftLastWriteTime, 20)
1852 TEST_FIELD_SIZE (WIN32_FIND_DATAA, nFileSizeHigh, 4)
1853 TEST_FIELD_ALIGN (WIN32_FIND_DATAA, nFileSizeHigh, 4)
1854 TEST_FIELD_OFFSET(WIN32_FIND_DATAA, nFileSizeHigh, 28)
1855 TEST_FIELD_SIZE (WIN32_FIND_DATAA, nFileSizeLow, 4)
1856 TEST_FIELD_ALIGN (WIN32_FIND_DATAA, nFileSizeLow, 4)
1857 TEST_FIELD_OFFSET(WIN32_FIND_DATAA, nFileSizeLow, 32)
1858 TEST_FIELD_SIZE (WIN32_FIND_DATAA, dwReserved0, 4)
1859 TEST_FIELD_ALIGN (WIN32_FIND_DATAA, dwReserved0, 4)
1860 TEST_FIELD_OFFSET(WIN32_FIND_DATAA, dwReserved0, 36)
1861 TEST_FIELD_SIZE (WIN32_FIND_DATAA, dwReserved1, 4)
1862 TEST_FIELD_ALIGN (WIN32_FIND_DATAA, dwReserved1, 4)
1863 TEST_FIELD_OFFSET(WIN32_FIND_DATAA, dwReserved1, 40)
1864 TEST_FIELD_SIZE (WIN32_FIND_DATAA, cFileName, 260)
1865 TEST_FIELD_ALIGN (WIN32_FIND_DATAA, cFileName, 1)
1866 TEST_FIELD_OFFSET(WIN32_FIND_DATAA, cFileName, 44)
1867 TEST_FIELD_SIZE (WIN32_FIND_DATAA, cAlternateFileName, 14)
1868 TEST_FIELD_ALIGN (WIN32_FIND_DATAA, cAlternateFileName, 1)
1869 TEST_FIELD_OFFSET(WIN32_FIND_DATAA, cAlternateFileName, 304)
1870}
1871
1872static void test_pack_WIN32_FIND_DATAW(void)
1873{
1874 /* WIN32_FIND_DATAW */
1880 TEST_FIELD_SIZE (WIN32_FIND_DATAW, ftCreationTime, 8)
1881 TEST_FIELD_ALIGN (WIN32_FIND_DATAW, ftCreationTime, 4)
1882 TEST_FIELD_OFFSET(WIN32_FIND_DATAW, ftCreationTime, 4)
1883 TEST_FIELD_SIZE (WIN32_FIND_DATAW, ftLastAccessTime, 8)
1884 TEST_FIELD_ALIGN (WIN32_FIND_DATAW, ftLastAccessTime, 4)
1885 TEST_FIELD_OFFSET(WIN32_FIND_DATAW, ftLastAccessTime, 12)
1886 TEST_FIELD_SIZE (WIN32_FIND_DATAW, ftLastWriteTime, 8)
1887 TEST_FIELD_ALIGN (WIN32_FIND_DATAW, ftLastWriteTime, 4)
1888 TEST_FIELD_OFFSET(WIN32_FIND_DATAW, ftLastWriteTime, 20)
1889 TEST_FIELD_SIZE (WIN32_FIND_DATAW, nFileSizeHigh, 4)
1890 TEST_FIELD_ALIGN (WIN32_FIND_DATAW, nFileSizeHigh, 4)
1891 TEST_FIELD_OFFSET(WIN32_FIND_DATAW, nFileSizeHigh, 28)
1892 TEST_FIELD_SIZE (WIN32_FIND_DATAW, nFileSizeLow, 4)
1893 TEST_FIELD_ALIGN (WIN32_FIND_DATAW, nFileSizeLow, 4)
1894 TEST_FIELD_OFFSET(WIN32_FIND_DATAW, nFileSizeLow, 32)
1895 TEST_FIELD_SIZE (WIN32_FIND_DATAW, dwReserved0, 4)
1896 TEST_FIELD_ALIGN (WIN32_FIND_DATAW, dwReserved0, 4)
1897 TEST_FIELD_OFFSET(WIN32_FIND_DATAW, dwReserved0, 36)
1898 TEST_FIELD_SIZE (WIN32_FIND_DATAW, dwReserved1, 4)
1899 TEST_FIELD_ALIGN (WIN32_FIND_DATAW, dwReserved1, 4)
1900 TEST_FIELD_OFFSET(WIN32_FIND_DATAW, dwReserved1, 40)
1901 TEST_FIELD_SIZE (WIN32_FIND_DATAW, cFileName, 520)
1902 TEST_FIELD_ALIGN (WIN32_FIND_DATAW, cFileName, 2)
1903 TEST_FIELD_OFFSET(WIN32_FIND_DATAW, cFileName, 44)
1904 TEST_FIELD_SIZE (WIN32_FIND_DATAW, cAlternateFileName, 28)
1905 TEST_FIELD_ALIGN (WIN32_FIND_DATAW, cAlternateFileName, 2)
1906 TEST_FIELD_OFFSET(WIN32_FIND_DATAW, cAlternateFileName, 564)
1907}
1908
1909static void test_pack_WIN32_STREAM_ID(void)
1910{
1911 /* WIN32_STREAM_ID (pack 8) */
1914 TEST_FIELD_SIZE (WIN32_STREAM_ID, dwStreamId, 4)
1915 TEST_FIELD_ALIGN (WIN32_STREAM_ID, dwStreamId, 4)
1916 TEST_FIELD_OFFSET(WIN32_STREAM_ID, dwStreamId, 0)
1917 TEST_FIELD_SIZE (WIN32_STREAM_ID, dwStreamAttributes, 4)
1918 TEST_FIELD_ALIGN (WIN32_STREAM_ID, dwStreamAttributes, 4)
1919 TEST_FIELD_OFFSET(WIN32_STREAM_ID, dwStreamAttributes, 4)
1923 TEST_FIELD_SIZE (WIN32_STREAM_ID, dwStreamNameSize, 4)
1924 TEST_FIELD_ALIGN (WIN32_STREAM_ID, dwStreamNameSize, 4)
1925 TEST_FIELD_OFFSET(WIN32_STREAM_ID, dwStreamNameSize, 16)
1926 TEST_FIELD_SIZE (WIN32_STREAM_ID, cStreamName, 2)
1927 TEST_FIELD_ALIGN (WIN32_STREAM_ID, cStreamName, 2)
1928 TEST_FIELD_OFFSET(WIN32_STREAM_ID, cStreamName, 20)
1929}
1930
1931#else /* _WIN64 */
1932
1934{
1935 /* LPOSVERSIONINFOA */
1940}
1941
1943{
1944 /* LPOSVERSIONINFOEXA */
1949}
1950
1952{
1953 /* LPOSVERSIONINFOEXW */
1958}
1959
1961{
1962 /* LPOSVERSIONINFOW */
1967}
1968
1970{
1971 /* OSVERSIONINFOA */
1974 TEST_FIELD_SIZE (OSVERSIONINFOA, dwOSVersionInfoSize, 4)
1975 TEST_FIELD_ALIGN (OSVERSIONINFOA, dwOSVersionInfoSize, 4)
1976 TEST_FIELD_OFFSET(OSVERSIONINFOA, dwOSVersionInfoSize, 0)
1977 TEST_FIELD_SIZE (OSVERSIONINFOA, dwMajorVersion, 4)
1978 TEST_FIELD_ALIGN (OSVERSIONINFOA, dwMajorVersion, 4)
1979 TEST_FIELD_OFFSET(OSVERSIONINFOA, dwMajorVersion, 4)
1980 TEST_FIELD_SIZE (OSVERSIONINFOA, dwMinorVersion, 4)
1981 TEST_FIELD_ALIGN (OSVERSIONINFOA, dwMinorVersion, 4)
1982 TEST_FIELD_OFFSET(OSVERSIONINFOA, dwMinorVersion, 8)
1983 TEST_FIELD_SIZE (OSVERSIONINFOA, dwBuildNumber, 4)
1984 TEST_FIELD_ALIGN (OSVERSIONINFOA, dwBuildNumber, 4)
1985 TEST_FIELD_OFFSET(OSVERSIONINFOA, dwBuildNumber, 12)
1986 TEST_FIELD_SIZE (OSVERSIONINFOA, dwPlatformId, 4)
1987 TEST_FIELD_ALIGN (OSVERSIONINFOA, dwPlatformId, 4)
1988 TEST_FIELD_OFFSET(OSVERSIONINFOA, dwPlatformId, 16)
1989 TEST_FIELD_SIZE (OSVERSIONINFOA, szCSDVersion, 128)
1990 TEST_FIELD_ALIGN (OSVERSIONINFOA, szCSDVersion, 1)
1991 TEST_FIELD_OFFSET(OSVERSIONINFOA, szCSDVersion, 20)
1992}
1993
1995{
1996 /* OSVERSIONINFOEXA */
1999 TEST_FIELD_SIZE (OSVERSIONINFOEXA, dwOSVersionInfoSize, 4)
2000 TEST_FIELD_ALIGN (OSVERSIONINFOEXA, dwOSVersionInfoSize, 4)
2001 TEST_FIELD_OFFSET(OSVERSIONINFOEXA, dwOSVersionInfoSize, 0)
2002 TEST_FIELD_SIZE (OSVERSIONINFOEXA, dwMajorVersion, 4)
2003 TEST_FIELD_ALIGN (OSVERSIONINFOEXA, dwMajorVersion, 4)
2004 TEST_FIELD_OFFSET(OSVERSIONINFOEXA, dwMajorVersion, 4)
2005 TEST_FIELD_SIZE (OSVERSIONINFOEXA, dwMinorVersion, 4)
2006 TEST_FIELD_ALIGN (OSVERSIONINFOEXA, dwMinorVersion, 4)
2007 TEST_FIELD_OFFSET(OSVERSIONINFOEXA, dwMinorVersion, 8)
2008 TEST_FIELD_SIZE (OSVERSIONINFOEXA, dwBuildNumber, 4)
2009 TEST_FIELD_ALIGN (OSVERSIONINFOEXA, dwBuildNumber, 4)
2010 TEST_FIELD_OFFSET(OSVERSIONINFOEXA, dwBuildNumber, 12)
2011 TEST_FIELD_SIZE (OSVERSIONINFOEXA, dwPlatformId, 4)
2012 TEST_FIELD_ALIGN (OSVERSIONINFOEXA, dwPlatformId, 4)
2013 TEST_FIELD_OFFSET(OSVERSIONINFOEXA, dwPlatformId, 16)
2014 TEST_FIELD_SIZE (OSVERSIONINFOEXA, szCSDVersion, 128)
2015 TEST_FIELD_ALIGN (OSVERSIONINFOEXA, szCSDVersion, 1)
2016 TEST_FIELD_OFFSET(OSVERSIONINFOEXA, szCSDVersion, 20)
2017 TEST_FIELD_SIZE (OSVERSIONINFOEXA, wServicePackMajor, 2)
2018 TEST_FIELD_ALIGN (OSVERSIONINFOEXA, wServicePackMajor, 2)
2019 TEST_FIELD_OFFSET(OSVERSIONINFOEXA, wServicePackMajor, 148)
2020 TEST_FIELD_SIZE (OSVERSIONINFOEXA, wServicePackMinor, 2)
2021 TEST_FIELD_ALIGN (OSVERSIONINFOEXA, wServicePackMinor, 2)
2022 TEST_FIELD_OFFSET(OSVERSIONINFOEXA, wServicePackMinor, 150)
2023 TEST_FIELD_SIZE (OSVERSIONINFOEXA, wSuiteMask, 2)
2024 TEST_FIELD_ALIGN (OSVERSIONINFOEXA, wSuiteMask, 2)
2025 TEST_FIELD_OFFSET(OSVERSIONINFOEXA, wSuiteMask, 152)
2026 TEST_FIELD_SIZE (OSVERSIONINFOEXA, wProductType, 1)
2027 TEST_FIELD_ALIGN (OSVERSIONINFOEXA, wProductType, 1)
2028 TEST_FIELD_OFFSET(OSVERSIONINFOEXA, wProductType, 154)
2029 TEST_FIELD_SIZE (OSVERSIONINFOEXA, wReserved, 1)
2030 TEST_FIELD_ALIGN (OSVERSIONINFOEXA, wReserved, 1)
2031 TEST_FIELD_OFFSET(OSVERSIONINFOEXA, wReserved, 155)
2032}
2033
2035{
2036 /* OSVERSIONINFOEXW */
2039 TEST_FIELD_SIZE (OSVERSIONINFOEXW, dwOSVersionInfoSize, 4)
2040 TEST_FIELD_ALIGN (OSVERSIONINFOEXW, dwOSVersionInfoSize, 4)
2041 TEST_FIELD_OFFSET(OSVERSIONINFOEXW, dwOSVersionInfoSize, 0)
2042 TEST_FIELD_SIZE (OSVERSIONINFOEXW, dwMajorVersion, 4)
2043 TEST_FIELD_ALIGN (OSVERSIONINFOEXW, dwMajorVersion, 4)
2044 TEST_FIELD_OFFSET(OSVERSIONINFOEXW, dwMajorVersion, 4)
2045 TEST_FIELD_SIZE (OSVERSIONINFOEXW, dwMinorVersion, 4)
2046 TEST_FIELD_ALIGN (OSVERSIONINFOEXW, dwMinorVersion, 4)
2047 TEST_FIELD_OFFSET(OSVERSIONINFOEXW, dwMinorVersion, 8)
2048 TEST_FIELD_SIZE (OSVERSIONINFOEXW, dwBuildNumber, 4)
2049 TEST_FIELD_ALIGN (OSVERSIONINFOEXW, dwBuildNumber, 4)
2050 TEST_FIELD_OFFSET(OSVERSIONINFOEXW, dwBuildNumber, 12)
2051 TEST_FIELD_SIZE (OSVERSIONINFOEXW, dwPlatformId, 4)
2052 TEST_FIELD_ALIGN (OSVERSIONINFOEXW, dwPlatformId, 4)
2053 TEST_FIELD_OFFSET(OSVERSIONINFOEXW, dwPlatformId, 16)
2054 TEST_FIELD_SIZE (OSVERSIONINFOEXW, szCSDVersion, 256)
2055 TEST_FIELD_ALIGN (OSVERSIONINFOEXW, szCSDVersion, 2)
2056 TEST_FIELD_OFFSET(OSVERSIONINFOEXW, szCSDVersion, 20)
2057 TEST_FIELD_SIZE (OSVERSIONINFOEXW, wServicePackMajor, 2)
2058 TEST_FIELD_ALIGN (OSVERSIONINFOEXW, wServicePackMajor, 2)
2059 TEST_FIELD_OFFSET(OSVERSIONINFOEXW, wServicePackMajor, 276)
2060 TEST_FIELD_SIZE (OSVERSIONINFOEXW, wServicePackMinor, 2)
2061 TEST_FIELD_ALIGN (OSVERSIONINFOEXW, wServicePackMinor, 2)
2062 TEST_FIELD_OFFSET(OSVERSIONINFOEXW, wServicePackMinor, 278)
2063 TEST_FIELD_SIZE (OSVERSIONINFOEXW, wSuiteMask, 2)
2064 TEST_FIELD_ALIGN (OSVERSIONINFOEXW, wSuiteMask, 2)
2065 TEST_FIELD_OFFSET(OSVERSIONINFOEXW, wSuiteMask, 280)
2066 TEST_FIELD_SIZE (OSVERSIONINFOEXW, wProductType, 1)
2067 TEST_FIELD_ALIGN (OSVERSIONINFOEXW, wProductType, 1)
2068 TEST_FIELD_OFFSET(OSVERSIONINFOEXW, wProductType, 282)
2069 TEST_FIELD_SIZE (OSVERSIONINFOEXW, wReserved, 1)
2070 TEST_FIELD_ALIGN (OSVERSIONINFOEXW, wReserved, 1)
2071 TEST_FIELD_OFFSET(OSVERSIONINFOEXW, wReserved, 283)
2072}
2073
2075{
2076 /* OSVERSIONINFOW */
2079 TEST_FIELD_SIZE (OSVERSIONINFOW, dwOSVersionInfoSize, 4)
2080 TEST_FIELD_ALIGN (OSVERSIONINFOW, dwOSVersionInfoSize, 4)
2081 TEST_FIELD_OFFSET(OSVERSIONINFOW, dwOSVersionInfoSize, 0)
2082 TEST_FIELD_SIZE (OSVERSIONINFOW, dwMajorVersion, 4)
2083 TEST_FIELD_ALIGN (OSVERSIONINFOW, dwMajorVersion, 4)
2084 TEST_FIELD_OFFSET(OSVERSIONINFOW, dwMajorVersion, 4)
2085 TEST_FIELD_SIZE (OSVERSIONINFOW, dwMinorVersion, 4)
2086 TEST_FIELD_ALIGN (OSVERSIONINFOW, dwMinorVersion, 4)
2087 TEST_FIELD_OFFSET(OSVERSIONINFOW, dwMinorVersion, 8)
2088 TEST_FIELD_SIZE (OSVERSIONINFOW, dwBuildNumber, 4)
2089 TEST_FIELD_ALIGN (OSVERSIONINFOW, dwBuildNumber, 4)
2090 TEST_FIELD_OFFSET(OSVERSIONINFOW, dwBuildNumber, 12)
2091 TEST_FIELD_SIZE (OSVERSIONINFOW, dwPlatformId, 4)
2092 TEST_FIELD_ALIGN (OSVERSIONINFOW, dwPlatformId, 4)
2093 TEST_FIELD_OFFSET(OSVERSIONINFOW, dwPlatformId, 16)
2094 TEST_FIELD_SIZE (OSVERSIONINFOW, szCSDVersion, 256)
2095 TEST_FIELD_ALIGN (OSVERSIONINFOW, szCSDVersion, 2)
2096 TEST_FIELD_OFFSET(OSVERSIONINFOW, szCSDVersion, 20)
2097}
2098
2100{
2101 /* POSVERSIONINFOA */
2106}
2107
2109{
2110 /* POSVERSIONINFOEXA */
2115}
2116
2118{
2119 /* POSVERSIONINFOEXW */
2124}
2125
2127{
2128 /* POSVERSIONINFOW */
2133}
2134
2135static void test_pack_LPLONG(void)
2136{
2137 /* LPLONG */
2140}
2141
2142static void test_pack_LPVOID(void)
2143{
2144 /* LPVOID */
2147}
2148
2149static void test_pack_PHKEY(void)
2150{
2151 /* PHKEY */
2154}
2155
2156static void test_pack_ACTCTXA(void)
2157{
2158 /* ACTCTXA */
2159 TEST_TYPE_SIZE (ACTCTXA, 32)
2160 TEST_TYPE_ALIGN (ACTCTXA, 4)
2161 TEST_FIELD_SIZE (ACTCTXA, cbSize, 4)
2162 TEST_FIELD_ALIGN (ACTCTXA, cbSize, 4)
2163 TEST_FIELD_OFFSET(ACTCTXA, cbSize, 0)
2164 TEST_FIELD_SIZE (ACTCTXA, dwFlags, 4)
2165 TEST_FIELD_ALIGN (ACTCTXA, dwFlags, 4)
2166 TEST_FIELD_OFFSET(ACTCTXA, dwFlags, 4)
2167 TEST_FIELD_SIZE (ACTCTXA, lpSource, 4)
2168 TEST_FIELD_ALIGN (ACTCTXA, lpSource, 4)
2169 TEST_FIELD_OFFSET(ACTCTXA, lpSource, 8)
2170 TEST_FIELD_SIZE (ACTCTXA, wProcessorArchitecture, 2)
2171 TEST_FIELD_ALIGN (ACTCTXA, wProcessorArchitecture, 2)
2172 TEST_FIELD_OFFSET(ACTCTXA, wProcessorArchitecture, 12)
2173 TEST_FIELD_SIZE (ACTCTXA, wLangId, 2)
2174 TEST_FIELD_ALIGN (ACTCTXA, wLangId, 2)
2175 TEST_FIELD_OFFSET(ACTCTXA, wLangId, 14)
2176 TEST_FIELD_SIZE (ACTCTXA, lpAssemblyDirectory, 4)
2177 TEST_FIELD_ALIGN (ACTCTXA, lpAssemblyDirectory, 4)
2178 TEST_FIELD_OFFSET(ACTCTXA, lpAssemblyDirectory, 16)
2179 TEST_FIELD_SIZE (ACTCTXA, lpResourceName, 4)
2180 TEST_FIELD_ALIGN (ACTCTXA, lpResourceName, 4)
2181 TEST_FIELD_OFFSET(ACTCTXA, lpResourceName, 20)
2182 TEST_FIELD_SIZE (ACTCTXA, lpApplicationName, 4)
2183 TEST_FIELD_ALIGN (ACTCTXA, lpApplicationName, 4)
2184 TEST_FIELD_OFFSET(ACTCTXA, lpApplicationName, 24)
2185 TEST_FIELD_SIZE (ACTCTXA, hModule, 4)
2186 TEST_FIELD_ALIGN (ACTCTXA, hModule, 4)
2187 TEST_FIELD_OFFSET(ACTCTXA, hModule, 28)
2188}
2189
2190static void test_pack_ACTCTXW(void)
2191{
2192 /* ACTCTXW */
2193 TEST_TYPE_SIZE (ACTCTXW, 32)
2194 TEST_TYPE_ALIGN (ACTCTXW, 4)
2195 TEST_FIELD_SIZE (ACTCTXW, cbSize, 4)
2196 TEST_FIELD_ALIGN (ACTCTXW, cbSize, 4)
2197 TEST_FIELD_OFFSET(ACTCTXW, cbSize, 0)
2198 TEST_FIELD_SIZE (ACTCTXW, dwFlags, 4)
2199 TEST_FIELD_ALIGN (ACTCTXW, dwFlags, 4)
2200 TEST_FIELD_OFFSET(ACTCTXW, dwFlags, 4)
2201 TEST_FIELD_SIZE (ACTCTXW, lpSource, 4)
2202 TEST_FIELD_ALIGN (ACTCTXW, lpSource, 4)
2203 TEST_FIELD_OFFSET(ACTCTXW, lpSource, 8)
2204 TEST_FIELD_SIZE (ACTCTXW, wProcessorArchitecture, 2)
2205 TEST_FIELD_ALIGN (ACTCTXW, wProcessorArchitecture, 2)
2206 TEST_FIELD_OFFSET(ACTCTXW, wProcessorArchitecture, 12)
2207 TEST_FIELD_SIZE (ACTCTXW, wLangId, 2)
2208 TEST_FIELD_ALIGN (ACTCTXW, wLangId, 2)
2209 TEST_FIELD_OFFSET(ACTCTXW, wLangId, 14)
2210 TEST_FIELD_SIZE (ACTCTXW, lpAssemblyDirectory, 4)
2211 TEST_FIELD_ALIGN (ACTCTXW, lpAssemblyDirectory, 4)
2212 TEST_FIELD_OFFSET(ACTCTXW, lpAssemblyDirectory, 16)
2213 TEST_FIELD_SIZE (ACTCTXW, lpResourceName, 4)
2214 TEST_FIELD_ALIGN (ACTCTXW, lpResourceName, 4)
2215 TEST_FIELD_OFFSET(ACTCTXW, lpResourceName, 20)
2216 TEST_FIELD_SIZE (ACTCTXW, lpApplicationName, 4)
2217 TEST_FIELD_ALIGN (ACTCTXW, lpApplicationName, 4)
2218 TEST_FIELD_OFFSET(ACTCTXW, lpApplicationName, 24)
2219 TEST_FIELD_SIZE (ACTCTXW, hModule, 4)
2220 TEST_FIELD_ALIGN (ACTCTXW, hModule, 4)
2221 TEST_FIELD_OFFSET(ACTCTXW, hModule, 28)
2222}
2223
2225{
2226 /* ACTCTX_SECTION_KEYED_DATA */
2227 TEST_TYPE_SIZE (ACTCTX_SECTION_KEYED_DATA, 64)
2228 TEST_TYPE_ALIGN (ACTCTX_SECTION_KEYED_DATA, 4)
2229 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA, cbSize, 4)
2230 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA, cbSize, 4)
2231 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA, cbSize, 0)
2232 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA, ulDataFormatVersion, 4)
2233 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA, ulDataFormatVersion, 4)
2234 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA, ulDataFormatVersion, 4)
2235 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA, lpData, 4)
2236 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA, lpData, 4)
2237 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA, lpData, 8)
2238 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA, ulLength, 4)
2239 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA, ulLength, 4)
2240 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA, ulLength, 12)
2241 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA, lpSectionGlobalData, 4)
2242 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA, lpSectionGlobalData, 4)
2243 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA, lpSectionGlobalData, 16)
2244 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA, ulSectionGlobalDataLength, 4)
2245 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA, ulSectionGlobalDataLength, 4)
2246 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA, ulSectionGlobalDataLength, 20)
2247 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA, lpSectionBase, 4)
2248 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA, lpSectionBase, 4)
2249 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA, lpSectionBase, 24)
2250 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA, ulSectionTotalLength, 4)
2251 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA, ulSectionTotalLength, 4)
2252 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA, ulSectionTotalLength, 28)
2253 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA, hActCtx, 4)
2254 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA, hActCtx, 4)
2255 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA, hActCtx, 32)
2256 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA, ulAssemblyRosterIndex, 4)
2257 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA, ulAssemblyRosterIndex, 4)
2258 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA, ulAssemblyRosterIndex, 36)
2259 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA, ulFlags, 4)
2260 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA, ulFlags, 4)
2261 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA, ulFlags, 40)
2262 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA, AssemblyMetadata, 20)
2263 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA, AssemblyMetadata, 4)
2264 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA, AssemblyMetadata, 44)
2265}
2266
2268{
2269 /* ACTCTX_SECTION_KEYED_DATA_2600 */
2270 TEST_TYPE_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, 40)
2271 TEST_TYPE_ALIGN (ACTCTX_SECTION_KEYED_DATA_2600, 4)
2272 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, cbSize, 4)
2273 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_2600, cbSize, 4)
2274 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_2600, cbSize, 0)
2275 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, ulDataFormatVersion, 4)
2276 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_2600, ulDataFormatVersion, 4)
2277 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_2600, ulDataFormatVersion, 4)
2278 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, lpData, 4)
2279 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_2600, lpData, 4)
2280 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_2600, lpData, 8)
2281 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, ulLength, 4)
2282 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_2600, ulLength, 4)
2283 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_2600, ulLength, 12)
2284 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, lpSectionGlobalData, 4)
2285 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_2600, lpSectionGlobalData, 4)
2286 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_2600, lpSectionGlobalData, 16)
2287 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, ulSectionGlobalDataLength, 4)
2288 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_2600, ulSectionGlobalDataLength, 4)
2289 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_2600, ulSectionGlobalDataLength, 20)
2290 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, lpSectionBase, 4)
2291 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_2600, lpSectionBase, 4)
2292 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_2600, lpSectionBase, 24)
2293 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, ulSectionTotalLength, 4)
2294 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_2600, ulSectionTotalLength, 4)
2295 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_2600, ulSectionTotalLength, 28)
2296 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, hActCtx, 4)
2297 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_2600, hActCtx, 4)
2298 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_2600, hActCtx, 32)
2299 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, ulAssemblyRosterIndex, 4)
2300 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_2600, ulAssemblyRosterIndex, 4)
2301 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_2600, ulAssemblyRosterIndex, 36)
2302}
2303
2305{
2306 /* ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA */
2307 TEST_TYPE_SIZE (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, 20)
2308 TEST_TYPE_ALIGN (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, 4)
2309 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, lpInformation, 4)
2310 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, lpInformation, 4)
2311 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, lpInformation, 0)
2312 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, lpSectionBase, 4)
2313 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, lpSectionBase, 4)
2314 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, lpSectionBase, 4)
2315 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, ulSectionLength, 4)
2316 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, ulSectionLength, 4)
2317 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, ulSectionLength, 8)
2318 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, lpSectionGlobalDataBase, 4)
2319 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, lpSectionGlobalDataBase, 4)
2320 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, lpSectionGlobalDataBase, 12)
2321 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, ulSectionGlobalDataLength, 4)
2322 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, ulSectionGlobalDataLength, 4)
2323 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, ulSectionGlobalDataLength, 16)
2324}
2325
2327{
2328 /* ACTIVATION_CONTEXT_BASIC_INFORMATION */
2329 TEST_TYPE_SIZE (ACTIVATION_CONTEXT_BASIC_INFORMATION, 8)
2330 TEST_TYPE_ALIGN (ACTIVATION_CONTEXT_BASIC_INFORMATION, 4)
2331 TEST_FIELD_SIZE (ACTIVATION_CONTEXT_BASIC_INFORMATION, hActCtx, 4)
2332 TEST_FIELD_ALIGN (ACTIVATION_CONTEXT_BASIC_INFORMATION, hActCtx, 4)
2333 TEST_FIELD_OFFSET(ACTIVATION_CONTEXT_BASIC_INFORMATION, hActCtx, 0)
2334 TEST_FIELD_SIZE (ACTIVATION_CONTEXT_BASIC_INFORMATION, dwFlags, 4)
2335 TEST_FIELD_ALIGN (ACTIVATION_CONTEXT_BASIC_INFORMATION, dwFlags, 4)
2336 TEST_FIELD_OFFSET(ACTIVATION_CONTEXT_BASIC_INFORMATION, dwFlags, 4)
2337}
2338
2340{
2341 /* BY_HANDLE_FILE_INFORMATION */
2347 TEST_FIELD_SIZE (BY_HANDLE_FILE_INFORMATION, ftCreationTime, 8)
2348 TEST_FIELD_ALIGN (BY_HANDLE_FILE_INFORMATION, ftCreationTime, 4)
2350 TEST_FIELD_SIZE (BY_HANDLE_FILE_INFORMATION, ftLastAccessTime, 8)
2351 TEST_FIELD_ALIGN (BY_HANDLE_FILE_INFORMATION, ftLastAccessTime, 4)
2352 TEST_FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, ftLastAccessTime, 12)
2353 TEST_FIELD_SIZE (BY_HANDLE_FILE_INFORMATION, ftLastWriteTime, 8)
2354 TEST_FIELD_ALIGN (BY_HANDLE_FILE_INFORMATION, ftLastWriteTime, 4)
2355 TEST_FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, ftLastWriteTime, 20)
2356 TEST_FIELD_SIZE (BY_HANDLE_FILE_INFORMATION, dwVolumeSerialNumber, 4)
2357 TEST_FIELD_ALIGN (BY_HANDLE_FILE_INFORMATION, dwVolumeSerialNumber, 4)
2358 TEST_FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, dwVolumeSerialNumber, 28)
2365 TEST_FIELD_SIZE (BY_HANDLE_FILE_INFORMATION, nNumberOfLinks, 4)
2366 TEST_FIELD_ALIGN (BY_HANDLE_FILE_INFORMATION, nNumberOfLinks, 4)
2368 TEST_FIELD_SIZE (BY_HANDLE_FILE_INFORMATION, nFileIndexHigh, 4)
2369 TEST_FIELD_ALIGN (BY_HANDLE_FILE_INFORMATION, nFileIndexHigh, 4)
2374}
2375
2376static void test_pack_COMMCONFIG(void)
2377{
2378 /* COMMCONFIG */
2384 TEST_FIELD_SIZE (COMMCONFIG, wVersion, 2)
2385 TEST_FIELD_ALIGN (COMMCONFIG, wVersion, 2)
2386 TEST_FIELD_OFFSET(COMMCONFIG, wVersion, 4)
2387 TEST_FIELD_SIZE (COMMCONFIG, wReserved, 2)
2388 TEST_FIELD_ALIGN (COMMCONFIG, wReserved, 2)
2389 TEST_FIELD_OFFSET(COMMCONFIG, wReserved, 6)
2390 TEST_FIELD_SIZE (COMMCONFIG, dcb, 28)
2393 TEST_FIELD_SIZE (COMMCONFIG, dwProviderSubType, 4)
2394 TEST_FIELD_ALIGN (COMMCONFIG, dwProviderSubType, 4)
2395 TEST_FIELD_OFFSET(COMMCONFIG, dwProviderSubType, 36)
2396 TEST_FIELD_SIZE (COMMCONFIG, dwProviderOffset, 4)
2397 TEST_FIELD_ALIGN (COMMCONFIG, dwProviderOffset, 4)
2398 TEST_FIELD_OFFSET(COMMCONFIG, dwProviderOffset, 40)
2399 TEST_FIELD_SIZE (COMMCONFIG, dwProviderSize, 4)
2400 TEST_FIELD_ALIGN (COMMCONFIG, dwProviderSize, 4)
2401 TEST_FIELD_OFFSET(COMMCONFIG, dwProviderSize, 44)
2402 TEST_FIELD_SIZE (COMMCONFIG, wcProviderData, 2)
2403 TEST_FIELD_ALIGN (COMMCONFIG, wcProviderData, 2)
2404 TEST_FIELD_OFFSET(COMMCONFIG, wcProviderData, 48)
2405}
2406
2407static void test_pack_COMMPROP(void)
2408{
2409 /* COMMPROP */
2412 TEST_FIELD_SIZE (COMMPROP, wPacketLength, 2)
2413 TEST_FIELD_ALIGN (COMMPROP, wPacketLength, 2)
2414 TEST_FIELD_OFFSET(COMMPROP, wPacketLength, 0)
2415 TEST_FIELD_SIZE (COMMPROP, wPacketVersion, 2)
2416 TEST_FIELD_ALIGN (COMMPROP, wPacketVersion, 2)
2417 TEST_FIELD_OFFSET(COMMPROP, wPacketVersion, 2)
2418 TEST_FIELD_SIZE (COMMPROP, dwServiceMask, 4)
2419 TEST_FIELD_ALIGN (COMMPROP, dwServiceMask, 4)
2420 TEST_FIELD_OFFSET(COMMPROP, dwServiceMask, 4)
2421 TEST_FIELD_SIZE (COMMPROP, dwReserved1, 4)
2422 TEST_FIELD_ALIGN (COMMPROP, dwReserved1, 4)
2423 TEST_FIELD_OFFSET(COMMPROP, dwReserved1, 8)
2424 TEST_FIELD_SIZE (COMMPROP, dwMaxTxQueue, 4)
2425 TEST_FIELD_ALIGN (COMMPROP, dwMaxTxQueue, 4)
2426 TEST_FIELD_OFFSET(COMMPROP, dwMaxTxQueue, 12)
2427 TEST_FIELD_SIZE (COMMPROP, dwMaxRxQueue, 4)
2428 TEST_FIELD_ALIGN (COMMPROP, dwMaxRxQueue, 4)
2429 TEST_FIELD_OFFSET(COMMPROP, dwMaxRxQueue, 16)
2430 TEST_FIELD_SIZE (COMMPROP, dwMaxBaud, 4)
2431 TEST_FIELD_ALIGN (COMMPROP, dwMaxBaud, 4)
2432 TEST_FIELD_OFFSET(COMMPROP, dwMaxBaud, 20)
2433 TEST_FIELD_SIZE (COMMPROP, dwProvSubType, 4)
2434 TEST_FIELD_ALIGN (COMMPROP, dwProvSubType, 4)
2435 TEST_FIELD_OFFSET(COMMPROP, dwProvSubType, 24)
2436 TEST_FIELD_SIZE (COMMPROP, dwProvCapabilities, 4)
2437 TEST_FIELD_ALIGN (COMMPROP, dwProvCapabilities, 4)
2438 TEST_FIELD_OFFSET(COMMPROP, dwProvCapabilities, 28)
2439 TEST_FIELD_SIZE (COMMPROP, dwSettableParams, 4)
2440 TEST_FIELD_ALIGN (COMMPROP, dwSettableParams, 4)
2441 TEST_FIELD_OFFSET(COMMPROP, dwSettableParams, 32)
2442 TEST_FIELD_SIZE (COMMPROP, dwSettableBaud, 4)
2443 TEST_FIELD_ALIGN (COMMPROP, dwSettableBaud, 4)
2444 TEST_FIELD_OFFSET(COMMPROP, dwSettableBaud, 36)
2445 TEST_FIELD_SIZE (COMMPROP, wSettableData, 2)
2446 TEST_FIELD_ALIGN (COMMPROP, wSettableData, 2)
2447 TEST_FIELD_OFFSET(COMMPROP, wSettableData, 40)
2448 TEST_FIELD_SIZE (COMMPROP, wSettableStopParity, 2)
2449 TEST_FIELD_ALIGN (COMMPROP, wSettableStopParity, 2)
2450 TEST_FIELD_OFFSET(COMMPROP, wSettableStopParity, 42)
2451 TEST_FIELD_SIZE (COMMPROP, dwCurrentTxQueue, 4)
2452 TEST_FIELD_ALIGN (COMMPROP, dwCurrentTxQueue, 4)
2453 TEST_FIELD_OFFSET(COMMPROP, dwCurrentTxQueue, 44)
2454 TEST_FIELD_SIZE (COMMPROP, dwCurrentRxQueue, 4)
2455 TEST_FIELD_ALIGN (COMMPROP, dwCurrentRxQueue, 4)
2456 TEST_FIELD_OFFSET(COMMPROP, dwCurrentRxQueue, 48)
2457 TEST_FIELD_SIZE (COMMPROP, dwProvSpec1, 4)
2458 TEST_FIELD_ALIGN (COMMPROP, dwProvSpec1, 4)
2459 TEST_FIELD_OFFSET(COMMPROP, dwProvSpec1, 52)
2460 TEST_FIELD_SIZE (COMMPROP, dwProvSpec2, 4)
2461 TEST_FIELD_ALIGN (COMMPROP, dwProvSpec2, 4)
2462 TEST_FIELD_OFFSET(COMMPROP, dwProvSpec2, 56)
2463 TEST_FIELD_SIZE (COMMPROP, wcProvChar, 2)
2464 TEST_FIELD_ALIGN (COMMPROP, wcProvChar, 2)
2465 TEST_FIELD_OFFSET(COMMPROP, wcProvChar, 60)
2466}
2467
2468static void test_pack_COMMTIMEOUTS(void)
2469{
2470 /* COMMTIMEOUTS */
2473 TEST_FIELD_SIZE (COMMTIMEOUTS, ReadIntervalTimeout, 4)
2474 TEST_FIELD_ALIGN (COMMTIMEOUTS, ReadIntervalTimeout, 4)
2475 TEST_FIELD_OFFSET(COMMTIMEOUTS, ReadIntervalTimeout, 0)
2476 TEST_FIELD_SIZE (COMMTIMEOUTS, ReadTotalTimeoutMultiplier, 4)
2477 TEST_FIELD_ALIGN (COMMTIMEOUTS, ReadTotalTimeoutMultiplier, 4)
2478 TEST_FIELD_OFFSET(COMMTIMEOUTS, ReadTotalTimeoutMultiplier, 4)
2479 TEST_FIELD_SIZE (COMMTIMEOUTS, ReadTotalTimeoutConstant, 4)
2480 TEST_FIELD_ALIGN (COMMTIMEOUTS, ReadTotalTimeoutConstant, 4)
2481 TEST_FIELD_OFFSET(COMMTIMEOUTS, ReadTotalTimeoutConstant, 8)
2482 TEST_FIELD_SIZE (COMMTIMEOUTS, WriteTotalTimeoutMultiplier, 4)
2483 TEST_FIELD_ALIGN (COMMTIMEOUTS, WriteTotalTimeoutMultiplier, 4)
2484 TEST_FIELD_OFFSET(COMMTIMEOUTS, WriteTotalTimeoutMultiplier, 12)
2485 TEST_FIELD_SIZE (COMMTIMEOUTS, WriteTotalTimeoutConstant, 4)
2486 TEST_FIELD_ALIGN (COMMTIMEOUTS, WriteTotalTimeoutConstant, 4)
2487 TEST_FIELD_OFFSET(COMMTIMEOUTS, WriteTotalTimeoutConstant, 16)
2488}
2489
2490static void test_pack_COMSTAT(void)
2491{
2492 /* COMSTAT */
2495 TEST_FIELD_SIZE (COMSTAT, cbInQue, 4)
2496 TEST_FIELD_ALIGN (COMSTAT, cbInQue, 4)
2497 TEST_FIELD_OFFSET(COMSTAT, cbInQue, 4)
2498 TEST_FIELD_SIZE (COMSTAT, cbOutQue, 4)
2499 TEST_FIELD_ALIGN (COMSTAT, cbOutQue, 4)
2500 TEST_FIELD_OFFSET(COMSTAT, cbOutQue, 8)
2501}
2502
2504{
2505 /* CREATE_PROCESS_DEBUG_INFO */
2517 TEST_FIELD_SIZE (CREATE_PROCESS_DEBUG_INFO, lpBaseOfImage, 4)
2520 TEST_FIELD_SIZE (CREATE_PROCESS_DEBUG_INFO, dwDebugInfoFileOffset, 4)
2521 TEST_FIELD_ALIGN (CREATE_PROCESS_DEBUG_INFO, dwDebugInfoFileOffset, 4)
2522 TEST_FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, dwDebugInfoFileOffset, 16)
2523 TEST_FIELD_SIZE (CREATE_PROCESS_DEBUG_INFO, nDebugInfoSize, 4)
2524 TEST_FIELD_ALIGN (CREATE_PROCESS_DEBUG_INFO, nDebugInfoSize, 4)
2525 TEST_FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, nDebugInfoSize, 20)
2526 TEST_FIELD_SIZE (CREATE_PROCESS_DEBUG_INFO, lpThreadLocalBase, 4)
2527 TEST_FIELD_ALIGN (CREATE_PROCESS_DEBUG_INFO, lpThreadLocalBase, 4)
2528 TEST_FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, lpThreadLocalBase, 24)
2529 TEST_FIELD_SIZE (CREATE_PROCESS_DEBUG_INFO, lpStartAddress, 4)
2530 TEST_FIELD_ALIGN (CREATE_PROCESS_DEBUG_INFO, lpStartAddress, 4)
2531 TEST_FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, lpStartAddress, 28)
2538}
2539
2541{
2542 /* CREATE_THREAD_DEBUG_INFO */
2548 TEST_FIELD_SIZE (CREATE_THREAD_DEBUG_INFO, lpThreadLocalBase, 4)
2549 TEST_FIELD_ALIGN (CREATE_THREAD_DEBUG_INFO, lpThreadLocalBase, 4)
2550 TEST_FIELD_OFFSET(CREATE_THREAD_DEBUG_INFO, lpThreadLocalBase, 4)
2551 TEST_FIELD_SIZE (CREATE_THREAD_DEBUG_INFO, lpStartAddress, 4)
2552 TEST_FIELD_ALIGN (CREATE_THREAD_DEBUG_INFO, lpStartAddress, 4)
2554}
2555
2557{
2558 /* CRITICAL_SECTION */
2561}
2562
2564{
2565 /* CRITICAL_SECTION_DEBUG */
2566}
2567
2568static void test_pack_DCB(void)
2569{
2570 /* DCB */
2571 TEST_TYPE_SIZE (DCB, 28)
2572 TEST_TYPE_ALIGN (DCB, 4)
2573 TEST_FIELD_SIZE (DCB, DCBlength, 4)
2574 TEST_FIELD_ALIGN (DCB, DCBlength, 4)
2575 TEST_FIELD_OFFSET(DCB, DCBlength, 0)
2576 TEST_FIELD_SIZE (DCB, BaudRate, 4)
2577 TEST_FIELD_ALIGN (DCB, BaudRate, 4)
2578 TEST_FIELD_OFFSET(DCB, BaudRate, 4)
2579 TEST_FIELD_SIZE (DCB, wReserved, 2)
2580 TEST_FIELD_ALIGN (DCB, wReserved, 2)
2581 TEST_FIELD_OFFSET(DCB, wReserved, 12)
2582 TEST_FIELD_SIZE (DCB, XonLim, 2)
2583 TEST_FIELD_ALIGN (DCB, XonLim, 2)
2584 TEST_FIELD_OFFSET(DCB, XonLim, 14)
2585 TEST_FIELD_SIZE (DCB, XoffLim, 2)
2586 TEST_FIELD_ALIGN (DCB, XoffLim, 2)
2587 TEST_FIELD_OFFSET(DCB, XoffLim, 16)
2591 TEST_FIELD_SIZE (DCB, Parity, 1)
2592 TEST_FIELD_ALIGN (DCB, Parity, 1)
2593 TEST_FIELD_OFFSET(DCB, Parity, 19)
2597 TEST_FIELD_SIZE (DCB, XonChar, 1)
2598 TEST_FIELD_ALIGN (DCB, XonChar, 1)
2599 TEST_FIELD_OFFSET(DCB, XonChar, 21)
2600 TEST_FIELD_SIZE (DCB, XoffChar, 1)
2601 TEST_FIELD_ALIGN (DCB, XoffChar, 1)
2602 TEST_FIELD_OFFSET(DCB, XoffChar, 22)
2603 TEST_FIELD_SIZE (DCB, ErrorChar, 1)
2604 TEST_FIELD_ALIGN (DCB, ErrorChar, 1)
2605 TEST_FIELD_OFFSET(DCB, ErrorChar, 23)
2606 TEST_FIELD_SIZE (DCB, EofChar, 1)
2607 TEST_FIELD_ALIGN (DCB, EofChar, 1)
2608 TEST_FIELD_OFFSET(DCB, EofChar, 24)
2609 TEST_FIELD_SIZE (DCB, EvtChar, 1)
2610 TEST_FIELD_ALIGN (DCB, EvtChar, 1)
2611 TEST_FIELD_OFFSET(DCB, EvtChar, 25)
2612 TEST_FIELD_SIZE (DCB, wReserved1, 2)
2613 TEST_FIELD_ALIGN (DCB, wReserved1, 2)
2614 TEST_FIELD_OFFSET(DCB, wReserved1, 26)
2615}
2616
2617static void test_pack_DEBUG_EVENT(void)
2618{
2619 /* DEBUG_EVENT */
2620 TEST_FIELD_SIZE (DEBUG_EVENT, dwDebugEventCode, 4)
2621 TEST_FIELD_ALIGN (DEBUG_EVENT, dwDebugEventCode, 4)
2622 TEST_FIELD_OFFSET(DEBUG_EVENT, dwDebugEventCode, 0)
2623 TEST_FIELD_SIZE (DEBUG_EVENT, dwProcessId, 4)
2624 TEST_FIELD_ALIGN (DEBUG_EVENT, dwProcessId, 4)
2625 TEST_FIELD_OFFSET(DEBUG_EVENT, dwProcessId, 4)
2629}
2630
2632{
2633 /* ENUMRESLANGPROCA */
2636}
2637
2639{
2640 /* ENUMRESLANGPROCW */
2643}
2644
2646{
2647 /* ENUMRESNAMEPROCA */
2650}
2651
2653{
2654 /* ENUMRESNAMEPROCW */
2657}
2658
2660{
2661 /* ENUMRESTYPEPROCA */
2664}
2665
2667{
2668 /* ENUMRESTYPEPROCW */
2671}
2672
2674{
2675 /* EXCEPTION_DEBUG_INFO */
2678 TEST_FIELD_SIZE (EXCEPTION_DEBUG_INFO, ExceptionRecord, 80)
2679 TEST_FIELD_ALIGN (EXCEPTION_DEBUG_INFO, ExceptionRecord, 4)
2680 TEST_FIELD_OFFSET(EXCEPTION_DEBUG_INFO, ExceptionRecord, 0)
2681 TEST_FIELD_SIZE (EXCEPTION_DEBUG_INFO, dwFirstChance, 4)
2682 TEST_FIELD_ALIGN (EXCEPTION_DEBUG_INFO, dwFirstChance, 4)
2683 TEST_FIELD_OFFSET(EXCEPTION_DEBUG_INFO, dwFirstChance, 80)
2684}
2685
2687{
2688 /* EXIT_PROCESS_DEBUG_INFO */
2694}
2695
2697{
2698 /* EXIT_THREAD_DEBUG_INFO */
2704}
2705
2707{
2708 /* HW_PROFILE_INFOA */
2711 TEST_FIELD_SIZE (HW_PROFILE_INFOA, dwDockInfo, 4)
2712 TEST_FIELD_ALIGN (HW_PROFILE_INFOA, dwDockInfo, 4)
2713 TEST_FIELD_OFFSET(HW_PROFILE_INFOA, dwDockInfo, 0)
2714 TEST_FIELD_SIZE (HW_PROFILE_INFOA, szHwProfileGuid, 39)
2715 TEST_FIELD_ALIGN (HW_PROFILE_INFOA, szHwProfileGuid, 1)
2716 TEST_FIELD_OFFSET(HW_PROFILE_INFOA, szHwProfileGuid, 4)
2717 TEST_FIELD_SIZE (HW_PROFILE_INFOA, szHwProfileName, 80)
2718 TEST_FIELD_ALIGN (HW_PROFILE_INFOA, szHwProfileName, 1)
2719 TEST_FIELD_OFFSET(HW_PROFILE_INFOA, szHwProfileName, 43)
2720}
2721
2723{
2724 /* HW_PROFILE_INFOW */
2727 TEST_FIELD_SIZE (HW_PROFILE_INFOW, dwDockInfo, 4)
2728 TEST_FIELD_ALIGN (HW_PROFILE_INFOW, dwDockInfo, 4)
2729 TEST_FIELD_OFFSET(HW_PROFILE_INFOW, dwDockInfo, 0)
2730 TEST_FIELD_SIZE (HW_PROFILE_INFOW, szHwProfileGuid, 78)
2731 TEST_FIELD_ALIGN (HW_PROFILE_INFOW, szHwProfileGuid, 2)
2732 TEST_FIELD_OFFSET(HW_PROFILE_INFOW, szHwProfileGuid, 4)
2733 TEST_FIELD_SIZE (HW_PROFILE_INFOW, szHwProfileName, 160)
2734 TEST_FIELD_ALIGN (HW_PROFILE_INFOW, szHwProfileName, 2)
2735 TEST_FIELD_OFFSET(HW_PROFILE_INFOW, szHwProfileName, 82)
2736}
2737
2739{
2740 /* LOAD_DLL_DEBUG_INFO */
2746 TEST_FIELD_SIZE (LOAD_DLL_DEBUG_INFO, lpBaseOfDll, 4)
2747 TEST_FIELD_ALIGN (LOAD_DLL_DEBUG_INFO, lpBaseOfDll, 4)
2748 TEST_FIELD_OFFSET(LOAD_DLL_DEBUG_INFO, lpBaseOfDll, 4)
2749 TEST_FIELD_SIZE (LOAD_DLL_DEBUG_INFO, dwDebugInfoFileOffset, 4)
2750 TEST_FIELD_ALIGN (LOAD_DLL_DEBUG_INFO, dwDebugInfoFileOffset, 4)
2751 TEST_FIELD_OFFSET(LOAD_DLL_DEBUG_INFO, dwDebugInfoFileOffset, 8)
2752 TEST_FIELD_SIZE (LOAD_DLL_DEBUG_INFO, nDebugInfoSize, 4)
2753 TEST_FIELD_ALIGN (LOAD_DLL_DEBUG_INFO, nDebugInfoSize, 4)
2754 TEST_FIELD_OFFSET(LOAD_DLL_DEBUG_INFO, nDebugInfoSize, 12)
2755 TEST_FIELD_SIZE (LOAD_DLL_DEBUG_INFO, lpImageName, 4)
2756 TEST_FIELD_ALIGN (LOAD_DLL_DEBUG_INFO, lpImageName, 4)
2757 TEST_FIELD_OFFSET(LOAD_DLL_DEBUG_INFO, lpImageName, 16)
2761}
2762
2764{
2765 /* LPBY_HANDLE_FILE_INFORMATION */
2770}
2771
2772static void test_pack_LPCOMMCONFIG(void)
2773{
2774 /* LPCOMMCONFIG */
2779}
2780
2781static void test_pack_LPCOMMPROP(void)
2782{
2783 /* LPCOMMPROP */
2788}
2789
2791{
2792 /* LPCOMMTIMEOUTS */
2797}
2798
2799static void test_pack_LPCOMSTAT(void)
2800{
2801 /* LPCOMSTAT */
2806}
2807
2809{
2810 /* LPCRITICAL_SECTION */
2813}
2814
2816{
2817 /* LPCRITICAL_SECTION_DEBUG */
2820}
2821
2822static void test_pack_LPDCB(void)
2823{
2824 /* LPDCB */
2829}
2830
2832{
2833 /* LPDEBUG_EVENT */
2836}
2837
2839{
2840 /* LPEXCEPTION_POINTERS */
2843}
2844
2846{
2847 /* LPEXCEPTION_RECORD */
2850}
2851
2853{
2854 /* LPFIBER_START_ROUTINE */
2857}
2858
2860{
2861 /* LPHW_PROFILE_INFOA */
2866}
2867
2869{
2870 /* LPHW_PROFILE_INFOW */
2875}
2876
2878{
2879 /* LPMEMORYSTATUS */
2884}
2885
2887{
2888 /* LPMEMORYSTATUSEX */
2889 TEST_TYPE_SIZE (LPMEMORYSTATUSEX, 4)
2890 TEST_TYPE_ALIGN (LPMEMORYSTATUSEX, 4)
2891 TEST_TARGET_SIZE (LPMEMORYSTATUSEX, 64)
2892 TEST_TARGET_ALIGN(LPMEMORYSTATUSEX, 8)
2893}
2894
2895static void test_pack_LPOFSTRUCT(void)
2896{
2897 /* LPOFSTRUCT */
2902}
2903
2904static void test_pack_LPOVERLAPPED(void)
2905{
2906 /* LPOVERLAPPED */
2909}
2910
2912{
2913 /* LPOVERLAPPED_COMPLETION_ROUTINE */
2916}
2917
2919{
2920 /* LPPROCESS_HEAP_ENTRY */
2923}
2924
2926{
2927 /* LPPROCESS_INFORMATION */
2932}
2933
2935{
2936 /* LPPROGRESS_ROUTINE */
2939}
2940
2942{
2943 /* LPSECURITY_ATTRIBUTES */
2948}
2949
2951{
2952 /* LPSTARTUPINFOA */
2957}
2958
2960{
2961 /* LPSTARTUPINFOW */
2966}
2967
2968static void test_pack_LPSYSTEMTIME(void)
2969{
2970 /* LPSYSTEMTIME */
2975}
2976
2978{
2979 /* LPSYSTEM_INFO */
2982}
2983
2985{
2986 /* LPSYSTEM_POWER_STATUS */
2991}
2992
2994{
2995 /* LPTHREAD_START_ROUTINE */
2998}
2999
3001{
3002 /* LPTIME_ZONE_INFORMATION */
3007}
3008
3010{
3011 /* LPWIN32_FILE_ATTRIBUTE_DATA */
3016}
3017
3019{
3020 /* LPWIN32_FIND_DATAA */
3025}
3026
3028{
3029 /* LPWIN32_FIND_DATAW */
3034}
3035
3037{
3038 /* LPWIN32_STREAM_ID */
3043}
3044
3045static void test_pack_MEMORYSTATUS(void)
3046{
3047 /* MEMORYSTATUS */
3053 TEST_FIELD_SIZE (MEMORYSTATUS, dwMemoryLoad, 4)
3054 TEST_FIELD_ALIGN (MEMORYSTATUS, dwMemoryLoad, 4)
3055 TEST_FIELD_OFFSET(MEMORYSTATUS, dwMemoryLoad, 4)
3056 TEST_FIELD_SIZE (MEMORYSTATUS, dwTotalPhys, 4)
3057 TEST_FIELD_ALIGN (MEMORYSTATUS, dwTotalPhys, 4)
3058 TEST_FIELD_OFFSET(MEMORYSTATUS, dwTotalPhys, 8)
3059 TEST_FIELD_SIZE (MEMORYSTATUS, dwAvailPhys, 4)
3060 TEST_FIELD_ALIGN (MEMORYSTATUS, dwAvailPhys, 4)
3061 TEST_FIELD_OFFSET(MEMORYSTATUS, dwAvailPhys, 12)
3062 TEST_FIELD_SIZE (MEMORYSTATUS, dwTotalPageFile, 4)
3063 TEST_FIELD_ALIGN (MEMORYSTATUS, dwTotalPageFile, 4)
3064 TEST_FIELD_OFFSET(MEMORYSTATUS, dwTotalPageFile, 16)
3065 TEST_FIELD_SIZE (MEMORYSTATUS, dwAvailPageFile, 4)
3066 TEST_FIELD_ALIGN (MEMORYSTATUS, dwAvailPageFile, 4)
3067 TEST_FIELD_OFFSET(MEMORYSTATUS, dwAvailPageFile, 20)
3068 TEST_FIELD_SIZE (MEMORYSTATUS, dwTotalVirtual, 4)
3069 TEST_FIELD_ALIGN (MEMORYSTATUS, dwTotalVirtual, 4)
3070 TEST_FIELD_OFFSET(MEMORYSTATUS, dwTotalVirtual, 24)
3071 TEST_FIELD_SIZE (MEMORYSTATUS, dwAvailVirtual, 4)
3072 TEST_FIELD_ALIGN (MEMORYSTATUS, dwAvailVirtual, 4)
3073 TEST_FIELD_OFFSET(MEMORYSTATUS, dwAvailVirtual, 28)
3074}
3075
3077{
3078 /* MEMORYSTATUSEX (pack 8) */
3079 TEST_TYPE_SIZE (MEMORYSTATUSEX, 64)
3080 TEST_TYPE_ALIGN (MEMORYSTATUSEX, 8)
3081 TEST_FIELD_SIZE (MEMORYSTATUSEX, dwLength, 4)
3082 TEST_FIELD_ALIGN (MEMORYSTATUSEX, dwLength, 4)
3083 TEST_FIELD_OFFSET(MEMORYSTATUSEX, dwLength, 0)
3084 TEST_FIELD_SIZE (MEMORYSTATUSEX, dwMemoryLoad, 4)
3085 TEST_FIELD_ALIGN (MEMORYSTATUSEX, dwMemoryLoad, 4)
3086 TEST_FIELD_OFFSET(MEMORYSTATUSEX, dwMemoryLoad, 4)
3087 TEST_FIELD_SIZE (MEMORYSTATUSEX, ullTotalPhys, 8)
3088 TEST_FIELD_ALIGN (MEMORYSTATUSEX, ullTotalPhys, 8)
3089 TEST_FIELD_OFFSET(MEMORYSTATUSEX, ullTotalPhys, 8)
3090 TEST_FIELD_SIZE (MEMORYSTATUSEX, ullAvailPhys, 8)
3091 TEST_FIELD_ALIGN (MEMORYSTATUSEX, ullAvailPhys, 8)
3092 TEST_FIELD_OFFSET(MEMORYSTATUSEX, ullAvailPhys, 16)
3093 TEST_FIELD_SIZE (MEMORYSTATUSEX, ullTotalPageFile, 8)
3094 TEST_FIELD_ALIGN (MEMORYSTATUSEX, ullTotalPageFile, 8)
3095 TEST_FIELD_OFFSET(MEMORYSTATUSEX, ullTotalPageFile, 24)
3096 TEST_FIELD_SIZE (MEMORYSTATUSEX, ullAvailPageFile, 8)
3097 TEST_FIELD_ALIGN (MEMORYSTATUSEX, ullAvailPageFile, 8)
3098 TEST_FIELD_OFFSET(MEMORYSTATUSEX, ullAvailPageFile, 32)
3099 TEST_FIELD_SIZE (MEMORYSTATUSEX, ullTotalVirtual, 8)
3100 TEST_FIELD_ALIGN (MEMORYSTATUSEX, ullTotalVirtual, 8)
3101 TEST_FIELD_OFFSET(MEMORYSTATUSEX, ullTotalVirtual, 40)
3102 TEST_FIELD_SIZE (MEMORYSTATUSEX, ullAvailVirtual, 8)
3103 TEST_FIELD_ALIGN (MEMORYSTATUSEX, ullAvailVirtual, 8)
3104 TEST_FIELD_OFFSET(MEMORYSTATUSEX, ullAvailVirtual, 48)
3105 TEST_FIELD_SIZE (MEMORYSTATUSEX, ullAvailExtendedVirtual, 8)
3106 TEST_FIELD_ALIGN (MEMORYSTATUSEX, ullAvailExtendedVirtual, 8)
3107 TEST_FIELD_OFFSET(MEMORYSTATUSEX, ullAvailExtendedVirtual, 56)
3108}
3109
3110static void test_pack_OFSTRUCT(void)
3111{
3112 /* OFSTRUCT */
3115 TEST_FIELD_SIZE (OFSTRUCT, cBytes, 1)
3116 TEST_FIELD_ALIGN (OFSTRUCT, cBytes, 1)
3117 TEST_FIELD_OFFSET(OFSTRUCT, cBytes, 0)
3118 TEST_FIELD_SIZE (OFSTRUCT, fFixedDisk, 1)
3119 TEST_FIELD_ALIGN (OFSTRUCT, fFixedDisk, 1)
3120 TEST_FIELD_OFFSET(OFSTRUCT, fFixedDisk, 1)
3121 TEST_FIELD_SIZE (OFSTRUCT, nErrCode, 2)
3122 TEST_FIELD_ALIGN (OFSTRUCT, nErrCode, 2)
3123 TEST_FIELD_OFFSET(OFSTRUCT, nErrCode, 2)
3130 TEST_FIELD_SIZE (OFSTRUCT, szPathName, 128)
3131 TEST_FIELD_ALIGN (OFSTRUCT, szPathName, 1)
3132 TEST_FIELD_OFFSET(OFSTRUCT, szPathName, 8)
3133}
3134
3136{
3137 /* OUTPUT_DEBUG_STRING_INFO */
3140 TEST_FIELD_SIZE (OUTPUT_DEBUG_STRING_INFO, lpDebugStringData, 4)
3141 TEST_FIELD_ALIGN (OUTPUT_DEBUG_STRING_INFO, lpDebugStringData, 4)
3142 TEST_FIELD_OFFSET(OUTPUT_DEBUG_STRING_INFO, lpDebugStringData, 0)
3146 TEST_FIELD_SIZE (OUTPUT_DEBUG_STRING_INFO, nDebugStringLength, 2)
3147 TEST_FIELD_ALIGN (OUTPUT_DEBUG_STRING_INFO, nDebugStringLength, 2)
3148 TEST_FIELD_OFFSET(OUTPUT_DEBUG_STRING_INFO, nDebugStringLength, 6)
3149}
3150
3151static void test_pack_PACTCTXA(void)
3152{
3153 /* PACTCTXA */
3154 TEST_TYPE_SIZE (PACTCTXA, 4)
3155 TEST_TYPE_ALIGN (PACTCTXA, 4)
3156 TEST_TARGET_SIZE (PACTCTXA, 32)
3157 TEST_TARGET_ALIGN(PACTCTXA, 4)
3158}
3159
3160static void test_pack_PACTCTXW(void)
3161{
3162 /* PACTCTXW */
3163 TEST_TYPE_SIZE (PACTCTXW, 4)
3164 TEST_TYPE_ALIGN (PACTCTXW, 4)
3165 TEST_TARGET_SIZE (PACTCTXW, 32)
3166 TEST_TARGET_ALIGN(PACTCTXW, 4)
3167}
3168
3170{
3171 /* PACTCTX_SECTION_KEYED_DATA */
3176}
3177
3179{
3180 /* PACTCTX_SECTION_KEYED_DATA_2600 */
3181 TEST_TYPE_SIZE (PACTCTX_SECTION_KEYED_DATA_2600, 4)
3182 TEST_TYPE_ALIGN (PACTCTX_SECTION_KEYED_DATA_2600, 4)
3183 TEST_TARGET_SIZE (PACTCTX_SECTION_KEYED_DATA_2600, 40)
3184 TEST_TARGET_ALIGN(PACTCTX_SECTION_KEYED_DATA_2600, 4)
3185}
3186
3188{
3189 /* PACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA */
3190 TEST_TYPE_SIZE (PACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, 4)
3191 TEST_TYPE_ALIGN (PACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, 4)
3192 TEST_TARGET_SIZE (PACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, 20)
3193 TEST_TARGET_ALIGN(PACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, 4)
3194}
3195
3197{
3198 /* PACTIVATION_CONTEXT_BASIC_INFORMATION */
3199 TEST_TYPE_SIZE (PACTIVATION_CONTEXT_BASIC_INFORMATION, 4)
3200 TEST_TYPE_ALIGN (PACTIVATION_CONTEXT_BASIC_INFORMATION, 4)
3201 TEST_TARGET_SIZE (PACTIVATION_CONTEXT_BASIC_INFORMATION, 8)
3202 TEST_TARGET_ALIGN(PACTIVATION_CONTEXT_BASIC_INFORMATION, 4)
3203}
3204
3205static void test_pack_PAPCFUNC(void)
3206{
3207 /* PAPCFUNC */
3210}
3211
3213{
3214 /* PBY_HANDLE_FILE_INFORMATION */
3219}
3220
3221static void test_pack_PCACTCTXA(void)
3222{
3223 /* PCACTCTXA */
3224 TEST_TYPE_SIZE (PCACTCTXA, 4)
3225 TEST_TYPE_ALIGN (PCACTCTXA, 4)
3226 TEST_TARGET_SIZE (PCACTCTXA, 32)
3227 TEST_TARGET_ALIGN(PCACTCTXA, 4)
3228}
3229
3230static void test_pack_PCACTCTXW(void)
3231{
3232 /* PCACTCTXW */
3233 TEST_TYPE_SIZE (PCACTCTXW, 4)
3234 TEST_TYPE_ALIGN (PCACTCTXW, 4)
3235 TEST_TARGET_SIZE (PCACTCTXW, 32)
3236 TEST_TARGET_ALIGN(PCACTCTXW, 4)
3237}
3238
3240{
3241 /* PCACTCTX_SECTION_KEYED_DATA */
3242 TEST_TYPE_SIZE (PCACTCTX_SECTION_KEYED_DATA, 4)
3243 TEST_TYPE_ALIGN (PCACTCTX_SECTION_KEYED_DATA, 4)
3244 TEST_TARGET_SIZE (PCACTCTX_SECTION_KEYED_DATA, 64)
3245 TEST_TARGET_ALIGN(PCACTCTX_SECTION_KEYED_DATA, 4)
3246}
3247
3249{
3250 /* PCACTCTX_SECTION_KEYED_DATA_2600 */
3251 TEST_TYPE_SIZE (PCACTCTX_SECTION_KEYED_DATA_2600, 4)
3252 TEST_TYPE_ALIGN (PCACTCTX_SECTION_KEYED_DATA_2600, 4)
3253 TEST_TARGET_SIZE (PCACTCTX_SECTION_KEYED_DATA_2600, 40)
3254 TEST_TARGET_ALIGN(PCACTCTX_SECTION_KEYED_DATA_2600, 4)
3255}
3256
3258{
3259 /* PCACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA */
3260 TEST_TYPE_SIZE (PCACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, 4)
3261 TEST_TYPE_ALIGN (PCACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, 4)
3262 TEST_TARGET_SIZE (PCACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, 20)
3263 TEST_TARGET_ALIGN(PCACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, 4)
3264}
3265
3267{
3268 /* PCRITICAL_SECTION */
3271}
3272
3274{
3275 /* PCRITICAL_SECTION_DEBUG */
3278}
3279
3281{
3282 /* PFIBER_START_ROUTINE */
3285}
3286
3287static void test_pack_POFSTRUCT(void)
3288{
3289 /* POFSTRUCT */
3294}
3295
3297{
3298 /* PPROCESS_HEAP_ENTRY */
3301}
3302
3304{
3305 /* PPROCESS_INFORMATION */
3310}
3311
3313{
3314 /* PQUERYACTCTXW_FUNC */
3315 TEST_TYPE_SIZE (PQUERYACTCTXW_FUNC, 4)
3316 TEST_TYPE_ALIGN (PQUERYACTCTXW_FUNC, 4)
3317}
3318
3320{
3321 /* PROCESS_HEAP_ENTRY */
3328 TEST_FIELD_SIZE (PROCESS_HEAP_ENTRY, cbOverhead, 1)
3329 TEST_FIELD_ALIGN (PROCESS_HEAP_ENTRY, cbOverhead, 1)
3331 TEST_FIELD_SIZE (PROCESS_HEAP_ENTRY, iRegionIndex, 1)
3332 TEST_FIELD_ALIGN (PROCESS_HEAP_ENTRY, iRegionIndex, 1)
3333 TEST_FIELD_OFFSET(PROCESS_HEAP_ENTRY, iRegionIndex, 9)
3337}
3338
3340{
3341 /* PROCESS_INFORMATION */
3350 TEST_FIELD_SIZE (PROCESS_INFORMATION, dwProcessId, 4)
3351 TEST_FIELD_ALIGN (PROCESS_INFORMATION, dwProcessId, 4)
3352 TEST_FIELD_OFFSET(PROCESS_INFORMATION, dwProcessId, 8)
3356}
3357
3359{
3360 /* PSECURITY_ATTRIBUTES */
3365}
3366
3367static void test_pack_PSYSTEMTIME(void)
3368{
3369 /* PSYSTEMTIME */
3374}
3375
3377{
3378 /* PTIMERAPCROUTINE */
3381}
3382
3384{
3385 /* PTIME_ZONE_INFORMATION */
3390}
3391
3393{
3394 /* PWIN32_FIND_DATAA */
3399}
3400
3402{
3403 /* PWIN32_FIND_DATAW */
3408}
3409
3410static void test_pack_RIP_INFO(void)
3411{
3412 /* RIP_INFO */
3415 TEST_FIELD_SIZE (RIP_INFO, dwError, 4)
3416 TEST_FIELD_ALIGN (RIP_INFO, dwError, 4)
3417 TEST_FIELD_OFFSET(RIP_INFO, dwError, 0)
3418 TEST_FIELD_SIZE (RIP_INFO, dwType, 4)
3419 TEST_FIELD_ALIGN (RIP_INFO, dwType, 4)
3420 TEST_FIELD_OFFSET(RIP_INFO, dwType, 4)
3421}
3422
3424{
3425 /* SECURITY_ATTRIBUTES */
3431 TEST_FIELD_SIZE (SECURITY_ATTRIBUTES, lpSecurityDescriptor, 4)
3432 TEST_FIELD_ALIGN (SECURITY_ATTRIBUTES, lpSecurityDescriptor, 4)
3433 TEST_FIELD_OFFSET(SECURITY_ATTRIBUTES, lpSecurityDescriptor, 4)
3437}
3438
3439static void test_pack_STARTUPINFOA(void)
3440{
3441 /* STARTUPINFOA */
3447 TEST_FIELD_SIZE (STARTUPINFOA, lpReserved, 4)
3448 TEST_FIELD_ALIGN (STARTUPINFOA, lpReserved, 4)
3449 TEST_FIELD_OFFSET(STARTUPINFOA, lpReserved, 4)
3450 TEST_FIELD_SIZE (STARTUPINFOA, lpDesktop, 4)
3451 TEST_FIELD_ALIGN (STARTUPINFOA, lpDesktop, 4)
3452 TEST_FIELD_OFFSET(STARTUPINFOA, lpDesktop, 8)
3462 TEST_FIELD_SIZE (STARTUPINFOA, dwXSize, 4)
3463 TEST_FIELD_ALIGN (STARTUPINFOA, dwXSize, 4)
3464 TEST_FIELD_OFFSET(STARTUPINFOA, dwXSize, 24)
3465 TEST_FIELD_SIZE (STARTUPINFOA, dwYSize, 4)
3466 TEST_FIELD_ALIGN (STARTUPINFOA, dwYSize, 4)
3467 TEST_FIELD_OFFSET(STARTUPINFOA, dwYSize, 28)
3468 TEST_FIELD_SIZE (STARTUPINFOA, dwXCountChars, 4)
3469 TEST_FIELD_ALIGN (STARTUPINFOA, dwXCountChars, 4)
3470 TEST_FIELD_OFFSET(STARTUPINFOA, dwXCountChars, 32)
3471 TEST_FIELD_SIZE (STARTUPINFOA, dwYCountChars, 4)
3472 TEST_FIELD_ALIGN (STARTUPINFOA, dwYCountChars, 4)
3473 TEST_FIELD_OFFSET(STARTUPINFOA, dwYCountChars, 36)
3474 TEST_FIELD_SIZE (STARTUPINFOA, dwFillAttribute, 4)
3475 TEST_FIELD_ALIGN (STARTUPINFOA, dwFillAttribute, 4)
3476 TEST_FIELD_OFFSET(STARTUPINFOA, dwFillAttribute, 40)
3480 TEST_FIELD_SIZE (STARTUPINFOA, wShowWindow, 2)
3481 TEST_FIELD_ALIGN (STARTUPINFOA, wShowWindow, 2)
3482 TEST_FIELD_OFFSET(STARTUPINFOA, wShowWindow, 48)
3483 TEST_FIELD_SIZE (STARTUPINFOA, cbReserved2, 2)
3484 TEST_FIELD_ALIGN (STARTUPINFOA, cbReserved2, 2)
3485 TEST_FIELD_OFFSET(STARTUPINFOA, cbReserved2, 50)
3486 TEST_FIELD_SIZE (STARTUPINFOA, lpReserved2, 4)
3487 TEST_FIELD_ALIGN (STARTUPINFOA, lpReserved2, 4)
3488 TEST_FIELD_OFFSET(STARTUPINFOA, lpReserved2, 52)
3489 TEST_FIELD_SIZE (STARTUPINFOA, hStdInput, 4)
3490 TEST_FIELD_ALIGN (STARTUPINFOA, hStdInput, 4)
3491 TEST_FIELD_OFFSET(STARTUPINFOA, hStdInput, 56)
3495 TEST_FIELD_SIZE (STARTUPINFOA, hStdError, 4)
3496 TEST_FIELD_ALIGN (STARTUPINFOA, hStdError, 4)
3497 TEST_FIELD_OFFSET(STARTUPINFOA, hStdError, 64)
3498}
3499
3500static void test_pack_STARTUPINFOW(void)
3501{
3502 /* STARTUPINFOW */
3508 TEST_FIELD_SIZE (STARTUPINFOW, lpReserved, 4)
3509 TEST_FIELD_ALIGN (STARTUPINFOW, lpReserved, 4)
3510 TEST_FIELD_OFFSET(STARTUPINFOW, lpReserved, 4)
3511 TEST_FIELD_SIZE (STARTUPINFOW, lpDesktop, 4)
3512 TEST_FIELD_ALIGN (STARTUPINFOW, lpDesktop, 4)
3513 TEST_FIELD_OFFSET(STARTUPINFOW, lpDesktop, 8)
3523 TEST_FIELD_SIZE (STARTUPINFOW, dwXSize, 4)
3524 TEST_FIELD_ALIGN (STARTUPINFOW, dwXSize, 4)
3525 TEST_FIELD_OFFSET(STARTUPINFOW, dwXSize, 24)
3526 TEST_FIELD_SIZE (STARTUPINFOW, dwYSize, 4)
3527 TEST_FIELD_ALIGN (STARTUPINFOW, dwYSize, 4)
3528 TEST_FIELD_OFFSET(STARTUPINFOW, dwYSize, 28)
3529 TEST_FIELD_SIZE (STARTUPINFOW, dwXCountChars, 4)
3530 TEST_FIELD_ALIGN (STARTUPINFOW, dwXCountChars, 4)
3531 TEST_FIELD_OFFSET(STARTUPINFOW, dwXCountChars, 32)
3532 TEST_FIELD_SIZE (STARTUPINFOW, dwYCountChars, 4)
3533 TEST_FIELD_ALIGN (STARTUPINFOW, dwYCountChars, 4)
3534 TEST_FIELD_OFFSET(STARTUPINFOW, dwYCountChars, 36)
3535 TEST_FIELD_SIZE (STARTUPINFOW, dwFillAttribute, 4)
3536 TEST_FIELD_ALIGN (STARTUPINFOW, dwFillAttribute, 4)
3537 TEST_FIELD_OFFSET(STARTUPINFOW, dwFillAttribute, 40)
3541 TEST_FIELD_SIZE (STARTUPINFOW, wShowWindow, 2)
3542 TEST_FIELD_ALIGN (STARTUPINFOW, wShowWindow, 2)
3543 TEST_FIELD_OFFSET(STARTUPINFOW, wShowWindow, 48)
3544 TEST_FIELD_SIZE (STARTUPINFOW, cbReserved2, 2)
3545 TEST_FIELD_ALIGN (STARTUPINFOW, cbReserved2, 2)
3546 TEST_FIELD_OFFSET(STARTUPINFOW, cbReserved2, 50)
3547 TEST_FIELD_SIZE (STARTUPINFOW, lpReserved2, 4)
3548 TEST_FIELD_ALIGN (STARTUPINFOW, lpReserved2, 4)
3549 TEST_FIELD_OFFSET(STARTUPINFOW, lpReserved2, 52)
3550 TEST_FIELD_SIZE (STARTUPINFOW, hStdInput, 4)
3551 TEST_FIELD_ALIGN (STARTUPINFOW, hStdInput, 4)
3552 TEST_FIELD_OFFSET(STARTUPINFOW, hStdInput, 56)
3556 TEST_FIELD_SIZE (STARTUPINFOW, hStdError, 4)
3557 TEST_FIELD_ALIGN (STARTUPINFOW, hStdError, 4)
3558 TEST_FIELD_OFFSET(STARTUPINFOW, hStdError, 64)
3559}
3560
3561static void test_pack_SYSTEMTIME(void)
3562{
3563 /* SYSTEMTIME */
3566 TEST_FIELD_SIZE (SYSTEMTIME, wYear, 2)
3567 TEST_FIELD_ALIGN (SYSTEMTIME, wYear, 2)
3568 TEST_FIELD_OFFSET(SYSTEMTIME, wYear, 0)
3569 TEST_FIELD_SIZE (SYSTEMTIME, wMonth, 2)
3570 TEST_FIELD_ALIGN (SYSTEMTIME, wMonth, 2)
3571 TEST_FIELD_OFFSET(SYSTEMTIME, wMonth, 2)
3572 TEST_FIELD_SIZE (SYSTEMTIME, wDayOfWeek, 2)
3573 TEST_FIELD_ALIGN (SYSTEMTIME, wDayOfWeek, 2)
3574 TEST_FIELD_OFFSET(SYSTEMTIME, wDayOfWeek, 4)
3575 TEST_FIELD_SIZE (SYSTEMTIME, wDay, 2)
3576 TEST_FIELD_ALIGN (SYSTEMTIME, wDay, 2)
3578 TEST_FIELD_SIZE (SYSTEMTIME, wHour, 2)
3579 TEST_FIELD_ALIGN (SYSTEMTIME, wHour, 2)
3580 TEST_FIELD_OFFSET(SYSTEMTIME, wHour, 8)
3581 TEST_FIELD_SIZE (SYSTEMTIME, wMinute, 2)
3582 TEST_FIELD_ALIGN (SYSTEMTIME, wMinute, 2)
3583 TEST_FIELD_OFFSET(SYSTEMTIME, wMinute, 10)
3584 TEST_FIELD_SIZE (SYSTEMTIME, wSecond, 2)
3585 TEST_FIELD_ALIGN (SYSTEMTIME, wSecond, 2)
3586 TEST_FIELD_OFFSET(SYSTEMTIME, wSecond, 12)
3587 TEST_FIELD_SIZE (SYSTEMTIME, wMilliseconds, 2)
3588 TEST_FIELD_ALIGN (SYSTEMTIME, wMilliseconds, 2)
3589 TEST_FIELD_OFFSET(SYSTEMTIME, wMilliseconds, 14)
3590}
3591
3592static void test_pack_SYSTEM_INFO(void)
3593{
3594 /* SYSTEM_INFO */
3595}
3596
3598{
3599 /* SYSTEM_POWER_STATUS */
3602 TEST_FIELD_SIZE (SYSTEM_POWER_STATUS, ACLineStatus, 1)
3603 TEST_FIELD_ALIGN (SYSTEM_POWER_STATUS, ACLineStatus, 1)
3604 TEST_FIELD_OFFSET(SYSTEM_POWER_STATUS, ACLineStatus, 0)
3605 TEST_FIELD_SIZE (SYSTEM_POWER_STATUS, BatteryFlag, 1)
3606 TEST_FIELD_ALIGN (SYSTEM_POWER_STATUS, BatteryFlag, 1)
3607 TEST_FIELD_OFFSET(SYSTEM_POWER_STATUS, BatteryFlag, 1)
3608 TEST_FIELD_SIZE (SYSTEM_POWER_STATUS, BatteryLifePercent, 1)
3609 TEST_FIELD_ALIGN (SYSTEM_POWER_STATUS, BatteryLifePercent, 1)
3610 TEST_FIELD_OFFSET(SYSTEM_POWER_STATUS, BatteryLifePercent, 2)
3611 TEST_FIELD_SIZE (SYSTEM_POWER_STATUS, SystemStatusFlag, 1)
3612 TEST_FIELD_ALIGN (SYSTEM_POWER_STATUS, SystemStatusFlag, 1)
3613 TEST_FIELD_OFFSET(SYSTEM_POWER_STATUS, SystemStatusFlag, 3)
3614 TEST_FIELD_SIZE (SYSTEM_POWER_STATUS, BatteryLifeTime, 4)
3615 TEST_FIELD_ALIGN (SYSTEM_POWER_STATUS, BatteryLifeTime, 4)
3616 TEST_FIELD_OFFSET(SYSTEM_POWER_STATUS, BatteryLifeTime, 4)
3617 TEST_FIELD_SIZE (SYSTEM_POWER_STATUS, BatteryFullLifeTime, 4)
3618 TEST_FIELD_ALIGN (SYSTEM_POWER_STATUS, BatteryFullLifeTime, 4)
3619 TEST_FIELD_OFFSET(SYSTEM_POWER_STATUS, BatteryFullLifeTime, 8)
3620}
3621
3623{
3624 /* TIME_ZONE_INFORMATION */
3630 TEST_FIELD_SIZE (TIME_ZONE_INFORMATION, StandardName, 64)
3631 TEST_FIELD_ALIGN (TIME_ZONE_INFORMATION, StandardName, 2)
3633 TEST_FIELD_SIZE (TIME_ZONE_INFORMATION, StandardDate, 16)
3634 TEST_FIELD_ALIGN (TIME_ZONE_INFORMATION, StandardDate, 2)
3635 TEST_FIELD_OFFSET(TIME_ZONE_INFORMATION, StandardDate, 68)
3636 TEST_FIELD_SIZE (TIME_ZONE_INFORMATION, StandardBias, 4)
3637 TEST_FIELD_ALIGN (TIME_ZONE_INFORMATION, StandardBias, 4)
3638 TEST_FIELD_OFFSET(TIME_ZONE_INFORMATION, StandardBias, 84)
3639 TEST_FIELD_SIZE (TIME_ZONE_INFORMATION, DaylightName, 64)
3640 TEST_FIELD_ALIGN (TIME_ZONE_INFORMATION, DaylightName, 2)
3641 TEST_FIELD_OFFSET(TIME_ZONE_INFORMATION, DaylightName, 88)
3642 TEST_FIELD_SIZE (TIME_ZONE_INFORMATION, DaylightDate, 16)
3643 TEST_FIELD_ALIGN (TIME_ZONE_INFORMATION, DaylightDate, 2)
3644 TEST_FIELD_OFFSET(TIME_ZONE_INFORMATION, DaylightDate, 152)
3645 TEST_FIELD_SIZE (TIME_ZONE_INFORMATION, DaylightBias, 4)
3646 TEST_FIELD_ALIGN (TIME_ZONE_INFORMATION, DaylightBias, 4)
3647 TEST_FIELD_OFFSET(TIME_ZONE_INFORMATION, DaylightBias, 168)
3648}
3649
3651{
3652 /* UNLOAD_DLL_DEBUG_INFO */
3655 TEST_FIELD_SIZE (UNLOAD_DLL_DEBUG_INFO, lpBaseOfDll, 4)
3656 TEST_FIELD_ALIGN (UNLOAD_DLL_DEBUG_INFO, lpBaseOfDll, 4)
3658}
3659
3661{
3662 /* WAITORTIMERCALLBACK */
3665}
3666
3668{
3669 /* WIN32_FILE_ATTRIBUTE_DATA */
3675 TEST_FIELD_SIZE (WIN32_FILE_ATTRIBUTE_DATA, ftCreationTime, 8)
3676 TEST_FIELD_ALIGN (WIN32_FILE_ATTRIBUTE_DATA, ftCreationTime, 4)
3678 TEST_FIELD_SIZE (WIN32_FILE_ATTRIBUTE_DATA, ftLastAccessTime, 8)
3679 TEST_FIELD_ALIGN (WIN32_FILE_ATTRIBUTE_DATA, ftLastAccessTime, 4)
3680 TEST_FIELD_OFFSET(WIN32_FILE_ATTRIBUTE_DATA, ftLastAccessTime, 12)
3681 TEST_FIELD_SIZE (WIN32_FILE_ATTRIBUTE_DATA, ftLastWriteTime, 8)
3682 TEST_FIELD_ALIGN (WIN32_FILE_ATTRIBUTE_DATA, ftLastWriteTime, 4)
3683 TEST_FIELD_OFFSET(WIN32_FILE_ATTRIBUTE_DATA, ftLastWriteTime, 20)
3684 TEST_FIELD_SIZE (WIN32_FILE_ATTRIBUTE_DATA, nFileSizeHigh, 4)
3690}
3691
3693{
3694 /* WIN32_FIND_DATAA */
3700 TEST_FIELD_SIZE (WIN32_FIND_DATAA, ftCreationTime, 8)
3701 TEST_FIELD_ALIGN (WIN32_FIND_DATAA, ftCreationTime, 4)
3702 TEST_FIELD_OFFSET(WIN32_FIND_DATAA, ftCreationTime, 4)
3703 TEST_FIELD_SIZE (WIN32_FIND_DATAA, ftLastAccessTime, 8)
3704 TEST_FIELD_ALIGN (WIN32_FIND_DATAA, ftLastAccessTime, 4)
3705 TEST_FIELD_OFFSET(WIN32_FIND_DATAA, ftLastAccessTime, 12)
3706 TEST_FIELD_SIZE (WIN32_FIND_DATAA, ftLastWriteTime, 8)
3707 TEST_FIELD_ALIGN (WIN32_FIND_DATAA, ftLastWriteTime, 4)
3708 TEST_FIELD_OFFSET(WIN32_FIND_DATAA, ftLastWriteTime, 20)
3709 TEST_FIELD_SIZE (WIN32_FIND_DATAA, nFileSizeHigh, 4)
3710 TEST_FIELD_ALIGN (WIN32_FIND_DATAA, nFileSizeHigh, 4)
3711 TEST_FIELD_OFFSET(WIN32_FIND_DATAA, nFileSizeHigh, 28)
3712 TEST_FIELD_SIZE (WIN32_FIND_DATAA, nFileSizeLow, 4)
3713 TEST_FIELD_ALIGN (WIN32_FIND_DATAA, nFileSizeLow, 4)
3714 TEST_FIELD_OFFSET(WIN32_FIND_DATAA, nFileSizeLow, 32)
3715 TEST_FIELD_SIZE (WIN32_FIND_DATAA, dwReserved0, 4)
3716 TEST_FIELD_ALIGN (WIN32_FIND_DATAA, dwReserved0, 4)
3717 TEST_FIELD_OFFSET(WIN32_FIND_DATAA, dwReserved0, 36)
3718 TEST_FIELD_SIZE (WIN32_FIND_DATAA, dwReserved1, 4)
3719 TEST_FIELD_ALIGN (WIN32_FIND_DATAA, dwReserved1, 4)
3720 TEST_FIELD_OFFSET(WIN32_FIND_DATAA, dwReserved1, 40)
3721 TEST_FIELD_SIZE (WIN32_FIND_DATAA, cFileName, 260)
3722 TEST_FIELD_ALIGN (WIN32_FIND_DATAA, cFileName, 1)
3723 TEST_FIELD_OFFSET(WIN32_FIND_DATAA, cFileName, 44)
3724 TEST_FIELD_SIZE (WIN32_FIND_DATAA, cAlternateFileName, 14)
3725 TEST_FIELD_ALIGN (WIN32_FIND_DATAA, cAlternateFileName, 1)
3726 TEST_FIELD_OFFSET(WIN32_FIND_DATAA, cAlternateFileName, 304)
3727}
3728
3730{
3731 /* WIN32_FIND_DATAW */
3737 TEST_FIELD_SIZE (WIN32_FIND_DATAW, ftCreationTime, 8)
3738 TEST_FIELD_ALIGN (WIN32_FIND_DATAW, ftCreationTime, 4)
3739 TEST_FIELD_OFFSET(WIN32_FIND_DATAW, ftCreationTime, 4)
3740 TEST_FIELD_SIZE (WIN32_FIND_DATAW, ftLastAccessTime, 8)
3741 TEST_FIELD_ALIGN (WIN32_FIND_DATAW, ftLastAccessTime, 4)
3742 TEST_FIELD_OFFSET(WIN32_FIND_DATAW, ftLastAccessTime, 12)
3743 TEST_FIELD_SIZE (WIN32_FIND_DATAW, ftLastWriteTime, 8)
3744 TEST_FIELD_ALIGN (WIN32_FIND_DATAW, ftLastWriteTime, 4)
3745 TEST_FIELD_OFFSET(WIN32_FIND_DATAW, ftLastWriteTime, 20)
3746 TEST_FIELD_SIZE (WIN32_FIND_DATAW, nFileSizeHigh, 4)
3747 TEST_FIELD_ALIGN (WIN32_FIND_DATAW, nFileSizeHigh, 4)
3748 TEST_FIELD_OFFSET(WIN32_FIND_DATAW, nFileSizeHigh, 28)
3749 TEST_FIELD_SIZE (WIN32_FIND_DATAW, nFileSizeLow, 4)
3750 TEST_FIELD_ALIGN (WIN32_FIND_DATAW, nFileSizeLow, 4)
3751 TEST_FIELD_OFFSET(WIN32_FIND_DATAW, nFileSizeLow, 32)
3752 TEST_FIELD_SIZE (WIN32_FIND_DATAW, dwReserved0, 4)
3753 TEST_FIELD_ALIGN (WIN32_FIND_DATAW, dwReserved0, 4)
3754 TEST_FIELD_OFFSET(WIN32_FIND_DATAW, dwReserved0, 36)
3755 TEST_FIELD_SIZE (WIN32_FIND_DATAW, dwReserved1, 4)
3756 TEST_FIELD_ALIGN (WIN32_FIND_DATAW, dwReserved1, 4)
3757 TEST_FIELD_OFFSET(WIN32_FIND_DATAW, dwReserved1, 40)
3758 TEST_FIELD_SIZE (WIN32_FIND_DATAW, cFileName, 520)
3759 TEST_FIELD_ALIGN (WIN32_FIND_DATAW, cFileName, 2)
3760 TEST_FIELD_OFFSET(WIN32_FIND_DATAW, cFileName, 44)
3761 TEST_FIELD_SIZE (WIN32_FIND_DATAW, cAlternateFileName, 28)
3762 TEST_FIELD_ALIGN (WIN32_FIND_DATAW, cAlternateFileName, 2)
3763 TEST_FIELD_OFFSET(WIN32_FIND_DATAW, cAlternateFileName, 564)
3764}
3765
3767{
3768 /* WIN32_STREAM_ID (pack 8) */
3771 TEST_FIELD_SIZE (WIN32_STREAM_ID, dwStreamId, 4)
3772 TEST_FIELD_ALIGN (WIN32_STREAM_ID, dwStreamId, 4)
3773 TEST_FIELD_OFFSET(WIN32_STREAM_ID, dwStreamId, 0)
3774 TEST_FIELD_SIZE (WIN32_STREAM_ID, dwStreamAttributes, 4)
3775 TEST_FIELD_ALIGN (WIN32_STREAM_ID, dwStreamAttributes, 4)
3776 TEST_FIELD_OFFSET(WIN32_STREAM_ID, dwStreamAttributes, 4)
3780 TEST_FIELD_SIZE (WIN32_STREAM_ID, dwStreamNameSize, 4)
3781 TEST_FIELD_ALIGN (WIN32_STREAM_ID, dwStreamNameSize, 4)
3782 TEST_FIELD_OFFSET(WIN32_STREAM_ID, dwStreamNameSize, 16)
3783 TEST_FIELD_SIZE (WIN32_STREAM_ID, cStreamName, 2)
3784 TEST_FIELD_ALIGN (WIN32_STREAM_ID, cStreamName, 2)
3785 TEST_FIELD_OFFSET(WIN32_STREAM_ID, cStreamName, 20)
3786}
3787
3788#endif /* _WIN64 */
3789
3790static void test_pack(void)
3791{
3807 test_pack_DCB();
3872