Windows Dev Center

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              = 0,
  wlan_interface_state_connected              = 1,
  wlan_interface_state_ad_hoc_network_formed  = 2,
  wlan_interface_state_disconnecting          = 3,
  wlan_interface_state_disconnected           = 4,
  wlan_interface_state_associating            = 5,
  wlan_interface_state_discovering            = 6,
  wlan_interface_state_authenticating         = 7
} 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.

Requirements

Minimum supported client

Windows Vista, Windows XP with SP3 [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Redistributable

Wireless LAN API for Windows XP with SP2

Header

Wlanapi.h

See also

WLAN_CONNECTION_ATTRIBUTES
WLAN_INTERFACE_INFO
WlanQueryInterface

 

 

Community Additions

ADD
Show:
© 2015 Microsoft