internal unsafe void ClearCache() { string name = m_adapter.Name; if (!NDISUIO.SetOID(NDIS_OID.BSSID_LIST_SCAN, name)) { throw new System.ComponentModel.Win32Exception(Marshal.GetLastWin32Error(), "Unable to clear adapter's NDIS cache"); } }
/// <summary> /// Attempts to connect to a specific Access Point /// </summary> /// <param name="SSID">The Service Set Identified or the Access Point to which a connection should be made</param> public virtual void Connect(string SSID) { if (SSID.Length > 32) { throw new ArgumentException("SSID Max Length is 32 characters"); } if (!NDISUIO.SetOID(NDIS_OID.SSID, this.Name, Encoding.ASCII.GetBytes(SSID))) { throw new NotSupportedException(); } }