Eric Kohl
0943343296
[NETSH] Support the flags CMD_FLAG_ONLINE, CMD_FLAG_LOCAL and CMD_FLAG_HIDDEN
2026-07-18 16:57:00 +02:00
Eric Kohl
776b4389f8
[NETSH] Silence some debug messages
2026-07-11 19:11:09 +02:00
Eric Kohl
1a706d759e
[NETSH] Fix version info and add version callback checks
2026-07-10 00:20:14 +02:00
Eric Kohl
e848ce1c52
[NETSH] Add the pfnOsVersionCheck function to the internal data structures and retrieve the WMI version information
2026-06-30 23:14:18 +02:00
Eric Kohl
4320065009
[NETSH] Call a contexts connect function after it has been added to its parent context
2026-06-25 21:34:02 +02:00
Eric Kohl
ac06652ab6
[NETSH][REACTOS] Basic implementation of PreprocessCommand
...
Preprocess is used by the 'reset' command in the 'interface ip' command.
2026-06-21 00:59:22 +02:00
Eric Kohl
ace5f8bde9
[NETSH][IFMON] PrintMessageFromModule must use ConResMsgPrintfExV to print messages
...
- Update the format strings in ifmon.dll.
2026-06-17 16:15:14 +02:00
Eric Kohl
40a1951b65
[NETSH] Fix the command order in the help texts
2026-06-17 15:21:12 +02:00
Eric Kohl
ddde8c5f93
[NETSH] Implement NsGetIfNameFromFriendlyName
...
This is used the 'interface ip set address' command from the WinXP ifmon.dll.
2026-06-06 23:29:59 +02:00
Eric Kohl
af10f35a5d
[NETSH] Support untagged arguments in MatchTagsInCmdLine
2026-06-02 23:28:31 +02:00
Eric Kohl
d0f2efa8fa
[NETSH] Improve MatchTagsInCmdLine
...
- Remove the tag name after the a tagged argument has been identified.
2026-06-01 23:25:08 +02:00
Eric Kohl
93bd77f1f7
[NETSH] Use the right index in MatchTagsInCmdLine
2026-05-30 21:02:53 +02:00
Eric Kohl
8f5639a9bd
[NETSH] Remove quotation marks from quoted arguments
...
Add support for quoted strings to the script file interpreter.
2026-05-30 16:29:53 +02:00
Eric Kohl
4bb73fe3c9
[NETSH][REACTOS] Improve MatchTagsInCmdLine and add NsGetIfNameFromFriendlyName stubs.c
...
These functions are used by the WinXP ifmon.dll when the 'interface ip set address' command is used.
2026-05-14 15:19:50 +02:00
Eric Kohl
858b8fd42c
[NETSH] Do not split arguments at whitespace between quotation marks
2026-05-13 23:35:09 +02:00
Eric Kohl
425ea0378b
[NETSH][REACTOS] Add MatchTagsInCmdLine stub
...
MatchTagsInCmdLine is similar to PreprocessCommand except that the parameters dwMinArgs and dwMaxArgs are missing.
2026-05-11 22:56:06 +02:00
Timo Kreuzer
1cf31524d5
[REACTOS] Stop using non-conforming swprintf / vswprintf
...
Use the underscored versions instead.
2026-05-07 06:27:58 +00:00
Eric Kohl
d309745deb
[NETSH] Add missing iphlpapi.h import
2026-05-03 20:05:13 +02:00
Hermès Bélusca-Maïto
012e9be792
[NETSH] Improve imports, simplify code, and fix x64 build warnings
...
netsh\helper.c(84):
warningC4267: 'function': conversion from 'size_t' to 'DWORD', possible loss of data
netsh\netsh.c(65):
warning C4267: '+=': conversion from 'size_t' to 'INT', possible loss of data
2026-03-30 21:46:07 +02:00
Daniel Zimmermann
55a3a96849
[NETSH] Fix incorrect variable usage in swprintf call ( #8482 )
...
- swprintf should call with the input string and not with the undefined allocated string from HeapAlloc.
Addendum to bfee65f62c .
2025-11-28 21:20:30 +03:00
Eric Kohl
0135440d50
[NETSH] Implement MakeString and FreeString
...
Used by the 'winsock show catalog' command.
2025-11-22 16:53:33 +01:00
Eric Kohl
0362651eb8
[NETSH] Fix a type in the interpreter
2025-11-08 20:32:53 +01:00
Eric Kohl
3398506341
[NETSH] Implement alias, unalias and show alias commands
...
Alias processing in the command interpreter is not implemented yet.
2025-11-08 18:58:49 +01:00
Eric Kohl
97232454a5
[NETSH] Improve error message output
2025-11-08 18:26:11 +01:00
Eric Kohl
500dcd3da5
[NETSH] Call a contexts connect function on a context change
2025-11-08 16:31:41 +01:00
Eric Kohl
feb9ba9a7f
[NETSH] Implement and use the PrintError function
2025-11-04 22:33:19 +01:00
Eric Kohl
420799228d
[NETSH] Implement the -r (remote) option and set machine command
...
Also:
- Start all usage texts with a newline.
- Add some error messages.
- Fix a bug in the command interpreter.
2025-11-02 22:37:16 +01:00
Eric Kohl
4ad647fb5c
[NETSH] Improvements to the command line evaluation and the command interpreter
...
- Interpreter functions return error code instead of boolean
2025-11-02 13:51:02 +01:00
Eric Kohl
20eee6d362
[NETSH] Support the -c (context) command line option
2025-11-01 21:30:08 +01:00
Eric Kohl
2e7a1768fb
[NETSH] Implement the offline, online and related commands
2025-11-01 18:49:44 +01:00
Eric Kohl
4df8fbf9c2
[NETSH] Add a special code path to execute commands that follow the pushd command
...
This enables the execution of commands like 'pushd interface ip' which is emitted by the dump command of WinXPs ifmon.dll.
2025-10-18 01:37:51 +02:00
Eric Kohl
bfee65f62c
[NETSH] Implement MakeQuotedString() and FreeQuotedString()
...
These functions are used by WinXPs ifmon.dll.
2025-10-17 15:12:44 +02:00
Eric Kohl
78a73720cc
[NETSH] Fix help output
...
- Increase the output buffer for context and group help texts.
- Use a heap buffers to load and format the command help texts.
- Pass the full command name to FormatMessage to make help output work with WinXP helpers.
- Adjust the internal help texts accordingly.
2025-10-17 12:45:28 +02:00
Eric Kohl
38afa1a48f
[NETSH][REACTOS] Implement and export NsGetFriendlyNameFromIfName
...
Running the 'interface ip show address' command on XPs ifmon.dll now fails in netcfgx.dll.
2025-10-16 14:19:11 +02:00
Eric Kohl
d033301772
[NETSH] Sort sub-contexts in the help command
2025-10-14 15:11:28 +02:00
Eric Kohl
af0c2e703b
[PSDK][NETSH] Improve netsh.h
2025-10-12 00:54:10 +02:00
Eric Kohl
fb2a0d1647
[NETSH] Implement the dump command
2025-10-11 22:40:24 +02:00
Eric Kohl
3cdc3d1652
[NETSH] Print the commands help text if a command returns ERROR_SHOW_USAGE
2025-10-11 15:23:15 +02:00
Eric Kohl
146624ed9b
[NETSH] Implement the exec command and fix script execution
2025-10-07 16:42:22 +02:00
Eric Kohl
6e269f9a05
[NETSH] Replace the command line interpreter
...
- Replace the recursive command line interpreter by a state machine.
- Simplify the help functions.
This enables us to run 'interface ip' or 'interface ip show config' in a single command.
2025-10-06 11:49:04 +02:00
Eric Kohl
b37aafeed6
[NETSH] Sort the help command list alphabetically
2025-09-30 21:37:39 +02:00
Eric Kohl
98a8996954
[NETSH][IFMON] Make output windows compatible
...
- Help text string resources must be newline terminated.
- Format strings must not be newline terminated.
- Tested with WinXP ifmon.dll.
2025-09-28 23:23:46 +02:00
Eric Kohl
918bc859a9
[NETSH] Create a root helper object
...
The root helper object is required to load ifmon.dll from WinXP.
2025-09-21 23:55:18 +02:00
Eric Kohl
f0a29c9e9c
[NETSH] Improve MatchToken and implement MatchEnumTag
2025-09-21 14:00:00 +02:00
Eric Kohl
f9458d9e40
[NETSH] Add stubs for undocumented exported functions
2025-09-20 11:10:52 +02:00
Eric Kohl
b6c202c4c8
[NETSH] Set proper error code for internal commands
2025-09-15 22:37:22 +02:00
Eric Kohl
9e22156c50
[NETSH] Pass correct dwCurrentIndex parameter to context and group commands
2025-09-15 01:27:15 +02:00
Eric Kohl
3f4cee1790
[NETSH] Fix MatchToken to test for a real prefix
2025-09-14 22:33:00 +02:00
Eric Kohl
245bc3f44a
[NETSH] Simplify the code by naming the root context 'netsh'
...
-
2025-09-14 22:14:21 +02:00
Eric Kohl
ae23b4dc8f
[NETSH] Add the PreprocessCommand stub
2025-09-13 09:53:46 +02:00