From 2e3a080e108f58e47385e463babb3e31a29d40af Mon Sep 17 00:00:00 2001 From: Vitaly Orekhov Date: Mon, 18 Nov 2024 23:31:17 +0300 Subject: [PATCH] [PSDK] Add definitions for WLAN_AVAILABLE_NETWORK.dwFlags member (#7504) Enable use of flags denoting state of Wi-Fi access point relative to the network adapter trying to connect to it. Used when working with WLAN_AVAILABLE_NETWORK.dwFlags to check whether we are connected to the network or not, for instance. These flags have been introduced in Windows 10. References: - https://learn.microsoft.com/en-us/windows/win32/api/wlanapi/ns-wlanapi-wlan_available_network - Windows SDK CORE-6905 --- sdk/include/psdk/wlanapi.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sdk/include/psdk/wlanapi.h b/sdk/include/psdk/wlanapi.h index 743edf2c2ee..e16089372a8 100644 --- a/sdk/include/psdk/wlanapi.h +++ b/sdk/include/psdk/wlanapi.h @@ -19,6 +19,16 @@ extern "C" { #define WLAN_AVAILABLE_NETWORK_INCLUDE_ALL_ADHOC_PROFILES 0x00000001 #define WLAN_AVAILABLE_NETWORK_INCLUDE_ALL_MANUAL_HIDDEN_PROFILES 0x00000002 +#define WLAN_AVAILABLE_NETWORK_CONNECTED 0x00000001 +#define WLAN_AVAILABLE_NETWORK_HAS_PROFILE 0x00000002 +#define WLAN_AVAILABLE_NETWORK_CONSOLE_USER_PROFILE 0x00000004 +#define WLAN_AVAILABLE_NETWORK_INTERWORKING_SUPPORTED 0x00000008 +#define WLAN_AVAILABLE_NETWORK_HOTSPOT2_ENABLED 0x00000010 +#define WLAN_AVAILABLE_NETWORK_ANQP_SUPPORTED 0x00000020 +#define WLAN_AVAILABLE_NETWORK_HOTSPOT2_DOMAIN 0x00000040 +#define WLAN_AVAILABLE_NETWORK_HOTSPOT2_ROAMING 0x00000080 +#define WLAN_AVAILABLE_NETWORK_AUTO_CONNECT_FAILED 0x00000100 + /* Enumerations */ #if defined(__midl) || defined(__WIDL__)