Commit a8e86e35 authored by Alexandre Julliard's avatar Alexandre Julliard

winapi: Generate the 64-bit variant of structure size/alignment tests.

parent 6b11a3c3
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -51,41 +51,1888 @@
* Test helper macros
*/
#define TEST_TYPE_SIZE(type, size) C_ASSERT(sizeof(type) == size);
#ifdef TYPE_ALIGNMENT
# define TEST_TYPE_ALIGN(type, align) C_ASSERT(TYPE_ALIGNMENT(type) == align);
#else
# define TEST_TYPE_ALIGN(type, align)
#endif
#ifdef _TYPE_ALIGNMENT
# define TEST_TARGET_ALIGN(type, align) C_ASSERT(_TYPE_ALIGNMENT(*(type)0) == align);
# define TEST_FIELD_ALIGN(type, field, align) C_ASSERT(_TYPE_ALIGNMENT(((type*)0)->field) == align);
#else
# define TEST_TARGET_ALIGN(type, align)
# define TEST_FIELD_ALIGN(type, field, align)
#endif
#define TEST_FIELD_OFFSET(type, field, offset) C_ASSERT(FIELD_OFFSET(type, field) == offset);
#define TEST_TARGET_SIZE(type, size) TEST_TYPE_SIZE(*(type)0, size)
#define TEST_FIELD_SIZE(type, field, size) TEST_TYPE_SIZE((((type*)0)->field), size)
#define TEST_TYPE_SIGNED(type) C_ASSERT((type) -1 < 0);
#define TEST_TYPE_UNSIGNED(type) C_ASSERT((type) -1 > 0);
#ifdef _WIN64
# define TEST_TYPE_SIZE(type, size)
# define TEST_TYPE_ALIGN(type, align)
# define TEST_TARGET_ALIGN(type, align)
# define TEST_FIELD_ALIGN(type, field, align)
# define TEST_FIELD_OFFSET(type, field, offset)
static void test_pack_LPOSVERSIONINFOA(void)
{
/* LPOSVERSIONINFOA */
TEST_TYPE_SIZE (LPOSVERSIONINFOA, 8)
TEST_TYPE_ALIGN (LPOSVERSIONINFOA, 8)
TEST_TARGET_SIZE (LPOSVERSIONINFOA, 148)
TEST_TARGET_ALIGN(LPOSVERSIONINFOA, 4)
}
static void test_pack_LPOSVERSIONINFOEXA(void)
{
/* LPOSVERSIONINFOEXA */
TEST_TYPE_SIZE (LPOSVERSIONINFOEXA, 8)
TEST_TYPE_ALIGN (LPOSVERSIONINFOEXA, 8)
TEST_TARGET_SIZE (LPOSVERSIONINFOEXA, 156)
TEST_TARGET_ALIGN(LPOSVERSIONINFOEXA, 4)
}
static void test_pack_LPOSVERSIONINFOEXW(void)
{
/* LPOSVERSIONINFOEXW */
TEST_TYPE_SIZE (LPOSVERSIONINFOEXW, 8)
TEST_TYPE_ALIGN (LPOSVERSIONINFOEXW, 8)
TEST_TARGET_SIZE (LPOSVERSIONINFOEXW, 284)
TEST_TARGET_ALIGN(LPOSVERSIONINFOEXW, 4)
}
static void test_pack_LPOSVERSIONINFOW(void)
{
/* LPOSVERSIONINFOW */
TEST_TYPE_SIZE (LPOSVERSIONINFOW, 8)
TEST_TYPE_ALIGN (LPOSVERSIONINFOW, 8)
TEST_TARGET_SIZE (LPOSVERSIONINFOW, 276)
TEST_TARGET_ALIGN(LPOSVERSIONINFOW, 4)
}
static void test_pack_OSVERSIONINFOA(void)
{
/* OSVERSIONINFOA */
TEST_TYPE_SIZE (OSVERSIONINFOA, 148)
TEST_TYPE_ALIGN (OSVERSIONINFOA, 4)
TEST_FIELD_SIZE (OSVERSIONINFOA, dwOSVersionInfoSize, 4)
TEST_FIELD_ALIGN (OSVERSIONINFOA, dwOSVersionInfoSize, 4)
TEST_FIELD_OFFSET(OSVERSIONINFOA, dwOSVersionInfoSize, 0)
TEST_FIELD_SIZE (OSVERSIONINFOA, dwMajorVersion, 4)
TEST_FIELD_ALIGN (OSVERSIONINFOA, dwMajorVersion, 4)
TEST_FIELD_OFFSET(OSVERSIONINFOA, dwMajorVersion, 4)
TEST_FIELD_SIZE (OSVERSIONINFOA, dwMinorVersion, 4)
TEST_FIELD_ALIGN (OSVERSIONINFOA, dwMinorVersion, 4)
TEST_FIELD_OFFSET(OSVERSIONINFOA, dwMinorVersion, 8)
TEST_FIELD_SIZE (OSVERSIONINFOA, dwBuildNumber, 4)
TEST_FIELD_ALIGN (OSVERSIONINFOA, dwBuildNumber, 4)
TEST_FIELD_OFFSET(OSVERSIONINFOA, dwBuildNumber, 12)
TEST_FIELD_SIZE (OSVERSIONINFOA, dwPlatformId, 4)
TEST_FIELD_ALIGN (OSVERSIONINFOA, dwPlatformId, 4)
TEST_FIELD_OFFSET(OSVERSIONINFOA, dwPlatformId, 16)
TEST_FIELD_SIZE (OSVERSIONINFOA, szCSDVersion, 128)
TEST_FIELD_ALIGN (OSVERSIONINFOA, szCSDVersion, 1)
TEST_FIELD_OFFSET(OSVERSIONINFOA, szCSDVersion, 20)
}
static void test_pack_OSVERSIONINFOEXA(void)
{
/* OSVERSIONINFOEXA */
TEST_TYPE_SIZE (OSVERSIONINFOEXA, 156)
TEST_TYPE_ALIGN (OSVERSIONINFOEXA, 4)
TEST_FIELD_SIZE (OSVERSIONINFOEXA, dwOSVersionInfoSize, 4)
TEST_FIELD_ALIGN (OSVERSIONINFOEXA, dwOSVersionInfoSize, 4)
TEST_FIELD_OFFSET(OSVERSIONINFOEXA, dwOSVersionInfoSize, 0)
TEST_FIELD_SIZE (OSVERSIONINFOEXA, dwMajorVersion, 4)
TEST_FIELD_ALIGN (OSVERSIONINFOEXA, dwMajorVersion, 4)
TEST_FIELD_OFFSET(OSVERSIONINFOEXA, dwMajorVersion, 4)
TEST_FIELD_SIZE (OSVERSIONINFOEXA, dwMinorVersion, 4)
TEST_FIELD_ALIGN (OSVERSIONINFOEXA, dwMinorVersion, 4)
TEST_FIELD_OFFSET(OSVERSIONINFOEXA, dwMinorVersion, 8)
TEST_FIELD_SIZE (OSVERSIONINFOEXA, dwBuildNumber, 4)
TEST_FIELD_ALIGN (OSVERSIONINFOEXA, dwBuildNumber, 4)
TEST_FIELD_OFFSET(OSVERSIONINFOEXA, dwBuildNumber, 12)
TEST_FIELD_SIZE (OSVERSIONINFOEXA, dwPlatformId, 4)
TEST_FIELD_ALIGN (OSVERSIONINFOEXA, dwPlatformId, 4)
TEST_FIELD_OFFSET(OSVERSIONINFOEXA, dwPlatformId, 16)
TEST_FIELD_SIZE (OSVERSIONINFOEXA, szCSDVersion, 128)
TEST_FIELD_ALIGN (OSVERSIONINFOEXA, szCSDVersion, 1)
TEST_FIELD_OFFSET(OSVERSIONINFOEXA, szCSDVersion, 20)
TEST_FIELD_SIZE (OSVERSIONINFOEXA, wServicePackMajor, 2)
TEST_FIELD_ALIGN (OSVERSIONINFOEXA, wServicePackMajor, 2)
TEST_FIELD_OFFSET(OSVERSIONINFOEXA, wServicePackMajor, 148)
TEST_FIELD_SIZE (OSVERSIONINFOEXA, wServicePackMinor, 2)
TEST_FIELD_ALIGN (OSVERSIONINFOEXA, wServicePackMinor, 2)
TEST_FIELD_OFFSET(OSVERSIONINFOEXA, wServicePackMinor, 150)
TEST_FIELD_SIZE (OSVERSIONINFOEXA, wSuiteMask, 2)
TEST_FIELD_ALIGN (OSVERSIONINFOEXA, wSuiteMask, 2)
TEST_FIELD_OFFSET(OSVERSIONINFOEXA, wSuiteMask, 152)
TEST_FIELD_SIZE (OSVERSIONINFOEXA, wProductType, 1)
TEST_FIELD_ALIGN (OSVERSIONINFOEXA, wProductType, 1)
TEST_FIELD_OFFSET(OSVERSIONINFOEXA, wProductType, 154)
TEST_FIELD_SIZE (OSVERSIONINFOEXA, wReserved, 1)
TEST_FIELD_ALIGN (OSVERSIONINFOEXA, wReserved, 1)
TEST_FIELD_OFFSET(OSVERSIONINFOEXA, wReserved, 155)
}
static void test_pack_OSVERSIONINFOEXW(void)
{
/* OSVERSIONINFOEXW */
TEST_TYPE_SIZE (OSVERSIONINFOEXW, 284)
TEST_TYPE_ALIGN (OSVERSIONINFOEXW, 4)
TEST_FIELD_SIZE (OSVERSIONINFOEXW, dwOSVersionInfoSize, 4)
TEST_FIELD_ALIGN (OSVERSIONINFOEXW, dwOSVersionInfoSize, 4)
TEST_FIELD_OFFSET(OSVERSIONINFOEXW, dwOSVersionInfoSize, 0)
TEST_FIELD_SIZE (OSVERSIONINFOEXW, dwMajorVersion, 4)
TEST_FIELD_ALIGN (OSVERSIONINFOEXW, dwMajorVersion, 4)
TEST_FIELD_OFFSET(OSVERSIONINFOEXW, dwMajorVersion, 4)
TEST_FIELD_SIZE (OSVERSIONINFOEXW, dwMinorVersion, 4)
TEST_FIELD_ALIGN (OSVERSIONINFOEXW, dwMinorVersion, 4)
TEST_FIELD_OFFSET(OSVERSIONINFOEXW, dwMinorVersion, 8)
TEST_FIELD_SIZE (OSVERSIONINFOEXW, dwBuildNumber, 4)
TEST_FIELD_ALIGN (OSVERSIONINFOEXW, dwBuildNumber, 4)
TEST_FIELD_OFFSET(OSVERSIONINFOEXW, dwBuildNumber, 12)
TEST_FIELD_SIZE (OSVERSIONINFOEXW, dwPlatformId, 4)
TEST_FIELD_ALIGN (OSVERSIONINFOEXW, dwPlatformId, 4)
TEST_FIELD_OFFSET(OSVERSIONINFOEXW, dwPlatformId, 16)
TEST_FIELD_SIZE (OSVERSIONINFOEXW, szCSDVersion, 256)
TEST_FIELD_ALIGN (OSVERSIONINFOEXW, szCSDVersion, 2)
TEST_FIELD_OFFSET(OSVERSIONINFOEXW, szCSDVersion, 20)
TEST_FIELD_SIZE (OSVERSIONINFOEXW, wServicePackMajor, 2)
TEST_FIELD_ALIGN (OSVERSIONINFOEXW, wServicePackMajor, 2)
TEST_FIELD_OFFSET(OSVERSIONINFOEXW, wServicePackMajor, 276)
TEST_FIELD_SIZE (OSVERSIONINFOEXW, wServicePackMinor, 2)
TEST_FIELD_ALIGN (OSVERSIONINFOEXW, wServicePackMinor, 2)
TEST_FIELD_OFFSET(OSVERSIONINFOEXW, wServicePackMinor, 278)
TEST_FIELD_SIZE (OSVERSIONINFOEXW, wSuiteMask, 2)
TEST_FIELD_ALIGN (OSVERSIONINFOEXW, wSuiteMask, 2)
TEST_FIELD_OFFSET(OSVERSIONINFOEXW, wSuiteMask, 280)
TEST_FIELD_SIZE (OSVERSIONINFOEXW, wProductType, 1)
TEST_FIELD_ALIGN (OSVERSIONINFOEXW, wProductType, 1)
TEST_FIELD_OFFSET(OSVERSIONINFOEXW, wProductType, 282)
TEST_FIELD_SIZE (OSVERSIONINFOEXW, wReserved, 1)
TEST_FIELD_ALIGN (OSVERSIONINFOEXW, wReserved, 1)
TEST_FIELD_OFFSET(OSVERSIONINFOEXW, wReserved, 283)
}
static void test_pack_OSVERSIONINFOW(void)
{
/* OSVERSIONINFOW */
TEST_TYPE_SIZE (OSVERSIONINFOW, 276)
TEST_TYPE_ALIGN (OSVERSIONINFOW, 4)
TEST_FIELD_SIZE (OSVERSIONINFOW, dwOSVersionInfoSize, 4)
TEST_FIELD_ALIGN (OSVERSIONINFOW, dwOSVersionInfoSize, 4)
TEST_FIELD_OFFSET(OSVERSIONINFOW, dwOSVersionInfoSize, 0)
TEST_FIELD_SIZE (OSVERSIONINFOW, dwMajorVersion, 4)
TEST_FIELD_ALIGN (OSVERSIONINFOW, dwMajorVersion, 4)
TEST_FIELD_OFFSET(OSVERSIONINFOW, dwMajorVersion, 4)
TEST_FIELD_SIZE (OSVERSIONINFOW, dwMinorVersion, 4)
TEST_FIELD_ALIGN (OSVERSIONINFOW, dwMinorVersion, 4)
TEST_FIELD_OFFSET(OSVERSIONINFOW, dwMinorVersion, 8)
TEST_FIELD_SIZE (OSVERSIONINFOW, dwBuildNumber, 4)
TEST_FIELD_ALIGN (OSVERSIONINFOW, dwBuildNumber, 4)
TEST_FIELD_OFFSET(OSVERSIONINFOW, dwBuildNumber, 12)
TEST_FIELD_SIZE (OSVERSIONINFOW, dwPlatformId, 4)
TEST_FIELD_ALIGN (OSVERSIONINFOW, dwPlatformId, 4)
TEST_FIELD_OFFSET(OSVERSIONINFOW, dwPlatformId, 16)
TEST_FIELD_SIZE (OSVERSIONINFOW, szCSDVersion, 256)
TEST_FIELD_ALIGN (OSVERSIONINFOW, szCSDVersion, 2)
TEST_FIELD_OFFSET(OSVERSIONINFOW, szCSDVersion, 20)
}
static void test_pack_POSVERSIONINFOA(void)
{
/* POSVERSIONINFOA */
TEST_TYPE_SIZE (POSVERSIONINFOA, 8)
TEST_TYPE_ALIGN (POSVERSIONINFOA, 8)
TEST_TARGET_SIZE (POSVERSIONINFOA, 148)
TEST_TARGET_ALIGN(POSVERSIONINFOA, 4)
}
static void test_pack_POSVERSIONINFOEXA(void)
{
/* POSVERSIONINFOEXA */
TEST_TYPE_SIZE (POSVERSIONINFOEXA, 8)
TEST_TYPE_ALIGN (POSVERSIONINFOEXA, 8)
TEST_TARGET_SIZE (POSVERSIONINFOEXA, 156)
TEST_TARGET_ALIGN(POSVERSIONINFOEXA, 4)
}
static void test_pack_POSVERSIONINFOEXW(void)
{
/* POSVERSIONINFOEXW */
TEST_TYPE_SIZE (POSVERSIONINFOEXW, 8)
TEST_TYPE_ALIGN (POSVERSIONINFOEXW, 8)
TEST_TARGET_SIZE (POSVERSIONINFOEXW, 284)
TEST_TARGET_ALIGN(POSVERSIONINFOEXW, 4)
}
static void test_pack_POSVERSIONINFOW(void)
{
/* POSVERSIONINFOW */
TEST_TYPE_SIZE (POSVERSIONINFOW, 8)
TEST_TYPE_ALIGN (POSVERSIONINFOW, 8)
TEST_TARGET_SIZE (POSVERSIONINFOW, 276)
TEST_TARGET_ALIGN(POSVERSIONINFOW, 4)
}
static void test_pack_LPLONG(void)
{
/* LPLONG */
TEST_TYPE_SIZE (LPLONG, 8)
TEST_TYPE_ALIGN (LPLONG, 8)
}
static void test_pack_LPVOID(void)
{
/* LPVOID */
TEST_TYPE_SIZE (LPVOID, 8)
TEST_TYPE_ALIGN (LPVOID, 8)
}
static void test_pack_PHKEY(void)
{
/* PHKEY */
TEST_TYPE_SIZE (PHKEY, 8)
TEST_TYPE_ALIGN (PHKEY, 8)
}
static void test_pack_ACTCTXA(void)
{
/* ACTCTXA */
TEST_TYPE_SIZE (ACTCTXA, 56)
TEST_TYPE_ALIGN (ACTCTXA, 8)
TEST_FIELD_SIZE (ACTCTXA, cbSize, 4)
TEST_FIELD_ALIGN (ACTCTXA, cbSize, 4)
TEST_FIELD_OFFSET(ACTCTXA, cbSize, 0)
TEST_FIELD_SIZE (ACTCTXA, dwFlags, 4)
TEST_FIELD_ALIGN (ACTCTXA, dwFlags, 4)
TEST_FIELD_OFFSET(ACTCTXA, dwFlags, 4)
TEST_FIELD_SIZE (ACTCTXA, lpSource, 8)
TEST_FIELD_ALIGN (ACTCTXA, lpSource, 8)
TEST_FIELD_OFFSET(ACTCTXA, lpSource, 8)
TEST_FIELD_SIZE (ACTCTXA, wProcessorArchitecture, 2)
TEST_FIELD_ALIGN (ACTCTXA, wProcessorArchitecture, 2)
TEST_FIELD_OFFSET(ACTCTXA, wProcessorArchitecture, 16)
TEST_FIELD_SIZE (ACTCTXA, wLangId, 2)
TEST_FIELD_ALIGN (ACTCTXA, wLangId, 2)
TEST_FIELD_OFFSET(ACTCTXA, wLangId, 18)
TEST_FIELD_SIZE (ACTCTXA, lpAssemblyDirectory, 8)
TEST_FIELD_ALIGN (ACTCTXA, lpAssemblyDirectory, 8)
TEST_FIELD_OFFSET(ACTCTXA, lpAssemblyDirectory, 24)
TEST_FIELD_SIZE (ACTCTXA, lpResourceName, 8)
TEST_FIELD_ALIGN (ACTCTXA, lpResourceName, 8)
TEST_FIELD_OFFSET(ACTCTXA, lpResourceName, 32)
TEST_FIELD_SIZE (ACTCTXA, lpApplicationName, 8)
TEST_FIELD_ALIGN (ACTCTXA, lpApplicationName, 8)
TEST_FIELD_OFFSET(ACTCTXA, lpApplicationName, 40)
TEST_FIELD_SIZE (ACTCTXA, hModule, 8)
TEST_FIELD_ALIGN (ACTCTXA, hModule, 8)
TEST_FIELD_OFFSET(ACTCTXA, hModule, 48)
}
static void test_pack_ACTCTXW(void)
{
/* ACTCTXW */
TEST_TYPE_SIZE (ACTCTXW, 56)
TEST_TYPE_ALIGN (ACTCTXW, 8)
TEST_FIELD_SIZE (ACTCTXW, cbSize, 4)
TEST_FIELD_ALIGN (ACTCTXW, cbSize, 4)
TEST_FIELD_OFFSET(ACTCTXW, cbSize, 0)
TEST_FIELD_SIZE (ACTCTXW, dwFlags, 4)
TEST_FIELD_ALIGN (ACTCTXW, dwFlags, 4)
TEST_FIELD_OFFSET(ACTCTXW, dwFlags, 4)
TEST_FIELD_SIZE (ACTCTXW, lpSource, 8)
TEST_FIELD_ALIGN (ACTCTXW, lpSource, 8)
TEST_FIELD_OFFSET(ACTCTXW, lpSource, 8)
TEST_FIELD_SIZE (ACTCTXW, wProcessorArchitecture, 2)
TEST_FIELD_ALIGN (ACTCTXW, wProcessorArchitecture, 2)
TEST_FIELD_OFFSET(ACTCTXW, wProcessorArchitecture, 16)
TEST_FIELD_SIZE (ACTCTXW, wLangId, 2)
TEST_FIELD_ALIGN (ACTCTXW, wLangId, 2)
TEST_FIELD_OFFSET(ACTCTXW, wLangId, 18)
TEST_FIELD_SIZE (ACTCTXW, lpAssemblyDirectory, 8)
TEST_FIELD_ALIGN (ACTCTXW, lpAssemblyDirectory, 8)
TEST_FIELD_OFFSET(ACTCTXW, lpAssemblyDirectory, 24)
TEST_FIELD_SIZE (ACTCTXW, lpResourceName, 8)
TEST_FIELD_ALIGN (ACTCTXW, lpResourceName, 8)
TEST_FIELD_OFFSET(ACTCTXW, lpResourceName, 32)
TEST_FIELD_SIZE (ACTCTXW, lpApplicationName, 8)
TEST_FIELD_ALIGN (ACTCTXW, lpApplicationName, 8)
TEST_FIELD_OFFSET(ACTCTXW, lpApplicationName, 40)
TEST_FIELD_SIZE (ACTCTXW, hModule, 8)
TEST_FIELD_ALIGN (ACTCTXW, hModule, 8)
TEST_FIELD_OFFSET(ACTCTXW, hModule, 48)
}
static void test_pack_ACTCTX_SECTION_KEYED_DATA(void)
{
/* ACTCTX_SECTION_KEYED_DATA */
TEST_TYPE_SIZE (ACTCTX_SECTION_KEYED_DATA, 112)
TEST_TYPE_ALIGN (ACTCTX_SECTION_KEYED_DATA, 8)
TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA, cbSize, 4)
TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA, cbSize, 4)
TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA, cbSize, 0)
TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA, ulDataFormatVersion, 4)
TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA, ulDataFormatVersion, 4)
TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA, ulDataFormatVersion, 4)
TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA, lpData, 8)
TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA, lpData, 8)
TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA, lpData, 8)
TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA, ulLength, 4)
TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA, ulLength, 4)
TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA, ulLength, 16)
TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA, lpSectionGlobalData, 8)
TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA, lpSectionGlobalData, 8)
TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA, lpSectionGlobalData, 24)
TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA, ulSectionGlobalDataLength, 4)
TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA, ulSectionGlobalDataLength, 4)
TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA, ulSectionGlobalDataLength, 32)
TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA, lpSectionBase, 8)
TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA, lpSectionBase, 8)
TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA, lpSectionBase, 40)
TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA, ulSectionTotalLength, 4)
TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA, ulSectionTotalLength, 4)
TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA, ulSectionTotalLength, 48)
TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA, hActCtx, 8)
TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA, hActCtx, 8)
TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA, hActCtx, 56)
TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA, ulAssemblyRosterIndex, 4)
TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA, ulAssemblyRosterIndex, 4)
TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA, ulAssemblyRosterIndex, 64)
TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA, ulFlags, 4)
TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA, ulFlags, 4)
TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA, ulFlags, 68)
TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA, AssemblyMetadata, 40)
TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA, AssemblyMetadata, 8)
TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA, AssemblyMetadata, 72)
}
static void test_pack_ACTCTX_SECTION_KEYED_DATA_2600(void)
{
/* ACTCTX_SECTION_KEYED_DATA_2600 */
TEST_TYPE_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, 72)
TEST_TYPE_ALIGN (ACTCTX_SECTION_KEYED_DATA_2600, 8)
TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, cbSize, 4)
TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_2600, cbSize, 4)
TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_2600, cbSize, 0)
TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, ulDataFormatVersion, 4)
TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_2600, ulDataFormatVersion, 4)
TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_2600, ulDataFormatVersion, 4)
TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, lpData, 8)
TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_2600, lpData, 8)
TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_2600, lpData, 8)
TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, ulLength, 4)
TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_2600, ulLength, 4)
TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_2600, ulLength, 16)
TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, lpSectionGlobalData, 8)
TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_2600, lpSectionGlobalData, 8)
TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_2600, lpSectionGlobalData, 24)
TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, ulSectionGlobalDataLength, 4)
TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_2600, ulSectionGlobalDataLength, 4)
TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_2600, ulSectionGlobalDataLength, 32)
TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, lpSectionBase, 8)
TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_2600, lpSectionBase, 8)
TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_2600, lpSectionBase, 40)
TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, ulSectionTotalLength, 4)
TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_2600, ulSectionTotalLength, 4)
TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_2600, ulSectionTotalLength, 48)
TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, hActCtx, 8)
TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_2600, hActCtx, 8)
TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_2600, hActCtx, 56)
TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, ulAssemblyRosterIndex, 4)
TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_2600, ulAssemblyRosterIndex, 4)
TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_2600, ulAssemblyRosterIndex, 64)
}
static void test_pack_ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA(void)
{
/* ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA */
TEST_TYPE_SIZE (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, 40)
TEST_TYPE_ALIGN (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, 8)
TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, lpInformation, 8)
TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, lpInformation, 8)
TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, lpInformation, 0)
TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, lpSectionBase, 8)
TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, lpSectionBase, 8)
TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, lpSectionBase, 8)
TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, ulSectionLength, 4)
TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, ulSectionLength, 4)
TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, ulSectionLength, 16)
TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, lpSectionGlobalDataBase, 8)
TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, lpSectionGlobalDataBase, 8)
TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, lpSectionGlobalDataBase, 24)
TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, ulSectionGlobalDataLength, 4)
TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, ulSectionGlobalDataLength, 4)
TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, ulSectionGlobalDataLength, 32)
}
static void test_pack_ACTIVATION_CONTEXT_BASIC_INFORMATION(void)
{
/* ACTIVATION_CONTEXT_BASIC_INFORMATION */
TEST_TYPE_SIZE (ACTIVATION_CONTEXT_BASIC_INFORMATION, 16)
TEST_TYPE_ALIGN (ACTIVATION_CONTEXT_BASIC_INFORMATION, 8)
TEST_FIELD_SIZE (ACTIVATION_CONTEXT_BASIC_INFORMATION, hActCtx, 8)
TEST_FIELD_ALIGN (ACTIVATION_CONTEXT_BASIC_INFORMATION, hActCtx, 8)
TEST_FIELD_OFFSET(ACTIVATION_CONTEXT_BASIC_INFORMATION, hActCtx, 0)
TEST_FIELD_SIZE (ACTIVATION_CONTEXT_BASIC_INFORMATION, dwFlags, 4)
TEST_FIELD_ALIGN (ACTIVATION_CONTEXT_BASIC_INFORMATION, dwFlags, 4)
TEST_FIELD_OFFSET(ACTIVATION_CONTEXT_BASIC_INFORMATION, dwFlags, 8)
}
static void test_pack_BY_HANDLE_FILE_INFORMATION(void)
{
/* BY_HANDLE_FILE_INFORMATION */
TEST_TYPE_SIZE (BY_HANDLE_FILE_INFORMATION, 52)
TEST_TYPE_ALIGN (BY_HANDLE_FILE_INFORMATION, 4)
TEST_FIELD_SIZE (BY_HANDLE_FILE_INFORMATION, dwFileAttributes, 4)
TEST_FIELD_ALIGN (BY_HANDLE_FILE_INFORMATION, dwFileAttributes, 4)
TEST_FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, dwFileAttributes, 0)
TEST_FIELD_SIZE (BY_HANDLE_FILE_INFORMATION, ftCreationTime, 8)
TEST_FIELD_ALIGN (BY_HANDLE_FILE_INFORMATION, ftCreationTime, 4)
TEST_FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, ftCreationTime, 4)
TEST_FIELD_SIZE (BY_HANDLE_FILE_INFORMATION, ftLastAccessTime, 8)
TEST_FIELD_ALIGN (BY_HANDLE_FILE_INFORMATION, ftLastAccessTime, 4)
TEST_FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, ftLastAccessTime, 12)
TEST_FIELD_SIZE (BY_HANDLE_FILE_INFORMATION, ftLastWriteTime, 8)
TEST_FIELD_ALIGN (BY_HANDLE_FILE_INFORMATION, ftLastWriteTime, 4)
TEST_FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, ftLastWriteTime, 20)
TEST_FIELD_SIZE (BY_HANDLE_FILE_INFORMATION, dwVolumeSerialNumber, 4)
TEST_FIELD_ALIGN (BY_HANDLE_FILE_INFORMATION, dwVolumeSerialNumber, 4)
TEST_FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, dwVolumeSerialNumber, 28)
TEST_FIELD_SIZE (BY_HANDLE_FILE_INFORMATION, nFileSizeHigh, 4)
TEST_FIELD_ALIGN (BY_HANDLE_FILE_INFORMATION, nFileSizeHigh, 4)
TEST_FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, nFileSizeHigh, 32)
TEST_FIELD_SIZE (BY_HANDLE_FILE_INFORMATION, nFileSizeLow, 4)
TEST_FIELD_ALIGN (BY_HANDLE_FILE_INFORMATION, nFileSizeLow, 4)
TEST_FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, nFileSizeLow, 36)
TEST_FIELD_SIZE (BY_HANDLE_FILE_INFORMATION, nNumberOfLinks, 4)
TEST_FIELD_ALIGN (BY_HANDLE_FILE_INFORMATION, nNumberOfLinks, 4)
TEST_FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, nNumberOfLinks, 40)
TEST_FIELD_SIZE (BY_HANDLE_FILE_INFORMATION, nFileIndexHigh, 4)
TEST_FIELD_ALIGN (BY_HANDLE_FILE_INFORMATION, nFileIndexHigh, 4)
TEST_FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, nFileIndexHigh, 44)
TEST_FIELD_SIZE (BY_HANDLE_FILE_INFORMATION, nFileIndexLow, 4)
TEST_FIELD_ALIGN (BY_HANDLE_FILE_INFORMATION, nFileIndexLow, 4)
TEST_FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, nFileIndexLow, 48)
}
static void test_pack_COMMCONFIG(void)
{
/* COMMCONFIG */
TEST_TYPE_SIZE (COMMCONFIG, 52)
TEST_TYPE_ALIGN (COMMCONFIG, 4)
TEST_FIELD_SIZE (COMMCONFIG, dwSize, 4)
TEST_FIELD_ALIGN (COMMCONFIG, dwSize, 4)
TEST_FIELD_OFFSET(COMMCONFIG, dwSize, 0)
TEST_FIELD_SIZE (COMMCONFIG, wVersion, 2)
TEST_FIELD_ALIGN (COMMCONFIG, wVersion, 2)
TEST_FIELD_OFFSET(COMMCONFIG, wVersion, 4)
TEST_FIELD_SIZE (COMMCONFIG, wReserved, 2)
TEST_FIELD_ALIGN (COMMCONFIG, wReserved, 2)
TEST_FIELD_OFFSET(COMMCONFIG, wReserved, 6)
TEST_FIELD_SIZE (COMMCONFIG, dcb, 28)
TEST_FIELD_ALIGN (COMMCONFIG, dcb, 4)
TEST_FIELD_OFFSET(COMMCONFIG, dcb, 8)
TEST_FIELD_SIZE (COMMCONFIG, dwProviderSubType, 4)
TEST_FIELD_ALIGN (COMMCONFIG, dwProviderSubType, 4)
TEST_FIELD_OFFSET(COMMCONFIG, dwProviderSubType, 36)
TEST_FIELD_SIZE (COMMCONFIG, dwProviderOffset, 4)
TEST_FIELD_ALIGN (COMMCONFIG, dwProviderOffset, 4)
TEST_FIELD_OFFSET(COMMCONFIG, dwProviderOffset, 40)
TEST_FIELD_SIZE (COMMCONFIG, dwProviderSize, 4)
TEST_FIELD_ALIGN (COMMCONFIG, dwProviderSize, 4)
TEST_FIELD_OFFSET(COMMCONFIG, dwProviderSize, 44)
TEST_FIELD_SIZE (COMMCONFIG, wcProviderData, 4)
TEST_FIELD_ALIGN (COMMCONFIG, wcProviderData, 4)
TEST_FIELD_OFFSET(COMMCONFIG, wcProviderData, 48)
}
static void test_pack_COMMPROP(void)
{
/* COMMPROP */
TEST_TYPE_SIZE (COMMPROP, 64)
TEST_TYPE_ALIGN (COMMPROP, 4)
TEST_FIELD_SIZE (COMMPROP, wPacketLength, 2)
TEST_FIELD_ALIGN (COMMPROP, wPacketLength, 2)
TEST_FIELD_OFFSET(COMMPROP, wPacketLength, 0)
TEST_FIELD_SIZE (COMMPROP, wPacketVersion, 2)
TEST_FIELD_ALIGN (COMMPROP, wPacketVersion, 2)
TEST_FIELD_OFFSET(COMMPROP, wPacketVersion, 2)
TEST_FIELD_SIZE (COMMPROP, dwServiceMask, 4)
TEST_FIELD_ALIGN (COMMPROP, dwServiceMask, 4)
TEST_FIELD_OFFSET(COMMPROP, dwServiceMask, 4)
TEST_FIELD_SIZE (COMMPROP, dwReserved1, 4)
TEST_FIELD_ALIGN (COMMPROP, dwReserved1, 4)
TEST_FIELD_OFFSET(COMMPROP, dwReserved1, 8)
TEST_FIELD_SIZE (COMMPROP, dwMaxTxQueue, 4)
TEST_FIELD_ALIGN (COMMPROP, dwMaxTxQueue, 4)
TEST_FIELD_OFFSET(COMMPROP, dwMaxTxQueue, 12)
TEST_FIELD_SIZE (COMMPROP, dwMaxRxQueue, 4)
TEST_FIELD_ALIGN (COMMPROP, dwMaxRxQueue, 4)
TEST_FIELD_OFFSET(COMMPROP, dwMaxRxQueue, 16)
TEST_FIELD_SIZE (COMMPROP, dwMaxBaud, 4)
TEST_FIELD_ALIGN (COMMPROP, dwMaxBaud, 4)
TEST_FIELD_OFFSET(COMMPROP, dwMaxBaud, 20)
TEST_FIELD_SIZE (COMMPROP, dwProvSubType, 4)
TEST_FIELD_ALIGN (COMMPROP, dwProvSubType, 4)
TEST_FIELD_OFFSET(COMMPROP, dwProvSubType, 24)
TEST_FIELD_SIZE (COMMPROP, dwProvCapabilities, 4)
TEST_FIELD_ALIGN (COMMPROP, dwProvCapabilities, 4)
TEST_FIELD_OFFSET(COMMPROP, dwProvCapabilities, 28)
TEST_FIELD_SIZE (COMMPROP, dwSettableParams, 4)
TEST_FIELD_ALIGN (COMMPROP, dwSettableParams, 4)
TEST_FIELD_OFFSET(COMMPROP, dwSettableParams, 32)
TEST_FIELD_SIZE (COMMPROP, dwSettableBaud, 4)
TEST_FIELD_ALIGN (COMMPROP, dwSettableBaud, 4)
TEST_FIELD_OFFSET(COMMPROP, dwSettableBaud, 36)
TEST_FIELD_SIZE (COMMPROP, wSettableData, 2)
TEST_FIELD_ALIGN (COMMPROP, wSettableData, 2)
TEST_FIELD_OFFSET(COMMPROP, wSettableData, 40)
TEST_FIELD_SIZE (COMMPROP, wSettableStopParity, 2)
TEST_FIELD_ALIGN (COMMPROP, wSettableStopParity, 2)
TEST_FIELD_OFFSET(COMMPROP, wSettableStopParity, 42)
TEST_FIELD_SIZE (COMMPROP, dwCurrentTxQueue, 4)
TEST_FIELD_ALIGN (COMMPROP, dwCurrentTxQueue, 4)
TEST_FIELD_OFFSET(COMMPROP, dwCurrentTxQueue, 44)
TEST_FIELD_SIZE (COMMPROP, dwCurrentRxQueue, 4)
TEST_FIELD_ALIGN (COMMPROP, dwCurrentRxQueue, 4)
TEST_FIELD_OFFSET(COMMPROP, dwCurrentRxQueue, 48)
TEST_FIELD_SIZE (COMMPROP, dwProvSpec1, 4)
TEST_FIELD_ALIGN (COMMPROP, dwProvSpec1, 4)
TEST_FIELD_OFFSET(COMMPROP, dwProvSpec1, 52)
TEST_FIELD_SIZE (COMMPROP, dwProvSpec2, 4)
TEST_FIELD_ALIGN (COMMPROP, dwProvSpec2, 4)
TEST_FIELD_OFFSET(COMMPROP, dwProvSpec2, 56)
TEST_FIELD_SIZE (COMMPROP, wcProvChar, 2)
TEST_FIELD_ALIGN (COMMPROP, wcProvChar, 2)
TEST_FIELD_OFFSET(COMMPROP, wcProvChar, 60)
}
static void test_pack_COMMTIMEOUTS(void)
{
/* COMMTIMEOUTS */
TEST_TYPE_SIZE (COMMTIMEOUTS, 20)
TEST_TYPE_ALIGN (COMMTIMEOUTS, 4)
TEST_FIELD_SIZE (COMMTIMEOUTS, ReadIntervalTimeout, 4)
TEST_FIELD_ALIGN (COMMTIMEOUTS, ReadIntervalTimeout, 4)
TEST_FIELD_OFFSET(COMMTIMEOUTS, ReadIntervalTimeout, 0)
TEST_FIELD_SIZE (COMMTIMEOUTS, ReadTotalTimeoutMultiplier, 4)
TEST_FIELD_ALIGN (COMMTIMEOUTS, ReadTotalTimeoutMultiplier, 4)
TEST_FIELD_OFFSET(COMMTIMEOUTS, ReadTotalTimeoutMultiplier, 4)
TEST_FIELD_SIZE (COMMTIMEOUTS, ReadTotalTimeoutConstant, 4)
TEST_FIELD_ALIGN (COMMTIMEOUTS, ReadTotalTimeoutConstant, 4)
TEST_FIELD_OFFSET(COMMTIMEOUTS, ReadTotalTimeoutConstant, 8)
TEST_FIELD_SIZE (COMMTIMEOUTS, WriteTotalTimeoutMultiplier, 4)
TEST_FIELD_ALIGN (COMMTIMEOUTS, WriteTotalTimeoutMultiplier, 4)
TEST_FIELD_OFFSET(COMMTIMEOUTS, WriteTotalTimeoutMultiplier, 12)
TEST_FIELD_SIZE (COMMTIMEOUTS, WriteTotalTimeoutConstant, 4)
TEST_FIELD_ALIGN (COMMTIMEOUTS, WriteTotalTimeoutConstant, 4)
TEST_FIELD_OFFSET(COMMTIMEOUTS, WriteTotalTimeoutConstant, 16)
}
static void test_pack_COMSTAT(void)
{
/* COMSTAT */
TEST_TYPE_SIZE (COMSTAT, 12)
TEST_TYPE_ALIGN (COMSTAT, 4)
TEST_FIELD_SIZE (COMSTAT, cbInQue, 4)
TEST_FIELD_ALIGN (COMSTAT, cbInQue, 4)
TEST_FIELD_OFFSET(COMSTAT, cbInQue, 4)
TEST_FIELD_SIZE (COMSTAT, cbOutQue, 4)
TEST_FIELD_ALIGN (COMSTAT, cbOutQue, 4)
TEST_FIELD_OFFSET(COMSTAT, cbOutQue, 8)
}
static void test_pack_CREATE_PROCESS_DEBUG_INFO(void)
{
/* CREATE_PROCESS_DEBUG_INFO */
TEST_TYPE_SIZE (CREATE_PROCESS_DEBUG_INFO, 72)
TEST_TYPE_ALIGN (CREATE_PROCESS_DEBUG_INFO, 8)
TEST_FIELD_SIZE (CREATE_PROCESS_DEBUG_INFO, hFile, 8)
TEST_FIELD_ALIGN (CREATE_PROCESS_DEBUG_INFO, hFile, 8)
TEST_FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, hFile, 0)
TEST_FIELD_SIZE (CREATE_PROCESS_DEBUG_INFO, hProcess, 8)
TEST_FIELD_ALIGN (CREATE_PROCESS_DEBUG_INFO, hProcess, 8)
TEST_FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, hProcess, 8)
TEST_FIELD_SIZE (CREATE_PROCESS_DEBUG_INFO, hThread, 8)
TEST_FIELD_ALIGN (CREATE_PROCESS_DEBUG_INFO, hThread, 8)
TEST_FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, hThread, 16)
TEST_FIELD_SIZE (CREATE_PROCESS_DEBUG_INFO, lpBaseOfImage, 8)
TEST_FIELD_ALIGN (CREATE_PROCESS_DEBUG_INFO, lpBaseOfImage, 8)
TEST_FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, lpBaseOfImage, 24)
TEST_FIELD_SIZE (CREATE_PROCESS_DEBUG_INFO, dwDebugInfoFileOffset, 4)
TEST_FIELD_ALIGN (CREATE_PROCESS_DEBUG_INFO, dwDebugInfoFileOffset, 4)
TEST_FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, dwDebugInfoFileOffset, 32)
TEST_FIELD_SIZE (CREATE_PROCESS_DEBUG_INFO, nDebugInfoSize, 4)
TEST_FIELD_ALIGN (CREATE_PROCESS_DEBUG_INFO, nDebugInfoSize, 4)
TEST_FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, nDebugInfoSize, 36)
TEST_FIELD_SIZE (CREATE_PROCESS_DEBUG_INFO, lpThreadLocalBase, 8)
TEST_FIELD_ALIGN (CREATE_PROCESS_DEBUG_INFO, lpThreadLocalBase, 8)
TEST_FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, lpThreadLocalBase, 40)
TEST_FIELD_SIZE (CREATE_PROCESS_DEBUG_INFO, lpStartAddress, 8)
TEST_FIELD_ALIGN (CREATE_PROCESS_DEBUG_INFO, lpStartAddress, 8)
TEST_FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, lpStartAddress, 48)
TEST_FIELD_SIZE (CREATE_PROCESS_DEBUG_INFO, lpImageName, 8)
TEST_FIELD_ALIGN (CREATE_PROCESS_DEBUG_INFO, lpImageName, 8)
TEST_FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, lpImageName, 56)
TEST_FIELD_SIZE (CREATE_PROCESS_DEBUG_INFO, fUnicode, 2)
TEST_FIELD_ALIGN (CREATE_PROCESS_DEBUG_INFO, fUnicode, 2)
TEST_FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, fUnicode, 64)
}
static void test_pack_CREATE_THREAD_DEBUG_INFO(void)
{
/* CREATE_THREAD_DEBUG_INFO */
TEST_TYPE_SIZE (CREATE_THREAD_DEBUG_INFO, 24)
TEST_TYPE_ALIGN (CREATE_THREAD_DEBUG_INFO, 8)
TEST_FIELD_SIZE (CREATE_THREAD_DEBUG_INFO, hThread, 8)
TEST_FIELD_ALIGN (CREATE_THREAD_DEBUG_INFO, hThread, 8)
TEST_FIELD_OFFSET(CREATE_THREAD_DEBUG_INFO, hThread, 0)
TEST_FIELD_SIZE (CREATE_THREAD_DEBUG_INFO, lpThreadLocalBase, 8)
TEST_FIELD_ALIGN (CREATE_THREAD_DEBUG_INFO, lpThreadLocalBase, 8)
TEST_FIELD_OFFSET(CREATE_THREAD_DEBUG_INFO, lpThreadLocalBase, 8)
TEST_FIELD_SIZE (CREATE_THREAD_DEBUG_INFO, lpStartAddress, 8)
TEST_FIELD_ALIGN (CREATE_THREAD_DEBUG_INFO, lpStartAddress, 8)
TEST_FIELD_OFFSET(CREATE_THREAD_DEBUG_INFO, lpStartAddress, 16)
}
static void test_pack_CRITICAL_SECTION(void)
{
/* CRITICAL_SECTION */
TEST_TYPE_SIZE (CRITICAL_SECTION, 40)
TEST_TYPE_ALIGN (CRITICAL_SECTION, 8)
}
static void test_pack_CRITICAL_SECTION_DEBUG(void)
{
/* CRITICAL_SECTION_DEBUG */
}
static void test_pack_DCB(void)
{
/* DCB */
TEST_TYPE_SIZE (DCB, 28)
TEST_TYPE_ALIGN (DCB, 4)
TEST_FIELD_SIZE (DCB, DCBlength, 4)
TEST_FIELD_ALIGN (DCB, DCBlength, 4)
TEST_FIELD_OFFSET(DCB, DCBlength, 0)
TEST_FIELD_SIZE (DCB, BaudRate, 4)
TEST_FIELD_ALIGN (DCB, BaudRate, 4)
TEST_FIELD_OFFSET(DCB, BaudRate, 4)
TEST_FIELD_SIZE (DCB, wReserved, 2)
TEST_FIELD_ALIGN (DCB, wReserved, 2)
TEST_FIELD_OFFSET(DCB, wReserved, 12)
TEST_FIELD_SIZE (DCB, XonLim, 2)
TEST_FIELD_ALIGN (DCB, XonLim, 2)
TEST_FIELD_OFFSET(DCB, XonLim, 14)
TEST_FIELD_SIZE (DCB, XoffLim, 2)
TEST_FIELD_ALIGN (DCB, XoffLim, 2)
TEST_FIELD_OFFSET(DCB, XoffLim, 16)
TEST_FIELD_SIZE (DCB, ByteSize, 1)
TEST_FIELD_ALIGN (DCB, ByteSize, 1)
TEST_FIELD_OFFSET(DCB, ByteSize, 18)
TEST_FIELD_SIZE (DCB, Parity, 1)
TEST_FIELD_ALIGN (DCB, Parity, 1)
TEST_FIELD_OFFSET(DCB, Parity, 19)
TEST_FIELD_SIZE (DCB, StopBits, 1)
TEST_FIELD_ALIGN (DCB, StopBits, 1)
TEST_FIELD_OFFSET(DCB, StopBits, 20)
TEST_FIELD_SIZE (DCB, XonChar, 1)
TEST_FIELD_ALIGN (DCB, XonChar, 1)
TEST_FIELD_OFFSET(DCB, XonChar, 21)
TEST_FIELD_SIZE (DCB, XoffChar, 1)
TEST_FIELD_ALIGN (DCB, XoffChar, 1)
TEST_FIELD_OFFSET(DCB, XoffChar, 22)
TEST_FIELD_SIZE (DCB, ErrorChar, 1)
TEST_FIELD_ALIGN (DCB, ErrorChar, 1)
TEST_FIELD_OFFSET(DCB, ErrorChar, 23)
TEST_FIELD_SIZE (DCB, EofChar, 1)
TEST_FIELD_ALIGN (DCB, EofChar, 1)
TEST_FIELD_OFFSET(DCB, EofChar, 24)
TEST_FIELD_SIZE (DCB, EvtChar, 1)
TEST_FIELD_ALIGN (DCB, EvtChar, 1)
TEST_FIELD_OFFSET(DCB, EvtChar, 25)
TEST_FIELD_SIZE (DCB, wReserved1, 2)
TEST_FIELD_ALIGN (DCB, wReserved1, 2)
TEST_FIELD_OFFSET(DCB, wReserved1, 26)
}
static void test_pack_DEBUG_EVENT(void)
{
/* DEBUG_EVENT */
TEST_FIELD_SIZE (DEBUG_EVENT, dwDebugEventCode, 4)
TEST_FIELD_ALIGN (DEBUG_EVENT, dwDebugEventCode, 4)
TEST_FIELD_OFFSET(DEBUG_EVENT, dwDebugEventCode, 0)
TEST_FIELD_SIZE (DEBUG_EVENT, dwProcessId, 4)
TEST_FIELD_ALIGN (DEBUG_EVENT, dwProcessId, 4)
TEST_FIELD_OFFSET(DEBUG_EVENT, dwProcessId, 4)
TEST_FIELD_SIZE (DEBUG_EVENT, dwThreadId, 4)
TEST_FIELD_ALIGN (DEBUG_EVENT, dwThreadId, 4)
TEST_FIELD_OFFSET(DEBUG_EVENT, dwThreadId, 8)
}
static void test_pack_ENUMRESLANGPROCA(void)
{
/* ENUMRESLANGPROCA */
TEST_TYPE_SIZE (ENUMRESLANGPROCA, 8)
TEST_TYPE_ALIGN (ENUMRESLANGPROCA, 8)
}
static void test_pack_ENUMRESLANGPROCW(void)
{
/* ENUMRESLANGPROCW */
TEST_TYPE_SIZE (ENUMRESLANGPROCW, 8)
TEST_TYPE_ALIGN (ENUMRESLANGPROCW, 8)
}
static void test_pack_ENUMRESNAMEPROCA(void)
{
/* ENUMRESNAMEPROCA */
TEST_TYPE_SIZE (ENUMRESNAMEPROCA, 8)
TEST_TYPE_ALIGN (ENUMRESNAMEPROCA, 8)
}
static void test_pack_ENUMRESNAMEPROCW(void)
{
/* ENUMRESNAMEPROCW */
TEST_TYPE_SIZE (ENUMRESNAMEPROCW, 8)
TEST_TYPE_ALIGN (ENUMRESNAMEPROCW, 8)
}
static void test_pack_ENUMRESTYPEPROCA(void)
{
/* ENUMRESTYPEPROCA */
TEST_TYPE_SIZE (ENUMRESTYPEPROCA, 8)
TEST_TYPE_ALIGN (ENUMRESTYPEPROCA, 8)
}
static void test_pack_ENUMRESTYPEPROCW(void)
{
/* ENUMRESTYPEPROCW */
TEST_TYPE_SIZE (ENUMRESTYPEPROCW, 8)
TEST_TYPE_ALIGN (ENUMRESTYPEPROCW, 8)
}
static void test_pack_EXCEPTION_DEBUG_INFO(void)
{
/* EXCEPTION_DEBUG_INFO */
TEST_TYPE_SIZE (EXCEPTION_DEBUG_INFO, 160)
TEST_TYPE_ALIGN (EXCEPTION_DEBUG_INFO, 8)
TEST_FIELD_SIZE (EXCEPTION_DEBUG_INFO, ExceptionRecord, 152)
TEST_FIELD_ALIGN (EXCEPTION_DEBUG_INFO, ExceptionRecord, 8)
TEST_FIELD_OFFSET(EXCEPTION_DEBUG_INFO, ExceptionRecord, 0)
TEST_FIELD_SIZE (EXCEPTION_DEBUG_INFO, dwFirstChance, 4)
TEST_FIELD_ALIGN (EXCEPTION_DEBUG_INFO, dwFirstChance, 4)
TEST_FIELD_OFFSET(EXCEPTION_DEBUG_INFO, dwFirstChance, 152)
}
static void test_pack_EXIT_PROCESS_DEBUG_INFO(void)
{
/* EXIT_PROCESS_DEBUG_INFO */
TEST_TYPE_SIZE (EXIT_PROCESS_DEBUG_INFO, 4)
TEST_TYPE_ALIGN (EXIT_PROCESS_DEBUG_INFO, 4)
TEST_FIELD_SIZE (EXIT_PROCESS_DEBUG_INFO, dwExitCode, 4)
TEST_FIELD_ALIGN (EXIT_PROCESS_DEBUG_INFO, dwExitCode, 4)
TEST_FIELD_OFFSET(EXIT_PROCESS_DEBUG_INFO, dwExitCode, 0)
}
static void test_pack_EXIT_THREAD_DEBUG_INFO(void)
{
/* EXIT_THREAD_DEBUG_INFO */
TEST_TYPE_SIZE (EXIT_THREAD_DEBUG_INFO, 4)
TEST_TYPE_ALIGN (EXIT_THREAD_DEBUG_INFO, 4)
TEST_FIELD_SIZE (EXIT_THREAD_DEBUG_INFO, dwExitCode, 4)
TEST_FIELD_ALIGN (EXIT_THREAD_DEBUG_INFO, dwExitCode, 4)
TEST_FIELD_OFFSET(EXIT_THREAD_DEBUG_INFO, dwExitCode, 0)
}
static void test_pack_HW_PROFILE_INFOA(void)
{
/* HW_PROFILE_INFOA */
TEST_TYPE_SIZE (HW_PROFILE_INFOA, 124)
TEST_TYPE_ALIGN (HW_PROFILE_INFOA, 4)
TEST_FIELD_SIZE (HW_PROFILE_INFOA, dwDockInfo, 4)
TEST_FIELD_ALIGN (HW_PROFILE_INFOA, dwDockInfo, 4)
TEST_FIELD_OFFSET(HW_PROFILE_INFOA, dwDockInfo, 0)
TEST_FIELD_SIZE (HW_PROFILE_INFOA, szHwProfileGuid, 39)
TEST_FIELD_ALIGN (HW_PROFILE_INFOA, szHwProfileGuid, 1)
TEST_FIELD_OFFSET(HW_PROFILE_INFOA, szHwProfileGuid, 4)
TEST_FIELD_SIZE (HW_PROFILE_INFOA, szHwProfileName, 80)
TEST_FIELD_ALIGN (HW_PROFILE_INFOA, szHwProfileName, 1)
TEST_FIELD_OFFSET(HW_PROFILE_INFOA, szHwProfileName, 43)
}
static void test_pack_HW_PROFILE_INFOW(void)
{
/* HW_PROFILE_INFOW */
TEST_TYPE_SIZE (HW_PROFILE_INFOW, 244)
TEST_TYPE_ALIGN (HW_PROFILE_INFOW, 4)
TEST_FIELD_SIZE (HW_PROFILE_INFOW, dwDockInfo, 4)
TEST_FIELD_ALIGN (HW_PROFILE_INFOW, dwDockInfo, 4)
TEST_FIELD_OFFSET(HW_PROFILE_INFOW, dwDockInfo, 0)
TEST_FIELD_SIZE (HW_PROFILE_INFOW, szHwProfileGuid, 78)
TEST_FIELD_ALIGN (HW_PROFILE_INFOW, szHwProfileGuid, 2)
TEST_FIELD_OFFSET(HW_PROFILE_INFOW, szHwProfileGuid, 4)
TEST_FIELD_SIZE (HW_PROFILE_INFOW, szHwProfileName, 160)
TEST_FIELD_ALIGN (HW_PROFILE_INFOW, szHwProfileName, 2)
TEST_FIELD_OFFSET(HW_PROFILE_INFOW, szHwProfileName, 82)
}
static void test_pack_LOAD_DLL_DEBUG_INFO(void)
{
/* LOAD_DLL_DEBUG_INFO */
TEST_TYPE_SIZE (LOAD_DLL_DEBUG_INFO, 40)
TEST_TYPE_ALIGN (LOAD_DLL_DEBUG_INFO, 8)
TEST_FIELD_SIZE (LOAD_DLL_DEBUG_INFO, hFile, 8)
TEST_FIELD_ALIGN (LOAD_DLL_DEBUG_INFO, hFile, 8)
TEST_FIELD_OFFSET(LOAD_DLL_DEBUG_INFO, hFile, 0)
TEST_FIELD_SIZE (LOAD_DLL_DEBUG_INFO, lpBaseOfDll, 8)
TEST_FIELD_ALIGN (LOAD_DLL_DEBUG_INFO, lpBaseOfDll, 8)
TEST_FIELD_OFFSET(LOAD_DLL_DEBUG_INFO, lpBaseOfDll, 8)
TEST_FIELD_SIZE (LOAD_DLL_DEBUG_INFO, dwDebugInfoFileOffset, 4)
TEST_FIELD_ALIGN (LOAD_DLL_DEBUG_INFO, dwDebugInfoFileOffset, 4)
TEST_FIELD_OFFSET(LOAD_DLL_DEBUG_INFO, dwDebugInfoFileOffset, 16)
TEST_FIELD_SIZE (LOAD_DLL_DEBUG_INFO, nDebugInfoSize, 4)
TEST_FIELD_ALIGN (LOAD_DLL_DEBUG_INFO, nDebugInfoSize, 4)
TEST_FIELD_OFFSET(LOAD_DLL_DEBUG_INFO, nDebugInfoSize, 20)
TEST_FIELD_SIZE (LOAD_DLL_DEBUG_INFO, lpImageName, 8)
TEST_FIELD_ALIGN (LOAD_DLL_DEBUG_INFO, lpImageName, 8)
TEST_FIELD_OFFSET(LOAD_DLL_DEBUG_INFO, lpImageName, 24)
TEST_FIELD_SIZE (LOAD_DLL_DEBUG_INFO, fUnicode, 2)
TEST_FIELD_ALIGN (LOAD_DLL_DEBUG_INFO, fUnicode, 2)
TEST_FIELD_OFFSET(LOAD_DLL_DEBUG_INFO, fUnicode, 32)
}
static void test_pack_LPBY_HANDLE_FILE_INFORMATION(void)
{
/* LPBY_HANDLE_FILE_INFORMATION */
TEST_TYPE_SIZE (LPBY_HANDLE_FILE_INFORMATION, 8)
TEST_TYPE_ALIGN (LPBY_HANDLE_FILE_INFORMATION, 8)
TEST_TARGET_SIZE (LPBY_HANDLE_FILE_INFORMATION, 52)
TEST_TARGET_ALIGN(LPBY_HANDLE_FILE_INFORMATION, 4)
}
static void test_pack_LPCOMMCONFIG(void)
{
/* LPCOMMCONFIG */
TEST_TYPE_SIZE (LPCOMMCONFIG, 8)
TEST_TYPE_ALIGN (LPCOMMCONFIG, 8)
TEST_TARGET_SIZE (LPCOMMCONFIG, 52)
TEST_TARGET_ALIGN(LPCOMMCONFIG, 4)
}
static void test_pack_LPCOMMPROP(void)
{
/* LPCOMMPROP */
TEST_TYPE_SIZE (LPCOMMPROP, 8)
TEST_TYPE_ALIGN (LPCOMMPROP, 8)
TEST_TARGET_SIZE (LPCOMMPROP, 64)
TEST_TARGET_ALIGN(LPCOMMPROP, 4)
}
static void test_pack_LPCOMMTIMEOUTS(void)
{
/* LPCOMMTIMEOUTS */
TEST_TYPE_SIZE (LPCOMMTIMEOUTS, 8)
TEST_TYPE_ALIGN (LPCOMMTIMEOUTS, 8)
TEST_TARGET_SIZE (LPCOMMTIMEOUTS, 20)
TEST_TARGET_ALIGN(LPCOMMTIMEOUTS, 4)
}
static void test_pack_LPCOMSTAT(void)
{
/* LPCOMSTAT */
TEST_TYPE_SIZE (LPCOMSTAT, 8)
TEST_TYPE_ALIGN (LPCOMSTAT, 8)
TEST_TARGET_SIZE (LPCOMSTAT, 12)
TEST_TARGET_ALIGN(LPCOMSTAT, 4)
}
static void test_pack_LPCRITICAL_SECTION(void)
{
/* LPCRITICAL_SECTION */
TEST_TYPE_SIZE (LPCRITICAL_SECTION, 8)
TEST_TYPE_ALIGN (LPCRITICAL_SECTION, 8)
}
static void test_pack_LPCRITICAL_SECTION_DEBUG(void)
{
/* LPCRITICAL_SECTION_DEBUG */
TEST_TYPE_SIZE (LPCRITICAL_SECTION_DEBUG, 8)
TEST_TYPE_ALIGN (LPCRITICAL_SECTION_DEBUG, 8)
}
static void test_pack_LPDCB(void)
{
/* LPDCB */
TEST_TYPE_SIZE (LPDCB, 8)
TEST_TYPE_ALIGN (LPDCB, 8)
TEST_TARGET_SIZE (LPDCB, 28)
TEST_TARGET_ALIGN(LPDCB, 4)
}
static void test_pack_LPDEBUG_EVENT(void)
{
/* LPDEBUG_EVENT */
TEST_TYPE_SIZE (LPDEBUG_EVENT, 8)
TEST_TYPE_ALIGN (LPDEBUG_EVENT, 8)
}
static void test_pack_LPEXCEPTION_POINTERS(void)
{
/* LPEXCEPTION_POINTERS */
TEST_TYPE_SIZE (LPEXCEPTION_POINTERS, 8)
TEST_TYPE_ALIGN (LPEXCEPTION_POINTERS, 8)
}
static void test_pack_LPEXCEPTION_RECORD(void)
{
/* LPEXCEPTION_RECORD */
TEST_TYPE_SIZE (LPEXCEPTION_RECORD, 8)
TEST_TYPE_ALIGN (LPEXCEPTION_RECORD, 8)
}
static void test_pack_LPFIBER_START_ROUTINE(void)
{
/* LPFIBER_START_ROUTINE */
TEST_TYPE_SIZE (LPFIBER_START_ROUTINE, 8)
TEST_TYPE_ALIGN (LPFIBER_START_ROUTINE, 8)
}
static void test_pack_LPHW_PROFILE_INFOA(void)
{
/* LPHW_PROFILE_INFOA */
TEST_TYPE_SIZE (LPHW_PROFILE_INFOA, 8)
TEST_TYPE_ALIGN (LPHW_PROFILE_INFOA, 8)
TEST_TARGET_SIZE (LPHW_PROFILE_INFOA, 124)
TEST_TARGET_ALIGN(LPHW_PROFILE_INFOA, 4)
}
static void test_pack_LPHW_PROFILE_INFOW(void)
{
/* LPHW_PROFILE_INFOW */
TEST_TYPE_SIZE (LPHW_PROFILE_INFOW, 8)
TEST_TYPE_ALIGN (LPHW_PROFILE_INFOW, 8)
TEST_TARGET_SIZE (LPHW_PROFILE_INFOW, 244)
TEST_TARGET_ALIGN(LPHW_PROFILE_INFOW, 4)
}
static void test_pack_LPMEMORYSTATUS(void)
{
/* LPMEMORYSTATUS */
TEST_TYPE_SIZE (LPMEMORYSTATUS, 8)
TEST_TYPE_ALIGN (LPMEMORYSTATUS, 8)
TEST_TARGET_SIZE (LPMEMORYSTATUS, 56)
TEST_TARGET_ALIGN(LPMEMORYSTATUS, 8)
}
static void test_pack_LPMEMORYSTATUSEX(void)
{
/* LPMEMORYSTATUSEX */
TEST_TYPE_SIZE (LPMEMORYSTATUSEX, 8)
TEST_TYPE_ALIGN (LPMEMORYSTATUSEX, 8)
TEST_TARGET_SIZE (LPMEMORYSTATUSEX, 64)
TEST_TARGET_ALIGN(LPMEMORYSTATUSEX, 8)
}
static void test_pack_LPOFSTRUCT(void)
{
/* LPOFSTRUCT */
TEST_TYPE_SIZE (LPOFSTRUCT, 8)
TEST_TYPE_ALIGN (LPOFSTRUCT, 8)
TEST_TARGET_SIZE (LPOFSTRUCT, 136)
TEST_TARGET_ALIGN(LPOFSTRUCT, 2)
}
static void test_pack_LPOVERLAPPED(void)
{
/* LPOVERLAPPED */
TEST_TYPE_SIZE (LPOVERLAPPED, 8)
TEST_TYPE_ALIGN (LPOVERLAPPED, 8)
}
static void test_pack_LPOVERLAPPED_COMPLETION_ROUTINE(void)
{
/* LPOVERLAPPED_COMPLETION_ROUTINE */
TEST_TYPE_SIZE (LPOVERLAPPED_COMPLETION_ROUTINE, 8)
TEST_TYPE_ALIGN (LPOVERLAPPED_COMPLETION_ROUTINE, 8)
}
static void test_pack_LPPROCESS_HEAP_ENTRY(void)
{
/* LPPROCESS_HEAP_ENTRY */
TEST_TYPE_SIZE (LPPROCESS_HEAP_ENTRY, 8)
TEST_TYPE_ALIGN (LPPROCESS_HEAP_ENTRY, 8)
}
static void test_pack_LPPROCESS_INFORMATION(void)
{
/* LPPROCESS_INFORMATION */
TEST_TYPE_SIZE (LPPROCESS_INFORMATION, 8)
TEST_TYPE_ALIGN (LPPROCESS_INFORMATION, 8)
TEST_TARGET_SIZE (LPPROCESS_INFORMATION, 24)
TEST_TARGET_ALIGN(LPPROCESS_INFORMATION, 8)
}
static void test_pack_LPPROGRESS_ROUTINE(void)
{
/* LPPROGRESS_ROUTINE */
TEST_TYPE_SIZE (LPPROGRESS_ROUTINE, 8)
TEST_TYPE_ALIGN (LPPROGRESS_ROUTINE, 8)
}
static void test_pack_LPSECURITY_ATTRIBUTES(void)
{
/* LPSECURITY_ATTRIBUTES */
TEST_TYPE_SIZE (LPSECURITY_ATTRIBUTES, 8)
TEST_TYPE_ALIGN (LPSECURITY_ATTRIBUTES, 8)
TEST_TARGET_SIZE (LPSECURITY_ATTRIBUTES, 24)
TEST_TARGET_ALIGN(LPSECURITY_ATTRIBUTES, 8)
}
static void test_pack_LPSTARTUPINFOA(void)
{
/* LPSTARTUPINFOA */
TEST_TYPE_SIZE (LPSTARTUPINFOA, 8)
TEST_TYPE_ALIGN (LPSTARTUPINFOA, 8)
TEST_TARGET_SIZE (LPSTARTUPINFOA, 104)
TEST_TARGET_ALIGN(LPSTARTUPINFOA, 8)
}
static void test_pack_LPSTARTUPINFOW(void)
{
/* LPSTARTUPINFOW */
TEST_TYPE_SIZE (LPSTARTUPINFOW, 8)
TEST_TYPE_ALIGN (LPSTARTUPINFOW, 8)
TEST_TARGET_SIZE (LPSTARTUPINFOW, 104)
TEST_TARGET_ALIGN(LPSTARTUPINFOW, 8)
}
static void test_pack_LPSYSTEMTIME(void)
{
/* LPSYSTEMTIME */
TEST_TYPE_SIZE (LPSYSTEMTIME, 8)
TEST_TYPE_ALIGN (LPSYSTEMTIME, 8)
TEST_TARGET_SIZE (LPSYSTEMTIME, 16)
TEST_TARGET_ALIGN(LPSYSTEMTIME, 2)
}
static void test_pack_LPSYSTEM_INFO(void)
{
/* LPSYSTEM_INFO */
TEST_TYPE_SIZE (LPSYSTEM_INFO, 8)
TEST_TYPE_ALIGN (LPSYSTEM_INFO, 8)
}
static void test_pack_LPSYSTEM_POWER_STATUS(void)
{
/* LPSYSTEM_POWER_STATUS */
TEST_TYPE_SIZE (LPSYSTEM_POWER_STATUS, 8)
TEST_TYPE_ALIGN (LPSYSTEM_POWER_STATUS, 8)
TEST_TARGET_SIZE (LPSYSTEM_POWER_STATUS, 12)
TEST_TARGET_ALIGN(LPSYSTEM_POWER_STATUS, 4)
}
static void test_pack_LPTHREAD_START_ROUTINE(void)
{
/* LPTHREAD_START_ROUTINE */
TEST_TYPE_SIZE (LPTHREAD_START_ROUTINE, 8)
TEST_TYPE_ALIGN (LPTHREAD_START_ROUTINE, 8)
}
static void test_pack_LPTIME_ZONE_INFORMATION(void)
{
/* LPTIME_ZONE_INFORMATION */
TEST_TYPE_SIZE (LPTIME_ZONE_INFORMATION, 8)
TEST_TYPE_ALIGN (LPTIME_ZONE_INFORMATION, 8)
TEST_TARGET_SIZE (LPTIME_ZONE_INFORMATION, 172)
TEST_TARGET_ALIGN(LPTIME_ZONE_INFORMATION, 4)
}
static void test_pack_LPWIN32_FILE_ATTRIBUTE_DATA(void)
{
/* LPWIN32_FILE_ATTRIBUTE_DATA */
TEST_TYPE_SIZE (LPWIN32_FILE_ATTRIBUTE_DATA, 8)
TEST_TYPE_ALIGN (LPWIN32_FILE_ATTRIBUTE_DATA, 8)
TEST_TARGET_SIZE (LPWIN32_FILE_ATTRIBUTE_DATA, 36)
TEST_TARGET_ALIGN(LPWIN32_FILE_ATTRIBUTE_DATA, 4)
}
static void test_pack_LPWIN32_FIND_DATAA(void)
{
/* LPWIN32_FIND_DATAA */
TEST_TYPE_SIZE (LPWIN32_FIND_DATAA, 8)
TEST_TYPE_ALIGN (LPWIN32_FIND_DATAA, 8)
TEST_TARGET_SIZE (LPWIN32_FIND_DATAA, 320)
TEST_TARGET_ALIGN(LPWIN32_FIND_DATAA, 4)
}
static void test_pack_LPWIN32_FIND_DATAW(void)
{
/* LPWIN32_FIND_DATAW */
TEST_TYPE_SIZE (LPWIN32_FIND_DATAW, 8)
TEST_TYPE_ALIGN (LPWIN32_FIND_DATAW, 8)
TEST_TARGET_SIZE (LPWIN32_FIND_DATAW, 592)
TEST_TARGET_ALIGN(LPWIN32_FIND_DATAW, 4)
}
static void test_pack_LPWIN32_STREAM_ID(void)
{
/* LPWIN32_STREAM_ID */
TEST_TYPE_SIZE (LPWIN32_STREAM_ID, 8)
TEST_TYPE_ALIGN (LPWIN32_STREAM_ID, 8)
TEST_TARGET_SIZE (LPWIN32_STREAM_ID, 24)
TEST_TARGET_ALIGN(LPWIN32_STREAM_ID, 8)
}
static void test_pack_MEMORYSTATUS(void)
{
/* MEMORYSTATUS */
TEST_TYPE_SIZE (MEMORYSTATUS, 56)
TEST_TYPE_ALIGN (MEMORYSTATUS, 8)
TEST_FIELD_SIZE (MEMORYSTATUS, dwLength, 4)
TEST_FIELD_ALIGN (MEMORYSTATUS, dwLength, 4)
TEST_FIELD_OFFSET(MEMORYSTATUS, dwLength, 0)
TEST_FIELD_SIZE (MEMORYSTATUS, dwMemoryLoad, 4)
TEST_FIELD_ALIGN (MEMORYSTATUS, dwMemoryLoad, 4)
TEST_FIELD_OFFSET(MEMORYSTATUS, dwMemoryLoad, 4)
TEST_FIELD_SIZE (MEMORYSTATUS, dwTotalPhys, 8)
TEST_FIELD_ALIGN (MEMORYSTATUS, dwTotalPhys, 8)
TEST_FIELD_OFFSET(MEMORYSTATUS, dwTotalPhys, 8)
TEST_FIELD_SIZE (MEMORYSTATUS, dwAvailPhys, 8)
TEST_FIELD_ALIGN (MEMORYSTATUS, dwAvailPhys, 8)
TEST_FIELD_OFFSET(MEMORYSTATUS, dwAvailPhys, 16)
TEST_FIELD_SIZE (MEMORYSTATUS, dwTotalPageFile, 8)
TEST_FIELD_ALIGN (MEMORYSTATUS, dwTotalPageFile, 8)
TEST_FIELD_OFFSET(MEMORYSTATUS, dwTotalPageFile, 24)
TEST_FIELD_SIZE (MEMORYSTATUS, dwAvailPageFile, 8)
TEST_FIELD_ALIGN (MEMORYSTATUS, dwAvailPageFile, 8)
TEST_FIELD_OFFSET(MEMORYSTATUS, dwAvailPageFile, 32)
TEST_FIELD_SIZE (MEMORYSTATUS, dwTotalVirtual, 8)
TEST_FIELD_ALIGN (MEMORYSTATUS, dwTotalVirtual, 8)
TEST_FIELD_OFFSET(MEMORYSTATUS, dwTotalVirtual, 40)
TEST_FIELD_SIZE (MEMORYSTATUS, dwAvailVirtual, 8)
TEST_FIELD_ALIGN (MEMORYSTATUS, dwAvailVirtual, 8)
TEST_FIELD_OFFSET(MEMORYSTATUS, dwAvailVirtual, 48)
}
static void test_pack_MEMORYSTATUSEX(void)
{
/* MEMORYSTATUSEX (pack 8) */
TEST_TYPE_SIZE (MEMORYSTATUSEX, 64)
TEST_TYPE_ALIGN (MEMORYSTATUSEX, 8)
TEST_FIELD_SIZE (MEMORYSTATUSEX, dwLength, 4)
TEST_FIELD_ALIGN (MEMORYSTATUSEX, dwLength, 4)
TEST_FIELD_OFFSET(MEMORYSTATUSEX, dwLength, 0)
TEST_FIELD_SIZE (MEMORYSTATUSEX, dwMemoryLoad, 4)
TEST_FIELD_ALIGN (MEMORYSTATUSEX, dwMemoryLoad, 4)
TEST_FIELD_OFFSET(MEMORYSTATUSEX, dwMemoryLoad, 4)
TEST_FIELD_SIZE (MEMORYSTATUSEX, ullTotalPhys, 8)
TEST_FIELD_ALIGN (MEMORYSTATUSEX, ullTotalPhys, 8)
TEST_FIELD_OFFSET(MEMORYSTATUSEX, ullTotalPhys, 8)
TEST_FIELD_SIZE (MEMORYSTATUSEX, ullAvailPhys, 8)
TEST_FIELD_ALIGN (MEMORYSTATUSEX, ullAvailPhys, 8)
TEST_FIELD_OFFSET(MEMORYSTATUSEX, ullAvailPhys, 16)
TEST_FIELD_SIZE (MEMORYSTATUSEX, ullTotalPageFile, 8)
TEST_FIELD_ALIGN (MEMORYSTATUSEX, ullTotalPageFile, 8)
TEST_FIELD_OFFSET(MEMORYSTATUSEX, ullTotalPageFile, 24)
TEST_FIELD_SIZE (MEMORYSTATUSEX, ullAvailPageFile, 8)
TEST_FIELD_ALIGN (MEMORYSTATUSEX, ullAvailPageFile, 8)
TEST_FIELD_OFFSET(MEMORYSTATUSEX, ullAvailPageFile, 32)
TEST_FIELD_SIZE (MEMORYSTATUSEX, ullTotalVirtual, 8)
TEST_FIELD_ALIGN (MEMORYSTATUSEX, ullTotalVirtual, 8)
TEST_FIELD_OFFSET(MEMORYSTATUSEX, ullTotalVirtual, 40)
TEST_FIELD_SIZE (MEMORYSTATUSEX, ullAvailVirtual, 8)
TEST_FIELD_ALIGN (MEMORYSTATUSEX, ullAvailVirtual, 8)
TEST_FIELD_OFFSET(MEMORYSTATUSEX, ullAvailVirtual, 48)
TEST_FIELD_SIZE (MEMORYSTATUSEX, ullAvailExtendedVirtual, 8)
TEST_FIELD_ALIGN (MEMORYSTATUSEX, ullAvailExtendedVirtual, 8)
TEST_FIELD_OFFSET(MEMORYSTATUSEX, ullAvailExtendedVirtual, 56)
}
static void test_pack_OFSTRUCT(void)
{
/* OFSTRUCT */
TEST_TYPE_SIZE (OFSTRUCT, 136)
TEST_TYPE_ALIGN (OFSTRUCT, 2)
TEST_FIELD_SIZE (OFSTRUCT, cBytes, 1)
TEST_FIELD_ALIGN (OFSTRUCT, cBytes, 1)
TEST_FIELD_OFFSET(OFSTRUCT, cBytes, 0)
TEST_FIELD_SIZE (OFSTRUCT, fFixedDisk, 1)
TEST_FIELD_ALIGN (OFSTRUCT, fFixedDisk, 1)
TEST_FIELD_OFFSET(OFSTRUCT, fFixedDisk, 1)
TEST_FIELD_SIZE (OFSTRUCT, nErrCode, 2)
TEST_FIELD_ALIGN (OFSTRUCT, nErrCode, 2)
TEST_FIELD_OFFSET(OFSTRUCT, nErrCode, 2)
TEST_FIELD_SIZE (OFSTRUCT, Reserved1, 2)
TEST_FIELD_ALIGN (OFSTRUCT, Reserved1, 2)
TEST_FIELD_OFFSET(OFSTRUCT, Reserved1, 4)
TEST_FIELD_SIZE (OFSTRUCT, Reserved2, 2)
TEST_FIELD_ALIGN (OFSTRUCT, Reserved2, 2)
TEST_FIELD_OFFSET(OFSTRUCT, Reserved2, 6)
TEST_FIELD_SIZE (OFSTRUCT, szPathName, 128)
TEST_FIELD_ALIGN (OFSTRUCT, szPathName, 1)
TEST_FIELD_OFFSET(OFSTRUCT, szPathName, 8)
}
static void test_pack_OUTPUT_DEBUG_STRING_INFO(void)
{
/* OUTPUT_DEBUG_STRING_INFO */
TEST_TYPE_SIZE (OUTPUT_DEBUG_STRING_INFO, 16)
TEST_TYPE_ALIGN (OUTPUT_DEBUG_STRING_INFO, 8)
TEST_FIELD_SIZE (OUTPUT_DEBUG_STRING_INFO, lpDebugStringData, 8)
TEST_FIELD_ALIGN (OUTPUT_DEBUG_STRING_INFO, lpDebugStringData, 8)
TEST_FIELD_OFFSET(OUTPUT_DEBUG_STRING_INFO, lpDebugStringData, 0)
TEST_FIELD_SIZE (OUTPUT_DEBUG_STRING_INFO, fUnicode, 2)
TEST_FIELD_ALIGN (OUTPUT_DEBUG_STRING_INFO, fUnicode, 2)
TEST_FIELD_OFFSET(OUTPUT_DEBUG_STRING_INFO, fUnicode, 8)
TEST_FIELD_SIZE (OUTPUT_DEBUG_STRING_INFO, nDebugStringLength, 2)
TEST_FIELD_ALIGN (OUTPUT_DEBUG_STRING_INFO, nDebugStringLength, 2)
TEST_FIELD_OFFSET(OUTPUT_DEBUG_STRING_INFO, nDebugStringLength, 10)
}
static void test_pack_PACTCTXA(void)
{
/* PACTCTXA */
TEST_TYPE_SIZE (PACTCTXA, 8)
TEST_TYPE_ALIGN (PACTCTXA, 8)
TEST_TARGET_SIZE (PACTCTXA, 56)
TEST_TARGET_ALIGN(PACTCTXA, 8)
}
static void test_pack_PACTCTXW(void)
{
/* PACTCTXW */
TEST_TYPE_SIZE (PACTCTXW, 8)
TEST_TYPE_ALIGN (PACTCTXW, 8)
TEST_TARGET_SIZE (PACTCTXW, 56)
TEST_TARGET_ALIGN(PACTCTXW, 8)
}
static void test_pack_PACTCTX_SECTION_KEYED_DATA(void)
{
/* PACTCTX_SECTION_KEYED_DATA */
TEST_TYPE_SIZE (PACTCTX_SECTION_KEYED_DATA, 8)
TEST_TYPE_ALIGN (PACTCTX_SECTION_KEYED_DATA, 8)
TEST_TARGET_SIZE (PACTCTX_SECTION_KEYED_DATA, 112)
TEST_TARGET_ALIGN(PACTCTX_SECTION_KEYED_DATA, 8)
}
static void test_pack_PACTCTX_SECTION_KEYED_DATA_2600(void)
{
/* PACTCTX_SECTION_KEYED_DATA_2600 */
TEST_TYPE_SIZE (PACTCTX_SECTION_KEYED_DATA_2600, 8)
TEST_TYPE_ALIGN (PACTCTX_SECTION_KEYED_DATA_2600, 8)
TEST_TARGET_SIZE (PACTCTX_SECTION_KEYED_DATA_2600, 72)
TEST_TARGET_ALIGN(PACTCTX_SECTION_KEYED_DATA_2600, 8)
}
static void test_pack_PACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA(void)
{
/* PACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA */
TEST_TYPE_SIZE (PACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, 8)
TEST_TYPE_ALIGN (PACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, 8)
TEST_TARGET_SIZE (PACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, 40)
TEST_TARGET_ALIGN(PACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, 8)
}
static void test_pack_PACTIVATION_CONTEXT_BASIC_INFORMATION(void)
{
/* PACTIVATION_CONTEXT_BASIC_INFORMATION */
TEST_TYPE_SIZE (PACTIVATION_CONTEXT_BASIC_INFORMATION, 8)
TEST_TYPE_ALIGN (PACTIVATION_CONTEXT_BASIC_INFORMATION, 8)
TEST_TARGET_SIZE (PACTIVATION_CONTEXT_BASIC_INFORMATION, 16)
TEST_TARGET_ALIGN(PACTIVATION_CONTEXT_BASIC_INFORMATION, 8)
}
static void test_pack_PAPCFUNC(void)
{
/* PAPCFUNC */
TEST_TYPE_SIZE (PAPCFUNC, 8)
TEST_TYPE_ALIGN (PAPCFUNC, 8)
}
static void test_pack_PBY_HANDLE_FILE_INFORMATION(void)
{
/* PBY_HANDLE_FILE_INFORMATION */
TEST_TYPE_SIZE (PBY_HANDLE_FILE_INFORMATION, 8)
TEST_TYPE_ALIGN (PBY_HANDLE_FILE_INFORMATION, 8)
TEST_TARGET_SIZE (PBY_HANDLE_FILE_INFORMATION, 52)
TEST_TARGET_ALIGN(PBY_HANDLE_FILE_INFORMATION, 4)
}
static void test_pack_PCACTCTXA(void)
{
/* PCACTCTXA */
TEST_TYPE_SIZE (PCACTCTXA, 8)
TEST_TYPE_ALIGN (PCACTCTXA, 8)
TEST_TARGET_SIZE (PCACTCTXA, 56)
TEST_TARGET_ALIGN(PCACTCTXA, 8)
}
static void test_pack_PCACTCTXW(void)
{
/* PCACTCTXW */
TEST_TYPE_SIZE (PCACTCTXW, 8)
TEST_TYPE_ALIGN (PCACTCTXW, 8)
TEST_TARGET_SIZE (PCACTCTXW, 56)
TEST_TARGET_ALIGN(PCACTCTXW, 8)
}
static void test_pack_PCACTCTX_SECTION_KEYED_DATA(void)
{
/* PCACTCTX_SECTION_KEYED_DATA */
TEST_TYPE_SIZE (PCACTCTX_SECTION_KEYED_DATA, 8)
TEST_TYPE_ALIGN (PCACTCTX_SECTION_KEYED_DATA, 8)
TEST_TARGET_SIZE (PCACTCTX_SECTION_KEYED_DATA, 112)
TEST_TARGET_ALIGN(PCACTCTX_SECTION_KEYED_DATA, 8)
}
static void test_pack_PCACTCTX_SECTION_KEYED_DATA_2600(void)
{
/* PCACTCTX_SECTION_KEYED_DATA_2600 */
TEST_TYPE_SIZE (PCACTCTX_SECTION_KEYED_DATA_2600, 8)
TEST_TYPE_ALIGN (PCACTCTX_SECTION_KEYED_DATA_2600, 8)
TEST_TARGET_SIZE (PCACTCTX_SECTION_KEYED_DATA_2600, 72)
TEST_TARGET_ALIGN(PCACTCTX_SECTION_KEYED_DATA_2600, 8)
}
static void test_pack_PCACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA(void)
{
/* PCACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA */
TEST_TYPE_SIZE (PCACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, 8)
TEST_TYPE_ALIGN (PCACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, 8)
TEST_TARGET_SIZE (PCACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, 40)
TEST_TARGET_ALIGN(PCACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, 8)
}
static void test_pack_PCRITICAL_SECTION(void)
{
/* PCRITICAL_SECTION */
TEST_TYPE_SIZE (PCRITICAL_SECTION, 8)
TEST_TYPE_ALIGN (PCRITICAL_SECTION, 8)
}
static void test_pack_PCRITICAL_SECTION_DEBUG(void)
{
/* PCRITICAL_SECTION_DEBUG */
TEST_TYPE_SIZE (PCRITICAL_SECTION_DEBUG, 8)
TEST_TYPE_ALIGN (PCRITICAL_SECTION_DEBUG, 8)
}
static void test_pack_PFIBER_START_ROUTINE(void)
{
/* PFIBER_START_ROUTINE */
TEST_TYPE_SIZE (PFIBER_START_ROUTINE, 8)
TEST_TYPE_ALIGN (PFIBER_START_ROUTINE, 8)
}
static void test_pack_POFSTRUCT(void)
{
/* POFSTRUCT */
TEST_TYPE_SIZE (POFSTRUCT, 8)
TEST_TYPE_ALIGN (POFSTRUCT, 8)
TEST_TARGET_SIZE (POFSTRUCT, 136)
TEST_TARGET_ALIGN(POFSTRUCT, 2)
}
static void test_pack_PPROCESS_HEAP_ENTRY(void)
{
/* PPROCESS_HEAP_ENTRY */
TEST_TYPE_SIZE (PPROCESS_HEAP_ENTRY, 8)
TEST_TYPE_ALIGN (PPROCESS_HEAP_ENTRY, 8)
}
static void test_pack_PPROCESS_INFORMATION(void)
{
/* PPROCESS_INFORMATION */
TEST_TYPE_SIZE (PPROCESS_INFORMATION, 8)
TEST_TYPE_ALIGN (PPROCESS_INFORMATION, 8)
TEST_TARGET_SIZE (PPROCESS_INFORMATION, 24)
TEST_TARGET_ALIGN(PPROCESS_INFORMATION, 8)
}
static void test_pack_PQUERYACTCTXW_FUNC(void)
{
/* PQUERYACTCTXW_FUNC */
TEST_TYPE_SIZE (PQUERYACTCTXW_FUNC, 8)
TEST_TYPE_ALIGN (PQUERYACTCTXW_FUNC, 8)
}
static void test_pack_PROCESS_HEAP_ENTRY(void)
{
/* PROCESS_HEAP_ENTRY */
TEST_FIELD_SIZE (PROCESS_HEAP_ENTRY, lpData, 8)
TEST_FIELD_ALIGN (PROCESS_HEAP_ENTRY, lpData, 8)
TEST_FIELD_OFFSET(PROCESS_HEAP_ENTRY, lpData, 0)
TEST_FIELD_SIZE (PROCESS_HEAP_ENTRY, cbData, 4)
TEST_FIELD_ALIGN (PROCESS_HEAP_ENTRY, cbData, 4)
TEST_FIELD_OFFSET(PROCESS_HEAP_ENTRY, cbData, 8)
TEST_FIELD_SIZE (PROCESS_HEAP_ENTRY, cbOverhead, 1)
TEST_FIELD_ALIGN (PROCESS_HEAP_ENTRY, cbOverhead, 1)
TEST_FIELD_OFFSET(PROCESS_HEAP_ENTRY, cbOverhead, 12)
TEST_FIELD_SIZE (PROCESS_HEAP_ENTRY, iRegionIndex, 1)
TEST_FIELD_ALIGN (PROCESS_HEAP_ENTRY, iRegionIndex, 1)
TEST_FIELD_OFFSET(PROCESS_HEAP_ENTRY, iRegionIndex, 13)
TEST_FIELD_SIZE (PROCESS_HEAP_ENTRY, wFlags, 2)
TEST_FIELD_ALIGN (PROCESS_HEAP_ENTRY, wFlags, 2)
TEST_FIELD_OFFSET(PROCESS_HEAP_ENTRY, wFlags, 14)
}
static void test_pack_PROCESS_INFORMATION(void)
{
/* PROCESS_INFORMATION */
TEST_TYPE_SIZE (PROCESS_INFORMATION, 24)
TEST_TYPE_ALIGN (PROCESS_INFORMATION, 8)
TEST_FIELD_SIZE (PROCESS_INFORMATION, hProcess, 8)
TEST_FIELD_ALIGN (PROCESS_INFORMATION, hProcess, 8)
TEST_FIELD_OFFSET(PROCESS_INFORMATION, hProcess, 0)
TEST_FIELD_SIZE (PROCESS_INFORMATION, hThread, 8)
TEST_FIELD_ALIGN (PROCESS_INFORMATION, hThread, 8)
TEST_FIELD_OFFSET(PROCESS_INFORMATION, hThread, 8)
TEST_FIELD_SIZE (PROCESS_INFORMATION, dwProcessId, 4)
TEST_FIELD_ALIGN (PROCESS_INFORMATION, dwProcessId, 4)
TEST_FIELD_OFFSET(PROCESS_INFORMATION, dwProcessId, 16)
TEST_FIELD_SIZE (PROCESS_INFORMATION, dwThreadId, 4)
TEST_FIELD_ALIGN (PROCESS_INFORMATION, dwThreadId, 4)
TEST_FIELD_OFFSET(PROCESS_INFORMATION, dwThreadId, 20)
}
static void test_pack_PSECURITY_ATTRIBUTES(void)
{
/* PSECURITY_ATTRIBUTES */
TEST_TYPE_SIZE (PSECURITY_ATTRIBUTES, 8)
TEST_TYPE_ALIGN (PSECURITY_ATTRIBUTES, 8)
TEST_TARGET_SIZE (PSECURITY_ATTRIBUTES, 24)
TEST_TARGET_ALIGN(PSECURITY_ATTRIBUTES, 8)
}
static void test_pack_PSYSTEMTIME(void)
{
/* PSYSTEMTIME */
TEST_TYPE_SIZE (PSYSTEMTIME, 8)
TEST_TYPE_ALIGN (PSYSTEMTIME, 8)
TEST_TARGET_SIZE (PSYSTEMTIME, 16)
TEST_TARGET_ALIGN(PSYSTEMTIME, 2)
}
static void test_pack_PTIMERAPCROUTINE(void)
{
/* PTIMERAPCROUTINE */
TEST_TYPE_SIZE (PTIMERAPCROUTINE, 8)
TEST_TYPE_ALIGN (PTIMERAPCROUTINE, 8)
}
static void test_pack_PTIME_ZONE_INFORMATION(void)
{
/* PTIME_ZONE_INFORMATION */
TEST_TYPE_SIZE (PTIME_ZONE_INFORMATION, 8)
TEST_TYPE_ALIGN (PTIME_ZONE_INFORMATION, 8)
TEST_TARGET_SIZE (PTIME_ZONE_INFORMATION, 172)
TEST_TARGET_ALIGN(PTIME_ZONE_INFORMATION, 4)
}
static void test_pack_PWIN32_FIND_DATAA(void)
{
/* PWIN32_FIND_DATAA */
TEST_TYPE_SIZE (PWIN32_FIND_DATAA, 8)
TEST_TYPE_ALIGN (PWIN32_FIND_DATAA, 8)
TEST_TARGET_SIZE (PWIN32_FIND_DATAA, 320)
TEST_TARGET_ALIGN(PWIN32_FIND_DATAA, 4)
}
static void test_pack_PWIN32_FIND_DATAW(void)
{
/* PWIN32_FIND_DATAW */
TEST_TYPE_SIZE (PWIN32_FIND_DATAW, 8)
TEST_TYPE_ALIGN (PWIN32_FIND_DATAW, 8)
TEST_TARGET_SIZE (PWIN32_FIND_DATAW, 592)
TEST_TARGET_ALIGN(PWIN32_FIND_DATAW, 4)
}
static void test_pack_RIP_INFO(void)
{
/* RIP_INFO */
TEST_TYPE_SIZE (RIP_INFO, 8)
TEST_TYPE_ALIGN (RIP_INFO, 4)
TEST_FIELD_SIZE (RIP_INFO, dwError, 4)
TEST_FIELD_ALIGN (RIP_INFO, dwError, 4)
TEST_FIELD_OFFSET(RIP_INFO, dwError, 0)
TEST_FIELD_SIZE (RIP_INFO, dwType, 4)
TEST_FIELD_ALIGN (RIP_INFO, dwType, 4)
TEST_FIELD_OFFSET(RIP_INFO, dwType, 4)
}
static void test_pack_SECURITY_ATTRIBUTES(void)
{
/* SECURITY_ATTRIBUTES */
TEST_TYPE_SIZE (SECURITY_ATTRIBUTES, 24)
TEST_TYPE_ALIGN (SECURITY_ATTRIBUTES, 8)
TEST_FIELD_SIZE (SECURITY_ATTRIBUTES, nLength, 4)
TEST_FIELD_ALIGN (SECURITY_ATTRIBUTES, nLength, 4)
TEST_FIELD_OFFSET(SECURITY_ATTRIBUTES, nLength, 0)
TEST_FIELD_SIZE (SECURITY_ATTRIBUTES, lpSecurityDescriptor, 8)
TEST_FIELD_ALIGN (SECURITY_ATTRIBUTES, lpSecurityDescriptor, 8)
TEST_FIELD_OFFSET(SECURITY_ATTRIBUTES, lpSecurityDescriptor, 8)
TEST_FIELD_SIZE (SECURITY_ATTRIBUTES, bInheritHandle, 4)
TEST_FIELD_ALIGN (SECURITY_ATTRIBUTES, bInheritHandle, 4)
TEST_FIELD_OFFSET(SECURITY_ATTRIBUTES, bInheritHandle, 16)
}
static void test_pack_STARTUPINFOA(void)
{
/* STARTUPINFOA */
TEST_TYPE_SIZE (STARTUPINFOA, 104)
TEST_TYPE_ALIGN (STARTUPINFOA, 8)
TEST_FIELD_SIZE (STARTUPINFOA, cb, 4)
TEST_FIELD_ALIGN (STARTUPINFOA, cb, 4)
TEST_FIELD_OFFSET(STARTUPINFOA, cb, 0)
TEST_FIELD_SIZE (STARTUPINFOA, lpReserved, 8)
TEST_FIELD_ALIGN (STARTUPINFOA, lpReserved, 8)
TEST_FIELD_OFFSET(STARTUPINFOA, lpReserved, 8)
TEST_FIELD_SIZE (STARTUPINFOA, lpDesktop, 8)
TEST_FIELD_ALIGN (STARTUPINFOA, lpDesktop, 8)
TEST_FIELD_OFFSET(STARTUPINFOA, lpDesktop, 16)
TEST_FIELD_SIZE (STARTUPINFOA, lpTitle, 8)
TEST_FIELD_ALIGN (STARTUPINFOA, lpTitle, 8)
TEST_FIELD_OFFSET(STARTUPINFOA, lpTitle, 24)
TEST_FIELD_SIZE (STARTUPINFOA, dwX, 4)
TEST_FIELD_ALIGN (STARTUPINFOA, dwX, 4)
TEST_FIELD_OFFSET(STARTUPINFOA, dwX, 32)
TEST_FIELD_SIZE (STARTUPINFOA, dwY, 4)
TEST_FIELD_ALIGN (STARTUPINFOA, dwY, 4)
TEST_FIELD_OFFSET(STARTUPINFOA, dwY, 36)
TEST_FIELD_SIZE (STARTUPINFOA, dwXSize, 4)
TEST_FIELD_ALIGN (STARTUPINFOA, dwXSize, 4)
TEST_FIELD_OFFSET(STARTUPINFOA, dwXSize, 40)
TEST_FIELD_SIZE (STARTUPINFOA, dwYSize, 4)
TEST_FIELD_ALIGN (STARTUPINFOA, dwYSize, 4)
TEST_FIELD_OFFSET(STARTUPINFOA, dwYSize, 44)
TEST_FIELD_SIZE (STARTUPINFOA, dwXCountChars, 4)
TEST_FIELD_ALIGN (STARTUPINFOA, dwXCountChars, 4)
TEST_FIELD_OFFSET(STARTUPINFOA, dwXCountChars, 48)
TEST_FIELD_SIZE (STARTUPINFOA, dwYCountChars, 4)
TEST_FIELD_ALIGN (STARTUPINFOA, dwYCountChars, 4)
TEST_FIELD_OFFSET(STARTUPINFOA, dwYCountChars, 52)
TEST_FIELD_SIZE (STARTUPINFOA, dwFillAttribute, 4)
TEST_FIELD_ALIGN (STARTUPINFOA, dwFillAttribute, 4)
TEST_FIELD_OFFSET(STARTUPINFOA, dwFillAttribute, 56)
TEST_FIELD_SIZE (STARTUPINFOA, dwFlags, 4)
TEST_FIELD_ALIGN (STARTUPINFOA, dwFlags, 4)
TEST_FIELD_OFFSET(STARTUPINFOA, dwFlags, 60)
TEST_FIELD_SIZE (STARTUPINFOA, wShowWindow, 2)
TEST_FIELD_ALIGN (STARTUPINFOA, wShowWindow, 2)
TEST_FIELD_OFFSET(STARTUPINFOA, wShowWindow, 64)
TEST_FIELD_SIZE (STARTUPINFOA, cbReserved2, 2)
TEST_FIELD_ALIGN (STARTUPINFOA, cbReserved2, 2)
TEST_FIELD_OFFSET(STARTUPINFOA, cbReserved2, 66)
TEST_FIELD_SIZE (STARTUPINFOA, lpReserved2, 8)
TEST_FIELD_ALIGN (STARTUPINFOA, lpReserved2, 8)
TEST_FIELD_OFFSET(STARTUPINFOA, lpReserved2, 72)
TEST_FIELD_SIZE (STARTUPINFOA, hStdInput, 8)
TEST_FIELD_ALIGN (STARTUPINFOA, hStdInput, 8)
TEST_FIELD_OFFSET(STARTUPINFOA, hStdInput, 80)
TEST_FIELD_SIZE (STARTUPINFOA, hStdOutput, 8)
TEST_FIELD_ALIGN (STARTUPINFOA, hStdOutput, 8)
TEST_FIELD_OFFSET(STARTUPINFOA, hStdOutput, 88)
TEST_FIELD_SIZE (STARTUPINFOA, hStdError, 8)
TEST_FIELD_ALIGN (STARTUPINFOA, hStdError, 8)
TEST_FIELD_OFFSET(STARTUPINFOA, hStdError, 96)
}
static void test_pack_STARTUPINFOW(void)
{
/* STARTUPINFOW */
TEST_TYPE_SIZE (STARTUPINFOW, 104)
TEST_TYPE_ALIGN (STARTUPINFOW, 8)
TEST_FIELD_SIZE (STARTUPINFOW, cb, 4)
TEST_FIELD_ALIGN (STARTUPINFOW, cb, 4)
TEST_FIELD_OFFSET(STARTUPINFOW, cb, 0)
TEST_FIELD_SIZE (STARTUPINFOW, lpReserved, 8)
TEST_FIELD_ALIGN (STARTUPINFOW, lpReserved, 8)
TEST_FIELD_OFFSET(STARTUPINFOW, lpReserved, 8)
TEST_FIELD_SIZE (STARTUPINFOW, lpDesktop, 8)
TEST_FIELD_ALIGN (STARTUPINFOW, lpDesktop, 8)
TEST_FIELD_OFFSET(STARTUPINFOW, lpDesktop, 16)
TEST_FIELD_SIZE (STARTUPINFOW, lpTitle, 8)
TEST_FIELD_ALIGN (STARTUPINFOW, lpTitle, 8)
TEST_FIELD_OFFSET(STARTUPINFOW, lpTitle, 24)
TEST_FIELD_SIZE (STARTUPINFOW, dwX, 4)
TEST_FIELD_ALIGN (STARTUPINFOW, dwX, 4)
TEST_FIELD_OFFSET(STARTUPINFOW, dwX, 32)
TEST_FIELD_SIZE (STARTUPINFOW, dwY, 4)
TEST_FIELD_ALIGN (STARTUPINFOW, dwY, 4)
TEST_FIELD_OFFSET(STARTUPINFOW, dwY, 36)
TEST_FIELD_SIZE (STARTUPINFOW, dwXSize, 4)
TEST_FIELD_ALIGN (STARTUPINFOW, dwXSize, 4)
TEST_FIELD_OFFSET(STARTUPINFOW, dwXSize, 40)
TEST_FIELD_SIZE (STARTUPINFOW, dwYSize, 4)
TEST_FIELD_ALIGN (STARTUPINFOW, dwYSize, 4)
TEST_FIELD_OFFSET(STARTUPINFOW, dwYSize, 44)
TEST_FIELD_SIZE (STARTUPINFOW, dwXCountChars, 4)
TEST_FIELD_ALIGN (STARTUPINFOW, dwXCountChars, 4)
TEST_FIELD_OFFSET(STARTUPINFOW, dwXCountChars, 48)
TEST_FIELD_SIZE (STARTUPINFOW, dwYCountChars, 4)
TEST_FIELD_ALIGN (STARTUPINFOW, dwYCountChars, 4)
TEST_FIELD_OFFSET(STARTUPINFOW, dwYCountChars, 52)
TEST_FIELD_SIZE (STARTUPINFOW, dwFillAttribute, 4)
TEST_FIELD_ALIGN (STARTUPINFOW, dwFillAttribute, 4)
TEST_FIELD_OFFSET(STARTUPINFOW, dwFillAttribute, 56)
TEST_FIELD_SIZE (STARTUPINFOW, dwFlags, 4)
TEST_FIELD_ALIGN (STARTUPINFOW, dwFlags, 4)
TEST_FIELD_OFFSET(STARTUPINFOW, dwFlags, 60)
TEST_FIELD_SIZE (STARTUPINFOW, wShowWindow, 2)
TEST_FIELD_ALIGN (STARTUPINFOW, wShowWindow, 2)
TEST_FIELD_OFFSET(STARTUPINFOW, wShowWindow, 64)
TEST_FIELD_SIZE (STARTUPINFOW, cbReserved2, 2)
TEST_FIELD_ALIGN (STARTUPINFOW, cbReserved2, 2)
TEST_FIELD_OFFSET(STARTUPINFOW, cbReserved2, 66)
TEST_FIELD_SIZE (STARTUPINFOW, lpReserved2, 8)
TEST_FIELD_ALIGN (STARTUPINFOW, lpReserved2, 8)
TEST_FIELD_OFFSET(STARTUPINFOW, lpReserved2, 72)
TEST_FIELD_SIZE (STARTUPINFOW, hStdInput, 8)
TEST_FIELD_ALIGN (STARTUPINFOW, hStdInput, 8)
TEST_FIELD_OFFSET(STARTUPINFOW, hStdInput, 80)
TEST_FIELD_SIZE (STARTUPINFOW, hStdOutput, 8)
TEST_FIELD_ALIGN (STARTUPINFOW, hStdOutput, 8)
TEST_FIELD_OFFSET(STARTUPINFOW, hStdOutput, 88)
TEST_FIELD_SIZE (STARTUPINFOW, hStdError, 8)
TEST_FIELD_ALIGN (STARTUPINFOW, hStdError, 8)
TEST_FIELD_OFFSET(STARTUPINFOW, hStdError, 96)
}
#else
static void test_pack_SYSTEMTIME(void)
{
/* SYSTEMTIME */
TEST_TYPE_SIZE (SYSTEMTIME, 16)
TEST_TYPE_ALIGN (SYSTEMTIME, 2)
TEST_FIELD_SIZE (SYSTEMTIME, wYear, 2)
TEST_FIELD_ALIGN (SYSTEMTIME, wYear, 2)
TEST_FIELD_OFFSET(SYSTEMTIME, wYear, 0)
TEST_FIELD_SIZE (SYSTEMTIME, wMonth, 2)
TEST_FIELD_ALIGN (SYSTEMTIME, wMonth, 2)
TEST_FIELD_OFFSET(SYSTEMTIME, wMonth, 2)
TEST_FIELD_SIZE (SYSTEMTIME, wDayOfWeek, 2)
TEST_FIELD_ALIGN (SYSTEMTIME, wDayOfWeek, 2)
TEST_FIELD_OFFSET(SYSTEMTIME, wDayOfWeek, 4)
TEST_FIELD_SIZE (SYSTEMTIME, wDay, 2)
TEST_FIELD_ALIGN (SYSTEMTIME, wDay, 2)
TEST_FIELD_OFFSET(SYSTEMTIME, wDay, 6)
TEST_FIELD_SIZE (SYSTEMTIME, wHour, 2)
TEST_FIELD_ALIGN (SYSTEMTIME, wHour, 2)
TEST_FIELD_OFFSET(SYSTEMTIME, wHour, 8)
TEST_FIELD_SIZE (SYSTEMTIME, wMinute, 2)
TEST_FIELD_ALIGN (SYSTEMTIME, wMinute, 2)
TEST_FIELD_OFFSET(SYSTEMTIME, wMinute, 10)
TEST_FIELD_SIZE (SYSTEMTIME, wSecond, 2)
TEST_FIELD_ALIGN (SYSTEMTIME, wSecond, 2)
TEST_FIELD_OFFSET(SYSTEMTIME, wSecond, 12)
TEST_FIELD_SIZE (SYSTEMTIME, wMilliseconds, 2)
TEST_FIELD_ALIGN (SYSTEMTIME, wMilliseconds, 2)
TEST_FIELD_OFFSET(SYSTEMTIME, wMilliseconds, 14)
}
# define TEST_TYPE_SIZE(type, size) C_ASSERT(sizeof(type) == size);
static void test_pack_SYSTEM_INFO(void)
{
/* SYSTEM_INFO */
}
# ifdef TYPE_ALIGNMENT
# define TEST_TYPE_ALIGN(type, align) C_ASSERT(TYPE_ALIGNMENT(type) == align);
# else
# define TEST_TYPE_ALIGN(type, align)
# endif
static void test_pack_SYSTEM_POWER_STATUS(void)
{
/* SYSTEM_POWER_STATUS */
TEST_TYPE_SIZE (SYSTEM_POWER_STATUS, 12)
TEST_TYPE_ALIGN (SYSTEM_POWER_STATUS, 4)
TEST_FIELD_SIZE (SYSTEM_POWER_STATUS, ACLineStatus, 1)
TEST_FIELD_ALIGN (SYSTEM_POWER_STATUS, ACLineStatus, 1)
TEST_FIELD_OFFSET(SYSTEM_POWER_STATUS, ACLineStatus, 0)
TEST_FIELD_SIZE (SYSTEM_POWER_STATUS, BatteryFlag, 1)
TEST_FIELD_ALIGN (SYSTEM_POWER_STATUS, BatteryFlag, 1)
TEST_FIELD_OFFSET(SYSTEM_POWER_STATUS, BatteryFlag, 1)
TEST_FIELD_SIZE (SYSTEM_POWER_STATUS, BatteryLifePercent, 1)
TEST_FIELD_ALIGN (SYSTEM_POWER_STATUS, BatteryLifePercent, 1)
TEST_FIELD_OFFSET(SYSTEM_POWER_STATUS, BatteryLifePercent, 2)
TEST_FIELD_SIZE (SYSTEM_POWER_STATUS, Reserved1, 1)
TEST_FIELD_ALIGN (SYSTEM_POWER_STATUS, Reserved1, 1)
TEST_FIELD_OFFSET(SYSTEM_POWER_STATUS, Reserved1, 3)
TEST_FIELD_SIZE (SYSTEM_POWER_STATUS, BatteryLifeTime, 4)
TEST_FIELD_ALIGN (SYSTEM_POWER_STATUS, BatteryLifeTime, 4)
TEST_FIELD_OFFSET(SYSTEM_POWER_STATUS, BatteryLifeTime, 4)
TEST_FIELD_SIZE (SYSTEM_POWER_STATUS, BatteryFullLifeTime, 4)
TEST_FIELD_ALIGN (SYSTEM_POWER_STATUS, BatteryFullLifeTime, 4)
TEST_FIELD_OFFSET(SYSTEM_POWER_STATUS, BatteryFullLifeTime, 8)
}
# ifdef _TYPE_ALIGNMENT
# define TEST_TARGET_ALIGN(type, align) C_ASSERT(_TYPE_ALIGNMENT(*(type)0) == align);
# define TEST_FIELD_ALIGN(type, field, align) C_ASSERT(_TYPE_ALIGNMENT(((type*)0)->field) == align);
# else
# define TEST_TARGET_ALIGN(type, align)
# define TEST_FIELD_ALIGN(type, field, align)
# endif
static void test_pack_TIME_ZONE_INFORMATION(void)
{
/* TIME_ZONE_INFORMATION */
TEST_TYPE_SIZE (TIME_ZONE_INFORMATION, 172)
TEST_TYPE_ALIGN (TIME_ZONE_INFORMATION, 4)
TEST_FIELD_SIZE (TIME_ZONE_INFORMATION, Bias, 4)
TEST_FIELD_ALIGN (TIME_ZONE_INFORMATION, Bias, 4)
TEST_FIELD_OFFSET(TIME_ZONE_INFORMATION, Bias, 0)
TEST_FIELD_SIZE (TIME_ZONE_INFORMATION, StandardName, 64)
TEST_FIELD_ALIGN (TIME_ZONE_INFORMATION, StandardName, 2)
TEST_FIELD_OFFSET(TIME_ZONE_INFORMATION, StandardName, 4)
TEST_FIELD_SIZE (TIME_ZONE_INFORMATION, StandardDate, 16)
TEST_FIELD_ALIGN (TIME_ZONE_INFORMATION, StandardDate, 2)
TEST_FIELD_OFFSET(TIME_ZONE_INFORMATION, StandardDate, 68)
TEST_FIELD_SIZE (TIME_ZONE_INFORMATION, StandardBias, 4)
TEST_FIELD_ALIGN (TIME_ZONE_INFORMATION, StandardBias, 4)
TEST_FIELD_OFFSET(TIME_ZONE_INFORMATION, StandardBias, 84)
TEST_FIELD_SIZE (TIME_ZONE_INFORMATION, DaylightName, 64)
TEST_FIELD_ALIGN (TIME_ZONE_INFORMATION, DaylightName, 2)
TEST_FIELD_OFFSET(TIME_ZONE_INFORMATION, DaylightName, 88)
TEST_FIELD_SIZE (TIME_ZONE_INFORMATION, DaylightDate, 16)
TEST_FIELD_ALIGN (TIME_ZONE_INFORMATION, DaylightDate, 2)
TEST_FIELD_OFFSET(TIME_ZONE_INFORMATION, DaylightDate, 152)
TEST_FIELD_SIZE (TIME_ZONE_INFORMATION, DaylightBias, 4)
TEST_FIELD_ALIGN (TIME_ZONE_INFORMATION, DaylightBias, 4)
TEST_FIELD_OFFSET(TIME_ZONE_INFORMATION, DaylightBias, 168)
}
# define TEST_FIELD_OFFSET(type, field, offset) C_ASSERT(FIELD_OFFSET(type, field) == offset);
static void test_pack_UNLOAD_DLL_DEBUG_INFO(void)
{
/* UNLOAD_DLL_DEBUG_INFO */
TEST_TYPE_SIZE (UNLOAD_DLL_DEBUG_INFO, 8)
TEST_TYPE_ALIGN (UNLOAD_DLL_DEBUG_INFO, 8)
TEST_FIELD_SIZE (UNLOAD_DLL_DEBUG_INFO, lpBaseOfDll, 8)
TEST_FIELD_ALIGN (UNLOAD_DLL_DEBUG_INFO, lpBaseOfDll, 8)
TEST_FIELD_OFFSET(UNLOAD_DLL_DEBUG_INFO, lpBaseOfDll, 0)
}
#endif
static void test_pack_WAITORTIMERCALLBACK(void)
{
/* WAITORTIMERCALLBACK */
TEST_TYPE_SIZE (WAITORTIMERCALLBACK, 8)
TEST_TYPE_ALIGN (WAITORTIMERCALLBACK, 8)
}
#define TEST_TARGET_SIZE(type, size) TEST_TYPE_SIZE(*(type)0, size)
#define TEST_FIELD_SIZE(type, field, size) TEST_TYPE_SIZE((((type*)0)->field), size)
#define TEST_TYPE_SIGNED(type) C_ASSERT((type) -1 < 0);
#define TEST_TYPE_UNSIGNED(type) C_ASSERT((type) -1 > 0);
static void test_pack_WIN32_FILE_ATTRIBUTE_DATA(void)
{
/* WIN32_FILE_ATTRIBUTE_DATA */
TEST_TYPE_SIZE (WIN32_FILE_ATTRIBUTE_DATA, 36)
TEST_TYPE_ALIGN (WIN32_FILE_ATTRIBUTE_DATA, 4)
TEST_FIELD_SIZE (WIN32_FILE_ATTRIBUTE_DATA, dwFileAttributes, 4)
TEST_FIELD_ALIGN (WIN32_FILE_ATTRIBUTE_DATA, dwFileAttributes, 4)
TEST_FIELD_OFFSET(WIN32_FILE_ATTRIBUTE_DATA, dwFileAttributes, 0)
TEST_FIELD_SIZE (WIN32_FILE_ATTRIBUTE_DATA, ftCreationTime, 8)
TEST_FIELD_ALIGN (WIN32_FILE_ATTRIBUTE_DATA, ftCreationTime, 4)
TEST_FIELD_OFFSET(WIN32_FILE_ATTRIBUTE_DATA, ftCreationTime, 4)
TEST_FIELD_SIZE (WIN32_FILE_ATTRIBUTE_DATA, ftLastAccessTime, 8)
TEST_FIELD_ALIGN (WIN32_FILE_ATTRIBUTE_DATA, ftLastAccessTime, 4)
TEST_FIELD_OFFSET(WIN32_FILE_ATTRIBUTE_DATA, ftLastAccessTime, 12)
TEST_FIELD_SIZE (WIN32_FILE_ATTRIBUTE_DATA, ftLastWriteTime, 8)
TEST_FIELD_ALIGN (WIN32_FILE_ATTRIBUTE_DATA, ftLastWriteTime, 4)
TEST_FIELD_OFFSET(WIN32_FILE_ATTRIBUTE_DATA, ftLastWriteTime, 20)
TEST_FIELD_SIZE (WIN32_FILE_ATTRIBUTE_DATA, nFileSizeHigh, 4)
TEST_FIELD_ALIGN (WIN32_FILE_ATTRIBUTE_DATA, nFileSizeHigh, 4)
TEST_FIELD_OFFSET(WIN32_FILE_ATTRIBUTE_DATA, nFileSizeHigh, 28)
TEST_FIELD_SIZE (WIN32_FILE_ATTRIBUTE_DATA, nFileSizeLow, 4)
TEST_FIELD_ALIGN (WIN32_FILE_ATTRIBUTE_DATA, nFileSizeLow, 4)
TEST_FIELD_OFFSET(WIN32_FILE_ATTRIBUTE_DATA, nFileSizeLow, 32)
}
static void test_pack_WIN32_FIND_DATAA(void)
{
/* WIN32_FIND_DATAA */
TEST_TYPE_SIZE (WIN32_FIND_DATAA, 320)
TEST_TYPE_ALIGN (WIN32_FIND_DATAA, 4)
TEST_FIELD_SIZE (WIN32_FIND_DATAA, dwFileAttributes, 4)
TEST_FIELD_ALIGN (WIN32_FIND_DATAA, dwFileAttributes, 4)
TEST_FIELD_OFFSET(WIN32_FIND_DATAA, dwFileAttributes, 0)
TEST_FIELD_SIZE (WIN32_FIND_DATAA, ftCreationTime, 8)
TEST_FIELD_ALIGN (WIN32_FIND_DATAA, ftCreationTime, 4)
TEST_FIELD_OFFSET(WIN32_FIND_DATAA, ftCreationTime, 4)
TEST_FIELD_SIZE (WIN32_FIND_DATAA, ftLastAccessTime, 8)
TEST_FIELD_ALIGN (WIN32_FIND_DATAA, ftLastAccessTime, 4)
TEST_FIELD_OFFSET(WIN32_FIND_DATAA, ftLastAccessTime, 12)
TEST_FIELD_SIZE (WIN32_FIND_DATAA, ftLastWriteTime, 8)
TEST_FIELD_ALIGN (WIN32_FIND_DATAA, ftLastWriteTime, 4)
TEST_FIELD_OFFSET(WIN32_FIND_DATAA, ftLastWriteTime, 20)
TEST_FIELD_SIZE (WIN32_FIND_DATAA, nFileSizeHigh, 4)
TEST_FIELD_ALIGN (WIN32_FIND_DATAA, nFileSizeHigh, 4)
TEST_FIELD_OFFSET(WIN32_FIND_DATAA, nFileSizeHigh, 28)
TEST_FIELD_SIZE (WIN32_FIND_DATAA, nFileSizeLow, 4)
TEST_FIELD_ALIGN (WIN32_FIND_DATAA, nFileSizeLow, 4)
TEST_FIELD_OFFSET(WIN32_FIND_DATAA, nFileSizeLow, 32)
TEST_FIELD_SIZE (WIN32_FIND_DATAA, dwReserved0, 4)
TEST_FIELD_ALIGN (WIN32_FIND_DATAA, dwReserved0, 4)
TEST_FIELD_OFFSET(WIN32_FIND_DATAA, dwReserved0, 36)
TEST_FIELD_SIZE (WIN32_FIND_DATAA, dwReserved1, 4)
TEST_FIELD_ALIGN (WIN32_FIND_DATAA, dwReserved1, 4)
TEST_FIELD_OFFSET(WIN32_FIND_DATAA, dwReserved1, 40)
TEST_FIELD_SIZE (WIN32_FIND_DATAA, cFileName, 260)
TEST_FIELD_ALIGN (WIN32_FIND_DATAA, cFileName, 1)
TEST_FIELD_OFFSET(WIN32_FIND_DATAA, cFileName, 44)
TEST_FIELD_SIZE (WIN32_FIND_DATAA, cAlternateFileName, 14)
TEST_FIELD_ALIGN (WIN32_FIND_DATAA, cAlternateFileName, 1)
TEST_FIELD_OFFSET(WIN32_FIND_DATAA, cAlternateFileName, 304)
}
static void test_pack_WIN32_FIND_DATAW(void)
{
/* WIN32_FIND_DATAW */
TEST_TYPE_SIZE (WIN32_FIND_DATAW, 592)
TEST_TYPE_ALIGN (WIN32_FIND_DATAW, 4)
TEST_FIELD_SIZE (WIN32_FIND_DATAW, dwFileAttributes, 4)
TEST_FIELD_ALIGN (WIN32_FIND_DATAW, dwFileAttributes, 4)
TEST_FIELD_OFFSET(WIN32_FIND_DATAW, dwFileAttributes, 0)
TEST_FIELD_SIZE (WIN32_FIND_DATAW, ftCreationTime, 8)
TEST_FIELD_ALIGN (WIN32_FIND_DATAW, ftCreationTime, 4)
TEST_FIELD_OFFSET(WIN32_FIND_DATAW, ftCreationTime, 4)
TEST_FIELD_SIZE (WIN32_FIND_DATAW, ftLastAccessTime, 8)
TEST_FIELD_ALIGN (WIN32_FIND_DATAW, ftLastAccessTime, 4)
TEST_FIELD_OFFSET(WIN32_FIND_DATAW, ftLastAccessTime, 12)
TEST_FIELD_SIZE (WIN32_FIND_DATAW, ftLastWriteTime, 8)
TEST_FIELD_ALIGN (WIN32_FIND_DATAW, ftLastWriteTime, 4)
TEST_FIELD_OFFSET(WIN32_FIND_DATAW, ftLastWriteTime, 20)
TEST_FIELD_SIZE (WIN32_FIND_DATAW, nFileSizeHigh, 4)
TEST_FIELD_ALIGN (WIN32_FIND_DATAW, nFileSizeHigh, 4)
TEST_FIELD_OFFSET(WIN32_FIND_DATAW, nFileSizeHigh, 28)
TEST_FIELD_SIZE (WIN32_FIND_DATAW, nFileSizeLow, 4)
TEST_FIELD_ALIGN (WIN32_FIND_DATAW, nFileSizeLow, 4)
TEST_FIELD_OFFSET(WIN32_FIND_DATAW, nFileSizeLow, 32)
TEST_FIELD_SIZE (WIN32_FIND_DATAW, dwReserved0, 4)
TEST_FIELD_ALIGN (WIN32_FIND_DATAW, dwReserved0, 4)
TEST_FIELD_OFFSET(WIN32_FIND_DATAW, dwReserved0, 36)
TEST_FIELD_SIZE (WIN32_FIND_DATAW, dwReserved1, 4)
TEST_FIELD_ALIGN (WIN32_FIND_DATAW, dwReserved1, 4)
TEST_FIELD_OFFSET(WIN32_FIND_DATAW, dwReserved1, 40)
TEST_FIELD_SIZE (WIN32_FIND_DATAW, cFileName, 520)
TEST_FIELD_ALIGN (WIN32_FIND_DATAW, cFileName, 2)
TEST_FIELD_OFFSET(WIN32_FIND_DATAW, cFileName, 44)
TEST_FIELD_SIZE (WIN32_FIND_DATAW, cAlternateFileName, 28)
TEST_FIELD_ALIGN (WIN32_FIND_DATAW, cAlternateFileName, 2)
TEST_FIELD_OFFSET(WIN32_FIND_DATAW, cAlternateFileName, 564)
}
static void test_pack_WIN32_STREAM_ID(void)
{
/* WIN32_STREAM_ID (pack 8) */
TEST_TYPE_SIZE (WIN32_STREAM_ID, 24)
TEST_TYPE_ALIGN (WIN32_STREAM_ID, 8)
TEST_FIELD_SIZE (WIN32_STREAM_ID, dwStreamId, 4)
TEST_FIELD_ALIGN (WIN32_STREAM_ID, dwStreamId, 4)
TEST_FIELD_OFFSET(WIN32_STREAM_ID, dwStreamId, 0)
TEST_FIELD_SIZE (WIN32_STREAM_ID, dwStreamAttributes, 4)
TEST_FIELD_ALIGN (WIN32_STREAM_ID, dwStreamAttributes, 4)
TEST_FIELD_OFFSET(WIN32_STREAM_ID, dwStreamAttributes, 4)
TEST_FIELD_SIZE (WIN32_STREAM_ID, Size, 8)
TEST_FIELD_ALIGN (WIN32_STREAM_ID, Size, 8)
TEST_FIELD_OFFSET(WIN32_STREAM_ID, Size, 8)
TEST_FIELD_SIZE (WIN32_STREAM_ID, dwStreamNameSize, 4)
TEST_FIELD_ALIGN (WIN32_STREAM_ID, dwStreamNameSize, 4)
TEST_FIELD_OFFSET(WIN32_STREAM_ID, dwStreamNameSize, 16)
TEST_FIELD_SIZE (WIN32_STREAM_ID, cStreamName, 2)
TEST_FIELD_ALIGN (WIN32_STREAM_ID, cStreamName, 2)
TEST_FIELD_OFFSET(WIN32_STREAM_ID, cStreamName, 20)
}
#else /* _WIN64 */
static void test_pack_LPOSVERSIONINFOA(void)
{
......@@ -125,7 +1972,7 @@ static void test_pack_LPOSVERSIONINFOW(void)
static void test_pack_OSVERSIONINFOA(void)
{
/* OSVERSIONINFOA (pack 4) */
/* OSVERSIONINFOA */
TEST_TYPE_SIZE (OSVERSIONINFOA, 148)
TEST_TYPE_ALIGN (OSVERSIONINFOA, 4)
TEST_FIELD_SIZE (OSVERSIONINFOA, dwOSVersionInfoSize, 4)
......@@ -150,7 +1997,7 @@ static void test_pack_OSVERSIONINFOA(void)
static void test_pack_OSVERSIONINFOEXA(void)
{
/* OSVERSIONINFOEXA (pack 4) */
/* OSVERSIONINFOEXA */
TEST_TYPE_SIZE (OSVERSIONINFOEXA, 156)
TEST_TYPE_ALIGN (OSVERSIONINFOEXA, 4)
TEST_FIELD_SIZE (OSVERSIONINFOEXA, dwOSVersionInfoSize, 4)
......@@ -190,7 +2037,7 @@ static void test_pack_OSVERSIONINFOEXA(void)
static void test_pack_OSVERSIONINFOEXW(void)
{
/* OSVERSIONINFOEXW (pack 4) */
/* OSVERSIONINFOEXW */
TEST_TYPE_SIZE (OSVERSIONINFOEXW, 284)
TEST_TYPE_ALIGN (OSVERSIONINFOEXW, 4)
TEST_FIELD_SIZE (OSVERSIONINFOEXW, dwOSVersionInfoSize, 4)
......@@ -230,7 +2077,7 @@ static void test_pack_OSVERSIONINFOEXW(void)
static void test_pack_OSVERSIONINFOW(void)
{
/* OSVERSIONINFOW (pack 4) */
/* OSVERSIONINFOW */
TEST_TYPE_SIZE (OSVERSIONINFOW, 276)
TEST_TYPE_ALIGN (OSVERSIONINFOW, 4)
TEST_FIELD_SIZE (OSVERSIONINFOW, dwOSVersionInfoSize, 4)
......@@ -312,7 +2159,7 @@ static void test_pack_PHKEY(void)
static void test_pack_ACTCTXA(void)
{
/* ACTCTXA (pack 4) */
/* ACTCTXA */
TEST_TYPE_SIZE (ACTCTXA, 32)
TEST_TYPE_ALIGN (ACTCTXA, 4)
TEST_FIELD_SIZE (ACTCTXA, cbSize, 4)
......@@ -346,7 +2193,7 @@ static void test_pack_ACTCTXA(void)
static void test_pack_ACTCTXW(void)
{
/* ACTCTXW (pack 4) */
/* ACTCTXW */
TEST_TYPE_SIZE (ACTCTXW, 32)
TEST_TYPE_ALIGN (ACTCTXW, 4)
TEST_FIELD_SIZE (ACTCTXW, cbSize, 4)
......@@ -380,7 +2227,7 @@ static void test_pack_ACTCTXW(void)
static void test_pack_ACTCTX_SECTION_KEYED_DATA(void)
{
/* ACTCTX_SECTION_KEYED_DATA (pack 4) */
/* ACTCTX_SECTION_KEYED_DATA */
TEST_TYPE_SIZE (ACTCTX_SECTION_KEYED_DATA, 64)
TEST_TYPE_ALIGN (ACTCTX_SECTION_KEYED_DATA, 4)
TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA, cbSize, 4)
......@@ -423,7 +2270,7 @@ static void test_pack_ACTCTX_SECTION_KEYED_DATA(void)
static void test_pack_ACTCTX_SECTION_KEYED_DATA_2600(void)
{
/* ACTCTX_SECTION_KEYED_DATA_2600 (pack 4) */
/* ACTCTX_SECTION_KEYED_DATA_2600 */
TEST_TYPE_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, 40)
TEST_TYPE_ALIGN (ACTCTX_SECTION_KEYED_DATA_2600, 4)
TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, cbSize, 4)
......@@ -460,7 +2307,7 @@ static void test_pack_ACTCTX_SECTION_KEYED_DATA_2600(void)
static void test_pack_ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA(void)
{
/* ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA (pack 4) */
/* ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA */
TEST_TYPE_SIZE (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, 20)
TEST_TYPE_ALIGN (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, 4)
TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, lpInformation, 4)
......@@ -482,7 +2329,7 @@ static void test_pack_ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA(void)
static void test_pack_ACTIVATION_CONTEXT_BASIC_INFORMATION(void)
{
/* ACTIVATION_CONTEXT_BASIC_INFORMATION (pack 4) */
/* ACTIVATION_CONTEXT_BASIC_INFORMATION */
TEST_TYPE_SIZE (ACTIVATION_CONTEXT_BASIC_INFORMATION, 8)
TEST_TYPE_ALIGN (ACTIVATION_CONTEXT_BASIC_INFORMATION, 4)
TEST_FIELD_SIZE (ACTIVATION_CONTEXT_BASIC_INFORMATION, hActCtx, 4)
......@@ -495,7 +2342,7 @@ static void test_pack_ACTIVATION_CONTEXT_BASIC_INFORMATION(void)
static void test_pack_BY_HANDLE_FILE_INFORMATION(void)
{
/* BY_HANDLE_FILE_INFORMATION (pack 4) */
/* BY_HANDLE_FILE_INFORMATION */
TEST_TYPE_SIZE (BY_HANDLE_FILE_INFORMATION, 52)
TEST_TYPE_ALIGN (BY_HANDLE_FILE_INFORMATION, 4)
TEST_FIELD_SIZE (BY_HANDLE_FILE_INFORMATION, dwFileAttributes, 4)
......@@ -532,7 +2379,7 @@ static void test_pack_BY_HANDLE_FILE_INFORMATION(void)
static void test_pack_COMMCONFIG(void)
{
/* COMMCONFIG (pack 4) */
/* COMMCONFIG */
TEST_TYPE_SIZE (COMMCONFIG, 52)
TEST_TYPE_ALIGN (COMMCONFIG, 4)
TEST_FIELD_SIZE (COMMCONFIG, dwSize, 4)
......@@ -563,7 +2410,7 @@ static void test_pack_COMMCONFIG(void)
static void test_pack_COMMPROP(void)
{
/* COMMPROP (pack 4) */
/* COMMPROP */
TEST_TYPE_SIZE (COMMPROP, 64)
TEST_TYPE_ALIGN (COMMPROP, 4)
TEST_FIELD_SIZE (COMMPROP, wPacketLength, 2)
......@@ -624,7 +2471,7 @@ static void test_pack_COMMPROP(void)
static void test_pack_COMMTIMEOUTS(void)
{
/* COMMTIMEOUTS (pack 4) */
/* COMMTIMEOUTS */
TEST_TYPE_SIZE (COMMTIMEOUTS, 20)
TEST_TYPE_ALIGN (COMMTIMEOUTS, 4)
TEST_FIELD_SIZE (COMMTIMEOUTS, ReadIntervalTimeout, 4)
......@@ -646,7 +2493,7 @@ static void test_pack_COMMTIMEOUTS(void)
static void test_pack_COMSTAT(void)
{
/* COMSTAT (pack 4) */
/* COMSTAT */
TEST_TYPE_SIZE (COMSTAT, 12)
TEST_TYPE_ALIGN (COMSTAT, 4)
TEST_FIELD_SIZE (COMSTAT, cbInQue, 4)
......@@ -659,7 +2506,7 @@ static void test_pack_COMSTAT(void)
static void test_pack_CREATE_PROCESS_DEBUG_INFO(void)
{
/* CREATE_PROCESS_DEBUG_INFO (pack 4) */
/* CREATE_PROCESS_DEBUG_INFO */
TEST_TYPE_SIZE (CREATE_PROCESS_DEBUG_INFO, 40)
TEST_TYPE_ALIGN (CREATE_PROCESS_DEBUG_INFO, 4)
TEST_FIELD_SIZE (CREATE_PROCESS_DEBUG_INFO, hFile, 4)
......@@ -696,7 +2543,7 @@ static void test_pack_CREATE_PROCESS_DEBUG_INFO(void)
static void test_pack_CREATE_THREAD_DEBUG_INFO(void)
{
/* CREATE_THREAD_DEBUG_INFO (pack 4) */
/* CREATE_THREAD_DEBUG_INFO */
TEST_TYPE_SIZE (CREATE_THREAD_DEBUG_INFO, 12)
TEST_TYPE_ALIGN (CREATE_THREAD_DEBUG_INFO, 4)
TEST_FIELD_SIZE (CREATE_THREAD_DEBUG_INFO, hThread, 4)
......@@ -724,7 +2571,7 @@ static void test_pack_CRITICAL_SECTION_DEBUG(void)
static void test_pack_DCB(void)
{
/* DCB (pack 4) */
/* DCB */
TEST_TYPE_SIZE (DCB, 28)
TEST_TYPE_ALIGN (DCB, 4)
TEST_FIELD_SIZE (DCB, DCBlength, 4)
......@@ -773,7 +2620,7 @@ static void test_pack_DCB(void)
static void test_pack_DEBUG_EVENT(void)
{
/* DEBUG_EVENT (pack 4) */
/* DEBUG_EVENT */
TEST_FIELD_SIZE (DEBUG_EVENT, dwDebugEventCode, 4)
TEST_FIELD_ALIGN (DEBUG_EVENT, dwDebugEventCode, 4)
TEST_FIELD_OFFSET(DEBUG_EVENT, dwDebugEventCode, 0)
......@@ -829,7 +2676,7 @@ static void test_pack_ENUMRESTYPEPROCW(void)
static void test_pack_EXCEPTION_DEBUG_INFO(void)
{
/* EXCEPTION_DEBUG_INFO (pack 4) */
/* EXCEPTION_DEBUG_INFO */
TEST_TYPE_SIZE (EXCEPTION_DEBUG_INFO, 84)
TEST_TYPE_ALIGN (EXCEPTION_DEBUG_INFO, 4)
TEST_FIELD_SIZE (EXCEPTION_DEBUG_INFO, ExceptionRecord, 80)
......@@ -842,7 +2689,7 @@ static void test_pack_EXCEPTION_DEBUG_INFO(void)
static void test_pack_EXIT_PROCESS_DEBUG_INFO(void)
{
/* EXIT_PROCESS_DEBUG_INFO (pack 4) */
/* EXIT_PROCESS_DEBUG_INFO */
TEST_TYPE_SIZE (EXIT_PROCESS_DEBUG_INFO, 4)
TEST_TYPE_ALIGN (EXIT_PROCESS_DEBUG_INFO, 4)
TEST_FIELD_SIZE (EXIT_PROCESS_DEBUG_INFO, dwExitCode, 4)
......@@ -852,7 +2699,7 @@ static void test_pack_EXIT_PROCESS_DEBUG_INFO(void)
static void test_pack_EXIT_THREAD_DEBUG_INFO(void)
{
/* EXIT_THREAD_DEBUG_INFO (pack 4) */
/* EXIT_THREAD_DEBUG_INFO */
TEST_TYPE_SIZE (EXIT_THREAD_DEBUG_INFO, 4)
TEST_TYPE_ALIGN (EXIT_THREAD_DEBUG_INFO, 4)
TEST_FIELD_SIZE (EXIT_THREAD_DEBUG_INFO, dwExitCode, 4)
......@@ -862,7 +2709,7 @@ static void test_pack_EXIT_THREAD_DEBUG_INFO(void)
static void test_pack_HW_PROFILE_INFOA(void)
{
/* HW_PROFILE_INFOA (pack 4) */
/* HW_PROFILE_INFOA */
TEST_TYPE_SIZE (HW_PROFILE_INFOA, 124)
TEST_TYPE_ALIGN (HW_PROFILE_INFOA, 4)
TEST_FIELD_SIZE (HW_PROFILE_INFOA, dwDockInfo, 4)
......@@ -878,7 +2725,7 @@ static void test_pack_HW_PROFILE_INFOA(void)
static void test_pack_HW_PROFILE_INFOW(void)
{
/* HW_PROFILE_INFOW (pack 4) */
/* HW_PROFILE_INFOW */
TEST_TYPE_SIZE (HW_PROFILE_INFOW, 244)
TEST_TYPE_ALIGN (HW_PROFILE_INFOW, 4)
TEST_FIELD_SIZE (HW_PROFILE_INFOW, dwDockInfo, 4)
......@@ -894,7 +2741,7 @@ static void test_pack_HW_PROFILE_INFOW(void)
static void test_pack_LOAD_DLL_DEBUG_INFO(void)
{
/* LOAD_DLL_DEBUG_INFO (pack 4) */
/* LOAD_DLL_DEBUG_INFO */
TEST_TYPE_SIZE (LOAD_DLL_DEBUG_INFO, 24)
TEST_TYPE_ALIGN (LOAD_DLL_DEBUG_INFO, 4)
TEST_FIELD_SIZE (LOAD_DLL_DEBUG_INFO, hFile, 4)
......@@ -1201,7 +3048,7 @@ static void test_pack_LPWIN32_STREAM_ID(void)
static void test_pack_MEMORYSTATUS(void)
{
/* MEMORYSTATUS (pack 4) */
/* MEMORYSTATUS */
TEST_TYPE_SIZE (MEMORYSTATUS, 32)
TEST_TYPE_ALIGN (MEMORYSTATUS, 4)
TEST_FIELD_SIZE (MEMORYSTATUS, dwLength, 4)
......@@ -1266,7 +3113,7 @@ static void test_pack_MEMORYSTATUSEX(void)
static void test_pack_OFSTRUCT(void)
{
/* OFSTRUCT (pack 4) */
/* OFSTRUCT */
TEST_TYPE_SIZE (OFSTRUCT, 136)
TEST_TYPE_ALIGN (OFSTRUCT, 2)
TEST_FIELD_SIZE (OFSTRUCT, cBytes, 1)
......@@ -1291,7 +3138,7 @@ static void test_pack_OFSTRUCT(void)
static void test_pack_OUTPUT_DEBUG_STRING_INFO(void)
{
/* OUTPUT_DEBUG_STRING_INFO (pack 4) */
/* OUTPUT_DEBUG_STRING_INFO */
TEST_TYPE_SIZE (OUTPUT_DEBUG_STRING_INFO, 8)
TEST_TYPE_ALIGN (OUTPUT_DEBUG_STRING_INFO, 4)
TEST_FIELD_SIZE (OUTPUT_DEBUG_STRING_INFO, lpDebugStringData, 4)
......@@ -1475,7 +3322,7 @@ static void test_pack_PQUERYACTCTXW_FUNC(void)
static void test_pack_PROCESS_HEAP_ENTRY(void)
{
/* PROCESS_HEAP_ENTRY (pack 4) */
/* PROCESS_HEAP_ENTRY */
TEST_FIELD_SIZE (PROCESS_HEAP_ENTRY, lpData, 4)
TEST_FIELD_ALIGN (PROCESS_HEAP_ENTRY, lpData, 4)
TEST_FIELD_OFFSET(PROCESS_HEAP_ENTRY, lpData, 0)
......@@ -1495,7 +3342,7 @@ static void test_pack_PROCESS_HEAP_ENTRY(void)
static void test_pack_PROCESS_INFORMATION(void)
{
/* PROCESS_INFORMATION (pack 4) */
/* PROCESS_INFORMATION */
TEST_TYPE_SIZE (PROCESS_INFORMATION, 16)
TEST_TYPE_ALIGN (PROCESS_INFORMATION, 4)
TEST_FIELD_SIZE (PROCESS_INFORMATION, hProcess, 4)
......@@ -1566,7 +3413,7 @@ static void test_pack_PWIN32_FIND_DATAW(void)
static void test_pack_RIP_INFO(void)
{
/* RIP_INFO (pack 4) */
/* RIP_INFO */
TEST_TYPE_SIZE (RIP_INFO, 8)
TEST_TYPE_ALIGN (RIP_INFO, 4)
TEST_FIELD_SIZE (RIP_INFO, dwError, 4)
......@@ -1579,7 +3426,7 @@ static void test_pack_RIP_INFO(void)
static void test_pack_SECURITY_ATTRIBUTES(void)
{
/* SECURITY_ATTRIBUTES (pack 4) */
/* SECURITY_ATTRIBUTES */
TEST_TYPE_SIZE (SECURITY_ATTRIBUTES, 12)
TEST_TYPE_ALIGN (SECURITY_ATTRIBUTES, 4)
TEST_FIELD_SIZE (SECURITY_ATTRIBUTES, nLength, 4)
......@@ -1595,7 +3442,7 @@ static void test_pack_SECURITY_ATTRIBUTES(void)
static void test_pack_STARTUPINFOA(void)
{
/* STARTUPINFOA (pack 4) */
/* STARTUPINFOA */
TEST_TYPE_SIZE (STARTUPINFOA, 68)
TEST_TYPE_ALIGN (STARTUPINFOA, 4)
TEST_FIELD_SIZE (STARTUPINFOA, cb, 4)
......@@ -1656,7 +3503,7 @@ static void test_pack_STARTUPINFOA(void)
static void test_pack_STARTUPINFOW(void)
{
/* STARTUPINFOW (pack 4) */
/* STARTUPINFOW */
TEST_TYPE_SIZE (STARTUPINFOW, 68)
TEST_TYPE_ALIGN (STARTUPINFOW, 4)
TEST_FIELD_SIZE (STARTUPINFOW, cb, 4)
......@@ -1717,7 +3564,7 @@ static void test_pack_STARTUPINFOW(void)
static void test_pack_SYSTEMTIME(void)
{
/* SYSTEMTIME (pack 4) */
/* SYSTEMTIME */
TEST_TYPE_SIZE (SYSTEMTIME, 16)
TEST_TYPE_ALIGN (SYSTEMTIME, 2)
TEST_FIELD_SIZE (SYSTEMTIME, wYear, 2)
......@@ -1748,12 +3595,12 @@ static void test_pack_SYSTEMTIME(void)
static void test_pack_SYSTEM_INFO(void)
{
/* SYSTEM_INFO (pack 4) */
/* SYSTEM_INFO */
}
static void test_pack_SYSTEM_POWER_STATUS(void)
{
/* SYSTEM_POWER_STATUS (pack 4) */
/* SYSTEM_POWER_STATUS */
TEST_TYPE_SIZE (SYSTEM_POWER_STATUS, 12)
TEST_TYPE_ALIGN (SYSTEM_POWER_STATUS, 4)
TEST_FIELD_SIZE (SYSTEM_POWER_STATUS, ACLineStatus, 1)
......@@ -1778,7 +3625,7 @@ static void test_pack_SYSTEM_POWER_STATUS(void)
static void test_pack_TIME_ZONE_INFORMATION(void)
{
/* TIME_ZONE_INFORMATION (pack 4) */
/* TIME_ZONE_INFORMATION */
TEST_TYPE_SIZE (TIME_ZONE_INFORMATION, 172)
TEST_TYPE_ALIGN (TIME_ZONE_INFORMATION, 4)
TEST_FIELD_SIZE (TIME_ZONE_INFORMATION, Bias, 4)
......@@ -1806,7 +3653,7 @@ static void test_pack_TIME_ZONE_INFORMATION(void)
static void test_pack_UNLOAD_DLL_DEBUG_INFO(void)
{
/* UNLOAD_DLL_DEBUG_INFO (pack 4) */
/* UNLOAD_DLL_DEBUG_INFO */
TEST_TYPE_SIZE (UNLOAD_DLL_DEBUG_INFO, 4)
TEST_TYPE_ALIGN (UNLOAD_DLL_DEBUG_INFO, 4)
TEST_FIELD_SIZE (UNLOAD_DLL_DEBUG_INFO, lpBaseOfDll, 4)
......@@ -1823,7 +3670,7 @@ static void test_pack_WAITORTIMERCALLBACK(void)
static void test_pack_WIN32_FILE_ATTRIBUTE_DATA(void)
{
/* WIN32_FILE_ATTRIBUTE_DATA (pack 4) */
/* WIN32_FILE_ATTRIBUTE_DATA */
TEST_TYPE_SIZE (WIN32_FILE_ATTRIBUTE_DATA, 36)
TEST_TYPE_ALIGN (WIN32_FILE_ATTRIBUTE_DATA, 4)
TEST_FIELD_SIZE (WIN32_FILE_ATTRIBUTE_DATA, dwFileAttributes, 4)
......@@ -1848,7 +3695,7 @@ static void test_pack_WIN32_FILE_ATTRIBUTE_DATA(void)
static void test_pack_WIN32_FIND_DATAA(void)
{
/* WIN32_FIND_DATAA (pack 4) */
/* WIN32_FIND_DATAA */
TEST_TYPE_SIZE (WIN32_FIND_DATAA, 320)
TEST_TYPE_ALIGN (WIN32_FIND_DATAA, 4)
TEST_FIELD_SIZE (WIN32_FIND_DATAA, dwFileAttributes, 4)
......@@ -1885,7 +3732,7 @@ static void test_pack_WIN32_FIND_DATAA(void)
static void test_pack_WIN32_FIND_DATAW(void)
{
/* WIN32_FIND_DATAW (pack 4) */
/* WIN32_FIND_DATAW */
TEST_TYPE_SIZE (WIN32_FIND_DATAW, 592)
TEST_TYPE_ALIGN (WIN32_FIND_DATAW, 4)
TEST_FIELD_SIZE (WIN32_FIND_DATAW, dwFileAttributes, 4)
......@@ -1942,6 +3789,8 @@ static void test_pack_WIN32_STREAM_ID(void)
TEST_FIELD_OFFSET(WIN32_STREAM_ID, cStreamName, 20)
}
#endif /* _WIN64 */
static void test_pack(void)
{
test_pack_ACTCTXA();
......@@ -2072,9 +3921,5 @@ static void test_pack(void)
START_TEST(generated)
{
#ifdef _WIN64
ok(0, "The type size / alignment tests don't support Win64 yet\n");
#else
test_pack();
#endif
}
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -56,41 +56,880 @@
* Test helper macros
*/
#define TEST_TYPE_SIZE(type, size) C_ASSERT(sizeof(type) == size);
#ifdef TYPE_ALIGNMENT
# define TEST_TYPE_ALIGN(type, align) C_ASSERT(TYPE_ALIGNMENT(type) == align);
#else
# define TEST_TYPE_ALIGN(type, align)
#endif
#ifdef _TYPE_ALIGNMENT
# define TEST_TARGET_ALIGN(type, align) C_ASSERT(_TYPE_ALIGNMENT(*(type)0) == align);
# define TEST_FIELD_ALIGN(type, field, align) C_ASSERT(_TYPE_ALIGNMENT(((type*)0)->field) == align);
#else
# define TEST_TARGET_ALIGN(type, align)
# define TEST_FIELD_ALIGN(type, field, align)
#endif
#define TEST_FIELD_OFFSET(type, field, offset) C_ASSERT(FIELD_OFFSET(type, field) == offset);
#define TEST_TARGET_SIZE(type, size) TEST_TYPE_SIZE(*(type)0, size)
#define TEST_FIELD_SIZE(type, field, size) TEST_TYPE_SIZE((((type*)0)->field), size)
#define TEST_TYPE_SIGNED(type) C_ASSERT((type) -1 < 0);
#define TEST_TYPE_UNSIGNED(type) C_ASSERT((type) -1 > 0);
#ifdef _WIN64
# define TEST_TYPE_SIZE(type, size)
# define TEST_TYPE_ALIGN(type, align)
# define TEST_TARGET_ALIGN(type, align)
# define TEST_FIELD_ALIGN(type, field, align)
# define TEST_FIELD_OFFSET(type, field, offset)
static void test_pack_I_RPC_HANDLE(void)
{
/* I_RPC_HANDLE */
TEST_TYPE_SIZE (I_RPC_HANDLE, 8)
TEST_TYPE_ALIGN (I_RPC_HANDLE, 8)
}
static void test_pack_RPC_STATUS(void)
{
/* RPC_STATUS */
TEST_TYPE_SIZE (RPC_STATUS, 4)
TEST_TYPE_ALIGN (RPC_STATUS, 4)
}
static void test_pack_PRPC_POLICY(void)
{
/* PRPC_POLICY */
TEST_TYPE_SIZE (PRPC_POLICY, 8)
TEST_TYPE_ALIGN (PRPC_POLICY, 8)
TEST_TARGET_SIZE (PRPC_POLICY, 12)
TEST_TARGET_ALIGN(PRPC_POLICY, 4)
}
static void test_pack_RPC_AUTH_IDENTITY_HANDLE(void)
{
/* RPC_AUTH_IDENTITY_HANDLE */
TEST_TYPE_SIZE (RPC_AUTH_IDENTITY_HANDLE, 8)
TEST_TYPE_ALIGN (RPC_AUTH_IDENTITY_HANDLE, 8)
}
static void test_pack_RPC_AUTH_KEY_RETRIEVAL_FN(void)
{
/* RPC_AUTH_KEY_RETRIEVAL_FN */
}
static void test_pack_RPC_AUTHZ_HANDLE(void)
{
/* RPC_AUTHZ_HANDLE */
TEST_TYPE_SIZE (RPC_AUTHZ_HANDLE, 8)
TEST_TYPE_ALIGN (RPC_AUTHZ_HANDLE, 8)
}
static void test_pack_RPC_BINDING_HANDLE(void)
{
/* RPC_BINDING_HANDLE */
TEST_TYPE_SIZE (RPC_BINDING_HANDLE, 8)
TEST_TYPE_ALIGN (RPC_BINDING_HANDLE, 8)
}
static void test_pack_RPC_BINDING_VECTOR(void)
{
/* RPC_BINDING_VECTOR */
TEST_TYPE_SIZE (RPC_BINDING_VECTOR, 16)
TEST_TYPE_ALIGN (RPC_BINDING_VECTOR, 8)
TEST_FIELD_SIZE (RPC_BINDING_VECTOR, Count, 4)
TEST_FIELD_ALIGN (RPC_BINDING_VECTOR, Count, 4)
TEST_FIELD_OFFSET(RPC_BINDING_VECTOR, Count, 0)
TEST_FIELD_SIZE (RPC_BINDING_VECTOR, BindingH, 8)
TEST_FIELD_ALIGN (RPC_BINDING_VECTOR, BindingH, 8)
TEST_FIELD_OFFSET(RPC_BINDING_VECTOR, BindingH, 8)
}
static void test_pack_RPC_IF_HANDLE(void)
{
/* RPC_IF_HANDLE */
TEST_TYPE_SIZE (RPC_IF_HANDLE, 8)
TEST_TYPE_ALIGN (RPC_IF_HANDLE, 8)
}
static void test_pack_RPC_IF_ID(void)
{
/* RPC_IF_ID */
TEST_TYPE_SIZE (RPC_IF_ID, 20)
TEST_TYPE_ALIGN (RPC_IF_ID, 4)
TEST_FIELD_SIZE (RPC_IF_ID, Uuid, 16)
TEST_FIELD_ALIGN (RPC_IF_ID, Uuid, 4)
TEST_FIELD_OFFSET(RPC_IF_ID, Uuid, 0)
TEST_FIELD_SIZE (RPC_IF_ID, VersMajor, 2)
TEST_FIELD_ALIGN (RPC_IF_ID, VersMajor, 2)
TEST_FIELD_OFFSET(RPC_IF_ID, VersMajor, 16)
TEST_FIELD_SIZE (RPC_IF_ID, VersMinor, 2)
TEST_FIELD_ALIGN (RPC_IF_ID, VersMinor, 2)
TEST_FIELD_OFFSET(RPC_IF_ID, VersMinor, 18)
}
static void test_pack_RPC_POLICY(void)
{
/* RPC_POLICY */
TEST_TYPE_SIZE (RPC_POLICY, 12)
TEST_TYPE_ALIGN (RPC_POLICY, 4)
TEST_FIELD_SIZE (RPC_POLICY, Length, 4)
TEST_FIELD_ALIGN (RPC_POLICY, Length, 4)
TEST_FIELD_OFFSET(RPC_POLICY, Length, 0)
TEST_FIELD_SIZE (RPC_POLICY, EndpointFlags, 4)
TEST_FIELD_ALIGN (RPC_POLICY, EndpointFlags, 4)
TEST_FIELD_OFFSET(RPC_POLICY, EndpointFlags, 4)
TEST_FIELD_SIZE (RPC_POLICY, NICFlags, 4)
TEST_FIELD_ALIGN (RPC_POLICY, NICFlags, 4)
TEST_FIELD_OFFSET(RPC_POLICY, NICFlags, 8)
}
static void test_pack_UUID_VECTOR(void)
{
/* UUID_VECTOR */
TEST_TYPE_SIZE (UUID_VECTOR, 16)
TEST_TYPE_ALIGN (UUID_VECTOR, 8)
TEST_FIELD_SIZE (UUID_VECTOR, Count, 4)
TEST_FIELD_ALIGN (UUID_VECTOR, Count, 4)
TEST_FIELD_OFFSET(UUID_VECTOR, Count, 0)
TEST_FIELD_SIZE (UUID_VECTOR, Uuid, 8)
TEST_FIELD_ALIGN (UUID_VECTOR, Uuid, 8)
TEST_FIELD_OFFSET(UUID_VECTOR, Uuid, 8)
}
static void test_pack_PRPC_CLIENT_INTERFACE(void)
{
/* PRPC_CLIENT_INTERFACE */
TEST_TYPE_SIZE (PRPC_CLIENT_INTERFACE, 8)
TEST_TYPE_ALIGN (PRPC_CLIENT_INTERFACE, 8)
TEST_TARGET_SIZE (PRPC_CLIENT_INTERFACE, 96)
TEST_TARGET_ALIGN(PRPC_CLIENT_INTERFACE, 8)
}
static void test_pack_PRPC_DISPATCH_TABLE(void)
{
/* PRPC_DISPATCH_TABLE */
TEST_TYPE_SIZE (PRPC_DISPATCH_TABLE, 8)
TEST_TYPE_ALIGN (PRPC_DISPATCH_TABLE, 8)
TEST_TARGET_SIZE (PRPC_DISPATCH_TABLE, 24)
TEST_TARGET_ALIGN(PRPC_DISPATCH_TABLE, 8)
}
static void test_pack_PRPC_MESSAGE(void)
{
/* PRPC_MESSAGE */
TEST_TYPE_SIZE (PRPC_MESSAGE, 8)
TEST_TYPE_ALIGN (PRPC_MESSAGE, 8)
TEST_TARGET_SIZE (PRPC_MESSAGE, 80)
TEST_TARGET_ALIGN(PRPC_MESSAGE, 8)
}
static void test_pack_PRPC_PROTSEQ_ENDPOINT(void)
{
/* PRPC_PROTSEQ_ENDPOINT */
TEST_TYPE_SIZE (PRPC_PROTSEQ_ENDPOINT, 8)
TEST_TYPE_ALIGN (PRPC_PROTSEQ_ENDPOINT, 8)
TEST_TARGET_SIZE (PRPC_PROTSEQ_ENDPOINT, 16)
TEST_TARGET_ALIGN(PRPC_PROTSEQ_ENDPOINT, 8)
}
static void test_pack_PRPC_SERVER_INTERFACE(void)
{
/* PRPC_SERVER_INTERFACE */
TEST_TYPE_SIZE (PRPC_SERVER_INTERFACE, 8)
TEST_TYPE_ALIGN (PRPC_SERVER_INTERFACE, 8)
TEST_TARGET_SIZE (PRPC_SERVER_INTERFACE, 96)
TEST_TARGET_ALIGN(PRPC_SERVER_INTERFACE, 8)
}
static void test_pack_PRPC_SYNTAX_IDENTIFIER(void)
{
/* PRPC_SYNTAX_IDENTIFIER */
TEST_TYPE_SIZE (PRPC_SYNTAX_IDENTIFIER, 8)
TEST_TYPE_ALIGN (PRPC_SYNTAX_IDENTIFIER, 8)
TEST_TARGET_SIZE (PRPC_SYNTAX_IDENTIFIER, 20)
TEST_TARGET_ALIGN(PRPC_SYNTAX_IDENTIFIER, 4)
}
static void test_pack_RPC_CLIENT_INTERFACE(void)
{
/* RPC_CLIENT_INTERFACE */
TEST_TYPE_SIZE (RPC_CLIENT_INTERFACE, 96)
TEST_TYPE_ALIGN (RPC_CLIENT_INTERFACE, 8)
TEST_FIELD_SIZE (RPC_CLIENT_INTERFACE, Length, 4)
TEST_FIELD_ALIGN (RPC_CLIENT_INTERFACE, Length, 4)
TEST_FIELD_OFFSET(RPC_CLIENT_INTERFACE, Length, 0)
TEST_FIELD_SIZE (RPC_CLIENT_INTERFACE, InterfaceId, 20)
TEST_FIELD_ALIGN (RPC_CLIENT_INTERFACE, InterfaceId, 4)
TEST_FIELD_OFFSET(RPC_CLIENT_INTERFACE, InterfaceId, 4)
TEST_FIELD_SIZE (RPC_CLIENT_INTERFACE, TransferSyntax, 20)
TEST_FIELD_ALIGN (RPC_CLIENT_INTERFACE, TransferSyntax, 4)
TEST_FIELD_OFFSET(RPC_CLIENT_INTERFACE, TransferSyntax, 24)
TEST_FIELD_SIZE (RPC_CLIENT_INTERFACE, DispatchTable, 8)
TEST_FIELD_ALIGN (RPC_CLIENT_INTERFACE, DispatchTable, 8)
TEST_FIELD_OFFSET(RPC_CLIENT_INTERFACE, DispatchTable, 48)
TEST_FIELD_SIZE (RPC_CLIENT_INTERFACE, RpcProtseqEndpointCount, 4)
TEST_FIELD_ALIGN (RPC_CLIENT_INTERFACE, RpcProtseqEndpointCount, 4)
TEST_FIELD_OFFSET(RPC_CLIENT_INTERFACE, RpcProtseqEndpointCount, 56)
TEST_FIELD_SIZE (RPC_CLIENT_INTERFACE, RpcProtseqEndpoint, 8)
TEST_FIELD_ALIGN (RPC_CLIENT_INTERFACE, RpcProtseqEndpoint, 8)
TEST_FIELD_OFFSET(RPC_CLIENT_INTERFACE, RpcProtseqEndpoint, 64)
TEST_FIELD_SIZE (RPC_CLIENT_INTERFACE, Reserved, 8)
TEST_FIELD_ALIGN (RPC_CLIENT_INTERFACE, Reserved, 8)
TEST_FIELD_OFFSET(RPC_CLIENT_INTERFACE, Reserved, 72)
TEST_FIELD_SIZE (RPC_CLIENT_INTERFACE, InterpreterInfo, 8)
TEST_FIELD_ALIGN (RPC_CLIENT_INTERFACE, InterpreterInfo, 8)
TEST_FIELD_OFFSET(RPC_CLIENT_INTERFACE, InterpreterInfo, 80)
TEST_FIELD_SIZE (RPC_CLIENT_INTERFACE, Flags, 4)
TEST_FIELD_ALIGN (RPC_CLIENT_INTERFACE, Flags, 4)
TEST_FIELD_OFFSET(RPC_CLIENT_INTERFACE, Flags, 88)
}
static void test_pack_RPC_DISPATCH_FUNCTION(void)
{
/* RPC_DISPATCH_FUNCTION */
}
static void test_pack_RPC_DISPATCH_TABLE(void)
{
/* RPC_DISPATCH_TABLE */
TEST_TYPE_SIZE (RPC_DISPATCH_TABLE, 24)
TEST_TYPE_ALIGN (RPC_DISPATCH_TABLE, 8)
TEST_FIELD_SIZE (RPC_DISPATCH_TABLE, DispatchTableCount, 4)
TEST_FIELD_ALIGN (RPC_DISPATCH_TABLE, DispatchTableCount, 4)
TEST_FIELD_OFFSET(RPC_DISPATCH_TABLE, DispatchTableCount, 0)
TEST_FIELD_SIZE (RPC_DISPATCH_TABLE, DispatchTable, 8)
TEST_FIELD_ALIGN (RPC_DISPATCH_TABLE, DispatchTable, 8)
TEST_FIELD_OFFSET(RPC_DISPATCH_TABLE, DispatchTable, 8)
TEST_FIELD_SIZE (RPC_DISPATCH_TABLE, Reserved, 8)
TEST_FIELD_ALIGN (RPC_DISPATCH_TABLE, Reserved, 8)
TEST_FIELD_OFFSET(RPC_DISPATCH_TABLE, Reserved, 16)
}
static void test_pack_RPC_MESSAGE(void)
{
/* RPC_MESSAGE */
TEST_TYPE_SIZE (RPC_MESSAGE, 80)
TEST_TYPE_ALIGN (RPC_MESSAGE, 8)
TEST_FIELD_SIZE (RPC_MESSAGE, Handle, 8)
TEST_FIELD_ALIGN (RPC_MESSAGE, Handle, 8)
TEST_FIELD_OFFSET(RPC_MESSAGE, Handle, 0)
TEST_FIELD_SIZE (RPC_MESSAGE, DataRepresentation, 4)
TEST_FIELD_ALIGN (RPC_MESSAGE, DataRepresentation, 4)
TEST_FIELD_OFFSET(RPC_MESSAGE, DataRepresentation, 8)
TEST_FIELD_SIZE (RPC_MESSAGE, Buffer, 8)
TEST_FIELD_ALIGN (RPC_MESSAGE, Buffer, 8)
TEST_FIELD_OFFSET(RPC_MESSAGE, Buffer, 16)
TEST_FIELD_SIZE (RPC_MESSAGE, BufferLength, 4)
TEST_FIELD_ALIGN (RPC_MESSAGE, BufferLength, 4)
TEST_FIELD_OFFSET(RPC_MESSAGE, BufferLength, 24)
TEST_FIELD_SIZE (RPC_MESSAGE, ProcNum, 4)
TEST_FIELD_ALIGN (RPC_MESSAGE, ProcNum, 4)
TEST_FIELD_OFFSET(RPC_MESSAGE, ProcNum, 28)
TEST_FIELD_SIZE (RPC_MESSAGE, TransferSyntax, 8)
TEST_FIELD_ALIGN (RPC_MESSAGE, TransferSyntax, 8)
TEST_FIELD_OFFSET(RPC_MESSAGE, TransferSyntax, 32)
TEST_FIELD_SIZE (RPC_MESSAGE, RpcInterfaceInformation, 8)
TEST_FIELD_ALIGN (RPC_MESSAGE, RpcInterfaceInformation, 8)
TEST_FIELD_OFFSET(RPC_MESSAGE, RpcInterfaceInformation, 40)
TEST_FIELD_SIZE (RPC_MESSAGE, ReservedForRuntime, 8)
TEST_FIELD_ALIGN (RPC_MESSAGE, ReservedForRuntime, 8)
TEST_FIELD_OFFSET(RPC_MESSAGE, ReservedForRuntime, 48)
TEST_FIELD_SIZE (RPC_MESSAGE, ManagerEpv, 8)
TEST_FIELD_ALIGN (RPC_MESSAGE, ManagerEpv, 8)
TEST_FIELD_OFFSET(RPC_MESSAGE, ManagerEpv, 56)
TEST_FIELD_SIZE (RPC_MESSAGE, ImportContext, 8)
TEST_FIELD_ALIGN (RPC_MESSAGE, ImportContext, 8)
TEST_FIELD_OFFSET(RPC_MESSAGE, ImportContext, 64)
TEST_FIELD_SIZE (RPC_MESSAGE, RpcFlags, 4)
TEST_FIELD_ALIGN (RPC_MESSAGE, RpcFlags, 4)
TEST_FIELD_OFFSET(RPC_MESSAGE, RpcFlags, 72)
}
static void test_pack_RPC_PROTSEQ_ENDPOINT(void)
{
/* RPC_PROTSEQ_ENDPOINT */
TEST_TYPE_SIZE (RPC_PROTSEQ_ENDPOINT, 16)
TEST_TYPE_ALIGN (RPC_PROTSEQ_ENDPOINT, 8)
TEST_FIELD_SIZE (RPC_PROTSEQ_ENDPOINT, RpcProtocolSequence, 8)
TEST_FIELD_ALIGN (RPC_PROTSEQ_ENDPOINT, RpcProtocolSequence, 8)
TEST_FIELD_OFFSET(RPC_PROTSEQ_ENDPOINT, RpcProtocolSequence, 0)
TEST_FIELD_SIZE (RPC_PROTSEQ_ENDPOINT, Endpoint, 8)
TEST_FIELD_ALIGN (RPC_PROTSEQ_ENDPOINT, Endpoint, 8)
TEST_FIELD_OFFSET(RPC_PROTSEQ_ENDPOINT, Endpoint, 8)
}
static void test_pack_RPC_SERVER_INTERFACE(void)
{
/* RPC_SERVER_INTERFACE */
TEST_TYPE_SIZE (RPC_SERVER_INTERFACE, 96)
TEST_TYPE_ALIGN (RPC_SERVER_INTERFACE, 8)
TEST_FIELD_SIZE (RPC_SERVER_INTERFACE, Length, 4)
TEST_FIELD_ALIGN (RPC_SERVER_INTERFACE, Length, 4)
TEST_FIELD_OFFSET(RPC_SERVER_INTERFACE, Length, 0)
TEST_FIELD_SIZE (RPC_SERVER_INTERFACE, InterfaceId, 20)
TEST_FIELD_ALIGN (RPC_SERVER_INTERFACE, InterfaceId, 4)
TEST_FIELD_OFFSET(RPC_SERVER_INTERFACE, InterfaceId, 4)
TEST_FIELD_SIZE (RPC_SERVER_INTERFACE, TransferSyntax, 20)
TEST_FIELD_ALIGN (RPC_SERVER_INTERFACE, TransferSyntax, 4)
TEST_FIELD_OFFSET(RPC_SERVER_INTERFACE, TransferSyntax, 24)
TEST_FIELD_SIZE (RPC_SERVER_INTERFACE, DispatchTable, 8)
TEST_FIELD_ALIGN (RPC_SERVER_INTERFACE, DispatchTable, 8)
TEST_FIELD_OFFSET(RPC_SERVER_INTERFACE, DispatchTable, 48)
TEST_FIELD_SIZE (RPC_SERVER_INTERFACE, RpcProtseqEndpointCount, 4)
TEST_FIELD_ALIGN (RPC_SERVER_INTERFACE, RpcProtseqEndpointCount, 4)
TEST_FIELD_OFFSET(RPC_SERVER_INTERFACE, RpcProtseqEndpointCount, 56)
TEST_FIELD_SIZE (RPC_SERVER_INTERFACE, RpcProtseqEndpoint, 8)
TEST_FIELD_ALIGN (RPC_SERVER_INTERFACE, RpcProtseqEndpoint, 8)
TEST_FIELD_OFFSET(RPC_SERVER_INTERFACE, RpcProtseqEndpoint, 64)
TEST_FIELD_SIZE (RPC_SERVER_INTERFACE, DefaultManagerEpv, 8)
TEST_FIELD_ALIGN (RPC_SERVER_INTERFACE, DefaultManagerEpv, 8)
TEST_FIELD_OFFSET(RPC_SERVER_INTERFACE, DefaultManagerEpv, 72)
TEST_FIELD_SIZE (RPC_SERVER_INTERFACE, InterpreterInfo, 8)
TEST_FIELD_ALIGN (RPC_SERVER_INTERFACE, InterpreterInfo, 8)
TEST_FIELD_OFFSET(RPC_SERVER_INTERFACE, InterpreterInfo, 80)
TEST_FIELD_SIZE (RPC_SERVER_INTERFACE, Flags, 4)
TEST_FIELD_ALIGN (RPC_SERVER_INTERFACE, Flags, 4)
TEST_FIELD_OFFSET(RPC_SERVER_INTERFACE, Flags, 88)
}
static void test_pack_RPC_SYNTAX_IDENTIFIER(void)
{
/* RPC_SYNTAX_IDENTIFIER */
TEST_TYPE_SIZE (RPC_SYNTAX_IDENTIFIER, 20)
TEST_TYPE_ALIGN (RPC_SYNTAX_IDENTIFIER, 4)
TEST_FIELD_SIZE (RPC_SYNTAX_IDENTIFIER, SyntaxGUID, 16)
TEST_FIELD_ALIGN (RPC_SYNTAX_IDENTIFIER, SyntaxGUID, 4)
TEST_FIELD_OFFSET(RPC_SYNTAX_IDENTIFIER, SyntaxGUID, 0)
TEST_FIELD_SIZE (RPC_SYNTAX_IDENTIFIER, SyntaxVersion, 4)
TEST_FIELD_ALIGN (RPC_SYNTAX_IDENTIFIER, SyntaxVersion, 2)
TEST_FIELD_OFFSET(RPC_SYNTAX_IDENTIFIER, SyntaxVersion, 16)
}
static void test_pack_RPC_VERSION(void)
{
/* RPC_VERSION */
TEST_TYPE_SIZE (RPC_VERSION, 4)
TEST_TYPE_ALIGN (RPC_VERSION, 2)
TEST_FIELD_SIZE (RPC_VERSION, MajorVersion, 2)
TEST_FIELD_ALIGN (RPC_VERSION, MajorVersion, 2)
TEST_FIELD_OFFSET(RPC_VERSION, MajorVersion, 0)
TEST_FIELD_SIZE (RPC_VERSION, MinorVersion, 2)
TEST_FIELD_ALIGN (RPC_VERSION, MinorVersion, 2)
TEST_FIELD_OFFSET(RPC_VERSION, MinorVersion, 2)
}
static void test_pack_ARRAY_INFO(void)
{
/* ARRAY_INFO */
TEST_TYPE_SIZE (ARRAY_INFO, 48)
TEST_TYPE_ALIGN (ARRAY_INFO, 8)
TEST_FIELD_SIZE (ARRAY_INFO, Dimension, 4)
TEST_FIELD_ALIGN (ARRAY_INFO, Dimension, 4)
TEST_FIELD_OFFSET(ARRAY_INFO, Dimension, 0)
TEST_FIELD_SIZE (ARRAY_INFO, BufferConformanceMark, 8)
TEST_FIELD_ALIGN (ARRAY_INFO, BufferConformanceMark, 8)
TEST_FIELD_OFFSET(ARRAY_INFO, BufferConformanceMark, 8)
TEST_FIELD_SIZE (ARRAY_INFO, BufferVarianceMark, 8)
TEST_FIELD_ALIGN (ARRAY_INFO, BufferVarianceMark, 8)
TEST_FIELD_OFFSET(ARRAY_INFO, BufferVarianceMark, 16)
TEST_FIELD_SIZE (ARRAY_INFO, MaxCountArray, 8)
TEST_FIELD_ALIGN (ARRAY_INFO, MaxCountArray, 8)
TEST_FIELD_OFFSET(ARRAY_INFO, MaxCountArray, 24)
TEST_FIELD_SIZE (ARRAY_INFO, OffsetArray, 8)
TEST_FIELD_ALIGN (ARRAY_INFO, OffsetArray, 8)
TEST_FIELD_OFFSET(ARRAY_INFO, OffsetArray, 32)
TEST_FIELD_SIZE (ARRAY_INFO, ActualCountArray, 8)
TEST_FIELD_ALIGN (ARRAY_INFO, ActualCountArray, 8)
TEST_FIELD_OFFSET(ARRAY_INFO, ActualCountArray, 40)
}
static void test_pack_COMM_FAULT_OFFSETS(void)
{
/* COMM_FAULT_OFFSETS */
TEST_TYPE_SIZE (COMM_FAULT_OFFSETS, 4)
TEST_TYPE_ALIGN (COMM_FAULT_OFFSETS, 2)
TEST_FIELD_SIZE (COMM_FAULT_OFFSETS, CommOffset, 2)
TEST_FIELD_ALIGN (COMM_FAULT_OFFSETS, CommOffset, 2)
TEST_FIELD_OFFSET(COMM_FAULT_OFFSETS, CommOffset, 0)
TEST_FIELD_SIZE (COMM_FAULT_OFFSETS, FaultOffset, 2)
TEST_FIELD_ALIGN (COMM_FAULT_OFFSETS, FaultOffset, 2)
TEST_FIELD_OFFSET(COMM_FAULT_OFFSETS, FaultOffset, 2)
}
static void test_pack_CS_STUB_INFO(void)
{
/* CS_STUB_INFO */
TEST_TYPE_SIZE (CS_STUB_INFO, 16)
TEST_TYPE_ALIGN (CS_STUB_INFO, 8)
TEST_FIELD_SIZE (CS_STUB_INFO, WireCodeset, 4)
TEST_FIELD_ALIGN (CS_STUB_INFO, WireCodeset, 4)
TEST_FIELD_OFFSET(CS_STUB_INFO, WireCodeset, 0)
TEST_FIELD_SIZE (CS_STUB_INFO, DesiredReceivingCodeset, 4)
TEST_FIELD_ALIGN (CS_STUB_INFO, DesiredReceivingCodeset, 4)
TEST_FIELD_OFFSET(CS_STUB_INFO, DesiredReceivingCodeset, 4)
TEST_FIELD_SIZE (CS_STUB_INFO, CSArrayInfo, 8)
TEST_FIELD_ALIGN (CS_STUB_INFO, CSArrayInfo, 8)
TEST_FIELD_OFFSET(CS_STUB_INFO, CSArrayInfo, 8)
}
static void test_pack_EXPR_EVAL(void)
{
/* EXPR_EVAL */
}
static void test_pack_FULL_PTR_TO_REFID_ELEMENT(void)
{
/* FULL_PTR_TO_REFID_ELEMENT */
TEST_TYPE_SIZE (FULL_PTR_TO_REFID_ELEMENT, 24)
TEST_TYPE_ALIGN (FULL_PTR_TO_REFID_ELEMENT, 8)
TEST_FIELD_SIZE (FULL_PTR_TO_REFID_ELEMENT, Next, 8)
TEST_FIELD_ALIGN (FULL_PTR_TO_REFID_ELEMENT, Next, 8)
TEST_FIELD_OFFSET(FULL_PTR_TO_REFID_ELEMENT, Next, 0)
TEST_FIELD_SIZE (FULL_PTR_TO_REFID_ELEMENT, Pointer, 8)
TEST_FIELD_ALIGN (FULL_PTR_TO_REFID_ELEMENT, Pointer, 8)
TEST_FIELD_OFFSET(FULL_PTR_TO_REFID_ELEMENT, Pointer, 8)
TEST_FIELD_SIZE (FULL_PTR_TO_REFID_ELEMENT, RefId, 4)
TEST_FIELD_ALIGN (FULL_PTR_TO_REFID_ELEMENT, RefId, 4)
TEST_FIELD_OFFSET(FULL_PTR_TO_REFID_ELEMENT, RefId, 16)
TEST_FIELD_SIZE (FULL_PTR_TO_REFID_ELEMENT, State, 1)
TEST_FIELD_ALIGN (FULL_PTR_TO_REFID_ELEMENT, State, 1)
TEST_FIELD_OFFSET(FULL_PTR_TO_REFID_ELEMENT, State, 20)
}
static void test_pack_FULL_PTR_XLAT_TABLES(void)
{
/* FULL_PTR_XLAT_TABLES */
}
#else
static void test_pack_GENERIC_BINDING_INFO(void)
{
/* GENERIC_BINDING_INFO */
TEST_FIELD_SIZE (GENERIC_BINDING_INFO, pObj, 8)
TEST_FIELD_ALIGN (GENERIC_BINDING_INFO, pObj, 8)
TEST_FIELD_OFFSET(GENERIC_BINDING_INFO, pObj, 0)
TEST_FIELD_SIZE (GENERIC_BINDING_INFO, Size, 4)
TEST_FIELD_ALIGN (GENERIC_BINDING_INFO, Size, 4)
TEST_FIELD_OFFSET(GENERIC_BINDING_INFO, Size, 8)
}
static void test_pack_GENERIC_BINDING_ROUTINE_PAIR(void)
{
/* GENERIC_BINDING_ROUTINE_PAIR */
}
# define TEST_TYPE_SIZE(type, size) C_ASSERT(sizeof(type) == size);
static void test_pack_MALLOC_FREE_STRUCT(void)
{
/* MALLOC_FREE_STRUCT */
}
# ifdef TYPE_ALIGNMENT
# define TEST_TYPE_ALIGN(type, align) C_ASSERT(TYPE_ALIGNMENT(type) == align);
# else
# define TEST_TYPE_ALIGN(type, align)
# endif
static void test_pack_MIDL_FORMAT_STRING(void)
{
/* MIDL_FORMAT_STRING */
TEST_FIELD_SIZE (MIDL_FORMAT_STRING, Pad, 2)
TEST_FIELD_ALIGN (MIDL_FORMAT_STRING, Pad, 2)
TEST_FIELD_OFFSET(MIDL_FORMAT_STRING, Pad, 0)
}
# ifdef _TYPE_ALIGNMENT
# define TEST_TARGET_ALIGN(type, align) C_ASSERT(_TYPE_ALIGNMENT(*(type)0) == align);
# define TEST_FIELD_ALIGN(type, field, align) C_ASSERT(_TYPE_ALIGNMENT(((type*)0)->field) == align);
# else
# define TEST_TARGET_ALIGN(type, align)
# define TEST_FIELD_ALIGN(type, field, align)
# endif
static void test_pack_MIDL_SERVER_INFO(void)
{
/* MIDL_SERVER_INFO */
TEST_TYPE_SIZE (MIDL_SERVER_INFO, 64)
TEST_TYPE_ALIGN (MIDL_SERVER_INFO, 8)
TEST_FIELD_SIZE (MIDL_SERVER_INFO, pStubDesc, 8)
TEST_FIELD_ALIGN (MIDL_SERVER_INFO, pStubDesc, 8)
TEST_FIELD_OFFSET(MIDL_SERVER_INFO, pStubDesc, 0)
TEST_FIELD_SIZE (MIDL_SERVER_INFO, DispatchTable, 8)
TEST_FIELD_ALIGN (MIDL_SERVER_INFO, DispatchTable, 8)
TEST_FIELD_OFFSET(MIDL_SERVER_INFO, DispatchTable, 8)
TEST_FIELD_SIZE (MIDL_SERVER_INFO, ProcString, 8)
TEST_FIELD_ALIGN (MIDL_SERVER_INFO, ProcString, 8)
TEST_FIELD_OFFSET(MIDL_SERVER_INFO, ProcString, 16)
TEST_FIELD_SIZE (MIDL_SERVER_INFO, FmtStringOffset, 8)
TEST_FIELD_ALIGN (MIDL_SERVER_INFO, FmtStringOffset, 8)
TEST_FIELD_OFFSET(MIDL_SERVER_INFO, FmtStringOffset, 24)
TEST_FIELD_SIZE (MIDL_SERVER_INFO, ThunkTable, 8)
TEST_FIELD_ALIGN (MIDL_SERVER_INFO, ThunkTable, 8)
TEST_FIELD_OFFSET(MIDL_SERVER_INFO, ThunkTable, 32)
TEST_FIELD_SIZE (MIDL_SERVER_INFO, pTransferSyntax, 8)
TEST_FIELD_ALIGN (MIDL_SERVER_INFO, pTransferSyntax, 8)
TEST_FIELD_OFFSET(MIDL_SERVER_INFO, pTransferSyntax, 40)
TEST_FIELD_SIZE (MIDL_SERVER_INFO, nCount, 8)
TEST_FIELD_ALIGN (MIDL_SERVER_INFO, nCount, 8)
TEST_FIELD_OFFSET(MIDL_SERVER_INFO, nCount, 48)
TEST_FIELD_SIZE (MIDL_SERVER_INFO, pSyntaxInfo, 8)
TEST_FIELD_ALIGN (MIDL_SERVER_INFO, pSyntaxInfo, 8)
TEST_FIELD_OFFSET(MIDL_SERVER_INFO, pSyntaxInfo, 56)
}
# define TEST_FIELD_OFFSET(type, field, offset) C_ASSERT(FIELD_OFFSET(type, field) == offset);
static void test_pack_MIDL_STUB_DESC(void)
{
/* MIDL_STUB_DESC */
TEST_FIELD_SIZE (MIDL_STUB_DESC, RpcInterfaceInformation, 8)
TEST_FIELD_ALIGN (MIDL_STUB_DESC, RpcInterfaceInformation, 8)
TEST_FIELD_OFFSET(MIDL_STUB_DESC, RpcInterfaceInformation, 0)
}
#endif
static void test_pack_MIDL_STUB_MESSAGE(void)
{
/* MIDL_STUB_MESSAGE */
TEST_FIELD_SIZE (MIDL_STUB_MESSAGE, RpcMsg, 8)
TEST_FIELD_ALIGN (MIDL_STUB_MESSAGE, RpcMsg, 8)
TEST_FIELD_OFFSET(MIDL_STUB_MESSAGE, RpcMsg, 0)
TEST_FIELD_SIZE (MIDL_STUB_MESSAGE, Buffer, 8)
TEST_FIELD_ALIGN (MIDL_STUB_MESSAGE, Buffer, 8)
TEST_FIELD_OFFSET(MIDL_STUB_MESSAGE, Buffer, 8)
TEST_FIELD_SIZE (MIDL_STUB_MESSAGE, BufferStart, 8)
TEST_FIELD_ALIGN (MIDL_STUB_MESSAGE, BufferStart, 8)
TEST_FIELD_OFFSET(MIDL_STUB_MESSAGE, BufferStart, 16)
TEST_FIELD_SIZE (MIDL_STUB_MESSAGE, BufferEnd, 8)
TEST_FIELD_ALIGN (MIDL_STUB_MESSAGE, BufferEnd, 8)
TEST_FIELD_OFFSET(MIDL_STUB_MESSAGE, BufferEnd, 24)
TEST_FIELD_SIZE (MIDL_STUB_MESSAGE, BufferMark, 8)
TEST_FIELD_ALIGN (MIDL_STUB_MESSAGE, BufferMark, 8)
TEST_FIELD_OFFSET(MIDL_STUB_MESSAGE, BufferMark, 32)
TEST_FIELD_SIZE (MIDL_STUB_MESSAGE, BufferLength, 4)
TEST_FIELD_ALIGN (MIDL_STUB_MESSAGE, BufferLength, 4)
TEST_FIELD_OFFSET(MIDL_STUB_MESSAGE, BufferLength, 40)
TEST_FIELD_SIZE (MIDL_STUB_MESSAGE, MemorySize, 4)
TEST_FIELD_ALIGN (MIDL_STUB_MESSAGE, MemorySize, 4)
TEST_FIELD_OFFSET(MIDL_STUB_MESSAGE, MemorySize, 44)
TEST_FIELD_SIZE (MIDL_STUB_MESSAGE, Memory, 8)
TEST_FIELD_ALIGN (MIDL_STUB_MESSAGE, Memory, 8)
TEST_FIELD_OFFSET(MIDL_STUB_MESSAGE, Memory, 48)
TEST_FIELD_SIZE (MIDL_STUB_MESSAGE, ReuseBuffer, 4)
TEST_FIELD_ALIGN (MIDL_STUB_MESSAGE, ReuseBuffer, 4)
TEST_FIELD_OFFSET(MIDL_STUB_MESSAGE, ReuseBuffer, 60)
TEST_FIELD_SIZE (MIDL_STUB_MESSAGE, pAllocAllNodesContext, 8)
TEST_FIELD_ALIGN (MIDL_STUB_MESSAGE, pAllocAllNodesContext, 8)
TEST_FIELD_OFFSET(MIDL_STUB_MESSAGE, pAllocAllNodesContext, 64)
TEST_FIELD_SIZE (MIDL_STUB_MESSAGE, pPointerQueueState, 8)
TEST_FIELD_ALIGN (MIDL_STUB_MESSAGE, pPointerQueueState, 8)
TEST_FIELD_OFFSET(MIDL_STUB_MESSAGE, pPointerQueueState, 72)
TEST_FIELD_SIZE (MIDL_STUB_MESSAGE, IgnoreEmbeddedPointers, 4)
TEST_FIELD_ALIGN (MIDL_STUB_MESSAGE, IgnoreEmbeddedPointers, 4)
TEST_FIELD_OFFSET(MIDL_STUB_MESSAGE, IgnoreEmbeddedPointers, 80)
TEST_FIELD_SIZE (MIDL_STUB_MESSAGE, PointerBufferMark, 8)
TEST_FIELD_ALIGN (MIDL_STUB_MESSAGE, PointerBufferMark, 8)
TEST_FIELD_OFFSET(MIDL_STUB_MESSAGE, PointerBufferMark, 88)
TEST_FIELD_SIZE (MIDL_STUB_MESSAGE, CorrDespIncrement, 1)
TEST_FIELD_ALIGN (MIDL_STUB_MESSAGE, CorrDespIncrement, 1)
TEST_FIELD_OFFSET(MIDL_STUB_MESSAGE, CorrDespIncrement, 96)
TEST_FIELD_SIZE (MIDL_STUB_MESSAGE, uFlags, 1)
TEST_FIELD_ALIGN (MIDL_STUB_MESSAGE, uFlags, 1)
TEST_FIELD_OFFSET(MIDL_STUB_MESSAGE, uFlags, 97)
TEST_FIELD_SIZE (MIDL_STUB_MESSAGE, MaxCount, 8)
TEST_FIELD_ALIGN (MIDL_STUB_MESSAGE, MaxCount, 8)
TEST_FIELD_OFFSET(MIDL_STUB_MESSAGE, MaxCount, 104)
TEST_FIELD_SIZE (MIDL_STUB_MESSAGE, Offset, 4)
TEST_FIELD_ALIGN (MIDL_STUB_MESSAGE, Offset, 4)
TEST_FIELD_OFFSET(MIDL_STUB_MESSAGE, Offset, 112)
TEST_FIELD_SIZE (MIDL_STUB_MESSAGE, ActualCount, 4)
TEST_FIELD_ALIGN (MIDL_STUB_MESSAGE, ActualCount, 4)
TEST_FIELD_OFFSET(MIDL_STUB_MESSAGE, ActualCount, 116)
}
#define TEST_TARGET_SIZE(type, size) TEST_TYPE_SIZE(*(type)0, size)
#define TEST_FIELD_SIZE(type, field, size) TEST_TYPE_SIZE((((type*)0)->field), size)
#define TEST_TYPE_SIGNED(type) C_ASSERT((type) -1 < 0);
#define TEST_TYPE_UNSIGNED(type) C_ASSERT((type) -1 > 0);
static void test_pack_MIDL_STUBLESS_PROXY_INFO(void)
{
/* MIDL_STUBLESS_PROXY_INFO */
TEST_TYPE_SIZE (MIDL_STUBLESS_PROXY_INFO, 48)
TEST_TYPE_ALIGN (MIDL_STUBLESS_PROXY_INFO, 8)
TEST_FIELD_SIZE (MIDL_STUBLESS_PROXY_INFO, pStubDesc, 8)
TEST_FIELD_ALIGN (MIDL_STUBLESS_PROXY_INFO, pStubDesc, 8)
TEST_FIELD_OFFSET(MIDL_STUBLESS_PROXY_INFO, pStubDesc, 0)
TEST_FIELD_SIZE (MIDL_STUBLESS_PROXY_INFO, ProcFormatString, 8)
TEST_FIELD_ALIGN (MIDL_STUBLESS_PROXY_INFO, ProcFormatString, 8)
TEST_FIELD_OFFSET(MIDL_STUBLESS_PROXY_INFO, ProcFormatString, 8)
TEST_FIELD_SIZE (MIDL_STUBLESS_PROXY_INFO, FormatStringOffset, 8)
TEST_FIELD_ALIGN (MIDL_STUBLESS_PROXY_INFO, FormatStringOffset, 8)
TEST_FIELD_OFFSET(MIDL_STUBLESS_PROXY_INFO, FormatStringOffset, 16)
TEST_FIELD_SIZE (MIDL_STUBLESS_PROXY_INFO, pTransferSyntax, 8)
TEST_FIELD_ALIGN (MIDL_STUBLESS_PROXY_INFO, pTransferSyntax, 8)
TEST_FIELD_OFFSET(MIDL_STUBLESS_PROXY_INFO, pTransferSyntax, 24)
TEST_FIELD_SIZE (MIDL_STUBLESS_PROXY_INFO, nCount, 8)
TEST_FIELD_ALIGN (MIDL_STUBLESS_PROXY_INFO, nCount, 8)
TEST_FIELD_OFFSET(MIDL_STUBLESS_PROXY_INFO, nCount, 32)
TEST_FIELD_SIZE (MIDL_STUBLESS_PROXY_INFO, pSyntaxInfo, 8)
TEST_FIELD_ALIGN (MIDL_STUBLESS_PROXY_INFO, pSyntaxInfo, 8)
TEST_FIELD_OFFSET(MIDL_STUBLESS_PROXY_INFO, pSyntaxInfo, 40)
}
static void test_pack_MIDL_SYNTAX_INFO(void)
{
/* MIDL_SYNTAX_INFO */
TEST_TYPE_SIZE (MIDL_SYNTAX_INFO, 80)
TEST_TYPE_ALIGN (MIDL_SYNTAX_INFO, 8)
TEST_FIELD_SIZE (MIDL_SYNTAX_INFO, TransferSyntax, 20)
TEST_FIELD_ALIGN (MIDL_SYNTAX_INFO, TransferSyntax, 4)
TEST_FIELD_OFFSET(MIDL_SYNTAX_INFO, TransferSyntax, 0)
TEST_FIELD_SIZE (MIDL_SYNTAX_INFO, DispatchTable, 8)
TEST_FIELD_ALIGN (MIDL_SYNTAX_INFO, DispatchTable, 8)
TEST_FIELD_OFFSET(MIDL_SYNTAX_INFO, DispatchTable, 24)
TEST_FIELD_SIZE (MIDL_SYNTAX_INFO, ProcString, 8)
TEST_FIELD_ALIGN (MIDL_SYNTAX_INFO, ProcString, 8)
TEST_FIELD_OFFSET(MIDL_SYNTAX_INFO, ProcString, 32)
TEST_FIELD_SIZE (MIDL_SYNTAX_INFO, FmtStringOffset, 8)
TEST_FIELD_ALIGN (MIDL_SYNTAX_INFO, FmtStringOffset, 8)
TEST_FIELD_OFFSET(MIDL_SYNTAX_INFO, FmtStringOffset, 40)
TEST_FIELD_SIZE (MIDL_SYNTAX_INFO, TypeString, 8)
TEST_FIELD_ALIGN (MIDL_SYNTAX_INFO, TypeString, 8)
TEST_FIELD_OFFSET(MIDL_SYNTAX_INFO, TypeString, 48)
TEST_FIELD_SIZE (MIDL_SYNTAX_INFO, aUserMarshalQuadruple, 8)
TEST_FIELD_ALIGN (MIDL_SYNTAX_INFO, aUserMarshalQuadruple, 8)
TEST_FIELD_OFFSET(MIDL_SYNTAX_INFO, aUserMarshalQuadruple, 56)
TEST_FIELD_SIZE (MIDL_SYNTAX_INFO, pReserved1, 8)
TEST_FIELD_ALIGN (MIDL_SYNTAX_INFO, pReserved1, 8)
TEST_FIELD_OFFSET(MIDL_SYNTAX_INFO, pReserved1, 64)
TEST_FIELD_SIZE (MIDL_SYNTAX_INFO, pReserved2, 8)
TEST_FIELD_ALIGN (MIDL_SYNTAX_INFO, pReserved2, 8)
TEST_FIELD_OFFSET(MIDL_SYNTAX_INFO, pReserved2, 72)
}
static void test_pack_NDR_CCONTEXT(void)
{
/* NDR_CCONTEXT */
TEST_TYPE_SIZE (NDR_CCONTEXT, 8)
TEST_TYPE_ALIGN (NDR_CCONTEXT, 8)
}
static void test_pack_NDR_NOTIFY_ROUTINE(void)
{
/* NDR_NOTIFY_ROUTINE */
}
static void test_pack_NDR_NOTIFY2_ROUTINE(void)
{
/* NDR_NOTIFY2_ROUTINE */
}
static void test_pack_NDR_RUNDOWN(void)
{
/* NDR_RUNDOWN */
}
static void test_pack_NDR_SCONTEXT(void)
{
/* NDR_SCONTEXT */
TEST_TYPE_SIZE (NDR_SCONTEXT, 8)
TEST_TYPE_ALIGN (NDR_SCONTEXT, 8)
}
static void test_pack_NDR_USER_MARSHAL_INFO(void)
{
/* NDR_USER_MARSHAL_INFO */
TEST_FIELD_SIZE (NDR_USER_MARSHAL_INFO, InformationLevel, 4)
TEST_FIELD_ALIGN (NDR_USER_MARSHAL_INFO, InformationLevel, 4)
TEST_FIELD_OFFSET(NDR_USER_MARSHAL_INFO, InformationLevel, 0)
}
static void test_pack_NDR_USER_MARSHAL_INFO_LEVEL1(void)
{
/* NDR_USER_MARSHAL_INFO_LEVEL1 */
TEST_FIELD_SIZE (NDR_USER_MARSHAL_INFO_LEVEL1, Buffer, 8)
TEST_FIELD_ALIGN (NDR_USER_MARSHAL_INFO_LEVEL1, Buffer, 8)
TEST_FIELD_OFFSET(NDR_USER_MARSHAL_INFO_LEVEL1, Buffer, 0)
TEST_FIELD_SIZE (NDR_USER_MARSHAL_INFO_LEVEL1, BufferSize, 4)
TEST_FIELD_ALIGN (NDR_USER_MARSHAL_INFO_LEVEL1, BufferSize, 4)
TEST_FIELD_OFFSET(NDR_USER_MARSHAL_INFO_LEVEL1, BufferSize, 8)
}
static void test_pack_PARRAY_INFO(void)
{
/* PARRAY_INFO */
TEST_TYPE_SIZE (PARRAY_INFO, 8)
TEST_TYPE_ALIGN (PARRAY_INFO, 8)
TEST_TARGET_SIZE (PARRAY_INFO, 48)
TEST_TARGET_ALIGN(PARRAY_INFO, 8)
}
static void test_pack_PFORMAT_STRING(void)
{
/* PFORMAT_STRING */
TEST_TYPE_SIZE (PFORMAT_STRING, 8)
TEST_TYPE_ALIGN (PFORMAT_STRING, 8)
}
static void test_pack_PFULL_PTR_TO_REFID_ELEMENT(void)
{
/* PFULL_PTR_TO_REFID_ELEMENT */
TEST_TYPE_SIZE (PFULL_PTR_TO_REFID_ELEMENT, 8)
TEST_TYPE_ALIGN (PFULL_PTR_TO_REFID_ELEMENT, 8)
TEST_TARGET_SIZE (PFULL_PTR_TO_REFID_ELEMENT, 24)
TEST_TARGET_ALIGN(PFULL_PTR_TO_REFID_ELEMENT, 8)
}
static void test_pack_PFULL_PTR_XLAT_TABLES(void)
{
/* PFULL_PTR_XLAT_TABLES */
TEST_TYPE_SIZE (PFULL_PTR_XLAT_TABLES, 8)
TEST_TYPE_ALIGN (PFULL_PTR_XLAT_TABLES, 8)
}
static void test_pack_PGENERIC_BINDING_INFO(void)
{
/* PGENERIC_BINDING_INFO */
TEST_TYPE_SIZE (PGENERIC_BINDING_INFO, 8)
TEST_TYPE_ALIGN (PGENERIC_BINDING_INFO, 8)
}
static void test_pack_PGENERIC_BINDING_ROUTINE_PAIR(void)
{
/* PGENERIC_BINDING_ROUTINE_PAIR */
TEST_TYPE_SIZE (PGENERIC_BINDING_ROUTINE_PAIR, 8)
TEST_TYPE_ALIGN (PGENERIC_BINDING_ROUTINE_PAIR, 8)
}
static void test_pack_PMIDL_SERVER_INFO(void)
{
/* PMIDL_SERVER_INFO */
TEST_TYPE_SIZE (PMIDL_SERVER_INFO, 8)
TEST_TYPE_ALIGN (PMIDL_SERVER_INFO, 8)
TEST_TARGET_SIZE (PMIDL_SERVER_INFO, 64)
TEST_TARGET_ALIGN(PMIDL_SERVER_INFO, 8)
}
static void test_pack_PMIDL_STUB_DESC(void)
{
/* PMIDL_STUB_DESC */
TEST_TYPE_SIZE (PMIDL_STUB_DESC, 8)
TEST_TYPE_ALIGN (PMIDL_STUB_DESC, 8)
}
static void test_pack_PMIDL_STUB_MESSAGE(void)
{
/* PMIDL_STUB_MESSAGE */
TEST_TYPE_SIZE (PMIDL_STUB_MESSAGE, 8)
TEST_TYPE_ALIGN (PMIDL_STUB_MESSAGE, 8)
}
static void test_pack_PMIDL_STUBLESS_PROXY_INFO(void)
{
/* PMIDL_STUBLESS_PROXY_INFO */
TEST_TYPE_SIZE (PMIDL_STUBLESS_PROXY_INFO, 8)
TEST_TYPE_ALIGN (PMIDL_STUBLESS_PROXY_INFO, 8)
TEST_TARGET_SIZE (PMIDL_STUBLESS_PROXY_INFO, 48)
TEST_TARGET_ALIGN(PMIDL_STUBLESS_PROXY_INFO, 8)
}
static void test_pack_PMIDL_SYNTAX_INFO(void)
{
/* PMIDL_SYNTAX_INFO */
TEST_TYPE_SIZE (PMIDL_SYNTAX_INFO, 8)
TEST_TYPE_ALIGN (PMIDL_SYNTAX_INFO, 8)
TEST_TARGET_SIZE (PMIDL_SYNTAX_INFO, 80)
TEST_TARGET_ALIGN(PMIDL_SYNTAX_INFO, 8)
}
static void test_pack_PNDR_ASYNC_MESSAGE(void)
{
/* PNDR_ASYNC_MESSAGE */
TEST_TYPE_SIZE (PNDR_ASYNC_MESSAGE, 8)
TEST_TYPE_ALIGN (PNDR_ASYNC_MESSAGE, 8)
}
static void test_pack_PNDR_CORRELATION_INFO(void)
{
/* PNDR_CORRELATION_INFO */
TEST_TYPE_SIZE (PNDR_CORRELATION_INFO, 8)
TEST_TYPE_ALIGN (PNDR_CORRELATION_INFO, 8)
}
static void test_pack_PSCONTEXT_QUEUE(void)
{
/* PSCONTEXT_QUEUE */
TEST_TYPE_SIZE (PSCONTEXT_QUEUE, 8)
TEST_TYPE_ALIGN (PSCONTEXT_QUEUE, 8)
TEST_TARGET_SIZE (PSCONTEXT_QUEUE, 16)
TEST_TARGET_ALIGN(PSCONTEXT_QUEUE, 8)
}
static void test_pack_PXMIT_ROUTINE_QUINTUPLE(void)
{
/* PXMIT_ROUTINE_QUINTUPLE */
TEST_TYPE_SIZE (PXMIT_ROUTINE_QUINTUPLE, 8)
TEST_TYPE_ALIGN (PXMIT_ROUTINE_QUINTUPLE, 8)
}
static void test_pack_SCONTEXT_QUEUE(void)
{
/* SCONTEXT_QUEUE */
TEST_TYPE_SIZE (SCONTEXT_QUEUE, 16)
TEST_TYPE_ALIGN (SCONTEXT_QUEUE, 8)
TEST_FIELD_SIZE (SCONTEXT_QUEUE, NumberOfObjects, 4)
TEST_FIELD_ALIGN (SCONTEXT_QUEUE, NumberOfObjects, 4)
TEST_FIELD_OFFSET(SCONTEXT_QUEUE, NumberOfObjects, 0)
TEST_FIELD_SIZE (SCONTEXT_QUEUE, ArrayOfObjects, 8)
TEST_FIELD_ALIGN (SCONTEXT_QUEUE, ArrayOfObjects, 8)
TEST_FIELD_OFFSET(SCONTEXT_QUEUE, ArrayOfObjects, 8)
}
static void test_pack_SERVER_ROUTINE(void)
{
/* SERVER_ROUTINE */
}
static void test_pack_STUB_THUNK(void)
{
/* STUB_THUNK */
}
static void test_pack_USER_MARSHAL_CB(void)
{
/* USER_MARSHAL_CB */
TEST_FIELD_SIZE (USER_MARSHAL_CB, Flags, 4)
TEST_FIELD_ALIGN (USER_MARSHAL_CB, Flags, 4)
TEST_FIELD_OFFSET(USER_MARSHAL_CB, Flags, 0)
TEST_FIELD_SIZE (USER_MARSHAL_CB, pStubMsg, 8)
TEST_FIELD_ALIGN (USER_MARSHAL_CB, pStubMsg, 8)
TEST_FIELD_OFFSET(USER_MARSHAL_CB, pStubMsg, 8)
TEST_FIELD_SIZE (USER_MARSHAL_CB, pReserve, 8)
TEST_FIELD_ALIGN (USER_MARSHAL_CB, pReserve, 8)
TEST_FIELD_OFFSET(USER_MARSHAL_CB, pReserve, 16)
TEST_FIELD_SIZE (USER_MARSHAL_CB, Signature, 4)
TEST_FIELD_ALIGN (USER_MARSHAL_CB, Signature, 4)
TEST_FIELD_OFFSET(USER_MARSHAL_CB, Signature, 24)
}
static void test_pack_USER_MARSHAL_FREEING_ROUTINE(void)
{
/* USER_MARSHAL_FREEING_ROUTINE */
}
static void test_pack_USER_MARSHAL_MARSHALLING_ROUTINE(void)
{
/* USER_MARSHAL_MARSHALLING_ROUTINE */
}
static void test_pack_USER_MARSHAL_ROUTINE_QUADRUPLE(void)
{
/* USER_MARSHAL_ROUTINE_QUADRUPLE */
}
static void test_pack_USER_MARSHAL_SIZING_ROUTINE(void)
{
/* USER_MARSHAL_SIZING_ROUTINE */
}
static void test_pack_USER_MARSHAL_UNMARSHALLING_ROUTINE(void)
{
/* USER_MARSHAL_UNMARSHALLING_ROUTINE */
}
static void test_pack_XMIT_HELPER_ROUTINE(void)
{
/* XMIT_HELPER_ROUTINE */
}
static void test_pack_XMIT_ROUTINE_QUINTUPLE(void)
{
/* XMIT_ROUTINE_QUINTUPLE */
}
static void test_pack_PRPC_STUB_FUNCTION(void)
{
/* PRPC_STUB_FUNCTION */
}
#else /* _WIN64 */
static void test_pack_I_RPC_HANDLE(void)
{
......@@ -143,7 +982,7 @@ static void test_pack_RPC_BINDING_HANDLE(void)
static void test_pack_RPC_BINDING_VECTOR(void)
{
/* RPC_BINDING_VECTOR (pack 4) */
/* RPC_BINDING_VECTOR */
TEST_TYPE_SIZE (RPC_BINDING_VECTOR, 8)
TEST_TYPE_ALIGN (RPC_BINDING_VECTOR, 4)
TEST_FIELD_SIZE (RPC_BINDING_VECTOR, Count, 4)
......@@ -163,7 +1002,7 @@ static void test_pack_RPC_IF_HANDLE(void)
static void test_pack_RPC_IF_ID(void)
{
/* RPC_IF_ID (pack 4) */
/* RPC_IF_ID */
TEST_TYPE_SIZE (RPC_IF_ID, 20)
TEST_TYPE_ALIGN (RPC_IF_ID, 4)
TEST_FIELD_SIZE (RPC_IF_ID, Uuid, 16)
......@@ -179,7 +1018,7 @@ static void test_pack_RPC_IF_ID(void)
static void test_pack_RPC_POLICY(void)
{
/* RPC_POLICY (pack 4) */
/* RPC_POLICY */
TEST_TYPE_SIZE (RPC_POLICY, 12)
TEST_TYPE_ALIGN (RPC_POLICY, 4)
TEST_FIELD_SIZE (RPC_POLICY, Length, 4)
......@@ -195,7 +1034,7 @@ static void test_pack_RPC_POLICY(void)
static void test_pack_UUID_VECTOR(void)
{
/* UUID_VECTOR (pack 4) */
/* UUID_VECTOR */
TEST_TYPE_SIZE (UUID_VECTOR, 8)
TEST_TYPE_ALIGN (UUID_VECTOR, 4)
TEST_FIELD_SIZE (UUID_VECTOR, Count, 4)
......@@ -262,7 +1101,7 @@ static void test_pack_PRPC_SYNTAX_IDENTIFIER(void)
static void test_pack_RPC_CLIENT_INTERFACE(void)
{
/* RPC_CLIENT_INTERFACE (pack 4) */
/* RPC_CLIENT_INTERFACE */
TEST_TYPE_SIZE (RPC_CLIENT_INTERFACE, 68)
TEST_TYPE_ALIGN (RPC_CLIENT_INTERFACE, 4)
TEST_FIELD_SIZE (RPC_CLIENT_INTERFACE, Length, 4)
......@@ -301,7 +1140,7 @@ static void test_pack_RPC_DISPATCH_FUNCTION(void)
static void test_pack_RPC_DISPATCH_TABLE(void)
{
/* RPC_DISPATCH_TABLE (pack 4) */
/* RPC_DISPATCH_TABLE */
TEST_TYPE_SIZE (RPC_DISPATCH_TABLE, 12)
TEST_TYPE_ALIGN (RPC_DISPATCH_TABLE, 4)
TEST_FIELD_SIZE (RPC_DISPATCH_TABLE, DispatchTableCount, 4)
......@@ -317,7 +1156,7 @@ static void test_pack_RPC_DISPATCH_TABLE(void)
static void test_pack_RPC_MESSAGE(void)
{
/* RPC_MESSAGE (pack 4) */
/* RPC_MESSAGE */
TEST_TYPE_SIZE (RPC_MESSAGE, 44)
TEST_TYPE_ALIGN (RPC_MESSAGE, 4)
TEST_FIELD_SIZE (RPC_MESSAGE, Handle, 4)
......@@ -357,7 +1196,7 @@ static void test_pack_RPC_MESSAGE(void)
static void test_pack_RPC_PROTSEQ_ENDPOINT(void)
{
/* RPC_PROTSEQ_ENDPOINT (pack 4) */
/* RPC_PROTSEQ_ENDPOINT */
TEST_TYPE_SIZE (RPC_PROTSEQ_ENDPOINT, 8)
TEST_TYPE_ALIGN (RPC_PROTSEQ_ENDPOINT, 4)
TEST_FIELD_SIZE (RPC_PROTSEQ_ENDPOINT, RpcProtocolSequence, 4)
......@@ -370,7 +1209,7 @@ static void test_pack_RPC_PROTSEQ_ENDPOINT(void)
static void test_pack_RPC_SERVER_INTERFACE(void)
{
/* RPC_SERVER_INTERFACE (pack 4) */
/* RPC_SERVER_INTERFACE */
TEST_TYPE_SIZE (RPC_SERVER_INTERFACE, 68)
TEST_TYPE_ALIGN (RPC_SERVER_INTERFACE, 4)
TEST_FIELD_SIZE (RPC_SERVER_INTERFACE, Length, 4)
......@@ -404,7 +1243,7 @@ static void test_pack_RPC_SERVER_INTERFACE(void)
static void test_pack_RPC_SYNTAX_IDENTIFIER(void)
{
/* RPC_SYNTAX_IDENTIFIER (pack 4) */
/* RPC_SYNTAX_IDENTIFIER */
TEST_TYPE_SIZE (RPC_SYNTAX_IDENTIFIER, 20)
TEST_TYPE_ALIGN (RPC_SYNTAX_IDENTIFIER, 4)
TEST_FIELD_SIZE (RPC_SYNTAX_IDENTIFIER, SyntaxGUID, 16)
......@@ -417,7 +1256,7 @@ static void test_pack_RPC_SYNTAX_IDENTIFIER(void)
static void test_pack_RPC_VERSION(void)
{
/* RPC_VERSION (pack 4) */
/* RPC_VERSION */
TEST_TYPE_SIZE (RPC_VERSION, 4)
TEST_TYPE_ALIGN (RPC_VERSION, 2)
TEST_FIELD_SIZE (RPC_VERSION, MajorVersion, 2)
......@@ -430,7 +1269,7 @@ static void test_pack_RPC_VERSION(void)
static void test_pack_ARRAY_INFO(void)
{
/* ARRAY_INFO (pack 4) */
/* ARRAY_INFO */
TEST_TYPE_SIZE (ARRAY_INFO, 24)
TEST_TYPE_ALIGN (ARRAY_INFO, 4)
TEST_FIELD_SIZE (ARRAY_INFO, Dimension, 4)
......@@ -455,7 +1294,7 @@ static void test_pack_ARRAY_INFO(void)
static void test_pack_COMM_FAULT_OFFSETS(void)
{
/* COMM_FAULT_OFFSETS (pack 4) */
/* COMM_FAULT_OFFSETS */
TEST_TYPE_SIZE (COMM_FAULT_OFFSETS, 4)
TEST_TYPE_ALIGN (COMM_FAULT_OFFSETS, 2)
TEST_FIELD_SIZE (COMM_FAULT_OFFSETS, CommOffset, 2)
......@@ -468,7 +1307,7 @@ static void test_pack_COMM_FAULT_OFFSETS(void)
static void test_pack_CS_STUB_INFO(void)
{
/* CS_STUB_INFO (pack 4) */
/* CS_STUB_INFO */
TEST_TYPE_SIZE (CS_STUB_INFO, 12)
TEST_TYPE_ALIGN (CS_STUB_INFO, 4)
TEST_FIELD_SIZE (CS_STUB_INFO, WireCodeset, 4)
......@@ -489,7 +1328,7 @@ static void test_pack_EXPR_EVAL(void)
static void test_pack_FULL_PTR_TO_REFID_ELEMENT(void)
{
/* FULL_PTR_TO_REFID_ELEMENT (pack 4) */
/* FULL_PTR_TO_REFID_ELEMENT */
TEST_TYPE_SIZE (FULL_PTR_TO_REFID_ELEMENT, 16)
TEST_TYPE_ALIGN (FULL_PTR_TO_REFID_ELEMENT, 4)
TEST_FIELD_SIZE (FULL_PTR_TO_REFID_ELEMENT, Next, 4)
......@@ -508,12 +1347,12 @@ static void test_pack_FULL_PTR_TO_REFID_ELEMENT(void)
static void test_pack_FULL_PTR_XLAT_TABLES(void)
{
/* FULL_PTR_XLAT_TABLES (pack 4) */
/* FULL_PTR_XLAT_TABLES */
}
static void test_pack_GENERIC_BINDING_INFO(void)
{
/* GENERIC_BINDING_INFO (pack 4) */
/* GENERIC_BINDING_INFO */
TEST_FIELD_SIZE (GENERIC_BINDING_INFO, pObj, 4)
TEST_FIELD_ALIGN (GENERIC_BINDING_INFO, pObj, 4)
TEST_FIELD_OFFSET(GENERIC_BINDING_INFO, pObj, 0)
......@@ -524,17 +1363,17 @@ static void test_pack_GENERIC_BINDING_INFO(void)
static void test_pack_GENERIC_BINDING_ROUTINE_PAIR(void)
{
/* GENERIC_BINDING_ROUTINE_PAIR (pack 4) */
/* GENERIC_BINDING_ROUTINE_PAIR */
}
static void test_pack_MALLOC_FREE_STRUCT(void)
{
/* MALLOC_FREE_STRUCT (pack 4) */
/* MALLOC_FREE_STRUCT */
}
static void test_pack_MIDL_FORMAT_STRING(void)
{
/* MIDL_FORMAT_STRING (pack 4) */
/* MIDL_FORMAT_STRING */
TEST_FIELD_SIZE (MIDL_FORMAT_STRING, Pad, 2)
TEST_FIELD_ALIGN (MIDL_FORMAT_STRING, Pad, 2)
TEST_FIELD_OFFSET(MIDL_FORMAT_STRING, Pad, 0)
......@@ -542,7 +1381,7 @@ static void test_pack_MIDL_FORMAT_STRING(void)
static void test_pack_MIDL_SERVER_INFO(void)
{
/* MIDL_SERVER_INFO (pack 4) */
/* MIDL_SERVER_INFO */
TEST_TYPE_SIZE (MIDL_SERVER_INFO, 32)
TEST_TYPE_ALIGN (MIDL_SERVER_INFO, 4)
TEST_FIELD_SIZE (MIDL_SERVER_INFO, pStubDesc, 4)
......@@ -573,7 +1412,7 @@ static void test_pack_MIDL_SERVER_INFO(void)
static void test_pack_MIDL_STUB_DESC(void)
{
/* MIDL_STUB_DESC (pack 4) */
/* MIDL_STUB_DESC */
TEST_FIELD_SIZE (MIDL_STUB_DESC, RpcInterfaceInformation, 4)
TEST_FIELD_ALIGN (MIDL_STUB_DESC, RpcInterfaceInformation, 4)
TEST_FIELD_OFFSET(MIDL_STUB_DESC, RpcInterfaceInformation, 0)
......@@ -581,7 +1420,7 @@ static void test_pack_MIDL_STUB_DESC(void)
static void test_pack_MIDL_STUB_MESSAGE(void)
{
/* MIDL_STUB_MESSAGE (pack 4) */
/* MIDL_STUB_MESSAGE */
TEST_FIELD_SIZE (MIDL_STUB_MESSAGE, RpcMsg, 4)
TEST_FIELD_ALIGN (MIDL_STUB_MESSAGE, RpcMsg, 4)
TEST_FIELD_OFFSET(MIDL_STUB_MESSAGE, RpcMsg, 0)
......@@ -640,7 +1479,7 @@ static void test_pack_MIDL_STUB_MESSAGE(void)
static void test_pack_MIDL_STUBLESS_PROXY_INFO(void)
{
/* MIDL_STUBLESS_PROXY_INFO (pack 4) */
/* MIDL_STUBLESS_PROXY_INFO */
TEST_TYPE_SIZE (MIDL_STUBLESS_PROXY_INFO, 24)
TEST_TYPE_ALIGN (MIDL_STUBLESS_PROXY_INFO, 4)
TEST_FIELD_SIZE (MIDL_STUBLESS_PROXY_INFO, pStubDesc, 4)
......@@ -665,7 +1504,7 @@ static void test_pack_MIDL_STUBLESS_PROXY_INFO(void)
static void test_pack_MIDL_SYNTAX_INFO(void)
{
/* MIDL_SYNTAX_INFO (pack 4) */
/* MIDL_SYNTAX_INFO */
TEST_TYPE_SIZE (MIDL_SYNTAX_INFO, 48)
TEST_TYPE_ALIGN (MIDL_SYNTAX_INFO, 4)
TEST_FIELD_SIZE (MIDL_SYNTAX_INFO, TransferSyntax, 20)
......@@ -725,7 +1564,7 @@ static void test_pack_NDR_SCONTEXT(void)
static void test_pack_NDR_USER_MARSHAL_INFO(void)
{
/* NDR_USER_MARSHAL_INFO (pack 4) */
/* NDR_USER_MARSHAL_INFO */
TEST_FIELD_SIZE (NDR_USER_MARSHAL_INFO, InformationLevel, 4)
TEST_FIELD_ALIGN (NDR_USER_MARSHAL_INFO, InformationLevel, 4)
TEST_FIELD_OFFSET(NDR_USER_MARSHAL_INFO, InformationLevel, 0)
......@@ -733,7 +1572,7 @@ static void test_pack_NDR_USER_MARSHAL_INFO(void)
static void test_pack_NDR_USER_MARSHAL_INFO_LEVEL1(void)
{
/* NDR_USER_MARSHAL_INFO_LEVEL1 (pack 4) */
/* NDR_USER_MARSHAL_INFO_LEVEL1 */
TEST_FIELD_SIZE (NDR_USER_MARSHAL_INFO_LEVEL1, Buffer, 4)
TEST_FIELD_ALIGN (NDR_USER_MARSHAL_INFO_LEVEL1, Buffer, 4)
TEST_FIELD_OFFSET(NDR_USER_MARSHAL_INFO_LEVEL1, Buffer, 0)
......@@ -861,7 +1700,7 @@ static void test_pack_PXMIT_ROUTINE_QUINTUPLE(void)
static void test_pack_SCONTEXT_QUEUE(void)
{
/* SCONTEXT_QUEUE (pack 4) */
/* SCONTEXT_QUEUE */
TEST_TYPE_SIZE (SCONTEXT_QUEUE, 8)
TEST_TYPE_ALIGN (SCONTEXT_QUEUE, 4)
TEST_FIELD_SIZE (SCONTEXT_QUEUE, NumberOfObjects, 4)
......@@ -884,7 +1723,7 @@ static void test_pack_STUB_THUNK(void)
static void test_pack_USER_MARSHAL_CB(void)
{
/* USER_MARSHAL_CB (pack 4) */
/* USER_MARSHAL_CB */
TEST_FIELD_SIZE (USER_MARSHAL_CB, Flags, 4)
TEST_FIELD_ALIGN (USER_MARSHAL_CB, Flags, 4)
TEST_FIELD_OFFSET(USER_MARSHAL_CB, Flags, 0)
......@@ -911,7 +1750,7 @@ static void test_pack_USER_MARSHAL_MARSHALLING_ROUTINE(void)
static void test_pack_USER_MARSHAL_ROUTINE_QUADRUPLE(void)
{
/* USER_MARSHAL_ROUTINE_QUADRUPLE (pack 4) */
/* USER_MARSHAL_ROUTINE_QUADRUPLE */
}
static void test_pack_USER_MARSHAL_SIZING_ROUTINE(void)
......@@ -931,7 +1770,7 @@ static void test_pack_XMIT_HELPER_ROUTINE(void)
static void test_pack_XMIT_ROUTINE_QUINTUPLE(void)
{
/* XMIT_ROUTINE_QUINTUPLE (pack 4) */
/* XMIT_ROUTINE_QUINTUPLE */
}
static void test_pack_PRPC_STUB_FUNCTION(void)
......@@ -939,6 +1778,8 @@ static void test_pack_PRPC_STUB_FUNCTION(void)
/* PRPC_STUB_FUNCTION */
}
#endif /* _WIN64 */
static void test_pack(void)
{
test_pack_ARRAY_INFO();
......@@ -1020,9 +1861,5 @@ static void test_pack(void)
START_TEST(generated)
{
#ifdef _WIN64
ok(0, "The type size / alignment tests don't support Win64 yet\n");
#else
test_pack();
#endif
}
......@@ -58,45 +58,1815 @@
* Test helper macros
*/
#define TEST_TYPE_SIZE(type, size) C_ASSERT(sizeof(type) == size);
#ifdef TYPE_ALIGNMENT
# define TEST_TYPE_ALIGN(type, align) C_ASSERT(TYPE_ALIGNMENT(type) == align);
#else
# define TEST_TYPE_ALIGN(type, align)
#endif
#ifdef _TYPE_ALIGNMENT
# define TEST_TARGET_ALIGN(type, align) C_ASSERT(_TYPE_ALIGNMENT(*(type)0) == align);
# define TEST_FIELD_ALIGN(type, field, align) C_ASSERT(_TYPE_ALIGNMENT(((type*)0)->field) == align);
#else
# define TEST_TARGET_ALIGN(type, align)
# define TEST_FIELD_ALIGN(type, field, align)
#endif
#define TEST_FIELD_OFFSET(type, field, offset) C_ASSERT(FIELD_OFFSET(type, field) == offset);
#define TEST_TARGET_SIZE(type, size) TEST_TYPE_SIZE(*(type)0, size)
#define TEST_FIELD_SIZE(type, field, size) TEST_TYPE_SIZE((((type*)0)->field), size)
#define TEST_TYPE_SIGNED(type) C_ASSERT((type) -1 < 0);
#define TEST_TYPE_UNSIGNED(type) C_ASSERT((type) -1 > 0);
#ifdef _WIN64
# define TEST_TYPE_SIZE(type, size)
# define TEST_TYPE_ALIGN(type, align)
# define TEST_TARGET_ALIGN(type, align)
# define TEST_FIELD_ALIGN(type, field, align)
# define TEST_FIELD_OFFSET(type, field, offset)
static void test_pack_BLOB(void)
{
/* BLOB */
TEST_TYPE_SIZE (BLOB, 16)
TEST_TYPE_ALIGN (BLOB, 8)
TEST_FIELD_SIZE (BLOB, cbSize, 4)
TEST_FIELD_ALIGN (BLOB, cbSize, 4)
TEST_FIELD_OFFSET(BLOB, cbSize, 0)
TEST_FIELD_SIZE (BLOB, pBlobData, 8)
TEST_FIELD_ALIGN (BLOB, pBlobData, 8)
TEST_FIELD_OFFSET(BLOB, pBlobData, 8)
}
static void test_pack_BSTR(void)
{
/* BSTR */
TEST_TYPE_SIZE (BSTR, 8)
TEST_TYPE_ALIGN (BSTR, 8)
TEST_TARGET_SIZE (BSTR, 2)
TEST_TARGET_ALIGN(BSTR, 2)
}
static void test_pack_BSTRBLOB(void)
{
/* BSTRBLOB */
TEST_TYPE_SIZE (BSTRBLOB, 16)
TEST_TYPE_ALIGN (BSTRBLOB, 8)
TEST_FIELD_SIZE (BSTRBLOB, cbSize, 4)
TEST_FIELD_ALIGN (BSTRBLOB, cbSize, 4)
TEST_FIELD_OFFSET(BSTRBLOB, cbSize, 0)
TEST_FIELD_SIZE (BSTRBLOB, pData, 8)
TEST_FIELD_ALIGN (BSTRBLOB, pData, 8)
TEST_FIELD_OFFSET(BSTRBLOB, pData, 8)
}
static void test_pack_BYTE_BLOB(void)
{
/* BYTE_BLOB */
TEST_TYPE_SIZE (BYTE_BLOB, 8)
TEST_TYPE_ALIGN (BYTE_BLOB, 4)
TEST_FIELD_SIZE (BYTE_BLOB, clSize, 4)
TEST_FIELD_ALIGN (BYTE_BLOB, clSize, 4)
TEST_FIELD_OFFSET(BYTE_BLOB, clSize, 0)
TEST_FIELD_SIZE (BYTE_BLOB, abData, 1)
TEST_FIELD_ALIGN (BYTE_BLOB, abData, 1)
TEST_FIELD_OFFSET(BYTE_BLOB, abData, 4)
}
static void test_pack_BYTE_SIZEDARR(void)
{
/* BYTE_SIZEDARR */
TEST_TYPE_SIZE (BYTE_SIZEDARR, 16)
TEST_TYPE_ALIGN (BYTE_SIZEDARR, 8)
TEST_FIELD_SIZE (BYTE_SIZEDARR, clSize, 4)
TEST_FIELD_ALIGN (BYTE_SIZEDARR, clSize, 4)
TEST_FIELD_OFFSET(BYTE_SIZEDARR, clSize, 0)
TEST_FIELD_SIZE (BYTE_SIZEDARR, pData, 8)
TEST_FIELD_ALIGN (BYTE_SIZEDARR, pData, 8)
TEST_FIELD_OFFSET(BYTE_SIZEDARR, pData, 8)
}
static void test_pack_CLIPDATA(void)
{
/* CLIPDATA */
TEST_TYPE_SIZE (CLIPDATA, 16)
TEST_TYPE_ALIGN (CLIPDATA, 8)
TEST_FIELD_SIZE (CLIPDATA, cbSize, 4)
TEST_FIELD_ALIGN (CLIPDATA, cbSize, 4)
TEST_FIELD_OFFSET(CLIPDATA, cbSize, 0)
TEST_FIELD_SIZE (CLIPDATA, ulClipFmt, 4)
TEST_FIELD_ALIGN (CLIPDATA, ulClipFmt, 4)
TEST_FIELD_OFFSET(CLIPDATA, ulClipFmt, 4)
TEST_FIELD_SIZE (CLIPDATA, pClipData, 8)
TEST_FIELD_ALIGN (CLIPDATA, pClipData, 8)
TEST_FIELD_OFFSET(CLIPDATA, pClipData, 8)
}
static void test_pack_CLIPFORMAT(void)
{
/* CLIPFORMAT */
TEST_TYPE_SIZE (CLIPFORMAT, 2)
TEST_TYPE_ALIGN (CLIPFORMAT, 2)
TEST_TYPE_UNSIGNED(CLIPFORMAT)
}
static void test_pack_COAUTHIDENTITY(void)
{
/* COAUTHIDENTITY */
TEST_TYPE_SIZE (COAUTHIDENTITY, 48)
TEST_TYPE_ALIGN (COAUTHIDENTITY, 8)
TEST_FIELD_SIZE (COAUTHIDENTITY, User, 8)
TEST_FIELD_ALIGN (COAUTHIDENTITY, User, 8)
TEST_FIELD_OFFSET(COAUTHIDENTITY, User, 0)
TEST_FIELD_SIZE (COAUTHIDENTITY, UserLength, 4)
TEST_FIELD_ALIGN (COAUTHIDENTITY, UserLength, 4)
TEST_FIELD_OFFSET(COAUTHIDENTITY, UserLength, 8)
TEST_FIELD_SIZE (COAUTHIDENTITY, Domain, 8)
TEST_FIELD_ALIGN (COAUTHIDENTITY, Domain, 8)
TEST_FIELD_OFFSET(COAUTHIDENTITY, Domain, 16)
TEST_FIELD_SIZE (COAUTHIDENTITY, DomainLength, 4)
TEST_FIELD_ALIGN (COAUTHIDENTITY, DomainLength, 4)
TEST_FIELD_OFFSET(COAUTHIDENTITY, DomainLength, 24)
TEST_FIELD_SIZE (COAUTHIDENTITY, Password, 8)
TEST_FIELD_ALIGN (COAUTHIDENTITY, Password, 8)
TEST_FIELD_OFFSET(COAUTHIDENTITY, Password, 32)
TEST_FIELD_SIZE (COAUTHIDENTITY, PasswordLength, 4)
TEST_FIELD_ALIGN (COAUTHIDENTITY, PasswordLength, 4)
TEST_FIELD_OFFSET(COAUTHIDENTITY, PasswordLength, 40)
TEST_FIELD_SIZE (COAUTHIDENTITY, Flags, 4)
TEST_FIELD_ALIGN (COAUTHIDENTITY, Flags, 4)
TEST_FIELD_OFFSET(COAUTHIDENTITY, Flags, 44)
}
static void test_pack_COAUTHINFO(void)
{
/* COAUTHINFO */
TEST_TYPE_SIZE (COAUTHINFO, 40)
TEST_TYPE_ALIGN (COAUTHINFO, 8)
TEST_FIELD_SIZE (COAUTHINFO, dwAuthnSvc, 4)
TEST_FIELD_ALIGN (COAUTHINFO, dwAuthnSvc, 4)
TEST_FIELD_OFFSET(COAUTHINFO, dwAuthnSvc, 0)
TEST_FIELD_SIZE (COAUTHINFO, dwAuthzSvc, 4)
TEST_FIELD_ALIGN (COAUTHINFO, dwAuthzSvc, 4)
TEST_FIELD_OFFSET(COAUTHINFO, dwAuthzSvc, 4)
TEST_FIELD_SIZE (COAUTHINFO, pwszServerPrincName, 8)
TEST_FIELD_ALIGN (COAUTHINFO, pwszServerPrincName, 8)
TEST_FIELD_OFFSET(COAUTHINFO, pwszServerPrincName, 8)
TEST_FIELD_SIZE (COAUTHINFO, dwAuthnLevel, 4)
TEST_FIELD_ALIGN (COAUTHINFO, dwAuthnLevel, 4)
TEST_FIELD_OFFSET(COAUTHINFO, dwAuthnLevel, 16)
TEST_FIELD_SIZE (COAUTHINFO, dwImpersonationLevel, 4)
TEST_FIELD_ALIGN (COAUTHINFO, dwImpersonationLevel, 4)
TEST_FIELD_OFFSET(COAUTHINFO, dwImpersonationLevel, 20)
TEST_FIELD_SIZE (COAUTHINFO, pAuthIdentityData, 8)
TEST_FIELD_ALIGN (COAUTHINFO, pAuthIdentityData, 8)
TEST_FIELD_OFFSET(COAUTHINFO, pAuthIdentityData, 24)
TEST_FIELD_SIZE (COAUTHINFO, dwCapabilities, 4)
TEST_FIELD_ALIGN (COAUTHINFO, dwCapabilities, 4)
TEST_FIELD_OFFSET(COAUTHINFO, dwCapabilities, 32)
}
static void test_pack_DATE(void)
{
/* DATE */
TEST_TYPE_SIZE (DATE, 8)
TEST_TYPE_ALIGN (DATE, 8)
}
static void test_pack_DOUBLE(void)
{
/* DOUBLE */
TEST_TYPE_SIZE (DOUBLE, 8)
TEST_TYPE_ALIGN (DOUBLE, 8)
}
static void test_pack_DWORD_SIZEDARR(void)
{
/* DWORD_SIZEDARR */
TEST_TYPE_SIZE (DWORD_SIZEDARR, 16)
TEST_TYPE_ALIGN (DWORD_SIZEDARR, 8)
TEST_FIELD_SIZE (DWORD_SIZEDARR, clSize, 4)
TEST_FIELD_ALIGN (DWORD_SIZEDARR, clSize, 4)
TEST_FIELD_OFFSET(DWORD_SIZEDARR, clSize, 0)
TEST_FIELD_SIZE (DWORD_SIZEDARR, pData, 8)
TEST_FIELD_ALIGN (DWORD_SIZEDARR, pData, 8)
TEST_FIELD_OFFSET(DWORD_SIZEDARR, pData, 8)
}
static void test_pack_FLAGGED_BYTE_BLOB(void)
{
/* FLAGGED_BYTE_BLOB */
TEST_TYPE_SIZE (FLAGGED_BYTE_BLOB, 12)
TEST_TYPE_ALIGN (FLAGGED_BYTE_BLOB, 4)
TEST_FIELD_SIZE (FLAGGED_BYTE_BLOB, fFlags, 4)
TEST_FIELD_ALIGN (FLAGGED_BYTE_BLOB, fFlags, 4)
TEST_FIELD_OFFSET(FLAGGED_BYTE_BLOB, fFlags, 0)
TEST_FIELD_SIZE (FLAGGED_BYTE_BLOB, clSize, 4)
TEST_FIELD_ALIGN (FLAGGED_BYTE_BLOB, clSize, 4)
TEST_FIELD_OFFSET(FLAGGED_BYTE_BLOB, clSize, 4)
TEST_FIELD_SIZE (FLAGGED_BYTE_BLOB, abData, 1)
TEST_FIELD_ALIGN (FLAGGED_BYTE_BLOB, abData, 1)
TEST_FIELD_OFFSET(FLAGGED_BYTE_BLOB, abData, 8)
}
static void test_pack_FLAGGED_WORD_BLOB(void)
{
/* FLAGGED_WORD_BLOB */
TEST_TYPE_SIZE (FLAGGED_WORD_BLOB, 12)
TEST_TYPE_ALIGN (FLAGGED_WORD_BLOB, 4)
TEST_FIELD_SIZE (FLAGGED_WORD_BLOB, fFlags, 4)
TEST_FIELD_ALIGN (FLAGGED_WORD_BLOB, fFlags, 4)
TEST_FIELD_OFFSET(FLAGGED_WORD_BLOB, fFlags, 0)
TEST_FIELD_SIZE (FLAGGED_WORD_BLOB, clSize, 4)
TEST_FIELD_ALIGN (FLAGGED_WORD_BLOB, clSize, 4)
TEST_FIELD_OFFSET(FLAGGED_WORD_BLOB, clSize, 4)
TEST_FIELD_SIZE (FLAGGED_WORD_BLOB, asData, 2)
TEST_FIELD_ALIGN (FLAGGED_WORD_BLOB, asData, 2)
TEST_FIELD_OFFSET(FLAGGED_WORD_BLOB, asData, 8)
}
static void test_pack_HMETAFILEPICT(void)
{
/* HMETAFILEPICT */
TEST_TYPE_SIZE (HMETAFILEPICT, 8)
TEST_TYPE_ALIGN (HMETAFILEPICT, 8)
}
static void test_pack_HYPER_SIZEDARR(void)
{
/* HYPER_SIZEDARR */
TEST_TYPE_SIZE (HYPER_SIZEDARR, 16)
TEST_TYPE_ALIGN (HYPER_SIZEDARR, 8)
TEST_FIELD_SIZE (HYPER_SIZEDARR, clSize, 4)
TEST_FIELD_ALIGN (HYPER_SIZEDARR, clSize, 4)
TEST_FIELD_OFFSET(HYPER_SIZEDARR, clSize, 0)
TEST_FIELD_SIZE (HYPER_SIZEDARR, pData, 8)
TEST_FIELD_ALIGN (HYPER_SIZEDARR, pData, 8)
TEST_FIELD_OFFSET(HYPER_SIZEDARR, pData, 8)
}
static void test_pack_LPBLOB(void)
{
/* LPBLOB */
TEST_TYPE_SIZE (LPBLOB, 8)
TEST_TYPE_ALIGN (LPBLOB, 8)
}
static void test_pack_LPBSTR(void)
{
/* LPBSTR */
TEST_TYPE_SIZE (LPBSTR, 8)
TEST_TYPE_ALIGN (LPBSTR, 8)
TEST_TARGET_SIZE (LPBSTR, 8)
TEST_TARGET_ALIGN(LPBSTR, 8)
}
static void test_pack_LPBSTRBLOB(void)
{
/* LPBSTRBLOB */
TEST_TYPE_SIZE (LPBSTRBLOB, 8)
TEST_TYPE_ALIGN (LPBSTRBLOB, 8)
}
static void test_pack_LPCOLESTR(void)
{
/* LPCOLESTR */
TEST_TYPE_SIZE (LPCOLESTR, 8)
TEST_TYPE_ALIGN (LPCOLESTR, 8)
TEST_TARGET_SIZE (LPCOLESTR, 2)
TEST_TARGET_ALIGN(LPCOLESTR, 2)
}
static void test_pack_LPCY(void)
{
/* LPCY */
TEST_TYPE_SIZE (LPCY, 8)
TEST_TYPE_ALIGN (LPCY, 8)
}
static void test_pack_LPDECIMAL(void)
{
/* LPDECIMAL */
TEST_TYPE_SIZE (LPDECIMAL, 8)
TEST_TYPE_ALIGN (LPDECIMAL, 8)
}
static void test_pack_LPOLESTR(void)
{
/* LPOLESTR */
TEST_TYPE_SIZE (LPOLESTR, 8)
TEST_TYPE_ALIGN (LPOLESTR, 8)
TEST_TARGET_SIZE (LPOLESTR, 2)
TEST_TARGET_ALIGN(LPOLESTR, 2)
}
static void test_pack_OLECHAR(void)
{
/* OLECHAR */
TEST_TYPE_SIZE (OLECHAR, 2)
TEST_TYPE_ALIGN (OLECHAR, 2)
}
static void test_pack_PROPID(void)
{
/* PROPID */
TEST_TYPE_SIZE (PROPID, 4)
TEST_TYPE_ALIGN (PROPID, 4)
}
static void test_pack_RemHBITMAP(void)
{
/* RemHBITMAP */
TEST_TYPE_SIZE (RemHBITMAP, 8)
TEST_TYPE_ALIGN (RemHBITMAP, 4)
TEST_FIELD_SIZE (RemHBITMAP, cbData, 4)
TEST_FIELD_ALIGN (RemHBITMAP, cbData, 4)
TEST_FIELD_OFFSET(RemHBITMAP, cbData, 0)
TEST_FIELD_SIZE (RemHBITMAP, data, 1)
TEST_FIELD_ALIGN (RemHBITMAP, data, 1)
TEST_FIELD_OFFSET(RemHBITMAP, data, 4)
}
static void test_pack_RemHENHMETAFILE(void)
{
/* RemHENHMETAFILE */
TEST_TYPE_SIZE (RemHENHMETAFILE, 8)
TEST_TYPE_ALIGN (RemHENHMETAFILE, 4)
TEST_FIELD_SIZE (RemHENHMETAFILE, cbData, 4)
TEST_FIELD_ALIGN (RemHENHMETAFILE, cbData, 4)
TEST_FIELD_OFFSET(RemHENHMETAFILE, cbData, 0)
TEST_FIELD_SIZE (RemHENHMETAFILE, data, 1)
TEST_FIELD_ALIGN (RemHENHMETAFILE, data, 1)
TEST_FIELD_OFFSET(RemHENHMETAFILE, data, 4)
}
static void test_pack_RemHGLOBAL(void)
{
/* RemHGLOBAL */
TEST_TYPE_SIZE (RemHGLOBAL, 12)
TEST_TYPE_ALIGN (RemHGLOBAL, 4)
TEST_FIELD_SIZE (RemHGLOBAL, fNullHGlobal, 4)
TEST_FIELD_ALIGN (RemHGLOBAL, fNullHGlobal, 4)
TEST_FIELD_OFFSET(RemHGLOBAL, fNullHGlobal, 0)
TEST_FIELD_SIZE (RemHGLOBAL, cbData, 4)
TEST_FIELD_ALIGN (RemHGLOBAL, cbData, 4)
TEST_FIELD_OFFSET(RemHGLOBAL, cbData, 4)
TEST_FIELD_SIZE (RemHGLOBAL, data, 1)
TEST_FIELD_ALIGN (RemHGLOBAL, data, 1)
TEST_FIELD_OFFSET(RemHGLOBAL, data, 8)
}
static void test_pack_RemHMETAFILEPICT(void)
{
/* RemHMETAFILEPICT */
TEST_TYPE_SIZE (RemHMETAFILEPICT, 20)
TEST_TYPE_ALIGN (RemHMETAFILEPICT, 4)
TEST_FIELD_SIZE (RemHMETAFILEPICT, mm, 4)
TEST_FIELD_ALIGN (RemHMETAFILEPICT, mm, 4)
TEST_FIELD_OFFSET(RemHMETAFILEPICT, mm, 0)
TEST_FIELD_SIZE (RemHMETAFILEPICT, xExt, 4)
TEST_FIELD_ALIGN (RemHMETAFILEPICT, xExt, 4)
TEST_FIELD_OFFSET(RemHMETAFILEPICT, xExt, 4)
TEST_FIELD_SIZE (RemHMETAFILEPICT, yExt, 4)
TEST_FIELD_ALIGN (RemHMETAFILEPICT, yExt, 4)
TEST_FIELD_OFFSET(RemHMETAFILEPICT, yExt, 8)
TEST_FIELD_SIZE (RemHMETAFILEPICT, cbData, 4)
TEST_FIELD_ALIGN (RemHMETAFILEPICT, cbData, 4)
TEST_FIELD_OFFSET(RemHMETAFILEPICT, cbData, 12)
TEST_FIELD_SIZE (RemHMETAFILEPICT, data, 1)
TEST_FIELD_ALIGN (RemHMETAFILEPICT, data, 1)
TEST_FIELD_OFFSET(RemHMETAFILEPICT, data, 16)
}
static void test_pack_RemHPALETTE(void)
{
/* RemHPALETTE */
TEST_TYPE_SIZE (RemHPALETTE, 8)
TEST_TYPE_ALIGN (RemHPALETTE, 4)
TEST_FIELD_SIZE (RemHPALETTE, cbData, 4)
TEST_FIELD_ALIGN (RemHPALETTE, cbData, 4)
TEST_FIELD_OFFSET(RemHPALETTE, cbData, 0)
TEST_FIELD_SIZE (RemHPALETTE, data, 1)
TEST_FIELD_ALIGN (RemHPALETTE, data, 1)
TEST_FIELD_OFFSET(RemHPALETTE, data, 4)
}
static void test_pack_SCODE(void)
{
/* SCODE */
TEST_TYPE_SIZE (SCODE, 4)
TEST_TYPE_ALIGN (SCODE, 4)
}
static void test_pack_UP_BYTE_BLOB(void)
{
/* UP_BYTE_BLOB */
TEST_TYPE_SIZE (UP_BYTE_BLOB, 8)
TEST_TYPE_ALIGN (UP_BYTE_BLOB, 8)
TEST_TARGET_SIZE (UP_BYTE_BLOB, 8)
TEST_TARGET_ALIGN(UP_BYTE_BLOB, 4)
}
static void test_pack_UP_FLAGGED_BYTE_BLOB(void)
{
/* UP_FLAGGED_BYTE_BLOB */
TEST_TYPE_SIZE (UP_FLAGGED_BYTE_BLOB, 8)
TEST_TYPE_ALIGN (UP_FLAGGED_BYTE_BLOB, 8)
TEST_TARGET_SIZE (UP_FLAGGED_BYTE_BLOB, 12)
TEST_TARGET_ALIGN(UP_FLAGGED_BYTE_BLOB, 4)
}
static void test_pack_UP_FLAGGED_WORD_BLOB(void)
{
/* UP_FLAGGED_WORD_BLOB */
TEST_TYPE_SIZE (UP_FLAGGED_WORD_BLOB, 8)
TEST_TYPE_ALIGN (UP_FLAGGED_WORD_BLOB, 8)
TEST_TARGET_SIZE (UP_FLAGGED_WORD_BLOB, 12)
TEST_TARGET_ALIGN(UP_FLAGGED_WORD_BLOB, 4)
}
static void test_pack_VARIANT_BOOL(void)
{
/* VARIANT_BOOL */
TEST_TYPE_SIZE (VARIANT_BOOL, 2)
TEST_TYPE_ALIGN (VARIANT_BOOL, 2)
TEST_TYPE_SIGNED(VARIANT_BOOL)
}
static void test_pack_VARTYPE(void)
{
/* VARTYPE */
TEST_TYPE_SIZE (VARTYPE, 2)
TEST_TYPE_ALIGN (VARTYPE, 2)
TEST_TYPE_UNSIGNED(VARTYPE)
}
static void test_pack_WORD_SIZEDARR(void)
{
/* WORD_SIZEDARR */
TEST_TYPE_SIZE (WORD_SIZEDARR, 16)
TEST_TYPE_ALIGN (WORD_SIZEDARR, 8)
TEST_FIELD_SIZE (WORD_SIZEDARR, clSize, 4)
TEST_FIELD_ALIGN (WORD_SIZEDARR, clSize, 4)
TEST_FIELD_OFFSET(WORD_SIZEDARR, clSize, 0)
TEST_FIELD_SIZE (WORD_SIZEDARR, pData, 8)
TEST_FIELD_ALIGN (WORD_SIZEDARR, pData, 8)
TEST_FIELD_OFFSET(WORD_SIZEDARR, pData, 8)
}
static void test_pack_remoteMETAFILEPICT(void)
{
/* remoteMETAFILEPICT */
TEST_TYPE_SIZE (remoteMETAFILEPICT, 24)
TEST_TYPE_ALIGN (remoteMETAFILEPICT, 8)
TEST_FIELD_SIZE (remoteMETAFILEPICT, mm, 4)
TEST_FIELD_ALIGN (remoteMETAFILEPICT, mm, 4)
TEST_FIELD_OFFSET(remoteMETAFILEPICT, mm, 0)
TEST_FIELD_SIZE (remoteMETAFILEPICT, xExt, 4)
TEST_FIELD_ALIGN (remoteMETAFILEPICT, xExt, 4)
TEST_FIELD_OFFSET(remoteMETAFILEPICT, xExt, 4)
TEST_FIELD_SIZE (remoteMETAFILEPICT, yExt, 4)
TEST_FIELD_ALIGN (remoteMETAFILEPICT, yExt, 4)
TEST_FIELD_OFFSET(remoteMETAFILEPICT, yExt, 8)
TEST_FIELD_SIZE (remoteMETAFILEPICT, hMF, 8)
TEST_FIELD_ALIGN (remoteMETAFILEPICT, hMF, 8)
TEST_FIELD_OFFSET(remoteMETAFILEPICT, hMF, 16)
}
static void test_pack_userBITMAP(void)
{
/* userBITMAP */
TEST_TYPE_SIZE (userBITMAP, 28)
TEST_TYPE_ALIGN (userBITMAP, 4)
TEST_FIELD_SIZE (userBITMAP, bmType, 4)
TEST_FIELD_ALIGN (userBITMAP, bmType, 4)
TEST_FIELD_OFFSET(userBITMAP, bmType, 0)
TEST_FIELD_SIZE (userBITMAP, bmWidth, 4)
TEST_FIELD_ALIGN (userBITMAP, bmWidth, 4)
TEST_FIELD_OFFSET(userBITMAP, bmWidth, 4)
TEST_FIELD_SIZE (userBITMAP, bmHeight, 4)
TEST_FIELD_ALIGN (userBITMAP, bmHeight, 4)
TEST_FIELD_OFFSET(userBITMAP, bmHeight, 8)
TEST_FIELD_SIZE (userBITMAP, bmWidthBytes, 4)
TEST_FIELD_ALIGN (userBITMAP, bmWidthBytes, 4)
TEST_FIELD_OFFSET(userBITMAP, bmWidthBytes, 12)
TEST_FIELD_SIZE (userBITMAP, bmPlanes, 2)
TEST_FIELD_ALIGN (userBITMAP, bmPlanes, 2)
TEST_FIELD_OFFSET(userBITMAP, bmPlanes, 16)
TEST_FIELD_SIZE (userBITMAP, bmBitsPixel, 2)
TEST_FIELD_ALIGN (userBITMAP, bmBitsPixel, 2)
TEST_FIELD_OFFSET(userBITMAP, bmBitsPixel, 18)
TEST_FIELD_SIZE (userBITMAP, cbSize, 4)
TEST_FIELD_ALIGN (userBITMAP, cbSize, 4)
TEST_FIELD_OFFSET(userBITMAP, cbSize, 20)
TEST_FIELD_SIZE (userBITMAP, pBuffer, 1)
TEST_FIELD_ALIGN (userBITMAP, pBuffer, 1)
TEST_FIELD_OFFSET(userBITMAP, pBuffer, 24)
}
static void test_pack_userCLIPFORMAT(void)
{
/* userCLIPFORMAT */
TEST_FIELD_SIZE (userCLIPFORMAT, fContext, 4)
TEST_FIELD_ALIGN (userCLIPFORMAT, fContext, 4)
TEST_FIELD_OFFSET(userCLIPFORMAT, fContext, 0)
}
static void test_pack_userHBITMAP(void)
{
/* userHBITMAP */
TEST_FIELD_SIZE (userHBITMAP, fContext, 4)
TEST_FIELD_ALIGN (userHBITMAP, fContext, 4)
TEST_FIELD_OFFSET(userHBITMAP, fContext, 0)
}
static void test_pack_userHENHMETAFILE(void)
{
/* userHENHMETAFILE */
TEST_FIELD_SIZE (userHENHMETAFILE, fContext, 4)
TEST_FIELD_ALIGN (userHENHMETAFILE, fContext, 4)
TEST_FIELD_OFFSET(userHENHMETAFILE, fContext, 0)
}
static void test_pack_userHGLOBAL(void)
{
/* userHGLOBAL */
TEST_FIELD_SIZE (userHGLOBAL, fContext, 4)
TEST_FIELD_ALIGN (userHGLOBAL, fContext, 4)
TEST_FIELD_OFFSET(userHGLOBAL, fContext, 0)
}
static void test_pack_userHMETAFILE(void)
{
/* userHMETAFILE */
TEST_FIELD_SIZE (userHMETAFILE, fContext, 4)
TEST_FIELD_ALIGN (userHMETAFILE, fContext, 4)
TEST_FIELD_OFFSET(userHMETAFILE, fContext, 0)
}
static void test_pack_userHMETAFILEPICT(void)
{
/* userHMETAFILEPICT */
TEST_FIELD_SIZE (userHMETAFILEPICT, fContext, 4)
TEST_FIELD_ALIGN (userHMETAFILEPICT, fContext, 4)
TEST_FIELD_OFFSET(userHMETAFILEPICT, fContext, 0)
}
static void test_pack_userHPALETTE(void)
{
/* userHPALETTE */
TEST_FIELD_SIZE (userHPALETTE, fContext, 4)
TEST_FIELD_ALIGN (userHPALETTE, fContext, 4)
TEST_FIELD_OFFSET(userHPALETTE, fContext, 0)
}
static void test_pack_wireBSTR(void)
{
/* wireBSTR */
TEST_TYPE_SIZE (wireBSTR, 8)
TEST_TYPE_ALIGN (wireBSTR, 8)
TEST_TARGET_SIZE (wireBSTR, 12)
TEST_TARGET_ALIGN(wireBSTR, 4)
}
static void test_pack_wireCLIPFORMAT(void)
{
/* wireCLIPFORMAT */
TEST_TYPE_SIZE (wireCLIPFORMAT, 8)
TEST_TYPE_ALIGN (wireCLIPFORMAT, 8)
}
static void test_pack_wireHBITMAP(void)
{
/* wireHBITMAP */
TEST_TYPE_SIZE (wireHBITMAP, 8)
TEST_TYPE_ALIGN (wireHBITMAP, 8)
}
static void test_pack_wireHENHMETAFILE(void)
{
/* wireHENHMETAFILE */
TEST_TYPE_SIZE (wireHENHMETAFILE, 8)
TEST_TYPE_ALIGN (wireHENHMETAFILE, 8)
}
static void test_pack_wireHGLOBAL(void)
{
/* wireHGLOBAL */
TEST_TYPE_SIZE (wireHGLOBAL, 8)
TEST_TYPE_ALIGN (wireHGLOBAL, 8)
}
static void test_pack_wireHMETAFILE(void)
{
/* wireHMETAFILE */
TEST_TYPE_SIZE (wireHMETAFILE, 8)
TEST_TYPE_ALIGN (wireHMETAFILE, 8)
}
static void test_pack_wireHMETAFILEPICT(void)
{
/* wireHMETAFILEPICT */
TEST_TYPE_SIZE (wireHMETAFILEPICT, 8)
TEST_TYPE_ALIGN (wireHMETAFILEPICT, 8)
}
static void test_pack_wireHPALETTE(void)
{
/* wireHPALETTE */
TEST_TYPE_SIZE (wireHPALETTE, 8)
TEST_TYPE_ALIGN (wireHPALETTE, 8)
}
static void test_pack_CLSID(void)
{
/* CLSID */
TEST_TYPE_SIZE (CLSID, 16)
TEST_TYPE_ALIGN (CLSID, 4)
}
static void test_pack_FMTID(void)
{
/* FMTID */
TEST_TYPE_SIZE (FMTID, 16)
TEST_TYPE_ALIGN (FMTID, 4)
}
static void test_pack_IID(void)
{
/* IID */
TEST_TYPE_SIZE (IID, 16)
TEST_TYPE_ALIGN (IID, 4)
}
static void test_pack_APPBARDATA(void)
{
/* APPBARDATA */
TEST_TYPE_SIZE (APPBARDATA, 48)
TEST_TYPE_ALIGN (APPBARDATA, 8)
TEST_FIELD_SIZE (APPBARDATA, cbSize, 4)
TEST_FIELD_ALIGN (APPBARDATA, cbSize, 4)
TEST_FIELD_OFFSET(APPBARDATA, cbSize, 0)
TEST_FIELD_SIZE (APPBARDATA, hWnd, 8)
TEST_FIELD_ALIGN (APPBARDATA, hWnd, 8)
TEST_FIELD_OFFSET(APPBARDATA, hWnd, 8)
TEST_FIELD_SIZE (APPBARDATA, uCallbackMessage, 4)
TEST_FIELD_ALIGN (APPBARDATA, uCallbackMessage, 4)
TEST_FIELD_OFFSET(APPBARDATA, uCallbackMessage, 16)
TEST_FIELD_SIZE (APPBARDATA, uEdge, 4)
TEST_FIELD_ALIGN (APPBARDATA, uEdge, 4)
TEST_FIELD_OFFSET(APPBARDATA, uEdge, 20)
TEST_FIELD_SIZE (APPBARDATA, rc, 16)
TEST_FIELD_ALIGN (APPBARDATA, rc, 4)
TEST_FIELD_OFFSET(APPBARDATA, rc, 24)
TEST_FIELD_SIZE (APPBARDATA, lParam, 8)
TEST_FIELD_ALIGN (APPBARDATA, lParam, 8)
TEST_FIELD_OFFSET(APPBARDATA, lParam, 40)
}
static void test_pack_DRAGINFOA(void)
{
/* DRAGINFOA */
TEST_TYPE_SIZE (DRAGINFOA, 32)
TEST_TYPE_ALIGN (DRAGINFOA, 8)
TEST_FIELD_SIZE (DRAGINFOA, uSize, 4)
TEST_FIELD_ALIGN (DRAGINFOA, uSize, 4)
TEST_FIELD_OFFSET(DRAGINFOA, uSize, 0)
TEST_FIELD_SIZE (DRAGINFOA, pt, 8)
TEST_FIELD_ALIGN (DRAGINFOA, pt, 4)
TEST_FIELD_OFFSET(DRAGINFOA, pt, 4)
TEST_FIELD_SIZE (DRAGINFOA, fNC, 4)
TEST_FIELD_ALIGN (DRAGINFOA, fNC, 4)
TEST_FIELD_OFFSET(DRAGINFOA, fNC, 12)
TEST_FIELD_SIZE (DRAGINFOA, lpFileList, 8)
TEST_FIELD_ALIGN (DRAGINFOA, lpFileList, 8)
TEST_FIELD_OFFSET(DRAGINFOA, lpFileList, 16)
TEST_FIELD_SIZE (DRAGINFOA, grfKeyState, 4)
TEST_FIELD_ALIGN (DRAGINFOA, grfKeyState, 4)
TEST_FIELD_OFFSET(DRAGINFOA, grfKeyState, 24)
}
static void test_pack_DRAGINFOW(void)
{
/* DRAGINFOW */
TEST_TYPE_SIZE (DRAGINFOW, 32)
TEST_TYPE_ALIGN (DRAGINFOW, 8)
TEST_FIELD_SIZE (DRAGINFOW, uSize, 4)
TEST_FIELD_ALIGN (DRAGINFOW, uSize, 4)
TEST_FIELD_OFFSET(DRAGINFOW, uSize, 0)
TEST_FIELD_SIZE (DRAGINFOW, pt, 8)
TEST_FIELD_ALIGN (DRAGINFOW, pt, 4)
TEST_FIELD_OFFSET(DRAGINFOW, pt, 4)
TEST_FIELD_SIZE (DRAGINFOW, fNC, 4)
TEST_FIELD_ALIGN (DRAGINFOW, fNC, 4)
TEST_FIELD_OFFSET(DRAGINFOW, fNC, 12)
TEST_FIELD_SIZE (DRAGINFOW, lpFileList, 8)
TEST_FIELD_ALIGN (DRAGINFOW, lpFileList, 8)
TEST_FIELD_OFFSET(DRAGINFOW, lpFileList, 16)
TEST_FIELD_SIZE (DRAGINFOW, grfKeyState, 4)
TEST_FIELD_ALIGN (DRAGINFOW, grfKeyState, 4)
TEST_FIELD_OFFSET(DRAGINFOW, grfKeyState, 24)
}
static void test_pack_FILEOP_FLAGS(void)
{
/* FILEOP_FLAGS */
TEST_TYPE_SIZE (FILEOP_FLAGS, 2)
TEST_TYPE_ALIGN (FILEOP_FLAGS, 2)
TEST_TYPE_UNSIGNED(FILEOP_FLAGS)
}
static void test_pack_LPDRAGINFOA(void)
{
/* LPDRAGINFOA */
TEST_TYPE_SIZE (LPDRAGINFOA, 8)
TEST_TYPE_ALIGN (LPDRAGINFOA, 8)
TEST_TARGET_SIZE (LPDRAGINFOA, 32)
TEST_TARGET_ALIGN(LPDRAGINFOA, 8)
}
static void test_pack_LPDRAGINFOW(void)
{
/* LPDRAGINFOW */
TEST_TYPE_SIZE (LPDRAGINFOW, 8)
TEST_TYPE_ALIGN (LPDRAGINFOW, 8)
TEST_TARGET_SIZE (LPDRAGINFOW, 32)
TEST_TARGET_ALIGN(LPDRAGINFOW, 8)
}
static void test_pack_LPSHELLEXECUTEINFOA(void)
{
/* LPSHELLEXECUTEINFOA */
TEST_TYPE_SIZE (LPSHELLEXECUTEINFOA, 8)
TEST_TYPE_ALIGN (LPSHELLEXECUTEINFOA, 8)
}
static void test_pack_LPSHELLEXECUTEINFOW(void)
{
/* LPSHELLEXECUTEINFOW */
TEST_TYPE_SIZE (LPSHELLEXECUTEINFOW, 8)
TEST_TYPE_ALIGN (LPSHELLEXECUTEINFOW, 8)
}
static void test_pack_LPSHFILEOPSTRUCTA(void)
{
/* LPSHFILEOPSTRUCTA */
TEST_TYPE_SIZE (LPSHFILEOPSTRUCTA, 8)
TEST_TYPE_ALIGN (LPSHFILEOPSTRUCTA, 8)
TEST_TARGET_SIZE (LPSHFILEOPSTRUCTA, 56)
TEST_TARGET_ALIGN(LPSHFILEOPSTRUCTA, 8)
}
static void test_pack_LPSHFILEOPSTRUCTW(void)
{
/* LPSHFILEOPSTRUCTW */
TEST_TYPE_SIZE (LPSHFILEOPSTRUCTW, 8)
TEST_TYPE_ALIGN (LPSHFILEOPSTRUCTW, 8)
TEST_TARGET_SIZE (LPSHFILEOPSTRUCTW, 56)
TEST_TARGET_ALIGN(LPSHFILEOPSTRUCTW, 8)
}
static void test_pack_LPSHNAMEMAPPINGA(void)
{
/* LPSHNAMEMAPPINGA */
TEST_TYPE_SIZE (LPSHNAMEMAPPINGA, 8)
TEST_TYPE_ALIGN (LPSHNAMEMAPPINGA, 8)
TEST_TARGET_SIZE (LPSHNAMEMAPPINGA, 24)
TEST_TARGET_ALIGN(LPSHNAMEMAPPINGA, 8)
}
static void test_pack_LPSHNAMEMAPPINGW(void)
{
/* LPSHNAMEMAPPINGW */
TEST_TYPE_SIZE (LPSHNAMEMAPPINGW, 8)
TEST_TYPE_ALIGN (LPSHNAMEMAPPINGW, 8)
TEST_TARGET_SIZE (LPSHNAMEMAPPINGW, 24)
TEST_TARGET_ALIGN(LPSHNAMEMAPPINGW, 8)
}
static void test_pack_NOTIFYICONDATAA(void)
{
/* NOTIFYICONDATAA */
TEST_FIELD_SIZE (NOTIFYICONDATAA, cbSize, 4)
TEST_FIELD_ALIGN (NOTIFYICONDATAA, cbSize, 4)
TEST_FIELD_OFFSET(NOTIFYICONDATAA, cbSize, 0)
TEST_FIELD_SIZE (NOTIFYICONDATAA, hWnd, 8)
TEST_FIELD_ALIGN (NOTIFYICONDATAA, hWnd, 8)
TEST_FIELD_OFFSET(NOTIFYICONDATAA, hWnd, 8)
TEST_FIELD_SIZE (NOTIFYICONDATAA, uID, 4)
TEST_FIELD_ALIGN (NOTIFYICONDATAA, uID, 4)
TEST_FIELD_OFFSET(NOTIFYICONDATAA, uID, 16)
TEST_FIELD_SIZE (NOTIFYICONDATAA, uFlags, 4)
TEST_FIELD_ALIGN (NOTIFYICONDATAA, uFlags, 4)
TEST_FIELD_OFFSET(NOTIFYICONDATAA, uFlags, 20)
TEST_FIELD_SIZE (NOTIFYICONDATAA, uCallbackMessage, 4)
TEST_FIELD_ALIGN (NOTIFYICONDATAA, uCallbackMessage, 4)
TEST_FIELD_OFFSET(NOTIFYICONDATAA, uCallbackMessage, 24)
TEST_FIELD_SIZE (NOTIFYICONDATAA, hIcon, 8)
TEST_FIELD_ALIGN (NOTIFYICONDATAA, hIcon, 8)
TEST_FIELD_OFFSET(NOTIFYICONDATAA, hIcon, 32)
TEST_FIELD_SIZE (NOTIFYICONDATAA, szTip, 128)
TEST_FIELD_ALIGN (NOTIFYICONDATAA, szTip, 1)
TEST_FIELD_OFFSET(NOTIFYICONDATAA, szTip, 40)
TEST_FIELD_SIZE (NOTIFYICONDATAA, dwState, 4)
TEST_FIELD_ALIGN (NOTIFYICONDATAA, dwState, 4)
TEST_FIELD_OFFSET(NOTIFYICONDATAA, dwState, 168)
TEST_FIELD_SIZE (NOTIFYICONDATAA, dwStateMask, 4)
TEST_FIELD_ALIGN (NOTIFYICONDATAA, dwStateMask, 4)
TEST_FIELD_OFFSET(NOTIFYICONDATAA, dwStateMask, 172)
TEST_FIELD_SIZE (NOTIFYICONDATAA, szInfo, 256)
TEST_FIELD_ALIGN (NOTIFYICONDATAA, szInfo, 1)
TEST_FIELD_OFFSET(NOTIFYICONDATAA, szInfo, 176)
}
static void test_pack_NOTIFYICONDATAW(void)
{
/* NOTIFYICONDATAW */
TEST_FIELD_SIZE (NOTIFYICONDATAW, cbSize, 4)
TEST_FIELD_ALIGN (NOTIFYICONDATAW, cbSize, 4)
TEST_FIELD_OFFSET(NOTIFYICONDATAW, cbSize, 0)
TEST_FIELD_SIZE (NOTIFYICONDATAW, hWnd, 8)
TEST_FIELD_ALIGN (NOTIFYICONDATAW, hWnd, 8)
TEST_FIELD_OFFSET(NOTIFYICONDATAW, hWnd, 8)
TEST_FIELD_SIZE (NOTIFYICONDATAW, uID, 4)
TEST_FIELD_ALIGN (NOTIFYICONDATAW, uID, 4)
TEST_FIELD_OFFSET(NOTIFYICONDATAW, uID, 16)
TEST_FIELD_SIZE (NOTIFYICONDATAW, uFlags, 4)
TEST_FIELD_ALIGN (NOTIFYICONDATAW, uFlags, 4)
TEST_FIELD_OFFSET(NOTIFYICONDATAW, uFlags, 20)
TEST_FIELD_SIZE (NOTIFYICONDATAW, uCallbackMessage, 4)
TEST_FIELD_ALIGN (NOTIFYICONDATAW, uCallbackMessage, 4)
TEST_FIELD_OFFSET(NOTIFYICONDATAW, uCallbackMessage, 24)
TEST_FIELD_SIZE (NOTIFYICONDATAW, hIcon, 8)
TEST_FIELD_ALIGN (NOTIFYICONDATAW, hIcon, 8)
TEST_FIELD_OFFSET(NOTIFYICONDATAW, hIcon, 32)
TEST_FIELD_SIZE (NOTIFYICONDATAW, szTip, 256)
TEST_FIELD_ALIGN (NOTIFYICONDATAW, szTip, 2)
TEST_FIELD_OFFSET(NOTIFYICONDATAW, szTip, 40)
TEST_FIELD_SIZE (NOTIFYICONDATAW, dwState, 4)
TEST_FIELD_ALIGN (NOTIFYICONDATAW, dwState, 4)
TEST_FIELD_OFFSET(NOTIFYICONDATAW, dwState, 296)
TEST_FIELD_SIZE (NOTIFYICONDATAW, dwStateMask, 4)
TEST_FIELD_ALIGN (NOTIFYICONDATAW, dwStateMask, 4)
TEST_FIELD_OFFSET(NOTIFYICONDATAW, dwStateMask, 300)
TEST_FIELD_SIZE (NOTIFYICONDATAW, szInfo, 512)
TEST_FIELD_ALIGN (NOTIFYICONDATAW, szInfo, 2)
TEST_FIELD_OFFSET(NOTIFYICONDATAW, szInfo, 304)
}
static void test_pack_PAPPBARDATA(void)
{
/* PAPPBARDATA */
TEST_TYPE_SIZE (PAPPBARDATA, 8)
TEST_TYPE_ALIGN (PAPPBARDATA, 8)
TEST_TARGET_SIZE (PAPPBARDATA, 48)
TEST_TARGET_ALIGN(PAPPBARDATA, 8)
}
static void test_pack_PNOTIFYICONDATAA(void)
{
/* PNOTIFYICONDATAA */
TEST_TYPE_SIZE (PNOTIFYICONDATAA, 8)
TEST_TYPE_ALIGN (PNOTIFYICONDATAA, 8)
}
static void test_pack_PNOTIFYICONDATAW(void)
{
/* PNOTIFYICONDATAW */
TEST_TYPE_SIZE (PNOTIFYICONDATAW, 8)
TEST_TYPE_ALIGN (PNOTIFYICONDATAW, 8)
}
static void test_pack_PRINTEROP_FLAGS(void)
{
/* PRINTEROP_FLAGS */
TEST_TYPE_SIZE (PRINTEROP_FLAGS, 2)
TEST_TYPE_ALIGN (PRINTEROP_FLAGS, 2)
TEST_TYPE_UNSIGNED(PRINTEROP_FLAGS)
}
static void test_pack_SHELLEXECUTEINFOA(void)
{
/* SHELLEXECUTEINFOA */
TEST_FIELD_SIZE (SHELLEXECUTEINFOA, cbSize, 4)
TEST_FIELD_ALIGN (SHELLEXECUTEINFOA, cbSize, 4)
TEST_FIELD_OFFSET(SHELLEXECUTEINFOA, cbSize, 0)
TEST_FIELD_SIZE (SHELLEXECUTEINFOA, fMask, 4)
TEST_FIELD_ALIGN (SHELLEXECUTEINFOA, fMask, 4)
TEST_FIELD_OFFSET(SHELLEXECUTEINFOA, fMask, 4)
TEST_FIELD_SIZE (SHELLEXECUTEINFOA, hwnd, 8)
TEST_FIELD_ALIGN (SHELLEXECUTEINFOA, hwnd, 8)
TEST_FIELD_OFFSET(SHELLEXECUTEINFOA, hwnd, 8)
TEST_FIELD_SIZE (SHELLEXECUTEINFOA, lpVerb, 8)
TEST_FIELD_ALIGN (SHELLEXECUTEINFOA, lpVerb, 8)
TEST_FIELD_OFFSET(SHELLEXECUTEINFOA, lpVerb, 16)
TEST_FIELD_SIZE (SHELLEXECUTEINFOA, lpFile, 8)
TEST_FIELD_ALIGN (SHELLEXECUTEINFOA, lpFile, 8)
TEST_FIELD_OFFSET(SHELLEXECUTEINFOA, lpFile, 24)
TEST_FIELD_SIZE (SHELLEXECUTEINFOA, lpParameters, 8)
TEST_FIELD_ALIGN (SHELLEXECUTEINFOA, lpParameters, 8)
TEST_FIELD_OFFSET(SHELLEXECUTEINFOA, lpParameters, 32)
TEST_FIELD_SIZE (SHELLEXECUTEINFOA, lpDirectory, 8)
TEST_FIELD_ALIGN (SHELLEXECUTEINFOA, lpDirectory, 8)
TEST_FIELD_OFFSET(SHELLEXECUTEINFOA, lpDirectory, 40)
TEST_FIELD_SIZE (SHELLEXECUTEINFOA, nShow, 4)
TEST_FIELD_ALIGN (SHELLEXECUTEINFOA, nShow, 4)
TEST_FIELD_OFFSET(SHELLEXECUTEINFOA, nShow, 48)
TEST_FIELD_SIZE (SHELLEXECUTEINFOA, hInstApp, 8)
TEST_FIELD_ALIGN (SHELLEXECUTEINFOA, hInstApp, 8)
TEST_FIELD_OFFSET(SHELLEXECUTEINFOA, hInstApp, 56)
TEST_FIELD_SIZE (SHELLEXECUTEINFOA, lpIDList, 8)
TEST_FIELD_ALIGN (SHELLEXECUTEINFOA, lpIDList, 8)
TEST_FIELD_OFFSET(SHELLEXECUTEINFOA, lpIDList, 64)
TEST_FIELD_SIZE (SHELLEXECUTEINFOA, lpClass, 8)
TEST_FIELD_ALIGN (SHELLEXECUTEINFOA, lpClass, 8)
TEST_FIELD_OFFSET(SHELLEXECUTEINFOA, lpClass, 72)
TEST_FIELD_SIZE (SHELLEXECUTEINFOA, hkeyClass, 8)
TEST_FIELD_ALIGN (SHELLEXECUTEINFOA, hkeyClass, 8)
TEST_FIELD_OFFSET(SHELLEXECUTEINFOA, hkeyClass, 80)
TEST_FIELD_SIZE (SHELLEXECUTEINFOA, dwHotKey, 4)
TEST_FIELD_ALIGN (SHELLEXECUTEINFOA, dwHotKey, 4)
TEST_FIELD_OFFSET(SHELLEXECUTEINFOA, dwHotKey, 88)
}
static void test_pack_SHELLEXECUTEINFOW(void)
{
/* SHELLEXECUTEINFOW */
TEST_FIELD_SIZE (SHELLEXECUTEINFOW, cbSize, 4)
TEST_FIELD_ALIGN (SHELLEXECUTEINFOW, cbSize, 4)
TEST_FIELD_OFFSET(SHELLEXECUTEINFOW, cbSize, 0)
TEST_FIELD_SIZE (SHELLEXECUTEINFOW, fMask, 4)
TEST_FIELD_ALIGN (SHELLEXECUTEINFOW, fMask, 4)
TEST_FIELD_OFFSET(SHELLEXECUTEINFOW, fMask, 4)
TEST_FIELD_SIZE (SHELLEXECUTEINFOW, hwnd, 8)
TEST_FIELD_ALIGN (SHELLEXECUTEINFOW, hwnd, 8)
TEST_FIELD_OFFSET(SHELLEXECUTEINFOW, hwnd, 8)
TEST_FIELD_SIZE (SHELLEXECUTEINFOW, lpVerb, 8)
TEST_FIELD_ALIGN (SHELLEXECUTEINFOW, lpVerb, 8)
TEST_FIELD_OFFSET(SHELLEXECUTEINFOW, lpVerb, 16)
TEST_FIELD_SIZE (SHELLEXECUTEINFOW, lpFile, 8)
TEST_FIELD_ALIGN (SHELLEXECUTEINFOW, lpFile, 8)
TEST_FIELD_OFFSET(SHELLEXECUTEINFOW, lpFile, 24)
TEST_FIELD_SIZE (SHELLEXECUTEINFOW, lpParameters, 8)
TEST_FIELD_ALIGN (SHELLEXECUTEINFOW, lpParameters, 8)
TEST_FIELD_OFFSET(SHELLEXECUTEINFOW, lpParameters, 32)
TEST_FIELD_SIZE (SHELLEXECUTEINFOW, lpDirectory, 8)
TEST_FIELD_ALIGN (SHELLEXECUTEINFOW, lpDirectory, 8)
TEST_FIELD_OFFSET(SHELLEXECUTEINFOW, lpDirectory, 40)
TEST_FIELD_SIZE (SHELLEXECUTEINFOW, nShow, 4)
TEST_FIELD_ALIGN (SHELLEXECUTEINFOW, nShow, 4)
TEST_FIELD_OFFSET(SHELLEXECUTEINFOW, nShow, 48)
TEST_FIELD_SIZE (SHELLEXECUTEINFOW, hInstApp, 8)
TEST_FIELD_ALIGN (SHELLEXECUTEINFOW, hInstApp, 8)
TEST_FIELD_OFFSET(SHELLEXECUTEINFOW, hInstApp, 56)
TEST_FIELD_SIZE (SHELLEXECUTEINFOW, lpIDList, 8)
TEST_FIELD_ALIGN (SHELLEXECUTEINFOW, lpIDList, 8)
TEST_FIELD_OFFSET(SHELLEXECUTEINFOW, lpIDList, 64)
TEST_FIELD_SIZE (SHELLEXECUTEINFOW, lpClass, 8)
TEST_FIELD_ALIGN (SHELLEXECUTEINFOW, lpClass, 8)
TEST_FIELD_OFFSET(SHELLEXECUTEINFOW, lpClass, 72)
TEST_FIELD_SIZE (SHELLEXECUTEINFOW, hkeyClass, 8)
TEST_FIELD_ALIGN (SHELLEXECUTEINFOW, hkeyClass, 8)
TEST_FIELD_OFFSET(SHELLEXECUTEINFOW, hkeyClass, 80)
TEST_FIELD_SIZE (SHELLEXECUTEINFOW, dwHotKey, 4)
TEST_FIELD_ALIGN (SHELLEXECUTEINFOW, dwHotKey, 4)
TEST_FIELD_OFFSET(SHELLEXECUTEINFOW, dwHotKey, 88)
}
static void test_pack_SHFILEINFOA(void)
{
/* SHFILEINFOA */
TEST_TYPE_SIZE (SHFILEINFOA, 360)
TEST_TYPE_ALIGN (SHFILEINFOA, 8)
TEST_FIELD_SIZE (SHFILEINFOA, hIcon, 8)
TEST_FIELD_ALIGN (SHFILEINFOA, hIcon, 8)
TEST_FIELD_OFFSET(SHFILEINFOA, hIcon, 0)
TEST_FIELD_SIZE (SHFILEINFOA, iIcon, 4)
TEST_FIELD_ALIGN (SHFILEINFOA, iIcon, 4)
TEST_FIELD_OFFSET(SHFILEINFOA, iIcon, 8)
TEST_FIELD_SIZE (SHFILEINFOA, dwAttributes, 4)
TEST_FIELD_ALIGN (SHFILEINFOA, dwAttributes, 4)
TEST_FIELD_OFFSET(SHFILEINFOA, dwAttributes, 12)
TEST_FIELD_SIZE (SHFILEINFOA, szDisplayName, 260)
TEST_FIELD_ALIGN (SHFILEINFOA, szDisplayName, 1)
TEST_FIELD_OFFSET(SHFILEINFOA, szDisplayName, 16)
TEST_FIELD_SIZE (SHFILEINFOA, szTypeName, 80)
TEST_FIELD_ALIGN (SHFILEINFOA, szTypeName, 1)
TEST_FIELD_OFFSET(SHFILEINFOA, szTypeName, 276)
}
static void test_pack_SHFILEINFOW(void)
{
/* SHFILEINFOW */
TEST_TYPE_SIZE (SHFILEINFOW, 696)
TEST_TYPE_ALIGN (SHFILEINFOW, 8)
TEST_FIELD_SIZE (SHFILEINFOW, hIcon, 8)
TEST_FIELD_ALIGN (SHFILEINFOW, hIcon, 8)
TEST_FIELD_OFFSET(SHFILEINFOW, hIcon, 0)
TEST_FIELD_SIZE (SHFILEINFOW, iIcon, 4)
TEST_FIELD_ALIGN (SHFILEINFOW, iIcon, 4)
TEST_FIELD_OFFSET(SHFILEINFOW, iIcon, 8)
TEST_FIELD_SIZE (SHFILEINFOW, dwAttributes, 4)
TEST_FIELD_ALIGN (SHFILEINFOW, dwAttributes, 4)
TEST_FIELD_OFFSET(SHFILEINFOW, dwAttributes, 12)
TEST_FIELD_SIZE (SHFILEINFOW, szDisplayName, 520)
TEST_FIELD_ALIGN (SHFILEINFOW, szDisplayName, 2)
TEST_FIELD_OFFSET(SHFILEINFOW, szDisplayName, 16)
TEST_FIELD_SIZE (SHFILEINFOW, szTypeName, 160)
TEST_FIELD_ALIGN (SHFILEINFOW, szTypeName, 2)
TEST_FIELD_OFFSET(SHFILEINFOW, szTypeName, 536)
}
static void test_pack_SHFILEOPSTRUCTA(void)
{
/* SHFILEOPSTRUCTA */
TEST_TYPE_SIZE (SHFILEOPSTRUCTA, 56)
TEST_TYPE_ALIGN (SHFILEOPSTRUCTA, 8)
TEST_FIELD_SIZE (SHFILEOPSTRUCTA, hwnd, 8)
TEST_FIELD_ALIGN (SHFILEOPSTRUCTA, hwnd, 8)
TEST_FIELD_OFFSET(SHFILEOPSTRUCTA, hwnd, 0)
TEST_FIELD_SIZE (SHFILEOPSTRUCTA, wFunc, 4)
TEST_FIELD_ALIGN (SHFILEOPSTRUCTA, wFunc, 4)
TEST_FIELD_OFFSET(SHFILEOPSTRUCTA, wFunc, 8)
TEST_FIELD_SIZE (SHFILEOPSTRUCTA, pFrom, 8)
TEST_FIELD_ALIGN (SHFILEOPSTRUCTA, pFrom, 8)
TEST_FIELD_OFFSET(SHFILEOPSTRUCTA, pFrom, 16)
TEST_FIELD_SIZE (SHFILEOPSTRUCTA, pTo, 8)
TEST_FIELD_ALIGN (SHFILEOPSTRUCTA, pTo, 8)
TEST_FIELD_OFFSET(SHFILEOPSTRUCTA, pTo, 24)
TEST_FIELD_SIZE (SHFILEOPSTRUCTA, fFlags, 2)
TEST_FIELD_ALIGN (SHFILEOPSTRUCTA, fFlags, 2)
TEST_FIELD_OFFSET(SHFILEOPSTRUCTA, fFlags, 32)
TEST_FIELD_SIZE (SHFILEOPSTRUCTA, fAnyOperationsAborted, 4)
TEST_FIELD_ALIGN (SHFILEOPSTRUCTA, fAnyOperationsAborted, 4)
TEST_FIELD_OFFSET(SHFILEOPSTRUCTA, fAnyOperationsAborted, 36)
TEST_FIELD_SIZE (SHFILEOPSTRUCTA, hNameMappings, 8)
TEST_FIELD_ALIGN (SHFILEOPSTRUCTA, hNameMappings, 8)
TEST_FIELD_OFFSET(SHFILEOPSTRUCTA, hNameMappings, 40)
TEST_FIELD_SIZE (SHFILEOPSTRUCTA, lpszProgressTitle, 8)
TEST_FIELD_ALIGN (SHFILEOPSTRUCTA, lpszProgressTitle, 8)
TEST_FIELD_OFFSET(SHFILEOPSTRUCTA, lpszProgressTitle, 48)
}
static void test_pack_SHFILEOPSTRUCTW(void)
{
/* SHFILEOPSTRUCTW */
TEST_TYPE_SIZE (SHFILEOPSTRUCTW, 56)
TEST_TYPE_ALIGN (SHFILEOPSTRUCTW, 8)
TEST_FIELD_SIZE (SHFILEOPSTRUCTW, hwnd, 8)
TEST_FIELD_ALIGN (SHFILEOPSTRUCTW, hwnd, 8)
TEST_FIELD_OFFSET(SHFILEOPSTRUCTW, hwnd, 0)
TEST_FIELD_SIZE (SHFILEOPSTRUCTW, wFunc, 4)
TEST_FIELD_ALIGN (SHFILEOPSTRUCTW, wFunc, 4)
TEST_FIELD_OFFSET(SHFILEOPSTRUCTW, wFunc, 8)
TEST_FIELD_SIZE (SHFILEOPSTRUCTW, pFrom, 8)
TEST_FIELD_ALIGN (SHFILEOPSTRUCTW, pFrom, 8)
TEST_FIELD_OFFSET(SHFILEOPSTRUCTW, pFrom, 16)
TEST_FIELD_SIZE (SHFILEOPSTRUCTW, pTo, 8)
TEST_FIELD_ALIGN (SHFILEOPSTRUCTW, pTo, 8)
TEST_FIELD_OFFSET(SHFILEOPSTRUCTW, pTo, 24)
TEST_FIELD_SIZE (SHFILEOPSTRUCTW, fFlags, 2)
TEST_FIELD_ALIGN (SHFILEOPSTRUCTW, fFlags, 2)
TEST_FIELD_OFFSET(SHFILEOPSTRUCTW, fFlags, 32)
TEST_FIELD_SIZE (SHFILEOPSTRUCTW, fAnyOperationsAborted, 4)
TEST_FIELD_ALIGN (SHFILEOPSTRUCTW, fAnyOperationsAborted, 4)
TEST_FIELD_OFFSET(SHFILEOPSTRUCTW, fAnyOperationsAborted, 36)
TEST_FIELD_SIZE (SHFILEOPSTRUCTW, hNameMappings, 8)
TEST_FIELD_ALIGN (SHFILEOPSTRUCTW, hNameMappings, 8)
TEST_FIELD_OFFSET(SHFILEOPSTRUCTW, hNameMappings, 40)
TEST_FIELD_SIZE (SHFILEOPSTRUCTW, lpszProgressTitle, 8)
TEST_FIELD_ALIGN (SHFILEOPSTRUCTW, lpszProgressTitle, 8)
TEST_FIELD_OFFSET(SHFILEOPSTRUCTW, lpszProgressTitle, 48)
}
static void test_pack_SHNAMEMAPPINGA(void)
{
/* SHNAMEMAPPINGA */
TEST_TYPE_SIZE (SHNAMEMAPPINGA, 24)
TEST_TYPE_ALIGN (SHNAMEMAPPINGA, 8)
TEST_FIELD_SIZE (SHNAMEMAPPINGA, pszOldPath, 8)
TEST_FIELD_ALIGN (SHNAMEMAPPINGA, pszOldPath, 8)
TEST_FIELD_OFFSET(SHNAMEMAPPINGA, pszOldPath, 0)
TEST_FIELD_SIZE (SHNAMEMAPPINGA, pszNewPath, 8)
TEST_FIELD_ALIGN (SHNAMEMAPPINGA, pszNewPath, 8)
TEST_FIELD_OFFSET(SHNAMEMAPPINGA, pszNewPath, 8)
TEST_FIELD_SIZE (SHNAMEMAPPINGA, cchOldPath, 4)
TEST_FIELD_ALIGN (SHNAMEMAPPINGA, cchOldPath, 4)
TEST_FIELD_OFFSET(SHNAMEMAPPINGA, cchOldPath, 16)
TEST_FIELD_SIZE (SHNAMEMAPPINGA, cchNewPath, 4)
TEST_FIELD_ALIGN (SHNAMEMAPPINGA, cchNewPath, 4)
TEST_FIELD_OFFSET(SHNAMEMAPPINGA, cchNewPath, 20)
}
static void test_pack_SHNAMEMAPPINGW(void)
{
/* SHNAMEMAPPINGW */
TEST_TYPE_SIZE (SHNAMEMAPPINGW, 24)
TEST_TYPE_ALIGN (SHNAMEMAPPINGW, 8)
TEST_FIELD_SIZE (SHNAMEMAPPINGW, pszOldPath, 8)
TEST_FIELD_ALIGN (SHNAMEMAPPINGW, pszOldPath, 8)
TEST_FIELD_OFFSET(SHNAMEMAPPINGW, pszOldPath, 0)
TEST_FIELD_SIZE (SHNAMEMAPPINGW, pszNewPath, 8)
TEST_FIELD_ALIGN (SHNAMEMAPPINGW, pszNewPath, 8)
TEST_FIELD_OFFSET(SHNAMEMAPPINGW, pszNewPath, 8)
TEST_FIELD_SIZE (SHNAMEMAPPINGW, cchOldPath, 4)
TEST_FIELD_ALIGN (SHNAMEMAPPINGW, cchOldPath, 4)
TEST_FIELD_OFFSET(SHNAMEMAPPINGW, cchOldPath, 16)
TEST_FIELD_SIZE (SHNAMEMAPPINGW, cchNewPath, 4)
TEST_FIELD_ALIGN (SHNAMEMAPPINGW, cchNewPath, 4)
TEST_FIELD_OFFSET(SHNAMEMAPPINGW, cchNewPath, 20)
}
static void test_pack_ITEMIDLIST(void)
{
/* ITEMIDLIST (pack 1) */
TEST_TYPE_SIZE (ITEMIDLIST, 3)
TEST_TYPE_ALIGN (ITEMIDLIST, 1)
TEST_FIELD_SIZE (ITEMIDLIST, mkid, 3)
TEST_FIELD_ALIGN (ITEMIDLIST, mkid, 1)
TEST_FIELD_OFFSET(ITEMIDLIST, mkid, 0)
}
static void test_pack_LPCITEMIDLIST(void)
{
/* LPCITEMIDLIST */
TEST_TYPE_SIZE (LPCITEMIDLIST, 8)
TEST_TYPE_ALIGN (LPCITEMIDLIST, 8)
TEST_TARGET_SIZE (LPCITEMIDLIST, 3)
TEST_TARGET_ALIGN(LPCITEMIDLIST, 1)
}
static void test_pack_LPCSHITEMID(void)
{
/* LPCSHITEMID */
TEST_TYPE_SIZE (LPCSHITEMID, 8)
TEST_TYPE_ALIGN (LPCSHITEMID, 8)
TEST_TARGET_SIZE (LPCSHITEMID, 3)
TEST_TARGET_ALIGN(LPCSHITEMID, 1)
}
static void test_pack_LPITEMIDLIST(void)
{
/* LPITEMIDLIST */
TEST_TYPE_SIZE (LPITEMIDLIST, 8)
TEST_TYPE_ALIGN (LPITEMIDLIST, 8)
}
static void test_pack_LPSHELLDETAILS(void)
{
/* LPSHELLDETAILS */
TEST_TYPE_SIZE (LPSHELLDETAILS, 8)
TEST_TYPE_ALIGN (LPSHELLDETAILS, 8)
}
static void test_pack_LPSHITEMID(void)
{
/* LPSHITEMID */
TEST_TYPE_SIZE (LPSHITEMID, 8)
TEST_TYPE_ALIGN (LPSHITEMID, 8)
}
static void test_pack_LPSTRRET(void)
{
/* LPSTRRET */
TEST_TYPE_SIZE (LPSTRRET, 8)
TEST_TYPE_ALIGN (LPSTRRET, 8)
}
static void test_pack_SHELLDETAILS(void)
{
/* SHELLDETAILS (pack 1) */
TEST_FIELD_SIZE (SHELLDETAILS, fmt, 4)
TEST_FIELD_ALIGN (SHELLDETAILS, fmt, 1)
TEST_FIELD_OFFSET(SHELLDETAILS, fmt, 0)
TEST_FIELD_SIZE (SHELLDETAILS, cxChar, 4)
TEST_FIELD_ALIGN (SHELLDETAILS, cxChar, 1)
TEST_FIELD_OFFSET(SHELLDETAILS, cxChar, 4)
}
static void test_pack_SHITEMID(void)
{
/* SHITEMID (pack 1) */
TEST_TYPE_SIZE (SHITEMID, 3)
TEST_TYPE_ALIGN (SHITEMID, 1)
TEST_FIELD_SIZE (SHITEMID, cb, 2)
TEST_FIELD_ALIGN (SHITEMID, cb, 1)
TEST_FIELD_OFFSET(SHITEMID, cb, 0)
TEST_FIELD_SIZE (SHITEMID, abID, 1)
TEST_FIELD_ALIGN (SHITEMID, abID, 1)
TEST_FIELD_OFFSET(SHITEMID, abID, 2)
}
static void test_pack_STRRET(void)
{
/* STRRET (pack 8) */
TEST_FIELD_SIZE (STRRET, uType, 4)
TEST_FIELD_ALIGN (STRRET, uType, 4)
TEST_FIELD_OFFSET(STRRET, uType, 0)
}
static void test_pack_AUTO_SCROLL_DATA(void)
{
/* AUTO_SCROLL_DATA (pack 1) */
TEST_TYPE_SIZE (AUTO_SCROLL_DATA, 48)
TEST_TYPE_ALIGN (AUTO_SCROLL_DATA, 1)
TEST_FIELD_SIZE (AUTO_SCROLL_DATA, iNextSample, 4)
TEST_FIELD_ALIGN (AUTO_SCROLL_DATA, iNextSample, 1)
TEST_FIELD_OFFSET(AUTO_SCROLL_DATA, iNextSample, 0)
TEST_FIELD_SIZE (AUTO_SCROLL_DATA, dwLastScroll, 4)
TEST_FIELD_ALIGN (AUTO_SCROLL_DATA, dwLastScroll, 1)
TEST_FIELD_OFFSET(AUTO_SCROLL_DATA, dwLastScroll, 4)
TEST_FIELD_SIZE (AUTO_SCROLL_DATA, bFull, 4)
TEST_FIELD_ALIGN (AUTO_SCROLL_DATA, bFull, 1)
TEST_FIELD_OFFSET(AUTO_SCROLL_DATA, bFull, 8)
TEST_FIELD_SIZE (AUTO_SCROLL_DATA, pts, 24)
TEST_FIELD_ALIGN (AUTO_SCROLL_DATA, pts, 1)
TEST_FIELD_OFFSET(AUTO_SCROLL_DATA, pts, 12)
TEST_FIELD_SIZE (AUTO_SCROLL_DATA, dwTimes, 12)
TEST_FIELD_ALIGN (AUTO_SCROLL_DATA, dwTimes, 1)
TEST_FIELD_OFFSET(AUTO_SCROLL_DATA, dwTimes, 36)
}
static void test_pack_BFFCALLBACK(void)
{
/* BFFCALLBACK */
TEST_TYPE_SIZE (BFFCALLBACK, 8)
TEST_TYPE_ALIGN (BFFCALLBACK, 8)
}
static void test_pack_BROWSEINFOA(void)
{
/* BROWSEINFOA (pack 8) */
TEST_TYPE_SIZE (BROWSEINFOA, 64)
TEST_TYPE_ALIGN (BROWSEINFOA, 8)
TEST_FIELD_SIZE (BROWSEINFOA, hwndOwner, 8)
TEST_FIELD_ALIGN (BROWSEINFOA, hwndOwner, 8)
TEST_FIELD_OFFSET(BROWSEINFOA, hwndOwner, 0)
TEST_FIELD_SIZE (BROWSEINFOA, pidlRoot, 8)
TEST_FIELD_ALIGN (BROWSEINFOA, pidlRoot, 8)
TEST_FIELD_OFFSET(BROWSEINFOA, pidlRoot, 8)
TEST_FIELD_SIZE (BROWSEINFOA, pszDisplayName, 8)
TEST_FIELD_ALIGN (BROWSEINFOA, pszDisplayName, 8)
TEST_FIELD_OFFSET(BROWSEINFOA, pszDisplayName, 16)
TEST_FIELD_SIZE (BROWSEINFOA, lpszTitle, 8)
TEST_FIELD_ALIGN (BROWSEINFOA, lpszTitle, 8)
TEST_FIELD_OFFSET(BROWSEINFOA, lpszTitle, 24)
TEST_FIELD_SIZE (BROWSEINFOA, ulFlags, 4)
TEST_FIELD_ALIGN (BROWSEINFOA, ulFlags, 4)
TEST_FIELD_OFFSET(BROWSEINFOA, ulFlags, 32)
TEST_FIELD_SIZE (BROWSEINFOA, lpfn, 8)
TEST_FIELD_ALIGN (BROWSEINFOA, lpfn, 8)
TEST_FIELD_OFFSET(BROWSEINFOA, lpfn, 40)
TEST_FIELD_SIZE (BROWSEINFOA, lParam, 8)
TEST_FIELD_ALIGN (BROWSEINFOA, lParam, 8)
TEST_FIELD_OFFSET(BROWSEINFOA, lParam, 48)
TEST_FIELD_SIZE (BROWSEINFOA, iImage, 4)
TEST_FIELD_ALIGN (BROWSEINFOA, iImage, 4)
TEST_FIELD_OFFSET(BROWSEINFOA, iImage, 56)
}
static void test_pack_BROWSEINFOW(void)
{
/* BROWSEINFOW (pack 8) */
TEST_TYPE_SIZE (BROWSEINFOW, 64)
TEST_TYPE_ALIGN (BROWSEINFOW, 8)
TEST_FIELD_SIZE (BROWSEINFOW, hwndOwner, 8)
TEST_FIELD_ALIGN (BROWSEINFOW, hwndOwner, 8)
TEST_FIELD_OFFSET(BROWSEINFOW, hwndOwner, 0)
TEST_FIELD_SIZE (BROWSEINFOW, pidlRoot, 8)
TEST_FIELD_ALIGN (BROWSEINFOW, pidlRoot, 8)
TEST_FIELD_OFFSET(BROWSEINFOW, pidlRoot, 8)
TEST_FIELD_SIZE (BROWSEINFOW, pszDisplayName, 8)
TEST_FIELD_ALIGN (BROWSEINFOW, pszDisplayName, 8)
TEST_FIELD_OFFSET(BROWSEINFOW, pszDisplayName, 16)
TEST_FIELD_SIZE (BROWSEINFOW, lpszTitle, 8)
TEST_FIELD_ALIGN (BROWSEINFOW, lpszTitle, 8)
TEST_FIELD_OFFSET(BROWSEINFOW, lpszTitle, 24)
TEST_FIELD_SIZE (BROWSEINFOW, ulFlags, 4)
TEST_FIELD_ALIGN (BROWSEINFOW, ulFlags, 4)
TEST_FIELD_OFFSET(BROWSEINFOW, ulFlags, 32)
TEST_FIELD_SIZE (BROWSEINFOW, lpfn, 8)
TEST_FIELD_ALIGN (BROWSEINFOW, lpfn, 8)
TEST_FIELD_OFFSET(BROWSEINFOW, lpfn, 40)
TEST_FIELD_SIZE (BROWSEINFOW, lParam, 8)
TEST_FIELD_ALIGN (BROWSEINFOW, lParam, 8)
TEST_FIELD_OFFSET(BROWSEINFOW, lParam, 48)
TEST_FIELD_SIZE (BROWSEINFOW, iImage, 4)
TEST_FIELD_ALIGN (BROWSEINFOW, iImage, 4)
TEST_FIELD_OFFSET(BROWSEINFOW, iImage, 56)
}
static void test_pack_CABINETSTATE(void)
{
/* CABINETSTATE (pack 1) */
TEST_TYPE_SIZE (CABINETSTATE, 12)
TEST_TYPE_ALIGN (CABINETSTATE, 1)
TEST_FIELD_SIZE (CABINETSTATE, cLength, 2)
TEST_FIELD_ALIGN (CABINETSTATE, cLength, 1)
TEST_FIELD_OFFSET(CABINETSTATE, cLength, 0)
TEST_FIELD_SIZE (CABINETSTATE, nVersion, 2)
TEST_FIELD_ALIGN (CABINETSTATE, nVersion, 1)
TEST_FIELD_OFFSET(CABINETSTATE, nVersion, 2)
TEST_FIELD_SIZE (CABINETSTATE, fMenuEnumFilter, 4)
TEST_FIELD_ALIGN (CABINETSTATE, fMenuEnumFilter, 1)
TEST_FIELD_OFFSET(CABINETSTATE, fMenuEnumFilter, 8)
}
static void test_pack_CIDA(void)
{
/* CIDA (pack 1) */
TEST_TYPE_SIZE (CIDA, 8)
TEST_TYPE_ALIGN (CIDA, 1)
TEST_FIELD_SIZE (CIDA, cidl, 4)
TEST_FIELD_ALIGN (CIDA, cidl, 1)
TEST_FIELD_OFFSET(CIDA, cidl, 0)
TEST_FIELD_SIZE (CIDA, aoffset, 4)
TEST_FIELD_ALIGN (CIDA, aoffset, 1)
TEST_FIELD_OFFSET(CIDA, aoffset, 4)
}
static void test_pack_CSFV(void)
{
/* CSFV (pack 1) */
TEST_FIELD_SIZE (CSFV, cbSize, 4)
TEST_FIELD_ALIGN (CSFV, cbSize, 1)
TEST_FIELD_OFFSET(CSFV, cbSize, 0)
TEST_FIELD_SIZE (CSFV, pshf, 8)
TEST_FIELD_ALIGN (CSFV, pshf, 1)
TEST_FIELD_OFFSET(CSFV, pshf, 4)
TEST_FIELD_SIZE (CSFV, psvOuter, 8)
TEST_FIELD_ALIGN (CSFV, psvOuter, 1)
TEST_FIELD_OFFSET(CSFV, psvOuter, 12)
TEST_FIELD_SIZE (CSFV, pidl, 8)
TEST_FIELD_ALIGN (CSFV, pidl, 1)
TEST_FIELD_OFFSET(CSFV, pidl, 20)
TEST_FIELD_SIZE (CSFV, lEvents, 4)
TEST_FIELD_ALIGN (CSFV, lEvents, 1)
TEST_FIELD_OFFSET(CSFV, lEvents, 28)
TEST_FIELD_SIZE (CSFV, pfnCallback, 8)
TEST_FIELD_ALIGN (CSFV, pfnCallback, 1)
TEST_FIELD_OFFSET(CSFV, pfnCallback, 32)
}
static void test_pack_DROPFILES(void)
{
/* DROPFILES (pack 1) */
TEST_TYPE_SIZE (DROPFILES, 20)
TEST_TYPE_ALIGN (DROPFILES, 1)
TEST_FIELD_SIZE (DROPFILES, pFiles, 4)
TEST_FIELD_ALIGN (DROPFILES, pFiles, 1)
TEST_FIELD_OFFSET(DROPFILES, pFiles, 0)
TEST_FIELD_SIZE (DROPFILES, pt, 8)
TEST_FIELD_ALIGN (DROPFILES, pt, 1)
TEST_FIELD_OFFSET(DROPFILES, pt, 4)
TEST_FIELD_SIZE (DROPFILES, fNC, 4)
TEST_FIELD_ALIGN (DROPFILES, fNC, 1)
TEST_FIELD_OFFSET(DROPFILES, fNC, 12)
TEST_FIELD_SIZE (DROPFILES, fWide, 4)
TEST_FIELD_ALIGN (DROPFILES, fWide, 1)
TEST_FIELD_OFFSET(DROPFILES, fWide, 16)
}
static void test_pack_FILEDESCRIPTORA(void)
{
/* FILEDESCRIPTORA (pack 1) */
TEST_TYPE_SIZE (FILEDESCRIPTORA, 332)
TEST_TYPE_ALIGN (FILEDESCRIPTORA, 1)
TEST_FIELD_SIZE (FILEDESCRIPTORA, dwFlags, 4)
TEST_FIELD_ALIGN (FILEDESCRIPTORA, dwFlags, 1)
TEST_FIELD_OFFSET(FILEDESCRIPTORA, dwFlags, 0)
TEST_FIELD_SIZE (FILEDESCRIPTORA, clsid, 16)
TEST_FIELD_ALIGN (FILEDESCRIPTORA, clsid, 1)
TEST_FIELD_OFFSET(FILEDESCRIPTORA, clsid, 4)
TEST_FIELD_SIZE (FILEDESCRIPTORA, sizel, 8)
TEST_FIELD_ALIGN (FILEDESCRIPTORA, sizel, 1)
TEST_FIELD_OFFSET(FILEDESCRIPTORA, sizel, 20)
TEST_FIELD_SIZE (FILEDESCRIPTORA, pointl, 8)
TEST_FIELD_ALIGN (FILEDESCRIPTORA, pointl, 1)
TEST_FIELD_OFFSET(FILEDESCRIPTORA, pointl, 28)
TEST_FIELD_SIZE (FILEDESCRIPTORA, dwFileAttributes, 4)
TEST_FIELD_ALIGN (FILEDESCRIPTORA, dwFileAttributes, 1)
TEST_FIELD_OFFSET(FILEDESCRIPTORA, dwFileAttributes, 36)
TEST_FIELD_SIZE (FILEDESCRIPTORA, ftCreationTime, 8)
TEST_FIELD_ALIGN (FILEDESCRIPTORA, ftCreationTime, 1)
TEST_FIELD_OFFSET(FILEDESCRIPTORA, ftCreationTime, 40)
TEST_FIELD_SIZE (FILEDESCRIPTORA, ftLastAccessTime, 8)
TEST_FIELD_ALIGN (FILEDESCRIPTORA, ftLastAccessTime, 1)
TEST_FIELD_OFFSET(FILEDESCRIPTORA, ftLastAccessTime, 48)
TEST_FIELD_SIZE (FILEDESCRIPTORA, ftLastWriteTime, 8)
TEST_FIELD_ALIGN (FILEDESCRIPTORA, ftLastWriteTime, 1)
TEST_FIELD_OFFSET(FILEDESCRIPTORA, ftLastWriteTime, 56)
TEST_FIELD_SIZE (FILEDESCRIPTORA, nFileSizeHigh, 4)
TEST_FIELD_ALIGN (FILEDESCRIPTORA, nFileSizeHigh, 1)
TEST_FIELD_OFFSET(FILEDESCRIPTORA, nFileSizeHigh, 64)
TEST_FIELD_SIZE (FILEDESCRIPTORA, nFileSizeLow, 4)
TEST_FIELD_ALIGN (FILEDESCRIPTORA, nFileSizeLow, 1)
TEST_FIELD_OFFSET(FILEDESCRIPTORA, nFileSizeLow, 68)
TEST_FIELD_SIZE (FILEDESCRIPTORA, cFileName, 260)
TEST_FIELD_ALIGN (FILEDESCRIPTORA, cFileName, 1)
TEST_FIELD_OFFSET(FILEDESCRIPTORA, cFileName, 72)
}
static void test_pack_FILEDESCRIPTORW(void)
{
/* FILEDESCRIPTORW (pack 1) */
TEST_TYPE_SIZE (FILEDESCRIPTORW, 592)
TEST_TYPE_ALIGN (FILEDESCRIPTORW, 1)
TEST_FIELD_SIZE (FILEDESCRIPTORW, dwFlags, 4)
TEST_FIELD_ALIGN (FILEDESCRIPTORW, dwFlags, 1)
TEST_FIELD_OFFSET(FILEDESCRIPTORW, dwFlags, 0)
TEST_FIELD_SIZE (FILEDESCRIPTORW, clsid, 16)
TEST_FIELD_ALIGN (FILEDESCRIPTORW, clsid, 1)
TEST_FIELD_OFFSET(FILEDESCRIPTORW, clsid, 4)
TEST_FIELD_SIZE (FILEDESCRIPTORW, sizel, 8)
TEST_FIELD_ALIGN (FILEDESCRIPTORW, sizel, 1)
TEST_FIELD_OFFSET(FILEDESCRIPTORW, sizel, 20)
TEST_FIELD_SIZE (FILEDESCRIPTORW, pointl, 8)
TEST_FIELD_ALIGN (FILEDESCRIPTORW, pointl, 1)
TEST_FIELD_OFFSET(FILEDESCRIPTORW, pointl, 28)
TEST_FIELD_SIZE (FILEDESCRIPTORW, dwFileAttributes, 4)
TEST_FIELD_ALIGN (FILEDESCRIPTORW, dwFileAttributes, 1)
TEST_FIELD_OFFSET(FILEDESCRIPTORW, dwFileAttributes, 36)
TEST_FIELD_SIZE (FILEDESCRIPTORW, ftCreationTime, 8)
TEST_FIELD_ALIGN (FILEDESCRIPTORW, ftCreationTime, 1)
TEST_FIELD_OFFSET(FILEDESCRIPTORW, ftCreationTime, 40)
TEST_FIELD_SIZE (FILEDESCRIPTORW, ftLastAccessTime, 8)
TEST_FIELD_ALIGN (FILEDESCRIPTORW, ftLastAccessTime, 1)
TEST_FIELD_OFFSET(FILEDESCRIPTORW, ftLastAccessTime, 48)
TEST_FIELD_SIZE (FILEDESCRIPTORW, ftLastWriteTime, 8)
TEST_FIELD_ALIGN (FILEDESCRIPTORW, ftLastWriteTime, 1)
TEST_FIELD_OFFSET(FILEDESCRIPTORW, ftLastWriteTime, 56)
TEST_FIELD_SIZE (FILEDESCRIPTORW, nFileSizeHigh, 4)
TEST_FIELD_ALIGN (FILEDESCRIPTORW, nFileSizeHigh, 1)
TEST_FIELD_OFFSET(FILEDESCRIPTORW, nFileSizeHigh, 64)
TEST_FIELD_SIZE (FILEDESCRIPTORW, nFileSizeLow, 4)
TEST_FIELD_ALIGN (FILEDESCRIPTORW, nFileSizeLow, 1)
TEST_FIELD_OFFSET(FILEDESCRIPTORW, nFileSizeLow, 68)
TEST_FIELD_SIZE (FILEDESCRIPTORW, cFileName, 520)
TEST_FIELD_ALIGN (FILEDESCRIPTORW, cFileName, 1)
TEST_FIELD_OFFSET(FILEDESCRIPTORW, cFileName, 72)
}
static void test_pack_FILEGROUPDESCRIPTORA(void)
{
/* FILEGROUPDESCRIPTORA (pack 1) */
TEST_TYPE_SIZE (FILEGROUPDESCRIPTORA, 336)
TEST_TYPE_ALIGN (FILEGROUPDESCRIPTORA, 1)
TEST_FIELD_SIZE (FILEGROUPDESCRIPTORA, cItems, 4)
TEST_FIELD_ALIGN (FILEGROUPDESCRIPTORA, cItems, 1)
TEST_FIELD_OFFSET(FILEGROUPDESCRIPTORA, cItems, 0)
TEST_FIELD_SIZE (FILEGROUPDESCRIPTORA, fgd, 332)
TEST_FIELD_ALIGN (FILEGROUPDESCRIPTORA, fgd, 1)
TEST_FIELD_OFFSET(FILEGROUPDESCRIPTORA, fgd, 4)
}
static void test_pack_FILEGROUPDESCRIPTORW(void)
{
/* FILEGROUPDESCRIPTORW (pack 1) */
TEST_TYPE_SIZE (FILEGROUPDESCRIPTORW, 596)
TEST_TYPE_ALIGN (FILEGROUPDESCRIPTORW, 1)
TEST_FIELD_SIZE (FILEGROUPDESCRIPTORW, cItems, 4)
TEST_FIELD_ALIGN (FILEGROUPDESCRIPTORW, cItems, 1)
TEST_FIELD_OFFSET(FILEGROUPDESCRIPTORW, cItems, 0)
TEST_FIELD_SIZE (FILEGROUPDESCRIPTORW, fgd, 592)
TEST_FIELD_ALIGN (FILEGROUPDESCRIPTORW, fgd, 1)
TEST_FIELD_OFFSET(FILEGROUPDESCRIPTORW, fgd, 4)
}
static void test_pack_LPBROWSEINFOA(void)
{
/* LPBROWSEINFOA */
TEST_TYPE_SIZE (LPBROWSEINFOA, 8)
TEST_TYPE_ALIGN (LPBROWSEINFOA, 8)
TEST_TARGET_SIZE (LPBROWSEINFOA, 64)
TEST_TARGET_ALIGN(LPBROWSEINFOA, 8)
}
static void test_pack_LPBROWSEINFOW(void)
{
/* LPBROWSEINFOW */
TEST_TYPE_SIZE (LPBROWSEINFOW, 8)
TEST_TYPE_ALIGN (LPBROWSEINFOW, 8)
TEST_TARGET_SIZE (LPBROWSEINFOW, 64)
TEST_TARGET_ALIGN(LPBROWSEINFOW, 8)
}
static void test_pack_LPCABINETSTATE(void)
{
/* LPCABINETSTATE */
TEST_TYPE_SIZE (LPCABINETSTATE, 8)
TEST_TYPE_ALIGN (LPCABINETSTATE, 8)
TEST_TARGET_SIZE (LPCABINETSTATE, 12)
TEST_TARGET_ALIGN(LPCABINETSTATE, 1)
}
static void test_pack_LPCSFV(void)
{
/* LPCSFV */
TEST_TYPE_SIZE (LPCSFV, 8)
TEST_TYPE_ALIGN (LPCSFV, 8)
}
#else
static void test_pack_LPDROPFILES(void)
{
/* LPDROPFILES */
TEST_TYPE_SIZE (LPDROPFILES, 8)
TEST_TYPE_ALIGN (LPDROPFILES, 8)
TEST_TARGET_SIZE (LPDROPFILES, 20)
TEST_TARGET_ALIGN(LPDROPFILES, 1)
}
static void test_pack_LPFILEDESCRIPTORA(void)
{
/* LPFILEDESCRIPTORA */
TEST_TYPE_SIZE (LPFILEDESCRIPTORA, 8)
TEST_TYPE_ALIGN (LPFILEDESCRIPTORA, 8)
TEST_TARGET_SIZE (LPFILEDESCRIPTORA, 332)
TEST_TARGET_ALIGN(LPFILEDESCRIPTORA, 1)
}
static void test_pack_LPFILEDESCRIPTORW(void)
{
/* LPFILEDESCRIPTORW */
TEST_TYPE_SIZE (LPFILEDESCRIPTORW, 8)
TEST_TYPE_ALIGN (LPFILEDESCRIPTORW, 8)
TEST_TARGET_SIZE (LPFILEDESCRIPTORW, 592)
TEST_TARGET_ALIGN(LPFILEDESCRIPTORW, 1)
}
# define TEST_TYPE_SIZE(type, size) C_ASSERT(sizeof(type) == size);
static void test_pack_LPFILEGROUPDESCRIPTORA(void)
{
/* LPFILEGROUPDESCRIPTORA */
TEST_TYPE_SIZE (LPFILEGROUPDESCRIPTORA, 8)
TEST_TYPE_ALIGN (LPFILEGROUPDESCRIPTORA, 8)
TEST_TARGET_SIZE (LPFILEGROUPDESCRIPTORA, 336)
TEST_TARGET_ALIGN(LPFILEGROUPDESCRIPTORA, 1)
}
# ifdef TYPE_ALIGNMENT
# define TEST_TYPE_ALIGN(type, align) C_ASSERT(TYPE_ALIGNMENT(type) == align);
# else
# define TEST_TYPE_ALIGN(type, align)
# endif
static void test_pack_LPFILEGROUPDESCRIPTORW(void)
{
/* LPFILEGROUPDESCRIPTORW */
TEST_TYPE_SIZE (LPFILEGROUPDESCRIPTORW, 8)
TEST_TYPE_ALIGN (LPFILEGROUPDESCRIPTORW, 8)
TEST_TARGET_SIZE (LPFILEGROUPDESCRIPTORW, 596)
TEST_TARGET_ALIGN(LPFILEGROUPDESCRIPTORW, 1)
}
# ifdef _TYPE_ALIGNMENT
# define TEST_TARGET_ALIGN(type, align) C_ASSERT(_TYPE_ALIGNMENT(*(type)0) == align);
# define TEST_FIELD_ALIGN(type, field, align) C_ASSERT(_TYPE_ALIGNMENT(((type*)0)->field) == align);
# else
# define TEST_TARGET_ALIGN(type, align)
# define TEST_FIELD_ALIGN(type, field, align)
# endif
static void test_pack_LPFNVIEWCALLBACK(void)
{
/* LPFNVIEWCALLBACK */
TEST_TYPE_SIZE (LPFNVIEWCALLBACK, 8)
TEST_TYPE_ALIGN (LPFNVIEWCALLBACK, 8)
}
# define TEST_FIELD_OFFSET(type, field, offset) C_ASSERT(FIELD_OFFSET(type, field) == offset);
static void test_pack_LPIDA(void)
{
/* LPIDA */
TEST_TYPE_SIZE (LPIDA, 8)
TEST_TYPE_ALIGN (LPIDA, 8)
TEST_TARGET_SIZE (LPIDA, 8)
TEST_TARGET_ALIGN(LPIDA, 1)
}
#endif
static void test_pack_LPQCMINFO(void)
{
/* LPQCMINFO */
TEST_TYPE_SIZE (LPQCMINFO, 8)
TEST_TYPE_ALIGN (LPQCMINFO, 8)
TEST_TARGET_SIZE (LPQCMINFO, 32)
TEST_TARGET_ALIGN(LPQCMINFO, 8)
}
#define TEST_TARGET_SIZE(type, size) TEST_TYPE_SIZE(*(type)0, size)
#define TEST_FIELD_SIZE(type, field, size) TEST_TYPE_SIZE((((type*)0)->field), size)
#define TEST_TYPE_SIGNED(type) C_ASSERT((type) -1 < 0);
#define TEST_TYPE_UNSIGNED(type) C_ASSERT((type) -1 > 0);
static void test_pack_LPSHChangeDWORDAsIDList(void)
{
/* LPSHChangeDWORDAsIDList */
TEST_TYPE_SIZE (LPSHChangeDWORDAsIDList, 8)
TEST_TYPE_ALIGN (LPSHChangeDWORDAsIDList, 8)
TEST_TARGET_SIZE (LPSHChangeDWORDAsIDList, 12)
TEST_TARGET_ALIGN(LPSHChangeDWORDAsIDList, 1)
}
static void test_pack_LPSHChangeProductKeyAsIDList(void)
{
/* LPSHChangeProductKeyAsIDList */
TEST_TYPE_SIZE (LPSHChangeProductKeyAsIDList, 8)
TEST_TYPE_ALIGN (LPSHChangeProductKeyAsIDList, 8)
TEST_TARGET_SIZE (LPSHChangeProductKeyAsIDList, 82)
TEST_TARGET_ALIGN(LPSHChangeProductKeyAsIDList, 1)
}
static void test_pack_LPSHDESCRIPTIONID(void)
{
/* LPSHDESCRIPTIONID */
TEST_TYPE_SIZE (LPSHDESCRIPTIONID, 8)
TEST_TYPE_ALIGN (LPSHDESCRIPTIONID, 8)
TEST_TARGET_SIZE (LPSHDESCRIPTIONID, 20)
TEST_TARGET_ALIGN(LPSHDESCRIPTIONID, 4)
}
static void test_pack_LPSHELLFLAGSTATE(void)
{
/* LPSHELLFLAGSTATE */
TEST_TYPE_SIZE (LPSHELLFLAGSTATE, 8)
TEST_TYPE_ALIGN (LPSHELLFLAGSTATE, 8)
TEST_TARGET_SIZE (LPSHELLFLAGSTATE, 4)
TEST_TARGET_ALIGN(LPSHELLFLAGSTATE, 1)
}
static void test_pack_LPSHELLSTATE(void)
{
/* LPSHELLSTATE */
TEST_TYPE_SIZE (LPSHELLSTATE, 8)
TEST_TYPE_ALIGN (LPSHELLSTATE, 8)
TEST_TARGET_SIZE (LPSHELLSTATE, 32)
TEST_TARGET_ALIGN(LPSHELLSTATE, 1)
}
static void test_pack_LPTBINFO(void)
{
/* LPTBINFO */
TEST_TYPE_SIZE (LPTBINFO, 8)
TEST_TYPE_ALIGN (LPTBINFO, 8)
TEST_TARGET_SIZE (LPTBINFO, 8)
TEST_TARGET_ALIGN(LPTBINFO, 4)
}
static void test_pack_PBROWSEINFOA(void)
{
/* PBROWSEINFOA */
TEST_TYPE_SIZE (PBROWSEINFOA, 8)
TEST_TYPE_ALIGN (PBROWSEINFOA, 8)
TEST_TARGET_SIZE (PBROWSEINFOA, 64)
TEST_TARGET_ALIGN(PBROWSEINFOA, 8)
}
static void test_pack_PBROWSEINFOW(void)
{
/* PBROWSEINFOW */
TEST_TYPE_SIZE (PBROWSEINFOW, 8)
TEST_TYPE_ALIGN (PBROWSEINFOW, 8)
TEST_TARGET_SIZE (PBROWSEINFOW, 64)
TEST_TARGET_ALIGN(PBROWSEINFOW, 8)
}
static void test_pack_QCMINFO(void)
{
/* QCMINFO (pack 8) */
TEST_TYPE_SIZE (QCMINFO, 32)
TEST_TYPE_ALIGN (QCMINFO, 8)
TEST_FIELD_SIZE (QCMINFO, hmenu, 8)
TEST_FIELD_ALIGN (QCMINFO, hmenu, 8)
TEST_FIELD_OFFSET(QCMINFO, hmenu, 0)
TEST_FIELD_SIZE (QCMINFO, indexMenu, 4)
TEST_FIELD_ALIGN (QCMINFO, indexMenu, 4)
TEST_FIELD_OFFSET(QCMINFO, indexMenu, 8)
TEST_FIELD_SIZE (QCMINFO, idCmdFirst, 4)
TEST_FIELD_ALIGN (QCMINFO, idCmdFirst, 4)
TEST_FIELD_OFFSET(QCMINFO, idCmdFirst, 12)
TEST_FIELD_SIZE (QCMINFO, idCmdLast, 4)
TEST_FIELD_ALIGN (QCMINFO, idCmdLast, 4)
TEST_FIELD_OFFSET(QCMINFO, idCmdLast, 16)
TEST_FIELD_SIZE (QCMINFO, pIdMap, 8)
TEST_FIELD_ALIGN (QCMINFO, pIdMap, 8)
TEST_FIELD_OFFSET(QCMINFO, pIdMap, 24)
}
static void test_pack_QCMINFO_IDMAP(void)
{
/* QCMINFO_IDMAP (pack 8) */
TEST_TYPE_SIZE (QCMINFO_IDMAP, 12)
TEST_TYPE_ALIGN (QCMINFO_IDMAP, 4)
TEST_FIELD_SIZE (QCMINFO_IDMAP, nMaxIds, 4)
TEST_FIELD_ALIGN (QCMINFO_IDMAP, nMaxIds, 4)
TEST_FIELD_OFFSET(QCMINFO_IDMAP, nMaxIds, 0)
TEST_FIELD_SIZE (QCMINFO_IDMAP, pIdList, 8)
TEST_FIELD_ALIGN (QCMINFO_IDMAP, pIdList, 4)
TEST_FIELD_OFFSET(QCMINFO_IDMAP, pIdList, 4)
}
static void test_pack_QCMINFO_IDMAP_PLACEMENT(void)
{
/* QCMINFO_IDMAP_PLACEMENT (pack 8) */
TEST_TYPE_SIZE (QCMINFO_IDMAP_PLACEMENT, 8)
TEST_TYPE_ALIGN (QCMINFO_IDMAP_PLACEMENT, 4)
TEST_FIELD_SIZE (QCMINFO_IDMAP_PLACEMENT, id, 4)
TEST_FIELD_ALIGN (QCMINFO_IDMAP_PLACEMENT, id, 4)
TEST_FIELD_OFFSET(QCMINFO_IDMAP_PLACEMENT, id, 0)
TEST_FIELD_SIZE (QCMINFO_IDMAP_PLACEMENT, fFlags, 4)
TEST_FIELD_ALIGN (QCMINFO_IDMAP_PLACEMENT, fFlags, 4)
TEST_FIELD_OFFSET(QCMINFO_IDMAP_PLACEMENT, fFlags, 4)
}
static void test_pack_SHChangeDWORDAsIDList(void)
{
/* SHChangeDWORDAsIDList (pack 1) */
TEST_TYPE_SIZE (SHChangeDWORDAsIDList, 12)
TEST_TYPE_ALIGN (SHChangeDWORDAsIDList, 1)
TEST_FIELD_SIZE (SHChangeDWORDAsIDList, cb, 2)
TEST_FIELD_ALIGN (SHChangeDWORDAsIDList, cb, 1)
TEST_FIELD_OFFSET(SHChangeDWORDAsIDList, cb, 0)
TEST_FIELD_SIZE (SHChangeDWORDAsIDList, dwItem1, 4)
TEST_FIELD_ALIGN (SHChangeDWORDAsIDList, dwItem1, 1)
TEST_FIELD_OFFSET(SHChangeDWORDAsIDList, dwItem1, 2)
TEST_FIELD_SIZE (SHChangeDWORDAsIDList, dwItem2, 4)
TEST_FIELD_ALIGN (SHChangeDWORDAsIDList, dwItem2, 1)
TEST_FIELD_OFFSET(SHChangeDWORDAsIDList, dwItem2, 6)
TEST_FIELD_SIZE (SHChangeDWORDAsIDList, cbZero, 2)
TEST_FIELD_ALIGN (SHChangeDWORDAsIDList, cbZero, 1)
TEST_FIELD_OFFSET(SHChangeDWORDAsIDList, cbZero, 10)
}
static void test_pack_SHChangeNotifyEntry(void)
{
/* SHChangeNotifyEntry (pack 1) */
TEST_TYPE_SIZE (SHChangeNotifyEntry, 12)
TEST_TYPE_ALIGN (SHChangeNotifyEntry, 1)
TEST_FIELD_SIZE (SHChangeNotifyEntry, pidl, 8)
TEST_FIELD_ALIGN (SHChangeNotifyEntry, pidl, 1)
TEST_FIELD_OFFSET(SHChangeNotifyEntry, pidl, 0)
TEST_FIELD_SIZE (SHChangeNotifyEntry, fRecursive, 4)
TEST_FIELD_ALIGN (SHChangeNotifyEntry, fRecursive, 1)
TEST_FIELD_OFFSET(SHChangeNotifyEntry, fRecursive, 8)
}
static void test_pack_SHChangeProductKeyAsIDList(void)
{
/* SHChangeProductKeyAsIDList (pack 1) */
TEST_TYPE_SIZE (SHChangeProductKeyAsIDList, 82)
TEST_TYPE_ALIGN (SHChangeProductKeyAsIDList, 1)
TEST_FIELD_SIZE (SHChangeProductKeyAsIDList, cb, 2)
TEST_FIELD_ALIGN (SHChangeProductKeyAsIDList, cb, 1)
TEST_FIELD_OFFSET(SHChangeProductKeyAsIDList, cb, 0)
TEST_FIELD_SIZE (SHChangeProductKeyAsIDList, wszProductKey, 78)
TEST_FIELD_ALIGN (SHChangeProductKeyAsIDList, wszProductKey, 1)
TEST_FIELD_OFFSET(SHChangeProductKeyAsIDList, wszProductKey, 2)
TEST_FIELD_SIZE (SHChangeProductKeyAsIDList, cbZero, 2)
TEST_FIELD_ALIGN (SHChangeProductKeyAsIDList, cbZero, 1)
TEST_FIELD_OFFSET(SHChangeProductKeyAsIDList, cbZero, 80)
}
static void test_pack_SHDESCRIPTIONID(void)
{
/* SHDESCRIPTIONID (pack 8) */
TEST_TYPE_SIZE (SHDESCRIPTIONID, 20)
TEST_TYPE_ALIGN (SHDESCRIPTIONID, 4)
TEST_FIELD_SIZE (SHDESCRIPTIONID, dwDescriptionId, 4)
TEST_FIELD_ALIGN (SHDESCRIPTIONID, dwDescriptionId, 4)
TEST_FIELD_OFFSET(SHDESCRIPTIONID, dwDescriptionId, 0)
TEST_FIELD_SIZE (SHDESCRIPTIONID, clsid, 16)
TEST_FIELD_ALIGN (SHDESCRIPTIONID, clsid, 4)
TEST_FIELD_OFFSET(SHDESCRIPTIONID, clsid, 4)
}
static void test_pack_SHELLFLAGSTATE(void)
{
/* SHELLFLAGSTATE (pack 1) */
TEST_TYPE_SIZE (SHELLFLAGSTATE, 4)
TEST_TYPE_ALIGN (SHELLFLAGSTATE, 1)
}
static void test_pack_SHELLSTATE(void)
{
/* SHELLSTATE (pack 1) */
TEST_TYPE_SIZE (SHELLSTATE, 32)
TEST_TYPE_ALIGN (SHELLSTATE, 1)
TEST_FIELD_SIZE (SHELLSTATE, dwWin95Unused, 4)
TEST_FIELD_ALIGN (SHELLSTATE, dwWin95Unused, 1)
TEST_FIELD_OFFSET(SHELLSTATE, dwWin95Unused, 4)
TEST_FIELD_SIZE (SHELLSTATE, uWin95Unused, 4)
TEST_FIELD_ALIGN (SHELLSTATE, uWin95Unused, 1)
TEST_FIELD_OFFSET(SHELLSTATE, uWin95Unused, 8)
TEST_FIELD_SIZE (SHELLSTATE, lParamSort, 4)
TEST_FIELD_ALIGN (SHELLSTATE, lParamSort, 1)
TEST_FIELD_OFFSET(SHELLSTATE, lParamSort, 12)
TEST_FIELD_SIZE (SHELLSTATE, iSortDirection, 4)
TEST_FIELD_ALIGN (SHELLSTATE, iSortDirection, 1)
TEST_FIELD_OFFSET(SHELLSTATE, iSortDirection, 16)
TEST_FIELD_SIZE (SHELLSTATE, version, 4)
TEST_FIELD_ALIGN (SHELLSTATE, version, 1)
TEST_FIELD_OFFSET(SHELLSTATE, version, 20)
TEST_FIELD_SIZE (SHELLSTATE, uNotUsed, 4)
TEST_FIELD_ALIGN (SHELLSTATE, uNotUsed, 1)
TEST_FIELD_OFFSET(SHELLSTATE, uNotUsed, 24)
}
static void test_pack_TBINFO(void)
{
/* TBINFO (pack 8) */
TEST_TYPE_SIZE (TBINFO, 8)
TEST_TYPE_ALIGN (TBINFO, 4)
TEST_FIELD_SIZE (TBINFO, cbuttons, 4)
TEST_FIELD_ALIGN (TBINFO, cbuttons, 4)
TEST_FIELD_OFFSET(TBINFO, cbuttons, 0)
TEST_FIELD_SIZE (TBINFO, uFlags, 4)
TEST_FIELD_ALIGN (TBINFO, uFlags, 4)
TEST_FIELD_OFFSET(TBINFO, uFlags, 4)
}
#else /* _WIN64 */
static void test_pack_BLOB(void)
{
/* BLOB (pack 4) */
/* BLOB */
TEST_TYPE_SIZE (BLOB, 8)
TEST_TYPE_ALIGN (BLOB, 4)
TEST_FIELD_SIZE (BLOB, cbSize, 4)
......@@ -118,7 +1888,7 @@ static void test_pack_BSTR(void)
static void test_pack_BSTRBLOB(void)
{
/* BSTRBLOB (pack 4) */
/* BSTRBLOB */
TEST_TYPE_SIZE (BSTRBLOB, 8)
TEST_TYPE_ALIGN (BSTRBLOB, 4)
TEST_FIELD_SIZE (BSTRBLOB, cbSize, 4)
......@@ -131,7 +1901,7 @@ static void test_pack_BSTRBLOB(void)
static void test_pack_BYTE_BLOB(void)
{
/* BYTE_BLOB (pack 4) */
/* BYTE_BLOB */
TEST_TYPE_SIZE (BYTE_BLOB, 8)
TEST_TYPE_ALIGN (BYTE_BLOB, 4)
TEST_FIELD_SIZE (BYTE_BLOB, clSize, 4)
......@@ -144,7 +1914,7 @@ static void test_pack_BYTE_BLOB(void)
static void test_pack_BYTE_SIZEDARR(void)
{
/* BYTE_SIZEDARR (pack 4) */
/* BYTE_SIZEDARR */
TEST_TYPE_SIZE (BYTE_SIZEDARR, 8)
TEST_TYPE_ALIGN (BYTE_SIZEDARR, 4)
TEST_FIELD_SIZE (BYTE_SIZEDARR, clSize, 4)
......@@ -157,7 +1927,7 @@ static void test_pack_BYTE_SIZEDARR(void)
static void test_pack_CLIPDATA(void)
{
/* CLIPDATA (pack 4) */
/* CLIPDATA */
TEST_TYPE_SIZE (CLIPDATA, 12)
TEST_TYPE_ALIGN (CLIPDATA, 4)
TEST_FIELD_SIZE (CLIPDATA, cbSize, 4)
......@@ -181,7 +1951,7 @@ static void test_pack_CLIPFORMAT(void)
static void test_pack_COAUTHIDENTITY(void)
{
/* COAUTHIDENTITY (pack 4) */
/* COAUTHIDENTITY */
TEST_TYPE_SIZE (COAUTHIDENTITY, 28)
TEST_TYPE_ALIGN (COAUTHIDENTITY, 4)
TEST_FIELD_SIZE (COAUTHIDENTITY, User, 4)
......@@ -209,7 +1979,7 @@ static void test_pack_COAUTHIDENTITY(void)
static void test_pack_COAUTHINFO(void)
{
/* COAUTHINFO (pack 4) */
/* COAUTHINFO */
TEST_TYPE_SIZE (COAUTHINFO, 28)
TEST_TYPE_ALIGN (COAUTHINFO, 4)
TEST_FIELD_SIZE (COAUTHINFO, dwAuthnSvc, 4)
......@@ -251,7 +2021,7 @@ static void test_pack_DOUBLE(void)
static void test_pack_DWORD_SIZEDARR(void)
{
/* DWORD_SIZEDARR (pack 4) */
/* DWORD_SIZEDARR */
TEST_TYPE_SIZE (DWORD_SIZEDARR, 8)
TEST_TYPE_ALIGN (DWORD_SIZEDARR, 4)
TEST_FIELD_SIZE (DWORD_SIZEDARR, clSize, 4)
......@@ -264,7 +2034,7 @@ static void test_pack_DWORD_SIZEDARR(void)
static void test_pack_FLAGGED_BYTE_BLOB(void)
{
/* FLAGGED_BYTE_BLOB (pack 4) */
/* FLAGGED_BYTE_BLOB */
TEST_TYPE_SIZE (FLAGGED_BYTE_BLOB, 12)
TEST_TYPE_ALIGN (FLAGGED_BYTE_BLOB, 4)
TEST_FIELD_SIZE (FLAGGED_BYTE_BLOB, fFlags, 4)
......@@ -280,7 +2050,7 @@ static void test_pack_FLAGGED_BYTE_BLOB(void)
static void test_pack_FLAGGED_WORD_BLOB(void)
{
/* FLAGGED_WORD_BLOB (pack 4) */
/* FLAGGED_WORD_BLOB */
TEST_TYPE_SIZE (FLAGGED_WORD_BLOB, 12)
TEST_TYPE_ALIGN (FLAGGED_WORD_BLOB, 4)
TEST_FIELD_SIZE (FLAGGED_WORD_BLOB, fFlags, 4)
......@@ -303,7 +2073,7 @@ static void test_pack_HMETAFILEPICT(void)
static void test_pack_HYPER_SIZEDARR(void)
{
/* HYPER_SIZEDARR (pack 4) */
/* HYPER_SIZEDARR */
TEST_TYPE_SIZE (HYPER_SIZEDARR, 8)
TEST_TYPE_ALIGN (HYPER_SIZEDARR, 4)
TEST_FIELD_SIZE (HYPER_SIZEDARR, clSize, 4)
......@@ -385,7 +2155,7 @@ static void test_pack_PROPID(void)
static void test_pack_RemHBITMAP(void)
{
/* RemHBITMAP (pack 4) */
/* RemHBITMAP */
TEST_TYPE_SIZE (RemHBITMAP, 8)
TEST_TYPE_ALIGN (RemHBITMAP, 4)
TEST_FIELD_SIZE (RemHBITMAP, cbData, 4)
......@@ -398,7 +2168,7 @@ static void test_pack_RemHBITMAP(void)
static void test_pack_RemHENHMETAFILE(void)
{
/* RemHENHMETAFILE (pack 4) */
/* RemHENHMETAFILE */
TEST_TYPE_SIZE (RemHENHMETAFILE, 8)
TEST_TYPE_ALIGN (RemHENHMETAFILE, 4)
TEST_FIELD_SIZE (RemHENHMETAFILE, cbData, 4)
......@@ -411,7 +2181,7 @@ static void test_pack_RemHENHMETAFILE(void)
static void test_pack_RemHGLOBAL(void)
{
/* RemHGLOBAL (pack 4) */
/* RemHGLOBAL */
TEST_TYPE_SIZE (RemHGLOBAL, 12)
TEST_TYPE_ALIGN (RemHGLOBAL, 4)
TEST_FIELD_SIZE (RemHGLOBAL, fNullHGlobal, 4)
......@@ -427,7 +2197,7 @@ static void test_pack_RemHGLOBAL(void)
static void test_pack_RemHMETAFILEPICT(void)
{
/* RemHMETAFILEPICT (pack 4) */
/* RemHMETAFILEPICT */
TEST_TYPE_SIZE (RemHMETAFILEPICT, 20)
TEST_TYPE_ALIGN (RemHMETAFILEPICT, 4)
TEST_FIELD_SIZE (RemHMETAFILEPICT, mm, 4)
......@@ -449,7 +2219,7 @@ static void test_pack_RemHMETAFILEPICT(void)
static void test_pack_RemHPALETTE(void)
{
/* RemHPALETTE (pack 4) */
/* RemHPALETTE */
TEST_TYPE_SIZE (RemHPALETTE, 8)
TEST_TYPE_ALIGN (RemHPALETTE, 4)
TEST_FIELD_SIZE (RemHPALETTE, cbData, 4)
......@@ -512,7 +2282,7 @@ static void test_pack_VARTYPE(void)
static void test_pack_WORD_SIZEDARR(void)
{
/* WORD_SIZEDARR (pack 4) */
/* WORD_SIZEDARR */
TEST_TYPE_SIZE (WORD_SIZEDARR, 8)
TEST_TYPE_ALIGN (WORD_SIZEDARR, 4)
TEST_FIELD_SIZE (WORD_SIZEDARR, clSize, 4)
......@@ -525,7 +2295,7 @@ static void test_pack_WORD_SIZEDARR(void)
static void test_pack_remoteMETAFILEPICT(void)
{
/* remoteMETAFILEPICT (pack 4) */
/* remoteMETAFILEPICT */
TEST_TYPE_SIZE (remoteMETAFILEPICT, 16)
TEST_TYPE_ALIGN (remoteMETAFILEPICT, 4)
TEST_FIELD_SIZE (remoteMETAFILEPICT, mm, 4)
......@@ -544,7 +2314,7 @@ static void test_pack_remoteMETAFILEPICT(void)
static void test_pack_userBITMAP(void)
{
/* userBITMAP (pack 4) */
/* userBITMAP */
TEST_TYPE_SIZE (userBITMAP, 28)
TEST_TYPE_ALIGN (userBITMAP, 4)
TEST_FIELD_SIZE (userBITMAP, bmType, 4)
......@@ -575,7 +2345,7 @@ static void test_pack_userBITMAP(void)
static void test_pack_userCLIPFORMAT(void)
{
/* userCLIPFORMAT (pack 4) */
/* userCLIPFORMAT */
TEST_FIELD_SIZE (userCLIPFORMAT, fContext, 4)
TEST_FIELD_ALIGN (userCLIPFORMAT, fContext, 4)
TEST_FIELD_OFFSET(userCLIPFORMAT, fContext, 0)
......@@ -583,7 +2353,7 @@ static void test_pack_userCLIPFORMAT(void)
static void test_pack_userHBITMAP(void)
{
/* userHBITMAP (pack 4) */
/* userHBITMAP */
TEST_FIELD_SIZE (userHBITMAP, fContext, 4)
TEST_FIELD_ALIGN (userHBITMAP, fContext, 4)
TEST_FIELD_OFFSET(userHBITMAP, fContext, 0)
......@@ -591,7 +2361,7 @@ static void test_pack_userHBITMAP(void)
static void test_pack_userHENHMETAFILE(void)
{
/* userHENHMETAFILE (pack 4) */
/* userHENHMETAFILE */
TEST_FIELD_SIZE (userHENHMETAFILE, fContext, 4)
TEST_FIELD_ALIGN (userHENHMETAFILE, fContext, 4)
TEST_FIELD_OFFSET(userHENHMETAFILE, fContext, 0)
......@@ -599,7 +2369,7 @@ static void test_pack_userHENHMETAFILE(void)
static void test_pack_userHGLOBAL(void)
{
/* userHGLOBAL (pack 4) */
/* userHGLOBAL */
TEST_FIELD_SIZE (userHGLOBAL, fContext, 4)
TEST_FIELD_ALIGN (userHGLOBAL, fContext, 4)
TEST_FIELD_OFFSET(userHGLOBAL, fContext, 0)
......@@ -607,7 +2377,7 @@ static void test_pack_userHGLOBAL(void)
static void test_pack_userHMETAFILE(void)
{
/* userHMETAFILE (pack 4) */
/* userHMETAFILE */
TEST_FIELD_SIZE (userHMETAFILE, fContext, 4)
TEST_FIELD_ALIGN (userHMETAFILE, fContext, 4)
TEST_FIELD_OFFSET(userHMETAFILE, fContext, 0)
......@@ -615,7 +2385,7 @@ static void test_pack_userHMETAFILE(void)
static void test_pack_userHMETAFILEPICT(void)
{
/* userHMETAFILEPICT (pack 4) */
/* userHMETAFILEPICT */
TEST_FIELD_SIZE (userHMETAFILEPICT, fContext, 4)
TEST_FIELD_ALIGN (userHMETAFILEPICT, fContext, 4)
TEST_FIELD_OFFSET(userHMETAFILEPICT, fContext, 0)
......@@ -623,7 +2393,7 @@ static void test_pack_userHMETAFILEPICT(void)
static void test_pack_userHPALETTE(void)
{
/* userHPALETTE (pack 4) */
/* userHPALETTE */
TEST_FIELD_SIZE (userHPALETTE, fContext, 4)
TEST_FIELD_ALIGN (userHPALETTE, fContext, 4)
TEST_FIELD_OFFSET(userHPALETTE, fContext, 0)
......@@ -1268,7 +3038,7 @@ static void test_pack_SHITEMID(void)
static void test_pack_STRRET(void)
{
/* STRRET (pack 4) */
/* STRRET (pack 8) */
TEST_FIELD_SIZE (STRRET, uType, 4)
TEST_FIELD_ALIGN (STRRET, uType, 4)
TEST_FIELD_OFFSET(STRRET, uType, 0)
......@@ -1872,6 +3642,8 @@ static void test_pack_TBINFO(void)
TEST_FIELD_OFFSET(TBINFO, uFlags, 4)
}
#endif /* _WIN64 */
static void test_pack(void)
{
test_pack_APPBARDATA();
......@@ -2013,9 +3785,5 @@ static void test_pack(void)
START_TEST(generated)
{
#ifdef _WIN64
ok(0, "The type size / alignment tests don't support Win64 yet\n");
#else
test_pack();
#endif
}
......@@ -56,41 +56,102 @@
* Test helper macros
*/
#ifdef _WIN64
#define TEST_TYPE_SIZE(type, size) C_ASSERT(sizeof(type) == size);
# define TEST_TYPE_SIZE(type, size)
#ifdef TYPE_ALIGNMENT
# define TEST_TYPE_ALIGN(type, align) C_ASSERT(TYPE_ALIGNMENT(type) == align);
#else
# define TEST_TYPE_ALIGN(type, align)
#endif
#ifdef _TYPE_ALIGNMENT
# define TEST_TARGET_ALIGN(type, align) C_ASSERT(_TYPE_ALIGNMENT(*(type)0) == align);
# define TEST_FIELD_ALIGN(type, field, align) C_ASSERT(_TYPE_ALIGNMENT(((type*)0)->field) == align);
#else
# define TEST_TARGET_ALIGN(type, align)
# define TEST_FIELD_ALIGN(type, field, align)
# define TEST_FIELD_OFFSET(type, field, offset)
#endif
#else
#define TEST_FIELD_OFFSET(type, field, offset) C_ASSERT(FIELD_OFFSET(type, field) == offset);
# define TEST_TYPE_SIZE(type, size) C_ASSERT(sizeof(type) == size);
#define TEST_TARGET_SIZE(type, size) TEST_TYPE_SIZE(*(type)0, size)
#define TEST_FIELD_SIZE(type, field, size) TEST_TYPE_SIZE((((type*)0)->field), size)
#define TEST_TYPE_SIGNED(type) C_ASSERT((type) -1 < 0);
#define TEST_TYPE_UNSIGNED(type) C_ASSERT((type) -1 > 0);
# ifdef TYPE_ALIGNMENT
# define TEST_TYPE_ALIGN(type, align) C_ASSERT(TYPE_ALIGNMENT(type) == align);
# else
# define TEST_TYPE_ALIGN(type, align)
# endif
# ifdef _TYPE_ALIGNMENT
# define TEST_TARGET_ALIGN(type, align) C_ASSERT(_TYPE_ALIGNMENT(*(type)0) == align);
# define TEST_FIELD_ALIGN(type, field, align) C_ASSERT(_TYPE_ALIGNMENT(((type*)0)->field) == align);
# else
# define TEST_TARGET_ALIGN(type, align)
# define TEST_FIELD_ALIGN(type, field, align)
# endif
#ifdef _WIN64
# define TEST_FIELD_OFFSET(type, field, offset) C_ASSERT(FIELD_OFFSET(type, field) == offset);
static void test_pack_ASSOCF(void)
{
/* ASSOCF */
TEST_TYPE_SIZE (ASSOCF, 4)
TEST_TYPE_ALIGN (ASSOCF, 4)
TEST_TYPE_UNSIGNED(ASSOCF)
}
#endif
static void test_pack_DLLGETVERSIONPROC(void)
{
/* DLLGETVERSIONPROC */
TEST_TYPE_SIZE (DLLGETVERSIONPROC, 8)
TEST_TYPE_ALIGN (DLLGETVERSIONPROC, 8)
}
#define TEST_TARGET_SIZE(type, size) TEST_TYPE_SIZE(*(type)0, size)
#define TEST_FIELD_SIZE(type, field, size) TEST_TYPE_SIZE((((type*)0)->field), size)
#define TEST_TYPE_SIGNED(type) C_ASSERT((type) -1 < 0);
#define TEST_TYPE_UNSIGNED(type) C_ASSERT((type) -1 > 0);
static void test_pack_DLLVERSIONINFO(void)
{
/* DLLVERSIONINFO (pack 8) */
TEST_TYPE_SIZE (DLLVERSIONINFO, 20)
TEST_TYPE_ALIGN (DLLVERSIONINFO, 4)
TEST_FIELD_SIZE (DLLVERSIONINFO, cbSize, 4)
TEST_FIELD_ALIGN (DLLVERSIONINFO, cbSize, 4)
TEST_FIELD_OFFSET(DLLVERSIONINFO, cbSize, 0)
TEST_FIELD_SIZE (DLLVERSIONINFO, dwMajorVersion, 4)
TEST_FIELD_ALIGN (DLLVERSIONINFO, dwMajorVersion, 4)
TEST_FIELD_OFFSET(DLLVERSIONINFO, dwMajorVersion, 4)
TEST_FIELD_SIZE (DLLVERSIONINFO, dwMinorVersion, 4)
TEST_FIELD_ALIGN (DLLVERSIONINFO, dwMinorVersion, 4)
TEST_FIELD_OFFSET(DLLVERSIONINFO, dwMinorVersion, 8)
TEST_FIELD_SIZE (DLLVERSIONINFO, dwBuildNumber, 4)
TEST_FIELD_ALIGN (DLLVERSIONINFO, dwBuildNumber, 4)
TEST_FIELD_OFFSET(DLLVERSIONINFO, dwBuildNumber, 12)
TEST_FIELD_SIZE (DLLVERSIONINFO, dwPlatformID, 4)
TEST_FIELD_ALIGN (DLLVERSIONINFO, dwPlatformID, 4)
TEST_FIELD_OFFSET(DLLVERSIONINFO, dwPlatformID, 16)
}
static void test_pack_DLLVERSIONINFO2(void)
{
/* DLLVERSIONINFO2 (pack 8) */
TEST_TYPE_SIZE (DLLVERSIONINFO2, 32)
TEST_TYPE_ALIGN (DLLVERSIONINFO2, 8)
TEST_FIELD_SIZE (DLLVERSIONINFO2, info1, 20)
TEST_FIELD_ALIGN (DLLVERSIONINFO2, info1, 4)
TEST_FIELD_OFFSET(DLLVERSIONINFO2, info1, 0)
TEST_FIELD_SIZE (DLLVERSIONINFO2, dwFlags, 4)
TEST_FIELD_ALIGN (DLLVERSIONINFO2, dwFlags, 4)
TEST_FIELD_OFFSET(DLLVERSIONINFO2, dwFlags, 20)
TEST_FIELD_SIZE (DLLVERSIONINFO2, ullVersion, 8)
TEST_FIELD_ALIGN (DLLVERSIONINFO2, ullVersion, 8)
TEST_FIELD_OFFSET(DLLVERSIONINFO2, ullVersion, 24)
}
static void test_pack_HUSKEY(void)
{
/* HUSKEY */
TEST_TYPE_SIZE (HUSKEY, 8)
TEST_TYPE_ALIGN (HUSKEY, 8)
}
static void test_pack_PHUSKEY(void)
{
/* PHUSKEY */
TEST_TYPE_SIZE (PHUSKEY, 8)
TEST_TYPE_ALIGN (PHUSKEY, 8)
TEST_TARGET_SIZE (PHUSKEY, 8)
TEST_TARGET_ALIGN(PHUSKEY, 8)
}
#else /* _WIN64 */
static void test_pack_ASSOCF(void)
{
......@@ -161,6 +222,8 @@ static void test_pack_PHUSKEY(void)
TEST_TARGET_ALIGN(PHUSKEY, 4)
}
#endif /* _WIN64 */
static void test_pack(void)
{
test_pack_ASSOCF();
......@@ -173,9 +236,5 @@ static void test_pack(void)
START_TEST(generated)
{
#ifdef _WIN64
ok(0, "The type size / alignment tests don't support Win64 yet\n");
#else
test_pack();
#endif
}
......@@ -54,45 +54,289 @@
* Test helper macros
*/
#ifdef _WIN64
#define TEST_TYPE_SIZE(type, size) C_ASSERT(sizeof(type) == size);
# define TEST_TYPE_SIZE(type, size)
#ifdef TYPE_ALIGNMENT
# define TEST_TYPE_ALIGN(type, align) C_ASSERT(TYPE_ALIGNMENT(type) == align);
#else
# define TEST_TYPE_ALIGN(type, align)
#endif
#ifdef _TYPE_ALIGNMENT
# define TEST_TARGET_ALIGN(type, align) C_ASSERT(_TYPE_ALIGNMENT(*(type)0) == align);
# define TEST_FIELD_ALIGN(type, field, align) C_ASSERT(_TYPE_ALIGNMENT(((type*)0)->field) == align);
#else
# define TEST_TARGET_ALIGN(type, align)
# define TEST_FIELD_ALIGN(type, field, align)
# define TEST_FIELD_OFFSET(type, field, offset)
#endif
#else
#define TEST_FIELD_OFFSET(type, field, offset) C_ASSERT(FIELD_OFFSET(type, field) == offset);
# define TEST_TYPE_SIZE(type, size) C_ASSERT(sizeof(type) == size);
#define TEST_TARGET_SIZE(type, size) TEST_TYPE_SIZE(*(type)0, size)
#define TEST_FIELD_SIZE(type, field, size) TEST_TYPE_SIZE((((type*)0)->field), size)
#define TEST_TYPE_SIGNED(type) C_ASSERT((type) -1 < 0);
#define TEST_TYPE_UNSIGNED(type) C_ASSERT((type) -1 > 0);
# ifdef TYPE_ALIGNMENT
# define TEST_TYPE_ALIGN(type, align) C_ASSERT(TYPE_ALIGNMENT(type) == align);
# else
# define TEST_TYPE_ALIGN(type, align)
# endif
# ifdef _TYPE_ALIGNMENT
# define TEST_TARGET_ALIGN(type, align) C_ASSERT(_TYPE_ALIGNMENT(*(type)0) == align);
# define TEST_FIELD_ALIGN(type, field, align) C_ASSERT(_TYPE_ALIGNMENT(((type*)0)->field) == align);
# else
# define TEST_TARGET_ALIGN(type, align)
# define TEST_FIELD_ALIGN(type, field, align)
# endif
#ifdef _WIN64
# define TEST_FIELD_OFFSET(type, field, offset) C_ASSERT(FIELD_OFFSET(type, field) == offset);
static void test_pack_BINDINFO(void)
{
/* BINDINFO */
TEST_FIELD_SIZE (BINDINFO, cbSize, 4)
TEST_FIELD_ALIGN (BINDINFO, cbSize, 4)
TEST_FIELD_OFFSET(BINDINFO, cbSize, 0)
TEST_FIELD_SIZE (BINDINFO, szExtraInfo, 8)
TEST_FIELD_ALIGN (BINDINFO, szExtraInfo, 8)
TEST_FIELD_OFFSET(BINDINFO, szExtraInfo, 8)
}
#endif
static void test_pack_IBindHost(void)
{
/* IBindHost */
}
#define TEST_TARGET_SIZE(type, size) TEST_TYPE_SIZE(*(type)0, size)
#define TEST_FIELD_SIZE(type, field, size) TEST_TYPE_SIZE((((type*)0)->field), size)
#define TEST_TYPE_SIGNED(type) C_ASSERT((type) -1 < 0);
#define TEST_TYPE_UNSIGNED(type) C_ASSERT((type) -1 > 0);
static void test_pack_IBindHostVtbl(void)
{
/* IBindHostVtbl */
}
static void test_pack_IBindStatusCallback(void)
{
/* IBindStatusCallback */
}
static void test_pack_IBindStatusCallbackVtbl(void)
{
/* IBindStatusCallbackVtbl */
}
static void test_pack_IBinding(void)
{
/* IBinding */
}
static void test_pack_IBindingVtbl(void)
{
/* IBindingVtbl */
}
static void test_pack_IInternetProtocolInfo(void)
{
/* IInternetProtocolInfo */
}
static void test_pack_IInternetProtocolInfoVtbl(void)
{
/* IInternetProtocolInfoVtbl */
}
static void test_pack_IInternetSession(void)
{
/* IInternetSession */
}
static void test_pack_IInternetSessionVtbl(void)
{
/* IInternetSessionVtbl */
}
static void test_pack_IPersistMoniker(void)
{
/* IPersistMoniker */
}
static void test_pack_IPersistMonikerVtbl(void)
{
/* IPersistMonikerVtbl */
}
static void test_pack_IWinInetHttpInfo(void)
{
/* IWinInetHttpInfo */
}
static void test_pack_IWinInetHttpInfoVtbl(void)
{
/* IWinInetHttpInfoVtbl */
}
static void test_pack_IWinInetInfo(void)
{
/* IWinInetInfo */
}
static void test_pack_IWinInetInfoVtbl(void)
{
/* IWinInetInfoVtbl */
}
static void test_pack_LPBINDHOST(void)
{
/* LPBINDHOST */
TEST_TYPE_SIZE (LPBINDHOST, 8)
TEST_TYPE_ALIGN (LPBINDHOST, 8)
}
static void test_pack_LPBINDING(void)
{
/* LPBINDING */
TEST_TYPE_SIZE (LPBINDING, 8)
TEST_TYPE_ALIGN (LPBINDING, 8)
}
static void test_pack_LPBINDSTATUSCALLBACK(void)
{
/* LPBINDSTATUSCALLBACK */
TEST_TYPE_SIZE (LPBINDSTATUSCALLBACK, 8)
TEST_TYPE_ALIGN (LPBINDSTATUSCALLBACK, 8)
}
static void test_pack_LPIINTERNETPROTOCOLINFO(void)
{
/* LPIINTERNETPROTOCOLINFO */
TEST_TYPE_SIZE (LPIINTERNETPROTOCOLINFO, 8)
TEST_TYPE_ALIGN (LPIINTERNETPROTOCOLINFO, 8)
}
static void test_pack_LPIINTERNETSESSION(void)
{
/* LPIINTERNETSESSION */
TEST_TYPE_SIZE (LPIINTERNETSESSION, 8)
TEST_TYPE_ALIGN (LPIINTERNETSESSION, 8)
}
static void test_pack_LPPERSISTMONIKER(void)
{
/* LPPERSISTMONIKER */
TEST_TYPE_SIZE (LPPERSISTMONIKER, 8)
TEST_TYPE_ALIGN (LPPERSISTMONIKER, 8)
}
static void test_pack_LPREMFORMATETC(void)
{
/* LPREMFORMATETC */
TEST_TYPE_SIZE (LPREMFORMATETC, 8)
TEST_TYPE_ALIGN (LPREMFORMATETC, 8)
}
static void test_pack_LPREMSECURITY_ATTRIBUTES(void)
{
/* LPREMSECURITY_ATTRIBUTES */
TEST_TYPE_SIZE (LPREMSECURITY_ATTRIBUTES, 8)
TEST_TYPE_ALIGN (LPREMSECURITY_ATTRIBUTES, 8)
}
static void test_pack_LPWININETHTTPINFO(void)
{
/* LPWININETHTTPINFO */
TEST_TYPE_SIZE (LPWININETHTTPINFO, 8)
TEST_TYPE_ALIGN (LPWININETHTTPINFO, 8)
}
static void test_pack_LPWININETINFO(void)
{
/* LPWININETINFO */
TEST_TYPE_SIZE (LPWININETINFO, 8)
TEST_TYPE_ALIGN (LPWININETINFO, 8)
}
static void test_pack_PREMSECURITY_ATTRIBUTES(void)
{
/* PREMSECURITY_ATTRIBUTES */
TEST_TYPE_SIZE (PREMSECURITY_ATTRIBUTES, 8)
TEST_TYPE_ALIGN (PREMSECURITY_ATTRIBUTES, 8)
}
static void test_pack_REMSECURITY_ATTRIBUTES(void)
{
/* REMSECURITY_ATTRIBUTES */
TEST_TYPE_SIZE (REMSECURITY_ATTRIBUTES, 12)
TEST_TYPE_ALIGN (REMSECURITY_ATTRIBUTES, 4)
TEST_FIELD_SIZE (REMSECURITY_ATTRIBUTES, nLength, 4)
TEST_FIELD_ALIGN (REMSECURITY_ATTRIBUTES, nLength, 4)
TEST_FIELD_OFFSET(REMSECURITY_ATTRIBUTES, nLength, 0)
TEST_FIELD_SIZE (REMSECURITY_ATTRIBUTES, lpSecurityDescriptor, 4)
TEST_FIELD_ALIGN (REMSECURITY_ATTRIBUTES, lpSecurityDescriptor, 4)
TEST_FIELD_OFFSET(REMSECURITY_ATTRIBUTES, lpSecurityDescriptor, 4)
TEST_FIELD_SIZE (REMSECURITY_ATTRIBUTES, bInheritHandle, 4)
TEST_FIELD_ALIGN (REMSECURITY_ATTRIBUTES, bInheritHandle, 4)
TEST_FIELD_OFFSET(REMSECURITY_ATTRIBUTES, bInheritHandle, 8)
}
static void test_pack_RemBINDINFO(void)
{
/* RemBINDINFO */
TEST_TYPE_SIZE (RemBINDINFO, 96)
TEST_TYPE_ALIGN (RemBINDINFO, 8)
TEST_FIELD_SIZE (RemBINDINFO, cbSize, 4)
TEST_FIELD_ALIGN (RemBINDINFO, cbSize, 4)
TEST_FIELD_OFFSET(RemBINDINFO, cbSize, 0)
TEST_FIELD_SIZE (RemBINDINFO, szExtraInfo, 8)
TEST_FIELD_ALIGN (RemBINDINFO, szExtraInfo, 8)
TEST_FIELD_OFFSET(RemBINDINFO, szExtraInfo, 8)
TEST_FIELD_SIZE (RemBINDINFO, grfBindInfoF, 4)
TEST_FIELD_ALIGN (RemBINDINFO, grfBindInfoF, 4)
TEST_FIELD_OFFSET(RemBINDINFO, grfBindInfoF, 16)
TEST_FIELD_SIZE (RemBINDINFO, dwBindVerb, 4)
TEST_FIELD_ALIGN (RemBINDINFO, dwBindVerb, 4)
TEST_FIELD_OFFSET(RemBINDINFO, dwBindVerb, 20)
TEST_FIELD_SIZE (RemBINDINFO, szCustomVerb, 8)
TEST_FIELD_ALIGN (RemBINDINFO, szCustomVerb, 8)
TEST_FIELD_OFFSET(RemBINDINFO, szCustomVerb, 24)
TEST_FIELD_SIZE (RemBINDINFO, cbstgmedData, 4)
TEST_FIELD_ALIGN (RemBINDINFO, cbstgmedData, 4)
TEST_FIELD_OFFSET(RemBINDINFO, cbstgmedData, 32)
TEST_FIELD_SIZE (RemBINDINFO, dwOptions, 4)
TEST_FIELD_ALIGN (RemBINDINFO, dwOptions, 4)
TEST_FIELD_OFFSET(RemBINDINFO, dwOptions, 36)
TEST_FIELD_SIZE (RemBINDINFO, dwOptionsFlags, 4)
TEST_FIELD_ALIGN (RemBINDINFO, dwOptionsFlags, 4)
TEST_FIELD_OFFSET(RemBINDINFO, dwOptionsFlags, 40)
TEST_FIELD_SIZE (RemBINDINFO, dwCodePage, 4)
TEST_FIELD_ALIGN (RemBINDINFO, dwCodePage, 4)
TEST_FIELD_OFFSET(RemBINDINFO, dwCodePage, 44)
TEST_FIELD_SIZE (RemBINDINFO, securityAttributes, 12)
TEST_FIELD_ALIGN (RemBINDINFO, securityAttributes, 4)
TEST_FIELD_OFFSET(RemBINDINFO, securityAttributes, 48)
TEST_FIELD_SIZE (RemBINDINFO, iid, 16)
TEST_FIELD_ALIGN (RemBINDINFO, iid, 4)
TEST_FIELD_OFFSET(RemBINDINFO, iid, 60)
TEST_FIELD_SIZE (RemBINDINFO, pUnk, 8)
TEST_FIELD_ALIGN (RemBINDINFO, pUnk, 8)
TEST_FIELD_OFFSET(RemBINDINFO, pUnk, 80)
TEST_FIELD_SIZE (RemBINDINFO, dwReserved, 4)
TEST_FIELD_ALIGN (RemBINDINFO, dwReserved, 4)
TEST_FIELD_OFFSET(RemBINDINFO, dwReserved, 88)
}
static void test_pack_RemFORMATETC(void)
{
/* RemFORMATETC */
TEST_TYPE_SIZE (RemFORMATETC, 20)
TEST_TYPE_ALIGN (RemFORMATETC, 4)
TEST_FIELD_SIZE (RemFORMATETC, cfFormat, 4)
TEST_FIELD_ALIGN (RemFORMATETC, cfFormat, 4)
TEST_FIELD_OFFSET(RemFORMATETC, cfFormat, 0)
TEST_FIELD_SIZE (RemFORMATETC, ptd, 4)
TEST_FIELD_ALIGN (RemFORMATETC, ptd, 4)
TEST_FIELD_OFFSET(RemFORMATETC, ptd, 4)
TEST_FIELD_SIZE (RemFORMATETC, dwAspect, 4)
TEST_FIELD_ALIGN (RemFORMATETC, dwAspect, 4)
TEST_FIELD_OFFSET(RemFORMATETC, dwAspect, 8)
TEST_FIELD_SIZE (RemFORMATETC, lindex, 4)
TEST_FIELD_ALIGN (RemFORMATETC, lindex, 4)
TEST_FIELD_OFFSET(RemFORMATETC, lindex, 12)
TEST_FIELD_SIZE (RemFORMATETC, tymed, 4)
TEST_FIELD_ALIGN (RemFORMATETC, tymed, 4)
TEST_FIELD_OFFSET(RemFORMATETC, tymed, 16)
}
#else /* _WIN64 */
static void test_pack_BINDINFO(void)
{
/* BINDINFO (pack 4) */
/* BINDINFO */
TEST_FIELD_SIZE (BINDINFO, cbSize, 4)
TEST_FIELD_ALIGN (BINDINFO, cbSize, 4)
TEST_FIELD_OFFSET(BINDINFO, cbSize, 0)
......@@ -108,7 +352,7 @@ static void test_pack_IBindHost(void)
static void test_pack_IBindHostVtbl(void)
{
/* IBindHostVtbl (pack 4) */
/* IBindHostVtbl */
}
static void test_pack_IBindStatusCallback(void)
......@@ -118,7 +362,7 @@ static void test_pack_IBindStatusCallback(void)
static void test_pack_IBindStatusCallbackVtbl(void)
{
/* IBindStatusCallbackVtbl (pack 4) */
/* IBindStatusCallbackVtbl */
}
static void test_pack_IBinding(void)
......@@ -128,7 +372,7 @@ static void test_pack_IBinding(void)
static void test_pack_IBindingVtbl(void)
{
/* IBindingVtbl (pack 4) */
/* IBindingVtbl */
}
static void test_pack_IInternetProtocolInfo(void)
......@@ -138,7 +382,7 @@ static void test_pack_IInternetProtocolInfo(void)
static void test_pack_IInternetProtocolInfoVtbl(void)
{
/* IInternetProtocolInfoVtbl (pack 4) */
/* IInternetProtocolInfoVtbl */
}
static void test_pack_IInternetSession(void)
......@@ -148,7 +392,7 @@ static void test_pack_IInternetSession(void)
static void test_pack_IInternetSessionVtbl(void)
{
/* IInternetSessionVtbl (pack 4) */
/* IInternetSessionVtbl */
}
static void test_pack_IPersistMoniker(void)
......@@ -158,7 +402,7 @@ static void test_pack_IPersistMoniker(void)
static void test_pack_IPersistMonikerVtbl(void)
{
/* IPersistMonikerVtbl (pack 4) */
/* IPersistMonikerVtbl */
}
static void test_pack_IWinInetHttpInfo(void)
......@@ -168,7 +412,7 @@ static void test_pack_IWinInetHttpInfo(void)
static void test_pack_IWinInetHttpInfoVtbl(void)
{
/* IWinInetHttpInfoVtbl (pack 4) */
/* IWinInetHttpInfoVtbl */
}
static void test_pack_IWinInetInfo(void)
......@@ -178,7 +422,7 @@ static void test_pack_IWinInetInfo(void)
static void test_pack_IWinInetInfoVtbl(void)
{
/* IWinInetInfoVtbl (pack 4) */
/* IWinInetInfoVtbl */
}
static void test_pack_LPBINDHOST(void)
......@@ -260,7 +504,7 @@ static void test_pack_PREMSECURITY_ATTRIBUTES(void)
static void test_pack_REMSECURITY_ATTRIBUTES(void)
{
/* REMSECURITY_ATTRIBUTES (pack 4) */
/* REMSECURITY_ATTRIBUTES */
TEST_TYPE_SIZE (REMSECURITY_ATTRIBUTES, 12)
TEST_TYPE_ALIGN (REMSECURITY_ATTRIBUTES, 4)
TEST_FIELD_SIZE (REMSECURITY_ATTRIBUTES, nLength, 4)
......@@ -276,7 +520,7 @@ static void test_pack_REMSECURITY_ATTRIBUTES(void)
static void test_pack_RemBINDINFO(void)
{
/* RemBINDINFO (pack 4) */
/* RemBINDINFO */
TEST_TYPE_SIZE (RemBINDINFO, 72)
TEST_TYPE_ALIGN (RemBINDINFO, 4)
TEST_FIELD_SIZE (RemBINDINFO, cbSize, 4)
......@@ -322,7 +566,7 @@ static void test_pack_RemBINDINFO(void)
static void test_pack_RemFORMATETC(void)
{
/* RemFORMATETC (pack 4) */
/* RemFORMATETC */
TEST_TYPE_SIZE (RemFORMATETC, 20)
TEST_TYPE_ALIGN (RemFORMATETC, 4)
TEST_FIELD_SIZE (RemFORMATETC, cfFormat, 4)
......@@ -342,6 +586,8 @@ static void test_pack_RemFORMATETC(void)
TEST_FIELD_OFFSET(RemFORMATETC, tymed, 16)
}
#endif /* _WIN64 */
static void test_pack(void)
{
test_pack_BINDINFO();
......@@ -379,9 +625,5 @@ static void test_pack(void)
START_TEST(generated)
{
#ifdef _WIN64
ok(0, "The type size / alignment tests don't support Win64 yet\n");
#else
test_pack();
#endif
}
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -55,45 +55,1272 @@
* Test helper macros
*/
#define TEST_TYPE_SIZE(type, size) C_ASSERT(sizeof(type) == size);
#ifdef TYPE_ALIGNMENT
# define TEST_TYPE_ALIGN(type, align) C_ASSERT(TYPE_ALIGNMENT(type) == align);
#else
# define TEST_TYPE_ALIGN(type, align)
#endif
#ifdef _TYPE_ALIGNMENT
# define TEST_TARGET_ALIGN(type, align) C_ASSERT(_TYPE_ALIGNMENT(*(type)0) == align);
# define TEST_FIELD_ALIGN(type, field, align) C_ASSERT(_TYPE_ALIGNMENT(((type*)0)->field) == align);
#else
# define TEST_TARGET_ALIGN(type, align)
# define TEST_FIELD_ALIGN(type, field, align)
#endif
#define TEST_FIELD_OFFSET(type, field, offset) C_ASSERT(FIELD_OFFSET(type, field) == offset);
#define TEST_TARGET_SIZE(type, size) TEST_TYPE_SIZE(*(type)0, size)
#define TEST_FIELD_SIZE(type, field, size) TEST_TYPE_SIZE((((type*)0)->field), size)
#define TEST_TYPE_SIGNED(type) C_ASSERT((type) -1 < 0);
#define TEST_TYPE_UNSIGNED(type) C_ASSERT((type) -1 > 0);
#ifdef _WIN64
# define TEST_TYPE_SIZE(type, size)
# define TEST_TYPE_ALIGN(type, align)
# define TEST_TARGET_ALIGN(type, align)
# define TEST_FIELD_ALIGN(type, field, align)
# define TEST_FIELD_OFFSET(type, field, offset)
static void test_pack_GOPHER_ABSTRACT_ATTRIBUTE_TYPEA(void)
{
/* GOPHER_ABSTRACT_ATTRIBUTE_TYPEA */
TEST_TYPE_SIZE (GOPHER_ABSTRACT_ATTRIBUTE_TYPEA, 16)
TEST_TYPE_ALIGN (GOPHER_ABSTRACT_ATTRIBUTE_TYPEA, 8)
TEST_FIELD_SIZE (GOPHER_ABSTRACT_ATTRIBUTE_TYPEA, ShortAbstract, 8)
TEST_FIELD_ALIGN (GOPHER_ABSTRACT_ATTRIBUTE_TYPEA, ShortAbstract, 8)
TEST_FIELD_OFFSET(GOPHER_ABSTRACT_ATTRIBUTE_TYPEA, ShortAbstract, 0)
TEST_FIELD_SIZE (GOPHER_ABSTRACT_ATTRIBUTE_TYPEA, AbstractFile, 8)
TEST_FIELD_ALIGN (GOPHER_ABSTRACT_ATTRIBUTE_TYPEA, AbstractFile, 8)
TEST_FIELD_OFFSET(GOPHER_ABSTRACT_ATTRIBUTE_TYPEA, AbstractFile, 8)
}
static void test_pack_GOPHER_ABSTRACT_ATTRIBUTE_TYPEW(void)
{
/* GOPHER_ABSTRACT_ATTRIBUTE_TYPEW */
TEST_TYPE_SIZE (GOPHER_ABSTRACT_ATTRIBUTE_TYPEW, 16)
TEST_TYPE_ALIGN (GOPHER_ABSTRACT_ATTRIBUTE_TYPEW, 8)
TEST_FIELD_SIZE (GOPHER_ABSTRACT_ATTRIBUTE_TYPEW, ShortAbstract, 8)
TEST_FIELD_ALIGN (GOPHER_ABSTRACT_ATTRIBUTE_TYPEW, ShortAbstract, 8)
TEST_FIELD_OFFSET(GOPHER_ABSTRACT_ATTRIBUTE_TYPEW, ShortAbstract, 0)
TEST_FIELD_SIZE (GOPHER_ABSTRACT_ATTRIBUTE_TYPEW, AbstractFile, 8)
TEST_FIELD_ALIGN (GOPHER_ABSTRACT_ATTRIBUTE_TYPEW, AbstractFile, 8)
TEST_FIELD_OFFSET(GOPHER_ABSTRACT_ATTRIBUTE_TYPEW, AbstractFile, 8)
}
static void test_pack_GOPHER_ADMIN_ATTRIBUTE_TYPEA(void)
{
/* GOPHER_ADMIN_ATTRIBUTE_TYPEA */
TEST_TYPE_SIZE (GOPHER_ADMIN_ATTRIBUTE_TYPEA, 16)
TEST_TYPE_ALIGN (GOPHER_ADMIN_ATTRIBUTE_TYPEA, 8)
TEST_FIELD_SIZE (GOPHER_ADMIN_ATTRIBUTE_TYPEA, Comment, 8)
TEST_FIELD_ALIGN (GOPHER_ADMIN_ATTRIBUTE_TYPEA, Comment, 8)
TEST_FIELD_OFFSET(GOPHER_ADMIN_ATTRIBUTE_TYPEA, Comment, 0)
TEST_FIELD_SIZE (GOPHER_ADMIN_ATTRIBUTE_TYPEA, EmailAddress, 8)
TEST_FIELD_ALIGN (GOPHER_ADMIN_ATTRIBUTE_TYPEA, EmailAddress, 8)
TEST_FIELD_OFFSET(GOPHER_ADMIN_ATTRIBUTE_TYPEA, EmailAddress, 8)
}
static void test_pack_GOPHER_ADMIN_ATTRIBUTE_TYPEW(void)
{
/* GOPHER_ADMIN_ATTRIBUTE_TYPEW */
TEST_TYPE_SIZE (GOPHER_ADMIN_ATTRIBUTE_TYPEW, 16)
TEST_TYPE_ALIGN (GOPHER_ADMIN_ATTRIBUTE_TYPEW, 8)
TEST_FIELD_SIZE (GOPHER_ADMIN_ATTRIBUTE_TYPEW, Comment, 8)
TEST_FIELD_ALIGN (GOPHER_ADMIN_ATTRIBUTE_TYPEW, Comment, 8)
TEST_FIELD_OFFSET(GOPHER_ADMIN_ATTRIBUTE_TYPEW, Comment, 0)
TEST_FIELD_SIZE (GOPHER_ADMIN_ATTRIBUTE_TYPEW, EmailAddress, 8)
TEST_FIELD_ALIGN (GOPHER_ADMIN_ATTRIBUTE_TYPEW, EmailAddress, 8)
TEST_FIELD_OFFSET(GOPHER_ADMIN_ATTRIBUTE_TYPEW, EmailAddress, 8)
}
static void test_pack_GOPHER_ASK_ATTRIBUTE_TYPEA(void)
{
/* GOPHER_ASK_ATTRIBUTE_TYPEA */
TEST_TYPE_SIZE (GOPHER_ASK_ATTRIBUTE_TYPEA, 16)
TEST_TYPE_ALIGN (GOPHER_ASK_ATTRIBUTE_TYPEA, 8)
TEST_FIELD_SIZE (GOPHER_ASK_ATTRIBUTE_TYPEA, QuestionType, 8)
TEST_FIELD_ALIGN (GOPHER_ASK_ATTRIBUTE_TYPEA, QuestionType, 8)
TEST_FIELD_OFFSET(GOPHER_ASK_ATTRIBUTE_TYPEA, QuestionType, 0)
TEST_FIELD_SIZE (GOPHER_ASK_ATTRIBUTE_TYPEA, QuestionText, 8)
TEST_FIELD_ALIGN (GOPHER_ASK_ATTRIBUTE_TYPEA, QuestionText, 8)
TEST_FIELD_OFFSET(GOPHER_ASK_ATTRIBUTE_TYPEA, QuestionText, 8)
}
static void test_pack_GOPHER_ASK_ATTRIBUTE_TYPEW(void)
{
/* GOPHER_ASK_ATTRIBUTE_TYPEW */
TEST_TYPE_SIZE (GOPHER_ASK_ATTRIBUTE_TYPEW, 16)
TEST_TYPE_ALIGN (GOPHER_ASK_ATTRIBUTE_TYPEW, 8)
TEST_FIELD_SIZE (GOPHER_ASK_ATTRIBUTE_TYPEW, QuestionType, 8)
TEST_FIELD_ALIGN (GOPHER_ASK_ATTRIBUTE_TYPEW, QuestionType, 8)
TEST_FIELD_OFFSET(GOPHER_ASK_ATTRIBUTE_TYPEW, QuestionType, 0)
TEST_FIELD_SIZE (GOPHER_ASK_ATTRIBUTE_TYPEW, QuestionText, 8)
TEST_FIELD_ALIGN (GOPHER_ASK_ATTRIBUTE_TYPEW, QuestionText, 8)
TEST_FIELD_OFFSET(GOPHER_ASK_ATTRIBUTE_TYPEW, QuestionText, 8)
}
static void test_pack_GOPHER_ATTRIBUTE_ENUMERATORA(void)
{
/* GOPHER_ATTRIBUTE_ENUMERATORA */
TEST_TYPE_SIZE (GOPHER_ATTRIBUTE_ENUMERATORA, 8)
TEST_TYPE_ALIGN (GOPHER_ATTRIBUTE_ENUMERATORA, 8)
}
static void test_pack_GOPHER_ATTRIBUTE_ENUMERATORW(void)
{
/* GOPHER_ATTRIBUTE_ENUMERATORW */
TEST_TYPE_SIZE (GOPHER_ATTRIBUTE_ENUMERATORW, 8)
TEST_TYPE_ALIGN (GOPHER_ATTRIBUTE_ENUMERATORW, 8)
}
static void test_pack_GOPHER_ATTRIBUTE_TYPEA(void)
{
/* GOPHER_ATTRIBUTE_TYPEA */
TEST_FIELD_SIZE (GOPHER_ATTRIBUTE_TYPEA, CategoryId, 4)
TEST_FIELD_ALIGN (GOPHER_ATTRIBUTE_TYPEA, CategoryId, 4)
TEST_FIELD_OFFSET(GOPHER_ATTRIBUTE_TYPEA, CategoryId, 0)
TEST_FIELD_SIZE (GOPHER_ATTRIBUTE_TYPEA, AttributeId, 4)
TEST_FIELD_ALIGN (GOPHER_ATTRIBUTE_TYPEA, AttributeId, 4)
TEST_FIELD_OFFSET(GOPHER_ATTRIBUTE_TYPEA, AttributeId, 4)
}
static void test_pack_GOPHER_ATTRIBUTE_TYPEW(void)
{
/* GOPHER_ATTRIBUTE_TYPEW */
TEST_FIELD_SIZE (GOPHER_ATTRIBUTE_TYPEW, CategoryId, 4)
TEST_FIELD_ALIGN (GOPHER_ATTRIBUTE_TYPEW, CategoryId, 4)
TEST_FIELD_OFFSET(GOPHER_ATTRIBUTE_TYPEW, CategoryId, 0)
TEST_FIELD_SIZE (GOPHER_ATTRIBUTE_TYPEW, AttributeId, 4)
TEST_FIELD_ALIGN (GOPHER_ATTRIBUTE_TYPEW, AttributeId, 4)
TEST_FIELD_OFFSET(GOPHER_ATTRIBUTE_TYPEW, AttributeId, 4)
}
static void test_pack_GOPHER_FIND_DATAA(void)
{
/* GOPHER_FIND_DATAA */
TEST_TYPE_SIZE (GOPHER_FIND_DATAA, 808)
TEST_TYPE_ALIGN (GOPHER_FIND_DATAA, 4)
TEST_FIELD_SIZE (GOPHER_FIND_DATAA, DisplayString, 129)
TEST_FIELD_ALIGN (GOPHER_FIND_DATAA, DisplayString, 1)
TEST_FIELD_OFFSET(GOPHER_FIND_DATAA, DisplayString, 0)
TEST_FIELD_SIZE (GOPHER_FIND_DATAA, GopherType, 4)
TEST_FIELD_ALIGN (GOPHER_FIND_DATAA, GopherType, 4)
TEST_FIELD_OFFSET(GOPHER_FIND_DATAA, GopherType, 132)
TEST_FIELD_SIZE (GOPHER_FIND_DATAA, SizeLow, 4)
TEST_FIELD_ALIGN (GOPHER_FIND_DATAA, SizeLow, 4)
TEST_FIELD_OFFSET(GOPHER_FIND_DATAA, SizeLow, 136)
TEST_FIELD_SIZE (GOPHER_FIND_DATAA, SizeHigh, 4)
TEST_FIELD_ALIGN (GOPHER_FIND_DATAA, SizeHigh, 4)
TEST_FIELD_OFFSET(GOPHER_FIND_DATAA, SizeHigh, 140)
TEST_FIELD_SIZE (GOPHER_FIND_DATAA, LastModificationTime, 8)
TEST_FIELD_ALIGN (GOPHER_FIND_DATAA, LastModificationTime, 4)
TEST_FIELD_OFFSET(GOPHER_FIND_DATAA, LastModificationTime, 144)
TEST_FIELD_SIZE (GOPHER_FIND_DATAA, Locator, 654)
TEST_FIELD_ALIGN (GOPHER_FIND_DATAA, Locator, 1)
TEST_FIELD_OFFSET(GOPHER_FIND_DATAA, Locator, 152)
}
static void test_pack_GOPHER_FIND_DATAW(void)
{
/* GOPHER_FIND_DATAW */
TEST_TYPE_SIZE (GOPHER_FIND_DATAW, 1588)
TEST_TYPE_ALIGN (GOPHER_FIND_DATAW, 4)
TEST_FIELD_SIZE (GOPHER_FIND_DATAW, DisplayString, 258)
TEST_FIELD_ALIGN (GOPHER_FIND_DATAW, DisplayString, 2)
TEST_FIELD_OFFSET(GOPHER_FIND_DATAW, DisplayString, 0)
TEST_FIELD_SIZE (GOPHER_FIND_DATAW, GopherType, 4)
TEST_FIELD_ALIGN (GOPHER_FIND_DATAW, GopherType, 4)
TEST_FIELD_OFFSET(GOPHER_FIND_DATAW, GopherType, 260)
TEST_FIELD_SIZE (GOPHER_FIND_DATAW, SizeLow, 4)
TEST_FIELD_ALIGN (GOPHER_FIND_DATAW, SizeLow, 4)
TEST_FIELD_OFFSET(GOPHER_FIND_DATAW, SizeLow, 264)
TEST_FIELD_SIZE (GOPHER_FIND_DATAW, SizeHigh, 4)
TEST_FIELD_ALIGN (GOPHER_FIND_DATAW, SizeHigh, 4)
TEST_FIELD_OFFSET(GOPHER_FIND_DATAW, SizeHigh, 268)
TEST_FIELD_SIZE (GOPHER_FIND_DATAW, LastModificationTime, 8)
TEST_FIELD_ALIGN (GOPHER_FIND_DATAW, LastModificationTime, 4)
TEST_FIELD_OFFSET(GOPHER_FIND_DATAW, LastModificationTime, 272)
TEST_FIELD_SIZE (GOPHER_FIND_DATAW, Locator, 1308)
TEST_FIELD_ALIGN (GOPHER_FIND_DATAW, Locator, 2)
TEST_FIELD_OFFSET(GOPHER_FIND_DATAW, Locator, 280)
}
static void test_pack_GOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE(void)
{
/* GOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE */
TEST_TYPE_SIZE (GOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE, 24)
TEST_TYPE_ALIGN (GOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE, 4)
TEST_FIELD_SIZE (GOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE, DegreesNorth, 4)
TEST_FIELD_ALIGN (GOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE, DegreesNorth, 4)
TEST_FIELD_OFFSET(GOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE, DegreesNorth, 0)
TEST_FIELD_SIZE (GOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE, MinutesNorth, 4)
TEST_FIELD_ALIGN (GOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE, MinutesNorth, 4)
TEST_FIELD_OFFSET(GOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE, MinutesNorth, 4)
TEST_FIELD_SIZE (GOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE, SecondsNorth, 4)
TEST_FIELD_ALIGN (GOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE, SecondsNorth, 4)
TEST_FIELD_OFFSET(GOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE, SecondsNorth, 8)
TEST_FIELD_SIZE (GOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE, DegreesEast, 4)
TEST_FIELD_ALIGN (GOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE, DegreesEast, 4)
TEST_FIELD_OFFSET(GOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE, DegreesEast, 12)
TEST_FIELD_SIZE (GOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE, MinutesEast, 4)
TEST_FIELD_ALIGN (GOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE, MinutesEast, 4)
TEST_FIELD_OFFSET(GOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE, MinutesEast, 16)
TEST_FIELD_SIZE (GOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE, SecondsEast, 4)
TEST_FIELD_ALIGN (GOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE, SecondsEast, 4)
TEST_FIELD_OFFSET(GOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE, SecondsEast, 20)
}
static void test_pack_GOPHER_LOCATION_ATTRIBUTE_TYPEA(void)
{
/* GOPHER_LOCATION_ATTRIBUTE_TYPEA */
TEST_TYPE_SIZE (GOPHER_LOCATION_ATTRIBUTE_TYPEA, 8)
TEST_TYPE_ALIGN (GOPHER_LOCATION_ATTRIBUTE_TYPEA, 8)
TEST_FIELD_SIZE (GOPHER_LOCATION_ATTRIBUTE_TYPEA, Location, 8)
TEST_FIELD_ALIGN (GOPHER_LOCATION_ATTRIBUTE_TYPEA, Location, 8)
TEST_FIELD_OFFSET(GOPHER_LOCATION_ATTRIBUTE_TYPEA, Location, 0)
}
static void test_pack_GOPHER_LOCATION_ATTRIBUTE_TYPEW(void)
{
/* GOPHER_LOCATION_ATTRIBUTE_TYPEW */
TEST_TYPE_SIZE (GOPHER_LOCATION_ATTRIBUTE_TYPEW, 8)
TEST_TYPE_ALIGN (GOPHER_LOCATION_ATTRIBUTE_TYPEW, 8)
TEST_FIELD_SIZE (GOPHER_LOCATION_ATTRIBUTE_TYPEW, Location, 8)
TEST_FIELD_ALIGN (GOPHER_LOCATION_ATTRIBUTE_TYPEW, Location, 8)
TEST_FIELD_OFFSET(GOPHER_LOCATION_ATTRIBUTE_TYPEW, Location, 0)
}
static void test_pack_GOPHER_MOD_DATE_ATTRIBUTE_TYPE(void)
{
/* GOPHER_MOD_DATE_ATTRIBUTE_TYPE */
TEST_TYPE_SIZE (GOPHER_MOD_DATE_ATTRIBUTE_TYPE, 8)
TEST_TYPE_ALIGN (GOPHER_MOD_DATE_ATTRIBUTE_TYPE, 4)
TEST_FIELD_SIZE (GOPHER_MOD_DATE_ATTRIBUTE_TYPE, DateAndTime, 8)
TEST_FIELD_ALIGN (GOPHER_MOD_DATE_ATTRIBUTE_TYPE, DateAndTime, 4)
TEST_FIELD_OFFSET(GOPHER_MOD_DATE_ATTRIBUTE_TYPE, DateAndTime, 0)
}
static void test_pack_GOPHER_ORGANIZATION_ATTRIBUTE_TYPEA(void)
{
/* GOPHER_ORGANIZATION_ATTRIBUTE_TYPEA */
TEST_TYPE_SIZE (GOPHER_ORGANIZATION_ATTRIBUTE_TYPEA, 8)
TEST_TYPE_ALIGN (GOPHER_ORGANIZATION_ATTRIBUTE_TYPEA, 8)
TEST_FIELD_SIZE (GOPHER_ORGANIZATION_ATTRIBUTE_TYPEA, Organization, 8)
TEST_FIELD_ALIGN (GOPHER_ORGANIZATION_ATTRIBUTE_TYPEA, Organization, 8)
TEST_FIELD_OFFSET(GOPHER_ORGANIZATION_ATTRIBUTE_TYPEA, Organization, 0)
}
static void test_pack_GOPHER_ORGANIZATION_ATTRIBUTE_TYPEW(void)
{
/* GOPHER_ORGANIZATION_ATTRIBUTE_TYPEW */
TEST_TYPE_SIZE (GOPHER_ORGANIZATION_ATTRIBUTE_TYPEW, 8)
TEST_TYPE_ALIGN (GOPHER_ORGANIZATION_ATTRIBUTE_TYPEW, 8)
TEST_FIELD_SIZE (GOPHER_ORGANIZATION_ATTRIBUTE_TYPEW, Organization, 8)
TEST_FIELD_ALIGN (GOPHER_ORGANIZATION_ATTRIBUTE_TYPEW, Organization, 8)
TEST_FIELD_OFFSET(GOPHER_ORGANIZATION_ATTRIBUTE_TYPEW, Organization, 0)
}
static void test_pack_GOPHER_PROVIDER_ATTRIBUTE_TYPEA(void)
{
/* GOPHER_PROVIDER_ATTRIBUTE_TYPEA */
TEST_TYPE_SIZE (GOPHER_PROVIDER_ATTRIBUTE_TYPEA, 8)
TEST_TYPE_ALIGN (GOPHER_PROVIDER_ATTRIBUTE_TYPEA, 8)
TEST_FIELD_SIZE (GOPHER_PROVIDER_ATTRIBUTE_TYPEA, Provider, 8)
TEST_FIELD_ALIGN (GOPHER_PROVIDER_ATTRIBUTE_TYPEA, Provider, 8)
TEST_FIELD_OFFSET(GOPHER_PROVIDER_ATTRIBUTE_TYPEA, Provider, 0)
}
static void test_pack_GOPHER_PROVIDER_ATTRIBUTE_TYPEW(void)
{
/* GOPHER_PROVIDER_ATTRIBUTE_TYPEW */
TEST_TYPE_SIZE (GOPHER_PROVIDER_ATTRIBUTE_TYPEW, 8)
TEST_TYPE_ALIGN (GOPHER_PROVIDER_ATTRIBUTE_TYPEW, 8)
TEST_FIELD_SIZE (GOPHER_PROVIDER_ATTRIBUTE_TYPEW, Provider, 8)
TEST_FIELD_ALIGN (GOPHER_PROVIDER_ATTRIBUTE_TYPEW, Provider, 8)
TEST_FIELD_OFFSET(GOPHER_PROVIDER_ATTRIBUTE_TYPEW, Provider, 0)
}
static void test_pack_GOPHER_SCORE_ATTRIBUTE_TYPE(void)
{
/* GOPHER_SCORE_ATTRIBUTE_TYPE */
TEST_TYPE_SIZE (GOPHER_SCORE_ATTRIBUTE_TYPE, 4)
TEST_TYPE_ALIGN (GOPHER_SCORE_ATTRIBUTE_TYPE, 4)
TEST_FIELD_SIZE (GOPHER_SCORE_ATTRIBUTE_TYPE, Score, 4)
TEST_FIELD_ALIGN (GOPHER_SCORE_ATTRIBUTE_TYPE, Score, 4)
TEST_FIELD_OFFSET(GOPHER_SCORE_ATTRIBUTE_TYPE, Score, 0)
}
static void test_pack_GOPHER_SCORE_RANGE_ATTRIBUTE_TYPE(void)
{
/* GOPHER_SCORE_RANGE_ATTRIBUTE_TYPE */
TEST_TYPE_SIZE (GOPHER_SCORE_RANGE_ATTRIBUTE_TYPE, 8)
TEST_TYPE_ALIGN (GOPHER_SCORE_RANGE_ATTRIBUTE_TYPE, 4)
TEST_FIELD_SIZE (GOPHER_SCORE_RANGE_ATTRIBUTE_TYPE, LowerBound, 4)
TEST_FIELD_ALIGN (GOPHER_SCORE_RANGE_ATTRIBUTE_TYPE, LowerBound, 4)
TEST_FIELD_OFFSET(GOPHER_SCORE_RANGE_ATTRIBUTE_TYPE, LowerBound, 0)
TEST_FIELD_SIZE (GOPHER_SCORE_RANGE_ATTRIBUTE_TYPE, UpperBound, 4)
TEST_FIELD_ALIGN (GOPHER_SCORE_RANGE_ATTRIBUTE_TYPE, UpperBound, 4)
TEST_FIELD_OFFSET(GOPHER_SCORE_RANGE_ATTRIBUTE_TYPE, UpperBound, 4)
}
static void test_pack_GOPHER_SITE_ATTRIBUTE_TYPEA(void)
{
/* GOPHER_SITE_ATTRIBUTE_TYPEA */
TEST_TYPE_SIZE (GOPHER_SITE_ATTRIBUTE_TYPEA, 8)
TEST_TYPE_ALIGN (GOPHER_SITE_ATTRIBUTE_TYPEA, 8)
TEST_FIELD_SIZE (GOPHER_SITE_ATTRIBUTE_TYPEA, Site, 8)
TEST_FIELD_ALIGN (GOPHER_SITE_ATTRIBUTE_TYPEA, Site, 8)
TEST_FIELD_OFFSET(GOPHER_SITE_ATTRIBUTE_TYPEA, Site, 0)
}
static void test_pack_GOPHER_SITE_ATTRIBUTE_TYPEW(void)
{
/* GOPHER_SITE_ATTRIBUTE_TYPEW */
TEST_TYPE_SIZE (GOPHER_SITE_ATTRIBUTE_TYPEW, 8)
TEST_TYPE_ALIGN (GOPHER_SITE_ATTRIBUTE_TYPEW, 8)
TEST_FIELD_SIZE (GOPHER_SITE_ATTRIBUTE_TYPEW, Site, 8)
TEST_FIELD_ALIGN (GOPHER_SITE_ATTRIBUTE_TYPEW, Site, 8)
TEST_FIELD_OFFSET(GOPHER_SITE_ATTRIBUTE_TYPEW, Site, 0)
}
static void test_pack_GOPHER_TIMEZONE_ATTRIBUTE_TYPE(void)
{
/* GOPHER_TIMEZONE_ATTRIBUTE_TYPE */
TEST_TYPE_SIZE (GOPHER_TIMEZONE_ATTRIBUTE_TYPE, 4)
TEST_TYPE_ALIGN (GOPHER_TIMEZONE_ATTRIBUTE_TYPE, 4)
TEST_FIELD_SIZE (GOPHER_TIMEZONE_ATTRIBUTE_TYPE, Zone, 4)
TEST_FIELD_ALIGN (GOPHER_TIMEZONE_ATTRIBUTE_TYPE, Zone, 4)
TEST_FIELD_OFFSET(GOPHER_TIMEZONE_ATTRIBUTE_TYPE, Zone, 0)
}
static void test_pack_GOPHER_TTL_ATTRIBUTE_TYPE(void)
{
/* GOPHER_TTL_ATTRIBUTE_TYPE */
TEST_TYPE_SIZE (GOPHER_TTL_ATTRIBUTE_TYPE, 4)
TEST_TYPE_ALIGN (GOPHER_TTL_ATTRIBUTE_TYPE, 4)
TEST_FIELD_SIZE (GOPHER_TTL_ATTRIBUTE_TYPE, Ttl, 4)
TEST_FIELD_ALIGN (GOPHER_TTL_ATTRIBUTE_TYPE, Ttl, 4)
TEST_FIELD_OFFSET(GOPHER_TTL_ATTRIBUTE_TYPE, Ttl, 0)
}
static void test_pack_GOPHER_UNKNOWN_ATTRIBUTE_TYPEA(void)
{
/* GOPHER_UNKNOWN_ATTRIBUTE_TYPEA */
TEST_TYPE_SIZE (GOPHER_UNKNOWN_ATTRIBUTE_TYPEA, 8)
TEST_TYPE_ALIGN (GOPHER_UNKNOWN_ATTRIBUTE_TYPEA, 8)
TEST_FIELD_SIZE (GOPHER_UNKNOWN_ATTRIBUTE_TYPEA, Text, 8)
TEST_FIELD_ALIGN (GOPHER_UNKNOWN_ATTRIBUTE_TYPEA, Text, 8)
TEST_FIELD_OFFSET(GOPHER_UNKNOWN_ATTRIBUTE_TYPEA, Text, 0)
}
static void test_pack_GOPHER_UNKNOWN_ATTRIBUTE_TYPEW(void)
{
/* GOPHER_UNKNOWN_ATTRIBUTE_TYPEW */
TEST_TYPE_SIZE (GOPHER_UNKNOWN_ATTRIBUTE_TYPEW, 8)
TEST_TYPE_ALIGN (GOPHER_UNKNOWN_ATTRIBUTE_TYPEW, 8)
TEST_FIELD_SIZE (GOPHER_UNKNOWN_ATTRIBUTE_TYPEW, Text, 8)
TEST_FIELD_ALIGN (GOPHER_UNKNOWN_ATTRIBUTE_TYPEW, Text, 8)
TEST_FIELD_OFFSET(GOPHER_UNKNOWN_ATTRIBUTE_TYPEW, Text, 0)
}
static void test_pack_GOPHER_VERONICA_ATTRIBUTE_TYPE(void)
{
/* GOPHER_VERONICA_ATTRIBUTE_TYPE */
TEST_TYPE_SIZE (GOPHER_VERONICA_ATTRIBUTE_TYPE, 4)
TEST_TYPE_ALIGN (GOPHER_VERONICA_ATTRIBUTE_TYPE, 4)
TEST_FIELD_SIZE (GOPHER_VERONICA_ATTRIBUTE_TYPE, TreeWalk, 4)
TEST_FIELD_ALIGN (GOPHER_VERONICA_ATTRIBUTE_TYPE, TreeWalk, 4)
TEST_FIELD_OFFSET(GOPHER_VERONICA_ATTRIBUTE_TYPE, TreeWalk, 0)
}
static void test_pack_GOPHER_VERSION_ATTRIBUTE_TYPEA(void)
{
/* GOPHER_VERSION_ATTRIBUTE_TYPEA */
TEST_TYPE_SIZE (GOPHER_VERSION_ATTRIBUTE_TYPEA, 8)
TEST_TYPE_ALIGN (GOPHER_VERSION_ATTRIBUTE_TYPEA, 8)
TEST_FIELD_SIZE (GOPHER_VERSION_ATTRIBUTE_TYPEA, Version, 8)
TEST_FIELD_ALIGN (GOPHER_VERSION_ATTRIBUTE_TYPEA, Version, 8)
TEST_FIELD_OFFSET(GOPHER_VERSION_ATTRIBUTE_TYPEA, Version, 0)
}
static void test_pack_GOPHER_VERSION_ATTRIBUTE_TYPEW(void)
{
/* GOPHER_VERSION_ATTRIBUTE_TYPEW */
TEST_TYPE_SIZE (GOPHER_VERSION_ATTRIBUTE_TYPEW, 8)
TEST_TYPE_ALIGN (GOPHER_VERSION_ATTRIBUTE_TYPEW, 8)
TEST_FIELD_SIZE (GOPHER_VERSION_ATTRIBUTE_TYPEW, Version, 8)
TEST_FIELD_ALIGN (GOPHER_VERSION_ATTRIBUTE_TYPEW, Version, 8)
TEST_FIELD_OFFSET(GOPHER_VERSION_ATTRIBUTE_TYPEW, Version, 0)
}
static void test_pack_GOPHER_VIEW_ATTRIBUTE_TYPEA(void)
{
/* GOPHER_VIEW_ATTRIBUTE_TYPEA */
TEST_TYPE_SIZE (GOPHER_VIEW_ATTRIBUTE_TYPEA, 24)
TEST_TYPE_ALIGN (GOPHER_VIEW_ATTRIBUTE_TYPEA, 8)
TEST_FIELD_SIZE (GOPHER_VIEW_ATTRIBUTE_TYPEA, ContentType, 8)
TEST_FIELD_ALIGN (GOPHER_VIEW_ATTRIBUTE_TYPEA, ContentType, 8)
TEST_FIELD_OFFSET(GOPHER_VIEW_ATTRIBUTE_TYPEA, ContentType, 0)
TEST_FIELD_SIZE (GOPHER_VIEW_ATTRIBUTE_TYPEA, Language, 8)
TEST_FIELD_ALIGN (GOPHER_VIEW_ATTRIBUTE_TYPEA, Language, 8)
TEST_FIELD_OFFSET(GOPHER_VIEW_ATTRIBUTE_TYPEA, Language, 8)
TEST_FIELD_SIZE (GOPHER_VIEW_ATTRIBUTE_TYPEA, Size, 4)
TEST_FIELD_ALIGN (GOPHER_VIEW_ATTRIBUTE_TYPEA, Size, 4)
TEST_FIELD_OFFSET(GOPHER_VIEW_ATTRIBUTE_TYPEA, Size, 16)
}
static void test_pack_GOPHER_VIEW_ATTRIBUTE_TYPEW(void)
{
/* GOPHER_VIEW_ATTRIBUTE_TYPEW */
TEST_TYPE_SIZE (GOPHER_VIEW_ATTRIBUTE_TYPEW, 24)
TEST_TYPE_ALIGN (GOPHER_VIEW_ATTRIBUTE_TYPEW, 8)
TEST_FIELD_SIZE (GOPHER_VIEW_ATTRIBUTE_TYPEW, ContentType, 8)
TEST_FIELD_ALIGN (GOPHER_VIEW_ATTRIBUTE_TYPEW, ContentType, 8)
TEST_FIELD_OFFSET(GOPHER_VIEW_ATTRIBUTE_TYPEW, ContentType, 0)
TEST_FIELD_SIZE (GOPHER_VIEW_ATTRIBUTE_TYPEW, Language, 8)
TEST_FIELD_ALIGN (GOPHER_VIEW_ATTRIBUTE_TYPEW, Language, 8)
TEST_FIELD_OFFSET(GOPHER_VIEW_ATTRIBUTE_TYPEW, Language, 8)
TEST_FIELD_SIZE (GOPHER_VIEW_ATTRIBUTE_TYPEW, Size, 4)
TEST_FIELD_ALIGN (GOPHER_VIEW_ATTRIBUTE_TYPEW, Size, 4)
TEST_FIELD_OFFSET(GOPHER_VIEW_ATTRIBUTE_TYPEW, Size, 16)
}
static void test_pack_GROUPID(void)
{
/* GROUPID */
TEST_TYPE_SIZE (GROUPID, 8)
TEST_TYPE_ALIGN (GROUPID, 8)
TEST_TYPE_SIGNED(GROUPID)
}
static void test_pack_HINTERNET(void)
{
/* HINTERNET */
TEST_TYPE_SIZE (HINTERNET, 8)
TEST_TYPE_ALIGN (HINTERNET, 8)
}
static void test_pack_HTTP_VERSION_INFO(void)
{
/* HTTP_VERSION_INFO */
TEST_TYPE_SIZE (HTTP_VERSION_INFO, 8)
TEST_TYPE_ALIGN (HTTP_VERSION_INFO, 4)
TEST_FIELD_SIZE (HTTP_VERSION_INFO, dwMajorVersion, 4)
TEST_FIELD_ALIGN (HTTP_VERSION_INFO, dwMajorVersion, 4)
TEST_FIELD_OFFSET(HTTP_VERSION_INFO, dwMajorVersion, 0)
TEST_FIELD_SIZE (HTTP_VERSION_INFO, dwMinorVersion, 4)
TEST_FIELD_ALIGN (HTTP_VERSION_INFO, dwMinorVersion, 4)
TEST_FIELD_OFFSET(HTTP_VERSION_INFO, dwMinorVersion, 4)
}
static void test_pack_INTERNET_ASYNC_RESULT(void)
{
/* INTERNET_ASYNC_RESULT */
TEST_TYPE_SIZE (INTERNET_ASYNC_RESULT, 16)
TEST_TYPE_ALIGN (INTERNET_ASYNC_RESULT, 8)
TEST_FIELD_SIZE (INTERNET_ASYNC_RESULT, dwResult, 8)
TEST_FIELD_ALIGN (INTERNET_ASYNC_RESULT, dwResult, 8)
TEST_FIELD_OFFSET(INTERNET_ASYNC_RESULT, dwResult, 0)
TEST_FIELD_SIZE (INTERNET_ASYNC_RESULT, dwError, 4)
TEST_FIELD_ALIGN (INTERNET_ASYNC_RESULT, dwError, 4)
TEST_FIELD_OFFSET(INTERNET_ASYNC_RESULT, dwError, 8)
}
static void test_pack_INTERNET_AUTH_NOTIFY_DATA(void)
{
/* INTERNET_AUTH_NOTIFY_DATA */
TEST_TYPE_SIZE (INTERNET_AUTH_NOTIFY_DATA, 24)
TEST_TYPE_ALIGN (INTERNET_AUTH_NOTIFY_DATA, 8)
TEST_FIELD_SIZE (INTERNET_AUTH_NOTIFY_DATA, cbStruct, 4)
TEST_FIELD_ALIGN (INTERNET_AUTH_NOTIFY_DATA, cbStruct, 4)
TEST_FIELD_OFFSET(INTERNET_AUTH_NOTIFY_DATA, cbStruct, 0)
TEST_FIELD_SIZE (INTERNET_AUTH_NOTIFY_DATA, dwOptions, 4)
TEST_FIELD_ALIGN (INTERNET_AUTH_NOTIFY_DATA, dwOptions, 4)
TEST_FIELD_OFFSET(INTERNET_AUTH_NOTIFY_DATA, dwOptions, 4)
TEST_FIELD_SIZE (INTERNET_AUTH_NOTIFY_DATA, pfnNotify, 8)
TEST_FIELD_ALIGN (INTERNET_AUTH_NOTIFY_DATA, pfnNotify, 8)
TEST_FIELD_OFFSET(INTERNET_AUTH_NOTIFY_DATA, pfnNotify, 8)
TEST_FIELD_SIZE (INTERNET_AUTH_NOTIFY_DATA, dwContext, 8)
TEST_FIELD_ALIGN (INTERNET_AUTH_NOTIFY_DATA, dwContext, 8)
TEST_FIELD_OFFSET(INTERNET_AUTH_NOTIFY_DATA, dwContext, 16)
}
static void test_pack_INTERNET_BUFFERSA(void)
{
/* INTERNET_BUFFERSA */
TEST_TYPE_SIZE (INTERNET_BUFFERSA, 56)
TEST_TYPE_ALIGN (INTERNET_BUFFERSA, 8)
TEST_FIELD_SIZE (INTERNET_BUFFERSA, dwStructSize, 4)
TEST_FIELD_ALIGN (INTERNET_BUFFERSA, dwStructSize, 4)
TEST_FIELD_OFFSET(INTERNET_BUFFERSA, dwStructSize, 0)
TEST_FIELD_SIZE (INTERNET_BUFFERSA, Next, 8)
TEST_FIELD_ALIGN (INTERNET_BUFFERSA, Next, 8)
TEST_FIELD_OFFSET(INTERNET_BUFFERSA, Next, 8)
TEST_FIELD_SIZE (INTERNET_BUFFERSA, lpcszHeader, 8)
TEST_FIELD_ALIGN (INTERNET_BUFFERSA, lpcszHeader, 8)
TEST_FIELD_OFFSET(INTERNET_BUFFERSA, lpcszHeader, 16)
TEST_FIELD_SIZE (INTERNET_BUFFERSA, dwHeadersLength, 4)
TEST_FIELD_ALIGN (INTERNET_BUFFERSA, dwHeadersLength, 4)
TEST_FIELD_OFFSET(INTERNET_BUFFERSA, dwHeadersLength, 24)
TEST_FIELD_SIZE (INTERNET_BUFFERSA, dwHeadersTotal, 4)
TEST_FIELD_ALIGN (INTERNET_BUFFERSA, dwHeadersTotal, 4)
TEST_FIELD_OFFSET(INTERNET_BUFFERSA, dwHeadersTotal, 28)
TEST_FIELD_SIZE (INTERNET_BUFFERSA, lpvBuffer, 8)
TEST_FIELD_ALIGN (INTERNET_BUFFERSA, lpvBuffer, 8)
TEST_FIELD_OFFSET(INTERNET_BUFFERSA, lpvBuffer, 32)
TEST_FIELD_SIZE (INTERNET_BUFFERSA, dwBufferLength, 4)
TEST_FIELD_ALIGN (INTERNET_BUFFERSA, dwBufferLength, 4)
TEST_FIELD_OFFSET(INTERNET_BUFFERSA, dwBufferLength, 40)
TEST_FIELD_SIZE (INTERNET_BUFFERSA, dwBufferTotal, 4)
TEST_FIELD_ALIGN (INTERNET_BUFFERSA, dwBufferTotal, 4)
TEST_FIELD_OFFSET(INTERNET_BUFFERSA, dwBufferTotal, 44)
TEST_FIELD_SIZE (INTERNET_BUFFERSA, dwOffsetLow, 4)
TEST_FIELD_ALIGN (INTERNET_BUFFERSA, dwOffsetLow, 4)
TEST_FIELD_OFFSET(INTERNET_BUFFERSA, dwOffsetLow, 48)
TEST_FIELD_SIZE (INTERNET_BUFFERSA, dwOffsetHigh, 4)
TEST_FIELD_ALIGN (INTERNET_BUFFERSA, dwOffsetHigh, 4)
TEST_FIELD_OFFSET(INTERNET_BUFFERSA, dwOffsetHigh, 52)
}
static void test_pack_INTERNET_BUFFERSW(void)
{
/* INTERNET_BUFFERSW */
TEST_TYPE_SIZE (INTERNET_BUFFERSW, 56)
TEST_TYPE_ALIGN (INTERNET_BUFFERSW, 8)
TEST_FIELD_SIZE (INTERNET_BUFFERSW, dwStructSize, 4)
TEST_FIELD_ALIGN (INTERNET_BUFFERSW, dwStructSize, 4)
TEST_FIELD_OFFSET(INTERNET_BUFFERSW, dwStructSize, 0)
TEST_FIELD_SIZE (INTERNET_BUFFERSW, Next, 8)
TEST_FIELD_ALIGN (INTERNET_BUFFERSW, Next, 8)
TEST_FIELD_OFFSET(INTERNET_BUFFERSW, Next, 8)
TEST_FIELD_SIZE (INTERNET_BUFFERSW, lpcszHeader, 8)
TEST_FIELD_ALIGN (INTERNET_BUFFERSW, lpcszHeader, 8)
TEST_FIELD_OFFSET(INTERNET_BUFFERSW, lpcszHeader, 16)
TEST_FIELD_SIZE (INTERNET_BUFFERSW, dwHeadersLength, 4)
TEST_FIELD_ALIGN (INTERNET_BUFFERSW, dwHeadersLength, 4)
TEST_FIELD_OFFSET(INTERNET_BUFFERSW, dwHeadersLength, 24)
TEST_FIELD_SIZE (INTERNET_BUFFERSW, dwHeadersTotal, 4)
TEST_FIELD_ALIGN (INTERNET_BUFFERSW, dwHeadersTotal, 4)
TEST_FIELD_OFFSET(INTERNET_BUFFERSW, dwHeadersTotal, 28)
TEST_FIELD_SIZE (INTERNET_BUFFERSW, lpvBuffer, 8)
TEST_FIELD_ALIGN (INTERNET_BUFFERSW, lpvBuffer, 8)
TEST_FIELD_OFFSET(INTERNET_BUFFERSW, lpvBuffer, 32)
TEST_FIELD_SIZE (INTERNET_BUFFERSW, dwBufferLength, 4)
TEST_FIELD_ALIGN (INTERNET_BUFFERSW, dwBufferLength, 4)
TEST_FIELD_OFFSET(INTERNET_BUFFERSW, dwBufferLength, 40)
TEST_FIELD_SIZE (INTERNET_BUFFERSW, dwBufferTotal, 4)
TEST_FIELD_ALIGN (INTERNET_BUFFERSW, dwBufferTotal, 4)
TEST_FIELD_OFFSET(INTERNET_BUFFERSW, dwBufferTotal, 44)
TEST_FIELD_SIZE (INTERNET_BUFFERSW, dwOffsetLow, 4)
TEST_FIELD_ALIGN (INTERNET_BUFFERSW, dwOffsetLow, 4)
TEST_FIELD_OFFSET(INTERNET_BUFFERSW, dwOffsetLow, 48)
TEST_FIELD_SIZE (INTERNET_BUFFERSW, dwOffsetHigh, 4)
TEST_FIELD_ALIGN (INTERNET_BUFFERSW, dwOffsetHigh, 4)
TEST_FIELD_OFFSET(INTERNET_BUFFERSW, dwOffsetHigh, 52)
}
static void test_pack_INTERNET_CACHE_ENTRY_INFOA(void)
{
/* INTERNET_CACHE_ENTRY_INFOA */
TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOA, dwStructSize, 4)
TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOA, dwStructSize, 4)
TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOA, dwStructSize, 0)
TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOA, lpszSourceUrlName, 8)
TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOA, lpszSourceUrlName, 8)
TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOA, lpszSourceUrlName, 8)
TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOA, lpszLocalFileName, 8)
TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOA, lpszLocalFileName, 8)
TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOA, lpszLocalFileName, 16)
TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOA, CacheEntryType, 4)
TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOA, CacheEntryType, 4)
TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOA, CacheEntryType, 24)
TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOA, dwUseCount, 4)
TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOA, dwUseCount, 4)
TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOA, dwUseCount, 28)
TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOA, dwHitRate, 4)
TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOA, dwHitRate, 4)
TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOA, dwHitRate, 32)
TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOA, dwSizeLow, 4)
TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOA, dwSizeLow, 4)
TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOA, dwSizeLow, 36)
TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOA, dwSizeHigh, 4)
TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOA, dwSizeHigh, 4)
TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOA, dwSizeHigh, 40)
TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOA, LastModifiedTime, 8)
TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOA, LastModifiedTime, 4)
TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOA, LastModifiedTime, 44)
TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOA, ExpireTime, 8)
TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOA, ExpireTime, 4)
TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOA, ExpireTime, 52)
TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOA, LastAccessTime, 8)
TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOA, LastAccessTime, 4)
TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOA, LastAccessTime, 60)
TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOA, LastSyncTime, 8)
TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOA, LastSyncTime, 4)
TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOA, LastSyncTime, 68)
TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOA, lpHeaderInfo, 8)
TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOA, lpHeaderInfo, 8)
TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOA, lpHeaderInfo, 80)
TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOA, dwHeaderInfoSize, 4)
TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOA, dwHeaderInfoSize, 4)
TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOA, dwHeaderInfoSize, 88)
TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOA, lpszFileExtension, 8)
TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOA, lpszFileExtension, 8)
TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOA, lpszFileExtension, 96)
}
static void test_pack_INTERNET_CACHE_ENTRY_INFOW(void)
{
/* INTERNET_CACHE_ENTRY_INFOW */
TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOW, dwStructSize, 4)
TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOW, dwStructSize, 4)
TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOW, dwStructSize, 0)
TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOW, lpszSourceUrlName, 8)
TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOW, lpszSourceUrlName, 8)
TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOW, lpszSourceUrlName, 8)
TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOW, lpszLocalFileName, 8)
TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOW, lpszLocalFileName, 8)
TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOW, lpszLocalFileName, 16)
TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOW, CacheEntryType, 4)
TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOW, CacheEntryType, 4)
TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOW, CacheEntryType, 24)
TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOW, dwUseCount, 4)
TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOW, dwUseCount, 4)
TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOW, dwUseCount, 28)
TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOW, dwHitRate, 4)
TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOW, dwHitRate, 4)
TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOW, dwHitRate, 32)
TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOW, dwSizeLow, 4)
TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOW, dwSizeLow, 4)
TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOW, dwSizeLow, 36)
TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOW, dwSizeHigh, 4)
TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOW, dwSizeHigh, 4)
TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOW, dwSizeHigh, 40)
TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOW, LastModifiedTime, 8)
TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOW, LastModifiedTime, 4)
TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOW, LastModifiedTime, 44)
TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOW, ExpireTime, 8)
TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOW, ExpireTime, 4)
TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOW, ExpireTime, 52)
TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOW, LastAccessTime, 8)
TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOW, LastAccessTime, 4)
TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOW, LastAccessTime, 60)
TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOW, LastSyncTime, 8)
TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOW, LastSyncTime, 4)
TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOW, LastSyncTime, 68)
TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOW, lpHeaderInfo, 8)
TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOW, lpHeaderInfo, 8)
TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOW, lpHeaderInfo, 80)
TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOW, dwHeaderInfoSize, 4)
TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOW, dwHeaderInfoSize, 4)
TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOW, dwHeaderInfoSize, 88)
TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOW, lpszFileExtension, 8)
TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOW, lpszFileExtension, 8)
TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOW, lpszFileExtension, 96)
}
static void test_pack_INTERNET_CERTIFICATE_INFOA(void)
{
/* INTERNET_CERTIFICATE_INFOA */
TEST_TYPE_SIZE (INTERNET_CERTIFICATE_INFOA, 64)
TEST_TYPE_ALIGN (INTERNET_CERTIFICATE_INFOA, 8)
TEST_FIELD_SIZE (INTERNET_CERTIFICATE_INFOA, ftExpiry, 8)
TEST_FIELD_ALIGN (INTERNET_CERTIFICATE_INFOA, ftExpiry, 4)
TEST_FIELD_OFFSET(INTERNET_CERTIFICATE_INFOA, ftExpiry, 0)
TEST_FIELD_SIZE (INTERNET_CERTIFICATE_INFOA, ftStart, 8)
TEST_FIELD_ALIGN (INTERNET_CERTIFICATE_INFOA, ftStart, 4)
TEST_FIELD_OFFSET(INTERNET_CERTIFICATE_INFOA, ftStart, 8)
TEST_FIELD_SIZE (INTERNET_CERTIFICATE_INFOA, lpszSubjectInfo, 8)
TEST_FIELD_ALIGN (INTERNET_CERTIFICATE_INFOA, lpszSubjectInfo, 8)
TEST_FIELD_OFFSET(INTERNET_CERTIFICATE_INFOA, lpszSubjectInfo, 16)
TEST_FIELD_SIZE (INTERNET_CERTIFICATE_INFOA, lpszIssuerInfo, 8)
TEST_FIELD_ALIGN (INTERNET_CERTIFICATE_INFOA, lpszIssuerInfo, 8)
TEST_FIELD_OFFSET(INTERNET_CERTIFICATE_INFOA, lpszIssuerInfo, 24)
TEST_FIELD_SIZE (INTERNET_CERTIFICATE_INFOA, lpszProtocolName, 8)
TEST_FIELD_ALIGN (INTERNET_CERTIFICATE_INFOA, lpszProtocolName, 8)
TEST_FIELD_OFFSET(INTERNET_CERTIFICATE_INFOA, lpszProtocolName, 32)
TEST_FIELD_SIZE (INTERNET_CERTIFICATE_INFOA, lpszSignatureAlgName, 8)
TEST_FIELD_ALIGN (INTERNET_CERTIFICATE_INFOA, lpszSignatureAlgName, 8)
TEST_FIELD_OFFSET(INTERNET_CERTIFICATE_INFOA, lpszSignatureAlgName, 40)
TEST_FIELD_SIZE (INTERNET_CERTIFICATE_INFOA, lpszEncryptionAlgName, 8)
TEST_FIELD_ALIGN (INTERNET_CERTIFICATE_INFOA, lpszEncryptionAlgName, 8)
TEST_FIELD_OFFSET(INTERNET_CERTIFICATE_INFOA, lpszEncryptionAlgName, 48)
TEST_FIELD_SIZE (INTERNET_CERTIFICATE_INFOA, dwKeySize, 4)
TEST_FIELD_ALIGN (INTERNET_CERTIFICATE_INFOA, dwKeySize, 4)
TEST_FIELD_OFFSET(INTERNET_CERTIFICATE_INFOA, dwKeySize, 56)
}
static void test_pack_INTERNET_CERTIFICATE_INFOW(void)
{
/* INTERNET_CERTIFICATE_INFOW */
TEST_TYPE_SIZE (INTERNET_CERTIFICATE_INFOW, 64)
TEST_TYPE_ALIGN (INTERNET_CERTIFICATE_INFOW, 8)
TEST_FIELD_SIZE (INTERNET_CERTIFICATE_INFOW, ftExpiry, 8)
TEST_FIELD_ALIGN (INTERNET_CERTIFICATE_INFOW, ftExpiry, 4)
TEST_FIELD_OFFSET(INTERNET_CERTIFICATE_INFOW, ftExpiry, 0)
TEST_FIELD_SIZE (INTERNET_CERTIFICATE_INFOW, ftStart, 8)
TEST_FIELD_ALIGN (INTERNET_CERTIFICATE_INFOW, ftStart, 4)
TEST_FIELD_OFFSET(INTERNET_CERTIFICATE_INFOW, ftStart, 8)
TEST_FIELD_SIZE (INTERNET_CERTIFICATE_INFOW, lpszSubjectInfo, 8)
TEST_FIELD_ALIGN (INTERNET_CERTIFICATE_INFOW, lpszSubjectInfo, 8)
TEST_FIELD_OFFSET(INTERNET_CERTIFICATE_INFOW, lpszSubjectInfo, 16)
TEST_FIELD_SIZE (INTERNET_CERTIFICATE_INFOW, lpszIssuerInfo, 8)
TEST_FIELD_ALIGN (INTERNET_CERTIFICATE_INFOW, lpszIssuerInfo, 8)
TEST_FIELD_OFFSET(INTERNET_CERTIFICATE_INFOW, lpszIssuerInfo, 24)
TEST_FIELD_SIZE (INTERNET_CERTIFICATE_INFOW, lpszProtocolName, 8)
TEST_FIELD_ALIGN (INTERNET_CERTIFICATE_INFOW, lpszProtocolName, 8)
TEST_FIELD_OFFSET(INTERNET_CERTIFICATE_INFOW, lpszProtocolName, 32)
TEST_FIELD_SIZE (INTERNET_CERTIFICATE_INFOW, lpszSignatureAlgName, 8)
TEST_FIELD_ALIGN (INTERNET_CERTIFICATE_INFOW, lpszSignatureAlgName, 8)
TEST_FIELD_OFFSET(INTERNET_CERTIFICATE_INFOW, lpszSignatureAlgName, 40)
TEST_FIELD_SIZE (INTERNET_CERTIFICATE_INFOW, lpszEncryptionAlgName, 8)
TEST_FIELD_ALIGN (INTERNET_CERTIFICATE_INFOW, lpszEncryptionAlgName, 8)
TEST_FIELD_OFFSET(INTERNET_CERTIFICATE_INFOW, lpszEncryptionAlgName, 48)
TEST_FIELD_SIZE (INTERNET_CERTIFICATE_INFOW, dwKeySize, 4)
TEST_FIELD_ALIGN (INTERNET_CERTIFICATE_INFOW, dwKeySize, 4)
TEST_FIELD_OFFSET(INTERNET_CERTIFICATE_INFOW, dwKeySize, 56)
}
static void test_pack_INTERNET_CONNECTED_INFO(void)
{
/* INTERNET_CONNECTED_INFO */
TEST_TYPE_SIZE (INTERNET_CONNECTED_INFO, 8)
TEST_TYPE_ALIGN (INTERNET_CONNECTED_INFO, 4)
TEST_FIELD_SIZE (INTERNET_CONNECTED_INFO, dwConnectedState, 4)
TEST_FIELD_ALIGN (INTERNET_CONNECTED_INFO, dwConnectedState, 4)
TEST_FIELD_OFFSET(INTERNET_CONNECTED_INFO, dwConnectedState, 0)
TEST_FIELD_SIZE (INTERNET_CONNECTED_INFO, dwFlags, 4)
TEST_FIELD_ALIGN (INTERNET_CONNECTED_INFO, dwFlags, 4)
TEST_FIELD_OFFSET(INTERNET_CONNECTED_INFO, dwFlags, 4)
}
static void test_pack_INTERNET_PORT(void)
{
/* INTERNET_PORT */
TEST_TYPE_SIZE (INTERNET_PORT, 2)
TEST_TYPE_ALIGN (INTERNET_PORT, 2)
TEST_TYPE_UNSIGNED(INTERNET_PORT)
}
static void test_pack_INTERNET_PROXY_INFOA(void)
{
/* INTERNET_PROXY_INFOA */
TEST_TYPE_SIZE (INTERNET_PROXY_INFOA, 24)
TEST_TYPE_ALIGN (INTERNET_PROXY_INFOA, 8)
TEST_FIELD_SIZE (INTERNET_PROXY_INFOA, dwAccessType, 4)
TEST_FIELD_ALIGN (INTERNET_PROXY_INFOA, dwAccessType, 4)
TEST_FIELD_OFFSET(INTERNET_PROXY_INFOA, dwAccessType, 0)
TEST_FIELD_SIZE (INTERNET_PROXY_INFOA, lpszProxy, 8)
TEST_FIELD_ALIGN (INTERNET_PROXY_INFOA, lpszProxy, 8)
TEST_FIELD_OFFSET(INTERNET_PROXY_INFOA, lpszProxy, 8)
TEST_FIELD_SIZE (INTERNET_PROXY_INFOA, lpszProxyBypass, 8)
TEST_FIELD_ALIGN (INTERNET_PROXY_INFOA, lpszProxyBypass, 8)
TEST_FIELD_OFFSET(INTERNET_PROXY_INFOA, lpszProxyBypass, 16)
}
static void test_pack_INTERNET_PROXY_INFOW(void)
{
/* INTERNET_PROXY_INFOW */
TEST_TYPE_SIZE (INTERNET_PROXY_INFOW, 24)
TEST_TYPE_ALIGN (INTERNET_PROXY_INFOW, 8)
TEST_FIELD_SIZE (INTERNET_PROXY_INFOW, dwAccessType, 4)
TEST_FIELD_ALIGN (INTERNET_PROXY_INFOW, dwAccessType, 4)
TEST_FIELD_OFFSET(INTERNET_PROXY_INFOW, dwAccessType, 0)
TEST_FIELD_SIZE (INTERNET_PROXY_INFOW, lpszProxy, 8)
TEST_FIELD_ALIGN (INTERNET_PROXY_INFOW, lpszProxy, 8)
TEST_FIELD_OFFSET(INTERNET_PROXY_INFOW, lpszProxy, 8)
TEST_FIELD_SIZE (INTERNET_PROXY_INFOW, lpszProxyBypass, 8)
TEST_FIELD_ALIGN (INTERNET_PROXY_INFOW, lpszProxyBypass, 8)
TEST_FIELD_OFFSET(INTERNET_PROXY_INFOW, lpszProxyBypass, 16)
}
static void test_pack_INTERNET_STATUS_CALLBACK(void)
{
/* INTERNET_STATUS_CALLBACK */
TEST_TYPE_SIZE (INTERNET_STATUS_CALLBACK, 8)
TEST_TYPE_ALIGN (INTERNET_STATUS_CALLBACK, 8)
}
static void test_pack_INTERNET_VERSION_INFO(void)
{
/* INTERNET_VERSION_INFO */
TEST_TYPE_SIZE (INTERNET_VERSION_INFO, 8)
TEST_TYPE_ALIGN (INTERNET_VERSION_INFO, 4)
TEST_FIELD_SIZE (INTERNET_VERSION_INFO, dwMajorVersion, 4)
TEST_FIELD_ALIGN (INTERNET_VERSION_INFO, dwMajorVersion, 4)
TEST_FIELD_OFFSET(INTERNET_VERSION_INFO, dwMajorVersion, 0)
TEST_FIELD_SIZE (INTERNET_VERSION_INFO, dwMinorVersion, 4)
TEST_FIELD_ALIGN (INTERNET_VERSION_INFO, dwMinorVersion, 4)
TEST_FIELD_OFFSET(INTERNET_VERSION_INFO, dwMinorVersion, 4)
}
static void test_pack_LPGOPHER_ABSTRACT_ATTRIBUTE_TYPEA(void)
{
/* LPGOPHER_ABSTRACT_ATTRIBUTE_TYPEA */
TEST_TYPE_SIZE (LPGOPHER_ABSTRACT_ATTRIBUTE_TYPEA, 8)
TEST_TYPE_ALIGN (LPGOPHER_ABSTRACT_ATTRIBUTE_TYPEA, 8)
TEST_TARGET_SIZE (LPGOPHER_ABSTRACT_ATTRIBUTE_TYPEA, 16)
TEST_TARGET_ALIGN(LPGOPHER_ABSTRACT_ATTRIBUTE_TYPEA, 8)
}
static void test_pack_LPGOPHER_ABSTRACT_ATTRIBUTE_TYPEW(void)
{
/* LPGOPHER_ABSTRACT_ATTRIBUTE_TYPEW */
TEST_TYPE_SIZE (LPGOPHER_ABSTRACT_ATTRIBUTE_TYPEW, 8)
TEST_TYPE_ALIGN (LPGOPHER_ABSTRACT_ATTRIBUTE_TYPEW, 8)
TEST_TARGET_SIZE (LPGOPHER_ABSTRACT_ATTRIBUTE_TYPEW, 16)
TEST_TARGET_ALIGN(LPGOPHER_ABSTRACT_ATTRIBUTE_TYPEW, 8)
}
static void test_pack_LPGOPHER_ADMIN_ATTRIBUTE_TYPEA(void)
{
/* LPGOPHER_ADMIN_ATTRIBUTE_TYPEA */
TEST_TYPE_SIZE (LPGOPHER_ADMIN_ATTRIBUTE_TYPEA, 8)
TEST_TYPE_ALIGN (LPGOPHER_ADMIN_ATTRIBUTE_TYPEA, 8)
TEST_TARGET_SIZE (LPGOPHER_ADMIN_ATTRIBUTE_TYPEA, 16)
TEST_TARGET_ALIGN(LPGOPHER_ADMIN_ATTRIBUTE_TYPEA, 8)
}
static void test_pack_LPGOPHER_ADMIN_ATTRIBUTE_TYPEW(void)
{
/* LPGOPHER_ADMIN_ATTRIBUTE_TYPEW */
TEST_TYPE_SIZE (LPGOPHER_ADMIN_ATTRIBUTE_TYPEW, 8)
TEST_TYPE_ALIGN (LPGOPHER_ADMIN_ATTRIBUTE_TYPEW, 8)
TEST_TARGET_SIZE (LPGOPHER_ADMIN_ATTRIBUTE_TYPEW, 16)
TEST_TARGET_ALIGN(LPGOPHER_ADMIN_ATTRIBUTE_TYPEW, 8)
}
static void test_pack_LPGOPHER_ASK_ATTRIBUTE_TYPEA(void)
{
/* LPGOPHER_ASK_ATTRIBUTE_TYPEA */
TEST_TYPE_SIZE (LPGOPHER_ASK_ATTRIBUTE_TYPEA, 8)
TEST_TYPE_ALIGN (LPGOPHER_ASK_ATTRIBUTE_TYPEA, 8)
TEST_TARGET_SIZE (LPGOPHER_ASK_ATTRIBUTE_TYPEA, 16)
TEST_TARGET_ALIGN(LPGOPHER_ASK_ATTRIBUTE_TYPEA, 8)
}
static void test_pack_LPGOPHER_ASK_ATTRIBUTE_TYPEW(void)
{
/* LPGOPHER_ASK_ATTRIBUTE_TYPEW */
TEST_TYPE_SIZE (LPGOPHER_ASK_ATTRIBUTE_TYPEW, 8)
TEST_TYPE_ALIGN (LPGOPHER_ASK_ATTRIBUTE_TYPEW, 8)
TEST_TARGET_SIZE (LPGOPHER_ASK_ATTRIBUTE_TYPEW, 16)
TEST_TARGET_ALIGN(LPGOPHER_ASK_ATTRIBUTE_TYPEW, 8)
}
static void test_pack_LPGOPHER_ATTRIBUTE_TYPEA(void)
{
/* LPGOPHER_ATTRIBUTE_TYPEA */
TEST_TYPE_SIZE (LPGOPHER_ATTRIBUTE_TYPEA, 8)
TEST_TYPE_ALIGN (LPGOPHER_ATTRIBUTE_TYPEA, 8)
}
static void test_pack_LPGOPHER_ATTRIBUTE_TYPEW(void)
{
/* LPGOPHER_ATTRIBUTE_TYPEW */
TEST_TYPE_SIZE (LPGOPHER_ATTRIBUTE_TYPEW, 8)
TEST_TYPE_ALIGN (LPGOPHER_ATTRIBUTE_TYPEW, 8)
}
static void test_pack_LPGOPHER_FIND_DATAA(void)
{
/* LPGOPHER_FIND_DATAA */
TEST_TYPE_SIZE (LPGOPHER_FIND_DATAA, 8)
TEST_TYPE_ALIGN (LPGOPHER_FIND_DATAA, 8)
TEST_TARGET_SIZE (LPGOPHER_FIND_DATAA, 808)
TEST_TARGET_ALIGN(LPGOPHER_FIND_DATAA, 4)
}
static void test_pack_LPGOPHER_FIND_DATAW(void)
{
/* LPGOPHER_FIND_DATAW */
TEST_TYPE_SIZE (LPGOPHER_FIND_DATAW, 8)
TEST_TYPE_ALIGN (LPGOPHER_FIND_DATAW, 8)
TEST_TARGET_SIZE (LPGOPHER_FIND_DATAW, 1588)
TEST_TARGET_ALIGN(LPGOPHER_FIND_DATAW, 4)
}
#else
static void test_pack_LPGOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE(void)
{
/* LPGOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE */
TEST_TYPE_SIZE (LPGOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE, 8)
TEST_TYPE_ALIGN (LPGOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE, 8)
TEST_TARGET_SIZE (LPGOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE, 24)
TEST_TARGET_ALIGN(LPGOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE, 4)
}
static void test_pack_LPGOPHER_LOCATION_ATTRIBUTE_TYPEA(void)
{
/* LPGOPHER_LOCATION_ATTRIBUTE_TYPEA */
TEST_TYPE_SIZE (LPGOPHER_LOCATION_ATTRIBUTE_TYPEA, 8)
TEST_TYPE_ALIGN (LPGOPHER_LOCATION_ATTRIBUTE_TYPEA, 8)
TEST_TARGET_SIZE (LPGOPHER_LOCATION_ATTRIBUTE_TYPEA, 8)
TEST_TARGET_ALIGN(LPGOPHER_LOCATION_ATTRIBUTE_TYPEA, 8)
}
static void test_pack_LPGOPHER_LOCATION_ATTRIBUTE_TYPEW(void)
{
/* LPGOPHER_LOCATION_ATTRIBUTE_TYPEW */
TEST_TYPE_SIZE (LPGOPHER_LOCATION_ATTRIBUTE_TYPEW, 8)
TEST_TYPE_ALIGN (LPGOPHER_LOCATION_ATTRIBUTE_TYPEW, 8)
TEST_TARGET_SIZE (LPGOPHER_LOCATION_ATTRIBUTE_TYPEW, 8)
TEST_TARGET_ALIGN(LPGOPHER_LOCATION_ATTRIBUTE_TYPEW, 8)
}
static void test_pack_LPGOPHER_MOD_DATE_ATTRIBUTE_TYPE(void)
{
/* LPGOPHER_MOD_DATE_ATTRIBUTE_TYPE */
TEST_TYPE_SIZE (LPGOPHER_MOD_DATE_ATTRIBUTE_TYPE, 8)
TEST_TYPE_ALIGN (LPGOPHER_MOD_DATE_ATTRIBUTE_TYPE, 8)
TEST_TARGET_SIZE (LPGOPHER_MOD_DATE_ATTRIBUTE_TYPE, 8)
TEST_TARGET_ALIGN(LPGOPHER_MOD_DATE_ATTRIBUTE_TYPE, 4)
}
# define TEST_TYPE_SIZE(type, size) C_ASSERT(sizeof(type) == size);
static void test_pack_LPGOPHER_ORGANIZATION_ATTRIBUTE_TYPEA(void)
{
/* LPGOPHER_ORGANIZATION_ATTRIBUTE_TYPEA */
TEST_TYPE_SIZE (LPGOPHER_ORGANIZATION_ATTRIBUTE_TYPEA, 8)
TEST_TYPE_ALIGN (LPGOPHER_ORGANIZATION_ATTRIBUTE_TYPEA, 8)
TEST_TARGET_SIZE (LPGOPHER_ORGANIZATION_ATTRIBUTE_TYPEA, 8)
TEST_TARGET_ALIGN(LPGOPHER_ORGANIZATION_ATTRIBUTE_TYPEA, 8)
}
# ifdef TYPE_ALIGNMENT
# define TEST_TYPE_ALIGN(type, align) C_ASSERT(TYPE_ALIGNMENT(type) == align);
# else
# define TEST_TYPE_ALIGN(type, align)
# endif
static void test_pack_LPGOPHER_ORGANIZATION_ATTRIBUTE_TYPEW(void)
{
/* LPGOPHER_ORGANIZATION_ATTRIBUTE_TYPEW */
TEST_TYPE_SIZE (LPGOPHER_ORGANIZATION_ATTRIBUTE_TYPEW, 8)
TEST_TYPE_ALIGN (LPGOPHER_ORGANIZATION_ATTRIBUTE_TYPEW, 8)
TEST_TARGET_SIZE (LPGOPHER_ORGANIZATION_ATTRIBUTE_TYPEW, 8)
TEST_TARGET_ALIGN(LPGOPHER_ORGANIZATION_ATTRIBUTE_TYPEW, 8)
}
# ifdef _TYPE_ALIGNMENT
# define TEST_TARGET_ALIGN(type, align) C_ASSERT(_TYPE_ALIGNMENT(*(type)0) == align);
# define TEST_FIELD_ALIGN(type, field, align) C_ASSERT(_TYPE_ALIGNMENT(((type*)0)->field) == align);
# else
# define TEST_TARGET_ALIGN(type, align)
# define TEST_FIELD_ALIGN(type, field, align)
# endif
static void test_pack_LPGOPHER_PROVIDER_ATTRIBUTE_TYPEA(void)
{
/* LPGOPHER_PROVIDER_ATTRIBUTE_TYPEA */
TEST_TYPE_SIZE (LPGOPHER_PROVIDER_ATTRIBUTE_TYPEA, 8)
TEST_TYPE_ALIGN (LPGOPHER_PROVIDER_ATTRIBUTE_TYPEA, 8)
TEST_TARGET_SIZE (LPGOPHER_PROVIDER_ATTRIBUTE_TYPEA, 8)
TEST_TARGET_ALIGN(LPGOPHER_PROVIDER_ATTRIBUTE_TYPEA, 8)
}
# define TEST_FIELD_OFFSET(type, field, offset) C_ASSERT(FIELD_OFFSET(type, field) == offset);
static void test_pack_LPGOPHER_PROVIDER_ATTRIBUTE_TYPEW(void)
{
/* LPGOPHER_PROVIDER_ATTRIBUTE_TYPEW */
TEST_TYPE_SIZE (LPGOPHER_PROVIDER_ATTRIBUTE_TYPEW, 8)
TEST_TYPE_ALIGN (LPGOPHER_PROVIDER_ATTRIBUTE_TYPEW, 8)
TEST_TARGET_SIZE (LPGOPHER_PROVIDER_ATTRIBUTE_TYPEW, 8)
TEST_TARGET_ALIGN(LPGOPHER_PROVIDER_ATTRIBUTE_TYPEW, 8)
}
#endif
static void test_pack_LPGOPHER_SCORE_ATTRIBUTE_TYPE(void)
{
/* LPGOPHER_SCORE_ATTRIBUTE_TYPE */
TEST_TYPE_SIZE (LPGOPHER_SCORE_ATTRIBUTE_TYPE, 8)
TEST_TYPE_ALIGN (LPGOPHER_SCORE_ATTRIBUTE_TYPE, 8)
TEST_TARGET_SIZE (LPGOPHER_SCORE_ATTRIBUTE_TYPE, 4)
TEST_TARGET_ALIGN(LPGOPHER_SCORE_ATTRIBUTE_TYPE, 4)
}
#define TEST_TARGET_SIZE(type, size) TEST_TYPE_SIZE(*(type)0, size)
#define TEST_FIELD_SIZE(type, field, size) TEST_TYPE_SIZE((((type*)0)->field), size)
#define TEST_TYPE_SIGNED(type) C_ASSERT((type) -1 < 0);
#define TEST_TYPE_UNSIGNED(type) C_ASSERT((type) -1 > 0);
static void test_pack_LPGOPHER_SCORE_RANGE_ATTRIBUTE_TYPE(void)
{
/* LPGOPHER_SCORE_RANGE_ATTRIBUTE_TYPE */
TEST_TYPE_SIZE (LPGOPHER_SCORE_RANGE_ATTRIBUTE_TYPE, 8)
TEST_TYPE_ALIGN (LPGOPHER_SCORE_RANGE_ATTRIBUTE_TYPE, 8)
TEST_TARGET_SIZE (LPGOPHER_SCORE_RANGE_ATTRIBUTE_TYPE, 8)
TEST_TARGET_ALIGN(LPGOPHER_SCORE_RANGE_ATTRIBUTE_TYPE, 4)
}
static void test_pack_LPGOPHER_SITE_ATTRIBUTE_TYPEA(void)
{
/* LPGOPHER_SITE_ATTRIBUTE_TYPEA */
TEST_TYPE_SIZE (LPGOPHER_SITE_ATTRIBUTE_TYPEA, 8)
TEST_TYPE_ALIGN (LPGOPHER_SITE_ATTRIBUTE_TYPEA, 8)
TEST_TARGET_SIZE (LPGOPHER_SITE_ATTRIBUTE_TYPEA, 8)
TEST_TARGET_ALIGN(LPGOPHER_SITE_ATTRIBUTE_TYPEA, 8)
}
static void test_pack_LPGOPHER_SITE_ATTRIBUTE_TYPEW(void)
{
/* LPGOPHER_SITE_ATTRIBUTE_TYPEW */
TEST_TYPE_SIZE (LPGOPHER_SITE_ATTRIBUTE_TYPEW, 8)
TEST_TYPE_ALIGN (LPGOPHER_SITE_ATTRIBUTE_TYPEW, 8)
TEST_TARGET_SIZE (LPGOPHER_SITE_ATTRIBUTE_TYPEW, 8)
TEST_TARGET_ALIGN(LPGOPHER_SITE_ATTRIBUTE_TYPEW, 8)
}
static void test_pack_LPGOPHER_TIMEZONE_ATTRIBUTE_TYPE(void)
{
/* LPGOPHER_TIMEZONE_ATTRIBUTE_TYPE */
TEST_TYPE_SIZE (LPGOPHER_TIMEZONE_ATTRIBUTE_TYPE, 8)
TEST_TYPE_ALIGN (LPGOPHER_TIMEZONE_ATTRIBUTE_TYPE, 8)
TEST_TARGET_SIZE (LPGOPHER_TIMEZONE_ATTRIBUTE_TYPE, 4)
TEST_TARGET_ALIGN(LPGOPHER_TIMEZONE_ATTRIBUTE_TYPE, 4)
}
static void test_pack_LPGOPHER_TTL_ATTRIBUTE_TYPE(void)
{
/* LPGOPHER_TTL_ATTRIBUTE_TYPE */
TEST_TYPE_SIZE (LPGOPHER_TTL_ATTRIBUTE_TYPE, 8)
TEST_TYPE_ALIGN (LPGOPHER_TTL_ATTRIBUTE_TYPE, 8)
TEST_TARGET_SIZE (LPGOPHER_TTL_ATTRIBUTE_TYPE, 4)
TEST_TARGET_ALIGN(LPGOPHER_TTL_ATTRIBUTE_TYPE, 4)
}
static void test_pack_LPGOPHER_UNKNOWN_ATTRIBUTE_TYPEA(void)
{
/* LPGOPHER_UNKNOWN_ATTRIBUTE_TYPEA */
TEST_TYPE_SIZE (LPGOPHER_UNKNOWN_ATTRIBUTE_TYPEA, 8)
TEST_TYPE_ALIGN (LPGOPHER_UNKNOWN_ATTRIBUTE_TYPEA, 8)
TEST_TARGET_SIZE (LPGOPHER_UNKNOWN_ATTRIBUTE_TYPEA, 8)
TEST_TARGET_ALIGN(LPGOPHER_UNKNOWN_ATTRIBUTE_TYPEA, 8)
}
static void test_pack_LPGOPHER_UNKNOWN_ATTRIBUTE_TYPEW(void)
{
/* LPGOPHER_UNKNOWN_ATTRIBUTE_TYPEW */
TEST_TYPE_SIZE (LPGOPHER_UNKNOWN_ATTRIBUTE_TYPEW, 8)
TEST_TYPE_ALIGN (LPGOPHER_UNKNOWN_ATTRIBUTE_TYPEW, 8)
TEST_TARGET_SIZE (LPGOPHER_UNKNOWN_ATTRIBUTE_TYPEW, 8)
TEST_TARGET_ALIGN(LPGOPHER_UNKNOWN_ATTRIBUTE_TYPEW, 8)
}
static void test_pack_LPGOPHER_VERONICA_ATTRIBUTE_TYPE(void)
{
/* LPGOPHER_VERONICA_ATTRIBUTE_TYPE */
TEST_TYPE_SIZE (LPGOPHER_VERONICA_ATTRIBUTE_TYPE, 8)
TEST_TYPE_ALIGN (LPGOPHER_VERONICA_ATTRIBUTE_TYPE, 8)
TEST_TARGET_SIZE (LPGOPHER_VERONICA_ATTRIBUTE_TYPE, 4)
TEST_TARGET_ALIGN(LPGOPHER_VERONICA_ATTRIBUTE_TYPE, 4)
}
static void test_pack_LPGOPHER_VERSION_ATTRIBUTE_TYPEA(void)
{
/* LPGOPHER_VERSION_ATTRIBUTE_TYPEA */
TEST_TYPE_SIZE (LPGOPHER_VERSION_ATTRIBUTE_TYPEA, 8)
TEST_TYPE_ALIGN (LPGOPHER_VERSION_ATTRIBUTE_TYPEA, 8)
TEST_TARGET_SIZE (LPGOPHER_VERSION_ATTRIBUTE_TYPEA, 8)
TEST_TARGET_ALIGN(LPGOPHER_VERSION_ATTRIBUTE_TYPEA, 8)
}
static void test_pack_LPGOPHER_VERSION_ATTRIBUTE_TYPEW(void)
{
/* LPGOPHER_VERSION_ATTRIBUTE_TYPEW */
TEST_TYPE_SIZE (LPGOPHER_VERSION_ATTRIBUTE_TYPEW, 8)
TEST_TYPE_ALIGN (LPGOPHER_VERSION_ATTRIBUTE_TYPEW, 8)
TEST_TARGET_SIZE (LPGOPHER_VERSION_ATTRIBUTE_TYPEW, 8)
TEST_TARGET_ALIGN(LPGOPHER_VERSION_ATTRIBUTE_TYPEW, 8)
}
static void test_pack_LPGOPHER_VIEW_ATTRIBUTE_TYPEA(void)
{
/* LPGOPHER_VIEW_ATTRIBUTE_TYPEA */
TEST_TYPE_SIZE (LPGOPHER_VIEW_ATTRIBUTE_TYPEA, 8)
TEST_TYPE_ALIGN (LPGOPHER_VIEW_ATTRIBUTE_TYPEA, 8)
TEST_TARGET_SIZE (LPGOPHER_VIEW_ATTRIBUTE_TYPEA, 24)
TEST_TARGET_ALIGN(LPGOPHER_VIEW_ATTRIBUTE_TYPEA, 8)
}
static void test_pack_LPGOPHER_VIEW_ATTRIBUTE_TYPEW(void)
{
/* LPGOPHER_VIEW_ATTRIBUTE_TYPEW */
TEST_TYPE_SIZE (LPGOPHER_VIEW_ATTRIBUTE_TYPEW, 8)
TEST_TYPE_ALIGN (LPGOPHER_VIEW_ATTRIBUTE_TYPEW, 8)
TEST_TARGET_SIZE (LPGOPHER_VIEW_ATTRIBUTE_TYPEW, 24)
TEST_TARGET_ALIGN(LPGOPHER_VIEW_ATTRIBUTE_TYPEW, 8)
}
static void test_pack_LPHINTERNET(void)
{
/* LPHINTERNET */
TEST_TYPE_SIZE (LPHINTERNET, 8)
TEST_TYPE_ALIGN (LPHINTERNET, 8)
TEST_TARGET_SIZE (LPHINTERNET, 8)
TEST_TARGET_ALIGN(LPHINTERNET, 8)
}
static void test_pack_LPHTTP_VERSION_INFO(void)
{
/* LPHTTP_VERSION_INFO */
TEST_TYPE_SIZE (LPHTTP_VERSION_INFO, 8)
TEST_TYPE_ALIGN (LPHTTP_VERSION_INFO, 8)
TEST_TARGET_SIZE (LPHTTP_VERSION_INFO, 8)
TEST_TARGET_ALIGN(LPHTTP_VERSION_INFO, 4)
}
static void test_pack_LPINTERNET_ASYNC_RESULT(void)
{
/* LPINTERNET_ASYNC_RESULT */
TEST_TYPE_SIZE (LPINTERNET_ASYNC_RESULT, 8)
TEST_TYPE_ALIGN (LPINTERNET_ASYNC_RESULT, 8)
TEST_TARGET_SIZE (LPINTERNET_ASYNC_RESULT, 16)
TEST_TARGET_ALIGN(LPINTERNET_ASYNC_RESULT, 8)
}
static void test_pack_LPINTERNET_BUFFERSA(void)
{
/* LPINTERNET_BUFFERSA */
TEST_TYPE_SIZE (LPINTERNET_BUFFERSA, 8)
TEST_TYPE_ALIGN (LPINTERNET_BUFFERSA, 8)
TEST_TARGET_SIZE (LPINTERNET_BUFFERSA, 56)
TEST_TARGET_ALIGN(LPINTERNET_BUFFERSA, 8)
}
static void test_pack_LPINTERNET_BUFFERSW(void)
{
/* LPINTERNET_BUFFERSW */
TEST_TYPE_SIZE (LPINTERNET_BUFFERSW, 8)
TEST_TYPE_ALIGN (LPINTERNET_BUFFERSW, 8)
TEST_TARGET_SIZE (LPINTERNET_BUFFERSW, 56)
TEST_TARGET_ALIGN(LPINTERNET_BUFFERSW, 8)
}
static void test_pack_LPINTERNET_CACHE_ENTRY_INFOA(void)
{
/* LPINTERNET_CACHE_ENTRY_INFOA */
TEST_TYPE_SIZE (LPINTERNET_CACHE_ENTRY_INFOA, 8)
TEST_TYPE_ALIGN (LPINTERNET_CACHE_ENTRY_INFOA, 8)
}
static void test_pack_LPINTERNET_CACHE_ENTRY_INFOW(void)
{
/* LPINTERNET_CACHE_ENTRY_INFOW */
TEST_TYPE_SIZE (LPINTERNET_CACHE_ENTRY_INFOW, 8)
TEST_TYPE_ALIGN (LPINTERNET_CACHE_ENTRY_INFOW, 8)
}
static void test_pack_LPINTERNET_CERTIFICATE_INFOA(void)
{
/* LPINTERNET_CERTIFICATE_INFOA */
TEST_TYPE_SIZE (LPINTERNET_CERTIFICATE_INFOA, 8)
TEST_TYPE_ALIGN (LPINTERNET_CERTIFICATE_INFOA, 8)
TEST_TARGET_SIZE (LPINTERNET_CERTIFICATE_INFOA, 64)
TEST_TARGET_ALIGN(LPINTERNET_CERTIFICATE_INFOA, 8)
}
static void test_pack_LPINTERNET_CERTIFICATE_INFOW(void)
{
/* LPINTERNET_CERTIFICATE_INFOW */
TEST_TYPE_SIZE (LPINTERNET_CERTIFICATE_INFOW, 8)
TEST_TYPE_ALIGN (LPINTERNET_CERTIFICATE_INFOW, 8)
TEST_TARGET_SIZE (LPINTERNET_CERTIFICATE_INFOW, 64)
TEST_TARGET_ALIGN(LPINTERNET_CERTIFICATE_INFOW, 8)
}
static void test_pack_LPINTERNET_CONNECTED_INFO(void)
{
/* LPINTERNET_CONNECTED_INFO */
TEST_TYPE_SIZE (LPINTERNET_CONNECTED_INFO, 8)
TEST_TYPE_ALIGN (LPINTERNET_CONNECTED_INFO, 8)
TEST_TARGET_SIZE (LPINTERNET_CONNECTED_INFO, 8)
TEST_TARGET_ALIGN(LPINTERNET_CONNECTED_INFO, 4)
}
static void test_pack_LPINTERNET_PORT(void)
{
/* LPINTERNET_PORT */
TEST_TYPE_SIZE (LPINTERNET_PORT, 8)
TEST_TYPE_ALIGN (LPINTERNET_PORT, 8)
TEST_TARGET_SIZE (LPINTERNET_PORT, 2)
TEST_TARGET_ALIGN(LPINTERNET_PORT, 2)
}
static void test_pack_LPINTERNET_PROXY_INFOA(void)
{
/* LPINTERNET_PROXY_INFOA */
TEST_TYPE_SIZE (LPINTERNET_PROXY_INFOA, 8)
TEST_TYPE_ALIGN (LPINTERNET_PROXY_INFOA, 8)
TEST_TARGET_SIZE (LPINTERNET_PROXY_INFOA, 24)
TEST_TARGET_ALIGN(LPINTERNET_PROXY_INFOA, 8)
}
static void test_pack_LPINTERNET_PROXY_INFOW(void)
{
/* LPINTERNET_PROXY_INFOW */
TEST_TYPE_SIZE (LPINTERNET_PROXY_INFOW, 8)
TEST_TYPE_ALIGN (LPINTERNET_PROXY_INFOW, 8)
TEST_TARGET_SIZE (LPINTERNET_PROXY_INFOW, 24)
TEST_TARGET_ALIGN(LPINTERNET_PROXY_INFOW, 8)
}
static void test_pack_LPINTERNET_STATUS_CALLBACK(void)
{
/* LPINTERNET_STATUS_CALLBACK */
TEST_TYPE_SIZE (LPINTERNET_STATUS_CALLBACK, 8)
TEST_TYPE_ALIGN (LPINTERNET_STATUS_CALLBACK, 8)
TEST_TARGET_SIZE (LPINTERNET_STATUS_CALLBACK, 8)
TEST_TARGET_ALIGN(LPINTERNET_STATUS_CALLBACK, 8)
}
static void test_pack_LPINTERNET_VERSION_INFO(void)
{
/* LPINTERNET_VERSION_INFO */
TEST_TYPE_SIZE (LPINTERNET_VERSION_INFO, 8)
TEST_TYPE_ALIGN (LPINTERNET_VERSION_INFO, 8)
TEST_TARGET_SIZE (LPINTERNET_VERSION_INFO, 8)
TEST_TARGET_ALIGN(LPINTERNET_VERSION_INFO, 4)
}
static void test_pack_LPURL_COMPONENTSA(void)
{
/* LPURL_COMPONENTSA */
TEST_TYPE_SIZE (LPURL_COMPONENTSA, 8)
TEST_TYPE_ALIGN (LPURL_COMPONENTSA, 8)
}
static void test_pack_LPURL_COMPONENTSW(void)
{
/* LPURL_COMPONENTSW */
TEST_TYPE_SIZE (LPURL_COMPONENTSW, 8)
TEST_TYPE_ALIGN (LPURL_COMPONENTSW, 8)
}
static void test_pack_PFN_AUTH_NOTIFY(void)
{
/* PFN_AUTH_NOTIFY */
TEST_TYPE_SIZE (PFN_AUTH_NOTIFY, 8)
TEST_TYPE_ALIGN (PFN_AUTH_NOTIFY, 8)
}
static void test_pack_PFN_DIAL_HANDLER(void)
{
/* PFN_DIAL_HANDLER */
TEST_TYPE_SIZE (PFN_DIAL_HANDLER, 8)
TEST_TYPE_ALIGN (PFN_DIAL_HANDLER, 8)
}
static void test_pack_URL_COMPONENTSA(void)
{
/* URL_COMPONENTSA */
TEST_FIELD_SIZE (URL_COMPONENTSA, dwStructSize, 4)
TEST_FIELD_ALIGN (URL_COMPONENTSA, dwStructSize, 4)
TEST_FIELD_OFFSET(URL_COMPONENTSA, dwStructSize, 0)
TEST_FIELD_SIZE (URL_COMPONENTSA, lpszScheme, 8)
TEST_FIELD_ALIGN (URL_COMPONENTSA, lpszScheme, 8)
TEST_FIELD_OFFSET(URL_COMPONENTSA, lpszScheme, 8)
TEST_FIELD_SIZE (URL_COMPONENTSA, dwSchemeLength, 4)
TEST_FIELD_ALIGN (URL_COMPONENTSA, dwSchemeLength, 4)
TEST_FIELD_OFFSET(URL_COMPONENTSA, dwSchemeLength, 16)
}
static void test_pack_URL_COMPONENTSW(void)
{
/* URL_COMPONENTSW */
TEST_FIELD_SIZE (URL_COMPONENTSW, dwStructSize, 4)
TEST_FIELD_ALIGN (URL_COMPONENTSW, dwStructSize, 4)
TEST_FIELD_OFFSET(URL_COMPONENTSW, dwStructSize, 0)
TEST_FIELD_SIZE (URL_COMPONENTSW, lpszScheme, 8)
TEST_FIELD_ALIGN (URL_COMPONENTSW, lpszScheme, 8)
TEST_FIELD_OFFSET(URL_COMPONENTSW, lpszScheme, 8)
TEST_FIELD_SIZE (URL_COMPONENTSW, dwSchemeLength, 4)
TEST_FIELD_ALIGN (URL_COMPONENTSW, dwSchemeLength, 4)
TEST_FIELD_OFFSET(URL_COMPONENTSW, dwSchemeLength, 16)
}
#else /* _WIN64 */
static void test_pack_GOPHER_ABSTRACT_ATTRIBUTE_TYPEA(void)
{
/* GOPHER_ABSTRACT_ATTRIBUTE_TYPEA (pack 4) */
/* GOPHER_ABSTRACT_ATTRIBUTE_TYPEA */
TEST_TYPE_SIZE (GOPHER_ABSTRACT_ATTRIBUTE_TYPEA, 8)
TEST_TYPE_ALIGN (GOPHER_ABSTRACT_ATTRIBUTE_TYPEA, 4)
TEST_FIELD_SIZE (GOPHER_ABSTRACT_ATTRIBUTE_TYPEA, ShortAbstract, 4)
......@@ -106,7 +1333,7 @@ static void test_pack_GOPHER_ABSTRACT_ATTRIBUTE_TYPEA(void)
static void test_pack_GOPHER_ABSTRACT_ATTRIBUTE_TYPEW(void)
{
/* GOPHER_ABSTRACT_ATTRIBUTE_TYPEW (pack 4) */
/* GOPHER_ABSTRACT_ATTRIBUTE_TYPEW */
TEST_TYPE_SIZE (GOPHER_ABSTRACT_ATTRIBUTE_TYPEW, 8)
TEST_TYPE_ALIGN (GOPHER_ABSTRACT_ATTRIBUTE_TYPEW, 4)
TEST_FIELD_SIZE (GOPHER_ABSTRACT_ATTRIBUTE_TYPEW, ShortAbstract, 4)
......@@ -119,7 +1346,7 @@ static void test_pack_GOPHER_ABSTRACT_ATTRIBUTE_TYPEW(void)
static void test_pack_GOPHER_ADMIN_ATTRIBUTE_TYPEA(void)
{
/* GOPHER_ADMIN_ATTRIBUTE_TYPEA (pack 4) */
/* GOPHER_ADMIN_ATTRIBUTE_TYPEA */
TEST_TYPE_SIZE (GOPHER_ADMIN_ATTRIBUTE_TYPEA, 8)
TEST_TYPE_ALIGN (GOPHER_ADMIN_ATTRIBUTE_TYPEA, 4)
TEST_FIELD_SIZE (GOPHER_ADMIN_ATTRIBUTE_TYPEA, Comment, 4)
......@@ -132,7 +1359,7 @@ static void test_pack_GOPHER_ADMIN_ATTRIBUTE_TYPEA(void)
static void test_pack_GOPHER_ADMIN_ATTRIBUTE_TYPEW(void)
{
/* GOPHER_ADMIN_ATTRIBUTE_TYPEW (pack 4) */
/* GOPHER_ADMIN_ATTRIBUTE_TYPEW */
TEST_TYPE_SIZE (GOPHER_ADMIN_ATTRIBUTE_TYPEW, 8)
TEST_TYPE_ALIGN (GOPHER_ADMIN_ATTRIBUTE_TYPEW, 4)
TEST_FIELD_SIZE (GOPHER_ADMIN_ATTRIBUTE_TYPEW, Comment, 4)
......@@ -145,7 +1372,7 @@ static void test_pack_GOPHER_ADMIN_ATTRIBUTE_TYPEW(void)
static void test_pack_GOPHER_ASK_ATTRIBUTE_TYPEA(void)
{
/* GOPHER_ASK_ATTRIBUTE_TYPEA (pack 4) */
/* GOPHER_ASK_ATTRIBUTE_TYPEA */
TEST_TYPE_SIZE (GOPHER_ASK_ATTRIBUTE_TYPEA, 8)
TEST_TYPE_ALIGN (GOPHER_ASK_ATTRIBUTE_TYPEA, 4)
TEST_FIELD_SIZE (GOPHER_ASK_ATTRIBUTE_TYPEA, QuestionType, 4)
......@@ -158,7 +1385,7 @@ static void test_pack_GOPHER_ASK_ATTRIBUTE_TYPEA(void)
static void test_pack_GOPHER_ASK_ATTRIBUTE_TYPEW(void)
{
/* GOPHER_ASK_ATTRIBUTE_TYPEW (pack 4) */
/* GOPHER_ASK_ATTRIBUTE_TYPEW */
TEST_TYPE_SIZE (GOPHER_ASK_ATTRIBUTE_TYPEW, 8)
TEST_TYPE_ALIGN (GOPHER_ASK_ATTRIBUTE_TYPEW, 4)
TEST_FIELD_SIZE (GOPHER_ASK_ATTRIBUTE_TYPEW, QuestionType, 4)
......@@ -185,7 +1412,7 @@ static void test_pack_GOPHER_ATTRIBUTE_ENUMERATORW(void)
static void test_pack_GOPHER_ATTRIBUTE_TYPEA(void)
{
/* GOPHER_ATTRIBUTE_TYPEA (pack 4) */
/* GOPHER_ATTRIBUTE_TYPEA */
TEST_FIELD_SIZE (GOPHER_ATTRIBUTE_TYPEA, CategoryId, 4)
TEST_FIELD_ALIGN (GOPHER_ATTRIBUTE_TYPEA, CategoryId, 4)
TEST_FIELD_OFFSET(GOPHER_ATTRIBUTE_TYPEA, CategoryId, 0)
......@@ -196,7 +1423,7 @@ static void test_pack_GOPHER_ATTRIBUTE_TYPEA(void)
static void test_pack_GOPHER_ATTRIBUTE_TYPEW(void)
{
/* GOPHER_ATTRIBUTE_TYPEW (pack 4) */
/* GOPHER_ATTRIBUTE_TYPEW */
TEST_FIELD_SIZE (GOPHER_ATTRIBUTE_TYPEW, CategoryId, 4)
TEST_FIELD_ALIGN (GOPHER_ATTRIBUTE_TYPEW, CategoryId, 4)
TEST_FIELD_OFFSET(GOPHER_ATTRIBUTE_TYPEW, CategoryId, 0)
......@@ -207,7 +1434,7 @@ static void test_pack_GOPHER_ATTRIBUTE_TYPEW(void)
static void test_pack_GOPHER_FIND_DATAA(void)
{
/* GOPHER_FIND_DATAA (pack 4) */
/* GOPHER_FIND_DATAA */
TEST_TYPE_SIZE (GOPHER_FIND_DATAA, 808)
TEST_TYPE_ALIGN (GOPHER_FIND_DATAA, 4)
TEST_FIELD_SIZE (GOPHER_FIND_DATAA, DisplayString, 129)
......@@ -232,7 +1459,7 @@ static void test_pack_GOPHER_FIND_DATAA(void)
static void test_pack_GOPHER_FIND_DATAW(void)
{
/* GOPHER_FIND_DATAW (pack 4) */
/* GOPHER_FIND_DATAW */
TEST_TYPE_SIZE (GOPHER_FIND_DATAW, 1588)
TEST_TYPE_ALIGN (GOPHER_FIND_DATAW, 4)
TEST_FIELD_SIZE (GOPHER_FIND_DATAW, DisplayString, 258)
......@@ -257,7 +1484,7 @@ static void test_pack_GOPHER_FIND_DATAW(void)
static void test_pack_GOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE(void)
{
/* GOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE (pack 4) */
/* GOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE */
TEST_TYPE_SIZE (GOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE, 24)
TEST_TYPE_ALIGN (GOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE, 4)
TEST_FIELD_SIZE (GOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE, DegreesNorth, 4)
......@@ -282,7 +1509,7 @@ static void test_pack_GOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE(void)
static void test_pack_GOPHER_LOCATION_ATTRIBUTE_TYPEA(void)
{
/* GOPHER_LOCATION_ATTRIBUTE_TYPEA (pack 4) */
/* GOPHER_LOCATION_ATTRIBUTE_TYPEA */
TEST_TYPE_SIZE (GOPHER_LOCATION_ATTRIBUTE_TYPEA, 4)
TEST_TYPE_ALIGN (GOPHER_LOCATION_ATTRIBUTE_TYPEA, 4)
TEST_FIELD_SIZE (GOPHER_LOCATION_ATTRIBUTE_TYPEA, Location, 4)
......@@ -292,7 +1519,7 @@ static void test_pack_GOPHER_LOCATION_ATTRIBUTE_TYPEA(void)
static void test_pack_GOPHER_LOCATION_ATTRIBUTE_TYPEW(void)
{
/* GOPHER_LOCATION_ATTRIBUTE_TYPEW (pack 4) */
/* GOPHER_LOCATION_ATTRIBUTE_TYPEW */
TEST_TYPE_SIZE (GOPHER_LOCATION_ATTRIBUTE_TYPEW, 4)
TEST_TYPE_ALIGN (GOPHER_LOCATION_ATTRIBUTE_TYPEW, 4)
TEST_FIELD_SIZE (GOPHER_LOCATION_ATTRIBUTE_TYPEW, Location, 4)
......@@ -302,7 +1529,7 @@ static void test_pack_GOPHER_LOCATION_ATTRIBUTE_TYPEW(void)
static void test_pack_GOPHER_MOD_DATE_ATTRIBUTE_TYPE(void)
{
/* GOPHER_MOD_DATE_ATTRIBUTE_TYPE (pack 4) */
/* GOPHER_MOD_DATE_ATTRIBUTE_TYPE */
TEST_TYPE_SIZE (GOPHER_MOD_DATE_ATTRIBUTE_TYPE, 8)
TEST_TYPE_ALIGN (GOPHER_MOD_DATE_ATTRIBUTE_TYPE, 4)
TEST_FIELD_SIZE (GOPHER_MOD_DATE_ATTRIBUTE_TYPE, DateAndTime, 8)
......@@ -312,7 +1539,7 @@ static void test_pack_GOPHER_MOD_DATE_ATTRIBUTE_TYPE(void)
static void test_pack_GOPHER_ORGANIZATION_ATTRIBUTE_TYPEA(void)
{
/* GOPHER_ORGANIZATION_ATTRIBUTE_TYPEA (pack 4) */
/* GOPHER_ORGANIZATION_ATTRIBUTE_TYPEA */
TEST_TYPE_SIZE (GOPHER_ORGANIZATION_ATTRIBUTE_TYPEA, 4)
TEST_TYPE_ALIGN (GOPHER_ORGANIZATION_ATTRIBUTE_TYPEA, 4)
TEST_FIELD_SIZE (GOPHER_ORGANIZATION_ATTRIBUTE_TYPEA, Organization, 4)
......@@ -322,7 +1549,7 @@ static void test_pack_GOPHER_ORGANIZATION_ATTRIBUTE_TYPEA(void)
static void test_pack_GOPHER_ORGANIZATION_ATTRIBUTE_TYPEW(void)
{
/* GOPHER_ORGANIZATION_ATTRIBUTE_TYPEW (pack 4) */
/* GOPHER_ORGANIZATION_ATTRIBUTE_TYPEW */
TEST_TYPE_SIZE (GOPHER_ORGANIZATION_ATTRIBUTE_TYPEW, 4)
TEST_TYPE_ALIGN (GOPHER_ORGANIZATION_ATTRIBUTE_TYPEW, 4)
TEST_FIELD_SIZE (GOPHER_ORGANIZATION_ATTRIBUTE_TYPEW, Organization, 4)
......@@ -332,7 +1559,7 @@ static void test_pack_GOPHER_ORGANIZATION_ATTRIBUTE_TYPEW(void)
static void test_pack_GOPHER_PROVIDER_ATTRIBUTE_TYPEA(void)
{
/* GOPHER_PROVIDER_ATTRIBUTE_TYPEA (pack 4) */
/* GOPHER_PROVIDER_ATTRIBUTE_TYPEA */
TEST_TYPE_SIZE (GOPHER_PROVIDER_ATTRIBUTE_TYPEA, 4)
TEST_TYPE_ALIGN (GOPHER_PROVIDER_ATTRIBUTE_TYPEA, 4)
TEST_FIELD_SIZE (GOPHER_PROVIDER_ATTRIBUTE_TYPEA, Provider, 4)
......@@ -342,7 +1569,7 @@ static void test_pack_GOPHER_PROVIDER_ATTRIBUTE_TYPEA(void)
static void test_pack_GOPHER_PROVIDER_ATTRIBUTE_TYPEW(void)
{
/* GOPHER_PROVIDER_ATTRIBUTE_TYPEW (pack 4) */
/* GOPHER_PROVIDER_ATTRIBUTE_TYPEW */
TEST_TYPE_SIZE (GOPHER_PROVIDER_ATTRIBUTE_TYPEW, 4)
TEST_TYPE_ALIGN (GOPHER_PROVIDER_ATTRIBUTE_TYPEW, 4)
TEST_FIELD_SIZE (GOPHER_PROVIDER_ATTRIBUTE_TYPEW, Provider, 4)
......@@ -352,7 +1579,7 @@ static void test_pack_GOPHER_PROVIDER_ATTRIBUTE_TYPEW(void)
static void test_pack_GOPHER_SCORE_ATTRIBUTE_TYPE(void)
{
/* GOPHER_SCORE_ATTRIBUTE_TYPE (pack 4) */
/* GOPHER_SCORE_ATTRIBUTE_TYPE */
TEST_TYPE_SIZE (GOPHER_SCORE_ATTRIBUTE_TYPE, 4)
TEST_TYPE_ALIGN (GOPHER_SCORE_ATTRIBUTE_TYPE, 4)
TEST_FIELD_SIZE (GOPHER_SCORE_ATTRIBUTE_TYPE, Score, 4)
......@@ -362,7 +1589,7 @@ static void test_pack_GOPHER_SCORE_ATTRIBUTE_TYPE(void)
static void test_pack_GOPHER_SCORE_RANGE_ATTRIBUTE_TYPE(void)
{
/* GOPHER_SCORE_RANGE_ATTRIBUTE_TYPE (pack 4) */
/* GOPHER_SCORE_RANGE_ATTRIBUTE_TYPE */
TEST_TYPE_SIZE (GOPHER_SCORE_RANGE_ATTRIBUTE_TYPE, 8)
TEST_TYPE_ALIGN (GOPHER_SCORE_RANGE_ATTRIBUTE_TYPE, 4)
TEST_FIELD_SIZE (GOPHER_SCORE_RANGE_ATTRIBUTE_TYPE, LowerBound, 4)
......@@ -375,7 +1602,7 @@ static void test_pack_GOPHER_SCORE_RANGE_ATTRIBUTE_TYPE(void)
static void test_pack_GOPHER_SITE_ATTRIBUTE_TYPEA(void)
{
/* GOPHER_SITE_ATTRIBUTE_TYPEA (pack 4) */
/* GOPHER_SITE_ATTRIBUTE_TYPEA */
TEST_TYPE_SIZE (GOPHER_SITE_ATTRIBUTE_TYPEA, 4)
TEST_TYPE_ALIGN (GOPHER_SITE_ATTRIBUTE_TYPEA, 4)
TEST_FIELD_SIZE (GOPHER_SITE_ATTRIBUTE_TYPEA, Site, 4)
......@@ -385,7 +1612,7 @@ static void test_pack_GOPHER_SITE_ATTRIBUTE_TYPEA(void)
static void test_pack_GOPHER_SITE_ATTRIBUTE_TYPEW(void)
{
/* GOPHER_SITE_ATTRIBUTE_TYPEW (pack 4) */
/* GOPHER_SITE_ATTRIBUTE_TYPEW */
TEST_TYPE_SIZE (GOPHER_SITE_ATTRIBUTE_TYPEW, 4)
TEST_TYPE_ALIGN (GOPHER_SITE_ATTRIBUTE_TYPEW, 4)
TEST_FIELD_SIZE (GOPHER_SITE_ATTRIBUTE_TYPEW, Site, 4)
......@@ -395,7 +1622,7 @@ static void test_pack_GOPHER_SITE_ATTRIBUTE_TYPEW(void)
static void test_pack_GOPHER_TIMEZONE_ATTRIBUTE_TYPE(void)
{
/* GOPHER_TIMEZONE_ATTRIBUTE_TYPE (pack 4) */
/* GOPHER_TIMEZONE_ATTRIBUTE_TYPE */
TEST_TYPE_SIZE (GOPHER_TIMEZONE_ATTRIBUTE_TYPE, 4)
TEST_TYPE_ALIGN (GOPHER_TIMEZONE_ATTRIBUTE_TYPE, 4)
TEST_FIELD_SIZE (GOPHER_TIMEZONE_ATTRIBUTE_TYPE, Zone, 4)
......@@ -405,7 +1632,7 @@ static void test_pack_GOPHER_TIMEZONE_ATTRIBUTE_TYPE(void)
static void test_pack_GOPHER_TTL_ATTRIBUTE_TYPE(void)
{
/* GOPHER_TTL_ATTRIBUTE_TYPE (pack 4) */
/* GOPHER_TTL_ATTRIBUTE_TYPE */
TEST_TYPE_SIZE (GOPHER_TTL_ATTRIBUTE_TYPE, 4)
TEST_TYPE_ALIGN (GOPHER_TTL_ATTRIBUTE_TYPE, 4)
TEST_FIELD_SIZE (GOPHER_TTL_ATTRIBUTE_TYPE, Ttl, 4)
......@@ -415,7 +1642,7 @@ static void test_pack_GOPHER_TTL_ATTRIBUTE_TYPE(void)
static void test_pack_GOPHER_UNKNOWN_ATTRIBUTE_TYPEA(void)
{
/* GOPHER_UNKNOWN_ATTRIBUTE_TYPEA (pack 4) */
/* GOPHER_UNKNOWN_ATTRIBUTE_TYPEA */
TEST_TYPE_SIZE (GOPHER_UNKNOWN_ATTRIBUTE_TYPEA, 4)
TEST_TYPE_ALIGN (GOPHER_UNKNOWN_ATTRIBUTE_TYPEA, 4)
TEST_FIELD_SIZE (GOPHER_UNKNOWN_ATTRIBUTE_TYPEA, Text, 4)
......@@ -425,7 +1652,7 @@ static void test_pack_GOPHER_UNKNOWN_ATTRIBUTE_TYPEA(void)
static void test_pack_GOPHER_UNKNOWN_ATTRIBUTE_TYPEW(void)
{
/* GOPHER_UNKNOWN_ATTRIBUTE_TYPEW (pack 4) */
/* GOPHER_UNKNOWN_ATTRIBUTE_TYPEW */
TEST_TYPE_SIZE (GOPHER_UNKNOWN_ATTRIBUTE_TYPEW, 4)
TEST_TYPE_ALIGN (GOPHER_UNKNOWN_ATTRIBUTE_TYPEW, 4)
TEST_FIELD_SIZE (GOPHER_UNKNOWN_ATTRIBUTE_TYPEW, Text, 4)
......@@ -435,7 +1662,7 @@ static void test_pack_GOPHER_UNKNOWN_ATTRIBUTE_TYPEW(void)
static void test_pack_GOPHER_VERONICA_ATTRIBUTE_TYPE(void)
{
/* GOPHER_VERONICA_ATTRIBUTE_TYPE (pack 4) */
/* GOPHER_VERONICA_ATTRIBUTE_TYPE */
TEST_TYPE_SIZE (GOPHER_VERONICA_ATTRIBUTE_TYPE, 4)
TEST_TYPE_ALIGN (GOPHER_VERONICA_ATTRIBUTE_TYPE, 4)
TEST_FIELD_SIZE (GOPHER_VERONICA_ATTRIBUTE_TYPE, TreeWalk, 4)
......@@ -445,7 +1672,7 @@ static void test_pack_GOPHER_VERONICA_ATTRIBUTE_TYPE(void)
static void test_pack_GOPHER_VERSION_ATTRIBUTE_TYPEA(void)
{
/* GOPHER_VERSION_ATTRIBUTE_TYPEA (pack 4) */
/* GOPHER_VERSION_ATTRIBUTE_TYPEA */
TEST_TYPE_SIZE (GOPHER_VERSION_ATTRIBUTE_TYPEA, 4)
TEST_TYPE_ALIGN (GOPHER_VERSION_ATTRIBUTE_TYPEA, 4)
TEST_FIELD_SIZE (GOPHER_VERSION_ATTRIBUTE_TYPEA, Version, 4)
......@@ -455,7 +1682,7 @@ static void test_pack_GOPHER_VERSION_ATTRIBUTE_TYPEA(void)
static void test_pack_GOPHER_VERSION_ATTRIBUTE_TYPEW(void)
{
/* GOPHER_VERSION_ATTRIBUTE_TYPEW (pack 4) */
/* GOPHER_VERSION_ATTRIBUTE_TYPEW */
TEST_TYPE_SIZE (GOPHER_VERSION_ATTRIBUTE_TYPEW, 4)
TEST_TYPE_ALIGN (GOPHER_VERSION_ATTRIBUTE_TYPEW, 4)
TEST_FIELD_SIZE (GOPHER_VERSION_ATTRIBUTE_TYPEW, Version, 4)
......@@ -465,7 +1692,7 @@ static void test_pack_GOPHER_VERSION_ATTRIBUTE_TYPEW(void)
static void test_pack_GOPHER_VIEW_ATTRIBUTE_TYPEA(void)
{
/* GOPHER_VIEW_ATTRIBUTE_TYPEA (pack 4) */
/* GOPHER_VIEW_ATTRIBUTE_TYPEA */
TEST_TYPE_SIZE (GOPHER_VIEW_ATTRIBUTE_TYPEA, 12)
TEST_TYPE_ALIGN (GOPHER_VIEW_ATTRIBUTE_TYPEA, 4)
TEST_FIELD_SIZE (GOPHER_VIEW_ATTRIBUTE_TYPEA, ContentType, 4)
......@@ -481,7 +1708,7 @@ static void test_pack_GOPHER_VIEW_ATTRIBUTE_TYPEA(void)
static void test_pack_GOPHER_VIEW_ATTRIBUTE_TYPEW(void)
{
/* GOPHER_VIEW_ATTRIBUTE_TYPEW (pack 4) */
/* GOPHER_VIEW_ATTRIBUTE_TYPEW */
TEST_TYPE_SIZE (GOPHER_VIEW_ATTRIBUTE_TYPEW, 12)
TEST_TYPE_ALIGN (GOPHER_VIEW_ATTRIBUTE_TYPEW, 4)
TEST_FIELD_SIZE (GOPHER_VIEW_ATTRIBUTE_TYPEW, ContentType, 4)
......@@ -512,7 +1739,7 @@ static void test_pack_HINTERNET(void)
static void test_pack_HTTP_VERSION_INFO(void)
{
/* HTTP_VERSION_INFO (pack 4) */
/* HTTP_VERSION_INFO */
TEST_TYPE_SIZE (HTTP_VERSION_INFO, 8)
TEST_TYPE_ALIGN (HTTP_VERSION_INFO, 4)
TEST_FIELD_SIZE (HTTP_VERSION_INFO, dwMajorVersion, 4)
......@@ -525,7 +1752,7 @@ static void test_pack_HTTP_VERSION_INFO(void)
static void test_pack_INTERNET_ASYNC_RESULT(void)
{
/* INTERNET_ASYNC_RESULT (pack 4) */
/* INTERNET_ASYNC_RESULT */
TEST_TYPE_SIZE (INTERNET_ASYNC_RESULT, 8)
TEST_TYPE_ALIGN (INTERNET_ASYNC_RESULT, 4)
TEST_FIELD_SIZE (INTERNET_ASYNC_RESULT, dwResult, 4)
......@@ -538,7 +1765,7 @@ static void test_pack_INTERNET_ASYNC_RESULT(void)
static void test_pack_INTERNET_AUTH_NOTIFY_DATA(void)
{
/* INTERNET_AUTH_NOTIFY_DATA (pack 4) */
/* INTERNET_AUTH_NOTIFY_DATA */
TEST_TYPE_SIZE (INTERNET_AUTH_NOTIFY_DATA, 16)
TEST_TYPE_ALIGN (INTERNET_AUTH_NOTIFY_DATA, 4)
TEST_FIELD_SIZE (INTERNET_AUTH_NOTIFY_DATA, cbStruct, 4)
......@@ -557,7 +1784,7 @@ static void test_pack_INTERNET_AUTH_NOTIFY_DATA(void)
static void test_pack_INTERNET_BUFFERSA(void)
{
/* INTERNET_BUFFERSA (pack 4) */
/* INTERNET_BUFFERSA */
TEST_TYPE_SIZE (INTERNET_BUFFERSA, 40)
TEST_TYPE_ALIGN (INTERNET_BUFFERSA, 4)
TEST_FIELD_SIZE (INTERNET_BUFFERSA, dwStructSize, 4)
......@@ -594,7 +1821,7 @@ static void test_pack_INTERNET_BUFFERSA(void)
static void test_pack_INTERNET_BUFFERSW(void)
{
/* INTERNET_BUFFERSW (pack 4) */
/* INTERNET_BUFFERSW */
TEST_TYPE_SIZE (INTERNET_BUFFERSW, 40)
TEST_TYPE_ALIGN (INTERNET_BUFFERSW, 4)
TEST_FIELD_SIZE (INTERNET_BUFFERSW, dwStructSize, 4)
......@@ -631,7 +1858,7 @@ static void test_pack_INTERNET_BUFFERSW(void)
static void test_pack_INTERNET_CACHE_ENTRY_INFOA(void)
{
/* INTERNET_CACHE_ENTRY_INFOA (pack 4) */
/* INTERNET_CACHE_ENTRY_INFOA */
TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOA, dwStructSize, 4)
TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOA, dwStructSize, 4)
TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOA, dwStructSize, 0)
......@@ -681,7 +1908,7 @@ static void test_pack_INTERNET_CACHE_ENTRY_INFOA(void)
static void test_pack_INTERNET_CACHE_ENTRY_INFOW(void)
{
/* INTERNET_CACHE_ENTRY_INFOW (pack 4) */
/* INTERNET_CACHE_ENTRY_INFOW */
TEST_FIELD_SIZE (INTERNET_CACHE_ENTRY_INFOW, dwStructSize, 4)
TEST_FIELD_ALIGN (INTERNET_CACHE_ENTRY_INFOW, dwStructSize, 4)
TEST_FIELD_OFFSET(INTERNET_CACHE_ENTRY_INFOW, dwStructSize, 0)
......@@ -731,7 +1958,7 @@ static void test_pack_INTERNET_CACHE_ENTRY_INFOW(void)
static void test_pack_INTERNET_CERTIFICATE_INFOA(void)
{
/* INTERNET_CERTIFICATE_INFOA (pack 4) */
/* INTERNET_CERTIFICATE_INFOA */
TEST_TYPE_SIZE (INTERNET_CERTIFICATE_INFOA, 40)
TEST_TYPE_ALIGN (INTERNET_CERTIFICATE_INFOA, 4)
TEST_FIELD_SIZE (INTERNET_CERTIFICATE_INFOA, ftExpiry, 8)
......@@ -762,7 +1989,7 @@ static void test_pack_INTERNET_CERTIFICATE_INFOA(void)
static void test_pack_INTERNET_CERTIFICATE_INFOW(void)
{
/* INTERNET_CERTIFICATE_INFOW (pack 4) */
/* INTERNET_CERTIFICATE_INFOW */
TEST_TYPE_SIZE (INTERNET_CERTIFICATE_INFOW, 40)
TEST_TYPE_ALIGN (INTERNET_CERTIFICATE_INFOW, 4)
TEST_FIELD_SIZE (INTERNET_CERTIFICATE_INFOW, ftExpiry, 8)
......@@ -793,7 +2020,7 @@ static void test_pack_INTERNET_CERTIFICATE_INFOW(void)
static void test_pack_INTERNET_CONNECTED_INFO(void)
{
/* INTERNET_CONNECTED_INFO (pack 4) */
/* INTERNET_CONNECTED_INFO */
TEST_TYPE_SIZE (INTERNET_CONNECTED_INFO, 8)
TEST_TYPE_ALIGN (INTERNET_CONNECTED_INFO, 4)
TEST_FIELD_SIZE (INTERNET_CONNECTED_INFO, dwConnectedState, 4)
......@@ -814,7 +2041,7 @@ static void test_pack_INTERNET_PORT(void)
static void test_pack_INTERNET_PROXY_INFOA(void)
{
/* INTERNET_PROXY_INFOA (pack 4) */
/* INTERNET_PROXY_INFOA */
TEST_TYPE_SIZE (INTERNET_PROXY_INFOA, 12)
TEST_TYPE_ALIGN (INTERNET_PROXY_INFOA, 4)
TEST_FIELD_SIZE (INTERNET_PROXY_INFOA, dwAccessType, 4)
......@@ -830,7 +2057,7 @@ static void test_pack_INTERNET_PROXY_INFOA(void)
static void test_pack_INTERNET_PROXY_INFOW(void)
{
/* INTERNET_PROXY_INFOW (pack 4) */
/* INTERNET_PROXY_INFOW */
TEST_TYPE_SIZE (INTERNET_PROXY_INFOW, 12)
TEST_TYPE_ALIGN (INTERNET_PROXY_INFOW, 4)
TEST_FIELD_SIZE (INTERNET_PROXY_INFOW, dwAccessType, 4)
......@@ -853,7 +2080,7 @@ static void test_pack_INTERNET_STATUS_CALLBACK(void)
static void test_pack_INTERNET_VERSION_INFO(void)
{
/* INTERNET_VERSION_INFO (pack 4) */
/* INTERNET_VERSION_INFO */
TEST_TYPE_SIZE (INTERNET_VERSION_INFO, 8)
TEST_TYPE_ALIGN (INTERNET_VERSION_INFO, 4)
TEST_FIELD_SIZE (INTERNET_VERSION_INFO, dwMajorVersion, 4)
......@@ -1300,7 +2527,7 @@ static void test_pack_PFN_DIAL_HANDLER(void)
static void test_pack_URL_COMPONENTSA(void)
{
/* URL_COMPONENTSA (pack 4) */
/* URL_COMPONENTSA */
TEST_FIELD_SIZE (URL_COMPONENTSA, dwStructSize, 4)
TEST_FIELD_ALIGN (URL_COMPONENTSA, dwStructSize, 4)
TEST_FIELD_OFFSET(URL_COMPONENTSA, dwStructSize, 0)
......@@ -1314,7 +2541,7 @@ static void test_pack_URL_COMPONENTSA(void)
static void test_pack_URL_COMPONENTSW(void)
{
/* URL_COMPONENTSW (pack 4) */
/* URL_COMPONENTSW */
TEST_FIELD_SIZE (URL_COMPONENTSW, dwStructSize, 4)
TEST_FIELD_ALIGN (URL_COMPONENTSW, dwStructSize, 4)
TEST_FIELD_OFFSET(URL_COMPONENTSW, dwStructSize, 0)
......@@ -1326,6 +2553,8 @@ static void test_pack_URL_COMPONENTSW(void)
TEST_FIELD_OFFSET(URL_COMPONENTSW, dwSchemeLength, 8)
}
#endif /* _WIN64 */
static void test_pack(void)
{
test_pack_GOPHER_ABSTRACT_ATTRIBUTE_TYPEA();
......@@ -1434,9 +2663,5 @@ static void test_pack(void)
START_TEST(generated)
{
#ifdef _WIN64
ok(0, "The type size / alignment tests don't support Win64 yet\n");
#else
test_pack();
#endif
}
......@@ -42,6 +42,8 @@ use tests qw($tests);
use type;
use util qw(replace_file);
my $pointer_size = 4;
my @tests = ();
if ($options->pack) {
push @tests, "pack";
......@@ -172,9 +174,9 @@ sub _find_align_kind_size($) {
my $kind;
my $size;
if (/\*+$/) {
$align = 4;
$align = $pointer_size;
$kind = "pointer";
$size = 4;
$size = $pointer_size;
} elsif(/^(?:(signed|unsigned)\s+)?(?:__int8|char|byte)$/) {
$align = 1;
$kind = defined($1) ? $1 : "signed";
......@@ -191,10 +193,14 @@ sub _find_align_kind_size($) {
$align = 4;
$kind = defined($1) ? $1 : "signed";
$size = 4;
} elsif (/^(?:(signed|unsigned)\s+)?(?:__int32|int|long(?:\s+int)?)$/) {
} elsif (/^(?:(signed|unsigned)\s+)?(?:__int32|int)$/) {
$align = 4;
$kind = defined($1) ? $1 : "signed";
$size = 4;
} elsif (/^(?:(signed|unsigned)\s+)?(?:long(?:\s+int)?)$/) {
$align = $pointer_size;
$kind = defined($1) ? $1 : "signed";
$size = $pointer_size;
} elsif (/^(?:float)$/) {
$align = 4;
$kind = "float";
......@@ -212,13 +218,13 @@ sub _find_align_kind_size($) {
$kind = "float";
$size = 12;
} elsif (/^H(?:DC|BITMAP|BRUSH|ICON|INSTANCE|KEY|MENU|METAFILE|WND)$/) {
$align = 4;
$align = $pointer_size;
$kind = "pointer";
$size = 4;
$size = $pointer_size;
} elsif (/^LP(?:BYTE|CSTR|CWSTR|DWORD|STR|VOID|WSTR)$/) {
$align = 4;
$align = $pointer_size;
$kind = "pointer";
$size = 4;
$size = $pointer_size;
} elsif (/^(?:FILETIME)$/) {
$align = 4;
$kind = "struct";
......@@ -270,13 +276,13 @@ sub _find_align_kind_size($) {
$size_parse_reported{$_} = 1;
}
} elsif (/^\w+\s*\((?:\s*CALLBACK|\s*NTAPI|\s*WINAPI)?\s*\*\s*\)\s*\(.*?\)$/) {
$align = 4;
$align = $pointer_size;
$kind = "pointer";
$size = 4;
$size = $pointer_size;
}
my $align2;
if (defined(my $type = $type_name2type{$_})) {
if (defined(my $type = $type_name2type{$pointer_size}{$_})) {
$align2 = $type->align;
}
......@@ -292,7 +298,7 @@ sub _find_align_kind_size($) {
}
my $size2;
if (defined(my $type = $type_name2type{$_})) {
if (defined(my $type = $type_name2type{$pointer_size}{$_})) {
$size2 = $type->size;
}
......@@ -331,7 +337,9 @@ sub find_count($) {
}
foreach my $file (@files) {
$progress_current++;
$progress_current++;
foreach my $ptr (4, 8) {
$pointer_size = $ptr;
{
open(IN, "< $wine_dir/$file") || die "Error: Can't open $wine_dir/$file: $!\n";
......@@ -351,14 +359,14 @@ foreach my $file (@files) {
my $line;
my $type;
my @packs = (4);
my @packs = ();
my @ifdefs = ();
my $update_output = sub {
my $progress = "";
my $prefix = "";
$progress .= "$file (file $progress_current of $progress_max)";
$progress .= "$file (file $progress_current of $progress_max" . sprintf ", %u-bit)", $pointer_size * 8;
$prefix .= "$file: ";
if(defined($line)) {
......@@ -391,11 +399,11 @@ foreach my $file (@files) {
pop @packs unless @ifdefs && !$ifdefs[$#ifdefs];
#print "found poppack on line $begin_line\n";
} elsif ($preprocessor =~ /^\#\s*ifdef\s+_WIN64/) {
push @ifdefs, 0;
push @ifdefs, ($pointer_size == 8);
} elsif ($preprocessor =~ /^\#\s*ifndef\s+_WIN64/) {
push @ifdefs, 1;
push @ifdefs, ($pointer_size == 4);
} elsif ($preprocessor =~ /^\#\s*elif\s+defined(_WIN64)/) {
$ifdefs[$#ifdefs] = 0;
$ifdefs[$#ifdefs] = ($pointer_size == 8);
} elsif ($preprocessor =~ /^\#\s*ifdef\s/) {
push @ifdefs, 2;
} elsif ($preprocessor =~ /^\#\s*ifndef\s/) {
......@@ -420,7 +428,7 @@ foreach my $file (@files) {
&$update_output();
my $name = $type->name;
$file2types{$file}{$name} = $type;
$file2types{$pointer_size}{$file}{$name} = $type;
$type->set_find_align_callback(\&find_align);
$type->set_find_kind_callback(\&find_kind);
......@@ -447,7 +455,7 @@ foreach my $file (@files) {
}
# $output->write("$name: $size\n");
$type_name2type{$name} = $type;
$type_name2type{$pointer_size}{$name} = $type;
} else {
# $output->write("$name: can't find size\n");
}
......@@ -465,6 +473,7 @@ foreach my $file (@files) {
}
$output->prefix("");
}
}
########################################################################
......@@ -544,36 +553,24 @@ sub output_header($$$) {
print OUT " * Test helper macros\n";
print OUT " */\n";
print OUT "\n";
print OUT "#ifdef _WIN64\n";
print OUT "#define TEST_TYPE_SIZE(type, size) C_ASSERT(sizeof(type) == size);\n";
print OUT "\n";
print OUT "# define TEST_TYPE_SIZE(type, size)\n";
print OUT "#ifdef TYPE_ALIGNMENT\n";
print OUT "# define TEST_TYPE_ALIGN(type, align) C_ASSERT(TYPE_ALIGNMENT(type) == align);\n";
print OUT "#else\n";
print OUT "# define TEST_TYPE_ALIGN(type, align)\n";
print OUT "# define TEST_TARGET_ALIGN(type, align)\n";
print OUT "# define TEST_FIELD_ALIGN(type, field, align)\n";
print OUT "# define TEST_FIELD_OFFSET(type, field, offset)\n";
print OUT "#endif\n";
print OUT "\n";
print OUT "#ifdef _TYPE_ALIGNMENT\n";
print OUT "# define TEST_TARGET_ALIGN(type, align) C_ASSERT(_TYPE_ALIGNMENT(*(type)0) == align);\n";
print OUT "# define TEST_FIELD_ALIGN(type, field, align) C_ASSERT(_TYPE_ALIGNMENT(((type*)0)->field) == align);\n";
print OUT "#else\n";
print OUT "\n";
print OUT "# define TEST_TYPE_SIZE(type, size) C_ASSERT(sizeof(type) == size);\n";
print OUT "\n";
print OUT "# ifdef TYPE_ALIGNMENT\n";
print OUT "# define TEST_TYPE_ALIGN(type, align) C_ASSERT(TYPE_ALIGNMENT(type) == align);\n";
print OUT "# else\n";
print OUT "# define TEST_TYPE_ALIGN(type, align)\n";
print OUT "# endif\n";
print OUT "\n";
print OUT "# ifdef _TYPE_ALIGNMENT\n";
print OUT "# define TEST_TARGET_ALIGN(type, align) C_ASSERT(_TYPE_ALIGNMENT(*(type)0) == align);\n";
print OUT "# define TEST_FIELD_ALIGN(type, field, align) C_ASSERT(_TYPE_ALIGNMENT(((type*)0)->field) == align);\n";
print OUT "# else\n";
print OUT "# define TEST_TARGET_ALIGN(type, align)\n";
print OUT "# define TEST_FIELD_ALIGN(type, field, align)\n";
print OUT "# endif\n";
print OUT "\n";
print OUT "# define TEST_FIELD_OFFSET(type, field, offset) C_ASSERT(FIELD_OFFSET(type, field) == offset);\n";
print OUT "\n";
print OUT "# define TEST_TARGET_ALIGN(type, align)\n";
print OUT "# define TEST_FIELD_ALIGN(type, field, align)\n";
print OUT "#endif\n";
print OUT "\n";
print OUT "#define TEST_FIELD_OFFSET(type, field, offset) C_ASSERT(FIELD_OFFSET(type, field) == offset);\n";
print OUT "\n";
print OUT "#define TEST_TARGET_SIZE(type, size) TEST_TYPE_SIZE(*(type)0, size)\n";
print OUT "#define TEST_FIELD_SIZE(type, field, size) TEST_TYPE_SIZE((((type*)0)->field), size)\n";
print OUT "#define TEST_TYPE_SIGNED(type) C_ASSERT((type) -1 < 0);\n";
......@@ -594,11 +591,7 @@ sub output_footer($$$) {
print OUT "START_TEST(generated)\n";
print OUT "{\n";
foreach my $test (@tests) {
print OUT "#ifdef _WIN64\n";
print OUT " ok(0, \"The type size / alignment tests don't support Win64 yet\\n\");\n";
print OUT "#else\n";
print OUT " test_$test();\n";
print OUT "#endif\n";
}
print OUT "}\n";
}
......@@ -781,7 +774,7 @@ sub output_test_pack($$$$) {
}
foreach my $header (@headers) {
my $type_name2type = $file2types{"include/$header"};
my $type_name2type = $file2types{$pointer_size}{"include/$header"};
foreach my $_type_name (@type_names) {
my $type_name = $_type_name;
......@@ -825,7 +818,13 @@ sub output_file($$$$) {
my %type_names_used2;
if ($test eq "pack") {
output_test_pack(\*OUT, $test_dir, $test, \%type_names_used2);
print OUT "#ifdef _WIN64\n\n";
$pointer_size = 8;
output_test_pack(\*OUT, $test_dir, $test, \%type_names_used2);
print OUT "#else /* _WIN64 */\n\n";
$pointer_size = 4;
output_test_pack(\*OUT, $test_dir, $test, \%type_names_used2);
print OUT "#endif /* _WIN64 */\n\n";
} else {
die "no such test ($test)\n";
}
......@@ -858,10 +857,10 @@ foreach my $test_dir (@test_dirs) {
replace_file($file, \&output_file, $test_dir, \@tests, \%type_names_used);
}
foreach my $header (sort(keys(%file2types))) {
foreach my $header (sort(keys(%{$file2types{$pointer_size}}))) {
$output->prefix("$header: ");
$header =~ s%^include/%%;
my $type_name2type = $file2types{"include/$header"};
my $type_name2type = $file2types{$pointer_size}{"include/$header"};
foreach my $_type_name (sort(keys(%$type_name2type))) {
my $type_name = $_type_name;
......@@ -874,8 +873,8 @@ foreach my $header (sort(keys(%file2types))) {
$output->prefix("$winapi_dir/tests.dat: ");
foreach my $type_name (sort(keys(%type_names_used))) {
my $found = 0;
foreach my $header (sort(keys(%file2types))) {
my $type_name2type = $file2types{"include/$header"};
foreach my $header (sort(keys(%{$file2types{$pointer_size}}))) {
my $type_name2type = $file2types{$pointer_size}{"include/$header"};
if (exists($type_name2type{$type_name})) {
$found = 1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment