35{
37 struct
38 {
42
46
48 ok(hDCScreen !=
NULL,
"hDCScreen was NULL.\n");
49
52
54 ok_int(NtGdiGetDIBitsInternal(0, 0, 0, 0,
NULL,
NULL, 0, 0, 0), 0);
56
60
64
68
72
76
79 "NtGdiGetDIBitsInternal((HDC)0, hBitmap, 0, 15, NULL, &bmp.bi, 0, 0, 0) <= 0.\n");
82
86
89 "The return value was <= 0.\n");
92
96
101
103
106 ok_long(
bmp.bi.bmiHeader.biBitCount, ScreenBpp);
107 ok_long(
bmp.bi.bmiHeader.biSizeImage, (16 * 16) * (ScreenBpp / 8));
108
110
111
112
114
115
120
123 ok_long(
bmp.bi.bmiHeader.biBitCount, ScreenBpp);
124 ok_long(
bmp.bi.bmiHeader.biSizeImage, (16 * 16) * (ScreenBpp / 8));
125
126 ok(
bmp.Colors[0].rgbRed != 0x44,
"bmp.Colors[0].rgbRed was 0x44.\n");
127
128
135
136
139
140}
UINT FASTCALL DIB_BitmapMaxBitsSize(PBITMAPINFO Info, UINT ScanLines)
#define ok_long(expression, result)
#define ok_int(expression, result)
#define FillMemory(BUF, SIZ, MASK)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
BITMAPCOREHEADER bmciHeader
DWORD WINAPI GetLastError(void)
int WINAPI GetDeviceCaps(_In_opt_ HDC, _In_ int)
struct tagBITMAPCOREHEADER BITMAPCOREHEADER
HBITMAP WINAPI CreateCompatibleBitmap(_In_ HDC hdc, _In_ INT cx, _In_ INT cy)
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
HDC WINAPI GetDC(_In_opt_ HWND)