Watt-32 tcp/ip  2.2 dev-rel.10
Data Structures | Typedefs | Enumerations
winadinf.h File Reference

Go to the source code of this file.

Data Structures

struct  MIB_IPNETROW
 
struct  MIB_IPNETTABLE
 
struct  _DOT11_SSID
 
struct  _WLAN_INTERFACE_CAPABILITY
 
struct  _WLAN_INTERFACE_INFO
 
struct  _WLAN_INTERFACE_INFO_LIST
 
struct  _WLAN_ASSOCIATION_ATTRIBUTES
 
struct  _WLAN_SECURITY_ATTRIBUTES
 
struct  _WLAN_CONNECTION_ATTRIBUTES
 
struct  _WLAN_AVAILABLE_NETWORK
 
struct  _WLAN_AVAILABLE_NETWORK_LIST
 

Typedefs

typedef void PMIB_IF_TABLE2
 
typedef enum MIB_IF_TABLE_LEVEL MIB_IF_TABLE_LEVEL
 
typedef struct _DOT11_SSID DOT11_SSID
 
typedef enum _DOT11_PHY_TYPE DOT11_PHY_TYPE
 
typedef enum _DOT11_BSS_TYPE DOT11_BSS_TYPE
 
typedef enum _DOT11_AUTH_ALGORITHM DOT11_AUTH_ALGORITHM
 
typedef enum
_DOT11_CIPHER_ALGORITHM 
DOT11_CIPHER_ALGORITHM
 
typedef UCHAR DOT11_MAC_ADDRESS [6]
 
typedef enum _WLAN_CONNECTION_MODE WLAN_CONNECTION_MODE
 
typedef enum _WLAN_INTERFACE_TYPE WLAN_INTERFACE_TYPE
 
typedef struct
_WLAN_INTERFACE_CAPABILITY 
WLAN_INTERFACE_CAPABILITY
 
typedef enum _WLAN_INTERFACE_STATE WLAN_INTERFACE_STATE
 
typedef struct _WLAN_INTERFACE_INFO WLAN_INTERFACE_INFO
 
typedef struct
_WLAN_INTERFACE_INFO_LIST 
WLAN_INTERFACE_INFO_LIST
 
typedef enum _WLAN_INTF_OPCODE WLAN_INTF_OPCODE
 
typedef enum
_WLAN_OPCODE_VALUE_TYPE 
WLAN_OPCODE_VALUE_TYPE
 
typedef struct
_WLAN_ASSOCIATION_ATTRIBUTES 
WLAN_ASSOCIATION_ATTRIBUTES
 
typedef struct
_WLAN_SECURITY_ATTRIBUTES 
WLAN_SECURITY_ATTRIBUTES
 
typedef struct
_WLAN_CONNECTION_ATTRIBUTES 
WLAN_CONNECTION_ATTRIBUTES
 
typedef struct
_WLAN_AVAILABLE_NETWORK 
WLAN_AVAILABLE_NETWORK
 
typedef struct
_WLAN_AVAILABLE_NETWORK_LIST 
WLAN_AVAILABLE_NETWORK_LIST
 

Enumerations

enum  MIB_IF_TABLE_LEVEL {
  MibIfTableNormal,
  MibIfTableRaw
}
 
enum  _DOT11_PHY_TYPE {
  dot11_phy_type_unknown = 0,
  dot11_phy_type_any = dot11_phy_type_unknown,
  dot11_phy_type_fhss = 1,
  dot11_phy_type_dsss = 2,
  dot11_phy_type_irbaseband = 3,
  dot11_phy_type_ofdm = 4,
  dot11_phy_type_hrdsss = 5,
  dot11_phy_type_erp = 6,
  dot11_phy_type_ht = 7,
  dot11_phy_type_IHV_start = 0x80000000,
  dot11_phy_type_IHV_end = 0xFFFFFFFF
}
 
enum  _DOT11_BSS_TYPE {
  dot11_BSS_type_infrastructure = 1,
  dot11_BSS_type_independent = 2,
  dot11_BSS_type_any = 3
}
 
enum  _DOT11_AUTH_ALGORITHM {
  DOT11_AUTH_ALGO_80211_OPEN = 1,
  DOT11_AUTH_ALGO_80211_SHARED_KEY = 2,
  DOT11_AUTH_ALGO_WPA = 3,
  DOT11_AUTH_ALGO_WPA_PSK = 4,
  DOT11_AUTH_ALGO_WPA_NONE = 5,
  DOT11_AUTH_ALGO_WPA_RSNA = 6,
  DOT11_AUTH_ALGO_WPA_RSNA_PSK = 7,
  DOT11_AUTH_ALGO_IHV_START = 0x80000000,
  DOT11_AUTH_ALGO_IHV_END = 0xFFFFFFFF
}
 
enum  _DOT11_CIPHER_ALGORITHM {
  DOT11_CIPHER_ALGO_NONE = 0x00000000,
  DOT11_CIPHER_ALGO_WEP40 = 0x00000001,
  DOT11_CIPHER_ALGO_TKIP = 0x00000002,
  DOT11_CIPHER_ALGO_CCMP = 0x00000004,
  DOT11_CIPHER_ALGO_WEP104 = 0x00000005,
  DOT11_CIPHER_ALGO_WPA_USE_GROUP = 0x00000100,
  DOT11_CIPHER_ALGO_RSN_USE_GROUP = 0x00000100,
  DOT11_CIPHER_ALGO_WEP = 0x00000101,
  DOT11_CIPHER_ALGO_IHV_START = 0x80000000,
  DOT11_CIPHER_ALGO_IHV_END = 0xFFFFFFFF
}
 
enum  _WLAN_CONNECTION_MODE {
  wlan_connection_mode_profile = 0,
  wlan_connection_mode_temporary_profile,
  wlan_connection_mode_discovery_secure,
  wlan_connection_mode_discovery_unsecure,
  wlan_connection_mode_auto,
  wlan_connection_mode_invalid
}
 
enum  _WLAN_INTERFACE_TYPE {
  wlan_interface_type_emulated_802_11 = 0,
  wlan_interface_type_native_802_11,
  wlan_interface_type_invalid
}
 
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
}
 
enum  _WLAN_INTF_OPCODE {
  wlan_intf_opcode_autoconf_start = 0x000000000,
  wlan_intf_opcode_autoconf_enabled,
  wlan_intf_opcode_background_scan_enabled,
  wlan_intf_opcode_media_streaming_mode,
  wlan_intf_opcode_radio_state,
  wlan_intf_opcode_bss_type,
  wlan_intf_opcode_interface_state,
  wlan_intf_opcode_current_connection,
  wlan_intf_opcode_channel_number,
  wlan_intf_opcode_supported_infrastructure_auth_cipher_pairs,
  wlan_intf_opcode_supported_adhoc_auth_cipher_pairs,
  wlan_intf_opcode_supported_country_or_region_string_list,
  wlan_intf_opcode_current_operation_mode,
  wlan_intf_opcode_supported_safe_mode,
  wlan_intf_opcode_certified_safe_mode,
  wlan_intf_opcode_hosted_network_capable,
  wlan_intf_opcode_autoconf_end = 0x0fffffff,
  wlan_intf_opcode_msm_start = 0x10000100,
  wlan_intf_opcode_statistics,
  wlan_intf_opcode_rssi,
  wlan_intf_opcode_msm_end = 0x1fffffff,
  wlan_intf_opcode_security_start = 0x20010000,
  wlan_intf_opcode_security_end = 0x2fffffff,
  wlan_intf_opcode_ihv_start = 0x30000000,
  wlan_intf_opcode_ihv_end = 0x3fffffff
}
 
enum  _WLAN_OPCODE_VALUE_TYPE {
  wlan_opcode_value_type_query_only = 0,
  wlan_opcode_value_type_set_by_group_policy,
  wlan_opcode_value_type_set_by_user,
  wlan_opcode_value_type_invalid
}
 

Detailed Description

Getting IPHlpApi Adapter Information (Win32/64).

Note
When compiling winadinf.c, this file must not include any conflicting Watt-32 headers. I.e. to get such advanced information about network adapters, only Win-SDK must be used.
It should be possible to compile this stuff for e.g. Win-Vista even if you run Win-XP SP3. Provided you have an up-to-date Windows SDK. With MSVC, the SDK version can easily be forced using the env-var "CL". E.g. "set CL=-D_WIN32_WINNT=0x601" for Win-Vista. The test of '_WIN32_WINNT' below ensures this variable is '0x501' or higher (Win-XP SP1+).

Definition in file winadinf.h.