13 iconinfo.
fIcon = fIcon;
20 ok(hicon == 0,
"should fail\n");
24 ok(hicon != 0,
"should not fail\n");
63 ok(hicon != 0,
"should not fail\n");
106 ok(hicon == 0,
"should fail\n");
111 ok(hicon == 0,
"should fail\n");
115 ok(hicon != 0,
"should not fail\n");
132 ok(
bitmap.bmWidthBytes == screen_bpp,
"%ld\n",
bitmap.bmWidthBytes);
161 trace(
"Screen bpp: %lu.\n", screenbpp);
168 ok(iconinfo2.
fIcon == 0,
"\n");
189 for(creationbpp = 16; creationbpp <=32; creationbpp += 8)
194 skip(
"Unable to change bpp to %lu.\n", creationbpp);
197 trace(
"starting with creationbpp = %lu\n", creationbpp);
204 ok(hcursor != 0,
"should not fail\n");
209 trace(
"testing resetting to %lu\n",
bpp);
213 skip(
"Unable to change bpp to %lu.\n",
bpp);
217 ok(iconinfo2.
fIcon == 1,
"\n");
238 ok(
bitmap.bmBitsPixel == (creationbpp == 32 ? 32 :
bpp),
"creationbpp: %lu, bpp: %lu:\n", creationbpp,
bpp);
250 trace(
"Unable to go back to previous display settings. Sorry.\n");
253 ok(hcursor != 0,
"should not fail\n");
255 ok(iconinfo2.
fIcon == 0,
"\n");
void Test_GetIconInfo(BOOL fIcon, DWORD screen_bpp)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
LONG WINAPI ChangeDisplaySettingsExW(LPCWSTR lpszDeviceName, LPDEVMODEW lpDevMode, HWND hwnd, DWORD dwflags, LPVOID lParam)
BOOL WINAPI EnumDisplaySettingsW(LPCWSTR lpszDeviceName, DWORD iModeNum, LPDEVMODEW lpDevMode)
DWORD WINAPI GetLastError(void)
HBITMAP WINAPI CreateBitmap(_In_ INT cx, _In_ INT cy, _In_ UINT cPlanes, _In_ UINT cBitsPerPel, _In_opt_ const VOID *pvBits)
HBITMAP WINAPI CreateCompatibleBitmap(_In_ HDC hdc, _In_ INT cx, _In_ INT cy)
HICON WINAPI CreateIconIndirect(_In_ PICONINFO)
BOOL WINAPI DestroyCursor(_In_ HCURSOR)
BOOL WINAPI GetIconInfo(_In_ HICON, _Out_ PICONINFO)
#define DISP_CHANGE_SUCCESSFUL
#define ENUM_CURRENT_SETTINGS
HDC WINAPI GetDC(_In_opt_ HWND)
HCURSOR WINAPI CreateCursor(_In_opt_ HINSTANCE, _In_ int, _In_ int, _In_ int, _In_ int, _In_ CONST VOID *, _In_ CONST VOID *)
int WINAPI GetSystemMetrics(_In_ int)
BOOL WINAPI DestroyIcon(_In_ HICON)