From eb8b165785ca85dbb221b1c7e81e71557b38425a Mon Sep 17 00:00:00 2001 From: Detlef Riekenberg Date: Wed, 30 Sep 2009 14:24:46 +0200 Subject: [PATCH] fltlib: Add a stub dll. --- configure | 9 +++++++++ configure.ac | 1 + dlls/fltlib/Makefile.in | 13 ++++++++++++ dlls/fltlib/fltlib.c | 45 +++++++++++++++++++++++++++++++++++++++++ dlls/fltlib/fltlib.spec | 29 ++++++++++++++++++++++++++ 5 files changed, 97 insertions(+) create mode 100644 dlls/fltlib/Makefile.in create mode 100644 dlls/fltlib/fltlib.c create mode 100644 dlls/fltlib/fltlib.spec diff --git a/configure b/configure index d05447a9edc..9233a42a4db 100755 --- a/configure +++ b/configure @@ -14859,6 +14859,14 @@ ALL_MAKEFILE_DEPENDS="$ALL_MAKEFILE_DEPENDS dlls/faultrep/Makefile: dlls/faultrep/Makefile.in dlls/Makedll.rules" ac_config_files="$ac_config_files dlls/faultrep/Makefile" +ALL_MAKEFILES="$ALL_MAKEFILES \\ + dlls/fltlib/Makefile" +test "x$enable_fltlib" != xno && ALL_DLL_DIRS="$ALL_DLL_DIRS \\ + fltlib" +ALL_MAKEFILE_DEPENDS="$ALL_MAKEFILE_DEPENDS +dlls/fltlib/Makefile: dlls/fltlib/Makefile.in dlls/Makedll.rules" +ac_config_files="$ac_config_files dlls/fltlib/Makefile" + ALL_MAKEFILES="$ALL_MAKEFILES \\ dlls/fusion/Makefile" test "x$enable_fusion" != xno && ALL_DLL_DIRS="$ALL_DLL_DIRS \\ @@ -18846,6 +18854,7 @@ do "dlls/dxgi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxgi/tests/Makefile" ;; "dlls/dxguid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;; "dlls/faultrep/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/faultrep/Makefile" ;; + "dlls/fltlib/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/fltlib/Makefile" ;; "dlls/fusion/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/fusion/Makefile" ;; "dlls/fusion/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/fusion/tests/Makefile" ;; "dlls/gdi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi32/Makefile" ;; diff --git a/configure.ac b/configure.ac index 27ae652560e..3d32d28142e 100644 --- a/configure.ac +++ b/configure.ac @@ -2220,6 +2220,7 @@ WINE_CONFIG_MAKEFILE([dlls/dxgi/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_D WINE_CONFIG_MAKEFILE([dlls/dxgi/tests/Makefile],[dlls/Maketest.rules],[dlls],[ALL_TEST_DIRS],[enable_tests]) WINE_CONFIG_MAKEFILE([dlls/dxguid/Makefile],[dlls/Makeimplib.rules],[dlls],[ALL_IMPLIB_DIRS]) WINE_CONFIG_MAKEFILE([dlls/faultrep/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) +WINE_CONFIG_MAKEFILE([dlls/fltlib/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) WINE_CONFIG_MAKEFILE([dlls/fusion/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) WINE_CONFIG_MAKEFILE([dlls/fusion/tests/Makefile],[dlls/Maketest.rules],[dlls],[ALL_TEST_DIRS],[enable_tests]) WINE_CONFIG_MAKEFILE([dlls/gdi32/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) diff --git a/dlls/fltlib/Makefile.in b/dlls/fltlib/Makefile.in new file mode 100644 index 00000000000..f0addf165ab --- /dev/null +++ b/dlls/fltlib/Makefile.in @@ -0,0 +1,13 @@ +TOPSRCDIR = @top_srcdir@ +TOPOBJDIR = ../.. +SRCDIR = @srcdir@ +VPATH = @srcdir@ +MODULE = fltlib.dll +IMPORTS = kernel32 + +C_SRCS = \ + fltlib.c + +@MAKE_DLL_RULES@ + +@DEPENDENCIES@ # everything below this line is overwritten by make depend diff --git a/dlls/fltlib/fltlib.c b/dlls/fltlib/fltlib.c new file mode 100644 index 00000000000..08baf8fa393 --- /dev/null +++ b/dlls/fltlib/fltlib.c @@ -0,0 +1,45 @@ +/* + * Copyright 2009 Detlef Riekenberg + * + * 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" +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(fltlib); + +/***************************************************** + * DllMain + */ +BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) +{ + TRACE("(0x%p, %d, %p)\n", hinstDLL, fdwReason, lpvReserved); + + switch (fdwReason) + { + case DLL_WINE_PREATTACH: + return FALSE; /* use native version */ + + case DLL_PROCESS_ATTACH: + DisableThreadLibraryCalls(hinstDLL); + break; + } + return TRUE; +} diff --git a/dlls/fltlib/fltlib.spec b/dlls/fltlib/fltlib.spec new file mode 100644 index 00000000000..ac1d7ecd962 --- /dev/null +++ b/dlls/fltlib/fltlib.spec @@ -0,0 +1,29 @@ +@ stub FilterAttach +@ stub FilterAttachAtAltitude +@ stub FilterClose +@ stub FilterConnectCommunicationPort +@ stub FilterCreate +@ stub FilterDetach +@ stub FilterFindClose +@ stub FilterFindFirst +@ stub FilterFindNext +@ stub FilterGetDosName +@ stub FilterGetInformation +@ stub FilterGetMessage +@ stub FilterInstanceClose +@ stub FilterInstanceCreate +@ stub FilterInstanceFindClose +@ stub FilterInstanceFindFirst +@ stub FilterInstanceFindNext +@ stub FilterInstanceGetInformation +@ stub FilterLoad +@ stub FilterReplyMessage +@ stub FilterSendMessage +@ stub FilterUnload +@ stub FilterVolumeClose +@ stub FilterVolumeFindClose +@ stub FilterVolumeFindFirst +@ stub FilterVolumeFindNext +@ stub FilterVolumeInstanceFindClose +@ stub FilterVolumeInstanceFindFirst +@ stub FilterVolumeInstanceFindNext