Implement NtGdiDdCanCreateSurface
not tested
Modified: trunk/reactos/subsys/win32k/ntddraw/ddraw.c
Modified: trunk/reactos/subsys/win32k/ntddraw/stubs.c

Modified: trunk/reactos/subsys/win32k/ntddraw/ddraw.c
--- trunk/reactos/subsys/win32k/ntddraw/ddraw.c	2005-04-26 16:28:38 UTC (rev 14817)
+++ trunk/reactos/subsys/win32k/ntddraw/ddraw.c	2005-04-26 17:19:06 UTC (rev 14818)
@@ -319,5 +319,23 @@
 }
 
 
+DWORD STDCALL NtGdiDdCanCreateSurface(      
+    HANDLE hDirectDrawLocal,
+    PDD_CANCREATESURFACEDATA puCanCreateSurfaceData
+)
+{
+	DWORD  ddRVal;
 
+	PDD_DIRECTDRAW pDirectDraw = GDIOBJ_LockObj(hDirectDrawLocal, GDI_OBJECT_TYPE_DIRECTDRAW);
+
+	ddRVal = pDirectDraw->DdCanCreateSurface(puCanCreateSurfaceData);
+
+	GDIOBJ_UnlockObj(hDirectDrawLocal);
+	
+	return ddRVal;
+}
+
+
+
+
 /* EOF */

Modified: trunk/reactos/subsys/win32k/ntddraw/stubs.c
--- trunk/reactos/subsys/win32k/ntddraw/stubs.c	2005-04-26 16:28:38 UTC (rev 14817)
+++ trunk/reactos/subsys/win32k/ntddraw/stubs.c	2005-04-26 17:19:06 UTC (rev 14818)
@@ -139,15 +139,7 @@
 	return 0;
 }
 
-DWORD STDCALL NtGdiDdCanCreateSurface(      
-    HANDLE hDirectDraw,
-    PDD_CANCREATESURFACEDATA puCanCreateSurfaceData
-)
-{
-	UNIMPLEMENTED
 
-	return 0;
-}
 
 DWORD STDCALL NtGdiDdColorControl(      
     HANDLE hSurface,