WLAN_INTERFACE_STATE Enumeration

The WLAN_INTERFACE_STATE enumerated type indicates the state of an interface.

Windows XP with SP3 and Wireless LAN API for Windows XP with SP2:  Only the wlan_interface_state_connected, wlan_interface_state_disconnected, and wlan_interface_state_authenticating values are supported.

Syntax

typedef enum _WLAN_INTERFACE_STATE {
  wlan_interface_state_not_ready,
  wlan_interface_state_connected,
  wlan_interface_state_ad_hoc_network_formed,
  wlan_interface_state_disconnecting,
  wlan_interface_state_disconnected,
  wlan_interface_state_associating,
  wlan_interface_state_discovering,
  wlan_interface_state_authenticating,
  v1_enum
} WLAN_INTERFACE_STATE, *PWLAN_INTERFACE_STATE;

Constants

wlan_interface_state_not_ready The interface is not ready to operate.
wlan_interface_state_connected The interface is connected to a network.
wlan_interface_state_ad_hoc_network_formed The interface is the first node in an ad hoc network. No peer has connected.
wlan_interface_state_disconnecting The interface is disconnecting from the current network.
wlan_interface_state_disconnected The interface is not connected to any network.
wlan_interface_state_associating The interface is attempting to associate with a network.
wlan_interface_state_discovering Auto configuration is discovering the settings for the network.
wlan_interface_state_authenticating The interface is in the process of authenticating.
v1_enum

Requirements

   
Minimum supported client Windows Vista, Windows XP with SP3 [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Header wlanapi.h
Redistributable Wireless LAN API for Windows XP with SP2

See Also

WLAN_CONNECTION_ATTRIBUTES

WLAN_INTERFACE_INFO

WlanQueryInterface