1 | /* WINE iphlpapi.h
|
---|
2 | * Copyright (C) 2003 Juan Lang
|
---|
3 | *
|
---|
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.
|
---|
8 | *
|
---|
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.
|
---|
13 | *
|
---|
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
|
---|
17 | */
|
---|
18 |
|
---|
19 | /*
|
---|
20 | * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
21 | * other than GPL or LGPL is available it will apply instead, Sun elects to use only
|
---|
22 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
23 | * a choice of LGPL license versions is made available with the language indicating
|
---|
24 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
25 | * of the LGPL is applied is otherwise unspecified.
|
---|
26 | */
|
---|
27 |
|
---|
28 | #ifndef WINE_IPHLPAPI_H__
|
---|
29 | #define WINE_IPHLPAPI_H__
|
---|
30 |
|
---|
31 | #ifdef __cplusplus
|
---|
32 | extern "C" {
|
---|
33 | #endif
|
---|
34 |
|
---|
35 | #include <iprtrmib.h>
|
---|
36 | #include <ipexport.h>
|
---|
37 | #include <iptypes.h>
|
---|
38 |
|
---|
39 | DWORD WINAPI GetNumberOfInterfaces(PDWORD pdwNumIf);
|
---|
40 |
|
---|
41 | DWORD WINAPI GetIfEntry(PMIB_IFROW pIfRow);
|
---|
42 |
|
---|
43 | DWORD WINAPI GetIfTable(PMIB_IFTABLE pIfTable, PULONG pdwSize, BOOL bOrder);
|
---|
44 |
|
---|
45 | DWORD WINAPI GetIpAddrTable(PMIB_IPADDRTABLE pIpAddrTable, PULONG pdwSize,
|
---|
46 | BOOL bOrder);
|
---|
47 |
|
---|
48 | DWORD WINAPI GetIpNetTable(PMIB_IPNETTABLE pIpNetTable, PULONG pdwSize,
|
---|
49 | BOOL bOrder);
|
---|
50 |
|
---|
51 | DWORD WINAPI GetIpForwardTable(PMIB_IPFORWARDTABLE pIpForwardTable,
|
---|
52 | PULONG pdwSize, BOOL bOrder);
|
---|
53 |
|
---|
54 | DWORD WINAPI GetTcpTable(PMIB_TCPTABLE pTcpTable, PDWORD pdwSize, BOOL bOrder);
|
---|
55 |
|
---|
56 | DWORD WINAPI GetUdpTable(PMIB_UDPTABLE pUdpTable, PDWORD pdwSize, BOOL bOrder);
|
---|
57 |
|
---|
58 | DWORD WINAPI GetIpStatistics(PMIB_IPSTATS pStats);
|
---|
59 |
|
---|
60 | DWORD WINAPI GetIpStatisticsEx(PMIB_IPSTATS pStats, DWORD dwFamily);
|
---|
61 |
|
---|
62 | DWORD WINAPI GetIcmpStatistics(PMIB_ICMP pStats);
|
---|
63 |
|
---|
64 | DWORD WINAPI GetTcpStatistics(PMIB_TCPSTATS pStats);
|
---|
65 |
|
---|
66 | DWORD WINAPI GetTcpStatisticsEx(PMIB_TCPSTATS pStats, DWORD dwFamily);
|
---|
67 |
|
---|
68 | DWORD WINAPI GetUdpStatistics(PMIB_UDPSTATS pStats);
|
---|
69 |
|
---|
70 | DWORD WINAPI GetUdpStatisticsEx(PMIB_UDPSTATS pStats, DWORD dwFamily);
|
---|
71 |
|
---|
72 | DWORD WINAPI SetIfEntry(PMIB_IFROW pIfRow);
|
---|
73 |
|
---|
74 | DWORD WINAPI CreateIpForwardEntry(PMIB_IPFORWARDROW pRoute);
|
---|
75 |
|
---|
76 | DWORD WINAPI SetIpForwardEntry(PMIB_IPFORWARDROW pRoute);
|
---|
77 |
|
---|
78 | DWORD WINAPI DeleteIpForwardEntry(PMIB_IPFORWARDROW pRoute);
|
---|
79 |
|
---|
80 | DWORD WINAPI SetIpStatistics(PMIB_IPSTATS pIpStats);
|
---|
81 |
|
---|
82 | DWORD WINAPI SetIpTTL(UINT nTTL);
|
---|
83 |
|
---|
84 | DWORD WINAPI CreateIpNetEntry(PMIB_IPNETROW pArpEntry);
|
---|
85 |
|
---|
86 | DWORD WINAPI SetIpNetEntry(PMIB_IPNETROW pArpEntry);
|
---|
87 |
|
---|
88 | DWORD WINAPI DeleteIpNetEntry(PMIB_IPNETROW pArpEntry);
|
---|
89 |
|
---|
90 | DWORD WINAPI FlushIpNetTable(DWORD dwIfIndex);
|
---|
91 |
|
---|
92 | DWORD WINAPI CreateProxyArpEntry(DWORD dwAddress, DWORD dwMask,
|
---|
93 | DWORD dwIfIndex);
|
---|
94 |
|
---|
95 | DWORD WINAPI DeleteProxyArpEntry(DWORD dwAddress, DWORD dwMask,
|
---|
96 | DWORD dwIfIndex);
|
---|
97 |
|
---|
98 | DWORD WINAPI SetTcpEntry(PMIB_TCPROW pTcpRow);
|
---|
99 |
|
---|
100 | DWORD WINAPI GetInterfaceInfo(PIP_INTERFACE_INFO pIfTable, PULONG dwOutBufLen);
|
---|
101 |
|
---|
102 | DWORD WINAPI GetUniDirectionalAdapterInfo(
|
---|
103 | PIP_UNIDIRECTIONAL_ADAPTER_ADDRESS pIPIfInfo, PULONG dwOutBufLen);
|
---|
104 |
|
---|
105 | DWORD WINAPI GetBestInterface(IPAddr dwDestAddr, PDWORD pdwBestIfIndex);
|
---|
106 |
|
---|
107 | #ifdef __WINE_WINSOCKAPI_STDLIB_H
|
---|
108 | DWORD WINAPI GetBestInterfaceEx(
|
---|
109 | #ifdef USE_WS_PREFIX
|
---|
110 | struct WS_sockaddr *pDestAddr,
|
---|
111 | #else
|
---|
112 | struct sockaddr *pDestAddr,
|
---|
113 | #endif
|
---|
114 | PDWORD pdwBestIfIndex);
|
---|
115 | #endif
|
---|
116 |
|
---|
117 | DWORD WINAPI GetBestRoute(DWORD dwDestAddr, DWORD dwSourceAddr,
|
---|
118 | PMIB_IPFORWARDROW pBestRoute);
|
---|
119 |
|
---|
120 | DWORD WINAPI NotifyAddrChange(PHANDLE Handle, LPOVERLAPPED overlapped);
|
---|
121 |
|
---|
122 | DWORD WINAPI NotifyRouteChange(PHANDLE Handle, LPOVERLAPPED overlapped);
|
---|
123 |
|
---|
124 | DWORD WINAPI GetAdapterIndex(IN LPWSTR AdapterName, OUT PULONG IfIndex);
|
---|
125 |
|
---|
126 | DWORD WINAPI AddIPAddress(IPAddr Address, IPMask IpMask, DWORD IfIndex,
|
---|
127 | PULONG NTEContext, PULONG NTEInstance);
|
---|
128 |
|
---|
129 | DWORD WINAPI DeleteIPAddress(ULONG NTEContext);
|
---|
130 |
|
---|
131 | DWORD WINAPI GetNetworkParams(PFIXED_INFO pFixedInfo, PULONG pOutBufLen);
|
---|
132 |
|
---|
133 | DWORD WINAPI GetAdaptersInfo(PIP_ADAPTER_INFO pAdapterInfo, PULONG pOutBufLen);
|
---|
134 |
|
---|
135 | DWORD WINAPI GetPerAdapterInfo(ULONG IfIndex,
|
---|
136 | PIP_PER_ADAPTER_INFO pPerAdapterInfo, PULONG pOutBufLen);
|
---|
137 |
|
---|
138 | DWORD WINAPI IpReleaseAddress(PIP_ADAPTER_INDEX_MAP AdapterInfo);
|
---|
139 |
|
---|
140 | DWORD WINAPI IpRenewAddress(PIP_ADAPTER_INDEX_MAP AdapterInfo);
|
---|
141 |
|
---|
142 | DWORD WINAPI SendARP(IPAddr DestIP, IPAddr SrcIP, PULONG pMacAddr,
|
---|
143 | PULONG PhyAddrLen);
|
---|
144 |
|
---|
145 | BOOL WINAPI GetRTTAndHopCount(IPAddr DestIpAddress, PULONG HopCount,
|
---|
146 | ULONG MaxHops, PULONG RTT);
|
---|
147 |
|
---|
148 | DWORD WINAPI GetFriendlyIfIndex(DWORD IfIndex);
|
---|
149 |
|
---|
150 | DWORD WINAPI EnableRouter(HANDLE* pHandle, OVERLAPPED* pOverlapped);
|
---|
151 |
|
---|
152 | DWORD WINAPI UnenableRouter(OVERLAPPED* pOverlapped, LPDWORD lpdwEnableCount);
|
---|
153 |
|
---|
154 | #ifdef __cplusplus
|
---|
155 | }
|
---|
156 | #endif
|
---|
157 |
|
---|
158 | #endif /* WINE_IPHLPAPI_H__ */
|
---|