windowswinapiwifiwlanapi

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 not mention it.


Solution

  • Yes, WlanRegisterNotification is indeed the correct function. You need to do a little digging in the documentation to find exactly what each notification provides, by looking at WLAN_NOTIFICATION_DATA (in the remarks section for WlanRegisterNotification), then WLAN_NOTIFICATION_ACM. Specifically, you're looking for one of these two notifications:

    ACM stands for "auto configuration module"