ReactOS 0.4.16-dev-297-gc569aee
wlanapi.h File Reference
#include <l2cmn.h>
#include <windot11.h>
#include <eaptypes.h>
Include dependency graph for wlanapi.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _DOT11_NETWORK
 
struct  _DOT11_NETWORK_LIST
 
struct  _WLAN_INTERFACE_INFO
 
struct  _WLAN_INTERFACE_INFO_LIST
 
struct  _WLAN_INTERFACE_CAPABILITY
 
struct  _WLAN_RAW_DATA
 
struct  _WLAN_PROFILE_INFO
 
struct  _WLAN_PROFILE_INFO_LIST
 
struct  _WLAN_AVAILABLE_NETWORK
 
struct  _WLAN_AVAILABLE_NETWORK_LIST
 
struct  _WLAN_CONNECTION_PARAMETERS
 

Macros

#define WLAN_API_VERSION_1_0   0x00000001
 
#define WLAN_API_VERSION_2_0   0x00000002
 
#define WLAN_MAX_PHY_INDEX   64
 
#define WLAN_MAX_NAME_LENGTH   256
 
#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
 

Typedefs

typedef enum _WLAN_OPCODE_VALUE_TYPE WLAN_OPCODE_VALUE_TYPE
 
typedef enum _WLAN_SECURABLE_OBJECT WLAN_SECURABLE_OBJECT
 
typedef enum _WLAN_SECURABLE_OBJECTPWLAN_SECURABLE_OBJECT
 
typedef enum _WLAN_CONNECTION_MODE WLAN_CONNECTION_MODE
 
typedef enum _WLAN_CONNECTION_MODEPWLAN_CONNECTION_MODE
 
typedef enum _WLAN_IHV_CONTROL_TYPE WLAN_IHV_CONTROL_TYPE
 
typedef enum _WLAN_INTF_OPCODE WLAN_INTF_OPCODE
 
typedef enum _WLAN_INTERFACE_STATE WLAN_INTERFACE_STATE
 
typedef enum _WLAN_INTERFACE_TYPE WLAN_INTERFACE_TYPE
 
typedef enum _WLAN_INTERFACE_TYPEPWLAN_INTERFACE_TYPE
 
typedef DWORD WLAN_REASON_CODE
 
typedef DWORDPWLAN_REASON_CODE
 
typedef ULONG WLAN_SIGNAL_QUALITY
 
typedef ULONGPWLAN_SIGNAL_QUALITY
 
typedef struct _DOT11_NETWORK DOT11_NETWORK
 
typedef struct _DOT11_NETWORKPDOT11_NETWORK
 
typedef struct _DOT11_NETWORK_LIST DOT11_NETWORK_LIST
 
typedef struct _DOT11_NETWORK_LISTPDOT11_NETWORK_LIST
 
typedef struct _WLAN_INTERFACE_INFO WLAN_INTERFACE_INFO
 
typedef struct _WLAN_INTERFACE_INFOPWLAN_INTERFACE_INFO
 
typedef struct _WLAN_INTERFACE_INFO_LIST WLAN_INTERFACE_INFO_LIST
 
typedef struct _WLAN_INTERFACE_INFO_LISTPWLAN_INTERFACE_INFO_LIST
 
typedef struct _WLAN_INTERFACE_CAPABILITY WLAN_INTERFACE_CAPABILITY
 
typedef struct _WLAN_INTERFACE_CAPABILITYPWLAN_INTERFACE_CAPABILITY
 
typedef struct _WLAN_RAW_DATA WLAN_RAW_DATA
 
typedef struct _WLAN_RAW_DATAPWLAN_RAW_DATA
 
typedef struct _WLAN_PROFILE_INFO WLAN_PROFILE_INFO
 
typedef struct _WLAN_PROFILE_INFOPWLAN_PROFILE_INFO
 
typedef struct _WLAN_PROFILE_INFO_LIST WLAN_PROFILE_INFO_LIST
 
typedef struct _WLAN_PROFILE_INFO_LISTPWLAN_PROFILE_INFO_LIST
 
typedef struct _WLAN_AVAILABLE_NETWORK WLAN_AVAILABLE_NETWORK
 
typedef struct _WLAN_AVAILABLE_NETWORKPWLAN_AVAILABLE_NETWORK
 
typedef struct _WLAN_AVAILABLE_NETWORK_LIST WLAN_AVAILABLE_NETWORK_LIST
 
typedef struct _WLAN_AVAILABLE_NETWORK_LISTPWLAN_AVAILABLE_NETWORK_LIST
 
typedef struct _WLAN_CONNECTION_PARAMETERS WLAN_CONNECTION_PARAMETERS
 
typedef struct _WLAN_CONNECTION_PARAMETERSPWLAN_CONNECTION_PARAMETERS
 
typedef L2_NOTIFICATION_DATA WLAN_NOTIFICATION_DATA
 
typedef L2_NOTIFICATION_DATAPWLAN_NOTIFICATION_DATA
 
typedef void(__stdcallWLAN_NOTIFICATION_CALLBACK) (PWLAN_NOTIFICATION_DATA, PVOID)
 

Enumerations

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 }
 
enum  _WLAN_SECURABLE_OBJECT {
  wlan_secure_permit_list = 0 , wlan_secure_deny_list , wlan_secure_ac_enabled , wlan_secure_bc_scan_enabled ,
  wlan_secure_bss_type , wlan_secure_show_denied , wlan_secure_interface_properties , wlan_secure_ihv_control ,
  wlan_secure_all_user_profiles_order , wlan_secure_add_new_all_user_profiles , wlan_secure_add_new_per_user_profiles , wlan_secure_media_streaming_mode_enabled ,
  wlan_secure_current_operation_mode , WLAN_SECURABLE_OBJECT_COUNT
}
 
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_IHV_CONTROL_TYPE { wlan_ihv_control_type_service , wlan_ihv_control_type_driver }
 
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_management_frame_protection_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_INTERFACE_STATE {
  wlan_interface_state_not_ready = 0 , 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_INTERFACE_TYPE { wlan_interface_type_emulated_802_11 = 0 , wlan_interface_type_native_802_11 , wlan_interface_type_invalid }
 

Functions

PVOID WINAPI WlanAllocateMemory (DWORD dwSize)
 
VOID WINAPI WlanFreeMemory (PVOID pMemory)
 
DWORD WINAPI WlanOpenHandle (IN DWORD dwClientVersion, PVOID pReserved, OUT DWORD *pdwNegotiatedVersion, OUT HANDLE *phClientHandle)
 
DWORD WINAPI WlanCloseHandle (IN HANDLE hClientHandle, PVOID pReserved)
 
DWORD WINAPI WlanConnect (IN HANDLE hClientHandle, IN const GUID *pInterfaceGuid, IN const PWLAN_CONNECTION_PARAMETERS pConnectionParameters, PVOID pReserved)
 
DWORD WINAPI WlanDisconnect (IN HANDLE hClientHandle, IN const GUID *pInterfaceGuid, PVOID pReserved)
 
DWORD WINAPI WlanEnumInterfaces (IN HANDLE hClientHandle, PVOID pReserved, OUT PWLAN_INTERFACE_INFO_LIST *ppInterfaceList)
 
DWORD WINAPI WlanGetAvailableNetworkList (IN HANDLE hClientHandle, IN const GUID *pInterfaceGuid, IN DWORD dwFlags, PVOID pReserved, OUT PWLAN_AVAILABLE_NETWORK_LIST *ppAvailableNetworkList)
 
DWORD WINAPI WlanGetInterfaceCapability (IN HANDLE hClientHandle, IN const GUID *pInterfaceGuid, PVOID pReserved, OUT PWLAN_INTERFACE_CAPABILITY *ppCapability)
 
DWORD WINAPI WlanDeleteProfile (IN HANDLE hClientHandle, IN const GUID *pInterfaceGuid, IN LPCWSTR strProfileName, PVOID pReserved)
 
DWORD WINAPI WlanGetProfile (IN HANDLE hClientHandle, IN const GUID *pInterfaceGuid, IN LPCWSTR strProfileName, PVOID pReserved, OUT LPWSTR *pstrProfileXml, DWORD *pdwFlags, PDWORD pdwGrantedAccess)
 
DWORD WINAPI WlanGetProfileCustomUserData (IN HANDLE hClientHandle, IN const GUID *pInterfaceGuid, IN LPCWSTR strProfileName, PVOID pReserved, OUT DWORD *pdwDataSize, OUT PBYTE *ppData)
 
DWORD WINAPI WlanGetProfileList (IN HANDLE hClientHandle, IN const GUID *pInterfaceGuid, PVOID pReserved, OUT PWLAN_PROFILE_INFO_LIST *ppProfileList)
 
DWORD WINAPI WlanIhvControl (IN HANDLE hClientHandle, IN const GUID *pInterfaceGuid, IN WLAN_IHV_CONTROL_TYPE Type, IN DWORD dwInBufferSize, IN PVOID pInBuffer, IN DWORD dwOutBufferSize, PVOID pOutBuffer, OUT PDWORD pdwBytesReturned)
 
DWORD WINAPI WlanQueryInterface (IN HANDLE hClientHandle, IN const GUID *pInterfaceGuid, IN WLAN_INTF_OPCODE OpCode, PVOID pReserved, OUT PDWORD pdwDataSize, OUT PVOID *ppData, WLAN_OPCODE_VALUE_TYPE *pWlanOpcodeValueType)
 
DWORD WINAPI WlanReasonCodeToString (IN DWORD dwReasonCode, IN DWORD dwBufferSize, IN PWCHAR pStringBuffer, PVOID pReserved)
 
DWORD WINAPI WlanRegisterNotification (IN HANDLE hClientHandle, IN DWORD dwNotifSource, IN BOOL bIgnoreDuplicate, WLAN_NOTIFICATION_CALLBACK funcCallback, PVOID pCallbackContext, PVOID pReserved, PDWORD pdwPrevNotifSource)
 
DWORD WINAPI WlanRenameProfile (IN HANDLE hClientHandle, IN const GUID *pInterfaceGuid, IN LPCWSTR strOldProfileName, IN LPCWSTR strNewProfileName, PVOID pReserved)
 
DWORD WINAPI WlanSetProfile (IN HANDLE hClientHandle, IN const GUID *pInterfaceGuid, IN DWORD dwFlags, IN LPCWSTR strProfileXml, LPCWSTR strAllUserProfileSecurity, IN BOOL bOverwrite, PVOID pReserved, OUT DWORD *pdwReasonCode)
 
DWORD WINAPI WlanSetProfileCustomUserData (IN HANDLE hClientHandle, IN const GUID *pInterfaceGuid, IN LPCWSTR strProfileName, IN DWORD dwDataSize, IN const PBYTE pData, PVOID pReserved)
 
DWORD WINAPI WlanSetProfileEapUserData (IN HANDLE hClientHandle, IN const GUID *pInterfaceGuid, IN LPCWSTR strProfileName, IN EAP_METHOD_TYPE eapType, IN DWORD dwFlags, IN DWORD dwEapUserDataSize, IN const LPBYTE pbEapUserData, PVOID pReserved)
 
DWORD WINAPI WlanSetProfileList (IN HANDLE hClientHandle, IN const GUID *pInterfaceGuid, DWORD dwItems, IN LPCWSTR *strProfileNames, PVOID pReserved)
 
DWORD WINAPI WlanSetSecuritySettings (IN HANDLE hClientHandle, IN WLAN_SECURABLE_OBJECT SecurableObject, IN LPCWSTR strModifiedSDDL)
 
DWORD WINAPI WlanScan (IN HANDLE hClientHandle, IN const GUID *pInterfaceGuid, IN PDOT11_SSID pDot11Ssid, IN PWLAN_RAW_DATA pIeData, PVOID pReserved)
 

Macro Definition Documentation

◆ WLAN_API_VERSION_1_0

#define WLAN_API_VERSION_1_0   0x00000001

Definition at line 13 of file wlanapi.h.

◆ WLAN_API_VERSION_2_0

#define WLAN_API_VERSION_2_0   0x00000002

Definition at line 14 of file wlanapi.h.

◆ WLAN_AVAILABLE_NETWORK_ANQP_SUPPORTED

#define WLAN_AVAILABLE_NETWORK_ANQP_SUPPORTED   0x00000020

Definition at line 27 of file wlanapi.h.

◆ WLAN_AVAILABLE_NETWORK_AUTO_CONNECT_FAILED

#define WLAN_AVAILABLE_NETWORK_AUTO_CONNECT_FAILED   0x00000100

Definition at line 30 of file wlanapi.h.

◆ WLAN_AVAILABLE_NETWORK_CONNECTED

#define WLAN_AVAILABLE_NETWORK_CONNECTED   0x00000001

Definition at line 22 of file wlanapi.h.

◆ WLAN_AVAILABLE_NETWORK_CONSOLE_USER_PROFILE

#define WLAN_AVAILABLE_NETWORK_CONSOLE_USER_PROFILE   0x00000004

Definition at line 24 of file wlanapi.h.

◆ WLAN_AVAILABLE_NETWORK_HAS_PROFILE

#define WLAN_AVAILABLE_NETWORK_HAS_PROFILE   0x00000002

Definition at line 23 of file wlanapi.h.

◆ WLAN_AVAILABLE_NETWORK_HOTSPOT2_DOMAIN

#define WLAN_AVAILABLE_NETWORK_HOTSPOT2_DOMAIN   0x00000040

Definition at line 28 of file wlanapi.h.

◆ WLAN_AVAILABLE_NETWORK_HOTSPOT2_ENABLED

#define WLAN_AVAILABLE_NETWORK_HOTSPOT2_ENABLED   0x00000010

Definition at line 26 of file wlanapi.h.

◆ WLAN_AVAILABLE_NETWORK_HOTSPOT2_ROAMING

#define WLAN_AVAILABLE_NETWORK_HOTSPOT2_ROAMING   0x00000080

Definition at line 29 of file wlanapi.h.

◆ WLAN_AVAILABLE_NETWORK_INCLUDE_ALL_ADHOC_PROFILES

#define WLAN_AVAILABLE_NETWORK_INCLUDE_ALL_ADHOC_PROFILES   0x00000001

Definition at line 19 of file wlanapi.h.

◆ WLAN_AVAILABLE_NETWORK_INCLUDE_ALL_MANUAL_HIDDEN_PROFILES

#define WLAN_AVAILABLE_NETWORK_INCLUDE_ALL_MANUAL_HIDDEN_PROFILES   0x00000002

Definition at line 20 of file wlanapi.h.

◆ WLAN_AVAILABLE_NETWORK_INTERWORKING_SUPPORTED

#define WLAN_AVAILABLE_NETWORK_INTERWORKING_SUPPORTED   0x00000008

Definition at line 25 of file wlanapi.h.

◆ WLAN_MAX_NAME_LENGTH

#define WLAN_MAX_NAME_LENGTH   256

Definition at line 17 of file wlanapi.h.

◆ WLAN_MAX_PHY_INDEX

#define WLAN_MAX_PHY_INDEX   64

Definition at line 16 of file wlanapi.h.

Typedef Documentation

◆ DOT11_NETWORK

◆ DOT11_NETWORK_LIST

◆ PDOT11_NETWORK

◆ PDOT11_NETWORK_LIST

◆ PWLAN_AVAILABLE_NETWORK

◆ PWLAN_AVAILABLE_NETWORK_LIST

◆ PWLAN_CONNECTION_MODE

◆ PWLAN_CONNECTION_PARAMETERS

◆ PWLAN_INTERFACE_CAPABILITY

◆ PWLAN_INTERFACE_INFO

◆ PWLAN_INTERFACE_INFO_LIST

◆ PWLAN_INTERFACE_TYPE

◆ PWLAN_NOTIFICATION_DATA

Definition at line 243 of file wlanapi.h.

◆ PWLAN_PROFILE_INFO

◆ PWLAN_PROFILE_INFO_LIST

◆ PWLAN_RAW_DATA

◆ PWLAN_REASON_CODE

Definition at line 135 of file wlanapi.h.

◆ PWLAN_SECURABLE_OBJECT

◆ PWLAN_SIGNAL_QUALITY

Definition at line 136 of file wlanapi.h.

◆ WLAN_AVAILABLE_NETWORK

◆ WLAN_AVAILABLE_NETWORK_LIST

◆ WLAN_CONNECTION_MODE

◆ WLAN_CONNECTION_PARAMETERS

◆ WLAN_IHV_CONTROL_TYPE

◆ WLAN_INTERFACE_CAPABILITY

◆ WLAN_INTERFACE_INFO

◆ WLAN_INTERFACE_INFO_LIST

◆ WLAN_INTERFACE_STATE

◆ WLAN_INTERFACE_TYPE

◆ WLAN_INTF_OPCODE

◆ WLAN_NOTIFICATION_CALLBACK

typedef void(__stdcall * WLAN_NOTIFICATION_CALLBACK) (PWLAN_NOTIFICATION_DATA, PVOID)

Definition at line 245 of file wlanapi.h.

◆ WLAN_NOTIFICATION_DATA

Definition at line 243 of file wlanapi.h.

◆ WLAN_OPCODE_VALUE_TYPE

◆ WLAN_PROFILE_INFO

◆ WLAN_PROFILE_INFO_LIST

◆ WLAN_RAW_DATA

◆ WLAN_REASON_CODE

Definition at line 135 of file wlanapi.h.

◆ WLAN_SECURABLE_OBJECT

◆ WLAN_SIGNAL_QUALITY

Definition at line 136 of file wlanapi.h.

Enumeration Type Documentation

◆ _WLAN_CONNECTION_MODE

Enumerator
wlan_connection_mode_profile 
wlan_connection_mode_temporary_profile 
wlan_connection_mode_discovery_secure 
wlan_connection_mode_discovery_unsecure 
wlan_connection_mode_auto 
wlan_connection_mode_invalid 

Definition at line 62 of file wlanapi.h.

62 {
@ wlan_connection_mode_profile
Definition: wlanapi.h:63
@ wlan_connection_mode_discovery_secure
Definition: wlanapi.h:65
@ wlan_connection_mode_discovery_unsecure
Definition: wlanapi.h:66
@ wlan_connection_mode_auto
Definition: wlanapi.h:67
@ wlan_connection_mode_temporary_profile
Definition: wlanapi.h:64
@ wlan_connection_mode_invalid
Definition: wlanapi.h:68
enum _WLAN_CONNECTION_MODE WLAN_CONNECTION_MODE
enum _WLAN_CONNECTION_MODE * PWLAN_CONNECTION_MODE

◆ _WLAN_IHV_CONTROL_TYPE

Enumerator
wlan_ihv_control_type_service 
wlan_ihv_control_type_driver 

Definition at line 74 of file wlanapi.h.

74 {
75#endif
78} WLAN_IHV_CONTROL_TYPE; /* HACK , *PWLAN_IHV_CONTROL_TYPE; */
enum _WLAN_IHV_CONTROL_TYPE WLAN_IHV_CONTROL_TYPE
@ wlan_ihv_control_type_driver
Definition: wlanapi.h:77
@ wlan_ihv_control_type_service
Definition: wlanapi.h:76

◆ _WLAN_INTERFACE_STATE

Enumerator
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 

Definition at line 116 of file wlanapi.h.

116 {
117#endif
@ wlan_interface_state_discovering
Definition: wlanapi.h:124
@ wlan_interface_state_connected
Definition: wlanapi.h:119
@ wlan_interface_state_ad_hoc_network_formed
Definition: wlanapi.h:120
@ wlan_interface_state_authenticating
Definition: wlanapi.h:125
@ wlan_interface_state_not_ready
Definition: wlanapi.h:118
@ wlan_interface_state_disconnected
Definition: wlanapi.h:122
@ wlan_interface_state_disconnecting
Definition: wlanapi.h:121
@ wlan_interface_state_associating
Definition: wlanapi.h:123
enum _WLAN_INTERFACE_STATE WLAN_INTERFACE_STATE

◆ _WLAN_INTERFACE_TYPE

Enumerator
wlan_interface_type_emulated_802_11 
wlan_interface_type_native_802_11 
wlan_interface_type_invalid 

Definition at line 128 of file wlanapi.h.

128 {
enum _WLAN_INTERFACE_TYPE * PWLAN_INTERFACE_TYPE
@ wlan_interface_type_invalid
Definition: wlanapi.h:131
@ wlan_interface_type_emulated_802_11
Definition: wlanapi.h:129
@ wlan_interface_type_native_802_11
Definition: wlanapi.h:130
enum _WLAN_INTERFACE_TYPE WLAN_INTERFACE_TYPE

◆ _WLAN_INTF_OPCODE

Enumerator
wlan_intf_opcode_autoconf_start 
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_management_frame_protection_capable 
wlan_intf_opcode_autoconf_end 
wlan_intf_opcode_msm_start 
wlan_intf_opcode_statistics 
wlan_intf_opcode_rssi 
wlan_intf_opcode_msm_end 
wlan_intf_opcode_security_start 
wlan_intf_opcode_security_end 
wlan_intf_opcode_ihv_start 
wlan_intf_opcode_ihv_end 

Definition at line 83 of file wlanapi.h.

83 {
84#endif
103 wlan_intf_opcode_msm_start = 0x10000100,
106 wlan_intf_opcode_msm_end = 0x1fffffff,
109 wlan_intf_opcode_ihv_start = 0x30000000,
110 wlan_intf_opcode_ihv_end = 0x3fffffff
111} WLAN_INTF_OPCODE; /* HACK: WIDL is broken , *PWLAN_INTF_OPCODE; */
enum _WLAN_INTF_OPCODE WLAN_INTF_OPCODE
@ wlan_intf_opcode_msm_end
Definition: wlanapi.h:106
@ wlan_intf_opcode_statistics
Definition: wlanapi.h:104
@ wlan_intf_opcode_current_operation_mode
Definition: wlanapi.h:97
@ wlan_intf_opcode_media_streaming_mode
Definition: wlanapi.h:88
@ wlan_intf_opcode_hosted_network_capable
Definition: wlanapi.h:100
@ wlan_intf_opcode_certified_safe_mode
Definition: wlanapi.h:99
@ wlan_intf_opcode_management_frame_protection_capable
Definition: wlanapi.h:101
@ wlan_intf_opcode_supported_infrastructure_auth_cipher_pairs
Definition: wlanapi.h:94
@ wlan_intf_opcode_radio_state
Definition: wlanapi.h:89
@ wlan_intf_opcode_background_scan_enabled
Definition: wlanapi.h:87
@ wlan_intf_opcode_ihv_start
Definition: wlanapi.h:109
@ wlan_intf_opcode_current_connection
Definition: wlanapi.h:92
@ wlan_intf_opcode_msm_start
Definition: wlanapi.h:103
@ wlan_intf_opcode_channel_number
Definition: wlanapi.h:93
@ wlan_intf_opcode_security_end
Definition: wlanapi.h:108
@ wlan_intf_opcode_ihv_end
Definition: wlanapi.h:110
@ wlan_intf_opcode_security_start
Definition: wlanapi.h:107
@ wlan_intf_opcode_autoconf_enabled
Definition: wlanapi.h:86
@ wlan_intf_opcode_supported_safe_mode
Definition: wlanapi.h:98
@ wlan_intf_opcode_autoconf_end
Definition: wlanapi.h:102
@ wlan_intf_opcode_supported_adhoc_auth_cipher_pairs
Definition: wlanapi.h:95
@ wlan_intf_opcode_supported_country_or_region_string_list
Definition: wlanapi.h:96
@ wlan_intf_opcode_interface_state
Definition: wlanapi.h:91
@ wlan_intf_opcode_autoconf_start
Definition: wlanapi.h:85
@ wlan_intf_opcode_rssi
Definition: wlanapi.h:105
@ wlan_intf_opcode_bss_type
Definition: wlanapi.h:90

◆ _WLAN_OPCODE_VALUE_TYPE

Enumerator
wlan_opcode_value_type_query_only 
wlan_opcode_value_type_set_by_group_policy 
wlan_opcode_value_type_set_by_user 
wlan_opcode_value_type_invalid 

Definition at line 37 of file wlanapi.h.

37 {
38#endif
43} WLAN_OPCODE_VALUE_TYPE; /* HACK: WIDL is broken , *PWLAN_OPCODE_VALUE_TYPE; */
enum _WLAN_OPCODE_VALUE_TYPE WLAN_OPCODE_VALUE_TYPE
@ wlan_opcode_value_type_query_only
Definition: wlanapi.h:39
@ wlan_opcode_value_type_set_by_group_policy
Definition: wlanapi.h:40
@ wlan_opcode_value_type_set_by_user
Definition: wlanapi.h:41
@ wlan_opcode_value_type_invalid
Definition: wlanapi.h:42

◆ _WLAN_SECURABLE_OBJECT

Enumerator
wlan_secure_permit_list 
wlan_secure_deny_list 
wlan_secure_ac_enabled 
wlan_secure_bc_scan_enabled 
wlan_secure_bss_type 
wlan_secure_show_denied 
wlan_secure_interface_properties 
wlan_secure_ihv_control 
wlan_secure_all_user_profiles_order 
wlan_secure_add_new_all_user_profiles 
wlan_secure_add_new_per_user_profiles 
wlan_secure_media_streaming_mode_enabled 
wlan_secure_current_operation_mode 
WLAN_SECURABLE_OBJECT_COUNT 

Definition at line 45 of file wlanapi.h.

45 {
enum _WLAN_SECURABLE_OBJECT WLAN_SECURABLE_OBJECT
enum _WLAN_SECURABLE_OBJECT * PWLAN_SECURABLE_OBJECT
@ wlan_secure_add_new_all_user_profiles
Definition: wlanapi.h:55
@ wlan_secure_all_user_profiles_order
Definition: wlanapi.h:54
@ wlan_secure_deny_list
Definition: wlanapi.h:47
@ WLAN_SECURABLE_OBJECT_COUNT
Definition: wlanapi.h:59
@ wlan_secure_media_streaming_mode_enabled
Definition: wlanapi.h:57
@ wlan_secure_current_operation_mode
Definition: wlanapi.h:58
@ wlan_secure_ac_enabled
Definition: wlanapi.h:48
@ wlan_secure_show_denied
Definition: wlanapi.h:51
@ wlan_secure_ihv_control
Definition: wlanapi.h:53
@ wlan_secure_bss_type
Definition: wlanapi.h:50
@ wlan_secure_permit_list
Definition: wlanapi.h:46
@ wlan_secure_bc_scan_enabled
Definition: wlanapi.h:49
@ wlan_secure_interface_properties
Definition: wlanapi.h:52
@ wlan_secure_add_new_per_user_profiles
Definition: wlanapi.h:56

Function Documentation

◆ WlanAllocateMemory()

PVOID WINAPI WlanAllocateMemory ( DWORD  dwSize)

◆ WlanCloseHandle()

DWORD WINAPI WlanCloseHandle ( IN HANDLE  hClientHandle,
PVOID  pReserved 
)

Definition at line 203 of file main.c.

205{
206 DWORD dwResult = ERROR_SUCCESS;
207
208 if ((pReserved != NULL) || (hClientHandle == NULL))
210
212 {
213 dwResult = _RpcCloseHandle(&hClientHandle);
214 }
216 {
218 }
220
221 return dwResult;
222}
DWORD _RpcCloseHandle(LPWLANSVC_RPC_HANDLE phClientHandle)
Definition: rpcserver.c:97
#define ERROR_SUCCESS
Definition: deptool.c:10
#define NULL
Definition: types.h:112
#define ERROR_INVALID_PARAMETER
Definition: compat.h:101
DWORD WlanRpcStatusToWinError(RPC_STATUS Status)
Definition: main.c:36
unsigned long DWORD
Definition: ntddk_ex.h:95
#define EXCEPTION_EXECUTE_HANDLER
Definition: excpt.h:85
#define RpcEndExcept
Definition: rpc.h:128
#define RpcTryExcept
Definition: rpc.h:126
#define RpcExcept(expr)
Definition: rpc.h:127
#define RpcExceptionCode()
Definition: rpc.h:132

Referenced by WlanCloseHandle_test(), and WlanOpenHandle_test().

◆ WlanConnect()

DWORD WINAPI WlanConnect ( IN HANDLE  hClientHandle,
IN const GUID pInterfaceGuid,
IN const PWLAN_CONNECTION_PARAMETERS  pConnectionParameters,
PVOID  pReserved 
)

Definition at line 125 of file main.c.

129{
130 DWORD dwResult = ERROR_SUCCESS;
131
132 if ((pReserved != NULL) || (hClientHandle == NULL) || (pInterfaceGuid == NULL) || (pConnectionParameters == NULL))
134
136 {
137 dwResult = _RpcConnect(hClientHandle, pInterfaceGuid, &pConnectionParameters);
138 }
140 {
142 }
144
145 return dwResult;
146}
DWORD _RpcConnect(WLANSVC_RPC_HANDLE hClientHandle, const GUID *pInterfaceGuid, const PWLAN_CONNECTION_PARAMETERS *pConnectionParameters)
Definition: rpcserver.c:310

◆ WlanDeleteProfile()

DWORD WINAPI WlanDeleteProfile ( IN HANDLE  hClientHandle,
IN const GUID pInterfaceGuid,
IN LPCWSTR  strProfileName,
PVOID  pReserved 
)

Definition at line 37 of file profile.c.

41{
42 DWORD dwResult = ERROR_SUCCESS;
43
44 if ((pReserved != NULL) || (hClientHandle == NULL) || (pInterfaceGuid == NULL) || (strProfileName == NULL))
46
48 {
49 dwResult = _RpcDeleteProfile(hClientHandle, pInterfaceGuid, strProfileName);
50 }
52 {
53 dwResult = RpcExceptionCode();
54 }
56
57 return dwResult;
58}
DWORD _RpcDeleteProfile(WLANSVC_RPC_HANDLE hClientHandle, const GUID *pInterfaceGuid, const wchar_t *strProfileName)
Definition: rpcserver.c:382

Referenced by WlanDeleteProfile_test().

◆ WlanDisconnect()

DWORD WINAPI WlanDisconnect ( IN HANDLE  hClientHandle,
IN const GUID pInterfaceGuid,
PVOID  pReserved 
)

Definition at line 150 of file main.c.

153{
154 DWORD dwResult = ERROR_SUCCESS;
155
156 if ((pReserved != NULL) || (hClientHandle == NULL) || (pInterfaceGuid == NULL))
158
160 {
161 dwResult = _RpcDisconnect(hClientHandle, pInterfaceGuid);
162 }
164 {
166 }
168
169 return dwResult;
170}
DWORD _RpcDisconnect(WLANSVC_RPC_HANDLE hClientHandle, const GUID *pInterfaceGUID)
Definition: rpcserver.c:319

◆ WlanEnumInterfaces()

DWORD WINAPI WlanEnumInterfaces ( IN HANDLE  hClientHandle,
PVOID  pReserved,
OUT PWLAN_INTERFACE_INFO_LIST ppInterfaceList 
)

Definition at line 226 of file main.c.

229{
230 DWORD dwResult = ERROR_SUCCESS;
231
232 if ((pReserved != NULL) || (ppInterfaceList == NULL) || (hClientHandle == NULL))
234
236 {
237 dwResult = _RpcEnumInterfaces(hClientHandle, ppInterfaceList);
238 }
240 {
242 }
244
245 return dwResult;
246}
DWORD _RpcEnumInterfaces(WLANSVC_RPC_HANDLE hClientHandle, PWLAN_INTERFACE_INFO_LIST *ppInterfaceList)
Definition: rpcserver.c:114

Referenced by WlanEnumInterfaces_test().

◆ WlanFreeMemory()

VOID WINAPI WlanFreeMemory ( PVOID  pMemory)

◆ WlanGetAvailableNetworkList()

DWORD WINAPI WlanGetAvailableNetworkList ( IN HANDLE  hClientHandle,
IN const GUID pInterfaceGuid,
IN DWORD  dwFlags,
PVOID  pReserved,
OUT PWLAN_AVAILABLE_NETWORK_LIST ppAvailableNetworkList 
)

Definition at line 375 of file main.c.

380{
381 if ((pReserved != NULL) || (pInterfaceGuid == NULL) || (hClientHandle == NULL) || (ppAvailableNetworkList == NULL))
383
385 return ERROR_SUCCESS;
386}
#define UNIMPLEMENTED
Definition: ntoskrnl.c:15

◆ WlanGetInterfaceCapability()

DWORD WINAPI WlanGetInterfaceCapability ( IN HANDLE  hClientHandle,
IN const GUID pInterfaceGuid,
PVOID  pReserved,
OUT PWLAN_INTERFACE_CAPABILITY ppCapability 
)

Definition at line 293 of file main.c.

297{
298 if ((pReserved != NULL) || (pInterfaceGuid == NULL) || (hClientHandle == NULL) || (ppCapability == NULL))
300
302 return ERROR_SUCCESS;
303}

Referenced by WlanGetInterfaceCapability_test().

◆ WlanGetProfile()

DWORD WINAPI WlanGetProfile ( IN HANDLE  hClientHandle,
IN const GUID pInterfaceGuid,
IN LPCWSTR  strProfileName,
PVOID  pReserved,
OUT LPWSTR pstrProfileXml,
DWORD pdwFlags,
PDWORD  pdwGrantedAccess 
)

Definition at line 88 of file profile.c.

95{
96 if ((pReserved != NULL) || (hClientHandle == NULL) || (pInterfaceGuid == NULL) || (pstrProfileXml == NULL))
98
100 return ERROR_SUCCESS;
101}

Referenced by WlanGetProfile_test().

◆ WlanGetProfileCustomUserData()

DWORD WINAPI WlanGetProfileCustomUserData ( IN HANDLE  hClientHandle,
IN const GUID pInterfaceGuid,
IN LPCWSTR  strProfileName,
PVOID  pReserved,
OUT DWORD pdwDataSize,
OUT PBYTE ppData 
)

Definition at line 123 of file profile.c.

129{
130 if ((pReserved != NULL) || (hClientHandle == NULL) || (pInterfaceGuid == NULL) || (strProfileName == NULL))
132
134 return ERROR_SUCCESS;
135}

◆ WlanGetProfileList()

DWORD WINAPI WlanGetProfileList ( IN HANDLE  hClientHandle,
IN const GUID pInterfaceGuid,
PVOID  pReserved,
OUT PWLAN_PROFILE_INFO_LIST ppProfileList 
)

Definition at line 158 of file profile.c.

162{
163 if ((pReserved != NULL) || (hClientHandle == NULL) || (pInterfaceGuid == NULL) || (ppProfileList == NULL))
165
167 return ERROR_SUCCESS;
168}

◆ WlanIhvControl()

DWORD WINAPI WlanIhvControl ( IN HANDLE  hClientHandle,
IN const GUID pInterfaceGuid,
IN WLAN_IHV_CONTROL_TYPE  Type,
IN DWORD  dwInBufferSize,
IN PVOID  pInBuffer,
IN DWORD  dwOutBufferSize,
PVOID  pOutBuffer,
OUT PDWORD  pdwBytesReturned 
)

Definition at line 333 of file main.c.

341{
342 if ((hClientHandle == NULL) || (pInterfaceGuid == NULL) || (pdwBytesReturned == NULL))
344
346 return ERROR_SUCCESS;
347}

◆ WlanOpenHandle()

DWORD WINAPI WlanOpenHandle ( IN DWORD  dwClientVersion,
PVOID  pReserved,
OUT DWORD pdwNegotiatedVersion,
OUT HANDLE phClientHandle 
)

Definition at line 174 of file main.c.

178{
179 DWORD dwResult = ERROR_SUCCESS;
180 WCHAR szDummy[] = L"localhost";
181
182 if ((pReserved != NULL) || (pdwNegotiatedVersion == NULL) || (phClientHandle == NULL))
184
186 {
187 dwResult = _RpcOpenHandle(szDummy,
188 dwClientVersion,
189 pdwNegotiatedVersion,
190 (WLANSVC_RPC_HANDLE) phClientHandle);
191 }
193 {
195 }
197
198 return dwResult;
199}
DWORD _RpcOpenHandle(wchar_t *arg_1, DWORD dwClientVersion, DWORD *pdwNegotiatedVersion, LPWLANSVC_RPC_HANDLE phClientHandle)
Definition: rpcserver.c:67
#define L(x)
Definition: ntvdm.h:50
__wchar_t WCHAR
Definition: xmlstorage.h:180

Referenced by WlanOpenHandle_test().

◆ WlanQueryInterface()

DWORD WINAPI WlanQueryInterface ( IN HANDLE  hClientHandle,
IN const GUID pInterfaceGuid,
IN WLAN_INTF_OPCODE  OpCode,
PVOID  pReserved,
OUT PDWORD  pdwDataSize,
OUT PVOID ppData,
WLAN_OPCODE_VALUE_TYPE pWlanOpcodeValueType 
)

Definition at line 276 of file main.c.

283{
284 if ((pReserved != NULL) || (pInterfaceGuid == NULL) || (hClientHandle == NULL) || (pdwDataSize == NULL) || (ppData == NULL))
286
288 return ERROR_SUCCESS;
289}
PSDBQUERYRESULT_VISTA PVOID * ppData
Definition: env.c:56

◆ WlanReasonCodeToString()

DWORD WINAPI WlanReasonCodeToString ( IN DWORD  dwReasonCode,
IN DWORD  dwBufferSize,
IN PWCHAR  pStringBuffer,
PVOID  pReserved 
)

Definition at line 319 of file main.c.

323{
324 if ((pReserved != NULL) || (pStringBuffer == NULL) || (dwBufferSize == 0))
326
328 return ERROR_SUCCESS;
329}

◆ WlanRegisterNotification()

DWORD WINAPI WlanRegisterNotification ( IN HANDLE  hClientHandle,
IN DWORD  dwNotifSource,
IN BOOL  bIgnoreDuplicate,
WLAN_NOTIFICATION_CALLBACK  funcCallback,
PVOID  pCallbackContext,
PVOID  pReserved,
PDWORD  pdwPrevNotifSource 
)

Definition at line 305 of file main.c.

312{
314 return ERROR_SUCCESS;
315}

◆ WlanRenameProfile()

DWORD WINAPI WlanRenameProfile ( IN HANDLE  hClientHandle,
IN const GUID pInterfaceGuid,
IN LPCWSTR  strOldProfileName,
IN LPCWSTR  strNewProfileName,
PVOID  pReserved 
)

Definition at line 62 of file profile.c.

67{
68 DWORD dwResult = ERROR_SUCCESS;
69
70 if ((pReserved != NULL) || (hClientHandle == NULL) || (pInterfaceGuid == NULL) || (strOldProfileName == NULL) || (strNewProfileName == NULL))
72
74 {
75 dwResult = _RpcRenameProfile(hClientHandle, pInterfaceGuid, strOldProfileName, strNewProfileName);
76 }
78 {
79 dwResult = RpcExceptionCode();
80 }
82
83 return dwResult;
84}
DWORD _RpcRenameProfile(WLANSVC_RPC_HANDLE hClientHandle, const GUID *pInterfaceGuid, const wchar_t *strOldProfileName, const wchar_t *strNewProfileName)
Definition: rpcserver.c:391

Referenced by WlanRenameProfile_test().

◆ WlanScan()

DWORD WINAPI WlanScan ( IN HANDLE  hClientHandle,
IN const GUID pInterfaceGuid,
IN PDOT11_SSID  pDot11Ssid,
IN PWLAN_RAW_DATA  pIeData,
PVOID  pReserved 
)

Definition at line 250 of file main.c.

255{
256 DWORD dwResult = ERROR_SUCCESS;
257
258 if ((pReserved != NULL) || (pInterfaceGuid == NULL) || (hClientHandle == NULL))
260
262 {
263 dwResult = _RpcScan(hClientHandle, pInterfaceGuid, pDot11Ssid, pIeData);
264 }
266 {
268 }
270
271 return dwResult;
272}
DWORD _RpcScan(WLANSVC_RPC_HANDLE hClientHandle, const GUID *pInterfaceGuid, PDOT11_SSID pDot11Ssid, PWLAN_RAW_DATA pIeData)
Definition: rpcserver.c:254

◆ WlanSetProfile()

DWORD WINAPI WlanSetProfile ( IN HANDLE  hClientHandle,
IN const GUID pInterfaceGuid,
IN DWORD  dwFlags,
IN LPCWSTR  strProfileXml,
LPCWSTR  strAllUserProfileSecurity,
IN BOOL  bOverwrite,
PVOID  pReserved,
OUT DWORD pdwReasonCode 
)

Definition at line 105 of file profile.c.

113{
114 if ((pReserved != NULL) || (hClientHandle == NULL) || (pInterfaceGuid == NULL) || (strProfileXml == NULL) || (pdwReasonCode == NULL))
116
118 return ERROR_SUCCESS;
119}

◆ WlanSetProfileCustomUserData()

DWORD WINAPI WlanSetProfileCustomUserData ( IN HANDLE  hClientHandle,
IN const GUID pInterfaceGuid,
IN LPCWSTR  strProfileName,
IN DWORD  dwDataSize,
IN const PBYTE  pData,
PVOID  pReserved 
)

Definition at line 139 of file profile.c.

145{
146 if ((pReserved != NULL) || (hClientHandle == NULL) || (pInterfaceGuid == NULL) || (strProfileName == NULL))
148
149 if ((dwDataSize != 0) && (pData == NULL))
151
153 return ERROR_SUCCESS;
154}
TW_UINT32 TW_UINT16 TW_UINT16 TW_MEMREF pData
Definition: twain.h:1830

◆ WlanSetProfileEapUserData()

DWORD WINAPI WlanSetProfileEapUserData ( IN HANDLE  hClientHandle,
IN const GUID pInterfaceGuid,
IN LPCWSTR  strProfileName,
IN EAP_METHOD_TYPE  eapType,
IN DWORD  dwFlags,
IN DWORD  dwEapUserDataSize,
IN const LPBYTE  pbEapUserData,
PVOID  pReserved 
)

◆ WlanSetProfileList()

DWORD WINAPI WlanSetProfileList ( IN HANDLE  hClientHandle,
IN const GUID pInterfaceGuid,
DWORD  dwItems,
IN LPCWSTR strProfileNames,
PVOID  pReserved 
)

Definition at line 172 of file profile.c.

177{
178 if ((pReserved != NULL) || (hClientHandle == NULL) || (pInterfaceGuid == NULL) || (strProfileNames == NULL) || (dwItems == 0))
180
182 return ERROR_SUCCESS;
183}

◆ WlanSetSecuritySettings()

DWORD WINAPI WlanSetSecuritySettings ( IN HANDLE  hClientHandle,
IN WLAN_SECURABLE_OBJECT  SecurableObject,
IN LPCWSTR  strModifiedSDDL 
)

Definition at line 351 of file main.c.

354{
355 DWORD dwResult = ERROR_SUCCESS;
356
357 if ((hClientHandle == NULL) || (strModifiedSDDL == NULL) || (SecurableObject >= WLAN_SECURABLE_OBJECT_COUNT))
359
361 {
362 dwResult = _RpcSetSecuritySettings(hClientHandle, SecurableObject, strModifiedSDDL);
363 }
365 {
367 }
369
370 return dwResult;
371}
DWORD _RpcSetSecuritySettings(WLANSVC_RPC_HANDLE hClientHandle, WLAN_SECURABLE_OBJECT SecurableObject, const wchar_t *strModifiedSDDL)
Definition: rpcserver.c:599