[1/5] wbemdisp: Add a stub dll.

Hans Leidekker hans at codeweavers.com
Fri Aug 16 07:18:52 CDT 2013


---
 configure.ac                |    1 +
 dlls/wbemdisp/Makefile.in   |    6 ++++++
 dlls/wbemdisp/main.c        |   36 ++++++++++++++++++++++++++++++++++++
 dlls/wbemdisp/wbemdisp.spec |    4 ++++
 tools/wine.inf.in           |    1 +
 5 files changed, 48 insertions(+)
 create mode 100644 dlls/wbemdisp/Makefile.in
 create mode 100644 dlls/wbemdisp/main.c
 create mode 100644 dlls/wbemdisp/wbemdisp.spec

diff --git a/configure.ac b/configure.ac
index 0e3df61..7318944 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3086,6 +3086,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
-- 
1.7.10.4







More information about the wine-patches mailing list