草庐IT

theSignalStrength

全部标签

c# - 获取wifi信号强度

有没有办法在C#中获取wifi信号强度?目前我正在通过Processproc=newProcess();proc.StartInfo.CreateNoWindow=true;proc.StartInfo.FileName="netsh";proc.StartInfo.Arguments="wlanshowinterfaces";proc.StartInfo.RedirectStandardOutput=true;proc.StartInfo.UseShellExecute=false;proc.Start();然后我通过读取输出获得wifi信号强度。有没有更好的办法?最好使用API的