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.

95 lines
1.9 KiB

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. --*/
  4. #ifndef _IPV6MON_H_
  5. #define _IPV6MON_H_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif
  9. #ifdef __cplusplus
  10. extern "C" {
  11. #endif
  12. #define IPV6MON_GUID \
  13. { 0x05bb0fe9,0x8d89, 0x48de, { 0xb7, 0xbb, 0x9f,0x13, 0x8b,0x2e, 0x95, 0x0c } }
  14. #define PORTPROXY_GUID \
  15. { 0x86a3a33f, 0x4d51, 0x47ff, { 0xb2, 0x4c, 0x8e, 0x9b, 0x13, 0xce, 0xb3, 0xa2 } };
  16. extern GUID g_PpGuid;
  17. NS_HELPER_START_FN PpStartHelper;
  18. #define PORTPROXY_HELPER_VERSION 1
  19. #define IFMON_GUID \
  20. { 0x705eca1, 0x7aac, 0x11d2, { 0x89, 0xdc, 0x0, 0x60, 0x8, 0xb0, 0xe5, 0xb9 } }
  21. extern HANDLE g_hModule;
  22. extern DWORD g_dwNumTableEntries;
  23. extern PWCHAR g_pwszRouter;
  24. extern BOOL g_bIfDirty;
  25. #define SECONDS 1
  26. #define MINUTES (60 * SECONDS)
  27. #define HOURS (60 * MINUTES)
  28. #define DAYS (24 * HOURS)
  29. //
  30. // Api's that ifmon requires of its helpers
  31. //
  32. typedef
  33. DWORD
  34. (WINAPI IF_CONTEXT_ENTRY_FN)(
  35. IN PWCHAR pwszMachineName,
  36. IN PTCHAR *pptcArguments,
  37. IN DWORD dwArgCount,
  38. IN DWORD dwFlags,
  39. IN PVOID hMibServer,
  40. OUT PWCHAR pwcNewContext
  41. );
  42. typedef IF_CONTEXT_ENTRY_FN *PIF_CONTEXT_ENTRY_FN;
  43. extern GUID g_Ipv6Guid;
  44. NS_CONTEXT_DUMP_FN Ipv6Dump;
  45. NS_CONTEXT_DUMP_FN PpDump;
  46. DWORD
  47. ConnectToRouter(
  48. IN PWCHAR pwszRouter
  49. );
  50. BOOL
  51. WINAPI
  52. Ipv6DllEntry(
  53. HINSTANCE hInstDll,
  54. DWORD fdwReason,
  55. LPVOID pReserved
  56. );
  57. DWORD
  58. WINAPI
  59. Ipv6UnInit(
  60. IN DWORD dwReserved
  61. );
  62. #define GetIfNameFromFriendlyName(x,y,z) \
  63. NsGetIfNameFromFriendlyName(g_hMprConfig,x,y,z)
  64. #define GetFriendlyNameFromIfName(x,y,z) \
  65. NsGetFriendlyNameFromIfName(g_hMprConfig,x,y,z)
  66. DWORD
  67. Ipv6InstallSubContexts(
  68. );
  69. #ifdef __cplusplus
  70. }
  71. #endif
  72. #endif // _IPV6MON_H_