Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
6a863965
Commit
6a863965
authored
Nov 03, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Use proper dllimports for iphlpapi functions.
parent
f6d80847
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
100 additions
and
157 deletions
+100
-157
iphlpapi_main.c
dlls/iphlpapi/iphlpapi_main.c
+1
-0
iphlpapi.h
include/iphlpapi.h
+69
-131
netioapi.h
include/netioapi.h
+30
-26
No files found.
dlls/iphlpapi/iphlpapi_main.c
View file @
6a863965
...
...
@@ -20,6 +20,7 @@
*/
#include <stdarg.h>
#define IPHLPAPI_DLL_LINKAGE
#include "windef.h"
#include "winbase.h"
#include "winreg.h"
...
...
include/iphlpapi.h
View file @
6a863965
...
...
@@ -27,6 +27,10 @@ extern "C" {
#include <iptypes.h>
#include <tcpestats.h>
#ifndef IPHLPAPI_DLL_LINKAGE
#define IPHLPAPI_DLL_LINKAGE DECLSPEC_IMPORT
#endif
#define NET_STRING_IPV4_ADDRESS 0x00000001
#define NET_STRING_IPV4_SERVICE 0x00000002
#define NET_STRING_IPV4_NETWORK 0x00000004
...
...
@@ -47,94 +51,49 @@ extern "C" {
#define NET_STRING_ANY_SERVICE (NET_STRING_NAMED_SERVICE|NET_STRING_IP_SERVICE)
#define NET_STRING_ANY_SERVICE_NO_SCOPE (NET_STRING_NAMED_SERVICE|NET_STRING_IP_SERVICE_NO_SCOPE)
DWORD
WINAPI
GetExtendedTcpTable
(
PVOID
pTcpTable
,
PDWORD
pdwSize
,
BOOL
bOrder
,
ULONG
ulAf
,
TCP_TABLE_CLASS
TableClass
,
ULONG
Reserved
);
DWORD
WINAPI
GetExtendedUdpTable
(
PVOID
pUdpTable
,
PDWORD
pdwSize
,
BOOL
bOrder
,
ULONG
ulAf
,
UDP_TABLE_CLASS
TableClass
,
ULONG
Reserved
);
DWORD
WINAPI
GetNumberOfInterfaces
(
PDWORD
pdwNumIf
);
DWORD
WINAPI
GetIfEntry
(
PMIB_IFROW
pIfRow
);
DWORD
WINAPI
GetIfTable
(
PMIB_IFTABLE
pIfTable
,
PULONG
pdwSize
,
BOOL
bOrder
);
DWORD
WINAPI
GetIpAddrTable
(
PMIB_IPADDRTABLE
pIpAddrTable
,
PULONG
pdwSize
,
BOOL
bOrder
);
DWORD
WINAPI
GetIpNetTable
(
PMIB_IPNETTABLE
pIpNetTable
,
PULONG
pdwSize
,
BOOL
bOrder
);
DWORD
WINAPI
GetIpForwardTable
(
PMIB_IPFORWARDTABLE
pIpForwardTable
,
PULONG
pdwSize
,
BOOL
bOrder
);
DWORD
WINAPI
GetTcpTable
(
PMIB_TCPTABLE
pTcpTable
,
PDWORD
pdwSize
,
BOOL
bOrder
);
DWORD
WINAPI
GetUdpTable
(
PMIB_UDPTABLE
pUdpTable
,
PDWORD
pdwSize
,
BOOL
bOrder
);
DWORD
WINAPI
GetUdp6Table
(
PMIB_UDP6TABLE
pUdpTable
,
PDWORD
pdwSize
,
BOOL
bOrder
);
DWORD
WINAPI
GetIpStatistics
(
PMIB_IPSTATS
pStats
);
DWORD
WINAPI
GetIpStatisticsEx
(
PMIB_IPSTATS
pStats
,
DWORD
dwFamily
);
DWORD
WINAPI
GetIcmpStatistics
(
PMIB_ICMP
pStats
);
DWORD
WINAPI
GetIcmpStatisticsEx
(
PMIB_ICMP_EX
pStats
,
DWORD
dwFamily
);
DWORD
WINAPI
GetTcpStatistics
(
PMIB_TCPSTATS
pStats
);
DWORD
WINAPI
GetTcpStatisticsEx
(
PMIB_TCPSTATS
pStats
,
DWORD
dwFamily
);
ULONG
WINAPI
GetPerTcpConnectionEStats
(
MIB_TCPROW
*
row
,
TCP_ESTATS_TYPE
stats
,
UCHAR
*
rw
,
ULONG
rw_version
,
ULONG
rw_size
,
UCHAR
*
ro_static
,
ULONG
ro_static_version
,
ULONG
ro_static_size
,
UCHAR
*
ro_dynamic
,
ULONG
ro_dynamic_version
,
ULONG
ro_dynamic_size
);
DWORD
WINAPI
GetUdpStatistics
(
PMIB_UDPSTATS
pStats
);
DWORD
WINAPI
GetUdpStatisticsEx
(
PMIB_UDPSTATS
pStats
,
DWORD
dwFamily
);
DWORD
WINAPI
SetIfEntry
(
PMIB_IFROW
pIfRow
);
DWORD
WINAPI
CreateIpForwardEntry
(
PMIB_IPFORWARDROW
pRoute
);
DWORD
WINAPI
SetIpForwardEntry
(
PMIB_IPFORWARDROW
pRoute
);
DWORD
WINAPI
DeleteIpForwardEntry
(
PMIB_IPFORWARDROW
pRoute
);
DWORD
WINAPI
SetIpStatistics
(
PMIB_IPSTATS
pIpStats
);
DWORD
WINAPI
SetPerTcpConnectionEStats
(
MIB_TCPROW
*
row
,
TCP_ESTATS_TYPE
state
,
BYTE
*
rw
,
ULONG
version
,
ULONG
size
,
ULONG
offset
);
DWORD
WINAPI
SetIpTTL
(
UINT
nTTL
);
DWORD
WINAPI
CreateIpNetEntry
(
PMIB_IPNETROW
pArpEntry
);
DWORD
WINAPI
SetIpNetEntry
(
PMIB_IPNETROW
pArpEntry
);
DWORD
WINAPI
DeleteIpNetEntry
(
PMIB_IPNETROW
pArpEntry
);
DWORD
WINAPI
FlushIpNetTable
(
DWORD
dwIfIndex
);
DWORD
WINAPI
CreateProxyArpEntry
(
DWORD
dwAddress
,
DWORD
dwMask
,
DWORD
dwIfIndex
);
DWORD
WINAPI
DeleteProxyArpEntry
(
DWORD
dwAddress
,
DWORD
dwMask
,
DWORD
dwIfIndex
);
DWORD
WINAPI
SetTcpEntry
(
PMIB_TCPROW
pTcpRow
);
DWORD
WINAPI
GetInterfaceInfo
(
PIP_INTERFACE_INFO
pIfTable
,
PULONG
dwOutBufLen
);
DWORD
WINAPI
GetUniDirectionalAdapterInfo
(
PIP_UNIDIRECTIONAL_ADAPTER_ADDRESS
pIPIfInfo
,
PULONG
dwOutBufLen
);
DWORD
WINAPI
GetBestInterface
(
IPAddr
dwDestAddr
,
PDWORD
pdwBestIfIndex
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
GetExtendedTcpTable
(
PVOID
pTcpTable
,
PDWORD
pdwSize
,
BOOL
bOrder
,
ULONG
ulAf
,
TCP_TABLE_CLASS
TableClass
,
ULONG
Reserved
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
GetExtendedUdpTable
(
PVOID
pUdpTable
,
PDWORD
pdwSize
,
BOOL
bOrder
,
ULONG
ulAf
,
UDP_TABLE_CLASS
TableClass
,
ULONG
Reserved
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
GetNumberOfInterfaces
(
PDWORD
pdwNumIf
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
GetIfEntry
(
PMIB_IFROW
pIfRow
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
GetIfTable
(
PMIB_IFTABLE
pIfTable
,
PULONG
pdwSize
,
BOOL
bOrder
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
GetIpAddrTable
(
PMIB_IPADDRTABLE
pIpAddrTable
,
PULONG
pdwSize
,
BOOL
bOrder
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
GetIpNetTable
(
PMIB_IPNETTABLE
pIpNetTable
,
PULONG
pdwSize
,
BOOL
bOrder
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
GetIpForwardTable
(
PMIB_IPFORWARDTABLE
pIpForwardTable
,
PULONG
pdwSize
,
BOOL
bOrder
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
GetTcpTable
(
PMIB_TCPTABLE
pTcpTable
,
PDWORD
pdwSize
,
BOOL
bOrder
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
GetUdpTable
(
PMIB_UDPTABLE
pUdpTable
,
PDWORD
pdwSize
,
BOOL
bOrder
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
GetUdp6Table
(
PMIB_UDP6TABLE
pUdpTable
,
PDWORD
pdwSize
,
BOOL
bOrder
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
GetIpStatistics
(
PMIB_IPSTATS
pStats
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
GetIpStatisticsEx
(
PMIB_IPSTATS
pStats
,
DWORD
dwFamily
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
GetIcmpStatistics
(
PMIB_ICMP
pStats
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
GetIcmpStatisticsEx
(
PMIB_ICMP_EX
pStats
,
DWORD
dwFamily
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
GetTcpStatistics
(
PMIB_TCPSTATS
pStats
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
GetTcpStatisticsEx
(
PMIB_TCPSTATS
pStats
,
DWORD
dwFamily
);
IPHLPAPI_DLL_LINKAGE
ULONG
WINAPI
GetPerTcpConnectionEStats
(
MIB_TCPROW
*
row
,
TCP_ESTATS_TYPE
stats
,
UCHAR
*
rw
,
ULONG
rw_version
,
ULONG
rw_size
,
UCHAR
*
ro_static
,
ULONG
ro_static_version
,
ULONG
ro_static_size
,
UCHAR
*
ro_dynamic
,
ULONG
ro_dynamic_version
,
ULONG
ro_dynamic_size
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
GetUdpStatistics
(
PMIB_UDPSTATS
pStats
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
GetUdpStatisticsEx
(
PMIB_UDPSTATS
pStats
,
DWORD
dwFamily
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
SetIfEntry
(
PMIB_IFROW
pIfRow
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
CreateIpForwardEntry
(
PMIB_IPFORWARDROW
pRoute
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
SetIpForwardEntry
(
PMIB_IPFORWARDROW
pRoute
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
DeleteIpForwardEntry
(
PMIB_IPFORWARDROW
pRoute
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
SetIpStatistics
(
PMIB_IPSTATS
pIpStats
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
SetPerTcpConnectionEStats
(
MIB_TCPROW
*
row
,
TCP_ESTATS_TYPE
state
,
BYTE
*
rw
,
ULONG
version
,
ULONG
size
,
ULONG
offset
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
SetIpTTL
(
UINT
nTTL
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
CreateIpNetEntry
(
PMIB_IPNETROW
pArpEntry
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
SetIpNetEntry
(
PMIB_IPNETROW
pArpEntry
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
DeleteIpNetEntry
(
PMIB_IPNETROW
pArpEntry
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
FlushIpNetTable
(
DWORD
dwIfIndex
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
CreateProxyArpEntry
(
DWORD
dwAddress
,
DWORD
dwMask
,
DWORD
dwIfIndex
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
DeleteProxyArpEntry
(
DWORD
dwAddress
,
DWORD
dwMask
,
DWORD
dwIfIndex
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
SetTcpEntry
(
PMIB_TCPROW
pTcpRow
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
GetInterfaceInfo
(
PIP_INTERFACE_INFO
pIfTable
,
PULONG
dwOutBufLen
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
GetUniDirectionalAdapterInfo
(
PIP_UNIDIRECTIONAL_ADAPTER_ADDRESS
pIPIfInfo
,
PULONG
dwOutBufLen
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
GetBestInterface
(
IPAddr
dwDestAddr
,
PDWORD
pdwBestIfIndex
);
#ifdef __WINE_WINSOCKAPI_STDLIB_H
DWORD
WINAPI
GetBestInterfaceEx
(
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
GetBestInterfaceEx
(
#ifdef USE_WS_PREFIX
struct
WS_sockaddr
*
pDestAddr
,
#else
...
...
@@ -143,55 +102,34 @@ DWORD WINAPI GetBestInterfaceEx(
PDWORD
pdwBestIfIndex
);
#endif
DWORD
WINAPI
GetBestRoute
(
DWORD
dwDestAddr
,
DWORD
dwSourceAddr
,
PMIB_IPFORWARDROW
pBestRoute
);
DWORD
WINAPI
NotifyAddrChange
(
PHANDLE
Handle
,
LPOVERLAPPED
overlapped
);
DWORD
WINAPI
NotifyRouteChange
(
PHANDLE
Handle
,
LPOVERLAPPED
overlapped
);
BOOL
WINAPI
CancelIPChangeNotify
(
LPOVERLAPPED
overlapped
);
DWORD
WINAPI
GetAdapterIndex
(
IN
LPWSTR
AdapterName
,
OUT
PULONG
IfIndex
);
DWORD
WINAPI
AddIPAddress
(
IPAddr
Address
,
IPMask
IpMask
,
DWORD
IfIndex
,
PULONG
NTEContext
,
PULONG
NTEInstance
);
DWORD
WINAPI
DeleteIPAddress
(
ULONG
NTEContext
);
DWORD
WINAPI
GetNetworkParams
(
PFIXED_INFO
pFixedInfo
,
PULONG
pOutBufLen
);
DWORD
WINAPI
GetAdaptersInfo
(
PIP_ADAPTER_INFO
pAdapterInfo
,
PULONG
pOutBufLen
);
DWORD
WINAPI
GetPerAdapterInfo
(
ULONG
IfIndex
,
PIP_PER_ADAPTER_INFO
pPerAdapterInfo
,
PULONG
pOutBufLen
);
DWORD
WINAPI
IpReleaseAddress
(
PIP_ADAPTER_INDEX_MAP
AdapterInfo
);
DWORD
WINAPI
IpRenewAddress
(
PIP_ADAPTER_INDEX_MAP
AdapterInfo
);
DWORD
WINAPI
SendARP
(
IPAddr
DestIP
,
IPAddr
SrcIP
,
PULONG
pMacAddr
,
PULONG
PhyAddrLen
);
BOOL
WINAPI
GetRTTAndHopCount
(
IPAddr
DestIpAddress
,
PULONG
HopCount
,
ULONG
MaxHops
,
PULONG
RTT
);
DWORD
WINAPI
GetFriendlyIfIndex
(
DWORD
IfIndex
);
DWORD
WINAPI
EnableRouter
(
HANDLE
*
pHandle
,
OVERLAPPED
*
pOverlapped
);
DWORD
WINAPI
UnenableRouter
(
OVERLAPPED
*
pOverlapped
,
LPDWORD
lpdwEnableCount
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
GetBestRoute
(
DWORD
dwDestAddr
,
DWORD
dwSourceAddr
,
PMIB_IPFORWARDROW
pBestRoute
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
NotifyAddrChange
(
PHANDLE
Handle
,
LPOVERLAPPED
overlapped
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
NotifyRouteChange
(
PHANDLE
Handle
,
LPOVERLAPPED
overlapped
);
IPHLPAPI_DLL_LINKAGE
BOOL
WINAPI
CancelIPChangeNotify
(
LPOVERLAPPED
overlapped
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
GetAdapterIndex
(
IN
LPWSTR
AdapterName
,
OUT
PULONG
IfIndex
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
AddIPAddress
(
IPAddr
Address
,
IPMask
IpMask
,
DWORD
IfIndex
,
PULONG
NTEContext
,
PULONG
NTEInstance
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
DeleteIPAddress
(
ULONG
NTEContext
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
GetNetworkParams
(
PFIXED_INFO
pFixedInfo
,
PULONG
pOutBufLen
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
GetAdaptersInfo
(
PIP_ADAPTER_INFO
pAdapterInfo
,
PULONG
pOutBufLen
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
GetPerAdapterInfo
(
ULONG
IfIndex
,
PIP_PER_ADAPTER_INFO
pPerAdapterInfo
,
PULONG
pOutBufLen
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
IpReleaseAddress
(
PIP_ADAPTER_INDEX_MAP
AdapterInfo
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
IpRenewAddress
(
PIP_ADAPTER_INDEX_MAP
AdapterInfo
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
SendARP
(
IPAddr
DestIP
,
IPAddr
SrcIP
,
PULONG
pMacAddr
,
PULONG
PhyAddrLen
);
IPHLPAPI_DLL_LINKAGE
BOOL
WINAPI
GetRTTAndHopCount
(
IPAddr
DestIpAddress
,
PULONG
HopCount
,
ULONG
MaxHops
,
PULONG
RTT
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
GetFriendlyIfIndex
(
DWORD
IfIndex
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
EnableRouter
(
HANDLE
*
pHandle
,
OVERLAPPED
*
pOverlapped
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
UnenableRouter
(
OVERLAPPED
*
pOverlapped
,
LPDWORD
lpdwEnableCount
);
#ifdef _WINSOCK2API_
ULONG
WINAPI
GetAdaptersAddresses
(
ULONG
family
,
ULONG
flags
,
PVOID
reserved
,
PIP_ADAPTER_ADDRESSES
aa
,
PULONG
buflen
);
IPHLPAPI_DLL_LINKAGE
ULONG
WINAPI
GetAdaptersAddresses
(
ULONG
family
,
ULONG
flags
,
PVOID
reserved
,
PIP_ADAPTER_ADDRESSES
aa
,
PULONG
buflen
);
#endif
DWORD
WINAPI
AllocateAndGetUdpTableFromStack
(
PMIB_UDPTABLE
*
ppUdpTable
,
BOOL
bOrder
,
HANDLE
heap
,
DWORD
flags
);
DWORD
WINAPI
AllocateAndGetTcpTableFromStack
(
PMIB_TCPTABLE
*
ppTcpTable
,
BOOL
bOrder
,
HANDLE
heap
,
DWORD
flags
);
DWORD
WINAPI
AllocateAndGetTcpExTableFromStack
(
VOID
**
ppTcpTable
,
BOOL
bOrder
,
HANDLE
heap
,
DWORD
flags
,
DWORD
family
);
DWORD
WINAPI
AllocateAndGetIpNetTableFromStack
(
PMIB_IPNETTABLE
*
ppIpNetTable
,
BOOL
bOrder
,
HANDLE
heap
,
DWORD
flags
);
DWORD
WINAPI
AllocateAndGetIpForwardTableFromStack
(
PMIB_IPFORWARDTABLE
*
ppIpForwardTable
,
BOOL
bOrder
,
HANDLE
heap
,
DWORD
flags
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
AllocateAndGetUdpTableFromStack
(
PMIB_UDPTABLE
*
ppUdpTable
,
BOOL
bOrder
,
HANDLE
heap
,
DWORD
flags
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
AllocateAndGetTcpTableFromStack
(
PMIB_TCPTABLE
*
ppTcpTable
,
BOOL
bOrder
,
HANDLE
heap
,
DWORD
flags
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
AllocateAndGetTcpExTableFromStack
(
VOID
**
ppTcpTable
,
BOOL
bOrder
,
HANDLE
heap
,
DWORD
flags
,
DWORD
family
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
AllocateAndGetIpNetTableFromStack
(
PMIB_IPNETTABLE
*
ppIpNetTable
,
BOOL
bOrder
,
HANDLE
heap
,
DWORD
flags
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
AllocateAndGetIpForwardTableFromStack
(
PMIB_IPFORWARDTABLE
*
ppIpForwardTable
,
BOOL
bOrder
,
HANDLE
heap
,
DWORD
flags
);
typedef
enum
NET_ADDRESS_FORMAT_
{
NET_ADDRESS_FORMAT_UNSPECIFIED
,
...
...
include/netioapi.h
View file @
6a863965
...
...
@@ -21,6 +21,10 @@
#include <ntddndis.h>
#ifndef IPHLPAPI_DLL_LINKAGE
#define IPHLPAPI_DLL_LINKAGE DECLSPEC_IMPORT
#endif
#ifndef ANY_SIZE
#define ANY_SIZE 1
#endif
...
...
@@ -238,31 +242,31 @@ typedef VOID (WINAPI *PUNICAST_IPADDRESS_CHANGE_CALLBACK)(PVOID, PMIB_UNICASTIPA
typedef
VOID
(
WINAPI
*
PIPFORWARD_CHANGE_CALLBACK
)(
VOID
*
,
MIB_IPFORWARD_ROW2
*
,
MIB_NOTIFICATION_TYPE
);
DWORD
WINAPI
ConvertInterfaceAliasToLuid
(
const
WCHAR
*
,
NET_LUID
*
);
DWORD
WINAPI
ConvertInterfaceGuidToLuid
(
const
GUID
*
,
NET_LUID
*
);
DWORD
WINAPI
ConvertInterfaceIndexToLuid
(
NET_IFINDEX
,
NET_LUID
*
);
DWORD
WINAPI
ConvertInterfaceLuidToAlias
(
const
NET_LUID
*
,
WCHAR
*
,
SIZE_T
);
DWORD
WINAPI
ConvertInterfaceLuidToGuid
(
const
NET_LUID
*
,
GUID
*
);
DWORD
WINAPI
ConvertInterfaceLuidToIndex
(
const
NET_LUID
*
,
NET_IFINDEX
*
);
DWORD
WINAPI
ConvertInterfaceLuidToNameA
(
const
NET_LUID
*
,
char
*
,
SIZE_T
);
DWORD
WINAPI
ConvertInterfaceLuidToNameW
(
const
NET_LUID
*
,
WCHAR
*
,
SIZE_T
);
DWORD
WINAPI
ConvertInterfaceNameToLuidA
(
const
char
*
,
NET_LUID
*
);
DWORD
WINAPI
ConvertInterfaceNameToLuidW
(
const
WCHAR
*
,
NET_LUID
*
);
DWORD
WINAPI
ConvertLengthToIpv4Mask
(
ULONG
,
ULONG
*
);
void
WINAPI
FreeMibTable
(
void
*
);
NET_IF_COMPARTMENT_ID
WINAPI
GetCurrentThreadCompartmentId
(
void
);
DWORD
WINAPI
GetIfEntry2
(
MIB_IF_ROW2
*
);
DWORD
WINAPI
GetIfEntry2Ex
(
MIB_IF_TABLE_LEVEL
,
MIB_IF_ROW2
*
);
DWORD
WINAPI
GetIfTable2
(
MIB_IF_TABLE2
**
);
DWORD
WINAPI
GetIfTable2Ex
(
MIB_IF_TABLE_LEVEL
,
MIB_IF_TABLE2
**
);
DWORD
WINAPI
GetIpForwardEntry2
(
MIB_IPFORWARD_ROW2
*
);
DWORD
WINAPI
GetIpForwardTable2
(
ADDRESS_FAMILY
,
MIB_IPFORWARD_TABLE2
**
);
DWORD
WINAPI
GetIpInterfaceTable
(
ADDRESS_FAMILY
,
MIB_IPINTERFACE_TABLE
**
);
DWORD
WINAPI
GetIpNetEntry2
(
MIB_IPNET_ROW2
*
);
DWORD
WINAPI
GetIpNetTable2
(
ADDRESS_FAMILY
,
MIB_IPNET_TABLE2
**
);
DWORD
WINAPI
GetUnicastIpAddressEntry
(
MIB_UNICASTIPADDRESS_ROW
*
);
DWORD
WINAPI
GetUnicastIpAddressTable
(
ADDRESS_FAMILY
,
MIB_UNICASTIPADDRESS_TABLE
**
);
PCHAR
WINAPI
if_indextoname
(
NET_IFINDEX
,
PCHAR
);
NET_IFINDEX
WINAPI
if_nametoindex
(
PCSTR
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
ConvertInterfaceAliasToLuid
(
const
WCHAR
*
,
NET_LUID
*
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
ConvertInterfaceGuidToLuid
(
const
GUID
*
,
NET_LUID
*
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
ConvertInterfaceIndexToLuid
(
NET_IFINDEX
,
NET_LUID
*
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
ConvertInterfaceLuidToAlias
(
const
NET_LUID
*
,
WCHAR
*
,
SIZE_T
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
ConvertInterfaceLuidToGuid
(
const
NET_LUID
*
,
GUID
*
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
ConvertInterfaceLuidToIndex
(
const
NET_LUID
*
,
NET_IFINDEX
*
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
ConvertInterfaceLuidToNameA
(
const
NET_LUID
*
,
char
*
,
SIZE_T
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
ConvertInterfaceLuidToNameW
(
const
NET_LUID
*
,
WCHAR
*
,
SIZE_T
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
ConvertInterfaceNameToLuidA
(
const
char
*
,
NET_LUID
*
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
ConvertInterfaceNameToLuidW
(
const
WCHAR
*
,
NET_LUID
*
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
ConvertLengthToIpv4Mask
(
ULONG
,
ULONG
*
);
IPHLPAPI_DLL_LINKAGE
void
WINAPI
FreeMibTable
(
void
*
);
IPHLPAPI_DLL_LINKAGE
NET_IF_COMPARTMENT_ID
WINAPI
GetCurrentThreadCompartmentId
(
void
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
GetIfEntry2
(
MIB_IF_ROW2
*
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
GetIfEntry2Ex
(
MIB_IF_TABLE_LEVEL
,
MIB_IF_ROW2
*
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
GetIfTable2
(
MIB_IF_TABLE2
**
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
GetIfTable2Ex
(
MIB_IF_TABLE_LEVEL
,
MIB_IF_TABLE2
**
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
GetIpForwardEntry2
(
MIB_IPFORWARD_ROW2
*
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
GetIpForwardTable2
(
ADDRESS_FAMILY
,
MIB_IPFORWARD_TABLE2
**
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
GetIpInterfaceTable
(
ADDRESS_FAMILY
,
MIB_IPINTERFACE_TABLE
**
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
GetIpNetEntry2
(
MIB_IPNET_ROW2
*
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
GetIpNetTable2
(
ADDRESS_FAMILY
,
MIB_IPNET_TABLE2
**
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
GetUnicastIpAddressEntry
(
MIB_UNICASTIPADDRESS_ROW
*
);
IPHLPAPI_DLL_LINKAGE
DWORD
WINAPI
GetUnicastIpAddressTable
(
ADDRESS_FAMILY
,
MIB_UNICASTIPADDRESS_TABLE
**
);
IPHLPAPI_DLL_LINKAGE
PCHAR
WINAPI
if_indextoname
(
NET_IFINDEX
,
PCHAR
);
IPHLPAPI_DLL_LINKAGE
NET_IFINDEX
WINAPI
if_nametoindex
(
PCSTR
);
#endif
/* __WINE_NETIOAPI_H */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment