Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

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();

.
Documentation
[GetInterfaceInfo] on MSDN
.

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();


 
Access PInvoke.net directly from VS: