C cs Nov 18, 2003 #1 Anyone know how to call SetIpNetEntry (in IPHLPAPI) from .net (preferebly c#). Thanks,
M Mattias Sjögren Nov 18, 2003 #2 Anyone know how to call SetIpNetEntry (in IPHLPAPI) from .net (preferebly c#). Click to expand... 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
Anyone know how to call SetIpNetEntry (in IPHLPAPI) from .net (preferebly c#). Click to expand... 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