From b2d4b506b3c92cc93a1144b201e0e96fa14d10d0 Mon Sep 17 00:00:00 2001 From: Austin English Date: Thu, 8 Jun 2017 16:39:41 -0500 Subject: [PATCH] tdh: Add stub dll. Signed-off-by: Austin English Signed-off-by: Alexandre Julliard --- configure | 2 ++ configure.ac | 1 + dlls/tdh/Makefile.in | 4 ++++ dlls/tdh/tdh.spec | 34 ++++++++++++++++++++++++++++++++++ dlls/tdh/tdh_main.c | 43 +++++++++++++++++++++++++++++++++++++++++++ 5 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 b/configure index 2964b81192d..51904b584a0 100755 --- a/configure +++ b/configure @@ -1430,6 +1430,7 @@ enable_sxs enable_t2embed enable_tapi32 enable_taskschd +enable_tdh enable_tdi_sys enable_traffic enable_twain_32 @@ -18509,6 +18510,7 @@ wine_fn_config_test dlls/t2embed/tests t2embed_test wine_fn_config_dll tapi32 enable_tapi32 implib wine_fn_config_dll taskschd enable_taskschd clean wine_fn_config_test dlls/taskschd/tests taskschd_test +wine_fn_config_dll tdh enable_tdh wine_fn_config_dll tdi.sys enable_tdi_sys wine_fn_config_dll toolhelp.dll16 enable_win16 wine_fn_config_dll traffic enable_traffic diff --git a/configure.ac b/configure.ac index 2db5d6a5961..573d2905999 100644 --- a/configure.ac +++ b/configure.ac @@ -3452,6 +3452,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 00000000000..0a4693f43ea --- /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 00000000000..87028020772 --- /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 00000000000..5e104874a31 --- /dev/null +++ b/dlls/tdh/tdh_main.c @@ -0,0 +1,43 @@ +/* + * 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 + +#include "windef.h" +#include "winbase.h" +#include "wine/debug.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; +}