26{
27 static const DWORD InBits[8] = { 0x81, 0x7E, 0x5A, 0x7E, 0x7E, 0x42, 0x7E, 0x81 };
30
32 100, 100, 200, 200,
34
36 struct
37 {
40 } bmi;
42
44 bmi.bmiHeader.biWidth = 8;
45 bmi.bmiHeader.biHeight = -8;
46 bmi.bmiHeader.biPlanes = 1;
47 bmi.bmiHeader.biBitCount = 1;
48 bmi.bmiHeader.biCompression = 0;
49 bmi.bmiHeader.biSizeImage = 0;
50 bmi.bmiHeader.biXPelsPerMeter = 0;
51 bmi.bmiHeader.biYPelsPerMeter = 0;
52 bmi.bmiHeader.biClrUsed = 0;
53 bmi.bmiHeader.biClrImportant = 0;
54 *(
DWORD *)&bmi.bmiColors[0] = 0x000000;
55 *(
DWORD *)&bmi.bmiColors[1] = 0xFFFFFF;
56
57
60 sizeof(InBits),
sizeof(bmi),
TRUE,
NULL));
61
62
64
65 TEST(
memcmp(InBits, OutBits,
sizeof(InBits)) == 0);
66
67
73
76 sizeof(InBits),
sizeof(bmi),
TRUE,
NULL));
77
82
83
84 for (
y = 0;
y < 8;
y++)
85 {
87 for (
x = 0;
x < 8;
x++)
90 }
91
92 TEST(
memcmp(InBits, OutBits,
sizeof(InBits)) == 0);
93
94
97
98}
void ReadBits(HDC hDC, PDWORD OutBits)
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
__kernel_entry W32KAPI INT APIENTRY NtGdiSetDIBitsToDeviceInternal(_In_ HDC hdcDest, _In_ INT xDst, _In_ INT yDst, _In_ DWORD cx, _In_ DWORD cy, _In_ INT xSrc, _In_ INT ySrc, _In_ DWORD iStartScan, _In_ DWORD cNumScan, _In_reads_bytes_(cjMaxBits) LPBYTE pInitBits, _In_reads_bytes_(cjMaxInfo) LPBITMAPINFO pbmi, _In_ DWORD iUsage, _In_ UINT cjMaxBits, _In_ UINT cjMaxInfo, _In_ BOOL bTransformCoordinates, _In_opt_ HANDLE hcmXform)
BOOL WINAPI GetWorldTransform(_In_ HDC, _Out_ LPXFORM)
BOOL WINAPI SetWorldTransform(_In_ HDC, _In_ const XFORM *)
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
HDC WINAPI GetDC(_In_opt_ HWND)
#define CreateWindowW(a, b, c, d, e, f, g, h, i, j, k)
BOOL WINAPI DestroyWindow(_In_ HWND)