Questions tagged [wlanapi]

74 questions
1
vote
0 answers

WlanGetNetworkBssList()-like commands do not compile with g++

I'm trying to compile a program that prints all available wifi access points including their BSSID. The example of WlanGetAvailableNetworkList() function on MSDN website compiled just fine when removing the flag part with …
Daniel
  • 19
  • 3
1
vote
1 answer

How to use “Native Wifi API” Windows API functions with ruby

My Setup: Windows 7, Ruby 1.9.3 I want to manage the wireless NIC to access different Wireless Routers, here's what I have tried: Method 1: netsh wlan Managing the WLAN adapter through the netsh command tools. So I setup my Wireless Network in…
wuhlcom
  • 119
  • 1
  • 9
1
vote
0 answers

Wlanconnect not working with bssid in win8 but same works in win7

I am trying to connect to WiFi network using bssid in situation where are the are multiple AP (SSID) with same name but having different bssid. The sample relevant code I am using is NDIS_OBJECT_HEADER header; DOT11_BSSID_LIST…
1
vote
0 answers

python/c -- connecting to a wireless network under windows 7

I am relativly exceperinced in Python 2.x, and just started learning C. I've come to the conclusion that I will need to use the Windows Native Wifi API (feel free to provide alternatives). I want to connect to a network with a given name and…
jacwah
  • 2,727
  • 2
  • 21
  • 42
1
vote
0 answers

WlanHostedNetworkSetProperty not changing max peers

So I came across a problem when calling WlanHostedNetworkSetProperty from WLanapi.dll. This is that the dwMaxNumberOfPeers from WLAN_HOSTED_NETWORK_CONNECTION_SETTINGS passed into that function is not going to be persisted unless SSID is different…
Daniel Gruszczyk
  • 5,379
  • 8
  • 47
  • 86
0
votes
1 answer

WlanSetProfile 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
0
votes
1 answer

Wifi notifications in Windows

I would like to know how a windows C++ app can get notified when windows system changes its wifi network. I'm interested in the following cases: When the user has switched on the wifi and has connected to a new network When the user has switched…
NightFuryLxD
  • 847
  • 5
  • 15
0
votes
0 answers

How do i retrieve the full list of all auth/cipher pairs that an AP can accept?

The function WlanGetAvailableNetworkList provides a list of WLAN_AVAILABLE_NETWORK structures containing, among other things, the default authentication algorithm and the default cipher for each network detected. However, access points can be…
user2464424
  • 1,536
  • 1
  • 14
  • 28
0
votes
1 answer

Unable to obtain profile of connected network in Vista/7

I have a piece of code implemented using the Managed Native WiFi. It is used to obtain the profile details of the connected network for displaying on screen. // Start the wireless configuration service if it is stopped …
Vivek
  • 259
  • 2
  • 16
0
votes
1 answer

How to enumerate devices on a network from c# and .NET?

I am writing a Windows desktop app that communicates with my DSLR camera via Wireless network (WLAN). I need a way to scan the network and find the camera by its MAC address or other identifying information. Nirsoft Wireless Network Watcher displays…
JNygren
  • 179
  • 1
  • 2
  • 20
0
votes
0 answers

Get the name of the connected wifi connection every 4 seconds

I use the following function to get the name of the connected WiFi connection. The function is called repeatedly every 4 seconds to monitor connection changes. But after a while, the function no longer works as before, and fails returning…
Minimus Heximus
  • 2,683
  • 3
  • 25
  • 50
0
votes
2 answers

WlanConnect(), how to connect to and open wireless access point

in order to connecto to an open access point I fill the WLAN_CONNECTION_PARAMETERS structure as below WLAN_CONNECTION_PARAMETERS ConnectionParameters; ConnectionParameters.wlanConnectionMode =…
0
votes
1 answer

Check for EAP credentials issue

I want to check if EAP credentials are present (stored in the registry or not) when connecting to the Enterprise wireless network from the imported profile using my program. I use this method: WlanSetProfileEapXmlUserData for storing the user…
Hunter91151
  • 457
  • 2
  • 11
0
votes
0 answers

Delphi XE8 - Native Wifi API - Wlan API - Get value from WLAN_HOSTED_NETWORK_REASON

Delphi XE8 on Windows 10 Pro So i use WlanHostedNetworkStartUsing from Native Wifi API to start Hosted Network using this code : procedure TForm1.btn_1Click(Sender: TObject); var hClient : THandle; dwVersion : DWORD; …
0
votes
2 answers

Connect to Enterprise WiFi on Windows issue

I configured the Radius Server on Windows Server 2016 and I want to connect to Enterprise WiFi network using my application. I tried to do the following steps: Set the profile without credentials using WlanSetProfile (I used imported profile from…
Hunter91151
  • 457
  • 2
  • 11