programs: Add a stub implementation of netsh.exe.

Hans Leidekker hans at codeweavers.com
Mon Dec 6 06:19:41 CST 2010


Windows Live Essentials installer needs this.
---
 configure.ac               |    1 +
 programs/netsh/Makefile.in |    7 +++++++
 programs/netsh/netsh.c     |   33 +++++++++++++++++++++++++++++++++
 3 files changed, 41 insertions(+), 0 deletions(-)
 create mode 100644 programs/netsh/Makefile.in
 create mode 100644 programs/netsh/netsh.c

diff --git a/configure.ac b/configure.ac
index 2431c7f..fc97cdc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2865,6 +2865,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;
+}
-- 
1.7.1







More information about the wine-patches mailing list