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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top