[ros-diffs] [greatlrd] 28711: move dummy api / old api, that does not do anything to historic.c, they are left in gdi32.dll for make it backwords compatble with older program follow api moves from stubs.c to historic.c GdiPlayDCScript, GdiPlayJournal, GdiPlayScript, GdiConvertBitmap, GdiConvertBrush, GdiConvertDC, GdiConvertFont, GdiConvertPalette, GdiConvertRegion, GdiSetAttrs, GdiSetServerAttr.

greatlrd at svn.reactos.org greatlrd at svn.reactos.org
Fri Aug 31 17:49:20 CEST 2007


Author: greatlrd
Date: Fri Aug 31 19:49:19 2007
New Revision: 28711

URL: http://svn.reactos.org/svn/reactos?rev=28711&view=rev
Log:
move dummy api / old api, that does not do anything to historic.c, they are left in gdi32.dll for make it backwords compatble with older program
follow api moves from stubs.c to historic.c 
GdiPlayDCScript, GdiPlayJournal, GdiPlayScript, GdiConvertBitmap, GdiConvertBrush, GdiConvertDC, GdiConvertFont, GdiConvertPalette, GdiConvertRegion, GdiSetAttrs, GdiSetServerAttr.

Added:
    trunk/reactos/dll/win32/gdi32/misc/historic.c   (with props)
Modified:
    trunk/reactos/dll/win32/gdi32/gdi32.rbuild
    trunk/reactos/dll/win32/gdi32/misc/stubs.c

Modified: trunk/reactos/dll/win32/gdi32/gdi32.rbuild
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/gdi32.rbuild?rev=28711&r1=28710&r2=28711&view=diff
==============================================================================
--- trunk/reactos/dll/win32/gdi32/gdi32.rbuild (original)
+++ trunk/reactos/dll/win32/gdi32/gdi32.rbuild Fri Aug 31 19:49:19 2007
@@ -20,6 +20,7 @@
 	<directory name="misc">
 		<file>heap.c</file>
 		<file>gdientry.c</file>
+		<file>historic.c</file>
 		<file>misc.c</file>
 		<file>stubs.c</file>
 		<file>stubsa.c</file>

Added: trunk/reactos/dll/win32/gdi32/misc/historic.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/misc/historic.c?rev=28711&view=auto
==============================================================================
--- trunk/reactos/dll/win32/gdi32/misc/historic.c (added)
+++ trunk/reactos/dll/win32/gdi32/misc/historic.c Fri Aug 31 19:49:19 2007
@@ -1,0 +1,143 @@
+/* $Id: stubs.c 28709 2007-08-31 15:09:51Z greatlrd $
+ *
+ * reactos/lib/gdi32/misc/historic.c
+ *
+ * GDI32.DLL Stubs
+ *
+ * Api that does basic nothing, but is here for backwords compatible with older windows 
+ *
+ */
+
+#include "precomp.h"
+
+/*
+ * @implemented
+ */
+BOOL
+STDCALL
+GdiPlayDCScript(DWORD a0,
+                DWORD a1,
+                DWORD a2,
+                DWORD a3,
+                DWORD a4,
+                DWORD a5)
+{
+    /* FIXME fix the prototype right */
+    return FALSE;
+}
+
+/*
+ * @implemented
+ */
+BOOL
+STDCALL
+GdiPlayJournal(DWORD a0,
+               DWORD a1,
+               DWORD a2,
+               DWORD a3,
+               DWORD a4)
+{
+    /* FIXME fix the prototype right */
+    return FALSE;
+}
+
+/*
+ * @implemented
+ */
+BOOL
+STDCALL
+GdiPlayScript(DWORD a0,
+              DWORD a1,
+              DWORD a2,
+              DWORD a3,
+              DWORD a4,
+              DWORD a5,
+              DWORD a6)
+{
+    /* FIXME fix the prototype right */
+    return FALSE;
+}
+
+/*
+ * @implemented
+ */
+HBITMAP 
+STDCALL
+GdiConvertBitmap(HBITMAP hbm)
+{
+    return hbm;
+}
+
+/*
+ * @implemented
+ */
+HBRUSH
+STDCALL
+GdiConvertBrush(HBRUSH hbr)
+{
+    return hbr;
+}
+
+/*
+ * @implemented
+ */
+HDC 
+STDCALL
+GdiConvertDC(HDC hdc)
+{
+    return hdc;
+}
+
+/*
+ * @implemented
+ */
+HFONT 
+STDCALL
+GdiConvertFont(HFONT hfont)
+{
+    return hfont;
+}
+
+/*
+ * @implemented
+ */
+HPALETTE 
+STDCALL
+GdiConvertPalette(HPALETTE hpal)
+{
+    return hpal;
+}
+
+/*
+ * @implemented
+ */
+HRGN
+STDCALL
+GdiConvertRegion(HRGN hregion)
+{
+    return hregion;
+}
+
+/*
+ * @implemented
+ */
+BOOL
+STDCALL
+GdiSetAttrs(HDC hdc)
+{
+    return TRUE;
+}
+
+/*
+ * @implemented
+ */
+VOID 
+STDCALL
+GdiSetServerAttr(HDC hdc,DWORD attr)
+{
+    /* it does do nothing */
+}
+
+
+
+

Propchange: trunk/reactos/dll/win32/gdi32/misc/historic.c
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: trunk/reactos/dll/win32/gdi32/misc/stubs.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/misc/stubs.c?rev=28711&r1=28710&r2=28711&view=diff
==============================================================================
--- trunk/reactos/dll/win32/gdi32/misc/stubs.c (original)
+++ trunk/reactos/dll/win32/gdi32/misc/stubs.c Fri Aug 31 19:49:19 2007
@@ -1108,60 +1108,13 @@
  */
 
 
-/*
- * @implemented
- */
-BOOL
-STDCALL
-GdiPlayDCScript(
-	DWORD	a0,
-	DWORD	a1,
-	DWORD	a2,
-	DWORD	a3,
-	DWORD	a4,
-	DWORD	a5
-	)
-{
-    /* FIXME fix the prototype right */
-    return FALSE;
-}
-
-
-/*
- * @implemented
- */
-BOOL
-STDCALL
-GdiPlayJournal(
-	DWORD	a0,
-	DWORD	a1,
-	DWORD	a2,
-	DWORD	a3,
-	DWORD	a4
-	)
-{
-    /* FIXME fix the prototype right */
-    return FALSE;
-}
-
-
-/*
- * @implemented
- */
-BOOL
-STDCALL
-GdiPlayScript(
-	DWORD	a0,
-	DWORD	a1,
-	DWORD	a2,
-	DWORD	a3,
-	DWORD	a4,
-	DWORD	a5,
-	DWORD	a6)
-{
-    /* FIXME prototype */
-    return FALSE;
-}
+
+
+
+
+
+
+
 
 
 /*
@@ -1386,142 +1339,82 @@
 }
 
 /*
- * @implemented
- */
-HBITMAP 
-STDCALL
-GdiConvertBitmap(HBITMAP hbm)
-{
-    return hbm;
-}
-
-/*
- * @implemented
- */
-HBRUSH
-STDCALL
-GdiConvertBrush(HBRUSH hbr)
-{
-    return hbr;
-}
-
-/*
- * @implemented
+ * @unimplemented
+ */
+HENHMETAFILE 
+STDCALL
+GdiConvertEnhMetaFile(HENHMETAFILE hmf)
+{
+	UNIMPLEMENTED;
+	SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+	return 0;
+}
+
+/*
+ * @unimplemented
+ */
+BOOL
+STDCALL
+GdiDeleteLocalDC(HDC hdc)
+{
+	UNIMPLEMENTED;
+	SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+	return 0;
+}
+
+/*
+ * @unimplemented
+ */
+BOOL
+STDCALL
+GdiDrawStream(HDC dc, ULONG l, VOID *v)
+{
+	UNIMPLEMENTED;
+	SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+	return 0;
+}
+
+/*
+ * @unimplemented
+ */
+DWORD 
+STDCALL
+GdiGetCodePage(HDC hdc)
+{
+	UNIMPLEMENTED;
+	SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+	return 0;
+}
+
+/*
+ * @unimplemented
+ */
+HBRUSH 
+STDCALL
+GdiGetLocalBrush(HBRUSH hbr)
+{
+	UNIMPLEMENTED;
+	SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+	return 0;
+}
+
+/*
+ * @unimplemented
  */
 HDC 
 STDCALL
-GdiConvertDC(HDC hdc)
-{
-    return hdc;
-}
-
-/*
- * @implemented
+GdiGetLocalDC(HDC hdc)
+{
+	UNIMPLEMENTED;
+	SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+	return 0;
+}
+
+/*
+ * @unimplemented
  */
 HFONT 
 STDCALL
-GdiConvertFont(HFONT hfont)
-{
-    return hfont;
-}
-
-/*
- * @implemented
- */
-HPALETTE 
-STDCALL
-GdiConvertPalette(HPALETTE hpal)
-{
-    return hpal;
-}
-
-/*
- * @implemented
- */
-HRGN
-STDCALL
-GdiConvertRegion(HRGN hregion)
-{
-    return hregion;
-}
-
-/*
- * @unimplemented
- */
-HENHMETAFILE 
-STDCALL
-GdiConvertEnhMetaFile(HENHMETAFILE hmf)
-{
-	UNIMPLEMENTED;
-	SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
-	return 0;
-}
-
-/*
- * @unimplemented
- */
-BOOL
-STDCALL
-GdiDeleteLocalDC(HDC hdc)
-{
-	UNIMPLEMENTED;
-	SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
-	return 0;
-}
-
-/*
- * @unimplemented
- */
-BOOL
-STDCALL
-GdiDrawStream(HDC dc, ULONG l, VOID *v)
-{
-	UNIMPLEMENTED;
-	SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
-	return 0;
-}
-
-/*
- * @unimplemented
- */
-DWORD 
-STDCALL
-GdiGetCodePage(HDC hdc)
-{
-	UNIMPLEMENTED;
-	SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
-	return 0;
-}
-
-/*
- * @unimplemented
- */
-HBRUSH 
-STDCALL
-GdiGetLocalBrush(HBRUSH hbr)
-{
-	UNIMPLEMENTED;
-	SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
-	return 0;
-}
-
-/*
- * @unimplemented
- */
-HDC 
-STDCALL
-GdiGetLocalDC(HDC hdc)
-{
-	UNIMPLEMENTED;
-	SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
-	return 0;
-}
-
-/*
- * @unimplemented
- */
-HFONT 
-STDCALL
 GdiGetLocalFont(HFONT hfont)
 {
 	UNIMPLEMENTED;
@@ -1566,20 +1459,6 @@
 }
 
 /*
- * @implemented
- */
-BOOL
-STDCALL
-GdiSetAttrs(HDC hdc)
-{
-    return TRUE;
-}
-
-
-
-
-
-/*
  * @unimplemented
  */
 BOOL
@@ -1589,18 +1468,6 @@
 	UNIMPLEMENTED;
 	SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
 	return 0;
-}
-
-
-
-/*
- * @implemented
- */
-VOID 
-STDCALL
-GdiSetServerAttr(HDC hdc,DWORD attr)
-{
-    /* it does do nothing */
 }
 
 /*




More information about the Ros-diffs mailing list