18#define DWORD_PTR UINT_PTR
19#define LONG_PTR INT_PTR
20#define ULONG_PTR UINT_PTR
26#if defined(_MSC_VER) && (_MSC_VER >= 1300) && defined(__cplusplus)
27# define _TYPE_ALIGNMENT(type) __alignof(type)
28#elif defined(__GNUC__)
29# define _TYPE_ALIGNMENT(type) __alignof__(type)
38#if defined(TYPE_ALIGNMENT) && defined(_MSC_VER) && _MSC_VER >= 800 && !defined(__cplusplus)
39#pragma warning(disable:4116)
42#if !defined(TYPE_ALIGNMENT) && defined(_TYPE_ALIGNMENT)
43# define TYPE_ALIGNMENT _TYPE_ALIGNMENT
50#define TEST_TYPE_SIZE(type, size) C_ASSERT(sizeof(type) == size);
53# define TEST_TYPE_ALIGN(type, align) C_ASSERT(TYPE_ALIGNMENT(type) == align);
55# define TEST_TYPE_ALIGN(type, align)
59# define TEST_TARGET_ALIGN(type, align) C_ASSERT(_TYPE_ALIGNMENT(*(type)0) == align);
60# define TEST_FIELD_ALIGN(type, field, align) C_ASSERT(_TYPE_ALIGNMENT(((type*)0)->field) == align);
62# define TEST_TARGET_ALIGN(type, align)
63# define TEST_FIELD_ALIGN(type, field, align)
66#define TEST_FIELD_OFFSET(type, field, offset) C_ASSERT(FIELD_OFFSET(type, field) == offset);
68#define TEST_TARGET_SIZE(type, size) TEST_TYPE_SIZE(*(type)0, size)
69#define TEST_FIELD_SIZE(type, field, size) TEST_TYPE_SIZE((((type*)0)->field), size)
70#define TEST_TYPE_SIGNED(type) C_ASSERT((type) -1 < 0);
71#define TEST_TYPE_UNSIGNED(type) C_ASSERT((type) -1 > 0);
387 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA, ulSectionGlobalDataLength, 4)
418 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, ulDataFormatVersion, 4)
427 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, lpSectionGlobalData, 8)
430 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, ulSectionGlobalDataLength, 4)
431 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_2600, ulSectionGlobalDataLength, 4)
436 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, ulSectionTotalLength, 4)
442 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, ulAssemblyRosterIndex, 4)
452 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, lpInformation, 8)
453 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, lpInformation, 8)
455 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, lpSectionBase, 8)
456 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, lpSectionBase, 8)
458 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, ulSectionLength, 4)
459 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, ulSectionLength, 4)
460 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, ulSectionLength, 16)
461 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, lpSectionGlobalDataBase, 8)
462 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, lpSectionGlobalDataBase, 8)
463 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, lpSectionGlobalDataBase, 24)
464 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, ulSectionGlobalDataLength, 4)
465 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, ulSectionGlobalDataLength, 4)
466 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, ulSectionGlobalDataLength, 32)
1403 TEST_TYPE_SIZE (PCACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, 8)
2244 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA, ulSectionGlobalDataLength, 4)
2275 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, ulDataFormatVersion, 4)
2284 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, lpSectionGlobalData, 4)
2287 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, ulSectionGlobalDataLength, 4)
2288 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_2600, ulSectionGlobalDataLength, 4)
2289 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_2600, ulSectionGlobalDataLength, 20)
2293 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, ulSectionTotalLength, 4)
2299 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_2600, ulAssemblyRosterIndex, 4)
2300 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_2600, ulAssemblyRosterIndex, 4)
2309 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, lpInformation, 4)
2310 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, lpInformation, 4)
2311 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, lpInformation, 0)
2312 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, lpSectionBase, 4)
2313 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, lpSectionBase, 4)
2314 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, lpSectionBase, 4)
2315 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, ulSectionLength, 4)
2316 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, ulSectionLength, 4)
2317 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, ulSectionLength, 8)
2318 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, lpSectionGlobalDataBase, 4)
2319 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, lpSectionGlobalDataBase, 4)
2320 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, lpSectionGlobalDataBase, 12)
2321 TEST_FIELD_SIZE (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, ulSectionGlobalDataLength, 4)
2322 TEST_FIELD_ALIGN (ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, ulSectionGlobalDataLength, 4)
2323 TEST_FIELD_OFFSET(ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, ulSectionGlobalDataLength, 16)
3260 TEST_TYPE_SIZE (PCACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, 4)
SIZE_T LPPROCESS_INFORMATION
static DWORD DWORD * dwLength
#define TEST_TARGET_SIZE(type, size)
#define TEST_FIELD_OFFSET(type, field, offset)
#define TEST_TARGET_ALIGN(type, align)
static void test_pack(void)
#define TEST_TYPE_SIZE(type, size)
#define TEST_FIELD_SIZE(type, field, size)
#define TEST_TYPE_ALIGN(type, align)
#define TEST_FIELD_ALIGN(type, field, align)
static void test_pack_LPMEMORYSTATUS(void)
static void test_pack_PBY_HANDLE_FILE_INFORMATION(void)
static void test_pack_PCACTCTXA(void)
static void test_pack_BY_HANDLE_FILE_INFORMATION(void)
static void test_pack_WIN32_FIND_DATAW(void)
static void test_pack_PWIN32_FIND_DATAW(void)
static void test_pack_LPOSVERSIONINFOW(void)
static void test_pack_LPSYSTEM_POWER_STATUS(void)
static void test_pack_LPWIN32_STREAM_ID(void)
static void test_pack_OUTPUT_DEBUG_STRING_INFO(void)
static void test_pack_PTIMERAPCROUTINE(void)
static void test_pack_LPDCB(void)
static void test_pack_LPLONG(void)
static void test_pack_EXCEPTION_DEBUG_INFO(void)
static void test_pack_POSVERSIONINFOEXA(void)
static void test_pack_PACTCTX_SECTION_KEYED_DATA(void)
static void test_pack_PCACTCTX_SECTION_KEYED_DATA_2600(void)
static void test_pack_ENUMRESLANGPROCW(void)
static void test_pack_STARTUPINFOW(void)
static void test_pack_LPCOMMPROP(void)
static void test_pack_DCB(void)
static void test_pack_EXIT_PROCESS_DEBUG_INFO(void)
static void test_pack_UNLOAD_DLL_DEBUG_INFO(void)
static void test_pack_LPCRITICAL_SECTION_DEBUG(void)
static void test_pack_WIN32_STREAM_ID(void)
static void test_pack_LPCRITICAL_SECTION(void)
static void test_pack_LPSYSTEM_INFO(void)
static void test_pack_EXIT_THREAD_DEBUG_INFO(void)
static void test_pack_LPWIN32_FIND_DATAW(void)
static void test_pack_SYSTEM_INFO(void)
static void test_pack_SYSTEMTIME(void)
static void test_pack_PCRITICAL_SECTION_DEBUG(void)
static void test_pack_OSVERSIONINFOEXW(void)
static void test_pack_MEMORYSTATUSEX(void)
static void test_pack_COMMCONFIG(void)
static void test_pack_ACTCTX_SECTION_KEYED_DATA(void)
static void test_pack_DEBUG_EVENT(void)
static void test_pack_PAPCFUNC(void)
static void test_pack_LPTIME_ZONE_INFORMATION(void)
static void test_pack_PROCESS_INFORMATION(void)
static void test_pack_PHKEY(void)
static void test_pack_HW_PROFILE_INFOW(void)
static void test_pack_LPOVERLAPPED(void)
static void test_pack_LPCOMMCONFIG(void)
static void test_pack_OSVERSIONINFOEXA(void)
static void test_pack_LPPROGRESS_ROUTINE(void)
static void test_pack_ENUMRESNAMEPROCA(void)
static void test_pack_PTIME_ZONE_INFORMATION(void)
static void test_pack_ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA(void)
static void test_pack_LPSTARTUPINFOW(void)
static void test_pack_LPSYSTEMTIME(void)
static void test_pack_PSECURITY_ATTRIBUTES(void)
static void test_pack_ACTCTXA(void)
static void test_pack_LPSECURITY_ATTRIBUTES(void)
static void test_pack_LPWIN32_FILE_ATTRIBUTE_DATA(void)
static void test_pack_PACTCTXW(void)
static void test_pack_ACTIVATION_CONTEXT_BASIC_INFORMATION(void)
static void test_pack_ENUMRESNAMEPROCW(void)
static void test_pack_CRITICAL_SECTION(void)
static void test_pack_LPSTARTUPINFOA(void)
static void test_pack_ACTCTX_SECTION_KEYED_DATA_2600(void)
static void test_pack_LPPROCESS_HEAP_ENTRY(void)
static void test_pack_LPOSVERSIONINFOEXA(void)
static void test_pack_OFSTRUCT(void)
static void test_pack_LPOSVERSIONINFOEXW(void)
static void test_pack_PSYSTEMTIME(void)
static void test_pack_PACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA(void)
static void test_pack_LPCOMSTAT(void)
static void test_pack_PACTCTXA(void)
static void test_pack_COMSTAT(void)
static void test_pack_WIN32_FILE_ATTRIBUTE_DATA(void)
static void test_pack_PPROCESS_INFORMATION(void)
static void test_pack_LPHW_PROFILE_INFOA(void)
static void test_pack_LPVOID(void)
static void test_pack_WIN32_FIND_DATAA(void)
static void test_pack_SYSTEM_POWER_STATUS(void)
static void test_pack_ACTCTXW(void)
static void test_pack_LPEXCEPTION_POINTERS(void)
static void test_pack_TIME_ZONE_INFORMATION(void)
static void test_pack_LPHW_PROFILE_INFOW(void)
static void test_pack_ENUMRESTYPEPROCW(void)
static void test_pack_PCACTCTXW(void)
static void test_pack_SECURITY_ATTRIBUTES(void)
static void test_pack_LPOFSTRUCT(void)
static void test_pack_ENUMRESTYPEPROCA(void)
static void test_pack_LPTHREAD_START_ROUTINE(void)
static void test_pack_LPWIN32_FIND_DATAA(void)
static void test_pack_PACTCTX_SECTION_KEYED_DATA_2600(void)
static void test_pack_HW_PROFILE_INFOA(void)
static void test_pack_PCACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA(void)
static void test_pack_COMMTIMEOUTS(void)
static void test_pack_OSVERSIONINFOW(void)
static void test_pack_LPMEMORYSTATUSEX(void)
static void test_pack_POSVERSIONINFOA(void)
static void test_pack_CRITICAL_SECTION_DEBUG(void)
static void test_pack_LPOVERLAPPED_COMPLETION_ROUTINE(void)
static void test_pack_POSVERSIONINFOW(void)
static void test_pack_LPDEBUG_EVENT(void)
static void test_pack_LPPROCESS_INFORMATION(void)
static void test_pack_STARTUPINFOA(void)
static void test_pack_WAITORTIMERCALLBACK(void)
static void test_pack_ENUMRESLANGPROCA(void)
static void test_pack_PWIN32_FIND_DATAA(void)
static void test_pack_LPEXCEPTION_RECORD(void)
static void test_pack_POFSTRUCT(void)
static void test_pack_MEMORYSTATUS(void)
static void test_pack_PCRITICAL_SECTION(void)
static void test_pack_LPBY_HANDLE_FILE_INFORMATION(void)
static void test_pack_LPCOMMTIMEOUTS(void)
static void test_pack_LPOSVERSIONINFOA(void)
static void test_pack_RIP_INFO(void)
static void test_pack_PROCESS_HEAP_ENTRY(void)
static void test_pack_PACTIVATION_CONTEXT_BASIC_INFORMATION(void)
static void test_pack_CREATE_THREAD_DEBUG_INFO(void)
static void test_pack_COMMPROP(void)
static void test_pack_POSVERSIONINFOEXW(void)
static void test_pack_PFIBER_START_ROUTINE(void)
static void test_pack_LOAD_DLL_DEBUG_INFO(void)
static void test_pack_LPFIBER_START_ROUTINE(void)
static void test_pack_PPROCESS_HEAP_ENTRY(void)
static void test_pack_PQUERYACTCTXW_FUNC(void)
static void test_pack_OSVERSIONINFOA(void)
static void test_pack_CREATE_PROCESS_DEBUG_INFO(void)
static void test_pack_PCACTCTX_SECTION_KEYED_DATA(void)
_In_ BOOL _In_ HANDLE hProcess
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
static const GUID PACTCTX_SECTION_KEYED_DATA
static HMODULE MODULEINFO DWORD cb
static WAITORTIMERCALLBACK
static BOOL bInheritHandle
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
BOOL(CALLBACK * ENUMRESNAMEPROCW)(HMODULE, LPCWSTR, LPWSTR, LONG_PTR)
VOID(WINAPI * PFIBER_START_ROUTINE)(LPVOID lpFiberParameter)
void(CALLBACK * LPOVERLAPPED_COMPLETION_ROUTINE)(DWORD, DWORD, LPOVERLAPPED)
BOOL(CALLBACK * ENUMRESLANGPROCA)(HMODULE, LPCSTR, LPCSTR, WORD, LONG_PTR)
BOOL(CALLBACK * ENUMRESTYPEPROCA)(HMODULE, LPSTR, LONG_PTR)
DWORD(WINAPI * LPPROGRESS_ROUTINE)(_In_ LARGE_INTEGER, _In_ LARGE_INTEGER, _In_ LARGE_INTEGER, _In_ LARGE_INTEGER, _In_ DWORD, _In_ DWORD, _In_ HANDLE, _In_ HANDLE, _In_opt_ LPVOID)
PFIBER_START_ROUTINE LPFIBER_START_ROUTINE
BOOL(CALLBACK * ENUMRESNAMEPROCA)(HMODULE, LPCSTR, LPSTR, LONG_PTR)
void(CALLBACK * PTIMERAPCROUTINE)(PVOID, DWORD, DWORD)
DWORD(WINAPI * LPTHREAD_START_ROUTINE)(LPVOID)
BOOL(CALLBACK * ENUMRESLANGPROCW)(HMODULE, LPCWSTR, LPCWSTR, WORD, LONG_PTR)
BOOL(CALLBACK * ENUMRESTYPEPROCW)(HMODULE, LPWSTR, LONG_PTR)
_In_ DWORD _Out_ _In_ WORD wFlags
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
_IRQL_requires_same_ _In_ CLONG ByteSize