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
--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/
Please reply only to the newsgroup.