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.

110 lines
2.1 KiB

  1. ////////////////////////////////////////////////////////////
  2. //Header: staticdelete.h
  3. //
  4. // Purpose: Defining structures and prototypes for statidelete.cpp.
  5. //
  6. // Developers Name: surya
  7. //
  8. // History:
  9. //
  10. // Date Author Comments
  11. // 21th Aug 2001 surya Initial Version.
  12. // <creation> <author>
  13. //
  14. // <modification> <author> <comments, references to code sections,
  15. // in case of bug fixes>
  16. //
  17. ////////////////////////////////////////////////////////////
  18. #ifndef _STATICDELETE_H_
  19. #define _STATICDELETE_H_
  20. typedef struct _DELFILTERDATA {
  21. LPTSTR pszFLName;
  22. DNSIPADDR SourceAddr;
  23. DWORD SourMask;
  24. BOOL bSrcMaskSpecified;
  25. DNSIPADDR DestnAddr;
  26. DWORD DestMask;
  27. BOOL bDstMaskSpecified;
  28. BOOL bMirrored;
  29. BOOL bMirrorSpecified;
  30. DWORD dwProtocol;
  31. BOOL bProtocolSpecified;
  32. UINT SourPort;
  33. BOOL bSrcPortSpecified;
  34. UINT DestPort;
  35. BOOL bDstPortSpecified;
  36. UCHAR ExType;
  37. BOOL bSrcServerSpecified;
  38. BOOL bDstServerSpecified;
  39. BOOL bSrcMeSpecified;
  40. BOOL bSrcAnySpecified;
  41. BOOL bDstMeSpecified;
  42. BOOL bDstAnySpecified;
  43. }DELFILTERDATA, *PDELFILTERDATA;
  44. DWORD
  45. DeleteStandAloneFL(
  46. IN HANDLE hStorage
  47. );
  48. DWORD
  49. DeleteStandAloneFA(
  50. IN HANDLE hStorage
  51. );
  52. DWORD
  53. DeletePolicy(
  54. IN PIPSEC_POLICY_DATA pPolicy,
  55. IN HANDLE hStore,
  56. IN BOOL bCompleteDelete
  57. );
  58. DWORD
  59. DeleteFilterAction(
  60. IN PIPSEC_NEGPOL_DATA pNegPolData,
  61. IN HANDLE hStore
  62. );
  63. DWORD
  64. DeleteFilterList(
  65. IN PIPSEC_FILTER_DATA pFilterData,
  66. IN HANDLE hStore
  67. );
  68. BOOL
  69. DeleteSpecifiedFilter(
  70. IN OUT PIPSEC_FILTER_DATA pFilterData,
  71. IN PDELFILTERDATA pDeleteFilter
  72. );
  73. VOID
  74. ShowWhereFAUsed(
  75. IN PIPSEC_NEGPOL_DATA pIpsecNegPolData,
  76. IN HANDLE hPolicyStorage
  77. );
  78. VOID
  79. ShowWhereFLUsed(
  80. IN PIPSEC_FILTER_DATA pIpsecFilterData,
  81. IN HANDLE hPolicyStorage
  82. );
  83. DWORD
  84. DeleteRule(
  85. IN PIPSEC_POLICY_DATA pPolicy,
  86. IN PIPSEC_NFA_DATA pIpsecNFAData,
  87. IN HANDLE hStore,
  88. IN BOOL bCompleteDelete
  89. );
  90. DWORD
  91. FillDelFilterInfo(
  92. OUT PDELFILTERDATA* ppFilter,
  93. IN PARSER_PKT & parser,
  94. IN const TOKEN_VALUE *vtokStaticDelFilter
  95. );
  96. #endif //_STATICDELETE_H_