[PATCH] tdh: add stub dll

Austin English austinenglish at gmail.com
Fri Jun 2 18:28:00 CDT 2017


Signed-off-by: Austin English <austinenglish at gmail.com>
---
 configure.ac         |  1 +
 dlls/tdh/Makefile.in |  4 ++++
 dlls/tdh/tdh.spec    | 34 ++++++++++++++++++++++++++++++++++
 dlls/tdh/tdh_main.c  | 45 +++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 84 insertions(+)
 create mode 100644 dlls/tdh/Makefile.in
 create mode 100644 dlls/tdh/tdh.spec
 create mode 100644 dlls/tdh/tdh_main.c

diff --git a/configure.ac b/configure.ac
index 129a8f62c7..b91dfb7bdc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3449,6 +3449,7 @@ WINE_CONFIG_TEST(dlls/t2embed/tests)
 WINE_CONFIG_DLL(tapi32,,[implib])
 WINE_CONFIG_DLL(taskschd,,[clean])
 WINE_CONFIG_TEST(dlls/taskschd/tests)
+WINE_CONFIG_DLL(tdh)
 WINE_CONFIG_DLL(tdi.sys)
 WINE_CONFIG_DLL(toolhelp.dll16,enable_win16)
 WINE_CONFIG_DLL(traffic)
diff --git a/dlls/tdh/Makefile.in b/dlls/tdh/Makefile.in
new file mode 100644
index 0000000000..0a4693f43e
--- /dev/null
+++ b/dlls/tdh/Makefile.in
@@ -0,0 +1,4 @@
+MODULE    = tdh.dll
+
+C_SRCS = \
+	tdh_main.c
diff --git a/dlls/tdh/tdh.spec b/dlls/tdh/tdh.spec
new file mode 100644
index 0000000000..8702802077
--- /dev/null
+++ b/dlls/tdh/tdh.spec
@@ -0,0 +1,34 @@
+@ stub TdhAggregatePayloadFilters
+@ stub TdhApplyPayloadFilter
+@ stub TdhCleanupPayloadEventFilterDescriptor
+@ stub TdhCloseDecodingHandle
+@ stub TdhCreatePayloadFilter
+@ stub TdhDeletePayloadFilter
+@ stub TdhEnumerateManifestProviderEvents
+@ stub TdhEnumerateProviderFieldInformation
+@ stub TdhEnumerateProviderFilters
+@ stub TdhEnumerateProviders
+@ stub TdhEnumerateRemoteWBEMProviderFieldInformation
+@ stub TdhEnumerateRemoteWBEMProviders
+@ stub TdhFormatProperty
+@ stub TdhGetAllEventsInformation
+@ stub TdhGetDecodingParameter
+@ stub TdhGetEventInformation
+@ stub TdhGetEventMapInformation
+@ stub TdhGetManifestEventInformation
+@ stub TdhGetProperty
+@ stub TdhGetPropertyOffsetAndSize
+@ stub TdhGetPropertySize
+@ stub TdhGetWppMessage
+@ stub TdhGetWppProperty
+@ stub TdhLoadManifest
+@ stub TdhLoadManifestFromBinary
+@ stub TdhOpenDecodingHandle
+@ stub TdhQueryProviderFieldInformation
+@ stub TdhQueryRemoteWBEMProviderFieldInformation
+@ stub TdhSetDecodingParameter
+@ stub TdhUnloadManifest
+@ stub TdhValidatePayloadFilter
+@ stub TdhpFindMatchClassFromWBEM
+@ stub TdhpGetBestTraceEventInfoWBEM
+@ stub TdhpGetEventMapInfoWBEM
diff --git a/dlls/tdh/tdh_main.c b/dlls/tdh/tdh_main.c
new file mode 100644
index 0000000000..a47c96cd81
--- /dev/null
+++ b/dlls/tdh/tdh_main.c
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2017 Austin English
+ *
+ * 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"
+#include "wine/debug.h"
+
+# include <tdh.h>
+
+WINE_DEFAULT_DEBUG_CHANNEL(tdh);
+
+BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, void *reserved)
+{
+    TRACE("(%p, %u, %p)\n", instance, reason, reserved);
+
+    switch (reason)
+    {
+        case DLL_WINE_PREATTACH:
+            return FALSE;    /* prefer native version */
+        case DLL_PROCESS_ATTACH:
+            DisableThreadLibraryCalls(instance);
+            break;
+    }
+
+    return TRUE;
+}
-- 
2.13.0




More information about the wine-patches mailing list