Add dwmapi.dll stub
Kovács András
andras at csevego.net
Tue Jun 19 02:41:32 CDT 2007
Hi,
Add dwmapi.dll stub. this allows to Halo 2 go further.
Best Regards,
--
----------------------------
Kovács András (andras)
NetClub Vezető Rendszergazda
Lamarr
csevego.net
andras at csevego.net
----------------------------
-------------- next part --------------
From 8e1ff85996a4e2a6134e334572b6d45a6b5dd964 Mon Sep 17 00:00:00 2001
From: =?utf-8?q?Andr=C3=A1s_Kov=C3=A1cs?= <andras at debian.sth.sze.hu>
Date: Tue, 19 Jun 2007 09:36:14 +0200
Subject: [PATCH] Add dwmapi.dll stub
---
Makefile.in | 1 +
configure.ac | 1 +
dlls/Makefile.in | 5 ++++
dlls/dwmapi/Makefile.in | 17 ++++++++++++++
dlls/dwmapi/dwmapi.spec | 23 +++++++++++++++++++
dlls/dwmapi/dwmapi_main.c | 52 +++++++++++++++++++++++++++++++++++++++++++++
dlls/dwmapi/version.rc | 26 ++++++++++++++++++++++
7 files changed, 125 insertions(+), 0 deletions(-)
diff --git a/Makefile.in b/Makefile.in
index 763851f..dc405e2 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -584,6 +584,7 @@ dlls/dswave/Makefile: dlls/dswave/Makefile.in dlls/Makedll.rules
dlls/dxdiagn/Makefile: dlls/dxdiagn/Makefile.in dlls/Makedll.rules
dlls/dxerr8/Makefile: dlls/dxerr8/Makefile.in dlls/Makeimplib.rules
dlls/dxerr9/Makefile: dlls/dxerr9/Makefile.in dlls/Makeimplib.rules
+dlls/dwmapi/Makefile: dlls/dwmapi/Makefile.in dlls/Makeimplib.rules
dlls/dxguid/Makefile: dlls/dxguid/Makefile.in dlls/Makeimplib.rules
dlls/gdi32/Makefile: dlls/gdi32/Makefile.in dlls/Makedll.rules
dlls/gdi32/tests/Makefile: dlls/gdi32/tests/Makefile.in dlls/Maketest.rules
diff --git a/configure.ac b/configure.ac
index 96b2c5c..3f10bf2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1514,6 +1514,7 @@ AC_CONFIG_FILES([dlls/dxdiagn/Makefile])
AC_CONFIG_FILES([dlls/dxerr8/Makefile])
AC_CONFIG_FILES([dlls/dxerr9/Makefile])
AC_CONFIG_FILES([dlls/dxguid/Makefile])
+AC_CONFIG_FILES([dlls/dwmapi/Makefile])
AC_CONFIG_FILES([dlls/gdi32/Makefile])
AC_CONFIG_FILES([dlls/gdi32/tests/Makefile])
AC_CONFIG_FILES([dlls/gdiplus/Makefile])
diff --git a/dlls/Makefile.in b/dlls/Makefile.in
index f1366f6..08805e2 100644
--- a/dlls/Makefile.in
+++ b/dlls/Makefile.in
@@ -70,6 +70,7 @@ BASEDIRS = \
dpnhpast \
dsound \
dswave \
+ dwmapi \
dxdiagn \
gdi32 \
gdiplus \
@@ -502,6 +503,7 @@ IMPORT_LIBS = \
dplayx/libdplayx.$(IMPLIBEXT) \
dpnet/libdpnet.$(IMPLIBEXT) \
dsound/libdsound.$(IMPLIBEXT) \
+ dwmapi/libdwmapi.$(IMPLIBEXT) \
gdi32/libgdi32.$(IMPLIBEXT) \
gdiplus/libgdiplus.$(IMPLIBEXT) \
glu32/libglu32.$(IMPLIBEXT) \
@@ -702,6 +704,9 @@ dpnet/libdpnet.$(IMPLIBEXT): dpnet/dpnet.spec $(WINEBUILD)
dsound/libdsound.$(IMPLIBEXT): dsound/dsound.spec $(WINEBUILD)
@cd dsound && $(MAKE) libdsound.$(IMPLIBEXT)
+
+dwmapi/libdwmapi.$(IMPLIBEXT): dwmapi/dwmapi.spec $(WINEBUILD)
+ @cd dwmapi && $(MAKE) libdwmapi.$(IMPLIBEXT)
gdi32/libgdi32.$(IMPLIBEXT): gdi32/gdi32.spec $(WINEBUILD)
@cd gdi32 && $(MAKE) libgdi32.$(IMPLIBEXT)
diff --git a/dlls/dwmapi/Makefile.in b/dlls/dwmapi/Makefile.in
new file mode 100644
index 0000000..930d85b
--- /dev/null
+++ b/dlls/dwmapi/Makefile.in
@@ -0,0 +1,17 @@
+TOPSRCDIR = @top_srcdir@
+TOPOBJDIR = ../..
+SRCDIR = @srcdir@
+VPATH = @srcdir@
+MODULE = dwmapi.dll
+IMPORTLIB = libdwmapi.$(IMPLIBEXT)
+IMPORTS = user32 gdi32 kernel32
+EXTRALIBS = -ldxguid -luuid
+
+C_SRCS = \
+ dwmapi_main.c
+
+RC_SRCS = version.rc
+
+ at MAKE_DLL_RULES@
+
+ at DEPENDENCIES@ # everything below this line is overwritten by make depend
diff --git a/dlls/dwmapi/dwmapi.spec b/dlls/dwmapi/dwmapi.spec
new file mode 100644
index 0000000..df09ccb
--- /dev/null
+++ b/dlls/dwmapi/dwmapi.spec
@@ -0,0 +1,23 @@
+111 stub DwmAttachMilContent
+113 stub DwmDefWindowProc
+114 stub DwmDetachMilContent
+116 stub DwmEnableBlurBehindWindow
+102 stub DwmEnableComposition
+117 stub DwmEnableMMCSS
+122 stub DwmExtendFrameIntoClientArea
+123 stub DwmFlush
+125 stub DwmGetColorizationColor
+126 stub DwmGetCompositionTimingInfo
+127 stub DwmGetGraphicsStreamClient
+128 stub DwmGetGraphicsStreamTransformHint
+129 stub DwmGetTransportAttributes
+130 stub DwmGetWindowAttribute
+131 stub DwmIsCompositionEnabled
+132 stub DwmModifyPreviousDxFrameDuration
+133 stub DwmQueryThumbnailSourceSize
+134 stub DwmRegisterThumbnail
+135 stub DwmSetDxFrameDuration
+136 stub DwmSetPresentParameters
+137 stub DwmSetWindowAttribute
+138 stub DwmUnregisterThumbnail
+139 stub DwmUpdateThumbnailProperties
diff --git a/dlls/dwmapi/dwmapi_main.c b/dlls/dwmapi/dwmapi_main.c
new file mode 100644
index 0000000..2771f73
--- /dev/null
+++ b/dlls/dwmapi/dwmapi_main.c
@@ -0,0 +1,52 @@
+/*
+ * Dwmapi
+ *
+ * Copyright 2007 Andras Kovacs
+ *
+ * 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 "initguid.h"
+#include <stdarg.h>
+
+#define NONAMELESSUNION
+#define NONAMELESSSTRUCT
+#define COBJMACROS
+#include "windef.h"
+#include "winbase.h"
+#include "wingdi.h"
+#include "winuser.h"
+#include "wine/debug.h"
+#include "wine/unicode.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(dwmapi);
+
+
+/* At process attach */
+BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
+{
+ TRACE("fdwReason=%d\n", fdwReason);
+ switch(fdwReason)
+ {
+ case DLL_WINE_PREATTACH:
+ return FALSE; /* prefer native version */
+ case DLL_PROCESS_ATTACH:
+ DisableThreadLibraryCalls( hInstDLL );
+ break;
+ }
+ return TRUE;
+}
diff --git a/dlls/dwmapi/version.rc b/dlls/dwmapi/version.rc
new file mode 100644
index 0000000..b76f194
--- /dev/null
+++ b/dlls/dwmapi/version.rc
@@ -0,0 +1,26 @@
+/*
+ * Copyright 2007 Andras Kovacs
+ *
+ * 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
+ */
+
+#define WINE_FILEDESCRIPTION_STR "Desktop Window Manager API"
+#define WINE_FILENAME_STR "dwmapi.dll"
+#define WINE_FILEVERSION 6,0,6000,16386
+#define WINE_FILEVERSION_STR "6.0.6000.16386"
+#define WINE_PRODUCTVERSION 6,0,6000,16386
+#define WINE_PRODUCTVERSION_STR "6.0.6000.16386"
+
+#include "wine/wine_common_ver.rc"
--
1.4.4.4
More information about the wine-patches
mailing list