Skip to content

Commit af0c2e7

Browse files
committed
[PSDK][NETSH] Improve netsh.h
1 parent fb2a0d1 commit af0c2e7

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

base/applications/network/netsh/context.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,8 @@ RegisterContext(
695695
if (pContext != NULL)
696696
{
697697
pContext->pfnDumpFn = pChildContext->pfnDumpFn;
698-
pContext->ulPriority = (pChildContext->dwFlags & CMD_FLAG_PRIORITY) ? pChildContext->ulPriority : 100;
698+
pContext->ulPriority = (pChildContext->dwFlags & CMD_FLAG_PRIORITY) ?
699+
pChildContext->ulPriority : DEFAULT_CONTEXT_PRIORITY;
699700

700701
if ((pHelper != NULL) && (pHelper->pDllEntry != NULL))
701702
{

sdk/include/psdk/netsh.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,17 @@ enum NS_CMD_FLAGS
4848
CMD_FLAG_PRIORITY = 0x80000000
4949
};
5050

51+
enum NS_MODE_CHANGE
52+
{
53+
NETSH_COMMIT = 0,
54+
NETSH_UNCOMMIT = 1,
55+
NETSH_FLUSH = 2,
56+
NETSH_COMMIT_STATE = 3,
57+
NETSH_SAVE = 4
58+
};
59+
60+
#define DEFAULT_CONTEXT_PRIORITY 100
61+
5162
#define NETSH_ROOT_GUID {0, 0, 0, {0, 0, 0, 0, 0, 0, 0, 0}}
5263

5364
typedef

0 commit comments

Comments
 (0)