Kovács András : Add dwmapi.dll stub.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Jun 21 09:47:37 CDT 2007


Module: wine
Branch: master
Commit: c0ddd5e33e2f88d173b78dcb27c081c3238e89b9
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c0ddd5e33e2f88d173b78dcb27c081c3238e89b9

Author: Kovács András <andras at csevego.net>
Date:   Tue Jun 19 09:36:14 2007 +0200

Add dwmapi.dll stub.

---

 .gitignore                |    2 +
 Makefile.in               |    2 +
 configure                 |    3 ++
 configure.ac              |    1 +
 dlls/Makefile.in          |    5 ++++
 dlls/dwmapi/Makefile.in   |   16 ++++++++++++++
 dlls/dwmapi/dwmapi.spec   |   44 ++++++++++++++++++++++++++++++++++++++++
 dlls/dwmapi/dwmapi_main.c |   49 +++++++++++++++++++++++++++++++++++++++++++++
 dlls/dwmapi/version.rc    |   26 +++++++++++++++++++++++
 9 files changed, 148 insertions(+), 0 deletions(-)

diff --git a/.gitignore b/.gitignore
index 5d2ed28..7c7ccff 100644
--- a/.gitignore
+++ b/.gitignore
@@ -231,6 +231,8 @@ dlls/dsound/tests/dsound_crosstest.exe
 dlls/dsound/tests/testlist.c
 dlls/dsound/version.res
 dlls/dswave/version.res
+dlls/dwmapi/libdwmapi.def
+dlls/dwmapi/version.res
 dlls/dxdiagn/version.res
 dlls/gdi.exe16
 dlls/gdi32/libgdi32.def
diff --git a/Makefile.in b/Makefile.in
index f0045d3..1963967 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -227,6 +227,7 @@ ALL_MAKEFILES = \
 	dlls/dsound/Makefile \
 	dlls/dsound/tests/Makefile \
 	dlls/dswave/Makefile \
+	dlls/dwmapi/Makefile \
 	dlls/dxdiagn/Makefile \
 	dlls/dxerr8/Makefile \
 	dlls/dxerr9/Makefile \
@@ -584,6 +585,7 @@ dlls/dpnhpast/Makefile: dlls/dpnhpast/Makefile.in dlls/Makedll.rules
 dlls/dsound/Makefile: dlls/dsound/Makefile.in dlls/Makedll.rules
 dlls/dsound/tests/Makefile: dlls/dsound/tests/Makefile.in dlls/Maketest.rules
 dlls/dswave/Makefile: dlls/dswave/Makefile.in dlls/Makedll.rules
+dlls/dwmapi/Makefile: dlls/dwmapi/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
diff --git a/configure b/configure
index 06b92fc..a86bd86 100755
--- a/configure
+++ b/configure
@@ -20524,6 +20524,8 @@ ac_config_files="$ac_config_files dlls/dsound/tests/Makefile"
 
 ac_config_files="$ac_config_files dlls/dswave/Makefile"
 
+ac_config_files="$ac_config_files dlls/dwmapi/Makefile"
+
 ac_config_files="$ac_config_files dlls/dxdiagn/Makefile"
 
 ac_config_files="$ac_config_files dlls/dxerr8/Makefile"
@@ -21705,6 +21707,7 @@ do
     "dlls/dsound/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
     "dlls/dsound/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
     "dlls/dswave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
+    "dlls/dwmapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dwmapi/Makefile" ;;
     "dlls/dxdiagn/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;;
     "dlls/dxerr8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
     "dlls/dxerr9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
diff --git a/configure.ac b/configure.ac
index d28be8c..59f5e50 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1514,6 +1514,7 @@ AC_CONFIG_FILES([dlls/dpnhpast/Makefile])
 AC_CONFIG_FILES([dlls/dsound/Makefile])
 AC_CONFIG_FILES([dlls/dsound/tests/Makefile])
 AC_CONFIG_FILES([dlls/dswave/Makefile])
+AC_CONFIG_FILES([dlls/dwmapi/Makefile])
 AC_CONFIG_FILES([dlls/dxdiagn/Makefile])
 AC_CONFIG_FILES([dlls/dxerr8/Makefile])
 AC_CONFIG_FILES([dlls/dxerr9/Makefile])
diff --git a/dlls/Makefile.in b/dlls/Makefile.in
index 89e5b33..56412cf 100644
--- a/dlls/Makefile.in
+++ b/dlls/Makefile.in
@@ -70,6 +70,7 @@ BASEDIRS = \
 	dpnhpast \
 	dsound \
 	dswave \
+	dwmapi \
 	dxdiagn \
 	gdi32 \
 	gdiplus \
@@ -505,6 +506,7 @@ IMPORT_LIBS = \
 	dplayx/libdplayx.$(IMPLIBEXT) \
 	dpnet/libdpnet.$(IMPLIBEXT) \
 	dsound/libdsound.$(IMPLIBEXT) \
+	dwmapi/libdwmapi.$(IMPLIBEXT) \
 	gdi32/libgdi32.$(IMPLIBEXT) \
 	gdiplus/libgdiplus.$(IMPLIBEXT) \
 	glu32/libglu32.$(IMPLIBEXT) \
@@ -706,6 +708,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..9db8589
--- /dev/null
+++ b/dlls/dwmapi/Makefile.in
@@ -0,0 +1,16 @@
+TOPSRCDIR = @top_srcdir@
+TOPOBJDIR = ../..
+SRCDIR    = @srcdir@
+VPATH     = @srcdir@
+MODULE    = dwmapi.dll
+IMPORTLIB = libdwmapi.$(IMPLIBEXT)
+IMPORTS   = user32 kernel32
+
+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..1f21b69
--- /dev/null
+++ b/dlls/dwmapi/dwmapi.spec
@@ -0,0 +1,44 @@
+100 stub @
+101 stub @
+102 stub DwmEnableComposition
+103 stub @
+104 stub @
+105 stub @
+106 stub @
+107 stub @
+108 stub @
+109 stub @
+110 stub @
+111 stub @
+112 stub @
+113 stub @
+
+115 stub @
+116 stub @
+117 stub @
+118 stub @
+119 stub @
+120 stub @
+
+@ stub DwmAttachMilContent
+@ stub DwmDefWindowProc
+@ stub DwmDetachMilContent
+@ stub DwmEnableBlurBehindWindow
+@ stub DwmEnableMMCSS
+@ stub DwmExtendFrameIntoClientArea
+@ stub DwmFlush
+@ stub DwmGetColorizationColor
+@ stub DwmGetCompositionTimingInfo
+@ stub DwmGetGraphicsStreamClient
+@ stub DwmGetGraphicsStreamTransformHint
+@ stub DwmGetTransportAttributes
+@ stub DwmGetWindowAttribute
+@ stub DwmIsCompositionEnabled
+@ stub DwmModifyPreviousDxFrameDuration
+@ stub DwmQueryThumbnailSourceSize
+@ stub DwmRegisterThumbnail
+@ stub DwmSetDxFrameDuration
+@ stub DwmSetPresentParameters
+@ stub DwmSetWindowAttribute
+@ stub DwmUnregisterThumbnail
+@ stub DwmUpdateThumbnailProperties
diff --git a/dlls/dwmapi/dwmapi_main.c b/dlls/dwmapi/dwmapi_main.c
new file mode 100644
index 0000000..4bee74d
--- /dev/null
+++ b/dlls/dwmapi/dwmapi_main.c
@@ -0,0 +1,49 @@
+/*
+ * 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 <stdarg.h>
+
+#define NONAMELESSUNION
+#define NONAMELESSSTRUCT
+#define COBJMACROS
+#include "windef.h"
+#include "winbase.h"
+#include "wingdi.h"
+#include "winuser.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(dwmapi);
+
+
+/* At process attach */
+BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
+{
+    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"




More information about the wine-cvs mailing list