2015-12-28 20:31:10 +00:00
|
|
|
/*
|
|
|
|
* PROJECT: ReactOS api tests
|
|
|
|
* LICENSE: GPL - See COPYING in the top level directory
|
|
|
|
* PURPOSE: Test for NtGdiArcInternal
|
|
|
|
* PROGRAMMERS:
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <win32nt.h>
|
|
|
|
|
|
|
|
START_TEST(NtGdiArcInternal)
|
2008-06-01 18:06:22 +00:00
|
|
|
{
|
2019-01-30 13:55:10 +00:00
|
|
|
HDC hDC = CreateDCW(L"Display",NULL,NULL,NULL);
|
2008-06-01 18:06:22 +00:00
|
|
|
|
2019-01-30 13:55:10 +00:00
|
|
|
SetLastError(ERROR_SUCCESS);
|
|
|
|
ok_int(NtGdiArcInternal(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), FALSE);
|
|
|
|
ok_long(GetLastError(), ERROR_INVALID_HANDLE);
|
2008-06-01 18:06:22 +00:00
|
|
|
|
2019-01-30 13:55:10 +00:00
|
|
|
SetLastError(ERROR_SUCCESS);
|
|
|
|
ok_int(NtGdiArcInternal(0, hDC, 0, 0, 0, 0, 0, 0, 0, 0), TRUE);
|
|
|
|
ok_int(NtGdiArcInternal(1, hDC, 0, 0, 0, 0, 0, 0, 0, 0), TRUE);
|
|
|
|
ok_int(NtGdiArcInternal(2, hDC, 0, 0, 0, 0, 0, 0, 0, 0), TRUE);
|
|
|
|
ok_int(NtGdiArcInternal(3, hDC, 0, 0, 0, 0, 0, 0, 0, 0), TRUE);
|
|
|
|
ok_long(GetLastError(), ERROR_SUCCESS);
|
2008-06-01 18:06:22 +00:00
|
|
|
|
2019-01-30 13:55:10 +00:00
|
|
|
SetLastError(ERROR_SUCCESS);
|
|
|
|
ok_int(NtGdiArcInternal(4, hDC, 0, 0, 0, 0, 0, 0, 0, 0), FALSE);
|
|
|
|
ok_long(GetLastError(), ERROR_INVALID_PARAMETER);
|
2008-06-01 18:06:22 +00:00
|
|
|
|
2019-01-30 13:55:10 +00:00
|
|
|
SetLastError(ERROR_SUCCESS);
|
|
|
|
ok_int(NtGdiArcInternal(4, (HDC)10, 0, 0, 0, 0, 0, 0, 0, 0), FALSE);
|
|
|
|
ok_long(GetLastError(), ERROR_INVALID_HANDLE);
|
2008-06-01 18:06:22 +00:00
|
|
|
|
2019-01-30 13:55:10 +00:00
|
|
|
SetLastError(ERROR_SUCCESS);
|
|
|
|
ok_int(NtGdiArcInternal(0, hDC, 10, 10, 0, 0, 0, 0, 0, 0), TRUE);
|
|
|
|
ok_int(NtGdiArcInternal(0, hDC, 10, 10, -10, -10, 0, 0, 0, 0), TRUE);
|
|
|
|
ok_int(NtGdiArcInternal(0, hDC, 0, 0, 0, 0, 10, 0, -10, 0), TRUE);
|
2008-06-01 18:06:22 +00:00
|
|
|
|
|
|
|
// was passiert, wenn left > right ? einfach tauschen?
|
|
|
|
|
2019-01-30 13:55:10 +00:00
|
|
|
DeleteDC(hDC);
|
2008-06-01 18:06:22 +00:00
|
|
|
}
|