From 8ad7d2e81415a35f39d2703d94faf625a2f76a0e Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Mon, 6 Dec 2010 13:19:41 +0100 Subject: [PATCH] programs: Add a stub implementation of netsh.exe. --- configure | 1 + configure.ac | 1 + programs/netsh/Makefile.in | 7 +++++++ programs/netsh/netsh.c | 33 +++++++++++++++++++++++++++++++++ 4 files changed, 42 insertions(+) create mode 100644 programs/netsh/Makefile.in create mode 100644 programs/netsh/netsh.c diff --git a/configure b/configure index 503c8387cf6..ea28639699c 100755 --- a/configure +++ b/configure @@ -15347,6 +15347,7 @@ wine_fn_config_program mofcomp enable_mofcomp install wine_fn_config_program mshta enable_mshta install wine_fn_config_program msiexec enable_msiexec installbin wine_fn_config_program net enable_net install +wine_fn_config_program netsh enable_netsh install wine_fn_config_program ngen enable_ngen install wine_fn_config_program notepad enable_notepad installbin wine_fn_config_program oleview enable_oleview install diff --git a/configure.ac b/configure.ac index 2dd58311cb9..bb3237d0abb 100644 --- a/configure.ac +++ b/configure.ac @@ -2869,6 +2869,7 @@ WINE_CONFIG_PROGRAM(mofcomp,install) WINE_CONFIG_PROGRAM(mshta,install) WINE_CONFIG_PROGRAM(msiexec,installbin) WINE_CONFIG_PROGRAM(net,install) +WINE_CONFIG_PROGRAM(netsh,install) WINE_CONFIG_PROGRAM(ngen,install) WINE_CONFIG_PROGRAM(notepad,installbin) WINE_CONFIG_PROGRAM(oleview,install) diff --git a/programs/netsh/Makefile.in b/programs/netsh/Makefile.in new file mode 100644 index 00000000000..80fb1977f09 --- /dev/null +++ b/programs/netsh/Makefile.in @@ -0,0 +1,7 @@ +MODULE = netsh.exe +APPMODE = -mconsole -municode +EXTRADEFS = -DWINE_NO_UNICODE_MACROS + +C_SRCS = netsh.c + +@MAKE_PROG_RULES@ diff --git a/programs/netsh/netsh.c b/programs/netsh/netsh.c new file mode 100644 index 00000000000..1ea3ecf231c --- /dev/null +++ b/programs/netsh/netsh.c @@ -0,0 +1,33 @@ +/* + * Copyright 2010 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 "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(netsh); + +int wmain(int argc, WCHAR *argv[]) +{ + int i; + + WINE_FIXME("stub:"); + for (i = 0; i < argc; i++) + WINE_FIXME(" %s", wine_dbgstr_w(argv[i])); + WINE_FIXME("\n"); + + return 0; +}