2 Test_NtGdiArcInternal(PTESTINFO pti
)
4 HDC hDC
= CreateDCW(L
"Display",NULL
,NULL
,NULL
);
6 SetLastError(ERROR_SUCCESS
);
7 TEST(NtGdiArcInternal(0, 0, 0, 0, 0, 0, 0, 0, 0, 0) == FALSE
);
8 TEST(GetLastError() == ERROR_INVALID_HANDLE
);
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
);
17 SetLastError(ERROR_SUCCESS
);
18 TEST(NtGdiArcInternal(4, hDC
, 0, 0, 0, 0, 0, 0, 0, 0) == FALSE
);
19 TEST(GetLastError() == ERROR_INVALID_PARAMETER
);
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
);
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
);
30 // was passiert, wenn left > right ? einfach tauschen?
35 return APISTATUS_NORMAL
;