Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

IP_ADDR_STRING (Structures)
 
.
Summary
This structure stores an IP address and corresponding subnet mask as dotted decimal strings. This structure represents a node in a linked list of IP addresses.

C# Definition:

[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Ansi)]
public struct IP_ADDR_STRING
{
    public IntPtr Next;
    public IP_ADDRESS_STRING IpAddress;
    public IP_ADDRESS_STRING IpMask;
    public IP_ADDRESS_STRING Mask;
    public Int32 Context;
}

VB Definition:

<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Ansi)> _
Public Structure IP_ADDR_STRING
    Public [Next] As IntPtr
    Public IpAddress As IP_ADDRESS_STRING
    Public IpMask As IP_ADDRESS_STRING
    Public Context As Int32
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Auto)> _
Private Structure IP_ADAPTER_INFO
    Dim [Next] As IntPtr
    Dim ComboIndex As Int32
    <MarshalAs(UnmanagedType.ByValTStr, SizeConst:=(MAX_ADAPTER_NAME_LENGTH + 4))> _
        Dim AdapterName As String
    <MarshalAs(UnmanagedType.ByValTStr, SizeConst:=(MAX_ADAPTER_DESCRIPTION_LENGTH + 4))> _
        Dim Description As String
    Dim AddressLength As UInt32
    <MarshalAs(UnmanagedType.ByValArray, SizeConst:=(MAX_ADAPTER_ADDRESS_LENGTH))> _
        Dim Address() As Byte
    Dim Index As Int32
    Dim Type As UInt32
    Dim DhcpEnabled As UInt32
    Dim CurrentIpAddress As IP_ADDR_STRING
    Dim IpAddressList As IP_ADDR_STRING
    Dim GatewayList As IP_ADDR_STRING
    Dim DhcpServer As IP_ADDR_STRING
    Dim HaveWins As Boolean
    Dim PrimaryWinsServer As IP_ADDR_STRING
    Dim SecondaryWinsServer As IP_ADDR_STRING
    Dim LeaseObtained As Int32
    Dim LeaseExpires As Int32
End Structure

User-Defined Field Types:

IP_ADDRESS_STRING

Notes:

None.

Documentation

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • alternate definitions?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing any supporting types needed.

 
Access PInvoke.net directly from VS:
Terms of Use
Edit This Page
Find References
Show Printable Version
Revisions