diff --git a/dlls/gdi/tests/generated.c b/dlls/gdi/tests/generated.c index 4679616e2f..39bd0417f5 100644 --- a/dlls/gdi/tests/generated.c +++ b/dlls/gdi/tests/generated.c @@ -8,1560 +8,1303 @@ #include #include "wine/test.h" +#include "basetsd.h" +#include "winnt.h" +#include "windef.h" #include "wingdi.h" +/*********************************************************************** + * Windows API extension + */ + +#if (_MSC_VER >= 1300) && defined(__cplusplus) +# define FIELD_ALIGNMENT(type, field) __alignof(((type*)0)->field) +#elif defined(__GNUC__) +# define FIELD_ALIGNMENT(type, field) __alignof__(((type*)0)->field) +#else +/* FIXME: Not sure if is possible to do without compiler extension */ +#endif + +/*********************************************************************** + * Test helper macros + */ + +#ifdef FIELD_ALIGNMENT +# define TEST_FIELD_ALIGNMENT(type, field, align) \ + ok(FIELD_ALIGNMENT(type, field) == align, \ + "FIELD_ALIGNMENT(" #type ", " #field ") == %d (expected " #align ")", \ + FIELD_ALIGNMENT(type, field)) +#else +# define TEST_FIELD_ALIGNMENT(type, field, align) do { } while (0) +#endif + +#define TEST_FIELD_OFFSET(type, field, offset) \ + ok(FIELD_OFFSET(type, field) == offset, \ + "FIELD_OFFSET(" #type ", " #field ") == %ld (expected " #offset ")", \ + FIELD_OFFSET(type, field)) + +#define TEST_TYPE_ALIGNMENT(type, align) \ + ok(TYPE_ALIGNMENT(type) == align, "TYPE_ALIGNMENT(" #type ") == %d (expected " #align ")", TYPE_ALIGNMENT(type)) + +#define TEST_TYPE_SIZE(type, size) \ + ok(sizeof(type) == size, "sizeof(" #type ") == %d (expected " #size ")", sizeof(type)) + +/*********************************************************************** + * Test macros + */ + +#define TEST_FIELD(type, field_type, field_name, field_offset, field_size, field_align) \ + TEST_TYPE_SIZE(field_type, field_size); \ + TEST_FIELD_ALIGNMENT(type, field_name, field_align); \ + TEST_FIELD_OFFSET(type, field_name, field_offset); \ + +#define TEST_TYPE(type, size, align) \ + TEST_TYPE_ALIGNMENT(type, align); \ + TEST_TYPE_SIZE(type, size) + void test_pack(void) { - /* ABC */ - ok(FIELD_OFFSET(ABC, abcA) == 0, - "FIELD_OFFSET(ABC, abcA) == %ld (expected 0)", - FIELD_OFFSET(ABC, abcA)); /* INT */ - ok(FIELD_OFFSET(ABC, abcB) == 4, - "FIELD_OFFSET(ABC, abcB) == %ld (expected 4)", - FIELD_OFFSET(ABC, abcB)); /* UINT */ - ok(FIELD_OFFSET(ABC, abcC) == 8, - "FIELD_OFFSET(ABC, abcC) == %ld (expected 8)", - FIELD_OFFSET(ABC, abcC)); /* INT */ - ok(sizeof(ABC) == 12, "sizeof(ABC) == %d (expected 12)", sizeof(ABC)); - - /* ABCFLOAT */ - ok(FIELD_OFFSET(ABCFLOAT, abcfA) == 0, - "FIELD_OFFSET(ABCFLOAT, abcfA) == %ld (expected 0)", - FIELD_OFFSET(ABCFLOAT, abcfA)); /* FLOAT */ - ok(FIELD_OFFSET(ABCFLOAT, abcfB) == 4, - "FIELD_OFFSET(ABCFLOAT, abcfB) == %ld (expected 4)", - FIELD_OFFSET(ABCFLOAT, abcfB)); /* FLOAT */ - ok(FIELD_OFFSET(ABCFLOAT, abcfC) == 8, - "FIELD_OFFSET(ABCFLOAT, abcfC) == %ld (expected 8)", - FIELD_OFFSET(ABCFLOAT, abcfC)); /* FLOAT */ - ok(sizeof(ABCFLOAT) == 12, "sizeof(ABCFLOAT) == %d (expected 12)", sizeof(ABCFLOAT)); - - /* BITMAP */ - ok(FIELD_OFFSET(BITMAP, bmType) == 0, - "FIELD_OFFSET(BITMAP, bmType) == %ld (expected 0)", - FIELD_OFFSET(BITMAP, bmType)); /* INT */ - ok(FIELD_OFFSET(BITMAP, bmWidth) == 4, - "FIELD_OFFSET(BITMAP, bmWidth) == %ld (expected 4)", - FIELD_OFFSET(BITMAP, bmWidth)); /* INT */ - ok(FIELD_OFFSET(BITMAP, bmHeight) == 8, - "FIELD_OFFSET(BITMAP, bmHeight) == %ld (expected 8)", - FIELD_OFFSET(BITMAP, bmHeight)); /* INT */ - ok(FIELD_OFFSET(BITMAP, bmWidthBytes) == 12, - "FIELD_OFFSET(BITMAP, bmWidthBytes) == %ld (expected 12)", - FIELD_OFFSET(BITMAP, bmWidthBytes)); /* INT */ - ok(FIELD_OFFSET(BITMAP, bmPlanes) == 16, - "FIELD_OFFSET(BITMAP, bmPlanes) == %ld (expected 16)", - FIELD_OFFSET(BITMAP, bmPlanes)); /* WORD */ - ok(FIELD_OFFSET(BITMAP, bmBitsPixel) == 18, - "FIELD_OFFSET(BITMAP, bmBitsPixel) == %ld (expected 18)", - FIELD_OFFSET(BITMAP, bmBitsPixel)); /* WORD */ - ok(FIELD_OFFSET(BITMAP, bmBits) == 20, - "FIELD_OFFSET(BITMAP, bmBits) == %ld (expected 20)", - FIELD_OFFSET(BITMAP, bmBits)); /* LPVOID */ - ok(sizeof(BITMAP) == 24, "sizeof(BITMAP) == %d (expected 24)", sizeof(BITMAP)); - - /* BITMAPCOREHEADER */ - ok(FIELD_OFFSET(BITMAPCOREHEADER, bcSize) == 0, - "FIELD_OFFSET(BITMAPCOREHEADER, bcSize) == %ld (expected 0)", - FIELD_OFFSET(BITMAPCOREHEADER, bcSize)); /* DWORD */ - ok(FIELD_OFFSET(BITMAPCOREHEADER, bcWidth) == 4, - "FIELD_OFFSET(BITMAPCOREHEADER, bcWidth) == %ld (expected 4)", - FIELD_OFFSET(BITMAPCOREHEADER, bcWidth)); /* WORD */ - ok(FIELD_OFFSET(BITMAPCOREHEADER, bcHeight) == 6, - "FIELD_OFFSET(BITMAPCOREHEADER, bcHeight) == %ld (expected 6)", - FIELD_OFFSET(BITMAPCOREHEADER, bcHeight)); /* WORD */ - ok(FIELD_OFFSET(BITMAPCOREHEADER, bcPlanes) == 8, - "FIELD_OFFSET(BITMAPCOREHEADER, bcPlanes) == %ld (expected 8)", - FIELD_OFFSET(BITMAPCOREHEADER, bcPlanes)); /* WORD */ - ok(FIELD_OFFSET(BITMAPCOREHEADER, bcBitCount) == 10, - "FIELD_OFFSET(BITMAPCOREHEADER, bcBitCount) == %ld (expected 10)", - FIELD_OFFSET(BITMAPCOREHEADER, bcBitCount)); /* WORD */ - ok(sizeof(BITMAPCOREHEADER) == 12, "sizeof(BITMAPCOREHEADER) == %d (expected 12)", sizeof(BITMAPCOREHEADER)); - - /* BITMAPFILEHEADER */ - ok(FIELD_OFFSET(BITMAPFILEHEADER, bfType) == 0, - "FIELD_OFFSET(BITMAPFILEHEADER, bfType) == %ld (expected 0)", - FIELD_OFFSET(BITMAPFILEHEADER, bfType)); /* WORD */ - ok(FIELD_OFFSET(BITMAPFILEHEADER, bfSize) == 2, - "FIELD_OFFSET(BITMAPFILEHEADER, bfSize) == %ld (expected 2)", - FIELD_OFFSET(BITMAPFILEHEADER, bfSize)); /* DWORD */ - ok(FIELD_OFFSET(BITMAPFILEHEADER, bfReserved1) == 6, - "FIELD_OFFSET(BITMAPFILEHEADER, bfReserved1) == %ld (expected 6)", - FIELD_OFFSET(BITMAPFILEHEADER, bfReserved1)); /* WORD */ - ok(FIELD_OFFSET(BITMAPFILEHEADER, bfReserved2) == 8, - "FIELD_OFFSET(BITMAPFILEHEADER, bfReserved2) == %ld (expected 8)", - FIELD_OFFSET(BITMAPFILEHEADER, bfReserved2)); /* WORD */ - ok(FIELD_OFFSET(BITMAPFILEHEADER, bfOffBits) == 10, - "FIELD_OFFSET(BITMAPFILEHEADER, bfOffBits) == %ld (expected 10)", - FIELD_OFFSET(BITMAPFILEHEADER, bfOffBits)); /* DWORD */ - ok(sizeof(BITMAPFILEHEADER) == 14, "sizeof(BITMAPFILEHEADER) == %d (expected 14)", sizeof(BITMAPFILEHEADER)); - - /* BITMAPINFOHEADER */ - ok(FIELD_OFFSET(BITMAPINFOHEADER, biSize) == 0, - "FIELD_OFFSET(BITMAPINFOHEADER, biSize) == %ld (expected 0)", - FIELD_OFFSET(BITMAPINFOHEADER, biSize)); /* DWORD */ - ok(FIELD_OFFSET(BITMAPINFOHEADER, biWidth) == 4, - "FIELD_OFFSET(BITMAPINFOHEADER, biWidth) == %ld (expected 4)", - FIELD_OFFSET(BITMAPINFOHEADER, biWidth)); /* LONG */ - ok(FIELD_OFFSET(BITMAPINFOHEADER, biHeight) == 8, - "FIELD_OFFSET(BITMAPINFOHEADER, biHeight) == %ld (expected 8)", - FIELD_OFFSET(BITMAPINFOHEADER, biHeight)); /* LONG */ - ok(FIELD_OFFSET(BITMAPINFOHEADER, biPlanes) == 12, - "FIELD_OFFSET(BITMAPINFOHEADER, biPlanes) == %ld (expected 12)", - FIELD_OFFSET(BITMAPINFOHEADER, biPlanes)); /* WORD */ - ok(FIELD_OFFSET(BITMAPINFOHEADER, biBitCount) == 14, - "FIELD_OFFSET(BITMAPINFOHEADER, biBitCount) == %ld (expected 14)", - FIELD_OFFSET(BITMAPINFOHEADER, biBitCount)); /* WORD */ - ok(FIELD_OFFSET(BITMAPINFOHEADER, biCompression) == 16, - "FIELD_OFFSET(BITMAPINFOHEADER, biCompression) == %ld (expected 16)", - FIELD_OFFSET(BITMAPINFOHEADER, biCompression)); /* DWORD */ - ok(FIELD_OFFSET(BITMAPINFOHEADER, biSizeImage) == 20, - "FIELD_OFFSET(BITMAPINFOHEADER, biSizeImage) == %ld (expected 20)", - FIELD_OFFSET(BITMAPINFOHEADER, biSizeImage)); /* DWORD */ - ok(FIELD_OFFSET(BITMAPINFOHEADER, biXPelsPerMeter) == 24, - "FIELD_OFFSET(BITMAPINFOHEADER, biXPelsPerMeter) == %ld (expected 24)", - FIELD_OFFSET(BITMAPINFOHEADER, biXPelsPerMeter)); /* LONG */ - ok(FIELD_OFFSET(BITMAPINFOHEADER, biYPelsPerMeter) == 28, - "FIELD_OFFSET(BITMAPINFOHEADER, biYPelsPerMeter) == %ld (expected 28)", - FIELD_OFFSET(BITMAPINFOHEADER, biYPelsPerMeter)); /* LONG */ - ok(FIELD_OFFSET(BITMAPINFOHEADER, biClrUsed) == 32, - "FIELD_OFFSET(BITMAPINFOHEADER, biClrUsed) == %ld (expected 32)", - FIELD_OFFSET(BITMAPINFOHEADER, biClrUsed)); /* DWORD */ - ok(FIELD_OFFSET(BITMAPINFOHEADER, biClrImportant) == 36, - "FIELD_OFFSET(BITMAPINFOHEADER, biClrImportant) == %ld (expected 36)", - FIELD_OFFSET(BITMAPINFOHEADER, biClrImportant)); /* DWORD */ - ok(sizeof(BITMAPINFOHEADER) == 40, "sizeof(BITMAPINFOHEADER) == %d (expected 40)", sizeof(BITMAPINFOHEADER)); - - /* BLENDFUNCTION */ - ok(FIELD_OFFSET(BLENDFUNCTION, BlendOp) == 0, - "FIELD_OFFSET(BLENDFUNCTION, BlendOp) == %ld (expected 0)", - FIELD_OFFSET(BLENDFUNCTION, BlendOp)); /* BYTE */ - ok(FIELD_OFFSET(BLENDFUNCTION, BlendFlags) == 1, - "FIELD_OFFSET(BLENDFUNCTION, BlendFlags) == %ld (expected 1)", - FIELD_OFFSET(BLENDFUNCTION, BlendFlags)); /* BYTE */ - ok(FIELD_OFFSET(BLENDFUNCTION, SourceConstantAlpha) == 2, - "FIELD_OFFSET(BLENDFUNCTION, SourceConstantAlpha) == %ld (expected 2)", - FIELD_OFFSET(BLENDFUNCTION, SourceConstantAlpha)); /* BYTE */ - ok(FIELD_OFFSET(BLENDFUNCTION, AlphaFormat) == 3, - "FIELD_OFFSET(BLENDFUNCTION, AlphaFormat) == %ld (expected 3)", - FIELD_OFFSET(BLENDFUNCTION, AlphaFormat)); /* BYTE */ - ok(sizeof(BLENDFUNCTION) == 4, "sizeof(BLENDFUNCTION) == %d (expected 4)", sizeof(BLENDFUNCTION)); - - /* CIEXYZ */ - ok(FIELD_OFFSET(CIEXYZ, ciexyzX) == 0, - "FIELD_OFFSET(CIEXYZ, ciexyzX) == %ld (expected 0)", - FIELD_OFFSET(CIEXYZ, ciexyzX)); /* FXPT2DOT30 */ - ok(FIELD_OFFSET(CIEXYZ, ciexyzY) == 4, - "FIELD_OFFSET(CIEXYZ, ciexyzY) == %ld (expected 4)", - FIELD_OFFSET(CIEXYZ, ciexyzY)); /* FXPT2DOT30 */ - ok(FIELD_OFFSET(CIEXYZ, ciexyzZ) == 8, - "FIELD_OFFSET(CIEXYZ, ciexyzZ) == %ld (expected 8)", - FIELD_OFFSET(CIEXYZ, ciexyzZ)); /* FXPT2DOT30 */ - ok(sizeof(CIEXYZ) == 12, "sizeof(CIEXYZ) == %d (expected 12)", sizeof(CIEXYZ)); - - /* DISPLAY_DEVICEA */ - ok(FIELD_OFFSET(DISPLAY_DEVICEA, cb) == 0, - "FIELD_OFFSET(DISPLAY_DEVICEA, cb) == %ld (expected 0)", - FIELD_OFFSET(DISPLAY_DEVICEA, cb)); /* DWORD */ - ok(FIELD_OFFSET(DISPLAY_DEVICEA, DeviceName) == 4, - "FIELD_OFFSET(DISPLAY_DEVICEA, DeviceName) == %ld (expected 4)", - FIELD_OFFSET(DISPLAY_DEVICEA, DeviceName)); /* CHAR[32] */ - ok(FIELD_OFFSET(DISPLAY_DEVICEA, DeviceString) == 36, - "FIELD_OFFSET(DISPLAY_DEVICEA, DeviceString) == %ld (expected 36)", - FIELD_OFFSET(DISPLAY_DEVICEA, DeviceString)); /* CHAR[128] */ - ok(FIELD_OFFSET(DISPLAY_DEVICEA, StateFlags) == 164, - "FIELD_OFFSET(DISPLAY_DEVICEA, StateFlags) == %ld (expected 164)", - FIELD_OFFSET(DISPLAY_DEVICEA, StateFlags)); /* DWORD */ - ok(FIELD_OFFSET(DISPLAY_DEVICEA, DeviceID) == 168, - "FIELD_OFFSET(DISPLAY_DEVICEA, DeviceID) == %ld (expected 168)", - FIELD_OFFSET(DISPLAY_DEVICEA, DeviceID)); /* CHAR[128] */ - ok(FIELD_OFFSET(DISPLAY_DEVICEA, DeviceKey) == 296, - "FIELD_OFFSET(DISPLAY_DEVICEA, DeviceKey) == %ld (expected 296)", - FIELD_OFFSET(DISPLAY_DEVICEA, DeviceKey)); /* CHAR[128] */ - ok(sizeof(DISPLAY_DEVICEA) == 424, "sizeof(DISPLAY_DEVICEA) == %d (expected 424)", sizeof(DISPLAY_DEVICEA)); - - /* DISPLAY_DEVICEW */ - ok(FIELD_OFFSET(DISPLAY_DEVICEW, cb) == 0, - "FIELD_OFFSET(DISPLAY_DEVICEW, cb) == %ld (expected 0)", - FIELD_OFFSET(DISPLAY_DEVICEW, cb)); /* DWORD */ - ok(FIELD_OFFSET(DISPLAY_DEVICEW, DeviceName) == 4, - "FIELD_OFFSET(DISPLAY_DEVICEW, DeviceName) == %ld (expected 4)", - FIELD_OFFSET(DISPLAY_DEVICEW, DeviceName)); /* WCHAR[32] */ - ok(FIELD_OFFSET(DISPLAY_DEVICEW, DeviceString) == 68, - "FIELD_OFFSET(DISPLAY_DEVICEW, DeviceString) == %ld (expected 68)", - FIELD_OFFSET(DISPLAY_DEVICEW, DeviceString)); /* WCHAR[128] */ - ok(FIELD_OFFSET(DISPLAY_DEVICEW, StateFlags) == 324, - "FIELD_OFFSET(DISPLAY_DEVICEW, StateFlags) == %ld (expected 324)", - FIELD_OFFSET(DISPLAY_DEVICEW, StateFlags)); /* DWORD */ - ok(FIELD_OFFSET(DISPLAY_DEVICEW, DeviceID) == 328, - "FIELD_OFFSET(DISPLAY_DEVICEW, DeviceID) == %ld (expected 328)", - FIELD_OFFSET(DISPLAY_DEVICEW, DeviceID)); /* WCHAR[128] */ - ok(FIELD_OFFSET(DISPLAY_DEVICEW, DeviceKey) == 584, - "FIELD_OFFSET(DISPLAY_DEVICEW, DeviceKey) == %ld (expected 584)", - FIELD_OFFSET(DISPLAY_DEVICEW, DeviceKey)); /* WCHAR[128] */ - ok(sizeof(DISPLAY_DEVICEW) == 840, "sizeof(DISPLAY_DEVICEW) == %d (expected 840)", sizeof(DISPLAY_DEVICEW)); - - /* DOCINFOA */ - ok(FIELD_OFFSET(DOCINFOA, cbSize) == 0, - "FIELD_OFFSET(DOCINFOA, cbSize) == %ld (expected 0)", - FIELD_OFFSET(DOCINFOA, cbSize)); /* INT */ - ok(FIELD_OFFSET(DOCINFOA, lpszDocName) == 4, - "FIELD_OFFSET(DOCINFOA, lpszDocName) == %ld (expected 4)", - FIELD_OFFSET(DOCINFOA, lpszDocName)); /* LPCSTR */ - ok(FIELD_OFFSET(DOCINFOA, lpszOutput) == 8, - "FIELD_OFFSET(DOCINFOA, lpszOutput) == %ld (expected 8)", - FIELD_OFFSET(DOCINFOA, lpszOutput)); /* LPCSTR */ - ok(FIELD_OFFSET(DOCINFOA, lpszDatatype) == 12, - "FIELD_OFFSET(DOCINFOA, lpszDatatype) == %ld (expected 12)", - FIELD_OFFSET(DOCINFOA, lpszDatatype)); /* LPCSTR */ - ok(FIELD_OFFSET(DOCINFOA, fwType) == 16, - "FIELD_OFFSET(DOCINFOA, fwType) == %ld (expected 16)", - FIELD_OFFSET(DOCINFOA, fwType)); /* DWORD */ - ok(sizeof(DOCINFOA) == 20, "sizeof(DOCINFOA) == %d (expected 20)", sizeof(DOCINFOA)); - - /* DOCINFOW */ - ok(FIELD_OFFSET(DOCINFOW, cbSize) == 0, - "FIELD_OFFSET(DOCINFOW, cbSize) == %ld (expected 0)", - FIELD_OFFSET(DOCINFOW, cbSize)); /* INT */ - ok(FIELD_OFFSET(DOCINFOW, lpszDocName) == 4, - "FIELD_OFFSET(DOCINFOW, lpszDocName) == %ld (expected 4)", - FIELD_OFFSET(DOCINFOW, lpszDocName)); /* LPCWSTR */ - ok(FIELD_OFFSET(DOCINFOW, lpszOutput) == 8, - "FIELD_OFFSET(DOCINFOW, lpszOutput) == %ld (expected 8)", - FIELD_OFFSET(DOCINFOW, lpszOutput)); /* LPCWSTR */ - ok(FIELD_OFFSET(DOCINFOW, lpszDatatype) == 12, - "FIELD_OFFSET(DOCINFOW, lpszDatatype) == %ld (expected 12)", - FIELD_OFFSET(DOCINFOW, lpszDatatype)); /* LPCWSTR */ - ok(FIELD_OFFSET(DOCINFOW, fwType) == 16, - "FIELD_OFFSET(DOCINFOW, fwType) == %ld (expected 16)", - FIELD_OFFSET(DOCINFOW, fwType)); /* DWORD */ - ok(sizeof(DOCINFOW) == 20, "sizeof(DOCINFOW) == %d (expected 20)", sizeof(DOCINFOW)); - - /* EMR */ - ok(FIELD_OFFSET(EMR, iType) == 0, - "FIELD_OFFSET(EMR, iType) == %ld (expected 0)", - FIELD_OFFSET(EMR, iType)); /* DWORD */ - ok(FIELD_OFFSET(EMR, nSize) == 4, - "FIELD_OFFSET(EMR, nSize) == %ld (expected 4)", - FIELD_OFFSET(EMR, nSize)); /* DWORD */ - ok(sizeof(EMR) == 8, "sizeof(EMR) == %d (expected 8)", sizeof(EMR)); - - /* EMRABORTPATH */ - ok(FIELD_OFFSET(EMRABORTPATH, emr) == 0, - "FIELD_OFFSET(EMRABORTPATH, emr) == %ld (expected 0)", - FIELD_OFFSET(EMRABORTPATH, emr)); /* EMR */ - ok(sizeof(EMRABORTPATH) == 8, "sizeof(EMRABORTPATH) == %d (expected 8)", sizeof(EMRABORTPATH)); - - /* EMRANGLEARC */ - ok(FIELD_OFFSET(EMRANGLEARC, emr) == 0, - "FIELD_OFFSET(EMRANGLEARC, emr) == %ld (expected 0)", - FIELD_OFFSET(EMRANGLEARC, emr)); /* EMR */ - ok(FIELD_OFFSET(EMRANGLEARC, ptlCenter) == 8, - "FIELD_OFFSET(EMRANGLEARC, ptlCenter) == %ld (expected 8)", - FIELD_OFFSET(EMRANGLEARC, ptlCenter)); /* POINTL */ - ok(FIELD_OFFSET(EMRANGLEARC, nRadius) == 16, - "FIELD_OFFSET(EMRANGLEARC, nRadius) == %ld (expected 16)", - FIELD_OFFSET(EMRANGLEARC, nRadius)); /* DWORD */ - ok(FIELD_OFFSET(EMRANGLEARC, eStartAngle) == 20, - "FIELD_OFFSET(EMRANGLEARC, eStartAngle) == %ld (expected 20)", - FIELD_OFFSET(EMRANGLEARC, eStartAngle)); /* FLOAT */ - ok(FIELD_OFFSET(EMRANGLEARC, eSweepAngle) == 24, - "FIELD_OFFSET(EMRANGLEARC, eSweepAngle) == %ld (expected 24)", - FIELD_OFFSET(EMRANGLEARC, eSweepAngle)); /* FLOAT */ - ok(sizeof(EMRANGLEARC) == 28, "sizeof(EMRANGLEARC) == %d (expected 28)", sizeof(EMRANGLEARC)); - - /* EMRARC */ - ok(FIELD_OFFSET(EMRARC, emr) == 0, - "FIELD_OFFSET(EMRARC, emr) == %ld (expected 0)", - FIELD_OFFSET(EMRARC, emr)); /* EMR */ - ok(FIELD_OFFSET(EMRARC, rclBox) == 8, - "FIELD_OFFSET(EMRARC, rclBox) == %ld (expected 8)", - FIELD_OFFSET(EMRARC, rclBox)); /* RECTL */ - ok(FIELD_OFFSET(EMRARC, ptlStart) == 24, - "FIELD_OFFSET(EMRARC, ptlStart) == %ld (expected 24)", - FIELD_OFFSET(EMRARC, ptlStart)); /* POINTL */ - ok(FIELD_OFFSET(EMRARC, ptlEnd) == 32, - "FIELD_OFFSET(EMRARC, ptlEnd) == %ld (expected 32)", - FIELD_OFFSET(EMRARC, ptlEnd)); /* POINTL */ - ok(sizeof(EMRARC) == 40, "sizeof(EMRARC) == %d (expected 40)", sizeof(EMRARC)); - - /* EMRBITBLT */ - ok(FIELD_OFFSET(EMRBITBLT, emr) == 0, - "FIELD_OFFSET(EMRBITBLT, emr) == %ld (expected 0)", - FIELD_OFFSET(EMRBITBLT, emr)); /* EMR */ - ok(FIELD_OFFSET(EMRBITBLT, rclBounds) == 8, - "FIELD_OFFSET(EMRBITBLT, rclBounds) == %ld (expected 8)", - FIELD_OFFSET(EMRBITBLT, rclBounds)); /* RECTL */ - ok(FIELD_OFFSET(EMRBITBLT, xDest) == 24, - "FIELD_OFFSET(EMRBITBLT, xDest) == %ld (expected 24)", - FIELD_OFFSET(EMRBITBLT, xDest)); /* LONG */ - ok(FIELD_OFFSET(EMRBITBLT, yDest) == 28, - "FIELD_OFFSET(EMRBITBLT, yDest) == %ld (expected 28)", - FIELD_OFFSET(EMRBITBLT, yDest)); /* LONG */ - ok(FIELD_OFFSET(EMRBITBLT, cxDest) == 32, - "FIELD_OFFSET(EMRBITBLT, cxDest) == %ld (expected 32)", - FIELD_OFFSET(EMRBITBLT, cxDest)); /* LONG */ - ok(FIELD_OFFSET(EMRBITBLT, cyDest) == 36, - "FIELD_OFFSET(EMRBITBLT, cyDest) == %ld (expected 36)", - FIELD_OFFSET(EMRBITBLT, cyDest)); /* LONG */ - ok(FIELD_OFFSET(EMRBITBLT, dwRop) == 40, - "FIELD_OFFSET(EMRBITBLT, dwRop) == %ld (expected 40)", - FIELD_OFFSET(EMRBITBLT, dwRop)); /* DWORD */ - ok(FIELD_OFFSET(EMRBITBLT, xSrc) == 44, - "FIELD_OFFSET(EMRBITBLT, xSrc) == %ld (expected 44)", - FIELD_OFFSET(EMRBITBLT, xSrc)); /* LONG */ - ok(FIELD_OFFSET(EMRBITBLT, ySrc) == 48, - "FIELD_OFFSET(EMRBITBLT, ySrc) == %ld (expected 48)", - FIELD_OFFSET(EMRBITBLT, ySrc)); /* LONG */ - ok(FIELD_OFFSET(EMRBITBLT, xformSrc) == 52, - "FIELD_OFFSET(EMRBITBLT, xformSrc) == %ld (expected 52)", - FIELD_OFFSET(EMRBITBLT, xformSrc)); /* XFORM */ - ok(FIELD_OFFSET(EMRBITBLT, crBkColorSrc) == 76, - "FIELD_OFFSET(EMRBITBLT, crBkColorSrc) == %ld (expected 76)", - FIELD_OFFSET(EMRBITBLT, crBkColorSrc)); /* COLORREF */ - ok(FIELD_OFFSET(EMRBITBLT, iUsageSrc) == 80, - "FIELD_OFFSET(EMRBITBLT, iUsageSrc) == %ld (expected 80)", - FIELD_OFFSET(EMRBITBLT, iUsageSrc)); /* DWORD */ - ok(FIELD_OFFSET(EMRBITBLT, offBmiSrc) == 84, - "FIELD_OFFSET(EMRBITBLT, offBmiSrc) == %ld (expected 84)", - FIELD_OFFSET(EMRBITBLT, offBmiSrc)); /* DWORD */ - ok(FIELD_OFFSET(EMRBITBLT, cbBmiSrc) == 88, - "FIELD_OFFSET(EMRBITBLT, cbBmiSrc) == %ld (expected 88)", - FIELD_OFFSET(EMRBITBLT, cbBmiSrc)); /* DWORD */ - ok(FIELD_OFFSET(EMRBITBLT, offBitsSrc) == 92, - "FIELD_OFFSET(EMRBITBLT, offBitsSrc) == %ld (expected 92)", - FIELD_OFFSET(EMRBITBLT, offBitsSrc)); /* DWORD */ - ok(FIELD_OFFSET(EMRBITBLT, cbBitsSrc) == 96, - "FIELD_OFFSET(EMRBITBLT, cbBitsSrc) == %ld (expected 96)", - FIELD_OFFSET(EMRBITBLT, cbBitsSrc)); /* DWORD */ - ok(sizeof(EMRBITBLT) == 100, "sizeof(EMRBITBLT) == %d (expected 100)", sizeof(EMRBITBLT)); - - /* EMRCREATEDIBPATTERNBRUSHPT */ - ok(FIELD_OFFSET(EMRCREATEDIBPATTERNBRUSHPT, emr) == 0, - "FIELD_OFFSET(EMRCREATEDIBPATTERNBRUSHPT, emr) == %ld (expected 0)", - FIELD_OFFSET(EMRCREATEDIBPATTERNBRUSHPT, emr)); /* EMR */ - ok(FIELD_OFFSET(EMRCREATEDIBPATTERNBRUSHPT, ihBrush) == 8, - "FIELD_OFFSET(EMRCREATEDIBPATTERNBRUSHPT, ihBrush) == %ld (expected 8)", - FIELD_OFFSET(EMRCREATEDIBPATTERNBRUSHPT, ihBrush)); /* DWORD */ - ok(FIELD_OFFSET(EMRCREATEDIBPATTERNBRUSHPT, iUsage) == 12, - "FIELD_OFFSET(EMRCREATEDIBPATTERNBRUSHPT, iUsage) == %ld (expected 12)", - FIELD_OFFSET(EMRCREATEDIBPATTERNBRUSHPT, iUsage)); /* DWORD */ - ok(FIELD_OFFSET(EMRCREATEDIBPATTERNBRUSHPT, offBmi) == 16, - "FIELD_OFFSET(EMRCREATEDIBPATTERNBRUSHPT, offBmi) == %ld (expected 16)", - FIELD_OFFSET(EMRCREATEDIBPATTERNBRUSHPT, offBmi)); /* DWORD */ - ok(FIELD_OFFSET(EMRCREATEDIBPATTERNBRUSHPT, cbBmi) == 20, - "FIELD_OFFSET(EMRCREATEDIBPATTERNBRUSHPT, cbBmi) == %ld (expected 20)", - FIELD_OFFSET(EMRCREATEDIBPATTERNBRUSHPT, cbBmi)); /* DWORD */ - ok(FIELD_OFFSET(EMRCREATEDIBPATTERNBRUSHPT, offBits) == 24, - "FIELD_OFFSET(EMRCREATEDIBPATTERNBRUSHPT, offBits) == %ld (expected 24)", - FIELD_OFFSET(EMRCREATEDIBPATTERNBRUSHPT, offBits)); /* DWORD */ - ok(FIELD_OFFSET(EMRCREATEDIBPATTERNBRUSHPT, cbBits) == 28, - "FIELD_OFFSET(EMRCREATEDIBPATTERNBRUSHPT, cbBits) == %ld (expected 28)", - FIELD_OFFSET(EMRCREATEDIBPATTERNBRUSHPT, cbBits)); /* DWORD */ - ok(sizeof(EMRCREATEDIBPATTERNBRUSHPT) == 32, "sizeof(EMRCREATEDIBPATTERNBRUSHPT) == %d (expected 32)", sizeof(EMRCREATEDIBPATTERNBRUSHPT)); - - /* EMRCREATEMONOBRUSH */ - ok(FIELD_OFFSET(EMRCREATEMONOBRUSH, emr) == 0, - "FIELD_OFFSET(EMRCREATEMONOBRUSH, emr) == %ld (expected 0)", - FIELD_OFFSET(EMRCREATEMONOBRUSH, emr)); /* EMR */ - ok(FIELD_OFFSET(EMRCREATEMONOBRUSH, ihBrush) == 8, - "FIELD_OFFSET(EMRCREATEMONOBRUSH, ihBrush) == %ld (expected 8)", - FIELD_OFFSET(EMRCREATEMONOBRUSH, ihBrush)); /* DWORD */ - ok(FIELD_OFFSET(EMRCREATEMONOBRUSH, iUsage) == 12, - "FIELD_OFFSET(EMRCREATEMONOBRUSH, iUsage) == %ld (expected 12)", - FIELD_OFFSET(EMRCREATEMONOBRUSH, iUsage)); /* DWORD */ - ok(FIELD_OFFSET(EMRCREATEMONOBRUSH, offBmi) == 16, - "FIELD_OFFSET(EMRCREATEMONOBRUSH, offBmi) == %ld (expected 16)", - FIELD_OFFSET(EMRCREATEMONOBRUSH, offBmi)); /* DWORD */ - ok(FIELD_OFFSET(EMRCREATEMONOBRUSH, cbBmi) == 20, - "FIELD_OFFSET(EMRCREATEMONOBRUSH, cbBmi) == %ld (expected 20)", - FIELD_OFFSET(EMRCREATEMONOBRUSH, cbBmi)); /* DWORD */ - ok(FIELD_OFFSET(EMRCREATEMONOBRUSH, offBits) == 24, - "FIELD_OFFSET(EMRCREATEMONOBRUSH, offBits) == %ld (expected 24)", - FIELD_OFFSET(EMRCREATEMONOBRUSH, offBits)); /* DWORD */ - ok(FIELD_OFFSET(EMRCREATEMONOBRUSH, cbBits) == 28, - "FIELD_OFFSET(EMRCREATEMONOBRUSH, cbBits) == %ld (expected 28)", - FIELD_OFFSET(EMRCREATEMONOBRUSH, cbBits)); /* DWORD */ - ok(sizeof(EMRCREATEMONOBRUSH) == 32, "sizeof(EMRCREATEMONOBRUSH) == %d (expected 32)", sizeof(EMRCREATEMONOBRUSH)); - - /* EMRDELETECOLORSPACE */ - ok(FIELD_OFFSET(EMRDELETECOLORSPACE, emr) == 0, - "FIELD_OFFSET(EMRDELETECOLORSPACE, emr) == %ld (expected 0)", - FIELD_OFFSET(EMRDELETECOLORSPACE, emr)); /* EMR */ - ok(FIELD_OFFSET(EMRDELETECOLORSPACE, ihCS) == 8, - "FIELD_OFFSET(EMRDELETECOLORSPACE, ihCS) == %ld (expected 8)", - FIELD_OFFSET(EMRDELETECOLORSPACE, ihCS)); /* DWORD */ - ok(sizeof(EMRDELETECOLORSPACE) == 12, "sizeof(EMRDELETECOLORSPACE) == %d (expected 12)", sizeof(EMRDELETECOLORSPACE)); - - /* EMRDELETEOBJECT */ - ok(FIELD_OFFSET(EMRDELETEOBJECT, emr) == 0, - "FIELD_OFFSET(EMRDELETEOBJECT, emr) == %ld (expected 0)", - FIELD_OFFSET(EMRDELETEOBJECT, emr)); /* EMR */ - ok(FIELD_OFFSET(EMRDELETEOBJECT, ihObject) == 8, - "FIELD_OFFSET(EMRDELETEOBJECT, ihObject) == %ld (expected 8)", - FIELD_OFFSET(EMRDELETEOBJECT, ihObject)); /* DWORD */ - ok(sizeof(EMRDELETEOBJECT) == 12, "sizeof(EMRDELETEOBJECT) == %d (expected 12)", sizeof(EMRDELETEOBJECT)); - - /* EMRELLIPSE */ - ok(FIELD_OFFSET(EMRELLIPSE, emr) == 0, - "FIELD_OFFSET(EMRELLIPSE, emr) == %ld (expected 0)", - FIELD_OFFSET(EMRELLIPSE, emr)); /* EMR */ - ok(FIELD_OFFSET(EMRELLIPSE, rclBox) == 8, - "FIELD_OFFSET(EMRELLIPSE, rclBox) == %ld (expected 8)", - FIELD_OFFSET(EMRELLIPSE, rclBox)); /* RECTL */ - ok(sizeof(EMRELLIPSE) == 24, "sizeof(EMRELLIPSE) == %d (expected 24)", sizeof(EMRELLIPSE)); - - /* EMREOF */ - ok(FIELD_OFFSET(EMREOF, emr) == 0, - "FIELD_OFFSET(EMREOF, emr) == %ld (expected 0)", - FIELD_OFFSET(EMREOF, emr)); /* EMR */ - ok(FIELD_OFFSET(EMREOF, nPalEntries) == 8, - "FIELD_OFFSET(EMREOF, nPalEntries) == %ld (expected 8)", - FIELD_OFFSET(EMREOF, nPalEntries)); /* DWORD */ - ok(FIELD_OFFSET(EMREOF, offPalEntries) == 12, - "FIELD_OFFSET(EMREOF, offPalEntries) == %ld (expected 12)", - FIELD_OFFSET(EMREOF, offPalEntries)); /* DWORD */ - ok(FIELD_OFFSET(EMREOF, nSizeLast) == 16, - "FIELD_OFFSET(EMREOF, nSizeLast) == %ld (expected 16)", - FIELD_OFFSET(EMREOF, nSizeLast)); /* DWORD */ - ok(sizeof(EMREOF) == 20, "sizeof(EMREOF) == %d (expected 20)", sizeof(EMREOF)); - - /* EMREXCLUDECLIPRECT */ - ok(FIELD_OFFSET(EMREXCLUDECLIPRECT, emr) == 0, - "FIELD_OFFSET(EMREXCLUDECLIPRECT, emr) == %ld (expected 0)", - FIELD_OFFSET(EMREXCLUDECLIPRECT, emr)); /* EMR */ - ok(FIELD_OFFSET(EMREXCLUDECLIPRECT, rclClip) == 8, - "FIELD_OFFSET(EMREXCLUDECLIPRECT, rclClip) == %ld (expected 8)", - FIELD_OFFSET(EMREXCLUDECLIPRECT, rclClip)); /* RECTL */ - ok(sizeof(EMREXCLUDECLIPRECT) == 24, "sizeof(EMREXCLUDECLIPRECT) == %d (expected 24)", sizeof(EMREXCLUDECLIPRECT)); - - /* EMREXTFLOODFILL */ - ok(FIELD_OFFSET(EMREXTFLOODFILL, emr) == 0, - "FIELD_OFFSET(EMREXTFLOODFILL, emr) == %ld (expected 0)", - FIELD_OFFSET(EMREXTFLOODFILL, emr)); /* EMR */ - ok(FIELD_OFFSET(EMREXTFLOODFILL, ptlStart) == 8, - "FIELD_OFFSET(EMREXTFLOODFILL, ptlStart) == %ld (expected 8)", - FIELD_OFFSET(EMREXTFLOODFILL, ptlStart)); /* POINTL */ - ok(FIELD_OFFSET(EMREXTFLOODFILL, crColor) == 16, - "FIELD_OFFSET(EMREXTFLOODFILL, crColor) == %ld (expected 16)", - FIELD_OFFSET(EMREXTFLOODFILL, crColor)); /* COLORREF */ - ok(FIELD_OFFSET(EMREXTFLOODFILL, iMode) == 20, - "FIELD_OFFSET(EMREXTFLOODFILL, iMode) == %ld (expected 20)", - FIELD_OFFSET(EMREXTFLOODFILL, iMode)); /* DWORD */ - ok(sizeof(EMREXTFLOODFILL) == 24, "sizeof(EMREXTFLOODFILL) == %d (expected 24)", sizeof(EMREXTFLOODFILL)); - - /* EMRFILLPATH */ - ok(FIELD_OFFSET(EMRFILLPATH, emr) == 0, - "FIELD_OFFSET(EMRFILLPATH, emr) == %ld (expected 0)", - FIELD_OFFSET(EMRFILLPATH, emr)); /* EMR */ - ok(FIELD_OFFSET(EMRFILLPATH, rclBounds) == 8, - "FIELD_OFFSET(EMRFILLPATH, rclBounds) == %ld (expected 8)", - FIELD_OFFSET(EMRFILLPATH, rclBounds)); /* RECTL */ - ok(sizeof(EMRFILLPATH) == 24, "sizeof(EMRFILLPATH) == %d (expected 24)", sizeof(EMRFILLPATH)); - - /* EMRFORMAT */ - ok(FIELD_OFFSET(EMRFORMAT, signature) == 0, - "FIELD_OFFSET(EMRFORMAT, signature) == %ld (expected 0)", - FIELD_OFFSET(EMRFORMAT, signature)); /* DWORD */ - ok(FIELD_OFFSET(EMRFORMAT, nVersion) == 4, - "FIELD_OFFSET(EMRFORMAT, nVersion) == %ld (expected 4)", - FIELD_OFFSET(EMRFORMAT, nVersion)); /* DWORD */ - ok(FIELD_OFFSET(EMRFORMAT, cbData) == 8, - "FIELD_OFFSET(EMRFORMAT, cbData) == %ld (expected 8)", - FIELD_OFFSET(EMRFORMAT, cbData)); /* DWORD */ - ok(FIELD_OFFSET(EMRFORMAT, offData) == 12, - "FIELD_OFFSET(EMRFORMAT, offData) == %ld (expected 12)", - FIELD_OFFSET(EMRFORMAT, offData)); /* DWORD */ - ok(sizeof(EMRFORMAT) == 16, "sizeof(EMRFORMAT) == %d (expected 16)", sizeof(EMRFORMAT)); - - /* EMRLINETO */ - ok(FIELD_OFFSET(EMRLINETO, emr) == 0, - "FIELD_OFFSET(EMRLINETO, emr) == %ld (expected 0)", - FIELD_OFFSET(EMRLINETO, emr)); /* EMR */ - ok(FIELD_OFFSET(EMRLINETO, ptl) == 8, - "FIELD_OFFSET(EMRLINETO, ptl) == %ld (expected 8)", - FIELD_OFFSET(EMRLINETO, ptl)); /* POINTL */ - ok(sizeof(EMRLINETO) == 16, "sizeof(EMRLINETO) == %d (expected 16)", sizeof(EMRLINETO)); - - /* EMRMASKBLT */ - ok(FIELD_OFFSET(EMRMASKBLT, emr) == 0, - "FIELD_OFFSET(EMRMASKBLT, emr) == %ld (expected 0)", - FIELD_OFFSET(EMRMASKBLT, emr)); /* EMR */ - ok(FIELD_OFFSET(EMRMASKBLT, rclBounds) == 8, - "FIELD_OFFSET(EMRMASKBLT, rclBounds) == %ld (expected 8)", - FIELD_OFFSET(EMRMASKBLT, rclBounds)); /* RECTL */ - ok(FIELD_OFFSET(EMRMASKBLT, xDest) == 24, - "FIELD_OFFSET(EMRMASKBLT, xDest) == %ld (expected 24)", - FIELD_OFFSET(EMRMASKBLT, xDest)); /* LONG */ - ok(FIELD_OFFSET(EMRMASKBLT, yDest) == 28, - "FIELD_OFFSET(EMRMASKBLT, yDest) == %ld (expected 28)", - FIELD_OFFSET(EMRMASKBLT, yDest)); /* LONG */ - ok(FIELD_OFFSET(EMRMASKBLT, cxDest) == 32, - "FIELD_OFFSET(EMRMASKBLT, cxDest) == %ld (expected 32)", - FIELD_OFFSET(EMRMASKBLT, cxDest)); /* LONG */ - ok(FIELD_OFFSET(EMRMASKBLT, cyDest) == 36, - "FIELD_OFFSET(EMRMASKBLT, cyDest) == %ld (expected 36)", - FIELD_OFFSET(EMRMASKBLT, cyDest)); /* LONG */ - ok(FIELD_OFFSET(EMRMASKBLT, dwRop) == 40, - "FIELD_OFFSET(EMRMASKBLT, dwRop) == %ld (expected 40)", - FIELD_OFFSET(EMRMASKBLT, dwRop)); /* DWORD */ - ok(FIELD_OFFSET(EMRMASKBLT, xSrc) == 44, - "FIELD_OFFSET(EMRMASKBLT, xSrc) == %ld (expected 44)", - FIELD_OFFSET(EMRMASKBLT, xSrc)); /* LONG */ - ok(FIELD_OFFSET(EMRMASKBLT, ySrc) == 48, - "FIELD_OFFSET(EMRMASKBLT, ySrc) == %ld (expected 48)", - FIELD_OFFSET(EMRMASKBLT, ySrc)); /* LONG */ - ok(FIELD_OFFSET(EMRMASKBLT, xformSrc) == 52, - "FIELD_OFFSET(EMRMASKBLT, xformSrc) == %ld (expected 52)", - FIELD_OFFSET(EMRMASKBLT, xformSrc)); /* XFORM */ - ok(FIELD_OFFSET(EMRMASKBLT, crBkColorSrc) == 76, - "FIELD_OFFSET(EMRMASKBLT, crBkColorSrc) == %ld (expected 76)", - FIELD_OFFSET(EMRMASKBLT, crBkColorSrc)); /* COLORREF */ - ok(FIELD_OFFSET(EMRMASKBLT, iUsageSrc) == 80, - "FIELD_OFFSET(EMRMASKBLT, iUsageSrc) == %ld (expected 80)", - FIELD_OFFSET(EMRMASKBLT, iUsageSrc)); /* DWORD */ - ok(FIELD_OFFSET(EMRMASKBLT, offBmiSrc) == 84, - "FIELD_OFFSET(EMRMASKBLT, offBmiSrc) == %ld (expected 84)", - FIELD_OFFSET(EMRMASKBLT, offBmiSrc)); /* DWORD */ - ok(FIELD_OFFSET(EMRMASKBLT, cbBmiSrc) == 88, - "FIELD_OFFSET(EMRMASKBLT, cbBmiSrc) == %ld (expected 88)", - FIELD_OFFSET(EMRMASKBLT, cbBmiSrc)); /* DWORD */ - ok(FIELD_OFFSET(EMRMASKBLT, offBitsSrc) == 92, - "FIELD_OFFSET(EMRMASKBLT, offBitsSrc) == %ld (expected 92)", - FIELD_OFFSET(EMRMASKBLT, offBitsSrc)); /* DWORD */ - ok(FIELD_OFFSET(EMRMASKBLT, cbBitsSrc) == 96, - "FIELD_OFFSET(EMRMASKBLT, cbBitsSrc) == %ld (expected 96)", - FIELD_OFFSET(EMRMASKBLT, cbBitsSrc)); /* DWORD */ - ok(FIELD_OFFSET(EMRMASKBLT, xMask) == 100, - "FIELD_OFFSET(EMRMASKBLT, xMask) == %ld (expected 100)", - FIELD_OFFSET(EMRMASKBLT, xMask)); /* LONG */ - ok(FIELD_OFFSET(EMRMASKBLT, yMask) == 104, - "FIELD_OFFSET(EMRMASKBLT, yMask) == %ld (expected 104)", - FIELD_OFFSET(EMRMASKBLT, yMask)); /* LONG */ - ok(FIELD_OFFSET(EMRMASKBLT, iUsageMask) == 108, - "FIELD_OFFSET(EMRMASKBLT, iUsageMask) == %ld (expected 108)", - FIELD_OFFSET(EMRMASKBLT, iUsageMask)); /* DWORD */ - ok(FIELD_OFFSET(EMRMASKBLT, offBmiMask) == 112, - "FIELD_OFFSET(EMRMASKBLT, offBmiMask) == %ld (expected 112)", - FIELD_OFFSET(EMRMASKBLT, offBmiMask)); /* DWORD */ - ok(FIELD_OFFSET(EMRMASKBLT, cbBmiMask) == 116, - "FIELD_OFFSET(EMRMASKBLT, cbBmiMask) == %ld (expected 116)", - FIELD_OFFSET(EMRMASKBLT, cbBmiMask)); /* DWORD */ - ok(FIELD_OFFSET(EMRMASKBLT, offBitsMask) == 120, - "FIELD_OFFSET(EMRMASKBLT, offBitsMask) == %ld (expected 120)", - FIELD_OFFSET(EMRMASKBLT, offBitsMask)); /* DWORD */ - ok(FIELD_OFFSET(EMRMASKBLT, cbBitsMask) == 124, - "FIELD_OFFSET(EMRMASKBLT, cbBitsMask) == %ld (expected 124)", - FIELD_OFFSET(EMRMASKBLT, cbBitsMask)); /* DWORD */ - ok(sizeof(EMRMASKBLT) == 128, "sizeof(EMRMASKBLT) == %d (expected 128)", sizeof(EMRMASKBLT)); - - /* EMRMODIFYWORLDTRANSFORM */ - ok(FIELD_OFFSET(EMRMODIFYWORLDTRANSFORM, emr) == 0, - "FIELD_OFFSET(EMRMODIFYWORLDTRANSFORM, emr) == %ld (expected 0)", - FIELD_OFFSET(EMRMODIFYWORLDTRANSFORM, emr)); /* EMR */ - ok(FIELD_OFFSET(EMRMODIFYWORLDTRANSFORM, xform) == 8, - "FIELD_OFFSET(EMRMODIFYWORLDTRANSFORM, xform) == %ld (expected 8)", - FIELD_OFFSET(EMRMODIFYWORLDTRANSFORM, xform)); /* XFORM */ - ok(FIELD_OFFSET(EMRMODIFYWORLDTRANSFORM, iMode) == 32, - "FIELD_OFFSET(EMRMODIFYWORLDTRANSFORM, iMode) == %ld (expected 32)", - FIELD_OFFSET(EMRMODIFYWORLDTRANSFORM, iMode)); /* DWORD */ - ok(sizeof(EMRMODIFYWORLDTRANSFORM) == 36, "sizeof(EMRMODIFYWORLDTRANSFORM) == %d (expected 36)", sizeof(EMRMODIFYWORLDTRANSFORM)); - - /* EMROFFSETCLIPRGN */ - ok(FIELD_OFFSET(EMROFFSETCLIPRGN, emr) == 0, - "FIELD_OFFSET(EMROFFSETCLIPRGN, emr) == %ld (expected 0)", - FIELD_OFFSET(EMROFFSETCLIPRGN, emr)); /* EMR */ - ok(FIELD_OFFSET(EMROFFSETCLIPRGN, ptlOffset) == 8, - "FIELD_OFFSET(EMROFFSETCLIPRGN, ptlOffset) == %ld (expected 8)", - FIELD_OFFSET(EMROFFSETCLIPRGN, ptlOffset)); /* POINTL */ - ok(sizeof(EMROFFSETCLIPRGN) == 16, "sizeof(EMROFFSETCLIPRGN) == %d (expected 16)", sizeof(EMROFFSETCLIPRGN)); - - /* EMRPLGBLT */ - ok(FIELD_OFFSET(EMRPLGBLT, emr) == 0, - "FIELD_OFFSET(EMRPLGBLT, emr) == %ld (expected 0)", - FIELD_OFFSET(EMRPLGBLT, emr)); /* EMR */ - ok(FIELD_OFFSET(EMRPLGBLT, rclBounds) == 8, - "FIELD_OFFSET(EMRPLGBLT, rclBounds) == %ld (expected 8)", - FIELD_OFFSET(EMRPLGBLT, rclBounds)); /* RECTL */ - ok(FIELD_OFFSET(EMRPLGBLT, aptlDst) == 24, - "FIELD_OFFSET(EMRPLGBLT, aptlDst) == %ld (expected 24)", - FIELD_OFFSET(EMRPLGBLT, aptlDst)); /* POINTL[3] */ - ok(FIELD_OFFSET(EMRPLGBLT, xSrc) == 48, - "FIELD_OFFSET(EMRPLGBLT, xSrc) == %ld (expected 48)", - FIELD_OFFSET(EMRPLGBLT, xSrc)); /* LONG */ - ok(FIELD_OFFSET(EMRPLGBLT, ySrc) == 52, - "FIELD_OFFSET(EMRPLGBLT, ySrc) == %ld (expected 52)", - FIELD_OFFSET(EMRPLGBLT, ySrc)); /* LONG */ - ok(FIELD_OFFSET(EMRPLGBLT, cxSrc) == 56, - "FIELD_OFFSET(EMRPLGBLT, cxSrc) == %ld (expected 56)", - FIELD_OFFSET(EMRPLGBLT, cxSrc)); /* LONG */ - ok(FIELD_OFFSET(EMRPLGBLT, cySrc) == 60, - "FIELD_OFFSET(EMRPLGBLT, cySrc) == %ld (expected 60)", - FIELD_OFFSET(EMRPLGBLT, cySrc)); /* LONG */ - ok(FIELD_OFFSET(EMRPLGBLT, xformSrc) == 64, - "FIELD_OFFSET(EMRPLGBLT, xformSrc) == %ld (expected 64)", - FIELD_OFFSET(EMRPLGBLT, xformSrc)); /* XFORM */ - ok(FIELD_OFFSET(EMRPLGBLT, crBkColorSrc) == 88, - "FIELD_OFFSET(EMRPLGBLT, crBkColorSrc) == %ld (expected 88)", - FIELD_OFFSET(EMRPLGBLT, crBkColorSrc)); /* COLORREF */ - ok(FIELD_OFFSET(EMRPLGBLT, iUsageSrc) == 92, - "FIELD_OFFSET(EMRPLGBLT, iUsageSrc) == %ld (expected 92)", - FIELD_OFFSET(EMRPLGBLT, iUsageSrc)); /* DWORD */ - ok(FIELD_OFFSET(EMRPLGBLT, offBmiSrc) == 96, - "FIELD_OFFSET(EMRPLGBLT, offBmiSrc) == %ld (expected 96)", - FIELD_OFFSET(EMRPLGBLT, offBmiSrc)); /* DWORD */ - ok(FIELD_OFFSET(EMRPLGBLT, cbBmiSrc) == 100, - "FIELD_OFFSET(EMRPLGBLT, cbBmiSrc) == %ld (expected 100)", - FIELD_OFFSET(EMRPLGBLT, cbBmiSrc)); /* DWORD */ - ok(FIELD_OFFSET(EMRPLGBLT, offBitsSrc) == 104, - "FIELD_OFFSET(EMRPLGBLT, offBitsSrc) == %ld (expected 104)", - FIELD_OFFSET(EMRPLGBLT, offBitsSrc)); /* DWORD */ - ok(FIELD_OFFSET(EMRPLGBLT, cbBitsSrc) == 108, - "FIELD_OFFSET(EMRPLGBLT, cbBitsSrc) == %ld (expected 108)", - FIELD_OFFSET(EMRPLGBLT, cbBitsSrc)); /* DWORD */ - ok(FIELD_OFFSET(EMRPLGBLT, xMask) == 112, - "FIELD_OFFSET(EMRPLGBLT, xMask) == %ld (expected 112)", - FIELD_OFFSET(EMRPLGBLT, xMask)); /* LONG */ - ok(FIELD_OFFSET(EMRPLGBLT, yMask) == 116, - "FIELD_OFFSET(EMRPLGBLT, yMask) == %ld (expected 116)", - FIELD_OFFSET(EMRPLGBLT, yMask)); /* LONG */ - ok(FIELD_OFFSET(EMRPLGBLT, iUsageMask) == 120, - "FIELD_OFFSET(EMRPLGBLT, iUsageMask) == %ld (expected 120)", - FIELD_OFFSET(EMRPLGBLT, iUsageMask)); /* DWORD */ - ok(FIELD_OFFSET(EMRPLGBLT, offBmiMask) == 124, - "FIELD_OFFSET(EMRPLGBLT, offBmiMask) == %ld (expected 124)", - FIELD_OFFSET(EMRPLGBLT, offBmiMask)); /* DWORD */ - ok(FIELD_OFFSET(EMRPLGBLT, cbBmiMask) == 128, - "FIELD_OFFSET(EMRPLGBLT, cbBmiMask) == %ld (expected 128)", - FIELD_OFFSET(EMRPLGBLT, cbBmiMask)); /* DWORD */ - ok(FIELD_OFFSET(EMRPLGBLT, offBitsMask) == 132, - "FIELD_OFFSET(EMRPLGBLT, offBitsMask) == %ld (expected 132)", - FIELD_OFFSET(EMRPLGBLT, offBitsMask)); /* DWORD */ - ok(FIELD_OFFSET(EMRPLGBLT, cbBitsMask) == 136, - "FIELD_OFFSET(EMRPLGBLT, cbBitsMask) == %ld (expected 136)", - FIELD_OFFSET(EMRPLGBLT, cbBitsMask)); /* DWORD */ - ok(sizeof(EMRPLGBLT) == 140, "sizeof(EMRPLGBLT) == %d (expected 140)", sizeof(EMRPLGBLT)); - - /* EMRPOLYLINE */ - ok(FIELD_OFFSET(EMRPOLYLINE, emr) == 0, - "FIELD_OFFSET(EMRPOLYLINE, emr) == %ld (expected 0)", - FIELD_OFFSET(EMRPOLYLINE, emr)); /* EMR */ - ok(FIELD_OFFSET(EMRPOLYLINE, rclBounds) == 8, - "FIELD_OFFSET(EMRPOLYLINE, rclBounds) == %ld (expected 8)", - FIELD_OFFSET(EMRPOLYLINE, rclBounds)); /* RECTL */ - ok(FIELD_OFFSET(EMRPOLYLINE, cptl) == 24, - "FIELD_OFFSET(EMRPOLYLINE, cptl) == %ld (expected 24)", - FIELD_OFFSET(EMRPOLYLINE, cptl)); /* DWORD */ - ok(FIELD_OFFSET(EMRPOLYLINE, aptl) == 28, - "FIELD_OFFSET(EMRPOLYLINE, aptl) == %ld (expected 28)", - FIELD_OFFSET(EMRPOLYLINE, aptl)); /* POINTL[1] */ - ok(sizeof(EMRPOLYLINE) == 36, "sizeof(EMRPOLYLINE) == %d (expected 36)", sizeof(EMRPOLYLINE)); - - /* EMRPOLYPOLYLINE */ - ok(FIELD_OFFSET(EMRPOLYPOLYLINE, emr) == 0, - "FIELD_OFFSET(EMRPOLYPOLYLINE, emr) == %ld (expected 0)", - FIELD_OFFSET(EMRPOLYPOLYLINE, emr)); /* EMR */ - ok(FIELD_OFFSET(EMRPOLYPOLYLINE, rclBounds) == 8, - "FIELD_OFFSET(EMRPOLYPOLYLINE, rclBounds) == %ld (expected 8)", - FIELD_OFFSET(EMRPOLYPOLYLINE, rclBounds)); /* RECTL */ - ok(FIELD_OFFSET(EMRPOLYPOLYLINE, nPolys) == 24, - "FIELD_OFFSET(EMRPOLYPOLYLINE, nPolys) == %ld (expected 24)", - FIELD_OFFSET(EMRPOLYPOLYLINE, nPolys)); /* DWORD */ - ok(FIELD_OFFSET(EMRPOLYPOLYLINE, cptl) == 28, - "FIELD_OFFSET(EMRPOLYPOLYLINE, cptl) == %ld (expected 28)", - FIELD_OFFSET(EMRPOLYPOLYLINE, cptl)); /* DWORD */ - ok(FIELD_OFFSET(EMRPOLYPOLYLINE, aPolyCounts) == 32, - "FIELD_OFFSET(EMRPOLYPOLYLINE, aPolyCounts) == %ld (expected 32)", - FIELD_OFFSET(EMRPOLYPOLYLINE, aPolyCounts)); /* DWORD[1] */ - ok(FIELD_OFFSET(EMRPOLYPOLYLINE, aptl) == 36, - "FIELD_OFFSET(EMRPOLYPOLYLINE, aptl) == %ld (expected 36)", - FIELD_OFFSET(EMRPOLYPOLYLINE, aptl)); /* POINTL[1] */ - ok(sizeof(EMRPOLYPOLYLINE) == 44, "sizeof(EMRPOLYPOLYLINE) == %d (expected 44)", sizeof(EMRPOLYPOLYLINE)); - - /* EMRRESIZEPALETTE */ - ok(FIELD_OFFSET(EMRRESIZEPALETTE, emr) == 0, - "FIELD_OFFSET(EMRRESIZEPALETTE, emr) == %ld (expected 0)", - FIELD_OFFSET(EMRRESIZEPALETTE, emr)); /* EMR */ - ok(FIELD_OFFSET(EMRRESIZEPALETTE, ihPal) == 8, - "FIELD_OFFSET(EMRRESIZEPALETTE, ihPal) == %ld (expected 8)", - FIELD_OFFSET(EMRRESIZEPALETTE, ihPal)); /* DWORD */ - ok(FIELD_OFFSET(EMRRESIZEPALETTE, cEntries) == 12, - "FIELD_OFFSET(EMRRESIZEPALETTE, cEntries) == %ld (expected 12)", - FIELD_OFFSET(EMRRESIZEPALETTE, cEntries)); /* DWORD */ - ok(sizeof(EMRRESIZEPALETTE) == 16, "sizeof(EMRRESIZEPALETTE) == %d (expected 16)", sizeof(EMRRESIZEPALETTE)); - - /* EMRRESTOREDC */ - ok(FIELD_OFFSET(EMRRESTOREDC, emr) == 0, - "FIELD_OFFSET(EMRRESTOREDC, emr) == %ld (expected 0)", - FIELD_OFFSET(EMRRESTOREDC, emr)); /* EMR */ - ok(FIELD_OFFSET(EMRRESTOREDC, iRelative) == 8, - "FIELD_OFFSET(EMRRESTOREDC, iRelative) == %ld (expected 8)", - FIELD_OFFSET(EMRRESTOREDC, iRelative)); /* LONG */ - ok(sizeof(EMRRESTOREDC) == 12, "sizeof(EMRRESTOREDC) == %d (expected 12)", sizeof(EMRRESTOREDC)); - - /* EMRROUNDRECT */ - ok(FIELD_OFFSET(EMRROUNDRECT, emr) == 0, - "FIELD_OFFSET(EMRROUNDRECT, emr) == %ld (expected 0)", - FIELD_OFFSET(EMRROUNDRECT, emr)); /* EMR */ - ok(FIELD_OFFSET(EMRROUNDRECT, rclBox) == 8, - "FIELD_OFFSET(EMRROUNDRECT, rclBox) == %ld (expected 8)", - FIELD_OFFSET(EMRROUNDRECT, rclBox)); /* RECTL */ - ok(FIELD_OFFSET(EMRROUNDRECT, szlCorner) == 24, - "FIELD_OFFSET(EMRROUNDRECT, szlCorner) == %ld (expected 24)", - FIELD_OFFSET(EMRROUNDRECT, szlCorner)); /* SIZEL */ - ok(sizeof(EMRROUNDRECT) == 32, "sizeof(EMRROUNDRECT) == %d (expected 32)", sizeof(EMRROUNDRECT)); - - /* EMRSCALEVIEWPORTEXTEX */ - ok(FIELD_OFFSET(EMRSCALEVIEWPORTEXTEX, emr) == 0, - "FIELD_OFFSET(EMRSCALEVIEWPORTEXTEX, emr) == %ld (expected 0)", - FIELD_OFFSET(EMRSCALEVIEWPORTEXTEX, emr)); /* EMR */ - ok(FIELD_OFFSET(EMRSCALEVIEWPORTEXTEX, xNum) == 8, - "FIELD_OFFSET(EMRSCALEVIEWPORTEXTEX, xNum) == %ld (expected 8)", - FIELD_OFFSET(EMRSCALEVIEWPORTEXTEX, xNum)); /* LONG */ - ok(FIELD_OFFSET(EMRSCALEVIEWPORTEXTEX, xDenom) == 12, - "FIELD_OFFSET(EMRSCALEVIEWPORTEXTEX, xDenom) == %ld (expected 12)", - FIELD_OFFSET(EMRSCALEVIEWPORTEXTEX, xDenom)); /* LONG */ - ok(FIELD_OFFSET(EMRSCALEVIEWPORTEXTEX, yNum) == 16, - "FIELD_OFFSET(EMRSCALEVIEWPORTEXTEX, yNum) == %ld (expected 16)", - FIELD_OFFSET(EMRSCALEVIEWPORTEXTEX, yNum)); /* LONG */ - ok(FIELD_OFFSET(EMRSCALEVIEWPORTEXTEX, yDenom) == 20, - "FIELD_OFFSET(EMRSCALEVIEWPORTEXTEX, yDenom) == %ld (expected 20)", - FIELD_OFFSET(EMRSCALEVIEWPORTEXTEX, yDenom)); /* LONG */ - ok(sizeof(EMRSCALEVIEWPORTEXTEX) == 24, "sizeof(EMRSCALEVIEWPORTEXTEX) == %d (expected 24)", sizeof(EMRSCALEVIEWPORTEXTEX)); - - /* EMRSELECTCLIPPATH */ - ok(FIELD_OFFSET(EMRSELECTCLIPPATH, emr) == 0, - "FIELD_OFFSET(EMRSELECTCLIPPATH, emr) == %ld (expected 0)", - FIELD_OFFSET(EMRSELECTCLIPPATH, emr)); /* EMR */ - ok(FIELD_OFFSET(EMRSELECTCLIPPATH, iMode) == 8, - "FIELD_OFFSET(EMRSELECTCLIPPATH, iMode) == %ld (expected 8)", - FIELD_OFFSET(EMRSELECTCLIPPATH, iMode)); /* DWORD */ - ok(sizeof(EMRSELECTCLIPPATH) == 12, "sizeof(EMRSELECTCLIPPATH) == %d (expected 12)", sizeof(EMRSELECTCLIPPATH)); - - /* EMRSELECTPALETTE */ - ok(FIELD_OFFSET(EMRSELECTPALETTE, emr) == 0, - "FIELD_OFFSET(EMRSELECTPALETTE, emr) == %ld (expected 0)", - FIELD_OFFSET(EMRSELECTPALETTE, emr)); /* EMR */ - ok(FIELD_OFFSET(EMRSELECTPALETTE, ihPal) == 8, - "FIELD_OFFSET(EMRSELECTPALETTE, ihPal) == %ld (expected 8)", - FIELD_OFFSET(EMRSELECTPALETTE, ihPal)); /* DWORD */ - ok(sizeof(EMRSELECTPALETTE) == 12, "sizeof(EMRSELECTPALETTE) == %d (expected 12)", sizeof(EMRSELECTPALETTE)); - - /* EMRSETARCDIRECTION */ - ok(FIELD_OFFSET(EMRSETARCDIRECTION, emr) == 0, - "FIELD_OFFSET(EMRSETARCDIRECTION, emr) == %ld (expected 0)", - FIELD_OFFSET(EMRSETARCDIRECTION, emr)); /* EMR */ - ok(FIELD_OFFSET(EMRSETARCDIRECTION, iArcDirection) == 8, - "FIELD_OFFSET(EMRSETARCDIRECTION, iArcDirection) == %ld (expected 8)", - FIELD_OFFSET(EMRSETARCDIRECTION, iArcDirection)); /* DWORD */ - ok(sizeof(EMRSETARCDIRECTION) == 12, "sizeof(EMRSETARCDIRECTION) == %d (expected 12)", sizeof(EMRSETARCDIRECTION)); - - /* EMRSETBKCOLOR */ - ok(FIELD_OFFSET(EMRSETBKCOLOR, emr) == 0, - "FIELD_OFFSET(EMRSETBKCOLOR, emr) == %ld (expected 0)", - FIELD_OFFSET(EMRSETBKCOLOR, emr)); /* EMR */ - ok(FIELD_OFFSET(EMRSETBKCOLOR, crColor) == 8, - "FIELD_OFFSET(EMRSETBKCOLOR, crColor) == %ld (expected 8)", - FIELD_OFFSET(EMRSETBKCOLOR, crColor)); /* COLORREF */ - ok(sizeof(EMRSETBKCOLOR) == 12, "sizeof(EMRSETBKCOLOR) == %d (expected 12)", sizeof(EMRSETBKCOLOR)); - - /* EMRSETBRUSHORGEX */ - ok(FIELD_OFFSET(EMRSETBRUSHORGEX, emr) == 0, - "FIELD_OFFSET(EMRSETBRUSHORGEX, emr) == %ld (expected 0)", - FIELD_OFFSET(EMRSETBRUSHORGEX, emr)); /* EMR */ - ok(FIELD_OFFSET(EMRSETBRUSHORGEX, ptlOrigin) == 8, - "FIELD_OFFSET(EMRSETBRUSHORGEX, ptlOrigin) == %ld (expected 8)", - FIELD_OFFSET(EMRSETBRUSHORGEX, ptlOrigin)); /* POINTL */ - ok(sizeof(EMRSETBRUSHORGEX) == 16, "sizeof(EMRSETBRUSHORGEX) == %d (expected 16)", sizeof(EMRSETBRUSHORGEX)); - - /* EMRSETDIBITSTODEIVCE */ - ok(FIELD_OFFSET(EMRSETDIBITSTODEIVCE, emr) == 0, - "FIELD_OFFSET(EMRSETDIBITSTODEIVCE, emr) == %ld (expected 0)", - FIELD_OFFSET(EMRSETDIBITSTODEIVCE, emr)); /* EMR */ - ok(FIELD_OFFSET(EMRSETDIBITSTODEIVCE, rclBounds) == 8, - "FIELD_OFFSET(EMRSETDIBITSTODEIVCE, rclBounds) == %ld (expected 8)", - FIELD_OFFSET(EMRSETDIBITSTODEIVCE, rclBounds)); /* RECTL */ - ok(FIELD_OFFSET(EMRSETDIBITSTODEIVCE, xDest) == 24, - "FIELD_OFFSET(EMRSETDIBITSTODEIVCE, xDest) == %ld (expected 24)", - FIELD_OFFSET(EMRSETDIBITSTODEIVCE, xDest)); /* LONG */ - ok(FIELD_OFFSET(EMRSETDIBITSTODEIVCE, yDest) == 28, - "FIELD_OFFSET(EMRSETDIBITSTODEIVCE, yDest) == %ld (expected 28)", - FIELD_OFFSET(EMRSETDIBITSTODEIVCE, yDest)); /* LONG */ - ok(FIELD_OFFSET(EMRSETDIBITSTODEIVCE, xSrc) == 32, - "FIELD_OFFSET(EMRSETDIBITSTODEIVCE, xSrc) == %ld (expected 32)", - FIELD_OFFSET(EMRSETDIBITSTODEIVCE, xSrc)); /* LONG */ - ok(FIELD_OFFSET(EMRSETDIBITSTODEIVCE, ySrc) == 36, - "FIELD_OFFSET(EMRSETDIBITSTODEIVCE, ySrc) == %ld (expected 36)", - FIELD_OFFSET(EMRSETDIBITSTODEIVCE, ySrc)); /* LONG */ - ok(FIELD_OFFSET(EMRSETDIBITSTODEIVCE, cxSrc) == 40, - "FIELD_OFFSET(EMRSETDIBITSTODEIVCE, cxSrc) == %ld (expected 40)", - FIELD_OFFSET(EMRSETDIBITSTODEIVCE, cxSrc)); /* LONG */ - ok(FIELD_OFFSET(EMRSETDIBITSTODEIVCE, cySrc) == 44, - "FIELD_OFFSET(EMRSETDIBITSTODEIVCE, cySrc) == %ld (expected 44)", - FIELD_OFFSET(EMRSETDIBITSTODEIVCE, cySrc)); /* LONG */ - ok(FIELD_OFFSET(EMRSETDIBITSTODEIVCE, offBmiSrc) == 48, - "FIELD_OFFSET(EMRSETDIBITSTODEIVCE, offBmiSrc) == %ld (expected 48)", - FIELD_OFFSET(EMRSETDIBITSTODEIVCE, offBmiSrc)); /* DWORD */ - ok(FIELD_OFFSET(EMRSETDIBITSTODEIVCE, cbBmiSrc) == 52, - "FIELD_OFFSET(EMRSETDIBITSTODEIVCE, cbBmiSrc) == %ld (expected 52)", - FIELD_OFFSET(EMRSETDIBITSTODEIVCE, cbBmiSrc)); /* DWORD */ - ok(FIELD_OFFSET(EMRSETDIBITSTODEIVCE, offBitsSrc) == 56, - "FIELD_OFFSET(EMRSETDIBITSTODEIVCE, offBitsSrc) == %ld (expected 56)", - FIELD_OFFSET(EMRSETDIBITSTODEIVCE, offBitsSrc)); /* DWORD */ - ok(FIELD_OFFSET(EMRSETDIBITSTODEIVCE, cbBitsSrc) == 60, - "FIELD_OFFSET(EMRSETDIBITSTODEIVCE, cbBitsSrc) == %ld (expected 60)", - FIELD_OFFSET(EMRSETDIBITSTODEIVCE, cbBitsSrc)); /* DWORD */ - ok(FIELD_OFFSET(EMRSETDIBITSTODEIVCE, iUsageSrc) == 64, - "FIELD_OFFSET(EMRSETDIBITSTODEIVCE, iUsageSrc) == %ld (expected 64)", - FIELD_OFFSET(EMRSETDIBITSTODEIVCE, iUsageSrc)); /* DWORD */ - ok(FIELD_OFFSET(EMRSETDIBITSTODEIVCE, iStartScan) == 68, - "FIELD_OFFSET(EMRSETDIBITSTODEIVCE, iStartScan) == %ld (expected 68)", - FIELD_OFFSET(EMRSETDIBITSTODEIVCE, iStartScan)); /* DWORD */ - ok(FIELD_OFFSET(EMRSETDIBITSTODEIVCE, cScans) == 72, - "FIELD_OFFSET(EMRSETDIBITSTODEIVCE, cScans) == %ld (expected 72)", - FIELD_OFFSET(EMRSETDIBITSTODEIVCE, cScans)); /* DWORD */ - ok(sizeof(EMRSETDIBITSTODEIVCE) == 76, "sizeof(EMRSETDIBITSTODEIVCE) == %d (expected 76)", sizeof(EMRSETDIBITSTODEIVCE)); - - /* EMRSETMAPPERFLAGS */ - ok(FIELD_OFFSET(EMRSETMAPPERFLAGS, emr) == 0, - "FIELD_OFFSET(EMRSETMAPPERFLAGS, emr) == %ld (expected 0)", - FIELD_OFFSET(EMRSETMAPPERFLAGS, emr)); /* EMR */ - ok(FIELD_OFFSET(EMRSETMAPPERFLAGS, dwFlags) == 8, - "FIELD_OFFSET(EMRSETMAPPERFLAGS, dwFlags) == %ld (expected 8)", - FIELD_OFFSET(EMRSETMAPPERFLAGS, dwFlags)); /* DWORD */ - ok(sizeof(EMRSETMAPPERFLAGS) == 12, "sizeof(EMRSETMAPPERFLAGS) == %d (expected 12)", sizeof(EMRSETMAPPERFLAGS)); - - /* EMRSETMITERLIMIT */ - ok(FIELD_OFFSET(EMRSETMITERLIMIT, emr) == 0, - "FIELD_OFFSET(EMRSETMITERLIMIT, emr) == %ld (expected 0)", - FIELD_OFFSET(EMRSETMITERLIMIT, emr)); /* EMR */ - ok(FIELD_OFFSET(EMRSETMITERLIMIT, eMiterLimit) == 8, - "FIELD_OFFSET(EMRSETMITERLIMIT, eMiterLimit) == %ld (expected 8)", - FIELD_OFFSET(EMRSETMITERLIMIT, eMiterLimit)); /* FLOAT */ - ok(sizeof(EMRSETMITERLIMIT) == 12, "sizeof(EMRSETMITERLIMIT) == %d (expected 12)", sizeof(EMRSETMITERLIMIT)); - - /* EMRSETPALETTEENTRIES */ - ok(FIELD_OFFSET(EMRSETPALETTEENTRIES, emr) == 0, - "FIELD_OFFSET(EMRSETPALETTEENTRIES, emr) == %ld (expected 0)", - FIELD_OFFSET(EMRSETPALETTEENTRIES, emr)); /* EMR */ - ok(FIELD_OFFSET(EMRSETPALETTEENTRIES, ihPal) == 8, - "FIELD_OFFSET(EMRSETPALETTEENTRIES, ihPal) == %ld (expected 8)", - FIELD_OFFSET(EMRSETPALETTEENTRIES, ihPal)); /* DWORD */ - ok(FIELD_OFFSET(EMRSETPALETTEENTRIES, iStart) == 12, - "FIELD_OFFSET(EMRSETPALETTEENTRIES, iStart) == %ld (expected 12)", - FIELD_OFFSET(EMRSETPALETTEENTRIES, iStart)); /* DWORD */ - ok(FIELD_OFFSET(EMRSETPALETTEENTRIES, cEntries) == 16, - "FIELD_OFFSET(EMRSETPALETTEENTRIES, cEntries) == %ld (expected 16)", - FIELD_OFFSET(EMRSETPALETTEENTRIES, cEntries)); /* DWORD */ - ok(FIELD_OFFSET(EMRSETPALETTEENTRIES, aPalEntries) == 20, - "FIELD_OFFSET(EMRSETPALETTEENTRIES, aPalEntries) == %ld (expected 20)", - FIELD_OFFSET(EMRSETPALETTEENTRIES, aPalEntries)); /* PALETTEENTRY[1] */ - ok(sizeof(EMRSETPALETTEENTRIES) == 24, "sizeof(EMRSETPALETTEENTRIES) == %d (expected 24)", sizeof(EMRSETPALETTEENTRIES)); - - /* EMRSETPIXELV */ - ok(FIELD_OFFSET(EMRSETPIXELV, emr) == 0, - "FIELD_OFFSET(EMRSETPIXELV, emr) == %ld (expected 0)", - FIELD_OFFSET(EMRSETPIXELV, emr)); /* EMR */ - ok(FIELD_OFFSET(EMRSETPIXELV, ptlPixel) == 8, - "FIELD_OFFSET(EMRSETPIXELV, ptlPixel) == %ld (expected 8)", - FIELD_OFFSET(EMRSETPIXELV, ptlPixel)); /* POINTL */ - ok(FIELD_OFFSET(EMRSETPIXELV, crColor) == 16, - "FIELD_OFFSET(EMRSETPIXELV, crColor) == %ld (expected 16)", - FIELD_OFFSET(EMRSETPIXELV, crColor)); /* COLORREF */ - ok(sizeof(EMRSETPIXELV) == 20, "sizeof(EMRSETPIXELV) == %d (expected 20)", sizeof(EMRSETPIXELV)); - - /* EMRSETTEXTJUSTIFICATION */ - ok(FIELD_OFFSET(EMRSETTEXTJUSTIFICATION, emr) == 0, - "FIELD_OFFSET(EMRSETTEXTJUSTIFICATION, emr) == %ld (expected 0)", - FIELD_OFFSET(EMRSETTEXTJUSTIFICATION, emr)); /* EMR */ - ok(FIELD_OFFSET(EMRSETTEXTJUSTIFICATION, nBreakExtra) == 8, - "FIELD_OFFSET(EMRSETTEXTJUSTIFICATION, nBreakExtra) == %ld (expected 8)", - FIELD_OFFSET(EMRSETTEXTJUSTIFICATION, nBreakExtra)); /* INT */ - ok(FIELD_OFFSET(EMRSETTEXTJUSTIFICATION, nBreakCount) == 12, - "FIELD_OFFSET(EMRSETTEXTJUSTIFICATION, nBreakCount) == %ld (expected 12)", - FIELD_OFFSET(EMRSETTEXTJUSTIFICATION, nBreakCount)); /* INT */ - ok(sizeof(EMRSETTEXTJUSTIFICATION) == 16, "sizeof(EMRSETTEXTJUSTIFICATION) == %d (expected 16)", sizeof(EMRSETTEXTJUSTIFICATION)); - - /* EMRSETVIEWPORTEXTEX */ - ok(FIELD_OFFSET(EMRSETVIEWPORTEXTEX, emr) == 0, - "FIELD_OFFSET(EMRSETVIEWPORTEXTEX, emr) == %ld (expected 0)", - FIELD_OFFSET(EMRSETVIEWPORTEXTEX, emr)); /* EMR */ - ok(FIELD_OFFSET(EMRSETVIEWPORTEXTEX, szlExtent) == 8, - "FIELD_OFFSET(EMRSETVIEWPORTEXTEX, szlExtent) == %ld (expected 8)", - FIELD_OFFSET(EMRSETVIEWPORTEXTEX, szlExtent)); /* SIZEL */ - ok(sizeof(EMRSETVIEWPORTEXTEX) == 16, "sizeof(EMRSETVIEWPORTEXTEX) == %d (expected 16)", sizeof(EMRSETVIEWPORTEXTEX)); - - /* EMRSETWORLDTRANSFORM */ - ok(FIELD_OFFSET(EMRSETWORLDTRANSFORM, emr) == 0, - "FIELD_OFFSET(EMRSETWORLDTRANSFORM, emr) == %ld (expected 0)", - FIELD_OFFSET(EMRSETWORLDTRANSFORM, emr)); /* EMR */ - ok(FIELD_OFFSET(EMRSETWORLDTRANSFORM, xform) == 8, - "FIELD_OFFSET(EMRSETWORLDTRANSFORM, xform) == %ld (expected 8)", - FIELD_OFFSET(EMRSETWORLDTRANSFORM, xform)); /* XFORM */ - ok(sizeof(EMRSETWORLDTRANSFORM) == 32, "sizeof(EMRSETWORLDTRANSFORM) == %d (expected 32)", sizeof(EMRSETWORLDTRANSFORM)); - - /* EMRSTRETCHBLT */ - ok(FIELD_OFFSET(EMRSTRETCHBLT, emr) == 0, - "FIELD_OFFSET(EMRSTRETCHBLT, emr) == %ld (expected 0)", - FIELD_OFFSET(EMRSTRETCHBLT, emr)); /* EMR */ - ok(FIELD_OFFSET(EMRSTRETCHBLT, rclBounds) == 8, - "FIELD_OFFSET(EMRSTRETCHBLT, rclBounds) == %ld (expected 8)", - FIELD_OFFSET(EMRSTRETCHBLT, rclBounds)); /* RECTL */ - ok(FIELD_OFFSET(EMRSTRETCHBLT, xDest) == 24, - "FIELD_OFFSET(EMRSTRETCHBLT, xDest) == %ld (expected 24)", - FIELD_OFFSET(EMRSTRETCHBLT, xDest)); /* LONG */ - ok(FIELD_OFFSET(EMRSTRETCHBLT, yDest) == 28, - "FIELD_OFFSET(EMRSTRETCHBLT, yDest) == %ld (expected 28)", - FIELD_OFFSET(EMRSTRETCHBLT, yDest)); /* LONG */ - ok(FIELD_OFFSET(EMRSTRETCHBLT, cxDest) == 32, - "FIELD_OFFSET(EMRSTRETCHBLT, cxDest) == %ld (expected 32)", - FIELD_OFFSET(EMRSTRETCHBLT, cxDest)); /* LONG */ - ok(FIELD_OFFSET(EMRSTRETCHBLT, cyDest) == 36, - "FIELD_OFFSET(EMRSTRETCHBLT, cyDest) == %ld (expected 36)", - FIELD_OFFSET(EMRSTRETCHBLT, cyDest)); /* LONG */ - ok(FIELD_OFFSET(EMRSTRETCHBLT, dwRop) == 40, - "FIELD_OFFSET(EMRSTRETCHBLT, dwRop) == %ld (expected 40)", - FIELD_OFFSET(EMRSTRETCHBLT, dwRop)); /* DWORD */ - ok(FIELD_OFFSET(EMRSTRETCHBLT, xSrc) == 44, - "FIELD_OFFSET(EMRSTRETCHBLT, xSrc) == %ld (expected 44)", - FIELD_OFFSET(EMRSTRETCHBLT, xSrc)); /* LONG */ - ok(FIELD_OFFSET(EMRSTRETCHBLT, ySrc) == 48, - "FIELD_OFFSET(EMRSTRETCHBLT, ySrc) == %ld (expected 48)", - FIELD_OFFSET(EMRSTRETCHBLT, ySrc)); /* LONG */ - ok(FIELD_OFFSET(EMRSTRETCHBLT, xformSrc) == 52, - "FIELD_OFFSET(EMRSTRETCHBLT, xformSrc) == %ld (expected 52)", - FIELD_OFFSET(EMRSTRETCHBLT, xformSrc)); /* XFORM */ - ok(FIELD_OFFSET(EMRSTRETCHBLT, crBkColorSrc) == 76, - "FIELD_OFFSET(EMRSTRETCHBLT, crBkColorSrc) == %ld (expected 76)", - FIELD_OFFSET(EMRSTRETCHBLT, crBkColorSrc)); /* COLORREF */ - ok(FIELD_OFFSET(EMRSTRETCHBLT, iUsageSrc) == 80, - "FIELD_OFFSET(EMRSTRETCHBLT, iUsageSrc) == %ld (expected 80)", - FIELD_OFFSET(EMRSTRETCHBLT, iUsageSrc)); /* DWORD */ - ok(FIELD_OFFSET(EMRSTRETCHBLT, offBmiSrc) == 84, - "FIELD_OFFSET(EMRSTRETCHBLT, offBmiSrc) == %ld (expected 84)", - FIELD_OFFSET(EMRSTRETCHBLT, offBmiSrc)); /* DWORD */ - ok(FIELD_OFFSET(EMRSTRETCHBLT, cbBmiSrc) == 88, - "FIELD_OFFSET(EMRSTRETCHBLT, cbBmiSrc) == %ld (expected 88)", - FIELD_OFFSET(EMRSTRETCHBLT, cbBmiSrc)); /* DWORD */ - ok(FIELD_OFFSET(EMRSTRETCHBLT, offBitsSrc) == 92, - "FIELD_OFFSET(EMRSTRETCHBLT, offBitsSrc) == %ld (expected 92)", - FIELD_OFFSET(EMRSTRETCHBLT, offBitsSrc)); /* DWORD */ - ok(FIELD_OFFSET(EMRSTRETCHBLT, cbBitsSrc) == 96, - "FIELD_OFFSET(EMRSTRETCHBLT, cbBitsSrc) == %ld (expected 96)", - FIELD_OFFSET(EMRSTRETCHBLT, cbBitsSrc)); /* DWORD */ - ok(FIELD_OFFSET(EMRSTRETCHBLT, cxSrc) == 100, - "FIELD_OFFSET(EMRSTRETCHBLT, cxSrc) == %ld (expected 100)", - FIELD_OFFSET(EMRSTRETCHBLT, cxSrc)); /* LONG */ - ok(FIELD_OFFSET(EMRSTRETCHBLT, cySrc) == 104, - "FIELD_OFFSET(EMRSTRETCHBLT, cySrc) == %ld (expected 104)", - FIELD_OFFSET(EMRSTRETCHBLT, cySrc)); /* LONG */ - ok(sizeof(EMRSTRETCHBLT) == 108, "sizeof(EMRSTRETCHBLT) == %d (expected 108)", sizeof(EMRSTRETCHBLT)); - - /* EMRSTRETCHDIBITS */ - ok(FIELD_OFFSET(EMRSTRETCHDIBITS, emr) == 0, - "FIELD_OFFSET(EMRSTRETCHDIBITS, emr) == %ld (expected 0)", - FIELD_OFFSET(EMRSTRETCHDIBITS, emr)); /* EMR */ - ok(FIELD_OFFSET(EMRSTRETCHDIBITS, rclBounds) == 8, - "FIELD_OFFSET(EMRSTRETCHDIBITS, rclBounds) == %ld (expected 8)", - FIELD_OFFSET(EMRSTRETCHDIBITS, rclBounds)); /* RECTL */ - ok(FIELD_OFFSET(EMRSTRETCHDIBITS, xDest) == 24, - "FIELD_OFFSET(EMRSTRETCHDIBITS, xDest) == %ld (expected 24)", - FIELD_OFFSET(EMRSTRETCHDIBITS, xDest)); /* LONG */ - ok(FIELD_OFFSET(EMRSTRETCHDIBITS, yDest) == 28, - "FIELD_OFFSET(EMRSTRETCHDIBITS, yDest) == %ld (expected 28)", - FIELD_OFFSET(EMRSTRETCHDIBITS, yDest)); /* LONG */ - ok(FIELD_OFFSET(EMRSTRETCHDIBITS, xSrc) == 32, - "FIELD_OFFSET(EMRSTRETCHDIBITS, xSrc) == %ld (expected 32)", - FIELD_OFFSET(EMRSTRETCHDIBITS, xSrc)); /* LONG */ - ok(FIELD_OFFSET(EMRSTRETCHDIBITS, ySrc) == 36, - "FIELD_OFFSET(EMRSTRETCHDIBITS, ySrc) == %ld (expected 36)", - FIELD_OFFSET(EMRSTRETCHDIBITS, ySrc)); /* LONG */ - ok(FIELD_OFFSET(EMRSTRETCHDIBITS, cxSrc) == 40, - "FIELD_OFFSET(EMRSTRETCHDIBITS, cxSrc) == %ld (expected 40)", - FIELD_OFFSET(EMRSTRETCHDIBITS, cxSrc)); /* LONG */ - ok(FIELD_OFFSET(EMRSTRETCHDIBITS, cySrc) == 44, - "FIELD_OFFSET(EMRSTRETCHDIBITS, cySrc) == %ld (expected 44)", - FIELD_OFFSET(EMRSTRETCHDIBITS, cySrc)); /* LONG */ - ok(FIELD_OFFSET(EMRSTRETCHDIBITS, offBmiSrc) == 48, - "FIELD_OFFSET(EMRSTRETCHDIBITS, offBmiSrc) == %ld (expected 48)", - FIELD_OFFSET(EMRSTRETCHDIBITS, offBmiSrc)); /* DWORD */ - ok(FIELD_OFFSET(EMRSTRETCHDIBITS, cbBmiSrc) == 52, - "FIELD_OFFSET(EMRSTRETCHDIBITS, cbBmiSrc) == %ld (expected 52)", - FIELD_OFFSET(EMRSTRETCHDIBITS, cbBmiSrc)); /* DWORD */ - ok(FIELD_OFFSET(EMRSTRETCHDIBITS, offBitsSrc) == 56, - "FIELD_OFFSET(EMRSTRETCHDIBITS, offBitsSrc) == %ld (expected 56)", - FIELD_OFFSET(EMRSTRETCHDIBITS, offBitsSrc)); /* DWORD */ - ok(FIELD_OFFSET(EMRSTRETCHDIBITS, cbBitsSrc) == 60, - "FIELD_OFFSET(EMRSTRETCHDIBITS, cbBitsSrc) == %ld (expected 60)", - FIELD_OFFSET(EMRSTRETCHDIBITS, cbBitsSrc)); /* DWORD */ - ok(FIELD_OFFSET(EMRSTRETCHDIBITS, iUsageSrc) == 64, - "FIELD_OFFSET(EMRSTRETCHDIBITS, iUsageSrc) == %ld (expected 64)", - FIELD_OFFSET(EMRSTRETCHDIBITS, iUsageSrc)); /* DWORD */ - ok(FIELD_OFFSET(EMRSTRETCHDIBITS, dwRop) == 68, - "FIELD_OFFSET(EMRSTRETCHDIBITS, dwRop) == %ld (expected 68)", - FIELD_OFFSET(EMRSTRETCHDIBITS, dwRop)); /* DWORD */ - ok(FIELD_OFFSET(EMRSTRETCHDIBITS, cxDest) == 72, - "FIELD_OFFSET(EMRSTRETCHDIBITS, cxDest) == %ld (expected 72)", - FIELD_OFFSET(EMRSTRETCHDIBITS, cxDest)); /* LONG */ - ok(FIELD_OFFSET(EMRSTRETCHDIBITS, cyDest) == 76, - "FIELD_OFFSET(EMRSTRETCHDIBITS, cyDest) == %ld (expected 76)", - FIELD_OFFSET(EMRSTRETCHDIBITS, cyDest)); /* LONG */ - ok(sizeof(EMRSTRETCHDIBITS) == 80, "sizeof(EMRSTRETCHDIBITS) == %d (expected 80)", sizeof(EMRSTRETCHDIBITS)); - - /* EMRTEXT */ - ok(FIELD_OFFSET(EMRTEXT, ptlReference) == 0, - "FIELD_OFFSET(EMRTEXT, ptlReference) == %ld (expected 0)", - FIELD_OFFSET(EMRTEXT, ptlReference)); /* POINTL */ - ok(FIELD_OFFSET(EMRTEXT, nChars) == 8, - "FIELD_OFFSET(EMRTEXT, nChars) == %ld (expected 8)", - FIELD_OFFSET(EMRTEXT, nChars)); /* DWORD */ - ok(FIELD_OFFSET(EMRTEXT, offString) == 12, - "FIELD_OFFSET(EMRTEXT, offString) == %ld (expected 12)", - FIELD_OFFSET(EMRTEXT, offString)); /* DWORD */ - ok(FIELD_OFFSET(EMRTEXT, fOptions) == 16, - "FIELD_OFFSET(EMRTEXT, fOptions) == %ld (expected 16)", - FIELD_OFFSET(EMRTEXT, fOptions)); /* DWORD */ - ok(FIELD_OFFSET(EMRTEXT, rcl) == 20, - "FIELD_OFFSET(EMRTEXT, rcl) == %ld (expected 20)", - FIELD_OFFSET(EMRTEXT, rcl)); /* RECTL */ - ok(FIELD_OFFSET(EMRTEXT, offDx) == 36, - "FIELD_OFFSET(EMRTEXT, offDx) == %ld (expected 36)", - FIELD_OFFSET(EMRTEXT, offDx)); /* DWORD */ - ok(sizeof(EMRTEXT) == 40, "sizeof(EMRTEXT) == %d (expected 40)", sizeof(EMRTEXT)); - - /* ENHMETARECORD */ - ok(FIELD_OFFSET(ENHMETARECORD, iType) == 0, - "FIELD_OFFSET(ENHMETARECORD, iType) == %ld (expected 0)", - FIELD_OFFSET(ENHMETARECORD, iType)); /* DWORD */ - ok(FIELD_OFFSET(ENHMETARECORD, nSize) == 4, - "FIELD_OFFSET(ENHMETARECORD, nSize) == %ld (expected 4)", - FIELD_OFFSET(ENHMETARECORD, nSize)); /* DWORD */ - ok(FIELD_OFFSET(ENHMETARECORD, dParm) == 8, - "FIELD_OFFSET(ENHMETARECORD, dParm) == %ld (expected 8)", - FIELD_OFFSET(ENHMETARECORD, dParm)); /* DWORD[1] */ - ok(sizeof(ENHMETARECORD) == 12, "sizeof(ENHMETARECORD) == %d (expected 12)", sizeof(ENHMETARECORD)); - - /* EXTLOGPEN */ - ok(FIELD_OFFSET(EXTLOGPEN, elpPenStyle) == 0, - "FIELD_OFFSET(EXTLOGPEN, elpPenStyle) == %ld (expected 0)", - FIELD_OFFSET(EXTLOGPEN, elpPenStyle)); /* DWORD */ - ok(FIELD_OFFSET(EXTLOGPEN, elpWidth) == 4, - "FIELD_OFFSET(EXTLOGPEN, elpWidth) == %ld (expected 4)", - FIELD_OFFSET(EXTLOGPEN, elpWidth)); /* DWORD */ - ok(FIELD_OFFSET(EXTLOGPEN, elpBrushStyle) == 8, - "FIELD_OFFSET(EXTLOGPEN, elpBrushStyle) == %ld (expected 8)", - FIELD_OFFSET(EXTLOGPEN, elpBrushStyle)); /* UINT */ - ok(FIELD_OFFSET(EXTLOGPEN, elpColor) == 12, - "FIELD_OFFSET(EXTLOGPEN, elpColor) == %ld (expected 12)", - FIELD_OFFSET(EXTLOGPEN, elpColor)); /* COLORREF */ - ok(FIELD_OFFSET(EXTLOGPEN, elpHatch) == 16, - "FIELD_OFFSET(EXTLOGPEN, elpHatch) == %ld (expected 16)", - FIELD_OFFSET(EXTLOGPEN, elpHatch)); /* LONG */ - ok(FIELD_OFFSET(EXTLOGPEN, elpNumEntries) == 20, - "FIELD_OFFSET(EXTLOGPEN, elpNumEntries) == %ld (expected 20)", - FIELD_OFFSET(EXTLOGPEN, elpNumEntries)); /* DWORD */ - ok(FIELD_OFFSET(EXTLOGPEN, elpStyleEntry) == 24, - "FIELD_OFFSET(EXTLOGPEN, elpStyleEntry) == %ld (expected 24)", - FIELD_OFFSET(EXTLOGPEN, elpStyleEntry)); /* DWORD[1] */ - ok(sizeof(EXTLOGPEN) == 28, "sizeof(EXTLOGPEN) == %d (expected 28)", sizeof(EXTLOGPEN)); - - /* FONTSIGNATURE */ - ok(FIELD_OFFSET(FONTSIGNATURE, fsUsb) == 0, - "FIELD_OFFSET(FONTSIGNATURE, fsUsb) == %ld (expected 0)", - FIELD_OFFSET(FONTSIGNATURE, fsUsb)); /* DWORD[4] */ - ok(FIELD_OFFSET(FONTSIGNATURE, fsCsb) == 16, - "FIELD_OFFSET(FONTSIGNATURE, fsCsb) == %ld (expected 16)", - FIELD_OFFSET(FONTSIGNATURE, fsCsb)); /* DWORD[2] */ - ok(sizeof(FONTSIGNATURE) == 24, "sizeof(FONTSIGNATURE) == %d (expected 24)", sizeof(FONTSIGNATURE)); - - /* GCP_RESULTSA */ - ok(FIELD_OFFSET(GCP_RESULTSA, lStructSize) == 0, - "FIELD_OFFSET(GCP_RESULTSA, lStructSize) == %ld (expected 0)", - FIELD_OFFSET(GCP_RESULTSA, lStructSize)); /* DWORD */ - ok(FIELD_OFFSET(GCP_RESULTSA, lpOutString) == 4, - "FIELD_OFFSET(GCP_RESULTSA, lpOutString) == %ld (expected 4)", - FIELD_OFFSET(GCP_RESULTSA, lpOutString)); /* LPSTR */ - ok(FIELD_OFFSET(GCP_RESULTSA, lpOrder) == 8, - "FIELD_OFFSET(GCP_RESULTSA, lpOrder) == %ld (expected 8)", - FIELD_OFFSET(GCP_RESULTSA, lpOrder)); /* UINT * */ - ok(FIELD_OFFSET(GCP_RESULTSA, lpDx) == 12, - "FIELD_OFFSET(GCP_RESULTSA, lpDx) == %ld (expected 12)", - FIELD_OFFSET(GCP_RESULTSA, lpDx)); /* INT * */ - ok(FIELD_OFFSET(GCP_RESULTSA, lpCaretPos) == 16, - "FIELD_OFFSET(GCP_RESULTSA, lpCaretPos) == %ld (expected 16)", - FIELD_OFFSET(GCP_RESULTSA, lpCaretPos)); /* INT * */ - ok(FIELD_OFFSET(GCP_RESULTSA, lpClass) == 20, - "FIELD_OFFSET(GCP_RESULTSA, lpClass) == %ld (expected 20)", - FIELD_OFFSET(GCP_RESULTSA, lpClass)); /* LPSTR */ - ok(FIELD_OFFSET(GCP_RESULTSA, lpGlyphs) == 24, - "FIELD_OFFSET(GCP_RESULTSA, lpGlyphs) == %ld (expected 24)", - FIELD_OFFSET(GCP_RESULTSA, lpGlyphs)); /* LPWSTR */ - ok(FIELD_OFFSET(GCP_RESULTSA, nGlyphs) == 28, - "FIELD_OFFSET(GCP_RESULTSA, nGlyphs) == %ld (expected 28)", - FIELD_OFFSET(GCP_RESULTSA, nGlyphs)); /* UINT */ - ok(FIELD_OFFSET(GCP_RESULTSA, nMaxFit) == 32, - "FIELD_OFFSET(GCP_RESULTSA, nMaxFit) == %ld (expected 32)", - FIELD_OFFSET(GCP_RESULTSA, nMaxFit)); /* UINT */ - ok(sizeof(GCP_RESULTSA) == 36, "sizeof(GCP_RESULTSA) == %d (expected 36)", sizeof(GCP_RESULTSA)); - - /* GCP_RESULTSW */ - ok(FIELD_OFFSET(GCP_RESULTSW, lStructSize) == 0, - "FIELD_OFFSET(GCP_RESULTSW, lStructSize) == %ld (expected 0)", - FIELD_OFFSET(GCP_RESULTSW, lStructSize)); /* DWORD */ - ok(FIELD_OFFSET(GCP_RESULTSW, lpOutString) == 4, - "FIELD_OFFSET(GCP_RESULTSW, lpOutString) == %ld (expected 4)", - FIELD_OFFSET(GCP_RESULTSW, lpOutString)); /* LPWSTR */ - ok(FIELD_OFFSET(GCP_RESULTSW, lpOrder) == 8, - "FIELD_OFFSET(GCP_RESULTSW, lpOrder) == %ld (expected 8)", - FIELD_OFFSET(GCP_RESULTSW, lpOrder)); /* UINT * */ - ok(FIELD_OFFSET(GCP_RESULTSW, lpDx) == 12, - "FIELD_OFFSET(GCP_RESULTSW, lpDx) == %ld (expected 12)", - FIELD_OFFSET(GCP_RESULTSW, lpDx)); /* INT * */ - ok(FIELD_OFFSET(GCP_RESULTSW, lpCaretPos) == 16, - "FIELD_OFFSET(GCP_RESULTSW, lpCaretPos) == %ld (expected 16)", - FIELD_OFFSET(GCP_RESULTSW, lpCaretPos)); /* INT * */ - ok(FIELD_OFFSET(GCP_RESULTSW, lpClass) == 20, - "FIELD_OFFSET(GCP_RESULTSW, lpClass) == %ld (expected 20)", - FIELD_OFFSET(GCP_RESULTSW, lpClass)); /* LPSTR */ - ok(FIELD_OFFSET(GCP_RESULTSW, lpGlyphs) == 24, - "FIELD_OFFSET(GCP_RESULTSW, lpGlyphs) == %ld (expected 24)", - FIELD_OFFSET(GCP_RESULTSW, lpGlyphs)); /* LPWSTR */ - ok(FIELD_OFFSET(GCP_RESULTSW, nGlyphs) == 28, - "FIELD_OFFSET(GCP_RESULTSW, nGlyphs) == %ld (expected 28)", - FIELD_OFFSET(GCP_RESULTSW, nGlyphs)); /* UINT */ - ok(FIELD_OFFSET(GCP_RESULTSW, nMaxFit) == 32, - "FIELD_OFFSET(GCP_RESULTSW, nMaxFit) == %ld (expected 32)", - FIELD_OFFSET(GCP_RESULTSW, nMaxFit)); /* UINT */ - ok(sizeof(GCP_RESULTSW) == 36, "sizeof(GCP_RESULTSW) == %d (expected 36)", sizeof(GCP_RESULTSW)); - - /* GRADIENT_RECT */ - ok(FIELD_OFFSET(GRADIENT_RECT, UpperLeft) == 0, - "FIELD_OFFSET(GRADIENT_RECT, UpperLeft) == %ld (expected 0)", - FIELD_OFFSET(GRADIENT_RECT, UpperLeft)); /* ULONG */ - ok(FIELD_OFFSET(GRADIENT_RECT, LowerRight) == 4, - "FIELD_OFFSET(GRADIENT_RECT, LowerRight) == %ld (expected 4)", - FIELD_OFFSET(GRADIENT_RECT, LowerRight)); /* ULONG */ - ok(sizeof(GRADIENT_RECT) == 8, "sizeof(GRADIENT_RECT) == %d (expected 8)", sizeof(GRADIENT_RECT)); - - /* GRADIENT_TRIANGLE */ - ok(FIELD_OFFSET(GRADIENT_TRIANGLE, Vertex1) == 0, - "FIELD_OFFSET(GRADIENT_TRIANGLE, Vertex1) == %ld (expected 0)", - FIELD_OFFSET(GRADIENT_TRIANGLE, Vertex1)); /* ULONG */ - ok(FIELD_OFFSET(GRADIENT_TRIANGLE, Vertex2) == 4, - "FIELD_OFFSET(GRADIENT_TRIANGLE, Vertex2) == %ld (expected 4)", - FIELD_OFFSET(GRADIENT_TRIANGLE, Vertex2)); /* ULONG */ - ok(FIELD_OFFSET(GRADIENT_TRIANGLE, Vertex3) == 8, - "FIELD_OFFSET(GRADIENT_TRIANGLE, Vertex3) == %ld (expected 8)", - FIELD_OFFSET(GRADIENT_TRIANGLE, Vertex3)); /* ULONG */ - ok(sizeof(GRADIENT_TRIANGLE) == 12, "sizeof(GRADIENT_TRIANGLE) == %d (expected 12)", sizeof(GRADIENT_TRIANGLE)); - - /* HANDLETABLE */ - ok(FIELD_OFFSET(HANDLETABLE, objectHandle) == 0, - "FIELD_OFFSET(HANDLETABLE, objectHandle) == %ld (expected 0)", - FIELD_OFFSET(HANDLETABLE, objectHandle)); /* HGDIOBJ[1] */ - ok(sizeof(HANDLETABLE) == 4, "sizeof(HANDLETABLE) == %d (expected 4)", sizeof(HANDLETABLE)); - - /* KERNINGPAIR */ - ok(FIELD_OFFSET(KERNINGPAIR, wFirst) == 0, - "FIELD_OFFSET(KERNINGPAIR, wFirst) == %ld (expected 0)", - FIELD_OFFSET(KERNINGPAIR, wFirst)); /* WORD */ - ok(FIELD_OFFSET(KERNINGPAIR, wSecond) == 2, - "FIELD_OFFSET(KERNINGPAIR, wSecond) == %ld (expected 2)", - FIELD_OFFSET(KERNINGPAIR, wSecond)); /* WORD */ - ok(FIELD_OFFSET(KERNINGPAIR, iKernAmount) == 4, - "FIELD_OFFSET(KERNINGPAIR, iKernAmount) == %ld (expected 4)", - FIELD_OFFSET(KERNINGPAIR, iKernAmount)); /* INT */ - ok(sizeof(KERNINGPAIR) == 8, "sizeof(KERNINGPAIR) == %d (expected 8)", sizeof(KERNINGPAIR)); - - /* LOCALESIGNATURE */ - ok(FIELD_OFFSET(LOCALESIGNATURE, lsUsb) == 0, - "FIELD_OFFSET(LOCALESIGNATURE, lsUsb) == %ld (expected 0)", - FIELD_OFFSET(LOCALESIGNATURE, lsUsb)); /* DWORD[4] */ - ok(FIELD_OFFSET(LOCALESIGNATURE, lsCsbDefault) == 16, - "FIELD_OFFSET(LOCALESIGNATURE, lsCsbDefault) == %ld (expected 16)", - FIELD_OFFSET(LOCALESIGNATURE, lsCsbDefault)); /* DWORD[2] */ - ok(FIELD_OFFSET(LOCALESIGNATURE, lsCsbSupported) == 24, - "FIELD_OFFSET(LOCALESIGNATURE, lsCsbSupported) == %ld (expected 24)", - FIELD_OFFSET(LOCALESIGNATURE, lsCsbSupported)); /* DWORD[2] */ - ok(sizeof(LOCALESIGNATURE) == 32, "sizeof(LOCALESIGNATURE) == %d (expected 32)", sizeof(LOCALESIGNATURE)); - - /* LOGBRUSH */ - ok(FIELD_OFFSET(LOGBRUSH, lbStyle) == 0, - "FIELD_OFFSET(LOGBRUSH, lbStyle) == %ld (expected 0)", - FIELD_OFFSET(LOGBRUSH, lbStyle)); /* UINT */ - ok(FIELD_OFFSET(LOGBRUSH, lbColor) == 4, - "FIELD_OFFSET(LOGBRUSH, lbColor) == %ld (expected 4)", - FIELD_OFFSET(LOGBRUSH, lbColor)); /* COLORREF */ - ok(FIELD_OFFSET(LOGBRUSH, lbHatch) == 8, - "FIELD_OFFSET(LOGBRUSH, lbHatch) == %ld (expected 8)", - FIELD_OFFSET(LOGBRUSH, lbHatch)); /* INT */ - ok(sizeof(LOGBRUSH) == 12, "sizeof(LOGBRUSH) == %d (expected 12)", sizeof(LOGBRUSH)); - - /* LOGPALETTE */ - ok(FIELD_OFFSET(LOGPALETTE, palVersion) == 0, - "FIELD_OFFSET(LOGPALETTE, palVersion) == %ld (expected 0)", - FIELD_OFFSET(LOGPALETTE, palVersion)); /* WORD */ - ok(FIELD_OFFSET(LOGPALETTE, palNumEntries) == 2, - "FIELD_OFFSET(LOGPALETTE, palNumEntries) == %ld (expected 2)", - FIELD_OFFSET(LOGPALETTE, palNumEntries)); /* WORD */ - ok(FIELD_OFFSET(LOGPALETTE, palPalEntry) == 4, - "FIELD_OFFSET(LOGPALETTE, palPalEntry) == %ld (expected 4)", - FIELD_OFFSET(LOGPALETTE, palPalEntry)); /* PALETTEENTRY[1] */ - ok(sizeof(LOGPALETTE) == 8, "sizeof(LOGPALETTE) == %d (expected 8)", sizeof(LOGPALETTE)); - - /* LOGPEN */ - ok(FIELD_OFFSET(LOGPEN, lopnStyle) == 0, - "FIELD_OFFSET(LOGPEN, lopnStyle) == %ld (expected 0)", - FIELD_OFFSET(LOGPEN, lopnStyle)); /* UINT */ - ok(FIELD_OFFSET(LOGPEN, lopnWidth) == 4, - "FIELD_OFFSET(LOGPEN, lopnWidth) == %ld (expected 4)", - FIELD_OFFSET(LOGPEN, lopnWidth)); /* POINT */ - ok(FIELD_OFFSET(LOGPEN, lopnColor) == 12, - "FIELD_OFFSET(LOGPEN, lopnColor) == %ld (expected 12)", - FIELD_OFFSET(LOGPEN, lopnColor)); /* COLORREF */ - ok(sizeof(LOGPEN) == 16, "sizeof(LOGPEN) == %d (expected 16)", sizeof(LOGPEN)); - - /* MAT2 */ - ok(FIELD_OFFSET(MAT2, eM11) == 0, - "FIELD_OFFSET(MAT2, eM11) == %ld (expected 0)", - FIELD_OFFSET(MAT2, eM11)); /* FIXED */ - ok(FIELD_OFFSET(MAT2, eM12) == 4, - "FIELD_OFFSET(MAT2, eM12) == %ld (expected 4)", - FIELD_OFFSET(MAT2, eM12)); /* FIXED */ - ok(FIELD_OFFSET(MAT2, eM21) == 8, - "FIELD_OFFSET(MAT2, eM21) == %ld (expected 8)", - FIELD_OFFSET(MAT2, eM21)); /* FIXED */ - ok(FIELD_OFFSET(MAT2, eM22) == 12, - "FIELD_OFFSET(MAT2, eM22) == %ld (expected 12)", - FIELD_OFFSET(MAT2, eM22)); /* FIXED */ - ok(sizeof(MAT2) == 16, "sizeof(MAT2) == %d (expected 16)", sizeof(MAT2)); - - /* METAFILEPICT */ - ok(FIELD_OFFSET(METAFILEPICT, mm) == 0, - "FIELD_OFFSET(METAFILEPICT, mm) == %ld (expected 0)", - FIELD_OFFSET(METAFILEPICT, mm)); /* LONG */ - ok(FIELD_OFFSET(METAFILEPICT, xExt) == 4, - "FIELD_OFFSET(METAFILEPICT, xExt) == %ld (expected 4)", - FIELD_OFFSET(METAFILEPICT, xExt)); /* LONG */ - ok(FIELD_OFFSET(METAFILEPICT, yExt) == 8, - "FIELD_OFFSET(METAFILEPICT, yExt) == %ld (expected 8)", - FIELD_OFFSET(METAFILEPICT, yExt)); /* LONG */ - ok(FIELD_OFFSET(METAFILEPICT, hMF) == 12, - "FIELD_OFFSET(METAFILEPICT, hMF) == %ld (expected 12)", - FIELD_OFFSET(METAFILEPICT, hMF)); /* HMETAFILE */ - ok(sizeof(METAFILEPICT) == 16, "sizeof(METAFILEPICT) == %d (expected 16)", sizeof(METAFILEPICT)); - - /* METAHEADER */ - ok(FIELD_OFFSET(METAHEADER, mtType) == 0, - "FIELD_OFFSET(METAHEADER, mtType) == %ld (expected 0)", - FIELD_OFFSET(METAHEADER, mtType)); /* WORD */ - ok(FIELD_OFFSET(METAHEADER, mtHeaderSize) == 2, - "FIELD_OFFSET(METAHEADER, mtHeaderSize) == %ld (expected 2)", - FIELD_OFFSET(METAHEADER, mtHeaderSize)); /* WORD */ - ok(FIELD_OFFSET(METAHEADER, mtVersion) == 4, - "FIELD_OFFSET(METAHEADER, mtVersion) == %ld (expected 4)", - FIELD_OFFSET(METAHEADER, mtVersion)); /* WORD */ - ok(FIELD_OFFSET(METAHEADER, mtSize) == 6, - "FIELD_OFFSET(METAHEADER, mtSize) == %ld (expected 6)", - FIELD_OFFSET(METAHEADER, mtSize)); /* DWORD */ - ok(FIELD_OFFSET(METAHEADER, mtNoObjects) == 10, - "FIELD_OFFSET(METAHEADER, mtNoObjects) == %ld (expected 10)", - FIELD_OFFSET(METAHEADER, mtNoObjects)); /* WORD */ - ok(FIELD_OFFSET(METAHEADER, mtMaxRecord) == 12, - "FIELD_OFFSET(METAHEADER, mtMaxRecord) == %ld (expected 12)", - FIELD_OFFSET(METAHEADER, mtMaxRecord)); /* DWORD */ - ok(FIELD_OFFSET(METAHEADER, mtNoParameters) == 16, - "FIELD_OFFSET(METAHEADER, mtNoParameters) == %ld (expected 16)", - FIELD_OFFSET(METAHEADER, mtNoParameters)); /* WORD */ - ok(sizeof(METAHEADER) == 18, "sizeof(METAHEADER) == %d (expected 18)", sizeof(METAHEADER)); - - /* METARECORD */ - ok(FIELD_OFFSET(METARECORD, rdSize) == 0, - "FIELD_OFFSET(METARECORD, rdSize) == %ld (expected 0)", - FIELD_OFFSET(METARECORD, rdSize)); /* DWORD */ - ok(FIELD_OFFSET(METARECORD, rdFunction) == 4, - "FIELD_OFFSET(METARECORD, rdFunction) == %ld (expected 4)", - FIELD_OFFSET(METARECORD, rdFunction)); /* WORD */ - ok(FIELD_OFFSET(METARECORD, rdParm) == 6, - "FIELD_OFFSET(METARECORD, rdParm) == %ld (expected 6)", - FIELD_OFFSET(METARECORD, rdParm)); /* WORD[1] */ - ok(sizeof(METARECORD) == 8, "sizeof(METARECORD) == %d (expected 8)", sizeof(METARECORD)); - - /* PALETTEENTRY */ - ok(FIELD_OFFSET(PALETTEENTRY, peRed) == 0, - "FIELD_OFFSET(PALETTEENTRY, peRed) == %ld (expected 0)", - FIELD_OFFSET(PALETTEENTRY, peRed)); /* BYTE */ - ok(sizeof(PALETTEENTRY) == 4, "sizeof(PALETTEENTRY) == %d (expected 4)", sizeof(PALETTEENTRY)); - - /* PELARRAY */ - ok(FIELD_OFFSET(PELARRAY, paXCount) == 0, - "FIELD_OFFSET(PELARRAY, paXCount) == %ld (expected 0)", - FIELD_OFFSET(PELARRAY, paXCount)); /* LONG */ - ok(FIELD_OFFSET(PELARRAY, paYCount) == 4, - "FIELD_OFFSET(PELARRAY, paYCount) == %ld (expected 4)", - FIELD_OFFSET(PELARRAY, paYCount)); /* LONG */ - ok(FIELD_OFFSET(PELARRAY, paXExt) == 8, - "FIELD_OFFSET(PELARRAY, paXExt) == %ld (expected 8)", - FIELD_OFFSET(PELARRAY, paXExt)); /* LONG */ - ok(FIELD_OFFSET(PELARRAY, paYExt) == 12, - "FIELD_OFFSET(PELARRAY, paYExt) == %ld (expected 12)", - FIELD_OFFSET(PELARRAY, paYExt)); /* LONG */ - ok(FIELD_OFFSET(PELARRAY, paRGBs) == 16, - "FIELD_OFFSET(PELARRAY, paRGBs) == %ld (expected 16)", - FIELD_OFFSET(PELARRAY, paRGBs)); /* BYTE */ - ok(sizeof(PELARRAY) == 20, "sizeof(PELARRAY) == %d (expected 20)", sizeof(PELARRAY)); - - /* PIXELFORMATDESCRIPTOR */ - ok(FIELD_OFFSET(PIXELFORMATDESCRIPTOR, nSize) == 0, - "FIELD_OFFSET(PIXELFORMATDESCRIPTOR, nSize) == %ld (expected 0)", - FIELD_OFFSET(PIXELFORMATDESCRIPTOR, nSize)); /* WORD */ - ok(FIELD_OFFSET(PIXELFORMATDESCRIPTOR, nVersion) == 2, - "FIELD_OFFSET(PIXELFORMATDESCRIPTOR, nVersion) == %ld (expected 2)", - FIELD_OFFSET(PIXELFORMATDESCRIPTOR, nVersion)); /* WORD */ - ok(FIELD_OFFSET(PIXELFORMATDESCRIPTOR, dwFlags) == 4, - "FIELD_OFFSET(PIXELFORMATDESCRIPTOR, dwFlags) == %ld (expected 4)", - FIELD_OFFSET(PIXELFORMATDESCRIPTOR, dwFlags)); /* DWORD */ - ok(FIELD_OFFSET(PIXELFORMATDESCRIPTOR, iPixelType) == 8, - "FIELD_OFFSET(PIXELFORMATDESCRIPTOR, iPixelType) == %ld (expected 8)", - FIELD_OFFSET(PIXELFORMATDESCRIPTOR, iPixelType)); /* BYTE */ - ok(FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cColorBits) == 9, - "FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cColorBits) == %ld (expected 9)", - FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cColorBits)); /* BYTE */ - ok(FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cRedBits) == 10, - "FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cRedBits) == %ld (expected 10)", - FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cRedBits)); /* BYTE */ - ok(FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cRedShift) == 11, - "FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cRedShift) == %ld (expected 11)", - FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cRedShift)); /* BYTE */ - ok(FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cGreenBits) == 12, - "FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cGreenBits) == %ld (expected 12)", - FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cGreenBits)); /* BYTE */ - ok(FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cGreenShift) == 13, - "FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cGreenShift) == %ld (expected 13)", - FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cGreenShift)); /* BYTE */ - ok(FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cBlueBits) == 14, - "FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cBlueBits) == %ld (expected 14)", - FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cBlueBits)); /* BYTE */ - ok(FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cBlueShift) == 15, - "FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cBlueShift) == %ld (expected 15)", - FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cBlueShift)); /* BYTE */ - ok(FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cAlphaBits) == 16, - "FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cAlphaBits) == %ld (expected 16)", - FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cAlphaBits)); /* BYTE */ - ok(FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cAlphaShift) == 17, - "FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cAlphaShift) == %ld (expected 17)", - FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cAlphaShift)); /* BYTE */ - ok(FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cAccumBits) == 18, - "FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cAccumBits) == %ld (expected 18)", - FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cAccumBits)); /* BYTE */ - ok(FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cAccumRedBits) == 19, - "FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cAccumRedBits) == %ld (expected 19)", - FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cAccumRedBits)); /* BYTE */ - ok(FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cAccumGreenBits) == 20, - "FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cAccumGreenBits) == %ld (expected 20)", - FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cAccumGreenBits)); /* BYTE */ - ok(FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cAccumBlueBits) == 21, - "FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cAccumBlueBits) == %ld (expected 21)", - FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cAccumBlueBits)); /* BYTE */ - ok(FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cAccumAlphaBits) == 22, - "FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cAccumAlphaBits) == %ld (expected 22)", - FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cAccumAlphaBits)); /* BYTE */ - ok(FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cDepthBits) == 23, - "FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cDepthBits) == %ld (expected 23)", - FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cDepthBits)); /* BYTE */ - ok(FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cStencilBits) == 24, - "FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cStencilBits) == %ld (expected 24)", - FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cStencilBits)); /* BYTE */ - ok(FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cAuxBuffers) == 25, - "FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cAuxBuffers) == %ld (expected 25)", - FIELD_OFFSET(PIXELFORMATDESCRIPTOR, cAuxBuffers)); /* BYTE */ - ok(FIELD_OFFSET(PIXELFORMATDESCRIPTOR, iLayerType) == 26, - "FIELD_OFFSET(PIXELFORMATDESCRIPTOR, iLayerType) == %ld (expected 26)", - FIELD_OFFSET(PIXELFORMATDESCRIPTOR, iLayerType)); /* BYTE */ - ok(FIELD_OFFSET(PIXELFORMATDESCRIPTOR, bReserved) == 27, - "FIELD_OFFSET(PIXELFORMATDESCRIPTOR, bReserved) == %ld (expected 27)", - FIELD_OFFSET(PIXELFORMATDESCRIPTOR, bReserved)); /* BYTE */ - ok(FIELD_OFFSET(PIXELFORMATDESCRIPTOR, dwLayerMask) == 28, - "FIELD_OFFSET(PIXELFORMATDESCRIPTOR, dwLayerMask) == %ld (expected 28)", - FIELD_OFFSET(PIXELFORMATDESCRIPTOR, dwLayerMask)); /* DWORD */ - ok(FIELD_OFFSET(PIXELFORMATDESCRIPTOR, dwVisibleMask) == 32, - "FIELD_OFFSET(PIXELFORMATDESCRIPTOR, dwVisibleMask) == %ld (expected 32)", - FIELD_OFFSET(PIXELFORMATDESCRIPTOR, dwVisibleMask)); /* DWORD */ - ok(FIELD_OFFSET(PIXELFORMATDESCRIPTOR, dwDamageMask) == 36, - "FIELD_OFFSET(PIXELFORMATDESCRIPTOR, dwDamageMask) == %ld (expected 36)", - FIELD_OFFSET(PIXELFORMATDESCRIPTOR, dwDamageMask)); /* DWORD */ - ok(sizeof(PIXELFORMATDESCRIPTOR) == 40, "sizeof(PIXELFORMATDESCRIPTOR) == %d (expected 40)", sizeof(PIXELFORMATDESCRIPTOR)); - - /* POINTFX */ - ok(FIELD_OFFSET(POINTFX, x) == 0, - "FIELD_OFFSET(POINTFX, x) == %ld (expected 0)", - FIELD_OFFSET(POINTFX, x)); /* FIXED */ - ok(FIELD_OFFSET(POINTFX, y) == 4, - "FIELD_OFFSET(POINTFX, y) == %ld (expected 4)", - FIELD_OFFSET(POINTFX, y)); /* FIXED */ - ok(sizeof(POINTFX) == 8, "sizeof(POINTFX) == %d (expected 8)", sizeof(POINTFX)); - - /* RGBQUAD */ - ok(FIELD_OFFSET(RGBQUAD, rgbBlue) == 0, - "FIELD_OFFSET(RGBQUAD, rgbBlue) == %ld (expected 0)", - FIELD_OFFSET(RGBQUAD, rgbBlue)); /* BYTE */ - ok(FIELD_OFFSET(RGBQUAD, rgbGreen) == 1, - "FIELD_OFFSET(RGBQUAD, rgbGreen) == %ld (expected 1)", - FIELD_OFFSET(RGBQUAD, rgbGreen)); /* BYTE */ - ok(FIELD_OFFSET(RGBQUAD, rgbRed) == 2, - "FIELD_OFFSET(RGBQUAD, rgbRed) == %ld (expected 2)", - FIELD_OFFSET(RGBQUAD, rgbRed)); /* BYTE */ - ok(FIELD_OFFSET(RGBQUAD, rgbReserved) == 3, - "FIELD_OFFSET(RGBQUAD, rgbReserved) == %ld (expected 3)", - FIELD_OFFSET(RGBQUAD, rgbReserved)); /* BYTE */ - ok(sizeof(RGBQUAD) == 4, "sizeof(RGBQUAD) == %d (expected 4)", sizeof(RGBQUAD)); - - /* TEXTMETRICA */ - ok(FIELD_OFFSET(TEXTMETRICA, tmHeight) == 0, - "FIELD_OFFSET(TEXTMETRICA, tmHeight) == %ld (expected 0)", - FIELD_OFFSET(TEXTMETRICA, tmHeight)); /* LONG */ - ok(FIELD_OFFSET(TEXTMETRICA, tmAscent) == 4, - "FIELD_OFFSET(TEXTMETRICA, tmAscent) == %ld (expected 4)", - FIELD_OFFSET(TEXTMETRICA, tmAscent)); /* LONG */ - ok(FIELD_OFFSET(TEXTMETRICA, tmDescent) == 8, - "FIELD_OFFSET(TEXTMETRICA, tmDescent) == %ld (expected 8)", - FIELD_OFFSET(TEXTMETRICA, tmDescent)); /* LONG */ - ok(FIELD_OFFSET(TEXTMETRICA, tmInternalLeading) == 12, - "FIELD_OFFSET(TEXTMETRICA, tmInternalLeading) == %ld (expected 12)", - FIELD_OFFSET(TEXTMETRICA, tmInternalLeading)); /* LONG */ - ok(FIELD_OFFSET(TEXTMETRICA, tmExternalLeading) == 16, - "FIELD_OFFSET(TEXTMETRICA, tmExternalLeading) == %ld (expected 16)", - FIELD_OFFSET(TEXTMETRICA, tmExternalLeading)); /* LONG */ - ok(FIELD_OFFSET(TEXTMETRICA, tmAveCharWidth) == 20, - "FIELD_OFFSET(TEXTMETRICA, tmAveCharWidth) == %ld (expected 20)", - FIELD_OFFSET(TEXTMETRICA, tmAveCharWidth)); /* LONG */ - ok(FIELD_OFFSET(TEXTMETRICA, tmMaxCharWidth) == 24, - "FIELD_OFFSET(TEXTMETRICA, tmMaxCharWidth) == %ld (expected 24)", - FIELD_OFFSET(TEXTMETRICA, tmMaxCharWidth)); /* LONG */ - ok(FIELD_OFFSET(TEXTMETRICA, tmWeight) == 28, - "FIELD_OFFSET(TEXTMETRICA, tmWeight) == %ld (expected 28)", - FIELD_OFFSET(TEXTMETRICA, tmWeight)); /* LONG */ - ok(FIELD_OFFSET(TEXTMETRICA, tmOverhang) == 32, - "FIELD_OFFSET(TEXTMETRICA, tmOverhang) == %ld (expected 32)", - FIELD_OFFSET(TEXTMETRICA, tmOverhang)); /* LONG */ - ok(FIELD_OFFSET(TEXTMETRICA, tmDigitizedAspectX) == 36, - "FIELD_OFFSET(TEXTMETRICA, tmDigitizedAspectX) == %ld (expected 36)", - FIELD_OFFSET(TEXTMETRICA, tmDigitizedAspectX)); /* LONG */ - ok(FIELD_OFFSET(TEXTMETRICA, tmDigitizedAspectY) == 40, - "FIELD_OFFSET(TEXTMETRICA, tmDigitizedAspectY) == %ld (expected 40)", - FIELD_OFFSET(TEXTMETRICA, tmDigitizedAspectY)); /* LONG */ - ok(FIELD_OFFSET(TEXTMETRICA, tmFirstChar) == 44, - "FIELD_OFFSET(TEXTMETRICA, tmFirstChar) == %ld (expected 44)", - FIELD_OFFSET(TEXTMETRICA, tmFirstChar)); /* BYTE */ - ok(FIELD_OFFSET(TEXTMETRICA, tmLastChar) == 45, - "FIELD_OFFSET(TEXTMETRICA, tmLastChar) == %ld (expected 45)", - FIELD_OFFSET(TEXTMETRICA, tmLastChar)); /* BYTE */ - ok(FIELD_OFFSET(TEXTMETRICA, tmDefaultChar) == 46, - "FIELD_OFFSET(TEXTMETRICA, tmDefaultChar) == %ld (expected 46)", - FIELD_OFFSET(TEXTMETRICA, tmDefaultChar)); /* BYTE */ - ok(FIELD_OFFSET(TEXTMETRICA, tmBreakChar) == 47, - "FIELD_OFFSET(TEXTMETRICA, tmBreakChar) == %ld (expected 47)", - FIELD_OFFSET(TEXTMETRICA, tmBreakChar)); /* BYTE */ - ok(FIELD_OFFSET(TEXTMETRICA, tmItalic) == 48, - "FIELD_OFFSET(TEXTMETRICA, tmItalic) == %ld (expected 48)", - FIELD_OFFSET(TEXTMETRICA, tmItalic)); /* BYTE */ - ok(FIELD_OFFSET(TEXTMETRICA, tmUnderlined) == 49, - "FIELD_OFFSET(TEXTMETRICA, tmUnderlined) == %ld (expected 49)", - FIELD_OFFSET(TEXTMETRICA, tmUnderlined)); /* BYTE */ - ok(FIELD_OFFSET(TEXTMETRICA, tmStruckOut) == 50, - "FIELD_OFFSET(TEXTMETRICA, tmStruckOut) == %ld (expected 50)", - FIELD_OFFSET(TEXTMETRICA, tmStruckOut)); /* BYTE */ - ok(FIELD_OFFSET(TEXTMETRICA, tmPitchAndFamily) == 51, - "FIELD_OFFSET(TEXTMETRICA, tmPitchAndFamily) == %ld (expected 51)", - FIELD_OFFSET(TEXTMETRICA, tmPitchAndFamily)); /* BYTE */ - ok(FIELD_OFFSET(TEXTMETRICA, tmCharSet) == 52, - "FIELD_OFFSET(TEXTMETRICA, tmCharSet) == %ld (expected 52)", - FIELD_OFFSET(TEXTMETRICA, tmCharSet)); /* BYTE */ - ok(sizeof(TEXTMETRICA) == 56, "sizeof(TEXTMETRICA) == %d (expected 56)", sizeof(TEXTMETRICA)); - - /* TEXTMETRICW */ - ok(FIELD_OFFSET(TEXTMETRICW, tmHeight) == 0, - "FIELD_OFFSET(TEXTMETRICW, tmHeight) == %ld (expected 0)", - FIELD_OFFSET(TEXTMETRICW, tmHeight)); /* LONG */ - ok(FIELD_OFFSET(TEXTMETRICW, tmAscent) == 4, - "FIELD_OFFSET(TEXTMETRICW, tmAscent) == %ld (expected 4)", - FIELD_OFFSET(TEXTMETRICW, tmAscent)); /* LONG */ - ok(FIELD_OFFSET(TEXTMETRICW, tmDescent) == 8, - "FIELD_OFFSET(TEXTMETRICW, tmDescent) == %ld (expected 8)", - FIELD_OFFSET(TEXTMETRICW, tmDescent)); /* LONG */ - ok(FIELD_OFFSET(TEXTMETRICW, tmInternalLeading) == 12, - "FIELD_OFFSET(TEXTMETRICW, tmInternalLeading) == %ld (expected 12)", - FIELD_OFFSET(TEXTMETRICW, tmInternalLeading)); /* LONG */ - ok(FIELD_OFFSET(TEXTMETRICW, tmExternalLeading) == 16, - "FIELD_OFFSET(TEXTMETRICW, tmExternalLeading) == %ld (expected 16)", - FIELD_OFFSET(TEXTMETRICW, tmExternalLeading)); /* LONG */ - ok(FIELD_OFFSET(TEXTMETRICW, tmAveCharWidth) == 20, - "FIELD_OFFSET(TEXTMETRICW, tmAveCharWidth) == %ld (expected 20)", - FIELD_OFFSET(TEXTMETRICW, tmAveCharWidth)); /* LONG */ - ok(FIELD_OFFSET(TEXTMETRICW, tmMaxCharWidth) == 24, - "FIELD_OFFSET(TEXTMETRICW, tmMaxCharWidth) == %ld (expected 24)", - FIELD_OFFSET(TEXTMETRICW, tmMaxCharWidth)); /* LONG */ - ok(FIELD_OFFSET(TEXTMETRICW, tmWeight) == 28, - "FIELD_OFFSET(TEXTMETRICW, tmWeight) == %ld (expected 28)", - FIELD_OFFSET(TEXTMETRICW, tmWeight)); /* LONG */ - ok(FIELD_OFFSET(TEXTMETRICW, tmOverhang) == 32, - "FIELD_OFFSET(TEXTMETRICW, tmOverhang) == %ld (expected 32)", - FIELD_OFFSET(TEXTMETRICW, tmOverhang)); /* LONG */ - ok(FIELD_OFFSET(TEXTMETRICW, tmDigitizedAspectX) == 36, - "FIELD_OFFSET(TEXTMETRICW, tmDigitizedAspectX) == %ld (expected 36)", - FIELD_OFFSET(TEXTMETRICW, tmDigitizedAspectX)); /* LONG */ - ok(FIELD_OFFSET(TEXTMETRICW, tmDigitizedAspectY) == 40, - "FIELD_OFFSET(TEXTMETRICW, tmDigitizedAspectY) == %ld (expected 40)", - FIELD_OFFSET(TEXTMETRICW, tmDigitizedAspectY)); /* LONG */ - ok(FIELD_OFFSET(TEXTMETRICW, tmFirstChar) == 44, - "FIELD_OFFSET(TEXTMETRICW, tmFirstChar) == %ld (expected 44)", - FIELD_OFFSET(TEXTMETRICW, tmFirstChar)); /* WCHAR */ - ok(FIELD_OFFSET(TEXTMETRICW, tmLastChar) == 46, - "FIELD_OFFSET(TEXTMETRICW, tmLastChar) == %ld (expected 46)", - FIELD_OFFSET(TEXTMETRICW, tmLastChar)); /* WCHAR */ - ok(FIELD_OFFSET(TEXTMETRICW, tmDefaultChar) == 48, - "FIELD_OFFSET(TEXTMETRICW, tmDefaultChar) == %ld (expected 48)", - FIELD_OFFSET(TEXTMETRICW, tmDefaultChar)); /* WCHAR */ - ok(FIELD_OFFSET(TEXTMETRICW, tmBreakChar) == 50, - "FIELD_OFFSET(TEXTMETRICW, tmBreakChar) == %ld (expected 50)", - FIELD_OFFSET(TEXTMETRICW, tmBreakChar)); /* WCHAR */ - ok(FIELD_OFFSET(TEXTMETRICW, tmItalic) == 52, - "FIELD_OFFSET(TEXTMETRICW, tmItalic) == %ld (expected 52)", - FIELD_OFFSET(TEXTMETRICW, tmItalic)); /* BYTE */ - ok(FIELD_OFFSET(TEXTMETRICW, tmUnderlined) == 53, - "FIELD_OFFSET(TEXTMETRICW, tmUnderlined) == %ld (expected 53)", - FIELD_OFFSET(TEXTMETRICW, tmUnderlined)); /* BYTE */ - ok(FIELD_OFFSET(TEXTMETRICW, tmStruckOut) == 54, - "FIELD_OFFSET(TEXTMETRICW, tmStruckOut) == %ld (expected 54)", - FIELD_OFFSET(TEXTMETRICW, tmStruckOut)); /* BYTE */ - ok(FIELD_OFFSET(TEXTMETRICW, tmPitchAndFamily) == 55, - "FIELD_OFFSET(TEXTMETRICW, tmPitchAndFamily) == %ld (expected 55)", - FIELD_OFFSET(TEXTMETRICW, tmPitchAndFamily)); /* BYTE */ - ok(FIELD_OFFSET(TEXTMETRICW, tmCharSet) == 56, - "FIELD_OFFSET(TEXTMETRICW, tmCharSet) == %ld (expected 56)", - FIELD_OFFSET(TEXTMETRICW, tmCharSet)); /* BYTE */ - ok(sizeof(TEXTMETRICW) == 60, "sizeof(TEXTMETRICW) == %d (expected 60)", sizeof(TEXTMETRICW)); - - /* XFORM */ - ok(FIELD_OFFSET(XFORM, eM11) == 0, - "FIELD_OFFSET(XFORM, eM11) == %ld (expected 0)", - FIELD_OFFSET(XFORM, eM11)); /* FLOAT */ - ok(FIELD_OFFSET(XFORM, eM12) == 4, - "FIELD_OFFSET(XFORM, eM12) == %ld (expected 4)", - FIELD_OFFSET(XFORM, eM12)); /* FLOAT */ - ok(FIELD_OFFSET(XFORM, eM21) == 8, - "FIELD_OFFSET(XFORM, eM21) == %ld (expected 8)", - FIELD_OFFSET(XFORM, eM21)); /* FLOAT */ - ok(FIELD_OFFSET(XFORM, eM22) == 12, - "FIELD_OFFSET(XFORM, eM22) == %ld (expected 12)", - FIELD_OFFSET(XFORM, eM22)); /* FLOAT */ - ok(FIELD_OFFSET(XFORM, eDx) == 16, - "FIELD_OFFSET(XFORM, eDx) == %ld (expected 16)", - FIELD_OFFSET(XFORM, eDx)); /* FLOAT */ - ok(FIELD_OFFSET(XFORM, eDy) == 20, - "FIELD_OFFSET(XFORM, eDy) == %ld (expected 20)", - FIELD_OFFSET(XFORM, eDy)); /* FLOAT */ - ok(sizeof(XFORM) == 24, "sizeof(XFORM) == %d (expected 24)", sizeof(XFORM)); + /* ABC (pack 4) */ + TEST_TYPE(ABC, 12, 4); + TEST_FIELD(ABC, INT, abcA, 0, 4, 4); + TEST_FIELD(ABC, UINT, abcB, 4, 4, 4); + TEST_FIELD(ABC, INT, abcC, 8, 4, 4); + + /* ABCFLOAT (pack 4) */ + TEST_TYPE(ABCFLOAT, 12, 4); + TEST_FIELD(ABCFLOAT, FLOAT, abcfA, 0, 4, 4); + TEST_FIELD(ABCFLOAT, FLOAT, abcfB, 4, 4, 4); + TEST_FIELD(ABCFLOAT, FLOAT, abcfC, 8, 4, 4); + + /* BITMAP (pack 4) */ + TEST_TYPE(BITMAP, 24, 4); + TEST_FIELD(BITMAP, INT, bmType, 0, 4, 4); + TEST_FIELD(BITMAP, INT, bmWidth, 4, 4, 4); + TEST_FIELD(BITMAP, INT, bmHeight, 8, 4, 4); + TEST_FIELD(BITMAP, INT, bmWidthBytes, 12, 4, 4); + TEST_FIELD(BITMAP, WORD, bmPlanes, 16, 2, 2); + TEST_FIELD(BITMAP, WORD, bmBitsPixel, 18, 2, 2); + TEST_FIELD(BITMAP, LPVOID, bmBits, 20, 4, 4); + + /* BITMAPCOREHEADER (pack 4) */ + TEST_TYPE(BITMAPCOREHEADER, 12, 4); + TEST_FIELD(BITMAPCOREHEADER, DWORD, bcSize, 0, 4, 4); + TEST_FIELD(BITMAPCOREHEADER, WORD, bcWidth, 4, 2, 2); + TEST_FIELD(BITMAPCOREHEADER, WORD, bcHeight, 6, 2, 2); + TEST_FIELD(BITMAPCOREHEADER, WORD, bcPlanes, 8, 2, 2); + TEST_FIELD(BITMAPCOREHEADER, WORD, bcBitCount, 10, 2, 2); + + /* BITMAPCOREINFO (pack 4) */ + TEST_TYPE(BITMAPCOREINFO, 16, 4); + TEST_FIELD(BITMAPCOREINFO, BITMAPCOREHEADER, bmciHeader, 0, 12, 4); + TEST_FIELD(BITMAPCOREINFO, RGBTRIPLE[1], bmciColors, 12, 3, 1); + + /* BITMAPFILEHEADER (pack 2) */ + TEST_TYPE(BITMAPFILEHEADER, 14, 2); + TEST_FIELD(BITMAPFILEHEADER, WORD, bfType, 0, 2, 2); + TEST_FIELD(BITMAPFILEHEADER, DWORD, bfSize, 2, 4, 2); + TEST_FIELD(BITMAPFILEHEADER, WORD, bfReserved1, 6, 2, 2); + TEST_FIELD(BITMAPFILEHEADER, WORD, bfReserved2, 8, 2, 2); + TEST_FIELD(BITMAPFILEHEADER, DWORD, bfOffBits, 10, 4, 2); + + /* BITMAPINFO (pack 4) */ + TEST_TYPE(BITMAPINFO, 44, 4); + TEST_FIELD(BITMAPINFO, BITMAPINFOHEADER, bmiHeader, 0, 40, 4); + TEST_FIELD(BITMAPINFO, RGBQUAD[1], bmiColors, 40, 4, 1); + + /* BITMAPINFOHEADER (pack 4) */ + TEST_TYPE(BITMAPINFOHEADER, 40, 4); + TEST_FIELD(BITMAPINFOHEADER, DWORD, biSize, 0, 4, 4); + TEST_FIELD(BITMAPINFOHEADER, LONG, biWidth, 4, 4, 4); + TEST_FIELD(BITMAPINFOHEADER, LONG, biHeight, 8, 4, 4); + TEST_FIELD(BITMAPINFOHEADER, WORD, biPlanes, 12, 2, 2); + TEST_FIELD(BITMAPINFOHEADER, WORD, biBitCount, 14, 2, 2); + TEST_FIELD(BITMAPINFOHEADER, DWORD, biCompression, 16, 4, 4); + TEST_FIELD(BITMAPINFOHEADER, DWORD, biSizeImage, 20, 4, 4); + TEST_FIELD(BITMAPINFOHEADER, LONG, biXPelsPerMeter, 24, 4, 4); + TEST_FIELD(BITMAPINFOHEADER, LONG, biYPelsPerMeter, 28, 4, 4); + TEST_FIELD(BITMAPINFOHEADER, DWORD, biClrUsed, 32, 4, 4); + TEST_FIELD(BITMAPINFOHEADER, DWORD, biClrImportant, 36, 4, 4); + + /* BITMAPV4HEADER (pack 4) */ + TEST_TYPE(BITMAPV4HEADER, 108, 4); + TEST_FIELD(BITMAPV4HEADER, DWORD, bV4Size, 0, 4, 4); + TEST_FIELD(BITMAPV4HEADER, LONG, bV4Width, 4, 4, 4); + TEST_FIELD(BITMAPV4HEADER, LONG, bV4Height, 8, 4, 4); + TEST_FIELD(BITMAPV4HEADER, WORD, bV4Planes, 12, 2, 2); + TEST_FIELD(BITMAPV4HEADER, WORD, bV4BitCount, 14, 2, 2); + TEST_FIELD(BITMAPV4HEADER, DWORD, bV4Compression, 16, 4, 4); + TEST_FIELD(BITMAPV4HEADER, DWORD, bV4SizeImage, 20, 4, 4); + TEST_FIELD(BITMAPV4HEADER, LONG, bV4XPelsPerMeter, 24, 4, 4); + TEST_FIELD(BITMAPV4HEADER, LONG, bV4YPelsPerMeter, 28, 4, 4); + TEST_FIELD(BITMAPV4HEADER, DWORD, bV4ClrUsed, 32, 4, 4); + TEST_FIELD(BITMAPV4HEADER, DWORD, bV4ClrImportant, 36, 4, 4); + TEST_FIELD(BITMAPV4HEADER, DWORD, bV4RedMask, 40, 4, 4); + TEST_FIELD(BITMAPV4HEADER, DWORD, bV4GreenMask, 44, 4, 4); + TEST_FIELD(BITMAPV4HEADER, DWORD, bV4BlueMask, 48, 4, 4); + TEST_FIELD(BITMAPV4HEADER, DWORD, bV4AlphaMask, 52, 4, 4); + TEST_FIELD(BITMAPV4HEADER, DWORD, bV4CSType, 56, 4, 4); + TEST_FIELD(BITMAPV4HEADER, CIEXYZTRIPLE, bV4Endpoints, 60, 36, 4); + TEST_FIELD(BITMAPV4HEADER, DWORD, bV4GammaRed, 96, 4, 4); + TEST_FIELD(BITMAPV4HEADER, DWORD, bV4GammaGreen, 100, 4, 4); + TEST_FIELD(BITMAPV4HEADER, DWORD, bV4GammaBlue, 104, 4, 4); + + /* BITMAPV5HEADER (pack 4) */ + TEST_TYPE(BITMAPV5HEADER, 124, 4); + TEST_FIELD(BITMAPV5HEADER, DWORD, bV5Size, 0, 4, 4); + TEST_FIELD(BITMAPV5HEADER, LONG, bV5Width, 4, 4, 4); + TEST_FIELD(BITMAPV5HEADER, LONG, bV5Height, 8, 4, 4); + TEST_FIELD(BITMAPV5HEADER, WORD, bV5Planes, 12, 2, 2); + TEST_FIELD(BITMAPV5HEADER, WORD, bV5BitCount, 14, 2, 2); + TEST_FIELD(BITMAPV5HEADER, DWORD, bV5Compression, 16, 4, 4); + TEST_FIELD(BITMAPV5HEADER, DWORD, bV5SizeImage, 20, 4, 4); + TEST_FIELD(BITMAPV5HEADER, LONG, bV5XPelsPerMeter, 24, 4, 4); + TEST_FIELD(BITMAPV5HEADER, LONG, bV5YPelsPerMeter, 28, 4, 4); + TEST_FIELD(BITMAPV5HEADER, DWORD, bV5ClrUsed, 32, 4, 4); + TEST_FIELD(BITMAPV5HEADER, DWORD, bV5ClrImportant, 36, 4, 4); + TEST_FIELD(BITMAPV5HEADER, DWORD, bV5RedMask, 40, 4, 4); + TEST_FIELD(BITMAPV5HEADER, DWORD, bV5GreenMask, 44, 4, 4); + TEST_FIELD(BITMAPV5HEADER, DWORD, bV5BlueMask, 48, 4, 4); + TEST_FIELD(BITMAPV5HEADER, DWORD, bV5AlphaMask, 52, 4, 4); + TEST_FIELD(BITMAPV5HEADER, DWORD, bV5CSType, 56, 4, 4); + TEST_FIELD(BITMAPV5HEADER, CIEXYZTRIPLE, bV5Endpoints, 60, 36, 4); + TEST_FIELD(BITMAPV5HEADER, DWORD, bV5GammaRed, 96, 4, 4); + TEST_FIELD(BITMAPV5HEADER, DWORD, bV5GammaGreen, 100, 4, 4); + TEST_FIELD(BITMAPV5HEADER, DWORD, bV5GammaBlue, 104, 4, 4); + TEST_FIELD(BITMAPV5HEADER, DWORD, bV5Intent, 108, 4, 4); + TEST_FIELD(BITMAPV5HEADER, DWORD, bV5ProfileData, 112, 4, 4); + TEST_FIELD(BITMAPV5HEADER, DWORD, bV5ProfileSize, 116, 4, 4); + TEST_FIELD(BITMAPV5HEADER, DWORD, bV5Reserved, 120, 4, 4); + + /* BLENDFUNCTION (pack 4) */ + TEST_TYPE(BLENDFUNCTION, 4, 1); + TEST_FIELD(BLENDFUNCTION, BYTE, BlendOp, 0, 1, 1); + TEST_FIELD(BLENDFUNCTION, BYTE, BlendFlags, 1, 1, 1); + TEST_FIELD(BLENDFUNCTION, BYTE, SourceConstantAlpha, 2, 1, 1); + TEST_FIELD(BLENDFUNCTION, BYTE, AlphaFormat, 3, 1, 1); + + /* CHARSETINFO (pack 4) */ + TEST_TYPE(CHARSETINFO, 32, 4); + TEST_FIELD(CHARSETINFO, UINT, ciCharset, 0, 4, 4); + TEST_FIELD(CHARSETINFO, UINT, ciACP, 4, 4, 4); + TEST_FIELD(CHARSETINFO, FONTSIGNATURE, fs, 8, 24, 4); + + /* CIEXYZ (pack 4) */ + TEST_TYPE(CIEXYZ, 12, 4); + TEST_FIELD(CIEXYZ, FXPT2DOT30, ciexyzX, 0, 4, 4); + TEST_FIELD(CIEXYZ, FXPT2DOT30, ciexyzY, 4, 4, 4); + TEST_FIELD(CIEXYZ, FXPT2DOT30, ciexyzZ, 8, 4, 4); + + /* CIEXYZTRIPLE (pack 4) */ + TEST_TYPE(CIEXYZTRIPLE, 36, 4); + TEST_FIELD(CIEXYZTRIPLE, CIEXYZ, ciexyzRed, 0, 12, 4); + TEST_FIELD(CIEXYZTRIPLE, CIEXYZ, ciexyzGreen, 12, 12, 4); + TEST_FIELD(CIEXYZTRIPLE, CIEXYZ, ciexyzBlue, 24, 12, 4); + + /* COLORADJUSTMENT (pack 4) */ + TEST_TYPE(COLORADJUSTMENT, 24, 2); + TEST_FIELD(COLORADJUSTMENT, WORD, caSize, 0, 2, 2); + TEST_FIELD(COLORADJUSTMENT, WORD, caFlags, 2, 2, 2); + TEST_FIELD(COLORADJUSTMENT, WORD, caIlluminantIndex, 4, 2, 2); + TEST_FIELD(COLORADJUSTMENT, WORD, caRedGamma, 6, 2, 2); + TEST_FIELD(COLORADJUSTMENT, WORD, caGreenGamma, 8, 2, 2); + TEST_FIELD(COLORADJUSTMENT, WORD, caBlueGamma, 10, 2, 2); + TEST_FIELD(COLORADJUSTMENT, WORD, caReferenceBlack, 12, 2, 2); + TEST_FIELD(COLORADJUSTMENT, WORD, caReferenceWhite, 14, 2, 2); + TEST_FIELD(COLORADJUSTMENT, SHORT, caContrast, 16, 2, 2); + TEST_FIELD(COLORADJUSTMENT, SHORT, caBrightness, 18, 2, 2); + TEST_FIELD(COLORADJUSTMENT, SHORT, caColorfulness, 20, 2, 2); + TEST_FIELD(COLORADJUSTMENT, SHORT, caRedGreenTint, 22, 2, 2); + + /* DIBSECTION (pack 4) */ + TEST_TYPE(DIBSECTION, 84, 4); + TEST_FIELD(DIBSECTION, BITMAP, dsBm, 0, 24, 4); + TEST_FIELD(DIBSECTION, BITMAPINFOHEADER, dsBmih, 24, 40, 4); + TEST_FIELD(DIBSECTION, DWORD[3], dsBitfields, 64, 12, 4); + TEST_FIELD(DIBSECTION, HANDLE, dshSection, 76, 4, 4); + TEST_FIELD(DIBSECTION, DWORD, dsOffset, 80, 4, 4); + + /* DISPLAY_DEVICEA (pack 4) */ + TEST_TYPE(DISPLAY_DEVICEA, 424, 4); + TEST_FIELD(DISPLAY_DEVICEA, DWORD, cb, 0, 4, 4); + TEST_FIELD(DISPLAY_DEVICEA, CHAR[32], DeviceName, 4, 32, 1); + TEST_FIELD(DISPLAY_DEVICEA, CHAR[128], DeviceString, 36, 128, 1); + TEST_FIELD(DISPLAY_DEVICEA, DWORD, StateFlags, 164, 4, 4); + TEST_FIELD(DISPLAY_DEVICEA, CHAR[128], DeviceID, 168, 128, 1); + TEST_FIELD(DISPLAY_DEVICEA, CHAR[128], DeviceKey, 296, 128, 1); + + /* DISPLAY_DEVICEW (pack 4) */ + TEST_TYPE(DISPLAY_DEVICEW, 840, 4); + TEST_FIELD(DISPLAY_DEVICEW, DWORD, cb, 0, 4, 4); + TEST_FIELD(DISPLAY_DEVICEW, WCHAR[32], DeviceName, 4, 64, 2); + TEST_FIELD(DISPLAY_DEVICEW, WCHAR[128], DeviceString, 68, 256, 2); + TEST_FIELD(DISPLAY_DEVICEW, DWORD, StateFlags, 324, 4, 4); + TEST_FIELD(DISPLAY_DEVICEW, WCHAR[128], DeviceID, 328, 256, 2); + TEST_FIELD(DISPLAY_DEVICEW, WCHAR[128], DeviceKey, 584, 256, 2); + + /* DOCINFOA (pack 4) */ + TEST_TYPE(DOCINFOA, 20, 4); + TEST_FIELD(DOCINFOA, INT, cbSize, 0, 4, 4); + TEST_FIELD(DOCINFOA, LPCSTR, lpszDocName, 4, 4, 4); + TEST_FIELD(DOCINFOA, LPCSTR, lpszOutput, 8, 4, 4); + TEST_FIELD(DOCINFOA, LPCSTR, lpszDatatype, 12, 4, 4); + TEST_FIELD(DOCINFOA, DWORD, fwType, 16, 4, 4); + + /* DOCINFOW (pack 4) */ + TEST_TYPE(DOCINFOW, 20, 4); + TEST_FIELD(DOCINFOW, INT, cbSize, 0, 4, 4); + TEST_FIELD(DOCINFOW, LPCWSTR, lpszDocName, 4, 4, 4); + TEST_FIELD(DOCINFOW, LPCWSTR, lpszOutput, 8, 4, 4); + TEST_FIELD(DOCINFOW, LPCWSTR, lpszDatatype, 12, 4, 4); + TEST_FIELD(DOCINFOW, DWORD, fwType, 16, 4, 4); + + /* EMR (pack 4) */ + TEST_TYPE(EMR, 8, 4); + TEST_FIELD(EMR, DWORD, iType, 0, 4, 4); + TEST_FIELD(EMR, DWORD, nSize, 4, 4, 4); + + /* EMRABORTPATH (pack 4) */ + TEST_TYPE(EMRABORTPATH, 8, 4); + TEST_FIELD(EMRABORTPATH, EMR, emr, 0, 8, 4); + + /* EMRANGLEARC (pack 4) */ + TEST_TYPE(EMRANGLEARC, 28, 4); + TEST_FIELD(EMRANGLEARC, EMR, emr, 0, 8, 4); + TEST_FIELD(EMRANGLEARC, POINTL, ptlCenter, 8, 8, 4); + TEST_FIELD(EMRANGLEARC, DWORD, nRadius, 16, 4, 4); + TEST_FIELD(EMRANGLEARC, FLOAT, eStartAngle, 20, 4, 4); + TEST_FIELD(EMRANGLEARC, FLOAT, eSweepAngle, 24, 4, 4); + + /* EMRARC (pack 4) */ + TEST_TYPE(EMRARC, 40, 4); + TEST_FIELD(EMRARC, EMR, emr, 0, 8, 4); + TEST_FIELD(EMRARC, RECTL, rclBox, 8, 16, 4); + TEST_FIELD(EMRARC, POINTL, ptlStart, 24, 8, 4); + TEST_FIELD(EMRARC, POINTL, ptlEnd, 32, 8, 4); + + /* EMRBITBLT (pack 4) */ + TEST_TYPE(EMRBITBLT, 100, 4); + TEST_FIELD(EMRBITBLT, EMR, emr, 0, 8, 4); + TEST_FIELD(EMRBITBLT, RECTL, rclBounds, 8, 16, 4); + TEST_FIELD(EMRBITBLT, LONG, xDest, 24, 4, 4); + TEST_FIELD(EMRBITBLT, LONG, yDest, 28, 4, 4); + TEST_FIELD(EMRBITBLT, LONG, cxDest, 32, 4, 4); + TEST_FIELD(EMRBITBLT, LONG, cyDest, 36, 4, 4); + TEST_FIELD(EMRBITBLT, DWORD, dwRop, 40, 4, 4); + TEST_FIELD(EMRBITBLT, LONG, xSrc, 44, 4, 4); + TEST_FIELD(EMRBITBLT, LONG, ySrc, 48, 4, 4); + TEST_FIELD(EMRBITBLT, XFORM, xformSrc, 52, 24, 4); + TEST_FIELD(EMRBITBLT, COLORREF, crBkColorSrc, 76, 4, 4); + TEST_FIELD(EMRBITBLT, DWORD, iUsageSrc, 80, 4, 4); + TEST_FIELD(EMRBITBLT, DWORD, offBmiSrc, 84, 4, 4); + TEST_FIELD(EMRBITBLT, DWORD, cbBmiSrc, 88, 4, 4); + TEST_FIELD(EMRBITBLT, DWORD, offBitsSrc, 92, 4, 4); + TEST_FIELD(EMRBITBLT, DWORD, cbBitsSrc, 96, 4, 4); + + /* EMRCREATEBRUSHINDIRECT (pack 4) */ + TEST_TYPE(EMRCREATEBRUSHINDIRECT, 24, 4); + TEST_FIELD(EMRCREATEBRUSHINDIRECT, EMR, emr, 0, 8, 4); + TEST_FIELD(EMRCREATEBRUSHINDIRECT, DWORD, ihBrush, 8, 4, 4); + TEST_FIELD(EMRCREATEBRUSHINDIRECT, LOGBRUSH, lb, 12, 12, 4); + + /* EMRCREATECOLORSPACE (pack 4) */ + TEST_TYPE(EMRCREATECOLORSPACE, 340, 4); + TEST_FIELD(EMRCREATECOLORSPACE, EMR, emr, 0, 8, 4); + TEST_FIELD(EMRCREATECOLORSPACE, DWORD, ihCS, 8, 4, 4); + TEST_FIELD(EMRCREATECOLORSPACE, LOGCOLORSPACEA, lcs, 12, 328, 4); + + /* EMRCREATECOLORSPACEW (pack 4) */ + TEST_TYPE(EMRCREATECOLORSPACEW, 612, 4); + TEST_FIELD(EMRCREATECOLORSPACEW, EMR, emr, 0, 8, 4); + TEST_FIELD(EMRCREATECOLORSPACEW, DWORD, ihCS, 8, 4, 4); + TEST_FIELD(EMRCREATECOLORSPACEW, LOGCOLORSPACEW, lcs, 12, 588, 4); + TEST_FIELD(EMRCREATECOLORSPACEW, DWORD, dwFlags, 600, 4, 4); + TEST_FIELD(EMRCREATECOLORSPACEW, DWORD, cbData, 604, 4, 4); + TEST_FIELD(EMRCREATECOLORSPACEW, BYTE[1], Data, 608, 1, 1); + + /* EMRCREATEDIBPATTERNBRUSHPT (pack 4) */ + TEST_TYPE(EMRCREATEDIBPATTERNBRUSHPT, 32, 4); + TEST_FIELD(EMRCREATEDIBPATTERNBRUSHPT, EMR, emr, 0, 8, 4); + TEST_FIELD(EMRCREATEDIBPATTERNBRUSHPT, DWORD, ihBrush, 8, 4, 4); + TEST_FIELD(EMRCREATEDIBPATTERNBRUSHPT, DWORD, iUsage, 12, 4, 4); + TEST_FIELD(EMRCREATEDIBPATTERNBRUSHPT, DWORD, offBmi, 16, 4, 4); + TEST_FIELD(EMRCREATEDIBPATTERNBRUSHPT, DWORD, cbBmi, 20, 4, 4); + TEST_FIELD(EMRCREATEDIBPATTERNBRUSHPT, DWORD, offBits, 24, 4, 4); + TEST_FIELD(EMRCREATEDIBPATTERNBRUSHPT, DWORD, cbBits, 28, 4, 4); + + /* EMRCREATEMONOBRUSH (pack 4) */ + TEST_TYPE(EMRCREATEMONOBRUSH, 32, 4); + TEST_FIELD(EMRCREATEMONOBRUSH, EMR, emr, 0, 8, 4); + TEST_FIELD(EMRCREATEMONOBRUSH, DWORD, ihBrush, 8, 4, 4); + TEST_FIELD(EMRCREATEMONOBRUSH, DWORD, iUsage, 12, 4, 4); + TEST_FIELD(EMRCREATEMONOBRUSH, DWORD, offBmi, 16, 4, 4); + TEST_FIELD(EMRCREATEMONOBRUSH, DWORD, cbBmi, 20, 4, 4); + TEST_FIELD(EMRCREATEMONOBRUSH, DWORD, offBits, 24, 4, 4); + TEST_FIELD(EMRCREATEMONOBRUSH, DWORD, cbBits, 28, 4, 4); + + /* EMRCREATEPEN (pack 4) */ + TEST_TYPE(EMRCREATEPEN, 28, 4); + TEST_FIELD(EMRCREATEPEN, EMR, emr, 0, 8, 4); + TEST_FIELD(EMRCREATEPEN, DWORD, ihPen, 8, 4, 4); + TEST_FIELD(EMRCREATEPEN, LOGPEN, lopn, 12, 16, 4); + + /* EMRDELETECOLORSPACE (pack 4) */ + TEST_TYPE(EMRDELETECOLORSPACE, 12, 4); + TEST_FIELD(EMRDELETECOLORSPACE, EMR, emr, 0, 8, 4); + TEST_FIELD(EMRDELETECOLORSPACE, DWORD, ihCS, 8, 4, 4); + + /* EMRDELETEOBJECT (pack 4) */ + TEST_TYPE(EMRDELETEOBJECT, 12, 4); + TEST_FIELD(EMRDELETEOBJECT, EMR, emr, 0, 8, 4); + TEST_FIELD(EMRDELETEOBJECT, DWORD, ihObject, 8, 4, 4); + + /* EMRELLIPSE (pack 4) */ + TEST_TYPE(EMRELLIPSE, 24, 4); + TEST_FIELD(EMRELLIPSE, EMR, emr, 0, 8, 4); + TEST_FIELD(EMRELLIPSE, RECTL, rclBox, 8, 16, 4); + + /* EMREOF (pack 4) */ + TEST_TYPE(EMREOF, 20, 4); + TEST_FIELD(EMREOF, EMR, emr, 0, 8, 4); + TEST_FIELD(EMREOF, DWORD, nPalEntries, 8, 4, 4); + TEST_FIELD(EMREOF, DWORD, offPalEntries, 12, 4, 4); + TEST_FIELD(EMREOF, DWORD, nSizeLast, 16, 4, 4); + + /* EMREXCLUDECLIPRECT (pack 4) */ + TEST_TYPE(EMREXCLUDECLIPRECT, 24, 4); + TEST_FIELD(EMREXCLUDECLIPRECT, EMR, emr, 0, 8, 4); + TEST_FIELD(EMREXCLUDECLIPRECT, RECTL, rclClip, 8, 16, 4); + + /* EMREXTCREATEFONTINDIRECTW (pack 4) */ + TEST_TYPE(EMREXTCREATEFONTINDIRECTW, 332, 4); + TEST_FIELD(EMREXTCREATEFONTINDIRECTW, EMR, emr, 0, 8, 4); + TEST_FIELD(EMREXTCREATEFONTINDIRECTW, DWORD, ihFont, 8, 4, 4); + TEST_FIELD(EMREXTCREATEFONTINDIRECTW, EXTLOGFONTW, elfw, 12, 320, 4); + + /* EMREXTCREATEPEN (pack 4) */ + TEST_TYPE(EMREXTCREATEPEN, 56, 4); + TEST_FIELD(EMREXTCREATEPEN, EMR, emr, 0, 8, 4); + TEST_FIELD(EMREXTCREATEPEN, DWORD, ihPen, 8, 4, 4); + TEST_FIELD(EMREXTCREATEPEN, DWORD, offBmi, 12, 4, 4); + TEST_FIELD(EMREXTCREATEPEN, DWORD, cbBmi, 16, 4, 4); + TEST_FIELD(EMREXTCREATEPEN, DWORD, offBits, 20, 4, 4); + TEST_FIELD(EMREXTCREATEPEN, DWORD, cbBits, 24, 4, 4); + TEST_FIELD(EMREXTCREATEPEN, EXTLOGPEN, elp, 28, 28, 4); + + /* EMREXTFLOODFILL (pack 4) */ + TEST_TYPE(EMREXTFLOODFILL, 24, 4); + TEST_FIELD(EMREXTFLOODFILL, EMR, emr, 0, 8, 4); + TEST_FIELD(EMREXTFLOODFILL, POINTL, ptlStart, 8, 8, 4); + TEST_FIELD(EMREXTFLOODFILL, COLORREF, crColor, 16, 4, 4); + TEST_FIELD(EMREXTFLOODFILL, DWORD, iMode, 20, 4, 4); + + /* EMREXTSELECTCLIPRGN (pack 4) */ + TEST_TYPE(EMREXTSELECTCLIPRGN, 20, 4); + TEST_FIELD(EMREXTSELECTCLIPRGN, EMR, emr, 0, 8, 4); + TEST_FIELD(EMREXTSELECTCLIPRGN, DWORD, cbRgnData, 8, 4, 4); + TEST_FIELD(EMREXTSELECTCLIPRGN, DWORD, iMode, 12, 4, 4); + TEST_FIELD(EMREXTSELECTCLIPRGN, BYTE[1], RgnData, 16, 1, 1); + + /* EMREXTTEXTOUTA (pack 4) */ + TEST_TYPE(EMREXTTEXTOUTA, 76, 4); + TEST_FIELD(EMREXTTEXTOUTA, EMR, emr, 0, 8, 4); + TEST_FIELD(EMREXTTEXTOUTA, RECTL, rclBounds, 8, 16, 4); + TEST_FIELD(EMREXTTEXTOUTA, DWORD, iGraphicsMode, 24, 4, 4); + TEST_FIELD(EMREXTTEXTOUTA, FLOAT, exScale, 28, 4, 4); + TEST_FIELD(EMREXTTEXTOUTA, FLOAT, eyScale, 32, 4, 4); + TEST_FIELD(EMREXTTEXTOUTA, EMRTEXT, emrtext, 36, 40, 4); + + /* EMRFILLPATH (pack 4) */ + TEST_TYPE(EMRFILLPATH, 24, 4); + TEST_FIELD(EMRFILLPATH, EMR, emr, 0, 8, 4); + TEST_FIELD(EMRFILLPATH, RECTL, rclBounds, 8, 16, 4); + + /* EMRFILLRGN (pack 4) */ + TEST_TYPE(EMRFILLRGN, 36, 4); + TEST_FIELD(EMRFILLRGN, EMR, emr, 0, 8, 4); + TEST_FIELD(EMRFILLRGN, RECTL, rclBounds, 8, 16, 4); + TEST_FIELD(EMRFILLRGN, DWORD, cbRgnData, 24, 4, 4); + TEST_FIELD(EMRFILLRGN, DWORD, ihBrush, 28, 4, 4); + TEST_FIELD(EMRFILLRGN, BYTE[1], RgnData, 32, 1, 1); + + /* EMRFORMAT (pack 4) */ + TEST_TYPE(EMRFORMAT, 16, 4); + TEST_FIELD(EMRFORMAT, DWORD, signature, 0, 4, 4); + TEST_FIELD(EMRFORMAT, DWORD, nVersion, 4, 4, 4); + TEST_FIELD(EMRFORMAT, DWORD, cbData, 8, 4, 4); + TEST_FIELD(EMRFORMAT, DWORD, offData, 12, 4, 4); + + /* EMRFRAMERGN (pack 4) */ + TEST_TYPE(EMRFRAMERGN, 44, 4); + TEST_FIELD(EMRFRAMERGN, EMR, emr, 0, 8, 4); + TEST_FIELD(EMRFRAMERGN, RECTL, rclBounds, 8, 16, 4); + TEST_FIELD(EMRFRAMERGN, DWORD, cbRgnData, 24, 4, 4); + TEST_FIELD(EMRFRAMERGN, DWORD, ihBrush, 28, 4, 4); + TEST_FIELD(EMRFRAMERGN, SIZEL, szlStroke, 32, 8, 4); + TEST_FIELD(EMRFRAMERGN, BYTE[1], RgnData, 40, 1, 1); + + /* EMRGDICOMMENT (pack 4) */ + TEST_TYPE(EMRGDICOMMENT, 16, 4); + TEST_FIELD(EMRGDICOMMENT, EMR, emr, 0, 8, 4); + TEST_FIELD(EMRGDICOMMENT, DWORD, cbData, 8, 4, 4); + TEST_FIELD(EMRGDICOMMENT, BYTE[1], Data, 12, 1, 1); + + /* EMRGLSBOUNDEDRECORD (pack 4) */ + TEST_TYPE(EMRGLSBOUNDEDRECORD, 32, 4); + TEST_FIELD(EMRGLSBOUNDEDRECORD, EMR, emr, 0, 8, 4); + TEST_FIELD(EMRGLSBOUNDEDRECORD, RECTL, rclBounds, 8, 16, 4); + TEST_FIELD(EMRGLSBOUNDEDRECORD, DWORD, cbData, 24, 4, 4); + TEST_FIELD(EMRGLSBOUNDEDRECORD, BYTE[1], Data, 28, 1, 1); + + /* EMRGLSRECORD (pack 4) */ + TEST_TYPE(EMRGLSRECORD, 16, 4); + TEST_FIELD(EMRGLSRECORD, EMR, emr, 0, 8, 4); + TEST_FIELD(EMRGLSRECORD, DWORD, cbData, 8, 4, 4); + TEST_FIELD(EMRGLSRECORD, BYTE[1], Data, 12, 1, 1); + + /* EMRINVERTRGN (pack 4) */ + TEST_TYPE(EMRINVERTRGN, 32, 4); + TEST_FIELD(EMRINVERTRGN, EMR, emr, 0, 8, 4); + TEST_FIELD(EMRINVERTRGN, RECTL, rclBounds, 8, 16, 4); + TEST_FIELD(EMRINVERTRGN, DWORD, cbRgnData, 24, 4, 4); + TEST_FIELD(EMRINVERTRGN, BYTE[1], RgnData, 28, 1, 1); + + /* EMRLINETO (pack 4) */ + TEST_TYPE(EMRLINETO, 16, 4); + TEST_FIELD(EMRLINETO, EMR, emr, 0, 8, 4); + TEST_FIELD(EMRLINETO, POINTL, ptl, 8, 8, 4); + + /* EMRMASKBLT (pack 4) */ + TEST_TYPE(EMRMASKBLT, 128, 4); + TEST_FIELD(EMRMASKBLT, EMR, emr, 0, 8, 4); + TEST_FIELD(EMRMASKBLT, RECTL, rclBounds, 8, 16, 4); + TEST_FIELD(EMRMASKBLT, LONG, xDest, 24, 4, 4); + TEST_FIELD(EMRMASKBLT, LONG, yDest, 28, 4, 4); + TEST_FIELD(EMRMASKBLT, LONG, cxDest, 32, 4, 4); + TEST_FIELD(EMRMASKBLT, LONG, cyDest, 36, 4, 4); + TEST_FIELD(EMRMASKBLT, DWORD, dwRop, 40, 4, 4); + TEST_FIELD(EMRMASKBLT, LONG, xSrc, 44, 4, 4); + TEST_FIELD(EMRMASKBLT, LONG, ySrc, 48, 4, 4); + TEST_FIELD(EMRMASKBLT, XFORM, xformSrc, 52, 24, 4); + TEST_FIELD(EMRMASKBLT, COLORREF, crBkColorSrc, 76, 4, 4); + TEST_FIELD(EMRMASKBLT, DWORD, iUsageSrc, 80, 4, 4); + TEST_FIELD(EMRMASKBLT, DWORD, offBmiSrc, 84, 4, 4); + TEST_FIELD(EMRMASKBLT, DWORD, cbBmiSrc, 88, 4, 4); + TEST_FIELD(EMRMASKBLT, DWORD, offBitsSrc, 92, 4, 4); + TEST_FIELD(EMRMASKBLT, DWORD, cbBitsSrc, 96, 4, 4); + TEST_FIELD(EMRMASKBLT, LONG, xMask, 100, 4, 4); + TEST_FIELD(EMRMASKBLT, LONG, yMask, 104, 4, 4); + TEST_FIELD(EMRMASKBLT, DWORD, iUsageMask, 108, 4, 4); + TEST_FIELD(EMRMASKBLT, DWORD, offBmiMask, 112, 4, 4); + TEST_FIELD(EMRMASKBLT, DWORD, cbBmiMask, 116, 4, 4); + TEST_FIELD(EMRMASKBLT, DWORD, offBitsMask, 120, 4, 4); + TEST_FIELD(EMRMASKBLT, DWORD, cbBitsMask, 124, 4, 4); + + /* EMRMODIFYWORLDTRANSFORM (pack 4) */ + TEST_TYPE(EMRMODIFYWORLDTRANSFORM, 36, 4); + TEST_FIELD(EMRMODIFYWORLDTRANSFORM, EMR, emr, 0, 8, 4); + TEST_FIELD(EMRMODIFYWORLDTRANSFORM, XFORM, xform, 8, 24, 4); + TEST_FIELD(EMRMODIFYWORLDTRANSFORM, DWORD, iMode, 32, 4, 4); + + /* EMROFFSETCLIPRGN (pack 4) */ + TEST_TYPE(EMROFFSETCLIPRGN, 16, 4); + TEST_FIELD(EMROFFSETCLIPRGN, EMR, emr, 0, 8, 4); + TEST_FIELD(EMROFFSETCLIPRGN, POINTL, ptlOffset, 8, 8, 4); + + /* EMRPIXELFORMAT (pack 4) */ + TEST_TYPE(EMRPIXELFORMAT, 48, 4); + TEST_FIELD(EMRPIXELFORMAT, EMR, emr, 0, 8, 4); + TEST_FIELD(EMRPIXELFORMAT, PIXELFORMATDESCRIPTOR, pfd, 8, 40, 4); + + /* EMRPLGBLT (pack 4) */ + TEST_TYPE(EMRPLGBLT, 140, 4); + TEST_FIELD(EMRPLGBLT, EMR, emr, 0, 8, 4); + TEST_FIELD(EMRPLGBLT, RECTL, rclBounds, 8, 16, 4); + TEST_FIELD(EMRPLGBLT, POINTL[3], aptlDst, 24, 24, 4); + TEST_FIELD(EMRPLGBLT, LONG, xSrc, 48, 4, 4); + TEST_FIELD(EMRPLGBLT, LONG, ySrc, 52, 4, 4); + TEST_FIELD(EMRPLGBLT, LONG, cxSrc, 56, 4, 4); + TEST_FIELD(EMRPLGBLT, LONG, cySrc, 60, 4, 4); + TEST_FIELD(EMRPLGBLT, XFORM, xformSrc, 64, 24, 4); + TEST_FIELD(EMRPLGBLT, COLORREF, crBkColorSrc, 88, 4, 4); + TEST_FIELD(EMRPLGBLT, DWORD, iUsageSrc, 92, 4, 4); + TEST_FIELD(EMRPLGBLT, DWORD, offBmiSrc, 96, 4, 4); + TEST_FIELD(EMRPLGBLT, DWORD, cbBmiSrc, 100, 4, 4); + TEST_FIELD(EMRPLGBLT, DWORD, offBitsSrc, 104, 4, 4); + TEST_FIELD(EMRPLGBLT, DWORD, cbBitsSrc, 108, 4, 4); + TEST_FIELD(EMRPLGBLT, LONG, xMask, 112, 4, 4); + TEST_FIELD(EMRPLGBLT, LONG, yMask, 116, 4, 4); + TEST_FIELD(EMRPLGBLT, DWORD, iUsageMask, 120, 4, 4); + TEST_FIELD(EMRPLGBLT, DWORD, offBmiMask, 124, 4, 4); + TEST_FIELD(EMRPLGBLT, DWORD, cbBmiMask, 128, 4, 4); + TEST_FIELD(EMRPLGBLT, DWORD, offBitsMask, 132, 4, 4); + TEST_FIELD(EMRPLGBLT, DWORD, cbBitsMask, 136, 4, 4); + + /* EMRPOLYDRAW (pack 4) */ + TEST_TYPE(EMRPOLYDRAW, 40, 4); + TEST_FIELD(EMRPOLYDRAW, EMR, emr, 0, 8, 4); + TEST_FIELD(EMRPOLYDRAW, RECTL, rclBounds, 8, 16, 4); + TEST_FIELD(EMRPOLYDRAW, DWORD, cptl, 24, 4, 4); + TEST_FIELD(EMRPOLYDRAW, POINTL[1], aptl, 28, 8, 4); + TEST_FIELD(EMRPOLYDRAW, BYTE[1], abTypes, 36, 1, 1); + + /* EMRPOLYLINE (pack 4) */ + TEST_TYPE(EMRPOLYLINE, 36, 4); + TEST_FIELD(EMRPOLYLINE, EMR, emr, 0, 8, 4); + TEST_FIELD(EMRPOLYLINE, RECTL, rclBounds, 8, 16, 4); + TEST_FIELD(EMRPOLYLINE, DWORD, cptl, 24, 4, 4); + TEST_FIELD(EMRPOLYLINE, POINTL[1], aptl, 28, 8, 4); + + /* EMRPOLYPOLYLINE (pack 4) */ + TEST_TYPE(EMRPOLYPOLYLINE, 44, 4); + TEST_FIELD(EMRPOLYPOLYLINE, EMR, emr, 0, 8, 4); + TEST_FIELD(EMRPOLYPOLYLINE, RECTL, rclBounds, 8, 16, 4); + TEST_FIELD(EMRPOLYPOLYLINE, DWORD, nPolys, 24, 4, 4); + TEST_FIELD(EMRPOLYPOLYLINE, DWORD, cptl, 28, 4, 4); + TEST_FIELD(EMRPOLYPOLYLINE, DWORD[1], aPolyCounts, 32, 4, 4); + TEST_FIELD(EMRPOLYPOLYLINE, POINTL[1], aptl, 36, 8, 4); + + /* EMRPOLYTEXTOUTA (pack 4) */ + TEST_TYPE(EMRPOLYTEXTOUTA, 80, 4); + TEST_FIELD(EMRPOLYTEXTOUTA, EMR, emr, 0, 8, 4); + TEST_FIELD(EMRPOLYTEXTOUTA, RECTL, rclBounds, 8, 16, 4); + TEST_FIELD(EMRPOLYTEXTOUTA, DWORD, iGraphicsMode, 24, 4, 4); + TEST_FIELD(EMRPOLYTEXTOUTA, FLOAT, exScale, 28, 4, 4); + TEST_FIELD(EMRPOLYTEXTOUTA, FLOAT, eyScale, 32, 4, 4); + TEST_FIELD(EMRPOLYTEXTOUTA, LONG, cStrings, 36, 4, 4); + TEST_FIELD(EMRPOLYTEXTOUTA, EMRTEXT[1], aemrtext, 40, 40, 4); + + /* EMRRESIZEPALETTE (pack 4) */ + TEST_TYPE(EMRRESIZEPALETTE, 16, 4); + TEST_FIELD(EMRRESIZEPALETTE, EMR, emr, 0, 8, 4); + TEST_FIELD(EMRRESIZEPALETTE, DWORD, ihPal, 8, 4, 4); + TEST_FIELD(EMRRESIZEPALETTE, DWORD, cEntries, 12, 4, 4); + + /* EMRRESTOREDC (pack 4) */ + TEST_TYPE(EMRRESTOREDC, 12, 4); + TEST_FIELD(EMRRESTOREDC, EMR, emr, 0, 8, 4); + TEST_FIELD(EMRRESTOREDC, LONG, iRelative, 8, 4, 4); + + /* EMRROUNDRECT (pack 4) */ + TEST_TYPE(EMRROUNDRECT, 32, 4); + TEST_FIELD(EMRROUNDRECT, EMR, emr, 0, 8, 4); + TEST_FIELD(EMRROUNDRECT, RECTL, rclBox, 8, 16, 4); + TEST_FIELD(EMRROUNDRECT, SIZEL, szlCorner, 24, 8, 4); + + /* EMRSCALEVIEWPORTEXTEX (pack 4) */ + TEST_TYPE(EMRSCALEVIEWPORTEXTEX, 24, 4); + TEST_FIELD(EMRSCALEVIEWPORTEXTEX, EMR, emr, 0, 8, 4); + TEST_FIELD(EMRSCALEVIEWPORTEXTEX, LONG, xNum, 8, 4, 4); + TEST_FIELD(EMRSCALEVIEWPORTEXTEX, LONG, xDenom, 12, 4, 4); + TEST_FIELD(EMRSCALEVIEWPORTEXTEX, LONG, yNum, 16, 4, 4); + TEST_FIELD(EMRSCALEVIEWPORTEXTEX, LONG, yDenom, 20, 4, 4); + + /* EMRSELECTCLIPPATH (pack 4) */ + TEST_TYPE(EMRSELECTCLIPPATH, 12, 4); + TEST_FIELD(EMRSELECTCLIPPATH, EMR, emr, 0, 8, 4); + TEST_FIELD(EMRSELECTCLIPPATH, DWORD, iMode, 8, 4, 4); + + /* EMRSELECTPALETTE (pack 4) */ + TEST_TYPE(EMRSELECTPALETTE, 12, 4); + TEST_FIELD(EMRSELECTPALETTE, EMR, emr, 0, 8, 4); + TEST_FIELD(EMRSELECTPALETTE, DWORD, ihPal, 8, 4, 4); + + /* EMRSETARCDIRECTION (pack 4) */ + TEST_TYPE(EMRSETARCDIRECTION, 12, 4); + TEST_FIELD(EMRSETARCDIRECTION, EMR, emr, 0, 8, 4); + TEST_FIELD(EMRSETARCDIRECTION, DWORD, iArcDirection, 8, 4, 4); + + /* EMRSETBKCOLOR (pack 4) */ + TEST_TYPE(EMRSETBKCOLOR, 12, 4); + TEST_FIELD(EMRSETBKCOLOR, EMR, emr, 0, 8, 4); + TEST_FIELD(EMRSETBKCOLOR, COLORREF, crColor, 8, 4, 4); + + /* EMRSETBRUSHORGEX (pack 4) */ + TEST_TYPE(EMRSETBRUSHORGEX, 16, 4); + TEST_FIELD(EMRSETBRUSHORGEX, EMR, emr, 0, 8, 4); + TEST_FIELD(EMRSETBRUSHORGEX, POINTL, ptlOrigin, 8, 8, 4); + + /* EMRSETCOLORADJUSTMENT (pack 4) */ + TEST_TYPE(EMRSETCOLORADJUSTMENT, 32, 4); + TEST_FIELD(EMRSETCOLORADJUSTMENT, EMR, emr, 0, 8, 4); + TEST_FIELD(EMRSETCOLORADJUSTMENT, COLORADJUSTMENT, ColorAdjustment, 8, 24, 2); + + /* EMRSETDIBITSTODEIVCE (pack 4) */ + TEST_TYPE(EMRSETDIBITSTODEIVCE, 76, 4); + TEST_FIELD(EMRSETDIBITSTODEIVCE, EMR, emr, 0, 8, 4); + TEST_FIELD(EMRSETDIBITSTODEIVCE, RECTL, rclBounds, 8, 16, 4); + TEST_FIELD(EMRSETDIBITSTODEIVCE, LONG, xDest, 24, 4, 4); + TEST_FIELD(EMRSETDIBITSTODEIVCE, LONG, yDest, 28, 4, 4); + TEST_FIELD(EMRSETDIBITSTODEIVCE, LONG, xSrc, 32, 4, 4); + TEST_FIELD(EMRSETDIBITSTODEIVCE, LONG, ySrc, 36, 4, 4); + TEST_FIELD(EMRSETDIBITSTODEIVCE, LONG, cxSrc, 40, 4, 4); + TEST_FIELD(EMRSETDIBITSTODEIVCE, LONG, cySrc, 44, 4, 4); + TEST_FIELD(EMRSETDIBITSTODEIVCE, DWORD, offBmiSrc, 48, 4, 4); + TEST_FIELD(EMRSETDIBITSTODEIVCE, DWORD, cbBmiSrc, 52, 4, 4); + TEST_FIELD(EMRSETDIBITSTODEIVCE, DWORD, offBitsSrc, 56, 4, 4); + TEST_FIELD(EMRSETDIBITSTODEIVCE, DWORD, cbBitsSrc, 60, 4, 4); + TEST_FIELD(EMRSETDIBITSTODEIVCE, DWORD, iUsageSrc, 64, 4, 4); + TEST_FIELD(EMRSETDIBITSTODEIVCE, DWORD, iStartScan, 68, 4, 4); + TEST_FIELD(EMRSETDIBITSTODEIVCE, DWORD, cScans, 72, 4, 4); + + /* EMRSETMAPPERFLAGS (pack 4) */ + TEST_TYPE(EMRSETMAPPERFLAGS, 12, 4); + TEST_FIELD(EMRSETMAPPERFLAGS, EMR, emr, 0, 8, 4); + TEST_FIELD(EMRSETMAPPERFLAGS, DWORD, dwFlags, 8, 4, 4); + + /* EMRSETMITERLIMIT (pack 4) */ + TEST_TYPE(EMRSETMITERLIMIT, 12, 4); + TEST_FIELD(EMRSETMITERLIMIT, EMR, emr, 0, 8, 4); + TEST_FIELD(EMRSETMITERLIMIT, FLOAT, eMiterLimit, 8, 4, 4); + + /* EMRSETPIXELV (pack 4) */ + TEST_TYPE(EMRSETPIXELV, 20, 4); + TEST_FIELD(EMRSETPIXELV, EMR, emr, 0, 8, 4); + TEST_FIELD(EMRSETPIXELV, POINTL, ptlPixel, 8, 8, 4); + TEST_FIELD(EMRSETPIXELV, COLORREF, crColor, 16, 4, 4); + + /* EMRSETTEXTJUSTIFICATION (pack 4) */ + TEST_TYPE(EMRSETTEXTJUSTIFICATION, 16, 4); + TEST_FIELD(EMRSETTEXTJUSTIFICATION, EMR, emr, 0, 8, 4); + TEST_FIELD(EMRSETTEXTJUSTIFICATION, INT, nBreakExtra, 8, 4, 4); + TEST_FIELD(EMRSETTEXTJUSTIFICATION, INT, nBreakCount, 12, 4, 4); + + /* EMRSETVIEWPORTEXTEX (pack 4) */ + TEST_TYPE(EMRSETVIEWPORTEXTEX, 16, 4); + TEST_FIELD(EMRSETVIEWPORTEXTEX, EMR, emr, 0, 8, 4); + TEST_FIELD(EMRSETVIEWPORTEXTEX, SIZEL, szlExtent, 8, 8, 4); + + /* EMRSETWORLDTRANSFORM (pack 4) */ + TEST_TYPE(EMRSETWORLDTRANSFORM, 32, 4); + TEST_FIELD(EMRSETWORLDTRANSFORM, EMR, emr, 0, 8, 4); + TEST_FIELD(EMRSETWORLDTRANSFORM, XFORM, xform, 8, 24, 4); + + /* EMRSTRETCHBLT (pack 4) */ + TEST_TYPE(EMRSTRETCHBLT, 108, 4); + TEST_FIELD(EMRSTRETCHBLT, EMR, emr, 0, 8, 4); + TEST_FIELD(EMRSTRETCHBLT, RECTL, rclBounds, 8, 16, 4); + TEST_FIELD(EMRSTRETCHBLT, LONG, xDest, 24, 4, 4); + TEST_FIELD(EMRSTRETCHBLT, LONG, yDest, 28, 4, 4); + TEST_FIELD(EMRSTRETCHBLT, LONG, cxDest, 32, 4, 4); + TEST_FIELD(EMRSTRETCHBLT, LONG, cyDest, 36, 4, 4); + TEST_FIELD(EMRSTRETCHBLT, DWORD, dwRop, 40, 4, 4); + TEST_FIELD(EMRSTRETCHBLT, LONG, xSrc, 44, 4, 4); + TEST_FIELD(EMRSTRETCHBLT, LONG, ySrc, 48, 4, 4); + TEST_FIELD(EMRSTRETCHBLT, XFORM, xformSrc, 52, 24, 4); + TEST_FIELD(EMRSTRETCHBLT, COLORREF, crBkColorSrc, 76, 4, 4); + TEST_FIELD(EMRSTRETCHBLT, DWORD, iUsageSrc, 80, 4, 4); + TEST_FIELD(EMRSTRETCHBLT, DWORD, offBmiSrc, 84, 4, 4); + TEST_FIELD(EMRSTRETCHBLT, DWORD, cbBmiSrc, 88, 4, 4); + TEST_FIELD(EMRSTRETCHBLT, DWORD, offBitsSrc, 92, 4, 4); + TEST_FIELD(EMRSTRETCHBLT, DWORD, cbBitsSrc, 96, 4, 4); + TEST_FIELD(EMRSTRETCHBLT, LONG, cxSrc, 100, 4, 4); + TEST_FIELD(EMRSTRETCHBLT, LONG, cySrc, 104, 4, 4); + + /* EMRSTRETCHDIBITS (pack 4) */ + TEST_TYPE(EMRSTRETCHDIBITS, 80, 4); + TEST_FIELD(EMRSTRETCHDIBITS, EMR, emr, 0, 8, 4); + TEST_FIELD(EMRSTRETCHDIBITS, RECTL, rclBounds, 8, 16, 4); + TEST_FIELD(EMRSTRETCHDIBITS, LONG, xDest, 24, 4, 4); + TEST_FIELD(EMRSTRETCHDIBITS, LONG, yDest, 28, 4, 4); + TEST_FIELD(EMRSTRETCHDIBITS, LONG, xSrc, 32, 4, 4); + TEST_FIELD(EMRSTRETCHDIBITS, LONG, ySrc, 36, 4, 4); + TEST_FIELD(EMRSTRETCHDIBITS, LONG, cxSrc, 40, 4, 4); + TEST_FIELD(EMRSTRETCHDIBITS, LONG, cySrc, 44, 4, 4); + TEST_FIELD(EMRSTRETCHDIBITS, DWORD, offBmiSrc, 48, 4, 4); + TEST_FIELD(EMRSTRETCHDIBITS, DWORD, cbBmiSrc, 52, 4, 4); + TEST_FIELD(EMRSTRETCHDIBITS, DWORD, offBitsSrc, 56, 4, 4); + TEST_FIELD(EMRSTRETCHDIBITS, DWORD, cbBitsSrc, 60, 4, 4); + TEST_FIELD(EMRSTRETCHDIBITS, DWORD, iUsageSrc, 64, 4, 4); + TEST_FIELD(EMRSTRETCHDIBITS, DWORD, dwRop, 68, 4, 4); + TEST_FIELD(EMRSTRETCHDIBITS, LONG, cxDest, 72, 4, 4); + TEST_FIELD(EMRSTRETCHDIBITS, LONG, cyDest, 76, 4, 4); + + /* EMRTEXT (pack 4) */ + TEST_TYPE(EMRTEXT, 40, 4); + TEST_FIELD(EMRTEXT, POINTL, ptlReference, 0, 8, 4); + TEST_FIELD(EMRTEXT, DWORD, nChars, 8, 4, 4); + TEST_FIELD(EMRTEXT, DWORD, offString, 12, 4, 4); + TEST_FIELD(EMRTEXT, DWORD, fOptions, 16, 4, 4); + TEST_FIELD(EMRTEXT, RECTL, rcl, 20, 16, 4); + TEST_FIELD(EMRTEXT, DWORD, offDx, 36, 4, 4); + + /* ENHMETAHEADER (pack 4) */ + TEST_TYPE(ENHMETAHEADER, 108, 4); + TEST_FIELD(ENHMETAHEADER, DWORD, iType, 0, 4, 4); + TEST_FIELD(ENHMETAHEADER, DWORD, nSize, 4, 4, 4); + TEST_FIELD(ENHMETAHEADER, RECTL, rclBounds, 8, 16, 4); + TEST_FIELD(ENHMETAHEADER, RECTL, rclFrame, 24, 16, 4); + TEST_FIELD(ENHMETAHEADER, DWORD, dSignature, 40, 4, 4); + TEST_FIELD(ENHMETAHEADER, DWORD, nVersion, 44, 4, 4); + TEST_FIELD(ENHMETAHEADER, DWORD, nBytes, 48, 4, 4); + TEST_FIELD(ENHMETAHEADER, DWORD, nRecords, 52, 4, 4); + TEST_FIELD(ENHMETAHEADER, WORD, nHandles, 56, 2, 2); + TEST_FIELD(ENHMETAHEADER, WORD, sReserved, 58, 2, 2); + TEST_FIELD(ENHMETAHEADER, DWORD, nDescription, 60, 4, 4); + TEST_FIELD(ENHMETAHEADER, DWORD, offDescription, 64, 4, 4); + TEST_FIELD(ENHMETAHEADER, DWORD, nPalEntries, 68, 4, 4); + TEST_FIELD(ENHMETAHEADER, SIZEL, szlDevice, 72, 8, 4); + TEST_FIELD(ENHMETAHEADER, SIZEL, szlMillimeters, 80, 8, 4); + TEST_FIELD(ENHMETAHEADER, DWORD, cbPixelFormat, 88, 4, 4); + TEST_FIELD(ENHMETAHEADER, DWORD, offPixelFormat, 92, 4, 4); + TEST_FIELD(ENHMETAHEADER, DWORD, bOpenGL, 96, 4, 4); + TEST_FIELD(ENHMETAHEADER, SIZEL, szlMicrometers, 100, 8, 4); + + /* ENHMETARECORD (pack 4) */ + TEST_TYPE(ENHMETARECORD, 12, 4); + TEST_FIELD(ENHMETARECORD, DWORD, iType, 0, 4, 4); + TEST_FIELD(ENHMETARECORD, DWORD, nSize, 4, 4, 4); + TEST_FIELD(ENHMETARECORD, DWORD[1], dParm, 8, 4, 4); + + /* ENUMLOGFONTA (pack 4) */ + TEST_TYPE(ENUMLOGFONTA, 156, 4); + TEST_FIELD(ENUMLOGFONTA, LOGFONTA, elfLogFont, 0, 60, 4); + TEST_FIELD(ENUMLOGFONTA, BYTE[LF_FULLFACESIZE], elfFullName, 60, 64, 1); + TEST_FIELD(ENUMLOGFONTA, BYTE[LF_FACESIZE], elfStyle, 124, 32, 1); + + /* ENUMLOGFONTEXA (pack 4) */ + TEST_TYPE(ENUMLOGFONTEXA, 188, 4); + TEST_FIELD(ENUMLOGFONTEXA, LOGFONTA, elfLogFont, 0, 60, 4); + TEST_FIELD(ENUMLOGFONTEXA, BYTE[LF_FULLFACESIZE], elfFullName, 60, 64, 1); + TEST_FIELD(ENUMLOGFONTEXA, BYTE[LF_FACESIZE], elfStyle, 124, 32, 1); + TEST_FIELD(ENUMLOGFONTEXA, BYTE[LF_FACESIZE], elfScript, 156, 32, 1); + + /* ENUMLOGFONTEXW (pack 4) */ + TEST_TYPE(ENUMLOGFONTEXW, 348, 4); + TEST_FIELD(ENUMLOGFONTEXW, LOGFONTW, elfLogFont, 0, 92, 4); + TEST_FIELD(ENUMLOGFONTEXW, WCHAR[LF_FULLFACESIZE], elfFullName, 92, 128, 2); + TEST_FIELD(ENUMLOGFONTEXW, WCHAR[LF_FACESIZE], elfStyle, 220, 64, 2); + TEST_FIELD(ENUMLOGFONTEXW, WCHAR[LF_FACESIZE], elfScript, 284, 64, 2); + + /* ENUMLOGFONTW (pack 4) */ + TEST_TYPE(ENUMLOGFONTW, 284, 4); + TEST_FIELD(ENUMLOGFONTW, LOGFONTW, elfLogFont, 0, 92, 4); + TEST_FIELD(ENUMLOGFONTW, WCHAR[LF_FULLFACESIZE], elfFullName, 92, 128, 2); + TEST_FIELD(ENUMLOGFONTW, WCHAR[LF_FACESIZE], elfStyle, 220, 64, 2); + + /* EXTLOGFONTA (pack 4) */ + TEST_TYPE(EXTLOGFONTA, 192, 4); + TEST_FIELD(EXTLOGFONTA, LOGFONTA, elfLogFont, 0, 60, 4); + TEST_FIELD(EXTLOGFONTA, BYTE[LF_FULLFACESIZE], elfFullName, 60, 64, 1); + TEST_FIELD(EXTLOGFONTA, BYTE[LF_FACESIZE], elfStyle, 124, 32, 1); + TEST_FIELD(EXTLOGFONTA, DWORD, elfVersion, 156, 4, 4); + TEST_FIELD(EXTLOGFONTA, DWORD, elfStyleSize, 160, 4, 4); + TEST_FIELD(EXTLOGFONTA, DWORD, elfMatch, 164, 4, 4); + TEST_FIELD(EXTLOGFONTA, DWORD, elfReserved, 168, 4, 4); + TEST_FIELD(EXTLOGFONTA, BYTE[ELF_VENDOR_SIZE], elfVendorId, 172, 4, 1); + TEST_FIELD(EXTLOGFONTA, DWORD, elfCulture, 176, 4, 4); + TEST_FIELD(EXTLOGFONTA, PANOSE, elfPanose, 180, 10, 1); + + /* EXTLOGFONTW (pack 4) */ + TEST_TYPE(EXTLOGFONTW, 320, 4); + TEST_FIELD(EXTLOGFONTW, LOGFONTW, elfLogFont, 0, 92, 4); + TEST_FIELD(EXTLOGFONTW, WCHAR[LF_FULLFACESIZE], elfFullName, 92, 128, 2); + TEST_FIELD(EXTLOGFONTW, WCHAR[LF_FACESIZE], elfStyle, 220, 64, 2); + TEST_FIELD(EXTLOGFONTW, DWORD, elfVersion, 284, 4, 4); + TEST_FIELD(EXTLOGFONTW, DWORD, elfStyleSize, 288, 4, 4); + TEST_FIELD(EXTLOGFONTW, DWORD, elfMatch, 292, 4, 4); + TEST_FIELD(EXTLOGFONTW, DWORD, elfReserved, 296, 4, 4); + TEST_FIELD(EXTLOGFONTW, BYTE[ELF_VENDOR_SIZE], elfVendorId, 300, 4, 1); + TEST_FIELD(EXTLOGFONTW, DWORD, elfCulture, 304, 4, 4); + TEST_FIELD(EXTLOGFONTW, PANOSE, elfPanose, 308, 10, 1); + + /* EXTLOGPEN (pack 4) */ + TEST_TYPE(EXTLOGPEN, 28, 4); + TEST_FIELD(EXTLOGPEN, DWORD, elpPenStyle, 0, 4, 4); + TEST_FIELD(EXTLOGPEN, DWORD, elpWidth, 4, 4, 4); + TEST_FIELD(EXTLOGPEN, UINT, elpBrushStyle, 8, 4, 4); + TEST_FIELD(EXTLOGPEN, COLORREF, elpColor, 12, 4, 4); + TEST_FIELD(EXTLOGPEN, LONG, elpHatch, 16, 4, 4); + TEST_FIELD(EXTLOGPEN, DWORD, elpNumEntries, 20, 4, 4); + TEST_FIELD(EXTLOGPEN, DWORD[1], elpStyleEntry, 24, 4, 4); + + /* FIXED (pack 4) */ + TEST_TYPE(FIXED, 4, 2); + TEST_FIELD(FIXED, WORD, fract, 0, 2, 2); + TEST_FIELD(FIXED, SHORT, value, 2, 2, 2); + + /* FONTSIGNATURE (pack 4) */ + TEST_TYPE(FONTSIGNATURE, 24, 4); + TEST_FIELD(FONTSIGNATURE, DWORD[4], fsUsb, 0, 16, 4); + TEST_FIELD(FONTSIGNATURE, DWORD[2], fsCsb, 16, 8, 4); + + /* GCP_RESULTSA (pack 4) */ + TEST_TYPE(GCP_RESULTSA, 36, 4); + TEST_FIELD(GCP_RESULTSA, DWORD, lStructSize, 0, 4, 4); + TEST_FIELD(GCP_RESULTSA, LPSTR, lpOutString, 4, 4, 4); + TEST_FIELD(GCP_RESULTSA, UINT *, lpOrder, 8, 4, 4); + TEST_FIELD(GCP_RESULTSA, INT *, lpDx, 12, 4, 4); + TEST_FIELD(GCP_RESULTSA, INT *, lpCaretPos, 16, 4, 4); + TEST_FIELD(GCP_RESULTSA, LPSTR, lpClass, 20, 4, 4); + TEST_FIELD(GCP_RESULTSA, LPWSTR, lpGlyphs, 24, 4, 4); + TEST_FIELD(GCP_RESULTSA, UINT, nGlyphs, 28, 4, 4); + TEST_FIELD(GCP_RESULTSA, UINT, nMaxFit, 32, 4, 4); + + /* GCP_RESULTSW (pack 4) */ + TEST_TYPE(GCP_RESULTSW, 36, 4); + TEST_FIELD(GCP_RESULTSW, DWORD, lStructSize, 0, 4, 4); + TEST_FIELD(GCP_RESULTSW, LPWSTR, lpOutString, 4, 4, 4); + TEST_FIELD(GCP_RESULTSW, UINT *, lpOrder, 8, 4, 4); + TEST_FIELD(GCP_RESULTSW, INT *, lpDx, 12, 4, 4); + TEST_FIELD(GCP_RESULTSW, INT *, lpCaretPos, 16, 4, 4); + TEST_FIELD(GCP_RESULTSW, LPSTR, lpClass, 20, 4, 4); + TEST_FIELD(GCP_RESULTSW, LPWSTR, lpGlyphs, 24, 4, 4); + TEST_FIELD(GCP_RESULTSW, UINT, nGlyphs, 28, 4, 4); + TEST_FIELD(GCP_RESULTSW, UINT, nMaxFit, 32, 4, 4); + + /* GLYPHMETRICS (pack 4) */ + TEST_TYPE(GLYPHMETRICS, 20, 4); + TEST_FIELD(GLYPHMETRICS, UINT, gmBlackBoxX, 0, 4, 4); + TEST_FIELD(GLYPHMETRICS, UINT, gmBlackBoxY, 4, 4, 4); + TEST_FIELD(GLYPHMETRICS, POINT, gmptGlyphOrigin, 8, 8, 4); + TEST_FIELD(GLYPHMETRICS, SHORT, gmCellIncX, 16, 2, 2); + TEST_FIELD(GLYPHMETRICS, SHORT, gmCellIncY, 18, 2, 2); + + /* GRADIENT_RECT (pack 4) */ + TEST_TYPE(GRADIENT_RECT, 8, 4); + TEST_FIELD(GRADIENT_RECT, ULONG, UpperLeft, 0, 4, 4); + TEST_FIELD(GRADIENT_RECT, ULONG, LowerRight, 4, 4, 4); + + /* GRADIENT_TRIANGLE (pack 4) */ + TEST_TYPE(GRADIENT_TRIANGLE, 12, 4); + TEST_FIELD(GRADIENT_TRIANGLE, ULONG, Vertex1, 0, 4, 4); + TEST_FIELD(GRADIENT_TRIANGLE, ULONG, Vertex2, 4, 4, 4); + TEST_FIELD(GRADIENT_TRIANGLE, ULONG, Vertex3, 8, 4, 4); + + /* HANDLETABLE (pack 4) */ + TEST_TYPE(HANDLETABLE, 4, 4); + TEST_FIELD(HANDLETABLE, HGDIOBJ[1], objectHandle, 0, 4, 4); + + /* KERNINGPAIR (pack 4) */ + TEST_TYPE(KERNINGPAIR, 8, 4); + TEST_FIELD(KERNINGPAIR, WORD, wFirst, 0, 2, 2); + TEST_FIELD(KERNINGPAIR, WORD, wSecond, 2, 2, 2); + TEST_FIELD(KERNINGPAIR, INT, iKernAmount, 4, 4, 4); + + /* LOCALESIGNATURE (pack 4) */ + TEST_TYPE(LOCALESIGNATURE, 32, 4); + TEST_FIELD(LOCALESIGNATURE, DWORD[4], lsUsb, 0, 16, 4); + TEST_FIELD(LOCALESIGNATURE, DWORD[2], lsCsbDefault, 16, 8, 4); + TEST_FIELD(LOCALESIGNATURE, DWORD[2], lsCsbSupported, 24, 8, 4); + + /* LOGBRUSH (pack 4) */ + TEST_TYPE(LOGBRUSH, 12, 4); + TEST_FIELD(LOGBRUSH, UINT, lbStyle, 0, 4, 4); + TEST_FIELD(LOGBRUSH, COLORREF, lbColor, 4, 4, 4); + TEST_FIELD(LOGBRUSH, INT, lbHatch, 8, 4, 4); + + /* LOGCOLORSPACEA (pack 4) */ + TEST_TYPE(LOGCOLORSPACEA, 328, 4); + TEST_FIELD(LOGCOLORSPACEA, DWORD, lcsSignature, 0, 4, 4); + TEST_FIELD(LOGCOLORSPACEA, DWORD, lcsVersion, 4, 4, 4); + TEST_FIELD(LOGCOLORSPACEA, DWORD, lcsSize, 8, 4, 4); + TEST_FIELD(LOGCOLORSPACEA, LCSCSTYPE, lcsCSType, 12, 4, 4); + TEST_FIELD(LOGCOLORSPACEA, LCSGAMUTMATCH, lcsIntent, 16, 4, 4); + TEST_FIELD(LOGCOLORSPACEA, CIEXYZTRIPLE, lcsEndpoints, 20, 36, 4); + TEST_FIELD(LOGCOLORSPACEA, DWORD, lcsGammaRed, 56, 4, 4); + TEST_FIELD(LOGCOLORSPACEA, DWORD, lcsGammaGreen, 60, 4, 4); + TEST_FIELD(LOGCOLORSPACEA, DWORD, lcsGammaBlue, 64, 4, 4); + TEST_FIELD(LOGCOLORSPACEA, CHAR[MAX_PATH], lcsFilename, 68, 260, 1); + + /* LOGCOLORSPACEW (pack 4) */ + TEST_TYPE(LOGCOLORSPACEW, 588, 4); + TEST_FIELD(LOGCOLORSPACEW, DWORD, lcsSignature, 0, 4, 4); + TEST_FIELD(LOGCOLORSPACEW, DWORD, lcsVersion, 4, 4, 4); + TEST_FIELD(LOGCOLORSPACEW, DWORD, lcsSize, 8, 4, 4); + TEST_FIELD(LOGCOLORSPACEW, LCSCSTYPE, lcsCSType, 12, 4, 4); + TEST_FIELD(LOGCOLORSPACEW, LCSGAMUTMATCH, lcsIntent, 16, 4, 4); + TEST_FIELD(LOGCOLORSPACEW, CIEXYZTRIPLE, lcsEndpoints, 20, 36, 4); + TEST_FIELD(LOGCOLORSPACEW, DWORD, lcsGammaRed, 56, 4, 4); + TEST_FIELD(LOGCOLORSPACEW, DWORD, lcsGammaGreen, 60, 4, 4); + TEST_FIELD(LOGCOLORSPACEW, DWORD, lcsGammaBlue, 64, 4, 4); + TEST_FIELD(LOGCOLORSPACEW, WCHAR[MAX_PATH], lcsFilename, 68, 520, 2); + + /* LOGFONTA (pack 4) */ + TEST_TYPE(LOGFONTA, 60, 4); + TEST_FIELD(LOGFONTA, LONG, lfHeight, 0, 4, 4); + TEST_FIELD(LOGFONTA, LONG, lfWidth, 4, 4, 4); + TEST_FIELD(LOGFONTA, LONG, lfEscapement, 8, 4, 4); + TEST_FIELD(LOGFONTA, LONG, lfOrientation, 12, 4, 4); + TEST_FIELD(LOGFONTA, LONG, lfWeight, 16, 4, 4); + TEST_FIELD(LOGFONTA, BYTE, lfItalic, 20, 1, 1); + TEST_FIELD(LOGFONTA, BYTE, lfUnderline, 21, 1, 1); + TEST_FIELD(LOGFONTA, BYTE, lfStrikeOut, 22, 1, 1); + TEST_FIELD(LOGFONTA, BYTE, lfCharSet, 23, 1, 1); + TEST_FIELD(LOGFONTA, BYTE, lfOutPrecision, 24, 1, 1); + TEST_FIELD(LOGFONTA, BYTE, lfClipPrecision, 25, 1, 1); + TEST_FIELD(LOGFONTA, BYTE, lfQuality, 26, 1, 1); + TEST_FIELD(LOGFONTA, BYTE, lfPitchAndFamily, 27, 1, 1); + TEST_FIELD(LOGFONTA, CHAR[LF_FACESIZE], lfFaceName, 28, 32, 1); + + /* LOGFONTW (pack 4) */ + TEST_TYPE(LOGFONTW, 92, 4); + TEST_FIELD(LOGFONTW, LONG, lfHeight, 0, 4, 4); + TEST_FIELD(LOGFONTW, LONG, lfWidth, 4, 4, 4); + TEST_FIELD(LOGFONTW, LONG, lfEscapement, 8, 4, 4); + TEST_FIELD(LOGFONTW, LONG, lfOrientation, 12, 4, 4); + TEST_FIELD(LOGFONTW, LONG, lfWeight, 16, 4, 4); + TEST_FIELD(LOGFONTW, BYTE, lfItalic, 20, 1, 1); + TEST_FIELD(LOGFONTW, BYTE, lfUnderline, 21, 1, 1); + TEST_FIELD(LOGFONTW, BYTE, lfStrikeOut, 22, 1, 1); + TEST_FIELD(LOGFONTW, BYTE, lfCharSet, 23, 1, 1); + TEST_FIELD(LOGFONTW, BYTE, lfOutPrecision, 24, 1, 1); + TEST_FIELD(LOGFONTW, BYTE, lfClipPrecision, 25, 1, 1); + TEST_FIELD(LOGFONTW, BYTE, lfQuality, 26, 1, 1); + TEST_FIELD(LOGFONTW, BYTE, lfPitchAndFamily, 27, 1, 1); + TEST_FIELD(LOGFONTW, WCHAR[LF_FACESIZE], lfFaceName, 28, 64, 2); + + /* LOGPEN (pack 4) */ + TEST_TYPE(LOGPEN, 16, 4); + TEST_FIELD(LOGPEN, UINT, lopnStyle, 0, 4, 4); + TEST_FIELD(LOGPEN, POINT, lopnWidth, 4, 8, 4); + TEST_FIELD(LOGPEN, COLORREF, lopnColor, 12, 4, 4); + + /* MAT2 (pack 4) */ + TEST_TYPE(MAT2, 16, 2); + TEST_FIELD(MAT2, FIXED, eM11, 0, 4, 2); + TEST_FIELD(MAT2, FIXED, eM12, 4, 4, 2); + TEST_FIELD(MAT2, FIXED, eM21, 8, 4, 2); + TEST_FIELD(MAT2, FIXED, eM22, 12, 4, 2); + + /* METAFILEPICT (pack 4) */ + TEST_TYPE(METAFILEPICT, 16, 4); + TEST_FIELD(METAFILEPICT, LONG, mm, 0, 4, 4); + TEST_FIELD(METAFILEPICT, LONG, xExt, 4, 4, 4); + TEST_FIELD(METAFILEPICT, LONG, yExt, 8, 4, 4); + TEST_FIELD(METAFILEPICT, HMETAFILE, hMF, 12, 4, 4); + + /* METAHEADER (pack 2) */ + TEST_TYPE(METAHEADER, 18, 2); + TEST_FIELD(METAHEADER, WORD, mtType, 0, 2, 2); + TEST_FIELD(METAHEADER, WORD, mtHeaderSize, 2, 2, 2); + TEST_FIELD(METAHEADER, WORD, mtVersion, 4, 2, 2); + TEST_FIELD(METAHEADER, DWORD, mtSize, 6, 4, 2); + TEST_FIELD(METAHEADER, WORD, mtNoObjects, 10, 2, 2); + TEST_FIELD(METAHEADER, DWORD, mtMaxRecord, 12, 4, 2); + TEST_FIELD(METAHEADER, WORD, mtNoParameters, 16, 2, 2); + + /* METARECORD (pack 4) */ + TEST_TYPE(METARECORD, 8, 4); + TEST_FIELD(METARECORD, DWORD, rdSize, 0, 4, 4); + TEST_FIELD(METARECORD, WORD, rdFunction, 4, 2, 2); + TEST_FIELD(METARECORD, WORD[1], rdParm, 6, 2, 2); + + /* NEWTEXTMETRICA (pack 4) */ + TEST_TYPE(NEWTEXTMETRICA, 72, 4); + TEST_FIELD(NEWTEXTMETRICA, LONG, tmHeight, 0, 4, 4); + TEST_FIELD(NEWTEXTMETRICA, LONG, tmAscent, 4, 4, 4); + TEST_FIELD(NEWTEXTMETRICA, LONG, tmDescent, 8, 4, 4); + TEST_FIELD(NEWTEXTMETRICA, LONG, tmInternalLeading, 12, 4, 4); + TEST_FIELD(NEWTEXTMETRICA, LONG, tmExternalLeading, 16, 4, 4); + TEST_FIELD(NEWTEXTMETRICA, LONG, tmAveCharWidth, 20, 4, 4); + TEST_FIELD(NEWTEXTMETRICA, LONG, tmMaxCharWidth, 24, 4, 4); + TEST_FIELD(NEWTEXTMETRICA, LONG, tmWeight, 28, 4, 4); + TEST_FIELD(NEWTEXTMETRICA, LONG, tmOverhang, 32, 4, 4); + TEST_FIELD(NEWTEXTMETRICA, LONG, tmDigitizedAspectX, 36, 4, 4); + TEST_FIELD(NEWTEXTMETRICA, LONG, tmDigitizedAspectY, 40, 4, 4); + TEST_FIELD(NEWTEXTMETRICA, BYTE, tmFirstChar, 44, 1, 1); + TEST_FIELD(NEWTEXTMETRICA, BYTE, tmLastChar, 45, 1, 1); + TEST_FIELD(NEWTEXTMETRICA, BYTE, tmDefaultChar, 46, 1, 1); + TEST_FIELD(NEWTEXTMETRICA, BYTE, tmBreakChar, 47, 1, 1); + TEST_FIELD(NEWTEXTMETRICA, BYTE, tmItalic, 48, 1, 1); + TEST_FIELD(NEWTEXTMETRICA, BYTE, tmUnderlined, 49, 1, 1); + TEST_FIELD(NEWTEXTMETRICA, BYTE, tmStruckOut, 50, 1, 1); + TEST_FIELD(NEWTEXTMETRICA, BYTE, tmPitchAndFamily, 51, 1, 1); + TEST_FIELD(NEWTEXTMETRICA, BYTE, tmCharSet, 52, 1, 1); + TEST_FIELD(NEWTEXTMETRICA, DWORD, ntmFlags, 56, 4, 4); + TEST_FIELD(NEWTEXTMETRICA, UINT, ntmSizeEM, 60, 4, 4); + TEST_FIELD(NEWTEXTMETRICA, UINT, ntmCellHeight, 64, 4, 4); + TEST_FIELD(NEWTEXTMETRICA, UINT, ntmAvgWidth, 68, 4, 4); + + /* NEWTEXTMETRICEXA (pack 4) */ + TEST_TYPE(NEWTEXTMETRICEXA, 96, 4); + TEST_FIELD(NEWTEXTMETRICEXA, NEWTEXTMETRICA, ntmTm, 0, 72, 4); + TEST_FIELD(NEWTEXTMETRICEXA, FONTSIGNATURE, ntmFontSig, 72, 24, 4); + + /* NEWTEXTMETRICEXW (pack 4) */ + TEST_TYPE(NEWTEXTMETRICEXW, 100, 4); + TEST_FIELD(NEWTEXTMETRICEXW, NEWTEXTMETRICW, ntmTm, 0, 76, 4); + TEST_FIELD(NEWTEXTMETRICEXW, FONTSIGNATURE, ntmFontSig, 76, 24, 4); + + /* NEWTEXTMETRICW (pack 4) */ + TEST_TYPE(NEWTEXTMETRICW, 76, 4); + TEST_FIELD(NEWTEXTMETRICW, LONG, tmHeight, 0, 4, 4); + TEST_FIELD(NEWTEXTMETRICW, LONG, tmAscent, 4, 4, 4); + TEST_FIELD(NEWTEXTMETRICW, LONG, tmDescent, 8, 4, 4); + TEST_FIELD(NEWTEXTMETRICW, LONG, tmInternalLeading, 12, 4, 4); + TEST_FIELD(NEWTEXTMETRICW, LONG, tmExternalLeading, 16, 4, 4); + TEST_FIELD(NEWTEXTMETRICW, LONG, tmAveCharWidth, 20, 4, 4); + TEST_FIELD(NEWTEXTMETRICW, LONG, tmMaxCharWidth, 24, 4, 4); + TEST_FIELD(NEWTEXTMETRICW, LONG, tmWeight, 28, 4, 4); + TEST_FIELD(NEWTEXTMETRICW, LONG, tmOverhang, 32, 4, 4); + TEST_FIELD(NEWTEXTMETRICW, LONG, tmDigitizedAspectX, 36, 4, 4); + TEST_FIELD(NEWTEXTMETRICW, LONG, tmDigitizedAspectY, 40, 4, 4); + TEST_FIELD(NEWTEXTMETRICW, WCHAR, tmFirstChar, 44, 2, 2); + TEST_FIELD(NEWTEXTMETRICW, WCHAR, tmLastChar, 46, 2, 2); + TEST_FIELD(NEWTEXTMETRICW, WCHAR, tmDefaultChar, 48, 2, 2); + TEST_FIELD(NEWTEXTMETRICW, WCHAR, tmBreakChar, 50, 2, 2); + TEST_FIELD(NEWTEXTMETRICW, BYTE, tmItalic, 52, 1, 1); + TEST_FIELD(NEWTEXTMETRICW, BYTE, tmUnderlined, 53, 1, 1); + TEST_FIELD(NEWTEXTMETRICW, BYTE, tmStruckOut, 54, 1, 1); + TEST_FIELD(NEWTEXTMETRICW, BYTE, tmPitchAndFamily, 55, 1, 1); + TEST_FIELD(NEWTEXTMETRICW, BYTE, tmCharSet, 56, 1, 1); + TEST_FIELD(NEWTEXTMETRICW, DWORD, ntmFlags, 60, 4, 4); + TEST_FIELD(NEWTEXTMETRICW, UINT, ntmSizeEM, 64, 4, 4); + TEST_FIELD(NEWTEXTMETRICW, UINT, ntmCellHeight, 68, 4, 4); + TEST_FIELD(NEWTEXTMETRICW, UINT, ntmAvgWidth, 72, 4, 4); + + /* OUTLINETEXTMETRICA (pack 4) */ + TEST_TYPE(OUTLINETEXTMETRICA, 212, 4); + TEST_FIELD(OUTLINETEXTMETRICA, UINT, otmSize, 0, 4, 4); + TEST_FIELD(OUTLINETEXTMETRICA, TEXTMETRICA, otmTextMetrics, 4, 56, 4); + TEST_FIELD(OUTLINETEXTMETRICA, BYTE, otmFiller, 60, 1, 1); + TEST_FIELD(OUTLINETEXTMETRICA, PANOSE, otmPanoseNumber, 61, 10, 1); + TEST_FIELD(OUTLINETEXTMETRICA, UINT, otmfsSelection, 72, 4, 4); + TEST_FIELD(OUTLINETEXTMETRICA, UINT, otmfsType, 76, 4, 4); + TEST_FIELD(OUTLINETEXTMETRICA, INT, otmsCharSlopeRise, 80, 4, 4); + TEST_FIELD(OUTLINETEXTMETRICA, INT, otmsCharSlopeRun, 84, 4, 4); + TEST_FIELD(OUTLINETEXTMETRICA, INT, otmItalicAngle, 88, 4, 4); + TEST_FIELD(OUTLINETEXTMETRICA, UINT, otmEMSquare, 92, 4, 4); + TEST_FIELD(OUTLINETEXTMETRICA, INT, otmAscent, 96, 4, 4); + TEST_FIELD(OUTLINETEXTMETRICA, INT, otmDescent, 100, 4, 4); + TEST_FIELD(OUTLINETEXTMETRICA, UINT, otmLineGap, 104, 4, 4); + TEST_FIELD(OUTLINETEXTMETRICA, UINT, otmsCapEmHeight, 108, 4, 4); + TEST_FIELD(OUTLINETEXTMETRICA, UINT, otmsXHeight, 112, 4, 4); + TEST_FIELD(OUTLINETEXTMETRICA, RECT, otmrcFontBox, 116, 16, 4); + TEST_FIELD(OUTLINETEXTMETRICA, INT, otmMacAscent, 132, 4, 4); + TEST_FIELD(OUTLINETEXTMETRICA, INT, otmMacDescent, 136, 4, 4); + TEST_FIELD(OUTLINETEXTMETRICA, UINT, otmMacLineGap, 140, 4, 4); + TEST_FIELD(OUTLINETEXTMETRICA, UINT, otmusMinimumPPEM, 144, 4, 4); + TEST_FIELD(OUTLINETEXTMETRICA, POINT, otmptSubscriptSize, 148, 8, 4); + TEST_FIELD(OUTLINETEXTMETRICA, POINT, otmptSubscriptOffset, 156, 8, 4); + TEST_FIELD(OUTLINETEXTMETRICA, POINT, otmptSuperscriptSize, 164, 8, 4); + TEST_FIELD(OUTLINETEXTMETRICA, POINT, otmptSuperscriptOffset, 172, 8, 4); + TEST_FIELD(OUTLINETEXTMETRICA, UINT, otmsStrikeoutSize, 180, 4, 4); + TEST_FIELD(OUTLINETEXTMETRICA, INT, otmsStrikeoutPosition, 184, 4, 4); + TEST_FIELD(OUTLINETEXTMETRICA, INT, otmsUnderscoreSize, 188, 4, 4); + TEST_FIELD(OUTLINETEXTMETRICA, INT, otmsUnderscorePosition, 192, 4, 4); + TEST_FIELD(OUTLINETEXTMETRICA, LPSTR, otmpFamilyName, 196, 4, 4); + TEST_FIELD(OUTLINETEXTMETRICA, LPSTR, otmpFaceName, 200, 4, 4); + TEST_FIELD(OUTLINETEXTMETRICA, LPSTR, otmpStyleName, 204, 4, 4); + TEST_FIELD(OUTLINETEXTMETRICA, LPSTR, otmpFullName, 208, 4, 4); + + /* OUTLINETEXTMETRICW (pack 4) */ + TEST_TYPE(OUTLINETEXTMETRICW, 216, 4); + TEST_FIELD(OUTLINETEXTMETRICW, UINT, otmSize, 0, 4, 4); + TEST_FIELD(OUTLINETEXTMETRICW, TEXTMETRICW, otmTextMetrics, 4, 60, 4); + TEST_FIELD(OUTLINETEXTMETRICW, BYTE, otmFiller, 64, 1, 1); + TEST_FIELD(OUTLINETEXTMETRICW, PANOSE, otmPanoseNumber, 65, 10, 1); + TEST_FIELD(OUTLINETEXTMETRICW, UINT, otmfsSelection, 76, 4, 4); + TEST_FIELD(OUTLINETEXTMETRICW, UINT, otmfsType, 80, 4, 4); + TEST_FIELD(OUTLINETEXTMETRICW, INT, otmsCharSlopeRise, 84, 4, 4); + TEST_FIELD(OUTLINETEXTMETRICW, INT, otmsCharSlopeRun, 88, 4, 4); + TEST_FIELD(OUTLINETEXTMETRICW, INT, otmItalicAngle, 92, 4, 4); + TEST_FIELD(OUTLINETEXTMETRICW, UINT, otmEMSquare, 96, 4, 4); + TEST_FIELD(OUTLINETEXTMETRICW, INT, otmAscent, 100, 4, 4); + TEST_FIELD(OUTLINETEXTMETRICW, INT, otmDescent, 104, 4, 4); + TEST_FIELD(OUTLINETEXTMETRICW, UINT, otmLineGap, 108, 4, 4); + TEST_FIELD(OUTLINETEXTMETRICW, UINT, otmsCapEmHeight, 112, 4, 4); + TEST_FIELD(OUTLINETEXTMETRICW, UINT, otmsXHeight, 116, 4, 4); + TEST_FIELD(OUTLINETEXTMETRICW, RECT, otmrcFontBox, 120, 16, 4); + TEST_FIELD(OUTLINETEXTMETRICW, INT, otmMacAscent, 136, 4, 4); + TEST_FIELD(OUTLINETEXTMETRICW, INT, otmMacDescent, 140, 4, 4); + TEST_FIELD(OUTLINETEXTMETRICW, UINT, otmMacLineGap, 144, 4, 4); + TEST_FIELD(OUTLINETEXTMETRICW, UINT, otmusMinimumPPEM, 148, 4, 4); + TEST_FIELD(OUTLINETEXTMETRICW, POINT, otmptSubscriptSize, 152, 8, 4); + TEST_FIELD(OUTLINETEXTMETRICW, POINT, otmptSubscriptOffset, 160, 8, 4); + TEST_FIELD(OUTLINETEXTMETRICW, POINT, otmptSuperscriptSize, 168, 8, 4); + TEST_FIELD(OUTLINETEXTMETRICW, POINT, otmptSuperscriptOffset, 176, 8, 4); + TEST_FIELD(OUTLINETEXTMETRICW, UINT, otmsStrikeoutSize, 184, 4, 4); + TEST_FIELD(OUTLINETEXTMETRICW, INT, otmsStrikeoutPosition, 188, 4, 4); + TEST_FIELD(OUTLINETEXTMETRICW, INT, otmsUnderscoreSize, 192, 4, 4); + TEST_FIELD(OUTLINETEXTMETRICW, INT, otmsUnderscorePosition, 196, 4, 4); + TEST_FIELD(OUTLINETEXTMETRICW, LPSTR, otmpFamilyName, 200, 4, 4); + TEST_FIELD(OUTLINETEXTMETRICW, LPSTR, otmpFaceName, 204, 4, 4); + TEST_FIELD(OUTLINETEXTMETRICW, LPSTR, otmpStyleName, 208, 4, 4); + TEST_FIELD(OUTLINETEXTMETRICW, LPSTR, otmpFullName, 212, 4, 4); + + /* PANOSE (pack 4) */ + TEST_TYPE(PANOSE, 10, 1); + TEST_FIELD(PANOSE, BYTE, bFamilyType, 0, 1, 1); + TEST_FIELD(PANOSE, BYTE, bSerifStyle, 1, 1, 1); + TEST_FIELD(PANOSE, BYTE, bWeight, 2, 1, 1); + TEST_FIELD(PANOSE, BYTE, bProportion, 3, 1, 1); + TEST_FIELD(PANOSE, BYTE, bContrast, 4, 1, 1); + TEST_FIELD(PANOSE, BYTE, bStrokeVariation, 5, 1, 1); + TEST_FIELD(PANOSE, BYTE, bArmStyle, 6, 1, 1); + TEST_FIELD(PANOSE, BYTE, bLetterform, 7, 1, 1); + TEST_FIELD(PANOSE, BYTE, bMidline, 8, 1, 1); + TEST_FIELD(PANOSE, BYTE, bXHeight, 9, 1, 1); + + /* PELARRAY (pack 4) */ + TEST_TYPE(PELARRAY, 20, 4); + TEST_FIELD(PELARRAY, LONG, paXCount, 0, 4, 4); + TEST_FIELD(PELARRAY, LONG, paYCount, 4, 4, 4); + TEST_FIELD(PELARRAY, LONG, paXExt, 8, 4, 4); + TEST_FIELD(PELARRAY, LONG, paYExt, 12, 4, 4); + TEST_FIELD(PELARRAY, BYTE, paRGBs, 16, 1, 1); + + /* PIXELFORMATDESCRIPTOR (pack 4) */ + TEST_TYPE(PIXELFORMATDESCRIPTOR, 40, 4); + TEST_FIELD(PIXELFORMATDESCRIPTOR, WORD, nSize, 0, 2, 2); + TEST_FIELD(PIXELFORMATDESCRIPTOR, WORD, nVersion, 2, 2, 2); + TEST_FIELD(PIXELFORMATDESCRIPTOR, DWORD, dwFlags, 4, 4, 4); + TEST_FIELD(PIXELFORMATDESCRIPTOR, BYTE, iPixelType, 8, 1, 1); + TEST_FIELD(PIXELFORMATDESCRIPTOR, BYTE, cColorBits, 9, 1, 1); + TEST_FIELD(PIXELFORMATDESCRIPTOR, BYTE, cRedBits, 10, 1, 1); + TEST_FIELD(PIXELFORMATDESCRIPTOR, BYTE, cRedShift, 11, 1, 1); + TEST_FIELD(PIXELFORMATDESCRIPTOR, BYTE, cGreenBits, 12, 1, 1); + TEST_FIELD(PIXELFORMATDESCRIPTOR, BYTE, cGreenShift, 13, 1, 1); + TEST_FIELD(PIXELFORMATDESCRIPTOR, BYTE, cBlueBits, 14, 1, 1); + TEST_FIELD(PIXELFORMATDESCRIPTOR, BYTE, cBlueShift, 15, 1, 1); + TEST_FIELD(PIXELFORMATDESCRIPTOR, BYTE, cAlphaBits, 16, 1, 1); + TEST_FIELD(PIXELFORMATDESCRIPTOR, BYTE, cAlphaShift, 17, 1, 1); + TEST_FIELD(PIXELFORMATDESCRIPTOR, BYTE, cAccumBits, 18, 1, 1); + TEST_FIELD(PIXELFORMATDESCRIPTOR, BYTE, cAccumRedBits, 19, 1, 1); + TEST_FIELD(PIXELFORMATDESCRIPTOR, BYTE, cAccumGreenBits, 20, 1, 1); + TEST_FIELD(PIXELFORMATDESCRIPTOR, BYTE, cAccumBlueBits, 21, 1, 1); + TEST_FIELD(PIXELFORMATDESCRIPTOR, BYTE, cAccumAlphaBits, 22, 1, 1); + TEST_FIELD(PIXELFORMATDESCRIPTOR, BYTE, cDepthBits, 23, 1, 1); + TEST_FIELD(PIXELFORMATDESCRIPTOR, BYTE, cStencilBits, 24, 1, 1); + TEST_FIELD(PIXELFORMATDESCRIPTOR, BYTE, cAuxBuffers, 25, 1, 1); + TEST_FIELD(PIXELFORMATDESCRIPTOR, BYTE, iLayerType, 26, 1, 1); + TEST_FIELD(PIXELFORMATDESCRIPTOR, BYTE, bReserved, 27, 1, 1); + TEST_FIELD(PIXELFORMATDESCRIPTOR, DWORD, dwLayerMask, 28, 4, 4); + TEST_FIELD(PIXELFORMATDESCRIPTOR, DWORD, dwVisibleMask, 32, 4, 4); + TEST_FIELD(PIXELFORMATDESCRIPTOR, DWORD, dwDamageMask, 36, 4, 4); + + /* POINTFX (pack 4) */ + TEST_TYPE(POINTFX, 8, 2); + TEST_FIELD(POINTFX, FIXED, x, 0, 4, 2); + TEST_FIELD(POINTFX, FIXED, y, 4, 4, 2); + + /* POLYTEXTA (pack 4) */ + TEST_TYPE(POLYTEXTA, 40, 4); + TEST_FIELD(POLYTEXTA, INT, x, 0, 4, 4); + TEST_FIELD(POLYTEXTA, INT, y, 4, 4, 4); + TEST_FIELD(POLYTEXTA, UINT, n, 8, 4, 4); + TEST_FIELD(POLYTEXTA, LPCSTR, lpstr, 12, 4, 4); + TEST_FIELD(POLYTEXTA, UINT, uiFlags, 16, 4, 4); + TEST_FIELD(POLYTEXTA, RECT, rcl, 20, 16, 4); + TEST_FIELD(POLYTEXTA, INT *, pdx, 36, 4, 4); + + /* POLYTEXTW (pack 4) */ + TEST_TYPE(POLYTEXTW, 40, 4); + TEST_FIELD(POLYTEXTW, INT, x, 0, 4, 4); + TEST_FIELD(POLYTEXTW, INT, y, 4, 4, 4); + TEST_FIELD(POLYTEXTW, UINT, n, 8, 4, 4); + TEST_FIELD(POLYTEXTW, LPCWSTR, lpstr, 12, 4, 4); + TEST_FIELD(POLYTEXTW, UINT, uiFlags, 16, 4, 4); + TEST_FIELD(POLYTEXTW, RECT, rcl, 20, 16, 4); + TEST_FIELD(POLYTEXTW, INT *, pdx, 36, 4, 4); + + /* RASTERIZER_STATUS (pack 4) */ + TEST_TYPE(RASTERIZER_STATUS, 6, 2); + TEST_FIELD(RASTERIZER_STATUS, SHORT, nSize, 0, 2, 2); + TEST_FIELD(RASTERIZER_STATUS, SHORT, wFlags, 2, 2, 2); + TEST_FIELD(RASTERIZER_STATUS, SHORT, nLanguageID, 4, 2, 2); + + /* RGBQUAD (pack 4) */ + TEST_TYPE(RGBQUAD, 4, 1); + TEST_FIELD(RGBQUAD, BYTE, rgbBlue, 0, 1, 1); + TEST_FIELD(RGBQUAD, BYTE, rgbGreen, 1, 1, 1); + TEST_FIELD(RGBQUAD, BYTE, rgbRed, 2, 1, 1); + TEST_FIELD(RGBQUAD, BYTE, rgbReserved, 3, 1, 1); + + /* RGBTRIPLE (pack 4) */ + TEST_TYPE(RGBTRIPLE, 3, 1); + TEST_FIELD(RGBTRIPLE, BYTE, rgbtBlue, 0, 1, 1); + TEST_FIELD(RGBTRIPLE, BYTE, rgbtGreen, 1, 1, 1); + TEST_FIELD(RGBTRIPLE, BYTE, rgbtRed, 2, 1, 1); + + /* RGNDATA (pack 4) */ + TEST_TYPE(RGNDATA, 36, 4); + TEST_FIELD(RGNDATA, RGNDATAHEADER, rdh, 0, 32, 4); + TEST_FIELD(RGNDATA, char[1], Buffer, 32, 1, 1); + + /* RGNDATAHEADER (pack 4) */ + TEST_TYPE(RGNDATAHEADER, 32, 4); + TEST_FIELD(RGNDATAHEADER, DWORD, dwSize, 0, 4, 4); + TEST_FIELD(RGNDATAHEADER, DWORD, iType, 4, 4, 4); + TEST_FIELD(RGNDATAHEADER, DWORD, nCount, 8, 4, 4); + TEST_FIELD(RGNDATAHEADER, DWORD, nRgnSize, 12, 4, 4); + TEST_FIELD(RGNDATAHEADER, RECT, rcBound, 16, 16, 4); + + /* TEXTMETRICA (pack 4) */ + TEST_TYPE(TEXTMETRICA, 56, 4); + TEST_FIELD(TEXTMETRICA, LONG, tmHeight, 0, 4, 4); + TEST_FIELD(TEXTMETRICA, LONG, tmAscent, 4, 4, 4); + TEST_FIELD(TEXTMETRICA, LONG, tmDescent, 8, 4, 4); + TEST_FIELD(TEXTMETRICA, LONG, tmInternalLeading, 12, 4, 4); + TEST_FIELD(TEXTMETRICA, LONG, tmExternalLeading, 16, 4, 4); + TEST_FIELD(TEXTMETRICA, LONG, tmAveCharWidth, 20, 4, 4); + TEST_FIELD(TEXTMETRICA, LONG, tmMaxCharWidth, 24, 4, 4); + TEST_FIELD(TEXTMETRICA, LONG, tmWeight, 28, 4, 4); + TEST_FIELD(TEXTMETRICA, LONG, tmOverhang, 32, 4, 4); + TEST_FIELD(TEXTMETRICA, LONG, tmDigitizedAspectX, 36, 4, 4); + TEST_FIELD(TEXTMETRICA, LONG, tmDigitizedAspectY, 40, 4, 4); + TEST_FIELD(TEXTMETRICA, BYTE, tmFirstChar, 44, 1, 1); + TEST_FIELD(TEXTMETRICA, BYTE, tmLastChar, 45, 1, 1); + TEST_FIELD(TEXTMETRICA, BYTE, tmDefaultChar, 46, 1, 1); + TEST_FIELD(TEXTMETRICA, BYTE, tmBreakChar, 47, 1, 1); + TEST_FIELD(TEXTMETRICA, BYTE, tmItalic, 48, 1, 1); + TEST_FIELD(TEXTMETRICA, BYTE, tmUnderlined, 49, 1, 1); + TEST_FIELD(TEXTMETRICA, BYTE, tmStruckOut, 50, 1, 1); + TEST_FIELD(TEXTMETRICA, BYTE, tmPitchAndFamily, 51, 1, 1); + TEST_FIELD(TEXTMETRICA, BYTE, tmCharSet, 52, 1, 1); + + /* TEXTMETRICW (pack 4) */ + TEST_TYPE(TEXTMETRICW, 60, 4); + TEST_FIELD(TEXTMETRICW, LONG, tmHeight, 0, 4, 4); + TEST_FIELD(TEXTMETRICW, LONG, tmAscent, 4, 4, 4); + TEST_FIELD(TEXTMETRICW, LONG, tmDescent, 8, 4, 4); + TEST_FIELD(TEXTMETRICW, LONG, tmInternalLeading, 12, 4, 4); + TEST_FIELD(TEXTMETRICW, LONG, tmExternalLeading, 16, 4, 4); + TEST_FIELD(TEXTMETRICW, LONG, tmAveCharWidth, 20, 4, 4); + TEST_FIELD(TEXTMETRICW, LONG, tmMaxCharWidth, 24, 4, 4); + TEST_FIELD(TEXTMETRICW, LONG, tmWeight, 28, 4, 4); + TEST_FIELD(TEXTMETRICW, LONG, tmOverhang, 32, 4, 4); + TEST_FIELD(TEXTMETRICW, LONG, tmDigitizedAspectX, 36, 4, 4); + TEST_FIELD(TEXTMETRICW, LONG, tmDigitizedAspectY, 40, 4, 4); + TEST_FIELD(TEXTMETRICW, WCHAR, tmFirstChar, 44, 2, 2); + TEST_FIELD(TEXTMETRICW, WCHAR, tmLastChar, 46, 2, 2); + TEST_FIELD(TEXTMETRICW, WCHAR, tmDefaultChar, 48, 2, 2); + TEST_FIELD(TEXTMETRICW, WCHAR, tmBreakChar, 50, 2, 2); + TEST_FIELD(TEXTMETRICW, BYTE, tmItalic, 52, 1, 1); + TEST_FIELD(TEXTMETRICW, BYTE, tmUnderlined, 53, 1, 1); + TEST_FIELD(TEXTMETRICW, BYTE, tmStruckOut, 54, 1, 1); + TEST_FIELD(TEXTMETRICW, BYTE, tmPitchAndFamily, 55, 1, 1); + TEST_FIELD(TEXTMETRICW, BYTE, tmCharSet, 56, 1, 1); + + /* TRIVERTEX (pack 4) */ + TEST_TYPE(TRIVERTEX, 16, 4); + TEST_FIELD(TRIVERTEX, LONG, x, 0, 4, 4); + TEST_FIELD(TRIVERTEX, LONG, y, 4, 4, 4); + TEST_FIELD(TRIVERTEX, COLOR16, Red, 8, 2, 2); + TEST_FIELD(TRIVERTEX, COLOR16, Green, 10, 2, 2); + TEST_FIELD(TRIVERTEX, COLOR16, Blue, 12, 2, 2); + TEST_FIELD(TRIVERTEX, COLOR16, Alpha, 14, 2, 2); + + /* TTPOLYCURVE (pack 4) */ + TEST_TYPE(TTPOLYCURVE, 12, 2); + TEST_FIELD(TTPOLYCURVE, WORD, wType, 0, 2, 2); + TEST_FIELD(TTPOLYCURVE, WORD, cpfx, 2, 2, 2); + TEST_FIELD(TTPOLYCURVE, POINTFX[1], apfx, 4, 8, 2); + + /* TTPOLYGONHEADER (pack 4) */ + TEST_TYPE(TTPOLYGONHEADER, 16, 4); + TEST_FIELD(TTPOLYGONHEADER, DWORD, cb, 0, 4, 4); + TEST_FIELD(TTPOLYGONHEADER, DWORD, dwType, 4, 4, 4); + TEST_FIELD(TTPOLYGONHEADER, POINTFX, pfxStart, 8, 8, 2); + + /* XFORM (pack 4) */ + TEST_TYPE(XFORM, 24, 4); + TEST_FIELD(XFORM, FLOAT, eM11, 0, 4, 4); + TEST_FIELD(XFORM, FLOAT, eM12, 4, 4, 4); + TEST_FIELD(XFORM, FLOAT, eM21, 8, 4, 4); + TEST_FIELD(XFORM, FLOAT, eM22, 12, 4, 4); + TEST_FIELD(XFORM, FLOAT, eDx, 16, 4, 4); + TEST_FIELD(XFORM, FLOAT, eDy, 20, 4, 4); } diff --git a/dlls/kernel/tests/generated.c b/dlls/kernel/tests/generated.c index b62f994d25..cbd062b391 100644 --- a/dlls/kernel/tests/generated.c +++ b/dlls/kernel/tests/generated.c @@ -8,837 +8,420 @@ #include #include "wine/test.h" +#include "basetsd.h" +#include "winnt.h" +#include "windef.h" #include "winbase.h" +/*********************************************************************** + * Windows API extension + */ + +#if (_MSC_VER >= 1300) && defined(__cplusplus) +# define FIELD_ALIGNMENT(type, field) __alignof(((type*)0)->field) +#elif defined(__GNUC__) +# define FIELD_ALIGNMENT(type, field) __alignof__(((type*)0)->field) +#else +/* FIXME: Not sure if is possible to do without compiler extension */ +#endif + +/*********************************************************************** + * Test helper macros + */ + +#ifdef FIELD_ALIGNMENT +# define TEST_FIELD_ALIGNMENT(type, field, align) \ + ok(FIELD_ALIGNMENT(type, field) == align, \ + "FIELD_ALIGNMENT(" #type ", " #field ") == %d (expected " #align ")", \ + FIELD_ALIGNMENT(type, field)) +#else +# define TEST_FIELD_ALIGNMENT(type, field, align) do { } while (0) +#endif + +#define TEST_FIELD_OFFSET(type, field, offset) \ + ok(FIELD_OFFSET(type, field) == offset, \ + "FIELD_OFFSET(" #type ", " #field ") == %ld (expected " #offset ")", \ + FIELD_OFFSET(type, field)) + +#define TEST_TYPE_ALIGNMENT(type, align) \ + ok(TYPE_ALIGNMENT(type) == align, "TYPE_ALIGNMENT(" #type ") == %d (expected " #align ")", TYPE_ALIGNMENT(type)) + +#define TEST_TYPE_SIZE(type, size) \ + ok(sizeof(type) == size, "sizeof(" #type ") == %d (expected " #size ")", sizeof(type)) + +/*********************************************************************** + * Test macros + */ + +#define TEST_FIELD(type, field_type, field_name, field_offset, field_size, field_align) \ + TEST_TYPE_SIZE(field_type, field_size); \ + TEST_FIELD_ALIGNMENT(type, field_name, field_align); \ + TEST_FIELD_OFFSET(type, field_name, field_offset); \ + +#define TEST_TYPE(type, size, align) \ + TEST_TYPE_ALIGNMENT(type, align); \ + TEST_TYPE_SIZE(type, size) + void test_pack(void) { - /* BY_HANDLE_FILE_INFORMATION */ - ok(FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, dwFileAttributes) == 0, - "FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, dwFileAttributes) == %ld (expected 0)", - FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, dwFileAttributes)); /* DWORD */ - ok(FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, ftCreationTime) == 4, - "FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, ftCreationTime) == %ld (expected 4)", - FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, ftCreationTime)); /* FILETIME */ - ok(FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, ftLastAccessTime) == 12, - "FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, ftLastAccessTime) == %ld (expected 12)", - FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, ftLastAccessTime)); /* FILETIME */ - ok(FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, ftLastWriteTime) == 20, - "FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, ftLastWriteTime) == %ld (expected 20)", - FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, ftLastWriteTime)); /* FILETIME */ - ok(FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, dwVolumeSerialNumber) == 28, - "FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, dwVolumeSerialNumber) == %ld (expected 28)", - FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, dwVolumeSerialNumber)); /* DWORD */ - ok(FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, nFileSizeHigh) == 32, - "FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, nFileSizeHigh) == %ld (expected 32)", - FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, nFileSizeHigh)); /* DWORD */ - ok(FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, nFileSizeLow) == 36, - "FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, nFileSizeLow) == %ld (expected 36)", - FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, nFileSizeLow)); /* DWORD */ - ok(FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, nNumberOfLinks) == 40, - "FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, nNumberOfLinks) == %ld (expected 40)", - FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, nNumberOfLinks)); /* DWORD */ - ok(FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, nFileIndexHigh) == 44, - "FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, nFileIndexHigh) == %ld (expected 44)", - FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, nFileIndexHigh)); /* DWORD */ - ok(FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, nFileIndexLow) == 48, - "FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, nFileIndexLow) == %ld (expected 48)", - FIELD_OFFSET(BY_HANDLE_FILE_INFORMATION, nFileIndexLow)); /* DWORD */ - ok(sizeof(BY_HANDLE_FILE_INFORMATION) == 52, "sizeof(BY_HANDLE_FILE_INFORMATION) == %d (expected 52)", sizeof(BY_HANDLE_FILE_INFORMATION)); + /* BY_HANDLE_FILE_INFORMATION (pack 4) */ + TEST_TYPE(BY_HANDLE_FILE_INFORMATION, 52, 4); + TEST_FIELD(BY_HANDLE_FILE_INFORMATION, DWORD, dwFileAttributes, 0, 4, 4); + TEST_FIELD(BY_HANDLE_FILE_INFORMATION, FILETIME, ftCreationTime, 4, 8, 4); + TEST_FIELD(BY_HANDLE_FILE_INFORMATION, FILETIME, ftLastAccessTime, 12, 8, 4); + TEST_FIELD(BY_HANDLE_FILE_INFORMATION, FILETIME, ftLastWriteTime, 20, 8, 4); + TEST_FIELD(BY_HANDLE_FILE_INFORMATION, DWORD, dwVolumeSerialNumber, 28, 4, 4); + TEST_FIELD(BY_HANDLE_FILE_INFORMATION, DWORD, nFileSizeHigh, 32, 4, 4); + TEST_FIELD(BY_HANDLE_FILE_INFORMATION, DWORD, nFileSizeLow, 36, 4, 4); + TEST_FIELD(BY_HANDLE_FILE_INFORMATION, DWORD, nNumberOfLinks, 40, 4, 4); + TEST_FIELD(BY_HANDLE_FILE_INFORMATION, DWORD, nFileIndexHigh, 44, 4, 4); + TEST_FIELD(BY_HANDLE_FILE_INFORMATION, DWORD, nFileIndexLow, 48, 4, 4); - /* COMMCONFIG */ - ok(FIELD_OFFSET(COMMCONFIG, dwSize) == 0, - "FIELD_OFFSET(COMMCONFIG, dwSize) == %ld (expected 0)", - FIELD_OFFSET(COMMCONFIG, dwSize)); /* DWORD */ - ok(FIELD_OFFSET(COMMCONFIG, wVersion) == 4, - "FIELD_OFFSET(COMMCONFIG, wVersion) == %ld (expected 4)", - FIELD_OFFSET(COMMCONFIG, wVersion)); /* WORD */ - ok(FIELD_OFFSET(COMMCONFIG, wReserved) == 6, - "FIELD_OFFSET(COMMCONFIG, wReserved) == %ld (expected 6)", - FIELD_OFFSET(COMMCONFIG, wReserved)); /* WORD */ - ok(FIELD_OFFSET(COMMCONFIG, dcb) == 8, - "FIELD_OFFSET(COMMCONFIG, dcb) == %ld (expected 8)", - FIELD_OFFSET(COMMCONFIG, dcb)); /* DCB */ - ok(FIELD_OFFSET(COMMCONFIG, dwProviderSubType) == 36, - "FIELD_OFFSET(COMMCONFIG, dwProviderSubType) == %ld (expected 36)", - FIELD_OFFSET(COMMCONFIG, dwProviderSubType)); /* DWORD */ - ok(FIELD_OFFSET(COMMCONFIG, dwProviderOffset) == 40, - "FIELD_OFFSET(COMMCONFIG, dwProviderOffset) == %ld (expected 40)", - FIELD_OFFSET(COMMCONFIG, dwProviderOffset)); /* DWORD */ - ok(FIELD_OFFSET(COMMCONFIG, dwProviderSize) == 44, - "FIELD_OFFSET(COMMCONFIG, dwProviderSize) == %ld (expected 44)", - FIELD_OFFSET(COMMCONFIG, dwProviderSize)); /* DWORD */ - ok(FIELD_OFFSET(COMMCONFIG, wcProviderData) == 48, - "FIELD_OFFSET(COMMCONFIG, wcProviderData) == %ld (expected 48)", - FIELD_OFFSET(COMMCONFIG, wcProviderData)); /* DWORD[1] */ - ok(sizeof(COMMCONFIG) == 52, "sizeof(COMMCONFIG) == %d (expected 52)", sizeof(COMMCONFIG)); + /* 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); - /* COMMPROP */ - ok(FIELD_OFFSET(COMMPROP, wPacketLength) == 0, - "FIELD_OFFSET(COMMPROP, wPacketLength) == %ld (expected 0)", - FIELD_OFFSET(COMMPROP, wPacketLength)); /* WORD */ - ok(FIELD_OFFSET(COMMPROP, wPacketVersion) == 2, - "FIELD_OFFSET(COMMPROP, wPacketVersion) == %ld (expected 2)", - FIELD_OFFSET(COMMPROP, wPacketVersion)); /* WORD */ - ok(FIELD_OFFSET(COMMPROP, dwServiceMask) == 4, - "FIELD_OFFSET(COMMPROP, dwServiceMask) == %ld (expected 4)", - FIELD_OFFSET(COMMPROP, dwServiceMask)); /* DWORD */ - ok(FIELD_OFFSET(COMMPROP, dwReserved1) == 8, - "FIELD_OFFSET(COMMPROP, dwReserved1) == %ld (expected 8)", - FIELD_OFFSET(COMMPROP, dwReserved1)); /* DWORD */ - ok(FIELD_OFFSET(COMMPROP, dwMaxTxQueue) == 12, - "FIELD_OFFSET(COMMPROP, dwMaxTxQueue) == %ld (expected 12)", - FIELD_OFFSET(COMMPROP, dwMaxTxQueue)); /* DWORD */ - ok(FIELD_OFFSET(COMMPROP, dwMaxRxQueue) == 16, - "FIELD_OFFSET(COMMPROP, dwMaxRxQueue) == %ld (expected 16)", - FIELD_OFFSET(COMMPROP, dwMaxRxQueue)); /* DWORD */ - ok(FIELD_OFFSET(COMMPROP, dwMaxBaud) == 20, - "FIELD_OFFSET(COMMPROP, dwMaxBaud) == %ld (expected 20)", - FIELD_OFFSET(COMMPROP, dwMaxBaud)); /* DWORD */ - ok(FIELD_OFFSET(COMMPROP, dwProvSubType) == 24, - "FIELD_OFFSET(COMMPROP, dwProvSubType) == %ld (expected 24)", - FIELD_OFFSET(COMMPROP, dwProvSubType)); /* DWORD */ - ok(FIELD_OFFSET(COMMPROP, dwProvCapabilities) == 28, - "FIELD_OFFSET(COMMPROP, dwProvCapabilities) == %ld (expected 28)", - FIELD_OFFSET(COMMPROP, dwProvCapabilities)); /* DWORD */ - ok(FIELD_OFFSET(COMMPROP, dwSettableParams) == 32, - "FIELD_OFFSET(COMMPROP, dwSettableParams) == %ld (expected 32)", - FIELD_OFFSET(COMMPROP, dwSettableParams)); /* DWORD */ - ok(FIELD_OFFSET(COMMPROP, dwSettableBaud) == 36, - "FIELD_OFFSET(COMMPROP, dwSettableBaud) == %ld (expected 36)", - FIELD_OFFSET(COMMPROP, dwSettableBaud)); /* DWORD */ - ok(FIELD_OFFSET(COMMPROP, wSettableData) == 40, - "FIELD_OFFSET(COMMPROP, wSettableData) == %ld (expected 40)", - FIELD_OFFSET(COMMPROP, wSettableData)); /* WORD */ - ok(FIELD_OFFSET(COMMPROP, wSettableStopParity) == 42, - "FIELD_OFFSET(COMMPROP, wSettableStopParity) == %ld (expected 42)", - FIELD_OFFSET(COMMPROP, wSettableStopParity)); /* WORD */ - ok(FIELD_OFFSET(COMMPROP, dwCurrentTxQueue) == 44, - "FIELD_OFFSET(COMMPROP, dwCurrentTxQueue) == %ld (expected 44)", - FIELD_OFFSET(COMMPROP, dwCurrentTxQueue)); /* DWORD */ - ok(FIELD_OFFSET(COMMPROP, dwCurrentRxQueue) == 48, - "FIELD_OFFSET(COMMPROP, dwCurrentRxQueue) == %ld (expected 48)", - FIELD_OFFSET(COMMPROP, dwCurrentRxQueue)); /* DWORD */ - ok(FIELD_OFFSET(COMMPROP, dwProvSpec1) == 52, - "FIELD_OFFSET(COMMPROP, dwProvSpec1) == %ld (expected 52)", - FIELD_OFFSET(COMMPROP, dwProvSpec1)); /* DWORD */ - ok(FIELD_OFFSET(COMMPROP, dwProvSpec2) == 56, - "FIELD_OFFSET(COMMPROP, dwProvSpec2) == %ld (expected 56)", - FIELD_OFFSET(COMMPROP, dwProvSpec2)); /* DWORD */ - ok(FIELD_OFFSET(COMMPROP, wcProvChar) == 60, - "FIELD_OFFSET(COMMPROP, wcProvChar) == %ld (expected 60)", - FIELD_OFFSET(COMMPROP, wcProvChar)); /* WCHAR[1] */ - ok(sizeof(COMMPROP) == 64, "sizeof(COMMPROP) == %d (expected 64)", sizeof(COMMPROP)); + /* COMMPROP (pack 4) */ + TEST_TYPE(COMMPROP, 64, 4); + TEST_FIELD(COMMPROP, WORD, wPacketLength, 0, 2, 2); + TEST_FIELD(COMMPROP, WORD, wPacketVersion, 2, 2, 2); + TEST_FIELD(COMMPROP, DWORD, dwServiceMask, 4, 4, 4); + TEST_FIELD(COMMPROP, DWORD, dwReserved1, 8, 4, 4); + TEST_FIELD(COMMPROP, DWORD, dwMaxTxQueue, 12, 4, 4); + TEST_FIELD(COMMPROP, DWORD, dwMaxRxQueue, 16, 4, 4); + TEST_FIELD(COMMPROP, DWORD, dwMaxBaud, 20, 4, 4); + TEST_FIELD(COMMPROP, DWORD, dwProvSubType, 24, 4, 4); + TEST_FIELD(COMMPROP, DWORD, dwProvCapabilities, 28, 4, 4); + TEST_FIELD(COMMPROP, DWORD, dwSettableParams, 32, 4, 4); + TEST_FIELD(COMMPROP, DWORD, dwSettableBaud, 36, 4, 4); + TEST_FIELD(COMMPROP, WORD, wSettableData, 40, 2, 2); + TEST_FIELD(COMMPROP, WORD, wSettableStopParity, 42, 2, 2); + TEST_FIELD(COMMPROP, DWORD, dwCurrentTxQueue, 44, 4, 4); + TEST_FIELD(COMMPROP, DWORD, dwCurrentRxQueue, 48, 4, 4); + TEST_FIELD(COMMPROP, DWORD, dwProvSpec1, 52, 4, 4); + TEST_FIELD(COMMPROP, DWORD, dwProvSpec2, 56, 4, 4); + TEST_FIELD(COMMPROP, WCHAR[1], wcProvChar, 60, 2, 2); - /* COMMTIMEOUTS */ - ok(FIELD_OFFSET(COMMTIMEOUTS, ReadIntervalTimeout) == 0, - "FIELD_OFFSET(COMMTIMEOUTS, ReadIntervalTimeout) == %ld (expected 0)", - FIELD_OFFSET(COMMTIMEOUTS, ReadIntervalTimeout)); /* DWORD */ - ok(FIELD_OFFSET(COMMTIMEOUTS, ReadTotalTimeoutMultiplier) == 4, - "FIELD_OFFSET(COMMTIMEOUTS, ReadTotalTimeoutMultiplier) == %ld (expected 4)", - FIELD_OFFSET(COMMTIMEOUTS, ReadTotalTimeoutMultiplier)); /* DWORD */ - ok(FIELD_OFFSET(COMMTIMEOUTS, ReadTotalTimeoutConstant) == 8, - "FIELD_OFFSET(COMMTIMEOUTS, ReadTotalTimeoutConstant) == %ld (expected 8)", - FIELD_OFFSET(COMMTIMEOUTS, ReadTotalTimeoutConstant)); /* DWORD */ - ok(FIELD_OFFSET(COMMTIMEOUTS, WriteTotalTimeoutMultiplier) == 12, - "FIELD_OFFSET(COMMTIMEOUTS, WriteTotalTimeoutMultiplier) == %ld (expected 12)", - FIELD_OFFSET(COMMTIMEOUTS, WriteTotalTimeoutMultiplier)); /* DWORD */ - ok(FIELD_OFFSET(COMMTIMEOUTS, WriteTotalTimeoutConstant) == 16, - "FIELD_OFFSET(COMMTIMEOUTS, WriteTotalTimeoutConstant) == %ld (expected 16)", - FIELD_OFFSET(COMMTIMEOUTS, WriteTotalTimeoutConstant)); /* DWORD */ - ok(sizeof(COMMTIMEOUTS) == 20, "sizeof(COMMTIMEOUTS) == %d (expected 20)", sizeof(COMMTIMEOUTS)); + /* COMMTIMEOUTS (pack 4) */ + TEST_TYPE(COMMTIMEOUTS, 20, 4); + TEST_FIELD(COMMTIMEOUTS, DWORD, ReadIntervalTimeout, 0, 4, 4); + TEST_FIELD(COMMTIMEOUTS, DWORD, ReadTotalTimeoutMultiplier, 4, 4, 4); + TEST_FIELD(COMMTIMEOUTS, DWORD, ReadTotalTimeoutConstant, 8, 4, 4); + TEST_FIELD(COMMTIMEOUTS, DWORD, WriteTotalTimeoutMultiplier, 12, 4, 4); + TEST_FIELD(COMMTIMEOUTS, DWORD, WriteTotalTimeoutConstant, 16, 4, 4); - /* COMSTAT */ - ok(FIELD_OFFSET(COMSTAT, status) == 0, - "FIELD_OFFSET(COMSTAT, status) == %ld (expected 0)", - FIELD_OFFSET(COMSTAT, status)); /* DWORD */ - ok(FIELD_OFFSET(COMSTAT, cbInQue) == 4, - "FIELD_OFFSET(COMSTAT, cbInQue) == %ld (expected 4)", - FIELD_OFFSET(COMSTAT, cbInQue)); /* DWORD */ - ok(FIELD_OFFSET(COMSTAT, cbOutQue) == 8, - "FIELD_OFFSET(COMSTAT, cbOutQue) == %ld (expected 8)", - FIELD_OFFSET(COMSTAT, cbOutQue)); /* DWORD */ - ok(sizeof(COMSTAT) == 12, "sizeof(COMSTAT) == %d (expected 12)", sizeof(COMSTAT)); + /* COMSTAT (pack 4) */ + TEST_TYPE(COMSTAT, 12, 4); + TEST_FIELD(COMSTAT, DWORD, status, 0, 4, 4); + TEST_FIELD(COMSTAT, DWORD, cbInQue, 4, 4, 4); + TEST_FIELD(COMSTAT, DWORD, cbOutQue, 8, 4, 4); - /* CREATE_PROCESS_DEBUG_INFO */ - ok(FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, hFile) == 0, - "FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, hFile) == %ld (expected 0)", - FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, hFile)); /* HANDLE */ - ok(FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, hProcess) == 4, - "FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, hProcess) == %ld (expected 4)", - FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, hProcess)); /* HANDLE */ - ok(FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, hThread) == 8, - "FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, hThread) == %ld (expected 8)", - FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, hThread)); /* HANDLE */ - ok(FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, lpBaseOfImage) == 12, - "FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, lpBaseOfImage) == %ld (expected 12)", - FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, lpBaseOfImage)); /* LPVOID */ - ok(FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, dwDebugInfoFileOffset) == 16, - "FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, dwDebugInfoFileOffset) == %ld (expected 16)", - FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, dwDebugInfoFileOffset)); /* DWORD */ - ok(FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, nDebugInfoSize) == 20, - "FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, nDebugInfoSize) == %ld (expected 20)", - FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, nDebugInfoSize)); /* DWORD */ - ok(FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, lpThreadLocalBase) == 24, - "FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, lpThreadLocalBase) == %ld (expected 24)", - FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, lpThreadLocalBase)); /* LPVOID */ - ok(FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, lpStartAddress) == 28, - "FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, lpStartAddress) == %ld (expected 28)", - FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, lpStartAddress)); /* LPTHREAD_START_ROUTINE */ - ok(FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, lpImageName) == 32, - "FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, lpImageName) == %ld (expected 32)", - FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, lpImageName)); /* LPVOID */ - ok(FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, fUnicode) == 36, - "FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, fUnicode) == %ld (expected 36)", - FIELD_OFFSET(CREATE_PROCESS_DEBUG_INFO, fUnicode)); /* WORD */ - ok(sizeof(CREATE_PROCESS_DEBUG_INFO) == 40, "sizeof(CREATE_PROCESS_DEBUG_INFO) == %d (expected 40)", sizeof(CREATE_PROCESS_DEBUG_INFO)); + /* CREATE_PROCESS_DEBUG_INFO (pack 4) */ + TEST_TYPE(CREATE_PROCESS_DEBUG_INFO, 40, 4); + TEST_FIELD(CREATE_PROCESS_DEBUG_INFO, HANDLE, hFile, 0, 4, 4); + TEST_FIELD(CREATE_PROCESS_DEBUG_INFO, HANDLE, hProcess, 4, 4, 4); + TEST_FIELD(CREATE_PROCESS_DEBUG_INFO, HANDLE, hThread, 8, 4, 4); + TEST_FIELD(CREATE_PROCESS_DEBUG_INFO, LPVOID, lpBaseOfImage, 12, 4, 4); + TEST_FIELD(CREATE_PROCESS_DEBUG_INFO, DWORD, dwDebugInfoFileOffset, 16, 4, 4); + TEST_FIELD(CREATE_PROCESS_DEBUG_INFO, DWORD, nDebugInfoSize, 20, 4, 4); + TEST_FIELD(CREATE_PROCESS_DEBUG_INFO, LPVOID, lpThreadLocalBase, 24, 4, 4); + TEST_FIELD(CREATE_PROCESS_DEBUG_INFO, LPTHREAD_START_ROUTINE, lpStartAddress, 28, 4, 4); + TEST_FIELD(CREATE_PROCESS_DEBUG_INFO, LPVOID, lpImageName, 32, 4, 4); + TEST_FIELD(CREATE_PROCESS_DEBUG_INFO, WORD, fUnicode, 36, 2, 2); - /* CREATE_THREAD_DEBUG_INFO */ - ok(FIELD_OFFSET(CREATE_THREAD_DEBUG_INFO, hThread) == 0, - "FIELD_OFFSET(CREATE_THREAD_DEBUG_INFO, hThread) == %ld (expected 0)", - FIELD_OFFSET(CREATE_THREAD_DEBUG_INFO, hThread)); /* HANDLE */ - ok(FIELD_OFFSET(CREATE_THREAD_DEBUG_INFO, lpThreadLocalBase) == 4, - "FIELD_OFFSET(CREATE_THREAD_DEBUG_INFO, lpThreadLocalBase) == %ld (expected 4)", - FIELD_OFFSET(CREATE_THREAD_DEBUG_INFO, lpThreadLocalBase)); /* LPVOID */ - ok(FIELD_OFFSET(CREATE_THREAD_DEBUG_INFO, lpStartAddress) == 8, - "FIELD_OFFSET(CREATE_THREAD_DEBUG_INFO, lpStartAddress) == %ld (expected 8)", - FIELD_OFFSET(CREATE_THREAD_DEBUG_INFO, lpStartAddress)); /* LPTHREAD_START_ROUTINE */ - ok(sizeof(CREATE_THREAD_DEBUG_INFO) == 12, "sizeof(CREATE_THREAD_DEBUG_INFO) == %d (expected 12)", sizeof(CREATE_THREAD_DEBUG_INFO)); + /* CREATE_THREAD_DEBUG_INFO (pack 4) */ + TEST_TYPE(CREATE_THREAD_DEBUG_INFO, 12, 4); + TEST_FIELD(CREATE_THREAD_DEBUG_INFO, HANDLE, hThread, 0, 4, 4); + TEST_FIELD(CREATE_THREAD_DEBUG_INFO, LPVOID, lpThreadLocalBase, 4, 4, 4); + TEST_FIELD(CREATE_THREAD_DEBUG_INFO, LPTHREAD_START_ROUTINE, lpStartAddress, 8, 4, 4); - /* DCB */ - ok(FIELD_OFFSET(DCB, DCBlength) == 0, - "FIELD_OFFSET(DCB, DCBlength) == %ld (expected 0)", - FIELD_OFFSET(DCB, DCBlength)); /* DWORD */ - ok(FIELD_OFFSET(DCB, BaudRate) == 4, - "FIELD_OFFSET(DCB, BaudRate) == %ld (expected 4)", - FIELD_OFFSET(DCB, BaudRate)); /* DWORD */ - ok(FIELD_OFFSET(DCB, wReserved) == 12, - "FIELD_OFFSET(DCB, wReserved) == %ld (expected 12)", - FIELD_OFFSET(DCB, wReserved)); /* WORD */ - ok(FIELD_OFFSET(DCB, XonLim) == 14, - "FIELD_OFFSET(DCB, XonLim) == %ld (expected 14)", - FIELD_OFFSET(DCB, XonLim)); /* WORD */ - ok(FIELD_OFFSET(DCB, XoffLim) == 16, - "FIELD_OFFSET(DCB, XoffLim) == %ld (expected 16)", - FIELD_OFFSET(DCB, XoffLim)); /* WORD */ - ok(FIELD_OFFSET(DCB, ByteSize) == 18, - "FIELD_OFFSET(DCB, ByteSize) == %ld (expected 18)", - FIELD_OFFSET(DCB, ByteSize)); /* BYTE */ - ok(FIELD_OFFSET(DCB, Parity) == 19, - "FIELD_OFFSET(DCB, Parity) == %ld (expected 19)", - FIELD_OFFSET(DCB, Parity)); /* BYTE */ - ok(FIELD_OFFSET(DCB, StopBits) == 20, - "FIELD_OFFSET(DCB, StopBits) == %ld (expected 20)", - FIELD_OFFSET(DCB, StopBits)); /* BYTE */ - ok(FIELD_OFFSET(DCB, XonChar) == 21, - "FIELD_OFFSET(DCB, XonChar) == %ld (expected 21)", - FIELD_OFFSET(DCB, XonChar)); /* char */ - ok(FIELD_OFFSET(DCB, XoffChar) == 22, - "FIELD_OFFSET(DCB, XoffChar) == %ld (expected 22)", - FIELD_OFFSET(DCB, XoffChar)); /* char */ - ok(FIELD_OFFSET(DCB, ErrorChar) == 23, - "FIELD_OFFSET(DCB, ErrorChar) == %ld (expected 23)", - FIELD_OFFSET(DCB, ErrorChar)); /* char */ - ok(FIELD_OFFSET(DCB, EofChar) == 24, - "FIELD_OFFSET(DCB, EofChar) == %ld (expected 24)", - FIELD_OFFSET(DCB, EofChar)); /* char */ - ok(FIELD_OFFSET(DCB, EvtChar) == 25, - "FIELD_OFFSET(DCB, EvtChar) == %ld (expected 25)", - FIELD_OFFSET(DCB, EvtChar)); /* char */ - ok(sizeof(DCB) == 28, "sizeof(DCB) == %d (expected 28)", sizeof(DCB)); + /* 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); - /* EXCEPTION_DEBUG_INFO */ - ok(FIELD_OFFSET(EXCEPTION_DEBUG_INFO, ExceptionRecord) == 0, - "FIELD_OFFSET(EXCEPTION_DEBUG_INFO, ExceptionRecord) == %ld (expected 0)", - FIELD_OFFSET(EXCEPTION_DEBUG_INFO, ExceptionRecord)); /* EXCEPTION_RECORD */ - ok(FIELD_OFFSET(EXCEPTION_DEBUG_INFO, dwFirstChance) == 80, - "FIELD_OFFSET(EXCEPTION_DEBUG_INFO, dwFirstChance) == %ld (expected 80)", - FIELD_OFFSET(EXCEPTION_DEBUG_INFO, dwFirstChance)); /* DWORD */ - ok(sizeof(EXCEPTION_DEBUG_INFO) == 84, "sizeof(EXCEPTION_DEBUG_INFO) == %d (expected 84)", sizeof(EXCEPTION_DEBUG_INFO)); + /* 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); - /* EXIT_PROCESS_DEBUG_INFO */ - ok(FIELD_OFFSET(EXIT_PROCESS_DEBUG_INFO, dwExitCode) == 0, - "FIELD_OFFSET(EXIT_PROCESS_DEBUG_INFO, dwExitCode) == %ld (expected 0)", - FIELD_OFFSET(EXIT_PROCESS_DEBUG_INFO, dwExitCode)); /* DWORD */ - ok(sizeof(EXIT_PROCESS_DEBUG_INFO) == 4, "sizeof(EXIT_PROCESS_DEBUG_INFO) == %d (expected 4)", sizeof(EXIT_PROCESS_DEBUG_INFO)); + /* EXCEPTION_DEBUG_INFO (pack 4) */ + TEST_TYPE(EXCEPTION_DEBUG_INFO, 84, 4); + TEST_FIELD(EXCEPTION_DEBUG_INFO, EXCEPTION_RECORD, ExceptionRecord, 0, 80, 4); + TEST_FIELD(EXCEPTION_DEBUG_INFO, DWORD, dwFirstChance, 80, 4, 4); - /* EXIT_THREAD_DEBUG_INFO */ - ok(FIELD_OFFSET(EXIT_THREAD_DEBUG_INFO, dwExitCode) == 0, - "FIELD_OFFSET(EXIT_THREAD_DEBUG_INFO, dwExitCode) == %ld (expected 0)", - FIELD_OFFSET(EXIT_THREAD_DEBUG_INFO, dwExitCode)); /* DWORD */ - ok(sizeof(EXIT_THREAD_DEBUG_INFO) == 4, "sizeof(EXIT_THREAD_DEBUG_INFO) == %d (expected 4)", sizeof(EXIT_THREAD_DEBUG_INFO)); + /* EXIT_PROCESS_DEBUG_INFO (pack 4) */ + TEST_TYPE(EXIT_PROCESS_DEBUG_INFO, 4, 4); + TEST_FIELD(EXIT_PROCESS_DEBUG_INFO, DWORD, dwExitCode, 0, 4, 4); - /* LDT_ENTRY */ - ok(FIELD_OFFSET(LDT_ENTRY, LimitLow) == 0, - "FIELD_OFFSET(LDT_ENTRY, LimitLow) == %ld (expected 0)", - FIELD_OFFSET(LDT_ENTRY, LimitLow)); /* WORD */ - ok(FIELD_OFFSET(LDT_ENTRY, BaseLow) == 2, - "FIELD_OFFSET(LDT_ENTRY, BaseLow) == %ld (expected 2)", - FIELD_OFFSET(LDT_ENTRY, BaseLow)); /* WORD */ - ok(sizeof(LDT_ENTRY) == 8, "sizeof(LDT_ENTRY) == %d (expected 8)", sizeof(LDT_ENTRY)); + /* EXIT_THREAD_DEBUG_INFO (pack 4) */ + TEST_TYPE(EXIT_THREAD_DEBUG_INFO, 4, 4); + TEST_FIELD(EXIT_THREAD_DEBUG_INFO, DWORD, dwExitCode, 0, 4, 4); - /* LOAD_DLL_DEBUG_INFO */ - ok(FIELD_OFFSET(LOAD_DLL_DEBUG_INFO, hFile) == 0, - "FIELD_OFFSET(LOAD_DLL_DEBUG_INFO, hFile) == %ld (expected 0)", - FIELD_OFFSET(LOAD_DLL_DEBUG_INFO, hFile)); /* HANDLE */ - ok(FIELD_OFFSET(LOAD_DLL_DEBUG_INFO, lpBaseOfDll) == 4, - "FIELD_OFFSET(LOAD_DLL_DEBUG_INFO, lpBaseOfDll) == %ld (expected 4)", - FIELD_OFFSET(LOAD_DLL_DEBUG_INFO, lpBaseOfDll)); /* LPVOID */ - ok(FIELD_OFFSET(LOAD_DLL_DEBUG_INFO, dwDebugInfoFileOffset) == 8, - "FIELD_OFFSET(LOAD_DLL_DEBUG_INFO, dwDebugInfoFileOffset) == %ld (expected 8)", - FIELD_OFFSET(LOAD_DLL_DEBUG_INFO, dwDebugInfoFileOffset)); /* DWORD */ - ok(FIELD_OFFSET(LOAD_DLL_DEBUG_INFO, nDebugInfoSize) == 12, - "FIELD_OFFSET(LOAD_DLL_DEBUG_INFO, nDebugInfoSize) == %ld (expected 12)", - FIELD_OFFSET(LOAD_DLL_DEBUG_INFO, nDebugInfoSize)); /* DWORD */ - ok(FIELD_OFFSET(LOAD_DLL_DEBUG_INFO, lpImageName) == 16, - "FIELD_OFFSET(LOAD_DLL_DEBUG_INFO, lpImageName) == %ld (expected 16)", - FIELD_OFFSET(LOAD_DLL_DEBUG_INFO, lpImageName)); /* LPVOID */ - ok(FIELD_OFFSET(LOAD_DLL_DEBUG_INFO, fUnicode) == 20, - "FIELD_OFFSET(LOAD_DLL_DEBUG_INFO, fUnicode) == %ld (expected 20)", - FIELD_OFFSET(LOAD_DLL_DEBUG_INFO, fUnicode)); /* WORD */ - ok(sizeof(LOAD_DLL_DEBUG_INFO) == 24, "sizeof(LOAD_DLL_DEBUG_INFO) == %d (expected 24)", sizeof(LOAD_DLL_DEBUG_INFO)); + /* HW_PROFILE_INFOA (pack 4) */ + TEST_TYPE(HW_PROFILE_INFOA, 124, 4); + TEST_FIELD(HW_PROFILE_INFOA, DWORD, dwDockInfo, 0, 4, 4); + TEST_FIELD(HW_PROFILE_INFOA, CHAR[HW_PROFILE_GUIDLEN], szHwProfileGuid, 4, 39, 1); + TEST_FIELD(HW_PROFILE_INFOA, CHAR[MAX_PROFILE_LEN], szHwProfileName, 43, 80, 1); - /* MEMORYSTATUS */ - ok(FIELD_OFFSET(MEMORYSTATUS, dwLength) == 0, - "FIELD_OFFSET(MEMORYSTATUS, dwLength) == %ld (expected 0)", - FIELD_OFFSET(MEMORYSTATUS, dwLength)); /* DWORD */ - ok(FIELD_OFFSET(MEMORYSTATUS, dwMemoryLoad) == 4, - "FIELD_OFFSET(MEMORYSTATUS, dwMemoryLoad) == %ld (expected 4)", - FIELD_OFFSET(MEMORYSTATUS, dwMemoryLoad)); /* DWORD */ - ok(FIELD_OFFSET(MEMORYSTATUS, dwTotalPhys) == 8, - "FIELD_OFFSET(MEMORYSTATUS, dwTotalPhys) == %ld (expected 8)", - FIELD_OFFSET(MEMORYSTATUS, dwTotalPhys)); /* SIZE_T */ - ok(FIELD_OFFSET(MEMORYSTATUS, dwAvailPhys) == 12, - "FIELD_OFFSET(MEMORYSTATUS, dwAvailPhys) == %ld (expected 12)", - FIELD_OFFSET(MEMORYSTATUS, dwAvailPhys)); /* SIZE_T */ - ok(FIELD_OFFSET(MEMORYSTATUS, dwTotalPageFile) == 16, - "FIELD_OFFSET(MEMORYSTATUS, dwTotalPageFile) == %ld (expected 16)", - FIELD_OFFSET(MEMORYSTATUS, dwTotalPageFile)); /* SIZE_T */ - ok(FIELD_OFFSET(MEMORYSTATUS, dwAvailPageFile) == 20, - "FIELD_OFFSET(MEMORYSTATUS, dwAvailPageFile) == %ld (expected 20)", - FIELD_OFFSET(MEMORYSTATUS, dwAvailPageFile)); /* SIZE_T */ - ok(FIELD_OFFSET(MEMORYSTATUS, dwTotalVirtual) == 24, - "FIELD_OFFSET(MEMORYSTATUS, dwTotalVirtual) == %ld (expected 24)", - FIELD_OFFSET(MEMORYSTATUS, dwTotalVirtual)); /* SIZE_T */ - ok(FIELD_OFFSET(MEMORYSTATUS, dwAvailVirtual) == 28, - "FIELD_OFFSET(MEMORYSTATUS, dwAvailVirtual) == %ld (expected 28)", - FIELD_OFFSET(MEMORYSTATUS, dwAvailVirtual)); /* SIZE_T */ - ok(sizeof(MEMORYSTATUS) == 32, "sizeof(MEMORYSTATUS) == %d (expected 32)", sizeof(MEMORYSTATUS)); + /* LDT_ENTRY (pack 4) */ + TEST_FIELD(LDT_ENTRY, WORD, LimitLow, 0, 2, 2); + TEST_FIELD(LDT_ENTRY, WORD, BaseLow, 2, 2, 2); - /* OSVERSIONINFOA */ - ok(FIELD_OFFSET(OSVERSIONINFOA, dwOSVersionInfoSize) == 0, - "FIELD_OFFSET(OSVERSIONINFOA, dwOSVersionInfoSize) == %ld (expected 0)", - FIELD_OFFSET(OSVERSIONINFOA, dwOSVersionInfoSize)); /* DWORD */ - ok(FIELD_OFFSET(OSVERSIONINFOA, dwMajorVersion) == 4, - "FIELD_OFFSET(OSVERSIONINFOA, dwMajorVersion) == %ld (expected 4)", - FIELD_OFFSET(OSVERSIONINFOA, dwMajorVersion)); /* DWORD */ - ok(FIELD_OFFSET(OSVERSIONINFOA, dwMinorVersion) == 8, - "FIELD_OFFSET(OSVERSIONINFOA, dwMinorVersion) == %ld (expected 8)", - FIELD_OFFSET(OSVERSIONINFOA, dwMinorVersion)); /* DWORD */ - ok(FIELD_OFFSET(OSVERSIONINFOA, dwBuildNumber) == 12, - "FIELD_OFFSET(OSVERSIONINFOA, dwBuildNumber) == %ld (expected 12)", - FIELD_OFFSET(OSVERSIONINFOA, dwBuildNumber)); /* DWORD */ - ok(FIELD_OFFSET(OSVERSIONINFOA, dwPlatformId) == 16, - "FIELD_OFFSET(OSVERSIONINFOA, dwPlatformId) == %ld (expected 16)", - FIELD_OFFSET(OSVERSIONINFOA, dwPlatformId)); /* DWORD */ - ok(FIELD_OFFSET(OSVERSIONINFOA, szCSDVersion) == 20, - "FIELD_OFFSET(OSVERSIONINFOA, szCSDVersion) == %ld (expected 20)", - FIELD_OFFSET(OSVERSIONINFOA, szCSDVersion)); /* CHAR[128] */ - ok(sizeof(OSVERSIONINFOA) == 148, "sizeof(OSVERSIONINFOA) == %d (expected 148)", sizeof(OSVERSIONINFOA)); + /* LOAD_DLL_DEBUG_INFO (pack 4) */ + TEST_TYPE(LOAD_DLL_DEBUG_INFO, 24, 4); + TEST_FIELD(LOAD_DLL_DEBUG_INFO, HANDLE, hFile, 0, 4, 4); + TEST_FIELD(LOAD_DLL_DEBUG_INFO, LPVOID, lpBaseOfDll, 4, 4, 4); + TEST_FIELD(LOAD_DLL_DEBUG_INFO, DWORD, dwDebugInfoFileOffset, 8, 4, 4); + TEST_FIELD(LOAD_DLL_DEBUG_INFO, DWORD, nDebugInfoSize, 12, 4, 4); + TEST_FIELD(LOAD_DLL_DEBUG_INFO, LPVOID, lpImageName, 16, 4, 4); + TEST_FIELD(LOAD_DLL_DEBUG_INFO, WORD, fUnicode, 20, 2, 2); - /* OSVERSIONINFOEXA */ - ok(FIELD_OFFSET(OSVERSIONINFOEXA, dwOSVersionInfoSize) == 0, - "FIELD_OFFSET(OSVERSIONINFOEXA, dwOSVersionInfoSize) == %ld (expected 0)", - FIELD_OFFSET(OSVERSIONINFOEXA, dwOSVersionInfoSize)); /* DWORD */ - ok(FIELD_OFFSET(OSVERSIONINFOEXA, dwMajorVersion) == 4, - "FIELD_OFFSET(OSVERSIONINFOEXA, dwMajorVersion) == %ld (expected 4)", - FIELD_OFFSET(OSVERSIONINFOEXA, dwMajorVersion)); /* DWORD */ - ok(FIELD_OFFSET(OSVERSIONINFOEXA, dwMinorVersion) == 8, - "FIELD_OFFSET(OSVERSIONINFOEXA, dwMinorVersion) == %ld (expected 8)", - FIELD_OFFSET(OSVERSIONINFOEXA, dwMinorVersion)); /* DWORD */ - ok(FIELD_OFFSET(OSVERSIONINFOEXA, dwBuildNumber) == 12, - "FIELD_OFFSET(OSVERSIONINFOEXA, dwBuildNumber) == %ld (expected 12)", - FIELD_OFFSET(OSVERSIONINFOEXA, dwBuildNumber)); /* DWORD */ - ok(FIELD_OFFSET(OSVERSIONINFOEXA, dwPlatformId) == 16, - "FIELD_OFFSET(OSVERSIONINFOEXA, dwPlatformId) == %ld (expected 16)", - FIELD_OFFSET(OSVERSIONINFOEXA, dwPlatformId)); /* DWORD */ - ok(FIELD_OFFSET(OSVERSIONINFOEXA, szCSDVersion) == 20, - "FIELD_OFFSET(OSVERSIONINFOEXA, szCSDVersion) == %ld (expected 20)", - FIELD_OFFSET(OSVERSIONINFOEXA, szCSDVersion)); /* CHAR[128] */ - ok(FIELD_OFFSET(OSVERSIONINFOEXA, wServicePackMajor) == 148, - "FIELD_OFFSET(OSVERSIONINFOEXA, wServicePackMajor) == %ld (expected 148)", - FIELD_OFFSET(OSVERSIONINFOEXA, wServicePackMajor)); /* WORD */ - ok(FIELD_OFFSET(OSVERSIONINFOEXA, wServicePackMinor) == 150, - "FIELD_OFFSET(OSVERSIONINFOEXA, wServicePackMinor) == %ld (expected 150)", - FIELD_OFFSET(OSVERSIONINFOEXA, wServicePackMinor)); /* WORD */ - ok(FIELD_OFFSET(OSVERSIONINFOEXA, wSuiteMask) == 152, - "FIELD_OFFSET(OSVERSIONINFOEXA, wSuiteMask) == %ld (expected 152)", - FIELD_OFFSET(OSVERSIONINFOEXA, wSuiteMask)); /* WORD */ - ok(FIELD_OFFSET(OSVERSIONINFOEXA, wProductType) == 154, - "FIELD_OFFSET(OSVERSIONINFOEXA, wProductType) == %ld (expected 154)", - FIELD_OFFSET(OSVERSIONINFOEXA, wProductType)); /* BYTE */ - ok(FIELD_OFFSET(OSVERSIONINFOEXA, wReserved) == 155, - "FIELD_OFFSET(OSVERSIONINFOEXA, wReserved) == %ld (expected 155)", - FIELD_OFFSET(OSVERSIONINFOEXA, wReserved)); /* BYTE */ - ok(sizeof(OSVERSIONINFOEXA) == 156, "sizeof(OSVERSIONINFOEXA) == %d (expected 156)", sizeof(OSVERSIONINFOEXA)); + /* MEMORYSTATUS (pack 4) */ + TEST_TYPE(MEMORYSTATUS, 32, 4); + TEST_FIELD(MEMORYSTATUS, DWORD, dwLength, 0, 4, 4); + TEST_FIELD(MEMORYSTATUS, DWORD, dwMemoryLoad, 4, 4, 4); + TEST_FIELD(MEMORYSTATUS, SIZE_T, dwTotalPhys, 8, 4, 4); + TEST_FIELD(MEMORYSTATUS, SIZE_T, dwAvailPhys, 12, 4, 4); + TEST_FIELD(MEMORYSTATUS, SIZE_T, dwTotalPageFile, 16, 4, 4); + TEST_FIELD(MEMORYSTATUS, SIZE_T, dwAvailPageFile, 20, 4, 4); + TEST_FIELD(MEMORYSTATUS, SIZE_T, dwTotalVirtual, 24, 4, 4); + TEST_FIELD(MEMORYSTATUS, SIZE_T, dwAvailVirtual, 28, 4, 4); - /* OSVERSIONINFOEXW */ - ok(FIELD_OFFSET(OSVERSIONINFOEXW, dwOSVersionInfoSize) == 0, - "FIELD_OFFSET(OSVERSIONINFOEXW, dwOSVersionInfoSize) == %ld (expected 0)", - FIELD_OFFSET(OSVERSIONINFOEXW, dwOSVersionInfoSize)); /* DWORD */ - ok(FIELD_OFFSET(OSVERSIONINFOEXW, dwMajorVersion) == 4, - "FIELD_OFFSET(OSVERSIONINFOEXW, dwMajorVersion) == %ld (expected 4)", - FIELD_OFFSET(OSVERSIONINFOEXW, dwMajorVersion)); /* DWORD */ - ok(FIELD_OFFSET(OSVERSIONINFOEXW, dwMinorVersion) == 8, - "FIELD_OFFSET(OSVERSIONINFOEXW, dwMinorVersion) == %ld (expected 8)", - FIELD_OFFSET(OSVERSIONINFOEXW, dwMinorVersion)); /* DWORD */ - ok(FIELD_OFFSET(OSVERSIONINFOEXW, dwBuildNumber) == 12, - "FIELD_OFFSET(OSVERSIONINFOEXW, dwBuildNumber) == %ld (expected 12)", - FIELD_OFFSET(OSVERSIONINFOEXW, dwBuildNumber)); /* DWORD */ - ok(FIELD_OFFSET(OSVERSIONINFOEXW, dwPlatformId) == 16, - "FIELD_OFFSET(OSVERSIONINFOEXW, dwPlatformId) == %ld (expected 16)", - FIELD_OFFSET(OSVERSIONINFOEXW, dwPlatformId)); /* DWORD */ - ok(FIELD_OFFSET(OSVERSIONINFOEXW, szCSDVersion) == 20, - "FIELD_OFFSET(OSVERSIONINFOEXW, szCSDVersion) == %ld (expected 20)", - FIELD_OFFSET(OSVERSIONINFOEXW, szCSDVersion)); /* WCHAR[128] */ - ok(FIELD_OFFSET(OSVERSIONINFOEXW, wServicePackMajor) == 276, - "FIELD_OFFSET(OSVERSIONINFOEXW, wServicePackMajor) == %ld (expected 276)", - FIELD_OFFSET(OSVERSIONINFOEXW, wServicePackMajor)); /* WORD */ - ok(FIELD_OFFSET(OSVERSIONINFOEXW, wServicePackMinor) == 278, - "FIELD_OFFSET(OSVERSIONINFOEXW, wServicePackMinor) == %ld (expected 278)", - FIELD_OFFSET(OSVERSIONINFOEXW, wServicePackMinor)); /* WORD */ - ok(FIELD_OFFSET(OSVERSIONINFOEXW, wSuiteMask) == 280, - "FIELD_OFFSET(OSVERSIONINFOEXW, wSuiteMask) == %ld (expected 280)", - FIELD_OFFSET(OSVERSIONINFOEXW, wSuiteMask)); /* WORD */ - ok(FIELD_OFFSET(OSVERSIONINFOEXW, wProductType) == 282, - "FIELD_OFFSET(OSVERSIONINFOEXW, wProductType) == %ld (expected 282)", - FIELD_OFFSET(OSVERSIONINFOEXW, wProductType)); /* BYTE */ - ok(FIELD_OFFSET(OSVERSIONINFOEXW, wReserved) == 283, - "FIELD_OFFSET(OSVERSIONINFOEXW, wReserved) == %ld (expected 283)", - FIELD_OFFSET(OSVERSIONINFOEXW, wReserved)); /* BYTE */ - ok(sizeof(OSVERSIONINFOEXW) == 284, "sizeof(OSVERSIONINFOEXW) == %d (expected 284)", sizeof(OSVERSIONINFOEXW)); + /* OFSTRUCT (pack 4) */ + TEST_TYPE(OFSTRUCT, 136, 2); + TEST_FIELD(OFSTRUCT, BYTE, cBytes, 0, 1, 1); + TEST_FIELD(OFSTRUCT, BYTE, fFixedDisk, 1, 1, 1); + TEST_FIELD(OFSTRUCT, WORD, nErrCode, 2, 2, 2); + TEST_FIELD(OFSTRUCT, BYTE[4], reserved, 4, 4, 1); + TEST_FIELD(OFSTRUCT, BYTE[OFS_MAXPATHNAME], szPathName, 8, 128, 1); - /* OSVERSIONINFOW */ - ok(FIELD_OFFSET(OSVERSIONINFOW, dwOSVersionInfoSize) == 0, - "FIELD_OFFSET(OSVERSIONINFOW, dwOSVersionInfoSize) == %ld (expected 0)", - FIELD_OFFSET(OSVERSIONINFOW, dwOSVersionInfoSize)); /* DWORD */ - ok(FIELD_OFFSET(OSVERSIONINFOW, dwMajorVersion) == 4, - "FIELD_OFFSET(OSVERSIONINFOW, dwMajorVersion) == %ld (expected 4)", - FIELD_OFFSET(OSVERSIONINFOW, dwMajorVersion)); /* DWORD */ - ok(FIELD_OFFSET(OSVERSIONINFOW, dwMinorVersion) == 8, - "FIELD_OFFSET(OSVERSIONINFOW, dwMinorVersion) == %ld (expected 8)", - FIELD_OFFSET(OSVERSIONINFOW, dwMinorVersion)); /* DWORD */ - ok(FIELD_OFFSET(OSVERSIONINFOW, dwBuildNumber) == 12, - "FIELD_OFFSET(OSVERSIONINFOW, dwBuildNumber) == %ld (expected 12)", - FIELD_OFFSET(OSVERSIONINFOW, dwBuildNumber)); /* DWORD */ - ok(FIELD_OFFSET(OSVERSIONINFOW, dwPlatformId) == 16, - "FIELD_OFFSET(OSVERSIONINFOW, dwPlatformId) == %ld (expected 16)", - FIELD_OFFSET(OSVERSIONINFOW, dwPlatformId)); /* DWORD */ - ok(FIELD_OFFSET(OSVERSIONINFOW, szCSDVersion) == 20, - "FIELD_OFFSET(OSVERSIONINFOW, szCSDVersion) == %ld (expected 20)", - FIELD_OFFSET(OSVERSIONINFOW, szCSDVersion)); /* WCHAR[128] */ - ok(sizeof(OSVERSIONINFOW) == 276, "sizeof(OSVERSIONINFOW) == %d (expected 276)", sizeof(OSVERSIONINFOW)); + /* OSVERSIONINFOA (pack 4) */ + TEST_TYPE(OSVERSIONINFOA, 148, 4); + TEST_FIELD(OSVERSIONINFOA, DWORD, dwOSVersionInfoSize, 0, 4, 4); + TEST_FIELD(OSVERSIONINFOA, DWORD, dwMajorVersion, 4, 4, 4); + TEST_FIELD(OSVERSIONINFOA, DWORD, dwMinorVersion, 8, 4, 4); + TEST_FIELD(OSVERSIONINFOA, DWORD, dwBuildNumber, 12, 4, 4); + TEST_FIELD(OSVERSIONINFOA, DWORD, dwPlatformId, 16, 4, 4); + TEST_FIELD(OSVERSIONINFOA, CHAR[128], szCSDVersion, 20, 128, 1); - /* OUTPUT_DEBUG_STRING_INFO */ - ok(FIELD_OFFSET(OUTPUT_DEBUG_STRING_INFO, lpDebugStringData) == 0, - "FIELD_OFFSET(OUTPUT_DEBUG_STRING_INFO, lpDebugStringData) == %ld (expected 0)", - FIELD_OFFSET(OUTPUT_DEBUG_STRING_INFO, lpDebugStringData)); /* LPSTR */ - ok(FIELD_OFFSET(OUTPUT_DEBUG_STRING_INFO, fUnicode) == 4, - "FIELD_OFFSET(OUTPUT_DEBUG_STRING_INFO, fUnicode) == %ld (expected 4)", - FIELD_OFFSET(OUTPUT_DEBUG_STRING_INFO, fUnicode)); /* WORD */ - ok(FIELD_OFFSET(OUTPUT_DEBUG_STRING_INFO, nDebugStringLength) == 6, - "FIELD_OFFSET(OUTPUT_DEBUG_STRING_INFO, nDebugStringLength) == %ld (expected 6)", - FIELD_OFFSET(OUTPUT_DEBUG_STRING_INFO, nDebugStringLength)); /* WORD */ - ok(sizeof(OUTPUT_DEBUG_STRING_INFO) == 8, "sizeof(OUTPUT_DEBUG_STRING_INFO) == %d (expected 8)", sizeof(OUTPUT_DEBUG_STRING_INFO)); + /* OSVERSIONINFOEXA (pack 4) */ + TEST_TYPE(OSVERSIONINFOEXA, 156, 4); + TEST_FIELD(OSVERSIONINFOEXA, DWORD, dwOSVersionInfoSize, 0, 4, 4); + TEST_FIELD(OSVERSIONINFOEXA, DWORD, dwMajorVersion, 4, 4, 4); + TEST_FIELD(OSVERSIONINFOEXA, DWORD, dwMinorVersion, 8, 4, 4); + TEST_FIELD(OSVERSIONINFOEXA, DWORD, dwBuildNumber, 12, 4, 4); + TEST_FIELD(OSVERSIONINFOEXA, DWORD, dwPlatformId, 16, 4, 4); + TEST_FIELD(OSVERSIONINFOEXA, CHAR[128], szCSDVersion, 20, 128, 1); + TEST_FIELD(OSVERSIONINFOEXA, WORD, wServicePackMajor, 148, 2, 2); + TEST_FIELD(OSVERSIONINFOEXA, WORD, wServicePackMinor, 150, 2, 2); + TEST_FIELD(OSVERSIONINFOEXA, WORD, wSuiteMask, 152, 2, 2); + TEST_FIELD(OSVERSIONINFOEXA, BYTE, wProductType, 154, 1, 1); + TEST_FIELD(OSVERSIONINFOEXA, BYTE, wReserved, 155, 1, 1); - /* OVERLAPPED */ - ok(FIELD_OFFSET(OVERLAPPED, Internal) == 0, - "FIELD_OFFSET(OVERLAPPED, Internal) == %ld (expected 0)", - FIELD_OFFSET(OVERLAPPED, Internal)); /* DWORD */ - ok(FIELD_OFFSET(OVERLAPPED, InternalHigh) == 4, - "FIELD_OFFSET(OVERLAPPED, InternalHigh) == %ld (expected 4)", - FIELD_OFFSET(OVERLAPPED, InternalHigh)); /* DWORD */ - ok(FIELD_OFFSET(OVERLAPPED, Offset) == 8, - "FIELD_OFFSET(OVERLAPPED, Offset) == %ld (expected 8)", - FIELD_OFFSET(OVERLAPPED, Offset)); /* DWORD */ - ok(FIELD_OFFSET(OVERLAPPED, OffsetHigh) == 12, - "FIELD_OFFSET(OVERLAPPED, OffsetHigh) == %ld (expected 12)", - FIELD_OFFSET(OVERLAPPED, OffsetHigh)); /* DWORD */ - ok(FIELD_OFFSET(OVERLAPPED, hEvent) == 16, - "FIELD_OFFSET(OVERLAPPED, hEvent) == %ld (expected 16)", - FIELD_OFFSET(OVERLAPPED, hEvent)); /* HANDLE */ - ok(sizeof(OVERLAPPED) == 20, "sizeof(OVERLAPPED) == %d (expected 20)", sizeof(OVERLAPPED)); + /* OSVERSIONINFOEXW (pack 4) */ + TEST_TYPE(OSVERSIONINFOEXW, 284, 4); + TEST_FIELD(OSVERSIONINFOEXW, DWORD, dwOSVersionInfoSize, 0, 4, 4); + TEST_FIELD(OSVERSIONINFOEXW, DWORD, dwMajorVersion, 4, 4, 4); + TEST_FIELD(OSVERSIONINFOEXW, DWORD, dwMinorVersion, 8, 4, 4); + TEST_FIELD(OSVERSIONINFOEXW, DWORD, dwBuildNumber, 12, 4, 4); + TEST_FIELD(OSVERSIONINFOEXW, DWORD, dwPlatformId, 16, 4, 4); + TEST_FIELD(OSVERSIONINFOEXW, WCHAR[128], szCSDVersion, 20, 256, 2); + TEST_FIELD(OSVERSIONINFOEXW, WORD, wServicePackMajor, 276, 2, 2); + TEST_FIELD(OSVERSIONINFOEXW, WORD, wServicePackMinor, 278, 2, 2); + TEST_FIELD(OSVERSIONINFOEXW, WORD, wSuiteMask, 280, 2, 2); + TEST_FIELD(OSVERSIONINFOEXW, BYTE, wProductType, 282, 1, 1); + TEST_FIELD(OSVERSIONINFOEXW, BYTE, wReserved, 283, 1, 1); - /* PROCESS_INFORMATION */ - ok(FIELD_OFFSET(PROCESS_INFORMATION, hProcess) == 0, - "FIELD_OFFSET(PROCESS_INFORMATION, hProcess) == %ld (expected 0)", - FIELD_OFFSET(PROCESS_INFORMATION, hProcess)); /* HANDLE */ - ok(FIELD_OFFSET(PROCESS_INFORMATION, hThread) == 4, - "FIELD_OFFSET(PROCESS_INFORMATION, hThread) == %ld (expected 4)", - FIELD_OFFSET(PROCESS_INFORMATION, hThread)); /* HANDLE */ - ok(FIELD_OFFSET(PROCESS_INFORMATION, dwProcessId) == 8, - "FIELD_OFFSET(PROCESS_INFORMATION, dwProcessId) == %ld (expected 8)", - FIELD_OFFSET(PROCESS_INFORMATION, dwProcessId)); /* DWORD */ - ok(FIELD_OFFSET(PROCESS_INFORMATION, dwThreadId) == 12, - "FIELD_OFFSET(PROCESS_INFORMATION, dwThreadId) == %ld (expected 12)", - FIELD_OFFSET(PROCESS_INFORMATION, dwThreadId)); /* DWORD */ - ok(sizeof(PROCESS_INFORMATION) == 16, "sizeof(PROCESS_INFORMATION) == %d (expected 16)", sizeof(PROCESS_INFORMATION)); + /* OSVERSIONINFOW (pack 4) */ + TEST_TYPE(OSVERSIONINFOW, 276, 4); + TEST_FIELD(OSVERSIONINFOW, DWORD, dwOSVersionInfoSize, 0, 4, 4); + TEST_FIELD(OSVERSIONINFOW, DWORD, dwMajorVersion, 4, 4, 4); + TEST_FIELD(OSVERSIONINFOW, DWORD, dwMinorVersion, 8, 4, 4); + TEST_FIELD(OSVERSIONINFOW, DWORD, dwBuildNumber, 12, 4, 4); + TEST_FIELD(OSVERSIONINFOW, DWORD, dwPlatformId, 16, 4, 4); + TEST_FIELD(OSVERSIONINFOW, WCHAR[128], szCSDVersion, 20, 256, 2); - /* RIP_INFO */ - ok(FIELD_OFFSET(RIP_INFO, dwError) == 0, - "FIELD_OFFSET(RIP_INFO, dwError) == %ld (expected 0)", - FIELD_OFFSET(RIP_INFO, dwError)); /* DWORD */ - ok(FIELD_OFFSET(RIP_INFO, dwType) == 4, - "FIELD_OFFSET(RIP_INFO, dwType) == %ld (expected 4)", - FIELD_OFFSET(RIP_INFO, dwType)); /* DWORD */ - ok(sizeof(RIP_INFO) == 8, "sizeof(RIP_INFO) == %d (expected 8)", sizeof(RIP_INFO)); + /* OUTPUT_DEBUG_STRING_INFO (pack 4) */ + TEST_TYPE(OUTPUT_DEBUG_STRING_INFO, 8, 4); + TEST_FIELD(OUTPUT_DEBUG_STRING_INFO, LPSTR, lpDebugStringData, 0, 4, 4); + TEST_FIELD(OUTPUT_DEBUG_STRING_INFO, WORD, fUnicode, 4, 2, 2); + TEST_FIELD(OUTPUT_DEBUG_STRING_INFO, WORD, nDebugStringLength, 6, 2, 2); - /* SECURITY_ATTRIBUTES */ - ok(FIELD_OFFSET(SECURITY_ATTRIBUTES, nLength) == 0, - "FIELD_OFFSET(SECURITY_ATTRIBUTES, nLength) == %ld (expected 0)", - FIELD_OFFSET(SECURITY_ATTRIBUTES, nLength)); /* DWORD */ - ok(FIELD_OFFSET(SECURITY_ATTRIBUTES, lpSecurityDescriptor) == 4, - "FIELD_OFFSET(SECURITY_ATTRIBUTES, lpSecurityDescriptor) == %ld (expected 4)", - FIELD_OFFSET(SECURITY_ATTRIBUTES, lpSecurityDescriptor)); /* LPVOID */ - ok(FIELD_OFFSET(SECURITY_ATTRIBUTES, bInheritHandle) == 8, - "FIELD_OFFSET(SECURITY_ATTRIBUTES, bInheritHandle) == %ld (expected 8)", - FIELD_OFFSET(SECURITY_ATTRIBUTES, bInheritHandle)); /* BOOL */ - ok(sizeof(SECURITY_ATTRIBUTES) == 12, "sizeof(SECURITY_ATTRIBUTES) == %d (expected 12)", sizeof(SECURITY_ATTRIBUTES)); + /* OVERLAPPED (pack 4) */ + TEST_TYPE(OVERLAPPED, 20, 4); + TEST_FIELD(OVERLAPPED, DWORD, Internal, 0, 4, 4); + TEST_FIELD(OVERLAPPED, DWORD, InternalHigh, 4, 4, 4); + TEST_FIELD(OVERLAPPED, DWORD, Offset, 8, 4, 4); + TEST_FIELD(OVERLAPPED, DWORD, OffsetHigh, 12, 4, 4); + TEST_FIELD(OVERLAPPED, HANDLE, hEvent, 16, 4, 4); - /* STARTUPINFOA */ - ok(FIELD_OFFSET(STARTUPINFOA, cb) == 0, - "FIELD_OFFSET(STARTUPINFOA, cb) == %ld (expected 0)", - FIELD_OFFSET(STARTUPINFOA, cb)); /* DWORD */ - ok(FIELD_OFFSET(STARTUPINFOA, lpReserved) == 4, - "FIELD_OFFSET(STARTUPINFOA, lpReserved) == %ld (expected 4)", - FIELD_OFFSET(STARTUPINFOA, lpReserved)); /* LPSTR */ - ok(FIELD_OFFSET(STARTUPINFOA, lpDesktop) == 8, - "FIELD_OFFSET(STARTUPINFOA, lpDesktop) == %ld (expected 8)", - FIELD_OFFSET(STARTUPINFOA, lpDesktop)); /* LPSTR */ - ok(FIELD_OFFSET(STARTUPINFOA, lpTitle) == 12, - "FIELD_OFFSET(STARTUPINFOA, lpTitle) == %ld (expected 12)", - FIELD_OFFSET(STARTUPINFOA, lpTitle)); /* LPSTR */ - ok(FIELD_OFFSET(STARTUPINFOA, dwX) == 16, - "FIELD_OFFSET(STARTUPINFOA, dwX) == %ld (expected 16)", - FIELD_OFFSET(STARTUPINFOA, dwX)); /* DWORD */ - ok(FIELD_OFFSET(STARTUPINFOA, dwY) == 20, - "FIELD_OFFSET(STARTUPINFOA, dwY) == %ld (expected 20)", - FIELD_OFFSET(STARTUPINFOA, dwY)); /* DWORD */ - ok(FIELD_OFFSET(STARTUPINFOA, dwXSize) == 24, - "FIELD_OFFSET(STARTUPINFOA, dwXSize) == %ld (expected 24)", - FIELD_OFFSET(STARTUPINFOA, dwXSize)); /* DWORD */ - ok(FIELD_OFFSET(STARTUPINFOA, dwYSize) == 28, - "FIELD_OFFSET(STARTUPINFOA, dwYSize) == %ld (expected 28)", - FIELD_OFFSET(STARTUPINFOA, dwYSize)); /* DWORD */ - ok(FIELD_OFFSET(STARTUPINFOA, dwXCountChars) == 32, - "FIELD_OFFSET(STARTUPINFOA, dwXCountChars) == %ld (expected 32)", - FIELD_OFFSET(STARTUPINFOA, dwXCountChars)); /* DWORD */ - ok(FIELD_OFFSET(STARTUPINFOA, dwYCountChars) == 36, - "FIELD_OFFSET(STARTUPINFOA, dwYCountChars) == %ld (expected 36)", - FIELD_OFFSET(STARTUPINFOA, dwYCountChars)); /* DWORD */ - ok(FIELD_OFFSET(STARTUPINFOA, dwFillAttribute) == 40, - "FIELD_OFFSET(STARTUPINFOA, dwFillAttribute) == %ld (expected 40)", - FIELD_OFFSET(STARTUPINFOA, dwFillAttribute)); /* DWORD */ - ok(FIELD_OFFSET(STARTUPINFOA, dwFlags) == 44, - "FIELD_OFFSET(STARTUPINFOA, dwFlags) == %ld (expected 44)", - FIELD_OFFSET(STARTUPINFOA, dwFlags)); /* DWORD */ - ok(FIELD_OFFSET(STARTUPINFOA, wShowWindow) == 48, - "FIELD_OFFSET(STARTUPINFOA, wShowWindow) == %ld (expected 48)", - FIELD_OFFSET(STARTUPINFOA, wShowWindow)); /* WORD */ - ok(FIELD_OFFSET(STARTUPINFOA, cbReserved2) == 50, - "FIELD_OFFSET(STARTUPINFOA, cbReserved2) == %ld (expected 50)", - FIELD_OFFSET(STARTUPINFOA, cbReserved2)); /* WORD */ - ok(FIELD_OFFSET(STARTUPINFOA, lpReserved2) == 52, - "FIELD_OFFSET(STARTUPINFOA, lpReserved2) == %ld (expected 52)", - FIELD_OFFSET(STARTUPINFOA, lpReserved2)); /* BYTE * */ - ok(FIELD_OFFSET(STARTUPINFOA, hStdInput) == 56, - "FIELD_OFFSET(STARTUPINFOA, hStdInput) == %ld (expected 56)", - FIELD_OFFSET(STARTUPINFOA, hStdInput)); /* HANDLE */ - ok(FIELD_OFFSET(STARTUPINFOA, hStdOutput) == 60, - "FIELD_OFFSET(STARTUPINFOA, hStdOutput) == %ld (expected 60)", - FIELD_OFFSET(STARTUPINFOA, hStdOutput)); /* HANDLE */ - ok(FIELD_OFFSET(STARTUPINFOA, hStdError) == 64, - "FIELD_OFFSET(STARTUPINFOA, hStdError) == %ld (expected 64)", - FIELD_OFFSET(STARTUPINFOA, hStdError)); /* HANDLE */ - ok(sizeof(STARTUPINFOA) == 68, "sizeof(STARTUPINFOA) == %d (expected 68)", sizeof(STARTUPINFOA)); + /* 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); - /* STARTUPINFOW */ - ok(FIELD_OFFSET(STARTUPINFOW, cb) == 0, - "FIELD_OFFSET(STARTUPINFOW, cb) == %ld (expected 0)", - FIELD_OFFSET(STARTUPINFOW, cb)); /* DWORD */ - ok(FIELD_OFFSET(STARTUPINFOW, lpReserved) == 4, - "FIELD_OFFSET(STARTUPINFOW, lpReserved) == %ld (expected 4)", - FIELD_OFFSET(STARTUPINFOW, lpReserved)); /* LPWSTR */ - ok(FIELD_OFFSET(STARTUPINFOW, lpDesktop) == 8, - "FIELD_OFFSET(STARTUPINFOW, lpDesktop) == %ld (expected 8)", - FIELD_OFFSET(STARTUPINFOW, lpDesktop)); /* LPWSTR */ - ok(FIELD_OFFSET(STARTUPINFOW, lpTitle) == 12, - "FIELD_OFFSET(STARTUPINFOW, lpTitle) == %ld (expected 12)", - FIELD_OFFSET(STARTUPINFOW, lpTitle)); /* LPWSTR */ - ok(FIELD_OFFSET(STARTUPINFOW, dwX) == 16, - "FIELD_OFFSET(STARTUPINFOW, dwX) == %ld (expected 16)", - FIELD_OFFSET(STARTUPINFOW, dwX)); /* DWORD */ - ok(FIELD_OFFSET(STARTUPINFOW, dwY) == 20, - "FIELD_OFFSET(STARTUPINFOW, dwY) == %ld (expected 20)", - FIELD_OFFSET(STARTUPINFOW, dwY)); /* DWORD */ - ok(FIELD_OFFSET(STARTUPINFOW, dwXSize) == 24, - "FIELD_OFFSET(STARTUPINFOW, dwXSize) == %ld (expected 24)", - FIELD_OFFSET(STARTUPINFOW, dwXSize)); /* DWORD */ - ok(FIELD_OFFSET(STARTUPINFOW, dwYSize) == 28, - "FIELD_OFFSET(STARTUPINFOW, dwYSize) == %ld (expected 28)", - FIELD_OFFSET(STARTUPINFOW, dwYSize)); /* DWORD */ - ok(FIELD_OFFSET(STARTUPINFOW, dwXCountChars) == 32, - "FIELD_OFFSET(STARTUPINFOW, dwXCountChars) == %ld (expected 32)", - FIELD_OFFSET(STARTUPINFOW, dwXCountChars)); /* DWORD */ - ok(FIELD_OFFSET(STARTUPINFOW, dwYCountChars) == 36, - "FIELD_OFFSET(STARTUPINFOW, dwYCountChars) == %ld (expected 36)", - FIELD_OFFSET(STARTUPINFOW, dwYCountChars)); /* DWORD */ - ok(FIELD_OFFSET(STARTUPINFOW, dwFillAttribute) == 40, - "FIELD_OFFSET(STARTUPINFOW, dwFillAttribute) == %ld (expected 40)", - FIELD_OFFSET(STARTUPINFOW, dwFillAttribute)); /* DWORD */ - ok(FIELD_OFFSET(STARTUPINFOW, dwFlags) == 44, - "FIELD_OFFSET(STARTUPINFOW, dwFlags) == %ld (expected 44)", - FIELD_OFFSET(STARTUPINFOW, dwFlags)); /* DWORD */ - ok(FIELD_OFFSET(STARTUPINFOW, wShowWindow) == 48, - "FIELD_OFFSET(STARTUPINFOW, wShowWindow) == %ld (expected 48)", - FIELD_OFFSET(STARTUPINFOW, wShowWindow)); /* WORD */ - ok(FIELD_OFFSET(STARTUPINFOW, cbReserved2) == 50, - "FIELD_OFFSET(STARTUPINFOW, cbReserved2) == %ld (expected 50)", - FIELD_OFFSET(STARTUPINFOW, cbReserved2)); /* WORD */ - ok(FIELD_OFFSET(STARTUPINFOW, lpReserved2) == 52, - "FIELD_OFFSET(STARTUPINFOW, lpReserved2) == %ld (expected 52)", - FIELD_OFFSET(STARTUPINFOW, lpReserved2)); /* BYTE * */ - ok(FIELD_OFFSET(STARTUPINFOW, hStdInput) == 56, - "FIELD_OFFSET(STARTUPINFOW, hStdInput) == %ld (expected 56)", - FIELD_OFFSET(STARTUPINFOW, hStdInput)); /* HANDLE */ - ok(FIELD_OFFSET(STARTUPINFOW, hStdOutput) == 60, - "FIELD_OFFSET(STARTUPINFOW, hStdOutput) == %ld (expected 60)", - FIELD_OFFSET(STARTUPINFOW, hStdOutput)); /* HANDLE */ - ok(FIELD_OFFSET(STARTUPINFOW, hStdError) == 64, - "FIELD_OFFSET(STARTUPINFOW, hStdError) == %ld (expected 64)", - FIELD_OFFSET(STARTUPINFOW, hStdError)); /* HANDLE */ - ok(sizeof(STARTUPINFOW) == 68, "sizeof(STARTUPINFOW) == %d (expected 68)", sizeof(STARTUPINFOW)); + /* PROCESS_INFORMATION (pack 4) */ + TEST_TYPE(PROCESS_INFORMATION, 16, 4); + TEST_FIELD(PROCESS_INFORMATION, HANDLE, hProcess, 0, 4, 4); + TEST_FIELD(PROCESS_INFORMATION, HANDLE, hThread, 4, 4, 4); + TEST_FIELD(PROCESS_INFORMATION, DWORD, dwProcessId, 8, 4, 4); + TEST_FIELD(PROCESS_INFORMATION, DWORD, dwThreadId, 12, 4, 4); - /* SYSLEVEL */ - ok(FIELD_OFFSET(SYSLEVEL, crst) == 0, - "FIELD_OFFSET(SYSLEVEL, crst) == %ld (expected 0)", - FIELD_OFFSET(SYSLEVEL, crst)); /* CRITICAL_SECTION */ - ok(FIELD_OFFSET(SYSLEVEL, level) == 24, - "FIELD_OFFSET(SYSLEVEL, level) == %ld (expected 24)", - FIELD_OFFSET(SYSLEVEL, level)); /* INT */ - ok(sizeof(SYSLEVEL) == 28, "sizeof(SYSLEVEL) == %d (expected 28)", sizeof(SYSLEVEL)); + /* RIP_INFO (pack 4) */ + TEST_TYPE(RIP_INFO, 8, 4); + TEST_FIELD(RIP_INFO, DWORD, dwError, 0, 4, 4); + TEST_FIELD(RIP_INFO, DWORD, dwType, 4, 4, 4); - /* SYSTEMTIME */ - ok(FIELD_OFFSET(SYSTEMTIME, wYear) == 0, - "FIELD_OFFSET(SYSTEMTIME, wYear) == %ld (expected 0)", - FIELD_OFFSET(SYSTEMTIME, wYear)); /* WORD */ - ok(FIELD_OFFSET(SYSTEMTIME, wMonth) == 2, - "FIELD_OFFSET(SYSTEMTIME, wMonth) == %ld (expected 2)", - FIELD_OFFSET(SYSTEMTIME, wMonth)); /* WORD */ - ok(FIELD_OFFSET(SYSTEMTIME, wDayOfWeek) == 4, - "FIELD_OFFSET(SYSTEMTIME, wDayOfWeek) == %ld (expected 4)", - FIELD_OFFSET(SYSTEMTIME, wDayOfWeek)); /* WORD */ - ok(FIELD_OFFSET(SYSTEMTIME, wDay) == 6, - "FIELD_OFFSET(SYSTEMTIME, wDay) == %ld (expected 6)", - FIELD_OFFSET(SYSTEMTIME, wDay)); /* WORD */ - ok(FIELD_OFFSET(SYSTEMTIME, wHour) == 8, - "FIELD_OFFSET(SYSTEMTIME, wHour) == %ld (expected 8)", - FIELD_OFFSET(SYSTEMTIME, wHour)); /* WORD */ - ok(FIELD_OFFSET(SYSTEMTIME, wMinute) == 10, - "FIELD_OFFSET(SYSTEMTIME, wMinute) == %ld (expected 10)", - FIELD_OFFSET(SYSTEMTIME, wMinute)); /* WORD */ - ok(FIELD_OFFSET(SYSTEMTIME, wSecond) == 12, - "FIELD_OFFSET(SYSTEMTIME, wSecond) == %ld (expected 12)", - FIELD_OFFSET(SYSTEMTIME, wSecond)); /* WORD */ - ok(FIELD_OFFSET(SYSTEMTIME, wMilliseconds) == 14, - "FIELD_OFFSET(SYSTEMTIME, wMilliseconds) == %ld (expected 14)", - FIELD_OFFSET(SYSTEMTIME, wMilliseconds)); /* WORD */ - ok(sizeof(SYSTEMTIME) == 16, "sizeof(SYSTEMTIME) == %d (expected 16)", sizeof(SYSTEMTIME)); + /* SECURITY_ATTRIBUTES (pack 4) */ + TEST_TYPE(SECURITY_ATTRIBUTES, 12, 4); + TEST_FIELD(SECURITY_ATTRIBUTES, DWORD, nLength, 0, 4, 4); + TEST_FIELD(SECURITY_ATTRIBUTES, LPVOID, lpSecurityDescriptor, 4, 4, 4); + TEST_FIELD(SECURITY_ATTRIBUTES, BOOL, bInheritHandle, 8, 4, 4); - /* SYSTEM_INFO */ - ok(FIELD_OFFSET(SYSTEM_INFO, dwPageSize) == 4, - "FIELD_OFFSET(SYSTEM_INFO, dwPageSize) == %ld (expected 4)", - FIELD_OFFSET(SYSTEM_INFO, dwPageSize)); /* DWORD */ - ok(FIELD_OFFSET(SYSTEM_INFO, lpMinimumApplicationAddress) == 8, - "FIELD_OFFSET(SYSTEM_INFO, lpMinimumApplicationAddress) == %ld (expected 8)", - FIELD_OFFSET(SYSTEM_INFO, lpMinimumApplicationAddress)); /* LPVOID */ - ok(FIELD_OFFSET(SYSTEM_INFO, lpMaximumApplicationAddress) == 12, - "FIELD_OFFSET(SYSTEM_INFO, lpMaximumApplicationAddress) == %ld (expected 12)", - FIELD_OFFSET(SYSTEM_INFO, lpMaximumApplicationAddress)); /* LPVOID */ - ok(FIELD_OFFSET(SYSTEM_INFO, dwActiveProcessorMask) == 16, - "FIELD_OFFSET(SYSTEM_INFO, dwActiveProcessorMask) == %ld (expected 16)", - FIELD_OFFSET(SYSTEM_INFO, dwActiveProcessorMask)); /* DWORD */ - ok(FIELD_OFFSET(SYSTEM_INFO, dwNumberOfProcessors) == 20, - "FIELD_OFFSET(SYSTEM_INFO, dwNumberOfProcessors) == %ld (expected 20)", - FIELD_OFFSET(SYSTEM_INFO, dwNumberOfProcessors)); /* DWORD */ - ok(FIELD_OFFSET(SYSTEM_INFO, dwProcessorType) == 24, - "FIELD_OFFSET(SYSTEM_INFO, dwProcessorType) == %ld (expected 24)", - FIELD_OFFSET(SYSTEM_INFO, dwProcessorType)); /* DWORD */ - ok(FIELD_OFFSET(SYSTEM_INFO, dwAllocationGranularity) == 28, - "FIELD_OFFSET(SYSTEM_INFO, dwAllocationGranularity) == %ld (expected 28)", - FIELD_OFFSET(SYSTEM_INFO, dwAllocationGranularity)); /* DWORD */ - ok(FIELD_OFFSET(SYSTEM_INFO, wProcessorLevel) == 32, - "FIELD_OFFSET(SYSTEM_INFO, wProcessorLevel) == %ld (expected 32)", - FIELD_OFFSET(SYSTEM_INFO, wProcessorLevel)); /* WORD */ - ok(FIELD_OFFSET(SYSTEM_INFO, wProcessorRevision) == 34, - "FIELD_OFFSET(SYSTEM_INFO, wProcessorRevision) == %ld (expected 34)", - FIELD_OFFSET(SYSTEM_INFO, wProcessorRevision)); /* WORD */ - ok(sizeof(SYSTEM_INFO) == 36, "sizeof(SYSTEM_INFO) == %d (expected 36)", sizeof(SYSTEM_INFO)); + /* STARTUPINFOA (pack 4) */ + TEST_TYPE(STARTUPINFOA, 68, 4); + TEST_FIELD(STARTUPINFOA, DWORD, cb, 0, 4, 4); + TEST_FIELD(STARTUPINFOA, LPSTR, lpReserved, 4, 4, 4); + TEST_FIELD(STARTUPINFOA, LPSTR, lpDesktop, 8, 4, 4); + TEST_FIELD(STARTUPINFOA, LPSTR, lpTitle, 12, 4, 4); + TEST_FIELD(STARTUPINFOA, DWORD, dwX, 16, 4, 4); + TEST_FIELD(STARTUPINFOA, DWORD, dwY, 20, 4, 4); + TEST_FIELD(STARTUPINFOA, DWORD, dwXSize, 24, 4, 4); + TEST_FIELD(STARTUPINFOA, DWORD, dwYSize, 28, 4, 4); + TEST_FIELD(STARTUPINFOA, DWORD, dwXCountChars, 32, 4, 4); + TEST_FIELD(STARTUPINFOA, DWORD, dwYCountChars, 36, 4, 4); + TEST_FIELD(STARTUPINFOA, DWORD, dwFillAttribute, 40, 4, 4); + TEST_FIELD(STARTUPINFOA, DWORD, dwFlags, 44, 4, 4); + TEST_FIELD(STARTUPINFOA, WORD, wShowWindow, 48, 2, 2); + TEST_FIELD(STARTUPINFOA, WORD, cbReserved2, 50, 2, 2); + TEST_FIELD(STARTUPINFOA, BYTE *, lpReserved2, 52, 4, 4); + TEST_FIELD(STARTUPINFOA, HANDLE, hStdInput, 56, 4, 4); + TEST_FIELD(STARTUPINFOA, HANDLE, hStdOutput, 60, 4, 4); + TEST_FIELD(STARTUPINFOA, HANDLE, hStdError, 64, 4, 4); - /* SYSTEM_POWER_STATUS */ - ok(FIELD_OFFSET(SYSTEM_POWER_STATUS, ACLineStatus) == 0, - "FIELD_OFFSET(SYSTEM_POWER_STATUS, ACLineStatus) == %ld (expected 0)", - FIELD_OFFSET(SYSTEM_POWER_STATUS, ACLineStatus)); /* BYTE */ - ok(FIELD_OFFSET(SYSTEM_POWER_STATUS, BatteryFlag) == 1, - "FIELD_OFFSET(SYSTEM_POWER_STATUS, BatteryFlag) == %ld (expected 1)", - FIELD_OFFSET(SYSTEM_POWER_STATUS, BatteryFlag)); /* BYTE */ - ok(FIELD_OFFSET(SYSTEM_POWER_STATUS, BatteryLifePercent) == 2, - "FIELD_OFFSET(SYSTEM_POWER_STATUS, BatteryLifePercent) == %ld (expected 2)", - FIELD_OFFSET(SYSTEM_POWER_STATUS, BatteryLifePercent)); /* BYTE */ - ok(FIELD_OFFSET(SYSTEM_POWER_STATUS, reserved) == 3, - "FIELD_OFFSET(SYSTEM_POWER_STATUS, reserved) == %ld (expected 3)", - FIELD_OFFSET(SYSTEM_POWER_STATUS, reserved)); /* BYTE */ - ok(FIELD_OFFSET(SYSTEM_POWER_STATUS, BatteryLifeTime) == 4, - "FIELD_OFFSET(SYSTEM_POWER_STATUS, BatteryLifeTime) == %ld (expected 4)", - FIELD_OFFSET(SYSTEM_POWER_STATUS, BatteryLifeTime)); /* DWORD */ - ok(FIELD_OFFSET(SYSTEM_POWER_STATUS, BatteryFullLifeTime) == 8, - "FIELD_OFFSET(SYSTEM_POWER_STATUS, BatteryFullLifeTime) == %ld (expected 8)", - FIELD_OFFSET(SYSTEM_POWER_STATUS, BatteryFullLifeTime)); /* DWORD */ - ok(sizeof(SYSTEM_POWER_STATUS) == 12, "sizeof(SYSTEM_POWER_STATUS) == %d (expected 12)", sizeof(SYSTEM_POWER_STATUS)); + /* STARTUPINFOW (pack 4) */ + TEST_TYPE(STARTUPINFOW, 68, 4); + TEST_FIELD(STARTUPINFOW, DWORD, cb, 0, 4, 4); + TEST_FIELD(STARTUPINFOW, LPWSTR, lpReserved, 4, 4, 4); + TEST_FIELD(STARTUPINFOW, LPWSTR, lpDesktop, 8, 4, 4); + TEST_FIELD(STARTUPINFOW, LPWSTR, lpTitle, 12, 4, 4); + TEST_FIELD(STARTUPINFOW, DWORD, dwX, 16, 4, 4); + TEST_FIELD(STARTUPINFOW, DWORD, dwY, 20, 4, 4); + TEST_FIELD(STARTUPINFOW, DWORD, dwXSize, 24, 4, 4); + TEST_FIELD(STARTUPINFOW, DWORD, dwYSize, 28, 4, 4); + TEST_FIELD(STARTUPINFOW, DWORD, dwXCountChars, 32, 4, 4); + TEST_FIELD(STARTUPINFOW, DWORD, dwYCountChars, 36, 4, 4); + TEST_FIELD(STARTUPINFOW, DWORD, dwFillAttribute, 40, 4, 4); + TEST_FIELD(STARTUPINFOW, DWORD, dwFlags, 44, 4, 4); + TEST_FIELD(STARTUPINFOW, WORD, wShowWindow, 48, 2, 2); + TEST_FIELD(STARTUPINFOW, WORD, cbReserved2, 50, 2, 2); + TEST_FIELD(STARTUPINFOW, BYTE *, lpReserved2, 52, 4, 4); + TEST_FIELD(STARTUPINFOW, HANDLE, hStdInput, 56, 4, 4); + TEST_FIELD(STARTUPINFOW, HANDLE, hStdOutput, 60, 4, 4); + TEST_FIELD(STARTUPINFOW, HANDLE, hStdError, 64, 4, 4); - /* TIME_ZONE_INFORMATION */ - ok(FIELD_OFFSET(TIME_ZONE_INFORMATION, Bias) == 0, - "FIELD_OFFSET(TIME_ZONE_INFORMATION, Bias) == %ld (expected 0)", - FIELD_OFFSET(TIME_ZONE_INFORMATION, Bias)); /* LONG */ - ok(FIELD_OFFSET(TIME_ZONE_INFORMATION, StandardName) == 4, - "FIELD_OFFSET(TIME_ZONE_INFORMATION, StandardName) == %ld (expected 4)", - FIELD_OFFSET(TIME_ZONE_INFORMATION, StandardName)); /* WCHAR[32] */ - ok(FIELD_OFFSET(TIME_ZONE_INFORMATION, StandardDate) == 68, - "FIELD_OFFSET(TIME_ZONE_INFORMATION, StandardDate) == %ld (expected 68)", - FIELD_OFFSET(TIME_ZONE_INFORMATION, StandardDate)); /* SYSTEMTIME */ - ok(FIELD_OFFSET(TIME_ZONE_INFORMATION, StandardBias) == 84, - "FIELD_OFFSET(TIME_ZONE_INFORMATION, StandardBias) == %ld (expected 84)", - FIELD_OFFSET(TIME_ZONE_INFORMATION, StandardBias)); /* LONG */ - ok(FIELD_OFFSET(TIME_ZONE_INFORMATION, DaylightName) == 88, - "FIELD_OFFSET(TIME_ZONE_INFORMATION, DaylightName) == %ld (expected 88)", - FIELD_OFFSET(TIME_ZONE_INFORMATION, DaylightName)); /* WCHAR[32] */ - ok(FIELD_OFFSET(TIME_ZONE_INFORMATION, DaylightDate) == 152, - "FIELD_OFFSET(TIME_ZONE_INFORMATION, DaylightDate) == %ld (expected 152)", - FIELD_OFFSET(TIME_ZONE_INFORMATION, DaylightDate)); /* SYSTEMTIME */ - ok(FIELD_OFFSET(TIME_ZONE_INFORMATION, DaylightBias) == 168, - "FIELD_OFFSET(TIME_ZONE_INFORMATION, DaylightBias) == %ld (expected 168)", - FIELD_OFFSET(TIME_ZONE_INFORMATION, DaylightBias)); /* LONG */ - ok(sizeof(TIME_ZONE_INFORMATION) == 172, "sizeof(TIME_ZONE_INFORMATION) == %d (expected 172)", sizeof(TIME_ZONE_INFORMATION)); + /* SYSLEVEL (pack 4) */ + TEST_TYPE(SYSLEVEL, 28, 4); + TEST_FIELD(SYSLEVEL, CRITICAL_SECTION, crst, 0, 24, 4); + TEST_FIELD(SYSLEVEL, INT, level, 24, 4, 4); - /* UNLOAD_DLL_DEBUG_INFO */ - ok(FIELD_OFFSET(UNLOAD_DLL_DEBUG_INFO, lpBaseOfDll) == 0, - "FIELD_OFFSET(UNLOAD_DLL_DEBUG_INFO, lpBaseOfDll) == %ld (expected 0)", - FIELD_OFFSET(UNLOAD_DLL_DEBUG_INFO, lpBaseOfDll)); /* LPVOID */ - ok(sizeof(UNLOAD_DLL_DEBUG_INFO) == 4, "sizeof(UNLOAD_DLL_DEBUG_INFO) == %d (expected 4)", sizeof(UNLOAD_DLL_DEBUG_INFO)); + /* SYSTEMTIME (pack 4) */ + TEST_TYPE(SYSTEMTIME, 16, 2); + TEST_FIELD(SYSTEMTIME, WORD, wYear, 0, 2, 2); + TEST_FIELD(SYSTEMTIME, WORD, wMonth, 2, 2, 2); + TEST_FIELD(SYSTEMTIME, WORD, wDayOfWeek, 4, 2, 2); + TEST_FIELD(SYSTEMTIME, WORD, wDay, 6, 2, 2); + TEST_FIELD(SYSTEMTIME, WORD, wHour, 8, 2, 2); + TEST_FIELD(SYSTEMTIME, WORD, wMinute, 10, 2, 2); + TEST_FIELD(SYSTEMTIME, WORD, wSecond, 12, 2, 2); + TEST_FIELD(SYSTEMTIME, WORD, wMilliseconds, 14, 2, 2); - /* WIN32_FILE_ATTRIBUTE_DATA */ - ok(FIELD_OFFSET(WIN32_FILE_ATTRIBUTE_DATA, dwFileAttributes) == 0, - "FIELD_OFFSET(WIN32_FILE_ATTRIBUTE_DATA, dwFileAttributes) == %ld (expected 0)", - FIELD_OFFSET(WIN32_FILE_ATTRIBUTE_DATA, dwFileAttributes)); /* DWORD */ - ok(FIELD_OFFSET(WIN32_FILE_ATTRIBUTE_DATA, ftCreationTime) == 4, - "FIELD_OFFSET(WIN32_FILE_ATTRIBUTE_DATA, ftCreationTime) == %ld (expected 4)", - FIELD_OFFSET(WIN32_FILE_ATTRIBUTE_DATA, ftCreationTime)); /* FILETIME */ - ok(FIELD_OFFSET(WIN32_FILE_ATTRIBUTE_DATA, ftLastAccessTime) == 12, - "FIELD_OFFSET(WIN32_FILE_ATTRIBUTE_DATA, ftLastAccessTime) == %ld (expected 12)", - FIELD_OFFSET(WIN32_FILE_ATTRIBUTE_DATA, ftLastAccessTime)); /* FILETIME */ - ok(FIELD_OFFSET(WIN32_FILE_ATTRIBUTE_DATA, ftLastWriteTime) == 20, - "FIELD_OFFSET(WIN32_FILE_ATTRIBUTE_DATA, ftLastWriteTime) == %ld (expected 20)", - FIELD_OFFSET(WIN32_FILE_ATTRIBUTE_DATA, ftLastWriteTime)); /* FILETIME */ - ok(FIELD_OFFSET(WIN32_FILE_ATTRIBUTE_DATA, nFileSizeHigh) == 28, - "FIELD_OFFSET(WIN32_FILE_ATTRIBUTE_DATA, nFileSizeHigh) == %ld (expected 28)", - FIELD_OFFSET(WIN32_FILE_ATTRIBUTE_DATA, nFileSizeHigh)); /* DWORD */ - ok(FIELD_OFFSET(WIN32_FILE_ATTRIBUTE_DATA, nFileSizeLow) == 32, - "FIELD_OFFSET(WIN32_FILE_ATTRIBUTE_DATA, nFileSizeLow) == %ld (expected 32)", - FIELD_OFFSET(WIN32_FILE_ATTRIBUTE_DATA, nFileSizeLow)); /* DWORD */ - ok(sizeof(WIN32_FILE_ATTRIBUTE_DATA) == 36, "sizeof(WIN32_FILE_ATTRIBUTE_DATA) == %d (expected 36)", sizeof(WIN32_FILE_ATTRIBUTE_DATA)); + /* SYSTEM_POWER_STATUS (pack 4) */ + TEST_TYPE(SYSTEM_POWER_STATUS, 12, 4); + TEST_FIELD(SYSTEM_POWER_STATUS, BYTE, ACLineStatus, 0, 1, 1); + TEST_FIELD(SYSTEM_POWER_STATUS, BYTE, BatteryFlag, 1, 1, 1); + TEST_FIELD(SYSTEM_POWER_STATUS, BYTE, BatteryLifePercent, 2, 1, 1); + TEST_FIELD(SYSTEM_POWER_STATUS, BYTE, reserved, 3, 1, 1); + TEST_FIELD(SYSTEM_POWER_STATUS, DWORD, BatteryLifeTime, 4, 4, 4); + TEST_FIELD(SYSTEM_POWER_STATUS, DWORD, BatteryFullLifeTime, 8, 4, 4); - /* WIN32_FIND_DATAA */ - ok(FIELD_OFFSET(WIN32_FIND_DATAA, dwFileAttributes) == 0, - "FIELD_OFFSET(WIN32_FIND_DATAA, dwFileAttributes) == %ld (expected 0)", - FIELD_OFFSET(WIN32_FIND_DATAA, dwFileAttributes)); /* DWORD */ - ok(FIELD_OFFSET(WIN32_FIND_DATAA, ftCreationTime) == 4, - "FIELD_OFFSET(WIN32_FIND_DATAA, ftCreationTime) == %ld (expected 4)", - FIELD_OFFSET(WIN32_FIND_DATAA, ftCreationTime)); /* FILETIME */ - ok(FIELD_OFFSET(WIN32_FIND_DATAA, ftLastAccessTime) == 12, - "FIELD_OFFSET(WIN32_FIND_DATAA, ftLastAccessTime) == %ld (expected 12)", - FIELD_OFFSET(WIN32_FIND_DATAA, ftLastAccessTime)); /* FILETIME */ - ok(FIELD_OFFSET(WIN32_FIND_DATAA, ftLastWriteTime) == 20, - "FIELD_OFFSET(WIN32_FIND_DATAA, ftLastWriteTime) == %ld (expected 20)", - FIELD_OFFSET(WIN32_FIND_DATAA, ftLastWriteTime)); /* FILETIME */ - ok(FIELD_OFFSET(WIN32_FIND_DATAA, nFileSizeHigh) == 28, - "FIELD_OFFSET(WIN32_FIND_DATAA, nFileSizeHigh) == %ld (expected 28)", - FIELD_OFFSET(WIN32_FIND_DATAA, nFileSizeHigh)); /* DWORD */ - ok(FIELD_OFFSET(WIN32_FIND_DATAA, nFileSizeLow) == 32, - "FIELD_OFFSET(WIN32_FIND_DATAA, nFileSizeLow) == %ld (expected 32)", - FIELD_OFFSET(WIN32_FIND_DATAA, nFileSizeLow)); /* DWORD */ - ok(FIELD_OFFSET(WIN32_FIND_DATAA, dwReserved0) == 36, - "FIELD_OFFSET(WIN32_FIND_DATAA, dwReserved0) == %ld (expected 36)", - FIELD_OFFSET(WIN32_FIND_DATAA, dwReserved0)); /* DWORD */ - ok(FIELD_OFFSET(WIN32_FIND_DATAA, dwReserved1) == 40, - "FIELD_OFFSET(WIN32_FIND_DATAA, dwReserved1) == %ld (expected 40)", - FIELD_OFFSET(WIN32_FIND_DATAA, dwReserved1)); /* DWORD */ - ok(FIELD_OFFSET(WIN32_FIND_DATAA, cFileName) == 44, - "FIELD_OFFSET(WIN32_FIND_DATAA, cFileName) == %ld (expected 44)", - FIELD_OFFSET(WIN32_FIND_DATAA, cFileName)); /* CHAR[260] */ - ok(FIELD_OFFSET(WIN32_FIND_DATAA, cAlternateFileName) == 304, - "FIELD_OFFSET(WIN32_FIND_DATAA, cAlternateFileName) == %ld (expected 304)", - FIELD_OFFSET(WIN32_FIND_DATAA, cAlternateFileName)); /* CHAR[14] */ - ok(sizeof(WIN32_FIND_DATAA) == 320, "sizeof(WIN32_FIND_DATAA) == %d (expected 320)", sizeof(WIN32_FIND_DATAA)); + /* TIME_ZONE_INFORMATION (pack 4) */ + TEST_TYPE(TIME_ZONE_INFORMATION, 172, 4); + TEST_FIELD(TIME_ZONE_INFORMATION, LONG, Bias, 0, 4, 4); + TEST_FIELD(TIME_ZONE_INFORMATION, WCHAR[32], StandardName, 4, 64, 2); + TEST_FIELD(TIME_ZONE_INFORMATION, SYSTEMTIME, StandardDate, 68, 16, 2); + TEST_FIELD(TIME_ZONE_INFORMATION, LONG, StandardBias, 84, 4, 4); + TEST_FIELD(TIME_ZONE_INFORMATION, WCHAR[32], DaylightName, 88, 64, 2); + TEST_FIELD(TIME_ZONE_INFORMATION, SYSTEMTIME, DaylightDate, 152, 16, 2); + TEST_FIELD(TIME_ZONE_INFORMATION, LONG, DaylightBias, 168, 4, 4); - /* WIN32_FIND_DATAW */ - ok(FIELD_OFFSET(WIN32_FIND_DATAW, dwFileAttributes) == 0, - "FIELD_OFFSET(WIN32_FIND_DATAW, dwFileAttributes) == %ld (expected 0)", - FIELD_OFFSET(WIN32_FIND_DATAW, dwFileAttributes)); /* DWORD */ - ok(FIELD_OFFSET(WIN32_FIND_DATAW, ftCreationTime) == 4, - "FIELD_OFFSET(WIN32_FIND_DATAW, ftCreationTime) == %ld (expected 4)", - FIELD_OFFSET(WIN32_FIND_DATAW, ftCreationTime)); /* FILETIME */ - ok(FIELD_OFFSET(WIN32_FIND_DATAW, ftLastAccessTime) == 12, - "FIELD_OFFSET(WIN32_FIND_DATAW, ftLastAccessTime) == %ld (expected 12)", - FIELD_OFFSET(WIN32_FIND_DATAW, ftLastAccessTime)); /* FILETIME */ - ok(FIELD_OFFSET(WIN32_FIND_DATAW, ftLastWriteTime) == 20, - "FIELD_OFFSET(WIN32_FIND_DATAW, ftLastWriteTime) == %ld (expected 20)", - FIELD_OFFSET(WIN32_FIND_DATAW, ftLastWriteTime)); /* FILETIME */ - ok(FIELD_OFFSET(WIN32_FIND_DATAW, nFileSizeHigh) == 28, - "FIELD_OFFSET(WIN32_FIND_DATAW, nFileSizeHigh) == %ld (expected 28)", - FIELD_OFFSET(WIN32_FIND_DATAW, nFileSizeHigh)); /* DWORD */ - ok(FIELD_OFFSET(WIN32_FIND_DATAW, nFileSizeLow) == 32, - "FIELD_OFFSET(WIN32_FIND_DATAW, nFileSizeLow) == %ld (expected 32)", - FIELD_OFFSET(WIN32_FIND_DATAW, nFileSizeLow)); /* DWORD */ - ok(FIELD_OFFSET(WIN32_FIND_DATAW, dwReserved0) == 36, - "FIELD_OFFSET(WIN32_FIND_DATAW, dwReserved0) == %ld (expected 36)", - FIELD_OFFSET(WIN32_FIND_DATAW, dwReserved0)); /* DWORD */ - ok(FIELD_OFFSET(WIN32_FIND_DATAW, dwReserved1) == 40, - "FIELD_OFFSET(WIN32_FIND_DATAW, dwReserved1) == %ld (expected 40)", - FIELD_OFFSET(WIN32_FIND_DATAW, dwReserved1)); /* DWORD */ - ok(FIELD_OFFSET(WIN32_FIND_DATAW, cFileName) == 44, - "FIELD_OFFSET(WIN32_FIND_DATAW, cFileName) == %ld (expected 44)", - FIELD_OFFSET(WIN32_FIND_DATAW, cFileName)); /* WCHAR[260] */ - ok(FIELD_OFFSET(WIN32_FIND_DATAW, cAlternateFileName) == 564, - "FIELD_OFFSET(WIN32_FIND_DATAW, cAlternateFileName) == %ld (expected 564)", - FIELD_OFFSET(WIN32_FIND_DATAW, cAlternateFileName)); /* WCHAR[14] */ - ok(sizeof(WIN32_FIND_DATAW) == 592, "sizeof(WIN32_FIND_DATAW) == %d (expected 592)", sizeof(WIN32_FIND_DATAW)); + /* UNLOAD_DLL_DEBUG_INFO (pack 4) */ + TEST_TYPE(UNLOAD_DLL_DEBUG_INFO, 4, 4); + TEST_FIELD(UNLOAD_DLL_DEBUG_INFO, LPVOID, lpBaseOfDll, 0, 4, 4); - /* WIN32_STREAM_ID */ - ok(FIELD_OFFSET(WIN32_STREAM_ID, dwStreamID) == 0, - "FIELD_OFFSET(WIN32_STREAM_ID, dwStreamID) == %ld (expected 0)", - FIELD_OFFSET(WIN32_STREAM_ID, dwStreamID)); /* DWORD */ - ok(FIELD_OFFSET(WIN32_STREAM_ID, dwStreamAttributes) == 4, - "FIELD_OFFSET(WIN32_STREAM_ID, dwStreamAttributes) == %ld (expected 4)", - FIELD_OFFSET(WIN32_STREAM_ID, dwStreamAttributes)); /* DWORD */ - ok(FIELD_OFFSET(WIN32_STREAM_ID, Size) == 8, - "FIELD_OFFSET(WIN32_STREAM_ID, Size) == %ld (expected 8)", - FIELD_OFFSET(WIN32_STREAM_ID, Size)); /* LARGE_INTEGER */ - ok(FIELD_OFFSET(WIN32_STREAM_ID, dwStreamNameSize) == 16, - "FIELD_OFFSET(WIN32_STREAM_ID, dwStreamNameSize) == %ld (expected 16)", - FIELD_OFFSET(WIN32_STREAM_ID, dwStreamNameSize)); /* DWORD */ - ok(FIELD_OFFSET(WIN32_STREAM_ID, cStreamName) == 20, - "FIELD_OFFSET(WIN32_STREAM_ID, cStreamName) == %ld (expected 20)", - FIELD_OFFSET(WIN32_STREAM_ID, cStreamName)); /* WCHAR[ANYSIZE_ARRAY] */ - ok(sizeof(WIN32_STREAM_ID) == 24, "sizeof(WIN32_STREAM_ID) == %d (expected 24)", sizeof(WIN32_STREAM_ID)); + /* WIN32_FILE_ATTRIBUTE_DATA (pack 4) */ + TEST_TYPE(WIN32_FILE_ATTRIBUTE_DATA, 36, 4); + TEST_FIELD(WIN32_FILE_ATTRIBUTE_DATA, DWORD, dwFileAttributes, 0, 4, 4); + TEST_FIELD(WIN32_FILE_ATTRIBUTE_DATA, FILETIME, ftCreationTime, 4, 8, 4); + TEST_FIELD(WIN32_FILE_ATTRIBUTE_DATA, FILETIME, ftLastAccessTime, 12, 8, 4); + TEST_FIELD(WIN32_FILE_ATTRIBUTE_DATA, FILETIME, ftLastWriteTime, 20, 8, 4); + TEST_FIELD(WIN32_FILE_ATTRIBUTE_DATA, DWORD, nFileSizeHigh, 28, 4, 4); + TEST_FIELD(WIN32_FILE_ATTRIBUTE_DATA, DWORD, nFileSizeLow, 32, 4, 4); + + /* WIN32_FIND_DATAA (pack 4) */ + TEST_TYPE(WIN32_FIND_DATAA, 320, 4); + TEST_FIELD(WIN32_FIND_DATAA, DWORD, dwFileAttributes, 0, 4, 4); + TEST_FIELD(WIN32_FIND_DATAA, FILETIME, ftCreationTime, 4, 8, 4); + TEST_FIELD(WIN32_FIND_DATAA, FILETIME, ftLastAccessTime, 12, 8, 4); + TEST_FIELD(WIN32_FIND_DATAA, FILETIME, ftLastWriteTime, 20, 8, 4); + TEST_FIELD(WIN32_FIND_DATAA, DWORD, nFileSizeHigh, 28, 4, 4); + TEST_FIELD(WIN32_FIND_DATAA, DWORD, nFileSizeLow, 32, 4, 4); + TEST_FIELD(WIN32_FIND_DATAA, DWORD, dwReserved0, 36, 4, 4); + TEST_FIELD(WIN32_FIND_DATAA, DWORD, dwReserved1, 40, 4, 4); + TEST_FIELD(WIN32_FIND_DATAA, CHAR[260], cFileName, 44, 260, 1); + TEST_FIELD(WIN32_FIND_DATAA, CHAR[14], cAlternateFileName, 304, 14, 1); + + /* WIN32_FIND_DATAW (pack 4) */ + TEST_TYPE(WIN32_FIND_DATAW, 592, 4); + TEST_FIELD(WIN32_FIND_DATAW, DWORD, dwFileAttributes, 0, 4, 4); + TEST_FIELD(WIN32_FIND_DATAW, FILETIME, ftCreationTime, 4, 8, 4); + TEST_FIELD(WIN32_FIND_DATAW, FILETIME, ftLastAccessTime, 12, 8, 4); + TEST_FIELD(WIN32_FIND_DATAW, FILETIME, ftLastWriteTime, 20, 8, 4); + TEST_FIELD(WIN32_FIND_DATAW, DWORD, nFileSizeHigh, 28, 4, 4); + TEST_FIELD(WIN32_FIND_DATAW, DWORD, nFileSizeLow, 32, 4, 4); + TEST_FIELD(WIN32_FIND_DATAW, DWORD, dwReserved0, 36, 4, 4); + TEST_FIELD(WIN32_FIND_DATAW, DWORD, dwReserved1, 40, 4, 4); + TEST_FIELD(WIN32_FIND_DATAW, WCHAR[260], cFileName, 44, 520, 2); + TEST_FIELD(WIN32_FIND_DATAW, WCHAR[14], cAlternateFileName, 564, 28, 2); + + /* WIN32_STREAM_ID (pack 4) */ + TEST_TYPE(WIN32_STREAM_ID, 24, 4); + TEST_FIELD(WIN32_STREAM_ID, DWORD, dwStreamID, 0, 4, 4); + TEST_FIELD(WIN32_STREAM_ID, DWORD, dwStreamAttributes, 4, 4, 4); + TEST_FIELD(WIN32_STREAM_ID, LARGE_INTEGER, Size, 8, 8, 4); + TEST_FIELD(WIN32_STREAM_ID, DWORD, dwStreamNameSize, 16, 4, 4); + TEST_FIELD(WIN32_STREAM_ID, WCHAR[ANYSIZE_ARRAY], cStreamName, 20, 2, 2); } diff --git a/dlls/ntdll/tests/.cvsignore b/dlls/ntdll/tests/.cvsignore index b9c63f4af2..a378654aff 100644 --- a/dlls/ntdll/tests/.cvsignore +++ b/dlls/ntdll/tests/.cvsignore @@ -1,5 +1,6 @@ Makefile error.ok +generated.ok ntdll_test.exe.spec.c rtlbitmap.ok testlist.c diff --git a/dlls/ntdll/tests/Makefile.in b/dlls/ntdll/tests/Makefile.in index 6ecbe05465..40befd3586 100644 --- a/dlls/ntdll/tests/Makefile.in +++ b/dlls/ntdll/tests/Makefile.in @@ -7,6 +7,7 @@ IMPORTS = ntdll CTESTS = \ error.c \ + generated.c \ rtlbitmap.c @MAKE_TEST_RULES@ diff --git a/dlls/ntdll/tests/generated.c b/dlls/ntdll/tests/generated.c new file mode 100644 index 0000000000..eec9656ef2 --- /dev/null +++ b/dlls/ntdll/tests/generated.c @@ -0,0 +1,639 @@ +/* File generated automatically from tools/winapi/test.dat; do not edit! */ +/* This file can be copied, modified and distributed without restriction. */ + +/* + * Unit tests for data structure packing + */ + +#include + +#include "wine/test.h" +#include "basetsd.h" +#include "winnt.h" +#include "windef.h" + +/*********************************************************************** + * Windows API extension + */ + +#if (_MSC_VER >= 1300) && defined(__cplusplus) +# define FIELD_ALIGNMENT(type, field) __alignof(((type*)0)->field) +#elif defined(__GNUC__) +# define FIELD_ALIGNMENT(type, field) __alignof__(((type*)0)->field) +#else +/* FIXME: Not sure if is possible to do without compiler extension */ +#endif + +/*********************************************************************** + * Test helper macros + */ + +#ifdef FIELD_ALIGNMENT +# define TEST_FIELD_ALIGNMENT(type, field, align) \ + ok(FIELD_ALIGNMENT(type, field) == align, \ + "FIELD_ALIGNMENT(" #type ", " #field ") == %d (expected " #align ")", \ + FIELD_ALIGNMENT(type, field)) +#else +# define TEST_FIELD_ALIGNMENT(type, field, align) do { } while (0) +#endif + +#define TEST_FIELD_OFFSET(type, field, offset) \ + ok(FIELD_OFFSET(type, field) == offset, \ + "FIELD_OFFSET(" #type ", " #field ") == %ld (expected " #offset ")", \ + FIELD_OFFSET(type, field)) + +#define TEST_TYPE_ALIGNMENT(type, align) \ + ok(TYPE_ALIGNMENT(type) == align, "TYPE_ALIGNMENT(" #type ") == %d (expected " #align ")", TYPE_ALIGNMENT(type)) + +#define TEST_TYPE_SIZE(type, size) \ + ok(sizeof(type) == size, "sizeof(" #type ") == %d (expected " #size ")", sizeof(type)) + +/*********************************************************************** + * Test macros + */ + +#define TEST_FIELD(type, field_type, field_name, field_offset, field_size, field_align) \ + TEST_TYPE_SIZE(field_type, field_size); \ + TEST_FIELD_ALIGNMENT(type, field_name, field_align); \ + TEST_FIELD_OFFSET(type, field_name, field_offset); \ + +#define TEST_TYPE(type, size, align) \ + TEST_TYPE_ALIGNMENT(type, align); \ + TEST_TYPE_SIZE(type, size) + +void test_pack(void) +{ + /* ACCESS_ALLOWED_ACE (pack 4) */ + TEST_TYPE(ACCESS_ALLOWED_ACE, 12, 4); + TEST_FIELD(ACCESS_ALLOWED_ACE, ACE_HEADER, Header, 0, 4, 2); + TEST_FIELD(ACCESS_ALLOWED_ACE, DWORD, Mask, 4, 4, 4); + TEST_FIELD(ACCESS_ALLOWED_ACE, DWORD, SidStart, 8, 4, 4); + + /* ACCESS_DENIED_ACE (pack 4) */ + TEST_TYPE(ACCESS_DENIED_ACE, 12, 4); + TEST_FIELD(ACCESS_DENIED_ACE, ACE_HEADER, Header, 0, 4, 2); + TEST_FIELD(ACCESS_DENIED_ACE, DWORD, Mask, 4, 4, 4); + TEST_FIELD(ACCESS_DENIED_ACE, DWORD, SidStart, 8, 4, 4); + + /* ACE_HEADER (pack 4) */ + TEST_TYPE(ACE_HEADER, 4, 2); + TEST_FIELD(ACE_HEADER, BYTE, AceType, 0, 1, 1); + TEST_FIELD(ACE_HEADER, BYTE, AceFlags, 1, 1, 1); + TEST_FIELD(ACE_HEADER, WORD, AceSize, 2, 2, 2); + + /* ACL (pack 4) */ + TEST_TYPE(ACL, 8, 2); + TEST_FIELD(ACL, BYTE, AclRevision, 0, 1, 1); + TEST_FIELD(ACL, BYTE, Sbz1, 1, 1, 1); + TEST_FIELD(ACL, WORD, AclSize, 2, 2, 2); + TEST_FIELD(ACL, WORD, AceCount, 4, 2, 2); + TEST_FIELD(ACL, WORD, Sbz2, 6, 2, 2); + + /* CONTEXT86 (pack 4) */ + TEST_TYPE(CONTEXT86, 716, 4); + TEST_FIELD(CONTEXT86, DWORD, ContextFlags, 0, 4, 4); + TEST_FIELD(CONTEXT86, DWORD, Dr0, 4, 4, 4); + TEST_FIELD(CONTEXT86, DWORD, Dr1, 8, 4, 4); + TEST_FIELD(CONTEXT86, DWORD, Dr2, 12, 4, 4); + TEST_FIELD(CONTEXT86, DWORD, Dr3, 16, 4, 4); + TEST_FIELD(CONTEXT86, DWORD, Dr6, 20, 4, 4); + TEST_FIELD(CONTEXT86, DWORD, Dr7, 24, 4, 4); + TEST_FIELD(CONTEXT86, FLOATING_SAVE_AREA, FloatSave, 28, 112, 4); + TEST_FIELD(CONTEXT86, DWORD, SegGs, 140, 4, 4); + TEST_FIELD(CONTEXT86, DWORD, SegFs, 144, 4, 4); + TEST_FIELD(CONTEXT86, DWORD, SegEs, 148, 4, 4); + TEST_FIELD(CONTEXT86, DWORD, SegDs, 152, 4, 4); + TEST_FIELD(CONTEXT86, DWORD, Edi, 156, 4, 4); + TEST_FIELD(CONTEXT86, DWORD, Esi, 160, 4, 4); + TEST_FIELD(CONTEXT86, DWORD, Ebx, 164, 4, 4); + TEST_FIELD(CONTEXT86, DWORD, Edx, 168, 4, 4); + TEST_FIELD(CONTEXT86, DWORD, Ecx, 172, 4, 4); + TEST_FIELD(CONTEXT86, DWORD, Eax, 176, 4, 4); + TEST_FIELD(CONTEXT86, DWORD, Ebp, 180, 4, 4); + TEST_FIELD(CONTEXT86, DWORD, Eip, 184, 4, 4); + TEST_FIELD(CONTEXT86, DWORD, SegCs, 188, 4, 4); + TEST_FIELD(CONTEXT86, DWORD, EFlags, 192, 4, 4); + TEST_FIELD(CONTEXT86, DWORD, Esp, 196, 4, 4); + TEST_FIELD(CONTEXT86, DWORD, SegSs, 200, 4, 4); + TEST_FIELD(CONTEXT86, BYTE[MAXIMUM_SUPPORTED_EXTENSION], ExtendedRegisters, 204, 512, 1); + + /* EXCEPTION_POINTERS (pack 4) */ + TEST_TYPE(EXCEPTION_POINTERS, 8, 4); + TEST_FIELD(EXCEPTION_POINTERS, PEXCEPTION_RECORD, ExceptionRecord, 0, 4, 4); + TEST_FIELD(EXCEPTION_POINTERS, PCONTEXT, ContextRecord, 4, 4, 4); + + /* EXCEPTION_RECORD (pack 4) */ + 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, DWORD, NumberParameters, 16, 4, 4); + TEST_FIELD(EXCEPTION_RECORD, DWORD[EXCEPTION_MAXIMUM_PARAMETERS], ExceptionInformation, 20, 60, 4); + + /* FLOATING_SAVE_AREA (pack 4) */ + TEST_TYPE(FLOATING_SAVE_AREA, 112, 4); + TEST_FIELD(FLOATING_SAVE_AREA, DWORD, ControlWord, 0, 4, 4); + TEST_FIELD(FLOATING_SAVE_AREA, DWORD, StatusWord, 4, 4, 4); + TEST_FIELD(FLOATING_SAVE_AREA, DWORD, TagWord, 8, 4, 4); + TEST_FIELD(FLOATING_SAVE_AREA, DWORD, ErrorOffset, 12, 4, 4); + TEST_FIELD(FLOATING_SAVE_AREA, DWORD, ErrorSelector, 16, 4, 4); + TEST_FIELD(FLOATING_SAVE_AREA, DWORD, DataOffset, 20, 4, 4); + TEST_FIELD(FLOATING_SAVE_AREA, DWORD, DataSelector, 24, 4, 4); + TEST_FIELD(FLOATING_SAVE_AREA, BYTE[SIZE_OF_80387_REGISTERS], RegisterArea, 28, 80, 1); + TEST_FIELD(FLOATING_SAVE_AREA, DWORD, Cr0NpxState, 108, 4, 4); + + /* FPO_DATA (pack 4) */ + TEST_TYPE(FPO_DATA, 16, 4); + TEST_FIELD(FPO_DATA, DWORD, ulOffStart, 0, 4, 4); + TEST_FIELD(FPO_DATA, DWORD, cbProcSize, 4, 4, 4); + TEST_FIELD(FPO_DATA, DWORD, cdwLocals, 8, 4, 4); + TEST_FIELD(FPO_DATA, WORD, cdwParams, 12, 2, 2); + + /* GENERIC_MAPPING (pack 4) */ + TEST_TYPE(GENERIC_MAPPING, 16, 4); + TEST_FIELD(GENERIC_MAPPING, ACCESS_MASK, GenericRead, 0, 4, 4); + TEST_FIELD(GENERIC_MAPPING, ACCESS_MASK, GenericWrite, 4, 4, 4); + TEST_FIELD(GENERIC_MAPPING, ACCESS_MASK, GenericExecute, 8, 4, 4); + TEST_FIELD(GENERIC_MAPPING, ACCESS_MASK, GenericAll, 12, 4, 4); + + /* IMAGE_ARCHIVE_MEMBER_HEADER (pack 4) */ + TEST_TYPE(IMAGE_ARCHIVE_MEMBER_HEADER, 60, 1); + TEST_FIELD(IMAGE_ARCHIVE_MEMBER_HEADER, BYTE[16], Name, 0, 16, 1); + TEST_FIELD(IMAGE_ARCHIVE_MEMBER_HEADER, BYTE[12], Date, 16, 12, 1); + TEST_FIELD(IMAGE_ARCHIVE_MEMBER_HEADER, BYTE[6], UserID, 28, 6, 1); + TEST_FIELD(IMAGE_ARCHIVE_MEMBER_HEADER, BYTE[6], GroupID, 34, 6, 1); + TEST_FIELD(IMAGE_ARCHIVE_MEMBER_HEADER, BYTE[8], Mode, 40, 8, 1); + TEST_FIELD(IMAGE_ARCHIVE_MEMBER_HEADER, BYTE[10], Size, 48, 10, 1); + TEST_FIELD(IMAGE_ARCHIVE_MEMBER_HEADER, BYTE[2], EndHeader, 58, 2, 1); + + /* IMAGE_AUX_SYMBOL (pack 2) */ + + /* IMAGE_BASE_RELOCATION (pack 2) */ + TEST_TYPE(IMAGE_BASE_RELOCATION, 8, 2); + TEST_FIELD(IMAGE_BASE_RELOCATION, DWORD, VirtualAddress, 0, 4, 2); + TEST_FIELD(IMAGE_BASE_RELOCATION, DWORD, SizeOfBlock, 4, 4, 2); + + /* IMAGE_BOUND_FORWARDER_REF (pack 4) */ + TEST_TYPE(IMAGE_BOUND_FORWARDER_REF, 8, 4); + TEST_FIELD(IMAGE_BOUND_FORWARDER_REF, DWORD, TimeDateStamp, 0, 4, 4); + TEST_FIELD(IMAGE_BOUND_FORWARDER_REF, WORD, OffsetModuleName, 4, 2, 2); + TEST_FIELD(IMAGE_BOUND_FORWARDER_REF, WORD, Reserved, 6, 2, 2); + + /* IMAGE_BOUND_IMPORT_DESCRIPTOR (pack 4) */ + TEST_TYPE(IMAGE_BOUND_IMPORT_DESCRIPTOR, 8, 4); + TEST_FIELD(IMAGE_BOUND_IMPORT_DESCRIPTOR, DWORD, TimeDateStamp, 0, 4, 4); + TEST_FIELD(IMAGE_BOUND_IMPORT_DESCRIPTOR, WORD, OffsetModuleName, 4, 2, 2); + TEST_FIELD(IMAGE_BOUND_IMPORT_DESCRIPTOR, WORD, NumberOfModuleForwarderRefs, 6, 2, 2); + + /* IMAGE_COFF_SYMBOLS_HEADER (pack 4) */ + TEST_TYPE(IMAGE_COFF_SYMBOLS_HEADER, 32, 4); + TEST_FIELD(IMAGE_COFF_SYMBOLS_HEADER, DWORD, NumberOfSymbols, 0, 4, 4); + TEST_FIELD(IMAGE_COFF_SYMBOLS_HEADER, DWORD, LvaToFirstSymbol, 4, 4, 4); + TEST_FIELD(IMAGE_COFF_SYMBOLS_HEADER, DWORD, NumberOfLinenumbers, 8, 4, 4); + TEST_FIELD(IMAGE_COFF_SYMBOLS_HEADER, DWORD, LvaToFirstLinenumber, 12, 4, 4); + TEST_FIELD(IMAGE_COFF_SYMBOLS_HEADER, DWORD, RvaToFirstByteOfCode, 16, 4, 4); + TEST_FIELD(IMAGE_COFF_SYMBOLS_HEADER, DWORD, RvaToLastByteOfCode, 20, 4, 4); + TEST_FIELD(IMAGE_COFF_SYMBOLS_HEADER, DWORD, RvaToFirstByteOfData, 24, 4, 4); + TEST_FIELD(IMAGE_COFF_SYMBOLS_HEADER, DWORD, RvaToLastByteOfData, 28, 4, 4); + + /* IMAGE_DATA_DIRECTORY (pack 4) */ + TEST_TYPE(IMAGE_DATA_DIRECTORY, 8, 4); + TEST_FIELD(IMAGE_DATA_DIRECTORY, DWORD, VirtualAddress, 0, 4, 4); + TEST_FIELD(IMAGE_DATA_DIRECTORY, DWORD, Size, 4, 4, 4); + + /* IMAGE_DEBUG_DIRECTORY (pack 4) */ + TEST_TYPE(IMAGE_DEBUG_DIRECTORY, 28, 4); + TEST_FIELD(IMAGE_DEBUG_DIRECTORY, DWORD, Characteristics, 0, 4, 4); + TEST_FIELD(IMAGE_DEBUG_DIRECTORY, DWORD, TimeDateStamp, 4, 4, 4); + TEST_FIELD(IMAGE_DEBUG_DIRECTORY, WORD, MajorVersion, 8, 2, 2); + TEST_FIELD(IMAGE_DEBUG_DIRECTORY, WORD, MinorVersion, 10, 2, 2); + TEST_FIELD(IMAGE_DEBUG_DIRECTORY, DWORD, Type, 12, 4, 4); + TEST_FIELD(IMAGE_DEBUG_DIRECTORY, DWORD, SizeOfData, 16, 4, 4); + TEST_FIELD(IMAGE_DEBUG_DIRECTORY, DWORD, AddressOfRawData, 20, 4, 4); + TEST_FIELD(IMAGE_DEBUG_DIRECTORY, DWORD, PointerToRawData, 24, 4, 4); + + /* IMAGE_DEBUG_MISC (pack 4) */ + TEST_TYPE(IMAGE_DEBUG_MISC, 16, 4); + TEST_FIELD(IMAGE_DEBUG_MISC, DWORD, DataType, 0, 4, 4); + TEST_FIELD(IMAGE_DEBUG_MISC, DWORD, Length, 4, 4, 4); + TEST_FIELD(IMAGE_DEBUG_MISC, BYTE, Unicode, 8, 1, 1); + TEST_FIELD(IMAGE_DEBUG_MISC, BYTE[ 3 ], Reserved, 9, 3, 1); + TEST_FIELD(IMAGE_DEBUG_MISC, BYTE[ 1 ], Data, 12, 1, 1); + + /* IMAGE_DOS_HEADER (pack 4) */ + TEST_TYPE(IMAGE_DOS_HEADER, 64, 4); + TEST_FIELD(IMAGE_DOS_HEADER, WORD, e_magic, 0, 2, 2); + TEST_FIELD(IMAGE_DOS_HEADER, WORD, e_cblp, 2, 2, 2); + TEST_FIELD(IMAGE_DOS_HEADER, WORD, e_cp, 4, 2, 2); + TEST_FIELD(IMAGE_DOS_HEADER, WORD, e_crlc, 6, 2, 2); + TEST_FIELD(IMAGE_DOS_HEADER, WORD, e_cparhdr, 8, 2, 2); + TEST_FIELD(IMAGE_DOS_HEADER, WORD, e_minalloc, 10, 2, 2); + TEST_FIELD(IMAGE_DOS_HEADER, WORD, e_maxalloc, 12, 2, 2); + TEST_FIELD(IMAGE_DOS_HEADER, WORD, e_ss, 14, 2, 2); + TEST_FIELD(IMAGE_DOS_HEADER, WORD, e_sp, 16, 2, 2); + TEST_FIELD(IMAGE_DOS_HEADER, WORD, e_csum, 18, 2, 2); + TEST_FIELD(IMAGE_DOS_HEADER, WORD, e_ip, 20, 2, 2); + TEST_FIELD(IMAGE_DOS_HEADER, WORD, e_cs, 22, 2, 2); + TEST_FIELD(IMAGE_DOS_HEADER, WORD, e_lfarlc, 24, 2, 2); + TEST_FIELD(IMAGE_DOS_HEADER, WORD, e_ovno, 26, 2, 2); + TEST_FIELD(IMAGE_DOS_HEADER, WORD[4], e_res, 28, 8, 2); + TEST_FIELD(IMAGE_DOS_HEADER, WORD, e_oemid, 36, 2, 2); + TEST_FIELD(IMAGE_DOS_HEADER, WORD, e_oeminfo, 38, 2, 2); + TEST_FIELD(IMAGE_DOS_HEADER, WORD[10], e_res2, 40, 20, 2); + TEST_FIELD(IMAGE_DOS_HEADER, DWORD, e_lfanew, 60, 4, 4); + + /* IMAGE_EXPORT_DIRECTORY (pack 4) */ + TEST_TYPE(IMAGE_EXPORT_DIRECTORY, 40, 4); + TEST_FIELD(IMAGE_EXPORT_DIRECTORY, DWORD, Characteristics, 0, 4, 4); + TEST_FIELD(IMAGE_EXPORT_DIRECTORY, DWORD, TimeDateStamp, 4, 4, 4); + TEST_FIELD(IMAGE_EXPORT_DIRECTORY, WORD, MajorVersion, 8, 2, 2); + TEST_FIELD(IMAGE_EXPORT_DIRECTORY, WORD, MinorVersion, 10, 2, 2); + TEST_FIELD(IMAGE_EXPORT_DIRECTORY, DWORD, Name, 12, 4, 4); + TEST_FIELD(IMAGE_EXPORT_DIRECTORY, DWORD, Base, 16, 4, 4); + TEST_FIELD(IMAGE_EXPORT_DIRECTORY, DWORD, NumberOfFunctions, 20, 4, 4); + TEST_FIELD(IMAGE_EXPORT_DIRECTORY, DWORD, NumberOfNames, 24, 4, 4); + TEST_FIELD(IMAGE_EXPORT_DIRECTORY, DWORD, AddressOfFunctions, 28, 4, 4); + TEST_FIELD(IMAGE_EXPORT_DIRECTORY, DWORD, AddressOfNames, 32, 4, 4); + TEST_FIELD(IMAGE_EXPORT_DIRECTORY, DWORD, AddressOfNameOrdinals, 36, 4, 4); + + /* IMAGE_FILE_HEADER (pack 4) */ + TEST_TYPE(IMAGE_FILE_HEADER, 20, 4); + TEST_FIELD(IMAGE_FILE_HEADER, WORD, Machine, 0, 2, 2); + TEST_FIELD(IMAGE_FILE_HEADER, WORD, NumberOfSections, 2, 2, 2); + TEST_FIELD(IMAGE_FILE_HEADER, DWORD, TimeDateStamp, 4, 4, 4); + TEST_FIELD(IMAGE_FILE_HEADER, DWORD, PointerToSymbolTable, 8, 4, 4); + TEST_FIELD(IMAGE_FILE_HEADER, DWORD, NumberOfSymbols, 12, 4, 4); + TEST_FIELD(IMAGE_FILE_HEADER, WORD, SizeOfOptionalHeader, 16, 2, 2); + TEST_FIELD(IMAGE_FILE_HEADER, WORD, Characteristics, 18, 2, 2); + + /* IMAGE_FUNCTION_ENTRY (pack 4) */ + TEST_TYPE(IMAGE_FUNCTION_ENTRY, 12, 4); + TEST_FIELD(IMAGE_FUNCTION_ENTRY, DWORD, StartingAddress, 0, 4, 4); + TEST_FIELD(IMAGE_FUNCTION_ENTRY, DWORD, EndingAddress, 4, 4, 4); + TEST_FIELD(IMAGE_FUNCTION_ENTRY, DWORD, EndOfPrologue, 8, 4, 4); + + /* IMAGE_IMPORT_BY_NAME (pack 4) */ + TEST_TYPE(IMAGE_IMPORT_BY_NAME, 4, 2); + TEST_FIELD(IMAGE_IMPORT_BY_NAME, WORD, Hint, 0, 2, 2); + TEST_FIELD(IMAGE_IMPORT_BY_NAME, BYTE[1], Name, 2, 1, 1); + + /* IMAGE_LOAD_CONFIG_DIRECTORY (pack 4) */ + TEST_TYPE(IMAGE_LOAD_CONFIG_DIRECTORY, 64, 4); + TEST_FIELD(IMAGE_LOAD_CONFIG_DIRECTORY, DWORD, Characteristics, 0, 4, 4); + TEST_FIELD(IMAGE_LOAD_CONFIG_DIRECTORY, DWORD, TimeDateStamp, 4, 4, 4); + TEST_FIELD(IMAGE_LOAD_CONFIG_DIRECTORY, WORD, MajorVersion, 8, 2, 2); + TEST_FIELD(IMAGE_LOAD_CONFIG_DIRECTORY, WORD, MinorVersion, 10, 2, 2); + TEST_FIELD(IMAGE_LOAD_CONFIG_DIRECTORY, DWORD, GlobalFlagsClear, 12, 4, 4); + TEST_FIELD(IMAGE_LOAD_CONFIG_DIRECTORY, DWORD, GlobalFlagsSet, 16, 4, 4); + TEST_FIELD(IMAGE_LOAD_CONFIG_DIRECTORY, DWORD, CriticalSectionDefaultTimeout, 20, 4, 4); + TEST_FIELD(IMAGE_LOAD_CONFIG_DIRECTORY, DWORD, DeCommitFreeBlockThreshold, 24, 4, 4); + TEST_FIELD(IMAGE_LOAD_CONFIG_DIRECTORY, DWORD, DeCommitTotalFreeThreshold, 28, 4, 4); + TEST_FIELD(IMAGE_LOAD_CONFIG_DIRECTORY, PVOID, LockPrefixTable, 32, 4, 4); + TEST_FIELD(IMAGE_LOAD_CONFIG_DIRECTORY, DWORD, MaximumAllocationSize, 36, 4, 4); + TEST_FIELD(IMAGE_LOAD_CONFIG_DIRECTORY, DWORD, VirtualMemoryThreshold, 40, 4, 4); + TEST_FIELD(IMAGE_LOAD_CONFIG_DIRECTORY, DWORD, ProcessHeapFlags, 44, 4, 4); + TEST_FIELD(IMAGE_LOAD_CONFIG_DIRECTORY, DWORD, ProcessAffinityMask, 48, 4, 4); + TEST_FIELD(IMAGE_LOAD_CONFIG_DIRECTORY, WORD, CSDVersion, 52, 2, 2); + TEST_FIELD(IMAGE_LOAD_CONFIG_DIRECTORY, WORD, Reserved1, 54, 2, 2); + TEST_FIELD(IMAGE_LOAD_CONFIG_DIRECTORY, PVOID, EditList, 56, 4, 4); + TEST_FIELD(IMAGE_LOAD_CONFIG_DIRECTORY, DWORD[1], Reserved, 60, 4, 4); + + /* IMAGE_NT_HEADERS (pack 4) */ + TEST_TYPE(IMAGE_NT_HEADERS, 248, 4); + TEST_FIELD(IMAGE_NT_HEADERS, DWORD, Signature, 0, 4, 4); + TEST_FIELD(IMAGE_NT_HEADERS, IMAGE_FILE_HEADER, FileHeader, 4, 20, 4); + TEST_FIELD(IMAGE_NT_HEADERS, IMAGE_OPTIONAL_HEADER, OptionalHeader, 24, 224, 4); + + /* IMAGE_OPTIONAL_HEADER (pack 4) */ + TEST_TYPE(IMAGE_OPTIONAL_HEADER, 224, 4); + TEST_FIELD(IMAGE_OPTIONAL_HEADER, WORD, Magic, 0, 2, 2); + TEST_FIELD(IMAGE_OPTIONAL_HEADER, BYTE, MajorLinkerVersion, 2, 1, 1); + TEST_FIELD(IMAGE_OPTIONAL_HEADER, BYTE, MinorLinkerVersion, 3, 1, 1); + TEST_FIELD(IMAGE_OPTIONAL_HEADER, DWORD, SizeOfCode, 4, 4, 4); + TEST_FIELD(IMAGE_OPTIONAL_HEADER, DWORD, SizeOfInitializedData, 8, 4, 4); + TEST_FIELD(IMAGE_OPTIONAL_HEADER, DWORD, SizeOfUninitializedData, 12, 4, 4); + TEST_FIELD(IMAGE_OPTIONAL_HEADER, DWORD, AddressOfEntryPoint, 16, 4, 4); + TEST_FIELD(IMAGE_OPTIONAL_HEADER, DWORD, BaseOfCode, 20, 4, 4); + TEST_FIELD(IMAGE_OPTIONAL_HEADER, DWORD, BaseOfData, 24, 4, 4); + TEST_FIELD(IMAGE_OPTIONAL_HEADER, DWORD, ImageBase, 28, 4, 4); + TEST_FIELD(IMAGE_OPTIONAL_HEADER, DWORD, SectionAlignment, 32, 4, 4); + TEST_FIELD(IMAGE_OPTIONAL_HEADER, DWORD, FileAlignment, 36, 4, 4); + TEST_FIELD(IMAGE_OPTIONAL_HEADER, WORD, MajorOperatingSystemVersion, 40, 2, 2); + TEST_FIELD(IMAGE_OPTIONAL_HEADER, WORD, MinorOperatingSystemVersion, 42, 2, 2); + TEST_FIELD(IMAGE_OPTIONAL_HEADER, WORD, MajorImageVersion, 44, 2, 2); + TEST_FIELD(IMAGE_OPTIONAL_HEADER, WORD, MinorImageVersion, 46, 2, 2); + TEST_FIELD(IMAGE_OPTIONAL_HEADER, WORD, MajorSubsystemVersion, 48, 2, 2); + TEST_FIELD(IMAGE_OPTIONAL_HEADER, WORD, MinorSubsystemVersion, 50, 2, 2); + TEST_FIELD(IMAGE_OPTIONAL_HEADER, DWORD, Win32VersionValue, 52, 4, 4); + TEST_FIELD(IMAGE_OPTIONAL_HEADER, DWORD, SizeOfImage, 56, 4, 4); + TEST_FIELD(IMAGE_OPTIONAL_HEADER, DWORD, SizeOfHeaders, 60, 4, 4); + TEST_FIELD(IMAGE_OPTIONAL_HEADER, DWORD, CheckSum, 64, 4, 4); + TEST_FIELD(IMAGE_OPTIONAL_HEADER, WORD, Subsystem, 68, 2, 2); + TEST_FIELD(IMAGE_OPTIONAL_HEADER, WORD, DllCharacteristics, 70, 2, 2); + TEST_FIELD(IMAGE_OPTIONAL_HEADER, DWORD, SizeOfStackReserve, 72, 4, 4); + TEST_FIELD(IMAGE_OPTIONAL_HEADER, DWORD, SizeOfStackCommit, 76, 4, 4); + TEST_FIELD(IMAGE_OPTIONAL_HEADER, DWORD, SizeOfHeapReserve, 80, 4, 4); + TEST_FIELD(IMAGE_OPTIONAL_HEADER, DWORD, SizeOfHeapCommit, 84, 4, 4); + TEST_FIELD(IMAGE_OPTIONAL_HEADER, DWORD, LoaderFlags, 88, 4, 4); + TEST_FIELD(IMAGE_OPTIONAL_HEADER, DWORD, NumberOfRvaAndSizes, 92, 4, 4); + TEST_FIELD(IMAGE_OPTIONAL_HEADER, IMAGE_DATA_DIRECTORY[IMAGE_NUMBEROF_DIRECTORY_ENTRIES], DataDirectory, 96, 128, 4); + + /* IMAGE_OS2_HEADER (pack 4) */ + TEST_TYPE(IMAGE_OS2_HEADER, 64, 4); + TEST_FIELD(IMAGE_OS2_HEADER, WORD, ne_magic, 0, 2, 2); + TEST_FIELD(IMAGE_OS2_HEADER, BYTE, ne_ver, 2, 1, 1); + TEST_FIELD(IMAGE_OS2_HEADER, BYTE, ne_rev, 3, 1, 1); + TEST_FIELD(IMAGE_OS2_HEADER, WORD, ne_enttab, 4, 2, 2); + TEST_FIELD(IMAGE_OS2_HEADER, WORD, ne_cbenttab, 6, 2, 2); + TEST_FIELD(IMAGE_OS2_HEADER, LONG, ne_crc, 8, 4, 4); + TEST_FIELD(IMAGE_OS2_HEADER, WORD, ne_flags, 12, 2, 2); + TEST_FIELD(IMAGE_OS2_HEADER, WORD, ne_autodata, 14, 2, 2); + TEST_FIELD(IMAGE_OS2_HEADER, WORD, ne_heap, 16, 2, 2); + TEST_FIELD(IMAGE_OS2_HEADER, WORD, ne_stack, 18, 2, 2); + TEST_FIELD(IMAGE_OS2_HEADER, DWORD, ne_csip, 20, 4, 4); + TEST_FIELD(IMAGE_OS2_HEADER, DWORD, ne_sssp, 24, 4, 4); + TEST_FIELD(IMAGE_OS2_HEADER, WORD, ne_cseg, 28, 2, 2); + TEST_FIELD(IMAGE_OS2_HEADER, WORD, ne_cmod, 30, 2, 2); + TEST_FIELD(IMAGE_OS2_HEADER, WORD, ne_cbnrestab, 32, 2, 2); + TEST_FIELD(IMAGE_OS2_HEADER, WORD, ne_segtab, 34, 2, 2); + TEST_FIELD(IMAGE_OS2_HEADER, WORD, ne_rsrctab, 36, 2, 2); + TEST_FIELD(IMAGE_OS2_HEADER, WORD, ne_restab, 38, 2, 2); + TEST_FIELD(IMAGE_OS2_HEADER, WORD, ne_modtab, 40, 2, 2); + TEST_FIELD(IMAGE_OS2_HEADER, WORD, ne_imptab, 42, 2, 2); + TEST_FIELD(IMAGE_OS2_HEADER, DWORD, ne_nrestab, 44, 4, 4); + TEST_FIELD(IMAGE_OS2_HEADER, WORD, ne_cmovent, 48, 2, 2); + TEST_FIELD(IMAGE_OS2_HEADER, WORD, ne_align, 50, 2, 2); + TEST_FIELD(IMAGE_OS2_HEADER, WORD, ne_cres, 52, 2, 2); + TEST_FIELD(IMAGE_OS2_HEADER, BYTE, ne_exetyp, 54, 1, 1); + TEST_FIELD(IMAGE_OS2_HEADER, BYTE, ne_flagsothers, 55, 1, 1); + TEST_FIELD(IMAGE_OS2_HEADER, WORD, fastload_offset, 56, 2, 2); + TEST_FIELD(IMAGE_OS2_HEADER, WORD, fastload_length, 58, 2, 2); + TEST_FIELD(IMAGE_OS2_HEADER, WORD, ne_swaparea, 60, 2, 2); + TEST_FIELD(IMAGE_OS2_HEADER, WORD, ne_expver, 62, 2, 2); + + /* IMAGE_RESOURCE_DATA_ENTRY (pack 4) */ + TEST_TYPE(IMAGE_RESOURCE_DATA_ENTRY, 16, 4); + TEST_FIELD(IMAGE_RESOURCE_DATA_ENTRY, DWORD, OffsetToData, 0, 4, 4); + TEST_FIELD(IMAGE_RESOURCE_DATA_ENTRY, DWORD, Size, 4, 4, 4); + TEST_FIELD(IMAGE_RESOURCE_DATA_ENTRY, DWORD, CodePage, 8, 4, 4); + TEST_FIELD(IMAGE_RESOURCE_DATA_ENTRY, DWORD, ResourceHandle, 12, 4, 4); + + /* IMAGE_RESOURCE_DIRECTORY (pack 4) */ + TEST_TYPE(IMAGE_RESOURCE_DIRECTORY, 16, 4); + TEST_FIELD(IMAGE_RESOURCE_DIRECTORY, DWORD, Characteristics, 0, 4, 4); + TEST_FIELD(IMAGE_RESOURCE_DIRECTORY, DWORD, TimeDateStamp, 4, 4, 4); + TEST_FIELD(IMAGE_RESOURCE_DIRECTORY, WORD, MajorVersion, 8, 2, 2); + TEST_FIELD(IMAGE_RESOURCE_DIRECTORY, WORD, MinorVersion, 10, 2, 2); + TEST_FIELD(IMAGE_RESOURCE_DIRECTORY, WORD, NumberOfNamedEntries, 12, 2, 2); + TEST_FIELD(IMAGE_RESOURCE_DIRECTORY, WORD, NumberOfIdEntries, 14, 2, 2); + + /* IMAGE_RESOURCE_DIRECTORY_ENTRY (pack 4) */ + + /* IMAGE_RESOURCE_DIRECTORY_STRING (pack 4) */ + TEST_TYPE(IMAGE_RESOURCE_DIRECTORY_STRING, 4, 2); + TEST_FIELD(IMAGE_RESOURCE_DIRECTORY_STRING, WORD, Length, 0, 2, 2); + TEST_FIELD(IMAGE_RESOURCE_DIRECTORY_STRING, CHAR[ 1 ], NameString, 2, 1, 1); + + /* IMAGE_RESOURCE_DIR_STRING_U (pack 4) */ + TEST_TYPE(IMAGE_RESOURCE_DIR_STRING_U, 4, 2); + TEST_FIELD(IMAGE_RESOURCE_DIR_STRING_U, WORD, Length, 0, 2, 2); + TEST_FIELD(IMAGE_RESOURCE_DIR_STRING_U, WCHAR[ 1 ], NameString, 2, 2, 2); + + /* IMAGE_SEPARATE_DEBUG_HEADER (pack 4) */ + TEST_TYPE(IMAGE_SEPARATE_DEBUG_HEADER, 48, 4); + TEST_FIELD(IMAGE_SEPARATE_DEBUG_HEADER, WORD, Signature, 0, 2, 2); + TEST_FIELD(IMAGE_SEPARATE_DEBUG_HEADER, WORD, Flags, 2, 2, 2); + TEST_FIELD(IMAGE_SEPARATE_DEBUG_HEADER, WORD, Machine, 4, 2, 2); + TEST_FIELD(IMAGE_SEPARATE_DEBUG_HEADER, WORD, Characteristics, 6, 2, 2); + TEST_FIELD(IMAGE_SEPARATE_DEBUG_HEADER, DWORD, TimeDateStamp, 8, 4, 4); + TEST_FIELD(IMAGE_SEPARATE_DEBUG_HEADER, DWORD, CheckSum, 12, 4, 4); + TEST_FIELD(IMAGE_SEPARATE_DEBUG_HEADER, DWORD, ImageBase, 16, 4, 4); + TEST_FIELD(IMAGE_SEPARATE_DEBUG_HEADER, DWORD, SizeOfImage, 20, 4, 4); + TEST_FIELD(IMAGE_SEPARATE_DEBUG_HEADER, DWORD, NumberOfSections, 24, 4, 4); + TEST_FIELD(IMAGE_SEPARATE_DEBUG_HEADER, DWORD, ExportedNamesSize, 28, 4, 4); + TEST_FIELD(IMAGE_SEPARATE_DEBUG_HEADER, DWORD, DebugDirectorySize, 32, 4, 4); + TEST_FIELD(IMAGE_SEPARATE_DEBUG_HEADER, DWORD, SectionAlignment, 36, 4, 4); + TEST_FIELD(IMAGE_SEPARATE_DEBUG_HEADER, DWORD[ 2 ], Reserved, 40, 8, 4); + + /* IMAGE_THUNK_DATA (pack 4) */ + + /* IMAGE_TLS_DIRECTORY (pack 4) */ + TEST_TYPE(IMAGE_TLS_DIRECTORY, 24, 4); + TEST_FIELD(IMAGE_TLS_DIRECTORY, DWORD, StartAddressOfRawData, 0, 4, 4); + TEST_FIELD(IMAGE_TLS_DIRECTORY, DWORD, EndAddressOfRawData, 4, 4, 4); + TEST_FIELD(IMAGE_TLS_DIRECTORY, LPDWORD, AddressOfIndex, 8, 4, 4); + TEST_FIELD(IMAGE_TLS_DIRECTORY, PIMAGE_TLS_CALLBACK *, AddressOfCallBacks, 12, 4, 4); + TEST_FIELD(IMAGE_TLS_DIRECTORY, DWORD, SizeOfZeroFill, 16, 4, 4); + TEST_FIELD(IMAGE_TLS_DIRECTORY, DWORD, Characteristics, 20, 4, 4); + + /* IMAGE_VXD_HEADER (pack 4) */ + TEST_TYPE(IMAGE_VXD_HEADER, 196, 4); + TEST_FIELD(IMAGE_VXD_HEADER, WORD, e32_magic, 0, 2, 2); + TEST_FIELD(IMAGE_VXD_HEADER, BYTE, e32_border, 2, 1, 1); + TEST_FIELD(IMAGE_VXD_HEADER, BYTE, e32_worder, 3, 1, 1); + TEST_FIELD(IMAGE_VXD_HEADER, DWORD, e32_level, 4, 4, 4); + TEST_FIELD(IMAGE_VXD_HEADER, WORD, e32_cpu, 8, 2, 2); + TEST_FIELD(IMAGE_VXD_HEADER, WORD, e32_os, 10, 2, 2); + TEST_FIELD(IMAGE_VXD_HEADER, DWORD, e32_ver, 12, 4, 4); + TEST_FIELD(IMAGE_VXD_HEADER, DWORD, e32_mflags, 16, 4, 4); + TEST_FIELD(IMAGE_VXD_HEADER, DWORD, e32_mpages, 20, 4, 4); + TEST_FIELD(IMAGE_VXD_HEADER, DWORD, e32_startobj, 24, 4, 4); + TEST_FIELD(IMAGE_VXD_HEADER, DWORD, e32_eip, 28, 4, 4); + TEST_FIELD(IMAGE_VXD_HEADER, DWORD, e32_stackobj, 32, 4, 4); + TEST_FIELD(IMAGE_VXD_HEADER, DWORD, e32_esp, 36, 4, 4); + TEST_FIELD(IMAGE_VXD_HEADER, DWORD, e32_pagesize, 40, 4, 4); + TEST_FIELD(IMAGE_VXD_HEADER, DWORD, e32_lastpagesize, 44, 4, 4); + TEST_FIELD(IMAGE_VXD_HEADER, DWORD, e32_fixupsize, 48, 4, 4); + TEST_FIELD(IMAGE_VXD_HEADER, DWORD, e32_fixupsum, 52, 4, 4); + TEST_FIELD(IMAGE_VXD_HEADER, DWORD, e32_ldrsize, 56, 4, 4); + TEST_FIELD(IMAGE_VXD_HEADER, DWORD, e32_ldrsum, 60, 4, 4); + TEST_FIELD(IMAGE_VXD_HEADER, DWORD, e32_objtab, 64, 4, 4); + TEST_FIELD(IMAGE_VXD_HEADER, DWORD, e32_objcnt, 68, 4, 4); + TEST_FIELD(IMAGE_VXD_HEADER, DWORD, e32_objmap, 72, 4, 4); + TEST_FIELD(IMAGE_VXD_HEADER, DWORD, e32_itermap, 76, 4, 4); + TEST_FIELD(IMAGE_VXD_HEADER, DWORD, e32_rsrctab, 80, 4, 4); + TEST_FIELD(IMAGE_VXD_HEADER, DWORD, e32_rsrccnt, 84, 4, 4); + TEST_FIELD(IMAGE_VXD_HEADER, DWORD, e32_restab, 88, 4, 4); + TEST_FIELD(IMAGE_VXD_HEADER, DWORD, e32_enttab, 92, 4, 4); + TEST_FIELD(IMAGE_VXD_HEADER, DWORD, e32_dirtab, 96, 4, 4); + TEST_FIELD(IMAGE_VXD_HEADER, DWORD, e32_dircnt, 100, 4, 4); + TEST_FIELD(IMAGE_VXD_HEADER, DWORD, e32_fpagetab, 104, 4, 4); + TEST_FIELD(IMAGE_VXD_HEADER, DWORD, e32_frectab, 108, 4, 4); + TEST_FIELD(IMAGE_VXD_HEADER, DWORD, e32_impmod, 112, 4, 4); + TEST_FIELD(IMAGE_VXD_HEADER, DWORD, e32_impmodcnt, 116, 4, 4); + TEST_FIELD(IMAGE_VXD_HEADER, DWORD, e32_impproc, 120, 4, 4); + TEST_FIELD(IMAGE_VXD_HEADER, DWORD, e32_pagesum, 124, 4, 4); + TEST_FIELD(IMAGE_VXD_HEADER, DWORD, e32_datapage, 128, 4, 4); + TEST_FIELD(IMAGE_VXD_HEADER, DWORD, e32_preload, 132, 4, 4); + TEST_FIELD(IMAGE_VXD_HEADER, DWORD, e32_nrestab, 136, 4, 4); + TEST_FIELD(IMAGE_VXD_HEADER, DWORD, e32_cbnrestab, 140, 4, 4); + TEST_FIELD(IMAGE_VXD_HEADER, DWORD, e32_nressum, 144, 4, 4); + TEST_FIELD(IMAGE_VXD_HEADER, DWORD, e32_autodata, 148, 4, 4); + TEST_FIELD(IMAGE_VXD_HEADER, DWORD, e32_debuginfo, 152, 4, 4); + TEST_FIELD(IMAGE_VXD_HEADER, DWORD, e32_debuglen, 156, 4, 4); + TEST_FIELD(IMAGE_VXD_HEADER, DWORD, e32_instpreload, 160, 4, 4); + TEST_FIELD(IMAGE_VXD_HEADER, DWORD, e32_instdemand, 164, 4, 4); + TEST_FIELD(IMAGE_VXD_HEADER, DWORD, e32_heapsize, 168, 4, 4); + TEST_FIELD(IMAGE_VXD_HEADER, BYTE[12], e32_res3, 172, 12, 1); + TEST_FIELD(IMAGE_VXD_HEADER, DWORD, e32_winresoff, 184, 4, 4); + TEST_FIELD(IMAGE_VXD_HEADER, DWORD, e32_winreslen, 188, 4, 4); + TEST_FIELD(IMAGE_VXD_HEADER, WORD, e32_devid, 192, 2, 2); + TEST_FIELD(IMAGE_VXD_HEADER, WORD, e32_ddkver, 194, 2, 2); + + /* LIST_ENTRY (pack 4) */ + TEST_TYPE(LIST_ENTRY, 8, 4); + TEST_FIELD(LIST_ENTRY, struct _LIST_ENTRY *, Flink, 0, 4, 4); + TEST_FIELD(LIST_ENTRY, struct _LIST_ENTRY *, Blink, 4, 4, 4); + + /* LUID (pack 4) */ + TEST_TYPE(LUID, 8, 4); + TEST_FIELD(LUID, DWORD, LowPart, 0, 4, 4); + TEST_FIELD(LUID, LONG, HighPart, 4, 4, 4); + + /* LUID_AND_ATTRIBUTES (pack 4) */ + TEST_TYPE(LUID_AND_ATTRIBUTES, 12, 4); + TEST_FIELD(LUID_AND_ATTRIBUTES, LUID, Luid, 0, 8, 4); + TEST_FIELD(LUID_AND_ATTRIBUTES, DWORD, Attributes, 8, 4, 4); + + /* MEMORY_BASIC_INFORMATION (pack 4) */ + TEST_TYPE(MEMORY_BASIC_INFORMATION, 28, 4); + TEST_FIELD(MEMORY_BASIC_INFORMATION, LPVOID, BaseAddress, 0, 4, 4); + TEST_FIELD(MEMORY_BASIC_INFORMATION, LPVOID, AllocationBase, 4, 4, 4); + TEST_FIELD(MEMORY_BASIC_INFORMATION, DWORD, AllocationProtect, 8, 4, 4); + TEST_FIELD(MEMORY_BASIC_INFORMATION, DWORD, RegionSize, 12, 4, 4); + TEST_FIELD(MEMORY_BASIC_INFORMATION, DWORD, State, 16, 4, 4); + TEST_FIELD(MEMORY_BASIC_INFORMATION, DWORD, Protect, 20, 4, 4); + TEST_FIELD(MEMORY_BASIC_INFORMATION, DWORD, Type, 24, 4, 4); + + /* MESSAGE_RESOURCE_BLOCK (pack 4) */ + TEST_TYPE(MESSAGE_RESOURCE_BLOCK, 12, 4); + TEST_FIELD(MESSAGE_RESOURCE_BLOCK, DWORD, LowId, 0, 4, 4); + TEST_FIELD(MESSAGE_RESOURCE_BLOCK, DWORD, HighId, 4, 4, 4); + TEST_FIELD(MESSAGE_RESOURCE_BLOCK, DWORD, OffsetToEntries, 8, 4, 4); + + /* MESSAGE_RESOURCE_DATA (pack 4) */ + TEST_TYPE(MESSAGE_RESOURCE_DATA, 16, 4); + TEST_FIELD(MESSAGE_RESOURCE_DATA, DWORD, NumberOfBlocks, 0, 4, 4); + TEST_FIELD(MESSAGE_RESOURCE_DATA, MESSAGE_RESOURCE_BLOCK[ 1 ], Blocks, 4, 12, 4); + + /* MESSAGE_RESOURCE_ENTRY (pack 4) */ + TEST_TYPE(MESSAGE_RESOURCE_ENTRY, 6, 2); + TEST_FIELD(MESSAGE_RESOURCE_ENTRY, WORD, Length, 0, 2, 2); + TEST_FIELD(MESSAGE_RESOURCE_ENTRY, WORD, Flags, 2, 2, 2); + TEST_FIELD(MESSAGE_RESOURCE_ENTRY, BYTE[1], Text, 4, 1, 1); + + /* PRIVILEGE_SET (pack 4) */ + TEST_TYPE(PRIVILEGE_SET, 20, 4); + TEST_FIELD(PRIVILEGE_SET, DWORD, PrivilegeCount, 0, 4, 4); + TEST_FIELD(PRIVILEGE_SET, DWORD, Control, 4, 4, 4); + TEST_FIELD(PRIVILEGE_SET, LUID_AND_ATTRIBUTES[ANYSIZE_ARRAY], Privilege, 8, 12, 4); + + /* RTL_CRITICAL_SECTION (pack 4) */ + TEST_TYPE(RTL_CRITICAL_SECTION, 24, 4); + TEST_FIELD(RTL_CRITICAL_SECTION, PRTL_CRITICAL_SECTION_DEBUG, DebugInfo, 0, 4, 4); + TEST_FIELD(RTL_CRITICAL_SECTION, LONG, LockCount, 4, 4, 4); + TEST_FIELD(RTL_CRITICAL_SECTION, LONG, RecursionCount, 8, 4, 4); + TEST_FIELD(RTL_CRITICAL_SECTION, HANDLE, OwningThread, 12, 4, 4); + TEST_FIELD(RTL_CRITICAL_SECTION, HANDLE, LockSemaphore, 16, 4, 4); + TEST_FIELD(RTL_CRITICAL_SECTION, ULONG_PTR, SpinCount, 20, 4, 4); + + /* RTL_CRITICAL_SECTION_DEBUG (pack 4) */ + TEST_TYPE(RTL_CRITICAL_SECTION_DEBUG, 32, 4); + TEST_FIELD(RTL_CRITICAL_SECTION_DEBUG, WORD, Type, 0, 2, 2); + TEST_FIELD(RTL_CRITICAL_SECTION_DEBUG, WORD, CreatorBackTraceIndex, 2, 2, 2); + TEST_FIELD(RTL_CRITICAL_SECTION_DEBUG, struct _RTL_CRITICAL_SECTION *, CriticalSection, 4, 4, 4); + TEST_FIELD(RTL_CRITICAL_SECTION_DEBUG, LIST_ENTRY, ProcessLocksList, 8, 8, 4); + TEST_FIELD(RTL_CRITICAL_SECTION_DEBUG, DWORD, EntryCount, 16, 4, 4); + TEST_FIELD(RTL_CRITICAL_SECTION_DEBUG, DWORD, ContentionCount, 20, 4, 4); + TEST_FIELD(RTL_CRITICAL_SECTION_DEBUG, DWORD[ 2 ], Spare, 24, 8, 4); + + /* SECURITY_DESCRIPTOR (pack 4) */ + TEST_TYPE(SECURITY_DESCRIPTOR, 20, 4); + TEST_FIELD(SECURITY_DESCRIPTOR, BYTE, Revision, 0, 1, 1); + TEST_FIELD(SECURITY_DESCRIPTOR, BYTE, Sbz1, 1, 1, 1); + TEST_FIELD(SECURITY_DESCRIPTOR, SECURITY_DESCRIPTOR_CONTROL, Control, 2, 2, 2); + TEST_FIELD(SECURITY_DESCRIPTOR, PSID, Owner, 4, 4, 4); + TEST_FIELD(SECURITY_DESCRIPTOR, PSID, Group, 8, 4, 4); + TEST_FIELD(SECURITY_DESCRIPTOR, PACL, Sacl, 12, 4, 4); + TEST_FIELD(SECURITY_DESCRIPTOR, PACL, Dacl, 16, 4, 4); + + /* SECURITY_DESCRIPTOR_RELATIVE (pack 4) */ + TEST_TYPE(SECURITY_DESCRIPTOR_RELATIVE, 20, 4); + TEST_FIELD(SECURITY_DESCRIPTOR_RELATIVE, BYTE, Revision, 0, 1, 1); + TEST_FIELD(SECURITY_DESCRIPTOR_RELATIVE, BYTE, Sbz1, 1, 1, 1); + TEST_FIELD(SECURITY_DESCRIPTOR_RELATIVE, SECURITY_DESCRIPTOR_CONTROL, Control, 2, 2, 2); + TEST_FIELD(SECURITY_DESCRIPTOR_RELATIVE, DWORD, Owner, 4, 4, 4); + TEST_FIELD(SECURITY_DESCRIPTOR_RELATIVE, DWORD, Group, 8, 4, 4); + TEST_FIELD(SECURITY_DESCRIPTOR_RELATIVE, DWORD, Sacl, 12, 4, 4); + TEST_FIELD(SECURITY_DESCRIPTOR_RELATIVE, DWORD, Dacl, 16, 4, 4); + + /* SID (pack 4) */ + TEST_TYPE(SID, 12, 4); + TEST_FIELD(SID, BYTE, Revision, 0, 1, 1); + TEST_FIELD(SID, BYTE, SubAuthorityCount, 1, 1, 1); + TEST_FIELD(SID, SID_IDENTIFIER_AUTHORITY, IdentifierAuthority, 2, 6, 1); + TEST_FIELD(SID, DWORD[1], SubAuthority, 8, 4, 4); + + /* SID_AND_ATTRIBUTES (pack 4) */ + TEST_TYPE(SID_AND_ATTRIBUTES, 8, 4); + TEST_FIELD(SID_AND_ATTRIBUTES, PSID, Sid, 0, 4, 4); + TEST_FIELD(SID_AND_ATTRIBUTES, DWORD, Attributes, 4, 4, 4); + + /* SID_IDENTIFIER_AUTHORITY (pack 4) */ + TEST_TYPE(SID_IDENTIFIER_AUTHORITY, 6, 1); + TEST_FIELD(SID_IDENTIFIER_AUTHORITY, BYTE[6], Value, 0, 6, 1); + + /* SINGLE_LIST_ENTRY (pack 4) */ + TEST_TYPE(SINGLE_LIST_ENTRY, 4, 4); + TEST_FIELD(SINGLE_LIST_ENTRY, struct _SINGLE_LIST_ENTRY *, Next, 0, 4, 4); + + /* SYSTEM_ALARM_ACE (pack 4) */ + TEST_TYPE(SYSTEM_ALARM_ACE, 12, 4); + TEST_FIELD(SYSTEM_ALARM_ACE, ACE_HEADER, Header, 0, 4, 2); + TEST_FIELD(SYSTEM_ALARM_ACE, DWORD, Mask, 4, 4, 4); + TEST_FIELD(SYSTEM_ALARM_ACE, DWORD, SidStart, 8, 4, 4); + + /* SYSTEM_AUDIT_ACE (pack 4) */ + TEST_TYPE(SYSTEM_AUDIT_ACE, 12, 4); + TEST_FIELD(SYSTEM_AUDIT_ACE, ACE_HEADER, Header, 0, 4, 2); + TEST_FIELD(SYSTEM_AUDIT_ACE, DWORD, Mask, 4, 4, 4); + TEST_FIELD(SYSTEM_AUDIT_ACE, DWORD, SidStart, 8, 4, 4); + + /* TOKEN_DEFAULT_DACL (pack 4) */ + TEST_TYPE(TOKEN_DEFAULT_DACL, 4, 4); + TEST_FIELD(TOKEN_DEFAULT_DACL, PACL, DefaultDacl, 0, 4, 4); + + /* TOKEN_GROUPS (pack 4) */ + TEST_TYPE(TOKEN_GROUPS, 12, 4); + TEST_FIELD(TOKEN_GROUPS, DWORD, GroupCount, 0, 4, 4); + TEST_FIELD(TOKEN_GROUPS, SID_AND_ATTRIBUTES[ANYSIZE_ARRAY], Groups, 4, 8, 4); + + /* TOKEN_OWNER (pack 4) */ + TEST_TYPE(TOKEN_OWNER, 4, 4); + TEST_FIELD(TOKEN_OWNER, PSID, Owner, 0, 4, 4); + + /* TOKEN_PRIMARY_GROUP (pack 4) */ + TEST_TYPE(TOKEN_PRIMARY_GROUP, 4, 4); + TEST_FIELD(TOKEN_PRIMARY_GROUP, PSID, PrimaryGroup, 0, 4, 4); + + /* TOKEN_PRIVILEGES (pack 4) */ + TEST_TYPE(TOKEN_PRIVILEGES, 16, 4); + TEST_FIELD(TOKEN_PRIVILEGES, DWORD, PrivilegeCount, 0, 4, 4); + TEST_FIELD(TOKEN_PRIVILEGES, LUID_AND_ATTRIBUTES[ANYSIZE_ARRAY], Privileges, 4, 12, 4); + + /* TOKEN_SOURCE (pack 4) */ + TEST_TYPE(TOKEN_SOURCE, 16, 4); + TEST_FIELD(TOKEN_SOURCE, char[8], Sourcename, 0, 8, 1); + TEST_FIELD(TOKEN_SOURCE, LUID, SourceIdentifier, 8, 8, 4); + + /* TOKEN_USER (pack 4) */ + TEST_TYPE(TOKEN_USER, 8, 4); + TEST_FIELD(TOKEN_USER, SID_AND_ATTRIBUTES, User, 0, 8, 4); + +} + +START_TEST(generated) +{ + test_pack(); +} diff --git a/dlls/user/tests/generated.c b/dlls/user/tests/generated.c index 37db540c99..0b9b67fe5f 100644 --- a/dlls/user/tests/generated.c +++ b/dlls/user/tests/generated.c @@ -8,1486 +8,754 @@ #include #include "wine/test.h" +#include "basetsd.h" +#include "winnt.h" +#include "windef.h" #include "winbase.h" +#include "wingdi.h" #include "winuser.h" +/*********************************************************************** + * Windows API extension + */ + +#if (_MSC_VER >= 1300) && defined(__cplusplus) +# define FIELD_ALIGNMENT(type, field) __alignof(((type*)0)->field) +#elif defined(__GNUC__) +# define FIELD_ALIGNMENT(type, field) __alignof__(((type*)0)->field) +#else +/* FIXME: Not sure if is possible to do without compiler extension */ +#endif + +/*********************************************************************** + * Test helper macros + */ + +#ifdef FIELD_ALIGNMENT +# define TEST_FIELD_ALIGNMENT(type, field, align) \ + ok(FIELD_ALIGNMENT(type, field) == align, \ + "FIELD_ALIGNMENT(" #type ", " #field ") == %d (expected " #align ")", \ + FIELD_ALIGNMENT(type, field)) +#else +# define TEST_FIELD_ALIGNMENT(type, field, align) do { } while (0) +#endif + +#define TEST_FIELD_OFFSET(type, field, offset) \ + ok(FIELD_OFFSET(type, field) == offset, \ + "FIELD_OFFSET(" #type ", " #field ") == %ld (expected " #offset ")", \ + FIELD_OFFSET(type, field)) + +#define TEST_TYPE_ALIGNMENT(type, align) \ + ok(TYPE_ALIGNMENT(type) == align, "TYPE_ALIGNMENT(" #type ") == %d (expected " #align ")", TYPE_ALIGNMENT(type)) + +#define TEST_TYPE_SIZE(type, size) \ + ok(sizeof(type) == size, "sizeof(" #type ") == %d (expected " #size ")", sizeof(type)) + +/*********************************************************************** + * Test macros + */ + +#define TEST_FIELD(type, field_type, field_name, field_offset, field_size, field_align) \ + TEST_TYPE_SIZE(field_type, field_size); \ + TEST_FIELD_ALIGNMENT(type, field_name, field_align); \ + TEST_FIELD_OFFSET(type, field_name, field_offset); \ + +#define TEST_TYPE(type, size, align) \ + TEST_TYPE_ALIGNMENT(type, align); \ + TEST_TYPE_SIZE(type, size) + void test_pack(void) { - /* ACCESSTIMEOUT */ - ok(FIELD_OFFSET(ACCESSTIMEOUT, cbSize) == 0, - "FIELD_OFFSET(ACCESSTIMEOUT, cbSize) == %ld (expected 0)", - FIELD_OFFSET(ACCESSTIMEOUT, cbSize)); /* UINT */ - ok(FIELD_OFFSET(ACCESSTIMEOUT, dwFlags) == 4, - "FIELD_OFFSET(ACCESSTIMEOUT, dwFlags) == %ld (expected 4)", - FIELD_OFFSET(ACCESSTIMEOUT, dwFlags)); /* DWORD */ - ok(FIELD_OFFSET(ACCESSTIMEOUT, iTimeOutMSec) == 8, - "FIELD_OFFSET(ACCESSTIMEOUT, iTimeOutMSec) == %ld (expected 8)", - FIELD_OFFSET(ACCESSTIMEOUT, iTimeOutMSec)); /* DWORD */ - ok(sizeof(ACCESSTIMEOUT) == 12, "sizeof(ACCESSTIMEOUT) == %d (expected 12)", sizeof(ACCESSTIMEOUT)); - - /* ANIMATIONINFO */ - ok(FIELD_OFFSET(ANIMATIONINFO, cbSize) == 0, - "FIELD_OFFSET(ANIMATIONINFO, cbSize) == %ld (expected 0)", - FIELD_OFFSET(ANIMATIONINFO, cbSize)); /* UINT */ - ok(FIELD_OFFSET(ANIMATIONINFO, iMinAnimate) == 4, - "FIELD_OFFSET(ANIMATIONINFO, iMinAnimate) == %ld (expected 4)", - FIELD_OFFSET(ANIMATIONINFO, iMinAnimate)); /* INT */ - ok(sizeof(ANIMATIONINFO) == 8, "sizeof(ANIMATIONINFO) == %d (expected 8)", sizeof(ANIMATIONINFO)); - - /* CBTACTIVATESTRUCT */ - ok(FIELD_OFFSET(CBTACTIVATESTRUCT, fMouse) == 0, - "FIELD_OFFSET(CBTACTIVATESTRUCT, fMouse) == %ld (expected 0)", - FIELD_OFFSET(CBTACTIVATESTRUCT, fMouse)); /* BOOL */ - ok(FIELD_OFFSET(CBTACTIVATESTRUCT, hWndActive) == 4, - "FIELD_OFFSET(CBTACTIVATESTRUCT, hWndActive) == %ld (expected 4)", - FIELD_OFFSET(CBTACTIVATESTRUCT, hWndActive)); /* HWND */ - ok(sizeof(CBTACTIVATESTRUCT) == 8, "sizeof(CBTACTIVATESTRUCT) == %d (expected 8)", sizeof(CBTACTIVATESTRUCT)); - - /* CBT_CREATEWNDA */ - ok(FIELD_OFFSET(CBT_CREATEWNDA, lpcs) == 0, - "FIELD_OFFSET(CBT_CREATEWNDA, lpcs) == %ld (expected 0)", - FIELD_OFFSET(CBT_CREATEWNDA, lpcs)); /* CREATESTRUCTA * */ - ok(FIELD_OFFSET(CBT_CREATEWNDA, hwndInsertAfter) == 4, - "FIELD_OFFSET(CBT_CREATEWNDA, hwndInsertAfter) == %ld (expected 4)", - FIELD_OFFSET(CBT_CREATEWNDA, hwndInsertAfter)); /* HWND */ - ok(sizeof(CBT_CREATEWNDA) == 8, "sizeof(CBT_CREATEWNDA) == %d (expected 8)", sizeof(CBT_CREATEWNDA)); - - /* CBT_CREATEWNDW */ - ok(FIELD_OFFSET(CBT_CREATEWNDW, lpcs) == 0, - "FIELD_OFFSET(CBT_CREATEWNDW, lpcs) == %ld (expected 0)", - FIELD_OFFSET(CBT_CREATEWNDW, lpcs)); /* CREATESTRUCTW * */ - ok(FIELD_OFFSET(CBT_CREATEWNDW, hwndInsertAfter) == 4, - "FIELD_OFFSET(CBT_CREATEWNDW, hwndInsertAfter) == %ld (expected 4)", - FIELD_OFFSET(CBT_CREATEWNDW, hwndInsertAfter)); /* HWND */ - ok(sizeof(CBT_CREATEWNDW) == 8, "sizeof(CBT_CREATEWNDW) == %d (expected 8)", sizeof(CBT_CREATEWNDW)); - - /* CLIENTCREATESTRUCT */ - ok(FIELD_OFFSET(CLIENTCREATESTRUCT, hWindowMenu) == 0, - "FIELD_OFFSET(CLIENTCREATESTRUCT, hWindowMenu) == %ld (expected 0)", - FIELD_OFFSET(CLIENTCREATESTRUCT, hWindowMenu)); /* HMENU */ - ok(FIELD_OFFSET(CLIENTCREATESTRUCT, idFirstChild) == 4, - "FIELD_OFFSET(CLIENTCREATESTRUCT, idFirstChild) == %ld (expected 4)", - FIELD_OFFSET(CLIENTCREATESTRUCT, idFirstChild)); /* UINT */ - ok(sizeof(CLIENTCREATESTRUCT) == 8, "sizeof(CLIENTCREATESTRUCT) == %d (expected 8)", sizeof(CLIENTCREATESTRUCT)); - - /* COMPAREITEMSTRUCT */ - ok(FIELD_OFFSET(COMPAREITEMSTRUCT, CtlType) == 0, - "FIELD_OFFSET(COMPAREITEMSTRUCT, CtlType) == %ld (expected 0)", - FIELD_OFFSET(COMPAREITEMSTRUCT, CtlType)); /* UINT */ - ok(FIELD_OFFSET(COMPAREITEMSTRUCT, CtlID) == 4, - "FIELD_OFFSET(COMPAREITEMSTRUCT, CtlID) == %ld (expected 4)", - FIELD_OFFSET(COMPAREITEMSTRUCT, CtlID)); /* UINT */ - ok(FIELD_OFFSET(COMPAREITEMSTRUCT, hwndItem) == 8, - "FIELD_OFFSET(COMPAREITEMSTRUCT, hwndItem) == %ld (expected 8)", - FIELD_OFFSET(COMPAREITEMSTRUCT, hwndItem)); /* HWND */ - ok(FIELD_OFFSET(COMPAREITEMSTRUCT, itemID1) == 12, - "FIELD_OFFSET(COMPAREITEMSTRUCT, itemID1) == %ld (expected 12)", - FIELD_OFFSET(COMPAREITEMSTRUCT, itemID1)); /* UINT */ - ok(FIELD_OFFSET(COMPAREITEMSTRUCT, itemData1) == 16, - "FIELD_OFFSET(COMPAREITEMSTRUCT, itemData1) == %ld (expected 16)", - FIELD_OFFSET(COMPAREITEMSTRUCT, itemData1)); /* DWORD */ - ok(FIELD_OFFSET(COMPAREITEMSTRUCT, itemID2) == 20, - "FIELD_OFFSET(COMPAREITEMSTRUCT, itemID2) == %ld (expected 20)", - FIELD_OFFSET(COMPAREITEMSTRUCT, itemID2)); /* UINT */ - ok(FIELD_OFFSET(COMPAREITEMSTRUCT, itemData2) == 24, - "FIELD_OFFSET(COMPAREITEMSTRUCT, itemData2) == %ld (expected 24)", - FIELD_OFFSET(COMPAREITEMSTRUCT, itemData2)); /* DWORD */ - ok(FIELD_OFFSET(COMPAREITEMSTRUCT, dwLocaleId) == 28, - "FIELD_OFFSET(COMPAREITEMSTRUCT, dwLocaleId) == %ld (expected 28)", - FIELD_OFFSET(COMPAREITEMSTRUCT, dwLocaleId)); /* DWORD */ - ok(sizeof(COMPAREITEMSTRUCT) == 32, "sizeof(COMPAREITEMSTRUCT) == %d (expected 32)", sizeof(COMPAREITEMSTRUCT)); - - /* COPYDATASTRUCT */ - ok(FIELD_OFFSET(COPYDATASTRUCT, dwData) == 0, - "FIELD_OFFSET(COPYDATASTRUCT, dwData) == %ld (expected 0)", - FIELD_OFFSET(COPYDATASTRUCT, dwData)); /* DWORD */ - ok(FIELD_OFFSET(COPYDATASTRUCT, cbData) == 4, - "FIELD_OFFSET(COPYDATASTRUCT, cbData) == %ld (expected 4)", - FIELD_OFFSET(COPYDATASTRUCT, cbData)); /* DWORD */ - ok(FIELD_OFFSET(COPYDATASTRUCT, lpData) == 8, - "FIELD_OFFSET(COPYDATASTRUCT, lpData) == %ld (expected 8)", - FIELD_OFFSET(COPYDATASTRUCT, lpData)); /* LPVOID */ - ok(sizeof(COPYDATASTRUCT) == 12, "sizeof(COPYDATASTRUCT) == %d (expected 12)", sizeof(COPYDATASTRUCT)); - - /* CREATESTRUCTA */ - ok(FIELD_OFFSET(CREATESTRUCTA, lpCreateParams) == 0, - "FIELD_OFFSET(CREATESTRUCTA, lpCreateParams) == %ld (expected 0)", - FIELD_OFFSET(CREATESTRUCTA, lpCreateParams)); /* LPVOID */ - ok(FIELD_OFFSET(CREATESTRUCTA, hInstance) == 4, - "FIELD_OFFSET(CREATESTRUCTA, hInstance) == %ld (expected 4)", - FIELD_OFFSET(CREATESTRUCTA, hInstance)); /* HINSTANCE */ - ok(FIELD_OFFSET(CREATESTRUCTA, hMenu) == 8, - "FIELD_OFFSET(CREATESTRUCTA, hMenu) == %ld (expected 8)", - FIELD_OFFSET(CREATESTRUCTA, hMenu)); /* HMENU */ - ok(FIELD_OFFSET(CREATESTRUCTA, hwndParent) == 12, - "FIELD_OFFSET(CREATESTRUCTA, hwndParent) == %ld (expected 12)", - FIELD_OFFSET(CREATESTRUCTA, hwndParent)); /* HWND */ - ok(FIELD_OFFSET(CREATESTRUCTA, cy) == 16, - "FIELD_OFFSET(CREATESTRUCTA, cy) == %ld (expected 16)", - FIELD_OFFSET(CREATESTRUCTA, cy)); /* INT */ - ok(FIELD_OFFSET(CREATESTRUCTA, cx) == 20, - "FIELD_OFFSET(CREATESTRUCTA, cx) == %ld (expected 20)", - FIELD_OFFSET(CREATESTRUCTA, cx)); /* INT */ - ok(FIELD_OFFSET(CREATESTRUCTA, y) == 24, - "FIELD_OFFSET(CREATESTRUCTA, y) == %ld (expected 24)", - FIELD_OFFSET(CREATESTRUCTA, y)); /* INT */ - ok(FIELD_OFFSET(CREATESTRUCTA, x) == 28, - "FIELD_OFFSET(CREATESTRUCTA, x) == %ld (expected 28)", - FIELD_OFFSET(CREATESTRUCTA, x)); /* INT */ - ok(FIELD_OFFSET(CREATESTRUCTA, style) == 32, - "FIELD_OFFSET(CREATESTRUCTA, style) == %ld (expected 32)", - FIELD_OFFSET(CREATESTRUCTA, style)); /* LONG */ - ok(FIELD_OFFSET(CREATESTRUCTA, lpszName) == 36, - "FIELD_OFFSET(CREATESTRUCTA, lpszName) == %ld (expected 36)", - FIELD_OFFSET(CREATESTRUCTA, lpszName)); /* LPCSTR */ - ok(FIELD_OFFSET(CREATESTRUCTA, lpszClass) == 40, - "FIELD_OFFSET(CREATESTRUCTA, lpszClass) == %ld (expected 40)", - FIELD_OFFSET(CREATESTRUCTA, lpszClass)); /* LPCSTR */ - ok(FIELD_OFFSET(CREATESTRUCTA, dwExStyle) == 44, - "FIELD_OFFSET(CREATESTRUCTA, dwExStyle) == %ld (expected 44)", - FIELD_OFFSET(CREATESTRUCTA, dwExStyle)); /* DWORD */ - ok(sizeof(CREATESTRUCTA) == 48, "sizeof(CREATESTRUCTA) == %d (expected 48)", sizeof(CREATESTRUCTA)); - - /* CREATESTRUCTW */ - ok(FIELD_OFFSET(CREATESTRUCTW, lpCreateParams) == 0, - "FIELD_OFFSET(CREATESTRUCTW, lpCreateParams) == %ld (expected 0)", - FIELD_OFFSET(CREATESTRUCTW, lpCreateParams)); /* LPVOID */ - ok(FIELD_OFFSET(CREATESTRUCTW, hInstance) == 4, - "FIELD_OFFSET(CREATESTRUCTW, hInstance) == %ld (expected 4)", - FIELD_OFFSET(CREATESTRUCTW, hInstance)); /* HINSTANCE */ - ok(FIELD_OFFSET(CREATESTRUCTW, hMenu) == 8, - "FIELD_OFFSET(CREATESTRUCTW, hMenu) == %ld (expected 8)", - FIELD_OFFSET(CREATESTRUCTW, hMenu)); /* HMENU */ - ok(FIELD_OFFSET(CREATESTRUCTW, hwndParent) == 12, - "FIELD_OFFSET(CREATESTRUCTW, hwndParent) == %ld (expected 12)", - FIELD_OFFSET(CREATESTRUCTW, hwndParent)); /* HWND */ - ok(FIELD_OFFSET(CREATESTRUCTW, cy) == 16, - "FIELD_OFFSET(CREATESTRUCTW, cy) == %ld (expected 16)", - FIELD_OFFSET(CREATESTRUCTW, cy)); /* INT */ - ok(FIELD_OFFSET(CREATESTRUCTW, cx) == 20, - "FIELD_OFFSET(CREATESTRUCTW, cx) == %ld (expected 20)", - FIELD_OFFSET(CREATESTRUCTW, cx)); /* INT */ - ok(FIELD_OFFSET(CREATESTRUCTW, y) == 24, - "FIELD_OFFSET(CREATESTRUCTW, y) == %ld (expected 24)", - FIELD_OFFSET(CREATESTRUCTW, y)); /* INT */ - ok(FIELD_OFFSET(CREATESTRUCTW, x) == 28, - "FIELD_OFFSET(CREATESTRUCTW, x) == %ld (expected 28)", - FIELD_OFFSET(CREATESTRUCTW, x)); /* INT */ - ok(FIELD_OFFSET(CREATESTRUCTW, style) == 32, - "FIELD_OFFSET(CREATESTRUCTW, style) == %ld (expected 32)", - FIELD_OFFSET(CREATESTRUCTW, style)); /* LONG */ - ok(FIELD_OFFSET(CREATESTRUCTW, lpszName) == 36, - "FIELD_OFFSET(CREATESTRUCTW, lpszName) == %ld (expected 36)", - FIELD_OFFSET(CREATESTRUCTW, lpszName)); /* LPCWSTR */ - ok(FIELD_OFFSET(CREATESTRUCTW, lpszClass) == 40, - "FIELD_OFFSET(CREATESTRUCTW, lpszClass) == %ld (expected 40)", - FIELD_OFFSET(CREATESTRUCTW, lpszClass)); /* LPCWSTR */ - ok(FIELD_OFFSET(CREATESTRUCTW, dwExStyle) == 44, - "FIELD_OFFSET(CREATESTRUCTW, dwExStyle) == %ld (expected 44)", - FIELD_OFFSET(CREATESTRUCTW, dwExStyle)); /* DWORD */ - ok(sizeof(CREATESTRUCTW) == 48, "sizeof(CREATESTRUCTW) == %d (expected 48)", sizeof(CREATESTRUCTW)); - - /* CURSORINFO */ - ok(FIELD_OFFSET(CURSORINFO, cbSize) == 0, - "FIELD_OFFSET(CURSORINFO, cbSize) == %ld (expected 0)", - FIELD_OFFSET(CURSORINFO, cbSize)); /* DWORD */ - ok(FIELD_OFFSET(CURSORINFO, flags) == 4, - "FIELD_OFFSET(CURSORINFO, flags) == %ld (expected 4)", - FIELD_OFFSET(CURSORINFO, flags)); /* DWORD */ - ok(FIELD_OFFSET(CURSORINFO, hCursor) == 8, - "FIELD_OFFSET(CURSORINFO, hCursor) == %ld (expected 8)", - FIELD_OFFSET(CURSORINFO, hCursor)); /* HCURSOR */ - ok(FIELD_OFFSET(CURSORINFO, ptScreenPos) == 12, - "FIELD_OFFSET(CURSORINFO, ptScreenPos) == %ld (expected 12)", - FIELD_OFFSET(CURSORINFO, ptScreenPos)); /* POINT */ - ok(sizeof(CURSORINFO) == 20, "sizeof(CURSORINFO) == %d (expected 20)", sizeof(CURSORINFO)); - - /* CWPRETSTRUCT */ - ok(FIELD_OFFSET(CWPRETSTRUCT, lResult) == 0, - "FIELD_OFFSET(CWPRETSTRUCT, lResult) == %ld (expected 0)", - FIELD_OFFSET(CWPRETSTRUCT, lResult)); /* LRESULT */ - ok(FIELD_OFFSET(CWPRETSTRUCT, lParam) == 4, - "FIELD_OFFSET(CWPRETSTRUCT, lParam) == %ld (expected 4)", - FIELD_OFFSET(CWPRETSTRUCT, lParam)); /* LPARAM */ - ok(FIELD_OFFSET(CWPRETSTRUCT, wParam) == 8, - "FIELD_OFFSET(CWPRETSTRUCT, wParam) == %ld (expected 8)", - FIELD_OFFSET(CWPRETSTRUCT, wParam)); /* WPARAM */ - ok(FIELD_OFFSET(CWPRETSTRUCT, message) == 12, - "FIELD_OFFSET(CWPRETSTRUCT, message) == %ld (expected 12)", - FIELD_OFFSET(CWPRETSTRUCT, message)); /* DWORD */ - ok(FIELD_OFFSET(CWPRETSTRUCT, hwnd) == 16, - "FIELD_OFFSET(CWPRETSTRUCT, hwnd) == %ld (expected 16)", - FIELD_OFFSET(CWPRETSTRUCT, hwnd)); /* HWND */ - ok(sizeof(CWPRETSTRUCT) == 20, "sizeof(CWPRETSTRUCT) == %d (expected 20)", sizeof(CWPRETSTRUCT)); - - /* CWPSTRUCT */ - ok(FIELD_OFFSET(CWPSTRUCT, lParam) == 0, - "FIELD_OFFSET(CWPSTRUCT, lParam) == %ld (expected 0)", - FIELD_OFFSET(CWPSTRUCT, lParam)); /* LPARAM */ - ok(FIELD_OFFSET(CWPSTRUCT, wParam) == 4, - "FIELD_OFFSET(CWPSTRUCT, wParam) == %ld (expected 4)", - FIELD_OFFSET(CWPSTRUCT, wParam)); /* WPARAM */ - ok(FIELD_OFFSET(CWPSTRUCT, message) == 8, - "FIELD_OFFSET(CWPSTRUCT, message) == %ld (expected 8)", - FIELD_OFFSET(CWPSTRUCT, message)); /* UINT */ - ok(FIELD_OFFSET(CWPSTRUCT, hwnd) == 12, - "FIELD_OFFSET(CWPSTRUCT, hwnd) == %ld (expected 12)", - FIELD_OFFSET(CWPSTRUCT, hwnd)); /* HWND */ - ok(sizeof(CWPSTRUCT) == 16, "sizeof(CWPSTRUCT) == %d (expected 16)", sizeof(CWPSTRUCT)); - - /* DEBUGHOOKINFO */ - ok(FIELD_OFFSET(DEBUGHOOKINFO, idThread) == 0, - "FIELD_OFFSET(DEBUGHOOKINFO, idThread) == %ld (expected 0)", - FIELD_OFFSET(DEBUGHOOKINFO, idThread)); /* DWORD */ - ok(FIELD_OFFSET(DEBUGHOOKINFO, idThreadInstaller) == 4, - "FIELD_OFFSET(DEBUGHOOKINFO, idThreadInstaller) == %ld (expected 4)", - FIELD_OFFSET(DEBUGHOOKINFO, idThreadInstaller)); /* DWORD */ - ok(FIELD_OFFSET(DEBUGHOOKINFO, lParam) == 8, - "FIELD_OFFSET(DEBUGHOOKINFO, lParam) == %ld (expected 8)", - FIELD_OFFSET(DEBUGHOOKINFO, lParam)); /* LPARAM */ - ok(FIELD_OFFSET(DEBUGHOOKINFO, wParam) == 12, - "FIELD_OFFSET(DEBUGHOOKINFO, wParam) == %ld (expected 12)", - FIELD_OFFSET(DEBUGHOOKINFO, wParam)); /* WPARAM */ - ok(FIELD_OFFSET(DEBUGHOOKINFO, code) == 16, - "FIELD_OFFSET(DEBUGHOOKINFO, code) == %ld (expected 16)", - FIELD_OFFSET(DEBUGHOOKINFO, code)); /* INT */ - ok(sizeof(DEBUGHOOKINFO) == 20, "sizeof(DEBUGHOOKINFO) == %d (expected 20)", sizeof(DEBUGHOOKINFO)); - - /* DELETEITEMSTRUCT */ - ok(FIELD_OFFSET(DELETEITEMSTRUCT, CtlType) == 0, - "FIELD_OFFSET(DELETEITEMSTRUCT, CtlType) == %ld (expected 0)", - FIELD_OFFSET(DELETEITEMSTRUCT, CtlType)); /* UINT */ - ok(FIELD_OFFSET(DELETEITEMSTRUCT, CtlID) == 4, - "FIELD_OFFSET(DELETEITEMSTRUCT, CtlID) == %ld (expected 4)", - FIELD_OFFSET(DELETEITEMSTRUCT, CtlID)); /* UINT */ - ok(FIELD_OFFSET(DELETEITEMSTRUCT, itemID) == 8, - "FIELD_OFFSET(DELETEITEMSTRUCT, itemID) == %ld (expected 8)", - FIELD_OFFSET(DELETEITEMSTRUCT, itemID)); /* UINT */ - ok(FIELD_OFFSET(DELETEITEMSTRUCT, hwndItem) == 12, - "FIELD_OFFSET(DELETEITEMSTRUCT, hwndItem) == %ld (expected 12)", - FIELD_OFFSET(DELETEITEMSTRUCT, hwndItem)); /* HWND */ - ok(FIELD_OFFSET(DELETEITEMSTRUCT, itemData) == 16, - "FIELD_OFFSET(DELETEITEMSTRUCT, itemData) == %ld (expected 16)", - FIELD_OFFSET(DELETEITEMSTRUCT, itemData)); /* DWORD */ - ok(sizeof(DELETEITEMSTRUCT) == 20, "sizeof(DELETEITEMSTRUCT) == %d (expected 20)", sizeof(DELETEITEMSTRUCT)); - - /* DLGITEMTEMPLATE */ - ok(FIELD_OFFSET(DLGITEMTEMPLATE, style) == 0, - "FIELD_OFFSET(DLGITEMTEMPLATE, style) == %ld (expected 0)", - FIELD_OFFSET(DLGITEMTEMPLATE, style)); /* DWORD */ - ok(FIELD_OFFSET(DLGITEMTEMPLATE, dwExtendedStyle) == 4, - "FIELD_OFFSET(DLGITEMTEMPLATE, dwExtendedStyle) == %ld (expected 4)", - FIELD_OFFSET(DLGITEMTEMPLATE, dwExtendedStyle)); /* DWORD */ - ok(FIELD_OFFSET(DLGITEMTEMPLATE, x) == 8, - "FIELD_OFFSET(DLGITEMTEMPLATE, x) == %ld (expected 8)", - FIELD_OFFSET(DLGITEMTEMPLATE, x)); /* short */ - ok(FIELD_OFFSET(DLGITEMTEMPLATE, y) == 10, - "FIELD_OFFSET(DLGITEMTEMPLATE, y) == %ld (expected 10)", - FIELD_OFFSET(DLGITEMTEMPLATE, y)); /* short */ - ok(FIELD_OFFSET(DLGITEMTEMPLATE, cx) == 12, - "FIELD_OFFSET(DLGITEMTEMPLATE, cx) == %ld (expected 12)", - FIELD_OFFSET(DLGITEMTEMPLATE, cx)); /* short */ - ok(FIELD_OFFSET(DLGITEMTEMPLATE, cy) == 14, - "FIELD_OFFSET(DLGITEMTEMPLATE, cy) == %ld (expected 14)", - FIELD_OFFSET(DLGITEMTEMPLATE, cy)); /* short */ - ok(FIELD_OFFSET(DLGITEMTEMPLATE, id) == 16, - "FIELD_OFFSET(DLGITEMTEMPLATE, id) == %ld (expected 16)", - FIELD_OFFSET(DLGITEMTEMPLATE, id)); /* WORD */ - ok(sizeof(DLGITEMTEMPLATE) == 18, "sizeof(DLGITEMTEMPLATE) == %d (expected 18)", sizeof(DLGITEMTEMPLATE)); - - /* DLGTEMPLATE */ - ok(FIELD_OFFSET(DLGTEMPLATE, style) == 0, - "FIELD_OFFSET(DLGTEMPLATE, style) == %ld (expected 0)", - FIELD_OFFSET(DLGTEMPLATE, style)); /* DWORD */ - ok(FIELD_OFFSET(DLGTEMPLATE, dwExtendedStyle) == 4, - "FIELD_OFFSET(DLGTEMPLATE, dwExtendedStyle) == %ld (expected 4)", - FIELD_OFFSET(DLGTEMPLATE, dwExtendedStyle)); /* DWORD */ - ok(FIELD_OFFSET(DLGTEMPLATE, cdit) == 8, - "FIELD_OFFSET(DLGTEMPLATE, cdit) == %ld (expected 8)", - FIELD_OFFSET(DLGTEMPLATE, cdit)); /* WORD */ - ok(FIELD_OFFSET(DLGTEMPLATE, x) == 10, - "FIELD_OFFSET(DLGTEMPLATE, x) == %ld (expected 10)", - FIELD_OFFSET(DLGTEMPLATE, x)); /* short */ - ok(FIELD_OFFSET(DLGTEMPLATE, y) == 12, - "FIELD_OFFSET(DLGTEMPLATE, y) == %ld (expected 12)", - FIELD_OFFSET(DLGTEMPLATE, y)); /* short */ - ok(FIELD_OFFSET(DLGTEMPLATE, cx) == 14, - "FIELD_OFFSET(DLGTEMPLATE, cx) == %ld (expected 14)", - FIELD_OFFSET(DLGTEMPLATE, cx)); /* short */ - ok(FIELD_OFFSET(DLGTEMPLATE, cy) == 16, - "FIELD_OFFSET(DLGTEMPLATE, cy) == %ld (expected 16)", - FIELD_OFFSET(DLGTEMPLATE, cy)); /* short */ - ok(sizeof(DLGTEMPLATE) == 18, "sizeof(DLGTEMPLATE) == %d (expected 18)", sizeof(DLGTEMPLATE)); - - /* DRAWITEMSTRUCT */ - ok(FIELD_OFFSET(DRAWITEMSTRUCT, CtlType) == 0, - "FIELD_OFFSET(DRAWITEMSTRUCT, CtlType) == %ld (expected 0)", - FIELD_OFFSET(DRAWITEMSTRUCT, CtlType)); /* UINT */ - ok(FIELD_OFFSET(DRAWITEMSTRUCT, CtlID) == 4, - "FIELD_OFFSET(DRAWITEMSTRUCT, CtlID) == %ld (expected 4)", - FIELD_OFFSET(DRAWITEMSTRUCT, CtlID)); /* UINT */ - ok(FIELD_OFFSET(DRAWITEMSTRUCT, itemID) == 8, - "FIELD_OFFSET(DRAWITEMSTRUCT, itemID) == %ld (expected 8)", - FIELD_OFFSET(DRAWITEMSTRUCT, itemID)); /* UINT */ - ok(FIELD_OFFSET(DRAWITEMSTRUCT, itemAction) == 12, - "FIELD_OFFSET(DRAWITEMSTRUCT, itemAction) == %ld (expected 12)", - FIELD_OFFSET(DRAWITEMSTRUCT, itemAction)); /* UINT */ - ok(FIELD_OFFSET(DRAWITEMSTRUCT, itemState) == 16, - "FIELD_OFFSET(DRAWITEMSTRUCT, itemState) == %ld (expected 16)", - FIELD_OFFSET(DRAWITEMSTRUCT, itemState)); /* UINT */ - ok(FIELD_OFFSET(DRAWITEMSTRUCT, hwndItem) == 20, - "FIELD_OFFSET(DRAWITEMSTRUCT, hwndItem) == %ld (expected 20)", - FIELD_OFFSET(DRAWITEMSTRUCT, hwndItem)); /* HWND */ - ok(FIELD_OFFSET(DRAWITEMSTRUCT, hDC) == 24, - "FIELD_OFFSET(DRAWITEMSTRUCT, hDC) == %ld (expected 24)", - FIELD_OFFSET(DRAWITEMSTRUCT, hDC)); /* HDC */ - ok(FIELD_OFFSET(DRAWITEMSTRUCT, rcItem) == 28, - "FIELD_OFFSET(DRAWITEMSTRUCT, rcItem) == %ld (expected 28)", - FIELD_OFFSET(DRAWITEMSTRUCT, rcItem)); /* RECT */ - ok(FIELD_OFFSET(DRAWITEMSTRUCT, itemData) == 44, - "FIELD_OFFSET(DRAWITEMSTRUCT, itemData) == %ld (expected 44)", - FIELD_OFFSET(DRAWITEMSTRUCT, itemData)); /* DWORD */ - ok(sizeof(DRAWITEMSTRUCT) == 48, "sizeof(DRAWITEMSTRUCT) == %d (expected 48)", sizeof(DRAWITEMSTRUCT)); - - /* DRAWTEXTPARAMS */ - ok(FIELD_OFFSET(DRAWTEXTPARAMS, cbSize) == 0, - "FIELD_OFFSET(DRAWTEXTPARAMS, cbSize) == %ld (expected 0)", - FIELD_OFFSET(DRAWTEXTPARAMS, cbSize)); /* UINT */ - ok(FIELD_OFFSET(DRAWTEXTPARAMS, iTabLength) == 4, - "FIELD_OFFSET(DRAWTEXTPARAMS, iTabLength) == %ld (expected 4)", - FIELD_OFFSET(DRAWTEXTPARAMS, iTabLength)); /* INT */ - ok(FIELD_OFFSET(DRAWTEXTPARAMS, iLeftMargin) == 8, - "FIELD_OFFSET(DRAWTEXTPARAMS, iLeftMargin) == %ld (expected 8)", - FIELD_OFFSET(DRAWTEXTPARAMS, iLeftMargin)); /* INT */ - ok(FIELD_OFFSET(DRAWTEXTPARAMS, iRightMargin) == 12, - "FIELD_OFFSET(DRAWTEXTPARAMS, iRightMargin) == %ld (expected 12)", - FIELD_OFFSET(DRAWTEXTPARAMS, iRightMargin)); /* INT */ - ok(FIELD_OFFSET(DRAWTEXTPARAMS, uiLengthDrawn) == 16, - "FIELD_OFFSET(DRAWTEXTPARAMS, uiLengthDrawn) == %ld (expected 16)", - FIELD_OFFSET(DRAWTEXTPARAMS, uiLengthDrawn)); /* UINT */ - ok(sizeof(DRAWTEXTPARAMS) == 20, "sizeof(DRAWTEXTPARAMS) == %d (expected 20)", sizeof(DRAWTEXTPARAMS)); - - /* EVENTMSG */ - ok(FIELD_OFFSET(EVENTMSG, message) == 0, - "FIELD_OFFSET(EVENTMSG, message) == %ld (expected 0)", - FIELD_OFFSET(EVENTMSG, message)); /* UINT */ - ok(FIELD_OFFSET(EVENTMSG, paramL) == 4, - "FIELD_OFFSET(EVENTMSG, paramL) == %ld (expected 4)", - FIELD_OFFSET(EVENTMSG, paramL)); /* UINT */ - ok(FIELD_OFFSET(EVENTMSG, paramH) == 8, - "FIELD_OFFSET(EVENTMSG, paramH) == %ld (expected 8)", - FIELD_OFFSET(EVENTMSG, paramH)); /* UINT */ - ok(FIELD_OFFSET(EVENTMSG, time) == 12, - "FIELD_OFFSET(EVENTMSG, time) == %ld (expected 12)", - FIELD_OFFSET(EVENTMSG, time)); /* DWORD */ - ok(FIELD_OFFSET(EVENTMSG, hwnd) == 16, - "FIELD_OFFSET(EVENTMSG, hwnd) == %ld (expected 16)", - FIELD_OFFSET(EVENTMSG, hwnd)); /* HWND */ - ok(sizeof(EVENTMSG) == 20, "sizeof(EVENTMSG) == %d (expected 20)", sizeof(EVENTMSG)); - - /* FILTERKEYS */ - ok(FIELD_OFFSET(FILTERKEYS, cbSize) == 0, - "FIELD_OFFSET(FILTERKEYS, cbSize) == %ld (expected 0)", - FIELD_OFFSET(FILTERKEYS, cbSize)); /* UINT */ - ok(FIELD_OFFSET(FILTERKEYS, dwFlags) == 4, - "FIELD_OFFSET(FILTERKEYS, dwFlags) == %ld (expected 4)", - FIELD_OFFSET(FILTERKEYS, dwFlags)); /* DWORD */ - ok(FIELD_OFFSET(FILTERKEYS, iWaitMSec) == 8, - "FIELD_OFFSET(FILTERKEYS, iWaitMSec) == %ld (expected 8)", - FIELD_OFFSET(FILTERKEYS, iWaitMSec)); /* DWORD */ - ok(FIELD_OFFSET(FILTERKEYS, iDelayMSec) == 12, - "FIELD_OFFSET(FILTERKEYS, iDelayMSec) == %ld (expected 12)", - FIELD_OFFSET(FILTERKEYS, iDelayMSec)); /* DWORD */ - ok(FIELD_OFFSET(FILTERKEYS, iRepeatMSec) == 16, - "FIELD_OFFSET(FILTERKEYS, iRepeatMSec) == %ld (expected 16)", - FIELD_OFFSET(FILTERKEYS, iRepeatMSec)); /* DWORD */ - ok(FIELD_OFFSET(FILTERKEYS, iBounceMSec) == 20, - "FIELD_OFFSET(FILTERKEYS, iBounceMSec) == %ld (expected 20)", - FIELD_OFFSET(FILTERKEYS, iBounceMSec)); /* DWORD */ - ok(sizeof(FILTERKEYS) == 24, "sizeof(FILTERKEYS) == %d (expected 24)", sizeof(FILTERKEYS)); - - /* HARDWAREHOOKSTRUCT */ - ok(FIELD_OFFSET(HARDWAREHOOKSTRUCT, hWnd) == 0, - "FIELD_OFFSET(HARDWAREHOOKSTRUCT, hWnd) == %ld (expected 0)", - FIELD_OFFSET(HARDWAREHOOKSTRUCT, hWnd)); /* HWND */ - ok(FIELD_OFFSET(HARDWAREHOOKSTRUCT, wMessage) == 4, - "FIELD_OFFSET(HARDWAREHOOKSTRUCT, wMessage) == %ld (expected 4)", - FIELD_OFFSET(HARDWAREHOOKSTRUCT, wMessage)); /* UINT */ - ok(FIELD_OFFSET(HARDWAREHOOKSTRUCT, wParam) == 8, - "FIELD_OFFSET(HARDWAREHOOKSTRUCT, wParam) == %ld (expected 8)", - FIELD_OFFSET(HARDWAREHOOKSTRUCT, wParam)); /* WPARAM */ - ok(FIELD_OFFSET(HARDWAREHOOKSTRUCT, lParam) == 12, - "FIELD_OFFSET(HARDWAREHOOKSTRUCT, lParam) == %ld (expected 12)", - FIELD_OFFSET(HARDWAREHOOKSTRUCT, lParam)); /* LPARAM */ - ok(sizeof(HARDWAREHOOKSTRUCT) == 16, "sizeof(HARDWAREHOOKSTRUCT) == %d (expected 16)", sizeof(HARDWAREHOOKSTRUCT)); - - /* HARDWAREINPUT */ - ok(FIELD_OFFSET(HARDWAREINPUT, uMsg) == 0, - "FIELD_OFFSET(HARDWAREINPUT, uMsg) == %ld (expected 0)", - FIELD_OFFSET(HARDWAREINPUT, uMsg)); /* DWORD */ - ok(FIELD_OFFSET(HARDWAREINPUT, wParamL) == 4, - "FIELD_OFFSET(HARDWAREINPUT, wParamL) == %ld (expected 4)", - FIELD_OFFSET(HARDWAREINPUT, wParamL)); /* WORD */ - ok(FIELD_OFFSET(HARDWAREINPUT, wParamH) == 6, - "FIELD_OFFSET(HARDWAREINPUT, wParamH) == %ld (expected 6)", - FIELD_OFFSET(HARDWAREINPUT, wParamH)); /* WORD */ - ok(sizeof(HARDWAREINPUT) == 8, "sizeof(HARDWAREINPUT) == %d (expected 8)", sizeof(HARDWAREINPUT)); - - /* HELPINFO */ - ok(FIELD_OFFSET(HELPINFO, cbSize) == 0, - "FIELD_OFFSET(HELPINFO, cbSize) == %ld (expected 0)", - FIELD_OFFSET(HELPINFO, cbSize)); /* UINT */ - ok(FIELD_OFFSET(HELPINFO, iContextType) == 4, - "FIELD_OFFSET(HELPINFO, iContextType) == %ld (expected 4)", - FIELD_OFFSET(HELPINFO, iContextType)); /* INT */ - ok(FIELD_OFFSET(HELPINFO, iCtrlId) == 8, - "FIELD_OFFSET(HELPINFO, iCtrlId) == %ld (expected 8)", - FIELD_OFFSET(HELPINFO, iCtrlId)); /* INT */ - ok(FIELD_OFFSET(HELPINFO, hItemHandle) == 12, - "FIELD_OFFSET(HELPINFO, hItemHandle) == %ld (expected 12)", - FIELD_OFFSET(HELPINFO, hItemHandle)); /* HANDLE */ - ok(FIELD_OFFSET(HELPINFO, dwContextId) == 16, - "FIELD_OFFSET(HELPINFO, dwContextId) == %ld (expected 16)", - FIELD_OFFSET(HELPINFO, dwContextId)); /* DWORD */ - ok(FIELD_OFFSET(HELPINFO, MousePos) == 20, - "FIELD_OFFSET(HELPINFO, MousePos) == %ld (expected 20)", - FIELD_OFFSET(HELPINFO, MousePos)); /* POINT */ - ok(sizeof(HELPINFO) == 28, "sizeof(HELPINFO) == %d (expected 28)", sizeof(HELPINFO)); - - /* HELPWININFOA */ - ok(FIELD_OFFSET(HELPWININFOA, wStructSize) == 0, - "FIELD_OFFSET(HELPWININFOA, wStructSize) == %ld (expected 0)", - FIELD_OFFSET(HELPWININFOA, wStructSize)); /* int */ - ok(FIELD_OFFSET(HELPWININFOA, x) == 4, - "FIELD_OFFSET(HELPWININFOA, x) == %ld (expected 4)", - FIELD_OFFSET(HELPWININFOA, x)); /* int */ - ok(FIELD_OFFSET(HELPWININFOA, y) == 8, - "FIELD_OFFSET(HELPWININFOA, y) == %ld (expected 8)", - FIELD_OFFSET(HELPWININFOA, y)); /* int */ - ok(FIELD_OFFSET(HELPWININFOA, dx) == 12, - "FIELD_OFFSET(HELPWININFOA, dx) == %ld (expected 12)", - FIELD_OFFSET(HELPWININFOA, dx)); /* int */ - ok(FIELD_OFFSET(HELPWININFOA, dy) == 16, - "FIELD_OFFSET(HELPWININFOA, dy) == %ld (expected 16)", - FIELD_OFFSET(HELPWININFOA, dy)); /* int */ - ok(FIELD_OFFSET(HELPWININFOA, wMax) == 20, - "FIELD_OFFSET(HELPWININFOA, wMax) == %ld (expected 20)", - FIELD_OFFSET(HELPWININFOA, wMax)); /* int */ - ok(FIELD_OFFSET(HELPWININFOA, rgchMember) == 24, - "FIELD_OFFSET(HELPWININFOA, rgchMember) == %ld (expected 24)", - FIELD_OFFSET(HELPWININFOA, rgchMember)); /* CHAR[2] */ - ok(sizeof(HELPWININFOA) == 28, "sizeof(HELPWININFOA) == %d (expected 28)", sizeof(HELPWININFOA)); - - /* HELPWININFOW */ - ok(FIELD_OFFSET(HELPWININFOW, wStructSize) == 0, - "FIELD_OFFSET(HELPWININFOW, wStructSize) == %ld (expected 0)", - FIELD_OFFSET(HELPWININFOW, wStructSize)); /* int */ - ok(FIELD_OFFSET(HELPWININFOW, x) == 4, - "FIELD_OFFSET(HELPWININFOW, x) == %ld (expected 4)", - FIELD_OFFSET(HELPWININFOW, x)); /* int */ - ok(FIELD_OFFSET(HELPWININFOW, y) == 8, - "FIELD_OFFSET(HELPWININFOW, y) == %ld (expected 8)", - FIELD_OFFSET(HELPWININFOW, y)); /* int */ - ok(FIELD_OFFSET(HELPWININFOW, dx) == 12, - "FIELD_OFFSET(HELPWININFOW, dx) == %ld (expected 12)", - FIELD_OFFSET(HELPWININFOW, dx)); /* int */ - ok(FIELD_OFFSET(HELPWININFOW, dy) == 16, - "FIELD_OFFSET(HELPWININFOW, dy) == %ld (expected 16)", - FIELD_OFFSET(HELPWININFOW, dy)); /* int */ - ok(FIELD_OFFSET(HELPWININFOW, wMax) == 20, - "FIELD_OFFSET(HELPWININFOW, wMax) == %ld (expected 20)", - FIELD_OFFSET(HELPWININFOW, wMax)); /* int */ - ok(FIELD_OFFSET(HELPWININFOW, rgchMember) == 24, - "FIELD_OFFSET(HELPWININFOW, rgchMember) == %ld (expected 24)", - FIELD_OFFSET(HELPWININFOW, rgchMember)); /* WCHAR[2] */ - ok(sizeof(HELPWININFOW) == 28, "sizeof(HELPWININFOW) == %d (expected 28)", sizeof(HELPWININFOW)); - - /* HIGHCONTRASTA */ - ok(FIELD_OFFSET(HIGHCONTRASTA, cbSize) == 0, - "FIELD_OFFSET(HIGHCONTRASTA, cbSize) == %ld (expected 0)", - FIELD_OFFSET(HIGHCONTRASTA, cbSize)); /* UINT */ - ok(FIELD_OFFSET(HIGHCONTRASTA, dwFlags) == 4, - "FIELD_OFFSET(HIGHCONTRASTA, dwFlags) == %ld (expected 4)", - FIELD_OFFSET(HIGHCONTRASTA, dwFlags)); /* DWORD */ - ok(FIELD_OFFSET(HIGHCONTRASTA, lpszDefaultScheme) == 8, - "FIELD_OFFSET(HIGHCONTRASTA, lpszDefaultScheme) == %ld (expected 8)", - FIELD_OFFSET(HIGHCONTRASTA, lpszDefaultScheme)); /* LPSTR */ - ok(sizeof(HIGHCONTRASTA) == 12, "sizeof(HIGHCONTRASTA) == %d (expected 12)", sizeof(HIGHCONTRASTA)); - - /* HIGHCONTRASTW */ - ok(FIELD_OFFSET(HIGHCONTRASTW, cbSize) == 0, - "FIELD_OFFSET(HIGHCONTRASTW, cbSize) == %ld (expected 0)", - FIELD_OFFSET(HIGHCONTRASTW, cbSize)); /* UINT */ - ok(FIELD_OFFSET(HIGHCONTRASTW, dwFlags) == 4, - "FIELD_OFFSET(HIGHCONTRASTW, dwFlags) == %ld (expected 4)", - FIELD_OFFSET(HIGHCONTRASTW, dwFlags)); /* DWORD */ - ok(FIELD_OFFSET(HIGHCONTRASTW, lpszDefaultScheme) == 8, - "FIELD_OFFSET(HIGHCONTRASTW, lpszDefaultScheme) == %ld (expected 8)", - FIELD_OFFSET(HIGHCONTRASTW, lpszDefaultScheme)); /* LPWSTR */ - ok(sizeof(HIGHCONTRASTW) == 12, "sizeof(HIGHCONTRASTW) == %d (expected 12)", sizeof(HIGHCONTRASTW)); - - /* ICONINFO */ - ok(FIELD_OFFSET(ICONINFO, fIcon) == 0, - "FIELD_OFFSET(ICONINFO, fIcon) == %ld (expected 0)", - FIELD_OFFSET(ICONINFO, fIcon)); /* BOOL */ - ok(FIELD_OFFSET(ICONINFO, xHotspot) == 4, - "FIELD_OFFSET(ICONINFO, xHotspot) == %ld (expected 4)", - FIELD_OFFSET(ICONINFO, xHotspot)); /* DWORD */ - ok(FIELD_OFFSET(ICONINFO, yHotspot) == 8, - "FIELD_OFFSET(ICONINFO, yHotspot) == %ld (expected 8)", - FIELD_OFFSET(ICONINFO, yHotspot)); /* DWORD */ - ok(FIELD_OFFSET(ICONINFO, hbmMask) == 12, - "FIELD_OFFSET(ICONINFO, hbmMask) == %ld (expected 12)", - FIELD_OFFSET(ICONINFO, hbmMask)); /* HBITMAP */ - ok(FIELD_OFFSET(ICONINFO, hbmColor) == 16, - "FIELD_OFFSET(ICONINFO, hbmColor) == %ld (expected 16)", - FIELD_OFFSET(ICONINFO, hbmColor)); /* HBITMAP */ - ok(sizeof(ICONINFO) == 20, "sizeof(ICONINFO) == %d (expected 20)", sizeof(ICONINFO)); - - /* KBDLLHOOKSTRUCT */ - ok(FIELD_OFFSET(KBDLLHOOKSTRUCT, vkCode) == 0, - "FIELD_OFFSET(KBDLLHOOKSTRUCT, vkCode) == %ld (expected 0)", - FIELD_OFFSET(KBDLLHOOKSTRUCT, vkCode)); /* DWORD */ - ok(FIELD_OFFSET(KBDLLHOOKSTRUCT, scanCode) == 4, - "FIELD_OFFSET(KBDLLHOOKSTRUCT, scanCode) == %ld (expected 4)", - FIELD_OFFSET(KBDLLHOOKSTRUCT, scanCode)); /* DWORD */ - ok(FIELD_OFFSET(KBDLLHOOKSTRUCT, flags) == 8, - "FIELD_OFFSET(KBDLLHOOKSTRUCT, flags) == %ld (expected 8)", - FIELD_OFFSET(KBDLLHOOKSTRUCT, flags)); /* DWORD */ - ok(FIELD_OFFSET(KBDLLHOOKSTRUCT, time) == 12, - "FIELD_OFFSET(KBDLLHOOKSTRUCT, time) == %ld (expected 12)", - FIELD_OFFSET(KBDLLHOOKSTRUCT, time)); /* DWORD */ - ok(FIELD_OFFSET(KBDLLHOOKSTRUCT, dwExtraInfo) == 16, - "FIELD_OFFSET(KBDLLHOOKSTRUCT, dwExtraInfo) == %ld (expected 16)", - FIELD_OFFSET(KBDLLHOOKSTRUCT, dwExtraInfo)); /* ULONG_PTR */ - ok(sizeof(KBDLLHOOKSTRUCT) == 20, "sizeof(KBDLLHOOKSTRUCT) == %d (expected 20)", sizeof(KBDLLHOOKSTRUCT)); - - /* KEYBDINPUT */ - ok(FIELD_OFFSET(KEYBDINPUT, wVk) == 0, - "FIELD_OFFSET(KEYBDINPUT, wVk) == %ld (expected 0)", - FIELD_OFFSET(KEYBDINPUT, wVk)); /* WORD */ - ok(FIELD_OFFSET(KEYBDINPUT, wScan) == 2, - "FIELD_OFFSET(KEYBDINPUT, wScan) == %ld (expected 2)", - FIELD_OFFSET(KEYBDINPUT, wScan)); /* WORD */ - ok(FIELD_OFFSET(KEYBDINPUT, dwFlags) == 4, - "FIELD_OFFSET(KEYBDINPUT, dwFlags) == %ld (expected 4)", - FIELD_OFFSET(KEYBDINPUT, dwFlags)); /* DWORD */ - ok(FIELD_OFFSET(KEYBDINPUT, time) == 8, - "FIELD_OFFSET(KEYBDINPUT, time) == %ld (expected 8)", - FIELD_OFFSET(KEYBDINPUT, time)); /* DWORD */ - ok(FIELD_OFFSET(KEYBDINPUT, dwExtraInfo) == 12, - "FIELD_OFFSET(KEYBDINPUT, dwExtraInfo) == %ld (expected 12)", - FIELD_OFFSET(KEYBDINPUT, dwExtraInfo)); /* ULONG_PTR */ - ok(sizeof(KEYBDINPUT) == 16, "sizeof(KEYBDINPUT) == %d (expected 16)", sizeof(KEYBDINPUT)); - - /* MDICREATESTRUCTA */ - ok(FIELD_OFFSET(MDICREATESTRUCTA, szClass) == 0, - "FIELD_OFFSET(MDICREATESTRUCTA, szClass) == %ld (expected 0)", - FIELD_OFFSET(MDICREATESTRUCTA, szClass)); /* LPCSTR */ - ok(FIELD_OFFSET(MDICREATESTRUCTA, szTitle) == 4, - "FIELD_OFFSET(MDICREATESTRUCTA, szTitle) == %ld (expected 4)", - FIELD_OFFSET(MDICREATESTRUCTA, szTitle)); /* LPCSTR */ - ok(FIELD_OFFSET(MDICREATESTRUCTA, hOwner) == 8, - "FIELD_OFFSET(MDICREATESTRUCTA, hOwner) == %ld (expected 8)", - FIELD_OFFSET(MDICREATESTRUCTA, hOwner)); /* HINSTANCE */ - ok(FIELD_OFFSET(MDICREATESTRUCTA, x) == 12, - "FIELD_OFFSET(MDICREATESTRUCTA, x) == %ld (expected 12)", - FIELD_OFFSET(MDICREATESTRUCTA, x)); /* INT */ - ok(FIELD_OFFSET(MDICREATESTRUCTA, y) == 16, - "FIELD_OFFSET(MDICREATESTRUCTA, y) == %ld (expected 16)", - FIELD_OFFSET(MDICREATESTRUCTA, y)); /* INT */ - ok(FIELD_OFFSET(MDICREATESTRUCTA, cx) == 20, - "FIELD_OFFSET(MDICREATESTRUCTA, cx) == %ld (expected 20)", - FIELD_OFFSET(MDICREATESTRUCTA, cx)); /* INT */ - ok(FIELD_OFFSET(MDICREATESTRUCTA, cy) == 24, - "FIELD_OFFSET(MDICREATESTRUCTA, cy) == %ld (expected 24)", - FIELD_OFFSET(MDICREATESTRUCTA, cy)); /* INT */ - ok(FIELD_OFFSET(MDICREATESTRUCTA, style) == 28, - "FIELD_OFFSET(MDICREATESTRUCTA, style) == %ld (expected 28)", - FIELD_OFFSET(MDICREATESTRUCTA, style)); /* DWORD */ - ok(FIELD_OFFSET(MDICREATESTRUCTA, lParam) == 32, - "FIELD_OFFSET(MDICREATESTRUCTA, lParam) == %ld (expected 32)", - FIELD_OFFSET(MDICREATESTRUCTA, lParam)); /* LPARAM */ - ok(sizeof(MDICREATESTRUCTA) == 36, "sizeof(MDICREATESTRUCTA) == %d (expected 36)", sizeof(MDICREATESTRUCTA)); - - /* MDICREATESTRUCTW */ - ok(FIELD_OFFSET(MDICREATESTRUCTW, szClass) == 0, - "FIELD_OFFSET(MDICREATESTRUCTW, szClass) == %ld (expected 0)", - FIELD_OFFSET(MDICREATESTRUCTW, szClass)); /* LPCWSTR */ - ok(FIELD_OFFSET(MDICREATESTRUCTW, szTitle) == 4, - "FIELD_OFFSET(MDICREATESTRUCTW, szTitle) == %ld (expected 4)", - FIELD_OFFSET(MDICREATESTRUCTW, szTitle)); /* LPCWSTR */ - ok(FIELD_OFFSET(MDICREATESTRUCTW, hOwner) == 8, - "FIELD_OFFSET(MDICREATESTRUCTW, hOwner) == %ld (expected 8)", - FIELD_OFFSET(MDICREATESTRUCTW, hOwner)); /* HINSTANCE */ - ok(FIELD_OFFSET(MDICREATESTRUCTW, x) == 12, - "FIELD_OFFSET(MDICREATESTRUCTW, x) == %ld (expected 12)", - FIELD_OFFSET(MDICREATESTRUCTW, x)); /* INT */ - ok(FIELD_OFFSET(MDICREATESTRUCTW, y) == 16, - "FIELD_OFFSET(MDICREATESTRUCTW, y) == %ld (expected 16)", - FIELD_OFFSET(MDICREATESTRUCTW, y)); /* INT */ - ok(FIELD_OFFSET(MDICREATESTRUCTW, cx) == 20, - "FIELD_OFFSET(MDICREATESTRUCTW, cx) == %ld (expected 20)", - FIELD_OFFSET(MDICREATESTRUCTW, cx)); /* INT */ - ok(FIELD_OFFSET(MDICREATESTRUCTW, cy) == 24, - "FIELD_OFFSET(MDICREATESTRUCTW, cy) == %ld (expected 24)", - FIELD_OFFSET(MDICREATESTRUCTW, cy)); /* INT */ - ok(FIELD_OFFSET(MDICREATESTRUCTW, style) == 28, - "FIELD_OFFSET(MDICREATESTRUCTW, style) == %ld (expected 28)", - FIELD_OFFSET(MDICREATESTRUCTW, style)); /* DWORD */ - ok(FIELD_OFFSET(MDICREATESTRUCTW, lParam) == 32, - "FIELD_OFFSET(MDICREATESTRUCTW, lParam) == %ld (expected 32)", - FIELD_OFFSET(MDICREATESTRUCTW, lParam)); /* LPARAM */ - ok(sizeof(MDICREATESTRUCTW) == 36, "sizeof(MDICREATESTRUCTW) == %d (expected 36)", sizeof(MDICREATESTRUCTW)); - - /* MDINEXTMENU */ - ok(FIELD_OFFSET(MDINEXTMENU, hmenuIn) == 0, - "FIELD_OFFSET(MDINEXTMENU, hmenuIn) == %ld (expected 0)", - FIELD_OFFSET(MDINEXTMENU, hmenuIn)); /* HMENU */ - ok(FIELD_OFFSET(MDINEXTMENU, hmenuNext) == 4, - "FIELD_OFFSET(MDINEXTMENU, hmenuNext) == %ld (expected 4)", - FIELD_OFFSET(MDINEXTMENU, hmenuNext)); /* HMENU */ - ok(FIELD_OFFSET(MDINEXTMENU, hwndNext) == 8, - "FIELD_OFFSET(MDINEXTMENU, hwndNext) == %ld (expected 8)", - FIELD_OFFSET(MDINEXTMENU, hwndNext)); /* HWND */ - ok(sizeof(MDINEXTMENU) == 12, "sizeof(MDINEXTMENU) == %d (expected 12)", sizeof(MDINEXTMENU)); - - /* MEASUREITEMSTRUCT */ - ok(FIELD_OFFSET(MEASUREITEMSTRUCT, CtlType) == 0, - "FIELD_OFFSET(MEASUREITEMSTRUCT, CtlType) == %ld (expected 0)", - FIELD_OFFSET(MEASUREITEMSTRUCT, CtlType)); /* UINT */ - ok(FIELD_OFFSET(MEASUREITEMSTRUCT, CtlID) == 4, - "FIELD_OFFSET(MEASUREITEMSTRUCT, CtlID) == %ld (expected 4)", - FIELD_OFFSET(MEASUREITEMSTRUCT, CtlID)); /* UINT */ - ok(FIELD_OFFSET(MEASUREITEMSTRUCT, itemID) == 8, - "FIELD_OFFSET(MEASUREITEMSTRUCT, itemID) == %ld (expected 8)", - FIELD_OFFSET(MEASUREITEMSTRUCT, itemID)); /* UINT */ - ok(FIELD_OFFSET(MEASUREITEMSTRUCT, itemWidth) == 12, - "FIELD_OFFSET(MEASUREITEMSTRUCT, itemWidth) == %ld (expected 12)", - FIELD_OFFSET(MEASUREITEMSTRUCT, itemWidth)); /* UINT */ - ok(FIELD_OFFSET(MEASUREITEMSTRUCT, itemHeight) == 16, - "FIELD_OFFSET(MEASUREITEMSTRUCT, itemHeight) == %ld (expected 16)", - FIELD_OFFSET(MEASUREITEMSTRUCT, itemHeight)); /* UINT */ - ok(FIELD_OFFSET(MEASUREITEMSTRUCT, itemData) == 20, - "FIELD_OFFSET(MEASUREITEMSTRUCT, itemData) == %ld (expected 20)", - FIELD_OFFSET(MEASUREITEMSTRUCT, itemData)); /* DWORD */ - ok(sizeof(MEASUREITEMSTRUCT) == 24, "sizeof(MEASUREITEMSTRUCT) == %d (expected 24)", sizeof(MEASUREITEMSTRUCT)); - - /* MENUINFO */ - ok(FIELD_OFFSET(MENUINFO, cbSize) == 0, - "FIELD_OFFSET(MENUINFO, cbSize) == %ld (expected 0)", - FIELD_OFFSET(MENUINFO, cbSize)); /* DWORD */ - ok(FIELD_OFFSET(MENUINFO, fMask) == 4, - "FIELD_OFFSET(MENUINFO, fMask) == %ld (expected 4)", - FIELD_OFFSET(MENUINFO, fMask)); /* DWORD */ - ok(FIELD_OFFSET(MENUINFO, dwStyle) == 8, - "FIELD_OFFSET(MENUINFO, dwStyle) == %ld (expected 8)", - FIELD_OFFSET(MENUINFO, dwStyle)); /* DWORD */ - ok(FIELD_OFFSET(MENUINFO, cyMax) == 12, - "FIELD_OFFSET(MENUINFO, cyMax) == %ld (expected 12)", - FIELD_OFFSET(MENUINFO, cyMax)); /* UINT */ - ok(FIELD_OFFSET(MENUINFO, hbrBack) == 16, - "FIELD_OFFSET(MENUINFO, hbrBack) == %ld (expected 16)", - FIELD_OFFSET(MENUINFO, hbrBack)); /* HBRUSH */ - ok(FIELD_OFFSET(MENUINFO, dwContextHelpID) == 20, - "FIELD_OFFSET(MENUINFO, dwContextHelpID) == %ld (expected 20)", - FIELD_OFFSET(MENUINFO, dwContextHelpID)); /* DWORD */ - ok(FIELD_OFFSET(MENUINFO, dwMenuData) == 24, - "FIELD_OFFSET(MENUINFO, dwMenuData) == %ld (expected 24)", - FIELD_OFFSET(MENUINFO, dwMenuData)); /* DWORD */ - ok(sizeof(MENUINFO) == 28, "sizeof(MENUINFO) == %d (expected 28)", sizeof(MENUINFO)); - - /* MENUITEMINFOA */ - ok(FIELD_OFFSET(MENUITEMINFOA, cbSize) == 0, - "FIELD_OFFSET(MENUITEMINFOA, cbSize) == %ld (expected 0)", - FIELD_OFFSET(MENUITEMINFOA, cbSize)); /* UINT */ - ok(FIELD_OFFSET(MENUITEMINFOA, fMask) == 4, - "FIELD_OFFSET(MENUITEMINFOA, fMask) == %ld (expected 4)", - FIELD_OFFSET(MENUITEMINFOA, fMask)); /* UINT */ - ok(FIELD_OFFSET(MENUITEMINFOA, fType) == 8, - "FIELD_OFFSET(MENUITEMINFOA, fType) == %ld (expected 8)", - FIELD_OFFSET(MENUITEMINFOA, fType)); /* UINT */ - ok(FIELD_OFFSET(MENUITEMINFOA, fState) == 12, - "FIELD_OFFSET(MENUITEMINFOA, fState) == %ld (expected 12)", - FIELD_OFFSET(MENUITEMINFOA, fState)); /* UINT */ - ok(FIELD_OFFSET(MENUITEMINFOA, wID) == 16, - "FIELD_OFFSET(MENUITEMINFOA, wID) == %ld (expected 16)", - FIELD_OFFSET(MENUITEMINFOA, wID)); /* UINT */ - ok(FIELD_OFFSET(MENUITEMINFOA, hSubMenu) == 20, - "FIELD_OFFSET(MENUITEMINFOA, hSubMenu) == %ld (expected 20)", - FIELD_OFFSET(MENUITEMINFOA, hSubMenu)); /* HMENU */ - ok(FIELD_OFFSET(MENUITEMINFOA, hbmpChecked) == 24, - "FIELD_OFFSET(MENUITEMINFOA, hbmpChecked) == %ld (expected 24)", - FIELD_OFFSET(MENUITEMINFOA, hbmpChecked)); /* HBITMAP */ - ok(FIELD_OFFSET(MENUITEMINFOA, hbmpUnchecked) == 28, - "FIELD_OFFSET(MENUITEMINFOA, hbmpUnchecked) == %ld (expected 28)", - FIELD_OFFSET(MENUITEMINFOA, hbmpUnchecked)); /* HBITMAP */ - ok(FIELD_OFFSET(MENUITEMINFOA, dwItemData) == 32, - "FIELD_OFFSET(MENUITEMINFOA, dwItemData) == %ld (expected 32)", - FIELD_OFFSET(MENUITEMINFOA, dwItemData)); /* DWORD */ - ok(FIELD_OFFSET(MENUITEMINFOA, dwTypeData) == 36, - "FIELD_OFFSET(MENUITEMINFOA, dwTypeData) == %ld (expected 36)", - FIELD_OFFSET(MENUITEMINFOA, dwTypeData)); /* LPSTR */ - ok(FIELD_OFFSET(MENUITEMINFOA, cch) == 40, - "FIELD_OFFSET(MENUITEMINFOA, cch) == %ld (expected 40)", - FIELD_OFFSET(MENUITEMINFOA, cch)); /* UINT */ - ok(FIELD_OFFSET(MENUITEMINFOA, hbmpItem) == 44, - "FIELD_OFFSET(MENUITEMINFOA, hbmpItem) == %ld (expected 44)", - FIELD_OFFSET(MENUITEMINFOA, hbmpItem)); /* HBITMAP */ - ok(sizeof(MENUITEMINFOA) == 48, "sizeof(MENUITEMINFOA) == %d (expected 48)", sizeof(MENUITEMINFOA)); - - /* MENUITEMINFOW */ - ok(FIELD_OFFSET(MENUITEMINFOW, cbSize) == 0, - "FIELD_OFFSET(MENUITEMINFOW, cbSize) == %ld (expected 0)", - FIELD_OFFSET(MENUITEMINFOW, cbSize)); /* UINT */ - ok(FIELD_OFFSET(MENUITEMINFOW, fMask) == 4, - "FIELD_OFFSET(MENUITEMINFOW, fMask) == %ld (expected 4)", - FIELD_OFFSET(MENUITEMINFOW, fMask)); /* UINT */ - ok(FIELD_OFFSET(MENUITEMINFOW, fType) == 8, - "FIELD_OFFSET(MENUITEMINFOW, fType) == %ld (expected 8)", - FIELD_OFFSET(MENUITEMINFOW, fType)); /* UINT */ - ok(FIELD_OFFSET(MENUITEMINFOW, fState) == 12, - "FIELD_OFFSET(MENUITEMINFOW, fState) == %ld (expected 12)", - FIELD_OFFSET(MENUITEMINFOW, fState)); /* UINT */ - ok(FIELD_OFFSET(MENUITEMINFOW, wID) == 16, - "FIELD_OFFSET(MENUITEMINFOW, wID) == %ld (expected 16)", - FIELD_OFFSET(MENUITEMINFOW, wID)); /* UINT */ - ok(FIELD_OFFSET(MENUITEMINFOW, hSubMenu) == 20, - "FIELD_OFFSET(MENUITEMINFOW, hSubMenu) == %ld (expected 20)", - FIELD_OFFSET(MENUITEMINFOW, hSubMenu)); /* HMENU */ - ok(FIELD_OFFSET(MENUITEMINFOW, hbmpChecked) == 24, - "FIELD_OFFSET(MENUITEMINFOW, hbmpChecked) == %ld (expected 24)", - FIELD_OFFSET(MENUITEMINFOW, hbmpChecked)); /* HBITMAP */ - ok(FIELD_OFFSET(MENUITEMINFOW, hbmpUnchecked) == 28, - "FIELD_OFFSET(MENUITEMINFOW, hbmpUnchecked) == %ld (expected 28)", - FIELD_OFFSET(MENUITEMINFOW, hbmpUnchecked)); /* HBITMAP */ - ok(FIELD_OFFSET(MENUITEMINFOW, dwItemData) == 32, - "FIELD_OFFSET(MENUITEMINFOW, dwItemData) == %ld (expected 32)", - FIELD_OFFSET(MENUITEMINFOW, dwItemData)); /* DWORD */ - ok(FIELD_OFFSET(MENUITEMINFOW, dwTypeData) == 36, - "FIELD_OFFSET(MENUITEMINFOW, dwTypeData) == %ld (expected 36)", - FIELD_OFFSET(MENUITEMINFOW, dwTypeData)); /* LPWSTR */ - ok(FIELD_OFFSET(MENUITEMINFOW, cch) == 40, - "FIELD_OFFSET(MENUITEMINFOW, cch) == %ld (expected 40)", - FIELD_OFFSET(MENUITEMINFOW, cch)); /* UINT */ - ok(FIELD_OFFSET(MENUITEMINFOW, hbmpItem) == 44, - "FIELD_OFFSET(MENUITEMINFOW, hbmpItem) == %ld (expected 44)", - FIELD_OFFSET(MENUITEMINFOW, hbmpItem)); /* HBITMAP */ - ok(sizeof(MENUITEMINFOW) == 48, "sizeof(MENUITEMINFOW) == %d (expected 48)", sizeof(MENUITEMINFOW)); - - /* MENUITEMTEMPLATEHEADER */ - ok(FIELD_OFFSET(MENUITEMTEMPLATEHEADER, versionNumber) == 0, - "FIELD_OFFSET(MENUITEMTEMPLATEHEADER, versionNumber) == %ld (expected 0)", - FIELD_OFFSET(MENUITEMTEMPLATEHEADER, versionNumber)); /* WORD */ - ok(FIELD_OFFSET(MENUITEMTEMPLATEHEADER, offset) == 2, - "FIELD_OFFSET(MENUITEMTEMPLATEHEADER, offset) == %ld (expected 2)", - FIELD_OFFSET(MENUITEMTEMPLATEHEADER, offset)); /* WORD */ - ok(sizeof(MENUITEMTEMPLATEHEADER) == 4, "sizeof(MENUITEMTEMPLATEHEADER) == %d (expected 4)", sizeof(MENUITEMTEMPLATEHEADER)); - - /* MINIMIZEDMETRICS */ - ok(FIELD_OFFSET(MINIMIZEDMETRICS, cbSize) == 0, - "FIELD_OFFSET(MINIMIZEDMETRICS, cbSize) == %ld (expected 0)", - FIELD_OFFSET(MINIMIZEDMETRICS, cbSize)); /* UINT */ - ok(FIELD_OFFSET(MINIMIZEDMETRICS, iWidth) == 4, - "FIELD_OFFSET(MINIMIZEDMETRICS, iWidth) == %ld (expected 4)", - FIELD_OFFSET(MINIMIZEDMETRICS, iWidth)); /* int */ - ok(FIELD_OFFSET(MINIMIZEDMETRICS, iHorzGap) == 8, - "FIELD_OFFSET(MINIMIZEDMETRICS, iHorzGap) == %ld (expected 8)", - FIELD_OFFSET(MINIMIZEDMETRICS, iHorzGap)); /* int */ - ok(FIELD_OFFSET(MINIMIZEDMETRICS, iVertGap) == 12, - "FIELD_OFFSET(MINIMIZEDMETRICS, iVertGap) == %ld (expected 12)", - FIELD_OFFSET(MINIMIZEDMETRICS, iVertGap)); /* int */ - ok(FIELD_OFFSET(MINIMIZEDMETRICS, iArrange) == 16, - "FIELD_OFFSET(MINIMIZEDMETRICS, iArrange) == %ld (expected 16)", - FIELD_OFFSET(MINIMIZEDMETRICS, iArrange)); /* int */ - ok(sizeof(MINIMIZEDMETRICS) == 20, "sizeof(MINIMIZEDMETRICS) == %d (expected 20)", sizeof(MINIMIZEDMETRICS)); - - /* MINMAXINFO */ - ok(FIELD_OFFSET(MINMAXINFO, ptReserved) == 0, - "FIELD_OFFSET(MINMAXINFO, ptReserved) == %ld (expected 0)", - FIELD_OFFSET(MINMAXINFO, ptReserved)); /* POINT */ - ok(FIELD_OFFSET(MINMAXINFO, ptMaxSize) == 8, - "FIELD_OFFSET(MINMAXINFO, ptMaxSize) == %ld (expected 8)", - FIELD_OFFSET(MINMAXINFO, ptMaxSize)); /* POINT */ - ok(FIELD_OFFSET(MINMAXINFO, ptMaxPosition) == 16, - "FIELD_OFFSET(MINMAXINFO, ptMaxPosition) == %ld (expected 16)", - FIELD_OFFSET(MINMAXINFO, ptMaxPosition)); /* POINT */ - ok(FIELD_OFFSET(MINMAXINFO, ptMinTrackSize) == 24, - "FIELD_OFFSET(MINMAXINFO, ptMinTrackSize) == %ld (expected 24)", - FIELD_OFFSET(MINMAXINFO, ptMinTrackSize)); /* POINT */ - ok(FIELD_OFFSET(MINMAXINFO, ptMaxTrackSize) == 32, - "FIELD_OFFSET(MINMAXINFO, ptMaxTrackSize) == %ld (expected 32)", - FIELD_OFFSET(MINMAXINFO, ptMaxTrackSize)); /* POINT */ - ok(sizeof(MINMAXINFO) == 40, "sizeof(MINMAXINFO) == %d (expected 40)", sizeof(MINMAXINFO)); - - /* MONITORINFO */ - ok(FIELD_OFFSET(MONITORINFO, cbSize) == 0, - "FIELD_OFFSET(MONITORINFO, cbSize) == %ld (expected 0)", - FIELD_OFFSET(MONITORINFO, cbSize)); /* DWORD */ - ok(FIELD_OFFSET(MONITORINFO, rcMonitor) == 4, - "FIELD_OFFSET(MONITORINFO, rcMonitor) == %ld (expected 4)", - FIELD_OFFSET(MONITORINFO, rcMonitor)); /* RECT */ - ok(FIELD_OFFSET(MONITORINFO, rcWork) == 20, - "FIELD_OFFSET(MONITORINFO, rcWork) == %ld (expected 20)", - FIELD_OFFSET(MONITORINFO, rcWork)); /* RECT */ - ok(FIELD_OFFSET(MONITORINFO, dwFlags) == 36, - "FIELD_OFFSET(MONITORINFO, dwFlags) == %ld (expected 36)", - FIELD_OFFSET(MONITORINFO, dwFlags)); /* DWORD */ - ok(sizeof(MONITORINFO) == 40, "sizeof(MONITORINFO) == %d (expected 40)", sizeof(MONITORINFO)); - - /* MOUSEHOOKSTRUCT */ - ok(FIELD_OFFSET(MOUSEHOOKSTRUCT, pt) == 0, - "FIELD_OFFSET(MOUSEHOOKSTRUCT, pt) == %ld (expected 0)", - FIELD_OFFSET(MOUSEHOOKSTRUCT, pt)); /* POINT */ - ok(FIELD_OFFSET(MOUSEHOOKSTRUCT, hwnd) == 8, - "FIELD_OFFSET(MOUSEHOOKSTRUCT, hwnd) == %ld (expected 8)", - FIELD_OFFSET(MOUSEHOOKSTRUCT, hwnd)); /* HWND */ - ok(FIELD_OFFSET(MOUSEHOOKSTRUCT, wHitTestCode) == 12, - "FIELD_OFFSET(MOUSEHOOKSTRUCT, wHitTestCode) == %ld (expected 12)", - FIELD_OFFSET(MOUSEHOOKSTRUCT, wHitTestCode)); /* UINT */ - ok(FIELD_OFFSET(MOUSEHOOKSTRUCT, dwExtraInfo) == 16, - "FIELD_OFFSET(MOUSEHOOKSTRUCT, dwExtraInfo) == %ld (expected 16)", - FIELD_OFFSET(MOUSEHOOKSTRUCT, dwExtraInfo)); /* DWORD */ - ok(sizeof(MOUSEHOOKSTRUCT) == 20, "sizeof(MOUSEHOOKSTRUCT) == %d (expected 20)", sizeof(MOUSEHOOKSTRUCT)); - - /* MOUSEINPUT */ - ok(FIELD_OFFSET(MOUSEINPUT, dx) == 0, - "FIELD_OFFSET(MOUSEINPUT, dx) == %ld (expected 0)", - FIELD_OFFSET(MOUSEINPUT, dx)); /* LONG */ - ok(FIELD_OFFSET(MOUSEINPUT, dy) == 4, - "FIELD_OFFSET(MOUSEINPUT, dy) == %ld (expected 4)", - FIELD_OFFSET(MOUSEINPUT, dy)); /* LONG */ - ok(FIELD_OFFSET(MOUSEINPUT, mouseData) == 8, - "FIELD_OFFSET(MOUSEINPUT, mouseData) == %ld (expected 8)", - FIELD_OFFSET(MOUSEINPUT, mouseData)); /* DWORD */ - ok(FIELD_OFFSET(MOUSEINPUT, dwFlags) == 12, - "FIELD_OFFSET(MOUSEINPUT, dwFlags) == %ld (expected 12)", - FIELD_OFFSET(MOUSEINPUT, dwFlags)); /* DWORD */ - ok(FIELD_OFFSET(MOUSEINPUT, time) == 16, - "FIELD_OFFSET(MOUSEINPUT, time) == %ld (expected 16)", - FIELD_OFFSET(MOUSEINPUT, time)); /* DWORD */ - ok(FIELD_OFFSET(MOUSEINPUT, dwExtraInfo) == 20, - "FIELD_OFFSET(MOUSEINPUT, dwExtraInfo) == %ld (expected 20)", - FIELD_OFFSET(MOUSEINPUT, dwExtraInfo)); /* ULONG_PTR */ - ok(sizeof(MOUSEINPUT) == 24, "sizeof(MOUSEINPUT) == %d (expected 24)", sizeof(MOUSEINPUT)); - - /* MOUSEKEYS */ - ok(FIELD_OFFSET(MOUSEKEYS, cbSize) == 0, - "FIELD_OFFSET(MOUSEKEYS, cbSize) == %ld (expected 0)", - FIELD_OFFSET(MOUSEKEYS, cbSize)); /* UINT */ - ok(FIELD_OFFSET(MOUSEKEYS, dwFlags) == 4, - "FIELD_OFFSET(MOUSEKEYS, dwFlags) == %ld (expected 4)", - FIELD_OFFSET(MOUSEKEYS, dwFlags)); /* DWORD */ - ok(FIELD_OFFSET(MOUSEKEYS, iMaxSpeed) == 8, - "FIELD_OFFSET(MOUSEKEYS, iMaxSpeed) == %ld (expected 8)", - FIELD_OFFSET(MOUSEKEYS, iMaxSpeed)); /* DWORD */ - ok(FIELD_OFFSET(MOUSEKEYS, iTimeToMaxSpeed) == 12, - "FIELD_OFFSET(MOUSEKEYS, iTimeToMaxSpeed) == %ld (expected 12)", - FIELD_OFFSET(MOUSEKEYS, iTimeToMaxSpeed)); /* DWORD */ - ok(FIELD_OFFSET(MOUSEKEYS, iCtrlSpeed) == 16, - "FIELD_OFFSET(MOUSEKEYS, iCtrlSpeed) == %ld (expected 16)", - FIELD_OFFSET(MOUSEKEYS, iCtrlSpeed)); /* DWORD */ - ok(FIELD_OFFSET(MOUSEKEYS, dwReserved1) == 20, - "FIELD_OFFSET(MOUSEKEYS, dwReserved1) == %ld (expected 20)", - FIELD_OFFSET(MOUSEKEYS, dwReserved1)); /* DWORD */ - ok(FIELD_OFFSET(MOUSEKEYS, dwReserved2) == 24, - "FIELD_OFFSET(MOUSEKEYS, dwReserved2) == %ld (expected 24)", - FIELD_OFFSET(MOUSEKEYS, dwReserved2)); /* DWORD */ - ok(sizeof(MOUSEKEYS) == 28, "sizeof(MOUSEKEYS) == %d (expected 28)", sizeof(MOUSEKEYS)); - - /* MSG */ - ok(FIELD_OFFSET(MSG, hwnd) == 0, - "FIELD_OFFSET(MSG, hwnd) == %ld (expected 0)", - FIELD_OFFSET(MSG, hwnd)); /* HWND */ - ok(FIELD_OFFSET(MSG, message) == 4, - "FIELD_OFFSET(MSG, message) == %ld (expected 4)", - FIELD_OFFSET(MSG, message)); /* UINT */ - ok(FIELD_OFFSET(MSG, wParam) == 8, - "FIELD_OFFSET(MSG, wParam) == %ld (expected 8)", - FIELD_OFFSET(MSG, wParam)); /* WPARAM */ - ok(FIELD_OFFSET(MSG, lParam) == 12, - "FIELD_OFFSET(MSG, lParam) == %ld (expected 12)", - FIELD_OFFSET(MSG, lParam)); /* LPARAM */ - ok(FIELD_OFFSET(MSG, time) == 16, - "FIELD_OFFSET(MSG, time) == %ld (expected 16)", - FIELD_OFFSET(MSG, time)); /* DWORD */ - ok(FIELD_OFFSET(MSG, pt) == 20, - "FIELD_OFFSET(MSG, pt) == %ld (expected 20)", - FIELD_OFFSET(MSG, pt)); /* POINT */ - ok(sizeof(MSG) == 28, "sizeof(MSG) == %d (expected 28)", sizeof(MSG)); - - /* MSGBOXPARAMSA */ - ok(FIELD_OFFSET(MSGBOXPARAMSA, cbSize) == 0, - "FIELD_OFFSET(MSGBOXPARAMSA, cbSize) == %ld (expected 0)", - FIELD_OFFSET(MSGBOXPARAMSA, cbSize)); /* UINT */ - ok(FIELD_OFFSET(MSGBOXPARAMSA, hwndOwner) == 4, - "FIELD_OFFSET(MSGBOXPARAMSA, hwndOwner) == %ld (expected 4)", - FIELD_OFFSET(MSGBOXPARAMSA, hwndOwner)); /* HWND */ - ok(FIELD_OFFSET(MSGBOXPARAMSA, hInstance) == 8, - "FIELD_OFFSET(MSGBOXPARAMSA, hInstance) == %ld (expected 8)", - FIELD_OFFSET(MSGBOXPARAMSA, hInstance)); /* HINSTANCE */ - ok(FIELD_OFFSET(MSGBOXPARAMSA, lpszText) == 12, - "FIELD_OFFSET(MSGBOXPARAMSA, lpszText) == %ld (expected 12)", - FIELD_OFFSET(MSGBOXPARAMSA, lpszText)); /* LPCSTR */ - ok(FIELD_OFFSET(MSGBOXPARAMSA, lpszCaption) == 16, - "FIELD_OFFSET(MSGBOXPARAMSA, lpszCaption) == %ld (expected 16)", - FIELD_OFFSET(MSGBOXPARAMSA, lpszCaption)); /* LPCSTR */ - ok(FIELD_OFFSET(MSGBOXPARAMSA, dwStyle) == 20, - "FIELD_OFFSET(MSGBOXPARAMSA, dwStyle) == %ld (expected 20)", - FIELD_OFFSET(MSGBOXPARAMSA, dwStyle)); /* DWORD */ - ok(FIELD_OFFSET(MSGBOXPARAMSA, lpszIcon) == 24, - "FIELD_OFFSET(MSGBOXPARAMSA, lpszIcon) == %ld (expected 24)", - FIELD_OFFSET(MSGBOXPARAMSA, lpszIcon)); /* LPCSTR */ - ok(FIELD_OFFSET(MSGBOXPARAMSA, dwContextHelpId) == 28, - "FIELD_OFFSET(MSGBOXPARAMSA, dwContextHelpId) == %ld (expected 28)", - FIELD_OFFSET(MSGBOXPARAMSA, dwContextHelpId)); /* DWORD */ - ok(FIELD_OFFSET(MSGBOXPARAMSA, lpfnMsgBoxCallback) == 32, - "FIELD_OFFSET(MSGBOXPARAMSA, lpfnMsgBoxCallback) == %ld (expected 32)", - FIELD_OFFSET(MSGBOXPARAMSA, lpfnMsgBoxCallback)); /* MSGBOXCALLBACK */ - ok(FIELD_OFFSET(MSGBOXPARAMSA, dwLanguageId) == 36, - "FIELD_OFFSET(MSGBOXPARAMSA, dwLanguageId) == %ld (expected 36)", - FIELD_OFFSET(MSGBOXPARAMSA, dwLanguageId)); /* DWORD */ - ok(sizeof(MSGBOXPARAMSA) == 40, "sizeof(MSGBOXPARAMSA) == %d (expected 40)", sizeof(MSGBOXPARAMSA)); - - /* MSGBOXPARAMSW */ - ok(FIELD_OFFSET(MSGBOXPARAMSW, cbSize) == 0, - "FIELD_OFFSET(MSGBOXPARAMSW, cbSize) == %ld (expected 0)", - FIELD_OFFSET(MSGBOXPARAMSW, cbSize)); /* UINT */ - ok(FIELD_OFFSET(MSGBOXPARAMSW, hwndOwner) == 4, - "FIELD_OFFSET(MSGBOXPARAMSW, hwndOwner) == %ld (expected 4)", - FIELD_OFFSET(MSGBOXPARAMSW, hwndOwner)); /* HWND */ - ok(FIELD_OFFSET(MSGBOXPARAMSW, hInstance) == 8, - "FIELD_OFFSET(MSGBOXPARAMSW, hInstance) == %ld (expected 8)", - FIELD_OFFSET(MSGBOXPARAMSW, hInstance)); /* HINSTANCE */ - ok(FIELD_OFFSET(MSGBOXPARAMSW, lpszText) == 12, - "FIELD_OFFSET(MSGBOXPARAMSW, lpszText) == %ld (expected 12)", - FIELD_OFFSET(MSGBOXPARAMSW, lpszText)); /* LPCWSTR */ - ok(FIELD_OFFSET(MSGBOXPARAMSW, lpszCaption) == 16, - "FIELD_OFFSET(MSGBOXPARAMSW, lpszCaption) == %ld (expected 16)", - FIELD_OFFSET(MSGBOXPARAMSW, lpszCaption)); /* LPCWSTR */ - ok(FIELD_OFFSET(MSGBOXPARAMSW, dwStyle) == 20, - "FIELD_OFFSET(MSGBOXPARAMSW, dwStyle) == %ld (expected 20)", - FIELD_OFFSET(MSGBOXPARAMSW, dwStyle)); /* DWORD */ - ok(FIELD_OFFSET(MSGBOXPARAMSW, lpszIcon) == 24, - "FIELD_OFFSET(MSGBOXPARAMSW, lpszIcon) == %ld (expected 24)", - FIELD_OFFSET(MSGBOXPARAMSW, lpszIcon)); /* LPCWSTR */ - ok(FIELD_OFFSET(MSGBOXPARAMSW, dwContextHelpId) == 28, - "FIELD_OFFSET(MSGBOXPARAMSW, dwContextHelpId) == %ld (expected 28)", - FIELD_OFFSET(MSGBOXPARAMSW, dwContextHelpId)); /* DWORD */ - ok(FIELD_OFFSET(MSGBOXPARAMSW, lpfnMsgBoxCallback) == 32, - "FIELD_OFFSET(MSGBOXPARAMSW, lpfnMsgBoxCallback) == %ld (expected 32)", - FIELD_OFFSET(MSGBOXPARAMSW, lpfnMsgBoxCallback)); /* MSGBOXCALLBACK */ - ok(FIELD_OFFSET(MSGBOXPARAMSW, dwLanguageId) == 36, - "FIELD_OFFSET(MSGBOXPARAMSW, dwLanguageId) == %ld (expected 36)", - FIELD_OFFSET(MSGBOXPARAMSW, dwLanguageId)); /* DWORD */ - ok(sizeof(MSGBOXPARAMSW) == 40, "sizeof(MSGBOXPARAMSW) == %d (expected 40)", sizeof(MSGBOXPARAMSW)); - - /* MSLLHOOKSTRUCT */ - ok(FIELD_OFFSET(MSLLHOOKSTRUCT, pt) == 0, - "FIELD_OFFSET(MSLLHOOKSTRUCT, pt) == %ld (expected 0)", - FIELD_OFFSET(MSLLHOOKSTRUCT, pt)); /* POINT */ - ok(FIELD_OFFSET(MSLLHOOKSTRUCT, mouseData) == 8, - "FIELD_OFFSET(MSLLHOOKSTRUCT, mouseData) == %ld (expected 8)", - FIELD_OFFSET(MSLLHOOKSTRUCT, mouseData)); /* DWORD */ - ok(FIELD_OFFSET(MSLLHOOKSTRUCT, flags) == 12, - "FIELD_OFFSET(MSLLHOOKSTRUCT, flags) == %ld (expected 12)", - FIELD_OFFSET(MSLLHOOKSTRUCT, flags)); /* DWORD */ - ok(FIELD_OFFSET(MSLLHOOKSTRUCT, time) == 16, - "FIELD_OFFSET(MSLLHOOKSTRUCT, time) == %ld (expected 16)", - FIELD_OFFSET(MSLLHOOKSTRUCT, time)); /* DWORD */ - ok(FIELD_OFFSET(MSLLHOOKSTRUCT, dwExtraInfo) == 20, - "FIELD_OFFSET(MSLLHOOKSTRUCT, dwExtraInfo) == %ld (expected 20)", - FIELD_OFFSET(MSLLHOOKSTRUCT, dwExtraInfo)); /* ULONG_PTR */ - ok(sizeof(MSLLHOOKSTRUCT) == 24, "sizeof(MSLLHOOKSTRUCT) == %d (expected 24)", sizeof(MSLLHOOKSTRUCT)); - - /* MULTIKEYHELPA */ - ok(FIELD_OFFSET(MULTIKEYHELPA, mkSize) == 0, - "FIELD_OFFSET(MULTIKEYHELPA, mkSize) == %ld (expected 0)", - FIELD_OFFSET(MULTIKEYHELPA, mkSize)); /* DWORD */ - ok(FIELD_OFFSET(MULTIKEYHELPA, mkKeyList) == 4, - "FIELD_OFFSET(MULTIKEYHELPA, mkKeyList) == %ld (expected 4)", - FIELD_OFFSET(MULTIKEYHELPA, mkKeyList)); /* CHAR */ - ok(FIELD_OFFSET(MULTIKEYHELPA, szKeyphrase) == 5, - "FIELD_OFFSET(MULTIKEYHELPA, szKeyphrase) == %ld (expected 5)", - FIELD_OFFSET(MULTIKEYHELPA, szKeyphrase)); /* CHAR[1] */ - ok(sizeof(MULTIKEYHELPA) == 8, "sizeof(MULTIKEYHELPA) == %d (expected 8)", sizeof(MULTIKEYHELPA)); - - /* MULTIKEYHELPW */ - ok(FIELD_OFFSET(MULTIKEYHELPW, mkSize) == 0, - "FIELD_OFFSET(MULTIKEYHELPW, mkSize) == %ld (expected 0)", - FIELD_OFFSET(MULTIKEYHELPW, mkSize)); /* DWORD */ - ok(FIELD_OFFSET(MULTIKEYHELPW, mkKeyList) == 4, - "FIELD_OFFSET(MULTIKEYHELPW, mkKeyList) == %ld (expected 4)", - FIELD_OFFSET(MULTIKEYHELPW, mkKeyList)); /* WCHAR */ - ok(FIELD_OFFSET(MULTIKEYHELPW, szKeyphrase) == 6, - "FIELD_OFFSET(MULTIKEYHELPW, szKeyphrase) == %ld (expected 6)", - FIELD_OFFSET(MULTIKEYHELPW, szKeyphrase)); /* WCHAR[1] */ - ok(sizeof(MULTIKEYHELPW) == 8, "sizeof(MULTIKEYHELPW) == %d (expected 8)", sizeof(MULTIKEYHELPW)); - - /* NCCALCSIZE_PARAMS */ - ok(FIELD_OFFSET(NCCALCSIZE_PARAMS, rgrc) == 0, - "FIELD_OFFSET(NCCALCSIZE_PARAMS, rgrc) == %ld (expected 0)", - FIELD_OFFSET(NCCALCSIZE_PARAMS, rgrc)); /* RECT[3] */ - ok(FIELD_OFFSET(NCCALCSIZE_PARAMS, lppos) == 48, - "FIELD_OFFSET(NCCALCSIZE_PARAMS, lppos) == %ld (expected 48)", - FIELD_OFFSET(NCCALCSIZE_PARAMS, lppos)); /* WINDOWPOS * */ - ok(sizeof(NCCALCSIZE_PARAMS) == 52, "sizeof(NCCALCSIZE_PARAMS) == %d (expected 52)", sizeof(NCCALCSIZE_PARAMS)); - - /* NMHDR */ - ok(FIELD_OFFSET(NMHDR, hwndFrom) == 0, - "FIELD_OFFSET(NMHDR, hwndFrom) == %ld (expected 0)", - FIELD_OFFSET(NMHDR, hwndFrom)); /* HWND */ - ok(FIELD_OFFSET(NMHDR, idFrom) == 4, - "FIELD_OFFSET(NMHDR, idFrom) == %ld (expected 4)", - FIELD_OFFSET(NMHDR, idFrom)); /* UINT */ - ok(FIELD_OFFSET(NMHDR, code) == 8, - "FIELD_OFFSET(NMHDR, code) == %ld (expected 8)", - FIELD_OFFSET(NMHDR, code)); /* UINT */ - ok(sizeof(NMHDR) == 12, "sizeof(NMHDR) == %d (expected 12)", sizeof(NMHDR)); - - /* PAINTSTRUCT */ - ok(FIELD_OFFSET(PAINTSTRUCT, hdc) == 0, - "FIELD_OFFSET(PAINTSTRUCT, hdc) == %ld (expected 0)", - FIELD_OFFSET(PAINTSTRUCT, hdc)); /* HDC */ - ok(FIELD_OFFSET(PAINTSTRUCT, fErase) == 4, - "FIELD_OFFSET(PAINTSTRUCT, fErase) == %ld (expected 4)", - FIELD_OFFSET(PAINTSTRUCT, fErase)); /* BOOL */ - ok(FIELD_OFFSET(PAINTSTRUCT, rcPaint) == 8, - "FIELD_OFFSET(PAINTSTRUCT, rcPaint) == %ld (expected 8)", - FIELD_OFFSET(PAINTSTRUCT, rcPaint)); /* RECT */ - ok(FIELD_OFFSET(PAINTSTRUCT, fRestore) == 24, - "FIELD_OFFSET(PAINTSTRUCT, fRestore) == %ld (expected 24)", - FIELD_OFFSET(PAINTSTRUCT, fRestore)); /* BOOL */ - ok(FIELD_OFFSET(PAINTSTRUCT, fIncUpdate) == 28, - "FIELD_OFFSET(PAINTSTRUCT, fIncUpdate) == %ld (expected 28)", - FIELD_OFFSET(PAINTSTRUCT, fIncUpdate)); /* BOOL */ - ok(FIELD_OFFSET(PAINTSTRUCT, rgbReserved) == 32, - "FIELD_OFFSET(PAINTSTRUCT, rgbReserved) == %ld (expected 32)", - FIELD_OFFSET(PAINTSTRUCT, rgbReserved)); /* BYTE[32] */ - ok(sizeof(PAINTSTRUCT) == 64, "sizeof(PAINTSTRUCT) == %d (expected 64)", sizeof(PAINTSTRUCT)); - - /* SCROLLINFO */ - ok(FIELD_OFFSET(SCROLLINFO, cbSize) == 0, - "FIELD_OFFSET(SCROLLINFO, cbSize) == %ld (expected 0)", - FIELD_OFFSET(SCROLLINFO, cbSize)); /* UINT */ - ok(FIELD_OFFSET(SCROLLINFO, fMask) == 4, - "FIELD_OFFSET(SCROLLINFO, fMask) == %ld (expected 4)", - FIELD_OFFSET(SCROLLINFO, fMask)); /* UINT */ - ok(FIELD_OFFSET(SCROLLINFO, nMin) == 8, - "FIELD_OFFSET(SCROLLINFO, nMin) == %ld (expected 8)", - FIELD_OFFSET(SCROLLINFO, nMin)); /* INT */ - ok(FIELD_OFFSET(SCROLLINFO, nMax) == 12, - "FIELD_OFFSET(SCROLLINFO, nMax) == %ld (expected 12)", - FIELD_OFFSET(SCROLLINFO, nMax)); /* INT */ - ok(FIELD_OFFSET(SCROLLINFO, nPage) == 16, - "FIELD_OFFSET(SCROLLINFO, nPage) == %ld (expected 16)", - FIELD_OFFSET(SCROLLINFO, nPage)); /* UINT */ - ok(FIELD_OFFSET(SCROLLINFO, nPos) == 20, - "FIELD_OFFSET(SCROLLINFO, nPos) == %ld (expected 20)", - FIELD_OFFSET(SCROLLINFO, nPos)); /* INT */ - ok(FIELD_OFFSET(SCROLLINFO, nTrackPos) == 24, - "FIELD_OFFSET(SCROLLINFO, nTrackPos) == %ld (expected 24)", - FIELD_OFFSET(SCROLLINFO, nTrackPos)); /* INT */ - ok(sizeof(SCROLLINFO) == 28, "sizeof(SCROLLINFO) == %d (expected 28)", sizeof(SCROLLINFO)); - - /* SERIALKEYSA */ - ok(FIELD_OFFSET(SERIALKEYSA, cbSize) == 0, - "FIELD_OFFSET(SERIALKEYSA, cbSize) == %ld (expected 0)", - FIELD_OFFSET(SERIALKEYSA, cbSize)); /* UINT */ - ok(FIELD_OFFSET(SERIALKEYSA, dwFlags) == 4, - "FIELD_OFFSET(SERIALKEYSA, dwFlags) == %ld (expected 4)", - FIELD_OFFSET(SERIALKEYSA, dwFlags)); /* DWORD */ - ok(FIELD_OFFSET(SERIALKEYSA, lpszActivePort) == 8, - "FIELD_OFFSET(SERIALKEYSA, lpszActivePort) == %ld (expected 8)", - FIELD_OFFSET(SERIALKEYSA, lpszActivePort)); /* LPSTR */ - ok(FIELD_OFFSET(SERIALKEYSA, lpszPort) == 12, - "FIELD_OFFSET(SERIALKEYSA, lpszPort) == %ld (expected 12)", - FIELD_OFFSET(SERIALKEYSA, lpszPort)); /* LPSTR */ - ok(FIELD_OFFSET(SERIALKEYSA, iBaudRate) == 16, - "FIELD_OFFSET(SERIALKEYSA, iBaudRate) == %ld (expected 16)", - FIELD_OFFSET(SERIALKEYSA, iBaudRate)); /* UINT */ - ok(FIELD_OFFSET(SERIALKEYSA, iPortState) == 20, - "FIELD_OFFSET(SERIALKEYSA, iPortState) == %ld (expected 20)", - FIELD_OFFSET(SERIALKEYSA, iPortState)); /* UINT */ - ok(FIELD_OFFSET(SERIALKEYSA, iActive) == 24, - "FIELD_OFFSET(SERIALKEYSA, iActive) == %ld (expected 24)", - FIELD_OFFSET(SERIALKEYSA, iActive)); /* UINT */ - ok(sizeof(SERIALKEYSA) == 28, "sizeof(SERIALKEYSA) == %d (expected 28)", sizeof(SERIALKEYSA)); - - /* SERIALKEYSW */ - ok(FIELD_OFFSET(SERIALKEYSW, cbSize) == 0, - "FIELD_OFFSET(SERIALKEYSW, cbSize) == %ld (expected 0)", - FIELD_OFFSET(SERIALKEYSW, cbSize)); /* UINT */ - ok(FIELD_OFFSET(SERIALKEYSW, dwFlags) == 4, - "FIELD_OFFSET(SERIALKEYSW, dwFlags) == %ld (expected 4)", - FIELD_OFFSET(SERIALKEYSW, dwFlags)); /* DWORD */ - ok(FIELD_OFFSET(SERIALKEYSW, lpszActivePort) == 8, - "FIELD_OFFSET(SERIALKEYSW, lpszActivePort) == %ld (expected 8)", - FIELD_OFFSET(SERIALKEYSW, lpszActivePort)); /* LPWSTR */ - ok(FIELD_OFFSET(SERIALKEYSW, lpszPort) == 12, - "FIELD_OFFSET(SERIALKEYSW, lpszPort) == %ld (expected 12)", - FIELD_OFFSET(SERIALKEYSW, lpszPort)); /* LPWSTR */ - ok(FIELD_OFFSET(SERIALKEYSW, iBaudRate) == 16, - "FIELD_OFFSET(SERIALKEYSW, iBaudRate) == %ld (expected 16)", - FIELD_OFFSET(SERIALKEYSW, iBaudRate)); /* UINT */ - ok(FIELD_OFFSET(SERIALKEYSW, iPortState) == 20, - "FIELD_OFFSET(SERIALKEYSW, iPortState) == %ld (expected 20)", - FIELD_OFFSET(SERIALKEYSW, iPortState)); /* UINT */ - ok(FIELD_OFFSET(SERIALKEYSW, iActive) == 24, - "FIELD_OFFSET(SERIALKEYSW, iActive) == %ld (expected 24)", - FIELD_OFFSET(SERIALKEYSW, iActive)); /* UINT */ - ok(sizeof(SERIALKEYSW) == 28, "sizeof(SERIALKEYSW) == %d (expected 28)", sizeof(SERIALKEYSW)); - - /* SOUNDSENTRYA */ - ok(FIELD_OFFSET(SOUNDSENTRYA, cbSize) == 0, - "FIELD_OFFSET(SOUNDSENTRYA, cbSize) == %ld (expected 0)", - FIELD_OFFSET(SOUNDSENTRYA, cbSize)); /* UINT */ - ok(FIELD_OFFSET(SOUNDSENTRYA, dwFlags) == 4, - "FIELD_OFFSET(SOUNDSENTRYA, dwFlags) == %ld (expected 4)", - FIELD_OFFSET(SOUNDSENTRYA, dwFlags)); /* DWORD */ - ok(FIELD_OFFSET(SOUNDSENTRYA, iFSTextEffect) == 8, - "FIELD_OFFSET(SOUNDSENTRYA, iFSTextEffect) == %ld (expected 8)", - FIELD_OFFSET(SOUNDSENTRYA, iFSTextEffect)); /* DWORD */ - ok(FIELD_OFFSET(SOUNDSENTRYA, iFSTextEffectMSec) == 12, - "FIELD_OFFSET(SOUNDSENTRYA, iFSTextEffectMSec) == %ld (expected 12)", - FIELD_OFFSET(SOUNDSENTRYA, iFSTextEffectMSec)); /* DWORD */ - ok(FIELD_OFFSET(SOUNDSENTRYA, iFSTextEffectColorBits) == 16, - "FIELD_OFFSET(SOUNDSENTRYA, iFSTextEffectColorBits) == %ld (expected 16)", - FIELD_OFFSET(SOUNDSENTRYA, iFSTextEffectColorBits)); /* DWORD */ - ok(FIELD_OFFSET(SOUNDSENTRYA, iFSGrafEffect) == 20, - "FIELD_OFFSET(SOUNDSENTRYA, iFSGrafEffect) == %ld (expected 20)", - FIELD_OFFSET(SOUNDSENTRYA, iFSGrafEffect)); /* DWORD */ - ok(FIELD_OFFSET(SOUNDSENTRYA, iFSGrafEffectMSec) == 24, - "FIELD_OFFSET(SOUNDSENTRYA, iFSGrafEffectMSec) == %ld (expected 24)", - FIELD_OFFSET(SOUNDSENTRYA, iFSGrafEffectMSec)); /* DWORD */ - ok(FIELD_OFFSET(SOUNDSENTRYA, iFSGrafEffectColor) == 28, - "FIELD_OFFSET(SOUNDSENTRYA, iFSGrafEffectColor) == %ld (expected 28)", - FIELD_OFFSET(SOUNDSENTRYA, iFSGrafEffectColor)); /* DWORD */ - ok(FIELD_OFFSET(SOUNDSENTRYA, iWindowsEffect) == 32, - "FIELD_OFFSET(SOUNDSENTRYA, iWindowsEffect) == %ld (expected 32)", - FIELD_OFFSET(SOUNDSENTRYA, iWindowsEffect)); /* DWORD */ - ok(FIELD_OFFSET(SOUNDSENTRYA, iWindowsEffectMSec) == 36, - "FIELD_OFFSET(SOUNDSENTRYA, iWindowsEffectMSec) == %ld (expected 36)", - FIELD_OFFSET(SOUNDSENTRYA, iWindowsEffectMSec)); /* DWORD */ - ok(FIELD_OFFSET(SOUNDSENTRYA, lpszWindowsEffectDLL) == 40, - "FIELD_OFFSET(SOUNDSENTRYA, lpszWindowsEffectDLL) == %ld (expected 40)", - FIELD_OFFSET(SOUNDSENTRYA, lpszWindowsEffectDLL)); /* LPSTR */ - ok(FIELD_OFFSET(SOUNDSENTRYA, iWindowsEffectOrdinal) == 44, - "FIELD_OFFSET(SOUNDSENTRYA, iWindowsEffectOrdinal) == %ld (expected 44)", - FIELD_OFFSET(SOUNDSENTRYA, iWindowsEffectOrdinal)); /* DWORD */ - ok(sizeof(SOUNDSENTRYA) == 48, "sizeof(SOUNDSENTRYA) == %d (expected 48)", sizeof(SOUNDSENTRYA)); - - /* SOUNDSENTRYW */ - ok(FIELD_OFFSET(SOUNDSENTRYW, cbSize) == 0, - "FIELD_OFFSET(SOUNDSENTRYW, cbSize) == %ld (expected 0)", - FIELD_OFFSET(SOUNDSENTRYW, cbSize)); /* UINT */ - ok(FIELD_OFFSET(SOUNDSENTRYW, dwFlags) == 4, - "FIELD_OFFSET(SOUNDSENTRYW, dwFlags) == %ld (expected 4)", - FIELD_OFFSET(SOUNDSENTRYW, dwFlags)); /* DWORD */ - ok(FIELD_OFFSET(SOUNDSENTRYW, iFSTextEffect) == 8, - "FIELD_OFFSET(SOUNDSENTRYW, iFSTextEffect) == %ld (expected 8)", - FIELD_OFFSET(SOUNDSENTRYW, iFSTextEffect)); /* DWORD */ - ok(FIELD_OFFSET(SOUNDSENTRYW, iFSTextEffectMSec) == 12, - "FIELD_OFFSET(SOUNDSENTRYW, iFSTextEffectMSec) == %ld (expected 12)", - FIELD_OFFSET(SOUNDSENTRYW, iFSTextEffectMSec)); /* DWORD */ - ok(FIELD_OFFSET(SOUNDSENTRYW, iFSTextEffectColorBits) == 16, - "FIELD_OFFSET(SOUNDSENTRYW, iFSTextEffectColorBits) == %ld (expected 16)", - FIELD_OFFSET(SOUNDSENTRYW, iFSTextEffectColorBits)); /* DWORD */ - ok(FIELD_OFFSET(SOUNDSENTRYW, iFSGrafEffect) == 20, - "FIELD_OFFSET(SOUNDSENTRYW, iFSGrafEffect) == %ld (expected 20)", - FIELD_OFFSET(SOUNDSENTRYW, iFSGrafEffect)); /* DWORD */ - ok(FIELD_OFFSET(SOUNDSENTRYW, iFSGrafEffectMSec) == 24, - "FIELD_OFFSET(SOUNDSENTRYW, iFSGrafEffectMSec) == %ld (expected 24)", - FIELD_OFFSET(SOUNDSENTRYW, iFSGrafEffectMSec)); /* DWORD */ - ok(FIELD_OFFSET(SOUNDSENTRYW, iFSGrafEffectColor) == 28, - "FIELD_OFFSET(SOUNDSENTRYW, iFSGrafEffectColor) == %ld (expected 28)", - FIELD_OFFSET(SOUNDSENTRYW, iFSGrafEffectColor)); /* DWORD */ - ok(FIELD_OFFSET(SOUNDSENTRYW, iWindowsEffect) == 32, - "FIELD_OFFSET(SOUNDSENTRYW, iWindowsEffect) == %ld (expected 32)", - FIELD_OFFSET(SOUNDSENTRYW, iWindowsEffect)); /* DWORD */ - ok(FIELD_OFFSET(SOUNDSENTRYW, iWindowsEffectMSec) == 36, - "FIELD_OFFSET(SOUNDSENTRYW, iWindowsEffectMSec) == %ld (expected 36)", - FIELD_OFFSET(SOUNDSENTRYW, iWindowsEffectMSec)); /* DWORD */ - ok(FIELD_OFFSET(SOUNDSENTRYW, lpszWindowsEffectDLL) == 40, - "FIELD_OFFSET(SOUNDSENTRYW, lpszWindowsEffectDLL) == %ld (expected 40)", - FIELD_OFFSET(SOUNDSENTRYW, lpszWindowsEffectDLL)); /* LPWSTR */ - ok(FIELD_OFFSET(SOUNDSENTRYW, iWindowsEffectOrdinal) == 44, - "FIELD_OFFSET(SOUNDSENTRYW, iWindowsEffectOrdinal) == %ld (expected 44)", - FIELD_OFFSET(SOUNDSENTRYW, iWindowsEffectOrdinal)); /* DWORD */ - ok(sizeof(SOUNDSENTRYW) == 48, "sizeof(SOUNDSENTRYW) == %d (expected 48)", sizeof(SOUNDSENTRYW)); - - /* STICKYKEYS */ - ok(FIELD_OFFSET(STICKYKEYS, cbSize) == 0, - "FIELD_OFFSET(STICKYKEYS, cbSize) == %ld (expected 0)", - FIELD_OFFSET(STICKYKEYS, cbSize)); /* DWORD */ - ok(FIELD_OFFSET(STICKYKEYS, dwFlags) == 4, - "FIELD_OFFSET(STICKYKEYS, dwFlags) == %ld (expected 4)", - FIELD_OFFSET(STICKYKEYS, dwFlags)); /* DWORD */ - ok(sizeof(STICKYKEYS) == 8, "sizeof(STICKYKEYS) == %d (expected 8)", sizeof(STICKYKEYS)); - - /* STYLESTRUCT */ - ok(FIELD_OFFSET(STYLESTRUCT, styleOld) == 0, - "FIELD_OFFSET(STYLESTRUCT, styleOld) == %ld (expected 0)", - FIELD_OFFSET(STYLESTRUCT, styleOld)); /* DWORD */ - ok(FIELD_OFFSET(STYLESTRUCT, styleNew) == 4, - "FIELD_OFFSET(STYLESTRUCT, styleNew) == %ld (expected 4)", - FIELD_OFFSET(STYLESTRUCT, styleNew)); /* DWORD */ - ok(sizeof(STYLESTRUCT) == 8, "sizeof(STYLESTRUCT) == %d (expected 8)", sizeof(STYLESTRUCT)); - - /* TOGGLEKEYS */ - ok(FIELD_OFFSET(TOGGLEKEYS, cbSize) == 0, - "FIELD_OFFSET(TOGGLEKEYS, cbSize) == %ld (expected 0)", - FIELD_OFFSET(TOGGLEKEYS, cbSize)); /* DWORD */ - ok(FIELD_OFFSET(TOGGLEKEYS, dwFlags) == 4, - "FIELD_OFFSET(TOGGLEKEYS, dwFlags) == %ld (expected 4)", - FIELD_OFFSET(TOGGLEKEYS, dwFlags)); /* DWORD */ - ok(sizeof(TOGGLEKEYS) == 8, "sizeof(TOGGLEKEYS) == %d (expected 8)", sizeof(TOGGLEKEYS)); - - /* TPMPARAMS */ - ok(FIELD_OFFSET(TPMPARAMS, cbSize) == 0, - "FIELD_OFFSET(TPMPARAMS, cbSize) == %ld (expected 0)", - FIELD_OFFSET(TPMPARAMS, cbSize)); /* UINT */ - ok(FIELD_OFFSET(TPMPARAMS, rcExclude) == 4, - "FIELD_OFFSET(TPMPARAMS, rcExclude) == %ld (expected 4)", - FIELD_OFFSET(TPMPARAMS, rcExclude)); /* RECT */ - ok(sizeof(TPMPARAMS) == 20, "sizeof(TPMPARAMS) == %d (expected 20)", sizeof(TPMPARAMS)); - - /* TRACKMOUSEEVENT */ - ok(FIELD_OFFSET(TRACKMOUSEEVENT, cbSize) == 0, - "FIELD_OFFSET(TRACKMOUSEEVENT, cbSize) == %ld (expected 0)", - FIELD_OFFSET(TRACKMOUSEEVENT, cbSize)); /* DWORD */ - ok(FIELD_OFFSET(TRACKMOUSEEVENT, dwFlags) == 4, - "FIELD_OFFSET(TRACKMOUSEEVENT, dwFlags) == %ld (expected 4)", - FIELD_OFFSET(TRACKMOUSEEVENT, dwFlags)); /* DWORD */ - ok(FIELD_OFFSET(TRACKMOUSEEVENT, hwndTrack) == 8, - "FIELD_OFFSET(TRACKMOUSEEVENT, hwndTrack) == %ld (expected 8)", - FIELD_OFFSET(TRACKMOUSEEVENT, hwndTrack)); /* HWND */ - ok(FIELD_OFFSET(TRACKMOUSEEVENT, dwHoverTime) == 12, - "FIELD_OFFSET(TRACKMOUSEEVENT, dwHoverTime) == %ld (expected 12)", - FIELD_OFFSET(TRACKMOUSEEVENT, dwHoverTime)); /* DWORD */ - ok(sizeof(TRACKMOUSEEVENT) == 16, "sizeof(TRACKMOUSEEVENT) == %d (expected 16)", sizeof(TRACKMOUSEEVENT)); - - /* WINDOWINFO */ - ok(FIELD_OFFSET(WINDOWINFO, cbSize) == 0, - "FIELD_OFFSET(WINDOWINFO, cbSize) == %ld (expected 0)", - FIELD_OFFSET(WINDOWINFO, cbSize)); /* DWORD */ - ok(FIELD_OFFSET(WINDOWINFO, rcWindow) == 4, - "FIELD_OFFSET(WINDOWINFO, rcWindow) == %ld (expected 4)", - FIELD_OFFSET(WINDOWINFO, rcWindow)); /* RECT */ - ok(FIELD_OFFSET(WINDOWINFO, rcClient) == 20, - "FIELD_OFFSET(WINDOWINFO, rcClient) == %ld (expected 20)", - FIELD_OFFSET(WINDOWINFO, rcClient)); /* RECT */ - ok(FIELD_OFFSET(WINDOWINFO, dwStyle) == 36, - "FIELD_OFFSET(WINDOWINFO, dwStyle) == %ld (expected 36)", - FIELD_OFFSET(WINDOWINFO, dwStyle)); /* DWORD */ - ok(FIELD_OFFSET(WINDOWINFO, dwExStyle) == 40, - "FIELD_OFFSET(WINDOWINFO, dwExStyle) == %ld (expected 40)", - FIELD_OFFSET(WINDOWINFO, dwExStyle)); /* DWORD */ - ok(FIELD_OFFSET(WINDOWINFO, dwWindowStatus) == 44, - "FIELD_OFFSET(WINDOWINFO, dwWindowStatus) == %ld (expected 44)", - FIELD_OFFSET(WINDOWINFO, dwWindowStatus)); /* DWORD */ - ok(FIELD_OFFSET(WINDOWINFO, cxWindowBorders) == 48, - "FIELD_OFFSET(WINDOWINFO, cxWindowBorders) == %ld (expected 48)", - FIELD_OFFSET(WINDOWINFO, cxWindowBorders)); /* UINT */ - ok(FIELD_OFFSET(WINDOWINFO, cyWindowBorders) == 52, - "FIELD_OFFSET(WINDOWINFO, cyWindowBorders) == %ld (expected 52)", - FIELD_OFFSET(WINDOWINFO, cyWindowBorders)); /* UINT */ - ok(FIELD_OFFSET(WINDOWINFO, atomWindowType) == 56, - "FIELD_OFFSET(WINDOWINFO, atomWindowType) == %ld (expected 56)", - FIELD_OFFSET(WINDOWINFO, atomWindowType)); /* ATOM */ - ok(FIELD_OFFSET(WINDOWINFO, wCreatorVersion) == 58, - "FIELD_OFFSET(WINDOWINFO, wCreatorVersion) == %ld (expected 58)", - FIELD_OFFSET(WINDOWINFO, wCreatorVersion)); /* WORD */ - ok(sizeof(WINDOWINFO) == 60, "sizeof(WINDOWINFO) == %d (expected 60)", sizeof(WINDOWINFO)); - - /* WINDOWPLACEMENT */ - ok(FIELD_OFFSET(WINDOWPLACEMENT, length) == 0, - "FIELD_OFFSET(WINDOWPLACEMENT, length) == %ld (expected 0)", - FIELD_OFFSET(WINDOWPLACEMENT, length)); /* UINT */ - ok(FIELD_OFFSET(WINDOWPLACEMENT, flags) == 4, - "FIELD_OFFSET(WINDOWPLACEMENT, flags) == %ld (expected 4)", - FIELD_OFFSET(WINDOWPLACEMENT, flags)); /* UINT */ - ok(FIELD_OFFSET(WINDOWPLACEMENT, showCmd) == 8, - "FIELD_OFFSET(WINDOWPLACEMENT, showCmd) == %ld (expected 8)", - FIELD_OFFSET(WINDOWPLACEMENT, showCmd)); /* UINT */ - ok(FIELD_OFFSET(WINDOWPLACEMENT, ptMinPosition) == 12, - "FIELD_OFFSET(WINDOWPLACEMENT, ptMinPosition) == %ld (expected 12)", - FIELD_OFFSET(WINDOWPLACEMENT, ptMinPosition)); /* POINT */ - ok(FIELD_OFFSET(WINDOWPLACEMENT, ptMaxPosition) == 20, - "FIELD_OFFSET(WINDOWPLACEMENT, ptMaxPosition) == %ld (expected 20)", - FIELD_OFFSET(WINDOWPLACEMENT, ptMaxPosition)); /* POINT */ - ok(FIELD_OFFSET(WINDOWPLACEMENT, rcNormalPosition) == 28, - "FIELD_OFFSET(WINDOWPLACEMENT, rcNormalPosition) == %ld (expected 28)", - FIELD_OFFSET(WINDOWPLACEMENT, rcNormalPosition)); /* RECT */ - ok(sizeof(WINDOWPLACEMENT) == 44, "sizeof(WINDOWPLACEMENT) == %d (expected 44)", sizeof(WINDOWPLACEMENT)); - - /* WINDOWPOS */ - ok(FIELD_OFFSET(WINDOWPOS, hwnd) == 0, - "FIELD_OFFSET(WINDOWPOS, hwnd) == %ld (expected 0)", - FIELD_OFFSET(WINDOWPOS, hwnd)); /* HWND */ - ok(FIELD_OFFSET(WINDOWPOS, hwndInsertAfter) == 4, - "FIELD_OFFSET(WINDOWPOS, hwndInsertAfter) == %ld (expected 4)", - FIELD_OFFSET(WINDOWPOS, hwndInsertAfter)); /* HWND */ - ok(FIELD_OFFSET(WINDOWPOS, x) == 8, - "FIELD_OFFSET(WINDOWPOS, x) == %ld (expected 8)", - FIELD_OFFSET(WINDOWPOS, x)); /* INT */ - ok(FIELD_OFFSET(WINDOWPOS, y) == 12, - "FIELD_OFFSET(WINDOWPOS, y) == %ld (expected 12)", - FIELD_OFFSET(WINDOWPOS, y)); /* INT */ - ok(FIELD_OFFSET(WINDOWPOS, cx) == 16, - "FIELD_OFFSET(WINDOWPOS, cx) == %ld (expected 16)", - FIELD_OFFSET(WINDOWPOS, cx)); /* INT */ - ok(FIELD_OFFSET(WINDOWPOS, cy) == 20, - "FIELD_OFFSET(WINDOWPOS, cy) == %ld (expected 20)", - FIELD_OFFSET(WINDOWPOS, cy)); /* INT */ - ok(FIELD_OFFSET(WINDOWPOS, flags) == 24, - "FIELD_OFFSET(WINDOWPOS, flags) == %ld (expected 24)", - FIELD_OFFSET(WINDOWPOS, flags)); /* UINT */ - ok(sizeof(WINDOWPOS) == 28, "sizeof(WINDOWPOS) == %d (expected 28)", sizeof(WINDOWPOS)); - - /* WNDCLASSA */ - ok(FIELD_OFFSET(WNDCLASSA, style) == 0, - "FIELD_OFFSET(WNDCLASSA, style) == %ld (expected 0)", - FIELD_OFFSET(WNDCLASSA, style)); /* UINT */ - ok(FIELD_OFFSET(WNDCLASSA, lpfnWndProc) == 4, - "FIELD_OFFSET(WNDCLASSA, lpfnWndProc) == %ld (expected 4)", - FIELD_OFFSET(WNDCLASSA, lpfnWndProc)); /* WNDPROC */ - ok(FIELD_OFFSET(WNDCLASSA, cbClsExtra) == 8, - "FIELD_OFFSET(WNDCLASSA, cbClsExtra) == %ld (expected 8)", - FIELD_OFFSET(WNDCLASSA, cbClsExtra)); /* INT */ - ok(FIELD_OFFSET(WNDCLASSA, cbWndExtra) == 12, - "FIELD_OFFSET(WNDCLASSA, cbWndExtra) == %ld (expected 12)", - FIELD_OFFSET(WNDCLASSA, cbWndExtra)); /* INT */ - ok(FIELD_OFFSET(WNDCLASSA, hInstance) == 16, - "FIELD_OFFSET(WNDCLASSA, hInstance) == %ld (expected 16)", - FIELD_OFFSET(WNDCLASSA, hInstance)); /* HINSTANCE */ - ok(FIELD_OFFSET(WNDCLASSA, hIcon) == 20, - "FIELD_OFFSET(WNDCLASSA, hIcon) == %ld (expected 20)", - FIELD_OFFSET(WNDCLASSA, hIcon)); /* HICON */ - ok(FIELD_OFFSET(WNDCLASSA, hCursor) == 24, - "FIELD_OFFSET(WNDCLASSA, hCursor) == %ld (expected 24)", - FIELD_OFFSET(WNDCLASSA, hCursor)); /* HCURSOR */ - ok(FIELD_OFFSET(WNDCLASSA, hbrBackground) == 28, - "FIELD_OFFSET(WNDCLASSA, hbrBackground) == %ld (expected 28)", - FIELD_OFFSET(WNDCLASSA, hbrBackground)); /* HBRUSH */ - ok(FIELD_OFFSET(WNDCLASSA, lpszMenuName) == 32, - "FIELD_OFFSET(WNDCLASSA, lpszMenuName) == %ld (expected 32)", - FIELD_OFFSET(WNDCLASSA, lpszMenuName)); /* LPCSTR */ - ok(FIELD_OFFSET(WNDCLASSA, lpszClassName) == 36, - "FIELD_OFFSET(WNDCLASSA, lpszClassName) == %ld (expected 36)", - FIELD_OFFSET(WNDCLASSA, lpszClassName)); /* LPCSTR */ - ok(sizeof(WNDCLASSA) == 40, "sizeof(WNDCLASSA) == %d (expected 40)", sizeof(WNDCLASSA)); - - /* WNDCLASSEXA */ - ok(FIELD_OFFSET(WNDCLASSEXA, cbSize) == 0, - "FIELD_OFFSET(WNDCLASSEXA, cbSize) == %ld (expected 0)", - FIELD_OFFSET(WNDCLASSEXA, cbSize)); /* UINT */ - ok(FIELD_OFFSET(WNDCLASSEXA, style) == 4, - "FIELD_OFFSET(WNDCLASSEXA, style) == %ld (expected 4)", - FIELD_OFFSET(WNDCLASSEXA, style)); /* UINT */ - ok(FIELD_OFFSET(WNDCLASSEXA, lpfnWndProc) == 8, - "FIELD_OFFSET(WNDCLASSEXA, lpfnWndProc) == %ld (expected 8)", - FIELD_OFFSET(WNDCLASSEXA, lpfnWndProc)); /* WNDPROC */ - ok(FIELD_OFFSET(WNDCLASSEXA, cbClsExtra) == 12, - "FIELD_OFFSET(WNDCLASSEXA, cbClsExtra) == %ld (expected 12)", - FIELD_OFFSET(WNDCLASSEXA, cbClsExtra)); /* INT */ - ok(FIELD_OFFSET(WNDCLASSEXA, cbWndExtra) == 16, - "FIELD_OFFSET(WNDCLASSEXA, cbWndExtra) == %ld (expected 16)", - FIELD_OFFSET(WNDCLASSEXA, cbWndExtra)); /* INT */ - ok(FIELD_OFFSET(WNDCLASSEXA, hInstance) == 20, - "FIELD_OFFSET(WNDCLASSEXA, hInstance) == %ld (expected 20)", - FIELD_OFFSET(WNDCLASSEXA, hInstance)); /* HINSTANCE */ - ok(FIELD_OFFSET(WNDCLASSEXA, hIcon) == 24, - "FIELD_OFFSET(WNDCLASSEXA, hIcon) == %ld (expected 24)", - FIELD_OFFSET(WNDCLASSEXA, hIcon)); /* HICON */ - ok(FIELD_OFFSET(WNDCLASSEXA, hCursor) == 28, - "FIELD_OFFSET(WNDCLASSEXA, hCursor) == %ld (expected 28)", - FIELD_OFFSET(WNDCLASSEXA, hCursor)); /* HCURSOR */ - ok(FIELD_OFFSET(WNDCLASSEXA, hbrBackground) == 32, - "FIELD_OFFSET(WNDCLASSEXA, hbrBackground) == %ld (expected 32)", - FIELD_OFFSET(WNDCLASSEXA, hbrBackground)); /* HBRUSH */ - ok(FIELD_OFFSET(WNDCLASSEXA, lpszMenuName) == 36, - "FIELD_OFFSET(WNDCLASSEXA, lpszMenuName) == %ld (expected 36)", - FIELD_OFFSET(WNDCLASSEXA, lpszMenuName)); /* LPCSTR */ - ok(FIELD_OFFSET(WNDCLASSEXA, lpszClassName) == 40, - "FIELD_OFFSET(WNDCLASSEXA, lpszClassName) == %ld (expected 40)", - FIELD_OFFSET(WNDCLASSEXA, lpszClassName)); /* LPCSTR */ - ok(FIELD_OFFSET(WNDCLASSEXA, hIconSm) == 44, - "FIELD_OFFSET(WNDCLASSEXA, hIconSm) == %ld (expected 44)", - FIELD_OFFSET(WNDCLASSEXA, hIconSm)); /* HICON */ - ok(sizeof(WNDCLASSEXA) == 48, "sizeof(WNDCLASSEXA) == %d (expected 48)", sizeof(WNDCLASSEXA)); - - /* WNDCLASSEXW */ - ok(FIELD_OFFSET(WNDCLASSEXW, cbSize) == 0, - "FIELD_OFFSET(WNDCLASSEXW, cbSize) == %ld (expected 0)", - FIELD_OFFSET(WNDCLASSEXW, cbSize)); /* UINT */ - ok(FIELD_OFFSET(WNDCLASSEXW, style) == 4, - "FIELD_OFFSET(WNDCLASSEXW, style) == %ld (expected 4)", - FIELD_OFFSET(WNDCLASSEXW, style)); /* UINT */ - ok(FIELD_OFFSET(WNDCLASSEXW, lpfnWndProc) == 8, - "FIELD_OFFSET(WNDCLASSEXW, lpfnWndProc) == %ld (expected 8)", - FIELD_OFFSET(WNDCLASSEXW, lpfnWndProc)); /* WNDPROC */ - ok(FIELD_OFFSET(WNDCLASSEXW, cbClsExtra) == 12, - "FIELD_OFFSET(WNDCLASSEXW, cbClsExtra) == %ld (expected 12)", - FIELD_OFFSET(WNDCLASSEXW, cbClsExtra)); /* INT */ - ok(FIELD_OFFSET(WNDCLASSEXW, cbWndExtra) == 16, - "FIELD_OFFSET(WNDCLASSEXW, cbWndExtra) == %ld (expected 16)", - FIELD_OFFSET(WNDCLASSEXW, cbWndExtra)); /* INT */ - ok(FIELD_OFFSET(WNDCLASSEXW, hInstance) == 20, - "FIELD_OFFSET(WNDCLASSEXW, hInstance) == %ld (expected 20)", - FIELD_OFFSET(WNDCLASSEXW, hInstance)); /* HINSTANCE */ - ok(FIELD_OFFSET(WNDCLASSEXW, hIcon) == 24, - "FIELD_OFFSET(WNDCLASSEXW, hIcon) == %ld (expected 24)", - FIELD_OFFSET(WNDCLASSEXW, hIcon)); /* HICON */ - ok(FIELD_OFFSET(WNDCLASSEXW, hCursor) == 28, - "FIELD_OFFSET(WNDCLASSEXW, hCursor) == %ld (expected 28)", - FIELD_OFFSET(WNDCLASSEXW, hCursor)); /* HCURSOR */ - ok(FIELD_OFFSET(WNDCLASSEXW, hbrBackground) == 32, - "FIELD_OFFSET(WNDCLASSEXW, hbrBackground) == %ld (expected 32)", - FIELD_OFFSET(WNDCLASSEXW, hbrBackground)); /* HBRUSH */ - ok(FIELD_OFFSET(WNDCLASSEXW, lpszMenuName) == 36, - "FIELD_OFFSET(WNDCLASSEXW, lpszMenuName) == %ld (expected 36)", - FIELD_OFFSET(WNDCLASSEXW, lpszMenuName)); /* LPCWSTR */ - ok(FIELD_OFFSET(WNDCLASSEXW, lpszClassName) == 40, - "FIELD_OFFSET(WNDCLASSEXW, lpszClassName) == %ld (expected 40)", - FIELD_OFFSET(WNDCLASSEXW, lpszClassName)); /* LPCWSTR */ - ok(FIELD_OFFSET(WNDCLASSEXW, hIconSm) == 44, - "FIELD_OFFSET(WNDCLASSEXW, hIconSm) == %ld (expected 44)", - FIELD_OFFSET(WNDCLASSEXW, hIconSm)); /* HICON */ - ok(sizeof(WNDCLASSEXW) == 48, "sizeof(WNDCLASSEXW) == %d (expected 48)", sizeof(WNDCLASSEXW)); - - /* WNDCLASSW */ - ok(FIELD_OFFSET(WNDCLASSW, style) == 0, - "FIELD_OFFSET(WNDCLASSW, style) == %ld (expected 0)", - FIELD_OFFSET(WNDCLASSW, style)); /* UINT */ - ok(FIELD_OFFSET(WNDCLASSW, lpfnWndProc) == 4, - "FIELD_OFFSET(WNDCLASSW, lpfnWndProc) == %ld (expected 4)", - FIELD_OFFSET(WNDCLASSW, lpfnWndProc)); /* WNDPROC */ - ok(FIELD_OFFSET(WNDCLASSW, cbClsExtra) == 8, - "FIELD_OFFSET(WNDCLASSW, cbClsExtra) == %ld (expected 8)", - FIELD_OFFSET(WNDCLASSW, cbClsExtra)); /* INT */ - ok(FIELD_OFFSET(WNDCLASSW, cbWndExtra) == 12, - "FIELD_OFFSET(WNDCLASSW, cbWndExtra) == %ld (expected 12)", - FIELD_OFFSET(WNDCLASSW, cbWndExtra)); /* INT */ - ok(FIELD_OFFSET(WNDCLASSW, hInstance) == 16, - "FIELD_OFFSET(WNDCLASSW, hInstance) == %ld (expected 16)", - FIELD_OFFSET(WNDCLASSW, hInstance)); /* HINSTANCE */ - ok(FIELD_OFFSET(WNDCLASSW, hIcon) == 20, - "FIELD_OFFSET(WNDCLASSW, hIcon) == %ld (expected 20)", - FIELD_OFFSET(WNDCLASSW, hIcon)); /* HICON */ - ok(FIELD_OFFSET(WNDCLASSW, hCursor) == 24, - "FIELD_OFFSET(WNDCLASSW, hCursor) == %ld (expected 24)", - FIELD_OFFSET(WNDCLASSW, hCursor)); /* HCURSOR */ - ok(FIELD_OFFSET(WNDCLASSW, hbrBackground) == 28, - "FIELD_OFFSET(WNDCLASSW, hbrBackground) == %ld (expected 28)", - FIELD_OFFSET(WNDCLASSW, hbrBackground)); /* HBRUSH */ - ok(FIELD_OFFSET(WNDCLASSW, lpszMenuName) == 32, - "FIELD_OFFSET(WNDCLASSW, lpszMenuName) == %ld (expected 32)", - FIELD_OFFSET(WNDCLASSW, lpszMenuName)); /* LPCWSTR */ - ok(FIELD_OFFSET(WNDCLASSW, lpszClassName) == 36, - "FIELD_OFFSET(WNDCLASSW, lpszClassName) == %ld (expected 36)", - FIELD_OFFSET(WNDCLASSW, lpszClassName)); /* LPCWSTR */ - ok(sizeof(WNDCLASSW) == 40, "sizeof(WNDCLASSW) == %d (expected 40)", sizeof(WNDCLASSW)); + /* ACCEL (pack 4) */ + TEST_TYPE(ACCEL, 6, 2); + TEST_FIELD(ACCEL, BYTE, fVirt, 0, 1, 1); + TEST_FIELD(ACCEL, BYTE, pad0, 1, 1, 1); + TEST_FIELD(ACCEL, WORD, key, 2, 2, 2); + TEST_FIELD(ACCEL, WORD, cmd, 4, 2, 2); + + /* ACCESSTIMEOUT (pack 4) */ + TEST_TYPE(ACCESSTIMEOUT, 12, 4); + TEST_FIELD(ACCESSTIMEOUT, UINT, cbSize, 0, 4, 4); + TEST_FIELD(ACCESSTIMEOUT, DWORD, dwFlags, 4, 4, 4); + TEST_FIELD(ACCESSTIMEOUT, DWORD, iTimeOutMSec, 8, 4, 4); + + /* ANIMATIONINFO (pack 4) */ + TEST_TYPE(ANIMATIONINFO, 8, 4); + TEST_FIELD(ANIMATIONINFO, UINT, cbSize, 0, 4, 4); + TEST_FIELD(ANIMATIONINFO, INT, iMinAnimate, 4, 4, 4); + + /* CBTACTIVATESTRUCT (pack 4) */ + TEST_TYPE(CBTACTIVATESTRUCT, 8, 4); + TEST_FIELD(CBTACTIVATESTRUCT, BOOL, fMouse, 0, 4, 4); + TEST_FIELD(CBTACTIVATESTRUCT, HWND, hWndActive, 4, 4, 4); + + /* CBT_CREATEWNDA (pack 4) */ + TEST_TYPE(CBT_CREATEWNDA, 8, 4); + TEST_FIELD(CBT_CREATEWNDA, CREATESTRUCTA *, lpcs, 0, 4, 4); + TEST_FIELD(CBT_CREATEWNDA, HWND, hwndInsertAfter, 4, 4, 4); + + /* CBT_CREATEWNDW (pack 4) */ + TEST_TYPE(CBT_CREATEWNDW, 8, 4); + TEST_FIELD(CBT_CREATEWNDW, CREATESTRUCTW *, lpcs, 0, 4, 4); + TEST_FIELD(CBT_CREATEWNDW, HWND, hwndInsertAfter, 4, 4, 4); + + /* CLIENTCREATESTRUCT (pack 4) */ + TEST_TYPE(CLIENTCREATESTRUCT, 8, 4); + TEST_FIELD(CLIENTCREATESTRUCT, HMENU, hWindowMenu, 0, 4, 4); + TEST_FIELD(CLIENTCREATESTRUCT, UINT, idFirstChild, 4, 4, 4); + + /* COMPAREITEMSTRUCT (pack 4) */ + TEST_TYPE(COMPAREITEMSTRUCT, 32, 4); + TEST_FIELD(COMPAREITEMSTRUCT, UINT, CtlType, 0, 4, 4); + TEST_FIELD(COMPAREITEMSTRUCT, UINT, CtlID, 4, 4, 4); + TEST_FIELD(COMPAREITEMSTRUCT, HWND, hwndItem, 8, 4, 4); + TEST_FIELD(COMPAREITEMSTRUCT, UINT, itemID1, 12, 4, 4); + TEST_FIELD(COMPAREITEMSTRUCT, DWORD, itemData1, 16, 4, 4); + TEST_FIELD(COMPAREITEMSTRUCT, UINT, itemID2, 20, 4, 4); + TEST_FIELD(COMPAREITEMSTRUCT, DWORD, itemData2, 24, 4, 4); + TEST_FIELD(COMPAREITEMSTRUCT, DWORD, dwLocaleId, 28, 4, 4); + + /* COPYDATASTRUCT (pack 4) */ + TEST_TYPE(COPYDATASTRUCT, 12, 4); + TEST_FIELD(COPYDATASTRUCT, DWORD, dwData, 0, 4, 4); + TEST_FIELD(COPYDATASTRUCT, DWORD, cbData, 4, 4, 4); + TEST_FIELD(COPYDATASTRUCT, LPVOID, lpData, 8, 4, 4); + + /* CREATESTRUCTA (pack 4) */ + TEST_TYPE(CREATESTRUCTA, 48, 4); + TEST_FIELD(CREATESTRUCTA, LPVOID, lpCreateParams, 0, 4, 4); + TEST_FIELD(CREATESTRUCTA, HINSTANCE, hInstance, 4, 4, 4); + TEST_FIELD(CREATESTRUCTA, HMENU, hMenu, 8, 4, 4); + TEST_FIELD(CREATESTRUCTA, HWND, hwndParent, 12, 4, 4); + TEST_FIELD(CREATESTRUCTA, INT, cy, 16, 4, 4); + TEST_FIELD(CREATESTRUCTA, INT, cx, 20, 4, 4); + TEST_FIELD(CREATESTRUCTA, INT, y, 24, 4, 4); + TEST_FIELD(CREATESTRUCTA, INT, x, 28, 4, 4); + TEST_FIELD(CREATESTRUCTA, LONG, style, 32, 4, 4); + TEST_FIELD(CREATESTRUCTA, LPCSTR, lpszName, 36, 4, 4); + TEST_FIELD(CREATESTRUCTA, LPCSTR, lpszClass, 40, 4, 4); + TEST_FIELD(CREATESTRUCTA, DWORD, dwExStyle, 44, 4, 4); + + /* CREATESTRUCTW (pack 4) */ + TEST_TYPE(CREATESTRUCTW, 48, 4); + TEST_FIELD(CREATESTRUCTW, LPVOID, lpCreateParams, 0, 4, 4); + TEST_FIELD(CREATESTRUCTW, HINSTANCE, hInstance, 4, 4, 4); + TEST_FIELD(CREATESTRUCTW, HMENU, hMenu, 8, 4, 4); + TEST_FIELD(CREATESTRUCTW, HWND, hwndParent, 12, 4, 4); + TEST_FIELD(CREATESTRUCTW, INT, cy, 16, 4, 4); + TEST_FIELD(CREATESTRUCTW, INT, cx, 20, 4, 4); + TEST_FIELD(CREATESTRUCTW, INT, y, 24, 4, 4); + TEST_FIELD(CREATESTRUCTW, INT, x, 28, 4, 4); + TEST_FIELD(CREATESTRUCTW, LONG, style, 32, 4, 4); + TEST_FIELD(CREATESTRUCTW, LPCWSTR, lpszName, 36, 4, 4); + TEST_FIELD(CREATESTRUCTW, LPCWSTR, lpszClass, 40, 4, 4); + TEST_FIELD(CREATESTRUCTW, DWORD, dwExStyle, 44, 4, 4); + + /* CURSORINFO (pack 4) */ + TEST_TYPE(CURSORINFO, 20, 4); + TEST_FIELD(CURSORINFO, DWORD, cbSize, 0, 4, 4); + TEST_FIELD(CURSORINFO, DWORD, flags, 4, 4, 4); + TEST_FIELD(CURSORINFO, HCURSOR, hCursor, 8, 4, 4); + TEST_FIELD(CURSORINFO, POINT, ptScreenPos, 12, 8, 4); + + /* CWPRETSTRUCT (pack 4) */ + TEST_TYPE(CWPRETSTRUCT, 20, 4); + TEST_FIELD(CWPRETSTRUCT, LRESULT, lResult, 0, 4, 4); + TEST_FIELD(CWPRETSTRUCT, LPARAM, lParam, 4, 4, 4); + TEST_FIELD(CWPRETSTRUCT, WPARAM, wParam, 8, 4, 4); + TEST_FIELD(CWPRETSTRUCT, DWORD, message, 12, 4, 4); + TEST_FIELD(CWPRETSTRUCT, HWND, hwnd, 16, 4, 4); + + /* CWPSTRUCT (pack 4) */ + TEST_TYPE(CWPSTRUCT, 16, 4); + TEST_FIELD(CWPSTRUCT, LPARAM, lParam, 0, 4, 4); + TEST_FIELD(CWPSTRUCT, WPARAM, wParam, 4, 4, 4); + TEST_FIELD(CWPSTRUCT, UINT, message, 8, 4, 4); + TEST_FIELD(CWPSTRUCT, HWND, hwnd, 12, 4, 4); + + /* DEBUGHOOKINFO (pack 4) */ + TEST_TYPE(DEBUGHOOKINFO, 20, 4); + TEST_FIELD(DEBUGHOOKINFO, DWORD, idThread, 0, 4, 4); + TEST_FIELD(DEBUGHOOKINFO, DWORD, idThreadInstaller, 4, 4, 4); + TEST_FIELD(DEBUGHOOKINFO, LPARAM, lParam, 8, 4, 4); + TEST_FIELD(DEBUGHOOKINFO, WPARAM, wParam, 12, 4, 4); + TEST_FIELD(DEBUGHOOKINFO, INT, code, 16, 4, 4); + + /* DELETEITEMSTRUCT (pack 4) */ + TEST_TYPE(DELETEITEMSTRUCT, 20, 4); + TEST_FIELD(DELETEITEMSTRUCT, UINT, CtlType, 0, 4, 4); + TEST_FIELD(DELETEITEMSTRUCT, UINT, CtlID, 4, 4, 4); + TEST_FIELD(DELETEITEMSTRUCT, UINT, itemID, 8, 4, 4); + TEST_FIELD(DELETEITEMSTRUCT, HWND, hwndItem, 12, 4, 4); + TEST_FIELD(DELETEITEMSTRUCT, DWORD, itemData, 16, 4, 4); + + /* DLGITEMTEMPLATE (pack 2) */ + TEST_TYPE(DLGITEMTEMPLATE, 18, 2); + TEST_FIELD(DLGITEMTEMPLATE, DWORD, style, 0, 4, 2); + TEST_FIELD(DLGITEMTEMPLATE, DWORD, dwExtendedStyle, 4, 4, 2); + TEST_FIELD(DLGITEMTEMPLATE, short, x, 8, 2, 2); + TEST_FIELD(DLGITEMTEMPLATE, short, y, 10, 2, 2); + TEST_FIELD(DLGITEMTEMPLATE, short, cx, 12, 2, 2); + TEST_FIELD(DLGITEMTEMPLATE, short, cy, 14, 2, 2); + TEST_FIELD(DLGITEMTEMPLATE, WORD, id, 16, 2, 2); + + /* DLGTEMPLATE (pack 2) */ + TEST_TYPE(DLGTEMPLATE, 18, 2); + TEST_FIELD(DLGTEMPLATE, DWORD, style, 0, 4, 2); + TEST_FIELD(DLGTEMPLATE, DWORD, dwExtendedStyle, 4, 4, 2); + TEST_FIELD(DLGTEMPLATE, WORD, cdit, 8, 2, 2); + TEST_FIELD(DLGTEMPLATE, short, x, 10, 2, 2); + TEST_FIELD(DLGTEMPLATE, short, y, 12, 2, 2); + TEST_FIELD(DLGTEMPLATE, short, cx, 14, 2, 2); + TEST_FIELD(DLGTEMPLATE, short, cy, 16, 2, 2); + + /* DRAWTEXTPARAMS (pack 4) */ + TEST_TYPE(DRAWTEXTPARAMS, 20, 4); + TEST_FIELD(DRAWTEXTPARAMS, UINT, cbSize, 0, 4, 4); + TEST_FIELD(DRAWTEXTPARAMS, INT, iTabLength, 4, 4, 4); + TEST_FIELD(DRAWTEXTPARAMS, INT, iLeftMargin, 8, 4, 4); + TEST_FIELD(DRAWTEXTPARAMS, INT, iRightMargin, 12, 4, 4); + TEST_FIELD(DRAWTEXTPARAMS, UINT, uiLengthDrawn, 16, 4, 4); + + /* EVENTMSG (pack 4) */ + TEST_TYPE(EVENTMSG, 20, 4); + TEST_FIELD(EVENTMSG, UINT, message, 0, 4, 4); + TEST_FIELD(EVENTMSG, UINT, paramL, 4, 4, 4); + TEST_FIELD(EVENTMSG, UINT, paramH, 8, 4, 4); + TEST_FIELD(EVENTMSG, DWORD, time, 12, 4, 4); + TEST_FIELD(EVENTMSG, HWND, hwnd, 16, 4, 4); + + /* FILTERKEYS (pack 4) */ + TEST_TYPE(FILTERKEYS, 24, 4); + TEST_FIELD(FILTERKEYS, UINT, cbSize, 0, 4, 4); + TEST_FIELD(FILTERKEYS, DWORD, dwFlags, 4, 4, 4); + TEST_FIELD(FILTERKEYS, DWORD, iWaitMSec, 8, 4, 4); + TEST_FIELD(FILTERKEYS, DWORD, iDelayMSec, 12, 4, 4); + TEST_FIELD(FILTERKEYS, DWORD, iRepeatMSec, 16, 4, 4); + TEST_FIELD(FILTERKEYS, DWORD, iBounceMSec, 20, 4, 4); + + /* HARDWAREHOOKSTRUCT (pack 4) */ + TEST_TYPE(HARDWAREHOOKSTRUCT, 16, 4); + TEST_FIELD(HARDWAREHOOKSTRUCT, HWND, hWnd, 0, 4, 4); + TEST_FIELD(HARDWAREHOOKSTRUCT, UINT, wMessage, 4, 4, 4); + TEST_FIELD(HARDWAREHOOKSTRUCT, WPARAM, wParam, 8, 4, 4); + TEST_FIELD(HARDWAREHOOKSTRUCT, LPARAM, lParam, 12, 4, 4); + + /* HARDWAREINPUT (pack 4) */ + TEST_TYPE(HARDWAREINPUT, 8, 4); + TEST_FIELD(HARDWAREINPUT, DWORD, uMsg, 0, 4, 4); + TEST_FIELD(HARDWAREINPUT, WORD, wParamL, 4, 2, 2); + TEST_FIELD(HARDWAREINPUT, WORD, wParamH, 6, 2, 2); + + /* HELPINFO (pack 4) */ + TEST_TYPE(HELPINFO, 28, 4); + TEST_FIELD(HELPINFO, UINT, cbSize, 0, 4, 4); + TEST_FIELD(HELPINFO, INT, iContextType, 4, 4, 4); + TEST_FIELD(HELPINFO, INT, iCtrlId, 8, 4, 4); + TEST_FIELD(HELPINFO, HANDLE, hItemHandle, 12, 4, 4); + TEST_FIELD(HELPINFO, DWORD, dwContextId, 16, 4, 4); + TEST_FIELD(HELPINFO, POINT, MousePos, 20, 8, 4); + + /* HELPWININFOA (pack 4) */ + TEST_TYPE(HELPWININFOA, 28, 4); + TEST_FIELD(HELPWININFOA, int, wStructSize, 0, 4, 4); + TEST_FIELD(HELPWININFOA, int, x, 4, 4, 4); + TEST_FIELD(HELPWININFOA, int, y, 8, 4, 4); + TEST_FIELD(HELPWININFOA, int, dx, 12, 4, 4); + TEST_FIELD(HELPWININFOA, int, dy, 16, 4, 4); + TEST_FIELD(HELPWININFOA, int, wMax, 20, 4, 4); + TEST_FIELD(HELPWININFOA, CHAR[2], rgchMember, 24, 2, 1); + + /* HELPWININFOW (pack 4) */ + TEST_TYPE(HELPWININFOW, 28, 4); + TEST_FIELD(HELPWININFOW, int, wStructSize, 0, 4, 4); + TEST_FIELD(HELPWININFOW, int, x, 4, 4, 4); + TEST_FIELD(HELPWININFOW, int, y, 8, 4, 4); + TEST_FIELD(HELPWININFOW, int, dx, 12, 4, 4); + TEST_FIELD(HELPWININFOW, int, dy, 16, 4, 4); + TEST_FIELD(HELPWININFOW, int, wMax, 20, 4, 4); + TEST_FIELD(HELPWININFOW, WCHAR[2], rgchMember, 24, 4, 2); + + /* HIGHCONTRASTA (pack 4) */ + TEST_TYPE(HIGHCONTRASTA, 12, 4); + TEST_FIELD(HIGHCONTRASTA, UINT, cbSize, 0, 4, 4); + TEST_FIELD(HIGHCONTRASTA, DWORD, dwFlags, 4, 4, 4); + TEST_FIELD(HIGHCONTRASTA, LPSTR, lpszDefaultScheme, 8, 4, 4); + + /* HIGHCONTRASTW (pack 4) */ + TEST_TYPE(HIGHCONTRASTW, 12, 4); + TEST_FIELD(HIGHCONTRASTW, UINT, cbSize, 0, 4, 4); + TEST_FIELD(HIGHCONTRASTW, DWORD, dwFlags, 4, 4, 4); + TEST_FIELD(HIGHCONTRASTW, LPWSTR, lpszDefaultScheme, 8, 4, 4); + + /* ICONINFO (pack 4) */ + TEST_TYPE(ICONINFO, 20, 4); + TEST_FIELD(ICONINFO, BOOL, fIcon, 0, 4, 4); + TEST_FIELD(ICONINFO, DWORD, xHotspot, 4, 4, 4); + TEST_FIELD(ICONINFO, DWORD, yHotspot, 8, 4, 4); + TEST_FIELD(ICONINFO, HBITMAP, hbmMask, 12, 4, 4); + TEST_FIELD(ICONINFO, HBITMAP, hbmColor, 16, 4, 4); + + /* ICONMETRICSA (pack 4) */ + TEST_TYPE(ICONMETRICSA, 76, 4); + TEST_FIELD(ICONMETRICSA, UINT, cbSize, 0, 4, 4); + TEST_FIELD(ICONMETRICSA, int, iHorzSpacing, 4, 4, 4); + TEST_FIELD(ICONMETRICSA, int, iVertSpacing, 8, 4, 4); + TEST_FIELD(ICONMETRICSA, int, iTitleWrap, 12, 4, 4); + TEST_FIELD(ICONMETRICSA, LOGFONTA, lfFont, 16, 60, 4); + + /* ICONMETRICSW (pack 4) */ + TEST_TYPE(ICONMETRICSW, 108, 4); + TEST_FIELD(ICONMETRICSW, UINT, cbSize, 0, 4, 4); + TEST_FIELD(ICONMETRICSW, int, iHorzSpacing, 4, 4, 4); + TEST_FIELD(ICONMETRICSW, int, iVertSpacing, 8, 4, 4); + TEST_FIELD(ICONMETRICSW, int, iTitleWrap, 12, 4, 4); + TEST_FIELD(ICONMETRICSW, LOGFONTW, lfFont, 16, 92, 4); + + /* INPUT (pack 4) */ + TEST_FIELD(INPUT, DWORD, type, 0, 4, 4); + + /* KBDLLHOOKSTRUCT (pack 4) */ + TEST_TYPE(KBDLLHOOKSTRUCT, 20, 4); + TEST_FIELD(KBDLLHOOKSTRUCT, DWORD, vkCode, 0, 4, 4); + TEST_FIELD(KBDLLHOOKSTRUCT, DWORD, scanCode, 4, 4, 4); + TEST_FIELD(KBDLLHOOKSTRUCT, DWORD, flags, 8, 4, 4); + TEST_FIELD(KBDLLHOOKSTRUCT, DWORD, time, 12, 4, 4); + TEST_FIELD(KBDLLHOOKSTRUCT, ULONG_PTR, dwExtraInfo, 16, 4, 4); + + /* KEYBDINPUT (pack 4) */ + TEST_TYPE(KEYBDINPUT, 16, 4); + TEST_FIELD(KEYBDINPUT, WORD, wVk, 0, 2, 2); + TEST_FIELD(KEYBDINPUT, WORD, wScan, 2, 2, 2); + TEST_FIELD(KEYBDINPUT, DWORD, dwFlags, 4, 4, 4); + TEST_FIELD(KEYBDINPUT, DWORD, time, 8, 4, 4); + TEST_FIELD(KEYBDINPUT, ULONG_PTR, dwExtraInfo, 12, 4, 4); + + /* MDICREATESTRUCTA (pack 4) */ + TEST_TYPE(MDICREATESTRUCTA, 36, 4); + TEST_FIELD(MDICREATESTRUCTA, LPCSTR, szClass, 0, 4, 4); + TEST_FIELD(MDICREATESTRUCTA, LPCSTR, szTitle, 4, 4, 4); + TEST_FIELD(MDICREATESTRUCTA, HINSTANCE, hOwner, 8, 4, 4); + TEST_FIELD(MDICREATESTRUCTA, INT, x, 12, 4, 4); + TEST_FIELD(MDICREATESTRUCTA, INT, y, 16, 4, 4); + TEST_FIELD(MDICREATESTRUCTA, INT, cx, 20, 4, 4); + TEST_FIELD(MDICREATESTRUCTA, INT, cy, 24, 4, 4); + TEST_FIELD(MDICREATESTRUCTA, DWORD, style, 28, 4, 4); + TEST_FIELD(MDICREATESTRUCTA, LPARAM, lParam, 32, 4, 4); + + /* MDICREATESTRUCTW (pack 4) */ + TEST_TYPE(MDICREATESTRUCTW, 36, 4); + TEST_FIELD(MDICREATESTRUCTW, LPCWSTR, szClass, 0, 4, 4); + TEST_FIELD(MDICREATESTRUCTW, LPCWSTR, szTitle, 4, 4, 4); + TEST_FIELD(MDICREATESTRUCTW, HINSTANCE, hOwner, 8, 4, 4); + TEST_FIELD(MDICREATESTRUCTW, INT, x, 12, 4, 4); + TEST_FIELD(MDICREATESTRUCTW, INT, y, 16, 4, 4); + TEST_FIELD(MDICREATESTRUCTW, INT, cx, 20, 4, 4); + TEST_FIELD(MDICREATESTRUCTW, INT, cy, 24, 4, 4); + TEST_FIELD(MDICREATESTRUCTW, DWORD, style, 28, 4, 4); + TEST_FIELD(MDICREATESTRUCTW, LPARAM, lParam, 32, 4, 4); + + /* MDINEXTMENU (pack 4) */ + TEST_TYPE(MDINEXTMENU, 12, 4); + TEST_FIELD(MDINEXTMENU, HMENU, hmenuIn, 0, 4, 4); + TEST_FIELD(MDINEXTMENU, HMENU, hmenuNext, 4, 4, 4); + TEST_FIELD(MDINEXTMENU, HWND, hwndNext, 8, 4, 4); + + /* MEASUREITEMSTRUCT (pack 4) */ + TEST_TYPE(MEASUREITEMSTRUCT, 24, 4); + TEST_FIELD(MEASUREITEMSTRUCT, UINT, CtlType, 0, 4, 4); + TEST_FIELD(MEASUREITEMSTRUCT, UINT, CtlID, 4, 4, 4); + TEST_FIELD(MEASUREITEMSTRUCT, UINT, itemID, 8, 4, 4); + TEST_FIELD(MEASUREITEMSTRUCT, UINT, itemWidth, 12, 4, 4); + TEST_FIELD(MEASUREITEMSTRUCT, UINT, itemHeight, 16, 4, 4); + TEST_FIELD(MEASUREITEMSTRUCT, DWORD, itemData, 20, 4, 4); + + /* MENUINFO (pack 4) */ + TEST_TYPE(MENUINFO, 28, 4); + TEST_FIELD(MENUINFO, DWORD, cbSize, 0, 4, 4); + TEST_FIELD(MENUINFO, DWORD, fMask, 4, 4, 4); + TEST_FIELD(MENUINFO, DWORD, dwStyle, 8, 4, 4); + TEST_FIELD(MENUINFO, UINT, cyMax, 12, 4, 4); + TEST_FIELD(MENUINFO, HBRUSH, hbrBack, 16, 4, 4); + TEST_FIELD(MENUINFO, DWORD, dwContextHelpID, 20, 4, 4); + TEST_FIELD(MENUINFO, DWORD, dwMenuData, 24, 4, 4); + + /* MENUITEMINFOA (pack 4) */ + TEST_TYPE(MENUITEMINFOA, 48, 4); + TEST_FIELD(MENUITEMINFOA, UINT, cbSize, 0, 4, 4); + TEST_FIELD(MENUITEMINFOA, UINT, fMask, 4, 4, 4); + TEST_FIELD(MENUITEMINFOA, UINT, fType, 8, 4, 4); + TEST_FIELD(MENUITEMINFOA, UINT, fState, 12, 4, 4); + TEST_FIELD(MENUITEMINFOA, UINT, wID, 16, 4, 4); + TEST_FIELD(MENUITEMINFOA, HMENU, hSubMenu, 20, 4, 4); + TEST_FIELD(MENUITEMINFOA, HBITMAP, hbmpChecked, 24, 4, 4); + TEST_FIELD(MENUITEMINFOA, HBITMAP, hbmpUnchecked, 28, 4, 4); + TEST_FIELD(MENUITEMINFOA, DWORD, dwItemData, 32, 4, 4); + TEST_FIELD(MENUITEMINFOA, LPSTR, dwTypeData, 36, 4, 4); + TEST_FIELD(MENUITEMINFOA, UINT, cch, 40, 4, 4); + TEST_FIELD(MENUITEMINFOA, HBITMAP, hbmpItem, 44, 4, 4); + + /* MENUITEMINFOW (pack 4) */ + TEST_TYPE(MENUITEMINFOW, 48, 4); + TEST_FIELD(MENUITEMINFOW, UINT, cbSize, 0, 4, 4); + TEST_FIELD(MENUITEMINFOW, UINT, fMask, 4, 4, 4); + TEST_FIELD(MENUITEMINFOW, UINT, fType, 8, 4, 4); + TEST_FIELD(MENUITEMINFOW, UINT, fState, 12, 4, 4); + TEST_FIELD(MENUITEMINFOW, UINT, wID, 16, 4, 4); + TEST_FIELD(MENUITEMINFOW, HMENU, hSubMenu, 20, 4, 4); + TEST_FIELD(MENUITEMINFOW, HBITMAP, hbmpChecked, 24, 4, 4); + TEST_FIELD(MENUITEMINFOW, HBITMAP, hbmpUnchecked, 28, 4, 4); + TEST_FIELD(MENUITEMINFOW, DWORD, dwItemData, 32, 4, 4); + TEST_FIELD(MENUITEMINFOW, LPWSTR, dwTypeData, 36, 4, 4); + TEST_FIELD(MENUITEMINFOW, UINT, cch, 40, 4, 4); + TEST_FIELD(MENUITEMINFOW, HBITMAP, hbmpItem, 44, 4, 4); + + /* MENUITEMTEMPLATE (pack 4) */ + TEST_TYPE(MENUITEMTEMPLATE, 6, 2); + TEST_FIELD(MENUITEMTEMPLATE, WORD, mtOption, 0, 2, 2); + TEST_FIELD(MENUITEMTEMPLATE, WORD, mtID, 2, 2, 2); + TEST_FIELD(MENUITEMTEMPLATE, WCHAR[1], mtString, 4, 2, 2); + + /* MENUITEMTEMPLATEHEADER (pack 4) */ + TEST_TYPE(MENUITEMTEMPLATEHEADER, 4, 2); + TEST_FIELD(MENUITEMTEMPLATEHEADER, WORD, versionNumber, 0, 2, 2); + TEST_FIELD(MENUITEMTEMPLATEHEADER, WORD, offset, 2, 2, 2); + + /* MINIMIZEDMETRICS (pack 4) */ + TEST_TYPE(MINIMIZEDMETRICS, 20, 4); + TEST_FIELD(MINIMIZEDMETRICS, UINT, cbSize, 0, 4, 4); + TEST_FIELD(MINIMIZEDMETRICS, int, iWidth, 4, 4, 4); + TEST_FIELD(MINIMIZEDMETRICS, int, iHorzGap, 8, 4, 4); + TEST_FIELD(MINIMIZEDMETRICS, int, iVertGap, 12, 4, 4); + TEST_FIELD(MINIMIZEDMETRICS, int, iArrange, 16, 4, 4); + + /* MINMAXINFO (pack 4) */ + TEST_TYPE(MINMAXINFO, 40, 4); + TEST_FIELD(MINMAXINFO, POINT, ptReserved, 0, 8, 4); + TEST_FIELD(MINMAXINFO, POINT, ptMaxSize, 8, 8, 4); + TEST_FIELD(MINMAXINFO, POINT, ptMaxPosition, 16, 8, 4); + TEST_FIELD(MINMAXINFO, POINT, ptMinTrackSize, 24, 8, 4); + TEST_FIELD(MINMAXINFO, POINT, ptMaxTrackSize, 32, 8, 4); + + /* MONITORINFO (pack 4) */ + TEST_TYPE(MONITORINFO, 40, 4); + TEST_FIELD(MONITORINFO, DWORD, cbSize, 0, 4, 4); + TEST_FIELD(MONITORINFO, RECT, rcMonitor, 4, 16, 4); + TEST_FIELD(MONITORINFO, RECT, rcWork, 20, 16, 4); + TEST_FIELD(MONITORINFO, DWORD, dwFlags, 36, 4, 4); + + /* MONITORINFOEXA (pack 4) */ + TEST_TYPE(MONITORINFOEXA, 72, 4); + TEST_FIELD(MONITORINFOEXA, MONITORINFO, dummy, 0, 40, 4); + TEST_FIELD(MONITORINFOEXA, CHAR[CCHDEVICENAME], szDevice, 40, 32, 1); + + /* MONITORINFOEXW (pack 4) */ + TEST_TYPE(MONITORINFOEXW, 104, 4); + TEST_FIELD(MONITORINFOEXW, MONITORINFO, dummy, 0, 40, 4); + TEST_FIELD(MONITORINFOEXW, WCHAR[CCHDEVICENAME], szDevice, 40, 64, 2); + + /* MOUSEHOOKSTRUCT (pack 4) */ + TEST_TYPE(MOUSEHOOKSTRUCT, 20, 4); + TEST_FIELD(MOUSEHOOKSTRUCT, POINT, pt, 0, 8, 4); + TEST_FIELD(MOUSEHOOKSTRUCT, HWND, hwnd, 8, 4, 4); + TEST_FIELD(MOUSEHOOKSTRUCT, UINT, wHitTestCode, 12, 4, 4); + TEST_FIELD(MOUSEHOOKSTRUCT, DWORD, dwExtraInfo, 16, 4, 4); + + /* MOUSEINPUT (pack 4) */ + TEST_TYPE(MOUSEINPUT, 24, 4); + TEST_FIELD(MOUSEINPUT, LONG, dx, 0, 4, 4); + TEST_FIELD(MOUSEINPUT, LONG, dy, 4, 4, 4); + TEST_FIELD(MOUSEINPUT, DWORD, mouseData, 8, 4, 4); + TEST_FIELD(MOUSEINPUT, DWORD, dwFlags, 12, 4, 4); + TEST_FIELD(MOUSEINPUT, DWORD, time, 16, 4, 4); + TEST_FIELD(MOUSEINPUT, ULONG_PTR, dwExtraInfo, 20, 4, 4); + + /* MOUSEKEYS (pack 4) */ + TEST_TYPE(MOUSEKEYS, 28, 4); + TEST_FIELD(MOUSEKEYS, UINT, cbSize, 0, 4, 4); + TEST_FIELD(MOUSEKEYS, DWORD, dwFlags, 4, 4, 4); + TEST_FIELD(MOUSEKEYS, DWORD, iMaxSpeed, 8, 4, 4); + TEST_FIELD(MOUSEKEYS, DWORD, iTimeToMaxSpeed, 12, 4, 4); + TEST_FIELD(MOUSEKEYS, DWORD, iCtrlSpeed, 16, 4, 4); + TEST_FIELD(MOUSEKEYS, DWORD, dwReserved1, 20, 4, 4); + TEST_FIELD(MOUSEKEYS, DWORD, dwReserved2, 24, 4, 4); + + /* MSG (pack 4) */ + TEST_TYPE(MSG, 28, 4); + TEST_FIELD(MSG, HWND, hwnd, 0, 4, 4); + TEST_FIELD(MSG, UINT, message, 4, 4, 4); + TEST_FIELD(MSG, WPARAM, wParam, 8, 4, 4); + TEST_FIELD(MSG, LPARAM, lParam, 12, 4, 4); + TEST_FIELD(MSG, DWORD, time, 16, 4, 4); + TEST_FIELD(MSG, POINT, pt, 20, 8, 4); + + /* MSGBOXPARAMSA (pack 4) */ + TEST_TYPE(MSGBOXPARAMSA, 40, 4); + TEST_FIELD(MSGBOXPARAMSA, UINT, cbSize, 0, 4, 4); + TEST_FIELD(MSGBOXPARAMSA, HWND, hwndOwner, 4, 4, 4); + TEST_FIELD(MSGBOXPARAMSA, HINSTANCE, hInstance, 8, 4, 4); + TEST_FIELD(MSGBOXPARAMSA, LPCSTR, lpszText, 12, 4, 4); + TEST_FIELD(MSGBOXPARAMSA, LPCSTR, lpszCaption, 16, 4, 4); + TEST_FIELD(MSGBOXPARAMSA, DWORD, dwStyle, 20, 4, 4); + TEST_FIELD(MSGBOXPARAMSA, LPCSTR, lpszIcon, 24, 4, 4); + TEST_FIELD(MSGBOXPARAMSA, DWORD, dwContextHelpId, 28, 4, 4); + TEST_FIELD(MSGBOXPARAMSA, MSGBOXCALLBACK, lpfnMsgBoxCallback, 32, 4, 4); + TEST_FIELD(MSGBOXPARAMSA, DWORD, dwLanguageId, 36, 4, 4); + + /* MSGBOXPARAMSW (pack 4) */ + TEST_TYPE(MSGBOXPARAMSW, 40, 4); + TEST_FIELD(MSGBOXPARAMSW, UINT, cbSize, 0, 4, 4); + TEST_FIELD(MSGBOXPARAMSW, HWND, hwndOwner, 4, 4, 4); + TEST_FIELD(MSGBOXPARAMSW, HINSTANCE, hInstance, 8, 4, 4); + TEST_FIELD(MSGBOXPARAMSW, LPCWSTR, lpszText, 12, 4, 4); + TEST_FIELD(MSGBOXPARAMSW, LPCWSTR, lpszCaption, 16, 4, 4); + TEST_FIELD(MSGBOXPARAMSW, DWORD, dwStyle, 20, 4, 4); + TEST_FIELD(MSGBOXPARAMSW, LPCWSTR, lpszIcon, 24, 4, 4); + TEST_FIELD(MSGBOXPARAMSW, DWORD, dwContextHelpId, 28, 4, 4); + TEST_FIELD(MSGBOXPARAMSW, MSGBOXCALLBACK, lpfnMsgBoxCallback, 32, 4, 4); + TEST_FIELD(MSGBOXPARAMSW, DWORD, dwLanguageId, 36, 4, 4); + + /* MSLLHOOKSTRUCT (pack 4) */ + TEST_TYPE(MSLLHOOKSTRUCT, 24, 4); + TEST_FIELD(MSLLHOOKSTRUCT, POINT, pt, 0, 8, 4); + TEST_FIELD(MSLLHOOKSTRUCT, DWORD, mouseData, 8, 4, 4); + TEST_FIELD(MSLLHOOKSTRUCT, DWORD, flags, 12, 4, 4); + TEST_FIELD(MSLLHOOKSTRUCT, DWORD, time, 16, 4, 4); + TEST_FIELD(MSLLHOOKSTRUCT, ULONG_PTR, dwExtraInfo, 20, 4, 4); + + /* MULTIKEYHELPA (pack 4) */ + TEST_TYPE(MULTIKEYHELPA, 8, 4); + TEST_FIELD(MULTIKEYHELPA, DWORD, mkSize, 0, 4, 4); + TEST_FIELD(MULTIKEYHELPA, CHAR, mkKeyList, 4, 1, 1); + TEST_FIELD(MULTIKEYHELPA, CHAR[1], szKeyphrase, 5, 1, 1); + + /* MULTIKEYHELPW (pack 4) */ + TEST_TYPE(MULTIKEYHELPW, 8, 4); + TEST_FIELD(MULTIKEYHELPW, DWORD, mkSize, 0, 4, 4); + TEST_FIELD(MULTIKEYHELPW, WCHAR, mkKeyList, 4, 2, 2); + TEST_FIELD(MULTIKEYHELPW, WCHAR[1], szKeyphrase, 6, 2, 2); + + /* NCCALCSIZE_PARAMS (pack 4) */ + TEST_TYPE(NCCALCSIZE_PARAMS, 52, 4); + TEST_FIELD(NCCALCSIZE_PARAMS, RECT[3], rgrc, 0, 48, 4); + TEST_FIELD(NCCALCSIZE_PARAMS, WINDOWPOS *, lppos, 48, 4, 4); + + /* NMHDR (pack 4) */ + TEST_TYPE(NMHDR, 12, 4); + TEST_FIELD(NMHDR, HWND, hwndFrom, 0, 4, 4); + TEST_FIELD(NMHDR, UINT, idFrom, 4, 4, 4); + TEST_FIELD(NMHDR, UINT, code, 8, 4, 4); + + /* NONCLIENTMETRICSA (pack 4) */ + TEST_TYPE(NONCLIENTMETRICSA, 340, 4); + TEST_FIELD(NONCLIENTMETRICSA, UINT, cbSize, 0, 4, 4); + TEST_FIELD(NONCLIENTMETRICSA, INT, iBorderWidth, 4, 4, 4); + TEST_FIELD(NONCLIENTMETRICSA, INT, iScrollWidth, 8, 4, 4); + TEST_FIELD(NONCLIENTMETRICSA, INT, iScrollHeight, 12, 4, 4); + TEST_FIELD(NONCLIENTMETRICSA, INT, iCaptionWidth, 16, 4, 4); + TEST_FIELD(NONCLIENTMETRICSA, INT, iCaptionHeight, 20, 4, 4); + TEST_FIELD(NONCLIENTMETRICSA, LOGFONTA, lfCaptionFont, 24, 60, 4); + TEST_FIELD(NONCLIENTMETRICSA, INT, iSmCaptionWidth, 84, 4, 4); + TEST_FIELD(NONCLIENTMETRICSA, INT, iSmCaptionHeight, 88, 4, 4); + TEST_FIELD(NONCLIENTMETRICSA, LOGFONTA, lfSmCaptionFont, 92, 60, 4); + TEST_FIELD(NONCLIENTMETRICSA, INT, iMenuWidth, 152, 4, 4); + TEST_FIELD(NONCLIENTMETRICSA, INT, iMenuHeight, 156, 4, 4); + TEST_FIELD(NONCLIENTMETRICSA, LOGFONTA, lfMenuFont, 160, 60, 4); + TEST_FIELD(NONCLIENTMETRICSA, LOGFONTA, lfStatusFont, 220, 60, 4); + TEST_FIELD(NONCLIENTMETRICSA, LOGFONTA, lfMessageFont, 280, 60, 4); + + /* NONCLIENTMETRICSW (pack 4) */ + TEST_TYPE(NONCLIENTMETRICSW, 500, 4); + TEST_FIELD(NONCLIENTMETRICSW, UINT, cbSize, 0, 4, 4); + TEST_FIELD(NONCLIENTMETRICSW, INT, iBorderWidth, 4, 4, 4); + TEST_FIELD(NONCLIENTMETRICSW, INT, iScrollWidth, 8, 4, 4); + TEST_FIELD(NONCLIENTMETRICSW, INT, iScrollHeight, 12, 4, 4); + TEST_FIELD(NONCLIENTMETRICSW, INT, iCaptionWidth, 16, 4, 4); + TEST_FIELD(NONCLIENTMETRICSW, INT, iCaptionHeight, 20, 4, 4); + TEST_FIELD(NONCLIENTMETRICSW, LOGFONTW, lfCaptionFont, 24, 92, 4); + TEST_FIELD(NONCLIENTMETRICSW, INT, iSmCaptionWidth, 116, 4, 4); + TEST_FIELD(NONCLIENTMETRICSW, INT, iSmCaptionHeight, 120, 4, 4); + TEST_FIELD(NONCLIENTMETRICSW, LOGFONTW, lfSmCaptionFont, 124, 92, 4); + TEST_FIELD(NONCLIENTMETRICSW, INT, iMenuWidth, 216, 4, 4); + TEST_FIELD(NONCLIENTMETRICSW, INT, iMenuHeight, 220, 4, 4); + TEST_FIELD(NONCLIENTMETRICSW, LOGFONTW, lfMenuFont, 224, 92, 4); + TEST_FIELD(NONCLIENTMETRICSW, LOGFONTW, lfStatusFont, 316, 92, 4); + TEST_FIELD(NONCLIENTMETRICSW, LOGFONTW, lfMessageFont, 408, 92, 4); + + /* PAINTSTRUCT (pack 4) */ + TEST_TYPE(PAINTSTRUCT, 64, 4); + TEST_FIELD(PAINTSTRUCT, HDC, hdc, 0, 4, 4); + TEST_FIELD(PAINTSTRUCT, BOOL, fErase, 4, 4, 4); + TEST_FIELD(PAINTSTRUCT, RECT, rcPaint, 8, 16, 4); + TEST_FIELD(PAINTSTRUCT, BOOL, fRestore, 24, 4, 4); + TEST_FIELD(PAINTSTRUCT, BOOL, fIncUpdate, 28, 4, 4); + TEST_FIELD(PAINTSTRUCT, BYTE[32], rgbReserved, 32, 32, 1); + + /* SCROLLINFO (pack 4) */ + TEST_TYPE(SCROLLINFO, 28, 4); + TEST_FIELD(SCROLLINFO, UINT, cbSize, 0, 4, 4); + TEST_FIELD(SCROLLINFO, UINT, fMask, 4, 4, 4); + TEST_FIELD(SCROLLINFO, INT, nMin, 8, 4, 4); + TEST_FIELD(SCROLLINFO, INT, nMax, 12, 4, 4); + TEST_FIELD(SCROLLINFO, UINT, nPage, 16, 4, 4); + TEST_FIELD(SCROLLINFO, INT, nPos, 20, 4, 4); + TEST_FIELD(SCROLLINFO, INT, nTrackPos, 24, 4, 4); + + /* SERIALKEYSA (pack 4) */ + TEST_TYPE(SERIALKEYSA, 28, 4); + TEST_FIELD(SERIALKEYSA, UINT, cbSize, 0, 4, 4); + TEST_FIELD(SERIALKEYSA, DWORD, dwFlags, 4, 4, 4); + TEST_FIELD(SERIALKEYSA, LPSTR, lpszActivePort, 8, 4, 4); + TEST_FIELD(SERIALKEYSA, LPSTR, lpszPort, 12, 4, 4); + TEST_FIELD(SERIALKEYSA, UINT, iBaudRate, 16, 4, 4); + TEST_FIELD(SERIALKEYSA, UINT, iPortState, 20, 4, 4); + TEST_FIELD(SERIALKEYSA, UINT, iActive, 24, 4, 4); + + /* SERIALKEYSW (pack 4) */ + TEST_TYPE(SERIALKEYSW, 28, 4); + TEST_FIELD(SERIALKEYSW, UINT, cbSize, 0, 4, 4); + TEST_FIELD(SERIALKEYSW, DWORD, dwFlags, 4, 4, 4); + TEST_FIELD(SERIALKEYSW, LPWSTR, lpszActivePort, 8, 4, 4); + TEST_FIELD(SERIALKEYSW, LPWSTR, lpszPort, 12, 4, 4); + TEST_FIELD(SERIALKEYSW, UINT, iBaudRate, 16, 4, 4); + TEST_FIELD(SERIALKEYSW, UINT, iPortState, 20, 4, 4); + TEST_FIELD(SERIALKEYSW, UINT, iActive, 24, 4, 4); + + /* SOUNDSENTRYA (pack 4) */ + TEST_TYPE(SOUNDSENTRYA, 48, 4); + TEST_FIELD(SOUNDSENTRYA, UINT, cbSize, 0, 4, 4); + TEST_FIELD(SOUNDSENTRYA, DWORD, dwFlags, 4, 4, 4); + TEST_FIELD(SOUNDSENTRYA, DWORD, iFSTextEffect, 8, 4, 4); + TEST_FIELD(SOUNDSENTRYA, DWORD, iFSTextEffectMSec, 12, 4, 4); + TEST_FIELD(SOUNDSENTRYA, DWORD, iFSTextEffectColorBits, 16, 4, 4); + TEST_FIELD(SOUNDSENTRYA, DWORD, iFSGrafEffect, 20, 4, 4); + TEST_FIELD(SOUNDSENTRYA, DWORD, iFSGrafEffectMSec, 24, 4, 4); + TEST_FIELD(SOUNDSENTRYA, DWORD, iFSGrafEffectColor, 28, 4, 4); + TEST_FIELD(SOUNDSENTRYA, DWORD, iWindowsEffect, 32, 4, 4); + TEST_FIELD(SOUNDSENTRYA, DWORD, iWindowsEffectMSec, 36, 4, 4); + TEST_FIELD(SOUNDSENTRYA, LPSTR, lpszWindowsEffectDLL, 40, 4, 4); + TEST_FIELD(SOUNDSENTRYA, DWORD, iWindowsEffectOrdinal, 44, 4, 4); + + /* SOUNDSENTRYW (pack 4) */ + TEST_TYPE(SOUNDSENTRYW, 48, 4); + TEST_FIELD(SOUNDSENTRYW, UINT, cbSize, 0, 4, 4); + TEST_FIELD(SOUNDSENTRYW, DWORD, dwFlags, 4, 4, 4); + TEST_FIELD(SOUNDSENTRYW, DWORD, iFSTextEffect, 8, 4, 4); + TEST_FIELD(SOUNDSENTRYW, DWORD, iFSTextEffectMSec, 12, 4, 4); + TEST_FIELD(SOUNDSENTRYW, DWORD, iFSTextEffectColorBits, 16, 4, 4); + TEST_FIELD(SOUNDSENTRYW, DWORD, iFSGrafEffect, 20, 4, 4); + TEST_FIELD(SOUNDSENTRYW, DWORD, iFSGrafEffectMSec, 24, 4, 4); + TEST_FIELD(SOUNDSENTRYW, DWORD, iFSGrafEffectColor, 28, 4, 4); + TEST_FIELD(SOUNDSENTRYW, DWORD, iWindowsEffect, 32, 4, 4); + TEST_FIELD(SOUNDSENTRYW, DWORD, iWindowsEffectMSec, 36, 4, 4); + TEST_FIELD(SOUNDSENTRYW, LPWSTR, lpszWindowsEffectDLL, 40, 4, 4); + TEST_FIELD(SOUNDSENTRYW, DWORD, iWindowsEffectOrdinal, 44, 4, 4); + + /* STICKYKEYS (pack 4) */ + TEST_TYPE(STICKYKEYS, 8, 4); + TEST_FIELD(STICKYKEYS, DWORD, cbSize, 0, 4, 4); + TEST_FIELD(STICKYKEYS, DWORD, dwFlags, 4, 4, 4); + + /* STYLESTRUCT (pack 4) */ + TEST_TYPE(STYLESTRUCT, 8, 4); + TEST_FIELD(STYLESTRUCT, DWORD, styleOld, 0, 4, 4); + TEST_FIELD(STYLESTRUCT, DWORD, styleNew, 4, 4, 4); + + /* TOGGLEKEYS (pack 4) */ + TEST_TYPE(TOGGLEKEYS, 8, 4); + TEST_FIELD(TOGGLEKEYS, DWORD, cbSize, 0, 4, 4); + TEST_FIELD(TOGGLEKEYS, DWORD, dwFlags, 4, 4, 4); + + /* TPMPARAMS (pack 4) */ + TEST_TYPE(TPMPARAMS, 20, 4); + TEST_FIELD(TPMPARAMS, UINT, cbSize, 0, 4, 4); + TEST_FIELD(TPMPARAMS, RECT, rcExclude, 4, 16, 4); + + /* TRACKMOUSEEVENT (pack 4) */ + TEST_TYPE(TRACKMOUSEEVENT, 16, 4); + TEST_FIELD(TRACKMOUSEEVENT, DWORD, cbSize, 0, 4, 4); + TEST_FIELD(TRACKMOUSEEVENT, DWORD, dwFlags, 4, 4, 4); + TEST_FIELD(TRACKMOUSEEVENT, HWND, hwndTrack, 8, 4, 4); + TEST_FIELD(TRACKMOUSEEVENT, DWORD, dwHoverTime, 12, 4, 4); + + /* WINDOWINFO (pack 4) */ + TEST_TYPE(WINDOWINFO, 60, 4); + TEST_FIELD(WINDOWINFO, DWORD, cbSize, 0, 4, 4); + TEST_FIELD(WINDOWINFO, RECT, rcWindow, 4, 16, 4); + TEST_FIELD(WINDOWINFO, RECT, rcClient, 20, 16, 4); + TEST_FIELD(WINDOWINFO, DWORD, dwStyle, 36, 4, 4); + TEST_FIELD(WINDOWINFO, DWORD, dwExStyle, 40, 4, 4); + TEST_FIELD(WINDOWINFO, DWORD, dwWindowStatus, 44, 4, 4); + TEST_FIELD(WINDOWINFO, UINT, cxWindowBorders, 48, 4, 4); + TEST_FIELD(WINDOWINFO, UINT, cyWindowBorders, 52, 4, 4); + TEST_FIELD(WINDOWINFO, ATOM, atomWindowType, 56, 2, 2); + TEST_FIELD(WINDOWINFO, WORD, wCreatorVersion, 58, 2, 2); + + /* WINDOWPOS (pack 4) */ + TEST_TYPE(WINDOWPOS, 28, 4); + TEST_FIELD(WINDOWPOS, HWND, hwnd, 0, 4, 4); + TEST_FIELD(WINDOWPOS, HWND, hwndInsertAfter, 4, 4, 4); + TEST_FIELD(WINDOWPOS, INT, x, 8, 4, 4); + TEST_FIELD(WINDOWPOS, INT, y, 12, 4, 4); + TEST_FIELD(WINDOWPOS, INT, cx, 16, 4, 4); + TEST_FIELD(WINDOWPOS, INT, cy, 20, 4, 4); + TEST_FIELD(WINDOWPOS, UINT, flags, 24, 4, 4); + + /* WNDCLASSA (pack 4) */ + TEST_TYPE(WNDCLASSA, 40, 4); + TEST_FIELD(WNDCLASSA, UINT, style, 0, 4, 4); + TEST_FIELD(WNDCLASSA, WNDPROC, lpfnWndProc, 4, 4, 4); + TEST_FIELD(WNDCLASSA, INT, cbClsExtra, 8, 4, 4); + TEST_FIELD(WNDCLASSA, INT, cbWndExtra, 12, 4, 4); + TEST_FIELD(WNDCLASSA, HINSTANCE, hInstance, 16, 4, 4); + TEST_FIELD(WNDCLASSA, HICON, hIcon, 20, 4, 4); + TEST_FIELD(WNDCLASSA, HCURSOR, hCursor, 24, 4, 4); + TEST_FIELD(WNDCLASSA, HBRUSH, hbrBackground, 28, 4, 4); + TEST_FIELD(WNDCLASSA, LPCSTR, lpszMenuName, 32, 4, 4); + TEST_FIELD(WNDCLASSA, LPCSTR, lpszClassName, 36, 4, 4); + + /* WNDCLASSEXA (pack 4) */ + TEST_TYPE(WNDCLASSEXA, 48, 4); + TEST_FIELD(WNDCLASSEXA, UINT, cbSize, 0, 4, 4); + TEST_FIELD(WNDCLASSEXA, UINT, style, 4, 4, 4); + TEST_FIELD(WNDCLASSEXA, WNDPROC, lpfnWndProc, 8, 4, 4); + TEST_FIELD(WNDCLASSEXA, INT, cbClsExtra, 12, 4, 4); + TEST_FIELD(WNDCLASSEXA, INT, cbWndExtra, 16, 4, 4); + TEST_FIELD(WNDCLASSEXA, HINSTANCE, hInstance, 20, 4, 4); + TEST_FIELD(WNDCLASSEXA, HICON, hIcon, 24, 4, 4); + TEST_FIELD(WNDCLASSEXA, HCURSOR, hCursor, 28, 4, 4); + TEST_FIELD(WNDCLASSEXA, HBRUSH, hbrBackground, 32, 4, 4); + TEST_FIELD(WNDCLASSEXA, LPCSTR, lpszMenuName, 36, 4, 4); + TEST_FIELD(WNDCLASSEXA, LPCSTR, lpszClassName, 40, 4, 4); + TEST_FIELD(WNDCLASSEXA, HICON, hIconSm, 44, 4, 4); + + /* WNDCLASSEXW (pack 4) */ + TEST_TYPE(WNDCLASSEXW, 48, 4); + TEST_FIELD(WNDCLASSEXW, UINT, cbSize, 0, 4, 4); + TEST_FIELD(WNDCLASSEXW, UINT, style, 4, 4, 4); + TEST_FIELD(WNDCLASSEXW, WNDPROC, lpfnWndProc, 8, 4, 4); + TEST_FIELD(WNDCLASSEXW, INT, cbClsExtra, 12, 4, 4); + TEST_FIELD(WNDCLASSEXW, INT, cbWndExtra, 16, 4, 4); + TEST_FIELD(WNDCLASSEXW, HINSTANCE, hInstance, 20, 4, 4); + TEST_FIELD(WNDCLASSEXW, HICON, hIcon, 24, 4, 4); + TEST_FIELD(WNDCLASSEXW, HCURSOR, hCursor, 28, 4, 4); + TEST_FIELD(WNDCLASSEXW, HBRUSH, hbrBackground, 32, 4, 4); + TEST_FIELD(WNDCLASSEXW, LPCWSTR, lpszMenuName, 36, 4, 4); + TEST_FIELD(WNDCLASSEXW, LPCWSTR, lpszClassName, 40, 4, 4); + TEST_FIELD(WNDCLASSEXW, HICON, hIconSm, 44, 4, 4); + + /* WNDCLASSW (pack 4) */ + TEST_TYPE(WNDCLASSW, 40, 4); + TEST_FIELD(WNDCLASSW, UINT, style, 0, 4, 4); + TEST_FIELD(WNDCLASSW, WNDPROC, lpfnWndProc, 4, 4, 4); + TEST_FIELD(WNDCLASSW, INT, cbClsExtra, 8, 4, 4); + TEST_FIELD(WNDCLASSW, INT, cbWndExtra, 12, 4, 4); + TEST_FIELD(WNDCLASSW, HINSTANCE, hInstance, 16, 4, 4); + TEST_FIELD(WNDCLASSW, HICON, hIcon, 20, 4, 4); + TEST_FIELD(WNDCLASSW, HCURSOR, hCursor, 24, 4, 4); + TEST_FIELD(WNDCLASSW, HBRUSH, hbrBackground, 28, 4, 4); + TEST_FIELD(WNDCLASSW, LPCWSTR, lpszMenuName, 32, 4, 4); + TEST_FIELD(WNDCLASSW, LPCWSTR, lpszClassName, 36, 4, 4); }