As I understand it, Windows shows the status of the MAIN NETWORK in the tray that is connected to the Internet.

It looks like this:

enter image description here There may also be a Wi-Fi icon with signal strength.
So, how to get this information programmatically in C # ?

  • There is no concept HOME network. The logic of this icon is the following - there is at least one active WiFi connection, we show it, it doesn’t matter whether there is Internet or not, there is at least one active wired connection, but there is no active WiFi, we show a wired connection. If there is no Internet connection on all connections - we add an exclamation mark to the icon, there is no connection - we show the wired connection and a cross. All this information can be obtained by interrogating all network controllers registered in the system. - rdorn

0