Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than wlanapi, prefix the name with the module name and a period.
wlangetavailablenetworklist (wlanapi)
.
Summary
TODO - a short description
C# Signature:
[DllImport("Wlanapi.dll", SetLastError = true)]
public static extern uint WlanGetAvailableNetworkList(IntPtr hClientHandle, ref Guid pInterfaceGuid, uint dwFlags, IntPtr pReserved, ref IntPtr ppAvailableNetworkList);
VB Signature:
Declare Function WlanGetAvailableNetworkList Lib "wlanapi.dll" (TODO) As TODO
User-Defined Types:
private const uint WLAN_AVAILABLE_NETWORK_INCLUDE_ALL_ADHOC_PROFILES = 0x00000001;
private const uint WLAN_AVAILABLE_NETWORK_INCLUDE_ALL_MANUAL_HIDDEN_PROFILES = 0x00000002;
WLAN_AVAILABLE_NETWORK_LIST
Alternative Managed API:
Do you know one? Please contribute it!
Notes:
None.
Tips & Tricks:
Please add some!
Sample Code:
C#
IntPtr ppAvailableNetworkList = new IntPtr();
Guid pInterfaceGuid = ((WLAN_INTERFACE_INFO)wlanInterfaceInfoList.InterfaceInfo[0]).InterfaceGuid;
WlanGetAvailableNetworkList(ClientHandle, ref pInterfaceGuid, WLAN_AVAILABLE_NETWORK_INCLUDE_ALL_MANUAL_HIDDEN_PROFILES, new IntPtr(), ref ppAvailableNetworkList);
WLAN_AVAILABLE_NETWORK_LIST wlanAvailableNetworkList = new WLAN_AVAILABLE_NETWORK_LIST(ppAvailableNetworkList);
WlanFreeMemory(ppAvailableNetworkList);
for (int j = 0; j < wlanAvailableNetworkList .dwNumberOfItems; j++)
{
Interop.WLAN_AVAILABLE_NETWORK network = list.wlanAvailableNetwork[j];
Console.WriteLine("Available Network: ");
Console.WriteLine("SSID: " + network.dot11Ssid.ucSSID);
Console.WriteLine("Encrypted: " + network.bSecurityEnabled);
Console.WriteLine("Signal Strength: " + network.wlanSignalQuality);
Console.WriteLine("Default Authentication: " +
network.dot11DefaultAuthAlgorithm.ToString());
Console.WriteLine("Default Cipher: " + network.dot11DefaultCipherAlgorithm.ToString());
Console.WriteLine();
}
Documentation
TODO - a short description
10/22/2013 7:55:15 AM - -46.217.17.227
Please edit this page!
Do you have...
helpful tips or sample code to share for using this API in managed code?
corrections to the existing content?
variations of the signature you want to share?
additional languages you want to include?
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).