2 * Copyright (C) 2003 Juan Lang
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
18 #ifndef WINE_IPHLPAPI_H__
19 #define WINE_IPHLPAPI_H__
29 DWORD WINAPI
GetNumberOfInterfaces(PDWORD pdwNumIf
);
31 DWORD WINAPI
GetIfEntry(PMIB_IFROW pIfRow
);
33 DWORD WINAPI
GetIfTable(PMIB_IFTABLE pIfTable
, PULONG pdwSize
, BOOL bOrder
);
35 DWORD WINAPI
GetIpAddrTable(PMIB_IPADDRTABLE pIpAddrTable
, PULONG pdwSize
,
38 DWORD WINAPI
GetIpNetTable(PMIB_IPNETTABLE pIpNetTable
, PULONG pdwSize
,
41 DWORD WINAPI
GetIpForwardTable(PMIB_IPFORWARDTABLE pIpForwardTable
,
42 PULONG pdwSize
, BOOL bOrder
);
44 DWORD WINAPI
GetTcpTable(PMIB_TCPTABLE pTcpTable
, PDWORD pdwSize
, BOOL bOrder
);
46 DWORD WINAPI
GetUdpTable(PMIB_UDPTABLE pUdpTable
, PDWORD pdwSize
, BOOL bOrder
);
48 DWORD WINAPI
GetIpStatistics(PMIB_IPSTATS pStats
);
50 DWORD WINAPI
GetIpStatisticsEx(PMIB_IPSTATS pStats
, DWORD dwFamily
);
52 DWORD WINAPI
GetIcmpStatistics(PMIB_ICMP pStats
);
54 DWORD WINAPI
GetTcpStatistics(PMIB_TCPSTATS pStats
);
56 DWORD WINAPI
GetTcpStatisticsEx(PMIB_TCPSTATS pStats
, DWORD dwFamily
);
58 DWORD WINAPI
GetUdpStatistics(PMIB_UDPSTATS pStats
);
60 DWORD WINAPI
GetUdpStatisticsEx(PMIB_UDPSTATS pStats
, DWORD dwFamily
);
62 DWORD WINAPI
SetIfEntry(PMIB_IFROW pIfRow
);
64 DWORD WINAPI
CreateIpForwardEntry(PMIB_IPFORWARDROW pRoute
);
66 DWORD WINAPI
SetIpForwardEntry(PMIB_IPFORWARDROW pRoute
);
68 DWORD WINAPI
DeleteIpForwardEntry(PMIB_IPFORWARDROW pRoute
);
70 DWORD WINAPI
SetIpStatistics(PMIB_IPSTATS pIpStats
);
72 DWORD WINAPI
SetIpTTL(UINT nTTL
);
74 DWORD WINAPI
CreateIpNetEntry(PMIB_IPNETROW pArpEntry
);
76 DWORD WINAPI
SetIpNetEntry(PMIB_IPNETROW pArpEntry
);
78 DWORD WINAPI
DeleteIpNetEntry(PMIB_IPNETROW pArpEntry
);
80 DWORD WINAPI
FlushIpNetTable(DWORD dwIfIndex
);
82 DWORD WINAPI
CreateProxyArpEntry(DWORD dwAddress
, DWORD dwMask
,
85 DWORD WINAPI
DeleteProxyArpEntry(DWORD dwAddress
, DWORD dwMask
,
88 DWORD WINAPI
SetTcpEntry(PMIB_TCPROW pTcpRow
);
90 DWORD WINAPI
GetInterfaceInfo(PIP_INTERFACE_INFO pIfTable
, PULONG dwOutBufLen
);
92 DWORD WINAPI
GetUniDirectionalAdapterInfo(
93 PIP_UNIDIRECTIONAL_ADAPTER_ADDRESS pIPIfInfo
, PULONG dwOutBufLen
);
95 DWORD WINAPI
GetBestInterface(IPAddr dwDestAddr
, PDWORD pdwBestIfIndex
);
97 #ifdef __WINE_WINSOCKAPI_STDLIB_H
98 DWORD WINAPI
GetBestInterfaceEx(
100 struct WS_sockaddr
*pDestAddr
,
102 struct sockaddr
*pDestAddr
,
104 PDWORD pdwBestIfIndex
);
107 DWORD WINAPI
GetBestRoute(DWORD dwDestAddr
, DWORD dwSourceAddr
,
108 PMIB_IPFORWARDROW pBestRoute
);
110 DWORD WINAPI
NotifyAddrChange(PHANDLE Handle
, LPOVERLAPPED overlapped
);
112 DWORD WINAPI
NotifyRouteChange(PHANDLE Handle
, LPOVERLAPPED overlapped
);
114 DWORD WINAPI
GetAdapterIndex(IN LPWSTR AdapterName
, OUT PULONG IfIndex
);
116 DWORD WINAPI
AddIPAddress(IPAddr Address
, IPMask IpMask
, DWORD IfIndex
,
117 PULONG NTEContext
, PULONG NTEInstance
);
119 DWORD WINAPI
DeleteIPAddress(ULONG NTEContext
);
121 DWORD WINAPI
GetNetworkParams(PFIXED_INFO pFixedInfo
, PULONG pOutBufLen
);
123 DWORD WINAPI
GetAdaptersInfo(PIP_ADAPTER_INFO pAdapterInfo
, PULONG pOutBufLen
);
125 DWORD WINAPI
GetPerAdapterInfo(ULONG IfIndex
,
126 PIP_PER_ADAPTER_INFO pPerAdapterInfo
, PULONG pOutBufLen
);
128 DWORD WINAPI
IpReleaseAddress(PIP_ADAPTER_INDEX_MAP AdapterInfo
);
130 DWORD WINAPI
IpRenewAddress(PIP_ADAPTER_INDEX_MAP AdapterInfo
);
132 DWORD WINAPI
SendARP(IPAddr DestIP
, IPAddr SrcIP
, PULONG pMacAddr
,
135 BOOL WINAPI
GetRTTAndHopCount(IPAddr DestIpAddress
, PULONG HopCount
,
136 ULONG MaxHops
, PULONG RTT
);
138 DWORD WINAPI
GetFriendlyIfIndex(DWORD IfIndex
);
140 DWORD WINAPI
EnableRouter(HANDLE
* pHandle
, OVERLAPPED
* pOverlapped
);
142 DWORD WINAPI
UnenableRouter(OVERLAPPED
* pOverlapped
, LPDWORD lpdwEnableCount
);
145 ULONG WINAPI
GetAdaptersAddresses(ULONG family
, ULONG flags
, PVOID reserved
,
146 PIP_ADAPTER_ADDRESSES aa
, PULONG buflen
);
153 #endif /* WINE_IPHLPAPI_H__ */