22#define DWORD_PTR UINT_PTR
23#define LONG_PTR INT_PTR
24#define ULONG_PTR UINT_PTR
30#if defined(_MSC_VER) && (_MSC_VER >= 1300) && defined(__cplusplus)
31# define _TYPE_ALIGNMENT(type) __alignof(type)
32#elif defined(__GNUC__)
33# define _TYPE_ALIGNMENT(type) __alignof__(type)
42#if defined(TYPE_ALIGNMENT) && defined(_MSC_VER) && _MSC_VER >= 800 && !defined(__cplusplus)
43#pragma warning(disable:4116)
46#if !defined(TYPE_ALIGNMENT) && defined(_TYPE_ALIGNMENT)
47# define TYPE_ALIGNMENT _TYPE_ALIGNMENT
54#define TEST_TYPE_SIZE(type, size) C_ASSERT(sizeof(type) == size);
57# define TEST_TYPE_ALIGN(type, align) C_ASSERT(TYPE_ALIGNMENT(type) == align);
59# define TEST_TYPE_ALIGN(type, align)
63# define TEST_TARGET_ALIGN(type, align) C_ASSERT(_TYPE_ALIGNMENT(*(type)0) == align);
64# define TEST_FIELD_ALIGN(type, field, align) C_ASSERT(_TYPE_ALIGNMENT(((type*)0)->field) == align);
66# define TEST_TARGET_ALIGN(type, align)
67# define TEST_FIELD_ALIGN(type, field, align)
70#define TEST_FIELD_OFFSET(type, field, offset) C_ASSERT(FIELD_OFFSET(type, field) == offset);
72#define TEST_TARGET_SIZE(type, size) TEST_TYPE_SIZE(*(type)0, size)
73#define TEST_FIELD_SIZE(type, field, size) TEST_TYPE_SIZE((((type*)0)->field), size)
74#define TEST_TYPE_SIGNED(type) C_ASSERT((type) -1 < 0);
75#define TEST_TYPE_UNSIGNED(type) C_ASSERT((type) -1 > 0);
VOID DisplayString(LPWSTR Msg)
#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)
#define TEST_TYPE_UNSIGNED(type)
#define TEST_TYPE_SIGNED(type)
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
_Must_inspect_result_ _In_ WDFDEVICE _In_ LPCGUID _Out_ PINTERFACE _In_ USHORT _In_ USHORT Version
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
INTERNET_PORT * LPINTERNET_PORT
static void test_pack_LPGOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE(void)
static void test_pack_GOPHER_LOCATION_ATTRIBUTE_TYPEA(void)
static void test_pack_LPGOPHER_VERSION_ATTRIBUTE_TYPEW(void)
static void test_pack_GOPHER_PROVIDER_ATTRIBUTE_TYPEW(void)
static void test_pack_GOPHER_VIEW_ATTRIBUTE_TYPEA(void)
static void test_pack_LPGOPHER_PROVIDER_ATTRIBUTE_TYPEA(void)
static void test_pack_LPGOPHER_ATTRIBUTE_TYPEA(void)
static void test_pack_GOPHER_ADMIN_ATTRIBUTE_TYPEW(void)
static void test_pack_GOPHER_SCORE_RANGE_ATTRIBUTE_TYPE(void)
static void test_pack_LPGOPHER_LOCATION_ATTRIBUTE_TYPEA(void)
static void test_pack_LPGOPHER_VIEW_ATTRIBUTE_TYPEW(void)
static void test_pack_LPGOPHER_VIEW_ATTRIBUTE_TYPEA(void)
static void test_pack_GOPHER_VIEW_ATTRIBUTE_TYPEW(void)
static void test_pack_LPGOPHER_FIND_DATAW(void)
static void test_pack_GOPHER_SITE_ATTRIBUTE_TYPEA(void)
static void test_pack_LPGOPHER_MOD_DATE_ATTRIBUTE_TYPE(void)
static void test_pack_GOPHER_UNKNOWN_ATTRIBUTE_TYPEW(void)
static void test_pack_LPGOPHER_ADMIN_ATTRIBUTE_TYPEW(void)
static void test_pack_LPHTTP_VERSION_INFO(void)
static void test_pack_INTERNET_CONNECTED_INFO(void)
static void test_pack_GOPHER_ASK_ATTRIBUTE_TYPEA(void)
static void test_pack_LPINTERNET_ASYNC_RESULT(void)
static void test_pack_HINTERNET(void)
static void test_pack_GOPHER_ABSTRACT_ATTRIBUTE_TYPEA(void)
static void test_pack_LPINTERNET_VERSION_INFO(void)
static void test_pack_INTERNET_PORT(void)
static void test_pack_GOPHER_UNKNOWN_ATTRIBUTE_TYPEA(void)
static void test_pack_GOPHER_ORGANIZATION_ATTRIBUTE_TYPEW(void)
static void test_pack_GOPHER_ABSTRACT_ATTRIBUTE_TYPEW(void)
static void test_pack_INTERNET_STATUS_CALLBACK(void)
static void test_pack_GOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE(void)
static void test_pack_LPINTERNET_PROXY_INFOW(void)
static void test_pack_GOPHER_TTL_ATTRIBUTE_TYPE(void)
static void test_pack_LPGOPHER_ASK_ATTRIBUTE_TYPEA(void)
static void test_pack_LPGOPHER_ASK_ATTRIBUTE_TYPEW(void)
static void test_pack_LPINTERNET_BUFFERSW(void)
static void test_pack_INTERNET_CACHE_ENTRY_INFOW(void)
static void test_pack_GOPHER_SCORE_ATTRIBUTE_TYPE(void)
static void test_pack_LPINTERNET_CERTIFICATE_INFOW(void)
static void test_pack_INTERNET_BUFFERSA(void)
static void test_pack_LPGOPHER_VERSION_ATTRIBUTE_TYPEA(void)
static void test_pack_LPGOPHER_FIND_DATAA(void)
static void test_pack_GOPHER_ATTRIBUTE_ENUMERATORA(void)
static void test_pack_LPINTERNET_BUFFERSA(void)
static void test_pack_LPINTERNET_PROXY_INFOA(void)
static void test_pack_LPGOPHER_ORGANIZATION_ATTRIBUTE_TYPEW(void)
static void test_pack_GOPHER_PROVIDER_ATTRIBUTE_TYPEA(void)
static void test_pack_LPINTERNET_CACHE_ENTRY_INFOA(void)
static void test_pack_INTERNET_AUTH_NOTIFY_DATA(void)
static void test_pack_URL_COMPONENTSW(void)
static void test_pack_LPGOPHER_VERONICA_ATTRIBUTE_TYPE(void)
static void test_pack_LPGOPHER_SCORE_ATTRIBUTE_TYPE(void)
static void test_pack_LPINTERNET_PORT(void)
static void test_pack_INTERNET_PROXY_INFOA(void)
static void test_pack_LPGOPHER_SITE_ATTRIBUTE_TYPEA(void)
static void test_pack_GOPHER_ATTRIBUTE_TYPEW(void)
static void test_pack_GOPHER_LOCATION_ATTRIBUTE_TYPEW(void)
static void test_pack_LPGOPHER_ADMIN_ATTRIBUTE_TYPEA(void)
static void test_pack_INTERNET_PROXY_INFOW(void)
static void test_pack_INTERNET_VERSION_INFO(void)
static void test_pack_INTERNET_CERTIFICATE_INFOW(void)
static void test_pack_LPGOPHER_ABSTRACT_ATTRIBUTE_TYPEW(void)
static void test_pack_INTERNET_ASYNC_RESULT(void)
static void test_pack_GOPHER_VERSION_ATTRIBUTE_TYPEA(void)
static void test_pack_LPGOPHER_PROVIDER_ATTRIBUTE_TYPEW(void)
static void test_pack_LPGOPHER_SITE_ATTRIBUTE_TYPEW(void)
static void test_pack_LPURL_COMPONENTSW(void)
static void test_pack_GOPHER_VERONICA_ATTRIBUTE_TYPE(void)
static void test_pack_LPINTERNET_STATUS_CALLBACK(void)
static void test_pack_LPGOPHER_UNKNOWN_ATTRIBUTE_TYPEW(void)
static void test_pack_LPHINTERNET(void)
static void test_pack_GROUPID(void)
static void test_pack_GOPHER_FIND_DATAW(void)
static void test_pack_INTERNET_CERTIFICATE_INFOA(void)
static void test_pack_GOPHER_SITE_ATTRIBUTE_TYPEW(void)
static void test_pack_LPINTERNET_CONNECTED_INFO(void)
static void test_pack_GOPHER_MOD_DATE_ATTRIBUTE_TYPE(void)
static void test_pack_LPGOPHER_SCORE_RANGE_ATTRIBUTE_TYPE(void)
static void test_pack_LPGOPHER_TIMEZONE_ATTRIBUTE_TYPE(void)
static void test_pack_GOPHER_ATTRIBUTE_TYPEA(void)
static void test_pack_HTTP_VERSION_INFO(void)
static void test_pack_PFN_AUTH_NOTIFY(void)
static void test_pack_PFN_DIAL_HANDLER(void)
static void test_pack_GOPHER_ATTRIBUTE_ENUMERATORW(void)
static void test_pack_INTERNET_CACHE_ENTRY_INFOA(void)
static void test_pack_GOPHER_TIMEZONE_ATTRIBUTE_TYPE(void)
static void test_pack_LPGOPHER_ORGANIZATION_ATTRIBUTE_TYPEA(void)
static void test_pack_LPGOPHER_LOCATION_ATTRIBUTE_TYPEW(void)
static void test_pack_GOPHER_VERSION_ATTRIBUTE_TYPEW(void)
static void test_pack_LPGOPHER_ATTRIBUTE_TYPEW(void)
static void test_pack_URL_COMPONENTSA(void)
static void test_pack_GOPHER_ORGANIZATION_ATTRIBUTE_TYPEA(void)
static void test_pack_LPURL_COMPONENTSA(void)
static void test_pack_LPGOPHER_TTL_ATTRIBUTE_TYPE(void)
static void test_pack_GOPHER_ADMIN_ATTRIBUTE_TYPEA(void)
static void test_pack_LPINTERNET_CACHE_ENTRY_INFOW(void)
static void test_pack_GOPHER_ASK_ATTRIBUTE_TYPEW(void)
static void test_pack_LPGOPHER_UNKNOWN_ATTRIBUTE_TYPEA(void)
static void test_pack_GOPHER_FIND_DATAA(void)
static void test_pack_LPGOPHER_ABSTRACT_ATTRIBUTE_TYPEA(void)
static void test_pack_LPINTERNET_CERTIFICATE_INFOA(void)
static void test_pack_INTERNET_BUFFERSW(void)
VOID(CALLBACK * INTERNET_STATUS_CALLBACK)(_In_ HINTERNET, _In_opt_ DWORD_PTR, _In_ DWORD, _In_opt_ LPVOID, _In_ DWORD)
INTERNET_STATUS_CALLBACK * LPINTERNET_STATUS_CALLBACK
DWORD(CALLBACK * PFN_AUTH_NOTIFY)(DWORD_PTR, DWORD, LPVOID)
DWORD(CALLBACK * PFN_DIAL_HANDLER)(HWND, LPCSTR, DWORD, LPDWORD)
#define GOPHER_ATTRIBUTE_ENUMERATORA
#define GOPHER_ATTRIBUTE_ENUMERATORW