From bcfce0592bd44b483ca36cfed9a5c719b2c8bba6 Mon Sep 17 00:00:00 2001 From: Huw Davies Date: Wed, 2 Sep 2009 12:02:39 +0100 Subject: [PATCH] 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(+) create mode 100644 dlls/oledb32/Makefile.in create mode 100644 dlls/oledb32/main.c create mode 100644 dlls/oledb32/oledb32.spec diff --git a/configure b/configure index d8db56d133c..5ae5fbbab3a 100755 --- a/configure +++ b/configure @@ -15913,6 +15913,14 @@ ALL_MAKEFILE_DEPENDS="$ALL_MAKEFILE_DEPENDS 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 \\ @@ -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 5c753c0badb..0d2e860cde3 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 00000000000..538150311ea --- /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 + +@MAKE_DLL_RULES@ + +@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 00000000000..46c54381155 --- /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 + +#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 00000000000..c5fc87af6d5 --- /dev/null +++ b/dlls/oledb32/oledb32.spec @@ -0,0 +1,4 @@ +@ stub DllCanUnloadNow +@ stub DllGetClassObject +@ stub DllRegisterServer +@ stub DllUnregisterServer