- Add wine netsh, see bug 6758.
authorJames Tabor <james.tabor@reactos.org>
Wed, 23 May 2012 22:36:17 +0000 (22:36 +0000)
committerJames Tabor <james.tabor@reactos.org>
Wed, 23 May 2012 22:36:17 +0000 (22:36 +0000)
svn path=/trunk/; revision=56653

reactos/base/applications/network/CMakeLists.txt
reactos/base/applications/network/netsh/CMakeLists.txt [new file with mode: 0644]
reactos/base/applications/network/netsh/netsh.c [new file with mode: 0644]

index b7f2d0e..dc22e24 100644 (file)
@@ -5,6 +5,7 @@ add_subdirectory(finger)
 add_subdirectory(ftp)
 add_subdirectory(ipconfig)
 add_subdirectory(net)
+add_subdirectory(netsh)
 add_subdirectory(netstat)
 add_subdirectory(nslookup)
 add_subdirectory(ping)
diff --git a/reactos/base/applications/network/netsh/CMakeLists.txt b/reactos/base/applications/network/netsh/CMakeLists.txt
new file mode 100644 (file)
index 0000000..4b7f004
--- /dev/null
@@ -0,0 +1,10 @@
+
+add_definitions(-D__WINESRC__)
+
+include_directories(${REACTOS_SOURCE_DIR}/include/wine)
+
+add_executable(netsh netsh.c)
+target_link_libraries(netsh wine)
+set_module_type(netsh win32cui UNICODE)
+add_importlibs(netsh msvcrt kernel32 ntdll)
+add_cd_file(TARGET netsh DESTINATION reactos/system32 FOR all)
diff --git a/reactos/base/applications/network/netsh/netsh.c b/reactos/base/applications/network/netsh/netsh.c
new file mode 100644 (file)
index 0000000..1ea3ecf
--- /dev/null
@@ -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;
+}