Source code of Windows XP (NT5)
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.

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