Add a check for sg_io_hdr_t and (not tested) check for scsireq_t
[wine] / dlls / ntdll / tests / generated.c
index 88ada07..6815416 100644 (file)
  */
 #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
@@ -353,6 +357,7 @@ static void test_pack_DWORDLONG(void)
 {
     /* DWORDLONG */
     TEST_TYPE(DWORDLONG, 8, 8);
+    TEST_TYPE_UNSIGNED(DWORDLONG);
 }
 
 static void test_pack_EXCEPTION_POINTERS(void)
@@ -369,10 +374,10 @@ static void test_pack_EXCEPTION_RECORD(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)
@@ -417,6 +422,12 @@ static void test_pack_GENERIC_MAPPING(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 */
@@ -591,6 +602,11 @@ static void test_pack_IMAGE_IMPORT_DESCRIPTOR(void)
     /* 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) */
@@ -699,6 +715,11 @@ static void test_pack_IMAGE_OS2_HEADER(void)
     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) */
@@ -721,6 +742,11 @@ static void test_pack_IMAGE_RESOURCE_DIRECTORY(void)
     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) */
@@ -737,6 +763,12 @@ static void test_pack_IMAGE_RESOURCE_DIR_STRING_U(void)
     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) */
@@ -756,6 +788,16 @@ static void test_pack_IMAGE_SEPARATE_DEBUG_HEADER(void)
     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) */
@@ -825,6 +867,18 @@ static void test_pack_IMAGE_VXD_HEADER(void)
     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 */
@@ -927,6 +981,15 @@ static void test_pack_MESSAGE_RESOURCE_ENTRY(void)
     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) */
@@ -1170,6 +1233,12 @@ static void test_pack_PIMAGE_IMPORT_DESCRIPTOR(void)
     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 */
@@ -1198,6 +1267,12 @@ static void test_pack_PIMAGE_OS2_HEADER(void)
     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 */
@@ -1212,6 +1287,12 @@ static void test_pack_PIMAGE_RESOURCE_DIRECTORY(void)
     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 */
@@ -1226,6 +1307,12 @@ static void test_pack_PIMAGE_RESOURCE_DIR_STRING_U(void)
     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 */
@@ -1233,6 +1320,18 @@ static void test_pack_PIMAGE_SEPARATE_DEBUG_HEADER(void)
     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 */
@@ -1253,6 +1352,13 @@ static void test_pack_PIMAGE_VXD_HEADER(void)
     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 */
@@ -1329,6 +1435,12 @@ static void test_pack_PMESSAGE_RESOURCE_ENTRY(void)
     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 */
@@ -1400,6 +1512,12 @@ static void test_pack_PSECURITY_DESCRIPTOR(void)
     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 */
@@ -1441,6 +1559,13 @@ static void test_pack_PSYSTEM_AUDIT_ACE(void)
     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 */
@@ -1448,6 +1573,13 @@ static void test_pack_PTOKEN_PRIVILEGES(void)
     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 */
@@ -1605,6 +1737,12 @@ static void test_pack_SECURITY_INFORMATION(void)
     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 */
@@ -1713,6 +1851,14 @@ static void test_pack_TOKEN_SOURCE(void)
     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) */
@@ -1948,6 +2094,13 @@ static void test_pack_PPOINT(void)
     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 */
@@ -1982,6 +2135,12 @@ static void test_pack_PSIZE(void)
     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) */
@@ -2088,6 +2247,7 @@ static void test_pack(void)
     test_pack_GENERIC_MAPPING();
     test_pack_GLOBALHANDLE();
     test_pack_HALF_PTR();
+    test_pack_HANDLE();
     test_pack_HCURSOR();
     test_pack_HFILE();
     test_pack_HGDIOBJ();
@@ -2110,15 +2270,21 @@ static void test_pack(void)
     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();
@@ -2127,6 +2293,7 @@ static void test_pack(void)
     test_pack_INT64();
     test_pack_INT8();
     test_pack_INT_PTR();
+    test_pack_IO_COUNTERS();
     test_pack_LANGID();
     test_pack_LARGE_INTEGER();
     test_pack_LCID();
@@ -2154,6 +2321,7 @@ static void test_pack(void)
     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();
@@ -2189,18 +2357,25 @@ static void test_pack(void)
     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();
@@ -2212,11 +2387,13 @@ static void test_pack(void)
     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();
@@ -2230,6 +2407,7 @@ static void test_pack(void)
     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();
@@ -2237,7 +2415,10 @@ static void test_pack(void)
     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();
@@ -2257,6 +2438,7 @@ static void test_pack(void)
     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();
@@ -2275,6 +2457,7 @@ static void test_pack(void)
     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();