Click here to Skip to main content
15,888,454 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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

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

Check your code is running with administrative rights.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900