NetSamples.Common.Net
Class iphlpapi

Wrapper for API's in iphlpapi.dll

Field Summary
int BROADCAST_NODETYPE
int DEFAULT_MINIMUM_ENTITIES
int HYBRID_NODETYPE
int IF_ETHERNET_ADAPTERTYPE
int IF_FDDI_ADAPTERTYPE
int IF_LOOPBACK_ADAPTERTYPE
int IF_OTHER_ADAPTERTYPE
int IF_PPP_ADAPTERTYPE
int IF_SLIP_ADAPTERTYPE
int IF_TOKEN_RING_ADAPTERTYPE
int MAX_ADAPTER_ADDRESS_LENGTH
int MAX_ADAPTER_DESCRIPTION_LENGTH
int MAX_ADAPTER_NAME_LENGTH
int MAX_DOMAIN_NAME_LEN
int MAX_HOSTNAME_LEN
int MAX_INTERFACE_NAME_LEN
int MAX_SCOPE_ID_LEN
int MAXLEN_IFDESCR
int MAXLEN_PHYSADDR
int MIXED_NODETYPE
int PEER_TO_PEER_NODETYPE

Constructor Summary
iphlpapi()
        Initializes a new instance of the iphlpapi class.

Method Summary
uint GetAdaptersInfo(System.IntPtr pAdapterInfo, int pOutBufLen)
uint GetBestInterface(uint dwDestAddr, uint pdwBestIfIndex)
uint GetIfEntry(NetSamples.Common.Net.iphlpapi.MIB_IFROW pIfRow)
uint GetInterfaceInfo(System.IntPtr pIfTable, int dwOutBufLen)
uint GetIpAddrTable(System.IntPtr pIpAddrTable, int pdwSize, bool bOrder)
uint GetNetworkParams(System.IntPtr pFixedInfo, int pOutBufLen)
uint GetNumberOfInterfaces(int pdwNumIf)
uint GetPerAdapterInfo(uint IfIndex, System.IntPtr pPerAdapterInfo, int pOutBufLen)
bool GetRTTAndHopCount(uint DestIpAddress, uint HopCount, uint MaxHops, uint RTT)
uint NotifyAddrChange(uint waithandle, System.Threading.NativeOverlapped overlapped)
uint NotifyAddrChange(uint nullhandle, uint nulloverlapped)

Methods inherited from class System.Object
Equals, Finalize, GetHashCode, GetType, MemberwiseClone, ToString


Field Detail

BROADCAST_NODETYPE

internal int BROADCAST_NODETYPE


DEFAULT_MINIMUM_ENTITIES

internal int DEFAULT_MINIMUM_ENTITIES


HYBRID_NODETYPE

internal int HYBRID_NODETYPE


IF_ETHERNET_ADAPTERTYPE

internal int IF_ETHERNET_ADAPTERTYPE


IF_FDDI_ADAPTERTYPE

internal int IF_FDDI_ADAPTERTYPE


IF_LOOPBACK_ADAPTERTYPE

internal int IF_LOOPBACK_ADAPTERTYPE


IF_OTHER_ADAPTERTYPE

internal int IF_OTHER_ADAPTERTYPE


IF_PPP_ADAPTERTYPE

internal int IF_PPP_ADAPTERTYPE


IF_SLIP_ADAPTERTYPE

internal int IF_SLIP_ADAPTERTYPE


IF_TOKEN_RING_ADAPTERTYPE

internal int IF_TOKEN_RING_ADAPTERTYPE


MAX_ADAPTER_ADDRESS_LENGTH

internal int MAX_ADAPTER_ADDRESS_LENGTH


MAX_ADAPTER_DESCRIPTION_LENGTH

internal int MAX_ADAPTER_DESCRIPTION_LENGTH


MAX_ADAPTER_NAME_LENGTH

internal int MAX_ADAPTER_NAME_LENGTH


MAX_DOMAIN_NAME_LEN

internal int MAX_DOMAIN_NAME_LEN


MAX_HOSTNAME_LEN

internal int MAX_HOSTNAME_LEN


MAX_INTERFACE_NAME_LEN

internal int MAX_INTERFACE_NAME_LEN


MAX_SCOPE_ID_LEN

internal int MAX_SCOPE_ID_LEN


MAXLEN_IFDESCR

internal int MAXLEN_IFDESCR


MAXLEN_PHYSADDR

internal int MAXLEN_PHYSADDR


MIXED_NODETYPE

internal int MIXED_NODETYPE


PEER_TO_PEER_NODETYPE

internal int PEER_TO_PEER_NODETYPE

Constructor Detail

iphlpapi

public iphlpapi()

Initializes a new instance of the iphlpapi class.

Method Detail

GetAdaptersInfo

internal uint GetAdaptersInfo(System.IntPtr pAdapterInfo,
                              int pOutBufLen)


GetBestInterface

internal uint GetBestInterface(uint dwDestAddr,
                               uint pdwBestIfIndex)


GetIfEntry

internal uint GetIfEntry(NetSamples.Common.Net.iphlpapi.MIB_IFROW pIfRow)


GetInterfaceInfo

internal uint GetInterfaceInfo(System.IntPtr pIfTable,
                               int dwOutBufLen)


GetIpAddrTable

internal uint GetIpAddrTable(System.IntPtr pIpAddrTable,
                             int pdwSize,
                             bool bOrder)


GetNetworkParams

internal uint GetNetworkParams(System.IntPtr pFixedInfo,
                               int pOutBufLen)


GetNumberOfInterfaces

internal uint GetNumberOfInterfaces(int pdwNumIf)


GetPerAdapterInfo

internal uint GetPerAdapterInfo(uint IfIndex,
                                System.IntPtr pPerAdapterInfo,
                                int pOutBufLen)


GetRTTAndHopCount

internal bool GetRTTAndHopCount(uint DestIpAddress,
                                uint HopCount,
                                uint MaxHops,
                                uint RTT)


NotifyAddrChange

internal uint NotifyAddrChange(uint waithandle,
                               System.Threading.NativeOverlapped overlapped)


NotifyAddrChange

internal uint NotifyAddrChange(uint nullhandle,
                               uint nulloverlapped)