Schnittstelle IPHlpAPI
- Alle Superschnittstellen:
Library
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Modifizierer und TypSchnittstelleBeschreibungstatic class
The FIXED_INFO structure contains information that is the same across all the interfaces on a computer.static class
The IP_ADDR_STRING structure represents a node in a linked-list of IPv4 addresses.static class
The IP_ADDRESS_STRING structure stores an IPv4 address in dotted decimal notation.static class
The MIB_IF_ROW2 structure stores information about a particular interface.static class
The MIB_IFROW structure stores information about a particular interface.static interface
Enumerates different possible TCP states.static class
Contains information that describes an IPv6 TCP connection.static class
Contains a table of IPv6 TCP connections on the local computer.static class
Contains information that describes an IPv4 TCP connection.static class
The MIB_TCPSTATS structure contains statistics for the TCP protocol running on the local computer.static class
Contains a table of IPv4 TCP connections on the local computer.static class
Contains information that describes an IPv6 UDP connection.static class
Contains a table of IPv6 UDP connections on the local computer.static class
Contains information that describes an IPv6 UDP connection.static class
The MIB_UDPSTATS structure contains statistics for the User Datagram Protocol (UDP) running on the local computer.static class
Contains a table of IPv6 UDP connections on the local computer.static interface
Defines the set of values used to indicate the type of table returned by calls toGetExtendedTcpTable(com.sun.jna.Pointer, com.sun.jna.ptr.IntByReference, boolean, int, int, int)
static interface
Defines the set of values used to indicate the type of table returned by calls toGetExtendedUdpTable(com.sun.jna.Pointer, com.sun.jna.ptr.IntByReference, boolean, int, int, int)
.Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen com.sun.jna.Library
Library.Handler
-
Feldübersicht
Modifizierer und TypFeldBeschreibungstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final IPHlpAPI
static final int
static final int
static final int
static final int
static final int
static final int
Von Schnittstelle geerbte Felder com.sun.jna.Library
OPTION_ALLOW_OBJECTS, OPTION_CALLING_CONVENTION, OPTION_CLASSLOADER, OPTION_FUNCTION_MAPPER, OPTION_INVOCATION_MAPPER, OPTION_OPEN_FLAGS, OPTION_STRING_ENCODING, OPTION_STRUCTURE_ALIGNMENT, OPTION_SYMBOL_PROVIDER, OPTION_TYPE_MAPPER
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungint
GetExtendedTcpTable
(Pointer pTcpTable, IntByReference pdwSize, boolean bOrder, int ulAf, int TableClass, int Reserved) Retrieves a table that contains a list of TCP endpoints available to the application.int
GetExtendedUdpTable
(Pointer pUdpTable, IntByReference pdwSize, boolean bOrder, int ulAf, int TableClass, int Reserved) Retrieves a table that contains a list of UDP endpoints available to the application.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.
-
Felddetails
-
INSTANCE
-
IF_MAX_STRING_SIZE
static final int IF_MAX_STRING_SIZE- Siehe auch:
-
IF_MAX_PHYS_ADDRESS_LENGTH
static final int IF_MAX_PHYS_ADDRESS_LENGTH- Siehe auch:
-
MAX_INTERFACE_NAME_LEN
static final int MAX_INTERFACE_NAME_LEN- Siehe auch:
-
MAXLEN_IFDESCR
static final int MAXLEN_IFDESCR- Siehe auch:
-
MAXLEN_PHYSADDR
static final int MAXLEN_PHYSADDR- Siehe auch:
-
MAX_HOSTNAME_LEN
static final int MAX_HOSTNAME_LEN- Siehe auch:
-
MAX_DOMAIN_NAME_LEN
static final int MAX_DOMAIN_NAME_LEN- Siehe auch:
-
MAX_SCOPE_ID_LEN
static final int MAX_SCOPE_ID_LEN- Siehe auch:
-
AF_UNSPEC
static final int AF_UNSPEC- Siehe auch:
-
AF_INET
static final int AF_INET- Siehe auch:
-
AF_IPX
static final int AF_IPX- Siehe auch:
-
AF_NETBIOS
static final int AF_NETBIOS- Siehe auch:
-
AF_INET6
static final int AF_INET6- Siehe auch:
-
AF_IRDA
static final int AF_IRDA- Siehe auch:
-
AF_BTH
static final int AF_BTH- Siehe auch:
-
-
Methodendetails
-
GetIfEntry
The GetIfEntry function retrieves information for the specified interface on the local computer.The
dwIndex
member in theIPHlpAPI.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 theIPHlpAPI.MIB_IFROW
pointed to by the pIfRow parameter does not match an existing interface index on the local computer.- Parameter:
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 ofIPHlpAPI.MIB_IFROW
to the index of the interface for which to retrieve information.- Gibt zurück:
- If the function succeeds, the return value is
WinError.NO_ERROR
.
-
GetIfEntry2
The GetIfEntry2 function retrieves information for the specified interface on the local computer.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 theIPHlpAPI.MIB_IF_ROW2
structure pointed to by the Row parameter are filled in.- Parameter:
pIfRow2
- A pointer to aIPHlpAPI.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 theIPHlpAPI.MIB_IF_ROW2
must be set to the interface for which to retrieve information.- Gibt zurück:
- If the function succeeds, the return value is
WinError.NO_ERROR
.
-
GetNetworkParams
The GetNetworkParams function retrieves network parameters for the local computer.- Parameter:
pFixedInfo
- A pointer to a buffer that contains aIPHlpAPI.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 theIPHlpAPI.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 ofWinError.ERROR_BUFFER_OVERFLOW
.- Gibt zurück:
- If the function succeeds, the return value is
WinError.ERROR_SUCCESS
.
-
GetTcpStatistics
The GetTcpStatistics function retrieves the TCP statistics for the local computer.- Parameter:
Statistics
- AIPHlpAPI.MIB_TCPSTATS
structure that receives the TCP statistics for the local computer.- Gibt zurück:
- If the function succeeds, the return value is
WinError.NO_ERROR
.
-
GetTcpStatisticsEx
The GetTcpStatisticsEx function retrieves the Transmission Control Protocol (TCP) statistics for the current computer. The GetTcpStatisticsEx function differs from theGetTcpStatistics(com.sun.jna.platform.win32.IPHlpAPI.MIB_TCPSTATS)
function in that GetTcpStatisticsEx also supports the Internet Protocol version 6 (IPv6) protocol family.- Parameter:
Statistics
- AIPHlpAPI.MIB_TCPSTATS
structure that receives the TCP statistics for the local computer.Family
- The protocol family for which to retrieve statistics. This parameter must beAF_INET
orAF_INET6
.- Gibt zurück:
- If the function succeeds, the return value is
WinError.NO_ERROR
.
-
GetUdpStatistics
The GetUdpStatistics function retrieves the User Datagram Protocol (UDP) statistics for the local computer.- Parameter:
Statistics
- AIPHlpAPI.MIB_UDPSTATS
structure that receives the UDP statistics for the local computer.- Gibt zurück:
- If the function succeeds, the return value is
WinError.NO_ERROR
.
-
GetUdpStatisticsEx
The GetUdpStatisticsEx function retrieves the User Datagram Protocol (UDP) statistics for the current computer. The GetUdpStatisticsEx function differs from theGetUdpStatistics(com.sun.jna.platform.win32.IPHlpAPI.MIB_UDPSTATS)
function in that GetUdpStatisticsEx also supports the Internet Protocol version 6 (IPv6) protocol family.- Parameter:
Statistics
- AIPHlpAPI.MIB_UDPSTATS
structure that receives the UDP statistics for the local computer.Family
- The protocol family for which to retrieve statistics. This parameter must beAF_INET
orAF_INET6
.- Gibt zurück:
- If the function succeeds, the return value is
WinError.NO_ERROR
.
-
GetExtendedTcpTable
int GetExtendedTcpTable(Pointer pTcpTable, IntByReference pdwSize, boolean bOrder, int ulAf, int TableClass, int Reserved) Retrieves a table that contains a list of TCP endpoints available to the application.- Parameter:
pTcpTable
- A pointer to the table structure that contains the filtered TCP endpoints available to the application.pdwSize
- The estimated size of the structure returned in pTcpTable, in bytes. If this value is set too small,ERROR_INSUFFICIENT_BUFFER
is returned by this function, and this field will contain the correct size of the structure.bOrder
- A value that specifies whether the TCP connection table should be sorted. If this parameter is set to TRUE, the TCP endpoints in the table are sorted in ascending order, starting with the lowest local IP address. If this parameter is set to FALSE, the TCP endpoints in the table appear in the order in which they were retrieved. The following values are compared (as listed) when ordering the TCP endpoints: Local IP address, Local scope ID (applicable when the ulAf parameter is set to AF_INET6), Local TCP port, Remote IP address, Remote scope ID (applicable when the ulAf parameter is set to AF_INET6), Remote TCP port.ulAf
- The version of IP used by the TCP endpoints.TableClass
- The type of the TCP table structure to retrieve. This parameter can be one of the values from theIPHlpAPI.TCP_TABLE_CLASS
enumeration.Reserved
- Reserved. This value must be zero.- Gibt zurück:
- If the function succeeds, the return value is
NO_ERROR
. If the function fails, the return value is an error code.
-
GetExtendedUdpTable
int GetExtendedUdpTable(Pointer pUdpTable, IntByReference pdwSize, boolean bOrder, int ulAf, int TableClass, int Reserved) Retrieves a table that contains a list of UDP endpoints available to the application.- Parameter:
pUdpTable
- A pointer to the table structure that contains the filtered UDP endpoints available to the application.pdwSize
- The estimated size of the structure returned in pTcpTable, in bytes. If this value is set too small,ERROR_INSUFFICIENT_BUFFER
is returned by this function, and this field will contain the correct size of the structure.bOrder
- A value that specifies whether the TCP connection table should be sorted. If this parameter is set to TRUE, the TCP endpoints in the table are sorted in ascending order, starting with the lowest local IP address. If this parameter is set to FALSE, the TCP endpoints in the table appear in the order in which they were retrieved. The following values are compared (as listed) when ordering the TCP endpoints: Local IP address, Local scope ID (applicable when the ulAf parameter is set toAF_INET6
), Local TCP port, Remote IP address, Remote scope ID (applicable when the ulAf parameter is set toAF_INET6
), Remote TCP port.ulAf
- The version of IP used by the UDP endpoints.TableClass
- The type of the TCP table structure to retrieve. This parameter can be one of the values from theIPHlpAPI.TCP_TABLE_CLASS
enumeration.Reserved
- Reserved. This value must be zero.- Gibt zurück:
- If the function succeeds, the return value is
NO_ERROR
. If the function fails, the return value is an error code.
-