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.

114 lines
1.7 KiB

  1. typedef struct _qmpolicystate {
  2. GUID gPolicyID;
  3. LPWSTR pszPolicyName;
  4. GUID gNegPolType;
  5. GUID gNegPolAction;
  6. BOOL bAllowsSoft;
  7. DWORD cRef;
  8. BOOL bInSPD;
  9. DWORD dwErrorCode;
  10. struct _qmpolicystate * pNext;
  11. } QMPOLICYSTATE, * PQMPOLICYSTATE;
  12. DWORD
  13. PAAddQMPolicies(
  14. PIPSEC_NFA_DATA * ppIpsecNFAData,
  15. DWORD dwNumNFACount
  16. );
  17. DWORD
  18. PACreateQMPolicyState(
  19. PIPSEC_NFA_DATA pIpsecNFAData,
  20. PQMPOLICYSTATE * ppQMPolicyState
  21. );
  22. VOID
  23. PAFreeQMPolicyState(
  24. PQMPOLICYSTATE pQMPolicyState
  25. );
  26. BOOL
  27. IsClearOnly(
  28. GUID gNegPolAction
  29. );
  30. BOOL
  31. IsBlocking(
  32. GUID gNegPolAction
  33. );
  34. BOOL
  35. IsInboundPassThru(
  36. GUID gNegPolAction
  37. );
  38. DWORD
  39. PACreateQMPolicy(
  40. PIPSEC_NFA_DATA pIpsecNFAData,
  41. PQMPOLICYSTATE pQMPolicyState,
  42. PIPSEC_QM_POLICY * ppSPDQMPolicy
  43. );
  44. DWORD
  45. PACreateQMOffers(
  46. DWORD dwSecurityMethodCount,
  47. PIPSEC_SECURITY_METHOD pIpsecSecurityMethods,
  48. PQMPOLICYSTATE pQMPolicyState,
  49. PDWORD pdwOfferCount,
  50. PIPSEC_QM_OFFER * ppOffers
  51. );
  52. VOID
  53. PACopyQMOffers(
  54. PIPSEC_SECURITY_METHOD pMethod,
  55. PIPSEC_QM_OFFER pOffer
  56. );
  57. VOID
  58. PAFreeQMPolicy(
  59. PIPSEC_QM_POLICY pSPDQMPolicy
  60. );
  61. VOID
  62. PAFreeQMOffers(
  63. DWORD dwOfferCount,
  64. PIPSEC_QM_OFFER pOffers
  65. );
  66. DWORD
  67. PADeleteAllQMPolicies(
  68. );
  69. VOID
  70. PAFreeQMPolicyStateList(
  71. PQMPOLICYSTATE pQMPolicyState
  72. );
  73. PQMPOLICYSTATE
  74. FindQMPolicyState(
  75. GUID gPolicyID
  76. );
  77. DWORD
  78. PADeleteQMPolicies(
  79. PIPSEC_NFA_DATA * ppIpsecNFAData,
  80. DWORD dwNumNFACount
  81. );
  82. DWORD
  83. PADeleteQMPolicy(
  84. GUID gPolicyID
  85. );
  86. VOID
  87. PADeleteQMPolicyState(
  88. PQMPOLICYSTATE pQMPolicyState
  89. );
  90. DWORD
  91. PADeleteInUseQMPolicies(
  92. );