12#define INVALID_POINTER ((PVOID)(ULONG_PTR)0xdeadbeefdeadbeefULL)
15 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
16 0,0,0,0,0,0,255,0,0,0,0,0,0,0,0,0,
17 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
18 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
19 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
20 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
21 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
22 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
24 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
25 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
26 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
27 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
28 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
29 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
30 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
31 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
173 ok(
ret == -1,
"should have got an exception\n");
182 ok(hBrush !=
NULL,
"Failed to create brush\n");
214 BYTE bData[100] = {0};
215 BYTE Buffer[100] = {48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,0};
219 ok(
hBitmap != 0,
"CreateBitmap failed, skipping tests.\n");
253 BITMAPINFO bmi = {{
sizeof(
BITMAPINFOHEADER), 10, 9, 1, 16,
BI_RGB, 0, 10, 10, 0,0}};
303 logpal.palPalEntry[0].peRed = 0;
304 logpal.palPalEntry[0].peGreen = 0;
305 logpal.palPalEntry[0].peBlue = 0;
308 ok(hPalette != 0,
"CreatePalette failed, skipping tests.\n");
309 if (!hPalette)
return;
341 ok(hBrush != 0,
"CreateSolidBrush failed, skipping tests.\n");
353 ok(logbrush.
lbStyle == 0x77777777,
"\n");
356 ok(logbrush.
lbColor == 0x77777701,
"\n");
374 "GetObject(0x%p, ...) failed.\n", hBrush);
380 "GetObject(0x%p, ...) failed.\n", hBrush);
383 "GetObject(0x%p, ...) failed.\n", hBrush);
397 {
sizeof(
BITMAPINFOHEADER), 4, 4, 1, 8,
BI_RGB, 0, 1, 1, 4, 0},
399 {0,1,2,3, 1,2,3,0, 2,3,0,1, 3,0,1,2},
406 ok(hBrush != 0,
"CreateSolidBrush failed, skipping tests.\n");
423 ok(hBrush != 0,
"CreateSolidBrush failed, skipping tests.\n");
447 ok(hPen != 0,
"CreatePen failed, skipping tests.\n");
478 DWORD dwStyles[17] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16};
548 for (
i = 0;
i <= 15;
i++)
549 ok(((
EXTLOGPEN*)&elpUserStyle)->elpStyleEntry[
i] ==
i,
"%d\n",
i);
601 ok(
u.logfonta.lfHeight == 0x77777777,
"\n");
604 ok(
u.logfonta.lfHeight == 8,
"\n");
605 ok(
u.logfonta.lfWidth == 0x77777708,
"\n");
635 ok(
u.logfontw.lfHeight == 0x77777777,
"\n");
638 ok(
u.logfontw.lfHeight == 8,
"\n");
639 ok(
u.logfontw.lfWidth == 0x77777708,
"\n");
642 ok(
u.logfonta.lfHeight == 8,
"\n");
701 ok(hMetaDC != 0,
"CreateMetaFile failed, skipping tests.\n");
734 ok(
bmp.bmWidth == (
bmp.bmHeight / 2),
"ERR UNICODE CursorIcon RECT got %ldx%ld\n",
bmp.bmWidth,
bmp.bmHeight);
735 ok(
bmp.bmHeight == 64,
"ERR UNICODE CursorIcon Height got %ld\n",
bmp.bmHeight);
741 ok(CursorInfo.
flags != 0,
"Mouse cursor is hidden\n");
743 ok(
bmp.bmWidth ==
bmp.bmHeight / 2,
"ERR CursorIcon RECT got %ldx%ld\n",
bmp.bmWidth,
bmp.bmHeight);
744 ok(
bmp.bmHeight == 64,
"ERR CursorIcon Height got %ld\n",
bmp.bmHeight);
void Test_Dibsection(void)
void Test_Colorspace(void)
#define ok_long(expression, result)
#define ERROR_INSUFFICIENT_BUFFER
#define ERROR_INVALID_PARAMETER
#define ERROR_INVALID_HANDLE
#define FillMemory(BUF, SIZ, MASK)
#define GDI_OBJECT_TYPE_REGION
#define GDI_HANDLE_GET_INDEX(h)
#define GDI_OBJECT_TYPE_DC
#define GDI_OBJECT_TYPE_BRUSH
#define GDI_HANDLE_GET_TYPE(h)
#define GDI_OBJECT_TYPE_ENHMETAFILE
#define GDI_OBJECT_TYPE_COLORSPACE
#define GDI_HANDLE_TYPE_MASK
#define GDI_OBJECT_TYPE_BITMAP
#define GDI_OBJECT_TYPE_PALETTE
#define GDI_OBJECT_TYPE_EXTPEN
#define GDI_OBJECT_TYPE_FONT
#define GDI_OBJECT_TYPE_EMF
#define GDI_OBJECT_TYPE_METADC
#define GDI_OBJECT_TYPE_PEN
#define GDI_OBJECT_TYPE_METAFILE
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble * u
#define EXCEPTION_EXECUTE_HANDLER
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
unsigned __int3264 UINT_PTR
#define _SEH2_EXCEPT(...)
TW_UINT32 TW_UINT16 TW_UINT16 TW_MEMREF pData
HBITMAP WINAPI CreateDIBSection(HDC hDC, CONST BITMAPINFO *BitmapInfo, UINT Usage, VOID **Bits, HANDLE hSection, DWORD dwOffset)
DWORD WINAPI GetLastError(void)
#define CLIP_CHARACTER_PRECIS
HGDIOBJ WINAPI GetStockObject(_In_ int)
int WINAPI GetObjectW(_In_ HANDLE h, _In_ int c, _Out_writes_bytes_opt_(c) LPVOID pv)
HBITMAP WINAPI CreateBitmap(_In_ INT cx, _In_ INT cy, _In_ UINT cPlanes, _In_ UINT cBitsPerPel, _In_opt_ const VOID *pvBits)
#define ANTIALIASED_QUALITY
HRGN WINAPI CreateRectRgn(_In_ int, _In_ int, _In_ int, _In_ int)
int WINAPI GetObjectA(_In_ HANDLE h, _In_ int c, _Out_writes_bytes_opt_(c) LPVOID pv)
HPEN WINAPI ExtCreatePen(_In_ DWORD iPenStyle, _In_ DWORD cWidth, _In_ const LOGBRUSH *plbrush, _In_ DWORD cStyle, _In_reads_opt_(cStyle) const DWORD *pstyle)
HPALETTE WINAPI CreatePalette(_In_reads_(_Inexpressible_(2 *sizeof(WORD)+plpal->palNumEntries *sizeof(PALETTEENTRY))) const LOGPALETTE *)
struct tagENUMLOGFONTEXW ENUMLOGFONTEXW
#define OUT_CHARACTER_PRECIS
HFONT WINAPI CreateFontA(_In_ int, _In_ int, _In_ int, _In_ int, _In_ int, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_opt_ LPCSTR)
HBRUSH WINAPI CreateDIBPatternBrushPt(_In_ const VOID *pvPackedDIB, _In_ UINT uUsage)
HBRUSH WINAPI CreateSolidBrush(_In_ COLORREF)
HPEN WINAPI CreatePen(_In_ int, _In_ int, _In_ COLORREF)
BOOL WINAPI GetCursorInfo(_Inout_ PCURSORINFO)
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
struct tagCURSORINFO CURSORINFO
HDC WINAPI GetDC(_In_opt_ HWND)