Skip to content

Commit

Permalink
[PSDK] Add definitions for WLAN_AVAILABLE_NETWORK.dwFlags member (rea…
Browse files Browse the repository at this point in the history
…ctos#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
  • Loading branch information
SigmaTel71 authored Nov 18, 2024
1 parent 1f2d67a commit 2e3a080
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions sdk/include/psdk/wlanapi.h
Original file line number Diff line number Diff line change
Expand Up @@ -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__)
Expand Down

0 comments on commit 2e3a080

Please sign in to comment.