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.

131 lines
2.1 KiB

  1. typedef struct _iniMMpolicy {
  2. GUID gPolicyID;
  3. LPWSTR pszPolicyName;
  4. DWORD cRef;
  5. DWORD dwSource;
  6. DWORD dwFlags;
  7. ULONG uSoftExpirationTime;
  8. DWORD dwOfferCount;
  9. PIPSEC_MM_OFFER pOffers;
  10. struct _iniMMpolicy * pNext;
  11. } INIMMPOLICY, * PINIMMPOLICY;
  12. DWORD
  13. AddMMPolicyInternal(
  14. LPWSTR pServerName,
  15. DWORD dwVersion,
  16. DWORD dwFlags,
  17. DWORD dwSource,
  18. PIPSEC_MM_POLICY pMMPolicy,
  19. LPVOID pvReserved
  20. );
  21. DWORD
  22. CreateIniMMPolicy(
  23. PIPSEC_MM_POLICY pMMPolicy,
  24. PINIMMPOLICY * ppIniMMPolicy
  25. );
  26. DWORD
  27. ValidateMMPolicy(
  28. PIPSEC_MM_POLICY pMMPolicy
  29. );
  30. DWORD
  31. ValidateMMOffers(
  32. DWORD dwOfferCount,
  33. PIPSEC_MM_OFFER pOffers
  34. );
  35. DWORD
  36. ValidateMMOffer(
  37. PIPSEC_MM_OFFER pOffer
  38. );
  39. PINIMMPOLICY
  40. FindMMPolicy(
  41. PINIMMPOLICY pIniMMPolicyList,
  42. LPWSTR pszPolicyName
  43. );
  44. VOID
  45. FreeIniMMPolicy(
  46. PINIMMPOLICY pIniMMPolicy
  47. );
  48. VOID
  49. FreeIniMMOffers(
  50. DWORD dwOfferCount,
  51. PIPSEC_MM_OFFER pOffers
  52. );
  53. DWORD
  54. CreateIniMMOffers(
  55. DWORD dwInOfferCount,
  56. PIPSEC_MM_OFFER pInOffers,
  57. PDWORD pdwOfferCount,
  58. PIPSEC_MM_OFFER * ppOffers
  59. );
  60. DWORD
  61. SetIniMMPolicy(
  62. PINIMMPOLICY pIniMMPolicy,
  63. PIPSEC_MM_POLICY pMMPolicy
  64. );
  65. DWORD
  66. GetIniMMPolicy(
  67. PINIMMPOLICY pIniMMPolicy,
  68. PIPSEC_MM_POLICY * ppMMPolicy
  69. );
  70. DWORD
  71. CopyMMPolicy(
  72. PINIMMPOLICY pIniMMPolicy,
  73. PIPSEC_MM_POLICY pMMPolicy
  74. );
  75. DWORD
  76. CreateMMOffers(
  77. DWORD dwInOfferCount,
  78. PIPSEC_MM_OFFER pInOffers,
  79. PDWORD pdwOfferCount,
  80. PIPSEC_MM_OFFER * ppOffers
  81. );
  82. DWORD
  83. DeleteIniMMPolicy(
  84. PINIMMPOLICY pIniMMPolicy
  85. );
  86. VOID
  87. FreeMMOffers(
  88. DWORD dwOfferCount,
  89. PIPSEC_MM_OFFER pOffers
  90. );
  91. VOID
  92. FreeIniMMPolicyList(
  93. PINIMMPOLICY pIniMMPolicyList
  94. );
  95. PINIMMPOLICY
  96. FindMMPolicyByGuid(
  97. PINIMMPOLICY pIniMMPolicyList,
  98. GUID gPolicyID
  99. );
  100. VOID
  101. FreeMMPolicies(
  102. DWORD dwNumMMPolicies,
  103. PIPSEC_MM_POLICY pMMPolicies
  104. );
  105. DWORD
  106. LocateMMPolicy(
  107. PMM_FILTER pMMFilter,
  108. PINIMMPOLICY * ppIniMMPolicy
  109. );