Click here to Skip to main content
15,851,242 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am developing an application on Windows Tab to Whitelist or Blacklist Particular WiFi Network/s permanently according to the requirement, I found a way to disconnect Particular WiFi connection using WLAN API set but this is temporary disconnection but my requirement is to permanently disconnect.
Even I tried to get the trigger from Windows event logger for event id's 8001,8003 etc but this went in vain, So please help me in getting a solution for above mentioned subject so that i can Blacklist particular WiFi connection until i chose to whitelist it.
I am looking for solution in C/C++ code , it would be of great help if sample code is pasted.
Link Where i got api:[^]
Updated 22-Jun-15 22:10pm
Frankie-C 24-Jun-15 3:16am    
I'm happy to have been of help, but please remove the comment you posted as a solution.

1 solution

Have you tried with WlanRegisterNotification[^]?
In the callback function, when DWORD NotificationSource = WLAN_NOTIFICATION_SOURCE_ACM, in the NotificationCode you can get wlan_notification_acm_connection_start (0X00000009) and wlan_notification_acm_connection_complete (0X0000000a) that should work...
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900