ReactOS
0.4.16-dev-321-g63bb46a
NtGdiExcludeClipRect.c
Go to the documentation of this file.
1
/*
2
* PROJECT: ReactOS api tests
3
* LICENSE: GPL - See COPYING in the top level directory
4
* PURPOSE: Test for NtGdiExcludeClipRect
5
* PROGRAMMERS:
6
*/
7
8
#include "../win32nt.h"
9
10
START_TEST
(
NtGdiExcludeClipRect
)
11
{
12
//HDC hdc;
13
// test what params are accepted for what operations
14
// 0? invalid? are params maybe ignored in some cases?
15
// LastError
16
17
/* Preparation */
18
//hdc = CreateCompatibleDC(NULL);
19
20
/* Test NULL DC */
21
SetLastError
(0x12345);
22
ok_int
(
NtGdiExcludeClipRect
(
NULL
, 0, 0, 0, 0),
ERROR
);
23
ok_int
(
GetLastError
(),
ERROR_INVALID_HANDLE
);
24
25
/* Test invalid DC */
26
SetLastError
(0x12345);
27
ok_int
(
NtGdiExcludeClipRect
((
HDC
)(
ULONG_PTR
)0x12345, 0, 0, 0, 0),
ERROR
);
28
ok
((
GetLastError
() ==
ERROR_INVALID_HANDLE
),
"ERROR_INVALID_HANDLE, got %ld\n"
,
GetLastError
());
29
30
}
ok
#define ok(value,...)
Definition:
atltest.h:57
START_TEST
#define START_TEST(x)
Definition:
atltest.h:75
ok_int
#define ok_int(expression, result)
Definition:
atltest.h:134
NULL
#define NULL
Definition:
types.h:112
SetLastError
#define SetLastError(x)
Definition:
compat.h:752
ERROR_INVALID_HANDLE
#define ERROR_INVALID_HANDLE
Definition:
compat.h:98
ERROR
#define ERROR(name)
Definition:
error_private.h:53
HDC
static HDC
Definition:
imagelist.c:88
NtGdiExcludeClipRect
__kernel_entry W32KAPI INT APIENTRY NtGdiExcludeClipRect(_In_ HDC hdc, _In_ INT xLeft, _In_ INT yTop, _In_ INT xRight, _In_ INT yBottom)
Definition:
cliprgn.c:440
ULONG_PTR
uint32_t ULONG_PTR
Definition:
typedefs.h:65
GetLastError
DWORD WINAPI GetLastError(void)
Definition:
except.c:1042
modules
rostests
apitests
win32nt
ntgdi
NtGdiExcludeClipRect.c
Generated on Fri Dec 6 2024 06:07:54 for ReactOS by
1.9.6