SetIpNetEntry

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • cs

    #1

    SetIpNetEntry

    Anyone know how to call SetIpNetEntry (in IPHLPAPI) from .net (preferebly
    c#).
    Thanks,



  • Mattias Sjögren

    #2
    Re: SetIpNetEntry

    [color=blue]
    >Anyone know how to call SetIpNetEntry (in IPHLPAPI) from .net (preferebly
    >c#).[/color]

    Try these defs:

    struct MIB_IPNETROW
    {
    public uint dwIndex, dwPhysAddrLen;
    [MarshalAs(Unman agedType.ByValA rray, SizeConst=8)]
    public byte[] bPhysAddr;
    public uint dwAddr, dwType;
    }

    [DllImport("iphl papi.dll")]
    static extern uint SetIpNetEntry(r ef MIB_IPNETROW pArpEntry);



    Mattias

    --
    Mattias Sjögren [MVP] mattias @ mvps.org

    Please reply only to the newsgroup.

    Comment

    Working...