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.

78 lines
1.3 KiB

  1. #include "polstore2.h"
  2. HRESULT
  3. CreateChildPath(
  4. LPWSTR pszParentPath,
  5. LPWSTR pszChildComponent,
  6. BSTR * ppszChildPath
  7. );
  8. HRESULT
  9. RetrieveIPSECPolicyFromDS(
  10. PGROUP_POLICY_OBJECT pGPOInfo,
  11. LPWSTR pszIPSecPolicy,
  12. DWORD dwPolLen,
  13. LPWSTR pszIPSecPolicyName,
  14. DWORD dwPolNameLen,
  15. LPWSTR pszIPSecPolicyDescription,
  16. DWORD dwPolDescLen);
  17. DWORD
  18. DeleteIPSECPolicyFromRegistry(
  19. );
  20. DWORD
  21. WriteIPSECPolicyToRegistry(
  22. LPWSTR pszIPSecPolicyPath,
  23. LPWSTR pszIPSecPolicyName,
  24. LPWSTR pszIPSecPolicyDescription
  25. );
  26. HRESULT
  27. RegisterIPSEC(void);
  28. HRESULT
  29. UnregisterIPSEC(void);
  30. VOID
  31. PingPolicyAgent(
  32. );
  33. VOID
  34. NotifyPolicyAgent(
  35. );
  36. WCHAR *
  37. StripPrefixIpsec(
  38. WCHAR *pwszPath
  39. );
  40. WCHAR *
  41. StripLinkPrefixIpsec(
  42. WCHAR *pwszPath
  43. );
  44. HRESULT
  45. CreatePolstoreGPOInfo(
  46. PGROUP_POLICY_OBJECT pGPO,
  47. UINT32 uiPrecedence,
  48. UINT32 uiTotalGPOs,
  49. PGPO_INFO pGPOInfo
  50. );
  51. HRESULT
  52. FreePolstoreGPOInfo(
  53. PGPO_INFO pGPOInfo
  54. );
  55. #define BAIL_ON_FAILURE(hr) \
  56. if (FAILED(hr)) { \
  57. goto error; \
  58. }
  59. #define BAIL_ON_WIN32_ERROR(dwError) \
  60. if (dwError) { \
  61. goto error; \
  62. }
  63.