1 /* File generated automatically from tools/winapi/test.dat; do not edit! */
2 /* This file can be copied, modified and distributed without restriction. */
5 * Unit tests for data structure packing
9 #define _WIN32_IE 0x0501
10 #define _WIN32_WINNT 0x0501
12 #define WINE_NOWINSOCK
16 #include "wine/test.h"
18 /***********************************************************************
22 #define DWORD_PTR UINT_PTR
23 #define LONG_PTR INT_PTR
24 #define ULONG_PTR UINT_PTR
26 /***********************************************************************
27 * Windows API extension
30 #if defined(_MSC_VER) && (_MSC_VER >= 1300) && defined(__cplusplus)
31 # define FIELD_ALIGNMENT(type, field) __alignof(((type*)0)->field)
32 #elif defined(__GNUC__)
33 # define FIELD_ALIGNMENT(type, field) __alignof__(((type*)0)->field)
35 /* FIXME: Not sure if is possible to do without compiler extension */
38 #if defined(_MSC_VER) && (_MSC_VER >= 1300) && defined(__cplusplus)
39 # define _TYPE_ALIGNMENT(type) __alignof(type)
40 #elif defined(__GNUC__)
41 # define _TYPE_ALIGNMENT(type) __alignof__(type)
44 * FIXME: Not sure if is possible to do without compiler extension
45 * (if type is not just a name that is, if so the normal)
46 * TYPE_ALIGNMENT can be used)
50 #if defined(TYPE_ALIGNMENT) && defined(_MSC_VER) && _MSC_VER >= 800 && !defined(__cplusplus)
51 #pragma warning(disable:4116)
54 #if !defined(TYPE_ALIGNMENT) && defined(_TYPE_ALIGNMENT)
55 # define TYPE_ALIGNMENT _TYPE_ALIGNMENT
58 /***********************************************************************
62 #ifdef FIELD_ALIGNMENT
63 # define TEST_FIELD_ALIGNMENT(type, field, align) \
64 ok(FIELD_ALIGNMENT(type, field) == align, \
65 "FIELD_ALIGNMENT(" #type ", " #field ") == %d (expected " #align ")\n", \
66 (int)FIELD_ALIGNMENT(type, field))
68 # define TEST_FIELD_ALIGNMENT(type, field, align) do { } while (0)
71 #define TEST_FIELD_OFFSET(type, field, offset) \
72 ok(FIELD_OFFSET(type, field) == offset, \
73 "FIELD_OFFSET(" #type ", " #field ") == %ld (expected " #offset ")\n", \
74 (long int)FIELD_OFFSET(type, field))
76 #ifdef _TYPE_ALIGNMENT
77 #define TEST__TYPE_ALIGNMENT(type, align) \
78 ok(_TYPE_ALIGNMENT(type) == align, "TYPE_ALIGNMENT(" #type ") == %d (expected " #align ")\n", (int)_TYPE_ALIGNMENT(type))
80 # define TEST__TYPE_ALIGNMENT(type, align) do { } while (0)
84 #define TEST_TYPE_ALIGNMENT(type, align) \
85 ok(TYPE_ALIGNMENT(type) == align, "TYPE_ALIGNMENT(" #type ") == %d (expected " #align ")\n", (int)TYPE_ALIGNMENT(type))
87 # define TEST_TYPE_ALIGNMENT(type, align) do { } while (0)
90 #define TEST_TYPE_SIZE(type, size) \
91 ok(sizeof(type) == size, "sizeof(" #type ") == %d (expected " #size ")\n", ((int) sizeof(type)))
93 /***********************************************************************
97 #define TEST_FIELD(type, field_type, field_name, field_offset, field_size, field_align) \
98 TEST_TYPE_SIZE(field_type, field_size); \
99 TEST_FIELD_ALIGNMENT(type, field_name, field_align); \
100 TEST_FIELD_OFFSET(type, field_name, field_offset); \
102 #define TEST_TYPE(type, size, align) \
103 TEST_TYPE_ALIGNMENT(type, align); \
104 TEST_TYPE_SIZE(type, size)
106 #define TEST_TYPE_POINTER(type, size, align) \
107 TEST__TYPE_ALIGNMENT(*(type)0, align); \
108 TEST_TYPE_SIZE(*(type)0, size)
110 #define TEST_TYPE_SIGNED(type) \
111 ok((type) -1 < 0, "(" #type ") -1 < 0\n");
113 #define TEST_TYPE_UNSIGNED(type) \
114 ok((type) -1 > 0, "(" #type ") -1 > 0\n");
116 static void test_pack_LPOSVERSIONINFOA(void)
118 /* LPOSVERSIONINFOA */
119 TEST_TYPE(LPOSVERSIONINFOA, 4, 4);
120 TEST_TYPE_POINTER(LPOSVERSIONINFOA, 148, 4);
123 static void test_pack_LPOSVERSIONINFOEXA(void)
125 /* LPOSVERSIONINFOEXA */
126 TEST_TYPE(LPOSVERSIONINFOEXA, 4, 4);
127 TEST_TYPE_POINTER(LPOSVERSIONINFOEXA, 156, 4);
130 static void test_pack_LPOSVERSIONINFOEXW(void)
132 /* LPOSVERSIONINFOEXW */
133 TEST_TYPE(LPOSVERSIONINFOEXW, 4, 4);
134 TEST_TYPE_POINTER(LPOSVERSIONINFOEXW, 284, 4);
137 static void test_pack_LPOSVERSIONINFOW(void)
139 /* LPOSVERSIONINFOW */
140 TEST_TYPE(LPOSVERSIONINFOW, 4, 4);
141 TEST_TYPE_POINTER(LPOSVERSIONINFOW, 276, 4);
144 static void test_pack_OSVERSIONINFOA(void)
146 /* OSVERSIONINFOA (pack 4) */
147 TEST_TYPE(OSVERSIONINFOA, 148, 4);
148 TEST_FIELD(OSVERSIONINFOA, DWORD, dwOSVersionInfoSize, 0, 4, 4);
149 TEST_FIELD(OSVERSIONINFOA, DWORD, dwMajorVersion, 4, 4, 4);
150 TEST_FIELD(OSVERSIONINFOA, DWORD, dwMinorVersion, 8, 4, 4);
151 TEST_FIELD(OSVERSIONINFOA, DWORD, dwBuildNumber, 12, 4, 4);
152 TEST_FIELD(OSVERSIONINFOA, DWORD, dwPlatformId, 16, 4, 4);
153 TEST_FIELD(OSVERSIONINFOA, CHAR[128], szCSDVersion, 20, 128, 1);
156 static void test_pack_OSVERSIONINFOEXA(void)
158 /* OSVERSIONINFOEXA (pack 4) */
159 TEST_TYPE(OSVERSIONINFOEXA, 156, 4);
160 TEST_FIELD(OSVERSIONINFOEXA, DWORD, dwOSVersionInfoSize, 0, 4, 4);
161 TEST_FIELD(OSVERSIONINFOEXA, DWORD, dwMajorVersion, 4, 4, 4);
162 TEST_FIELD(OSVERSIONINFOEXA, DWORD, dwMinorVersion, 8, 4, 4);
163 TEST_FIELD(OSVERSIONINFOEXA, DWORD, dwBuildNumber, 12, 4, 4);
164 TEST_FIELD(OSVERSIONINFOEXA, DWORD, dwPlatformId, 16, 4, 4);
165 TEST_FIELD(OSVERSIONINFOEXA, CHAR[128], szCSDVersion, 20, 128, 1);
166 TEST_FIELD(OSVERSIONINFOEXA, WORD, wServicePackMajor, 148, 2, 2);
167 TEST_FIELD(OSVERSIONINFOEXA, WORD, wServicePackMinor, 150, 2, 2);
168 TEST_FIELD(OSVERSIONINFOEXA, WORD, wSuiteMask, 152, 2, 2);
169 TEST_FIELD(OSVERSIONINFOEXA, BYTE, wProductType, 154, 1, 1);
170 TEST_FIELD(OSVERSIONINFOEXA, BYTE, wReserved, 155, 1, 1);
173 static void test_pack_OSVERSIONINFOEXW(void)
175 /* OSVERSIONINFOEXW (pack 4) */
176 TEST_TYPE(OSVERSIONINFOEXW, 284, 4);
177 TEST_FIELD(OSVERSIONINFOEXW, DWORD, dwOSVersionInfoSize, 0, 4, 4);
178 TEST_FIELD(OSVERSIONINFOEXW, DWORD, dwMajorVersion, 4, 4, 4);
179 TEST_FIELD(OSVERSIONINFOEXW, DWORD, dwMinorVersion, 8, 4, 4);
180 TEST_FIELD(OSVERSIONINFOEXW, DWORD, dwBuildNumber, 12, 4, 4);
181 TEST_FIELD(OSVERSIONINFOEXW, DWORD, dwPlatformId, 16, 4, 4);
182 TEST_FIELD(OSVERSIONINFOEXW, WCHAR[128], szCSDVersion, 20, 256, 2);
183 TEST_FIELD(OSVERSIONINFOEXW, WORD, wServicePackMajor, 276, 2, 2);
184 TEST_FIELD(OSVERSIONINFOEXW, WORD, wServicePackMinor, 278, 2, 2);
185 TEST_FIELD(OSVERSIONINFOEXW, WORD, wSuiteMask, 280, 2, 2);
186 TEST_FIELD(OSVERSIONINFOEXW, BYTE, wProductType, 282, 1, 1);
187 TEST_FIELD(OSVERSIONINFOEXW, BYTE, wReserved, 283, 1, 1);
190 static void test_pack_OSVERSIONINFOW(void)
192 /* OSVERSIONINFOW (pack 4) */
193 TEST_TYPE(OSVERSIONINFOW, 276, 4);
194 TEST_FIELD(OSVERSIONINFOW, DWORD, dwOSVersionInfoSize, 0, 4, 4);
195 TEST_FIELD(OSVERSIONINFOW, DWORD, dwMajorVersion, 4, 4, 4);
196 TEST_FIELD(OSVERSIONINFOW, DWORD, dwMinorVersion, 8, 4, 4);
197 TEST_FIELD(OSVERSIONINFOW, DWORD, dwBuildNumber, 12, 4, 4);
198 TEST_FIELD(OSVERSIONINFOW, DWORD, dwPlatformId, 16, 4, 4);
199 TEST_FIELD(OSVERSIONINFOW, WCHAR[128], szCSDVersion, 20, 256, 2);
202 static void test_pack_POSVERSIONINFOA(void)
204 /* POSVERSIONINFOA */
205 TEST_TYPE(POSVERSIONINFOA, 4, 4);
206 TEST_TYPE_POINTER(POSVERSIONINFOA, 148, 4);
209 static void test_pack_POSVERSIONINFOEXA(void)
211 /* POSVERSIONINFOEXA */
212 TEST_TYPE(POSVERSIONINFOEXA, 4, 4);
213 TEST_TYPE_POINTER(POSVERSIONINFOEXA, 156, 4);
216 static void test_pack_POSVERSIONINFOEXW(void)
218 /* POSVERSIONINFOEXW */
219 TEST_TYPE(POSVERSIONINFOEXW, 4, 4);
220 TEST_TYPE_POINTER(POSVERSIONINFOEXW, 284, 4);
223 static void test_pack_POSVERSIONINFOW(void)
225 /* POSVERSIONINFOW */
226 TEST_TYPE(POSVERSIONINFOW, 4, 4);
227 TEST_TYPE_POINTER(POSVERSIONINFOW, 276, 4);
230 static void test_pack_LPLONG(void)
233 TEST_TYPE(LPLONG, 4, 4);
236 static void test_pack_LPVOID(void)
239 TEST_TYPE(LPVOID, 4, 4);
242 static void test_pack_PHKEY(void)
245 TEST_TYPE(PHKEY, 4, 4);
248 static void test_pack_ACTCTXA(void)
250 /* ACTCTXA (pack 4) */
251 TEST_TYPE(ACTCTXA, 32, 4);
252 TEST_FIELD(ACTCTXA, ULONG, cbSize, 0, 4, 4);
253 TEST_FIELD(ACTCTXA, DWORD, dwFlags, 4, 4, 4);
254 TEST_FIELD(ACTCTXA, LPCSTR, lpSource, 8, 4, 4);
255 TEST_FIELD(ACTCTXA, USHORT, wProcessorArchitecture, 12, 2, 2);
256 TEST_FIELD(ACTCTXA, LANGID, wLangId, 14, 2, 2);
257 TEST_FIELD(ACTCTXA, LPCSTR, lpAssemblyDirectory, 16, 4, 4);
258 TEST_FIELD(ACTCTXA, LPCSTR, lpResourceName, 20, 4, 4);
259 TEST_FIELD(ACTCTXA, LPCSTR, lpApplicationName, 24, 4, 4);
260 TEST_FIELD(ACTCTXA, HMODULE, hModule, 28, 4, 4);
263 static void test_pack_ACTCTXW(void)
265 /* ACTCTXW (pack 4) */
266 TEST_TYPE(ACTCTXW, 32, 4);
267 TEST_FIELD(ACTCTXW, ULONG, cbSize, 0, 4, 4);
268 TEST_FIELD(ACTCTXW, DWORD, dwFlags, 4, 4, 4);
269 TEST_FIELD(ACTCTXW, LPCWSTR, lpSource, 8, 4, 4);
270 TEST_FIELD(ACTCTXW, USHORT, wProcessorArchitecture, 12, 2, 2);
271 TEST_FIELD(ACTCTXW, LANGID, wLangId, 14, 2, 2);
272 TEST_FIELD(ACTCTXW, LPCWSTR, lpAssemblyDirectory, 16, 4, 4);
273 TEST_FIELD(ACTCTXW, LPCWSTR, lpResourceName, 20, 4, 4);
274 TEST_FIELD(ACTCTXW, LPCWSTR, lpApplicationName, 24, 4, 4);
275 TEST_FIELD(ACTCTXW, HMODULE, hModule, 28, 4, 4);
278 static void test_pack_ACTCTX_SECTION_KEYED_DATA(void)
280 /* ACTCTX_SECTION_KEYED_DATA (pack 4) */
281 TEST_TYPE(ACTCTX_SECTION_KEYED_DATA, 64, 4);
282 TEST_FIELD(ACTCTX_SECTION_KEYED_DATA, ULONG, cbSize, 0, 4, 4);
283 TEST_FIELD(ACTCTX_SECTION_KEYED_DATA, ULONG, ulDataFormatVersion, 4, 4, 4);
284 TEST_FIELD(ACTCTX_SECTION_KEYED_DATA, PVOID, lpData, 8, 4, 4);
285 TEST_FIELD(ACTCTX_SECTION_KEYED_DATA, ULONG, ulLength, 12, 4, 4);
286 TEST_FIELD(ACTCTX_SECTION_KEYED_DATA, PVOID, lpSectionGlobalData, 16, 4, 4);
287 TEST_FIELD(ACTCTX_SECTION_KEYED_DATA, ULONG, ulSectionGlobalDataLength, 20, 4, 4);
288 TEST_FIELD(ACTCTX_SECTION_KEYED_DATA, PVOID, lpSectionBase, 24, 4, 4);
289 TEST_FIELD(ACTCTX_SECTION_KEYED_DATA, ULONG, ulSectionTotalLength, 28, 4, 4);
290 TEST_FIELD(ACTCTX_SECTION_KEYED_DATA, HANDLE, hActCtx, 32, 4, 4);
291 TEST_FIELD(ACTCTX_SECTION_KEYED_DATA, ULONG, ulAssemblyRosterIndex, 36, 4, 4);
292 TEST_FIELD(ACTCTX_SECTION_KEYED_DATA, ULONG, ulFlags, 40, 4, 4);
293 TEST_FIELD(ACTCTX_SECTION_KEYED_DATA, ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, AssemblyMetadata, 44, 20, 4);
296 static void test_pack_ACTCTX_SECTION_KEYED_DATA_2600(void)
298 /* ACTCTX_SECTION_KEYED_DATA_2600 (pack 4) */
299 TEST_TYPE(ACTCTX_SECTION_KEYED_DATA_2600, 40, 4);
300 TEST_FIELD(ACTCTX_SECTION_KEYED_DATA_2600, ULONG, cbSize, 0, 4, 4);
301 TEST_FIELD(ACTCTX_SECTION_KEYED_DATA_2600, ULONG, ulDataFormatVersion, 4, 4, 4);
302 TEST_FIELD(ACTCTX_SECTION_KEYED_DATA_2600, PVOID, lpData, 8, 4, 4);
303 TEST_FIELD(ACTCTX_SECTION_KEYED_DATA_2600, ULONG, ulLength, 12, 4, 4);
304 TEST_FIELD(ACTCTX_SECTION_KEYED_DATA_2600, PVOID, lpSectionGlobalData, 16, 4, 4);
305 TEST_FIELD(ACTCTX_SECTION_KEYED_DATA_2600, ULONG, ulSectionGlobalDataLength, 20, 4, 4);
306 TEST_FIELD(ACTCTX_SECTION_KEYED_DATA_2600, PVOID, lpSectionBase, 24, 4, 4);
307 TEST_FIELD(ACTCTX_SECTION_KEYED_DATA_2600, ULONG, ulSectionTotalLength, 28, 4, 4);
308 TEST_FIELD(ACTCTX_SECTION_KEYED_DATA_2600, HANDLE, hActCtx, 32, 4, 4);
309 TEST_FIELD(ACTCTX_SECTION_KEYED_DATA_2600, ULONG, ulAssemblyRosterIndex, 36, 4, 4);
312 static void test_pack_ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA(void)
314 /* ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA (pack 4) */
315 TEST_TYPE(ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, 20, 4);
316 TEST_FIELD(ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, PVOID, lpInformation, 0, 4, 4);
317 TEST_FIELD(ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, PVOID, lpSectionBase, 4, 4, 4);
318 TEST_FIELD(ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, ULONG, ulSectionLength, 8, 4, 4);
319 TEST_FIELD(ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, PVOID, lpSectionGlobalDataBase, 12, 4, 4);
320 TEST_FIELD(ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, ULONG, ulSectionGlobalDataLength, 16, 4, 4);
323 static void test_pack_ACTIVATION_CONTEXT_BASIC_INFORMATION(void)
325 /* ACTIVATION_CONTEXT_BASIC_INFORMATION (pack 4) */
326 TEST_TYPE(ACTIVATION_CONTEXT_BASIC_INFORMATION, 8, 4);
327 TEST_FIELD(ACTIVATION_CONTEXT_BASIC_INFORMATION, HANDLE, hActCtx, 0, 4, 4);
328 TEST_FIELD(ACTIVATION_CONTEXT_BASIC_INFORMATION, DWORD, dwFlags, 4, 4, 4);
331 static void test_pack_BY_HANDLE_FILE_INFORMATION(void)
333 /* BY_HANDLE_FILE_INFORMATION (pack 4) */
334 TEST_TYPE(BY_HANDLE_FILE_INFORMATION, 52, 4);
335 TEST_FIELD(BY_HANDLE_FILE_INFORMATION, DWORD, dwFileAttributes, 0, 4, 4);
336 TEST_FIELD(BY_HANDLE_FILE_INFORMATION, FILETIME, ftCreationTime, 4, 8, 4);
337 TEST_FIELD(BY_HANDLE_FILE_INFORMATION, FILETIME, ftLastAccessTime, 12, 8, 4);
338 TEST_FIELD(BY_HANDLE_FILE_INFORMATION, FILETIME, ftLastWriteTime, 20, 8, 4);
339 TEST_FIELD(BY_HANDLE_FILE_INFORMATION, DWORD, dwVolumeSerialNumber, 28, 4, 4);
340 TEST_FIELD(BY_HANDLE_FILE_INFORMATION, DWORD, nFileSizeHigh, 32, 4, 4);
341 TEST_FIELD(BY_HANDLE_FILE_INFORMATION, DWORD, nFileSizeLow, 36, 4, 4);
342 TEST_FIELD(BY_HANDLE_FILE_INFORMATION, DWORD, nNumberOfLinks, 40, 4, 4);
343 TEST_FIELD(BY_HANDLE_FILE_INFORMATION, DWORD, nFileIndexHigh, 44, 4, 4);
344 TEST_FIELD(BY_HANDLE_FILE_INFORMATION, DWORD, nFileIndexLow, 48, 4, 4);
347 static void test_pack_COMMCONFIG(void)
349 /* COMMCONFIG (pack 4) */
350 TEST_TYPE(COMMCONFIG, 52, 4);
351 TEST_FIELD(COMMCONFIG, DWORD, dwSize, 0, 4, 4);
352 TEST_FIELD(COMMCONFIG, WORD, wVersion, 4, 2, 2);
353 TEST_FIELD(COMMCONFIG, WORD, wReserved, 6, 2, 2);
354 TEST_FIELD(COMMCONFIG, DCB, dcb, 8, 28, 4);
355 TEST_FIELD(COMMCONFIG, DWORD, dwProviderSubType, 36, 4, 4);
356 TEST_FIELD(COMMCONFIG, DWORD, dwProviderOffset, 40, 4, 4);
357 TEST_FIELD(COMMCONFIG, DWORD, dwProviderSize, 44, 4, 4);
358 TEST_FIELD(COMMCONFIG, DWORD[1], wcProviderData, 48, 4, 4);
361 static void test_pack_COMMPROP(void)
363 /* COMMPROP (pack 4) */
364 TEST_TYPE(COMMPROP, 64, 4);
365 TEST_FIELD(COMMPROP, WORD, wPacketLength, 0, 2, 2);
366 TEST_FIELD(COMMPROP, WORD, wPacketVersion, 2, 2, 2);
367 TEST_FIELD(COMMPROP, DWORD, dwServiceMask, 4, 4, 4);
368 TEST_FIELD(COMMPROP, DWORD, dwReserved1, 8, 4, 4);
369 TEST_FIELD(COMMPROP, DWORD, dwMaxTxQueue, 12, 4, 4);
370 TEST_FIELD(COMMPROP, DWORD, dwMaxRxQueue, 16, 4, 4);
371 TEST_FIELD(COMMPROP, DWORD, dwMaxBaud, 20, 4, 4);
372 TEST_FIELD(COMMPROP, DWORD, dwProvSubType, 24, 4, 4);
373 TEST_FIELD(COMMPROP, DWORD, dwProvCapabilities, 28, 4, 4);
374 TEST_FIELD(COMMPROP, DWORD, dwSettableParams, 32, 4, 4);
375 TEST_FIELD(COMMPROP, DWORD, dwSettableBaud, 36, 4, 4);
376 TEST_FIELD(COMMPROP, WORD, wSettableData, 40, 2, 2);
377 TEST_FIELD(COMMPROP, WORD, wSettableStopParity, 42, 2, 2);
378 TEST_FIELD(COMMPROP, DWORD, dwCurrentTxQueue, 44, 4, 4);
379 TEST_FIELD(COMMPROP, DWORD, dwCurrentRxQueue, 48, 4, 4);
380 TEST_FIELD(COMMPROP, DWORD, dwProvSpec1, 52, 4, 4);
381 TEST_FIELD(COMMPROP, DWORD, dwProvSpec2, 56, 4, 4);
382 TEST_FIELD(COMMPROP, WCHAR[1], wcProvChar, 60, 2, 2);
385 static void test_pack_COMMTIMEOUTS(void)
387 /* COMMTIMEOUTS (pack 4) */
388 TEST_TYPE(COMMTIMEOUTS, 20, 4);
389 TEST_FIELD(COMMTIMEOUTS, DWORD, ReadIntervalTimeout, 0, 4, 4);
390 TEST_FIELD(COMMTIMEOUTS, DWORD, ReadTotalTimeoutMultiplier, 4, 4, 4);
391 TEST_FIELD(COMMTIMEOUTS, DWORD, ReadTotalTimeoutConstant, 8, 4, 4);
392 TEST_FIELD(COMMTIMEOUTS, DWORD, WriteTotalTimeoutMultiplier, 12, 4, 4);
393 TEST_FIELD(COMMTIMEOUTS, DWORD, WriteTotalTimeoutConstant, 16, 4, 4);
396 static void test_pack_COMSTAT(void)
398 /* COMSTAT (pack 4) */
399 TEST_TYPE(COMSTAT, 12, 4);
400 TEST_FIELD(COMSTAT, DWORD, cbInQue, 4, 4, 4);
401 TEST_FIELD(COMSTAT, DWORD, cbOutQue, 8, 4, 4);
404 static void test_pack_CREATE_PROCESS_DEBUG_INFO(void)
406 /* CREATE_PROCESS_DEBUG_INFO (pack 4) */
407 TEST_TYPE(CREATE_PROCESS_DEBUG_INFO, 40, 4);
408 TEST_FIELD(CREATE_PROCESS_DEBUG_INFO, HANDLE, hFile, 0, 4, 4);
409 TEST_FIELD(CREATE_PROCESS_DEBUG_INFO, HANDLE, hProcess, 4, 4, 4);
410 TEST_FIELD(CREATE_PROCESS_DEBUG_INFO, HANDLE, hThread, 8, 4, 4);
411 TEST_FIELD(CREATE_PROCESS_DEBUG_INFO, LPVOID, lpBaseOfImage, 12, 4, 4);
412 TEST_FIELD(CREATE_PROCESS_DEBUG_INFO, DWORD, dwDebugInfoFileOffset, 16, 4, 4);
413 TEST_FIELD(CREATE_PROCESS_DEBUG_INFO, DWORD, nDebugInfoSize, 20, 4, 4);
414 TEST_FIELD(CREATE_PROCESS_DEBUG_INFO, LPVOID, lpThreadLocalBase, 24, 4, 4);
415 TEST_FIELD(CREATE_PROCESS_DEBUG_INFO, LPTHREAD_START_ROUTINE, lpStartAddress, 28, 4, 4);
416 TEST_FIELD(CREATE_PROCESS_DEBUG_INFO, LPVOID, lpImageName, 32, 4, 4);
417 TEST_FIELD(CREATE_PROCESS_DEBUG_INFO, WORD, fUnicode, 36, 2, 2);
420 static void test_pack_CREATE_THREAD_DEBUG_INFO(void)
422 /* CREATE_THREAD_DEBUG_INFO (pack 4) */
423 TEST_TYPE(CREATE_THREAD_DEBUG_INFO, 12, 4);
424 TEST_FIELD(CREATE_THREAD_DEBUG_INFO, HANDLE, hThread, 0, 4, 4);
425 TEST_FIELD(CREATE_THREAD_DEBUG_INFO, LPVOID, lpThreadLocalBase, 4, 4, 4);
426 TEST_FIELD(CREATE_THREAD_DEBUG_INFO, LPTHREAD_START_ROUTINE, lpStartAddress, 8, 4, 4);
429 static void test_pack_CRITICAL_SECTION(void)
431 /* CRITICAL_SECTION */
432 TEST_TYPE(CRITICAL_SECTION, 24, 4);
435 static void test_pack_CRITICAL_SECTION_DEBUG(void)
437 /* CRITICAL_SECTION_DEBUG */
440 static void test_pack_DCB(void)
443 TEST_TYPE(DCB, 28, 4);
444 TEST_FIELD(DCB, DWORD, DCBlength, 0, 4, 4);
445 TEST_FIELD(DCB, DWORD, BaudRate, 4, 4, 4);
446 TEST_FIELD(DCB, WORD, wReserved, 12, 2, 2);
447 TEST_FIELD(DCB, WORD, XonLim, 14, 2, 2);
448 TEST_FIELD(DCB, WORD, XoffLim, 16, 2, 2);
449 TEST_FIELD(DCB, BYTE, ByteSize, 18, 1, 1);
450 TEST_FIELD(DCB, BYTE, Parity, 19, 1, 1);
451 TEST_FIELD(DCB, BYTE, StopBits, 20, 1, 1);
452 TEST_FIELD(DCB, char, XonChar, 21, 1, 1);
453 TEST_FIELD(DCB, char, XoffChar, 22, 1, 1);
454 TEST_FIELD(DCB, char, ErrorChar, 23, 1, 1);
455 TEST_FIELD(DCB, char, EofChar, 24, 1, 1);
456 TEST_FIELD(DCB, char, EvtChar, 25, 1, 1);
457 TEST_FIELD(DCB, WORD, wReserved1, 26, 2, 2);
460 static void test_pack_DEBUG_EVENT(void)
462 /* DEBUG_EVENT (pack 4) */
463 TEST_FIELD(DEBUG_EVENT, DWORD, dwDebugEventCode, 0, 4, 4);
464 TEST_FIELD(DEBUG_EVENT, DWORD, dwProcessId, 4, 4, 4);
465 TEST_FIELD(DEBUG_EVENT, DWORD, dwThreadId, 8, 4, 4);
468 static void test_pack_ENUMRESLANGPROCA(void)
470 /* ENUMRESLANGPROCA */
471 TEST_TYPE(ENUMRESLANGPROCA, 4, 4);
474 static void test_pack_ENUMRESLANGPROCW(void)
476 /* ENUMRESLANGPROCW */
477 TEST_TYPE(ENUMRESLANGPROCW, 4, 4);
480 static void test_pack_ENUMRESNAMEPROCA(void)
482 /* ENUMRESNAMEPROCA */
483 TEST_TYPE(ENUMRESNAMEPROCA, 4, 4);
486 static void test_pack_ENUMRESNAMEPROCW(void)
488 /* ENUMRESNAMEPROCW */
489 TEST_TYPE(ENUMRESNAMEPROCW, 4, 4);
492 static void test_pack_ENUMRESTYPEPROCA(void)
494 /* ENUMRESTYPEPROCA */
495 TEST_TYPE(ENUMRESTYPEPROCA, 4, 4);
498 static void test_pack_ENUMRESTYPEPROCW(void)
500 /* ENUMRESTYPEPROCW */
501 TEST_TYPE(ENUMRESTYPEPROCW, 4, 4);
504 static void test_pack_EXCEPTION_DEBUG_INFO(void)
506 /* EXCEPTION_DEBUG_INFO (pack 4) */
507 TEST_TYPE(EXCEPTION_DEBUG_INFO, 84, 4);
508 TEST_FIELD(EXCEPTION_DEBUG_INFO, EXCEPTION_RECORD, ExceptionRecord, 0, 80, 4);
509 TEST_FIELD(EXCEPTION_DEBUG_INFO, DWORD, dwFirstChance, 80, 4, 4);
512 static void test_pack_EXIT_PROCESS_DEBUG_INFO(void)
514 /* EXIT_PROCESS_DEBUG_INFO (pack 4) */
515 TEST_TYPE(EXIT_PROCESS_DEBUG_INFO, 4, 4);
516 TEST_FIELD(EXIT_PROCESS_DEBUG_INFO, DWORD, dwExitCode, 0, 4, 4);
519 static void test_pack_EXIT_THREAD_DEBUG_INFO(void)
521 /* EXIT_THREAD_DEBUG_INFO (pack 4) */
522 TEST_TYPE(EXIT_THREAD_DEBUG_INFO, 4, 4);
523 TEST_FIELD(EXIT_THREAD_DEBUG_INFO, DWORD, dwExitCode, 0, 4, 4);
526 static void test_pack_HW_PROFILE_INFOA(void)
528 /* HW_PROFILE_INFOA (pack 4) */
529 TEST_TYPE(HW_PROFILE_INFOA, 124, 4);
530 TEST_FIELD(HW_PROFILE_INFOA, DWORD, dwDockInfo, 0, 4, 4);
531 TEST_FIELD(HW_PROFILE_INFOA, CHAR[HW_PROFILE_GUIDLEN], szHwProfileGuid, 4, 39, 1);
532 TEST_FIELD(HW_PROFILE_INFOA, CHAR[MAX_PROFILE_LEN], szHwProfileName, 43, 80, 1);
535 static void test_pack_HW_PROFILE_INFOW(void)
537 /* HW_PROFILE_INFOW (pack 4) */
538 TEST_TYPE(HW_PROFILE_INFOW, 244, 4);
539 TEST_FIELD(HW_PROFILE_INFOW, DWORD, dwDockInfo, 0, 4, 4);
540 TEST_FIELD(HW_PROFILE_INFOW, WCHAR[HW_PROFILE_GUIDLEN], szHwProfileGuid, 4, 78, 2);
541 TEST_FIELD(HW_PROFILE_INFOW, WCHAR[MAX_PROFILE_LEN], szHwProfileName, 82, 160, 2);
544 static void test_pack_LOAD_DLL_DEBUG_INFO(void)
546 /* LOAD_DLL_DEBUG_INFO (pack 4) */
547 TEST_TYPE(LOAD_DLL_DEBUG_INFO, 24, 4);
548 TEST_FIELD(LOAD_DLL_DEBUG_INFO, HANDLE, hFile, 0, 4, 4);
549 TEST_FIELD(LOAD_DLL_DEBUG_INFO, LPVOID, lpBaseOfDll, 4, 4, 4);
550 TEST_FIELD(LOAD_DLL_DEBUG_INFO, DWORD, dwDebugInfoFileOffset, 8, 4, 4);
551 TEST_FIELD(LOAD_DLL_DEBUG_INFO, DWORD, nDebugInfoSize, 12, 4, 4);
552 TEST_FIELD(LOAD_DLL_DEBUG_INFO, LPVOID, lpImageName, 16, 4, 4);
553 TEST_FIELD(LOAD_DLL_DEBUG_INFO, WORD, fUnicode, 20, 2, 2);
556 static void test_pack_LPBY_HANDLE_FILE_INFORMATION(void)
558 /* LPBY_HANDLE_FILE_INFORMATION */
559 TEST_TYPE(LPBY_HANDLE_FILE_INFORMATION, 4, 4);
560 TEST_TYPE_POINTER(LPBY_HANDLE_FILE_INFORMATION, 52, 4);
563 static void test_pack_LPCOMMCONFIG(void)
566 TEST_TYPE(LPCOMMCONFIG, 4, 4);
567 TEST_TYPE_POINTER(LPCOMMCONFIG, 52, 4);
570 static void test_pack_LPCOMMPROP(void)
573 TEST_TYPE(LPCOMMPROP, 4, 4);
574 TEST_TYPE_POINTER(LPCOMMPROP, 64, 4);
577 static void test_pack_LPCOMMTIMEOUTS(void)
580 TEST_TYPE(LPCOMMTIMEOUTS, 4, 4);
581 TEST_TYPE_POINTER(LPCOMMTIMEOUTS, 20, 4);
584 static void test_pack_LPCOMSTAT(void)
587 TEST_TYPE(LPCOMSTAT, 4, 4);
588 TEST_TYPE_POINTER(LPCOMSTAT, 12, 4);
591 static void test_pack_LPCRITICAL_SECTION(void)
593 /* LPCRITICAL_SECTION */
594 TEST_TYPE(LPCRITICAL_SECTION, 4, 4);
597 static void test_pack_LPCRITICAL_SECTION_DEBUG(void)
599 /* LPCRITICAL_SECTION_DEBUG */
600 TEST_TYPE(LPCRITICAL_SECTION_DEBUG, 4, 4);
603 static void test_pack_LPDCB(void)
606 TEST_TYPE(LPDCB, 4, 4);
607 TEST_TYPE_POINTER(LPDCB, 28, 4);
610 static void test_pack_LPDEBUG_EVENT(void)
613 TEST_TYPE(LPDEBUG_EVENT, 4, 4);
616 static void test_pack_LPEXCEPTION_POINTERS(void)
618 /* LPEXCEPTION_POINTERS */
619 TEST_TYPE(LPEXCEPTION_POINTERS, 4, 4);
622 static void test_pack_LPEXCEPTION_RECORD(void)
624 /* LPEXCEPTION_RECORD */
625 TEST_TYPE(LPEXCEPTION_RECORD, 4, 4);
628 static void test_pack_LPFIBER_START_ROUTINE(void)
630 /* LPFIBER_START_ROUTINE */
631 TEST_TYPE(LPFIBER_START_ROUTINE, 4, 4);
634 static void test_pack_LPHW_PROFILE_INFOA(void)
636 /* LPHW_PROFILE_INFOA */
637 TEST_TYPE(LPHW_PROFILE_INFOA, 4, 4);
638 TEST_TYPE_POINTER(LPHW_PROFILE_INFOA, 124, 4);
641 static void test_pack_LPHW_PROFILE_INFOW(void)
643 /* LPHW_PROFILE_INFOW */
644 TEST_TYPE(LPHW_PROFILE_INFOW, 4, 4);
645 TEST_TYPE_POINTER(LPHW_PROFILE_INFOW, 244, 4);
648 static void test_pack_LPMEMORYSTATUS(void)
651 TEST_TYPE(LPMEMORYSTATUS, 4, 4);
652 TEST_TYPE_POINTER(LPMEMORYSTATUS, 32, 4);
655 static void test_pack_LPMEMORYSTATUSEX(void)
657 /* LPMEMORYSTATUSEX */
658 TEST_TYPE(LPMEMORYSTATUSEX, 4, 4);
659 TEST_TYPE_POINTER(LPMEMORYSTATUSEX, 64, 8);
662 static void test_pack_LPOFSTRUCT(void)
665 TEST_TYPE(LPOFSTRUCT, 4, 4);
666 TEST_TYPE_POINTER(LPOFSTRUCT, 136, 2);
669 static void test_pack_LPOVERLAPPED(void)
672 TEST_TYPE(LPOVERLAPPED, 4, 4);
675 static void test_pack_LPOVERLAPPED_COMPLETION_ROUTINE(void)
677 /* LPOVERLAPPED_COMPLETION_ROUTINE */
678 TEST_TYPE(LPOVERLAPPED_COMPLETION_ROUTINE, 4, 4);
681 static void test_pack_LPPROCESS_HEAP_ENTRY(void)
683 /* LPPROCESS_HEAP_ENTRY */
684 TEST_TYPE(LPPROCESS_HEAP_ENTRY, 4, 4);
687 static void test_pack_LPPROCESS_INFORMATION(void)
689 /* LPPROCESS_INFORMATION */
690 TEST_TYPE(LPPROCESS_INFORMATION, 4, 4);
691 TEST_TYPE_POINTER(LPPROCESS_INFORMATION, 16, 4);
694 static void test_pack_LPPROGRESS_ROUTINE(void)
696 /* LPPROGRESS_ROUTINE */
697 TEST_TYPE(LPPROGRESS_ROUTINE, 4, 4);
700 static void test_pack_LPSECURITY_ATTRIBUTES(void)
702 /* LPSECURITY_ATTRIBUTES */
703 TEST_TYPE(LPSECURITY_ATTRIBUTES, 4, 4);
704 TEST_TYPE_POINTER(LPSECURITY_ATTRIBUTES, 12, 4);
707 static void test_pack_LPSTARTUPINFOA(void)
710 TEST_TYPE(LPSTARTUPINFOA, 4, 4);
711 TEST_TYPE_POINTER(LPSTARTUPINFOA, 68, 4);
714 static void test_pack_LPSTARTUPINFOW(void)
717 TEST_TYPE(LPSTARTUPINFOW, 4, 4);
718 TEST_TYPE_POINTER(LPSTARTUPINFOW, 68, 4);
721 static void test_pack_LPSYSTEMTIME(void)
724 TEST_TYPE(LPSYSTEMTIME, 4, 4);
725 TEST_TYPE_POINTER(LPSYSTEMTIME, 16, 2);
728 static void test_pack_LPSYSTEM_INFO(void)
731 TEST_TYPE(LPSYSTEM_INFO, 4, 4);
734 static void test_pack_LPSYSTEM_POWER_STATUS(void)
736 /* LPSYSTEM_POWER_STATUS */
737 TEST_TYPE(LPSYSTEM_POWER_STATUS, 4, 4);
738 TEST_TYPE_POINTER(LPSYSTEM_POWER_STATUS, 12, 4);
741 static void test_pack_LPTHREAD_START_ROUTINE(void)
743 /* LPTHREAD_START_ROUTINE */
744 TEST_TYPE(LPTHREAD_START_ROUTINE, 4, 4);
747 static void test_pack_LPTIME_ZONE_INFORMATION(void)
749 /* LPTIME_ZONE_INFORMATION */
750 TEST_TYPE(LPTIME_ZONE_INFORMATION, 4, 4);
751 TEST_TYPE_POINTER(LPTIME_ZONE_INFORMATION, 172, 4);
754 static void test_pack_LPWIN32_FILE_ATTRIBUTE_DATA(void)
756 /* LPWIN32_FILE_ATTRIBUTE_DATA */
757 TEST_TYPE(LPWIN32_FILE_ATTRIBUTE_DATA, 4, 4);
758 TEST_TYPE_POINTER(LPWIN32_FILE_ATTRIBUTE_DATA, 36, 4);
761 static void test_pack_LPWIN32_FIND_DATAA(void)
763 /* LPWIN32_FIND_DATAA */
764 TEST_TYPE(LPWIN32_FIND_DATAA, 4, 4);
765 TEST_TYPE_POINTER(LPWIN32_FIND_DATAA, 320, 4);
768 static void test_pack_LPWIN32_FIND_DATAW(void)
770 /* LPWIN32_FIND_DATAW */
771 TEST_TYPE(LPWIN32_FIND_DATAW, 4, 4);
772 TEST_TYPE_POINTER(LPWIN32_FIND_DATAW, 592, 4);
775 static void test_pack_LPWIN32_STREAM_ID(void)
777 /* LPWIN32_STREAM_ID */
778 TEST_TYPE(LPWIN32_STREAM_ID, 4, 4);
779 TEST_TYPE_POINTER(LPWIN32_STREAM_ID, 24, 8);
782 static void test_pack_MEMORYSTATUS(void)
784 /* MEMORYSTATUS (pack 4) */
785 TEST_TYPE(MEMORYSTATUS, 32, 4);
786 TEST_FIELD(MEMORYSTATUS, DWORD, dwLength, 0, 4, 4);
787 TEST_FIELD(MEMORYSTATUS, DWORD, dwMemoryLoad, 4, 4, 4);
788 TEST_FIELD(MEMORYSTATUS, SIZE_T, dwTotalPhys, 8, 4, 4);
789 TEST_FIELD(MEMORYSTATUS, SIZE_T, dwAvailPhys, 12, 4, 4);
790 TEST_FIELD(MEMORYSTATUS, SIZE_T, dwTotalPageFile, 16, 4, 4);
791 TEST_FIELD(MEMORYSTATUS, SIZE_T, dwAvailPageFile, 20, 4, 4);
792 TEST_FIELD(MEMORYSTATUS, SIZE_T, dwTotalVirtual, 24, 4, 4);
793 TEST_FIELD(MEMORYSTATUS, SIZE_T, dwAvailVirtual, 28, 4, 4);
796 static void test_pack_MEMORYSTATUSEX(void)
798 /* MEMORYSTATUSEX (pack 8) */
799 TEST_TYPE(MEMORYSTATUSEX, 64, 8);
800 TEST_FIELD(MEMORYSTATUSEX, DWORD, dwLength, 0, 4, 4);
801 TEST_FIELD(MEMORYSTATUSEX, DWORD, dwMemoryLoad, 4, 4, 4);
802 TEST_FIELD(MEMORYSTATUSEX, DWORDLONG, ullTotalPhys, 8, 8, 8);
803 TEST_FIELD(MEMORYSTATUSEX, DWORDLONG, ullAvailPhys, 16, 8, 8);
804 TEST_FIELD(MEMORYSTATUSEX, DWORDLONG, ullTotalPageFile, 24, 8, 8);
805 TEST_FIELD(MEMORYSTATUSEX, DWORDLONG, ullAvailPageFile, 32, 8, 8);
806 TEST_FIELD(MEMORYSTATUSEX, DWORDLONG, ullTotalVirtual, 40, 8, 8);
807 TEST_FIELD(MEMORYSTATUSEX, DWORDLONG, ullAvailVirtual, 48, 8, 8);
808 TEST_FIELD(MEMORYSTATUSEX, DWORDLONG, ullAvailExtendedVirtual, 56, 8, 8);
811 static void test_pack_OFSTRUCT(void)
813 /* OFSTRUCT (pack 4) */
814 TEST_TYPE(OFSTRUCT, 136, 2);
815 TEST_FIELD(OFSTRUCT, BYTE, cBytes, 0, 1, 1);
816 TEST_FIELD(OFSTRUCT, BYTE, fFixedDisk, 1, 1, 1);
817 TEST_FIELD(OFSTRUCT, WORD, nErrCode, 2, 2, 2);
818 TEST_FIELD(OFSTRUCT, WORD, Reserved1, 4, 2, 2);
819 TEST_FIELD(OFSTRUCT, WORD, Reserved2, 6, 2, 2);
820 TEST_FIELD(OFSTRUCT, CHAR[OFS_MAXPATHNAME], szPathName, 8, 128, 1);
823 static void test_pack_OUTPUT_DEBUG_STRING_INFO(void)
825 /* OUTPUT_DEBUG_STRING_INFO (pack 4) */
826 TEST_TYPE(OUTPUT_DEBUG_STRING_INFO, 8, 4);
827 TEST_FIELD(OUTPUT_DEBUG_STRING_INFO, LPSTR, lpDebugStringData, 0, 4, 4);
828 TEST_FIELD(OUTPUT_DEBUG_STRING_INFO, WORD, fUnicode, 4, 2, 2);
829 TEST_FIELD(OUTPUT_DEBUG_STRING_INFO, WORD, nDebugStringLength, 6, 2, 2);
832 static void test_pack_PACTCTXA(void)
835 TEST_TYPE(PACTCTXA, 4, 4);
836 TEST_TYPE_POINTER(PACTCTXA, 32, 4);
839 static void test_pack_PACTCTXW(void)
842 TEST_TYPE(PACTCTXW, 4, 4);
843 TEST_TYPE_POINTER(PACTCTXW, 32, 4);
846 static void test_pack_PACTCTX_SECTION_KEYED_DATA(void)
848 /* PACTCTX_SECTION_KEYED_DATA */
849 TEST_TYPE(PACTCTX_SECTION_KEYED_DATA, 4, 4);
850 TEST_TYPE_POINTER(PACTCTX_SECTION_KEYED_DATA, 64, 4);
853 static void test_pack_PACTCTX_SECTION_KEYED_DATA_2600(void)
855 /* PACTCTX_SECTION_KEYED_DATA_2600 */
856 TEST_TYPE(PACTCTX_SECTION_KEYED_DATA_2600, 4, 4);
857 TEST_TYPE_POINTER(PACTCTX_SECTION_KEYED_DATA_2600, 40, 4);
860 static void test_pack_PACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA(void)
862 /* PACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA */
863 TEST_TYPE(PACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, 4, 4);
864 TEST_TYPE_POINTER(PACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, 20, 4);
867 static void test_pack_PACTIVATION_CONTEXT_BASIC_INFORMATION(void)
869 /* PACTIVATION_CONTEXT_BASIC_INFORMATION */
870 TEST_TYPE(PACTIVATION_CONTEXT_BASIC_INFORMATION, 4, 4);
871 TEST_TYPE_POINTER(PACTIVATION_CONTEXT_BASIC_INFORMATION, 8, 4);
874 static void test_pack_PAPCFUNC(void)
877 TEST_TYPE(PAPCFUNC, 4, 4);
880 static void test_pack_PBY_HANDLE_FILE_INFORMATION(void)
882 /* PBY_HANDLE_FILE_INFORMATION */
883 TEST_TYPE(PBY_HANDLE_FILE_INFORMATION, 4, 4);
884 TEST_TYPE_POINTER(PBY_HANDLE_FILE_INFORMATION, 52, 4);
887 static void test_pack_PCACTCTXA(void)
890 TEST_TYPE(PCACTCTXA, 4, 4);
891 TEST_TYPE_POINTER(PCACTCTXA, 32, 4);
894 static void test_pack_PCACTCTXW(void)
897 TEST_TYPE(PCACTCTXW, 4, 4);
898 TEST_TYPE_POINTER(PCACTCTXW, 32, 4);
901 static void test_pack_PCACTCTX_SECTION_KEYED_DATA(void)
903 /* PCACTCTX_SECTION_KEYED_DATA */
904 TEST_TYPE(PCACTCTX_SECTION_KEYED_DATA, 4, 4);
905 TEST_TYPE_POINTER(PCACTCTX_SECTION_KEYED_DATA, 64, 4);
908 static void test_pack_PCACTCTX_SECTION_KEYED_DATA_2600(void)
910 /* PCACTCTX_SECTION_KEYED_DATA_2600 */
911 TEST_TYPE(PCACTCTX_SECTION_KEYED_DATA_2600, 4, 4);
912 TEST_TYPE_POINTER(PCACTCTX_SECTION_KEYED_DATA_2600, 40, 4);
915 static void test_pack_PCACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA(void)
917 /* PCACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA */
918 TEST_TYPE(PCACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, 4, 4);
919 TEST_TYPE_POINTER(PCACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, 20, 4);
922 static void test_pack_PCRITICAL_SECTION(void)
924 /* PCRITICAL_SECTION */
925 TEST_TYPE(PCRITICAL_SECTION, 4, 4);
928 static void test_pack_PCRITICAL_SECTION_DEBUG(void)
930 /* PCRITICAL_SECTION_DEBUG */
931 TEST_TYPE(PCRITICAL_SECTION_DEBUG, 4, 4);
934 static void test_pack_PFIBER_START_ROUTINE(void)
936 /* PFIBER_START_ROUTINE */
937 TEST_TYPE(PFIBER_START_ROUTINE, 4, 4);
940 static void test_pack_POFSTRUCT(void)
943 TEST_TYPE(POFSTRUCT, 4, 4);
944 TEST_TYPE_POINTER(POFSTRUCT, 136, 2);
947 static void test_pack_PPROCESS_HEAP_ENTRY(void)
949 /* PPROCESS_HEAP_ENTRY */
950 TEST_TYPE(PPROCESS_HEAP_ENTRY, 4, 4);
953 static void test_pack_PPROCESS_INFORMATION(void)
955 /* PPROCESS_INFORMATION */
956 TEST_TYPE(PPROCESS_INFORMATION, 4, 4);
957 TEST_TYPE_POINTER(PPROCESS_INFORMATION, 16, 4);
960 static void test_pack_PQUERYACTCTXW_FUNC(void)
962 /* PQUERYACTCTXW_FUNC */
963 TEST_TYPE(PQUERYACTCTXW_FUNC, 4, 4);
966 static void test_pack_PROCESS_HEAP_ENTRY(void)
968 /* PROCESS_HEAP_ENTRY (pack 4) */
969 TEST_FIELD(PROCESS_HEAP_ENTRY, LPVOID, lpData, 0, 4, 4);
970 TEST_FIELD(PROCESS_HEAP_ENTRY, DWORD, cbData, 4, 4, 4);
971 TEST_FIELD(PROCESS_HEAP_ENTRY, BYTE, cbOverhead, 8, 1, 1);
972 TEST_FIELD(PROCESS_HEAP_ENTRY, BYTE, iRegionIndex, 9, 1, 1);
973 TEST_FIELD(PROCESS_HEAP_ENTRY, WORD, wFlags, 10, 2, 2);
976 static void test_pack_PROCESS_INFORMATION(void)
978 /* PROCESS_INFORMATION (pack 4) */
979 TEST_TYPE(PROCESS_INFORMATION, 16, 4);
980 TEST_FIELD(PROCESS_INFORMATION, HANDLE, hProcess, 0, 4, 4);
981 TEST_FIELD(PROCESS_INFORMATION, HANDLE, hThread, 4, 4, 4);
982 TEST_FIELD(PROCESS_INFORMATION, DWORD, dwProcessId, 8, 4, 4);
983 TEST_FIELD(PROCESS_INFORMATION, DWORD, dwThreadId, 12, 4, 4);
986 static void test_pack_PSECURITY_ATTRIBUTES(void)
988 /* PSECURITY_ATTRIBUTES */
989 TEST_TYPE(PSECURITY_ATTRIBUTES, 4, 4);
990 TEST_TYPE_POINTER(PSECURITY_ATTRIBUTES, 12, 4);
993 static void test_pack_PSYSTEMTIME(void)
996 TEST_TYPE(PSYSTEMTIME, 4, 4);
997 TEST_TYPE_POINTER(PSYSTEMTIME, 16, 2);
1000 static void test_pack_PTIMERAPCROUTINE(void)
1002 /* PTIMERAPCROUTINE */
1003 TEST_TYPE(PTIMERAPCROUTINE, 4, 4);
1006 static void test_pack_PTIME_ZONE_INFORMATION(void)
1008 /* PTIME_ZONE_INFORMATION */
1009 TEST_TYPE(PTIME_ZONE_INFORMATION, 4, 4);
1010 TEST_TYPE_POINTER(PTIME_ZONE_INFORMATION, 172, 4);
1013 static void test_pack_PWIN32_FIND_DATAA(void)
1015 /* PWIN32_FIND_DATAA */
1016 TEST_TYPE(PWIN32_FIND_DATAA, 4, 4);
1017 TEST_TYPE_POINTER(PWIN32_FIND_DATAA, 320, 4);
1020 static void test_pack_PWIN32_FIND_DATAW(void)
1022 /* PWIN32_FIND_DATAW */
1023 TEST_TYPE(PWIN32_FIND_DATAW, 4, 4);
1024 TEST_TYPE_POINTER(PWIN32_FIND_DATAW, 592, 4);
1027 static void test_pack_RIP_INFO(void)
1029 /* RIP_INFO (pack 4) */
1030 TEST_TYPE(RIP_INFO, 8, 4);
1031 TEST_FIELD(RIP_INFO, DWORD, dwError, 0, 4, 4);
1032 TEST_FIELD(RIP_INFO, DWORD, dwType, 4, 4, 4);
1035 static void test_pack_SECURITY_ATTRIBUTES(void)
1037 /* SECURITY_ATTRIBUTES (pack 4) */
1038 TEST_TYPE(SECURITY_ATTRIBUTES, 12, 4);
1039 TEST_FIELD(SECURITY_ATTRIBUTES, DWORD, nLength, 0, 4, 4);
1040 TEST_FIELD(SECURITY_ATTRIBUTES, LPVOID, lpSecurityDescriptor, 4, 4, 4);
1041 TEST_FIELD(SECURITY_ATTRIBUTES, BOOL, bInheritHandle, 8, 4, 4);
1044 static void test_pack_STARTUPINFOA(void)
1046 /* STARTUPINFOA (pack 4) */
1047 TEST_TYPE(STARTUPINFOA, 68, 4);
1048 TEST_FIELD(STARTUPINFOA, DWORD, cb, 0, 4, 4);
1049 TEST_FIELD(STARTUPINFOA, LPSTR, lpReserved, 4, 4, 4);
1050 TEST_FIELD(STARTUPINFOA, LPSTR, lpDesktop, 8, 4, 4);
1051 TEST_FIELD(STARTUPINFOA, LPSTR, lpTitle, 12, 4, 4);
1052 TEST_FIELD(STARTUPINFOA, DWORD, dwX, 16, 4, 4);
1053 TEST_FIELD(STARTUPINFOA, DWORD, dwY, 20, 4, 4);
1054 TEST_FIELD(STARTUPINFOA, DWORD, dwXSize, 24, 4, 4);
1055 TEST_FIELD(STARTUPINFOA, DWORD, dwYSize, 28, 4, 4);
1056 TEST_FIELD(STARTUPINFOA, DWORD, dwXCountChars, 32, 4, 4);
1057 TEST_FIELD(STARTUPINFOA, DWORD, dwYCountChars, 36, 4, 4);
1058 TEST_FIELD(STARTUPINFOA, DWORD, dwFillAttribute, 40, 4, 4);
1059 TEST_FIELD(STARTUPINFOA, DWORD, dwFlags, 44, 4, 4);
1060 TEST_FIELD(STARTUPINFOA, WORD, wShowWindow, 48, 2, 2);
1061 TEST_FIELD(STARTUPINFOA, WORD, cbReserved2, 50, 2, 2);
1062 TEST_FIELD(STARTUPINFOA, BYTE *, lpReserved2, 52, 4, 4);
1063 TEST_FIELD(STARTUPINFOA, HANDLE, hStdInput, 56, 4, 4);
1064 TEST_FIELD(STARTUPINFOA, HANDLE, hStdOutput, 60, 4, 4);
1065 TEST_FIELD(STARTUPINFOA, HANDLE, hStdError, 64, 4, 4);
1068 static void test_pack_STARTUPINFOW(void)
1070 /* STARTUPINFOW (pack 4) */
1071 TEST_TYPE(STARTUPINFOW, 68, 4);
1072 TEST_FIELD(STARTUPINFOW, DWORD, cb, 0, 4, 4);
1073 TEST_FIELD(STARTUPINFOW, LPWSTR, lpReserved, 4, 4, 4);
1074 TEST_FIELD(STARTUPINFOW, LPWSTR, lpDesktop, 8, 4, 4);
1075 TEST_FIELD(STARTUPINFOW, LPWSTR, lpTitle, 12, 4, 4);
1076 TEST_FIELD(STARTUPINFOW, DWORD, dwX, 16, 4, 4);
1077 TEST_FIELD(STARTUPINFOW, DWORD, dwY, 20, 4, 4);
1078 TEST_FIELD(STARTUPINFOW, DWORD, dwXSize, 24, 4, 4);
1079 TEST_FIELD(STARTUPINFOW, DWORD, dwYSize, 28, 4, 4);
1080 TEST_FIELD(STARTUPINFOW, DWORD, dwXCountChars, 32, 4, 4);
1081 TEST_FIELD(STARTUPINFOW, DWORD, dwYCountChars, 36, 4, 4);
1082 TEST_FIELD(STARTUPINFOW, DWORD, dwFillAttribute, 40, 4, 4);
1083 TEST_FIELD(STARTUPINFOW, DWORD, dwFlags, 44, 4, 4);
1084 TEST_FIELD(STARTUPINFOW, WORD, wShowWindow, 48, 2, 2);
1085 TEST_FIELD(STARTUPINFOW, WORD, cbReserved2, 50, 2, 2);
1086 TEST_FIELD(STARTUPINFOW, BYTE *, lpReserved2, 52, 4, 4);
1087 TEST_FIELD(STARTUPINFOW, HANDLE, hStdInput, 56, 4, 4);
1088 TEST_FIELD(STARTUPINFOW, HANDLE, hStdOutput, 60, 4, 4);
1089 TEST_FIELD(STARTUPINFOW, HANDLE, hStdError, 64, 4, 4);
1092 static void test_pack_SYSTEMTIME(void)
1094 /* SYSTEMTIME (pack 4) */
1095 TEST_TYPE(SYSTEMTIME, 16, 2);
1096 TEST_FIELD(SYSTEMTIME, WORD, wYear, 0, 2, 2);
1097 TEST_FIELD(SYSTEMTIME, WORD, wMonth, 2, 2, 2);
1098 TEST_FIELD(SYSTEMTIME, WORD, wDayOfWeek, 4, 2, 2);
1099 TEST_FIELD(SYSTEMTIME, WORD, wDay, 6, 2, 2);
1100 TEST_FIELD(SYSTEMTIME, WORD, wHour, 8, 2, 2);
1101 TEST_FIELD(SYSTEMTIME, WORD, wMinute, 10, 2, 2);
1102 TEST_FIELD(SYSTEMTIME, WORD, wSecond, 12, 2, 2);
1103 TEST_FIELD(SYSTEMTIME, WORD, wMilliseconds, 14, 2, 2);
1106 static void test_pack_SYSTEM_INFO(void)
1108 /* SYSTEM_INFO (pack 4) */
1111 static void test_pack_SYSTEM_POWER_STATUS(void)
1113 /* SYSTEM_POWER_STATUS (pack 4) */
1114 TEST_TYPE(SYSTEM_POWER_STATUS, 12, 4);
1115 TEST_FIELD(SYSTEM_POWER_STATUS, BYTE, ACLineStatus, 0, 1, 1);
1116 TEST_FIELD(SYSTEM_POWER_STATUS, BYTE, BatteryFlag, 1, 1, 1);
1117 TEST_FIELD(SYSTEM_POWER_STATUS, BYTE, BatteryLifePercent, 2, 1, 1);
1118 TEST_FIELD(SYSTEM_POWER_STATUS, BYTE, Reserved1, 3, 1, 1);
1119 TEST_FIELD(SYSTEM_POWER_STATUS, DWORD, BatteryLifeTime, 4, 4, 4);
1120 TEST_FIELD(SYSTEM_POWER_STATUS, DWORD, BatteryFullLifeTime, 8, 4, 4);
1123 static void test_pack_TIME_ZONE_INFORMATION(void)
1125 /* TIME_ZONE_INFORMATION (pack 4) */
1126 TEST_TYPE(TIME_ZONE_INFORMATION, 172, 4);
1127 TEST_FIELD(TIME_ZONE_INFORMATION, LONG, Bias, 0, 4, 4);
1128 TEST_FIELD(TIME_ZONE_INFORMATION, WCHAR[32], StandardName, 4, 64, 2);
1129 TEST_FIELD(TIME_ZONE_INFORMATION, SYSTEMTIME, StandardDate, 68, 16, 2);
1130 TEST_FIELD(TIME_ZONE_INFORMATION, LONG, StandardBias, 84, 4, 4);
1131 TEST_FIELD(TIME_ZONE_INFORMATION, WCHAR[32], DaylightName, 88, 64, 2);
1132 TEST_FIELD(TIME_ZONE_INFORMATION, SYSTEMTIME, DaylightDate, 152, 16, 2);
1133 TEST_FIELD(TIME_ZONE_INFORMATION, LONG, DaylightBias, 168, 4, 4);
1136 static void test_pack_UNLOAD_DLL_DEBUG_INFO(void)
1138 /* UNLOAD_DLL_DEBUG_INFO (pack 4) */
1139 TEST_TYPE(UNLOAD_DLL_DEBUG_INFO, 4, 4);
1140 TEST_FIELD(UNLOAD_DLL_DEBUG_INFO, LPVOID, lpBaseOfDll, 0, 4, 4);
1143 static void test_pack_WAITORTIMERCALLBACK(void)
1145 /* WAITORTIMERCALLBACK */
1146 TEST_TYPE(WAITORTIMERCALLBACK, 4, 4);
1149 static void test_pack_WIN32_FILE_ATTRIBUTE_DATA(void)
1151 /* WIN32_FILE_ATTRIBUTE_DATA (pack 4) */
1152 TEST_TYPE(WIN32_FILE_ATTRIBUTE_DATA, 36, 4);
1153 TEST_FIELD(WIN32_FILE_ATTRIBUTE_DATA, DWORD, dwFileAttributes, 0, 4, 4);
1154 TEST_FIELD(WIN32_FILE_ATTRIBUTE_DATA, FILETIME, ftCreationTime, 4, 8, 4);
1155 TEST_FIELD(WIN32_FILE_ATTRIBUTE_DATA, FILETIME, ftLastAccessTime, 12, 8, 4);
1156 TEST_FIELD(WIN32_FILE_ATTRIBUTE_DATA, FILETIME, ftLastWriteTime, 20, 8, 4);
1157 TEST_FIELD(WIN32_FILE_ATTRIBUTE_DATA, DWORD, nFileSizeHigh, 28, 4, 4);
1158 TEST_FIELD(WIN32_FILE_ATTRIBUTE_DATA, DWORD, nFileSizeLow, 32, 4, 4);
1161 static void test_pack_WIN32_FIND_DATAA(void)
1163 /* WIN32_FIND_DATAA (pack 4) */
1164 TEST_TYPE(WIN32_FIND_DATAA, 320, 4);
1165 TEST_FIELD(WIN32_FIND_DATAA, DWORD, dwFileAttributes, 0, 4, 4);
1166 TEST_FIELD(WIN32_FIND_DATAA, FILETIME, ftCreationTime, 4, 8, 4);
1167 TEST_FIELD(WIN32_FIND_DATAA, FILETIME, ftLastAccessTime, 12, 8, 4);
1168 TEST_FIELD(WIN32_FIND_DATAA, FILETIME, ftLastWriteTime, 20, 8, 4);
1169 TEST_FIELD(WIN32_FIND_DATAA, DWORD, nFileSizeHigh, 28, 4, 4);
1170 TEST_FIELD(WIN32_FIND_DATAA, DWORD, nFileSizeLow, 32, 4, 4);
1171 TEST_FIELD(WIN32_FIND_DATAA, DWORD, dwReserved0, 36, 4, 4);
1172 TEST_FIELD(WIN32_FIND_DATAA, DWORD, dwReserved1, 40, 4, 4);
1173 TEST_FIELD(WIN32_FIND_DATAA, CHAR[260], cFileName, 44, 260, 1);
1174 TEST_FIELD(WIN32_FIND_DATAA, CHAR[14], cAlternateFileName, 304, 14, 1);
1177 static void test_pack_WIN32_FIND_DATAW(void)
1179 /* WIN32_FIND_DATAW (pack 4) */
1180 TEST_TYPE(WIN32_FIND_DATAW, 592, 4);
1181 TEST_FIELD(WIN32_FIND_DATAW, DWORD, dwFileAttributes, 0, 4, 4);
1182 TEST_FIELD(WIN32_FIND_DATAW, FILETIME, ftCreationTime, 4, 8, 4);
1183 TEST_FIELD(WIN32_FIND_DATAW, FILETIME, ftLastAccessTime, 12, 8, 4);
1184 TEST_FIELD(WIN32_FIND_DATAW, FILETIME, ftLastWriteTime, 20, 8, 4);
1185 TEST_FIELD(WIN32_FIND_DATAW, DWORD, nFileSizeHigh, 28, 4, 4);
1186 TEST_FIELD(WIN32_FIND_DATAW, DWORD, nFileSizeLow, 32, 4, 4);
1187 TEST_FIELD(WIN32_FIND_DATAW, DWORD, dwReserved0, 36, 4, 4);
1188 TEST_FIELD(WIN32_FIND_DATAW, DWORD, dwReserved1, 40, 4, 4);
1189 TEST_FIELD(WIN32_FIND_DATAW, WCHAR[260], cFileName, 44, 520, 2);
1190 TEST_FIELD(WIN32_FIND_DATAW, WCHAR[14], cAlternateFileName, 564, 28, 2);
1193 static void test_pack_WIN32_STREAM_ID(void)
1195 /* WIN32_STREAM_ID (pack 8) */
1196 TEST_TYPE(WIN32_STREAM_ID, 24, 8);
1197 TEST_FIELD(WIN32_STREAM_ID, DWORD, dwStreamId, 0, 4, 4);
1198 TEST_FIELD(WIN32_STREAM_ID, DWORD, dwStreamAttributes, 4, 4, 4);
1199 TEST_FIELD(WIN32_STREAM_ID, LARGE_INTEGER, Size, 8, 8, 8);
1200 TEST_FIELD(WIN32_STREAM_ID, DWORD, dwStreamNameSize, 16, 4, 4);
1201 TEST_FIELD(WIN32_STREAM_ID, WCHAR[ANYSIZE_ARRAY], cStreamName, 20, 2, 2);
1204 static void test_pack(void)
1206 test_pack_ACTCTXA();
1207 test_pack_ACTCTXW();
1208 test_pack_ACTCTX_SECTION_KEYED_DATA();
1209 test_pack_ACTCTX_SECTION_KEYED_DATA_2600();
1210 test_pack_ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA();
1211 test_pack_ACTIVATION_CONTEXT_BASIC_INFORMATION();
1212 test_pack_BY_HANDLE_FILE_INFORMATION();
1213 test_pack_COMMCONFIG();
1214 test_pack_COMMPROP();
1215 test_pack_COMMTIMEOUTS();
1216 test_pack_COMSTAT();
1217 test_pack_CREATE_PROCESS_DEBUG_INFO();
1218 test_pack_CREATE_THREAD_DEBUG_INFO();
1219 test_pack_CRITICAL_SECTION();
1220 test_pack_CRITICAL_SECTION_DEBUG();
1222 test_pack_DEBUG_EVENT();
1223 test_pack_ENUMRESLANGPROCA();
1224 test_pack_ENUMRESLANGPROCW();
1225 test_pack_ENUMRESNAMEPROCA();
1226 test_pack_ENUMRESNAMEPROCW();
1227 test_pack_ENUMRESTYPEPROCA();
1228 test_pack_ENUMRESTYPEPROCW();
1229 test_pack_EXCEPTION_DEBUG_INFO();
1230 test_pack_EXIT_PROCESS_DEBUG_INFO();
1231 test_pack_EXIT_THREAD_DEBUG_INFO();
1232 test_pack_HW_PROFILE_INFOA();
1233 test_pack_HW_PROFILE_INFOW();
1234 test_pack_LOAD_DLL_DEBUG_INFO();
1235 test_pack_LPBY_HANDLE_FILE_INFORMATION();
1236 test_pack_LPCOMMCONFIG();
1237 test_pack_LPCOMMPROP();
1238 test_pack_LPCOMMTIMEOUTS();
1239 test_pack_LPCOMSTAT();
1240 test_pack_LPCRITICAL_SECTION();
1241 test_pack_LPCRITICAL_SECTION_DEBUG();
1243 test_pack_LPDEBUG_EVENT();
1244 test_pack_LPEXCEPTION_POINTERS();
1245 test_pack_LPEXCEPTION_RECORD();
1246 test_pack_LPFIBER_START_ROUTINE();
1247 test_pack_LPHW_PROFILE_INFOA();
1248 test_pack_LPHW_PROFILE_INFOW();
1250 test_pack_LPMEMORYSTATUS();
1251 test_pack_LPMEMORYSTATUSEX();
1252 test_pack_LPOFSTRUCT();
1253 test_pack_LPOSVERSIONINFOA();
1254 test_pack_LPOSVERSIONINFOEXA();
1255 test_pack_LPOSVERSIONINFOEXW();
1256 test_pack_LPOSVERSIONINFOW();
1257 test_pack_LPOVERLAPPED();
1258 test_pack_LPOVERLAPPED_COMPLETION_ROUTINE();
1259 test_pack_LPPROCESS_HEAP_ENTRY();
1260 test_pack_LPPROCESS_INFORMATION();
1261 test_pack_LPPROGRESS_ROUTINE();
1262 test_pack_LPSECURITY_ATTRIBUTES();
1263 test_pack_LPSTARTUPINFOA();
1264 test_pack_LPSTARTUPINFOW();
1265 test_pack_LPSYSTEMTIME();
1266 test_pack_LPSYSTEM_INFO();
1267 test_pack_LPSYSTEM_POWER_STATUS();
1268 test_pack_LPTHREAD_START_ROUTINE();
1269 test_pack_LPTIME_ZONE_INFORMATION();
1271 test_pack_LPWIN32_FILE_ATTRIBUTE_DATA();
1272 test_pack_LPWIN32_FIND_DATAA();
1273 test_pack_LPWIN32_FIND_DATAW();
1274 test_pack_LPWIN32_STREAM_ID();
1275 test_pack_MEMORYSTATUS();
1276 test_pack_MEMORYSTATUSEX();
1277 test_pack_OFSTRUCT();
1278 test_pack_OSVERSIONINFOA();
1279 test_pack_OSVERSIONINFOEXA();
1280 test_pack_OSVERSIONINFOEXW();
1281 test_pack_OSVERSIONINFOW();
1282 test_pack_OUTPUT_DEBUG_STRING_INFO();
1283 test_pack_PACTCTXA();
1284 test_pack_PACTCTXW();
1285 test_pack_PACTCTX_SECTION_KEYED_DATA();
1286 test_pack_PACTCTX_SECTION_KEYED_DATA_2600();
1287 test_pack_PACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA();
1288 test_pack_PACTIVATION_CONTEXT_BASIC_INFORMATION();
1289 test_pack_PAPCFUNC();
1290 test_pack_PBY_HANDLE_FILE_INFORMATION();
1291 test_pack_PCACTCTXA();
1292 test_pack_PCACTCTXW();
1293 test_pack_PCACTCTX_SECTION_KEYED_DATA();
1294 test_pack_PCACTCTX_SECTION_KEYED_DATA_2600();
1295 test_pack_PCACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA();
1296 test_pack_PCRITICAL_SECTION();
1297 test_pack_PCRITICAL_SECTION_DEBUG();
1298 test_pack_PFIBER_START_ROUTINE();
1300 test_pack_POFSTRUCT();
1301 test_pack_POSVERSIONINFOA();
1302 test_pack_POSVERSIONINFOEXA();
1303 test_pack_POSVERSIONINFOEXW();
1304 test_pack_POSVERSIONINFOW();
1305 test_pack_PPROCESS_HEAP_ENTRY();
1306 test_pack_PPROCESS_INFORMATION();
1307 test_pack_PQUERYACTCTXW_FUNC();
1308 test_pack_PROCESS_HEAP_ENTRY();
1309 test_pack_PROCESS_INFORMATION();
1310 test_pack_PSECURITY_ATTRIBUTES();
1311 test_pack_PSYSTEMTIME();
1312 test_pack_PTIMERAPCROUTINE();
1313 test_pack_PTIME_ZONE_INFORMATION();
1314 test_pack_PWIN32_FIND_DATAA();
1315 test_pack_PWIN32_FIND_DATAW();
1316 test_pack_RIP_INFO();
1317 test_pack_SECURITY_ATTRIBUTES();
1318 test_pack_STARTUPINFOA();
1319 test_pack_STARTUPINFOW();
1320 test_pack_SYSTEMTIME();
1321 test_pack_SYSTEM_INFO();
1322 test_pack_SYSTEM_POWER_STATUS();
1323 test_pack_TIME_ZONE_INFORMATION();
1324 test_pack_UNLOAD_DLL_DEBUG_INFO();
1325 test_pack_WAITORTIMERCALLBACK();
1326 test_pack_WIN32_FILE_ATTRIBUTE_DATA();
1327 test_pack_WIN32_FIND_DATAA();
1328 test_pack_WIN32_FIND_DATAW();
1329 test_pack_WIN32_STREAM_ID();
1332 START_TEST(generated)