Huw Davies : oledb32: Add a stub oledb32.dll.

Alexandre Julliard julliard at winehq.org
Wed Sep 2 09:31:16 CDT 2009


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

Author: Huw Davies <huw at codeweavers.com>
Date:   Wed Sep  2 12:02:39 2009 +0100

oledb32: Add a stub oledb32.dll.

---

 configure                 |    9 +++++++++
 configure.ac              |    1 +
 dlls/oledb32/Makefile.in  |   14 ++++++++++++++
 dlls/oledb32/main.c       |   37 +++++++++++++++++++++++++++++++++++++
 dlls/oledb32/oledb32.spec |    4 ++++
 5 files changed, 65 insertions(+), 0 deletions(-)

diff --git a/configure b/configure
index d8db56d..5ae5fbb 100755
--- a/configure
+++ b/configure
@@ -15914,6 +15914,14 @@ dlls/olecli32/Makefile: dlls/olecli32/Makefile.in dlls/Makedll.rules"
 ac_config_files="$ac_config_files dlls/olecli32/Makefile"
 
 ALL_MAKEFILES="$ALL_MAKEFILES \\
+	dlls/oledb32/Makefile"
+test "x$enable_oledb32" != xno && ALL_DLL_DIRS="$ALL_DLL_DIRS \\
+	oledb32"
+ALL_MAKEFILE_DEPENDS="$ALL_MAKEFILE_DEPENDS
+dlls/oledb32/Makefile: dlls/oledb32/Makefile.in dlls/Makedll.rules"
+ac_config_files="$ac_config_files dlls/oledb32/Makefile"
+
+ALL_MAKEFILES="$ALL_MAKEFILES \\
 	dlls/oledlg/Makefile"
 test "x$enable_oledlg" != xno && ALL_DLL_DIRS="$ALL_DLL_DIRS \\
 	oledlg"
@@ -18841,6 +18849,7 @@ do
     "dlls/oleaut32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
     "dlls/olecli.dll16/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olecli.dll16/Makefile" ;;
     "dlls/olecli32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olecli32/Makefile" ;;
+    "dlls/oledb32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oledb32/Makefile" ;;
     "dlls/oledlg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
     "dlls/olepro32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
     "dlls/olesvr.dll16/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olesvr.dll16/Makefile" ;;
diff --git a/configure.ac b/configure.ac
index 5c753c0..0d2e860 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2340,6 +2340,7 @@ WINE_CONFIG_MAKEFILE([dlls/oleaut32/Makefile],[dlls/Makedll.rules],[dlls],[ALL_D
 WINE_CONFIG_MAKEFILE([dlls/oleaut32/tests/Makefile],[dlls/Maketest.rules],[dlls],[ALL_TEST_DIRS],[enable_tests])
 WINE_CONFIG_MAKEFILE([dlls/olecli.dll16/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS],[enable_win16])
 WINE_CONFIG_MAKEFILE([dlls/olecli32/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
+WINE_CONFIG_MAKEFILE([dlls/oledb32/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
 WINE_CONFIG_MAKEFILE([dlls/oledlg/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
 WINE_CONFIG_MAKEFILE([dlls/olepro32/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
 WINE_CONFIG_MAKEFILE([dlls/olesvr.dll16/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS],[enable_win16])
diff --git a/dlls/oledb32/Makefile.in b/dlls/oledb32/Makefile.in
new file mode 100644
index 0000000..5381503
--- /dev/null
+++ b/dlls/oledb32/Makefile.in
@@ -0,0 +1,14 @@
+EXTRADEFS = -DCOM_NO_WINDOWS_H
+TOPSRCDIR = @top_srcdir@
+TOPOBJDIR = ../..
+SRCDIR    = @srcdir@
+VPATH     = @srcdir@
+MODULE    = oledb32.dll
+IMPORTS   = oleaut32 ole32 user32 advapi32 kernel32
+
+C_SRCS = \
+	main.c
+
+ at MAKE_DLL_RULES@
+
+ at DEPENDENCIES@  # everything below this line is overwritten by make depend
diff --git a/dlls/oledb32/main.c b/dlls/oledb32/main.c
new file mode 100644
index 0000000..46c5438
--- /dev/null
+++ b/dlls/oledb32/main.c
@@ -0,0 +1,37 @@
+/* OLE DB Initialization
+ *
+ * Copyright 2009 Huw Davies
+ *
+ * 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 <stdarg.h>
+
+#include "windef.h"
+#include "winbase.h"
+
+BOOL WINAPI DllMain(HINSTANCE hinst, DWORD reason, LPVOID lpv)
+{
+    switch(reason)
+    {
+    case DLL_PROCESS_ATTACH:
+        DisableThreadLibraryCalls(hinst);
+        break;
+
+    case DLL_PROCESS_DETACH:
+        break;
+    }
+    return TRUE;
+}
diff --git a/dlls/oledb32/oledb32.spec b/dlls/oledb32/oledb32.spec
new file mode 100644
index 0000000..c5fc87a
--- /dev/null
+++ b/dlls/oledb32/oledb32.spec
@@ -0,0 +1,4 @@
+@ stub DllCanUnloadNow
+@ stub DllGetClassObject
+@ stub DllRegisterServer
+@ stub DllUnregisterServer




More information about the wine-cvs mailing list