Alistair Leslie-Hughes : netutils: Add stub dll.
Alexandre Julliard
julliard at winehq.org
Tue Nov 3 15:55:54 CST 2020
Module: wine
Branch: master
Commit: 5575072e7281eaf865c46f9c0f0ab13f83fdbfb3
URL: https://source.winehq.org/git/wine.git/?a=commit;h=5575072e7281eaf865c46f9c0f0ab13f83fdbfb3
Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date: Mon Nov 2 19:19:28 2020 +0100
netutils: Add stub dll.
Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
configure | 2 ++
configure.ac | 1 +
dlls/netutils/Makefile.in | 5 +++++
dlls/netutils/main.c | 41 +++++++++++++++++++++++++++++++++++++++++
dlls/netutils/netutils.spec | 22 ++++++++++++++++++++++
5 files changed, 71 insertions(+)
diff --git a/configure b/configure
index a372aae0b21..26caf6703e5 100755
--- a/configure
+++ b/configure
@@ -1503,6 +1503,7 @@ enable_netapi32
enable_netcfgx
enable_netio_sys
enable_netprofm
+enable_netutils
enable_newdev
enable_ninput
enable_normaliz
@@ -20833,6 +20834,7 @@ wine_fn_config_makefile dlls/netcfgx/tests enable_tests
wine_fn_config_makefile dlls/netio.sys enable_netio_sys
wine_fn_config_makefile dlls/netprofm enable_netprofm
wine_fn_config_makefile dlls/netprofm/tests enable_tests
+wine_fn_config_makefile dlls/netutils enable_netutils
wine_fn_config_makefile dlls/newdev enable_newdev
wine_fn_config_makefile dlls/ninput enable_ninput
wine_fn_config_makefile dlls/ninput/tests enable_tests
diff --git a/configure.ac b/configure.ac
index 18f47abaac1..923d5e3b0f3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3575,6 +3575,7 @@ WINE_CONFIG_MAKEFILE(dlls/netcfgx/tests)
WINE_CONFIG_MAKEFILE(dlls/netio.sys)
WINE_CONFIG_MAKEFILE(dlls/netprofm)
WINE_CONFIG_MAKEFILE(dlls/netprofm/tests)
+WINE_CONFIG_MAKEFILE(dlls/netutils)
WINE_CONFIG_MAKEFILE(dlls/newdev)
WINE_CONFIG_MAKEFILE(dlls/ninput)
WINE_CONFIG_MAKEFILE(dlls/ninput/tests)
diff --git a/dlls/netutils/Makefile.in b/dlls/netutils/Makefile.in
new file mode 100644
index 00000000000..21589e07b8b
--- /dev/null
+++ b/dlls/netutils/Makefile.in
@@ -0,0 +1,5 @@
+MODULE = netutils.dll
+
+EXTRADLLFLAGS = -mno-cygwin
+
+C_SRCS = main.c
diff --git a/dlls/netutils/main.c b/dlls/netutils/main.c
new file mode 100644
index 00000000000..503e0ef7bfb
--- /dev/null
+++ b/dlls/netutils/main.c
@@ -0,0 +1,41 @@
+/*
+ *
+ * Copyright (C) 2020 Alistair Leslie-Hughes
+ *
+ * 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(netutils);
+
+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/netutils/netutils.spec b/dlls/netutils/netutils.spec
new file mode 100644
index 00000000000..ff022af2c57
--- /dev/null
+++ b/dlls/netutils/netutils.spec
@@ -0,0 +1,22 @@
+@ stub NetApiBufferAllocate
+@ stub NetApiBufferFree
+@ stub NetApiBufferReallocate
+@ stub NetApiBufferSize
+@ stub NetRemoteComputerSupports
+@ stub NetapipBufferAllocate
+@ stub NetpIsComputerNameValid
+@ stub NetpIsDomainNameValid
+@ stub NetpIsGroupNameValid
+@ stub NetpIsRemote
+@ stub NetpIsRemoteNameValid
+@ stub NetpIsShareNameValid
+@ stub NetpIsUncComputerNameValid
+@ stub NetpIsUserNameValid
+@ stub NetpwListCanonicalize
+@ stub NetpwListTraverse
+@ stub NetpwNameCanonicalize
+@ stub NetpwNameCompare
+@ stub NetpwNameValidate
+@ stub NetpwPathCanonicalize
+@ stub NetpwPathCompare
+@ stub NetpwPathType
More information about the wine-cvs
mailing list