[PATCH] fltlib: Add a stub dll

Detlef Riekenberg wine.dev at web.de
Wed Sep 30 07:24:46 CDT 2009


---
 dlls/fltlib/Makefile.in |   13 +++++++++++++
 dlls/fltlib/fltlib.c    |   45 +++++++++++++++++++++++++++++++++++++++++++++
 dlls/fltlib/fltlib.spec |   29 +++++++++++++++++++++++++++++
 3 files changed, 87 insertions(+), 0 deletions(-)
 create mode 100644 dlls/fltlib/Makefile.in
 create mode 100644 dlls/fltlib/fltlib.c
 create mode 100644 dlls/fltlib/fltlib.spec

diff --git a/dlls/fltlib/Makefile.in b/dlls/fltlib/Makefile.in
new file mode 100644
index 0000000..f0addf1
--- /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
+
+ at MAKE_DLL_RULES@
+
+ at 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 0000000..08baf8f
--- /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 <stdarg.h>
+
+#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 0000000..ac1d7ec
--- /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
-- 
1.5.4.3


--=-THvds0cXzT+Mg/3y/dF5--




More information about the wine-patches mailing list