11{
12 struct
13 {
16 } bmibuffer;
23
25 ok(
hdc != 0,
"failed\n");
26
31 ok_long(aulColors[0], 0x000000);
32 ok_long(aulColors[1], 0xffffff);
33
37 ok(
hbmpOld != 0,
"Failed to select bitmap\n");
41 ok_long(aulColors[0], 0x000000);
42 ok_long(aulColors[1], 0xffffff);
45
46
58 bmibuffer.bmiColors[0] = 0xff0000;
59 bmibuffer.bmiColors[1] = 0x00ff00;
60 bmibuffer.bmiColors[2] = 0x0000ff;
61
65
68 ok_long(aulColors[0], 0xff0000);
69 ok_long(aulColors[1], 0x00ff00);
70 ok_long(aulColors[2], 0x0000ff);
71 ok_long(aulColors[3], 0x000000);
72
73
76
77 aulColors[3] = 0x000F0F;
80
83 ok_long(aulColors[0], 0xff0000);
84 ok_long(aulColors[1], 0x00ff00);
85 ok_long(aulColors[2], 0x0000ff);
86 ok_long(aulColors[3], 0x000F0F);
87
88
91
92 bmibuffer.bmiColors[0] = 1;
93 bmibuffer.bmiColors[1] = 2;
94 bmibuffer.bmiColors[2] = 3;
95
99
100
101}
#define ok_long(expression, result)
_In_ HBITMAP _In_ UINT _In_ UINT _Inout_ LPBITMAPINFO pbmi
BITMAPINFOHEADER bmiHeader
HBITMAP WINAPI CreateDIBSection(HDC hDC, CONST BITMAPINFO *BitmapInfo, UINT Usage, VOID **Bits, HANDLE hSection, DWORD dwOffset)
UINT WINAPI GetDIBColorTable(HDC hDC, UINT iStartIndex, UINT cEntries, RGBQUAD *pColors)
DWORD WINAPI GetLastError(void)
HGDIOBJ WINAPI GetStockObject(_In_ int)
HBITMAP WINAPI CreateBitmap(_In_ INT cx, _In_ INT cy, _In_ UINT cPlanes, _In_ UINT cBitsPerPel, _In_opt_ const VOID *pvBits)
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
UINT WINAPI SetDIBColorTable(_In_ HDC hdc, _In_ UINT iStart, _In_ UINT cEntries, _In_reads_(cEntries) const RGBQUAD *prgbq)