public interface IPHlpAPI extends Library
Modifier and Type | Interface and Description |
---|---|
static class |
IPHlpAPI.FIXED_INFO
The FIXED_INFO structure contains information that is the same across all the
interfaces on a computer.
|
static class |
IPHlpAPI.IP_ADDR_STRING
The IP_ADDR_STRING structure represents a node in a linked-list of IPv4
addresses.
|
static class |
IPHlpAPI.IP_ADDRESS_STRING
The IP_ADDRESS_STRING structure stores an IPv4 address in dotted decimal
notation.
|
static class |
IPHlpAPI.MIB_IF_ROW2
The MIB_IF_ROW2 structure stores information about a particular interface.
|
static class |
IPHlpAPI.MIB_IFROW
The MIB_IFROW structure stores information about a particular interface.
|
static class |
IPHlpAPI.MIB_TCPSTATS
The MIB_TCPSTATS structure contains statistics for the TCP protocol running
on the local computer.
|
static class |
IPHlpAPI.MIB_UDPSTATS
The MIB_UDPSTATS structure contains statistics for the User Datagram Protocol
(UDP) running on the local computer.
|
Library.Handler
Modifier and Type | Field and Description |
---|---|
static int |
AF_BTH |
static int |
AF_INET |
static int |
AF_INET6 |
static int |
AF_IPX |
static int |
AF_IRDA |
static int |
AF_NETBIOS |
static int |
AF_UNSPEC |
static int |
IF_MAX_PHYS_ADDRESS_LENGTH |
static int |
IF_MAX_STRING_SIZE |
static IPHlpAPI |
INSTANCE |
static int |
MAX_DOMAIN_NAME_LEN |
static int |
MAX_HOSTNAME_LEN |
static int |
MAX_INTERFACE_NAME_LEN |
static int |
MAX_SCOPE_ID_LEN |
static int |
MAXLEN_IFDESCR |
static int |
MAXLEN_PHYSADDR |
OPTION_ALLOW_OBJECTS, OPTION_CALLING_CONVENTION, OPTION_CLASSLOADER, OPTION_FUNCTION_MAPPER, OPTION_INVOCATION_MAPPER, OPTION_OPEN_FLAGS, OPTION_STRING_ENCODING, OPTION_STRUCTURE_ALIGNMENT, OPTION_TYPE_MAPPER
Modifier and Type | Method and Description |
---|---|
int |
GetIfEntry(IPHlpAPI.MIB_IFROW pIfRow)
The GetIfEntry function retrieves information for the specified interface on
the local computer.
|
int |
GetIfEntry2(IPHlpAPI.MIB_IF_ROW2 pIfRow2)
The GetIfEntry2 function retrieves information for the specified interface on
the local computer.
|
int |
GetNetworkParams(Pointer pFixedInfo,
IntByReference pOutBufLen)
The GetNetworkParams function retrieves network parameters for the local
computer.
|
int |
GetTcpStatistics(IPHlpAPI.MIB_TCPSTATS Statistics)
The GetTcpStatistics function retrieves the TCP statistics for the local
computer.
|
int |
GetTcpStatisticsEx(IPHlpAPI.MIB_TCPSTATS Statistics,
int Family)
The GetTcpStatisticsEx function retrieves the Transmission Control Protocol
(TCP) statistics for the current computer.
|
int |
GetUdpStatistics(IPHlpAPI.MIB_UDPSTATS Statistics)
The GetUdpStatistics function retrieves the User Datagram Protocol (UDP)
statistics for the local computer.
|
int |
GetUdpStatisticsEx(IPHlpAPI.MIB_UDPSTATS Statistics,
int Family)
The GetUdpStatisticsEx function retrieves the User Datagram Protocol (UDP)
statistics for the current computer.
|
static final IPHlpAPI INSTANCE
static final int IF_MAX_STRING_SIZE
static final int IF_MAX_PHYS_ADDRESS_LENGTH
static final int MAX_INTERFACE_NAME_LEN
static final int MAXLEN_IFDESCR
static final int MAXLEN_PHYSADDR
static final int MAX_HOSTNAME_LEN
static final int MAX_DOMAIN_NAME_LEN
static final int MAX_SCOPE_ID_LEN
static final int AF_UNSPEC
static final int AF_INET
static final int AF_IPX
static final int AF_NETBIOS
static final int AF_INET6
static final int AF_IRDA
static final int AF_BTH
int GetIfEntry(IPHlpAPI.MIB_IFROW pIfRow)
The dwIndex
member in the IPHlpAPI.MIB_IFROW
structure pointed to by
the pIfRow parameter must be initialized to a valid network interface index
retrieved by a previous call to the GetIfTable, GetIfTable2, or GetIfTable2Ex
function. The GetIfEntry function will fail if the dwIndex member of the
IPHlpAPI.MIB_IFROW
pointed to by the pIfRow parameter does not match an
existing interface index on the local computer.
pIfRow
- A pointer to a MIB_IFROW structure that, on successful return,
receives information for an interface on the local computer. On
input, set the dwIndex member of IPHlpAPI.MIB_IFROW
to the index of
the interface for which to retrieve information.WinError.NO_ERROR
.int GetIfEntry2(IPHlpAPI.MIB_IF_ROW2 pIfRow2)
On input, at least one of the following members in the IPHlpAPI.MIB_IF_ROW2
structure passed in the Row parameter must be initialized: InterfaceLuid or
InterfaceIndex. The fields are used in the order listed above. So if the
InterfaceLuid is specified, then this member is used to determine the
interface. If no value was set for the InterfaceLuid member (the value of
this member was set to zero), then the InterfaceIndex member is next used to
determine the interface. On output, the remaining fields of the
IPHlpAPI.MIB_IF_ROW2
structure pointed to by the Row parameter are filled in.
pIfRow2
- A pointer to a IPHlpAPI.MIB_IF_ROW2
structure that, on successful
return, receives information for an interface on the local
computer. On input, the InterfaceLuid or the InterfaceIndex member
of the IPHlpAPI.MIB_IF_ROW2
must be set to the interface for which
to retrieve information.WinError.NO_ERROR
.int GetNetworkParams(Pointer pFixedInfo, IntByReference pOutBufLen)
pFixedInfo
- A pointer to a buffer that contains a IPHlpAPI.FIXED_INFO
structure
that receives the network parameters for the local computer, if
the function was successful. This buffer must be allocated by the
caller prior to calling the GetNetworkParams function.pOutBufLen
- A pointer to a ULONG variable that specifies the size of the
IPHlpAPI.FIXED_INFO
structure. If this size is insufficient to hold
the information, GetNetworkParams fills in this variable with the
required size, and returns an error code of
WinError.ERROR_BUFFER_OVERFLOW
.WinError.ERROR_SUCCESS
.int GetTcpStatistics(IPHlpAPI.MIB_TCPSTATS Statistics)
Statistics
- A IPHlpAPI.MIB_TCPSTATS
structure that receives the TCP statistics
for the local computer.WinError.NO_ERROR
.int GetTcpStatisticsEx(IPHlpAPI.MIB_TCPSTATS Statistics, int Family)
GetTcpStatistics(com.sun.jna.platform.win32.IPHlpAPI.MIB_TCPSTATS)
function in that
GetTcpStatisticsEx also supports the Internet Protocol version 6 (IPv6)
protocol family.Statistics
- A IPHlpAPI.MIB_TCPSTATS
structure that receives the TCP statistics
for the local computer.Family
- The protocol family for which to retrieve statistics. This
parameter must be AF_INET
or AF_INET6
.WinError.NO_ERROR
.int GetUdpStatistics(IPHlpAPI.MIB_UDPSTATS Statistics)
Statistics
- A IPHlpAPI.MIB_UDPSTATS
structure that receives the UDP statistics
for the local computer.WinError.NO_ERROR
.int GetUdpStatisticsEx(IPHlpAPI.MIB_UDPSTATS Statistics, int Family)
GetUdpStatistics(com.sun.jna.platform.win32.IPHlpAPI.MIB_UDPSTATS)
function in that GetUdpStatisticsEx also
supports the Internet Protocol version 6 (IPv6) protocol family.Statistics
- A IPHlpAPI.MIB_UDPSTATS
structure that receives the UDP statistics
for the local computer.Family
- The protocol family for which to retrieve statistics. This
parameter must be AF_INET
or AF_INET6
.WinError.NO_ERROR
.