Questions tagged [wlanapi]

74 questions
0
votes
0 answers

Wlanapi.dll Entrypoint not found exception

When I try to invoke WlanOpenHandle method of wlanapi.dll, code throws EntryPointNotFoundException. C#: [DllImport("wlanapi.dll", SetLastError = true)] public static extern uint WlanOpenHandle([In] UInt32 clientVersion, [In, Out] IntPtr pReserved,…
SLYN
  • 176
  • 1
  • 4
  • 16
0
votes
1 answer

How to use WlanRegisterNotification function

I want to register wlan notification. Code: HANDLE hClient; DWORD dwResult = 0; DWORD dwPrevNotif = 0; dwResult = WlanRegisterNotification(hClient, WLAN_NOTIFICATION_SOURCE_ALL, TRUE, NotificationCallback, NULL, NULL, &dwPrevNotif); void WINAPI…
Cobra91151
  • 610
  • 4
  • 14
0
votes
1 answer

connect to secured wireless connection using c#

I am using wlanApi class to connect to wireless connection after I scanned and found networks in my area I want to connect to them but always I get exception "profile xaml is not correct" so I try to get all connection type to xaml I found them but…
kartal
  • 17,436
  • 34
  • 100
  • 145
0
votes
1 answer

How to convert MAC address of any router to WPS pin using VB.net

I need to make a program that converts router's MAC Address to Wifi Protected Setup PIN , also I need to connect to any WiFi network using Wifi Protected Setup PIN I am using VB.NET Language.
Mark Ashraf
  • 29
  • 1
  • 8
0
votes
1 answer

WlanQueryInterface data enumeration

I want to get wlan_intf_opcode_bss_type using WlanQueryInterface function. My code: PDOT11_BSS_TYPE wlanInterfaceState = NULL; DWORD wlanInterfaceStateSize = sizeof(wlanInterfaceState); DWORD interfaceStateResult; interfaceStateResult =…
Cobra91151
  • 610
  • 4
  • 14
0
votes
1 answer

Get Radio Type, Channel and Encryption from Managed Wifi API c#

can someone please tell me how I can extract Radio Type, Channel and Encryption information through Managed Wifi API in C#? I am able to see all the above information in my command prompt through "netsh wlan show interfaces" command (when I am…
Leo
  • 315
  • 1
  • 3
  • 17
0
votes
1 answer

WlanAPI WlanGetNetworkBssList returning invalid data

I'm stuck in my debugging efforts with a call to WlanGetNetworkBssList and would appreciate some pointers. My end objective is to construct a Wifi scanner/profiler tool to help me troubleshoot networking issues on remote sites. I am using the…
Alain Thiffault
  • 608
  • 3
  • 13
0
votes
1 answer

WlanGetNetworkBssList with c# on windows 10

im trying to interop WlanGetNetworkBssList from a C# Desktop APP under Windows 10. Have some Problems to retrieve the WLAN_BSS_LIST correctly. Not sure where the Problem is, the list i get is wrong. First item seems correct, but all other ones arnt.…
0
votes
0 answers

Is it possible to access NativeWifi api for hostedNetwork on WIndows using C# not C++

The reference page for hosted network and ICS links to references that are written in C++. Can I skip C++ and use C# and a Windows forms application?
0
votes
1 answer

Get the ip address of Windows wifi hosted network device in c++ (WLANAPI)

I'm adding the ability within an app to create a wifi hosted network. I finally got the example app working from the Windows 7 sdk. What I am not finding is a built in way to get the IP address of the wifi device used to create the hosted network. …
Simurr
  • 672
  • 1
  • 4
  • 19
0
votes
1 answer

How to get notification for new available Wifi Network

Is there a way to get a notification when a new Wifi Network has been detected? I glanced through the Native Wifi API Reference and found the WlanRegisterNotification function but I'm not sure if that includes what i am looking for. The remark does…
Paul
  • 5,524
  • 1
  • 22
  • 39
0
votes
1 answer

Can one reset the Windows Native Wifi signal strength update interval?

I'm writing a .Net class library that's to connect to a specific Wifi network whose name is known in advance, when the signal strength is above a certain threshold. It all works beautifully, EXCEPT that peformance is a bit spotty. I have a polling…
Carl Niedner
  • 173
  • 2
  • 9
0
votes
1 answer

how to know if a profile is connected to a wireless ntework with wlanapi

i can't found the function in wlan api to know if a profile is connected or not to a network. WlanGetAvailableNetworkList gives only networks with profile associated. Thansk for your help.
Nicolas
  • 1
  • 1
0
votes
1 answer

wlanapi - will WlanFreeMemory free its WLAN_INTERFACE_INFO array struct?

I am using Microsoft's WLAN API in the following code (I left only the relevant pieces from the example): WLAN_INTERFACE_INFO_LIST structure WLAN_INTERFACE_INFO structure WlanEnumInterfaces() function WlanFreeMemory()…
iddqd
  • 1,225
  • 2
  • 16
  • 34
0
votes
1 answer

Number of retransmitted Wifi packets in C++ under Windows

I need to get the number (and size in bytes) of retransmitted Wifi packets with C++ under Windows. The Information I need is very low-level, encapsulated in the Frame Control of Wifi-Frame. Is there an interface to get the information I need…
kyi
  • 43
  • 1
  • 10