SetIpNetEntry

  • Thread starter Thread starter cs
  • Start date Start date
Anyone know how to call SetIpNetEntry (in IPHLPAPI) from .net (preferebly
c#).

Try these defs:

struct MIB_IPNETROW
{
public uint dwIndex, dwPhysAddrLen;
[MarshalAs(UnmanagedType.ByValArray, SizeConst=8)]
public byte[] bPhysAddr;
public uint dwAddr, dwType;
}

[DllImport("iphlpapi.dll")]
static extern uint SetIpNetEntry(ref MIB_IPNETROW pArpEntry);



Mattias
 
Back
Top