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.

81 lines
2.2 KiB

  1. #define BAIL_ON_WIN32_ERROR(dwError) \
  2. if (dwError) {\
  3. goto error; \
  4. }
  5. typedef struct _IPSEC_NFA_OBJECT{
  6. LPWSTR pszDistinguishedName;
  7. LPWSTR pszIpsecName;
  8. LPWSTR pszIpsecID;
  9. DWORD dwIpsecDataType;
  10. LPBYTE pIpsecData;
  11. DWORD dwIpsecDataLen;
  12. LPWSTR pszIpsecOwnersReference;
  13. LPWSTR pszIpsecFilterReference;
  14. LPWSTR pszIpsecNegPolReference;
  15. DWORD dwWhenChanged;
  16. LPWSTR pszDescription;
  17. }IPSEC_NFA_OBJECT, *PIPSEC_NFA_OBJECT;
  18. typedef struct _IPSEC_ISAKMP_OBJECT{
  19. LPWSTR pszDistinguishedName;
  20. LPWSTR pszIpsecName;
  21. LPWSTR pszIpsecID;
  22. DWORD dwIpsecDataType;
  23. LPBYTE pIpsecData;
  24. DWORD dwIpsecDataLen;
  25. LPWSTR * ppszIpsecNFAReferences;
  26. DWORD dwNFACount;
  27. DWORD dwWhenChanged;
  28. }IPSEC_ISAKMP_OBJECT, *PIPSEC_ISAKMP_OBJECT;
  29. typedef struct _IPSEC_FILTER_OBJECT{
  30. LPWSTR pszDistinguishedName;
  31. LPWSTR pszIpsecName;
  32. LPWSTR pszIpsecID;
  33. DWORD dwIpsecDataType;
  34. LPBYTE pIpsecData;
  35. DWORD dwIpsecDataLen;
  36. LPWSTR * ppszIpsecNFAReferences;
  37. DWORD dwNFACount;
  38. DWORD dwWhenChanged;
  39. LPWSTR pszDescription;
  40. }IPSEC_FILTER_OBJECT, *PIPSEC_FILTER_OBJECT;
  41. typedef struct _IPSEC_NEGPOL_OBJECT{
  42. LPWSTR pszDistinguishedName;
  43. LPWSTR pszIpsecName;
  44. LPWSTR pszIpsecID;
  45. DWORD dwIpsecDataType;
  46. LPBYTE pIpsecData;
  47. DWORD dwIpsecDataLen;
  48. LPWSTR pszIpsecNegPolAction;
  49. LPWSTR pszIpsecNegPolType;
  50. LPWSTR * ppszIpsecNFAReferences;
  51. DWORD dwNFACount;
  52. DWORD dwWhenChanged;
  53. LPWSTR pszDescription;
  54. }IPSEC_NEGPOL_OBJECT, *PIPSEC_NEGPOL_OBJECT;
  55. typedef struct _IPSEC_POLICY_OBJECT{
  56. LPWSTR pszIpsecOwnersReference;
  57. LPWSTR pszIpsecName;
  58. LPWSTR pszIpsecID;
  59. DWORD dwIpsecDataType;
  60. LPBYTE pIpsecData;
  61. DWORD dwIpsecDataLen;
  62. LPWSTR pszIpsecISAKMPReference;
  63. DWORD NumberofRules;
  64. DWORD NumberofRulesReturned;
  65. LPWSTR * ppszIpsecNFAReferences;
  66. PIPSEC_NFA_OBJECT * ppIpsecNFAObjects;
  67. DWORD NumberofFilters;
  68. PIPSEC_FILTER_OBJECT * ppIpsecFilterObjects;
  69. DWORD NumberofNegPols;
  70. PIPSEC_NEGPOL_OBJECT *ppIpsecNegPolObjects;
  71. DWORD NumberofISAKMPs;
  72. PIPSEC_ISAKMP_OBJECT * ppIpsecISAKMPObjects;
  73. DWORD dwWhenChanged;
  74. LPWSTR pszDescription;
  75. }IPSEC_POLICY_OBJECT, *PIPSEC_POLICY_OBJECT;