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.

94 lines
2.6 KiB

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