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.

261 lines
3.9 KiB

  1. #include "netpch.h"
  2. #pragma hdrstop
  3. #include <iphlpapi.h>
  4. static
  5. DWORD
  6. WINAPI
  7. GetIfTable(
  8. OUT PMIB_IFTABLE pIfTable,
  9. IN OUT PULONG pdwSize,
  10. IN BOOL bOrder
  11. )
  12. {
  13. return ERROR_PROC_NOT_FOUND;
  14. }
  15. static
  16. DWORD
  17. WINAPI
  18. GetInterfaceInfo(
  19. IN PIP_INTERFACE_INFO pIfTable,
  20. OUT PULONG dwOutBufLen
  21. )
  22. {
  23. return ERROR_PROC_NOT_FOUND;
  24. }
  25. static
  26. DWORD
  27. WINAPI
  28. GetIpAddrTable(
  29. OUT PMIB_IPADDRTABLE pIpAddrTable,
  30. IN OUT PULONG pdwSize,
  31. IN BOOL bOrder
  32. )
  33. {
  34. return ERROR_PROC_NOT_FOUND;
  35. }
  36. static
  37. DWORD
  38. WINAPI
  39. GetIpNetTable(
  40. OUT PMIB_IPNETTABLE pIpNetTable,
  41. IN OUT PULONG pdwSize,
  42. IN BOOL bOrder
  43. )
  44. {
  45. return ERROR_PROC_NOT_FOUND;
  46. }
  47. static
  48. DWORD
  49. WINAPI
  50. GetIpForwardTable(
  51. OUT PMIB_IPFORWARDTABLE pIpForwardTable,
  52. IN OUT PULONG pdwSize,
  53. IN BOOL bOrder
  54. )
  55. {
  56. return ERROR_PROC_NOT_FOUND;
  57. }
  58. static
  59. DWORD
  60. WINAPI
  61. GetIpStatistics(
  62. OUT PMIB_IPSTATS pStats
  63. )
  64. {
  65. return ERROR_PROC_NOT_FOUND;
  66. }
  67. static
  68. DWORD
  69. WINAPI
  70. GetIcmpStatistics(
  71. OUT PMIB_ICMP pStats
  72. )
  73. {
  74. return ERROR_PROC_NOT_FOUND;
  75. }
  76. static
  77. DWORD
  78. WINAPI
  79. GetNumberOfInterfaces(
  80. OUT PDWORD pdwNumIf
  81. )
  82. {
  83. return ERROR_PROC_NOT_FOUND;
  84. }
  85. static
  86. DWORD
  87. WINAPI
  88. GetTcpStatistics(
  89. OUT PMIB_TCPSTATS pStats
  90. )
  91. {
  92. return ERROR_PROC_NOT_FOUND;
  93. }
  94. static
  95. DWORD
  96. WINAPI
  97. GetUdpStatistics(
  98. OUT PMIB_UDPSTATS pStats
  99. )
  100. {
  101. return ERROR_PROC_NOT_FOUND;
  102. }
  103. static
  104. DWORD
  105. WINAPI
  106. GetBestInterface(
  107. IN IPAddr dwDestAddr,
  108. OUT PDWORD pdwBestIfIndex
  109. )
  110. {
  111. return ERROR_PROC_NOT_FOUND;
  112. }
  113. static
  114. DWORD
  115. WINAPI
  116. GetBestRoute(
  117. IN DWORD dwDestAddr,
  118. IN DWORD dwSourceAddr, OPTIONAL
  119. OUT PMIB_IPFORWARDROW pBestRoute
  120. )
  121. {
  122. return ERROR_PROC_NOT_FOUND;
  123. }
  124. static
  125. DWORD
  126. WINAPI
  127. NotifyAddrChange(
  128. OUT PHANDLE Handle,
  129. IN LPOVERLAPPED overlapped
  130. )
  131. {
  132. return ERROR_PROC_NOT_FOUND;
  133. }
  134. static
  135. DWORD
  136. WINAPI
  137. NotifyRouteChange(
  138. OUT PHANDLE Handle,
  139. IN LPOVERLAPPED overlapped
  140. )
  141. {
  142. return ERROR_PROC_NOT_FOUND;
  143. }
  144. static
  145. BOOL
  146. WINAPI
  147. GetRTTAndHopCount(
  148. IPAddr DestIpAddress,
  149. PULONG HopCount,
  150. ULONG MaxHops,
  151. PULONG RTT
  152. )
  153. {
  154. SetLastError(ERROR_PROC_NOT_FOUND);
  155. return FALSE;
  156. }
  157. static
  158. DWORD
  159. WINAPI
  160. GetFriendlyIfIndex(
  161. DWORD IfIndex
  162. )
  163. {
  164. return ERROR_PROC_NOT_FOUND;
  165. }
  166. static
  167. DWORD
  168. WINAPI
  169. GetAdaptersInfo(
  170. PIP_ADAPTER_INFO pAdapterInfo,
  171. PULONG pOutBufLen
  172. )
  173. {
  174. return ERROR_PROC_NOT_FOUND;
  175. }
  176. static
  177. DWORD
  178. WINAPI
  179. GetIfEntry(
  180. IN OUT PMIB_IFROW pIfRow
  181. )
  182. {
  183. return ERROR_PROC_NOT_FOUND;
  184. }
  185. static
  186. DWORD
  187. WINAPI
  188. GetPerAdapterInfo(
  189. ULONG IfIndex,
  190. PIP_PER_ADAPTER_INFO pPerAdapterInfo,
  191. PULONG pOutBufLen
  192. )
  193. {
  194. return ERROR_PROC_NOT_FOUND;
  195. }
  196. static
  197. DWORD
  198. NhGetInterfaceNameFromDeviceGuid(
  199. IN GUID *pGuid,
  200. OUT PWCHAR pwszBuffer,
  201. IN OUT PULONG pulBufferSize,
  202. IN BOOL bCache,
  203. IN BOOL bRefresh
  204. )
  205. {
  206. return ERROR_PROC_NOT_FOUND;
  207. }
  208. //
  209. // !! WARNING !! The entries below must be in alphabetical order, and are CASE SENSITIVE (eg lower case comes last!)
  210. //
  211. DEFINE_PROCNAME_ENTRIES(iphlpapi)
  212. {
  213. DLPENTRY(GetAdaptersInfo)
  214. DLPENTRY(GetBestInterface)
  215. DLPENTRY(GetBestRoute)
  216. DLPENTRY(GetFriendlyIfIndex)
  217. DLPENTRY(GetIcmpStatistics)
  218. DLPENTRY(GetIfEntry)
  219. DLPENTRY(GetIfTable)
  220. DLPENTRY(GetInterfaceInfo)
  221. DLPENTRY(GetIpAddrTable)
  222. DLPENTRY(GetIpForwardTable)
  223. DLPENTRY(GetIpNetTable)
  224. DLPENTRY(GetIpStatistics)
  225. DLPENTRY(GetNumberOfInterfaces)
  226. DLPENTRY(GetPerAdapterInfo)
  227. DLPENTRY(GetRTTAndHopCount)
  228. DLPENTRY(GetTcpStatistics)
  229. DLPENTRY(GetUdpStatistics)
  230. DLPENTRY(NhGetInterfaceNameFromDeviceGuid)
  231. DLPENTRY(NotifyAddrChange)
  232. DLPENTRY(NotifyRouteChange)
  233. };
  234. DEFINE_PROCNAME_MAP(iphlpapi)