Hans Leidekker : wbemdisp: Add a stub dll.

Alexandre Julliard julliard at winehq.org
Fri Aug 16 14:23:47 CDT 2013


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

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Fri Aug 16 14:18:52 2013 +0200

wbemdisp: Add a stub dll.

---

 configure                   |    1 +
 configure.ac                |    1 +
 dlls/wbemdisp/Makefile.in   |    6 ++++++
 dlls/wbemdisp/main.c        |   36 ++++++++++++++++++++++++++++++++++++
 dlls/wbemdisp/wbemdisp.spec |    4 ++++
 tools/wine.inf.in           |    1 +
 6 files changed, 49 insertions(+), 0 deletions(-)

diff --git a/configure b/configure
index 0cdfd36..c149359 100755
--- a/configure
+++ b/configure
@@ -16449,6 +16449,7 @@ wine_fn_config_dll vtdapi.vxd enable_win16
 wine_fn_config_dll vwin32.vxd enable_win16
 wine_fn_config_dll w32skrnl enable_win16
 wine_fn_config_dll w32sys.dll16 enable_win16
+wine_fn_config_dll wbemdisp enable_wbemdisp
 wine_fn_config_dll wbemprox enable_wbemprox
 wine_fn_config_test dlls/wbemprox/tests wbemprox_test
 wine_fn_config_dll webservices enable_webservices implib
diff --git a/configure.ac b/configure.ac
index 07ee2f0..b9de304 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3089,6 +3089,7 @@ WINE_CONFIG_DLL(vtdapi.vxd,enable_win16)
 WINE_CONFIG_DLL(vwin32.vxd,enable_win16)
 WINE_CONFIG_DLL(w32skrnl,enable_win16)
 WINE_CONFIG_DLL(w32sys.dll16,enable_win16)
+WINE_CONFIG_DLL(wbemdisp)
 WINE_CONFIG_DLL(wbemprox)
 WINE_CONFIG_TEST(dlls/wbemprox/tests)
 WINE_CONFIG_DLL(webservices,,[implib])
diff --git a/dlls/wbemdisp/Makefile.in b/dlls/wbemdisp/Makefile.in
new file mode 100644
index 0000000..93812cb
--- /dev/null
+++ b/dlls/wbemdisp/Makefile.in
@@ -0,0 +1,6 @@
+MODULE    = wbemdisp.dll
+
+C_SRCS = \
+	main.c
+
+ at MAKE_DLL_RULES@
diff --git a/dlls/wbemdisp/main.c b/dlls/wbemdisp/main.c
new file mode 100644
index 0000000..83bd1eb
--- /dev/null
+++ b/dlls/wbemdisp/main.c
@@ -0,0 +1,36 @@
+/*
+ * Copyright 2013 Hans Leidekker for CodeWeavers
+ *
+ * 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>
+#include "windef.h"
+#include "winbase.h"
+
+BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
+{
+
+    switch (reason)
+    {
+        case DLL_WINE_PREATTACH:
+            return FALSE;    /* prefer native version */
+        case DLL_PROCESS_ATTACH:
+            DisableThreadLibraryCalls( hinst );
+            break;
+    }
+    return TRUE;
+}
diff --git a/dlls/wbemdisp/wbemdisp.spec b/dlls/wbemdisp/wbemdisp.spec
new file mode 100644
index 0000000..c5fc87a
--- /dev/null
+++ b/dlls/wbemdisp/wbemdisp.spec
@@ -0,0 +1,4 @@
+@ stub DllCanUnloadNow
+@ stub DllGetClassObject
+@ stub DllRegisterServer
+@ stub DllUnregisterServer
diff --git a/tools/wine.inf.in b/tools/wine.inf.in
index 75172f9..fcd32cf 100644
--- a/tools/wine.inf.in
+++ b/tools/wine.inf.in
@@ -2535,6 +2535,7 @@ HKLM,%CurrentVersion%\Telephony\Country List\998,"SameAreaRule",,"G"
 11,,shdocvw.dll
 11,gecko\plugin,npmshtml.dll
 11,wbem,mofcomp.exe
+11,wbem,wbemdisp.dll
 11,wbem,wbemprox.dll
 11,wbem,wmic.exe
 11,wbem,wmiutils.dll




More information about the wine-cvs mailing list