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.

249 lines
3.5 KiB

  1. /*++
  2. Copyright (c) 1993 Microsoft Corporation
  3. Module Name:
  4. proc.h
  5. Abstract:
  6. Global procedure declarations for the AFD.SYS Kernel Debugger
  7. Extensions.
  8. Author:
  9. Keith Moore (keithmo) 19-Apr-1995.
  10. Environment:
  11. User Mode.
  12. --*/
  13. #ifndef _PROC_H_
  14. #define _PROC_H_
  15. //
  16. // Functions from AFDUTIL.C.
  17. //
  18. VOID
  19. DumpAfdEndpoint(
  20. ULONG64 ActualAddress
  21. );
  22. VOID
  23. DumpAfdEndpointBrief(
  24. ULONG64 ActualAddress
  25. );
  26. VOID
  27. DumpAfdConnection(
  28. ULONG64 ActualAddress
  29. );
  30. VOID
  31. DumpAfdConnectionBrief(
  32. ULONG64 ActualAddress
  33. );
  34. VOID
  35. DumpAfdReferenceDebug(
  36. ULONG64 ActualAddress,
  37. LONGLONG Idx
  38. );
  39. #if GLOBAL_REFERENCE_DEBUG
  40. BOOL
  41. DumpAfdGlobalReferenceDebug(
  42. PAFD_GLOBAL_REFERENCE_DEBUG ReferenceDebug,
  43. ULONG64 ActualAddress,
  44. DWORD CurrentSlot,
  45. DWORD StartingSlot,
  46. DWORD NumEntries,
  47. ULONG64 CompareAddress
  48. );
  49. #endif
  50. VOID
  51. DumpAfdTransmitInfo(
  52. ULONG64 ActualAddress
  53. );
  54. VOID
  55. DumpAfdTransmitInfoBrief (
  56. ULONG64 ActualAddress
  57. );
  58. VOID
  59. DumpAfdTPacketsInfo(
  60. ULONG64 ActualAddress
  61. );
  62. VOID
  63. DumpAfdTPacketsInfoBrief (
  64. ULONG64 ActualAddress
  65. );
  66. VOID
  67. DumpAfdBuffer(
  68. ULONG64 ActualAddress
  69. );
  70. VOID
  71. DumpAfdBufferBrief(
  72. ULONG64 ActualAddress
  73. );
  74. VOID
  75. DumpAfdPollInfo (
  76. ULONG64 ActualAddress
  77. );
  78. VOID
  79. DumpAfdPollInfoBrief (
  80. ULONG64 ActualAddress
  81. );
  82. PAFDKD_TRANSPORT_INFO
  83. ReadTransportInfo (
  84. ULONG64 ActualAddress
  85. );
  86. VOID
  87. DumpTransportInfo (
  88. PAFDKD_TRANSPORT_INFO TransportInfo
  89. );
  90. VOID
  91. DumpTransportInfoBrief (
  92. PAFDKD_TRANSPORT_INFO TransportInfo
  93. );
  94. ULONG
  95. GetRemoteAddressFromContext (
  96. ULONG64 EndpAddr,
  97. PVOID AddressBuffer,
  98. SIZE_T AddressBufferLength,
  99. ULONG64 *ContextAddr
  100. );
  101. PSTR
  102. ListToString (
  103. ULONG64 ListHead
  104. );
  105. #define LIST_TO_STRING(_h) ListToString(_h)
  106. INT
  107. CountListEntries (
  108. ULONG64 ListHeadAddress
  109. );
  110. PSTR
  111. ListCountEstimate (
  112. ULONG64 ListHeadAddress
  113. );
  114. //
  115. // Function from help.c
  116. //
  117. PCHAR
  118. ProcessOptions (
  119. IN PCHAR Args
  120. );
  121. //
  122. // Functions from DBGUTIL.C.
  123. //
  124. PSTR
  125. LongLongToString(
  126. LONGLONG Value
  127. );
  128. //
  129. // Functions from ENUMENDP.C.
  130. //
  131. VOID
  132. EnumEndpoints(
  133. PENUM_ENDPOINTS_CALLBACK Callback,
  134. ULONG64 Context
  135. );
  136. //
  137. // Functions from TDIUTIL.C.
  138. //
  139. VOID
  140. DumpTransportAddress(
  141. PCHAR Prefix,
  142. PTRANSPORT_ADDRESS Address,
  143. ULONG64 ActualAddress
  144. );
  145. LPSTR
  146. TransportAddressToString(
  147. PTRANSPORT_ADDRESS Address,
  148. ULONG64 ActualAddress
  149. );
  150. LPSTR
  151. TransportPortToString(
  152. PTRANSPORT_ADDRESS Address,
  153. ULONG64 ActualAddress
  154. );
  155. //
  156. // Functions from AFDS.C.
  157. //
  158. BOOLEAN
  159. CheckConditional (
  160. ULONG64 Address,
  161. PCHAR Type
  162. );
  163. VOID
  164. ProcessFieldOutput (
  165. ULONG64 Address,
  166. PCHAR Type
  167. );
  168. //
  169. // Functions from TCP.C.
  170. //
  171. ULONG
  172. GetRemoteAddressFromTcp (
  173. ULONG64 FoAddress,
  174. PVOID AddressBuffer,
  175. SIZE_T AddressBufferLength
  176. );
  177. //
  178. // Functions from KDEXTS.CPP.
  179. //
  180. BOOLEAN
  181. CheckKmGlobals (
  182. );
  183. HRESULT
  184. GetExpressionFromType (
  185. IN ULONG64 Address,
  186. IN PCHAR Type,
  187. IN PCHAR Expression,
  188. IN ULONG OutType,
  189. OUT PDEBUG_VALUE Value
  190. );
  191. #endif // _PROC_H_