Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 wlan api 中找不到知道配置文件是否连接到网络的功能。
WlanGetAvailableNetworkList 仅提供与配置文件关联的网络。
谢谢你的帮助。
答案:使用 WlanRegisterNotification
并在结构 WLAN_CONNECTION_NOTIFICATION_DATA 中使用 wlanReasonCode == WLAN_REASON_CODE_SUCCESS 检查 NotificationCode == wlan_notification_acm_connection_complete