[SHELL32_APITEST] -Add some tests for SHParseDisplayName for CORE-12882.
[reactos.git] / rostests / apitests / win32nt / ntgdi / NtGdiArcInternal.c
1 /*
2 * PROJECT: ReactOS api tests
3 * LICENSE: GPL - See COPYING in the top level directory
4 * PURPOSE: Test for NtGdiArcInternal
5 * PROGRAMMERS:
6 */
7
8 #include <win32nt.h>
9
10 START_TEST(NtGdiArcInternal)
11 {
12 HDC hDC = CreateDCW(L"Display",NULL,NULL,NULL);
13
14 SetLastError(ERROR_SUCCESS);
15 TEST(NtGdiArcInternal(0, 0, 0, 0, 0, 0, 0, 0, 0, 0) == FALSE);
16 TEST(GetLastError() == ERROR_INVALID_HANDLE);
17
18 SetLastError(ERROR_SUCCESS);
19 TEST(NtGdiArcInternal(0, hDC, 0, 0, 0, 0, 0, 0, 0, 0) == TRUE);
20 TEST(NtGdiArcInternal(1, hDC, 0, 0, 0, 0, 0, 0, 0, 0) == TRUE);
21 TEST(NtGdiArcInternal(2, hDC, 0, 0, 0, 0, 0, 0, 0, 0) == TRUE);
22 TEST(NtGdiArcInternal(3, hDC, 0, 0, 0, 0, 0, 0, 0, 0) == TRUE);
23 TEST(GetLastError() == ERROR_SUCCESS);
24
25 SetLastError(ERROR_SUCCESS);
26 TEST(NtGdiArcInternal(4, hDC, 0, 0, 0, 0, 0, 0, 0, 0) == FALSE);
27 TEST(GetLastError() == ERROR_INVALID_PARAMETER);
28
29 SetLastError(ERROR_SUCCESS);
30 TEST(NtGdiArcInternal(4, (HDC)10, 0, 0, 0, 0, 0, 0, 0, 0) == FALSE);
31 TEST(GetLastError() == ERROR_INVALID_HANDLE);
32
33 SetLastError(ERROR_SUCCESS);
34 TEST(NtGdiArcInternal(0, hDC, 10, 10, 0, 0, 0, 0, 0, 0) == TRUE);
35 TEST(NtGdiArcInternal(0, hDC, 10, 10, -10, -10, 0, 0, 0, 0) == TRUE);
36 TEST(NtGdiArcInternal(0, hDC, 0, 0, 0, 0, 10, 0, -10, 0) == TRUE);
37
38 // was passiert, wenn left > right ? einfach tauschen?
39
40 DeleteDC(hDC);
41 }