From 4f1d040eaf7ecdd519848f75485b7844dda2b82b Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Wed, 3 Feb 2010 03:49:37 +0300 Subject: [PATCH] Add stub msxml4.dll. --- configure | 9 +++++++++ configure.ac | 1 + dlls/msxml4/Makefile.in | 14 ++++++++++++++ dlls/msxml4/main.c | 39 +++++++++++++++++++++++++++++++++++++++ dlls/msxml4/msxml4.spec | 4 ++++ 5 files changed, 67 insertions(+) create mode 100644 dlls/msxml4/Makefile.in create mode 100644 dlls/msxml4/main.c create mode 100644 dlls/msxml4/msxml4.spec diff --git a/configure b/configure index 2cd384dea6..f60272d1e8 100755 --- a/configure +++ b/configure @@ -16222,6 +16222,14 @@ ALL_MAKEFILE_DEPENDS="$ALL_MAKEFILE_DEPENDS dlls/msxml3/tests/Makefile: dlls/msxml3/tests/Makefile.in dlls/Maketest.rules config.status" ac_config_files="$ac_config_files dlls/msxml3/tests/Makefile" +ALL_MAKEFILES="$ALL_MAKEFILES \\ + dlls/msxml4/Makefile" +test "x$enable_msxml4" != xno && ALL_DLL_DIRS="$ALL_DLL_DIRS \\ + msxml4" +ALL_MAKEFILE_DEPENDS="$ALL_MAKEFILE_DEPENDS +dlls/msxml4/Makefile: dlls/msxml4/Makefile.in dlls/Makedll.rules config.status" +ac_config_files="$ac_config_files dlls/msxml4/Makefile" + ALL_IMPORT_LIBS="$ALL_IMPORT_LIBS \\ nddeapi/libnddeapi.$IMPLIBEXT" ALL_IMPORTLIB_RULES="$ALL_IMPORTLIB_RULES @@ -19896,6 +19904,7 @@ do "dlls/mswsock/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;; "dlls/msxml3/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/Makefile" ;; "dlls/msxml3/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/tests/Makefile" ;; + "dlls/msxml4/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml4/Makefile" ;; "dlls/nddeapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/nddeapi/Makefile" ;; "dlls/netapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;; "dlls/netapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;; diff --git a/configure.ac b/configure.ac index 8016dd7125..24aac13662 100644 --- a/configure.ac +++ b/configure.ac @@ -2391,6 +2391,7 @@ WINE_CONFIG_DLL(msvideo.dll16,enable_win16) WINE_CONFIG_DLL(mswsock,,[mswsock]) WINE_CONFIG_DLL(msxml3) WINE_CONFIG_TEST(dlls/msxml3/tests) +WINE_CONFIG_DLL(msxml4) WINE_CONFIG_DLL(nddeapi,,[nddeapi]) WINE_CONFIG_DLL(netapi32,,[netapi32]) WINE_CONFIG_TEST(dlls/netapi32/tests) diff --git a/dlls/msxml4/Makefile.in b/dlls/msxml4/Makefile.in new file mode 100644 index 0000000000..093e67d72d --- /dev/null +++ b/dlls/msxml4/Makefile.in @@ -0,0 +1,14 @@ +EXTRADEFS = -DCOM_NO_WINDOWS_H +TOPSRCDIR = @top_srcdir@ +TOPOBJDIR = ../.. +SRCDIR = @srcdir@ +VPATH = @srcdir@ +MODULE = msxml4.dll +IMPORTS = kernel32 + +C_SRCS = \ + main.c + +@MAKE_DLL_RULES@ + +@DEPENDENCIES@ # everything below this line is overwritten by make depend diff --git a/dlls/msxml4/main.c b/dlls/msxml4/main.c new file mode 100644 index 0000000000..761184b27f --- /dev/null +++ b/dlls/msxml4/main.c @@ -0,0 +1,39 @@ +/* + * MSXML4 entry point + * + * Copyright 2010 Nikolay Sivov + * + * 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 +#include "windef.h" +#include "winbase.h" + +HRESULT WINAPI DllCanUnloadNow(void) +{ + return S_FALSE; +} + +BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, LPVOID reserved) +{ + switch (reason) + { + case DLL_PROCESS_ATTACH: + DisableThreadLibraryCalls(instance); + break; + } + return TRUE; +} diff --git a/dlls/msxml4/msxml4.spec b/dlls/msxml4/msxml4.spec new file mode 100644 index 0000000000..3685aa2b67 --- /dev/null +++ b/dlls/msxml4/msxml4.spec @@ -0,0 +1,4 @@ +@ stdcall -private DllCanUnloadNow() +@ stub -private DllGetClassObject +@ stub -private DllRegisterServer +@ stub -private DllUnregisterServer