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.

204 lines
3.8 KiB

  1. #ifndef __PROTO_H__
  2. #define __PROTO_H__
  3. PMIB_IFROW
  4. LocateIfRow(
  5. DWORD dwQueryType,
  6. AsnAny *paaIfIndex
  7. );
  8. PMIB_IPADDRROW
  9. LocateIpAddrRow(
  10. DWORD dwQueryType,
  11. AsnAny *paaIpAddr
  12. );
  13. PMIB_IPFORWARDROW
  14. LocateIpRouteRow(
  15. DWORD dwQueryType ,
  16. AsnAny *paaIpDest
  17. );
  18. PMIB_IPFORWARDROW
  19. LocateIpForwardRow(
  20. DWORD dwQueryType,
  21. AsnAny *paaDest,
  22. AsnAny *paaProto,
  23. AsnAny *paaPolicy,
  24. AsnAny *paaNextHop
  25. );
  26. PMIB_IPNETROW
  27. LocateIpNetRow(
  28. DWORD dwQueryType,
  29. AsnAny *paaIndex,
  30. AsnAny *paaAddr
  31. );
  32. PMIB_UDPROW
  33. LocateUdpRow(
  34. DWORD dwQueryType,
  35. AsnAny *paaLocalAddr,
  36. AsnAny *paaLocalPort
  37. );
  38. PUDP6ListenerEntry
  39. LocateUdp6Row(
  40. DWORD dwQueryType,
  41. AsnAny *paaLocalAddr,
  42. AsnAny *paaLocalPort
  43. );
  44. PMIB_TCPROW
  45. LocateTcpRow(
  46. DWORD dwQueryType,
  47. AsnAny *paaLocalAddr,
  48. AsnAny *paaLocalPort,
  49. AsnAny *paaRemoteAddr,
  50. AsnAny *paaRemotePort
  51. );
  52. PTCP6ConnTableEntry
  53. LocateTcp6Row(
  54. DWORD dwQueryType,
  55. AsnAny *paaLocalAddr,
  56. AsnAny *paaLocalPort,
  57. AsnAny *paaRemoteAddr,
  58. AsnAny *paaRemotePort
  59. );
  60. DWORD
  61. LoadSystem(VOID);
  62. DWORD
  63. LoadIfTable(VOID);
  64. DWORD
  65. LoadIpAddrTable(VOID);
  66. DWORD
  67. LoadIpNetTable(VOID);
  68. DWORD
  69. LoadIpForwardTable(VOID);
  70. DWORD
  71. LoadTcpTable(VOID);
  72. DWORD
  73. LoadTcp6Table(VOID);
  74. DWORD
  75. LoadUdpTable(VOID);
  76. DWORD
  77. LoadUdp6ListenerTable(VOID);
  78. DWORD
  79. GetIpStats(MIB_IPSTATS *pStats);
  80. DWORD
  81. GetIcmpStats(MIB_ICMP *pStats);
  82. DWORD
  83. GetTcpStats(MIB_TCPSTATS *pStats);
  84. DWORD
  85. GetUdpStats(MIB_UDPSTATS *pStats);
  86. DWORD
  87. SetIfRow(PMIB_OPAQUE_INFO pRpcRow);
  88. DWORD
  89. CreateIpForwardRow(PMIB_OPAQUE_INFO pRpcRow);
  90. DWORD
  91. SetIpForwardRow(PMIB_OPAQUE_INFO pRpcRow);
  92. DWORD
  93. DeleteIpForwardRow(PMIB_OPAQUE_INFO pRpcRow);
  94. DWORD
  95. SetIpStats(PMIB_OPAQUE_INFO pRpcRow);
  96. DWORD
  97. CreateIpNetRow(PMIB_OPAQUE_INFO pRpcRow);
  98. DWORD
  99. SetIpNetRow(PMIB_OPAQUE_INFO pRpcRow);
  100. DWORD
  101. DeleteIpNetRow(PMIB_OPAQUE_INFO pRpcRow);
  102. DWORD
  103. SetTcpRow(PMIB_OPAQUE_INFO pRpcRow);
  104. LONG
  105. UdpCmp(
  106. DWORD dwAddr1,
  107. DWORD dwPort1,
  108. DWORD dwAddr2,
  109. DWORD dwPort2
  110. );
  111. LONG
  112. Udp6Cmp(
  113. BYTE rgbyLocalAddrEx1[20],
  114. DWORD dwLocalPort1,
  115. BYTE rgbyLocalAddrEx2[20],
  116. DWORD dwLocalPort2
  117. );
  118. LONG
  119. TcpCmp(
  120. DWORD dwLocalAddr1,
  121. DWORD dwLocalPort1,
  122. DWORD dwRemAddr1,
  123. DWORD dwRemPort1,
  124. DWORD dwLocalAddr2,
  125. DWORD dwLocalPort2,
  126. DWORD dwRemAddr2,
  127. DWORD dwRemPort2
  128. );
  129. LONG
  130. Tcp6Cmp(
  131. BYTE rgbyLocalAddrEx1[20],
  132. DWORD dwLocalPort1,
  133. BYTE rgbyRemAddrEx1[20],
  134. DWORD dwRemPort1,
  135. BYTE rgbyLocalAddrEx2[20],
  136. DWORD dwLocalPort2,
  137. BYTE rgbyRemAddrEx2[20],
  138. DWORD dwRemPort2
  139. );
  140. LONG
  141. IpForwardCmp(DWORD dwIpDest1,
  142. DWORD dwProto1,
  143. DWORD dwPolicy1,
  144. DWORD dwIpNextHop1,
  145. DWORD dwIpDest2,
  146. DWORD dwProto2,
  147. DWORD dwPolicy2,
  148. DWORD dwIpNextHop2
  149. );
  150. LONG
  151. IpNetCmp(
  152. DWORD dwIfIndex1,
  153. DWORD dwAddr1,
  154. DWORD dwIfIndex2,
  155. DWORD dwAddr2
  156. );
  157. DWORD
  158. UpdateCache(DWORD dwCache);
  159. BOOL
  160. IsRouterRunning();
  161. DWORD
  162. GetSysInfo(
  163. MIB_SYSINFO **ppRpcSysInfo,
  164. HANDLE hHeap,
  165. DWORD dwAllocFlags
  166. );
  167. DWORD
  168. GetIfIndexFromAddr(
  169. DWORD dwAddr
  170. );
  171. #endif