11{
14 HBITMAP hbmp1, hOldBmp1, hbmp2, hOldBmp2;
15 DWORD bytes1[4] = {0x00ff0000, 0x0000ff00, 0x000000ff, 0x00ffffff};
16 DWORD bytes2[4] = {0x00000000, 0x0000000, 0x0000000, 0x00000000};
17
18
20 bRet =
NtGdiBitBlt((
HDC)0, 0, 0, 10, 10, (
HDC)0, 10, 10,
SRCCOPY, 0, 0);
23
24
26 bRet =
NtGdiBitBlt((
HDC)0x123456, 0, 0, 10, 10, (
HDC)0x123456, 10, 10,
SRCCOPY, 0, 0);
29
32
35
37 ok(hbmp1 !=
NULL,
"hbmp1 was NULL.\n");
39
44
46 ok(hbmp2 !=
NULL,
"hbmp2 was NULL.\n");
48
49 bRet =
NtGdiBitBlt(
hdc2, 1, 1, -2, -2,
hdc1, 0, 0,
SRCCOPY, 0, 0);
56
57 bRet =
NtGdiBitBlt(
hdc2, 1, 1, -2, -2,
hdc1, 1, 1,
SRCCOPY, 0, 0);
64
66
67 bRet =
NtGdiBitBlt(
hdc2, 1, 1, -2, -2,
hdc1, 0, 0,
SRCCOPY, 0, 0);
74
75 bRet =
NtGdiBitBlt(
hdc2, 1, 1, -2, -2,
hdc1, 2, 2,
SRCCOPY, 0, 0);
82
84
85 bRet =
NtGdiBitBlt(
hdc2, 2, 2, -2, -2,
hdc1, 2, 2,
SRCCOPY, 0, 0);
92
97
98 bRet =
NtGdiBitBlt(
hdc2, 0, 0, 2, 2,
hdc1, 0, 0,
SRCCOPY, 0, 0);
105
108
111
114}
#define ok_long(expression, result)
#define ok_int(expression, result)
__kernel_entry W32KAPI DWORD APIENTRY NtGdiGetPixel(_In_ HDC hdc, _In_ INT x, _In_ INT y)
__kernel_entry W32KAPI HDC APIENTRY NtGdiCreateCompatibleDC(_In_opt_ HDC hdc)
__kernel_entry W32KAPI BOOL APIENTRY NtGdiBitBlt(_In_ HDC hdcDst, _In_ INT x, _In_ INT y, _In_ INT cx, _In_ INT cy, _In_opt_ HDC hdcSrc, _In_ INT xSrc, _In_ INT ySrc, _In_ DWORD rop4, _In_ DWORD crBackColor, _In_ FLONG fl)
__kernel_entry W32KAPI HBITMAP APIENTRY NtGdiCreateBitmap(_In_ INT cx, _In_ INT cy, _In_ UINT cPlanes, _In_ UINT cBPP, _In_opt_ LPBYTE pjInit)
__kernel_entry W32KAPI COLORREF APIENTRY NtGdiSetPixel(_In_ HDC hdcDst, _In_ INT x, _In_ INT y, _In_ COLORREF crColor)
DWORD WINAPI GetLastError(void)
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
BOOL WINAPI DeleteDC(_In_ HDC)