Desktop Functions: Smart Device Functions:
|
Search Results for "GetInterfaceInfo" in [All]iphlpapi
public static extern int GetInterfaceInfo(Byte[] PIfTableBuffer, ref int size); The following C# sourcecode implements classes and structures with the purpose of making the use of GetInterfaceInfo and IpReleaseAddress easier. Thanks to Lieutenant (http://www.red-gate.com/MessageBoard/viewtopic.php?t=5754) for submitting this code.
public static extern int GetInterfaceInfo(Byte[] PIfTableBuffer, ref int size);
public static IP_INTERFACE_INFO GetInterfaceInfo()
int r = PInvokes.GetInterfaceInfo(null, ref size);
r = PInvokes.GetInterfaceInfo(buffer, ref size);
throw new Exception("GetInterfaceInfo returned an error.");
IP_INTERFACE_INFO info = GetInterfaceInfo(); The following C# sourcecode implements classes and structures with the purpose of making the use of GetInterfaceInfo and IpReleaseAddress easier. Thanks to Lieutenant (http://www.red-gate.com/MessageBoard/viewtopic.php?t=5754) for submitting this code.
public static extern int GetInterfaceInfo(Byte[] PIfTableBuffer, ref int size);
public static IP_INTERFACE_INFO GetInterfaceInfo()
int r = PInvokes.GetInterfaceInfo(null, ref size);
r = PInvokes.GetInterfaceInfo(buffer, ref size);
throw new Exception("GetInterfaceInfo returned an error.");
IP_INTERFACE_INFO info = GetInterfaceInfo(); |