ntgdi/NtGdiDoPalette.c
ntgdi/NtGdiEngCreatePalette.c
ntgdi/NtGdiEnumFontOpen.c
+ ntgdi/NtGdiExcludeClipRect.c
ntgdi/NtGdiExtSelectClipRgn.c
ntgdi/NtGdiExtTextOutW.c
#ntgdi/NtGdiFlushUserBatch.c
ntgdi/NtGdiGetFontResourceInfoInternalW.c
ntgdi/NtGdiGetRandomRgn.c
ntgdi/NtGdiGetStockObject.c
+ ntgdi/NtGdiIntersectClipRect.c
+ ntgdi/NtGdiOffsetClipRgn.c
ntgdi/NtGdiPolyPolyDraw.c
ntgdi/NtGdiRestoreDC.c
ntgdi/NtGdiSaveDC.c
--- /dev/null
+/*
+ * PROJECT: ReactOS api tests
+ * LICENSE: GPL - See COPYING in the top level directory
+ * PURPOSE: Test for NtGdiExcludeClipRect
+ * PROGRAMMERS:
+ */
+
+#include <win32nt.h>
+
+START_TEST(NtGdiExcludeClipRect)
+{
+ //HDC hdc;
+// test what params are accepted for what operations
+// 0? invalid? are params maybe ignored in some cases?
+// LastError
+
+ /* Preparation */
+ //hdc = CreateCompatibleDC(NULL);
+
+ /* Test NULL DC */
+ SetLastError(0x12345);
+ ok_int(NtGdiExcludeClipRect(NULL, 0, 0, 0, 0), ERROR);
+ ok_int(GetLastError(), ERROR_INVALID_HANDLE);
+
+ /* Test invalid DC */
+ SetLastError(0x12345);
+ ok_int(NtGdiExcludeClipRect((HDC)(ULONG_PTR)0x12345, 0, 0, 0, 0), ERROR);
+ ok((GetLastError() == ERROR_INVALID_HANDLE), "ERROR_INVALID_HANDLE, got %ld\n", GetLastError());
+
+}
/*
* PROJECT: ReactOS api tests
* LICENSE: GPL - See COPYING in the top level directory
- * PURPOSE: Test for NtGdiCombineRgn
+ * PURPOSE: Test for NtGdiExtSelectClipRgn
* PROGRAMMERS:
*/
--- /dev/null
+/*
+ * PROJECT: ReactOS api tests
+ * LICENSE: GPL - See COPYING in the top level directory
+ * PURPOSE: Test for NtGdiIntersectClipRect
+ * PROGRAMMERS:
+ */
+
+#include <win32nt.h>
+
+START_TEST(NtGdiIntersectClipRect)
+{
+ //HDC hdc;
+// test what params are accepted for what operations
+// 0? invalid? are params maybe ignored in some cases?
+// LastError
+
+ /* Preparation */
+ //hdc = CreateCompatibleDC(NULL);
+
+ /* Test NULL DC */
+ SetLastError(0x12345);
+ ok_int(NtGdiIntersectClipRect(NULL, 0, 0, 0, 0), ERROR);
+ ok_int(GetLastError(), ERROR_INVALID_HANDLE);
+
+ /* Test invalid DC */
+ SetLastError(0x12345);
+ ok_int(NtGdiIntersectClipRect((HDC)(ULONG_PTR)0x12345, 0, 0, 0, 0), ERROR);
+ ok((GetLastError() == ERROR_INVALID_HANDLE), "ERROR_INVALID_HANDLE, got %ld\n", GetLastError());
+}
--- /dev/null
+/*
+ * PROJECT: ReactOS api tests
+ * LICENSE: GPL - See COPYING in the top level directory
+ * PURPOSE: Test for NtGdiOffsetClipRgn
+ * PROGRAMMERS:
+ */
+
+#include <win32nt.h>
+
+START_TEST(NtGdiOffsetClipRgn)
+{
+ //HDC hdc;
+// test what params are accepted for what operations
+// 0? invalid? are params maybe ignored in some cases?
+// LastError
+
+ /* Preparation */
+ //hdc = CreateCompatibleDC(NULL);
+
+ /* Test NULL DC */
+ SetLastError(0x12345);
+ ok_int(NtGdiOffsetClipRgn(NULL, 0, 0), ERROR);
+ ok_int(GetLastError(), ERROR_INVALID_HANDLE);
+
+ /* Test invalid DC */
+ SetLastError(0x12345);
+ ok_int(NtGdiOffsetClipRgn((HDC)(ULONG_PTR)0x12345, 0, 0), ERROR);
+ ok((GetLastError() == ERROR_INVALID_HANDLE), "ERROR_INVALID_HANDLE, got %ld\n", GetLastError());
+}
extern void func_NtGdiDoPalette(void);
extern void func_NtGdiEngCreatePalette(void);
extern void func_NtGdiEnumFontOpen(void);
+extern void func_NtGdiExcludeClipRect(void);
extern void func_NtGdiExtSelectClipRgn(void);
extern void func_NtGdiExtTextOutW(void);
//extern void func_NtGdiFlushUserBatch(void);
extern void func_NtGdiGetFontResourceInfoInternalW(void);
extern void func_NtGdiGetRandomRgn(void);
extern void func_NtGdiGetStockObject(void);
+extern void func_NtGdiIntersectClipRect(void);
+extern void func_NtGdiOffsetClipRgn(void);
extern void func_NtGdiPolyPolyDraw(void);
extern void func_NtGdiRestoreDC(void);
extern void func_NtGdiSaveDC(void);
{ "NtGdiDoPalette", func_NtGdiDoPalette },
{ "NtGdiEngCreatePalette", func_NtGdiEngCreatePalette },
{ "NtGdiEnumFontOpen", func_NtGdiEnumFontOpen },
+ { "NtGdiExcludeClipRect", func_NtGdiExcludeClipRect },
{ "NtGdiExtSelectClipRgn", func_NtGdiExtSelectClipRgn },
{ "NtGdiExtTextOutW", func_NtGdiExtTextOutW },
//{ "NtGdiFlushUserBatch", func_NtGdiFlushUserBatch },
{ "NtGdiGetFontResourceInfoInternalW", func_NtGdiGetFontResourceInfoInternalW },
{ "NtGdiGetRandomRgn", func_NtGdiGetRandomRgn },
{ "NtGdiGetStockObject", func_NtGdiGetStockObject },
+ { "NtGdiIntersectClipRect", func_NtGdiIntersectClipRect },
+ { "NtGdiOffsetClipRgn", func_NtGdiOffsetClipRgn },
{ "NtGdiPolyPolyDraw", func_NtGdiPolyPolyDraw },
{ "NtGdiRestoreDC", func_NtGdiRestoreDC },
{ "NtGdiSaveDC", func_NtGdiSaveDC },