1 /*
2  * PROJECT:         ReactOS api tests
3  * LICENSE:         GPL - See COPYING in the top level directory
4  * PURPOSE:         Test for NtGdiIntersectClipRect
5  * PROGRAMMERS:
6  */
7 
8 #include <win32nt.h>
9 
10 START_TEST(NtGdiIntersectClipRect)
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(NtGdiIntersectClipRect(NULL, 0, 0, 0, 0), ERROR);
23     ok_int(GetLastError(), ERROR_INVALID_HANDLE);
24 
25     /* Test invalid DC */
26     SetLastError(0x12345);
27     ok_int(NtGdiIntersectClipRect((HDC)(ULONG_PTR)0x12345, 0, 0, 0, 0), ERROR);
28     ok((GetLastError() == ERROR_INVALID_HANDLE), "ERROR_INVALID_HANDLE, got %ld\n", GetLastError());
29 }
30