Questions tagged [wlanapi]
74 questions
2
votes
1 answer
How to programmatically detect a wrong passphrase input during Wifi Connection?
I'm using Windows Native Wifi. Basically after knowing what type of authentication and encryption the Wifi hotspot have, I ask the user for the passphrase, then call WlanSetProfile() to create/save a profile (with the passphrase included), and then…

aaa
- 489
- 5
- 13
2
votes
1 answer
From GUID of WlanEnumInterfaces to hardware id, driver version etc
I am currently using the windows native wifi functions for some stuff. This is a really
good abstraction and easy to use for me.
Now i need some more details on the wifi interfaces i get with WlanEnumInterfaces.
Basically i want the information…

Philipp König
- 357
- 2
- 10
2
votes
1 answer
Retrieve connection time to wireless adapter
I write because I could not find any answers on the internet. I am writing a project in C# on WLANs (using managed C++). Considering a given interface (network card) connected to a network, there is a way to know how long the interface is connected…

Bruno Bruzzano
- 477
- 7
- 21
1
vote
2 answers
WlanConnect from wlanapi.dll in Windows XP fails
I am creating a program which will be able to connect automatically to a wireless network. For doing that, I am using a library called ManagedWifi, which uses the library "wlanapi.dll". When I try to use the code on Windows Vista, everything is…

Roman
- 1,691
- 4
- 18
- 35
1
vote
0 answers
WLAN_BSS_LIST is updated very slow if a Hotspot is turned off
I'm currently developing a windows application which detects WiFi network changes every 10 to 15 seconds. There is no problem with detecting new mobile hotspots (updates were reflected after at least 20 or 30 seconds). However, there is a problem…

Symbol Tabios
- 21
- 3
1
vote
1 answer
QString Spanish accent issue
I have a program which connects to the wireless networks. It combines the Win API and Qt API. The problem is that it fails to connect for example to the network with SSID: Escritório. For other networks with only English characters it connects…

Hunter91151
- 457
- 2
- 11
1
vote
1 answer
wlanAPI on Windows XP SP3
My WPF application is using ManagedWifi to manually control the wifi adapter to connect to a specified network. However, when I run the application on Windows XP, I keep getting Win32Exception: The request is not supported (Native Error code…

Zekareisoujin
- 465
- 1
- 5
- 19
1
vote
1 answer
WLAN_NOTIFICATION_MSM NotificationCode 59
I'm writing a kind of wrapper over wlanapi. When receiving notifications via WlanRegisterNotification I'm getting unexpected media-specific module (MSM) notification with code 59 (which is 0x3B in hex). WLAN_NOTIFICATION_MSM MSDN page does not…

n0ne
- 103
- 4
- 17
1
vote
2 answers
Find the total size of an array of objects with only a reference pointer?
So as an overview, I am working with the Wlanapi and I am fairly new to it (native apis in general). I am running into a problem converting a structure from c++ to c#. Right now I have:
Original:
typedef struct _WLAN_BSS_LIST {
DWORD …

FlyingStreudel
- 4,434
- 4
- 33
- 55
1
vote
1 answer
WlanGetProfileList is not returning profiles created after device restart
WlanGetProfileList native api is working as expected until the device restarts. Once the device restart the result of the same api is empty. But still I can see the created profiles under registry values of Windows Compact OS.
For enabling wifi…

samiaj
- 421
- 1
- 5
- 15
1
vote
1 answer
connect to a wifi network with wlantool.exe in Compact 7 failed with 1814 error code
From my command prompt in Compact 7 I try to execute something like this:
wlantool -c -ssid name -auth wpa2psk -encr aes -key mypassword
I get this error:
[WLANTOOL] WlanReasonCodeToString() FAILED error: 1814
Same command was working for almost 1…

samiaj
- 421
- 1
- 5
- 15
1
vote
2 answers
NativeWifi and Windows XP SP2/SP3
I'm using the Native Wifi API and specifically the function WlanGetNetworkBssList.
I am aware that that function is not available in Windows XP SP2 and SP3. I tried installing the hotfix that was supposedly to allow access to that function but it…

Honus Wagner
- 2,830
- 13
- 44
- 61
1
vote
1 answer
Emit signal from static function issue
I want to emit signal when wlan connection has been registered from static notificationCallBack function.
Code:
WirelessConnect.h
static void WINAPI notificationCallBack(PWLAN_NOTIFICATION_DATA wlanData, PVOID context);
WirelessConnect.cpp
DWORD…

Cobra91151
- 610
- 4
- 14
1
vote
1 answer
WlanConnect Connection attempt fail
I am trying to connect to an unsecured network using the WlanConnect function. It is returning ERROR_SUCCESS, so far so good.
In my notification callback i receive WLAN_NOTIFICATION_ACM_CONNECTION_COMPLETE followed instantly by…

Paul
- 5,524
- 1
- 22
- 39
1
vote
1 answer
C# wlanapi.dll issue receiving the signal strength
I am currently trying to retrieve the signal strength from a wireless access point using the wlanapi.dll WlanQueryInterface call.
Here is my api declaration
[DllImport("wlanapi.dll", SetLastError = true)]
private static extern UInt32…

QuantumPhysGuy
- 416
- 5
- 18