*/
#endif
+#if defined(TYPE_ALIGNMENT) && defined(_MSC_VER) && _MSC_VER >= 800 && !defined(__cplusplus)
+#pragma warning(disable:4116)
+#endif
+
#if !defined(TYPE_ALIGNMENT) && defined(_TYPE_ALIGNMENT)
# define TYPE_ALIGNMENT _TYPE_ALIGNMENT
#endif
{
/* DWORDLONG */
TEST_TYPE(DWORDLONG, 8, 8);
+ TEST_TYPE_UNSIGNED(DWORDLONG);
}
static void test_pack_EXCEPTION_POINTERS(void)
TEST_TYPE(EXCEPTION_RECORD, 80, 4);
TEST_FIELD(EXCEPTION_RECORD, DWORD, ExceptionCode, 0, 4, 4);
TEST_FIELD(EXCEPTION_RECORD, DWORD, ExceptionFlags, 4, 4, 4);
- TEST_FIELD(EXCEPTION_RECORD, struct __EXCEPTION_RECORD *, ExceptionRecord, 8, 4, 4);
- TEST_FIELD(EXCEPTION_RECORD, LPVOID, ExceptionAddress, 12, 4, 4);
+ TEST_FIELD(EXCEPTION_RECORD, struct _EXCEPTION_RECORD *, ExceptionRecord, 8, 4, 4);
+ TEST_FIELD(EXCEPTION_RECORD, PVOID, ExceptionAddress, 12, 4, 4);
TEST_FIELD(EXCEPTION_RECORD, DWORD, NumberParameters, 16, 4, 4);
- TEST_FIELD(EXCEPTION_RECORD, DWORD[EXCEPTION_MAXIMUM_PARAMETERS], ExceptionInformation, 20, 60, 4);
+ TEST_FIELD(EXCEPTION_RECORD, ULONG_PTR[EXCEPTION_MAXIMUM_PARAMETERS], ExceptionInformation, 20, 60, 4);
}
static void test_pack_EXECUTION_STATE(void)
TEST_FIELD(GENERIC_MAPPING, ACCESS_MASK, GenericAll, 12, 4, 4);
}
+static void test_pack_HANDLE(void)
+{
+ /* HANDLE */
+ TEST_TYPE(HANDLE, 4, 4);
+}
+
static void test_pack_HRESULT(void)
{
/* HRESULT */
/* IMAGE_IMPORT_DESCRIPTOR (pack 4) */
}
+static void test_pack_IMAGE_LINENUMBER(void)
+{
+ /* IMAGE_LINENUMBER (pack 2) */
+}
+
static void test_pack_IMAGE_LOAD_CONFIG_DIRECTORY(void)
{
/* IMAGE_LOAD_CONFIG_DIRECTORY (pack 4) */
TEST_FIELD(IMAGE_OS2_HEADER, WORD, ne_expver, 62, 2, 2);
}
+static void test_pack_IMAGE_RELOCATION(void)
+{
+ /* IMAGE_RELOCATION (pack 2) */
+}
+
static void test_pack_IMAGE_RESOURCE_DATA_ENTRY(void)
{
/* IMAGE_RESOURCE_DATA_ENTRY (pack 4) */
TEST_FIELD(IMAGE_RESOURCE_DIRECTORY, WORD, NumberOfIdEntries, 14, 2, 2);
}
+static void test_pack_IMAGE_RESOURCE_DIRECTORY_ENTRY(void)
+{
+ /* IMAGE_RESOURCE_DIRECTORY_ENTRY (pack 4) */
+}
+
static void test_pack_IMAGE_RESOURCE_DIRECTORY_STRING(void)
{
/* IMAGE_RESOURCE_DIRECTORY_STRING (pack 4) */
TEST_FIELD(IMAGE_RESOURCE_DIR_STRING_U, WCHAR[ 1 ], NameString, 2, 2, 2);
}
+static void test_pack_IMAGE_SECTION_HEADER(void)
+{
+ /* IMAGE_SECTION_HEADER (pack 4) */
+ TEST_FIELD(IMAGE_SECTION_HEADER, BYTE[IMAGE_SIZEOF_SHORT_NAME], Name, 0, 8, 1);
+}
+
static void test_pack_IMAGE_SEPARATE_DEBUG_HEADER(void)
{
/* IMAGE_SEPARATE_DEBUG_HEADER (pack 4) */
TEST_FIELD(IMAGE_SEPARATE_DEBUG_HEADER, DWORD[ 2 ], Reserved, 40, 8, 4);
}
+static void test_pack_IMAGE_SYMBOL(void)
+{
+ /* IMAGE_SYMBOL (pack 2) */
+}
+
+static void test_pack_IMAGE_THUNK_DATA(void)
+{
+ /* IMAGE_THUNK_DATA (pack 4) */
+}
+
static void test_pack_IMAGE_TLS_DIRECTORY(void)
{
/* IMAGE_TLS_DIRECTORY (pack 4) */
TEST_FIELD(IMAGE_VXD_HEADER, WORD, e32_ddkver, 194, 2, 2);
}
+static void test_pack_IO_COUNTERS(void)
+{
+ /* IO_COUNTERS (pack 8) */
+ TEST_TYPE(IO_COUNTERS, 48, 8);
+ TEST_FIELD(IO_COUNTERS, ULONGLONG, ReadOperationCount, 0, 8, 8);
+ TEST_FIELD(IO_COUNTERS, ULONGLONG, WriteOperationCount, 8, 8, 8);
+ TEST_FIELD(IO_COUNTERS, ULONGLONG, OtherOperationCount, 16, 8, 8);
+ TEST_FIELD(IO_COUNTERS, ULONGLONG, ReadTransferCount, 24, 8, 8);
+ TEST_FIELD(IO_COUNTERS, ULONGLONG, WriteTransferCount, 32, 8, 8);
+ TEST_FIELD(IO_COUNTERS, ULONGLONG, OtherTransferCount, 40, 8, 8);
+}
+
static void test_pack_LANGID(void)
{
/* LANGID */
TEST_FIELD(MESSAGE_RESOURCE_ENTRY, BYTE[1], Text, 4, 1, 1);
}
+static void test_pack_NT_TIB(void)
+{
+ /* NT_TIB (pack 4) */
+ TEST_FIELD(NT_TIB, struct _EXCEPTION_REGISTRATION_RECORD *, ExceptionList, 0, 4, 4);
+ TEST_FIELD(NT_TIB, PVOID, StackBase, 4, 4, 4);
+ TEST_FIELD(NT_TIB, PVOID, StackLimit, 8, 4, 4);
+ TEST_FIELD(NT_TIB, PVOID, SubSystemTib, 12, 4, 4);
+}
+
static void test_pack_OBJECT_TYPE_LIST(void)
{
/* OBJECT_TYPE_LIST (pack 4) */
TEST_TYPE(PIMAGE_IMPORT_DESCRIPTOR, 4, 4);
}
+static void test_pack_PIMAGE_LINENUMBER(void)
+{
+ /* PIMAGE_LINENUMBER */
+ TEST_TYPE(PIMAGE_LINENUMBER, 4, 4);
+}
+
static void test_pack_PIMAGE_LOAD_CONFIG_DIRECTORY(void)
{
/* PIMAGE_LOAD_CONFIG_DIRECTORY */
TEST_TYPE_POINTER(PIMAGE_OS2_HEADER, 64, 2);
}
+static void test_pack_PIMAGE_RELOCATION(void)
+{
+ /* PIMAGE_RELOCATION */
+ TEST_TYPE(PIMAGE_RELOCATION, 4, 4);
+}
+
static void test_pack_PIMAGE_RESOURCE_DATA_ENTRY(void)
{
/* PIMAGE_RESOURCE_DATA_ENTRY */
TEST_TYPE_POINTER(PIMAGE_RESOURCE_DIRECTORY, 16, 4);
}
+static void test_pack_PIMAGE_RESOURCE_DIRECTORY_ENTRY(void)
+{
+ /* PIMAGE_RESOURCE_DIRECTORY_ENTRY */
+ TEST_TYPE(PIMAGE_RESOURCE_DIRECTORY_ENTRY, 4, 4);
+}
+
static void test_pack_PIMAGE_RESOURCE_DIRECTORY_STRING(void)
{
/* PIMAGE_RESOURCE_DIRECTORY_STRING */
TEST_TYPE_POINTER(PIMAGE_RESOURCE_DIR_STRING_U, 4, 2);
}
+static void test_pack_PIMAGE_SECTION_HEADER(void)
+{
+ /* PIMAGE_SECTION_HEADER */
+ TEST_TYPE(PIMAGE_SECTION_HEADER, 4, 4);
+}
+
static void test_pack_PIMAGE_SEPARATE_DEBUG_HEADER(void)
{
/* PIMAGE_SEPARATE_DEBUG_HEADER */
TEST_TYPE_POINTER(PIMAGE_SEPARATE_DEBUG_HEADER, 48, 4);
}
+static void test_pack_PIMAGE_SYMBOL(void)
+{
+ /* PIMAGE_SYMBOL */
+ TEST_TYPE(PIMAGE_SYMBOL, 4, 4);
+}
+
+static void test_pack_PIMAGE_THUNK_DATA(void)
+{
+ /* PIMAGE_THUNK_DATA */
+ TEST_TYPE(PIMAGE_THUNK_DATA, 4, 4);
+}
+
static void test_pack_PIMAGE_TLS_CALLBACK(void)
{
/* PIMAGE_TLS_CALLBACK */
TEST_TYPE_POINTER(PIMAGE_VXD_HEADER, 196, 2);
}
+static void test_pack_PIO_COUNTERS(void)
+{
+ /* PIO_COUNTERS */
+ TEST_TYPE(PIO_COUNTERS, 4, 4);
+ TEST_TYPE_POINTER(PIO_COUNTERS, 48, 8);
+}
+
static void test_pack_PISECURITY_DESCRIPTOR(void)
{
/* PISECURITY_DESCRIPTOR */
TEST_TYPE_POINTER(PMESSAGE_RESOURCE_ENTRY, 6, 2);
}
+static void test_pack_PNT_TIB(void)
+{
+ /* PNT_TIB */
+ TEST_TYPE(PNT_TIB, 4, 4);
+}
+
static void test_pack_POBJECT_TYPE_LIST(void)
{
/* POBJECT_TYPE_LIST */
TEST_TYPE(PSECURITY_DESCRIPTOR, 4, 4);
}
+static void test_pack_PSECURITY_QUALITY_OF_SERVICE(void)
+{
+ /* PSECURITY_QUALITY_OF_SERVICE */
+ TEST_TYPE(PSECURITY_QUALITY_OF_SERVICE, 4, 4);
+}
+
static void test_pack_PSID(void)
{
/* PSID */
TEST_TYPE_POINTER(PSYSTEM_AUDIT_ACE, 12, 4);
}
+static void test_pack_PTOKEN_GROUPS(void)
+{
+ /* PTOKEN_GROUPS */
+ TEST_TYPE(PTOKEN_GROUPS, 4, 4);
+ TEST_TYPE_POINTER(PTOKEN_GROUPS, 12, 4);
+}
+
static void test_pack_PTOKEN_PRIVILEGES(void)
{
/* PTOKEN_PRIVILEGES */
TEST_TYPE_POINTER(PTOKEN_PRIVILEGES, 16, 4);
}
+static void test_pack_PTOKEN_USER(void)
+{
+ /* PTOKEN_USER */
+ TEST_TYPE(PTOKEN_USER, 4, 4);
+ TEST_TYPE_POINTER(PTOKEN_USER, 8, 4);
+}
+
static void test_pack_PTOP_LEVEL_EXCEPTION_FILTER(void)
{
/* PTOP_LEVEL_EXCEPTION_FILTER */
TEST_TYPE_UNSIGNED(SECURITY_INFORMATION);
}
+static void test_pack_SECURITY_QUALITY_OF_SERVICE(void)
+{
+ /* SECURITY_QUALITY_OF_SERVICE (pack 4) */
+ TEST_FIELD(SECURITY_QUALITY_OF_SERVICE, DWORD, Length, 0, 4, 4);
+}
+
static void test_pack_SHORT(void)
{
/* SHORT */
TEST_FIELD(TOKEN_SOURCE, LUID, SourceIdentifier, 8, 8, 4);
}
+static void test_pack_TOKEN_STATISTICS(void)
+{
+ /* TOKEN_STATISTICS (pack 4) */
+ TEST_FIELD(TOKEN_STATISTICS, LUID, TokenId, 0, 8, 4);
+ TEST_FIELD(TOKEN_STATISTICS, LUID, AuthenticationId, 8, 8, 4);
+ TEST_FIELD(TOKEN_STATISTICS, LARGE_INTEGER, ExpirationTime, 16, 8, 4);
+}
+
static void test_pack_TOKEN_USER(void)
{
/* TOKEN_USER (pack 4) */
TEST_TYPE_POINTER(PPOINT, 8, 4);
}
+static void test_pack_PPOINTL(void)
+{
+ /* PPOINTL */
+ TEST_TYPE(PPOINTL, 4, 4);
+ TEST_TYPE_POINTER(PPOINTL, 8, 4);
+}
+
static void test_pack_PPOINTS(void)
{
/* PPOINTS */
TEST_TYPE_POINTER(PSIZE, 8, 4);
}
+static void test_pack_PSZ(void)
+{
+ /* PSZ */
+ TEST_TYPE(PSZ, 4, 4);
+}
+
static void test_pack_RECT(void)
{
/* RECT (pack 4) */
test_pack_GENERIC_MAPPING();
test_pack_GLOBALHANDLE();
test_pack_HALF_PTR();
+ test_pack_HANDLE();
test_pack_HCURSOR();
test_pack_HFILE();
test_pack_HGDIOBJ();
test_pack_IMAGE_FUNCTION_ENTRY();
test_pack_IMAGE_IMPORT_BY_NAME();
test_pack_IMAGE_IMPORT_DESCRIPTOR();
+ test_pack_IMAGE_LINENUMBER();
test_pack_IMAGE_LOAD_CONFIG_DIRECTORY();
test_pack_IMAGE_NT_HEADERS();
test_pack_IMAGE_OPTIONAL_HEADER();
test_pack_IMAGE_OS2_HEADER();
+ test_pack_IMAGE_RELOCATION();
test_pack_IMAGE_RESOURCE_DATA_ENTRY();
test_pack_IMAGE_RESOURCE_DIRECTORY();
+ test_pack_IMAGE_RESOURCE_DIRECTORY_ENTRY();
test_pack_IMAGE_RESOURCE_DIRECTORY_STRING();
test_pack_IMAGE_RESOURCE_DIR_STRING_U();
+ test_pack_IMAGE_SECTION_HEADER();
test_pack_IMAGE_SEPARATE_DEBUG_HEADER();
+ test_pack_IMAGE_SYMBOL();
+ test_pack_IMAGE_THUNK_DATA();
test_pack_IMAGE_TLS_DIRECTORY();
test_pack_IMAGE_VXD_HEADER();
test_pack_INT();
test_pack_INT64();
test_pack_INT8();
test_pack_INT_PTR();
+ test_pack_IO_COUNTERS();
test_pack_LANGID();
test_pack_LARGE_INTEGER();
test_pack_LCID();
test_pack_MESSAGE_RESOURCE_BLOCK();
test_pack_MESSAGE_RESOURCE_DATA();
test_pack_MESSAGE_RESOURCE_ENTRY();
+ test_pack_NT_TIB();
test_pack_OBJECT_TYPE_LIST();
test_pack_PACCESS_ALLOWED_ACE();
test_pack_PACCESS_DENIED_ACE();
test_pack_PIMAGE_FUNCTION_ENTRY();
test_pack_PIMAGE_IMPORT_BY_NAME();
test_pack_PIMAGE_IMPORT_DESCRIPTOR();
+ test_pack_PIMAGE_LINENUMBER();
test_pack_PIMAGE_LOAD_CONFIG_DIRECTORY();
test_pack_PIMAGE_NT_HEADERS();
test_pack_PIMAGE_OPTIONAL_HEADER();
test_pack_PIMAGE_OS2_HEADER();
+ test_pack_PIMAGE_RELOCATION();
test_pack_PIMAGE_RESOURCE_DATA_ENTRY();
test_pack_PIMAGE_RESOURCE_DIRECTORY();
+ test_pack_PIMAGE_RESOURCE_DIRECTORY_ENTRY();
test_pack_PIMAGE_RESOURCE_DIRECTORY_STRING();
test_pack_PIMAGE_RESOURCE_DIR_STRING_U();
+ test_pack_PIMAGE_SECTION_HEADER();
test_pack_PIMAGE_SEPARATE_DEBUG_HEADER();
+ test_pack_PIMAGE_SYMBOL();
+ test_pack_PIMAGE_THUNK_DATA();
test_pack_PIMAGE_TLS_CALLBACK();
test_pack_PIMAGE_TLS_DIRECTORY();
test_pack_PIMAGE_VXD_HEADER();
+ test_pack_PIO_COUNTERS();
test_pack_PISECURITY_DESCRIPTOR();
test_pack_PISECURITY_DESCRIPTOR_RELATIVE();
test_pack_PISID();
test_pack_PMESSAGE_RESOURCE_BLOCK();
test_pack_PMESSAGE_RESOURCE_DATA();
test_pack_PMESSAGE_RESOURCE_ENTRY();
+ test_pack_PNT_TIB();
test_pack_POBJECT_TYPE_LIST();
test_pack_POINT();
test_pack_POINTL();
test_pack_POINTS();
test_pack_PPOINT();
+ test_pack_PPOINTL();
test_pack_PPOINTS();
test_pack_PPRIVILEGE_SET();
test_pack_PRECT();
test_pack_PRTL_OSVERSIONINFOW();
test_pack_PRTL_RESOURCE_DEBUG();
test_pack_PSECURITY_DESCRIPTOR();
+ test_pack_PSECURITY_QUALITY_OF_SERVICE();
test_pack_PSID();
test_pack_PSID_IDENTIFIER_AUTHORITY();
test_pack_PSINGLE_LIST_ENTRY();
test_pack_PSTR();
test_pack_PSYSTEM_ALARM_ACE();
test_pack_PSYSTEM_AUDIT_ACE();
+ test_pack_PSZ();
+ test_pack_PTOKEN_GROUPS();
test_pack_PTOKEN_PRIVILEGES();
+ test_pack_PTOKEN_USER();
test_pack_PTOP_LEVEL_EXCEPTION_FILTER();
test_pack_PTSTR();
test_pack_PULARGE_INTEGER();
test_pack_SECURITY_DESCRIPTOR_CONTROL();
test_pack_SECURITY_DESCRIPTOR_RELATIVE();
test_pack_SECURITY_INFORMATION();
+ test_pack_SECURITY_QUALITY_OF_SERVICE();
test_pack_SHORT();
test_pack_SID();
test_pack_SID_AND_ATTRIBUTES();
test_pack_TOKEN_PRIMARY_GROUP();
test_pack_TOKEN_PRIVILEGES();
test_pack_TOKEN_SOURCE();
+ test_pack_TOKEN_STATISTICS();
test_pack_TOKEN_USER();
test_pack_UCHAR();
test_pack_UHALF_PTR();