jwaipexport.pas 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441
  1. {******************************************************************************}
  2. { }
  3. { Internet Protocol Helper API interface Unit for Object Pascal }
  4. { }
  5. { Portions created by Microsoft are Copyright (C) 1995-2001 Microsoft }
  6. { Corporation. All Rights Reserved. }
  7. { }
  8. { The original file is: ipexport.h, released August 2001. The original Pascal }
  9. { code is: IpExport.pas, released September 2000. The initial developer of the }
  10. { Pascal code is Marcel van Brakel (brakelm att chello dott nl). }
  11. { }
  12. { Portions created by Marcel van Brakel are Copyright (C) 1999-2001 }
  13. { Marcel van Brakel. All Rights Reserved. }
  14. { }
  15. { Contributor(s): John C. Penman (jcp att craiglockhart dott com) }
  16. { Vladimir Vassiliev (voldemarv att hotpop dott com) }
  17. { }
  18. { Obtained through: Joint Endeavour of Delphi Innovators (Project JEDI) }
  19. { }
  20. { You may retrieve the latest version of this file at the Project JEDI }
  21. { APILIB home page, located at http://jedi-apilib.sourceforge.net }
  22. { }
  23. { The contents of this file are used with permission, subject to the Mozilla }
  24. { Public License Version 1.1 (the "License"); you may not use this file except }
  25. { in compliance with the License. You may obtain a copy of the License at }
  26. { http://www.mozilla.org/MPL/MPL-1.1.html }
  27. { }
  28. { Software distributed under the License is distributed on an "AS IS" basis, }
  29. { WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for }
  30. { the specific language governing rights and limitations under the License. }
  31. { }
  32. { Alternatively, the contents of this file may be used under the terms of the }
  33. { GNU Lesser General Public License (the "LGPL License"), in which case the }
  34. { provisions of the LGPL License are applicable instead of those above. }
  35. { If you wish to allow use of your version of this file only under the terms }
  36. { of the LGPL License and not to allow others to use your version of this file }
  37. { under the MPL, indicate your decision by deleting the provisions above and }
  38. { replace them with the notice and other provisions required by the LGPL }
  39. { License. If you do not delete the provisions above, a recipient may use }
  40. { your version of this file under either the MPL or the LGPL License. }
  41. { }
  42. { For more information about the LGPL: http://www.gnu.org/copyleft/lesser.html }
  43. { }
  44. {******************************************************************************}
  45. // $Id: JwaIpExport.pas,v 1.8 2005/09/03 14:27:48 marquardt Exp $
  46. unit JwaIpExport;
  47. {$WEAKPACKAGEUNIT}
  48. {$HPPEMIT ''}
  49. {$HPPEMIT '#include "ipexport.h"'}
  50. {$HPPEMIT ''}
  51. {$I jediapilib.inc}
  52. interface
  53. uses
  54. JwaWindows, JwaWS2tcpip;
  55. //
  56. // IP type definitions.
  57. //
  58. type
  59. IPAddr = ULONG; // An IP address.
  60. {$EXTERNALSYM IPAddr}
  61. IPMask = ULONG; // An IP subnet mask.
  62. {$EXTERNALSYM IPMask}
  63. IP_STATUS = ULONG; // Status code returned from IP APIs.
  64. {$EXTERNALSYM IP_STATUS}
  65. (* (rom) deactivated kernel mode is irrelevant for Delphi
  66. //
  67. // Duplicate these definitions here so that this file can be included by
  68. // kernel-mode components which cannot include ws2tcpip.h, as well as
  69. // by user-mode components which do.
  70. //
  71. type
  72. IN6_ADDR = record
  73. case Integer of
  74. 0: (Byte: array [0..15] of UCHAR);
  75. 1: (Word: array [0..7] of USHORT);
  76. end;
  77. {$EXTERNALSYM IN6_ADDR}
  78. TIn6Addr = IN6_ADDR;
  79. PIn6Addr = ^IN6_ADDR;
  80. in_addr6 = in6_addr;
  81. {$EXTERNALSYM in_addr6}
  82. TInAddr6 = in_addr6;
  83. PInAddr6 = ^in_addr6;
  84. *)
  85. type
  86. IPv6Addr = in6_addr;
  87. {$EXTERNALSYM IPv6Addr}
  88. TIPv6Addr = IPv6Addr;
  89. PIPv6Addr = ^IPv6Addr;
  90. //#ifndef s_addr
  91. in_addr = record
  92. case Integer of
  93. 0: (
  94. s_b1, s_b2, s_b3, s_b4: UCHAR;
  95. );
  96. 1: (
  97. s_w1, s_w2: USHORT
  98. );
  99. 2: (
  100. S_addr: ULONG
  101. );
  102. end;
  103. {$EXTERNALSYM in_addr}
  104. //#define s_addr S_un.S_addr /* can be used for most tcp & ip code */
  105. //#endif
  106. //
  107. // The ip_option_information structure describes the options to be
  108. // included in the header of an IP packet. The TTL, TOS, and Flags
  109. // values are carried in specific fields in the header. The OptionsData
  110. // bytes are carried in the options area following the standard IP header.
  111. // With the exception of source route options, this data must be in the
  112. // format to be transmitted on the wire as specified in RFC 791. A source
  113. // route option should contain the full route - first hop thru final
  114. // destination - in the route data. The first hop will be pulled out of the
  115. // data and the option will be reformatted accordingly. Otherwise, the route
  116. // option should be formatted as specified in RFC 791.
  117. //
  118. type
  119. IP_OPTION_INFORMATION = record
  120. Ttl: UCHAR; // Time To Live
  121. Tos: UCHAR; // Type Of Service
  122. Flags: UCHAR; // IP header flags
  123. OptionsSize: UCHAR; // Size in bytes of options data
  124. OptionsData: PUCHAR; // Pointer to options data
  125. end;
  126. {$EXTERNALSYM IP_OPTION_INFORMATION}
  127. PIP_OPTION_INFORMATION = ^IP_OPTION_INFORMATION;
  128. {$EXTERNALSYM PIP_OPTION_INFORMATION}
  129. TIpOptionInformation = IP_OPTION_INFORMATION;
  130. PIpOptionInformation = PIP_OPTION_INFORMATION;
  131. //
  132. // The icmp_echo_reply structure describes the data returned in response
  133. // to an echo request.
  134. //
  135. ICMP_ECHO_REPLY = record
  136. Address: IPAddr; // Replying address
  137. Status: ULONG; // Reply IP_STATUS
  138. RoundTripTime: ULONG; // RTT in milliseconds
  139. DataSize: USHORT; // Reply data size in bytes
  140. Reserved: USHORT; // Reserved for system use
  141. Data: LPVOID; // Pointer to the reply data
  142. Options: ip_option_information; // Reply options
  143. end;
  144. {$EXTERNALSYM ICMP_ECHO_REPLY}
  145. PICMP_ECHO_REPLY = ^ICMP_ECHO_REPLY;
  146. {$EXTERNALSYM PICMP_ECHO_REPLY}
  147. TIcmpEchoReply = ICMP_ECHO_REPLY;
  148. PIcmpEchoReply = PICMP_ECHO_REPLY;
  149. ARP_SEND_REPLY = record
  150. DestAddress: IPAddr;
  151. SrcAddress: IPAddr;
  152. end;
  153. {$EXTERNALSYM ARP_SEND_REPLY}
  154. PARP_SEND_REPLY = ^ARP_SEND_REPLY;
  155. {$EXTERNALSYM PARP_SEND_REPLY}
  156. TArpSendReply = ARP_SEND_REPLY;
  157. PArpSendReply = PARP_SEND_REPLY;
  158. TCP_RESERVE_PORT_RANGE = record
  159. UpperRange: USHORT;
  160. LowerRange: USHORT;
  161. end;
  162. {$EXTERNALSYM TCP_RESERVE_PORT_RANGE}
  163. PTCP_RESERVE_PORT_RANGE = ^TCP_RESERVE_PORT_RANGE;
  164. {$EXTERNALSYM PTCP_RESERVE_PORT_RANGE}
  165. TTcpReservePortRange = TCP_RESERVE_PORT_RANGE;
  166. PTcpReservePortRange = PTCP_RESERVE_PORT_RANGE;
  167. const
  168. MAX_ADAPTER_NAME = 128;
  169. {$EXTERNALSYM MAX_ADAPTER_NAME}
  170. type
  171. PIP_ADAPTER_INDEX_MAP = ^IP_ADAPTER_INDEX_MAP;
  172. {$EXTERNALSYM PIP_ADAPTER_INDEX_MAP}
  173. _IP_ADAPTER_INDEX_MAP = record
  174. Index: ULONG;
  175. Name: array [0..MAX_ADAPTER_NAME - 1] of WCHAR;
  176. end;
  177. {$EXTERNALSYM _IP_ADAPTER_INDEX_MAP}
  178. IP_ADAPTER_INDEX_MAP = _IP_ADAPTER_INDEX_MAP;
  179. {$EXTERNALSYM IP_ADAPTER_INDEX_MAP}
  180. TIpAdapterIndexMap = IP_ADAPTER_INDEX_MAP;
  181. PIpAdapterIndexMap = PIP_ADAPTER_INDEX_MAP;
  182. PIP_INTERFACE_INFO = ^IP_INTERFACE_INFO;
  183. {$EXTERNALSYM PIP_INTERFACE_INFO}
  184. _IP_INTERFACE_INFO = record
  185. NumAdapters: Longint;
  186. Adapter: array [0..0] of IP_ADAPTER_INDEX_MAP;
  187. end;
  188. {$EXTERNALSYM _IP_INTERFACE_INFO}
  189. IP_INTERFACE_INFO = _IP_INTERFACE_INFO;
  190. {$EXTERNALSYM IP_INTERFACE_INFO}
  191. TIpInterfaceInfo = IP_INTERFACE_INFO;
  192. PIpInterfaceInfo = PIP_INTERFACE_INFO;
  193. PIP_UNIDIRECTIONAL_ADAPTER_ADDRESS = ^IP_UNIDIRECTIONAL_ADAPTER_ADDRESS;
  194. {$EXTERNALSYM PIP_UNIDIRECTIONAL_ADAPTER_ADDRESS}
  195. _IP_UNIDIRECTIONAL_ADAPTER_ADDRESS = record
  196. NumAdapters: ULONG;
  197. Address: array [0..0] of IPAddr;
  198. end;
  199. {$EXTERNALSYM _IP_UNIDIRECTIONAL_ADAPTER_ADDRESS}
  200. IP_UNIDIRECTIONAL_ADAPTER_ADDRESS = _IP_UNIDIRECTIONAL_ADAPTER_ADDRESS;
  201. {$EXTERNALSYM IP_UNIDIRECTIONAL_ADAPTER_ADDRESS}
  202. TIpUnidirectionalAdapterAddress = IP_UNIDIRECTIONAL_ADAPTER_ADDRESS;
  203. PIpUnidirectionalAdapterAddress = PIP_UNIDIRECTIONAL_ADAPTER_ADDRESS;
  204. PIP_ADAPTER_ORDER_MAP = ^IP_ADAPTER_ORDER_MAP;
  205. {$EXTERNALSYM PIP_ADAPTER_ORDER_MAP}
  206. _IP_ADAPTER_ORDER_MAP = record
  207. NumAdapters: ULONG;
  208. AdapterOrder: array [0..0] of ULONG;
  209. end;
  210. {$EXTERNALSYM _IP_ADAPTER_ORDER_MAP}
  211. IP_ADAPTER_ORDER_MAP = _IP_ADAPTER_ORDER_MAP;
  212. {$EXTERNALSYM IP_ADAPTER_ORDER_MAP}
  213. TIpAdapterOrderMap = IP_ADAPTER_ORDER_MAP;
  214. PIpAdapterOrderMap = PIP_ADAPTER_ORDER_MAP;
  215. _IP_MCAST_COUNTER_INFO = record
  216. InMcastOctets: ULONG64;
  217. OutMcastOctets: ULONG64;
  218. InMcastPkts: ULONG64;
  219. OutMcastPkts: ULONG64;
  220. end;
  221. {$EXTERNALSYM _IP_MCAST_COUNTER_INFO}
  222. IP_MCAST_COUNTER_INFO = _IP_MCAST_COUNTER_INFO;
  223. {$EXTERNALSYM IP_MCAST_COUNTER_INFO}
  224. PIP_MCAST_COUNTER_INFO = ^IP_MCAST_COUNTER_INFO;
  225. {$EXTERNALSYM PIP_MCAST_COUNTER_INFO}
  226. TIpMCastCounterInfo = IP_MCAST_COUNTER_INFO;
  227. PIpMCastCounterInfo = PIP_MCAST_COUNTER_INFO;
  228. //
  229. // IP_STATUS codes returned from IP APIs
  230. //
  231. const
  232. IP_STATUS_BASE = 11000;
  233. {$EXTERNALSYM IP_STATUS_BASE}
  234. IP_SUCCESS = 0;
  235. {$EXTERNALSYM IP_SUCCESS}
  236. IP_BUF_TOO_SMALL = IP_STATUS_BASE + 1;
  237. {$EXTERNALSYM IP_BUF_TOO_SMALL}
  238. IP_DEST_NET_UNREACHABLE = IP_STATUS_BASE + 2;
  239. {$EXTERNALSYM IP_DEST_NET_UNREACHABLE}
  240. IP_DEST_HOST_UNREACHABLE = IP_STATUS_BASE + 3;
  241. {$EXTERNALSYM IP_DEST_HOST_UNREACHABLE}
  242. IP_DEST_PROT_UNREACHABLE = IP_STATUS_BASE + 4;
  243. {$EXTERNALSYM IP_DEST_PROT_UNREACHABLE}
  244. IP_DEST_PORT_UNREACHABLE = IP_STATUS_BASE + 5;
  245. {$EXTERNALSYM IP_DEST_PORT_UNREACHABLE}
  246. IP_NO_RESOURCES = IP_STATUS_BASE + 6;
  247. {$EXTERNALSYM IP_NO_RESOURCES}
  248. IP_BAD_OPTION = IP_STATUS_BASE + 7;
  249. {$EXTERNALSYM IP_BAD_OPTION}
  250. IP_HW_ERROR = IP_STATUS_BASE + 8;
  251. {$EXTERNALSYM IP_HW_ERROR}
  252. IP_PACKET_TOO_BIG = IP_STATUS_BASE + 9;
  253. {$EXTERNALSYM IP_PACKET_TOO_BIG}
  254. IP_REQ_TIMED_OUT = IP_STATUS_BASE + 10;
  255. {$EXTERNALSYM IP_REQ_TIMED_OUT}
  256. IP_BAD_REQ = IP_STATUS_BASE + 11;
  257. {$EXTERNALSYM IP_BAD_REQ}
  258. IP_BAD_ROUTE = IP_STATUS_BASE + 12;
  259. {$EXTERNALSYM IP_BAD_ROUTE}
  260. IP_TTL_EXPIRED_TRANSIT = IP_STATUS_BASE + 13;
  261. {$EXTERNALSYM IP_TTL_EXPIRED_TRANSIT}
  262. IP_TTL_EXPIRED_REASSEM = IP_STATUS_BASE + 14;
  263. {$EXTERNALSYM IP_TTL_EXPIRED_REASSEM}
  264. IP_PARAM_PROBLEM = IP_STATUS_BASE + 15;
  265. {$EXTERNALSYM IP_PARAM_PROBLEM}
  266. IP_SOURCE_QUENCH = IP_STATUS_BASE + 16;
  267. {$EXTERNALSYM IP_SOURCE_QUENCH}
  268. IP_OPTION_TOO_BIG = IP_STATUS_BASE + 17;
  269. {$EXTERNALSYM IP_OPTION_TOO_BIG}
  270. IP_BAD_DESTINATION = IP_STATUS_BASE + 18;
  271. {$EXTERNALSYM IP_BAD_DESTINATION}
  272. //
  273. // Variants of the above using IPv6 terminology, where different
  274. //
  275. IP_DEST_NO_ROUTE = IP_STATUS_BASE + 2;
  276. {$EXTERNALSYM IP_DEST_NO_ROUTE}
  277. IP_DEST_ADDR_UNREACHABLE = IP_STATUS_BASE + 3;
  278. {$EXTERNALSYM IP_DEST_ADDR_UNREACHABLE}
  279. IP_DEST_PROHIBITED = IP_STATUS_BASE + 4;
  280. {$EXTERNALSYM IP_DEST_PROHIBITED}
  281. //IP_DEST_PORT_UNREACHABLE = IP_STATUS_BASE + 5;
  282. //{$EXTERNALSYM IP_DEST_PORT_UNREACHABLE}
  283. IP_HOP_LIMIT_EXCEEDED = IP_STATUS_BASE + 13;
  284. {$EXTERNALSYM IP_HOP_LIMIT_EXCEEDED}
  285. IP_REASSEMBLY_TIME_EXCEEDED = IP_STATUS_BASE + 14;
  286. {$EXTERNALSYM IP_REASSEMBLY_TIME_EXCEEDED}
  287. IP_PARAMETER_PROBLEM = IP_STATUS_BASE + 15;
  288. {$EXTERNALSYM IP_PARAMETER_PROBLEM}
  289. //
  290. // IPv6-only status codes
  291. //
  292. IP_DEST_UNREACHABLE = IP_STATUS_BASE + 40;
  293. {$EXTERNALSYM IP_DEST_UNREACHABLE}
  294. IP_TIME_EXCEEDED = IP_STATUS_BASE + 41;
  295. {$EXTERNALSYM IP_TIME_EXCEEDED}
  296. IP_BAD_HEADER = IP_STATUS_BASE + 42;
  297. {$EXTERNALSYM IP_BAD_HEADER}
  298. IP_UNRECOGNIZED_NEXT_HEADER = IP_STATUS_BASE + 43;
  299. {$EXTERNALSYM IP_UNRECOGNIZED_NEXT_HEADER}
  300. IP_ICMP_ERROR = IP_STATUS_BASE + 44;
  301. {$EXTERNALSYM IP_ICMP_ERROR}
  302. IP_DEST_SCOPE_MISMATCH = IP_STATUS_BASE + 45;
  303. {$EXTERNALSYM IP_DEST_SCOPE_MISMATCH}
  304. //
  305. // The next group are status codes passed up on status indications to
  306. // transport layer protocols.
  307. //
  308. IP_ADDR_DELETED = IP_STATUS_BASE + 19;
  309. {$EXTERNALSYM IP_ADDR_DELETED}
  310. IP_SPEC_MTU_CHANGE = IP_STATUS_BASE + 20;
  311. {$EXTERNALSYM IP_SPEC_MTU_CHANGE}
  312. IP_MTU_CHANGE = IP_STATUS_BASE + 21;
  313. {$EXTERNALSYM IP_MTU_CHANGE}
  314. IP_UNLOAD = IP_STATUS_BASE + 22;
  315. {$EXTERNALSYM IP_UNLOAD}
  316. IP_ADDR_ADDED = IP_STATUS_BASE + 23;
  317. {$EXTERNALSYM IP_ADDR_ADDED}
  318. IP_MEDIA_CONNECT = IP_STATUS_BASE + 24;
  319. {$EXTERNALSYM IP_MEDIA_CONNECT}
  320. IP_MEDIA_DISCONNECT = IP_STATUS_BASE + 25;
  321. {$EXTERNALSYM IP_MEDIA_DISCONNECT}
  322. IP_BIND_ADAPTER = IP_STATUS_BASE + 26;
  323. {$EXTERNALSYM IP_BIND_ADAPTER}
  324. IP_UNBIND_ADAPTER = IP_STATUS_BASE + 27;
  325. {$EXTERNALSYM IP_UNBIND_ADAPTER}
  326. IP_DEVICE_DOES_NOT_EXIST = IP_STATUS_BASE + 28;
  327. {$EXTERNALSYM IP_DEVICE_DOES_NOT_EXIST}
  328. IP_DUPLICATE_ADDRESS = IP_STATUS_BASE + 29;
  329. {$EXTERNALSYM IP_DUPLICATE_ADDRESS}
  330. IP_INTERFACE_METRIC_CHANGE = IP_STATUS_BASE + 30;
  331. {$EXTERNALSYM IP_INTERFACE_METRIC_CHANGE}
  332. IP_RECONFIG_SECFLTR = IP_STATUS_BASE + 31;
  333. {$EXTERNALSYM IP_RECONFIG_SECFLTR}
  334. IP_NEGOTIATING_IPSEC = IP_STATUS_BASE + 32;
  335. {$EXTERNALSYM IP_NEGOTIATING_IPSEC}
  336. IP_INTERFACE_WOL_CAPABILITY_CHANGE = IP_STATUS_BASE + 33;
  337. {$EXTERNALSYM IP_INTERFACE_WOL_CAPABILITY_CHANGE}
  338. IP_DUPLICATE_IPADD = IP_STATUS_BASE + 34;
  339. {$EXTERNALSYM IP_DUPLICATE_IPADD}
  340. IP_GENERAL_FAILURE = IP_STATUS_BASE + 50;
  341. {$EXTERNALSYM IP_GENERAL_FAILURE}
  342. MAX_IP_STATUS = IP_GENERAL_FAILURE;
  343. {$EXTERNALSYM MAX_IP_STATUS}
  344. IP_PENDING = IP_STATUS_BASE + 255;
  345. {$EXTERNALSYM IP_PENDING}
  346. //
  347. // Values used in the IP header Flags field.
  348. //
  349. IP_FLAG_DF = $2; // Don't fragment this packet.
  350. {$EXTERNALSYM IP_FLAG_DF}
  351. //
  352. // Supported IP Option Types.
  353. //
  354. // These types define the options which may be used in the OptionsData field
  355. // of the ip_option_information structure. See RFC 791 for a complete
  356. // description of each.
  357. //
  358. IP_OPT_EOL = 0; // End of list option
  359. {$EXTERNALSYM IP_OPT_EOL}
  360. IP_OPT_NOP = 1; // No operation
  361. {$EXTERNALSYM IP_OPT_NOP}
  362. IP_OPT_SECURITY = $82; // Security option
  363. {$EXTERNALSYM IP_OPT_SECURITY}
  364. IP_OPT_LSRR = $83; // Loose source route
  365. {$EXTERNALSYM IP_OPT_LSRR}
  366. IP_OPT_SSRR = $89; // Strict source route
  367. {$EXTERNALSYM IP_OPT_SSRR}
  368. IP_OPT_RR = $7; // Record route
  369. {$EXTERNALSYM IP_OPT_RR}
  370. IP_OPT_TS = $44; // Timestamp
  371. {$EXTERNALSYM IP_OPT_TS}
  372. IP_OPT_SID = $88; // Stream ID (obsolete)
  373. {$EXTERNALSYM IP_OPT_SID}
  374. IP_OPT_ROUTER_ALERT = $94; // Router Alert Option
  375. {$EXTERNALSYM IP_OPT_ROUTER_ALERT}
  376. MAX_OPT_SIZE = 40; // Maximum length of IP options in bytes
  377. {$EXTERNALSYM MAX_OPT_SIZE}
  378. // Ioctls code exposed by Memphis tcpip stack.
  379. // For NT these ioctls are define in ntddip.h (private\inc)
  380. IOCTL_IP_RTCHANGE_NOTIFY_REQUEST = 101;
  381. {$EXTERNALSYM IOCTL_IP_RTCHANGE_NOTIFY_REQUEST}
  382. IOCTL_IP_ADDCHANGE_NOTIFY_REQUEST = 102;
  383. {$EXTERNALSYM IOCTL_IP_ADDCHANGE_NOTIFY_REQUEST}
  384. IOCTL_ARP_SEND_REQUEST = 103;
  385. {$EXTERNALSYM IOCTL_ARP_SEND_REQUEST}
  386. IOCTL_IP_INTERFACE_INFO = 104;
  387. {$EXTERNALSYM IOCTL_IP_INTERFACE_INFO}
  388. IOCTL_IP_GET_BEST_INTERFACE = 105;
  389. {$EXTERNALSYM IOCTL_IP_GET_BEST_INTERFACE}
  390. IOCTL_IP_UNIDIRECTIONAL_ADAPTER_ADDRESS = 106;
  391. {$EXTERNALSYM IOCTL_IP_UNIDIRECTIONAL_ADAPTER_ADDRESS}
  392. implementation
  393. end.