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.

208 lines
3.6 KiB

  1. /////////////////////////////////////////////////////////////////////////////////
  2. //Header: staticshowtable.h
  3. //
  4. //Purpose: Defining structures and prototypes for statishow.cpp.
  5. //
  6. //Developers Name: surya
  7. //
  8. //History:
  9. //
  10. // Date Author Comments
  11. // 10-8-2001 Surya Initial Version. SCM Base line 1.0
  12. //
  13. //
  14. //////////////////////////////////////////////////////////////////////////////////
  15. #ifndef _STATICSHOWTABLE_H_
  16. #define _STATICSHOWTABLE_H_
  17. const DWORD POL_TRUNC_LEN_TABLE_NVER = 39; // Truncation for Non Verbose Mode
  18. const DWORD POL_TRUNC_LEN_TABLE_VER = 54; // Truncation for Verbose Mode
  19. const DWORD RUL_TRUNC_LEN_TABLE_NVER = 23; // Truncation for Non Verbose Mode
  20. const DWORD FA_TRUNC_LEN_TABLE_NVER = 38; // Truncation for Non Verbose Mode
  21. const DWORD FL_TRUNC_LEN_TABLE_NVER = 45; // Truncation for Non Verbose Mode
  22. //
  23. //Function Declarations
  24. //
  25. extern BOOL
  26. IsDomainMember(
  27. IN LPTSTR pszMachine
  28. );
  29. VOID
  30. PrintPolicyTable(
  31. IN PIPSEC_POLICY_DATA pPolicy,
  32. IN BOOL bVerb,
  33. IN BOOL bAssigned,
  34. IN BOOL bWide
  35. );
  36. VOID
  37. PrintIPAddrTable(
  38. IN DWORD dwAddr
  39. );
  40. DWORD
  41. PrintFilterDataTable(
  42. IN PIPSEC_FILTER_DATA pIpsecFilterData,
  43. IN BOOL bVerb,
  44. IN BOOL bWide
  45. );
  46. DWORD
  47. PrintFilterSpecTable(
  48. IN PIPSEC_FILTER_SPEC pIpsecFilterSpec
  49. );
  50. VOID
  51. PrintFilterTable(
  52. IN IPSEC_FILTER Filter,
  53. IN PFILTERDNS pFilterDNS
  54. );
  55. VOID
  56. GetFilterDNSDetails(
  57. IN PIPSEC_FILTER_SPEC pFilterData,
  58. IN OUT PFILTERDNS pFilterDNS
  59. );
  60. VOID
  61. PrintProtocolNameTable(
  62. IN DWORD dwProtocol
  63. );
  64. VOID
  65. PrintRuleTable(
  66. IN PIPSEC_NFA_DATA pIpsecNFAData,
  67. IN BOOL bVerb,
  68. IN BOOL bWide
  69. );
  70. VOID
  71. PrintNegPolDataTable(
  72. IN PIPSEC_NEGPOL_DATA pIpsecNegPolData,
  73. IN BOOL bVerb,
  74. IN BOOL bWide
  75. );
  76. VOID
  77. PrintAuthMethodsTable(
  78. IN PIPSEC_AUTH_METHOD pIpsecAuthData
  79. );
  80. VOID
  81. PrintISAKMPDataTable(
  82. IN PIPSEC_ISAKMP_DATA pIpsecISAKMPData
  83. );
  84. VOID
  85. PrintISAKAMPSecurityMethodsTable(
  86. IN CRYPTO_BUNDLE SecurityMethods
  87. );
  88. VOID
  89. PrintISAKMPPolicyTable(
  90. IN ISAKMP_POLICY ISAKMPPolicy,
  91. IN BOOL bVerb
  92. );
  93. VOID
  94. PrintLifeTimeTable(
  95. IN LIFETIME LifeTime
  96. );
  97. VOID
  98. PrintAlgoInfoTable(
  99. IN PIPSEC_ALGO_INFO Algos,
  100. IN DWORD dwNumAlgos
  101. );
  102. VOID
  103. PrintSecurityMethodsTable(
  104. IN IPSEC_SECURITY_METHOD IpsecSecurityMethods
  105. );
  106. BOOL
  107. CheckSoft(
  108. IN IPSEC_SECURITY_METHOD IpsecSecurityMethods
  109. );
  110. DWORD
  111. IsAssigned(
  112. IN PIPSEC_POLICY_DATA pPolicy,
  113. IN HANDLE hStorage,
  114. IN OUT BOOL &bAssigned
  115. );
  116. DWORD
  117. PrintStandAloneFAData(
  118. IN HANDLE hPolicyStorage,
  119. IN BOOL bVerbose,
  120. IN BOOL bTable,
  121. IN BOOL bWide
  122. );
  123. DWORD
  124. IsStandAloneFA(
  125. IN PIPSEC_NEGPOL_DATA pNegPol,
  126. IN HANDLE hPolicyStorage,
  127. IN OUT BOOL & bStandAlone
  128. );
  129. DWORD
  130. PrintAllFilterActionData(
  131. IN HANDLE hPolicyStorage,
  132. IN LPTSTR pszFactName,
  133. IN BOOL bVerbose,
  134. IN BOOL bTable,
  135. IN BOOL bWide
  136. );
  137. DWORD
  138. PrintAllFilterData(
  139. IN HANDLE hPolicyStorage,
  140. IN LPTSTR pszFlistName,
  141. IN BOOL bVerbose,
  142. IN BOOL bTable,
  143. IN BOOL bResolveDNS,
  144. IN BOOL bWide
  145. );
  146. DWORD
  147. PrintStandAloneFLData(
  148. IN HANDLE hPolicyStorage,
  149. IN BOOL bVerbose,
  150. IN BOOL bTable,
  151. IN BOOL bWide
  152. );
  153. DWORD
  154. IsStandAloneFL(
  155. IN PIPSEC_FILTER_DATA pFilter,
  156. IN HANDLE hPolicyStorage,
  157. IN OUT BOOL & bStandAlone
  158. );
  159. DWORD
  160. GetPolicyInfoFromDomain(
  161. IN LPTSTR pszDirectoryName,
  162. IN LPTSTR szPolicyDN,
  163. IN OUT PGPO pGPO
  164. );
  165. DWORD
  166. PrintStorageInfoTable(
  167. VOID
  168. );
  169. VOID
  170. TruncateString(
  171. IN LPTSTR pszOriginalString,
  172. IN OUT LPOLESTR pszReturnString,
  173. IN DWORD dwTruncLen,
  174. IN BOOL bWide
  175. );
  176. #endif //_STATICSHOWTABLE_H_