Questions tagged [wlanapi]

74 questions
11
votes
3 answers

If two WiFi networks exist with similar SSIDs, how can you distinguish between the two in code?

I'm writing a small network management tool. In order to pull out the details for various WiFi networks, I'm making calls to the wlanapi.dll, WlanGetProfile(...) API method to get the profile information for each available WiFi network. Assuming…
RLH
  • 15,230
  • 22
  • 98
  • 182
7
votes
1 answer

Decrypt WEP wlan profile key using CryptUnprotectData

I am trying to decrypt WEP profile's key using CryptUnprotectData. The way I fetched the profile key is by exporting the profile using netsh. netsh wlan export profile name="MyWEP" folder="./" For now, I manually copied the key material from the…
Mahesh
  • 34,573
  • 20
  • 89
  • 115
5
votes
3 answers

Using C# or Powershell to scan all available wireless networks and connect to a specific SSID

I am trying to write a script that scans all the available wireless networks and connects to a specific network (SSID). Does anyone have a sample code written already for this? I cannot install a third party software (managed wifi api) due to some…
4
votes
1 answer

How to use "Native Wifi API" Windows API functions with Delphi

Im trying to use a function from Windows API on delphi, functions for Windows Wlanapi.dll (Native WIFI API) WlanOpenHandle DWORD WINAPI WlanOpenHandle( __in DWORD dwClientVersion, __reserved PVOID pReserved, __out PDWORD…
Vitim.us
  • 20,746
  • 15
  • 92
  • 109
4
votes
1 answer

Disconnect a user from hostednetwork

This code (c# wpf) creates a wlan hotspot using wlanapi.dll. Is it possible to disconnect or blacklist by MAC a user from my hosted network? wlanManager.SetConnectionSettings(ssid, 32); wlanManager.SetSecondaryKey(password);…
IICuX
  • 41
  • 3
4
votes
1 answer

How to check network interface type is Ethernet or Wireless on Windows using Qt?

I need to find out the network interface type is Wired or Wireless on PC. I have tried using QNetworkInterface class which provides Adapter Name. But adapter name can be changed by user on Windows. On Mac, I can check for interface type as eth0 or…
Pratap
  • 51
  • 1
  • 4
4
votes
2 answers

How to detect and disable Windows 7 virtual wifi adapter

Windows 7 has a (neat?) new feature called a 'virtual wireless adapter'. Read about it here: http://www.istartedsomething.com/20090516/windows-7-native-virtual-wifi-technology-microsoft-research/ I have an application that directly controls the…
Jim In Texas
  • 1,524
  • 4
  • 20
  • 31
3
votes
1 answer

Getting Wi-Fi profile information

I'm using Windows 8.1 which doesn't have a tool (with a GUI) to manage wifi network profiles. So I'm writing one which will help me. I did some googling and found Managed Wifi API, and with the help of a tutorial I managed to put this code…
akinuri
  • 10,690
  • 10
  • 65
  • 102
2
votes
1 answer

wlan compiled code returns error and i need to specify the password for the ssid

I have this code right here I am using mingw to compile and I am running windows XP. When I run the output executable it gives me error prompt about the application.. Do I set everything correctly ? How do I set the SSID password for it to connect ?…
turtur
  • 31
  • 5
2
votes
0 answers

Wifi network channel width

I try to get the channel width of networks so I'm using WlanGetNetworkBssList to retrieve a list of BSS entries of the wireless networks on a wireless LAN interface but I don't see any information about the channel width. It's kinda trivial to get…
2
votes
1 answer

How do I implement a callback from the windows native api in c#?

I have a native api function which looks like: DWORD WINAPI WlanRegisterNotification( __in HANDLE hClientHandle, __in DWORD dwNotifSource, __in BOOL bIgnoreDuplicate, __in_opt WLAN_NOTIFICATION_CALLBACK …
FlyingStreudel
  • 4,434
  • 4
  • 33
  • 55
2
votes
1 answer

Impossible to change security type after creating Wireless network profile

I'm willing to let the user to create a dummy Wlan network profile through my windows 10 application and edit it afterwards using windows UI. I've managed to do so using NativeWifi WlanSetProfile function with one of those profile Xml samples, but,…
gtzalik
  • 57
  • 5
2
votes
2 answers

How to Disable Wireless Network Connection Notification Balloon?

I want to programmatically disable the notification I get when I connect to a wireless network. I know there is a way to disable ALL notifications (see here) but is there a way to only disable the one issued by Windows wireless Manager (i.e.…
Bigbrown
2
votes
0 answers

System.AccessViolationException error while using managed wifi to connect to specific bssid

I'm trying to connect to a wifi-network using bssid and have gone through all links available (including codeplex for managedwifi). My code is returning the following error: System.AccessViolationException: Attempted to read or write protected…
2
votes
0 answers

WlanConnect - The parameter is incorrect

I am facing an error when calling the WlanConnect function from the WindowsAPI, I am getting ERROR_INVALID_PARAMETER, even though my code doesn't get in any of the conditions specified in…
Bruno Klein
  • 3,217
  • 5
  • 29
  • 39
1
2 3 4 5