be68a0859368d00dfd41cfe4359baa345136b0e9
[reactos.git] / rostests / winetests / kernel32 / generated.c
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 WINVER 0x0501
9 #define _WIN32_IE 0x0501
10 #define _WIN32_WINNT 0x0501
11
12 #define WINE_NOWINSOCK
13
14 #include "windows.h"
15
16 #include "wine/test.h"
17
18 /***********************************************************************
19 * Compatibility macros
20 */
21
22 #define DWORD_PTR UINT_PTR
23 #define LONG_PTR INT_PTR
24 #define ULONG_PTR UINT_PTR
25
26 /***********************************************************************
27 * Windows API extension
28 */
29
30 #if defined(_MSC_VER) && (_MSC_VER >= 1300) && defined(__cplusplus)
31 # define _TYPE_ALIGNMENT(type) __alignof(type)
32 #elif defined(__GNUC__)
33 # define _TYPE_ALIGNMENT(type) __alignof__(type)
34 #else
35 /*
36 * FIXME: May not be possible without a compiler extension
37 * (if type is not just a name that is, otherwise the normal
38 * TYPE_ALIGNMENT can be used)
39 */
40 #endif
41
42 #if defined(TYPE_ALIGNMENT) && defined(_MSC_VER) && _MSC_VER >= 800 && !defined(__cplusplus)
43 #pragma warning(disable:4116)
44 #endif
45
46 #if !defined(TYPE_ALIGNMENT) && defined(_TYPE_ALIGNMENT)
47 # define TYPE_ALIGNMENT _TYPE_ALIGNMENT
48 #endif
49
50 /***********************************************************************
51 * Test helper macros
52 */
53
54 #ifdef _WIN64
55
56 # define TEST_TYPE_SIZE(type, size)
57 # define TEST_TYPE_ALIGN(type, align)
58 # define TEST_TARGET_ALIGN(type, align)
59 # define TEST_FIELD_ALIGN(type, field, align)
60 # define TEST_FIELD_OFFSET(type, field, offset)
61
62 #else
63
64 # define TEST_TYPE_SIZE(type, size) C_ASSERT(sizeof(type) == size);
65
66 # ifdef TYPE_ALIGNMENT
67 # define TEST_TYPE_ALIGN(type, align) C_ASSERT(TYPE_ALIGNMENT(type) == align);
68 # else
69 # define TEST_TYPE_ALIGN(type, align)
70 # endif
71
72 # ifdef _TYPE_ALIGNMENT
73 # define TEST_TARGET_ALIGN(type, align) C_ASSERT(_TYPE_ALIGNMENT(*(type)0) == align);
74 # define TEST_FIELD_ALIGN(type, field, align) C_ASSERT(_TYPE_ALIGNMENT(((type*)0)->field) == align);
75 # else
76 # define TEST_TARGET_ALIGN(type, align)
77 # define TEST_FIELD_ALIGN(type, field, align)
78 # endif
79
80 # define TEST_FIELD_OFFSET(type, field, offset) C_ASSERT(FIELD_OFFSET(type, field) == offset);
81
82 #endif
83
84 #define TEST_TARGET_SIZE(type, size) TEST_TYPE_SIZE(*(type)0, size)
85 #define TEST_FIELD_SIZE(type, field, size) TEST_TYPE_SIZE((((type*)0)->field), size)
86 #define TEST_TYPE_SIGNED(type) C_ASSERT((type) -1 < 0);
87 #define TEST_TYPE_UNSIGNED(type) C_ASSERT((type) -1 > 0);
88
89
90 static void test_pack_LPOSVERSIONINFOA(void)
91 {
92 /* LPOSVERSIONINFOA */
93 TEST_TYPE_SIZE (LPOSVERSIONINFOA, 4)
94 TEST_TYPE_ALIGN (LPOSVERSIONINFOA, 4)
95 TEST_TARGET_SIZE (LPOSVERSIONINFOA, 148)
96 TEST_TARGET_ALIGN(LPOSVERSIONINFOA, 4)
97 }
98
99 static void test_pack_LPOSVERSIONINFOEXA(void)
100 {
101 /* LPOSVERSIONINFOEXA */
102 TEST_TYPE_SIZE (LPOSVERSIONINFOEXA, 4)
103 TEST_TYPE_ALIGN (LPOSVERSIONINFOEXA, 4)
104 TEST_TARGET_SIZE (LPOSVERSIONINFOEXA, 156)
105 TEST_TARGET_ALIGN(LPOSVERSIONINFOEXA, 4)
106 }
107
108 static void test_pack_LPOSVERSIONINFOEXW(void)
109 {
110 /* LPOSVERSIONINFOEXW */
111 TEST_TYPE_SIZE (LPOSVERSIONINFOEXW, 4)
112 TEST_TYPE_ALIGN (LPOSVERSIONINFOEXW, 4)
113 TEST_TARGET_SIZE (LPOSVERSIONINFOEXW, 284)
114 TEST_TARGET_ALIGN(LPOSVERSIONINFOEXW, 4)
115 }
116
117 static void test_pack_LPOSVERSIONINFOW(void)
118 {
119 /* LPOSVERSIONINFOW */
120 TEST_TYPE_SIZE (LPOSVERSIONINFOW, 4)
121 TEST_TYPE_ALIGN (LPOSVERSIONINFOW, 4)
122 TEST_TARGET_SIZE (LPOSVERSIONINFOW, 276)
123 TEST_TARGET_ALIGN(LPOSVERSIONINFOW, 4)
124 }
125
126 static void test_pack_OSVERSIONINFOA(void)
127 {
128 /* OSVERSIONINFOA (pack 4) */
129 TEST_TYPE_SIZE (OSVERSIONINFOA, 148)
130 TEST_TYPE_ALIGN (OSVERSIONINFOA, 4)
131 TEST_FIELD_SIZE (OSVERSIONINFOA, dwOSVersionInfoSize, 4)
132 TEST_FIELD_ALIGN (OSVERSIONINFOA, dwOSVersionInfoSize, 4)
133 TEST_FIELD_OFFSET(OSVERSIONINFOA, dwOSVersionInfoSize, 0)
134 TEST_FIELD_SIZE (OSVERSIONINFOA, dwMajorVersion, 4)
135 TEST_FIELD_ALIGN (OSVERSIONINFOA, dwMajorVersion, 4)
136 TEST_FIELD_OFFSET(OSVERSIONINFOA, dwMajorVersion, 4)
137 TEST_FIELD_SIZE (OSVERSIONINFOA, dwMinorVersion, 4)
138 TEST_FIELD_ALIGN (OSVERSIONINFOA, dwMinorVersion, 4)
139 TEST_FIELD_OFFSET(OSVERSIONINFOA, dwMinorVersion, 8)
140 TEST_FIELD_SIZE (OSVERSIONINFOA, dwBuildNumber, 4)
141 TEST_FIELD_ALIGN (OSVERSIONINFOA, dwBuildNumber, 4)
142 TEST_FIELD_OFFSET(OSVERSIONINFOA, dwBuildNumber, 12)
143 TEST_FIELD_SIZE (OSVERSIONINFOA, dwPlatformId, 4)
144 TEST_FIELD_ALIGN (OSVERSIONINFOA, dwPlatformId, 4)
145 TEST_FIELD_OFFSET(OSVERSIONINFOA, dwPlatformId, 16)
146 TEST_FIELD_SIZE (OSVERSIONINFOA, szCSDVersion, 128)
147 TEST_FIELD_ALIGN (OSVERSIONINFOA, szCSDVersion, 1)
148 TEST_FIELD_OFFSET(OSVERSIONINFOA, szCSDVersion, 20)
149 }
150
151 static void test_pack_OSVERSIONINFOEXA(void)
152 {
153 /* OSVERSIONINFOEXA (pack 4) */
154 TEST_TYPE_SIZE (OSVERSIONINFOEXA, 156)
155 TEST_TYPE_ALIGN (OSVERSIONINFOEXA, 4)
156 TEST_FIELD_SIZE (OSVERSIONINFOEXA, dwOSVersionInfoSize, 4)
157 TEST_FIELD_ALIGN (OSVERSIONINFOEXA, dwOSVersionInfoSize, 4)
158 TEST_FIELD_OFFSET(OSVERSIONINFOEXA, dwOSVersionInfoSize, 0)
159 TEST_FIELD_SIZE (OSVERSIONINFOEXA, dwMajorVersion, 4)
160 TEST_FIELD_ALIGN (OSVERSIONINFOEXA, dwMajorVersion, 4)
161 TEST_FIELD_OFFSET(OSVERSIONINFOEXA, dwMajorVersion, 4)
162 TEST_FIELD_SIZE (OSVERSIONINFOEXA, dwMinorVersion, 4)
163 TEST_FIELD_ALIGN (OSVERSIONINFOEXA, dwMinorVersion, 4)
164 TEST_FIELD_OFFSET(OSVERSIONINFOEXA, dwMinorVersion, 8)
165 TEST_FIELD_SIZE (OSVERSIONINFOEXA, dwBuildNumber, 4)
166 TEST_FIELD_ALIGN (OSVERSIONINFOEXA, dwBuildNumber, 4)
167 TEST_FIELD_OFFSET(OSVERSIONINFOEXA, dwBuildNumber, 12)
168 TEST_FIELD_SIZE (OSVERSIONINFOEXA, dwPlatformId, 4)
169 TEST_FIELD_ALIGN (OSVERSIONINFOEXA, dwPlatformId, 4)
170 TEST_FIELD_OFFSET(OSVERSIONINFOEXA, dwPlatformId, 16)
171 TEST_FIELD_SIZE (OSVERSIONINFOEXA, szCSDVersion, 128)
172 TEST_FIELD_ALIGN (OSVERSIONINFOEXA, szCSDVersion, 1)
173 TEST_FIELD_OFFSET(OSVERSIONINFOEXA, szCSDVersion, 20)
174 TEST_FIELD_SIZE (OSVERSIONINFOEXA, wServicePackMajor, 2)
175 TEST_FIELD_ALIGN (OSVERSIONINFOEXA, wServicePackMajor, 2)
176 TEST_FIELD_OFFSET(OSVERSIONINFOEXA, wServicePackMajor, 148)
177 TEST_FIELD_SIZE (OSVERSIONINFOEXA, wServicePackMinor, 2)
178 TEST_FIELD_ALIGN (OSVERSIONINFOEXA, wServicePackMinor, 2)
179 TEST_FIELD_OFFSET(OSVERSIONINFOEXA, wServicePackMinor, 150)
180 TEST_FIELD_SIZE (OSVERSIONINFOEXA, wSuiteMask, 2)
181 TEST_FIELD_ALIGN (OSVERSIONINFOEXA, wSuiteMask, 2)
182 TEST_FIELD_OFFSET(OSVERSIONINFOEXA, wSuiteMask, 152)
183 TEST_FIELD_SIZE (OSVERSIONINFOEXA, wProductType, 1)
184 TEST_FIELD_ALIGN (OSVERSIONINFOEXA, wProductType, 1)
185 TEST_FIELD_OFFSET(OSVERSIONINFOEXA, wProductType, 154)
186 TEST_FIELD_SIZE (OSVERSIONINFOEXA, wReserved, 1)
187 TEST_FIELD_ALIGN (OSVERSIONINFOEXA, wReserved, 1)
188 TEST_FIELD_OFFSET(OSVERSIONINFOEXA, wReserved, 155)
189 }
190
191 static void test_pack_OSVERSIONINFOEXW(void)
192 {
193 /* OSVERSIONINFOEXW (pack 4) */
194 TEST_TYPE_SIZE (OSVERSIONINFOEXW, 284)
195 TEST_TYPE_ALIGN (OSVERSIONINFOEXW, 4)
196 TEST_FIELD_SIZE (OSVERSIONINFOEXW, dwOSVersionInfoSize, 4)
197 TEST_FIELD_ALIGN (OSVERSIONINFOEXW, dwOSVersionInfoSize, 4)
198 TEST_FIELD_OFFSET(OSVERSIONINFOEXW, dwOSVersionInfoSize, 0)
199 TEST_FIELD_SIZE (OSVERSIONINFOEXW, dwMajorVersion, 4)
200 TEST_FIELD_ALIGN (OSVERSIONINFOEXW, dwMajorVersion, 4)
201 TEST_FIELD_OFFSET(OSVERSIONINFOEXW, dwMajorVersion, 4)
202 TEST_FIELD_SIZE (OSVERSIONINFOEXW, dwMinorVersion, 4)
203 TEST_FIELD_ALIGN (OSVERSIONINFOEXW, dwMinorVersion, 4)
204 TEST_FIELD_OFFSET(OSVERSIONINFOEXW, dwMinorVersion, 8)
205 TEST_FIELD_SIZE (OSVERSIONINFOEXW, dwBuildNumber, 4)
206 TEST_FIELD_ALIGN (OSVERSIONINFOEXW, dwBuildNumber, 4)
207 TEST_FIELD_OFFSET(OSVERSIONINFOEXW, dwBuildNumber, 12)
208 TEST_FIELD_SIZE (OSVERSIONINFOEXW, dwPlatformId, 4)
209 TEST_FIELD_ALIGN (OSVERSIONINFOEXW, dwPlatformId, 4)
210 TEST_FIELD_OFFSET(OSVERSIONINFOEXW, dwPlatformId, 16)
211 TEST_FIELD_SIZE (OSVERSIONINFOEXW, szCSDVersion, 256)
212 TEST_FIELD_ALIGN (OSVERSIONINFOEXW, szCSDVersion, 2)
213 TEST_FIELD_OFFSET(OSVERSIONINFOEXW, szCSDVersion, 20)
214 TEST_FIELD_SIZE (OSVERSIONINFOEXW, wServicePackMajor, 2)
215 TEST_FIELD_ALIGN (OSVERSIONINFOEXW, wServicePackMajor, 2)
216 TEST_FIELD_OFFSET(OSVERSIONINFOEXW, wServicePackMajor, 276)
217 TEST_FIELD_SIZE (OSVERSIONINFOEXW, wServicePackMinor, 2)
218 TEST_FIELD_ALIGN (OSVERSIONINFOEXW, wServicePackMinor, 2)
219 TEST_FIELD_OFFSET(OSVERSIONINFOEXW, wServicePackMinor, 278)
220 TEST_FIELD_SIZE (OSVERSIONINFOEXW, wSuiteMask, 2)
221 TEST_FIELD_ALIGN (OSVERSIONINFOEXW, wSuiteMask, 2)
222 TEST_FIELD_OFFSET(OSVERSIONINFOEXW, wSuiteMask, 280)
223 TEST_FIELD_SIZE (OSVERSIONINFOEXW, wProductType, 1)
224 TEST_FIELD_ALIGN (OSVERSIONINFOEXW, wProductType, 1)
225 TEST_FIELD_OFFSET(OSVERSIONINFOEXW, wProductType, 282)
226 TEST_FIELD_SIZE (OSVERSIONINFOEXW, wReserved, 1)
227 TEST_FIELD_ALIGN (OSVERSIONINFOEXW, wReserved, 1)
228 TEST_FIELD_OFFSET(OSVERSIONINFOEXW, wReserved, 283)
229 }
230
231 static void test_pack_OSVERSIONINFOW(void)
232 {
233 /* OSVERSIONINFOW (pack 4) */
234 TEST_TYPE_SIZE (OSVERSIONINFOW, 276)
235 TEST_TYPE_ALIGN (OSVERSIONINFOW, 4)
236 TEST_FIELD_SIZE (OSVERSIONINFOW, dwOSVersionInfoSize, 4)
237 TEST_FIELD_ALIGN (OSVERSIONINFOW, dwOSVersionInfoSize, 4)
238 TEST_FIELD_OFFSET(OSVERSIONINFOW, dwOSVersionInfoSize, 0)
239 TEST_FIELD_SIZE (OSVERSIONINFOW, dwMajorVersion, 4)
240 TEST_FIELD_ALIGN (OSVERSIONINFOW, dwMajorVersion, 4)
241 TEST_FIELD_OFFSET(OSVERSIONINFOW, dwMajorVersion, 4)
242 TEST_FIELD_SIZE (OSVERSIONINFOW, dwMinorVersion, 4)
243 TEST_FIELD_ALIGN (OSVERSIONINFOW, dwMinorVersion, 4)
244 TEST_FIELD_OFFSET(OSVERSIONINFOW, dwMinorVersion, 8)
245 TEST_FIELD_SIZE (OSVERSIONINFOW, dwBuildNumber, 4)
246 TEST_FIELD_ALIGN (OSVERSIONINFOW, dwBuildNumber, 4)
247 TEST_FIELD_OFFSET(OSVERSIONINFOW, dwBuildNumber, 12)
248 TEST_FIELD_SIZE (OSVERSIONINFOW, dwPlatformId, 4)
249 TEST_FIELD_ALIGN (OSVERSIONINFOW, dwPlatformId, 4)
250 TEST_FIELD_OFFSET(OSVERSIONINFOW, dwPlatformId, 16)
251 TEST_FIELD_SIZE (OSVERSIONINFOW, szCSDVersion, 256)
252 TEST_FIELD_ALIGN (OSVERSIONINFOW, szCSDVersion, 2)
253 TEST_FIELD_OFFSET(OSVERSIONINFOW, szCSDVersion, 20)
254 }
255
256 static void test_pack_POSVERSIONINFOA(void)
257 {
258 /* POSVERSIONINFOA */
259 TEST_TYPE_SIZE (POSVERSIONINFOA, 4)
260 TEST_TYPE_ALIGN (POSVERSIONINFOA, 4)
261 TEST_TARGET_SIZE (POSVERSIONINFOA, 148)
262 TEST_TARGET_ALIGN(POSVERSIONINFOA, 4)
263 }
264
265 static void test_pack_POSVERSIONINFOEXA(void)
266 {
267 /* POSVERSIONINFOEXA */
268 TEST_TYPE_SIZE (POSVERSIONINFOEXA, 4)
269 TEST_TYPE_ALIGN (POSVERSIONINFOEXA, 4)
270 TEST_TARGET_SIZE (POSVERSIONINFOEXA, 156)
271 TEST_TARGET_ALIGN(POSVERSIONINFOEXA, 4)
272 }
273
274 static void test_pack_POSVERSIONINFOEXW(void)
275 {
276 /* POSVERSIONINFOEXW */
277 TEST_TYPE_SIZE (POSVERSIONINFOEXW, 4)
278 TEST_TYPE_ALIGN (POSVERSIONINFOEXW, 4)
279 TEST_TARGET_SIZE (POSVERSIONINFOEXW, 284)
280 TEST_TARGET_ALIGN(POSVERSIONINFOEXW, 4)
281 }
282
283 static void test_pack_POSVERSIONINFOW(void)
284 {
285 /* POSVERSIONINFOW */
286 TEST_TYPE_SIZE (POSVERSIONINFOW, 4)
287 TEST_TYPE_ALIGN (POSVERSIONINFOW, 4)
288 TEST_TARGET_SIZE (POSVERSIONINFOW, 276)
289 TEST_TARGET_ALIGN(POSVERSIONINFOW, 4)
290 }
291
292 static void test_pack_LPLONG(void)
293 {
294 /* LPLONG */
295 TEST_TYPE_SIZE (LPLONG, 4)
296 TEST_TYPE_ALIGN (LPLONG, 4)
297 }
298
299 static void test_pack_LPVOID(void)
300 {
301 /* LPVOID */
302 TEST_TYPE_SIZE (LPVOID, 4)
303 TEST_TYPE_ALIGN (LPVOID, 4)
304 }
305
306 static void test_pack_PHKEY(void)
307 {
308 /* PHKEY */
309 TEST_TYPE_SIZE (PHKEY, 4)
310 TEST_TYPE_ALIGN (PHKEY, 4)
311 }
312
313 static void test_pack_ACTCTXA(void)
314 {
315 /* ACTCTXA (pack 4) */
316 TEST_TYPE_SIZE (ACTCTXA, 32)
317 TEST_TYPE_ALIGN (ACTCTXA, 4)
318 TEST_FIELD_SIZE (ACTCTXA, cbSize, 4)
319 TEST_FIELD_ALIGN (ACTCTXA, cbSize, 4)
320 TEST_FIELD_OFFSET(ACTCTXA, cbSize, 0)
321 TEST_FIELD_SIZE (ACTCTXA, dwFlags, 4)
322 TEST_FIELD_ALIGN (ACTCTXA, dwFlags, 4)
323 TEST_FIELD_OFFSET(ACTCTXA, dwFlags, 4)
324 TEST_FIELD_SIZE (ACTCTXA, lpSource, 4)
325 TEST_FIELD_ALIGN (ACTCTXA, lpSource, 4)
326 TEST_FIELD_OFFSET(ACTCTXA, lpSource, 8)
327 TEST_FIELD_SIZE (ACTCTXA, wProcessorArchitecture, 2)
328 TEST_FIELD_ALIGN (ACTCTXA, wProcessorArchitecture, 2)
329 TEST_FIELD_OFFSET(ACTCTXA, wProcessorArchitecture, 12)
330 TEST_FIELD_SIZE (ACTCTXA, wLangId, 2)
331 TEST_FIELD_ALIGN (ACTCTXA, wLangId, 2)
332 TEST_FIELD_OFFSET(ACTCTXA, wLangId, 14)
333 TEST_FIELD_SIZE (ACTCTXA, lpAssemblyDirectory, 4)
334 TEST_FIELD_ALIGN (ACTCTXA, lpAssemblyDirectory, 4)
335 TEST_FIELD_OFFSET(ACTCTXA, lpAssemblyDirectory, 16)
336 TEST_FIELD_SIZE (ACTCTXA, lpResourceName, 4)
337 TEST_FIELD_ALIGN (ACTCTXA, lpResourceName, 4)
338 TEST_FIELD_OFFSET(ACTCTXA, lpResourceName, 20)
339 TEST_FIELD_SIZE (ACTCTXA, lpApplicationName, 4)
340 TEST_FIELD_ALIGN (ACTCTXA, lpApplicationName, 4)
341 TEST_FIELD_OFFSET(ACTCTXA, lpApplicationName, 24)
342 TEST_FIELD_SIZE (ACTCTXA, hModule, 4)
343 TEST_FIELD_ALIGN (ACTCTXA, hModule, 4)
344 TEST_FIELD_OFFSET(ACTCTXA, hModule, 28)
345 }
346
347 static void test_pack_ACTCTXW(void)
348 {
349 /* ACTCTXW (pack 4) */
350 TEST_TYPE_SIZE (ACTCTXW, 32)
351 TEST_TYPE_ALIGN (ACTCTXW, 4)
352 TEST_FIELD_SIZE (ACTCTXW, cbSize, 4)
353 TEST_FIELD_ALIGN (ACTCTXW, cbSize, 4)
354 TEST_FIELD_OFFSET(ACTCTXW, cbSize, 0)
355 TEST_FIELD_SIZE (ACTCTXW, dwFlags, 4)
356 TEST_FIELD_ALIGN (ACTCTXW, dwFlags, 4)
357 TEST_FIELD_OFFSET(ACTCTXW, dwFlags, 4)
358 TEST_FIELD_SIZE (ACTCTXW, lpSource, 4)
359 TEST_FIELD_ALIGN (ACTCTXW, lpSource, 4)
360 TEST_FIELD_OFFSET(ACTCTXW, lpSource, 8)
361 TEST_FIELD_SIZE (ACTCTXW, wProcessorArchitecture, 2)
362 TEST_FIELD_ALIGN (ACTCTXW, wProcessorArchitecture, 2)
363 TEST_FIELD_OFFSET(ACTCTXW, wProcessorArchitecture, 12)
364 TEST_FIELD_SIZE (ACTCTXW, wLangId, 2)
365 TEST_FIELD_ALIGN (ACTCTXW, wLangId, 2)
366 TEST_FIELD_OFFSET(ACTCTXW, wLangId, 14)
367 TEST_FIELD_SIZE (ACTCTXW, lpAssemblyDirectory, 4)
368 TEST_FIELD_ALIGN (ACTCTXW, lpAssemblyDirectory, 4)
369 TEST_FIELD_OFFSET(ACTCTXW, lpAssemblyDirectory, 16)
370 TEST_FIELD_SIZE (ACTCTXW, lpResourceName, 4)
371 TEST_FIELD_ALIGN (ACTCTXW, lpResourceName, 4)
372 TEST_FIELD_OFFSET(ACTCTXW, lpResourceName, 20)
373 TEST_FIELD_SIZE (ACTCTXW, lpApplicationName, 4)
374 TEST_FIELD_ALIGN (ACTCTXW, lpApplicationName, 4)
375 TEST_FIELD_OFFSET(ACTCTXW, lpApplicationName, 24)
376 TEST_FIELD_SIZE (ACTCTXW, hModule, 4)
377 TEST_FIELD_ALIGN (ACTCTXW, hModule, 4)
378 TEST_FIELD_OFFSET(ACTCTXW, hModule, 28)
379 }
380
381 static void test_pack_ACTCTX_SECTION_KEYED_DATA(void)
382 {
383 /* ACTCTX_SECTION_KEYED_DATA (pack 4) */
384 TEST_TYPE_SIZE (ACTCTX_SECTION_KEYED_DATA, 64)
385 TEST_TYPE_ALIGN (ACTCTX_SECTION_KEYED_DATA, 4)
386 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA, cbSize, 4)
387 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA, cbSize, 4)
388 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA, cbSize, 0)
389 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA, ulDataFormatVersion, 4)
390 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA, ulDataFormatVersion, 4)
391 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA, ulDataFormatVersion, 4)
392 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA, lpData, 4)
393 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA, lpData, 4)
394 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA, lpData, 8)
395 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA, ulLength, 4)
396 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA, ulLength, 4)
397 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA, ulLength, 12)
398 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA, lpSectionGlobalData, 4)
399 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA, lpSectionGlobalData, 4)
400 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA, lpSectionGlobalData, 16)
401 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA, ulSectionGlobalDataLength, 4)
402 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA, ulSectionGlobalDataLength, 4)
403 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA, ulSectionGlobalDataLength, 20)
404 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA, lpSectionBase, 4)
405 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA, lpSectionBase, 4)
406 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA, lpSectionBase, 24)
407 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA, ulSectionTotalLength, 4)
408 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA, ulSectionTotalLength, 4)
409 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA, ulSectionTotalLength, 28)
410 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA, hActCtx, 4)
411 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA, hActCtx, 4)
412 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA, hActCtx, 32)
413 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA, ulAssemblyRosterIndex, 4)
414 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA, ulAssemblyRosterIndex, 4)
415 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA, ulAssemblyRosterIndex, 36)
416 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA, ulFlags, 4)
417 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA, ulFlags, 4)
418 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA, ulFlags, 40)
419 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA, AssemblyMetadata, 20)
420 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA, AssemblyMetadata, 4)
421 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA, AssemblyMetadata, 44)
422 }
423
424 static void test_pack_ACTCTX_SECTION_KEYED_DATA_2600(void)
425 {
426 /* ACTCTX_SECTION_KEYED_DATA_2600 (pack 4) */
427 TEST_TYPE_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, 40)
428 TEST_TYPE_ALIGN (ACTCTX_SECTION_KEYED_DATA_2600, 4)
429 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, cbSize, 4)
430 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_2600, cbSize, 4)
431 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_2600, cbSize, 0)
432 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, ulDataFormatVersion, 4)
433 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_2600, ulDataFormatVersion, 4)
434 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_2600, ulDataFormatVersion, 4)
435 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, lpData, 4)
436 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_2600, lpData, 4)
437 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_2600, lpData, 8)
438 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, ulLength, 4)
439 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_2600, ulLength, 4)
440 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_2600, ulLength, 12)
441 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, lpSectionGlobalData, 4)
442 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_2600, lpSectionGlobalData, 4)
443 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_2600, lpSectionGlobalData, 16)
444 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, ulSectionGlobalDataLength, 4)
445 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_2600, ulSectionGlobalDataLength, 4)
446 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_2600, ulSectionGlobalDataLength, 20)
447 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, lpSectionBase, 4)
448 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_2600, lpSectionBase, 4)
449 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_2600, lpSectionBase, 24)
450 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, ulSectionTotalLength, 4)
451 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_2600, ulSectionTotalLength, 4)
452 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_2600, ulSectionTotalLength, 28)
453 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, hActCtx, 4)
454 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_2600, hActCtx, 4)
455 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_2600, hActCtx, 32)
456 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, ulAssemblyRosterIndex, 4)
457 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_2600, ulAssemblyRosterIndex, 4)
458 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_2600, ulAssemblyRosterIndex, 36)
459 }
460
461 static void test_pack_ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA(void)
462 {
463 /* ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA (pack 4) */
464 TEST_TYPE_SIZE (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, 20)
465 TEST_TYPE_ALIGN (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, 4)
466 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, lpInformation, 4)
467 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, lpInformation, 4)
468 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, lpInformation, 0)
469 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, lpSectionBase, 4)
470 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, lpSectionBase, 4)
471 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, lpSectionBase, 4)
472 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, ulSectionLength, 4)
473 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, ulSectionLength, 4)
474 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, ulSectionLength, 8)
475 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, lpSectionGlobalDataBase, 4)
476 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, lpSectionGlobalDataBase, 4)
477 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, lpSectionGlobalDataBase, 12)
478 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, ulSectionGlobalDataLength, 4)
479 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, ulSectionGlobalDataLength, 4)
480 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, ulSectionGlobalDataLength, 16)
481 }
482
483 static void test_pack_ACTIVATION_CONTEXT_BASIC_INFORMATION(void)
484 {
485 /* ACTIVATION_CONTEXT_BASIC_INFORMATION (pack 4) */
486 TEST_TYPE_SIZE (ACTIVATION_CONTEXT_BASIC_INFORMATION, 8)
487 TEST_TYPE_ALIGN (ACTIVATION_CONTEXT_BASIC_INFORMATION, 4)
488 TEST_FIELD_SIZE (ACTIVATION_CONTEXT_BASIC_INFORMATION, hActCtx, 4)
489 TEST_FIELD_ALIGN (ACTIVATION_CONTEXT_BASIC_INFORMATION, hActCtx, 4)
490 TEST_FIELD_OFFSET(ACTIVATION_CONTEXT_BASIC_INFORMATION, hActCtx, 0)
491 TEST_FIELD_SIZE (ACTIVATION_CONTEXT_BASIC_INFORMATION, dwFlags, 4)
492 TEST_FIELD_ALIGN (ACTIVATION_CONTEXT_BASIC_INFORMATION, dwFlags, 4)
493 TEST_FIELD_OFFSET(ACTIVATION_CONTEXT_BASIC_INFORMATION, dwFlags, 4)
494 }
495
496 static void test_pack_BY_HANDLE_FILE_INFORMATION(void)
497 {
498 /* BY_HANDLE_FILE_INFORMATION (pack 4) */
499 TEST_TYPE_SIZE (BY_HANDLE_FILE_INFORMATION, 52)
500 TEST_TYPE_ALIGN (BY_HANDLE_FILE_INFORMATION, 4)
501 TEST_FIELD_SIZE (BY_HANDLE_FILE_INFORMATION, dwFileAttributes, 4)
502 TEST_FIELD_ALIGN (BY_HANDLE_FILE_INFORMATION, dwFileAttributes, 4)
503 TEST_FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, dwFileAttributes, 0)
504 TEST_FIELD_SIZE (BY_HANDLE_FILE_INFORMATION, ftCreationTime, 8)
505 TEST_FIELD_ALIGN (BY_HANDLE_FILE_INFORMATION, ftCreationTime, 4)
506 TEST_FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, ftCreationTime, 4)
507 TEST_FIELD_SIZE (BY_HANDLE_FILE_INFORMATION, ftLastAccessTime, 8)
508 TEST_FIELD_ALIGN (BY_HANDLE_FILE_INFORMATION, ftLastAccessTime, 4)
509 TEST_FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, ftLastAccessTime, 12)
510 TEST_FIELD_SIZE (BY_HANDLE_FILE_INFORMATION, ftLastWriteTime, 8)
511 TEST_FIELD_ALIGN (BY_HANDLE_FILE_INFORMATION, ftLastWriteTime, 4)
512 TEST_FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, ftLastWriteTime, 20)
513 TEST_FIELD_SIZE (BY_HANDLE_FILE_INFORMATION, dwVolumeSerialNumber, 4)
514 TEST_FIELD_ALIGN (BY_HANDLE_FILE_INFORMATION, dwVolumeSerialNumber, 4)
515 TEST_FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, dwVolumeSerialNumber, 28)
516 TEST_FIELD_SIZE (BY_HANDLE_FILE_INFORMATION, nFileSizeHigh, 4)
517 TEST_FIELD_ALIGN (BY_HANDLE_FILE_INFORMATION, nFileSizeHigh, 4)
518 TEST_FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, nFileSizeHigh, 32)
519 TEST_FIELD_SIZE (BY_HANDLE_FILE_INFORMATION, nFileSizeLow, 4)
520 TEST_FIELD_ALIGN (BY_HANDLE_FILE_INFORMATION, nFileSizeLow, 4)
521 TEST_FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, nFileSizeLow, 36)
522 TEST_FIELD_SIZE (BY_HANDLE_FILE_INFORMATION, nNumberOfLinks, 4)
523 TEST_FIELD_ALIGN (BY_HANDLE_FILE_INFORMATION, nNumberOfLinks, 4)
524 TEST_FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, nNumberOfLinks, 40)
525 TEST_FIELD_SIZE (BY_HANDLE_FILE_INFORMATION, nFileIndexHigh, 4)
526 TEST_FIELD_ALIGN (BY_HANDLE_FILE_INFORMATION, nFileIndexHigh, 4)
527 TEST_FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, nFileIndexHigh, 44)
528 TEST_FIELD_SIZE (BY_HANDLE_FILE_INFORMATION, nFileIndexLow, 4)
529 TEST_FIELD_ALIGN (BY_HANDLE_FILE_INFORMATION, nFileIndexLow, 4)
530 TEST_FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, nFileIndexLow, 48)
531 }
532
533 static void test_pack_COMMCONFIG(void)
534 {
535 /* COMMCONFIG (pack 4) */
536 TEST_TYPE_SIZE (COMMCONFIG, 52)
537 TEST_TYPE_ALIGN (COMMCONFIG, 4)
538 TEST_FIELD_SIZE (COMMCONFIG, dwSize, 4)
539 TEST_FIELD_ALIGN (COMMCONFIG, dwSize, 4)
540 TEST_FIELD_OFFSET(COMMCONFIG, dwSize, 0)
541 TEST_FIELD_SIZE (COMMCONFIG, wVersion, 2)
542 TEST_FIELD_ALIGN (COMMCONFIG, wVersion, 2)
543 TEST_FIELD_OFFSET(COMMCONFIG, wVersion, 4)
544 TEST_FIELD_SIZE (COMMCONFIG, wReserved, 2)
545 TEST_FIELD_ALIGN (COMMCONFIG, wReserved, 2)
546 TEST_FIELD_OFFSET(COMMCONFIG, wReserved, 6)
547 TEST_FIELD_SIZE (COMMCONFIG, dcb, 28)
548 TEST_FIELD_ALIGN (COMMCONFIG, dcb, 4)
549 TEST_FIELD_OFFSET(COMMCONFIG, dcb, 8)
550 TEST_FIELD_SIZE (COMMCONFIG, dwProviderSubType, 4)
551 TEST_FIELD_ALIGN (COMMCONFIG, dwProviderSubType, 4)
552 TEST_FIELD_OFFSET(COMMCONFIG, dwProviderSubType, 36)
553 TEST_FIELD_SIZE (COMMCONFIG, dwProviderOffset, 4)
554 TEST_FIELD_ALIGN (COMMCONFIG, dwProviderOffset, 4)
555 TEST_FIELD_OFFSET(COMMCONFIG, dwProviderOffset, 40)
556 TEST_FIELD_SIZE (COMMCONFIG, dwProviderSize, 4)
557 TEST_FIELD_ALIGN (COMMCONFIG, dwProviderSize, 4)
558 TEST_FIELD_OFFSET(COMMCONFIG, dwProviderSize, 44)
559 TEST_FIELD_SIZE (COMMCONFIG, wcProviderData, 4)
560 TEST_FIELD_ALIGN (COMMCONFIG, wcProviderData, 4)
561 TEST_FIELD_OFFSET(COMMCONFIG, wcProviderData, 48)
562 }
563
564 static void test_pack_COMMPROP(void)
565 {
566 /* COMMPROP (pack 4) */
567 TEST_TYPE_SIZE (COMMPROP, 64)
568 TEST_TYPE_ALIGN (COMMPROP, 4)
569 TEST_FIELD_SIZE (COMMPROP, wPacketLength, 2)
570 TEST_FIELD_ALIGN (COMMPROP, wPacketLength, 2)
571 TEST_FIELD_OFFSET(COMMPROP, wPacketLength, 0)
572 TEST_FIELD_SIZE (COMMPROP, wPacketVersion, 2)
573 TEST_FIELD_ALIGN (COMMPROP, wPacketVersion, 2)
574 TEST_FIELD_OFFSET(COMMPROP, wPacketVersion, 2)
575 TEST_FIELD_SIZE (COMMPROP, dwServiceMask, 4)
576 TEST_FIELD_ALIGN (COMMPROP, dwServiceMask, 4)
577 TEST_FIELD_OFFSET(COMMPROP, dwServiceMask, 4)
578 TEST_FIELD_SIZE (COMMPROP, dwReserved1, 4)
579 TEST_FIELD_ALIGN (COMMPROP, dwReserved1, 4)
580 TEST_FIELD_OFFSET(COMMPROP, dwReserved1, 8)
581 TEST_FIELD_SIZE (COMMPROP, dwMaxTxQueue, 4)
582 TEST_FIELD_ALIGN (COMMPROP, dwMaxTxQueue, 4)
583 TEST_FIELD_OFFSET(COMMPROP, dwMaxTxQueue, 12)
584 TEST_FIELD_SIZE (COMMPROP, dwMaxRxQueue, 4)
585 TEST_FIELD_ALIGN (COMMPROP, dwMaxRxQueue, 4)
586 TEST_FIELD_OFFSET(COMMPROP, dwMaxRxQueue, 16)
587 TEST_FIELD_SIZE (COMMPROP, dwMaxBaud, 4)
588 TEST_FIELD_ALIGN (COMMPROP, dwMaxBaud, 4)
589 TEST_FIELD_OFFSET(COMMPROP, dwMaxBaud, 20)
590 TEST_FIELD_SIZE (COMMPROP, dwProvSubType, 4)
591 TEST_FIELD_ALIGN (COMMPROP, dwProvSubType, 4)
592 TEST_FIELD_OFFSET(COMMPROP, dwProvSubType, 24)
593 TEST_FIELD_SIZE (COMMPROP, dwProvCapabilities, 4)
594 TEST_FIELD_ALIGN (COMMPROP, dwProvCapabilities, 4)
595 TEST_FIELD_OFFSET(COMMPROP, dwProvCapabilities, 28)
596 TEST_FIELD_SIZE (COMMPROP, dwSettableParams, 4)
597 TEST_FIELD_ALIGN (COMMPROP, dwSettableParams, 4)
598 TEST_FIELD_OFFSET(COMMPROP, dwSettableParams, 32)
599 TEST_FIELD_SIZE (COMMPROP, dwSettableBaud, 4)
600 TEST_FIELD_ALIGN (COMMPROP, dwSettableBaud, 4)
601 TEST_FIELD_OFFSET(COMMPROP, dwSettableBaud, 36)
602 TEST_FIELD_SIZE (COMMPROP, wSettableData, 2)
603 TEST_FIELD_ALIGN (COMMPROP, wSettableData, 2)
604 TEST_FIELD_OFFSET(COMMPROP, wSettableData, 40)
605 TEST_FIELD_SIZE (COMMPROP, wSettableStopParity, 2)
606 TEST_FIELD_ALIGN (COMMPROP, wSettableStopParity, 2)
607 TEST_FIELD_OFFSET(COMMPROP, wSettableStopParity, 42)
608 TEST_FIELD_SIZE (COMMPROP, dwCurrentTxQueue, 4)
609 TEST_FIELD_ALIGN (COMMPROP, dwCurrentTxQueue, 4)
610 TEST_FIELD_OFFSET(COMMPROP, dwCurrentTxQueue, 44)
611 TEST_FIELD_SIZE (COMMPROP, dwCurrentRxQueue, 4)
612 TEST_FIELD_ALIGN (COMMPROP, dwCurrentRxQueue, 4)
613 TEST_FIELD_OFFSET(COMMPROP, dwCurrentRxQueue, 48)
614 TEST_FIELD_SIZE (COMMPROP, dwProvSpec1, 4)
615 TEST_FIELD_ALIGN (COMMPROP, dwProvSpec1, 4)
616 TEST_FIELD_OFFSET(COMMPROP, dwProvSpec1, 52)
617 TEST_FIELD_SIZE (COMMPROP, dwProvSpec2, 4)
618 TEST_FIELD_ALIGN (COMMPROP, dwProvSpec2, 4)
619 TEST_FIELD_OFFSET(COMMPROP, dwProvSpec2, 56)
620 TEST_FIELD_SIZE (COMMPROP, wcProvChar, 2)
621 TEST_FIELD_ALIGN (COMMPROP, wcProvChar, 2)
622 TEST_FIELD_OFFSET(COMMPROP, wcProvChar, 60)
623 }
624
625 static void test_pack_COMMTIMEOUTS(void)
626 {
627 /* COMMTIMEOUTS (pack 4) */
628 TEST_TYPE_SIZE (COMMTIMEOUTS, 20)
629 TEST_TYPE_ALIGN (COMMTIMEOUTS, 4)
630 TEST_FIELD_SIZE (COMMTIMEOUTS, ReadIntervalTimeout, 4)
631 TEST_FIELD_ALIGN (COMMTIMEOUTS, ReadIntervalTimeout, 4)
632 TEST_FIELD_OFFSET(COMMTIMEOUTS, ReadIntervalTimeout, 0)
633 TEST_FIELD_SIZE (COMMTIMEOUTS, ReadTotalTimeoutMultiplier, 4)
634 TEST_FIELD_ALIGN (COMMTIMEOUTS, ReadTotalTimeoutMultiplier, 4)
635 TEST_FIELD_OFFSET(COMMTIMEOUTS, ReadTotalTimeoutMultiplier, 4)
636 TEST_FIELD_SIZE (COMMTIMEOUTS, ReadTotalTimeoutConstant, 4)
637 TEST_FIELD_ALIGN (COMMTIMEOUTS, ReadTotalTimeoutConstant, 4)
638 TEST_FIELD_OFFSET(COMMTIMEOUTS, ReadTotalTimeoutConstant, 8)
639 TEST_FIELD_SIZE (COMMTIMEOUTS, WriteTotalTimeoutMultiplier, 4)
640 TEST_FIELD_ALIGN (COMMTIMEOUTS, WriteTotalTimeoutMultiplier, 4)
641 TEST_FIELD_OFFSET(COMMTIMEOUTS, WriteTotalTimeoutMultiplier, 12)
642 TEST_FIELD_SIZE (COMMTIMEOUTS, WriteTotalTimeoutConstant, 4)
643 TEST_FIELD_ALIGN (COMMTIMEOUTS, WriteTotalTimeoutConstant, 4)
644 TEST_FIELD_OFFSET(COMMTIMEOUTS, WriteTotalTimeoutConstant, 16)
645 }
646
647 static void test_pack_COMSTAT(void)
648 {
649 /* COMSTAT (pack 4) */
650 TEST_TYPE_SIZE (COMSTAT, 12)
651 TEST_TYPE_ALIGN (COMSTAT, 4)
652 TEST_FIELD_SIZE (COMSTAT, cbInQue, 4)
653 TEST_FIELD_ALIGN (COMSTAT, cbInQue, 4)
654 TEST_FIELD_OFFSET(COMSTAT, cbInQue, 4)
655 TEST_FIELD_SIZE (COMSTAT, cbOutQue, 4)
656 TEST_FIELD_ALIGN (COMSTAT, cbOutQue, 4)
657 TEST_FIELD_OFFSET(COMSTAT, cbOutQue, 8)
658 }
659
660 static void test_pack_CREATE_PROCESS_DEBUG_INFO(void)
661 {
662 /* CREATE_PROCESS_DEBUG_INFO (pack 4) */
663 TEST_TYPE_SIZE (CREATE_PROCESS_DEBUG_INFO, 40)
664 TEST_TYPE_ALIGN (CREATE_PROCESS_DEBUG_INFO, 4)
665 TEST_FIELD_SIZE (CREATE_PROCESS_DEBUG_INFO, hFile, 4)
666 TEST_FIELD_ALIGN (CREATE_PROCESS_DEBUG_INFO, hFile, 4)
667 TEST_FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, hFile, 0)
668 TEST_FIELD_SIZE (CREATE_PROCESS_DEBUG_INFO, hProcess, 4)
669 TEST_FIELD_ALIGN (CREATE_PROCESS_DEBUG_INFO, hProcess, 4)
670 TEST_FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, hProcess, 4)
671 TEST_FIELD_SIZE (CREATE_PROCESS_DEBUG_INFO, hThread, 4)
672 TEST_FIELD_ALIGN (CREATE_PROCESS_DEBUG_INFO, hThread, 4)
673 TEST_FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, hThread, 8)
674 TEST_FIELD_SIZE (CREATE_PROCESS_DEBUG_INFO, lpBaseOfImage, 4)
675 TEST_FIELD_ALIGN (CREATE_PROCESS_DEBUG_INFO, lpBaseOfImage, 4)
676 TEST_FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, lpBaseOfImage, 12)
677 TEST_FIELD_SIZE (CREATE_PROCESS_DEBUG_INFO, dwDebugInfoFileOffset, 4)
678 TEST_FIELD_ALIGN (CREATE_PROCESS_DEBUG_INFO, dwDebugInfoFileOffset, 4)
679 TEST_FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, dwDebugInfoFileOffset, 16)
680 TEST_FIELD_SIZE (CREATE_PROCESS_DEBUG_INFO, nDebugInfoSize, 4)
681 TEST_FIELD_ALIGN (CREATE_PROCESS_DEBUG_INFO, nDebugInfoSize, 4)
682 TEST_FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, nDebugInfoSize, 20)
683 TEST_FIELD_SIZE (CREATE_PROCESS_DEBUG_INFO, lpThreadLocalBase, 4)
684 TEST_FIELD_ALIGN (CREATE_PROCESS_DEBUG_INFO, lpThreadLocalBase, 4)
685 TEST_FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, lpThreadLocalBase, 24)
686 TEST_FIELD_SIZE (CREATE_PROCESS_DEBUG_INFO, lpStartAddress, 4)
687 TEST_FIELD_ALIGN (CREATE_PROCESS_DEBUG_INFO, lpStartAddress, 4)
688 TEST_FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, lpStartAddress, 28)
689 TEST_FIELD_SIZE (CREATE_PROCESS_DEBUG_INFO, lpImageName, 4)
690 TEST_FIELD_ALIGN (CREATE_PROCESS_DEBUG_INFO, lpImageName, 4)
691 TEST_FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, lpImageName, 32)
692 TEST_FIELD_SIZE (CREATE_PROCESS_DEBUG_INFO, fUnicode, 2)
693 TEST_FIELD_ALIGN (CREATE_PROCESS_DEBUG_INFO, fUnicode, 2)
694 TEST_FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, fUnicode, 36)
695 }
696
697 static void test_pack_CREATE_THREAD_DEBUG_INFO(void)
698 {
699 /* CREATE_THREAD_DEBUG_INFO (pack 4) */
700 TEST_TYPE_SIZE (CREATE_THREAD_DEBUG_INFO, 12)
701 TEST_TYPE_ALIGN (CREATE_THREAD_DEBUG_INFO, 4)
702 TEST_FIELD_SIZE (CREATE_THREAD_DEBUG_INFO, hThread, 4)
703 TEST_FIELD_ALIGN (CREATE_THREAD_DEBUG_INFO, hThread, 4)
704 TEST_FIELD_OFFSET(CREATE_THREAD_DEBUG_INFO, hThread, 0)
705 TEST_FIELD_SIZE (CREATE_THREAD_DEBUG_INFO, lpThreadLocalBase, 4)
706 TEST_FIELD_ALIGN (CREATE_THREAD_DEBUG_INFO, lpThreadLocalBase, 4)
707 TEST_FIELD_OFFSET(CREATE_THREAD_DEBUG_INFO, lpThreadLocalBase, 4)
708 TEST_FIELD_SIZE (CREATE_THREAD_DEBUG_INFO, lpStartAddress, 4)
709 TEST_FIELD_ALIGN (CREATE_THREAD_DEBUG_INFO, lpStartAddress, 4)
710 TEST_FIELD_OFFSET(CREATE_THREAD_DEBUG_INFO, lpStartAddress, 8)
711 }
712
713 static void test_pack_CRITICAL_SECTION(void)
714 {
715 /* CRITICAL_SECTION */
716 TEST_TYPE_SIZE (CRITICAL_SECTION, 24)
717 TEST_TYPE_ALIGN (CRITICAL_SECTION, 4)
718 }
719
720 static void test_pack_CRITICAL_SECTION_DEBUG(void)
721 {
722 /* CRITICAL_SECTION_DEBUG */
723 }
724
725 static void test_pack_DCB(void)
726 {
727 /* DCB (pack 4) */
728 TEST_TYPE_SIZE (DCB, 28)
729 TEST_TYPE_ALIGN (DCB, 4)
730 TEST_FIELD_SIZE (DCB, DCBlength, 4)
731 TEST_FIELD_ALIGN (DCB, DCBlength, 4)
732 TEST_FIELD_OFFSET(DCB, DCBlength, 0)
733 TEST_FIELD_SIZE (DCB, BaudRate, 4)
734 TEST_FIELD_ALIGN (DCB, BaudRate, 4)
735 TEST_FIELD_OFFSET(DCB, BaudRate, 4)
736 TEST_FIELD_SIZE (DCB, wReserved, 2)
737 TEST_FIELD_ALIGN (DCB, wReserved, 2)
738 TEST_FIELD_OFFSET(DCB, wReserved, 12)
739 TEST_FIELD_SIZE (DCB, XonLim, 2)
740 TEST_FIELD_ALIGN (DCB, XonLim, 2)
741 TEST_FIELD_OFFSET(DCB, XonLim, 14)
742 TEST_FIELD_SIZE (DCB, XoffLim, 2)
743 TEST_FIELD_ALIGN (DCB, XoffLim, 2)
744 TEST_FIELD_OFFSET(DCB, XoffLim, 16)
745 TEST_FIELD_SIZE (DCB, ByteSize, 1)
746 TEST_FIELD_ALIGN (DCB, ByteSize, 1)
747 TEST_FIELD_OFFSET(DCB, ByteSize, 18)
748 TEST_FIELD_SIZE (DCB, Parity, 1)
749 TEST_FIELD_ALIGN (DCB, Parity, 1)
750 TEST_FIELD_OFFSET(DCB, Parity, 19)
751 TEST_FIELD_SIZE (DCB, StopBits, 1)
752 TEST_FIELD_ALIGN (DCB, StopBits, 1)
753 TEST_FIELD_OFFSET(DCB, StopBits, 20)
754 TEST_FIELD_SIZE (DCB, XonChar, 1)
755 TEST_FIELD_ALIGN (DCB, XonChar, 1)
756 TEST_FIELD_OFFSET(DCB, XonChar, 21)
757 TEST_FIELD_SIZE (DCB, XoffChar, 1)
758 TEST_FIELD_ALIGN (DCB, XoffChar, 1)
759 TEST_FIELD_OFFSET(DCB, XoffChar, 22)
760 TEST_FIELD_SIZE (DCB, ErrorChar, 1)
761 TEST_FIELD_ALIGN (DCB, ErrorChar, 1)
762 TEST_FIELD_OFFSET(DCB, ErrorChar, 23)
763 TEST_FIELD_SIZE (DCB, EofChar, 1)
764 TEST_FIELD_ALIGN (DCB, EofChar, 1)
765 TEST_FIELD_OFFSET(DCB, EofChar, 24)
766 TEST_FIELD_SIZE (DCB, EvtChar, 1)
767 TEST_FIELD_ALIGN (DCB, EvtChar, 1)
768 TEST_FIELD_OFFSET(DCB, EvtChar, 25)
769 TEST_FIELD_SIZE (DCB, wReserved1, 2)
770 TEST_FIELD_ALIGN (DCB, wReserved1, 2)
771 TEST_FIELD_OFFSET(DCB, wReserved1, 26)
772 }
773
774 static void test_pack_DEBUG_EVENT(void)
775 {
776 /* DEBUG_EVENT (pack 4) */
777 TEST_FIELD_SIZE (DEBUG_EVENT, dwDebugEventCode, 4)
778 TEST_FIELD_ALIGN (DEBUG_EVENT, dwDebugEventCode, 4)
779 TEST_FIELD_OFFSET(DEBUG_EVENT, dwDebugEventCode, 0)
780 TEST_FIELD_SIZE (DEBUG_EVENT, dwProcessId, 4)
781 TEST_FIELD_ALIGN (DEBUG_EVENT, dwProcessId, 4)
782 TEST_FIELD_OFFSET(DEBUG_EVENT, dwProcessId, 4)
783 TEST_FIELD_SIZE (DEBUG_EVENT, dwThreadId, 4)
784 TEST_FIELD_ALIGN (DEBUG_EVENT, dwThreadId, 4)
785 TEST_FIELD_OFFSET(DEBUG_EVENT, dwThreadId, 8)
786 }
787
788 static void test_pack_ENUMRESLANGPROCA(void)
789 {
790 /* ENUMRESLANGPROCA */
791 TEST_TYPE_SIZE (ENUMRESLANGPROCA, 4)
792 TEST_TYPE_ALIGN (ENUMRESLANGPROCA, 4)
793 }
794
795 static void test_pack_ENUMRESLANGPROCW(void)
796 {
797 /* ENUMRESLANGPROCW */
798 TEST_TYPE_SIZE (ENUMRESLANGPROCW, 4)
799 TEST_TYPE_ALIGN (ENUMRESLANGPROCW, 4)
800 }
801
802 static void test_pack_ENUMRESNAMEPROCA(void)
803 {
804 /* ENUMRESNAMEPROCA */
805 TEST_TYPE_SIZE (ENUMRESNAMEPROCA, 4)
806 TEST_TYPE_ALIGN (ENUMRESNAMEPROCA, 4)
807 }
808
809 static void test_pack_ENUMRESNAMEPROCW(void)
810 {
811 /* ENUMRESNAMEPROCW */
812 TEST_TYPE_SIZE (ENUMRESNAMEPROCW, 4)
813 TEST_TYPE_ALIGN (ENUMRESNAMEPROCW, 4)
814 }
815
816 static void test_pack_ENUMRESTYPEPROCA(void)
817 {
818 /* ENUMRESTYPEPROCA */
819 TEST_TYPE_SIZE (ENUMRESTYPEPROCA, 4)
820 TEST_TYPE_ALIGN (ENUMRESTYPEPROCA, 4)
821 }
822
823 static void test_pack_ENUMRESTYPEPROCW(void)
824 {
825 /* ENUMRESTYPEPROCW */
826 TEST_TYPE_SIZE (ENUMRESTYPEPROCW, 4)
827 TEST_TYPE_ALIGN (ENUMRESTYPEPROCW, 4)
828 }
829
830 static void test_pack_EXCEPTION_DEBUG_INFO(void)
831 {
832 /* EXCEPTION_DEBUG_INFO (pack 4) */
833 TEST_TYPE_SIZE (EXCEPTION_DEBUG_INFO, 84)
834 TEST_TYPE_ALIGN (EXCEPTION_DEBUG_INFO, 4)
835 TEST_FIELD_SIZE (EXCEPTION_DEBUG_INFO, ExceptionRecord, 80)
836 TEST_FIELD_ALIGN (EXCEPTION_DEBUG_INFO, ExceptionRecord, 4)
837 TEST_FIELD_OFFSET(EXCEPTION_DEBUG_INFO, ExceptionRecord, 0)
838 TEST_FIELD_SIZE (EXCEPTION_DEBUG_INFO, dwFirstChance, 4)
839 TEST_FIELD_ALIGN (EXCEPTION_DEBUG_INFO, dwFirstChance, 4)
840 TEST_FIELD_OFFSET(EXCEPTION_DEBUG_INFO, dwFirstChance, 80)
841 }
842
843 static void test_pack_EXIT_PROCESS_DEBUG_INFO(void)
844 {
845 /* EXIT_PROCESS_DEBUG_INFO (pack 4) */
846 TEST_TYPE_SIZE (EXIT_PROCESS_DEBUG_INFO, 4)
847 TEST_TYPE_ALIGN (EXIT_PROCESS_DEBUG_INFO, 4)
848 TEST_FIELD_SIZE (EXIT_PROCESS_DEBUG_INFO, dwExitCode, 4)
849 TEST_FIELD_ALIGN (EXIT_PROCESS_DEBUG_INFO, dwExitCode, 4)
850 TEST_FIELD_OFFSET(EXIT_PROCESS_DEBUG_INFO, dwExitCode, 0)
851 }
852
853 static void test_pack_EXIT_THREAD_DEBUG_INFO(void)
854 {
855 /* EXIT_THREAD_DEBUG_INFO (pack 4) */
856 TEST_TYPE_SIZE (EXIT_THREAD_DEBUG_INFO, 4)
857 TEST_TYPE_ALIGN (EXIT_THREAD_DEBUG_INFO, 4)
858 TEST_FIELD_SIZE (EXIT_THREAD_DEBUG_INFO, dwExitCode, 4)
859 TEST_FIELD_ALIGN (EXIT_THREAD_DEBUG_INFO, dwExitCode, 4)
860 TEST_FIELD_OFFSET(EXIT_THREAD_DEBUG_INFO, dwExitCode, 0)
861 }
862
863 static void test_pack_HW_PROFILE_INFOA(void)
864 {
865 /* HW_PROFILE_INFOA (pack 4) */
866 TEST_TYPE_SIZE (HW_PROFILE_INFOA, 124)
867 TEST_TYPE_ALIGN (HW_PROFILE_INFOA, 4)
868 TEST_FIELD_SIZE (HW_PROFILE_INFOA, dwDockInfo, 4)
869 TEST_FIELD_ALIGN (HW_PROFILE_INFOA, dwDockInfo, 4)
870 TEST_FIELD_OFFSET(HW_PROFILE_INFOA, dwDockInfo, 0)
871 TEST_FIELD_SIZE (HW_PROFILE_INFOA, szHwProfileGuid, 39)
872 TEST_FIELD_ALIGN (HW_PROFILE_INFOA, szHwProfileGuid, 1)
873 TEST_FIELD_OFFSET(HW_PROFILE_INFOA, szHwProfileGuid, 4)
874 TEST_FIELD_SIZE (HW_PROFILE_INFOA, szHwProfileName, 80)
875 TEST_FIELD_ALIGN (HW_PROFILE_INFOA, szHwProfileName, 1)
876 TEST_FIELD_OFFSET(HW_PROFILE_INFOA, szHwProfileName, 43)
877 }
878
879 static void test_pack_HW_PROFILE_INFOW(void)
880 {
881 /* HW_PROFILE_INFOW (pack 4) */
882 TEST_TYPE_SIZE (HW_PROFILE_INFOW, 244)
883 TEST_TYPE_ALIGN (HW_PROFILE_INFOW, 4)
884 TEST_FIELD_SIZE (HW_PROFILE_INFOW, dwDockInfo, 4)
885 TEST_FIELD_ALIGN (HW_PROFILE_INFOW, dwDockInfo, 4)
886 TEST_FIELD_OFFSET(HW_PROFILE_INFOW, dwDockInfo, 0)
887 TEST_FIELD_SIZE (HW_PROFILE_INFOW, szHwProfileGuid, 78)
888 TEST_FIELD_ALIGN (HW_PROFILE_INFOW, szHwProfileGuid, 2)
889 TEST_FIELD_OFFSET(HW_PROFILE_INFOW, szHwProfileGuid, 4)
890 TEST_FIELD_SIZE (HW_PROFILE_INFOW, szHwProfileName, 160)
891 TEST_FIELD_ALIGN (HW_PROFILE_INFOW, szHwProfileName, 2)
892 TEST_FIELD_OFFSET(HW_PROFILE_INFOW, szHwProfileName, 82)
893 }
894
895 static void test_pack_LOAD_DLL_DEBUG_INFO(void)
896 {
897 /* LOAD_DLL_DEBUG_INFO (pack 4) */
898 TEST_TYPE_SIZE (LOAD_DLL_DEBUG_INFO, 24)
899 TEST_TYPE_ALIGN (LOAD_DLL_DEBUG_INFO, 4)
900 TEST_FIELD_SIZE (LOAD_DLL_DEBUG_INFO, hFile, 4)
901 TEST_FIELD_ALIGN (LOAD_DLL_DEBUG_INFO, hFile, 4)
902 TEST_FIELD_OFFSET(LOAD_DLL_DEBUG_INFO, hFile, 0)
903 TEST_FIELD_SIZE (LOAD_DLL_DEBUG_INFO, lpBaseOfDll, 4)
904 TEST_FIELD_ALIGN (LOAD_DLL_DEBUG_INFO, lpBaseOfDll, 4)
905 TEST_FIELD_OFFSET(LOAD_DLL_DEBUG_INFO, lpBaseOfDll, 4)
906 TEST_FIELD_SIZE (LOAD_DLL_DEBUG_INFO, dwDebugInfoFileOffset, 4)
907 TEST_FIELD_ALIGN (LOAD_DLL_DEBUG_INFO, dwDebugInfoFileOffset, 4)
908 TEST_FIELD_OFFSET(LOAD_DLL_DEBUG_INFO, dwDebugInfoFileOffset, 8)
909 TEST_FIELD_SIZE (LOAD_DLL_DEBUG_INFO, nDebugInfoSize, 4)
910 TEST_FIELD_ALIGN (LOAD_DLL_DEBUG_INFO, nDebugInfoSize, 4)
911 TEST_FIELD_OFFSET(LOAD_DLL_DEBUG_INFO, nDebugInfoSize, 12)
912 TEST_FIELD_SIZE (LOAD_DLL_DEBUG_INFO, lpImageName, 4)
913 TEST_FIELD_ALIGN (LOAD_DLL_DEBUG_INFO, lpImageName, 4)
914 TEST_FIELD_OFFSET(LOAD_DLL_DEBUG_INFO, lpImageName, 16)
915 TEST_FIELD_SIZE (LOAD_DLL_DEBUG_INFO, fUnicode, 2)
916 TEST_FIELD_ALIGN (LOAD_DLL_DEBUG_INFO, fUnicode, 2)
917 TEST_FIELD_OFFSET(LOAD_DLL_DEBUG_INFO, fUnicode, 20)
918 }
919
920 static void test_pack_LPBY_HANDLE_FILE_INFORMATION(void)
921 {
922 /* LPBY_HANDLE_FILE_INFORMATION */
923 TEST_TYPE_SIZE (LPBY_HANDLE_FILE_INFORMATION, 4)
924 TEST_TYPE_ALIGN (LPBY_HANDLE_FILE_INFORMATION, 4)
925 TEST_TARGET_SIZE (LPBY_HANDLE_FILE_INFORMATION, 52)
926 TEST_TARGET_ALIGN(LPBY_HANDLE_FILE_INFORMATION, 4)
927 }
928
929 static void test_pack_LPCOMMCONFIG(void)
930 {
931 /* LPCOMMCONFIG */
932 TEST_TYPE_SIZE (LPCOMMCONFIG, 4)
933 TEST_TYPE_ALIGN (LPCOMMCONFIG, 4)
934 TEST_TARGET_SIZE (LPCOMMCONFIG, 52)
935 TEST_TARGET_ALIGN(LPCOMMCONFIG, 4)
936 }
937
938 static void test_pack_LPCOMMPROP(void)
939 {
940 /* LPCOMMPROP */
941 TEST_TYPE_SIZE (LPCOMMPROP, 4)
942 TEST_TYPE_ALIGN (LPCOMMPROP, 4)
943 TEST_TARGET_SIZE (LPCOMMPROP, 64)
944 TEST_TARGET_ALIGN(LPCOMMPROP, 4)
945 }
946
947 static void test_pack_LPCOMMTIMEOUTS(void)
948 {
949 /* LPCOMMTIMEOUTS */
950 TEST_TYPE_SIZE (LPCOMMTIMEOUTS, 4)
951 TEST_TYPE_ALIGN (LPCOMMTIMEOUTS, 4)
952 TEST_TARGET_SIZE (LPCOMMTIMEOUTS, 20)
953 TEST_TARGET_ALIGN(LPCOMMTIMEOUTS, 4)
954 }
955
956 static void test_pack_LPCOMSTAT(void)
957 {
958 /* LPCOMSTAT */
959 TEST_TYPE_SIZE (LPCOMSTAT, 4)
960 TEST_TYPE_ALIGN (LPCOMSTAT, 4)
961 TEST_TARGET_SIZE (LPCOMSTAT, 12)
962 TEST_TARGET_ALIGN(LPCOMSTAT, 4)
963 }
964
965 static void test_pack_LPCRITICAL_SECTION(void)
966 {
967 /* LPCRITICAL_SECTION */
968 TEST_TYPE_SIZE (LPCRITICAL_SECTION, 4)
969 TEST_TYPE_ALIGN (LPCRITICAL_SECTION, 4)
970 }
971
972 static void test_pack_LPCRITICAL_SECTION_DEBUG(void)
973 {
974 /* LPCRITICAL_SECTION_DEBUG */
975 TEST_TYPE_SIZE (LPCRITICAL_SECTION_DEBUG, 4)
976 TEST_TYPE_ALIGN (LPCRITICAL_SECTION_DEBUG, 4)
977 }
978
979 static void test_pack_LPDCB(void)
980 {
981 /* LPDCB */
982 TEST_TYPE_SIZE (LPDCB, 4)
983 TEST_TYPE_ALIGN (LPDCB, 4)
984 TEST_TARGET_SIZE (LPDCB, 28)
985 TEST_TARGET_ALIGN(LPDCB, 4)
986 }
987
988 static void test_pack_LPDEBUG_EVENT(void)
989 {
990 /* LPDEBUG_EVENT */
991 TEST_TYPE_SIZE (LPDEBUG_EVENT, 4)
992 TEST_TYPE_ALIGN (LPDEBUG_EVENT, 4)
993 }
994
995 static void test_pack_LPEXCEPTION_POINTERS(void)
996 {
997 /* LPEXCEPTION_POINTERS */
998 TEST_TYPE_SIZE (LPEXCEPTION_POINTERS, 4)
999 TEST_TYPE_ALIGN (LPEXCEPTION_POINTERS, 4)
1000 }
1001
1002 static void test_pack_LPEXCEPTION_RECORD(void)
1003 {
1004 /* LPEXCEPTION_RECORD */
1005 TEST_TYPE_SIZE (LPEXCEPTION_RECORD, 4)
1006 TEST_TYPE_ALIGN (LPEXCEPTION_RECORD, 4)
1007 }
1008
1009 static void test_pack_LPFIBER_START_ROUTINE(void)
1010 {
1011 /* LPFIBER_START_ROUTINE */
1012 TEST_TYPE_SIZE (LPFIBER_START_ROUTINE, 4)
1013 TEST_TYPE_ALIGN (LPFIBER_START_ROUTINE, 4)
1014 }
1015
1016 static void test_pack_LPHW_PROFILE_INFOA(void)
1017 {
1018 /* LPHW_PROFILE_INFOA */
1019 TEST_TYPE_SIZE (LPHW_PROFILE_INFOA, 4)
1020 TEST_TYPE_ALIGN (LPHW_PROFILE_INFOA, 4)
1021 TEST_TARGET_SIZE (LPHW_PROFILE_INFOA, 124)
1022 TEST_TARGET_ALIGN(LPHW_PROFILE_INFOA, 4)
1023 }
1024
1025 static void test_pack_LPHW_PROFILE_INFOW(void)
1026 {
1027 /* LPHW_PROFILE_INFOW */
1028 TEST_TYPE_SIZE (LPHW_PROFILE_INFOW, 4)
1029 TEST_TYPE_ALIGN (LPHW_PROFILE_INFOW, 4)
1030 TEST_TARGET_SIZE (LPHW_PROFILE_INFOW, 244)
1031 TEST_TARGET_ALIGN(LPHW_PROFILE_INFOW, 4)
1032 }
1033
1034 static void test_pack_LPMEMORYSTATUS(void)
1035 {
1036 /* LPMEMORYSTATUS */
1037 TEST_TYPE_SIZE (LPMEMORYSTATUS, 4)
1038 TEST_TYPE_ALIGN (LPMEMORYSTATUS, 4)
1039 TEST_TARGET_SIZE (LPMEMORYSTATUS, 32)
1040 TEST_TARGET_ALIGN(LPMEMORYSTATUS, 4)
1041 }
1042
1043 static void test_pack_LPMEMORYSTATUSEX(void)
1044 {
1045 /* LPMEMORYSTATUSEX */
1046 TEST_TYPE_SIZE (LPMEMORYSTATUSEX, 4)
1047 TEST_TYPE_ALIGN (LPMEMORYSTATUSEX, 4)
1048 TEST_TARGET_SIZE (LPMEMORYSTATUSEX, 64)
1049 TEST_TARGET_ALIGN(LPMEMORYSTATUSEX, 8)
1050 }
1051
1052 static void test_pack_LPOFSTRUCT(void)
1053 {
1054 /* LPOFSTRUCT */
1055 TEST_TYPE_SIZE (LPOFSTRUCT, 4)
1056 TEST_TYPE_ALIGN (LPOFSTRUCT, 4)
1057 TEST_TARGET_SIZE (LPOFSTRUCT, 136)
1058 TEST_TARGET_ALIGN(LPOFSTRUCT, 2)
1059 }
1060
1061 static void test_pack_LPOVERLAPPED(void)
1062 {
1063 /* LPOVERLAPPED */
1064 TEST_TYPE_SIZE (LPOVERLAPPED, 4)
1065 TEST_TYPE_ALIGN (LPOVERLAPPED, 4)
1066 }
1067
1068 static void test_pack_LPOVERLAPPED_COMPLETION_ROUTINE(void)
1069 {
1070 /* LPOVERLAPPED_COMPLETION_ROUTINE */
1071 TEST_TYPE_SIZE (LPOVERLAPPED_COMPLETION_ROUTINE, 4)
1072 TEST_TYPE_ALIGN (LPOVERLAPPED_COMPLETION_ROUTINE, 4)
1073 }
1074
1075 static void test_pack_LPPROCESS_HEAP_ENTRY(void)
1076 {
1077 /* LPPROCESS_HEAP_ENTRY */
1078 TEST_TYPE_SIZE (LPPROCESS_HEAP_ENTRY, 4)
1079 TEST_TYPE_ALIGN (LPPROCESS_HEAP_ENTRY, 4)
1080 }
1081
1082 static void test_pack_LPPROCESS_INFORMATION(void)
1083 {
1084 /* LPPROCESS_INFORMATION */
1085 TEST_TYPE_SIZE (LPPROCESS_INFORMATION, 4)
1086 TEST_TYPE_ALIGN (LPPROCESS_INFORMATION, 4)
1087 TEST_TARGET_SIZE (LPPROCESS_INFORMATION, 16)
1088 TEST_TARGET_ALIGN(LPPROCESS_INFORMATION, 4)
1089 }
1090
1091 static void test_pack_LPPROGRESS_ROUTINE(void)
1092 {
1093 /* LPPROGRESS_ROUTINE */
1094 TEST_TYPE_SIZE (LPPROGRESS_ROUTINE, 4)
1095 TEST_TYPE_ALIGN (LPPROGRESS_ROUTINE, 4)
1096 }
1097
1098 static void test_pack_LPSECURITY_ATTRIBUTES(void)
1099 {
1100 /* LPSECURITY_ATTRIBUTES */
1101 TEST_TYPE_SIZE (LPSECURITY_ATTRIBUTES, 4)
1102 TEST_TYPE_ALIGN (LPSECURITY_ATTRIBUTES, 4)
1103 TEST_TARGET_SIZE (LPSECURITY_ATTRIBUTES, 12)
1104 TEST_TARGET_ALIGN(LPSECURITY_ATTRIBUTES, 4)
1105 }
1106
1107 static void test_pack_LPSTARTUPINFOA(void)
1108 {
1109 /* LPSTARTUPINFOA */
1110 TEST_TYPE_SIZE (LPSTARTUPINFOA, 4)
1111 TEST_TYPE_ALIGN (LPSTARTUPINFOA, 4)
1112 TEST_TARGET_SIZE (LPSTARTUPINFOA, 68)
1113 TEST_TARGET_ALIGN(LPSTARTUPINFOA, 4)
1114 }
1115
1116 static void test_pack_LPSTARTUPINFOW(void)
1117 {
1118 /* LPSTARTUPINFOW */
1119 TEST_TYPE_SIZE (LPSTARTUPINFOW, 4)
1120 TEST_TYPE_ALIGN (LPSTARTUPINFOW, 4)
1121 TEST_TARGET_SIZE (LPSTARTUPINFOW, 68)
1122 TEST_TARGET_ALIGN(LPSTARTUPINFOW, 4)
1123 }
1124
1125 static void test_pack_LPSYSTEMTIME(void)
1126 {
1127 /* LPSYSTEMTIME */
1128 TEST_TYPE_SIZE (LPSYSTEMTIME, 4)
1129 TEST_TYPE_ALIGN (LPSYSTEMTIME, 4)
1130 TEST_TARGET_SIZE (LPSYSTEMTIME, 16)
1131 TEST_TARGET_ALIGN(LPSYSTEMTIME, 2)
1132 }
1133
1134 static void test_pack_LPSYSTEM_INFO(void)
1135 {
1136 /* LPSYSTEM_INFO */
1137 TEST_TYPE_SIZE (LPSYSTEM_INFO, 4)
1138 TEST_TYPE_ALIGN (LPSYSTEM_INFO, 4)
1139 }
1140
1141 static void test_pack_LPSYSTEM_POWER_STATUS(void)
1142 {
1143 /* LPSYSTEM_POWER_STATUS */
1144 TEST_TYPE_SIZE (LPSYSTEM_POWER_STATUS, 4)
1145 TEST_TYPE_ALIGN (LPSYSTEM_POWER_STATUS, 4)
1146 TEST_TARGET_SIZE (LPSYSTEM_POWER_STATUS, 12)
1147 TEST_TARGET_ALIGN(LPSYSTEM_POWER_STATUS, 4)
1148 }
1149
1150 static void test_pack_LPTHREAD_START_ROUTINE(void)
1151 {
1152 /* LPTHREAD_START_ROUTINE */
1153 TEST_TYPE_SIZE (LPTHREAD_START_ROUTINE, 4)
1154 TEST_TYPE_ALIGN (LPTHREAD_START_ROUTINE, 4)
1155 }
1156
1157 static void test_pack_LPTIME_ZONE_INFORMATION(void)
1158 {
1159 /* LPTIME_ZONE_INFORMATION */
1160 TEST_TYPE_SIZE (LPTIME_ZONE_INFORMATION, 4)
1161 TEST_TYPE_ALIGN (LPTIME_ZONE_INFORMATION, 4)
1162 TEST_TARGET_SIZE (LPTIME_ZONE_INFORMATION, 172)
1163 TEST_TARGET_ALIGN(LPTIME_ZONE_INFORMATION, 4)
1164 }
1165
1166 static void test_pack_LPWIN32_FILE_ATTRIBUTE_DATA(void)
1167 {
1168 /* LPWIN32_FILE_ATTRIBUTE_DATA */
1169 TEST_TYPE_SIZE (LPWIN32_FILE_ATTRIBUTE_DATA, 4)
1170 TEST_TYPE_ALIGN (LPWIN32_FILE_ATTRIBUTE_DATA, 4)
1171 TEST_TARGET_SIZE (LPWIN32_FILE_ATTRIBUTE_DATA, 36)
1172 TEST_TARGET_ALIGN(LPWIN32_FILE_ATTRIBUTE_DATA, 4)
1173 }
1174
1175 static void test_pack_LPWIN32_FIND_DATAA(void)
1176 {
1177 /* LPWIN32_FIND_DATAA */
1178 TEST_TYPE_SIZE (LPWIN32_FIND_DATAA, 4)
1179 TEST_TYPE_ALIGN (LPWIN32_FIND_DATAA, 4)
1180 TEST_TARGET_SIZE (LPWIN32_FIND_DATAA, 320)
1181 TEST_TARGET_ALIGN(LPWIN32_FIND_DATAA, 4)
1182 }
1183
1184 static void test_pack_LPWIN32_FIND_DATAW(void)
1185 {
1186 /* LPWIN32_FIND_DATAW */
1187 TEST_TYPE_SIZE (LPWIN32_FIND_DATAW, 4)
1188 TEST_TYPE_ALIGN (LPWIN32_FIND_DATAW, 4)
1189 TEST_TARGET_SIZE (LPWIN32_FIND_DATAW, 592)
1190 TEST_TARGET_ALIGN(LPWIN32_FIND_DATAW, 4)
1191 }
1192
1193 static void test_pack_LPWIN32_STREAM_ID(void)
1194 {
1195 /* LPWIN32_STREAM_ID */
1196 TEST_TYPE_SIZE (LPWIN32_STREAM_ID, 4)
1197 TEST_TYPE_ALIGN (LPWIN32_STREAM_ID, 4)
1198 TEST_TARGET_SIZE (LPWIN32_STREAM_ID, 24)
1199 TEST_TARGET_ALIGN(LPWIN32_STREAM_ID, 8)
1200 }
1201
1202 static void test_pack_MEMORYSTATUS(void)
1203 {
1204 /* MEMORYSTATUS (pack 4) */
1205 TEST_TYPE_SIZE (MEMORYSTATUS, 32)
1206 TEST_TYPE_ALIGN (MEMORYSTATUS, 4)
1207 TEST_FIELD_SIZE (MEMORYSTATUS, dwLength, 4)
1208 TEST_FIELD_ALIGN (MEMORYSTATUS, dwLength, 4)
1209 TEST_FIELD_OFFSET(MEMORYSTATUS, dwLength, 0)
1210 TEST_FIELD_SIZE (MEMORYSTATUS, dwMemoryLoad, 4)
1211 TEST_FIELD_ALIGN (MEMORYSTATUS, dwMemoryLoad, 4)
1212 TEST_FIELD_OFFSET(MEMORYSTATUS, dwMemoryLoad, 4)
1213 TEST_FIELD_SIZE (MEMORYSTATUS, dwTotalPhys, 4)
1214 TEST_FIELD_ALIGN (MEMORYSTATUS, dwTotalPhys, 4)
1215 TEST_FIELD_OFFSET(MEMORYSTATUS, dwTotalPhys, 8)
1216 TEST_FIELD_SIZE (MEMORYSTATUS, dwAvailPhys, 4)
1217 TEST_FIELD_ALIGN (MEMORYSTATUS, dwAvailPhys, 4)
1218 TEST_FIELD_OFFSET(MEMORYSTATUS, dwAvailPhys, 12)
1219 TEST_FIELD_SIZE (MEMORYSTATUS, dwTotalPageFile, 4)
1220 TEST_FIELD_ALIGN (MEMORYSTATUS, dwTotalPageFile, 4)
1221 TEST_FIELD_OFFSET(MEMORYSTATUS, dwTotalPageFile, 16)
1222 TEST_FIELD_SIZE (MEMORYSTATUS, dwAvailPageFile, 4)
1223 TEST_FIELD_ALIGN (MEMORYSTATUS, dwAvailPageFile, 4)
1224 TEST_FIELD_OFFSET(MEMORYSTATUS, dwAvailPageFile, 20)
1225 TEST_FIELD_SIZE (MEMORYSTATUS, dwTotalVirtual, 4)
1226 TEST_FIELD_ALIGN (MEMORYSTATUS, dwTotalVirtual, 4)
1227 TEST_FIELD_OFFSET(MEMORYSTATUS, dwTotalVirtual, 24)
1228 TEST_FIELD_SIZE (MEMORYSTATUS, dwAvailVirtual, 4)
1229 TEST_FIELD_ALIGN (MEMORYSTATUS, dwAvailVirtual, 4)
1230 TEST_FIELD_OFFSET(MEMORYSTATUS, dwAvailVirtual, 28)
1231 }
1232
1233 static void test_pack_MEMORYSTATUSEX(void)
1234 {
1235 /* MEMORYSTATUSEX (pack 8) */
1236 TEST_TYPE_SIZE (MEMORYSTATUSEX, 64)
1237 TEST_TYPE_ALIGN (MEMORYSTATUSEX, 8)
1238 TEST_FIELD_SIZE (MEMORYSTATUSEX, dwLength, 4)
1239 TEST_FIELD_ALIGN (MEMORYSTATUSEX, dwLength, 4)
1240 TEST_FIELD_OFFSET(MEMORYSTATUSEX, dwLength, 0)
1241 TEST_FIELD_SIZE (MEMORYSTATUSEX, dwMemoryLoad, 4)
1242 TEST_FIELD_ALIGN (MEMORYSTATUSEX, dwMemoryLoad, 4)
1243 TEST_FIELD_OFFSET(MEMORYSTATUSEX, dwMemoryLoad, 4)
1244 TEST_FIELD_SIZE (MEMORYSTATUSEX, ullTotalPhys, 8)
1245 TEST_FIELD_ALIGN (MEMORYSTATUSEX, ullTotalPhys, 8)
1246 TEST_FIELD_OFFSET(MEMORYSTATUSEX, ullTotalPhys, 8)
1247 TEST_FIELD_SIZE (MEMORYSTATUSEX, ullAvailPhys, 8)
1248 TEST_FIELD_ALIGN (MEMORYSTATUSEX, ullAvailPhys, 8)
1249 TEST_FIELD_OFFSET(MEMORYSTATUSEX, ullAvailPhys, 16)
1250 TEST_FIELD_SIZE (MEMORYSTATUSEX, ullTotalPageFile, 8)
1251 TEST_FIELD_ALIGN (MEMORYSTATUSEX, ullTotalPageFile, 8)
1252 TEST_FIELD_OFFSET(MEMORYSTATUSEX, ullTotalPageFile, 24)
1253 TEST_FIELD_SIZE (MEMORYSTATUSEX, ullAvailPageFile, 8)
1254 TEST_FIELD_ALIGN (MEMORYSTATUSEX, ullAvailPageFile, 8)
1255 TEST_FIELD_OFFSET(MEMORYSTATUSEX, ullAvailPageFile, 32)
1256 TEST_FIELD_SIZE (MEMORYSTATUSEX, ullTotalVirtual, 8)
1257 TEST_FIELD_ALIGN (MEMORYSTATUSEX, ullTotalVirtual, 8)
1258 TEST_FIELD_OFFSET(MEMORYSTATUSEX, ullTotalVirtual, 40)
1259 TEST_FIELD_SIZE (MEMORYSTATUSEX, ullAvailVirtual, 8)
1260 TEST_FIELD_ALIGN (MEMORYSTATUSEX, ullAvailVirtual, 8)
1261 TEST_FIELD_OFFSET(MEMORYSTATUSEX, ullAvailVirtual, 48)
1262 TEST_FIELD_SIZE (MEMORYSTATUSEX, ullAvailExtendedVirtual, 8)
1263 TEST_FIELD_ALIGN (MEMORYSTATUSEX, ullAvailExtendedVirtual, 8)
1264 TEST_FIELD_OFFSET(MEMORYSTATUSEX, ullAvailExtendedVirtual, 56)
1265 }
1266
1267 static void test_pack_OFSTRUCT(void)
1268 {
1269 /* OFSTRUCT (pack 4) */
1270 TEST_TYPE_SIZE (OFSTRUCT, 136)
1271 TEST_TYPE_ALIGN (OFSTRUCT, 2)
1272 TEST_FIELD_SIZE (OFSTRUCT, cBytes, 1)
1273 TEST_FIELD_ALIGN (OFSTRUCT, cBytes, 1)
1274 TEST_FIELD_OFFSET(OFSTRUCT, cBytes, 0)
1275 TEST_FIELD_SIZE (OFSTRUCT, fFixedDisk, 1)
1276 TEST_FIELD_ALIGN (OFSTRUCT, fFixedDisk, 1)
1277 TEST_FIELD_OFFSET(OFSTRUCT, fFixedDisk, 1)
1278 TEST_FIELD_SIZE (OFSTRUCT, nErrCode, 2)
1279 TEST_FIELD_ALIGN (OFSTRUCT, nErrCode, 2)
1280 TEST_FIELD_OFFSET(OFSTRUCT, nErrCode, 2)
1281 TEST_FIELD_SIZE (OFSTRUCT, Reserved1, 2)
1282 TEST_FIELD_ALIGN (OFSTRUCT, Reserved1, 2)
1283 TEST_FIELD_OFFSET(OFSTRUCT, Reserved1, 4)
1284 TEST_FIELD_SIZE (OFSTRUCT, Reserved2, 2)
1285 TEST_FIELD_ALIGN (OFSTRUCT, Reserved2, 2)
1286 TEST_FIELD_OFFSET(OFSTRUCT, Reserved2, 6)
1287 TEST_FIELD_SIZE (OFSTRUCT, szPathName, 128)
1288 TEST_FIELD_ALIGN (OFSTRUCT, szPathName, 1)
1289 TEST_FIELD_OFFSET(OFSTRUCT, szPathName, 8)
1290 }
1291
1292 static void test_pack_OUTPUT_DEBUG_STRING_INFO(void)
1293 {
1294 /* OUTPUT_DEBUG_STRING_INFO (pack 4) */
1295 TEST_TYPE_SIZE (OUTPUT_DEBUG_STRING_INFO, 8)
1296 TEST_TYPE_ALIGN (OUTPUT_DEBUG_STRING_INFO, 4)
1297 TEST_FIELD_SIZE (OUTPUT_DEBUG_STRING_INFO, lpDebugStringData, 4)
1298 TEST_FIELD_ALIGN (OUTPUT_DEBUG_STRING_INFO, lpDebugStringData, 4)
1299 TEST_FIELD_OFFSET(OUTPUT_DEBUG_STRING_INFO, lpDebugStringData, 0)
1300 TEST_FIELD_SIZE (OUTPUT_DEBUG_STRING_INFO, fUnicode, 2)
1301 TEST_FIELD_ALIGN (OUTPUT_DEBUG_STRING_INFO, fUnicode, 2)
1302 TEST_FIELD_OFFSET(OUTPUT_DEBUG_STRING_INFO, fUnicode, 4)
1303 TEST_FIELD_SIZE (OUTPUT_DEBUG_STRING_INFO, nDebugStringLength, 2)
1304 TEST_FIELD_ALIGN (OUTPUT_DEBUG_STRING_INFO, nDebugStringLength, 2)
1305 TEST_FIELD_OFFSET(OUTPUT_DEBUG_STRING_INFO, nDebugStringLength, 6)
1306 }
1307
1308 static void test_pack_PACTCTXA(void)
1309 {
1310 /* PACTCTXA */
1311 TEST_TYPE_SIZE (PACTCTXA, 4)
1312 TEST_TYPE_ALIGN (PACTCTXA, 4)
1313 TEST_TARGET_SIZE (PACTCTXA, 32)
1314 TEST_TARGET_ALIGN(PACTCTXA, 4)
1315 }
1316
1317 static void test_pack_PACTCTXW(void)
1318 {
1319 /* PACTCTXW */
1320 TEST_TYPE_SIZE (PACTCTXW, 4)
1321 TEST_TYPE_ALIGN (PACTCTXW, 4)
1322 TEST_TARGET_SIZE (PACTCTXW, 32)
1323 TEST_TARGET_ALIGN(PACTCTXW, 4)
1324 }
1325
1326 static void test_pack_PACTCTX_SECTION_KEYED_DATA(void)
1327 {
1328 /* PACTCTX_SECTION_KEYED_DATA */
1329 TEST_TYPE_SIZE (PACTCTX_SECTION_KEYED_DATA, 4)
1330 TEST_TYPE_ALIGN (PACTCTX_SECTION_KEYED_DATA, 4)
1331 TEST_TARGET_SIZE (PACTCTX_SECTION_KEYED_DATA, 64)
1332 TEST_TARGET_ALIGN(PACTCTX_SECTION_KEYED_DATA, 4)
1333 }
1334
1335 static void test_pack_PACTCTX_SECTION_KEYED_DATA_2600(void)
1336 {
1337 /* PACTCTX_SECTION_KEYED_DATA_2600 */
1338 TEST_TYPE_SIZE (PACTCTX_SECTION_KEYED_DATA_2600, 4)
1339 TEST_TYPE_ALIGN (PACTCTX_SECTION_KEYED_DATA_2600, 4)
1340 TEST_TARGET_SIZE (PACTCTX_SECTION_KEYED_DATA_2600, 40)
1341 TEST_TARGET_ALIGN(PACTCTX_SECTION_KEYED_DATA_2600, 4)
1342 }
1343
1344 static void test_pack_PACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA(void)
1345 {
1346 /* PACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA */
1347 TEST_TYPE_SIZE (PACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, 4)
1348 TEST_TYPE_ALIGN (PACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, 4)
1349 TEST_TARGET_SIZE (PACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, 20)
1350 TEST_TARGET_ALIGN(PACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, 4)
1351 }
1352
1353 static void test_pack_PACTIVATION_CONTEXT_BASIC_INFORMATION(void)
1354 {
1355 /* PACTIVATION_CONTEXT_BASIC_INFORMATION */
1356 TEST_TYPE_SIZE (PACTIVATION_CONTEXT_BASIC_INFORMATION, 4)
1357 TEST_TYPE_ALIGN (PACTIVATION_CONTEXT_BASIC_INFORMATION, 4)
1358 TEST_TARGET_SIZE (PACTIVATION_CONTEXT_BASIC_INFORMATION, 8)
1359 TEST_TARGET_ALIGN(PACTIVATION_CONTEXT_BASIC_INFORMATION, 4)
1360 }
1361
1362 static void test_pack_PAPCFUNC(void)
1363 {
1364 /* PAPCFUNC */
1365 TEST_TYPE_SIZE (PAPCFUNC, 4)
1366 TEST_TYPE_ALIGN (PAPCFUNC, 4)
1367 }
1368
1369 static void test_pack_PBY_HANDLE_FILE_INFORMATION(void)
1370 {
1371 /* PBY_HANDLE_FILE_INFORMATION */
1372 TEST_TYPE_SIZE (PBY_HANDLE_FILE_INFORMATION, 4)
1373 TEST_TYPE_ALIGN (PBY_HANDLE_FILE_INFORMATION, 4)
1374 TEST_TARGET_SIZE (PBY_HANDLE_FILE_INFORMATION, 52)
1375 TEST_TARGET_ALIGN(PBY_HANDLE_FILE_INFORMATION, 4)
1376 }
1377
1378 static void test_pack_PCACTCTXA(void)
1379 {
1380 /* PCACTCTXA */
1381 TEST_TYPE_SIZE (PCACTCTXA, 4)
1382 TEST_TYPE_ALIGN (PCACTCTXA, 4)
1383 TEST_TARGET_SIZE (PCACTCTXA, 32)
1384 TEST_TARGET_ALIGN(PCACTCTXA, 4)
1385 }
1386
1387 static void test_pack_PCACTCTXW(void)
1388 {
1389 /* PCACTCTXW */
1390 TEST_TYPE_SIZE (PCACTCTXW, 4)
1391 TEST_TYPE_ALIGN (PCACTCTXW, 4)
1392 TEST_TARGET_SIZE (PCACTCTXW, 32)
1393 TEST_TARGET_ALIGN(PCACTCTXW, 4)
1394 }
1395
1396 static void test_pack_PCACTCTX_SECTION_KEYED_DATA(void)
1397 {
1398 /* PCACTCTX_SECTION_KEYED_DATA */
1399 TEST_TYPE_SIZE (PCACTCTX_SECTION_KEYED_DATA, 4)
1400 TEST_TYPE_ALIGN (PCACTCTX_SECTION_KEYED_DATA, 4)
1401 TEST_TARGET_SIZE (PCACTCTX_SECTION_KEYED_DATA, 64)
1402 TEST_TARGET_ALIGN(PCACTCTX_SECTION_KEYED_DATA, 4)
1403 }
1404
1405 static void test_pack_PCACTCTX_SECTION_KEYED_DATA_2600(void)
1406 {
1407 /* PCACTCTX_SECTION_KEYED_DATA_2600 */
1408 TEST_TYPE_SIZE (PCACTCTX_SECTION_KEYED_DATA_2600, 4)
1409 TEST_TYPE_ALIGN (PCACTCTX_SECTION_KEYED_DATA_2600, 4)
1410 TEST_TARGET_SIZE (PCACTCTX_SECTION_KEYED_DATA_2600, 40)
1411 TEST_TARGET_ALIGN(PCACTCTX_SECTION_KEYED_DATA_2600, 4)
1412 }
1413
1414 static void test_pack_PCACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA(void)
1415 {
1416 /* PCACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA */
1417 TEST_TYPE_SIZE (PCACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, 4)
1418 TEST_TYPE_ALIGN (PCACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, 4)
1419 TEST_TARGET_SIZE (PCACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, 20)
1420 TEST_TARGET_ALIGN(PCACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, 4)
1421 }
1422
1423 static void test_pack_PCRITICAL_SECTION(void)
1424 {
1425 /* PCRITICAL_SECTION */
1426 TEST_TYPE_SIZE (PCRITICAL_SECTION, 4)
1427 TEST_TYPE_ALIGN (PCRITICAL_SECTION, 4)
1428 }
1429
1430 static void test_pack_PCRITICAL_SECTION_DEBUG(void)
1431 {
1432 /* PCRITICAL_SECTION_DEBUG */
1433 TEST_TYPE_SIZE (PCRITICAL_SECTION_DEBUG, 4)
1434 TEST_TYPE_ALIGN (PCRITICAL_SECTION_DEBUG, 4)
1435 }
1436
1437 static void test_pack_PFIBER_START_ROUTINE(void)
1438 {
1439 /* PFIBER_START_ROUTINE */
1440 TEST_TYPE_SIZE (PFIBER_START_ROUTINE, 4)
1441 TEST_TYPE_ALIGN (PFIBER_START_ROUTINE, 4)
1442 }
1443
1444 static void test_pack_POFSTRUCT(void)
1445 {
1446 /* POFSTRUCT */
1447 TEST_TYPE_SIZE (POFSTRUCT, 4)
1448 TEST_TYPE_ALIGN (POFSTRUCT, 4)
1449 TEST_TARGET_SIZE (POFSTRUCT, 136)
1450 TEST_TARGET_ALIGN(POFSTRUCT, 2)
1451 }
1452
1453 static void test_pack_PPROCESS_HEAP_ENTRY(void)
1454 {
1455 /* PPROCESS_HEAP_ENTRY */
1456 TEST_TYPE_SIZE (PPROCESS_HEAP_ENTRY, 4)
1457 TEST_TYPE_ALIGN (PPROCESS_HEAP_ENTRY, 4)
1458 }
1459
1460 static void test_pack_PPROCESS_INFORMATION(void)
1461 {
1462 /* PPROCESS_INFORMATION */
1463 TEST_TYPE_SIZE (PPROCESS_INFORMATION, 4)
1464 TEST_TYPE_ALIGN (PPROCESS_INFORMATION, 4)
1465 TEST_TARGET_SIZE (PPROCESS_INFORMATION, 16)
1466 TEST_TARGET_ALIGN(PPROCESS_INFORMATION, 4)
1467 }
1468
1469 static void test_pack_PQUERYACTCTXW_FUNC(void)
1470 {
1471 /* PQUERYACTCTXW_FUNC */
1472 TEST_TYPE_SIZE (PQUERYACTCTXW_FUNC, 4)
1473 TEST_TYPE_ALIGN (PQUERYACTCTXW_FUNC, 4)
1474 }
1475
1476 static void test_pack_PROCESS_HEAP_ENTRY(void)
1477 {
1478 /* PROCESS_HEAP_ENTRY (pack 4) */
1479 TEST_FIELD_SIZE (PROCESS_HEAP_ENTRY, lpData, 4)
1480 TEST_FIELD_ALIGN (PROCESS_HEAP_ENTRY, lpData, 4)
1481 TEST_FIELD_OFFSET(PROCESS_HEAP_ENTRY, lpData, 0)
1482 TEST_FIELD_SIZE (PROCESS_HEAP_ENTRY, cbData, 4)
1483 TEST_FIELD_ALIGN (PROCESS_HEAP_ENTRY, cbData, 4)
1484 TEST_FIELD_OFFSET(PROCESS_HEAP_ENTRY, cbData, 4)
1485 TEST_FIELD_SIZE (PROCESS_HEAP_ENTRY, cbOverhead, 1)
1486 TEST_FIELD_ALIGN (PROCESS_HEAP_ENTRY, cbOverhead, 1)
1487 TEST_FIELD_OFFSET(PROCESS_HEAP_ENTRY, cbOverhead, 8)
1488 TEST_FIELD_SIZE (PROCESS_HEAP_ENTRY, iRegionIndex, 1)
1489 TEST_FIELD_ALIGN (PROCESS_HEAP_ENTRY, iRegionIndex, 1)
1490 TEST_FIELD_OFFSET(PROCESS_HEAP_ENTRY, iRegionIndex, 9)
1491 TEST_FIELD_SIZE (PROCESS_HEAP_ENTRY, wFlags, 2)
1492 TEST_FIELD_ALIGN (PROCESS_HEAP_ENTRY, wFlags, 2)
1493 TEST_FIELD_OFFSET(PROCESS_HEAP_ENTRY, wFlags, 10)
1494 }
1495
1496 static void test_pack_PROCESS_INFORMATION(void)
1497 {
1498 /* PROCESS_INFORMATION (pack 4) */
1499 TEST_TYPE_SIZE (PROCESS_INFORMATION, 16)
1500 TEST_TYPE_ALIGN (PROCESS_INFORMATION, 4)
1501 TEST_FIELD_SIZE (PROCESS_INFORMATION, hProcess, 4)
1502 TEST_FIELD_ALIGN (PROCESS_INFORMATION, hProcess, 4)
1503 TEST_FIELD_OFFSET(PROCESS_INFORMATION, hProcess, 0)
1504 TEST_FIELD_SIZE (PROCESS_INFORMATION, hThread, 4)
1505 TEST_FIELD_ALIGN (PROCESS_INFORMATION, hThread, 4)
1506 TEST_FIELD_OFFSET(PROCESS_INFORMATION, hThread, 4)
1507 TEST_FIELD_SIZE (PROCESS_INFORMATION, dwProcessId, 4)
1508 TEST_FIELD_ALIGN (PROCESS_INFORMATION, dwProcessId, 4)
1509 TEST_FIELD_OFFSET(PROCESS_INFORMATION, dwProcessId, 8)
1510 TEST_FIELD_SIZE (PROCESS_INFORMATION, dwThreadId, 4)
1511 TEST_FIELD_ALIGN (PROCESS_INFORMATION, dwThreadId, 4)
1512 TEST_FIELD_OFFSET(PROCESS_INFORMATION, dwThreadId, 12)
1513 }
1514
1515 static void test_pack_PSECURITY_ATTRIBUTES(void)
1516 {
1517 /* PSECURITY_ATTRIBUTES */
1518 TEST_TYPE_SIZE (PSECURITY_ATTRIBUTES, 4)
1519 TEST_TYPE_ALIGN (PSECURITY_ATTRIBUTES, 4)
1520 TEST_TARGET_SIZE (PSECURITY_ATTRIBUTES, 12)
1521 TEST_TARGET_ALIGN(PSECURITY_ATTRIBUTES, 4)
1522 }
1523
1524 static void test_pack_PSYSTEMTIME(void)
1525 {
1526 /* PSYSTEMTIME */
1527 TEST_TYPE_SIZE (PSYSTEMTIME, 4)
1528 TEST_TYPE_ALIGN (PSYSTEMTIME, 4)
1529 TEST_TARGET_SIZE (PSYSTEMTIME, 16)
1530 TEST_TARGET_ALIGN(PSYSTEMTIME, 2)
1531 }
1532
1533 static void test_pack_PTIMERAPCROUTINE(void)
1534 {
1535 /* PTIMERAPCROUTINE */
1536 TEST_TYPE_SIZE (PTIMERAPCROUTINE, 4)
1537 TEST_TYPE_ALIGN (PTIMERAPCROUTINE, 4)
1538 }
1539
1540 static void test_pack_PTIME_ZONE_INFORMATION(void)
1541 {
1542 /* PTIME_ZONE_INFORMATION */
1543 TEST_TYPE_SIZE (PTIME_ZONE_INFORMATION, 4)
1544 TEST_TYPE_ALIGN (PTIME_ZONE_INFORMATION, 4)
1545 TEST_TARGET_SIZE (PTIME_ZONE_INFORMATION, 172)
1546 TEST_TARGET_ALIGN(PTIME_ZONE_INFORMATION, 4)
1547 }
1548
1549 static void test_pack_PWIN32_FIND_DATAA(void)
1550 {
1551 /* PWIN32_FIND_DATAA */
1552 TEST_TYPE_SIZE (PWIN32_FIND_DATAA, 4)
1553 TEST_TYPE_ALIGN (PWIN32_FIND_DATAA, 4)
1554 TEST_TARGET_SIZE (PWIN32_FIND_DATAA, 320)
1555 TEST_TARGET_ALIGN(PWIN32_FIND_DATAA, 4)
1556 }
1557
1558 static void test_pack_PWIN32_FIND_DATAW(void)
1559 {
1560 /* PWIN32_FIND_DATAW */
1561 TEST_TYPE_SIZE (PWIN32_FIND_DATAW, 4)
1562 TEST_TYPE_ALIGN (PWIN32_FIND_DATAW, 4)
1563 TEST_TARGET_SIZE (PWIN32_FIND_DATAW, 592)
1564 TEST_TARGET_ALIGN(PWIN32_FIND_DATAW, 4)
1565 }
1566
1567 static void test_pack_RIP_INFO(void)
1568 {
1569 /* RIP_INFO (pack 4) */
1570 TEST_TYPE_SIZE (RIP_INFO, 8)
1571 TEST_TYPE_ALIGN (RIP_INFO, 4)
1572 TEST_FIELD_SIZE (RIP_INFO, dwError, 4)
1573 TEST_FIELD_ALIGN (RIP_INFO, dwError, 4)
1574 TEST_FIELD_OFFSET(RIP_INFO, dwError, 0)
1575 TEST_FIELD_SIZE (RIP_INFO, dwType, 4)
1576 TEST_FIELD_ALIGN (RIP_INFO, dwType, 4)
1577 TEST_FIELD_OFFSET(RIP_INFO, dwType, 4)
1578 }
1579
1580 static void test_pack_SECURITY_ATTRIBUTES(void)
1581 {
1582 /* SECURITY_ATTRIBUTES (pack 4) */
1583 TEST_TYPE_SIZE (SECURITY_ATTRIBUTES, 12)
1584 TEST_TYPE_ALIGN (SECURITY_ATTRIBUTES, 4)
1585 TEST_FIELD_SIZE (SECURITY_ATTRIBUTES, nLength, 4)
1586 TEST_FIELD_ALIGN (SECURITY_ATTRIBUTES, nLength, 4)
1587 TEST_FIELD_OFFSET(SECURITY_ATTRIBUTES, nLength, 0)
1588 TEST_FIELD_SIZE (SECURITY_ATTRIBUTES, lpSecurityDescriptor, 4)
1589 TEST_FIELD_ALIGN (SECURITY_ATTRIBUTES, lpSecurityDescriptor, 4)
1590 TEST_FIELD_OFFSET(SECURITY_ATTRIBUTES, lpSecurityDescriptor, 4)
1591 TEST_FIELD_SIZE (SECURITY_ATTRIBUTES, bInheritHandle, 4)
1592 TEST_FIELD_ALIGN (SECURITY_ATTRIBUTES, bInheritHandle, 4)
1593 TEST_FIELD_OFFSET(SECURITY_ATTRIBUTES, bInheritHandle, 8)
1594 }
1595
1596 static void test_pack_STARTUPINFOA(void)
1597 {
1598 /* STARTUPINFOA (pack 4) */
1599 TEST_TYPE_SIZE (STARTUPINFOA, 68)
1600 TEST_TYPE_ALIGN (STARTUPINFOA, 4)
1601 TEST_FIELD_SIZE (STARTUPINFOA, cb, 4)
1602 TEST_FIELD_ALIGN (STARTUPINFOA, cb, 4)
1603 TEST_FIELD_OFFSET(STARTUPINFOA, cb, 0)
1604 TEST_FIELD_SIZE (STARTUPINFOA, lpReserved, 4)
1605 TEST_FIELD_ALIGN (STARTUPINFOA, lpReserved, 4)
1606 TEST_FIELD_OFFSET(STARTUPINFOA, lpReserved, 4)
1607 TEST_FIELD_SIZE (STARTUPINFOA, lpDesktop, 4)
1608 TEST_FIELD_ALIGN (STARTUPINFOA, lpDesktop, 4)
1609 TEST_FIELD_OFFSET(STARTUPINFOA, lpDesktop, 8)
1610 TEST_FIELD_SIZE (STARTUPINFOA, lpTitle, 4)
1611 TEST_FIELD_ALIGN (STARTUPINFOA, lpTitle, 4)
1612 TEST_FIELD_OFFSET(STARTUPINFOA, lpTitle, 12)
1613 TEST_FIELD_SIZE (STARTUPINFOA, dwX, 4)
1614 TEST_FIELD_ALIGN (STARTUPINFOA, dwX, 4)
1615 TEST_FIELD_OFFSET(STARTUPINFOA, dwX, 16)
1616 TEST_FIELD_SIZE (STARTUPINFOA, dwY, 4)
1617 TEST_FIELD_ALIGN (STARTUPINFOA, dwY, 4)
1618 TEST_FIELD_OFFSET(STARTUPINFOA, dwY, 20)
1619 TEST_FIELD_SIZE (STARTUPINFOA, dwXSize, 4)
1620 TEST_FIELD_ALIGN (STARTUPINFOA, dwXSize, 4)
1621 TEST_FIELD_OFFSET(STARTUPINFOA, dwXSize, 24)
1622 TEST_FIELD_SIZE (STARTUPINFOA, dwYSize, 4)
1623 TEST_FIELD_ALIGN (STARTUPINFOA, dwYSize, 4)
1624 TEST_FIELD_OFFSET(STARTUPINFOA, dwYSize, 28)
1625 TEST_FIELD_SIZE (STARTUPINFOA, dwXCountChars, 4)
1626 TEST_FIELD_ALIGN (STARTUPINFOA, dwXCountChars, 4)
1627 TEST_FIELD_OFFSET(STARTUPINFOA, dwXCountChars, 32)
1628 TEST_FIELD_SIZE (STARTUPINFOA, dwYCountChars, 4)
1629 TEST_FIELD_ALIGN (STARTUPINFOA, dwYCountChars, 4)
1630 TEST_FIELD_OFFSET(STARTUPINFOA, dwYCountChars, 36)
1631 TEST_FIELD_SIZE (STARTUPINFOA, dwFillAttribute, 4)
1632 TEST_FIELD_ALIGN (STARTUPINFOA, dwFillAttribute, 4)
1633 TEST_FIELD_OFFSET(STARTUPINFOA, dwFillAttribute, 40)
1634 TEST_FIELD_SIZE (STARTUPINFOA, dwFlags, 4)
1635 TEST_FIELD_ALIGN (STARTUPINFOA, dwFlags, 4)
1636 TEST_FIELD_OFFSET(STARTUPINFOA, dwFlags, 44)
1637 TEST_FIELD_SIZE (STARTUPINFOA, wShowWindow, 2)
1638 TEST_FIELD_ALIGN (STARTUPINFOA, wShowWindow, 2)
1639 TEST_FIELD_OFFSET(STARTUPINFOA, wShowWindow, 48)
1640 TEST_FIELD_SIZE (STARTUPINFOA, cbReserved2, 2)
1641 TEST_FIELD_ALIGN (STARTUPINFOA, cbReserved2, 2)
1642 TEST_FIELD_OFFSET(STARTUPINFOA, cbReserved2, 50)
1643 TEST_FIELD_SIZE (STARTUPINFOA, lpReserved2, 4)
1644 TEST_FIELD_ALIGN (STARTUPINFOA, lpReserved2, 4)
1645 TEST_FIELD_OFFSET(STARTUPINFOA, lpReserved2, 52)
1646 TEST_FIELD_SIZE (STARTUPINFOA, hStdInput, 4)
1647 TEST_FIELD_ALIGN (STARTUPINFOA, hStdInput, 4)
1648 TEST_FIELD_OFFSET(STARTUPINFOA, hStdInput, 56)
1649 TEST_FIELD_SIZE (STARTUPINFOA, hStdOutput, 4)
1650 TEST_FIELD_ALIGN (STARTUPINFOA, hStdOutput, 4)
1651 TEST_FIELD_OFFSET(STARTUPINFOA, hStdOutput, 60)
1652 TEST_FIELD_SIZE (STARTUPINFOA, hStdError, 4)
1653 TEST_FIELD_ALIGN (STARTUPINFOA, hStdError, 4)
1654 TEST_FIELD_OFFSET(STARTUPINFOA, hStdError, 64)
1655 }
1656
1657 static void test_pack_STARTUPINFOW(void)
1658 {
1659 /* STARTUPINFOW (pack 4) */
1660 TEST_TYPE_SIZE (STARTUPINFOW, 68)
1661 TEST_TYPE_ALIGN (STARTUPINFOW, 4)
1662 TEST_FIELD_SIZE (STARTUPINFOW, cb, 4)
1663 TEST_FIELD_ALIGN (STARTUPINFOW, cb, 4)
1664 TEST_FIELD_OFFSET(STARTUPINFOW, cb, 0)
1665 TEST_FIELD_SIZE (STARTUPINFOW, lpReserved, 4)
1666 TEST_FIELD_ALIGN (STARTUPINFOW, lpReserved, 4)
1667 TEST_FIELD_OFFSET(STARTUPINFOW, lpReserved, 4)
1668 TEST_FIELD_SIZE (STARTUPINFOW, lpDesktop, 4)
1669 TEST_FIELD_ALIGN (STARTUPINFOW, lpDesktop, 4)
1670 TEST_FIELD_OFFSET(STARTUPINFOW, lpDesktop, 8)
1671 TEST_FIELD_SIZE (STARTUPINFOW, lpTitle, 4)
1672 TEST_FIELD_ALIGN (STARTUPINFOW, lpTitle, 4)
1673 TEST_FIELD_OFFSET(STARTUPINFOW, lpTitle, 12)
1674 TEST_FIELD_SIZE (STARTUPINFOW, dwX, 4)
1675 TEST_FIELD_ALIGN (STARTUPINFOW, dwX, 4)
1676 TEST_FIELD_OFFSET(STARTUPINFOW, dwX, 16)
1677 TEST_FIELD_SIZE (STARTUPINFOW, dwY, 4)
1678 TEST_FIELD_ALIGN (STARTUPINFOW, dwY, 4)
1679 TEST_FIELD_OFFSET(STARTUPINFOW, dwY, 20)
1680 TEST_FIELD_SIZE (STARTUPINFOW, dwXSize, 4)
1681 TEST_FIELD_ALIGN (STARTUPINFOW, dwXSize, 4)
1682 TEST_FIELD_OFFSET(STARTUPINFOW, dwXSize, 24)
1683 TEST_FIELD_SIZE (STARTUPINFOW, dwYSize, 4)
1684 TEST_FIELD_ALIGN (STARTUPINFOW, dwYSize, 4)
1685 TEST_FIELD_OFFSET(STARTUPINFOW, dwYSize, 28)
1686 TEST_FIELD_SIZE (STARTUPINFOW, dwXCountChars, 4)
1687 TEST_FIELD_ALIGN (STARTUPINFOW, dwXCountChars, 4)
1688 TEST_FIELD_OFFSET(STARTUPINFOW, dwXCountChars, 32)
1689 TEST_FIELD_SIZE (STARTUPINFOW, dwYCountChars, 4)
1690 TEST_FIELD_ALIGN (STARTUPINFOW, dwYCountChars, 4)
1691 TEST_FIELD_OFFSET(STARTUPINFOW, dwYCountChars, 36)
1692 TEST_FIELD_SIZE (STARTUPINFOW, dwFillAttribute, 4)
1693 TEST_FIELD_ALIGN (STARTUPINFOW, dwFillAttribute, 4)
1694 TEST_FIELD_OFFSET(STARTUPINFOW, dwFillAttribute, 40)
1695 TEST_FIELD_SIZE (STARTUPINFOW, dwFlags, 4)
1696 TEST_FIELD_ALIGN (STARTUPINFOW, dwFlags, 4)
1697 TEST_FIELD_OFFSET(STARTUPINFOW, dwFlags, 44)
1698 TEST_FIELD_SIZE (STARTUPINFOW, wShowWindow, 2)
1699 TEST_FIELD_ALIGN (STARTUPINFOW, wShowWindow, 2)
1700 TEST_FIELD_OFFSET(STARTUPINFOW, wShowWindow, 48)
1701 TEST_FIELD_SIZE (STARTUPINFOW, cbReserved2, 2)
1702 TEST_FIELD_ALIGN (STARTUPINFOW, cbReserved2, 2)
1703 TEST_FIELD_OFFSET(STARTUPINFOW, cbReserved2, 50)
1704 TEST_FIELD_SIZE (STARTUPINFOW, lpReserved2, 4)
1705 TEST_FIELD_ALIGN (STARTUPINFOW, lpReserved2, 4)
1706 TEST_FIELD_OFFSET(STARTUPINFOW, lpReserved2, 52)
1707 TEST_FIELD_SIZE (STARTUPINFOW, hStdInput, 4)
1708 TEST_FIELD_ALIGN (STARTUPINFOW, hStdInput, 4)
1709 TEST_FIELD_OFFSET(STARTUPINFOW, hStdInput, 56)
1710 TEST_FIELD_SIZE (STARTUPINFOW, hStdOutput, 4)
1711 TEST_FIELD_ALIGN (STARTUPINFOW, hStdOutput, 4)
1712 TEST_FIELD_OFFSET(STARTUPINFOW, hStdOutput, 60)
1713 TEST_FIELD_SIZE (STARTUPINFOW, hStdError, 4)
1714 TEST_FIELD_ALIGN (STARTUPINFOW, hStdError, 4)
1715 TEST_FIELD_OFFSET(STARTUPINFOW, hStdError, 64)
1716 }
1717
1718 static void test_pack_SYSTEMTIME(void)
1719 {
1720 /* SYSTEMTIME (pack 4) */
1721 TEST_TYPE_SIZE (SYSTEMTIME, 16)
1722 TEST_TYPE_ALIGN (SYSTEMTIME, 2)
1723 TEST_FIELD_SIZE (SYSTEMTIME, wYear, 2)
1724 TEST_FIELD_ALIGN (SYSTEMTIME, wYear, 2)
1725 TEST_FIELD_OFFSET(SYSTEMTIME, wYear, 0)
1726 TEST_FIELD_SIZE (SYSTEMTIME, wMonth, 2)
1727 TEST_FIELD_ALIGN (SYSTEMTIME, wMonth, 2)
1728 TEST_FIELD_OFFSET(SYSTEMTIME, wMonth, 2)
1729 TEST_FIELD_SIZE (SYSTEMTIME, wDayOfWeek, 2)
1730 TEST_FIELD_ALIGN (SYSTEMTIME, wDayOfWeek, 2)
1731 TEST_FIELD_OFFSET(SYSTEMTIME, wDayOfWeek, 4)
1732 TEST_FIELD_SIZE (SYSTEMTIME, wDay, 2)
1733 TEST_FIELD_ALIGN (SYSTEMTIME, wDay, 2)
1734 TEST_FIELD_OFFSET(SYSTEMTIME, wDay, 6)
1735 TEST_FIELD_SIZE (SYSTEMTIME, wHour, 2)
1736 TEST_FIELD_ALIGN (SYSTEMTIME, wHour, 2)
1737 TEST_FIELD_OFFSET(SYSTEMTIME, wHour, 8)
1738 TEST_FIELD_SIZE (SYSTEMTIME, wMinute, 2)
1739 TEST_FIELD_ALIGN (SYSTEMTIME, wMinute, 2)
1740 TEST_FIELD_OFFSET(SYSTEMTIME, wMinute, 10)
1741 TEST_FIELD_SIZE (SYSTEMTIME, wSecond, 2)
1742 TEST_FIELD_ALIGN (SYSTEMTIME, wSecond, 2)
1743 TEST_FIELD_OFFSET(SYSTEMTIME, wSecond, 12)
1744 TEST_FIELD_SIZE (SYSTEMTIME, wMilliseconds, 2)
1745 TEST_FIELD_ALIGN (SYSTEMTIME, wMilliseconds, 2)
1746 TEST_FIELD_OFFSET(SYSTEMTIME, wMilliseconds, 14)
1747 }
1748
1749 static void test_pack_SYSTEM_INFO(void)
1750 {
1751 /* SYSTEM_INFO (pack 4) */
1752 }
1753
1754 static void test_pack_SYSTEM_POWER_STATUS(void)
1755 {
1756 /* SYSTEM_POWER_STATUS (pack 4) */
1757 TEST_TYPE_SIZE (SYSTEM_POWER_STATUS, 12)
1758 TEST_TYPE_ALIGN (SYSTEM_POWER_STATUS, 4)
1759 TEST_FIELD_SIZE (SYSTEM_POWER_STATUS, ACLineStatus, 1)
1760 TEST_FIELD_ALIGN (SYSTEM_POWER_STATUS, ACLineStatus, 1)
1761 TEST_FIELD_OFFSET(SYSTEM_POWER_STATUS, ACLineStatus, 0)
1762 TEST_FIELD_SIZE (SYSTEM_POWER_STATUS, BatteryFlag, 1)
1763 TEST_FIELD_ALIGN (SYSTEM_POWER_STATUS, BatteryFlag, 1)
1764 TEST_FIELD_OFFSET(SYSTEM_POWER_STATUS, BatteryFlag, 1)
1765 TEST_FIELD_SIZE (SYSTEM_POWER_STATUS, BatteryLifePercent, 1)
1766 TEST_FIELD_ALIGN (SYSTEM_POWER_STATUS, BatteryLifePercent, 1)
1767 TEST_FIELD_OFFSET(SYSTEM_POWER_STATUS, BatteryLifePercent, 2)
1768 TEST_FIELD_SIZE (SYSTEM_POWER_STATUS, Reserved1, 1)
1769 TEST_FIELD_ALIGN (SYSTEM_POWER_STATUS, Reserved1, 1)
1770 TEST_FIELD_OFFSET(SYSTEM_POWER_STATUS, Reserved1, 3)
1771 TEST_FIELD_SIZE (SYSTEM_POWER_STATUS, BatteryLifeTime, 4)
1772 TEST_FIELD_ALIGN (SYSTEM_POWER_STATUS, BatteryLifeTime, 4)
1773 TEST_FIELD_OFFSET(SYSTEM_POWER_STATUS, BatteryLifeTime, 4)
1774 TEST_FIELD_SIZE (SYSTEM_POWER_STATUS, BatteryFullLifeTime, 4)
1775 TEST_FIELD_ALIGN (SYSTEM_POWER_STATUS, BatteryFullLifeTime, 4)
1776 TEST_FIELD_OFFSET(SYSTEM_POWER_STATUS, BatteryFullLifeTime, 8)
1777 }
1778
1779 static void test_pack_TIME_ZONE_INFORMATION(void)
1780 {
1781 /* TIME_ZONE_INFORMATION (pack 4) */
1782 TEST_TYPE_SIZE (TIME_ZONE_INFORMATION, 172)
1783 TEST_TYPE_ALIGN (TIME_ZONE_INFORMATION, 4)
1784 TEST_FIELD_SIZE (TIME_ZONE_INFORMATION, Bias, 4)
1785 TEST_FIELD_ALIGN (TIME_ZONE_INFORMATION, Bias, 4)
1786 TEST_FIELD_OFFSET(TIME_ZONE_INFORMATION, Bias, 0)
1787 TEST_FIELD_SIZE (TIME_ZONE_INFORMATION, StandardName, 64)
1788 TEST_FIELD_ALIGN (TIME_ZONE_INFORMATION, StandardName, 2)
1789 TEST_FIELD_OFFSET(TIME_ZONE_INFORMATION, StandardName, 4)
1790 TEST_FIELD_SIZE (TIME_ZONE_INFORMATION, StandardDate, 16)
1791 TEST_FIELD_ALIGN (TIME_ZONE_INFORMATION, StandardDate, 2)
1792 TEST_FIELD_OFFSET(TIME_ZONE_INFORMATION, StandardDate, 68)
1793 TEST_FIELD_SIZE (TIME_ZONE_INFORMATION, StandardBias, 4)
1794 TEST_FIELD_ALIGN (TIME_ZONE_INFORMATION, StandardBias, 4)
1795 TEST_FIELD_OFFSET(TIME_ZONE_INFORMATION, StandardBias, 84)
1796 TEST_FIELD_SIZE (TIME_ZONE_INFORMATION, DaylightName, 64)
1797 TEST_FIELD_ALIGN (TIME_ZONE_INFORMATION, DaylightName, 2)
1798 TEST_FIELD_OFFSET(TIME_ZONE_INFORMATION, DaylightName, 88)
1799 TEST_FIELD_SIZE (TIME_ZONE_INFORMATION, DaylightDate, 16)
1800 TEST_FIELD_ALIGN (TIME_ZONE_INFORMATION, DaylightDate, 2)
1801 TEST_FIELD_OFFSET(TIME_ZONE_INFORMATION, DaylightDate, 152)
1802 TEST_FIELD_SIZE (TIME_ZONE_INFORMATION, DaylightBias, 4)
1803 TEST_FIELD_ALIGN (TIME_ZONE_INFORMATION, DaylightBias, 4)
1804 TEST_FIELD_OFFSET(TIME_ZONE_INFORMATION, DaylightBias, 168)
1805 }
1806
1807 static void test_pack_UNLOAD_DLL_DEBUG_INFO(void)
1808 {
1809 /* UNLOAD_DLL_DEBUG_INFO (pack 4) */
1810 TEST_TYPE_SIZE (UNLOAD_DLL_DEBUG_INFO, 4)
1811 TEST_TYPE_ALIGN (UNLOAD_DLL_DEBUG_INFO, 4)
1812 TEST_FIELD_SIZE (UNLOAD_DLL_DEBUG_INFO, lpBaseOfDll, 4)
1813 TEST_FIELD_ALIGN (UNLOAD_DLL_DEBUG_INFO, lpBaseOfDll, 4)
1814 TEST_FIELD_OFFSET(UNLOAD_DLL_DEBUG_INFO, lpBaseOfDll, 0)
1815 }
1816
1817 static void test_pack_WAITORTIMERCALLBACK(void)
1818 {
1819 /* WAITORTIMERCALLBACK */
1820 TEST_TYPE_SIZE (WAITORTIMERCALLBACK, 4)
1821 TEST_TYPE_ALIGN (WAITORTIMERCALLBACK, 4)
1822 }
1823
1824 static void test_pack_WIN32_FILE_ATTRIBUTE_DATA(void)
1825 {
1826 /* WIN32_FILE_ATTRIBUTE_DATA (pack 4) */
1827 TEST_TYPE_SIZE (WIN32_FILE_ATTRIBUTE_DATA, 36)
1828 TEST_TYPE_ALIGN (WIN32_FILE_ATTRIBUTE_DATA, 4)
1829 TEST_FIELD_SIZE (WIN32_FILE_ATTRIBUTE_DATA, dwFileAttributes, 4)
1830 TEST_FIELD_ALIGN (WIN32_FILE_ATTRIBUTE_DATA, dwFileAttributes, 4)
1831 TEST_FIELD_OFFSET(WIN32_FILE_ATTRIBUTE_DATA, dwFileAttributes, 0)
1832 TEST_FIELD_SIZE (WIN32_FILE_ATTRIBUTE_DATA, ftCreationTime, 8)
1833 TEST_FIELD_ALIGN (WIN32_FILE_ATTRIBUTE_DATA, ftCreationTime, 4)
1834 TEST_FIELD_OFFSET(WIN32_FILE_ATTRIBUTE_DATA, ftCreationTime, 4)
1835 TEST_FIELD_SIZE (WIN32_FILE_ATTRIBUTE_DATA, ftLastAccessTime, 8)
1836 TEST_FIELD_ALIGN (WIN32_FILE_ATTRIBUTE_DATA, ftLastAccessTime, 4)
1837 TEST_FIELD_OFFSET(WIN32_FILE_ATTRIBUTE_DATA, ftLastAccessTime, 12)
1838 TEST_FIELD_SIZE (WIN32_FILE_ATTRIBUTE_DATA, ftLastWriteTime, 8)
1839 TEST_FIELD_ALIGN (WIN32_FILE_ATTRIBUTE_DATA, ftLastWriteTime, 4)
1840 TEST_FIELD_OFFSET(WIN32_FILE_ATTRIBUTE_DATA, ftLastWriteTime, 20)
1841 TEST_FIELD_SIZE (WIN32_FILE_ATTRIBUTE_DATA, nFileSizeHigh, 4)
1842 TEST_FIELD_ALIGN (WIN32_FILE_ATTRIBUTE_DATA, nFileSizeHigh, 4)
1843 TEST_FIELD_OFFSET(WIN32_FILE_ATTRIBUTE_DATA, nFileSizeHigh, 28)
1844 TEST_FIELD_SIZE (WIN32_FILE_ATTRIBUTE_DATA, nFileSizeLow, 4)
1845 TEST_FIELD_ALIGN (WIN32_FILE_ATTRIBUTE_DATA, nFileSizeLow, 4)
1846 TEST_FIELD_OFFSET(WIN32_FILE_ATTRIBUTE_DATA, nFileSizeLow, 32)
1847 }
1848
1849 static void test_pack_WIN32_FIND_DATAA(void)
1850 {
1851 /* WIN32_FIND_DATAA (pack 4) */
1852 TEST_TYPE_SIZE (WIN32_FIND_DATAA, 320)
1853 TEST_TYPE_ALIGN (WIN32_FIND_DATAA, 4)
1854 TEST_FIELD_SIZE (WIN32_FIND_DATAA, dwFileAttributes, 4)
1855 TEST_FIELD_ALIGN (WIN32_FIND_DATAA, dwFileAttributes, 4)
1856 TEST_FIELD_OFFSET(WIN32_FIND_DATAA, dwFileAttributes, 0)
1857 TEST_FIELD_SIZE (WIN32_FIND_DATAA, ftCreationTime, 8)
1858 TEST_FIELD_ALIGN (WIN32_FIND_DATAA, ftCreationTime, 4)
1859 TEST_FIELD_OFFSET(WIN32_FIND_DATAA, ftCreationTime, 4)
1860 TEST_FIELD_SIZE (WIN32_FIND_DATAA, ftLastAccessTime, 8)
1861 TEST_FIELD_ALIGN (WIN32_FIND_DATAA, ftLastAccessTime, 4)
1862 TEST_FIELD_OFFSET(WIN32_FIND_DATAA, ftLastAccessTime, 12)
1863 TEST_FIELD_SIZE (WIN32_FIND_DATAA, ftLastWriteTime, 8)
1864 TEST_FIELD_ALIGN (WIN32_FIND_DATAA, ftLastWriteTime, 4)
1865 TEST_FIELD_OFFSET(WIN32_FIND_DATAA, ftLastWriteTime, 20)
1866 TEST_FIELD_SIZE (WIN32_FIND_DATAA, nFileSizeHigh, 4)
1867 TEST_FIELD_ALIGN (WIN32_FIND_DATAA, nFileSizeHigh, 4)
1868 TEST_FIELD_OFFSET(WIN32_FIND_DATAA, nFileSizeHigh, 28)
1869 TEST_FIELD_SIZE (WIN32_FIND_DATAA, nFileSizeLow, 4)
1870 TEST_FIELD_ALIGN (WIN32_FIND_DATAA, nFileSizeLow, 4)
1871 TEST_FIELD_OFFSET(WIN32_FIND_DATAA, nFileSizeLow, 32)
1872 TEST_FIELD_SIZE (WIN32_FIND_DATAA, dwReserved0, 4)
1873 TEST_FIELD_ALIGN (WIN32_FIND_DATAA, dwReserved0, 4)
1874 TEST_FIELD_OFFSET(WIN32_FIND_DATAA, dwReserved0, 36)
1875 TEST_FIELD_SIZE (WIN32_FIND_DATAA, dwReserved1, 4)
1876 TEST_FIELD_ALIGN (WIN32_FIND_DATAA, dwReserved1, 4)
1877 TEST_FIELD_OFFSET(WIN32_FIND_DATAA, dwReserved1, 40)
1878 TEST_FIELD_SIZE (WIN32_FIND_DATAA, cFileName, 260)
1879 TEST_FIELD_ALIGN (WIN32_FIND_DATAA, cFileName, 1)
1880 TEST_FIELD_OFFSET(WIN32_FIND_DATAA, cFileName, 44)
1881 TEST_FIELD_SIZE (WIN32_FIND_DATAA, cAlternateFileName, 14)
1882 TEST_FIELD_ALIGN (WIN32_FIND_DATAA, cAlternateFileName, 1)
1883 TEST_FIELD_OFFSET(WIN32_FIND_DATAA, cAlternateFileName, 304)
1884 }
1885
1886 static void test_pack_WIN32_FIND_DATAW(void)
1887 {
1888 /* WIN32_FIND_DATAW (pack 4) */
1889 TEST_TYPE_SIZE (WIN32_FIND_DATAW, 592)
1890 TEST_TYPE_ALIGN (WIN32_FIND_DATAW, 4)
1891 TEST_FIELD_SIZE (WIN32_FIND_DATAW, dwFileAttributes, 4)
1892 TEST_FIELD_ALIGN (WIN32_FIND_DATAW, dwFileAttributes, 4)
1893 TEST_FIELD_OFFSET(WIN32_FIND_DATAW, dwFileAttributes, 0)
1894 TEST_FIELD_SIZE (WIN32_FIND_DATAW, ftCreationTime, 8)
1895 TEST_FIELD_ALIGN (WIN32_FIND_DATAW, ftCreationTime, 4)
1896 TEST_FIELD_OFFSET(WIN32_FIND_DATAW, ftCreationTime, 4)
1897 TEST_FIELD_SIZE (WIN32_FIND_DATAW, ftLastAccessTime, 8)
1898 TEST_FIELD_ALIGN (WIN32_FIND_DATAW, ftLastAccessTime, 4)
1899 TEST_FIELD_OFFSET(WIN32_FIND_DATAW, ftLastAccessTime, 12)
1900 TEST_FIELD_SIZE (WIN32_FIND_DATAW, ftLastWriteTime, 8)
1901 TEST_FIELD_ALIGN (WIN32_FIND_DATAW, ftLastWriteTime, 4)
1902 TEST_FIELD_OFFSET(WIN32_FIND_DATAW, ftLastWriteTime, 20)
1903 TEST_FIELD_SIZE (WIN32_FIND_DATAW, nFileSizeHigh, 4)
1904 TEST_FIELD_ALIGN (WIN32_FIND_DATAW, nFileSizeHigh, 4)
1905 TEST_FIELD_OFFSET(WIN32_FIND_DATAW, nFileSizeHigh, 28)
1906 TEST_FIELD_SIZE (WIN32_FIND_DATAW, nFileSizeLow, 4)
1907 TEST_FIELD_ALIGN (WIN32_FIND_DATAW, nFileSizeLow, 4)
1908 TEST_FIELD_OFFSET(WIN32_FIND_DATAW, nFileSizeLow, 32)
1909 TEST_FIELD_SIZE (WIN32_FIND_DATAW, dwReserved0, 4)
1910 TEST_FIELD_ALIGN (WIN32_FIND_DATAW, dwReserved0, 4)
1911 TEST_FIELD_OFFSET(WIN32_FIND_DATAW, dwReserved0, 36)
1912 TEST_FIELD_SIZE (WIN32_FIND_DATAW, dwReserved1, 4)
1913 TEST_FIELD_ALIGN (WIN32_FIND_DATAW, dwReserved1, 4)
1914 TEST_FIELD_OFFSET(WIN32_FIND_DATAW, dwReserved1, 40)
1915 TEST_FIELD_SIZE (WIN32_FIND_DATAW, cFileName, 520)
1916 TEST_FIELD_ALIGN (WIN32_FIND_DATAW, cFileName, 2)
1917 TEST_FIELD_OFFSET(WIN32_FIND_DATAW, cFileName, 44)
1918 TEST_FIELD_SIZE (WIN32_FIND_DATAW, cAlternateFileName, 28)
1919 TEST_FIELD_ALIGN (WIN32_FIND_DATAW, cAlternateFileName, 2)
1920 TEST_FIELD_OFFSET(WIN32_FIND_DATAW, cAlternateFileName, 564)
1921 }
1922
1923 static void test_pack_WIN32_STREAM_ID(void)
1924 {
1925 /* WIN32_STREAM_ID (pack 8) */
1926 TEST_TYPE_SIZE (WIN32_STREAM_ID, 24)
1927 TEST_TYPE_ALIGN (WIN32_STREAM_ID, 8)
1928 TEST_FIELD_SIZE (WIN32_STREAM_ID, dwStreamId, 4)
1929 TEST_FIELD_ALIGN (WIN32_STREAM_ID, dwStreamId, 4)
1930 TEST_FIELD_OFFSET(WIN32_STREAM_ID, dwStreamId, 0)
1931 TEST_FIELD_SIZE (WIN32_STREAM_ID, dwStreamAttributes, 4)
1932 TEST_FIELD_ALIGN (WIN32_STREAM_ID, dwStreamAttributes, 4)
1933 TEST_FIELD_OFFSET(WIN32_STREAM_ID, dwStreamAttributes, 4)
1934 TEST_FIELD_SIZE (WIN32_STREAM_ID, Size, 8)
1935 TEST_FIELD_ALIGN (WIN32_STREAM_ID, Size, 8)
1936 TEST_FIELD_OFFSET(WIN32_STREAM_ID, Size, 8)
1937 TEST_FIELD_SIZE (WIN32_STREAM_ID, dwStreamNameSize, 4)
1938 TEST_FIELD_ALIGN (WIN32_STREAM_ID, dwStreamNameSize, 4)
1939 TEST_FIELD_OFFSET(WIN32_STREAM_ID, dwStreamNameSize, 16)
1940 TEST_FIELD_SIZE (WIN32_STREAM_ID, cStreamName, 2)
1941 TEST_FIELD_ALIGN (WIN32_STREAM_ID, cStreamName, 2)
1942 TEST_FIELD_OFFSET(WIN32_STREAM_ID, cStreamName, 20)
1943 }
1944
1945 static void test_pack(void)
1946 {
1947 test_pack_ACTCTXA();
1948 test_pack_ACTCTXW();
1949 test_pack_ACTCTX_SECTION_KEYED_DATA();
1950 test_pack_ACTCTX_SECTION_KEYED_DATA_2600();
1951 test_pack_ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA();
1952 test_pack_ACTIVATION_CONTEXT_BASIC_INFORMATION();
1953 test_pack_BY_HANDLE_FILE_INFORMATION();
1954 test_pack_COMMCONFIG();
1955 test_pack_COMMPROP();
1956 test_pack_COMMTIMEOUTS();
1957 test_pack_COMSTAT();
1958 test_pack_CREATE_PROCESS_DEBUG_INFO();
1959 test_pack_CREATE_THREAD_DEBUG_INFO();
1960 test_pack_CRITICAL_SECTION();
1961 test_pack_CRITICAL_SECTION_DEBUG();
1962 test_pack_DCB();
1963 test_pack_DEBUG_EVENT();
1964 test_pack_ENUMRESLANGPROCA();
1965 test_pack_ENUMRESLANGPROCW();
1966 test_pack_ENUMRESNAMEPROCA();
1967 test_pack_ENUMRESNAMEPROCW();
1968 test_pack_ENUMRESTYPEPROCA();
1969 test_pack_ENUMRESTYPEPROCW();
1970 test_pack_EXCEPTION_DEBUG_INFO();
1971 test_pack_EXIT_PROCESS_DEBUG_INFO();
1972 test_pack_EXIT_THREAD_DEBUG_INFO();
1973 test_pack_HW_PROFILE_INFOA();
1974 test_pack_HW_PROFILE_INFOW();
1975 test_pack_LOAD_DLL_DEBUG_INFO();
1976 test_pack_LPBY_HANDLE_FILE_INFORMATION();
1977 test_pack_LPCOMMCONFIG();
1978 test_pack_LPCOMMPROP();
1979 test_pack_LPCOMMTIMEOUTS();
1980 test_pack_LPCOMSTAT();
1981 test_pack_LPCRITICAL_SECTION();
1982 test_pack_LPCRITICAL_SECTION_DEBUG();
1983 test_pack_LPDCB();
1984 test_pack_LPDEBUG_EVENT();
1985 test_pack_LPEXCEPTION_POINTERS();
1986 test_pack_LPEXCEPTION_RECORD();
1987 test_pack_LPFIBER_START_ROUTINE();
1988 test_pack_LPHW_PROFILE_INFOA();
1989 test_pack_LPHW_PROFILE_INFOW();
1990 test_pack_LPLONG();
1991 test_pack_LPMEMORYSTATUS();
1992 test_pack_LPMEMORYSTATUSEX();
1993 test_pack_LPOFSTRUCT();
1994 test_pack_LPOSVERSIONINFOA();
1995 test_pack_LPOSVERSIONINFOEXA();
1996 test_pack_LPOSVERSIONINFOEXW();
1997 test_pack_LPOSVERSIONINFOW();
1998 test_pack_LPOVERLAPPED();
1999 test_pack_LPOVERLAPPED_COMPLETION_ROUTINE();
2000 test_pack_LPPROCESS_HEAP_ENTRY();
2001 test_pack_LPPROCESS_INFORMATION();
2002 test_pack_LPPROGRESS_ROUTINE();
2003 test_pack_LPSECURITY_ATTRIBUTES();
2004 test_pack_LPSTARTUPINFOA();
2005 test_pack_LPSTARTUPINFOW();
2006 test_pack_LPSYSTEMTIME();
2007 test_pack_LPSYSTEM_INFO();
2008 test_pack_LPSYSTEM_POWER_STATUS();
2009 test_pack_LPTHREAD_START_ROUTINE();
2010 test_pack_LPTIME_ZONE_INFORMATION();
2011 test_pack_LPVOID();
2012 test_pack_LPWIN32_FILE_ATTRIBUTE_DATA();
2013 test_pack_LPWIN32_FIND_DATAA();
2014 test_pack_LPWIN32_FIND_DATAW();
2015 test_pack_LPWIN32_STREAM_ID();
2016 test_pack_MEMORYSTATUS();
2017 test_pack_MEMORYSTATUSEX();
2018 test_pack_OFSTRUCT();
2019 test_pack_OSVERSIONINFOA();
2020 test_pack_OSVERSIONINFOEXA();
2021 test_pack_OSVERSIONINFOEXW();
2022 test_pack_OSVERSIONINFOW();
2023 test_pack_OUTPUT_DEBUG_STRING_INFO();
2024 test_pack_PACTCTXA();
2025 test_pack_PACTCTXW();
2026 test_pack_PACTCTX_SECTION_KEYED_DATA();
2027 test_pack_PACTCTX_SECTION_KEYED_DATA_2600();
2028 test_pack_PACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA();
2029 test_pack_PACTIVATION_CONTEXT_BASIC_INFORMATION();
2030 test_pack_PAPCFUNC();
2031 test_pack_PBY_HANDLE_FILE_INFORMATION();
2032 test_pack_PCACTCTXA();
2033 test_pack_PCACTCTXW();
2034 test_pack_PCACTCTX_SECTION_KEYED_DATA();
2035 test_pack_PCACTCTX_SECTION_KEYED_DATA_2600();
2036 test_pack_PCACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA();
2037 test_pack_PCRITICAL_SECTION();
2038 test_pack_PCRITICAL_SECTION_DEBUG();
2039 test_pack_PFIBER_START_ROUTINE();
2040 test_pack_PHKEY();
2041 test_pack_POFSTRUCT();
2042 test_pack_POSVERSIONINFOA();
2043 test_pack_POSVERSIONINFOEXA();
2044 test_pack_POSVERSIONINFOEXW();
2045 test_pack_POSVERSIONINFOW();
2046 test_pack_PPROCESS_HEAP_ENTRY();
2047 test_pack_PPROCESS_INFORMATION();
2048 test_pack_PQUERYACTCTXW_FUNC();
2049 test_pack_PROCESS_HEAP_ENTRY();
2050 test_pack_PROCESS_INFORMATION();
2051 test_pack_PSECURITY_ATTRIBUTES();
2052 test_pack_PSYSTEMTIME();
2053 test_pack_PTIMERAPCROUTINE();
2054 test_pack_PTIME_ZONE_INFORMATION();
2055 test_pack_PWIN32_FIND_DATAA();
2056 test_pack_PWIN32_FIND_DATAW();
2057 test_pack_RIP_INFO();
2058 test_pack_SECURITY_ATTRIBUTES();
2059 test_pack_STARTUPINFOA();
2060 test_pack_STARTUPINFOW();
2061 test_pack_SYSTEMTIME();
2062 test_pack_SYSTEM_INFO();
2063 test_pack_SYSTEM_POWER_STATUS();
2064 test_pack_TIME_ZONE_INFORMATION();
2065 test_pack_UNLOAD_DLL_DEBUG_INFO();
2066 test_pack_WAITORTIMERCALLBACK();
2067 test_pack_WIN32_FILE_ATTRIBUTE_DATA();
2068 test_pack_WIN32_FIND_DATAA();
2069 test_pack_WIN32_FIND_DATAW();
2070 test_pack_WIN32_STREAM_ID();
2071 }
2072
2073 START_TEST(generated)
2074 {
2075 #ifdef _WIN64
2076 ok(0, "The type size / alignment tests don't support Win64 yet\n");
2077 #else
2078 test_pack();
2079 #endif
2080 }