Skip to content

Commit

Permalink
[NETSH] Replace the wine stub by a slightly more functional version
Browse files Browse the repository at this point in the history
- Implement a basic command interpreter.
- Add basic support for helper dlls and contexts.
- Add interactive help system with context support.

Everything is still under construction and subject to change.
  • Loading branch information
EricKohl committed Jul 15, 2023
1 parent dabe7fb commit d8f9f7f
Show file tree
Hide file tree
Showing 11 changed files with 1,923 additions and 28 deletions.
27 changes: 22 additions & 5 deletions base/applications/network/netsh/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,25 @@

add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/wine)
add_executable(netsh netsh.c)
target_link_libraries(netsh wine)
include_directories(${REACTOS_SOURCE_DIR}/sdk/lib/conutils)
spec2def(netsh.exe netsh.spec ADD_IMPORTLIB)

list(APPEND SOURCE
context.c
help.c
helper.c
interpreter.c
netsh.c
precomp.h)

add_executable(netsh ${SOURCE} netsh.rc ${CMAKE_CURRENT_BINARY_DIR}/netsh.def)

set_target_properties(netsh
PROPERTIES
ENABLE_EXPORTS TRUE
DEFINE_SYMBOL "")

set_module_type(netsh win32cui UNICODE)
add_importlibs(netsh msvcrt kernel32 ntdll)
target_link_libraries(netsh conutils ${PSEH_LIB})
add_importlibs(netsh advapi32 msvcrt user32 kernel32 ntdll)

add_pch(netsh precomp.h SOURCE)
add_cd_file(TARGET netsh DESTINATION reactos/system32 FOR all)
Loading

0 comments on commit d8f9f7f

Please sign in to comment.