/// <summary> /// /// </summary> /// <returns></returns> public String getCurrentWifiName() { String lRetVal = String.Empty; WlanClient lClient = new WlanClient(); List<String> lConnectedSsids = new List<String>(); foreach (WlanClient.WlanInterface lTmpWifiIfc in lClient.Interfaces) { Wlan.Dot11Ssid lSsid = lTmpWifiIfc.CurrentConnection.wlanAssociationAttributes.dot11Ssid; lConnectedSsids.Add(new String(Encoding.ASCII.GetChars(lSsid.SSID, 0, (int)lSsid.SSIDLength))); } foreach (String lTmp in lConnectedSsids) lRetVal += lTmp + " "; return (lRetVal); }
internal WlanInterface(WlanClient client, Wlan.WlanInterfaceInfo info) { this.client = client; this.info = info; }