[ROSTESTS]
[reactos.git] / rostests / apitests / w32knapi / ntgdi / NtGdiArcInternal.c
1 INT
2 Test_NtGdiArcInternal(PTESTINFO pti)
3 {
4 HDC hDC = CreateDCW(L"Display",NULL,NULL,NULL);
5
6 SetLastError(ERROR_SUCCESS);
7 TEST(NtGdiArcInternal(0, 0, 0, 0, 0, 0, 0, 0, 0, 0) == FALSE);
8 TEST(GetLastError() == ERROR_INVALID_HANDLE);
9
10 SetLastError(ERROR_SUCCESS);
11 TEST(NtGdiArcInternal(0, hDC, 0, 0, 0, 0, 0, 0, 0, 0) == TRUE);
12 TEST(NtGdiArcInternal(1, hDC, 0, 0, 0, 0, 0, 0, 0, 0) == TRUE);
13 TEST(NtGdiArcInternal(2, hDC, 0, 0, 0, 0, 0, 0, 0, 0) == TRUE);
14 TEST(NtGdiArcInternal(3, hDC, 0, 0, 0, 0, 0, 0, 0, 0) == TRUE);
15 TEST(GetLastError() == ERROR_SUCCESS);
16
17 SetLastError(ERROR_SUCCESS);
18 TEST(NtGdiArcInternal(4, hDC, 0, 0, 0, 0, 0, 0, 0, 0) == FALSE);
19 TEST(GetLastError() == ERROR_INVALID_PARAMETER);
20
21 SetLastError(ERROR_SUCCESS);
22 TEST(NtGdiArcInternal(4, (HDC)10, 0, 0, 0, 0, 0, 0, 0, 0) == FALSE);
23 TEST(GetLastError() == ERROR_INVALID_HANDLE);
24
25 SetLastError(ERROR_SUCCESS);
26 TEST(NtGdiArcInternal(0, hDC, 10, 10, 0, 0, 0, 0, 0, 0) == TRUE);
27 TEST(NtGdiArcInternal(0, hDC, 10, 10, -10, -10, 0, 0, 0, 0) == TRUE);
28 TEST(NtGdiArcInternal(0, hDC, 0, 0, 0, 0, 10, 0, -10, 0) == TRUE);
29
30 // was passiert, wenn left > right ? einfach tauschen?
31
32
33 DeleteDC(hDC);
34
35 return APISTATUS_NORMAL;
36 }