How to identify if the Network Interface is LAN or Wifi or External

前端 未结 2 452
小鲜肉
小鲜肉 2021-01-21 17:58

I want to differentiate between the Ethernets available on my system. Whether that\'s a LAN , Wifi or something created by VMWare. I am only intrested for LAN.

2条回答
  •  灰色年华
    2021-01-21 18:08

    To find out if the adapter is a Wifi adapter you can use the MSNdis_PhysicalMediumType class in the root\WMI namespace.

    Unfortunately the VMware adapters appear to Windows as if they are "real" physical adapters and have a MAC address and IP address etc so it's hard to differentiate those.

    You'll notice in Windows if you run ncpa.cpl they all appear the same as physical adapters.

提交回复
热议问题