Ejemplo n.º 1
0
 /// <summary>
 /// Renames a specified wireless profile.
 /// </summary>
 public bool RenameProfile(Guid interfaceId, string oldProfileName, string newProfileName) =>
 NativeWifi.RenameProfile(_client, interfaceId, oldProfileName, newProfileName);
Ejemplo n.º 2
0
 /// <summary>
 /// Deletes a specified wireless profile.
 /// </summary>
 public bool DeleteProfile(Guid interfaceId, string profileName) =>
 NativeWifi.DeleteProfile(_client, interfaceId, profileName);
Ejemplo n.º 3
0
 /// <summary>
 /// Sets (adds or overwrites) the content of a specified wireless profile.
 /// </summary>
 public bool SetProfile(Guid interfaceId, ProfileType profileType, string profileXml, string profileSecurity, bool overwrite) =>
 NativeWifi.SetProfile(_client, interfaceId, profileType, profileXml, profileSecurity, overwrite);
Ejemplo n.º 4
0
 /// <summary>
 /// Sets the position of a specified wireless profile in preference order.
 /// </summary>
 public bool SetProfilePosition(Guid interfaceId, string profileName, int position) =>
 NativeWifi.SetProfilePosition(_client, interfaceId, profileName, position);
Ejemplo n.º 5
0
 /// <summary>
 /// Sets the Extensible Authentication Protocol (EAP) user credentials as specified by an XML string.
 /// </summary>
 public bool SetEAPProfile(Guid interfaceId, string profileName, string userDataXML) =>
 NativeWifi.SetEAPProfile(_client, interfaceId, profileName, userDataXML);
Ejemplo n.º 6
0
 /// <summary>
 /// Enumerates wireless profile and related radio information in preference order.
 /// </summary>
 public IEnumerable <ProfileRadioPack> EnumerateProfileRadios() =>
 NativeWifi.EnumerateProfileRadios(_client);
Ejemplo n.º 7
0
 /// <summary>
 /// Enumerates SSIDs of connected wireless LANs.
 /// </summary>
 public IEnumerable <NetworkIdentifier> EnumerateConnectedNetworkSsids() =>
 NativeWifi.EnumerateConnectedNetworkSsids(_client);
Ejemplo n.º 8
0
 /// <summary>
 /// Disconnects from the wireless LAN associated to a specified wireless interface.
 /// </summary>
 public bool DisconnectNetwork(Guid interfaceId) =>
 NativeWifi.DisconnectNetwork(_client, interfaceId);
Ejemplo n.º 9
0
 /// <summary>
 /// Asynchronously requests wireless interfaces to scan wireless LANs.
 /// </summary>
 public Task <IEnumerable <Guid> > ScanNetworksAsync(TimeSpan timeout, CancellationToken cancellationToken) =>
 NativeWifi.ScanNetworksAsync(_client, timeout, cancellationToken);
Ejemplo n.º 10
0
 /// <summary>
 /// Enumerates SSIDs of available wireless LANs.
 /// </summary>
 public IEnumerable <NetworkIdentifier> EnumerateAvailableNetworkSsids() =>
 NativeWifi.EnumerateAvailableNetworkSsids(_client);
Ejemplo n.º 11
0
 /// <summary>
 /// Enumerates wireless interface and related connection information.
 /// </summary>
 public IEnumerable <InterfaceConnectionInfo> EnumerateInterfaceConnections() =>
 NativeWifi.EnumerateInterfaceConnections(_client);
Ejemplo n.º 12
0
 /// <summary>
 /// Enumerates wireless interface information.
 /// </summary>
 public IEnumerable <InterfaceInfo> EnumerateInterfaces() =>
 NativeWifi.EnumerateInterfaces(_client);
Ejemplo n.º 13
0
 /// <summary>
 /// Turns off the radio of a specified wireless interface (software radio state only).
 /// </summary>
 public bool TurnOffInterfaceRadio(Guid interfaceId) =>
 NativeWifi.TurnInterfaceRadio(_client, interfaceId, DOT11_RADIO_STATE.dot11_radio_state_off);
Ejemplo n.º 14
0
 /// <summary>
 /// Attempts to connect to the wireless LAN associated to a specified wireless profile.
 /// </summary>
 public bool ConnectNetwork(Guid interfaceId, string profileName, BssType bssType) =>
 NativeWifi.ConnectNetwork(_client, interfaceId, profileName, bssType);
Ejemplo n.º 15
0
 /// <summary>
 /// Enumerates wireless LAN information on available networks and group of associated BSS networks.
 /// </summary>
 public IEnumerable <AvailableNetworkGroupPack> EnumerateAvailableNetworkGroups() =>
 NativeWifi.EnumerateAvailableNetworkGroups(_client);
Ejemplo n.º 16
0
 /// <summary>
 /// Asynchronously attempts to connect to the wireless LAN associated to a specified wireless profile.
 /// </summary>
 public Task <bool> ConnectNetworkAsync(Guid interfaceId, string profileName, BssType bssType, TimeSpan timeout, CancellationToken cancellationToken) =>
 NativeWifi.ConnectNetworkAsync(_client, interfaceId, profileName, bssType, timeout, cancellationToken);
Ejemplo n.º 17
0
 /// <summary>
 /// Enumerates wireless LAN information on BSS networks.
 /// </summary>
 public IEnumerable <BssNetworkPack> EnumerateBssNetworks() =>
 NativeWifi.EnumerateBssNetworks(_client);
Ejemplo n.º 18
0
 /// <summary>
 /// Asynchronously disconnects from the wireless LAN associated to a specified wireless interface.
 /// </summary>
 public Task <bool> DisconnectNetworkAsync(Guid interfaceId, TimeSpan timeout, CancellationToken cancellationToken) =>
 NativeWifi.DisconnectNetworkAsync(_client, interfaceId, timeout, cancellationToken);
 /// <summary>
 /// Enumerates wireless profile names in preference order.
 /// </summary>
 public IEnumerable <string> EnumerateProfileNames() =>
 NativeWifi.EnumerateProfileNames(_client);