[PATCH] wineddi.drv: add beginnings of the DDI graphics driver
Marcel Partap
mpartap at gmx.net
Sun Dec 9 12:56:08 CST 2007
---
dlls/wineddi.drv/Makefile.in | 14 +++++++++
dlls/wineddi.drv/init.c | 55 +++++++++++++++++++++++++++++++++++++
dlls/wineddi.drv/wineddi.drv.spec | 3 ++
dlls/wineddi.drv/wineddidrv.h | 28 +++++++++++++++++++
4 files changed, 100 insertions(+), 0 deletions(-)
create mode 100644 dlls/wineddi.drv/Makefile.in
create mode 100644 dlls/wineddi.drv/init.c
create mode 100644 dlls/wineddi.drv/wineddi.drv.spec
create mode 100644 dlls/wineddi.drv/wineddidrv.h
diff --git a/dlls/wineddi.drv/Makefile.in b/dlls/wineddi.drv/Makefile.in
new file mode 100644
index 0000000..18072c5
--- /dev/null
+++ b/dlls/wineddi.drv/Makefile.in
@@ -0,0 +1,14 @@
+TOPSRCDIR = @top_srcdir@
+TOPOBJDIR = ../..
+SRCDIR = @srcdir@
+VPATH = @srcdir@
+MODULE = wineddi.drv
+IMPORTS = user32 gdi32 winspool advapi32 kernel32
+EXTRAINCL = @FREETYPEINCL@
+
+C_SRCS = \
+ init.c
+
+ at MAKE_DLL_RULES@
+
+ at DEPENDENCIES@ # everything below this line is overwritten by make depend
diff --git a/dlls/wineddi.drv/init.c b/dlls/wineddi.drv/init.c
new file mode 100644
index 0000000..1a44cc9
--- /dev/null
+++ b/dlls/wineddi.drv/init.c
@@ -0,0 +1,55 @@
+/*
+ * DDI driver initialisation
+ *
+ * Copyright (c) 2007 Marcel Partap
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#include <config.h>
+#include "wineddidrv.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(ddidrv);
+
+BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD dwReason, LPVOID pReserved)
+{
+ TRACE("(hInst = %p, dwReason = %d, pReserved = %p)\n", hInstDLL, dwReason, pReserved);
+ switch(dwReason)
+ {
+ case DLL_PROCESS_ATTACH:
+ DisableThreadLibraryCalls(hInstDLL);
+ break;
+ case DLL_PROCESS_DETACH:
+ break;
+ }
+ return TRUE;
+}
+
+
+/***********************************************************************
+ * DDIDRV_CreateDC (GDI32.@)
+ *
+ * Initialize the native driver via the DDI (device driver interface)
+ *
+ * RETURNS
+ * Success: TRUE
+ * Failure: FALSE
+ */
+BOOL DDIDRV_CreateDC(HDC hdc, DHPDEV *pdev, LPCWSTR driverNameW, LPCWSTR deviceNameW,
+ LPCWSTR outputPortW, const DEVMODEW* pdmInitData)
+{
+ FIXME("(%p, %p, %p, %p, %p, %p): stub\n", hdc, pdev, driverNameW, deviceNameW, outputPortW, pdmInitData);
+ return FALSE;
+}
diff --git a/dlls/wineddi.drv/wineddi.drv.spec b/dlls/wineddi.drv/wineddi.drv.spec
new file mode 100644
index 0000000..675b1f8
--- /dev/null
+++ b/dlls/wineddi.drv/wineddi.drv.spec
@@ -0,0 +1,3 @@
+# WINE DDI graphics driver
+
+@ cdecl CreateDC(long ptr wstr wstr wstr ptr) DDIDRV_CreateDC
diff --git a/dlls/wineddi.drv/wineddidrv.h b/dlls/wineddi.drv/wineddidrv.h
new file mode 100644
index 0000000..e89b137
--- /dev/null
+++ b/dlls/wineddi.drv/wineddidrv.h
@@ -0,0 +1,28 @@
+/*
+ * Header for the WINE DDI graphics driver
+ *
+ * Copyright (c) 2007 Marcel Partap
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#include <stdarg.h>
+
+#include <windef.h>
+#include <winbase.h>
+#include <wingdi.h>
+#include <ddk/winddi.h>
+
+#include <wine/debug.h>
--
1.5.3.7
--------------060905000107080302060606--
More information about the wine-patches
mailing list