Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
2.1 KiB

  1. /*++
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name:
  4. net\routing\monitor\ip\showmib.h
  5. Abstract:
  6. Prototype for fns called in ipmon.c
  7. Author:
  8. Anand Mahalingam 7/10/98
  9. --*/
  10. #define MALLOC(x) HeapAlloc( GetProcessHeap(), 0, x )
  11. #define REALLOC(x,y) HeapReAlloc( GetProcessHeap(), 0, x, y )
  12. #define FREE(x) HeapFree( GetProcessHeap(), 0, x )
  13. extern HANDLE g_hModule;
  14. extern HANDLE g_hMprConfig;
  15. extern HANDLE g_hMprAdmin;
  16. extern HANDLE g_hMIBServer;
  17. extern BOOL g_bCommit;
  18. extern PWCHAR g_pwszRouter;
  19. extern const GUID g_IpGuid;
  20. DWORD
  21. ShowMIB(
  22. MIB_SERVER_HANDLE hMIBServer,
  23. PTCHAR *pptcArguments,
  24. DWORD dwArgCount
  25. );
  26. DWORD
  27. GetHelperAttributes(
  28. IN LPCWSTR pwszRouter,
  29. IN DWORD dwIndex,
  30. OUT PIP_CONTEXT_ENTRY_FN *ppfnEntryFn,
  31. OUT PNS_CONTEXT_DUMP_FN *ppfnDumpFn
  32. );
  33. enum IpMonCommands
  34. {
  35. ADD_COMMAND = 0,
  36. SET_COMMAND,
  37. DELETE_COMMAND
  38. };
  39. NS_DLL_STOP_FN StopHelperDll;
  40. //
  41. // Misc Macros
  42. //
  43. #define CHECK_ROUTER_RUNNING() \
  44. if (!IsRouterRunning()) \
  45. { \
  46. if (g_pwszRouter) \
  47. { \
  48. DisplayMessage(g_hModule, \
  49. MSG_IP_REMOTE_ROUTER_NOT_RUNNING, \
  50. g_pwszRouter); \
  51. } \
  52. else \
  53. { \
  54. DisplayMessage(g_hModule, \
  55. MSG_IP_LOCAL_ROUTER_NOT_RUNNING); \
  56. } \
  57. \
  58. return ERROR_SUPPRESS_OUTPUT; \
  59. }