ReactOS  0.4.15-dev-492-ga1108f6
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 ERROR_INVALID_PARAMETER
Definition: compat.h:91
HDC WINAPI GetDC(_In_opt_ HWND)
#define ERROR(name)
Definition: error_private.h:53
__kernel_entry W32KAPI INT APIENTRY NtGdiExtSelectClipRgn(_In_ HDC hdc, _In_opt_ HRGN hrgn, _In_ INT iMode)
#define ERROR_INVALID_HANDLE
Definition: compat.h:88
static HDC
Definition: imagelist.c:92
#define COMPLEXREGION
Definition: wingdi.h:362
#define NULLREGION
Definition: wingdi.h:360
DWORD WINAPI GetLastError(VOID)
Definition: except.c:1059
#define ok_long(expression, result)
Definition: atltest.h:133
#define RGN_AND
Definition: wingdi.h:355
#define RGN_XOR
Definition: wingdi.h:359
smooth NULL
Definition: ftsmooth.c:416
#define ok_int(expression, result)
Definition: atltest.h:134
#define RGN_OR
Definition: wingdi.h:358
HRGN WINAPI CreateRectRgn(_In_ int, _In_ int, _In_ int, _In_ int)
#define SetLastError(x)
Definition: compat.h:418
HDC hdc
Definition: main.c:9
#define RGN_COPY
Definition: wingdi.h:356
#define SIMPLEREGION
Definition: wingdi.h:361
#define RGN_DIFF
Definition: wingdi.h:357