From c0ddd5e33e2f88d173b78dcb27c081c3238e89b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kov=C3=A1cs=20Andr=C3=A1s?= Date: Tue, 19 Jun 2007 09:36:14 +0200 Subject: [PATCH] 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(+) create mode 100644 dlls/dwmapi/Makefile.in create mode 100644 dlls/dwmapi/dwmapi.spec create mode 100644 dlls/dwmapi/dwmapi_main.c create mode 100644 dlls/dwmapi/version.rc diff --git a/.gitignore b/.gitignore index 5d2ed28f48c..7c7ccff23ef 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 f0045d37c58..1963967c725 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 06b92fc4c88..a86bd86c10c 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 d28be8cedfb..59f5e50d3c1 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 89e5b333954..56412cf30be 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 00000000000..9db8589c7bf --- /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 + +@MAKE_DLL_RULES@ + +@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 00000000000..1f21b69fd13 --- /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 00000000000..4bee74d1bc1 --- /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 + +#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 00000000000..b76f194dd65 --- /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"