From f770056aa302accddd4e82202689fd2acaa2213d Mon Sep 17 00:00:00 2001 From: James Tabor Date: Wed, 23 May 2012 22:36:17 +0000 Subject: [PATCH] - Add wine netsh, see bug 6758. svn path=/trunk/; revision=56653 --- .../base/applications/network/CMakeLists.txt | 1 + .../applications/network/netsh/CMakeLists.txt | 10 ++++++ .../base/applications/network/netsh/netsh.c | 33 +++++++++++++++++++ 3 files changed, 44 insertions(+) create mode 100644 reactos/base/applications/network/netsh/CMakeLists.txt create mode 100644 reactos/base/applications/network/netsh/netsh.c diff --git a/reactos/base/applications/network/CMakeLists.txt b/reactos/base/applications/network/CMakeLists.txt index b7f2d0ea652..dc22e24020a 100644 --- a/reactos/base/applications/network/CMakeLists.txt +++ b/reactos/base/applications/network/CMakeLists.txt @@ -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 index 00000000000..4b7f0047b0a --- /dev/null +++ b/reactos/base/applications/network/netsh/CMakeLists.txt @@ -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 index 00000000000..1ea3ecf231c --- /dev/null +++ b/reactos/base/applications/network/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; +}