source: Daodan/MinGW/include/iphlpapi.h@ 1089

Last change on this file since 1089 was 1046, checked in by alloc, 8 years ago

Daodan: Added Windows MinGW and build batch file

File size: 2.9 KB
RevLine 
[1046]1#ifndef _IPHLPAPI_H
2#define _IPHLPAPI_H
3#if __GNUC__ >=3
4#pragma GCC system_header
5#endif
6
7#include <iprtrmib.h>
8#include <ipexport.h>
9#include <iptypes.h>
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14#if (_WIN32_WINNT >= 0x0501)
15#define GAA_FLAG_SKIP_UNICAST 0x00000001
16#define GAA_FLAG_SKIP_ANYCAST 0x00000002
17#define GAA_FLAG_SKIP_MULTICAST 0x00000004
18#define GAA_FLAG_SKIP_DNS_SERVER 0x00000008
19#define GAA_FLAG_INCLUDE_PREFIX 0x00000010
20#define GAA_FLAG_SKIP_FRIENDLY_NAME 0x00000020
21#endif
22
23DWORD WINAPI AddIPAddress(IPAddr,IPMask,DWORD,PULONG,PULONG);
24DWORD WINAPI CreateIpForwardEntry(PMIB_IPFORWARDROW);
25DWORD WINAPI CreateIpNetEntry(PMIB_IPNETROW);
26DWORD WINAPI CreateProxyArpEntry(DWORD,DWORD,DWORD);
27DWORD WINAPI DeleteIPAddress(ULONG);
28DWORD WINAPI DeleteIpForwardEntry(PMIB_IPFORWARDROW);
29DWORD WINAPI DeleteIpNetEntry(PMIB_IPNETROW);
30DWORD WINAPI DeleteProxyArpEntry(DWORD,DWORD,DWORD);
31DWORD WINAPI EnableRouter(HANDLE*,OVERLAPPED*);
32DWORD WINAPI FlushIpNetTable(DWORD);
33#if (_WIN32_WINNT >= 0x0501 && defined(_WINSOCK2_H))
34ULONG WINAPI GetAdaptersAddresses(ULONG,ULONG,PVOID,PIP_ADAPTER_ADDRESSES,PULONG);
35#endif
36DWORD WINAPI GetAdapterIndex(LPWSTR,PULONG);
37DWORD WINAPI GetAdaptersInfo(PIP_ADAPTER_INFO,PULONG);
38DWORD WINAPI GetBestInterface(IPAddr,PDWORD);
39DWORD WINAPI GetBestRoute(DWORD,DWORD,PMIB_IPFORWARDROW);
40#if (_WIN32_WINNT >= 0x0501)
41DWORD WINAPI GetExtendedTcpTable (PVOID,PDWORD,BOOL,ULONG,TCP_TABLE_CLASS,ULONG);
42#endif
43DWORD WINAPI GetFriendlyIfIndex(DWORD);
44DWORD WINAPI GetIcmpStatistics(PMIB_ICMP);
45DWORD WINAPI GetIfEntry(PMIB_IFROW);
46DWORD WINAPI GetIfTable(PMIB_IFTABLE,PULONG,BOOL);
47DWORD WINAPI GetInterfaceInfo(PIP_INTERFACE_INFO,PULONG);
48DWORD WINAPI GetIpAddrTable(PMIB_IPADDRTABLE,PULONG,BOOL);
49DWORD WINAPI GetIpForwardTable(PMIB_IPFORWARDTABLE,PULONG,BOOL);
50DWORD WINAPI GetIpNetTable(PMIB_IPNETTABLE,PULONG,BOOL);
51DWORD WINAPI GetIpStatistics(PMIB_IPSTATS);
52DWORD WINAPI GetNetworkParams(PFIXED_INFO,PULONG);
53DWORD WINAPI GetNumberOfInterfaces(PDWORD);
54DWORD WINAPI GetPerAdapterInfo(ULONG,PIP_PER_ADAPTER_INFO, PULONG);
55BOOL WINAPI GetRTTAndHopCount(IPAddr,PULONG,ULONG,PULONG);
56DWORD WINAPI GetTcpStatistics(PMIB_TCPSTATS);
57DWORD WINAPI GetTcpTable(PMIB_TCPTABLE,PDWORD,BOOL);
58DWORD WINAPI GetUniDirectionalAdapterInfo(PIP_UNIDIRECTIONAL_ADAPTER_ADDRESS,PULONG);
59DWORD WINAPI GetUdpStatistics(PMIB_UDPSTATS);
60DWORD WINAPI GetUdpTable(PMIB_UDPTABLE,PDWORD,BOOL);
61DWORD WINAPI IpReleaseAddress(PIP_ADAPTER_INDEX_MAP);
62DWORD WINAPI IpRenewAddress(PIP_ADAPTER_INDEX_MAP);
63DWORD WINAPI NotifyAddrChange(PHANDLE,LPOVERLAPPED);
64DWORD WINAPI NotifyRouteChange(PHANDLE,LPOVERLAPPED);
65DWORD WINAPI SendARP(IPAddr,IPAddr,PULONG,PULONG);
66DWORD WINAPI SetIfEntry(PMIB_IFROW);
67DWORD WINAPI SetIpForwardEntry(PMIB_IPFORWARDROW);
68DWORD WINAPI SetIpNetEntry(PMIB_IPNETROW);
69DWORD WINAPI SetIpStatistics(PMIB_IPSTATS);
70DWORD WINAPI SetIpTTL(UINT);
71DWORD WINAPI SetTcpEntry(PMIB_TCPROW);
72DWORD WINAPI UnenableRouter(OVERLAPPED*, LPDWORD);
73
74#ifdef __cplusplus
75}
76#endif
77#endif /* _IPHLPAPI_H */
Note: See TracBrowser for help on using the repository browser.