Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in C Sharp only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Member List
Calendar
Today's Posts
Home
Forum
Topic
C Sharp
SetIpNetEntry
SetIpNetEntry
Collapse
This topic is closed.
X
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
cs
#1
SetIpNetEntry
Nov 15 '05, 03:50 PM
Anyone know how to call SetIpNetEntry (in IPHLPAPI) from .net (preferebly
c#).
Thanks,
Mattias Sjögren
#2
Nov 15 '05, 03:51 PM
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
http://www.msjogren.net/dotnet/
Please reply only to the newsgroup.
Comment
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
👍
👎
☕
Comment