ReactOS 0.4.15-dev-7681-g776c3a3
NtGdiExtSelectClipRgn.c File Reference
#include "../win32nt.h"
Include dependency graph for NtGdiExtSelectClipRgn.c:

Go to the source code of this file.

Functions

 START_TEST (NtGdiExtSelectClipRgn)
 

Function Documentation

◆ START_TEST()

START_TEST ( NtGdiExtSelectClipRgn  )

Definition at line 10 of file NtGdiExtSelectClipRgn.c.

11{
12 HRGN hRgnDest, hRgn1, hRgn2;
13 HDC hdc;
14// test what params are accepted for what operations
15// 0? invalid? are params maybe ignored in some cases?
16// LastError
17
18 /* Preparation */
19 hRgnDest = CreateRectRgn(100, 100, 100, 100);
20 hRgn1 = CreateRectRgn(1,1,4,4);
21 hRgn2 = CreateRectRgn(2,2,6,3);
22
23 hdc = GetDC(NULL);
24
25 /* RGN_AND = 1, RGN_OR = 2, RGN_XOR = 3, RGN_DIFF = 4, RGN_COPY = 5 */
26
27 SetLastError(0xDEADFACE);
30 SetLastError(0xDEADFACE);
33 SetLastError(0xDEADFACE);
50 SetLastError(0xDEADFACE);
55 ok_long(GetLastError(), 0xDEADFACE);
57}
#define ok_long(expression, result)
Definition: atltest.h:133
#define ok_int(expression, result)
Definition: atltest.h:134
#define NULL
Definition: types.h:112
#define ERROR_INVALID_PARAMETER
Definition: compat.h:101
#define SetLastError(x)
Definition: compat.h:752
#define ERROR_INVALID_HANDLE
Definition: compat.h:98
#define ERROR(name)
Definition: error_private.h:53
HDC hdc
Definition: main.c:9
static HDC
Definition: imagelist.c:92
__kernel_entry W32KAPI INT APIENTRY NtGdiExtSelectClipRgn(_In_ HDC hdc, _In_opt_ HRGN hrgn, _In_ INT iMode)
DWORD WINAPI GetLastError(void)
Definition: except.c:1042
#define COMPLEXREGION
Definition: wingdi.h:363
HRGN WINAPI CreateRectRgn(_In_ int, _In_ int, _In_ int, _In_ int)
#define RGN_DIFF
Definition: wingdi.h:358
#define NULLREGION
Definition: wingdi.h:361
#define RGN_COPY
Definition: wingdi.h:357
#define RGN_AND
Definition: wingdi.h:356
#define SIMPLEREGION
Definition: wingdi.h:362
#define RGN_XOR
Definition: wingdi.h:360
#define RGN_OR
Definition: wingdi.h:359
HDC WINAPI GetDC(_In_opt_ HWND)