37 {0x12,0x34,0x56,0x11}};
89 ok_int(palEntries2[0].peRed, 1);
90 ok_int(palEntries2[0].peGreen, 2);
91 ok_int(palEntries2[0].peBlue, 3);
92 ok_int(palEntries2[0].peFlags, 0);
93 ok_int(palEntries2[1].peRed, palEntries[1].peRed);
94 ok_int(palEntries2[1].peGreen, palEntries[1].peGreen);
95 ok_int(palEntries2[1].peBlue, palEntries[1].peBlue);
96 ok_int(palEntries2[1].peFlags, palEntries[1].peFlags);
97 ok_int(palEntries2[2].peRed, 11);
98 ok_int(palEntries2[2].peGreen, 55);
99 ok_int(palEntries2[2].peBlue, 77);
101 ok_int(palEntries2[3].peRed, palEntries[3].peRed);
102 ok_int(palEntries2[3].peGreen, palEntries[3].peGreen);
103 ok_int(palEntries2[3].peBlue, palEntries[3].peBlue);
104 ok_int(palEntries2[3].peFlags, palEntries[3].peFlags);
113 HPALETTE hPal, hOldPal;
119 {0x12,0x34,0x56,0x11}};
146 ok_int(
memcmp(palEntries2, palEntries,
sizeof(palEntries)), 0);
151 ok_int(
memcmp(palEntries2, palEntries,
sizeof(palEntries)), 0);
160 ok_int(palEntries2[0].peRed, 0);
161 ok_int(palEntries2[0].peGreen, 0);
162 ok_int(palEntries2[0].peBlue, 0);
163 ok_int(palEntries2[0].peFlags, 0);
228 bmi.bmiHeader.biWidth = 10;
229 bmi.bmiHeader.biHeight = 10;
230 bmi.bmiHeader.biPlanes = 1;
231 bmi.bmiHeader.biBitCount = 8;
232 bmi.bmiHeader.biCompression =
BI_RGB;
233 bmi.bmiHeader.biSizeImage = 0;
234 bmi.bmiHeader.biXPelsPerMeter = 1;
235 bmi.bmiHeader.biYPelsPerMeter = 1;
236 bmi.bmiHeader.biClrUsed = 9;
237 bmi.bmiHeader.biClrImportant = 9;
238 bmi.bmiColors[0] = 0x000000;
239 bmi.bmiColors[1] = 0x202020;
240 bmi.bmiColors[2] = 0x404040;
241 bmi.bmiColors[3] = 0x606060;
242 bmi.bmiColors[4] = 0x808080;
243 bmi.bmiColors[5] = 0xA0A0A0;
244 bmi.bmiColors[6] = 0xC0C0C0;
245 bmi.bmiColors[7] = 0xE0E0E0;
246 bmi.bmiColors[8] = 0xffffff;
249 ok(pjBits !=
NULL,
"pjBits was NULL.\n");
void Test_NtGdiDoPalette_GdiPalSetEntries(void)
HPALETTE CreateTestPalette()
void Test_NtGdiDoPalette_GetSystemPalette(void)
void Test_NtGdiDoPalette_GdiPalAnimate(void)
void Test_NtGdiDoPalette_SetDIBColorTable(void)
void Test_NtGdiDoPalette_GdiPalGetEntries(void)
void Test_NtGdiDoPalette_GetBIBColorTable(void)
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
#define ok_long(expression, result)
#define ok_int(expression, result)
__kernel_entry W32KAPI LONG APIENTRY NtGdiDoPalette(_In_ HGDIOBJ hObj, _In_ WORD iStart, _In_ WORD cEntries, _When_(bInbound!=0, _In_reads_bytes_(cEntries *sizeof(PALETTEENTRY))) _When_(bInbound==0, _Out_writes_bytes_(cEntries *sizeof(PALETTEENTRY))) LPVOID pEntries, _In_ DWORD iFunc, _In_ BOOL bInbound)
HBITMAP WINAPI CreateDIBSection(HDC hDC, CONST BITMAPINFO *BitmapInfo, UINT Usage, VOID **Bits, HANDLE hSection, DWORD dwOffset)
COLORREF WINAPI SetDCPenColor(_In_ HDC hdc, _In_ COLORREF crColor)
COLORREF WINAPI SetDCBrushColor(_In_ HDC hdc, _In_ COLORREF crColor)
DWORD WINAPI GetLastError(void)
HGDIOBJ WINAPI GetStockObject(_In_ int)
HPALETTE WINAPI CreatePalette(_In_reads_(_Inexpressible_(2 *sizeof(WORD)+plpal->palNumEntries *sizeof(PALETTEENTRY))) const LOGPALETTE *)
HPALETTE WINAPI SelectPalette(_In_ HDC, _In_ HPALETTE, _In_ BOOL)
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
BOOL WINAPI Rectangle(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int)
BOOL WINAPI DeleteDC(_In_ HDC)