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

MIB_TCP6ROW_OWNER_PID (Structures)
 
.
Summary
The MIB_TCP6ROW_OWNER_PID structure contains information that describes an IPv6 TCP connection associated with a specific process ID (PID).

C# Definition:

[StructLayout(LayoutKind.Sequential)]
public struct MIB_TCP6ROW_OWNER_PID
{
    [MarshalAs(UnmanagedType.ByValArray, SizeConst = 16)]
    public byte[] localAddr;
    public uint localScopeId;
    [MarshalAs(UnmanagedType.ByValArray, SizeConst = 4)]
    public byte[] localPort;
    [MarshalAs(UnmanagedType.ByValArray, SizeConst = 16)]
    public byte[] remoteAddr;
    public uint remoteScopeId;
    [MarshalAs(UnmanagedType.ByValArray, SizeConst = 4)]
    public byte[] remotePort;
    public uint state;
    public uint owningPid;

    public uint ProcessId
    {
        get { return owningPid; }
    }

    public long LocalScopeId
    {
        get { return localScopeId; }
    }

    public IPAddress LocalAddress
    {
        get { return new IPAddress(localAddr, LocalScopeId); }
    }

    public ushort LocalPort
    {
        get { return BitConverter.ToUInt16(localPort.Take(2).Reverse().ToArray(), 0); }
    }

    public long RemoteScopeId
    {
        get { return remoteScopeId; }
    }

    public IPAddress RemoteAddress
    {
        get { return new IPAddress(remoteAddr, RemoteScopeId); }
    }

    public ushort RemotePort
    {
        get { return BitConverter.ToUInt16(remotePort.Take(2).Reverse().ToArray(), 0); }
    }

    public MIB_TCP_STATE State
    {
        get { return (MIB_TCP_STATE)state; }
    }
}

VB Definition:

Structure MIB_TCP6ROW_OWNER_PID
   Public TODO
End Structure

User-Defined Field Types:

MIB_TCP_STATE

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