1 #ifndef _IPHLPAPI_H 2 #define _IPHLPAPI_H 3 4 #ifdef __cplusplus 5 extern "C" { 6 #endif 7 8 #include <iprtrmib.h> 9 #include <ipexport.h> 10 #include <iptypes.h> 11 12 DWORD WINAPI AddIPAddress(IPAddr,IPMask,DWORD,PULONG,PULONG); 13 DWORD WINAPI CreateIpForwardEntry(PMIB_IPFORWARDROW); 14 DWORD WINAPI CreateIpNetEntry(PMIB_IPNETROW); 15 DWORD WINAPI CreateProxyArpEntry(DWORD,DWORD,DWORD); 16 DWORD WINAPI DeleteIPAddress(ULONG); 17 DWORD WINAPI DeleteIpForwardEntry(PMIB_IPFORWARDROW); 18 DWORD WINAPI DeleteIpNetEntry(PMIB_IPNETROW); 19 DWORD WINAPI DeleteProxyArpEntry(DWORD,DWORD,DWORD); 20 DWORD WINAPI EnableRouter(HANDLE*,OVERLAPPED*); 21 DWORD WINAPI FlushIpNetTable(DWORD); 22 DWORD WINAPI GetAdapterIndex(LPWSTR,PULONG); 23 #ifdef _WINSOCK2API_ 24 DWORD WINAPI GetAdaptersAddresses(ULONG,ULONG,PVOID,PIP_ADAPTER_ADDRESSES,PULONG); 25 #endif 26 DWORD WINAPI GetAdaptersInfo(PIP_ADAPTER_INFO,PULONG); 27 DWORD WINAPI GetBestInterface(IPAddr,PDWORD); 28 DWORD WINAPI GetBestRoute(DWORD,DWORD,PMIB_IPFORWARDROW); 29 DWORD WINAPI GetExtendedTcpTable(PVOID,PDWORD,BOOL,ULONG,TCP_TABLE_CLASS,ULONG); 30 DWORD WINAPI GetFriendlyIfIndex(DWORD); 31 DWORD WINAPI GetIcmpStatistics(PMIB_ICMP); 32 DWORD WINAPI GetIfEntry(PMIB_IFROW); 33 DWORD WINAPI GetIfTable(PMIB_IFTABLE,PULONG,BOOL); 34 DWORD WINAPI GetInterfaceInfo(PIP_INTERFACE_INFO,PULONG); 35 DWORD WINAPI GetIpAddrTable(PMIB_IPADDRTABLE,PULONG,BOOL); 36 DWORD WINAPI GetIpForwardTable(PMIB_IPFORWARDTABLE,PULONG,BOOL); 37 DWORD WINAPI GetIpNetTable(PMIB_IPNETTABLE,PULONG,BOOL); 38 DWORD WINAPI GetIpStatistics(PMIB_IPSTATS); 39 DWORD WINAPI GetIpStatisticsEx(PMIB_IPSTATS,DWORD); 40 DWORD WINAPI GetNetworkParams(PFIXED_INFO,PULONG); 41 DWORD WINAPI GetNumberOfInterfaces(PDWORD); 42 DWORD WINAPI GetOwnerModuleFromTcpEntry(PMIB_TCPROW_OWNER_MODULE,TCPIP_OWNER_MODULE_INFO_CLASS,PVOID,PDWORD); 43 DWORD WINAPI GetPerAdapterInfo(ULONG,PIP_PER_ADAPTER_INFO, PULONG); 44 BOOL WINAPI GetRTTAndHopCount(IPAddr,PULONG,ULONG,PULONG); 45 DWORD WINAPI GetTcpStatistics(PMIB_TCPSTATS); 46 DWORD WINAPI GetTcpTable(PMIB_TCPTABLE,PDWORD,BOOL); 47 DWORD WINAPI GetUniDirectionalAdapterInfo(PIP_UNIDIRECTIONAL_ADAPTER_ADDRESS,PULONG); 48 DWORD WINAPI GetUdpStatistics(PMIB_UDPSTATS); 49 DWORD WINAPI GetUdpTable(PMIB_UDPTABLE,PDWORD,BOOL); 50 DWORD WINAPI IpReleaseAddress(PIP_ADAPTER_INDEX_MAP); 51 DWORD WINAPI IpRenewAddress(PIP_ADAPTER_INDEX_MAP); 52 DWORD WINAPI NotifyAddrChange(PHANDLE,LPOVERLAPPED); 53 DWORD WINAPI NotifyRouteChange(PHANDLE,LPOVERLAPPED); 54 DWORD WINAPI SendARP(IPAddr,IPAddr,PULONG,PULONG); 55 DWORD WINAPI SetIfEntry(PMIB_IFROW); 56 DWORD WINAPI SetIpForwardEntry(PMIB_IPFORWARDROW); 57 DWORD WINAPI SetIpNetEntry(PMIB_IPNETROW); 58 DWORD WINAPI SetIpStatistics(PMIB_IPSTATS); 59 DWORD WINAPI SetIpTTL(UINT); 60 DWORD WINAPI SetTcpEntry(PMIB_TCPROW); 61 DWORD WINAPI UnenableRouter(OVERLAPPED*, LPDWORD); 62 63 #if (NTDDI_VERSION >= NTDDI_VISTA) 64 #include <netioapi.h> 65 #endif 66 67 #ifdef __cplusplus 68 } 69 #endif 70 71 #endif /* _IPHLPAPI_H */ 72