Commit 20b8b56d authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

Enable the disabled tests in tests.data or add a comment describing

why the type cannot be tested. Update the generated files, they compile and run successfully both on Windows (with the Windows headers) and in Wine.
parent 3a2574e3
......@@ -318,6 +318,28 @@ static void test_pack_COLORADJUSTMENT(void)
TEST_FIELD(COLORADJUSTMENT, SHORT, caRedGreenTint, 22, 2, 2);
}
static void test_pack_DEVMODEA(void)
{
/* DEVMODEA (pack 4) */
TEST_FIELD(DEVMODEA, BYTE[CCHDEVICENAME], dmDeviceName, 0, 32, 1);
TEST_FIELD(DEVMODEA, WORD, dmSpecVersion, 32, 2, 2);
TEST_FIELD(DEVMODEA, WORD, dmDriverVersion, 34, 2, 2);
TEST_FIELD(DEVMODEA, WORD, dmSize, 36, 2, 2);
TEST_FIELD(DEVMODEA, WORD, dmDriverExtra, 38, 2, 2);
TEST_FIELD(DEVMODEA, DWORD, dmFields, 40, 4, 4);
}
static void test_pack_DEVMODEW(void)
{
/* DEVMODEW (pack 4) */
TEST_FIELD(DEVMODEW, WCHAR[CCHDEVICENAME], dmDeviceName, 0, 64, 2);
TEST_FIELD(DEVMODEW, WORD, dmSpecVersion, 64, 2, 2);
TEST_FIELD(DEVMODEW, WORD, dmDriverVersion, 66, 2, 2);
TEST_FIELD(DEVMODEW, WORD, dmSize, 68, 2, 2);
TEST_FIELD(DEVMODEW, WORD, dmDriverExtra, 70, 2, 2);
TEST_FIELD(DEVMODEW, DWORD, dmFields, 72, 4, 4);
}
static void test_pack_DIBSECTION(void)
{
/* DIBSECTION (pack 4) */
......@@ -1905,6 +1927,18 @@ static void test_pack_LPCOLORADJUSTMENT(void)
TEST_TYPE_POINTER(LPCOLORADJUSTMENT, 24, 2);
}
static void test_pack_LPDEVMODEA(void)
{
/* LPDEVMODEA */
TEST_TYPE(LPDEVMODEA, 4, 4);
}
static void test_pack_LPDEVMODEW(void)
{
/* LPDEVMODEW */
TEST_TYPE(LPDEVMODEW, 4, 4);
}
static void test_pack_LPDIBSECTION(void)
{
/* LPDIBSECTION */
......@@ -3829,6 +3863,8 @@ static void test_pack(void)
test_pack_CIEXYZTRIPLE();
test_pack_COLOR16();
test_pack_COLORADJUSTMENT();
test_pack_DEVMODEA();
test_pack_DEVMODEW();
test_pack_DIBSECTION();
test_pack_DISPLAY_DEVICEA();
test_pack_DISPLAY_DEVICEW();
......@@ -3989,6 +4025,8 @@ static void test_pack(void)
test_pack_LPCIEXYZ();
test_pack_LPCIEXYZTRIPLE();
test_pack_LPCOLORADJUSTMENT();
test_pack_LPDEVMODEA();
test_pack_LPDEVMODEW();
test_pack_LPDIBSECTION();
test_pack_LPDISPLAY_DEVICEA();
test_pack_LPDISPLAY_DEVICEW();
......
......@@ -340,6 +340,20 @@ static void test_pack_BY_HANDLE_FILE_INFORMATION(void)
TEST_FIELD(BY_HANDLE_FILE_INFORMATION, DWORD, nFileIndexLow, 48, 4, 4);
}
static void test_pack_COMMCONFIG(void)
{
/* COMMCONFIG (pack 4) */
TEST_TYPE(COMMCONFIG, 52, 4);
TEST_FIELD(COMMCONFIG, DWORD, dwSize, 0, 4, 4);
TEST_FIELD(COMMCONFIG, WORD, wVersion, 4, 2, 2);
TEST_FIELD(COMMCONFIG, WORD, wReserved, 6, 2, 2);
TEST_FIELD(COMMCONFIG, DCB, dcb, 8, 28, 4);
TEST_FIELD(COMMCONFIG, DWORD, dwProviderSubType, 36, 4, 4);
TEST_FIELD(COMMCONFIG, DWORD, dwProviderOffset, 40, 4, 4);
TEST_FIELD(COMMCONFIG, DWORD, dwProviderSize, 44, 4, 4);
TEST_FIELD(COMMCONFIG, DWORD[1], wcProviderData, 48, 4, 4);
}
static void test_pack_COMMPROP(void)
{
/* COMMPROP (pack 4) */
......@@ -375,6 +389,14 @@ static void test_pack_COMMTIMEOUTS(void)
TEST_FIELD(COMMTIMEOUTS, DWORD, WriteTotalTimeoutConstant, 16, 4, 4);
}
static void test_pack_COMSTAT(void)
{
/* COMSTAT (pack 4) */
TEST_TYPE(COMSTAT, 12, 4);
TEST_FIELD(COMSTAT, DWORD, cbInQue, 4, 4, 4);
TEST_FIELD(COMSTAT, DWORD, cbOutQue, 8, 4, 4);
}
static void test_pack_CREATE_PROCESS_DEBUG_INFO(void)
{
/* CREATE_PROCESS_DEBUG_INFO (pack 4) */
......@@ -412,6 +434,34 @@ static void test_pack_CRITICAL_SECTION_DEBUG(void)
TEST_TYPE(CRITICAL_SECTION_DEBUG, 32, 4);
}
static void test_pack_DCB(void)
{
/* DCB (pack 4) */
TEST_TYPE(DCB, 28, 4);
TEST_FIELD(DCB, DWORD, DCBlength, 0, 4, 4);
TEST_FIELD(DCB, DWORD, BaudRate, 4, 4, 4);
TEST_FIELD(DCB, WORD, wReserved, 12, 2, 2);
TEST_FIELD(DCB, WORD, XonLim, 14, 2, 2);
TEST_FIELD(DCB, WORD, XoffLim, 16, 2, 2);
TEST_FIELD(DCB, BYTE, ByteSize, 18, 1, 1);
TEST_FIELD(DCB, BYTE, Parity, 19, 1, 1);
TEST_FIELD(DCB, BYTE, StopBits, 20, 1, 1);
TEST_FIELD(DCB, char, XonChar, 21, 1, 1);
TEST_FIELD(DCB, char, XoffChar, 22, 1, 1);
TEST_FIELD(DCB, char, ErrorChar, 23, 1, 1);
TEST_FIELD(DCB, char, EofChar, 24, 1, 1);
TEST_FIELD(DCB, char, EvtChar, 25, 1, 1);
TEST_FIELD(DCB, WORD, wReserved1, 26, 2, 2);
}
static void test_pack_DEBUG_EVENT(void)
{
/* DEBUG_EVENT (pack 4) */
TEST_FIELD(DEBUG_EVENT, DWORD, dwDebugEventCode, 0, 4, 4);
TEST_FIELD(DEBUG_EVENT, DWORD, dwProcessId, 4, 4, 4);
TEST_FIELD(DEBUG_EVENT, DWORD, dwThreadId, 8, 4, 4);
}
static void test_pack_ENUMRESLANGPROCA(void)
{
/* ENUMRESLANGPROCA */
......@@ -507,6 +557,13 @@ static void test_pack_LPBY_HANDLE_FILE_INFORMATION(void)
TEST_TYPE_POINTER(LPBY_HANDLE_FILE_INFORMATION, 52, 4);
}
static void test_pack_LPCOMMCONFIG(void)
{
/* LPCOMMCONFIG */
TEST_TYPE(LPCOMMCONFIG, 4, 4);
TEST_TYPE_POINTER(LPCOMMCONFIG, 52, 4);
}
static void test_pack_LPCOMMPROP(void)
{
/* LPCOMMPROP */
......@@ -521,6 +578,13 @@ static void test_pack_LPCOMMTIMEOUTS(void)
TEST_TYPE_POINTER(LPCOMMTIMEOUTS, 20, 4);
}
static void test_pack_LPCOMSTAT(void)
{
/* LPCOMSTAT */
TEST_TYPE(LPCOMSTAT, 4, 4);
TEST_TYPE_POINTER(LPCOMSTAT, 12, 4);
}
static void test_pack_LPCRITICAL_SECTION(void)
{
/* LPCRITICAL_SECTION */
......@@ -533,6 +597,19 @@ static void test_pack_LPCRITICAL_SECTION_DEBUG(void)
TEST_TYPE(LPCRITICAL_SECTION_DEBUG, 4, 4);
}
static void test_pack_LPDCB(void)
{
/* LPDCB */
TEST_TYPE(LPDCB, 4, 4);
TEST_TYPE_POINTER(LPDCB, 28, 4);
}
static void test_pack_LPDEBUG_EVENT(void)
{
/* LPDEBUG_EVENT */
TEST_TYPE(LPDEBUG_EVENT, 4, 4);
}
static void test_pack_LPEXCEPTION_POINTERS(void)
{
/* LPEXCEPTION_POINTERS */
......@@ -599,6 +676,12 @@ static void test_pack_LPOVERLAPPED_COMPLETION_ROUTINE(void)
TEST_TYPE(LPOVERLAPPED_COMPLETION_ROUTINE, 4, 4);
}
static void test_pack_LPPROCESS_HEAP_ENTRY(void)
{
/* LPPROCESS_HEAP_ENTRY */
TEST_TYPE(LPPROCESS_HEAP_ENTRY, 4, 4);
}
static void test_pack_LPPROCESS_INFORMATION(void)
{
/* LPPROCESS_INFORMATION */
......@@ -640,6 +723,12 @@ static void test_pack_LPSYSTEMTIME(void)
TEST_TYPE_POINTER(LPSYSTEMTIME, 16, 2);
}
static void test_pack_LPSYSTEM_INFO(void)
{
/* LPSYSTEM_INFO */
TEST_TYPE(LPSYSTEM_INFO, 4, 4);
}
static void test_pack_LPSYSTEM_POWER_STATUS(void)
{
/* LPSYSTEM_POWER_STATUS */
......@@ -864,6 +953,12 @@ static void test_pack_POFSTRUCT(void)
TEST_TYPE_POINTER(POFSTRUCT, 136, 2);
}
static void test_pack_PPROCESS_HEAP_ENTRY(void)
{
/* PPROCESS_HEAP_ENTRY */
TEST_TYPE(PPROCESS_HEAP_ENTRY, 4, 4);
}
static void test_pack_PPROCESS_INFORMATION(void)
{
/* PPROCESS_INFORMATION */
......@@ -877,6 +972,16 @@ static void test_pack_PQUERYACTCTXW_FUNC(void)
TEST_TYPE(PQUERYACTCTXW_FUNC, 4, 4);
}
static void test_pack_PROCESS_HEAP_ENTRY(void)
{
/* PROCESS_HEAP_ENTRY (pack 4) */
TEST_FIELD(PROCESS_HEAP_ENTRY, LPVOID, lpData, 0, 4, 4);
TEST_FIELD(PROCESS_HEAP_ENTRY, DWORD, cbData, 4, 4, 4);
TEST_FIELD(PROCESS_HEAP_ENTRY, BYTE, cbOverhead, 8, 1, 1);
TEST_FIELD(PROCESS_HEAP_ENTRY, BYTE, iRegionIndex, 9, 1, 1);
TEST_FIELD(PROCESS_HEAP_ENTRY, WORD, wFlags, 10, 2, 2);
}
static void test_pack_PROCESS_INFORMATION(void)
{
/* PROCESS_INFORMATION (pack 4) */
......@@ -1007,6 +1112,11 @@ static void test_pack_SYSTEMTIME(void)
TEST_FIELD(SYSTEMTIME, WORD, wMilliseconds, 14, 2, 2);
}
static void test_pack_SYSTEM_INFO(void)
{
/* SYSTEM_INFO (pack 4) */
}
static void test_pack_SYSTEM_POWER_STATUS(void)
{
/* SYSTEM_POWER_STATUS (pack 4) */
......@@ -1109,12 +1219,16 @@ static void test_pack(void)
test_pack_ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA();
test_pack_ACTIVATION_CONTEXT_BASIC_INFORMATION();
test_pack_BY_HANDLE_FILE_INFORMATION();
test_pack_COMMCONFIG();
test_pack_COMMPROP();
test_pack_COMMTIMEOUTS();
test_pack_COMSTAT();
test_pack_CREATE_PROCESS_DEBUG_INFO();
test_pack_CREATE_THREAD_DEBUG_INFO();
test_pack_CRITICAL_SECTION();
test_pack_CRITICAL_SECTION_DEBUG();
test_pack_DCB();
test_pack_DEBUG_EVENT();
test_pack_ENUMRESLANGPROCA();
test_pack_ENUMRESLANGPROCW();
test_pack_ENUMRESNAMEPROCA();
......@@ -1128,10 +1242,14 @@ static void test_pack(void)
test_pack_HW_PROFILE_INFOW();
test_pack_LOAD_DLL_DEBUG_INFO();
test_pack_LPBY_HANDLE_FILE_INFORMATION();
test_pack_LPCOMMCONFIG();
test_pack_LPCOMMPROP();
test_pack_LPCOMMTIMEOUTS();
test_pack_LPCOMSTAT();
test_pack_LPCRITICAL_SECTION();
test_pack_LPCRITICAL_SECTION_DEBUG();
test_pack_LPDCB();
test_pack_LPDEBUG_EVENT();
test_pack_LPEXCEPTION_POINTERS();
test_pack_LPEXCEPTION_RECORD();
test_pack_LPFIBER_START_ROUTINE();
......@@ -1147,12 +1265,14 @@ static void test_pack(void)
test_pack_LPOSVERSIONINFOW();
test_pack_LPOVERLAPPED();
test_pack_LPOVERLAPPED_COMPLETION_ROUTINE();
test_pack_LPPROCESS_HEAP_ENTRY();
test_pack_LPPROCESS_INFORMATION();
test_pack_LPPROGRESS_ROUTINE();
test_pack_LPSECURITY_ATTRIBUTES();
test_pack_LPSTARTUPINFOA();
test_pack_LPSTARTUPINFOW();
test_pack_LPSYSTEMTIME();
test_pack_LPSYSTEM_INFO();
test_pack_LPSYSTEM_POWER_STATUS();
test_pack_LPTHREAD_START_ROUTINE();
test_pack_LPTIME_ZONE_INFORMATION();
......@@ -1192,8 +1312,10 @@ static void test_pack(void)
test_pack_POSVERSIONINFOEXA();
test_pack_POSVERSIONINFOEXW();
test_pack_POSVERSIONINFOW();
test_pack_PPROCESS_HEAP_ENTRY();
test_pack_PPROCESS_INFORMATION();
test_pack_PQUERYACTCTXW_FUNC();
test_pack_PROCESS_HEAP_ENTRY();
test_pack_PROCESS_INFORMATION();
test_pack_PSECURITY_ATTRIBUTES();
test_pack_PSYSTEMTIME();
......@@ -1206,6 +1328,7 @@ static void test_pack(void)
test_pack_STARTUPINFOA();
test_pack_STARTUPINFOW();
test_pack_SYSTEMTIME();
test_pack_SYSTEM_INFO();
test_pack_SYSTEM_POWER_STATUS();
test_pack_TIME_ZONE_INFORMATION();
test_pack_UNLOAD_DLL_DEBUG_INFO();
......
......@@ -353,6 +353,7 @@ static void test_pack_DWORDLONG(void)
{
/* DWORDLONG */
TEST_TYPE(DWORDLONG, 8, 8);
TEST_TYPE_UNSIGNED(DWORDLONG);
}
static void test_pack_EXCEPTION_POINTERS(void)
......@@ -417,6 +418,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 +598,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 +711,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 +738,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 +759,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 +784,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) */
......@@ -939,6 +977,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) */
......@@ -1182,6 +1229,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 */
......@@ -1210,6 +1263,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 */
......@@ -1224,6 +1283,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 */
......@@ -1238,6 +1303,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 */
......@@ -1245,6 +1316,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 */
......@@ -1348,6 +1431,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 */
......@@ -1419,6 +1508,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 */
......@@ -1624,6 +1719,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 */
......@@ -1732,6 +1833,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, 8);
}
static void test_pack_TOKEN_USER(void)
{
/* TOKEN_USER (pack 4) */
......@@ -2107,6 +2216,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();
......@@ -2129,15 +2239,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();
......@@ -2174,6 +2290,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();
......@@ -2209,15 +2326,21 @@ 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();
......@@ -2233,6 +2356,7 @@ 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();
......@@ -2251,6 +2375,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();
......@@ -2278,6 +2403,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();
......@@ -2296,6 +2422,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();
......
......@@ -604,6 +604,18 @@ static void test_pack_LPDRAGINFOW(void)
TEST_TYPE_POINTER(LPDRAGINFOW, 24, 1);
}
static void test_pack_LPSHELLEXECUTEINFOA(void)
{
/* LPSHELLEXECUTEINFOA */
TEST_TYPE(LPSHELLEXECUTEINFOA, 4, 4);
}
static void test_pack_LPSHELLEXECUTEINFOW(void)
{
/* LPSHELLEXECUTEINFOW */
TEST_TYPE(LPSHELLEXECUTEINFOW, 4, 4);
}
static void test_pack_LPSHFILEOPSTRUCTA(void)
{
/* LPSHFILEOPSTRUCTA */
......@@ -688,6 +700,42 @@ static void test_pack_PRINTEROP_FLAGS(void)
TEST_TYPE_UNSIGNED(PRINTEROP_FLAGS);
}
static void test_pack_SHELLEXECUTEINFOA(void)
{
/* SHELLEXECUTEINFOA (pack 1) */
TEST_FIELD(SHELLEXECUTEINFOA, DWORD, cbSize, 0, 4, 1);
TEST_FIELD(SHELLEXECUTEINFOA, ULONG, fMask, 4, 4, 1);
TEST_FIELD(SHELLEXECUTEINFOA, HWND, hwnd, 8, 4, 1);
TEST_FIELD(SHELLEXECUTEINFOA, LPCSTR, lpVerb, 12, 4, 1);
TEST_FIELD(SHELLEXECUTEINFOA, LPCSTR, lpFile, 16, 4, 1);
TEST_FIELD(SHELLEXECUTEINFOA, LPCSTR, lpParameters, 20, 4, 1);
TEST_FIELD(SHELLEXECUTEINFOA, LPCSTR, lpDirectory, 24, 4, 1);
TEST_FIELD(SHELLEXECUTEINFOA, INT, nShow, 28, 4, 1);
TEST_FIELD(SHELLEXECUTEINFOA, HINSTANCE, hInstApp, 32, 4, 1);
TEST_FIELD(SHELLEXECUTEINFOA, LPVOID, lpIDList, 36, 4, 1);
TEST_FIELD(SHELLEXECUTEINFOA, LPCSTR, lpClass, 40, 4, 1);
TEST_FIELD(SHELLEXECUTEINFOA, HKEY, hkeyClass, 44, 4, 1);
TEST_FIELD(SHELLEXECUTEINFOA, DWORD, dwHotKey, 48, 4, 1);
}
static void test_pack_SHELLEXECUTEINFOW(void)
{
/* SHELLEXECUTEINFOW (pack 1) */
TEST_FIELD(SHELLEXECUTEINFOW, DWORD, cbSize, 0, 4, 1);
TEST_FIELD(SHELLEXECUTEINFOW, ULONG, fMask, 4, 4, 1);
TEST_FIELD(SHELLEXECUTEINFOW, HWND, hwnd, 8, 4, 1);
TEST_FIELD(SHELLEXECUTEINFOW, LPCWSTR, lpVerb, 12, 4, 1);
TEST_FIELD(SHELLEXECUTEINFOW, LPCWSTR, lpFile, 16, 4, 1);
TEST_FIELD(SHELLEXECUTEINFOW, LPCWSTR, lpParameters, 20, 4, 1);
TEST_FIELD(SHELLEXECUTEINFOW, LPCWSTR, lpDirectory, 24, 4, 1);
TEST_FIELD(SHELLEXECUTEINFOW, INT, nShow, 28, 4, 1);
TEST_FIELD(SHELLEXECUTEINFOW, HINSTANCE, hInstApp, 32, 4, 1);
TEST_FIELD(SHELLEXECUTEINFOW, LPVOID, lpIDList, 36, 4, 1);
TEST_FIELD(SHELLEXECUTEINFOW, LPCWSTR, lpClass, 40, 4, 1);
TEST_FIELD(SHELLEXECUTEINFOW, HKEY, hkeyClass, 44, 4, 1);
TEST_FIELD(SHELLEXECUTEINFOW, DWORD, dwHotKey, 48, 4, 1);
}
static void test_pack_SHFILEINFOA(void)
{
/* SHFILEINFOA (pack 1) */
......@@ -758,6 +806,42 @@ static void test_pack_SHNAMEMAPPINGW(void)
TEST_FIELD(SHNAMEMAPPINGW, int, cchNewPath, 12, 4, 1);
}
static void test_pack_ITEMIDLIST(void)
{
/* ITEMIDLIST (pack 1) */
TEST_TYPE(ITEMIDLIST, 3, 1);
TEST_FIELD(ITEMIDLIST, SHITEMID, mkid, 0, 3, 1);
}
static void test_pack_LPCITEMIDLIST(void)
{
/* LPCITEMIDLIST */
TEST_TYPE(LPCITEMIDLIST, 4, 4);
TEST_TYPE_POINTER(LPCITEMIDLIST, 3, 1);
}
static void test_pack_LPITEMIDLIST(void)
{
/* LPITEMIDLIST */
TEST_TYPE(LPITEMIDLIST, 4, 4);
TEST_TYPE_POINTER(LPITEMIDLIST, 3, 1);
}
static void test_pack_LPSHITEMID(void)
{
/* LPSHITEMID */
TEST_TYPE(LPSHITEMID, 4, 4);
TEST_TYPE_POINTER(LPSHITEMID, 3, 1);
}
static void test_pack_SHITEMID(void)
{
/* SHITEMID (pack 1) */
TEST_TYPE(SHITEMID, 3, 1);
TEST_FIELD(SHITEMID, WORD, cb, 0, 2, 1);
TEST_FIELD(SHITEMID, BYTE[1], abID, 2, 1, 1);
}
static void test_pack_AUTO_SCROLL_DATA(void)
{
/* AUTO_SCROLL_DATA (pack 1) */
......@@ -775,6 +859,34 @@ static void test_pack_BFFCALLBACK(void)
TEST_TYPE(BFFCALLBACK, 4, 4);
}
static void test_pack_BROWSEINFOA(void)
{
/* BROWSEINFOA (pack 8) */
TEST_TYPE(BROWSEINFOA, 32, 4);
TEST_FIELD(BROWSEINFOA, HWND, hwndOwner, 0, 4, 4);
TEST_FIELD(BROWSEINFOA, LPCITEMIDLIST, pidlRoot, 4, 4, 4);
TEST_FIELD(BROWSEINFOA, LPSTR, pszDisplayName, 8, 4, 4);
TEST_FIELD(BROWSEINFOA, LPCSTR, lpszTitle, 12, 4, 4);
TEST_FIELD(BROWSEINFOA, UINT, ulFlags, 16, 4, 4);
TEST_FIELD(BROWSEINFOA, BFFCALLBACK, lpfn, 20, 4, 4);
TEST_FIELD(BROWSEINFOA, LPARAM, lParam, 24, 4, 4);
TEST_FIELD(BROWSEINFOA, INT, iImage, 28, 4, 4);
}
static void test_pack_BROWSEINFOW(void)
{
/* BROWSEINFOW (pack 8) */
TEST_TYPE(BROWSEINFOW, 32, 4);
TEST_FIELD(BROWSEINFOW, HWND, hwndOwner, 0, 4, 4);
TEST_FIELD(BROWSEINFOW, LPCITEMIDLIST, pidlRoot, 4, 4, 4);
TEST_FIELD(BROWSEINFOW, LPWSTR, pszDisplayName, 8, 4, 4);
TEST_FIELD(BROWSEINFOW, LPCWSTR, lpszTitle, 12, 4, 4);
TEST_FIELD(BROWSEINFOW, UINT, ulFlags, 16, 4, 4);
TEST_FIELD(BROWSEINFOW, BFFCALLBACK, lpfn, 20, 4, 4);
TEST_FIELD(BROWSEINFOW, LPARAM, lParam, 24, 4, 4);
TEST_FIELD(BROWSEINFOW, INT, iImage, 28, 4, 4);
}
static void test_pack_CABINETSTATE(void)
{
/* CABINETSTATE (pack 1) */
......@@ -872,6 +984,20 @@ static void test_pack_IShellIcon(void)
/* IShellIcon */
}
static void test_pack_LPBROWSEINFOA(void)
{
/* LPBROWSEINFOA */
TEST_TYPE(LPBROWSEINFOA, 4, 4);
TEST_TYPE_POINTER(LPBROWSEINFOA, 32, 4);
}
static void test_pack_LPBROWSEINFOW(void)
{
/* LPBROWSEINFOW */
TEST_TYPE(LPBROWSEINFOW, 4, 4);
TEST_TYPE_POINTER(LPBROWSEINFOW, 32, 4);
}
static void test_pack_LPCABINETSTATE(void)
{
/* LPCABINETSTATE */
......@@ -956,6 +1082,20 @@ static void test_pack_LPSHELLSTATE(void)
TEST_TYPE_POINTER(LPSHELLSTATE, 32, 1);
}
static void test_pack_PBROWSEINFOA(void)
{
/* PBROWSEINFOA */
TEST_TYPE(PBROWSEINFOA, 4, 4);
TEST_TYPE_POINTER(PBROWSEINFOA, 32, 4);
}
static void test_pack_PBROWSEINFOW(void)
{
/* PBROWSEINFOW */
TEST_TYPE(PBROWSEINFOW, 4, 4);
TEST_TYPE_POINTER(PBROWSEINFOW, 32, 4);
}
static void test_pack_SHChangeDWORDAsIDList(void)
{
/* SHChangeDWORDAsIDList (pack 1) */
......@@ -969,6 +1109,9 @@ static void test_pack_SHChangeDWORDAsIDList(void)
static void test_pack_SHChangeNotifyEntry(void)
{
/* SHChangeNotifyEntry (pack 1) */
TEST_TYPE(SHChangeNotifyEntry, 8, 1);
TEST_FIELD(SHChangeNotifyEntry, LPCITEMIDLIST, pidl, 0, 4, 1);
TEST_FIELD(SHChangeNotifyEntry, BOOL, fRecursive, 4, 4, 1);
}
static void test_pack_SHChangeProductKeyAsIDList(void)
......@@ -982,7 +1125,7 @@ static void test_pack_SHChangeProductKeyAsIDList(void)
static void test_pack_SHDESCRIPTIONID(void)
{
/* SHDESCRIPTIONID (pack 1) */
/* SHDESCRIPTIONID (pack 8) */
TEST_TYPE(SHDESCRIPTIONID, 20, 4);
TEST_FIELD(SHDESCRIPTIONID, DWORD, dwDescriptionId, 0, 4, 4);
TEST_FIELD(SHDESCRIPTIONID, CLSID, clsid, 4, 16, 4);
......@@ -1018,6 +1161,8 @@ static void test_pack(void)
test_pack_AUTO_SCROLL_DATA();
test_pack_BFFCALLBACK();
test_pack_BLOB();
test_pack_BROWSEINFOA();
test_pack_BROWSEINFOW();
test_pack_BSTR();
test_pack_BSTRBLOB();
test_pack_BYTE_BLOB();
......@@ -1050,10 +1195,14 @@ static void test_pack(void)
test_pack_IID();
test_pack_IShellChangeNotify();
test_pack_IShellIcon();
test_pack_ITEMIDLIST();
test_pack_LPBLOB();
test_pack_LPBROWSEINFOA();
test_pack_LPBROWSEINFOW();
test_pack_LPBSTR();
test_pack_LPBSTRBLOB();
test_pack_LPCABINETSTATE();
test_pack_LPCITEMIDLIST();
test_pack_LPCOLESTR();
test_pack_LPCY();
test_pack_LPDECIMAL();
......@@ -1066,20 +1215,26 @@ static void test_pack(void)
test_pack_LPFILEGROUPDESCRIPTORW();
test_pack_LPGUID();
test_pack_LPIDA();
test_pack_LPITEMIDLIST();
test_pack_LPOLESTR();
test_pack_LPSHChangeDWORDAsIDList();
test_pack_LPSHChangeProductKeyAsIDList();
test_pack_LPSHDESCRIPTIONID();
test_pack_LPSHELLEXECUTEINFOA();
test_pack_LPSHELLEXECUTEINFOW();
test_pack_LPSHELLFLAGSTATE();
test_pack_LPSHELLSTATE();
test_pack_LPSHFILEOPSTRUCTA();
test_pack_LPSHFILEOPSTRUCTW();
test_pack_LPSHITEMID();
test_pack_LPSHNAMEMAPPINGA();
test_pack_LPSHNAMEMAPPINGW();
test_pack_NOTIFYICONDATAA();
test_pack_NOTIFYICONDATAW();
test_pack_OLECHAR();
test_pack_PAPPBARDATA();
test_pack_PBROWSEINFOA();
test_pack_PBROWSEINFOW();
test_pack_PNOTIFYICONDATAA();
test_pack_PNOTIFYICONDATAW();
test_pack_PRINTEROP_FLAGS();
......@@ -1094,6 +1249,8 @@ static void test_pack(void)
test_pack_SHChangeNotifyEntry();
test_pack_SHChangeProductKeyAsIDList();
test_pack_SHDESCRIPTIONID();
test_pack_SHELLEXECUTEINFOA();
test_pack_SHELLEXECUTEINFOW();
test_pack_SHELLFLAGSTATE();
test_pack_SHELLSTATE();
test_pack_SHELLVIEWID();
......@@ -1101,6 +1258,7 @@ static void test_pack(void)
test_pack_SHFILEINFOW();
test_pack_SHFILEOPSTRUCTA();
test_pack_SHFILEOPSTRUCTW();
test_pack_SHITEMID();
test_pack_SHNAMEMAPPINGA();
test_pack_SHNAMEMAPPINGW();
test_pack_UP_BYTE_BLOB();
......
......@@ -561,6 +561,12 @@ static void test_pack_ICONMETRICSW(void)
TEST_FIELD(ICONMETRICSW, LOGFONTW, lfFont, 16, 92, 4);
}
static void test_pack_INPUT(void)
{
/* INPUT (pack 4) */
TEST_FIELD(INPUT, DWORD, type, 0, 4, 4);
}
static void test_pack_KBDLLHOOKSTRUCT(void)
{
/* KBDLLHOOKSTRUCT (pack 4) */
......@@ -863,6 +869,12 @@ static void test_pack_LPICONMETRICSW(void)
TEST_TYPE_POINTER(LPICONMETRICSW, 108, 4);
}
static void test_pack_LPINPUT(void)
{
/* LPINPUT */
TEST_TYPE(LPINPUT, 4, 4);
}
static void test_pack_LPKBDLLHOOKSTRUCT(void)
{
/* LPKBDLLHOOKSTRUCT */
......@@ -1713,6 +1725,12 @@ static void test_pack_PICONMETRICSW(void)
TEST_TYPE_POINTER(PICONMETRICSW, 108, 4);
}
static void test_pack_PINPUT(void)
{
/* PINPUT */
TEST_TYPE(PINPUT, 4, 4);
}
static void test_pack_PKBDLLHOOKSTRUCT(void)
{
/* PKBDLLHOOKSTRUCT */
......@@ -2266,6 +2284,7 @@ static void test_pack(void)
test_pack_ICONINFO();
test_pack_ICONMETRICSA();
test_pack_ICONMETRICSW();
test_pack_INPUT();
test_pack_KBDLLHOOKSTRUCT();
test_pack_KEYBDINPUT();
test_pack_LPACCEL();
......@@ -2308,6 +2327,7 @@ static void test_pack(void)
test_pack_LPHIGHCONTRASTW();
test_pack_LPICONMETRICSA();
test_pack_LPICONMETRICSW();
test_pack_LPINPUT();
test_pack_LPKBDLLHOOKSTRUCT();
test_pack_LPKEYBDINPUT();
test_pack_LPMDICREATESTRUCTA();
......@@ -2408,6 +2428,7 @@ static void test_pack(void)
test_pack_PICONINFO();
test_pack_PICONMETRICSA();
test_pack_PICONMETRICSW();
test_pack_PINPUT();
test_pack_PKBDLLHOOKSTRUCT();
test_pack_PKEYBDINPUT();
test_pack_PMDINEXTMENU();
......
......@@ -372,6 +372,7 @@ static void test_pack_GROUPID(void)
{
/* GROUPID */
TEST_TYPE(GROUPID, 8, 8);
TEST_TYPE_SIGNED(GROUPID);
}
static void test_pack_HINTERNET(void)
......@@ -874,11 +875,13 @@ static void test_pack_LPINTERNET_VERSION_INFO(void)
static void test_pack_LPURL_COMPONENTSA(void)
{
/* LPURL_COMPONENTSA */
TEST_TYPE(LPURL_COMPONENTSA, 4, 4);
}
static void test_pack_LPURL_COMPONENTSW(void)
{
/* LPURL_COMPONENTSW */
TEST_TYPE(LPURL_COMPONENTSW, 4, 4);
}
static void test_pack_PFN_AUTH_NOTIFY(void)
......
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