windows-nt/Source/XPSP1/NT/net/rras/netsh/ip/ipmon/ipmon.h

75 lines
2 KiB
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
/*++
Copyright (c) 1998 Microsoft Corporation
Module Name:
net\routing\monitor\ip\showmib.h
Abstract:
Prototype for fns called in ipmon.c
Author:
Anand Mahalingam 7/10/98
--*/
#define MALLOC(x) HeapAlloc( GetProcessHeap(), 0, x )
#define REALLOC(x,y) HeapReAlloc( GetProcessHeap(), 0, x, y )
#define FREE(x) HeapFree( GetProcessHeap(), 0, x )
extern HANDLE g_hModule;
extern HANDLE g_hMprConfig;
extern HANDLE g_hMprAdmin;
extern HANDLE g_hMIBServer;
extern BOOL g_bCommit;
extern PWCHAR g_pwszRouter;
extern const GUID g_IpGuid;
DWORD
ShowMIB(
MIB_SERVER_HANDLE hMIBServer,
PTCHAR *pptcArguments,
DWORD dwArgCount
);
DWORD
GetHelperAttributes(
IN LPCWSTR pwszRouter,
IN DWORD dwIndex,
OUT PIP_CONTEXT_ENTRY_FN *ppfnEntryFn,
OUT PNS_CONTEXT_DUMP_FN *ppfnDumpFn
);
enum IpMonCommands
{
ADD_COMMAND = 0,
SET_COMMAND,
DELETE_COMMAND
};
NS_DLL_STOP_FN StopHelperDll;
//
// Misc Macros
//
#define CHECK_ROUTER_RUNNING() \
if (!IsRouterRunning()) \
{ \
if (g_pwszRouter) \
{ \
DisplayMessage(g_hModule, \
MSG_IP_REMOTE_ROUTER_NOT_RUNNING, \
g_pwszRouter); \
} \
else \
{ \
DisplayMessage(g_hModule, \
MSG_IP_LOCAL_ROUTER_NOT_RUNNING); \
} \
\
return ERROR_SUPPRESS_OUTPUT; \
}