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.

101 lines
1.7 KiB

  1. /*++
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name:
  4. net\routing\netsh\ip\ifmon.h
  5. Abstract:
  6. Prototype for fns called in ipmon.c
  7. Author:
  8. Anand Mahalingam 7/10/98
  9. --*/
  10. #ifndef _IFMON_H_
  11. #define _IFMON_H_
  12. #if _MSC_VER > 1000
  13. #pragma once
  14. #endif
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. extern HANDLE g_hModule;
  19. extern HANDLE g_hMprConfig;
  20. extern HANDLE g_hMprAdmin;
  21. extern HANDLE g_hMIBServer;
  22. extern BOOL g_bCommit;
  23. extern DWORD g_dwNumTableEntries;
  24. extern PWCHAR g_pwszRouter;
  25. extern BOOL g_bIfDirty;
  26. //
  27. // Api's that ifmon requires of its helpers
  28. //
  29. typedef
  30. DWORD
  31. (WINAPI IF_CONTEXT_ENTRY_FN)(
  32. IN PWCHAR pwszMachineName,
  33. IN PTCHAR *pptcArguments,
  34. IN DWORD dwArgCount,
  35. IN DWORD dwFlags,
  36. IN MIB_SERVER_HANDLE hMibServer,
  37. OUT PWCHAR pwcNewContext
  38. );
  39. typedef IF_CONTEXT_ENTRY_FN *PIF_CONTEXT_ENTRY_FN;
  40. extern GUID g_IfGuid;
  41. DWORD
  42. ShowMIB(
  43. MIB_SERVER_HANDLE hMIBServer,
  44. PTCHAR *pptcArguments,
  45. DWORD dwArgCount
  46. );
  47. NS_CONTEXT_COMMIT_FN IfCommit;
  48. NS_CONTEXT_DUMP_FN IfDump;
  49. DWORD
  50. ConnectToRouter(
  51. IN LPCWSTR pwszRouter
  52. );
  53. BOOL
  54. WINAPI
  55. IfDllEntry(
  56. HINSTANCE hInstDll,
  57. DWORD fdwReason,
  58. LPVOID pReserved
  59. );
  60. DWORD
  61. WINAPI
  62. IfUnInit(
  63. IN DWORD dwReserved
  64. );
  65. #define GetIfNameFromFriendlyName(x,y,z) \
  66. NsGetIfNameFromFriendlyName(g_hMprConfig,x,y,z)
  67. #define GetFriendlyNameFromIfName(x,y,z) \
  68. NsGetFriendlyNameFromIfName(g_hMprConfig,x,y,z)
  69. #ifdef __cplusplus
  70. }
  71. #endif
  72. #endif // _IFMON_H_