c#连接wifi
class WIFISSID
{
public string SSID = "NONE";
public string dot11DefaultAuthAlgorithm = "";
public string dot11DefaultCipherAlgorithm = "";
public bool networkConnectable = true;
public string wlanNotConnectableReason = "";
public int wlanSignalQuality = 0;
public WlanClient.WlanInterface wlanInterface = null;
}
public void ConnectToSSID(WIFISSID ssid)
{
// Connects to a known network with WEP security
string profileName = ssid.SSID; // this is also the SSID
string mac = StringToHex(profileName); //
string key = "166397954";
//string profileXml = string.Format("<?xml version=\"1.0\"?>{0}{1}New{0}ESSopennonefalsenetworkKeyfalse{2}0", profileName, mac, key);
st