27 bmi.bmiHeader.biWidth = 2;
28 bmi.bmiHeader.biHeight = 2;
29 bmi.bmiHeader.biPlanes = 1;
30 bmi.bmiHeader.biBitCount = 1;
31 bmi.bmiHeader.biCompression =
BI_RGB;
32 bmi.bmiHeader.biSizeImage = 0;
33 bmi.bmiHeader.biXPelsPerMeter = 100;
34 bmi.bmiHeader.biYPelsPerMeter = 100;
35 bmi.bmiHeader.biClrUsed = 2;
36 bmi.bmiHeader.biClrImportant = 2;
50 HPALETTE hOldPalette, hPalette;
51 LOGPALETTE logpal = {0x300, 1, {{12,13,14,15}}};
103 TEST(hOldPalette == hPalette);
108 TEST(hOldBmp == hBmp);
void Test_SelectDIBSection(void)
__kernel_entry W32KAPI HBITMAP APIENTRY NtGdiSelectBitmap(_In_ HDC hdc, _In_ HBITMAP hbm)
_In_ HBITMAP _In_ UINT _In_ UINT _Inout_ LPBITMAPINFO pbmi
HBITMAP WINAPI CreateDIBSection(HDC hDC, CONST BITMAPINFO *BitmapInfo, UINT Usage, VOID **Bits, HANDLE hSection, DWORD dwOffset)
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)
HPALETTE WINAPI CreatePalette(_In_reads_(_Inexpressible_(2 *sizeof(WORD)+plpal->palNumEntries *sizeof(PALETTEENTRY))) const LOGPALETTE *)
HPALETTE WINAPI SelectPalette(_In_ HDC, _In_ HPALETTE, _In_ BOOL)
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
struct tagBITMAPINFO * PBITMAPINFO
BOOL WINAPI DeleteDC(_In_ HDC)
HDC WINAPI GetDC(_In_opt_ HWND)