ReactOS 0.4.15-dev-7842-g558ab78
NtGdiExcludeClipRect.c File Reference
#include "../win32nt.h"
Include dependency graph for NtGdiExcludeClipRect.c:

Go to the source code of this file.

Functions

 START_TEST (NtGdiExcludeClipRect)
 

Function Documentation

◆ START_TEST()

START_TEST ( NtGdiExcludeClipRect  )

Definition at line 10 of file NtGdiExcludeClipRect.c.

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);
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}
#define ok(value,...)
Definition: atltest.h:57
#define ok_int(expression, result)
Definition: atltest.h:134
#define NULL
Definition: types.h:112
#define SetLastError(x)
Definition: compat.h:752
#define ERROR_INVALID_HANDLE
Definition: compat.h:98
#define ERROR(name)
Definition: error_private.h:53
static HDC
Definition: imagelist.c:92
__kernel_entry W32KAPI INT APIENTRY NtGdiExcludeClipRect(_In_ HDC hdc, _In_ INT xLeft, _In_ INT yTop, _In_ INT xRight, _In_ INT yBottom)
Definition: cliprgn.c:438
uint32_t ULONG_PTR
Definition: typedefs.h:65
DWORD WINAPI GetLastError(void)
Definition: except.c:1042