From cb0c5f53568e8a64b9fb1b2559afdd81555fde43 Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Mon, 7 Apr 2014 14:57:13 +0200 Subject: [PATCH] netprofm: New dll. --- configure | 2 ++ configure.ac | 1 + dlls/netprofm/Makefile.in | 4 ++++ dlls/netprofm/main.c | 38 +++++++++++++++++++++++++++++++++++++ dlls/netprofm/netprofm.spec | 4 ++++ 5 files changed, 49 insertions(+) create mode 100644 dlls/netprofm/Makefile.in create mode 100644 dlls/netprofm/main.c create mode 100644 dlls/netprofm/netprofm.spec diff --git a/configure b/configure index 5f4a7c5c67e..d65c3989d3a 100755 --- a/configure +++ b/configure @@ -1143,6 +1143,7 @@ enable_msxml6 enable_nddeapi enable_netapi32 enable_netcfgx +enable_netprofm enable_newdev enable_normaliz enable_npmshtml @@ -17052,6 +17053,7 @@ wine_fn_config_dll netapi32 enable_netapi32 implib wine_fn_config_test dlls/netapi32/tests netapi32_test wine_fn_config_dll netcfgx enable_netcfgx clean wine_fn_config_test dlls/netcfgx/tests netcfgx_test +wine_fn_config_dll netprofm enable_netprofm wine_fn_config_dll newdev enable_newdev implib wine_fn_config_dll normaliz enable_normaliz implib wine_fn_config_dll npmshtml enable_npmshtml diff --git a/configure.ac b/configure.ac index 44d7224151d..fbdc269af63 100644 --- a/configure.ac +++ b/configure.ac @@ -3031,6 +3031,7 @@ WINE_CONFIG_DLL(netapi32,,[implib]) WINE_CONFIG_TEST(dlls/netapi32/tests) WINE_CONFIG_DLL(netcfgx,,[clean]) WINE_CONFIG_TEST(dlls/netcfgx/tests) +WINE_CONFIG_DLL(netprofm) WINE_CONFIG_DLL(newdev,,[implib]) WINE_CONFIG_DLL(normaliz,,[implib]) WINE_CONFIG_DLL(npmshtml) diff --git a/dlls/netprofm/Makefile.in b/dlls/netprofm/Makefile.in new file mode 100644 index 00000000000..0368b86eede --- /dev/null +++ b/dlls/netprofm/Makefile.in @@ -0,0 +1,4 @@ +MODULE = netprofm.dll + +C_SRCS = \ + main.c diff --git a/dlls/netprofm/main.c b/dlls/netprofm/main.c new file mode 100644 index 00000000000..8c9fd273ea6 --- /dev/null +++ b/dlls/netprofm/main.c @@ -0,0 +1,38 @@ +/* + * Copyright 2014 Hans Leidekker for CodeWeavers + * + * 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" + +static HINSTANCE instance; + +BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved ) +{ + switch (reason) + { + case DLL_WINE_PREATTACH: + return FALSE; /* prefer native version */ + case DLL_PROCESS_ATTACH: + instance = hinst; + DisableThreadLibraryCalls( hinst ); + break; + } + return TRUE; +} diff --git a/dlls/netprofm/netprofm.spec b/dlls/netprofm/netprofm.spec new file mode 100644 index 00000000000..c5fc87af6d5 --- /dev/null +++ b/dlls/netprofm/netprofm.spec @@ -0,0 +1,4 @@ +@ stub DllCanUnloadNow +@ stub DllGetClassObject +@ stub DllRegisterServer +@ stub DllUnregisterServer