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);
#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)
GLint GLint GLint GLint GLint x
GLuint GLuint GLsizei GLenum type
GLint GLint GLint GLint GLint GLint y
GLuint GLsizei GLsizei * length
TCHAR szTitle[MAX_LOADSTRING]
static DWORD DWORD void LPSTR DWORD cch
static HANDLE ULONG_PTR dwData
_Out_opt_ int _Out_opt_ int * cy
TW_UINT32 TW_UINT16 TW_UINT16 MSG
static void test_pack_LPSERIALKEYSW(void)
static void test_pack_HDWP(void)
static void test_pack_LPMONITORINFOEXW(void)
static void test_pack_LPACCESSTIMEOUT(void)
static void test_pack_CREATESTRUCTA(void)
static void test_pack_MDICREATESTRUCTW(void)
static void test_pack_LPWNDCLASSW(void)
static void test_pack_LPMDINEXTMENU(void)
static void test_pack_MDICREATESTRUCTA(void)
static void test_pack_PDRAWITEMSTRUCT(void)
static void test_pack_LPCREATESTRUCTW(void)
static void test_pack_LPMSG(void)
static void test_pack_PHELPWININFOW(void)
static void test_pack_ICONMETRICSW(void)
static void test_pack_TOGGLEKEYS(void)
static void test_pack_PMSGBOXPARAMSW(void)
static void test_pack_TIMERPROC(void)
static void test_pack_LPICONMETRICSW(void)
static void test_pack_LPGUITHREADINFO(void)
static void test_pack_COPYDATASTRUCT(void)
static void test_pack_PKEYBDINPUT(void)
static void test_pack_PWNDCLASSA(void)
static void test_pack_PICONMETRICSA(void)
static void test_pack_PMSLLHOOKSTRUCT(void)
static void test_pack_MENUITEMINFOW(void)
static void test_pack_PROPENUMPROCW(void)
static void test_pack_MEASUREITEMSTRUCT(void)
static void test_pack_ACCESSTIMEOUT(void)
static void test_pack_WNDCLASSA(void)
static void test_pack_PDELETEITEMSTRUCT(void)
static void test_pack_LPDLGTEMPLATEW(void)
static void test_pack_LPKBDLLHOOKSTRUCT(void)
static void test_pack_MONITORINFOEXW(void)
static void test_pack_PEVENTMSG(void)
static void test_pack_HIGHCONTRASTA(void)
static void test_pack_LPHIGHCONTRASTA(void)
static void test_pack_LPHARDWAREHOOKSTRUCT(void)
static void test_pack_LPMONITORINFO(void)
static void test_pack_WINDOWINFO(void)
static void test_pack_LPCWPSTRUCT(void)
static void test_pack_HELPWININFOA(void)
static void test_pack_LPFILTERKEYS(void)
static void test_pack_KBDLLHOOKSTRUCT(void)
static void test_pack_WINDOWPOS(void)
static void test_pack_LPSOUNDSENTRYW(void)
static void test_pack_DEBUGHOOKINFO(void)
static void test_pack_MDINEXTMENU(void)
static void test_pack_LPKEYBDINPUT(void)
static void test_pack_SOUNDSENTRYW(void)
static void test_pack_DRAWITEMSTRUCT(void)
static void test_pack_MENUITEMINFOA(void)
static void test_pack_PMENUITEMTEMPLATEHEADER(void)
static void test_pack_LPTITLEBARINFO(void)
static void test_pack_CLIENTCREATESTRUCT(void)
static void test_pack_LPWNDCLASSA(void)
static void test_pack_MSGBOXCALLBACK(void)
static void test_pack_GUITHREADINFO(void)
static void test_pack_WNDCLASSEXA(void)
static void test_pack_PHARDWAREINPUT(void)
static void test_pack_LPHELPWININFOW(void)
static void test_pack_PMOUSEINPUT(void)
static void test_pack_DESKTOPENUMPROCA(void)
static void test_pack_PWINDOWPOS(void)
static void test_pack_LPMSGBOXPARAMSA(void)
static void test_pack_MOUSEHOOKSTRUCT(void)
static void test_pack_LPWINDOWPLACEMENT(void)
static void test_pack_TPMPARAMS(void)
static void test_pack_NONCLIENTMETRICSA(void)
static void test_pack_PICONINFO(void)
static void test_pack_LPHIGHCONTRASTW(void)
static void test_pack_WINDOWPLACEMENT(void)
static void test_pack_PHARDWAREHOOKSTRUCT(void)
static void test_pack_LPDLGITEMTEMPLATEA(void)
static void test_pack_WNDENUMPROC(void)
static void test_pack_LPMSGBOXPARAMSW(void)
static void test_pack_LPWNDCLASSEXW(void)
static void test_pack_EDITWORDBREAKPROCA(void)
static void test_pack_CWPSTRUCT(void)
static void test_pack_LPHELPWININFOA(void)
static void test_pack_SOUNDSENTRYA(void)
static void test_pack_ICONINFO(void)
static void test_pack_PWINDOWINFO(void)
static void test_pack_MSG(void)
static void test_pack_LPCMENUINFO(void)
static void test_pack_PGUITHREADINFO(void)
static void test_pack_MOUSEINPUT(void)
static void test_pack_PNONCLIENTMETRICSW(void)
static void test_pack_LPMINIMIZEDMETRICS(void)
static void test_pack_KEYBDINPUT(void)
static void test_pack_CURSORINFO(void)
static void test_pack_PKBDLLHOOKSTRUCT(void)
static void test_pack_LPINPUT(void)
static void test_pack_DRAWTEXTPARAMS(void)
static void test_pack_MONITORINFO(void)
static void test_pack_MSLLHOOKSTRUCT(void)
static void test_pack_MINIMIZEDMETRICS(void)
static void test_pack_LPCOMBOBOXINFO(void)
static void test_pack_LPMENUINFO(void)
static void test_pack_EVENTMSG(void)
static void test_pack_PMOUSEHOOKSTRUCT(void)
static void test_pack_LPCMENUITEMINFOW(void)
static void test_pack_NAMEENUMPROCA(void)
static void test_pack_MSGBOXPARAMSA(void)
static void test_pack_CWPRETSTRUCT(void)
static void test_pack_DESKTOPENUMPROCW(void)
static void test_pack_LPCDLGTEMPLATEW(void)
static void test_pack_PICONMETRICSW(void)
static void test_pack_HARDWAREINPUT(void)
static void test_pack_SCROLLINFO(void)
static void test_pack_NONCLIENTMETRICSW(void)
static void test_pack_LPNMHDR(void)
static void test_pack_COMPAREITEMSTRUCT(void)
static void test_pack_LPCURSORINFO(void)
static void test_pack_PMULTIKEYHELPA(void)
static void test_pack_CBT_CREATEWNDW(void)
static void test_pack_LPTRACKMOUSEEVENT(void)
static void test_pack_LPMDICREATESTRUCTA(void)
static void test_pack_PDEBUGHOOKINFO(void)
static void test_pack_LPCSCROLLINFO(void)
static void test_pack_STICKYKEYS(void)
static void test_pack_GRAYSTRINGPROC(void)
static void test_pack_LPMENUITEMINFOW(void)
static void test_pack_PPAINTSTRUCT(void)
static void test_pack_LPDLGITEMTEMPLATEW(void)
static void test_pack_TRACKMOUSEEVENT(void)
static void test_pack_DELETEITEMSTRUCT(void)
static void test_pack_ICONMETRICSA(void)
static void test_pack_NMHDR(void)
static void test_pack_LPCDLGTEMPLATEA(void)
static void test_pack_NCCALCSIZE_PARAMS(void)
static void test_pack_LPDELETEITEMSTRUCT(void)
static void test_pack_PCWPSTRUCT(void)
static void test_pack_LPTPMPARAMS(void)
static void test_pack_INPUT(void)
static void test_pack_LPCBTACTIVATESTRUCT(void)
static void test_pack_PROPENUMPROCEXA(void)
static void test_pack_WINEVENTPROC(void)
static void test_pack_PMENUITEMTEMPLATE(void)
static void test_pack_LPMINMAXINFO(void)
static void test_pack_PMSGBOXPARAMSA(void)
static void test_pack_LPCWPRETSTRUCT(void)
static void test_pack_PUSEROBJECTFLAGS(void)
static void test_pack_LPNONCLIENTMETRICSA(void)
static void test_pack_FILTERKEYS(void)
static void test_pack_LPEVENTMSG(void)
static void test_pack_LPDLGTEMPLATEA(void)
static void test_pack_LPMONITORINFOEXA(void)
static void test_pack_PCURSORINFO(void)
static void test_pack_LPDEBUGHOOKINFO(void)
static void test_pack_DLGTEMPLATE(void)
static void test_pack_HELPINFO(void)
static void test_pack_LPCBT_CREATEWNDW(void)
static void test_pack_PROPENUMPROCEXW(void)
static void test_pack_PWNDCLASSW(void)
static void test_pack_PMULTIKEYHELPW(void)
static void test_pack_MENUITEMTEMPLATE(void)
static void test_pack_LPSERIALKEYSA(void)
static void test_pack_LPMULTIKEYHELPA(void)
static void test_pack_PWNDCLASSEXW(void)
static void test_pack_MINMAXINFO(void)
static void test_pack_HOOKPROC(void)
static void test_pack_LPMDICREATESTRUCTW(void)
static void test_pack_LPICONMETRICSA(void)
static void test_pack_LPDRAWITEMSTRUCT(void)
static void test_pack_LPHELPINFO(void)
static void test_pack_WNDCLASSEXW(void)
static void test_pack_MULTIKEYHELPA(void)
static void test_pack_LPPAINTSTRUCT(void)
static void test_pack_MSGBOXPARAMSW(void)
static void test_pack_SENDASYNCPROC(void)
static void test_pack_LPWINDOWPOS(void)
static void test_pack_COMBOBOXINFO(void)
static void test_pack_PROPENUMPROCA(void)
static void test_pack_CBT_CREATEWNDA(void)
static void test_pack_DRAWSTATEPROC(void)
static void test_pack_DLGPROC(void)
static void test_pack_PINPUT(void)
static void test_pack_PAINTSTRUCT(void)
static void test_pack_SERIALKEYSW(void)
static void test_pack_ANIMATIONINFO(void)
static void test_pack_LPDRAWTEXTPARAMS(void)
static void test_pack_HARDWAREHOOKSTRUCT(void)
static void test_pack_WNDCLASSW(void)
static void test_pack_PFLASHWINFO(void)
static void test_pack_STYLESTRUCT(void)
static void test_pack_MENUINFO(void)
static void test_pack_LPCREATESTRUCTA(void)
static void test_pack_LPCMENUITEMINFOA(void)
static void test_pack_PMINIMIZEDMETRICS(void)
static void test_pack_HIGHCONTRASTW(void)
static void test_pack_DLGITEMTEMPLATE(void)
static void test_pack_PDLGITEMTEMPLATEA(void)
static void test_pack_LPMOUSEKEYS(void)
static void test_pack_LPSTYLESTRUCT(void)
static void test_pack_LPCLIENTCREATESTRUCT(void)
static void test_pack_MONITORINFOEXA(void)
static void test_pack_WNDPROC(void)
static void test_pack_PTITLEBARINFO(void)
static void test_pack_HELPWININFOW(void)
static void test_pack_CBTACTIVATESTRUCT(void)
static void test_pack_MOUSEKEYS(void)
static void test_pack_LPTOGGLEKEYS(void)
static void test_pack_WINSTAENUMPROCW(void)
static void test_pack_EDITWORDBREAKPROCW(void)
static void test_pack_LPSOUNDSENTRYA(void)
static void test_pack_FLASHWINFO(void)
static void test_pack_PHELPWININFOA(void)
static void test_pack_PWNDCLASSEXA(void)
static void test_pack_MULTIKEYHELPW(void)
static void test_pack_LPHARDWAREINPUT(void)
static void test_pack_PMINMAXINFO(void)
static void test_pack_PCWPRETSTRUCT(void)
static void test_pack_PMDINEXTMENU(void)
static void test_pack_LPMULTIKEYHELPW(void)
static void test_pack_WINSTAENUMPROCA(void)
static void test_pack_MONITORENUMPROC(void)
static void test_pack_NAMEENUMPROCW(void)
static void test_pack_TITLEBARINFO(void)
static void test_pack_PMSG(void)
static void test_pack_SERIALKEYSA(void)
static void test_pack_PNONCLIENTMETRICSA(void)
static void test_pack_HDEVNOTIFY(void)
static void test_pack_LPWNDCLASSEXA(void)
static void test_pack_PWINDOWPLACEMENT(void)
static void test_pack_PCOPYDATASTRUCT(void)
static void test_pack_PHDEVNOTIFY(void)
static void test_pack_CREATESTRUCTW(void)
static void test_pack_MENUITEMTEMPLATEHEADER(void)
static void test_pack_LPSTICKYKEYS(void)
static void test_pack_LPMOUSEINPUT(void)
static void test_pack_PCOMPAREITEMSTRUCT(void)
static void test_pack_LPMOUSEHOOKSTRUCT(void)
static void test_pack_LPNCCALCSIZE_PARAMS(void)
static void test_pack_LPANIMATIONINFO(void)
static void test_pack_LPMSLLHOOKSTRUCT(void)
static void test_pack_LPMEASUREITEMSTRUCT(void)
static void test_pack_LPSCROLLINFO(void)
static void test_pack_PCOMBOBOXINFO(void)
static void test_pack_LPCOMPAREITEMSTRUCT(void)
static void test_pack_USEROBJECTFLAGS(void)
static void test_pack_LPMENUITEMINFOA(void)
static void test_pack_LPNONCLIENTMETRICSW(void)
static void test_pack_PDLGITEMTEMPLATEW(void)
static void test_pack_PMEASUREITEMSTRUCT(void)
static void test_pack_LPWINDOWINFO(void)
static void test_pack_LPCBT_CREATEWNDA(void)
VOID(CALLBACK * WINEVENTPROC)(HWINEVENTHOOK, DWORD, HWND, LONG, LONG, DWORD, DWORD)
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
_In_ void _In_ PCCERT_CONTEXT _In_opt_ LPFILETIME _In_ DWORD _In_ DWORD dwTimeout
BOOL(CALLBACK * PROPENUMPROCEXW)(HWND, LPWSTR, HANDLE, ULONG_PTR)
LRESULT(CALLBACK * HOOKPROC)(int, WPARAM, LPARAM)
void(CALLBACK * SENDASYNCPROC)(HWND, UINT, ULONG_PTR, LRESULT)
BOOL(CALLBACK * NAMEENUMPROCA)(LPSTR, LPARAM)
BOOL(CALLBACK * PROPENUMPROCA)(HWND, LPCSTR, HANDLE)
BOOL(CALLBACK * NAMEENUMPROCW)(LPWSTR, LPARAM)
BOOL(CALLBACK * GRAYSTRINGPROC)(HDC, LPARAM, int)
int(CALLBACK * EDITWORDBREAKPROCA)(LPSTR, int, int, int)
MENUINFO CONST * LPCMENUINFO
NAMEENUMPROCW DESKTOPENUMPROCW
BOOL(CALLBACK * PROPENUMPROCEXA)(HWND, LPSTR, HANDLE, ULONG_PTR)
BOOL(CALLBACK * PROPENUMPROCW)(HWND, LPCWSTR, HANDLE)
NAMEENUMPROCA WINSTAENUMPROCA
int(CALLBACK * EDITWORDBREAKPROCW)(LPWSTR, int, int, int)
BOOL(CALLBACK * MONITORENUMPROC)(HMONITOR, HDC, LPRECT, LPARAM)
NAMEENUMPROCW WINSTAENUMPROCW
LRESULT(CALLBACK * WNDPROC)(HWND, UINT, WPARAM, LPARAM)
NAMEENUMPROCA DESKTOPENUMPROCA
VOID(CALLBACK * TIMERPROC)(HWND, UINT, UINT_PTR, DWORD)
void(CALLBACK * MSGBOXCALLBACK)(LPHELPINFO)
BOOL(CALLBACK * DRAWSTATEPROC)(HDC, LPARAM, WPARAM, int, int)
BOOL(CALLBACK * WNDENUMPROC)(HWND, LPARAM)