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