From af0c2e703b05a90ba3fe29276ca01bacbe4aef0e Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Sun, 12 Oct 2025 00:54:10 +0200 Subject: [PATCH] [PSDK][NETSH] Improve netsh.h --- base/applications/network/netsh/context.c | 3 ++- sdk/include/psdk/netsh.h | 11 +++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/base/applications/network/netsh/context.c b/base/applications/network/netsh/context.c index 37038edacea..a6a7f5d759e 100644 --- a/base/applications/network/netsh/context.c +++ b/base/applications/network/netsh/context.c @@ -695,7 +695,8 @@ RegisterContext( if (pContext != NULL) { pContext->pfnDumpFn = pChildContext->pfnDumpFn; - pContext->ulPriority = (pChildContext->dwFlags & CMD_FLAG_PRIORITY) ? pChildContext->ulPriority : 100; + pContext->ulPriority = (pChildContext->dwFlags & CMD_FLAG_PRIORITY) ? + pChildContext->ulPriority : DEFAULT_CONTEXT_PRIORITY; if ((pHelper != NULL) && (pHelper->pDllEntry != NULL)) { diff --git a/sdk/include/psdk/netsh.h b/sdk/include/psdk/netsh.h index ec892b554c4..7a83fe234cd 100644 --- a/sdk/include/psdk/netsh.h +++ b/sdk/include/psdk/netsh.h @@ -48,6 +48,17 @@ enum NS_CMD_FLAGS CMD_FLAG_PRIORITY = 0x80000000 }; +enum NS_MODE_CHANGE +{ + NETSH_COMMIT = 0, + NETSH_UNCOMMIT = 1, + NETSH_FLUSH = 2, + NETSH_COMMIT_STATE = 3, + NETSH_SAVE = 4 +}; + +#define DEFAULT_CONTEXT_PRIORITY 100 + #define NETSH_ROOT_GUID {0, 0, 0, {0, 0, 0, 0, 0, 0, 0, 0}} typedef