From 22c5af88ad7c1336e3e42bdf1e786b4270929597 Mon Sep 17 00:00:00 2001 From: Alex Henrie Date: Tue, 13 Aug 2019 00:23:28 -0600 Subject: [PATCH] wlanui: Add DLL. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47611 Signed-off-by: Alex Henrie Signed-off-by: Alexandre Julliard --- configure | 2 ++ configure.ac | 1 + dlls/wlanui/Makefile.in | 6 ++++++ dlls/wlanui/main.c | 43 +++++++++++++++++++++++++++++++++++++++++ dlls/wlanui/wlanui.spec | 6 ++++++ 5 files changed, 58 insertions(+) create mode 100644 dlls/wlanui/Makefile.in create mode 100644 dlls/wlanui/main.c create mode 100644 dlls/wlanui/wlanui.spec diff --git a/configure b/configure index 045f02739c5..2103658abba 100755 --- a/configure +++ b/configure @@ -1639,6 +1639,7 @@ enable_wintab32 enable_wintrust enable_winusb enable_wlanapi +enable_wlanui enable_wldap32 enable_wmasf enable_wmcodecdspuuid @@ -20781,6 +20782,7 @@ wine_fn_config_makefile dlls/wintrust/tests enable_tests wine_fn_config_makefile dlls/winusb enable_winusb wine_fn_config_makefile dlls/wlanapi enable_wlanapi wine_fn_config_makefile dlls/wlanapi/tests enable_tests +wine_fn_config_makefile dlls/wlanui enable_wlanui wine_fn_config_makefile dlls/wldap32 enable_wldap32 wine_fn_config_makefile dlls/wldap32/tests enable_tests wine_fn_config_makefile dlls/wmasf enable_wmasf diff --git a/configure.ac b/configure.ac index c58d34330e4..59d5fa662a3 100644 --- a/configure.ac +++ b/configure.ac @@ -3765,6 +3765,7 @@ WINE_CONFIG_MAKEFILE(dlls/wintrust/tests) WINE_CONFIG_MAKEFILE(dlls/winusb) WINE_CONFIG_MAKEFILE(dlls/wlanapi) WINE_CONFIG_MAKEFILE(dlls/wlanapi/tests) +WINE_CONFIG_MAKEFILE(dlls/wlanui) WINE_CONFIG_MAKEFILE(dlls/wldap32) WINE_CONFIG_MAKEFILE(dlls/wldap32/tests) WINE_CONFIG_MAKEFILE(dlls/wmasf) diff --git a/dlls/wlanui/Makefile.in b/dlls/wlanui/Makefile.in new file mode 100644 index 00000000000..a78f40f53b6 --- /dev/null +++ b/dlls/wlanui/Makefile.in @@ -0,0 +1,6 @@ +MODULE = wlanui.dll + +EXTRADLLFLAGS = -mno-cygwin + +C_SRCS = \ + main.c diff --git a/dlls/wlanui/main.c b/dlls/wlanui/main.c new file mode 100644 index 00000000000..8e8278d039a --- /dev/null +++ b/dlls/wlanui/main.c @@ -0,0 +1,43 @@ +/* + * Wireless Local Area Network User Interface + * + * Copyright 2019 Alex Henrie + * + * 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(wlanui); + +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; +} diff --git a/dlls/wlanui/wlanui.spec b/dlls/wlanui/wlanui.spec new file mode 100644 index 00000000000..92161f0de8d --- /dev/null +++ b/dlls/wlanui/wlanui.spec @@ -0,0 +1,6 @@ +@ stub DllGetClassObject +@ stub WLFreeProfile +@ stub WLFreeProfileXml +@ stub WLInvokeProfileUI +@ stub WLInvokeProfileUIFromXMLFile +@ stub WlanUIEditProfile