[PSDK][NETSH] Improve netsh.h

This commit is contained in:
Eric Kohl
2025-10-12 00:54:10 +02:00
parent fb2a0d1647
commit af0c2e703b
2 changed files with 13 additions and 1 deletions

View File

@@ -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))
{

View File

@@ -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