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.

198 lines
4.1 KiB

  1. DWORD
  2. OpenRegistryIPSECRootKey(
  3. LPWSTR pszServerName,
  4. LPWSTR pszIpsecRegRootContainer,
  5. HKEY * phRegistryKey
  6. );
  7. DWORD
  8. ReadPolicyObjectFromRegistry(
  9. HKEY hRegistryKey,
  10. LPWSTR pszPolicyDN,
  11. LPWSTR pszIpsecRegRootContainer,
  12. PIPSEC_POLICY_OBJECT * ppIpsecPolicyObject
  13. );
  14. DWORD
  15. ReadNFAObjectsFromRegistry(
  16. HKEY hRegistryKey,
  17. LPWSTR pszIpsecRootContainer,
  18. LPWSTR pszIpsecOwnerReference,
  19. LPWSTR * ppszNFADNs,
  20. DWORD dwNumNfaObjects,
  21. PIPSEC_NFA_OBJECT ** pppIpsecNFAObjects,
  22. PDWORD pdwNumNfaObjects,
  23. LPWSTR ** pppszFilterReferences,
  24. PDWORD pdwNumFilterReferences,
  25. LPWSTR ** pppszNegPolReferences,
  26. PDWORD pdwNumNegPolReferences
  27. );
  28. DWORD
  29. ReadFilterObjectsFromRegistry(
  30. HKEY hRegistryKey,
  31. LPWSTR pszIpsecRootContainer,
  32. LPWSTR * ppszFilterDNs,
  33. DWORD dwNumFilterObjects,
  34. PIPSEC_FILTER_OBJECT ** pppIpsecFilterObjects,
  35. PDWORD pdwNumFilterObjects
  36. );
  37. DWORD
  38. ReadNegPolObjectsFromRegistry(
  39. HKEY hRegistryKey,
  40. LPWSTR pszIpsecRootContainer,
  41. LPWSTR * ppszNegPolDNs,
  42. DWORD dwNumNegPolObjects,
  43. PIPSEC_NEGPOL_OBJECT ** pppIpsecNegPolObjects,
  44. PDWORD pdwNumNegPolObjects
  45. );
  46. DWORD
  47. ReadISAKMPObjectsFromRegistry(
  48. HKEY hRegistryKey,
  49. LPWSTR pszIpsecRootContainer,
  50. LPWSTR * ppszISAKMPDNs,
  51. DWORD dwNumISAKMPObjects,
  52. PIPSEC_ISAKMP_OBJECT ** pppIpsecISAKMPObjects,
  53. PDWORD pdwNumISAKMPObjects
  54. );
  55. DWORD
  56. UnMarshallRegistryPolicyObject(
  57. HKEY hRegistryKey,
  58. LPWSTR pszIpsecRegRootContainer,
  59. LPWSTR pszIpsecPolicyDN,
  60. DWORD dwNameType,
  61. PIPSEC_POLICY_OBJECT * ppIpsecPolicyObject
  62. );
  63. DWORD
  64. UnMarshallRegistryNFAObject(
  65. HKEY hRegistryKey,
  66. LPWSTR pszIpsecRegRootContainer,
  67. LPWSTR pszIpsecNFAReference,
  68. PIPSEC_NFA_OBJECT * ppIpsecPolicyObject,
  69. LPWSTR * ppszFilterReference,
  70. LPWSTR * ppszNegPolReference
  71. );
  72. DWORD
  73. UnMarshallRegistryFilterObject(
  74. HKEY hRegistryKey,
  75. LPWSTR pszIpsecRegRootContainer,
  76. LPWSTR pszIpsecFilterReference,
  77. DWORD dwNameType,
  78. PIPSEC_FILTER_OBJECT * ppIpsecPolicyObject
  79. );
  80. DWORD
  81. UnMarshallRegistryNegPolObject(
  82. HKEY hRegistryKey,
  83. LPWSTR pszIpsecRegRootContainer,
  84. LPWSTR pszIpsecNegPolReference,
  85. DWORD dwNameType,
  86. PIPSEC_NEGPOL_OBJECT * ppIpsecPolicyObject
  87. );
  88. DWORD
  89. UnMarshallRegistryISAKMPObject(
  90. HKEY hRegistryKey,
  91. LPWSTR pszIpsecRegRootContainer,
  92. LPWSTR pszIpsecISAKMPReference,
  93. DWORD dwNameType,
  94. PIPSEC_ISAKMP_OBJECT * ppIpsecPolicyObject
  95. );
  96. void
  97. FreeIpsecNFAObject(
  98. PIPSEC_NFA_OBJECT pIpsecNFAObject
  99. );
  100. void
  101. FreeIpsecPolicyObject(
  102. PIPSEC_POLICY_OBJECT pIpsecPolicyObject
  103. );
  104. void
  105. FreeIpsecFilterObject(
  106. PIPSEC_FILTER_OBJECT pIpsecFilterObject
  107. );
  108. void
  109. FreeIpsecNegPolObject(
  110. PIPSEC_NEGPOL_OBJECT pIpsecNegPolObject
  111. );
  112. void
  113. FreeIpsecISAKMPObject(
  114. PIPSEC_ISAKMP_OBJECT pIpsecISAKMPObject
  115. );
  116. void
  117. FreeNFAReferences(
  118. LPWSTR * ppszNFAReferences,
  119. DWORD dwNumNFAReferences
  120. );
  121. void
  122. FreeFilterReferences(
  123. LPWSTR * ppszFilterReferences,
  124. DWORD dwNumFilterReferences
  125. );
  126. void
  127. FreeNegPolReferences(
  128. LPWSTR * ppszNegPolReferences,
  129. DWORD dwNumNegPolReferences
  130. );
  131. void
  132. FreeIpsecNFAObjects(
  133. PIPSEC_NFA_OBJECT * ppIpsecNFAObjects,
  134. DWORD dwNumNFAObjects
  135. );
  136. void
  137. FreeIpsecFilterObjects(
  138. PIPSEC_FILTER_OBJECT * ppIpsecFilterObjects,
  139. DWORD dwNumFilterObjects
  140. );
  141. void
  142. FreeIpsecNegPolObjects(
  143. PIPSEC_NEGPOL_OBJECT * ppIpsecNegPolObjects,
  144. DWORD dwNumNegPolObjects
  145. );
  146. void
  147. FreeIpsecISAKMPObjects(
  148. PIPSEC_ISAKMP_OBJECT * ppIpsecISAKMPObjects,
  149. DWORD dwNumISAKMPObjects
  150. );
  151. void
  152. FreeIpsecPolicyObjects(
  153. PIPSEC_POLICY_OBJECT * ppIpsecPolicyObjects,
  154. DWORD dwNumPolicyObjects
  155. );
  156. DWORD
  157. RegstoreQueryValue(
  158. HKEY hRegKey,
  159. LPWSTR pszValueName,
  160. DWORD dwType,
  161. LPBYTE * ppValueData,
  162. LPDWORD pdwSize
  163. );
  164. #define REG_RELATIVE_NAME 0
  165. #define REG_FULLY_QUALIFIED_NAME 1
  166. VOID
  167. FlushRegSaveKey(
  168. HKEY hRegistryKey
  169. );