[ros-diffs] [tkreuzer] 28619: - rename ASSERT1 to ASSERT - link to w32kdll instead of implementing all syscalls as stubs. I will remove the rest of the syscall code as soon as our syscall db is more complete - more TEST -> RTEST - update w32kdll_ros.def - add tests for NtGdiEngCreatePalette, NtGdiEnumFontOpen - Add some gdi handle table code to w32knapi - header cleanup

tkreuzer at svn.reactos.org tkreuzer at svn.reactos.org
Tue Aug 28 17:06:37 CEST 2007


Author: tkreuzer
Date: Tue Aug 28 19:06:36 2007
New Revision: 28619

URL: http://svn.reactos.org/svn/reactos?rev=28619&view=rev
Log:
- rename ASSERT1 to ASSERT
- link to w32kdll instead of implementing all syscalls as stubs. I will remove the rest of the syscall code as soon as our syscall db is more complete
- more TEST -> RTEST
- update w32kdll_ros.def
- add tests for NtGdiEngCreatePalette, NtGdiEnumFontOpen
- Add some gdi handle table code to w32knapi
- header cleanup

Added:
    trunk/rostests/apitests/w32knapi/ntgdi/NtGdiEngCreatePalette.c
    trunk/rostests/apitests/w32knapi/ntgdi/NtGdiEnumFontOpen.c
Modified:
    trunk/rostests/apitests/apitest.h
    trunk/rostests/apitests/gdi32api/testlist.c
    trunk/rostests/apitests/gdi32api/tests/GetClipRgn.c
    trunk/rostests/apitests/gdi32api/tests/GetObject.c
    trunk/rostests/apitests/user32api/tests/ScrollDC.c
    trunk/rostests/apitests/user32api/tests/ScrollWindowEx.c
    trunk/rostests/apitests/w32kdll/w32kdll_ros/w32kdll_ros.def
    trunk/rostests/apitests/w32kdll/w32kdll_ros/w32kdll_ros.rbuild
    trunk/rostests/apitests/w32knapi/ntdd/NtGdiDdCreateDirectDrawObject.c
    trunk/rostests/apitests/w32knapi/ntdd/NtGdiDdDeleteDirectDrawObject.c
    trunk/rostests/apitests/w32knapi/ntdd/NtGdiDdQueryDirectDrawObject.c
    trunk/rostests/apitests/w32knapi/ntgdi/NtGdiArcInternal.c
    trunk/rostests/apitests/w32knapi/ntgdi/NtGdiCreateBitmap.c
    trunk/rostests/apitests/w32knapi/ntgdi/NtGdiCreateCompatibleBitmap.c
    trunk/rostests/apitests/w32knapi/ntgdi/NtGdiDoPalette.c
    trunk/rostests/apitests/w32knapi/ntgdi/NtGdiGetBitmapBits.c
    trunk/rostests/apitests/w32knapi/ntgdi/NtGdiGetRandomRgn.c
    trunk/rostests/apitests/w32knapi/ntgdi/NtGdiSetBitmapBits.c
    trunk/rostests/apitests/w32knapi/testlist.c
    trunk/rostests/apitests/w32knapi/w32knapi.c
    trunk/rostests/apitests/w32knapi/w32knapi.h
    trunk/rostests/apitests/w32knapi/w32knapi.rbuild

Modified: trunk/rostests/apitests/apitest.h
URL: http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/apitest.h?rev=28619&r1=28618&r2=28619&view=diff
==============================================================================
--- trunk/rostests/apitests/apitest.h (original)
+++ trunk/rostests/apitests/apitest.h Tue Aug 28 19:06:36 2007
@@ -1,7 +1,5 @@
 #ifndef _APITEST_H
 #define _APITEST_H
-
-#define WINVER 0x501
 
 #include <stdlib.h>
 #include <stdarg.h>
@@ -84,8 +82,8 @@
 		} \
 	}
 
-
-#define ASSERT1(x) \
+#undef ASSERT
+#define ASSERT(x) \
 	if (!(x)) \
 	{ \
 			printf("Assertion failed in %s:%d (%s)\n", __FILE__, __LINE__, #x);\

Modified: trunk/rostests/apitests/gdi32api/testlist.c
URL: http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/gdi32api/testlist.c?rev=28619&r1=28618&r2=28619&view=diff
==============================================================================
--- trunk/rostests/apitests/gdi32api/testlist.c (original)
+++ trunk/rostests/apitests/gdi32api/testlist.c Tue Aug 28 19:06:36 2007
@@ -26,12 +26,12 @@
 	{ L"CreateRectRgn", Test_CreateRectRgn },
 	{ L"ExtCreatePen", Test_ExtCreatePen },
 	{ L"GetClipRgn", Test_GetClipRgn },
+	{ L"GetObject", Test_GetObject },
 	{ L"GetStockObject", Test_GetStockObject },
 	{ L"SetSysColors", Test_SetSysColors },
 	{ L"SelectObject", Test_SelectObject },
 	{ L"SetDCPenColor", Test_SetDCPenColor },
 //	{ L"SetWorldTransform", Test_SetWorldTransform },
-	{ L"GetObject", Test_GetObject }
 };
 
 /* The function that gives us the number of tests */

Modified: trunk/rostests/apitests/gdi32api/tests/GetClipRgn.c
URL: http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/gdi32api/tests/GetClipRgn.c?rev=28619&r1=28618&r2=28619&view=diff
==============================================================================
--- trunk/rostests/apitests/gdi32api/tests/GetClipRgn.c (original)
+++ trunk/rostests/apitests/gdi32api/tests/GetClipRgn.c Tue Aug 28 19:06:36 2007
@@ -3,9 +3,24 @@
 INT
 Test_GetClipRgn(PTESTINFO pti)
 {
-//	HRGN hRgn;
+	HWND hWnd;
+	HDC hDC;
+	HRGN hrgn;//, hrgn2;
 
-//	hRgn = CreateRectRgn(
+	/* Create a window */
+	hWnd = CreateWindowW(L"BUTTON", L"TestWindow", WS_OVERLAPPEDWINDOW | WS_VISIBLE,
+	                    CW_USEDEFAULT, CW_USEDEFAULT, 100, 100,
+	                    NULL, NULL, g_hInstance, 0);
+
+	hDC = GetDC(hWnd);
+	hrgn = CreateRectRgn(0,0,0,0);
+
+	SetLastError(ERROR_SUCCESS);
+//	TEST(GetClipRgn(hDC)
+
+	ReleaseDC(hWnd, hDC);
+	DestroyWindow(hWnd);
+
 	return APISTATUS_NORMAL;
 }
 

Modified: trunk/rostests/apitests/gdi32api/tests/GetObject.c
URL: http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/gdi32api/tests/GetObject.c?rev=28619&r1=28618&r2=28619&view=diff
==============================================================================
--- trunk/rostests/apitests/gdi32api/tests/GetObject.c (original)
+++ trunk/rostests/apitests/gdi32api/tests/GetObject.c Tue Aug 28 19:06:36 2007
@@ -178,21 +178,21 @@
 	TEST(GetObjectW((HANDLE)GDI_OBJECT_TYPE_BRUSH, 0, NULL) == sizeof(LOGBRUSH));
 	TEST(GetObject(hBrush, sizeof(WORD), NULL) == sizeof(LOGBRUSH));
 	TEST(GetObject(hBrush, 0, NULL) == sizeof(LOGBRUSH));
-	TEST(GetObject(hBrush, 5, NULL) == sizeof(LOGBRUSH));
-	TEST(GetObject(hBrush, -5, NULL) == sizeof(LOGBRUSH));
-
-	TEST(GetObject(hBrush, 0, &logbrush) == 0);
-	TEST(logbrush.lbStyle == 0x77777777);
-	TEST(GetObject(hBrush, 5, &logbrush) == sizeof(LOGBRUSH));
-	TEST(logbrush.lbStyle == 0);
-	TEST(logbrush.lbColor == 0x77777701);
-
-	TEST(GetObject(hBrush, sizeof(LOGBRUSH), &logbrush) == sizeof(LOGBRUSH));
-	TEST(GetObject(hBrush, sizeof(LOGBRUSH)+2, &logbrush) == sizeof(LOGBRUSH));
-	TEST(GetObject(hBrush, -1, &logbrush) == sizeof(LOGBRUSH));
+	RTEST(GetObject(hBrush, 5, NULL) == sizeof(LOGBRUSH));
+	RTEST(GetObject(hBrush, -5, NULL) == sizeof(LOGBRUSH));
+
+	RTEST(GetObject(hBrush, 0, &logbrush) == 0);
+	RTEST(logbrush.lbStyle == 0x77777777);
+	RTEST(GetObject(hBrush, 5, &logbrush) == sizeof(LOGBRUSH));
+	RTEST(logbrush.lbStyle == 0);
+	RTEST(logbrush.lbColor == 0x77777701);
+
+	RTEST(GetObject(hBrush, sizeof(LOGBRUSH), &logbrush) == sizeof(LOGBRUSH));
+	RTEST(GetObject(hBrush, sizeof(LOGBRUSH)+2, &logbrush) == sizeof(LOGBRUSH));
+	RTEST(GetObject(hBrush, -1, &logbrush) == sizeof(LOGBRUSH));
 	// TODO: test all members
 
-	TEST(GetLastError() == ERROR_SUCCESS);
+	RTEST(GetLastError() == ERROR_SUCCESS);
 	DeleteObject(hBrush);
 	return TRUE;
 }
@@ -207,21 +207,21 @@
 	hPen = CreatePen(PS_SOLID, 3, RGB(4,5,6));
 	if (!hPen) return FALSE;
 	SetLastError(ERROR_SUCCESS);
-	TEST(GetObjectA((HANDLE)GDI_OBJECT_TYPE_PEN, 0, NULL) == sizeof(LOGPEN));
-	TEST(GetObjectW((HANDLE)GDI_OBJECT_TYPE_PEN, 0, NULL) == sizeof(LOGPEN));
-	TEST(GetObject(hPen, sizeof(BITMAP), NULL) == sizeof(LOGPEN));
-	TEST(GetObject(hPen, 0, NULL) == sizeof(LOGPEN));
-	TEST(GetObject(hPen, 5, NULL) == sizeof(LOGPEN));
-	TEST(GetObject(hPen, -5, NULL) == sizeof(LOGPEN));
-	TEST(GetObject(hPen, sizeof(LOGPEN), &logpen) == sizeof(LOGPEN));
-	TEST(GetObject(hPen, sizeof(LOGPEN)-1, &logpen) == 0);
-	TEST(GetObject(hPen, sizeof(LOGPEN)+2, &logpen) == sizeof(LOGPEN));
-	TEST(GetObject(hPen, 0, &logpen) == 0);
-	TEST(GetObject(hPen, -5, &logpen) == sizeof(LOGPEN));
-	TEST(GetLastError() == ERROR_SUCCESS);
+	RTEST(GetObjectA((HANDLE)GDI_OBJECT_TYPE_PEN, 0, NULL) == sizeof(LOGPEN));
+	RTEST(GetObjectW((HANDLE)GDI_OBJECT_TYPE_PEN, 0, NULL) == sizeof(LOGPEN));
+	RTEST(GetObject(hPen, sizeof(BITMAP), NULL) == sizeof(LOGPEN));
+	RTEST(GetObject(hPen, 0, NULL) == sizeof(LOGPEN));
+	RTEST(GetObject(hPen, 5, NULL) == sizeof(LOGPEN));
+	RTEST(GetObject(hPen, -5, NULL) == sizeof(LOGPEN));
+	RTEST(GetObject(hPen, sizeof(LOGPEN), &logpen) == sizeof(LOGPEN));
+	RTEST(GetObject(hPen, sizeof(LOGPEN)-1, &logpen) == 0);
+	RTEST(GetObject(hPen, sizeof(LOGPEN)+2, &logpen) == sizeof(LOGPEN));
+	RTEST(GetObject(hPen, 0, &logpen) == 0);
+	RTEST(GetObject(hPen, -5, &logpen) == sizeof(LOGPEN));
+	RTEST(GetLastError() == ERROR_SUCCESS);
 
 	/* test if the fields are filled correctly */
-	TEST(logpen.lopnStyle == PS_SOLID);
+	RTEST(logpen.lopnStyle == PS_SOLID);
 	
 
 	DeleteObject(hPen);
@@ -242,8 +242,8 @@
 	} elpUserStyle;
 
 	SetLastError(ERROR_SUCCESS);
-	TEST(GetObjectA((HANDLE)GDI_OBJECT_TYPE_EXTPEN, 0, NULL) == 0);
-	TEST(GetObjectW((HANDLE)GDI_OBJECT_TYPE_EXTPEN, 0, NULL) == 0);
+	RTEST(GetObjectA((HANDLE)GDI_OBJECT_TYPE_EXTPEN, 0, NULL) == 0);
+	RTEST(GetObjectW((HANDLE)GDI_OBJECT_TYPE_EXTPEN, 0, NULL) == 0);
 	TEST(GetLastError() == ERROR_INVALID_PARAMETER);
 
 	FillMemory(&extlogpen, sizeof(EXTLOGPEN), 0x77);
@@ -252,12 +252,12 @@
 	logbrush.lbHatch = 22;
 	hPen = ExtCreatePen(PS_GEOMETRIC | PS_DASH, 5, &logbrush, 0, NULL);
 
-	TEST(GDI_HANDLE_GET_TYPE(hPen) == GDI_OBJECT_TYPE_EXTPEN);
-	TEST(GetObject((HANDLE)GDI_OBJECT_TYPE_EXTPEN, 0, NULL) == 0);
-	TEST(GetObject(hPen, sizeof(EXTLOGPEN), NULL) == sizeof(EXTLOGPEN)-sizeof(DWORD));
-	TEST(GetObject(hPen, 0, NULL) == sizeof(EXTLOGPEN)-sizeof(DWORD));
-	TEST(GetObject((HANDLE)GDI_HANDLE_GET_INDEX(hPen), 0, NULL) == sizeof(EXTLOGPEN)-sizeof(DWORD));
-	TEST(GetObject(hPen, 5, NULL) == sizeof(EXTLOGPEN)-sizeof(DWORD));
+	RTEST(GDI_HANDLE_GET_TYPE(hPen) == GDI_OBJECT_TYPE_EXTPEN);
+	RTEST(GetObject((HANDLE)GDI_OBJECT_TYPE_EXTPEN, 0, NULL) == 0);
+	RTEST(GetObject(hPen, sizeof(EXTLOGPEN), NULL) == sizeof(EXTLOGPEN)-sizeof(DWORD));
+	RTEST(GetObject(hPen, 0, NULL) == sizeof(EXTLOGPEN)-sizeof(DWORD));
+	RTEST(GetObject((HANDLE)GDI_HANDLE_GET_INDEX(hPen), 0, NULL) == sizeof(EXTLOGPEN)-sizeof(DWORD));
+	RTEST(GetObject(hPen, 5, NULL) == sizeof(EXTLOGPEN)-sizeof(DWORD));
 	RTEST(GetObject(hPen, -5, NULL) == sizeof(EXTLOGPEN)-sizeof(DWORD));
 	RTEST(GetObject(hPen, 0, &extlogpen) == 0);
 	RTEST(GetObject(hPen, 4, &extlogpen) == 0);

Modified: trunk/rostests/apitests/user32api/tests/ScrollDC.c
URL: http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/user32api/tests/ScrollDC.c?rev=28619&r1=28618&r2=28619&view=diff
==============================================================================
--- trunk/rostests/apitests/user32api/tests/ScrollDC.c (original)
+++ trunk/rostests/apitests/user32api/tests/ScrollDC.c Tue Aug 28 19:06:36 2007
@@ -17,7 +17,7 @@
 
 	/* Assert that no update region is there */
 	hrgn = CreateRectRgn(0,0,0,0);
-	ASSERT1(GetUpdateRgn(hWnd, hrgn, FALSE) == NULLREGION);
+	ASSERT(GetUpdateRgn(hWnd, hrgn, FALSE) == NULLREGION);
 
     /* Test normal scrolling */
 	TEST(ScrollDC(hDC, 0, 0, NULL, NULL, hrgn, NULL) == TRUE);

Modified: trunk/rostests/apitests/user32api/tests/ScrollWindowEx.c
URL: http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/user32api/tests/ScrollWindowEx.c?rev=28619&r1=28618&r2=28619&view=diff
==============================================================================
--- trunk/rostests/apitests/user32api/tests/ScrollWindowEx.c (original)
+++ trunk/rostests/apitests/user32api/tests/ScrollWindowEx.c Tue Aug 28 19:06:36 2007
@@ -15,7 +15,7 @@
 
 	/* Assert that no update region is there */
 	hrgn = CreateRectRgn(0,0,0,0);
-	ASSERT1(GetUpdateRgn(hWnd, hrgn, FALSE) == NULLREGION);
+	ASSERT(GetUpdateRgn(hWnd, hrgn, FALSE) == NULLREGION);
 
 	Result = ScrollWindowEx(hWnd, 20, 0, NULL, NULL, NULL, NULL, 0);
 	TEST(Result == SIMPLEREGION);

Modified: trunk/rostests/apitests/w32kdll/w32kdll_ros/w32kdll_ros.def
URL: http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/w32kdll/w32kdll_ros/w32kdll_ros.def?rev=28619&r1=28618&r2=28619&view=diff
==============================================================================
--- trunk/rostests/apitests/w32kdll/w32kdll_ros/w32kdll_ros.def (original)
+++ trunk/rostests/apitests/w32kdll/w32kdll_ros/w32kdll_ros.def Tue Aug 28 19:06:36 2007
@@ -10,48 +10,48 @@
 EXPORTS
 NtGdiAbortDoc at 4
 NtGdiAbortPath at 4
-;NtGdiAddFontResourceW at 24
-;NtGdiAddRemoteFontToDC at 16
-;NtGdiAddFontMemResourceEx at 20
-;NtGdiRemoveMergeFont at 8
-;NtGdiAddRemoteMMInstanceToDC at 12
+NtGdiAddFontResourceW at 24
+NtGdiAddRemoteFontToDC at 16
+NtGdiAddFontMemResourceEx at 20
+NtGdiRemoveMergeFont at 8
+NtGdiAddRemoteMMInstanceToDC at 12
 NtGdiAlphaBlend at 48
 NtGdiAngleArc at 24
-;NtGdiAnyLinkedFonts at 0
-;NtGdiFontIsLinked at 4
+NtGdiAnyLinkedFonts at 0
+NtGdiFontIsLinked at 4
 NtGdiArcInternal at 40
 NtGdiBeginPath at 4
 NtGdiBitBlt at 44
 NtGdiCancelDC at 4
-;NtGdiCheckBitmapBits at 32
+NtGdiCheckBitmapBits at 32
 NtGdiCloseFigure at 4
-;NtGdiClearBitmapAttributes at 8
-;NtGdiClearBrushAttributes at 8
-;NtGdiColorCorrectPalette at 24
+NtGdiClearBitmapAttributes at 8
+NtGdiClearBrushAttributes at 8
+NtGdiColorCorrectPalette at 24
 NtGdiCombineRgn at 16
 NtGdiCombineTransform at 12
-;NtGdiComputeXformCoefficients at 4
-;NtGdiConsoleTextOut at 16
-;NtGdiConvertMetafileRect at 8
+NtGdiComputeXformCoefficients at 4
+NtGdiConsoleTextOut at 16
+NtGdiConvertMetafileRect at 8
 NtGdiCreateBitmap at 20
 NtGdiCreateClientObj at 4
 NtGdiCreateColorSpace at 4
-;NtGdiCreateColorTransform at 32
+NtGdiCreateColorTransform at 32
 NtGdiCreateCompatibleBitmap at 12
 NtGdiCreateCompatibleDC at 4
 NtGdiCreateDIBBrush at 24
-;NtGdiCreateDIBitmapInternal at 44
+NtGdiCreateDIBitmapInternal at 44
 NtGdiCreateDIBSection at 36
 NtGdiCreateEllipticRgn at 16
 NtGdiCreateHalftonePalette at 4
 NtGdiCreateHatchBrushInternal at 12
-;NtGdiCreateMetafileDC at 4
-;NtGdiCreatePaletteInternal at 8
+NtGdiCreateMetafileDC at 4
+NtGdiCreatePaletteInternal at 8
 NtGdiCreatePatternBrushInternal at 12
 NtGdiCreatePen at 16
 NtGdiCreateRectRgn at 16
 NtGdiCreateRoundRectRgn at 24
-;NtGdiCreateServerMetaFile at 24
+NtGdiCreateServerMetaFile at 24
 NtGdiCreateSolidBrush at 8
 NtGdiD3dContextCreate at 16
 NtGdiD3dContextDestroy at 4
@@ -109,44 +109,44 @@
 NtGdiDdUnlockD3D at 8
 NtGdiDdUpdateOverlay at 12
 NtGdiDdWaitForVerticalBlank at 8
-;NtGdiDvpCanCreateVideoPort at 8
-;NtGdiDvpColorControl at 8
-;NtGdiDvpCreateVideoPort at 8
-;NtGdiDvpDestroyVideoPort at 8
-;NtGdiDvpFlipVideoPort at 16
-;NtGdiDvpGetVideoPortBandwidth at 8
-;NtGdiDvpGetVideoPortField at 8
-;NtGdiDvpGetVideoPortFlipStatus at 8
-;NtGdiDvpGetVideoPortInputFormats at 8
-;NtGdiDvpGetVideoPortLine at 8
-;NtGdiDvpGetVideoPortOutputFormats at 8
-;NtGdiDvpGetVideoPortConnectInfo at 8
-;NtGdiDvpGetVideoSignalStatus at 8
-;NtGdiDvpUpdateVideoPort at 16
-;NtGdiDvpWaitForVideoPortSync at 8
-;NtGdiDvpAcquireNotification at 12
-;NtGdiDvpReleaseNotification at 8
-;NtGdiDxgGenericThunk at 24
+NtGdiDvpCanCreateVideoPort at 8
+NtGdiDvpColorControl at 8
+NtGdiDvpCreateVideoPort at 8
+NtGdiDvpDestroyVideoPort at 8
+NtGdiDvpFlipVideoPort at 16
+NtGdiDvpGetVideoPortBandwidth at 8
+NtGdiDvpGetVideoPortField at 8
+NtGdiDvpGetVideoPortFlipStatus at 8
+NtGdiDvpGetVideoPortInputFormats at 8
+NtGdiDvpGetVideoPortLine at 8
+NtGdiDvpGetVideoPortOutputFormats at 8
+NtGdiDvpGetVideoPortConnectInfo at 8
+NtGdiDvpGetVideoSignalStatus at 8
+NtGdiDvpUpdateVideoPort at 16
+NtGdiDvpWaitForVideoPortSync at 8
+NtGdiDvpAcquireNotification at 12
+NtGdiDvpReleaseNotification at 8
+NtGdiDxgGenericThunk at 24
 NtGdiDeleteClientObj at 4
 NtGdiDeleteColorSpace at 4
-;NtGdiDeleteColorTransform at 8
+NtGdiDeleteColorTransform at 8
 NtGdiDeleteObjectApp at 4
 NtGdiDescribePixelFormat at 16
-;NtGdiGetPerBandInfo at 8
-;NtGdiDoBanding at 16
+NtGdiGetPerBandInfo at 8
+NtGdiDoBanding at 16
 NtGdiDoPalette at 24
 NtGdiDrawEscape at 16
 NtGdiEllipse at 20
-;NtGdiEnableEUDC at 4
+NtGdiEnableEudc at 4
 NtGdiEndDoc at 4
 NtGdiEndPage at 4
 NtGdiEndPath at 4
-;NtGdiEnumFontChunk at 20
-;NtGdiEnumFontClose at 4
-;NtGdiEnumFontOpen at 28
+NtGdiEnumFontChunk at 20
+NtGdiEnumFontClose at 4
+NtGdiEnumFontOpen at 28
 NtGdiEnumObjects at 16
 NtGdiEqualRgn at 8
-;NtGdiEudcLoadUnloadLink at 28
+NtGdiEudcLoadUnloadLink at 28
 NtGdiExcludeClipRect at 20
 NtGdiExtCreatePen at 44
 NtGdiExtCreateRegion at 12
@@ -154,37 +154,37 @@
 NtGdiExtFloodFill at 20
 NtGdiExtGetObjectW at 12
 NtGdiExtSelectClipRgn at 12
-;NtGdiExtTextOutW at 36
+NtGdiExtTextOutW at 36
 NtGdiFillPath at 4
 NtGdiFillRgn at 12
 NtGdiFlattenPath at 4
-;NtGdiFlushUserBatch at 0
+NtGdiFlushUserBatch at 0
 NtGdiFlush at 0
-;NtGdiForceUFIMapping at 8
+NtGdiForceUFIMapping at 8
 NtGdiFrameRgn at 20
-;NtGdiFullscreenControl at 20
+NtGdiFullscreenControl at 20
 NtGdiGetAndSetDCDword at 16
-;NtGdiGetAppClipBox at 8
+NtGdiGetAppClipBox at 8
 NtGdiGetBitmapBits at 12
 NtGdiGetBitmapDimension at 8
 NtGdiGetBoundsRect at 12
-;NtGdiGetCharABCWidthsW at 24
-;NtGdiGetCharacterPlacementW at 24
+NtGdiGetCharABCWidthsW at 24
+NtGdiGetCharacterPlacementW at 24
 NtGdiGetCharSet at 4
-;NtGdiGetCharWidthW at 24
-;NtGdiGetCharWidthInfo at 8
+NtGdiGetCharWidthW at 24
+NtGdiGetCharWidthInfo at 8
 NtGdiGetColorAdjustment at 8
-;NtGdiGetColorSpaceforBitmap at 4
+NtGdiGetColorSpaceforBitmap at 4
 NtGdiGetDCDword at 12
-;NtGdiGetDCforBitmap at 4
-;NtGdiGetDCObject at 8
+NtGdiGetDCforBitmap at 4
+NtGdiGetDCObject at 8
 NtGdiGetDCPoint at 12
 NtGdiGetDeviceCaps at 8
 NtGdiGetDeviceGammaRamp at 8
-;NtGdiGetDeviceCapsAll at 8
-;NtGdiGetDIBitsInternal at 36
-;NtGdiGetETM at 8
-;NtGdiGetEudcTimeStampEx at 12
+NtGdiGetDeviceCapsAll at 8
+NtGdiGetDIBitsInternal at 36
+NtGdiGetETM at 8
+NtGdiGetEudcTimeStampEx at 12
 NtGdiGetFontData at 20
 NtGdiGetFontResourceInfoInternalW at 28
 ;NtGdiGetGlyphIndicesW at 20

Modified: trunk/rostests/apitests/w32kdll/w32kdll_ros/w32kdll_ros.rbuild
URL: http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/w32kdll/w32kdll_ros/w32kdll_ros.rbuild?rev=28619&r1=28618&r2=28619&view=diff
==============================================================================
--- trunk/rostests/apitests/w32kdll/w32kdll_ros/w32kdll_ros.rbuild (original)
+++ trunk/rostests/apitests/w32kdll/w32kdll_ros/w32kdll_ros.rbuild Tue Aug 28 19:06:36 2007
@@ -1,4 +1,4 @@
-<module name="w32kdll_ros" type="win32dll" entrypoint="0" installname="w32kdll_ros.dll">
+<module name="w32kdll" type="win32dll" entrypoint="0" installname="w32kdll.dll">
 	<importlibrary definition="w32kdll_ros.def" />
 	<define name="__USE_W32API" />
 	<define name="_WIN32_WINNT">0x0502</define>

Modified: trunk/rostests/apitests/w32knapi/ntdd/NtGdiDdCreateDirectDrawObject.c
URL: http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/w32knapi/ntdd/NtGdiDdCreateDirectDrawObject.c?rev=28619&r1=28618&r2=28619&view=diff
==============================================================================
--- trunk/rostests/apitests/w32knapi/ntdd/NtGdiDdCreateDirectDrawObject.c (original)
+++ trunk/rostests/apitests/w32knapi/ntdd/NtGdiDdCreateDirectDrawObject.c Tue Aug 28 19:06:36 2007
@@ -1,22 +1,11 @@
 #include "../w32knapi.h"
-
-
-W32KAPI
-HANDLE
-APIENTRY
-NtGdiDdCreateDirectDrawObject(
-    IN HDC hdc
-)
-{
-	return (HANDLE)Syscall(L"NtGdiDdCreateDirectDrawObject", 1, &hdc);
-}
 
 INT
 Test_NtGdiDdCreateDirectDrawObject(PTESTINFO pti)
 {
 	HANDLE  hDirectDraw;
 	HDC hdc = CreateDCW(L"DISPLAY",NULL,NULL,NULL);
-	ASSERT1(hdc != NULL);
+	ASSERT(hdc != NULL);
 
 	/* Test ReactX */
 	RTEST(NtGdiDdCreateDirectDrawObject(NULL) == NULL);

Modified: trunk/rostests/apitests/w32knapi/ntdd/NtGdiDdDeleteDirectDrawObject.c
URL: http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/w32knapi/ntdd/NtGdiDdDeleteDirectDrawObject.c?rev=28619&r1=28618&r2=28619&view=diff
==============================================================================
--- trunk/rostests/apitests/w32knapi/ntdd/NtGdiDdDeleteDirectDrawObject.c (original)
+++ trunk/rostests/apitests/w32knapi/ntdd/NtGdiDdDeleteDirectDrawObject.c Tue Aug 28 19:06:36 2007
@@ -15,12 +15,12 @@
 {
 	HANDLE  hDirectDraw;
 	HDC hdc = CreateDCW(L"DISPLAY",NULL,NULL,NULL);
-	ASSERT1(hdc != NULL);
+	ASSERT(hdc != NULL);
 
 	/* Test ReactX */
 	RTEST(NtGdiDdDeleteDirectDrawObject(NULL) == FALSE);
 	RTEST((hDirectDraw=NtGdiDdCreateDirectDrawObject(hdc)) != NULL);
-	ASSERT1(hDirectDraw != NULL);
+	ASSERT(hDirectDraw != NULL);
 	RTEST(NtGdiDdDeleteDirectDrawObject(hDirectDraw) == TRUE);
 
 	/* Cleanup ReactX setup */

Modified: trunk/rostests/apitests/w32knapi/ntdd/NtGdiDdQueryDirectDrawObject.c
URL: http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/w32knapi/ntdd/NtGdiDdQueryDirectDrawObject.c?rev=28619&r1=28618&r2=28619&view=diff
==============================================================================
--- trunk/rostests/apitests/w32knapi/ntdd/NtGdiDdQueryDirectDrawObject.c (original)
+++ trunk/rostests/apitests/w32knapi/ntdd/NtGdiDdQueryDirectDrawObject.c Tue Aug 28 19:06:36 2007
@@ -64,10 +64,10 @@
 	EnumDisplaySettings(NULL, ENUM_CURRENT_SETTINGS, &devmode);
 
 	hdc = CreateDCW(L"DISPLAY",NULL,NULL,NULL);
-	ASSERT1(hdc != NULL);
+	ASSERT(hdc != NULL);
 
 	hDirectDraw = (HANDLE) Syscall(L"NtGdiDdCreateDirectDrawObject", 1, &hdc);
-	ASSERT1(hDirectDraw != NULL);
+	ASSERT(hDirectDraw != NULL);
 
 	/* Test ReactX */
 	hDirectDraw = (HANDLE) Syscall(L"NtGdiDdCreateDirectDrawObject", 1, &hdc);
@@ -123,7 +123,7 @@
 	RTEST(puD3dTextureFormats == NULL);
 	RTEST(puNumFourCC == NULL);
 	RTEST(puFourCC == NULL);
-	ASSERT1(pHalInfo != NULL);
+	ASSERT(pHalInfo != NULL);
 	RTEST(puNumHeaps == NULL);
 	RTEST(puvmList == NULL);
 
@@ -131,7 +131,7 @@
 		(pHalInfo->dwSize != sizeof(DD_HALINFO_V4)))
 	{
 		RTEST(pHalInfo->dwSize != sizeof(DD_HALINFO));
-		ASSERT1(pHalInfo->dwSize != sizeof(DD_HALINFO));
+		ASSERT(pHalInfo->dwSize != sizeof(DD_HALINFO));
 	}
 
 	if (pHalInfo->dwSize == sizeof(DD_HALINFO))
@@ -149,7 +149,7 @@
 			RTEST(pHalInfo->vmiData.lDisplayPitch == 0x1700;
 		*/
 		RTEST(pHalInfo->vmiData.ddpfDisplay.dwSize == sizeof(DDPIXELFORMAT) ); 
-		ASSERT1(pHalInfo->vmiData.ddpfDisplay.dwSize == sizeof(DDPIXELFORMAT));
+		ASSERT(pHalInfo->vmiData.ddpfDisplay.dwSize == sizeof(DDPIXELFORMAT));
 
 		/* Fail on 8bit screen deep */
 		RTEST(pHalInfo->vmiData.ddpfDisplay.dwFlags  == DDPF_RGB);
@@ -225,7 +225,7 @@
 	RTEST(puD3dTextureFormats == NULL);
 	RTEST(puNumFourCC == NULL);
 	RTEST(puFourCC == NULL);
-	ASSERT1(pHalInfo != NULL);
+	ASSERT(pHalInfo != NULL);
 	RTEST(puNumHeaps == NULL);
 	RTEST(puvmList == NULL);
 
@@ -266,7 +266,7 @@
 	RTEST(puFourCC == NULL);
 	RTEST(puNumHeaps == NULL);
 	RTEST(puvmList == NULL);
-	ASSERT1(pHalInfo != NULL);
+	ASSERT(pHalInfo != NULL);
 
 	/* We do not retesting DD_HALINFO, instead we compare it */
 	RTEST(memcmp(&oldHalInfo, pHalInfo, sizeof(DD_HALINFO)) == 0);
@@ -307,7 +307,7 @@
 	RTEST(puFourCC == NULL);
 	RTEST(puNumHeaps == NULL);
 	RTEST(puvmList == NULL);
-	ASSERT1(pHalInfo != NULL);
+	ASSERT(pHalInfo != NULL);
 
 	/* We do not retesting DD_HALINFO, instead we compare it */
 	RTEST(memcmp(&oldHalInfo, pHalInfo, sizeof(DD_HALINFO)) == 0);
@@ -351,7 +351,7 @@
 	RTEST(puFourCC == NULL);
 	RTEST(puNumHeaps == NULL);
 	RTEST(puvmList == NULL);
-	ASSERT1(pHalInfo != NULL);
+	ASSERT(pHalInfo != NULL);
 
 	/* We do not retesting DD_HALINFO, instead we compare it */
 	RTEST(memcmp(&oldHalInfo, pHalInfo, sizeof(DD_HALINFO)) == 0);
@@ -395,7 +395,7 @@
 	RTEST(puFourCC == NULL);
 	RTEST(puNumHeaps == NULL);
 	RTEST(puvmList == NULL);
-	ASSERT1(pHalInfo != NULL);
+	ASSERT(pHalInfo != NULL);
 
 	/* We do not retesting DD_HALINFO, instead we compare it */
 	RTEST(memcmp(&oldHalInfo, pHalInfo, sizeof(DD_HALINFO)) == 0);
@@ -453,7 +453,7 @@
 	RTEST(puFourCC == NULL);
 	RTEST(puNumHeaps == NULL);
 	RTEST(puvmList == NULL);
-	ASSERT1(pHalInfo != NULL);
+	ASSERT(pHalInfo != NULL);
 
 	/* We do not retesting DD_HALINFO, instead we compare it */
 	RTEST(memcmp(&oldHalInfo, pHalInfo, sizeof(DD_HALINFO)) == 0);

Modified: trunk/rostests/apitests/w32knapi/ntgdi/NtGdiArcInternal.c
URL: http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/w32knapi/ntgdi/NtGdiArcInternal.c?rev=28619&r1=28618&r2=28619&view=diff
==============================================================================
--- trunk/rostests/apitests/w32knapi/ntgdi/NtGdiArcInternal.c (original)
+++ trunk/rostests/apitests/w32knapi/ntgdi/NtGdiArcInternal.c Tue Aug 28 19:06:36 2007
@@ -1,22 +1,3 @@
-#include "../w32knapi.h"
-
-BOOL
-STDCALL
-NtGdiArcInternal(
-        ARCTYPE arctype,
-        HDC  hDC,
-        int  LeftRect,
-        int  TopRect,
-        int  RightRect,
-        int  BottomRect,
-        int  XStartArc,
-        int  YStartArc,
-        int  XEndArc,
-        int  YEndArc)
-{
-	return (BOOL)Syscall(L"NtGdiArcInternal", 10, &arctype);
-}
-
 INT
 Test_NtGdiArcInternal(PTESTINFO pti)
 {

Modified: trunk/rostests/apitests/w32knapi/ntgdi/NtGdiCreateBitmap.c
URL: http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/w32knapi/ntgdi/NtGdiCreateBitmap.c?rev=28619&r1=28618&r2=28619&view=diff
==============================================================================
--- trunk/rostests/apitests/w32knapi/ntgdi/NtGdiCreateBitmap.c (original)
+++ trunk/rostests/apitests/w32knapi/ntgdi/NtGdiCreateBitmap.c Tue Aug 28 19:06:36 2007
@@ -1,19 +1,3 @@
-#include "../w32knapi.h"
-
-W32KAPI
-HBITMAP
-APIENTRY
-NtGdiCreateBitmap(
-    IN INT cx,
-    IN INT cy,
-    IN UINT cPlanes,
-    IN UINT cBPP,
-    IN OPTIONAL LPBYTE pjInit
-)
-{
-	return (HBITMAP)Syscall(L"NtGdiCreateBitmap", 5, &cx);
-}
-
 INT
 Test_NtGdiCreateBitmap_Params(PTESTINFO pti)
 {
@@ -66,7 +50,7 @@
 	SetLastError(ERROR_SUCCESS);
 	TEST((hBmp = NtGdiCreateBitmap(1, 1, 0, 1, NULL)) != NULL);
 	TEST(GetLastError() == ERROR_SUCCESS);
-	ASSERT1(GetObject(hBmp, sizeof(BITMAP), &bitmap) == sizeof(BITMAP));
+	ASSERT(GetObject(hBmp, sizeof(BITMAP), &bitmap) == sizeof(BITMAP));
 	TEST(bitmap.bmType == 0);
 	TEST(bitmap.bmWidth == 1);
 	TEST(bitmap.bmHeight == 1);
@@ -88,7 +72,7 @@
 	SetLastError(ERROR_SUCCESS);
 	TEST((hBmp = NtGdiCreateBitmap(1, 1, 1, 0, NULL)) != NULL);
 	TEST(GetLastError() == ERROR_SUCCESS);
-	ASSERT1(GetObject(hBmp, sizeof(BITMAP), &bitmap) == sizeof(BITMAP));
+	ASSERT(GetObject(hBmp, sizeof(BITMAP), &bitmap) == sizeof(BITMAP));
 	TEST(bitmap.bmType == 0);
 	TEST(bitmap.bmWidth == 1);
 	TEST(bitmap.bmHeight == 1);
@@ -105,32 +89,32 @@
 	/* Test bad cBPP */
 	SetLastError(ERROR_SUCCESS);
 	TEST((hBmp = NtGdiCreateBitmap(1, 1, 1, 3, NULL)) != NULL);
-	ASSERT1(GetObject(hBmp, sizeof(BITMAP), &bitmap) == sizeof(BITMAP));
+	ASSERT(GetObject(hBmp, sizeof(BITMAP), &bitmap) == sizeof(BITMAP));
 	TEST(bitmap.bmBitsPixel == 4);
 	DeleteObject(hBmp);
 
 	TEST((hBmp = NtGdiCreateBitmap(1, 1, 1, 6, NULL)) != NULL);
-	ASSERT1(GetObject(hBmp, sizeof(BITMAP), &bitmap) == sizeof(BITMAP));
+	ASSERT(GetObject(hBmp, sizeof(BITMAP), &bitmap) == sizeof(BITMAP));
 	TEST(bitmap.bmBitsPixel == 8);
 	DeleteObject(hBmp);
 
 	TEST((hBmp = NtGdiCreateBitmap(1, 1, 1, 15, NULL)) != NULL);
-	ASSERT1(GetObject(hBmp, sizeof(BITMAP), &bitmap) == sizeof(BITMAP));
+	ASSERT(GetObject(hBmp, sizeof(BITMAP), &bitmap) == sizeof(BITMAP));
 	TEST(bitmap.bmBitsPixel == 16);
 	DeleteObject(hBmp);
 
 	TEST((hBmp = NtGdiCreateBitmap(1, 1, 1, 17, NULL)) != NULL);
-	ASSERT1(GetObject(hBmp, sizeof(BITMAP), &bitmap) == sizeof(BITMAP));
+	ASSERT(GetObject(hBmp, sizeof(BITMAP), &bitmap) == sizeof(BITMAP));
 	TEST(bitmap.bmBitsPixel == 24);
 	DeleteObject(hBmp);
 
 	TEST((hBmp = NtGdiCreateBitmap(1, 1, 3, 7, NULL)) != NULL);
-	ASSERT1(GetObject(hBmp, sizeof(BITMAP), &bitmap) == sizeof(BITMAP));
+	ASSERT(GetObject(hBmp, sizeof(BITMAP), &bitmap) == sizeof(BITMAP));
 	TEST(bitmap.bmBitsPixel == 24);
 	DeleteObject(hBmp);
 
 	TEST((hBmp = NtGdiCreateBitmap(1, 1, 1, 25, NULL)) != NULL);
-	ASSERT1(GetObject(hBmp, sizeof(BITMAP), &bitmap) == sizeof(BITMAP));
+	ASSERT(GetObject(hBmp, sizeof(BITMAP), &bitmap) == sizeof(BITMAP));
 	TEST(bitmap.bmBitsPixel == 32);
 	DeleteObject(hBmp);
 
@@ -154,7 +138,7 @@
 	SetLastError(ERROR_SUCCESS);
 	TEST((hBmp = NtGdiCreateBitmap(5, 7, 2, 4, NULL)) != NULL);
 	TEST(GetLastError() == ERROR_SUCCESS);
-	ASSERT1(GetObject(hBmp, sizeof(BITMAP), &bitmap) == sizeof(BITMAP));
+	ASSERT(GetObject(hBmp, sizeof(BITMAP), &bitmap) == sizeof(BITMAP));
 	TEST(bitmap.bmType == 0);
 	TEST(bitmap.bmWidth == 5);
 	TEST(bitmap.bmHeight == 7);

Modified: trunk/rostests/apitests/w32knapi/ntgdi/NtGdiCreateCompatibleBitmap.c
URL: http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/w32knapi/ntgdi/NtGdiCreateCompatibleBitmap.c?rev=28619&r1=28618&r2=28619&view=diff
==============================================================================
--- trunk/rostests/apitests/w32knapi/ntgdi/NtGdiCreateCompatibleBitmap.c (original)
+++ trunk/rostests/apitests/w32knapi/ntgdi/NtGdiCreateCompatibleBitmap.c Tue Aug 28 19:06:36 2007
@@ -1,16 +1,3 @@
-#include "../w32knapi.h"
-
-W32KAPI
-HBITMAP
-APIENTRY
-NtGdiCreateCompatibleBitmap(
-    IN HDC hdc,
-    IN INT cx,
-    IN INT cy
-)
-{
-	return (HBITMAP)Syscall(L"NtGdiCreateCompatibleBitmap", 3, &hdc);
-}
 
 INT
 Test_NtGdiCreateCompatibleBitmap(PTESTINFO pti)

Modified: trunk/rostests/apitests/w32knapi/ntgdi/NtGdiDoPalette.c
URL: http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/w32knapi/ntgdi/NtGdiDoPalette.c?rev=28619&r1=28618&r2=28619&view=diff
==============================================================================
--- trunk/rostests/apitests/w32knapi/ntgdi/NtGdiDoPalette.c (original)
+++ trunk/rostests/apitests/w32knapi/ntgdi/NtGdiDoPalette.c Tue Aug 28 19:06:36 2007
@@ -1,20 +1,3 @@
-#include "../w32knapi.h"
-
-W32KAPI
-LONG
-APIENTRY 
-NtGdiDoPalette(
-    IN HPALETTE hpal,
-    IN WORD iStart,
-    IN WORD cEntries,
-    IN PALETTEENTRY *pPalEntries,
-    IN DWORD iFunc,
-    IN BOOL bInbound
-)
-{
-	return (LONG)Syscall(L"NtGdiDoPalette", 6, &hpal);
-}
-
 HPALETTE
 CreateTestPalette()
 {

Added: trunk/rostests/apitests/w32knapi/ntgdi/NtGdiEngCreatePalette.c
URL: http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/w32knapi/ntgdi/NtGdiEngCreatePalette.c?rev=28619&view=auto
==============================================================================
--- trunk/rostests/apitests/w32knapi/ntgdi/NtGdiEngCreatePalette.c (added)
+++ trunk/rostests/apitests/w32knapi/ntgdi/NtGdiEngCreatePalette.c Tue Aug 28 19:06:36 2007
@@ -1,0 +1,33 @@
+
+HPALETTE
+APIENTRY
+NtGdiEngCreatePalette(
+    IN ULONG  iMode,
+    IN ULONG  cColors,
+    IN ULONG  *pulColors,
+    IN FLONG  flRed,
+    IN FLONG  flGreen,
+    IN FLONG  flBlue)
+{
+    return (HPALETTE)Syscall(L"NtGdiEngCreatePalette", 6, &iMode);
+}
+
+INT
+Test_NtGdiEngCreatePalette(PTESTINFO pti)
+{
+	HPALETTE hPal;
+	ULONG Colors[3] = {1,2,3};
+	PGDI_TABLE_ENTRY pEntry;
+
+	hPal = NtGdiEngCreatePalette(PAL_RGB, 3, Colors, 0xff000000, 0x00ff0000, 0x0000ff00);
+
+	TEST(hPal != 0);
+	TEST(GDI_HANDLE_GET_TYPE(hPal) == GDI_OBJECT_TYPE_PALETTE);
+	pEntry = &GdiHandleTable[GDI_HANDLE_GET_INDEX(hPal)];
+	TEST(pEntry->KernelData != NULL);
+	TEST(pEntry->ProcessId == (HANDLE)GetCurrentProcessId());
+	TEST(pEntry->UserData == 0);
+	TEST(pEntry->Type == (((UINT)hPal >> 16) | GDI_OBJECT_TYPE_PALETTE));
+
+    return APISTATUS_NORMAL;
+}

Added: trunk/rostests/apitests/w32knapi/ntgdi/NtGdiEnumFontOpen.c
URL: http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/w32knapi/ntgdi/NtGdiEnumFontOpen.c?rev=28619&view=auto
==============================================================================
--- trunk/rostests/apitests/w32knapi/ntgdi/NtGdiEnumFontOpen.c (added)
+++ trunk/rostests/apitests/w32knapi/ntgdi/NtGdiEnumFontOpen.c Tue Aug 28 19:06:36 2007
@@ -1,0 +1,31 @@
+INT
+Test_NtGdiEnumFontOpen(PTESTINFO pti)
+{
+	HDC hDC;
+	ULONG_PTR idEnum;
+	ULONG ulCount;
+	PGDI_TABLE_ENTRY pEntry;
+
+	hDC = CreateDCW(L"DISPLAY",NULL,NULL,NULL);
+
+	// FIXME: We should load the font first
+
+	idEnum = NtGdiEnumFontOpen(hDC, 2, 0, 32, L"Courier", ANSI_CHARSET, &ulCount);
+	ASSERT(idEnum != 0);
+
+	/* we should have a gdi handle here */
+	TEST(GDI_HANDLE_GET_TYPE(idEnum) == GDI_OBJECT_TYPE_ENUMFONT);
+	pEntry = &GdiHandleTable[GDI_HANDLE_GET_INDEX(idEnum)];
+	TEST(pEntry->KernelData != NULL);
+	TEST(pEntry->ProcessId == (HANDLE)GetCurrentProcessId());
+	TEST(pEntry->UserData == 0);
+	TEST(pEntry->Type == ((idEnum >> 16) | GDI_OBJECT_TYPE_ENUMFONT));
+
+	/* We should not be able to use DeleteObject() on the handle */
+	TEST(DeleteObject((HGDIOBJ)idEnum) == FALSE);
+
+	// FIXME: Close the enum handle
+
+	return APISTATUS_NORMAL;
+}
+

Modified: trunk/rostests/apitests/w32knapi/ntgdi/NtGdiGetBitmapBits.c
URL: http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/w32knapi/ntgdi/NtGdiGetBitmapBits.c?rev=28619&r1=28618&r2=28619&view=diff
==============================================================================
--- trunk/rostests/apitests/w32knapi/ntgdi/NtGdiGetBitmapBits.c (original)
+++ trunk/rostests/apitests/w32knapi/ntgdi/NtGdiGetBitmapBits.c Tue Aug 28 19:06:36 2007
@@ -1,15 +1,3 @@
-#include "../w32knapi.h"
-
-LONG STDCALL
-NtGdiGetBitmapBits(
-	HBITMAP  hBitmap,
-	DWORD  Bytes,
-	IN PBYTE Bits)
-{
-	return (LONG)Syscall(L"NtGdiGetBitmapBits", 3, &hBitmap);
-}
-
-
 INT
 Test_NtGdiGetBitmapBits(PTESTINFO pti)
 {

Modified: trunk/rostests/apitests/w32knapi/ntgdi/NtGdiGetRandomRgn.c
URL: http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/w32knapi/ntgdi/NtGdiGetRandomRgn.c?rev=28619&r1=28618&r2=28619&view=diff
==============================================================================
--- trunk/rostests/apitests/w32knapi/ntgdi/NtGdiGetRandomRgn.c (original)
+++ trunk/rostests/apitests/w32knapi/ntgdi/NtGdiGetRandomRgn.c Tue Aug 28 19:06:36 2007
@@ -1,17 +1,3 @@
-#include "../w32knapi.h"
-
-W32KAPI
-INT
-APIENTRY
-NtGdiGetRandomRgn(
-    IN HDC hdc,
-    IN HRGN hrgn,
-    IN INT iRgn)
-{
-	return (INT)Syscall(L"NtGdiGetRandomRgn", 3, &hdc);
-}
-
-
 INT
 Test_NtGdiGetRandomRgn(PTESTINFO pti)
 {
@@ -26,7 +12,7 @@
 //	UpdateWindow(hWnd);
 	hDC = GetDC(hWnd);
 
-	ASSERT1(hDC != NULL);
+	ASSERT(hDC != NULL);
 
 	hrgn = CreateRectRgn(0,0,0,0);
 	hrgn2 = CreateRectRgn(3,3,10,10);

Modified: trunk/rostests/apitests/w32knapi/ntgdi/NtGdiSetBitmapBits.c
URL: http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/w32knapi/ntgdi/NtGdiSetBitmapBits.c?rev=28619&r1=28618&r2=28619&view=diff
==============================================================================
--- trunk/rostests/apitests/w32knapi/ntgdi/NtGdiSetBitmapBits.c (original)
+++ trunk/rostests/apitests/w32knapi/ntgdi/NtGdiSetBitmapBits.c Tue Aug 28 19:06:36 2007
@@ -1,14 +1,4 @@
 #include "../w32knapi.h"
-
-LONG STDCALL
-NtGdiSetBitmapBits(
-	HBITMAP  hBitmap,
-	DWORD  Bytes,
-	IN PBYTE Bits)
-{
-	return (LONG)Syscall(L"NtGdiSetBitmapBits", 3, &hBitmap);
-}
-
 
 INT
 Test_NtGdiSetBitmapBits(PTESTINFO pti)

Modified: trunk/rostests/apitests/w32knapi/testlist.c
URL: http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/w32knapi/testlist.c?rev=28619&r1=28618&r2=28619&view=diff
==============================================================================
--- trunk/rostests/apitests/w32knapi/testlist.c (original)
+++ trunk/rostests/apitests/w32knapi/testlist.c Tue Aug 28 19:06:36 2007
@@ -1,4 +1,4 @@
-#include "../apitest.h"
+#include "w32knapi.h"
 
 /* include the tests */
 
@@ -10,6 +10,9 @@
 #include "ntgdi/NtGdiCreateBitmap.c"
 #include "ntgdi/NtGdiCreateCompatibleBitmap.c"
 #include "ntgdi/NtGdiDoPalette.c"
+#include "ntgdi/NtGdiEngCreatePalette.c"
+//#include "ntgdi/NtGdiEnumFontChunk.c"
+#include "ntgdi/NtGdiEnumFontOpen.c"
 #include "ntgdi/NtGdiGetBitmapBits.c"
 #include "ntgdi/NtGdiGetRandomRgn.c"
 #include "ntgdi/NtGdiSetBitmapBits.c"
@@ -30,6 +33,9 @@
 	{ L"NtGdiCreateBitmap", Test_NtGdiCreateBitmap },
 	{ L"NtGdiCreateCompatibleBitmap", Test_NtGdiCreateCompatibleBitmap },
 	{ L"NtGdiDoPalette", Test_NtGdiDoPalette },
+	{ L"NtGdiEngCreatePalette", Test_NtGdiEngCreatePalette },
+//	{ L"NtGdiEnumFontChunk", Test_NtGdiEnumFontChunk },
+	{ L"NtGdiEnumFontOpen", Test_NtGdiEnumFontOpen },
 	{ L"NtGdiGetBitmapBits", Test_NtGdiGetBitmapBits },
 	{ L"NtGdiGetRandomRgn", Test_NtGdiGetRandomRgn },
 	{ L"NtGdiSetBitmapBits", Test_NtGdiSetBitmapBits },

Modified: trunk/rostests/apitests/w32knapi/w32knapi.c
URL: http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/w32knapi/w32knapi.c?rev=28619&r1=28618&r2=28619&view=diff
==============================================================================
--- trunk/rostests/apitests/w32knapi/w32knapi.c (original)
+++ trunk/rostests/apitests/w32knapi/w32knapi.c Tue Aug 28 19:06:36 2007
@@ -2,6 +2,7 @@
 
 HINSTANCE g_hInstance;
 HMODULE g_hModule = NULL;
+PGDI_TABLE_ENTRY GdiHandleTable;
 
 static DWORD STDCALL
 IntSyscall(FARPROC proc, UINT cParams, PVOID pFirstParam)
@@ -58,7 +59,8 @@
         int       nCmdShow)
 {
 	g_hInstance = hInstance;
-	
+	GDIQUERYPROC GdiQueryHandleTable;
+
 	printf("Win32k native API test\n");
 
 	/* Convert to gui thread */
@@ -68,7 +70,18 @@
 	if (!g_hModule)
 	{
 		printf("w32kdll.dll not found!\n");
-		return FALSE;
+		return -1;
+	}
+
+	GdiQueryHandleTable = (GDIQUERYPROC)GetProcAddress(GetModuleHandleW(L"GDI32.DLL"), "GdiQueryTable");
+	if(!GdiQueryHandleTable)
+	{
+		return -1;
+	}
+	GdiHandleTable = GdiQueryHandleTable();
+	if(!GdiHandleTable)
+	{
+		return -1;
 	}
 
 	printf("\n");

Modified: trunk/rostests/apitests/w32knapi/w32knapi.h
URL: http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/w32knapi/w32knapi.h?rev=28619&r1=28618&r2=28619&view=diff
==============================================================================
--- trunk/rostests/apitests/w32knapi/w32knapi.h (original)
+++ trunk/rostests/apitests/w32knapi/w32knapi.h Tue Aug 28 19:06:36 2007
@@ -1,10 +1,16 @@
 #ifndef _W32KNAPI_H
 #define _W32KNAPI_H
 
-#include "../apitest.h"
+#define WIN32_NO_STATUS
+#define NTOS_MODE_USER
+#define WINVER 0x501
 
-#include <ddk/winddi.h>
-#include <ddk/ntddk.h>
+#include <windows.h>
+#include <wingdi.h>
+#include <winddi.h>
+#include <ntddk.h>
+#include <d3dnthal.h>
+#include <prntfont.h>
 
 /* Public Win32K Headers */
 #include <win32k/callback.h>
@@ -12,11 +18,13 @@
 #include <win32k/ntgdityp.h>
 #include <win32k/ntgdihdl.h>
 
+#include <ntgdi.h>
+
+#include "../apitest.h"
+
 #define OS_UNSUPPORTED 0
 #define OS_REACTOS	1
 #define OS_WINDOWS	2
-
-#define W32KAPI
 
 typedef struct
 {
@@ -25,11 +33,11 @@
 	INT nParams;
 } SYCALL_ENTRY, *PSYSCALL_ENTRY;
 
+typedef PGDI_TABLE_ENTRY (CALLBACK * GDIQUERYPROC) (void);
+
 extern HINSTANCE g_hInstance;
-extern SYCALL_ENTRY SyscallTable_XP_2600[];
-extern SYCALL_ENTRY SyscallTable_2K_2195[];
 extern HMODULE g_hModule;
-extern INT g_nOsVer;
+extern PGDI_TABLE_ENTRY GdiHandleTable;
 
 DWORD Syscall(LPWSTR lpszFunction, int cParams, void* pParams);
 BOOL InitOsVersion();

Modified: trunk/rostests/apitests/w32knapi/w32knapi.rbuild
URL: http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/w32knapi/w32knapi.rbuild?rev=28619&r1=28618&r2=28619&view=diff
==============================================================================
--- trunk/rostests/apitests/w32knapi/w32knapi.rbuild (original)
+++ trunk/rostests/apitests/w32knapi/w32knapi.rbuild Tue Aug 28 19:06:36 2007
@@ -7,6 +7,7 @@
 	<library>user32</library>
 	<library>gdi32</library>
 	<library>shell32</library>
+	<library>w32kdll</library>
 	<file>w32knapi.c</file>
 	<file>testlist.c</file>
 </module>




More information about the Ros-diffs mailing list