Click here to Skip to main content
14,216,534 members
Rate this:
Please Sign up or sign in to vote.
See more:
HI!
I have some servers and multiport Ethernet controllers.
On servers there is TEAMs.
It is virtual network connection, which combine other connections in pool.
In result we hawe two network card with two ethernet channels and two TEAMs.

I use simple C# methods & classes:
NetworkInterface.GetAllNetworkInterfaces();

in result I have only TEAM connections on console output.

I use C++ method
[DllImport("iphlpapi.dll", CharSet = CharSet.Ansi)]
        public static extern int GetAdaptersInfo(IntPtr pAdapterInfo, ref Int64 pBufOutLen);


Result isn't changed.

I'm not want use WMI, because it is bad for system perfomance (a data calling in 5 seconds). PowerShell in C# with
using System.Management.Automation;
has a bad for system perfomance too.

P.S. sorry for my bad English :(

What I have tried:

Use basic C#, C++, Powershell solutions
Posted
Updated 26-Jul-17 20:39pm

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

Take a look at theINetConfig interface as is used in my article.

Check your code is running with administrative rights.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100