public interface IPHlpAPI
extends com.sun.jna.Library
| Modifier and Type | Interface and Description |
|---|---|
static class |
IPHlpAPI.FIXED_INFO |
static class |
IPHlpAPI.IP_ADDR_STRING |
static class |
IPHlpAPI.IP_ADDRESS_STRING |
static class |
IPHlpAPI.MIB_IFROW |
static class |
IPHlpAPI.MIB_IFROW2 |
| Modifier and Type | Field and Description |
|---|---|
static int |
ERROR_BUFFER_OVERFLOW |
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 |
| 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_IFROW2 pIfRow2)
The GetIfEntry2 function retrieves information for the specified
interface on the local computer.
|
int |
GetNetworkParams(IPHlpAPI.FIXED_INFO pFixedInfo,
com.sun.jna.platform.win32.WinDef.ULONGByReference pOutBufLen)
The GetNetworkParams function retrieves network parameters for the local
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 ERROR_BUFFER_OVERFLOW
int GetIfEntry(IPHlpAPI.MIB_IFROW pIfRow)
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 MIB_IFROW to the index of
the interface for which to retrieve information.int GetIfEntry2(IPHlpAPI.MIB_IFROW2 pIfRow2)
pIfRow2 - A pointer to a 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 MIB_IF_ROW2 must be set to the interface for
which to retrieve information.int GetNetworkParams(IPHlpAPI.FIXED_INFO pFixedInfo, com.sun.jna.platform.win32.WinDef.ULONGByReference pOutBufLen)
pFixedInfo - A pointer to a buffer that contains a 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
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
ERROR_BUFFER_OVERFLOW.Copyright © 2010–2017 oshi. All rights reserved.