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.

112 lines
1.8 KiB

  1. //
  2. // PAStore Interface types.
  3. //
  4. #define PASTORE_IF_TYPE_NONE 0x00000000
  5. #define PASTORE_IF_TYPE_DIALUP 0xFFFFFFFF
  6. #define PASTORE_IF_TYPE_LAN 0xFFFFFFFE
  7. #define PASTORE_IF_TYPE_ALL 0xFFFFFFFD
  8. typedef struct _mmfilterstate {
  9. GUID gFilterID;
  10. GUID gPolicyID;
  11. GUID gMMAuthID;
  12. HANDLE hMMFilter;
  13. struct _mmfilterstate * pNext;
  14. } MMFILTERSTATE, * PMMFILTERSTATE;
  15. DWORD
  16. PAAddMMFilters(
  17. PIPSEC_ISAKMP_DATA pIpsecISAKMPData,
  18. PIPSEC_NFA_DATA * ppIpsecNFAData,
  19. DWORD dwNumNFACount
  20. );
  21. DWORD
  22. PAAddMMFilterSpecs(
  23. PIPSEC_ISAKMP_DATA pIpsecISAKMPData,
  24. PIPSEC_NFA_DATA pIpsecNFAData
  25. );
  26. DWORD
  27. PACreateMMFilterState(
  28. PIPSEC_ISAKMP_DATA pIpsecISAKMPData,
  29. PIPSEC_NFA_DATA pIpsecNFAData,
  30. PIPSEC_FILTER_SPEC pFilterSpec,
  31. PMMFILTERSTATE * ppMMFilterState
  32. );
  33. DWORD
  34. PACreateMMFilter(
  35. PIPSEC_ISAKMP_DATA pIpsecISAKMPData,
  36. PIPSEC_NFA_DATA pIpsecNFAData,
  37. PIPSEC_FILTER_SPEC pFilterSpec,
  38. PMM_FILTER * ppSPDMMFilter
  39. );
  40. VOID
  41. PASetInterfaceType(
  42. DWORD dwInterfaceType,
  43. PIF_TYPE pInterfaceType
  44. );
  45. VOID
  46. PASetAddress(
  47. ULONG uMask,
  48. ULONG uAddr,
  49. PADDR pAddr
  50. );
  51. VOID
  52. PASetTunnelAddress(
  53. ULONG uAddr,
  54. PADDR pAddr
  55. );
  56. VOID
  57. PAFreeMMFilter(
  58. PMM_FILTER pSPDMMFilter
  59. );
  60. DWORD
  61. PADeleteAllMMFilters(
  62. );
  63. VOID
  64. PAFreeMMFilterStateList(
  65. PMMFILTERSTATE pMMFilterState
  66. );
  67. DWORD
  68. PADeleteMMFilters(
  69. PIPSEC_ISAKMP_DATA pIpsecISAKMPData,
  70. PIPSEC_NFA_DATA * ppIpsecNFAData,
  71. DWORD dwNumNFACount
  72. );
  73. DWORD
  74. PADeleteMMFilterSpecs(
  75. PIPSEC_ISAKMP_DATA pIpsecISAKMPData,
  76. PIPSEC_NFA_DATA pIpsecNFAData
  77. );
  78. DWORD
  79. PADeleteMMFilter(
  80. GUID gFilterID
  81. );
  82. VOID
  83. PADeleteMMFilterState(
  84. PMMFILTERSTATE pMMFilterState
  85. );
  86. PMMFILTERSTATE
  87. FindMMFilterState(
  88. GUID gFilterID
  89. );