Hans Leidekker : programs: Add a stub implementation of netsh.exe.

Alexandre Julliard julliard at winehq.org
Mon Dec 6 13:18:33 CST 2010


Module: wine
Branch: master
Commit: 8ad7d2e81415a35f39d2703d94faf625a2f76a0e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=8ad7d2e81415a35f39d2703d94faf625a2f76a0e

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Mon Dec  6 13:19:41 2010 +0100

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(+), 0 deletions(-)

diff --git a/configure b/configure
index 503c838..ea28639 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 2dd5831..bb3237d 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 0000000..80fb197
--- /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
+
+ at MAKE_PROG_RULES@
diff --git a/programs/netsh/netsh.c b/programs/netsh/netsh.c
new file mode 100644
index 0000000..1ea3ecf
--- /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;
+}




More information about the wine-cvs mailing list