5#define ROS_HGDI_ERROR (HANDLE)~(ULONG_PTR)0
30 skip(
"Could not load 1 BPP bitmap\n");
36 ok(bitmap1.
bmWidth == 4,
"Should have been '4', but got '%d'\n", bitmap1.
bmWidth);
39 memset(&bmi, 0,
sizeof(bmi));
41 bmi.bmiHeader.biWidth = bitmap1.
bmWidth;
42 bmi.bmiHeader.biHeight = bitmap1.
bmHeight;
43 bmi.bmiHeader.biPlanes = bitmap1.
bmPlanes;
45 bmi.bmiHeader.biCompression =
BI_RGB;
46 bmi.bmiHeader.biSizeImage = 0;
50 ok(
size == 16,
"Expected 16, but size is %d\n",
size);
57 skip(
"GetDIBits failed for 1 BPP bitmap\n");
64 ok(
img[0] == 0x60,
"Got 0x%02x, expected x60\n",
img[0]);
65 ok(
img[1] == 0,
"Got 0x%02x, expected 0\n",
img[1]);
66 ok(
img[2] == 0,
"Got 0x%02x, expected 0\n",
img[2]);
67 ok(
img[3] == 0,
"Got 0x%02x, expected 0\n",
img[3]);
69 ok(
img[4] == 0x90,
"Got 0x%02x, expected x90\n",
img[4]);
70 ok(
img[5] == 0,
"Got 0x%02x, expected 0x60\n",
img[5]);
71 ok(
img[6] == 0,
"Got 0x%02x, expected 0\n",
img[6]);
72 ok(
img[7] == 0,
"Got 0x%02x, expected 0\n",
img[7]);
74 ok(
img[8] == 0x90,
"Got 0x%02x, expected x90\n",
img[8]);
75 ok(
img[9] == 0,
"Got 0x%02x, expected 0\n",
img[9]);
76 ok(
img[10] == 0,
"Got 0x%02x, expected 0\n",
img[10]);
77 ok(
img[11] == 0,
"Got 0x%02x, expected 0\n",
img[11]);
79 ok(
img[12] == 0x60,
"Got 0x%02x, expected x60\n",
img[12]);
80 ok(
img[13] == 0,
"Got 0x%02x, expected 0x60\n",
img[13]);
81 ok(
img[14] == 0,
"Got 0x%02x, expected 0\n",
img[14]);
82 ok(
img[15] == 0,
"Got 0x%02x, expected 0\n",
img[15]);
90 skip(
"Could not load 1 BPP bitmap\n");
94 ok(
bitmap2.bmBitsPixel == 1,
"Should have been '1', but got %d\n",
bitmap2.bmBitsPixel);
95 ok(
bitmap2.bmWidth == 4,
"Should have been '4', but got '%d'\n",
bitmap2.bmWidth);
96 ok(
bitmap2.bmHeight == 4,
"Should have been '4', but got '%d'\n",
bitmap2.bmHeight);
98 memset(&bmi, 0,
sizeof(bmi));
109 ok(
size == 16,
"Expected 16, but size is %d\n",
size);
114 skip(
"GetDIBits failed for 1 BPP bitmap\n");
124 ok(
img[0] == 0x60 ||
broken(
img[0] == 0) ,
"Got 0x%02x, expected x60\n",
img[0]);
125 ok(
img[1] == 0,
"Got 0x%02x, expected 0\n",
img[1]);
126 ok(
img[2] == 0,
"Got 0x%02x, expected 0\n",
img[2]);
127 ok(
img[3] == 0,
"Got 0x%02x, expected 0\n",
img[3]);
129 ok(
img[4] == 0x90 ||
broken(
img[4] == 0xf0) ,
"Got 0x%02x, expected x90\n",
img[4]);
130 ok(
img[5] == 0,
"Got 0x%02x, expected 0x60\n",
img[5]);
131 ok(
img[6] == 0,
"Got 0x%02x, expected 0\n",
img[6]);
132 ok(
img[7] == 0,
"Got 0x%02x, expected 0\n",
img[7]);
134 ok(
img[8] == 0x90 ||
broken(
img[8] == 0xf0) ,
"Got 0x%02x, expected x90\n",
img[8]);
135 ok(
img[9] == 0,
"Got 0x%02x, expected 0\n",
img[9]);
136 ok(
img[10] == 0,
"Got 0x%02x, expected 0\n",
img[10]);
137 ok(
img[11] == 0,
"Got 0x%02x, expected 0\n",
img[11]);
139 ok(
img[12] == 0x60 ||
broken(
img[12] == 0xf0) ,
"Got 0x%02x, expected x60\n",
img[12]);
140 ok(
img[13] == 0,
"Got 0x%02x, expected 0x60\n",
img[13]);
141 ok(
img[14] == 0,
"Got 0x%02x, expected 0\n",
img[14]);
142 ok(
img[15] == 0,
"Got 0x%02x, expected 0\n",
img[15]);
164 { 1,
L"shell32.dll", 2, 0, 0, 0 },
166 { 0,
L"shell32.dll", 0xfff0, 0, 1, 0 },
167 { 1,
L"regedit.exe", 100, 0, 0, 0 },
186 ok(!!(handle1 == handle2) == !!
tests[
i].same_handle,
"Shared handles don't match\n");
191 ok(!!handle1 == !!
tests[
i].after_unload,
"LR_%x handle should %sload after FreeLibrary\n",
tests[
i].lr,
tests[
i].after_unload ?
"" :
"not ");
197 static const WORD icomap[][2] = {
207 SHAIE pfnSHAreIconsEqual;
211 skip(
"Could not initialize\n");
215 if (!pfnSHAreIconsEqual)
218 skip(
"Could not initialize\n");
226 ok(hIcoRes && pfnSHAreIconsEqual(hIcoRes, hIcoSys),
"SysIcon %d must be resource %d\n", icomap[
i][1], icomap[
i][0]);
288 ok(hdcScreen !=
NULL,
"\n");
static void test_LoadImage_1bpp(void)
static void test_LoadImage_DataFile(void)
static void test_LoadIcon_SystemIds(void)
#define GetProcAddress(x, y)
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryExW(LPCWSTR lpLibFileName, HANDLE hFile, DWORD dwFlags)
HMODULE WINAPI GetModuleHandleW(LPCWSTR lpModuleName)
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryA(LPCSTR lpLibFileName)
BOOL WINAPI DECLSPEC_HOTPATCH CreateProcessA(const char *app_name, char *cmd_line, SECURITY_ATTRIBUTES *process_attr, SECURITY_ATTRIBUTES *thread_attr, BOOL inherit, DWORD flags, void *env, const char *cur_dir, STARTUPINFOA *startup_info, PROCESS_INFORMATION *info)
_ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl _ACRTIMP int __cdecl sscanf(const char *, const char *,...) __WINE_CRT_SCANF_ATTR(2
static const WCHAR Cleanup[]
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
HGLOBAL NTAPI GlobalFree(HGLOBAL hMem)
BOOL NTAPI GlobalUnlock(HGLOBAL hMem)
HGLOBAL NTAPI GlobalAlloc(UINT uFlags, SIZE_T dwBytes)
static ERESOURCE GlobalLock
#define memcpy(s1, s2, n)
static struct test_info tests[]
static PROCESS_INFORMATION pi
#define MAKEINTRESOURCE(i)
int winetest_get_mainargs(char ***pargv)
BITMAPINFOHEADER bmiHeader
DWORD WINAPI WaitForSingleObject(IN HANDLE hHandle, IN DWORD dwMilliseconds)
#define LOAD_LIBRARY_AS_DATAFILE
int WINAPI GetDIBits(_In_ HDC hdc, _In_ HBITMAP hbm, _In_ UINT start, _In_ UINT cLines, _Out_opt_ LPVOID lpvBits, _At_((LPBITMAPINFOHEADER) lpbmi, _Inout_) LPBITMAPINFO lpbmi, _In_ UINT usage)
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
HBITMAP WINAPI CreateCompatibleBitmap(_In_ HDC hdc, _In_ INT cx, _In_ INT cy)
BOOL WINAPI DeleteDC(_In_ HDC)
HDC WINAPI CreateDCW(_In_opt_ LPCWSTR pszDriver, _In_opt_ LPCWSTR pszDevice, _In_opt_ LPCWSTR psz, _In_opt_ const DEVMODEW *pdmInit)
BOOL WINAPI GetIconInfo(_In_ HICON, _Out_ PICONINFO)
#define LR_COPYFROMRESOURCE
BOOL WINAPI DrawIcon(_In_ HDC, _In_ int, _In_ int, _In_ HICON)
HICON WINAPI CopyIcon(_In_ HICON)
HANDLE WINAPI LoadImageW(_In_opt_ HINSTANCE hInst, _In_ LPCWSTR name, _In_ UINT type, _In_ int cx, _In_ int cy, _In_ UINT fuLoad)
HANDLE WINAPI CopyImage(_In_ HANDLE, _In_ UINT, _In_ int, _In_ int, _In_ UINT)
#define MAKEINTRESOURCEA(i)
#define MAKEINTRESOURCEW(i)
HICON WINAPI LoadIconW(_In_opt_ HINSTANCE hInstance, _In_ LPCWSTR lpIconName)
BOOL WINAPI DestroyIcon(_In_ HICON)