Headers diff for wlanui.dll between 6.1.7601.17514-Windows_7.0 and 6.3.9600.17415-Windows_8.1 versions



 wlanapi.h (6.1.7601.17514-Windows_7.0)   wlanapi.h (6.3.9600.17415-Windows_8.1) 
skipping to change at line 27 skipping to change at line 27
Revision History: Revision History:
11/8/2004 created 11/8/2004 created
--*/ --*/
#ifndef _WLAN_WLANAPI_H #ifndef _WLAN_WLANAPI_H
#define _WLAN_WLANAPI_H #define _WLAN_WLANAPI_H
#pragma once #pragma once
#include <winapifamily.h>
#pragma region Desktop Family
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
#include <l2cmn.h> #include <l2cmn.h>
#include <windot11.h> #include <windot11.h>
#include <EapTypes.h> #include <EapTypes.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
#ifndef _WIN32_WINNT #ifndef _WIN32_WINNT
skipping to change at line 362 skipping to change at line 366
// Safe mode value is invalid // Safe mode value is invalid
#define WLAN_REASON_CODE_MSMSEC_PROFILE_SAFE_MODE (WLAN_REASON_CODE_MS MSEC_BASE+32) #define WLAN_REASON_CODE_MSMSEC_PROFILE_SAFE_MODE (WLAN_REASON_CODE_MS MSEC_BASE+32)
// Profile requires safe mode, not supported by NIC // Profile requires safe mode, not supported by NIC
#define WLAN_REASON_CODE_MSMSEC_CAPABILITY_PROFILE_SAFE_MODE_NIC (WLAN_REASON_CO DE_MSMSEC_BASE+33) #define WLAN_REASON_CODE_MSMSEC_CAPABILITY_PROFILE_SAFE_MODE_NIC (WLAN_REASON_CO DE_MSMSEC_BASE+33)
// Profile requires safe mode, not supported by network // Profile requires safe mode, not supported by network
#define WLAN_REASON_CODE_MSMSEC_CAPABILITY_PROFILE_SAFE_MODE_NW (WLAN_REASON_CO DE_MSMSEC_BASE+34) #define WLAN_REASON_CODE_MSMSEC_CAPABILITY_PROFILE_SAFE_MODE_NW (WLAN_REASON_CO DE_MSMSEC_BASE+34)
// Profile has unsupported auth // Profile has unsupported auth
#define WLAN_REASON_CODE_MSMSEC_PROFILE_UNSUPPORTED_AUTH (WLAN_REASON_CODE_MS MSEC_BASE+35) #define WLAN_REASON_CODE_MSMSEC_PROFILE_UNSUPPORTED_AUTH (WLAN_REASON_CODE_MS MSEC_BASE+35)
// Profile has unsupported cipher // Profile has unsupported cipher
#define WLAN_REASON_CODE_MSMSEC_PROFILE_UNSUPPORTED_CIPHER (WLAN_REASON_CODE_MS MSEC_BASE+36) #define WLAN_REASON_CODE_MSMSEC_PROFILE_UNSUPPORTED_CIPHER (WLAN_REASON_CODE_MS MSEC_BASE+36)
//If Network requires MFP and NIC does not suppport MFP
#define WLAN_REASON_CODE_MSMSEC_CAPABILITY_MFP_NW_NIC (WLAN_REASON_CODE_MS
MSEC_BASE+37)
// Failed to queue UI request // Failed to queue UI request
#define WLAN_REASON_CODE_MSMSEC_UI_REQUEST_FAILURE (WLAN_REASON_CODE_MS MSEC_CONNECT_BASE+1) #define WLAN_REASON_CODE_MSMSEC_UI_REQUEST_FAILURE (WLAN_REASON_CODE_MS MSEC_CONNECT_BASE+1)
// 802.1x authentication did not start within configured time // 802.1x authentication did not start within configured time
#define WLAN_REASON_CODE_MSMSEC_AUTH_START_TIMEOUT (WLAN_REASON_CODE_MS MSEC_CONNECT_BASE+2) #define WLAN_REASON_CODE_MSMSEC_AUTH_START_TIMEOUT (WLAN_REASON_CODE_MS MSEC_CONNECT_BASE+2)
// 802.1x authentication did not complete within configured time // 802.1x authentication did not complete within configured time
#define WLAN_REASON_CODE_MSMSEC_AUTH_SUCCESS_TIMEOUT (WLAN_REASON_CODE_MS MSEC_CONNECT_BASE+3) #define WLAN_REASON_CODE_MSMSEC_AUTH_SUCCESS_TIMEOUT (WLAN_REASON_CODE_MS MSEC_CONNECT_BASE+3)
// Dynamic key exchange did not start within configured time // Dynamic key exchange did not start within configured time
#define WLAN_REASON_CODE_MSMSEC_KEY_START_TIMEOUT (WLAN_REASON_CODE_MS MSEC_CONNECT_BASE+4) #define WLAN_REASON_CODE_MSMSEC_KEY_START_TIMEOUT (WLAN_REASON_CODE_MS MSEC_CONNECT_BASE+4)
// Dynamic key exchange did not succeed within configured time // Dynamic key exchange did not succeed within configured time
skipping to change at line 412 skipping to change at line 418
#define WLAN_REASON_CODE_MSMSEC_PSK_MISMATCH_SUSPECTED (WLAN_REASON_CODE_MS MSEC_CONNECT_BASE+20) #define WLAN_REASON_CODE_MSMSEC_PSK_MISMATCH_SUSPECTED (WLAN_REASON_CODE_MS MSEC_CONNECT_BASE+20)
// Forced failure because connection method was not secure // Forced failure because connection method was not secure
#define WLAN_REASON_CODE_MSMSEC_FORCED_FAILURE (WLAN_REASON_CODE_MS MSEC_CONNECT_BASE+21) #define WLAN_REASON_CODE_MSMSEC_FORCED_FAILURE (WLAN_REASON_CODE_MS MSEC_CONNECT_BASE+21)
// Message 3 of 4 way handshake contains too many RSN IE (RSN) // Message 3 of 4 way handshake contains too many RSN IE (RSN)
#define WLAN_REASON_CODE_MSMSEC_M3_TOO_MANY_RSNIE (WLAN_REASON_CODE_MS MSEC_CONNECT_BASE+22) #define WLAN_REASON_CODE_MSMSEC_M3_TOO_MANY_RSNIE (WLAN_REASON_CODE_MS MSEC_CONNECT_BASE+22)
// Message 2 of 4 way handshake has no key data (RSN Adhoc) // Message 2 of 4 way handshake has no key data (RSN Adhoc)
#define WLAN_REASON_CODE_MSMSEC_M2_MISSING_KEY_DATA (WLAN_REASON_CODE_MS MSEC_CONNECT_BASE+23) #define WLAN_REASON_CODE_MSMSEC_M2_MISSING_KEY_DATA (WLAN_REASON_CODE_MS MSEC_CONNECT_BASE+23)
// Message 2 of 4 way handshake has no IE (RSN Adhoc) // Message 2 of 4 way handshake has no IE (RSN Adhoc)
#define WLAN_REASON_CODE_MSMSEC_M2_MISSING_IE (WLAN_REASON_CODE_MS MSEC_CONNECT_BASE+24) #define WLAN_REASON_CODE_MSMSEC_M2_MISSING_IE (WLAN_REASON_CODE_MS MSEC_CONNECT_BASE+24)
#define WLAN_REASON_CODE_MSMSEC_AUTH_WCN_COMPLETED (WLAN_REASON_CODE_MS MSEC_CONNECT_BASE+25) #define WLAN_REASON_CODE_MSMSEC_AUTH_WCN_COMPLETED (WLAN_REASON_CODE_MS MSEC_CONNECT_BASE+25)
// Message 3 of 4 way handshake has no Mgmt Group Key (RSN)
#define WLAN_REASON_CODE_MSMSEC_M3_MISSING_MGMT_GRP_KEY (WLAN_REASON_CODE_MS
MSEC_CONNECT_BASE+26)
// Message 1 of group key handshake has no group mgmt key
#define WLAN_REASON_CODE_MSMSEC_G1_MISSING_MGMT_GRP_KEY (WLAN_REASON_CODE_MS
MSEC_CONNECT_BASE+27)
#define WLAN_REASON_CODE_MSMSEC_MAX WLAN_REASON_CODE_MSM SEC_END #define WLAN_REASON_CODE_MSMSEC_MAX WLAN_REASON_CODE_MSM SEC_END
typedef ULONG WLAN_SIGNAL_QUALITY, *PWLAN_SIGNAL_QUALITY; typedef ULONG WLAN_SIGNAL_QUALITY, *PWLAN_SIGNAL_QUALITY;
// available network flags // available network flags
#define WLAN_AVAILABLE_NETWORK_CONNECTED 0x00000001 // This network is currently connected #define WLAN_AVAILABLE_NETWORK_CONNECTED 0x00000001 // This network is currently connected
#define WLAN_AVAILABLE_NETWORK_HAS_PROFILE 0x00000002 // There is a profile for this network #define WLAN_AVAILABLE_NETWORK_HAS_PROFILE 0x00000002 // There is a profile for this network
#define WLAN_AVAILABLE_NETWORK_CONSOLE_USER_PROFILE 0x00000004 // The p rofile is the active console user's per user profile #define WLAN_AVAILABLE_NETWORK_CONSOLE_USER_PROFILE 0x00000004 // The p rofile is the active console user's per user profile
// flags that control the list returned by WlanGetAvailableNetworkList // flags that control the list returned by WlanGetAvailableNetworkList
// include all ad hoc network profiles in the available network list, regardless they are visible or not // include all ad hoc network profiles in the available network list, regardless they are visible or not
#define WLAN_AVAILABLE_NETWORK_INCLUDE_ALL_ADHOC_PROFILES 0x00000001 #define WLAN_AVAILABLE_NETWORK_INCLUDE_ALL_ADHOC_PROFILES 0x00000001
// include all hidden network profiles in the available network list, regardless they are visible or not // include all hidden network profiles in the available network list, regardless they are visible or not
#define WLAN_AVAILABLE_NETWORK_INCLUDE_ALL_MANUAL_HIDDEN_PROFILES 0x00000002 #define WLAN_AVAILABLE_NETWORK_INCLUDE_ALL_MANUAL_HIDDEN_PROFILES 0x00000002
typedef struct _WLAN_RATE_SET { typedef struct _WLAN_RATE_SET {
ULONG uRateSetLength; ULONG uRateSetLength;
__field_ecount_part(DOT11_RATE_SET_MAX_LENGTH, uRateSetLength) USHORT usRate Set[DOT11_RATE_SET_MAX_LENGTH]; _Field_size_part_(DOT11_RATE_SET_MAX_LENGTH, uRateSetLength) USHORT usRateSe t[DOT11_RATE_SET_MAX_LENGTH];
} WLAN_RATE_SET, * PWLAN_RATE_SET; } WLAN_RATE_SET, * PWLAN_RATE_SET;
#define WLAN_MAX_PHY_TYPE_NUMBER 8 #define WLAN_MAX_PHY_TYPE_NUMBER 8
// //
// struct WLAN_AVAILABLE_NETWORK defines information needed for an available net work // struct WLAN_AVAILABLE_NETWORK defines information needed for an available net work
typedef struct _WLAN_AVAILABLE_NETWORK { typedef struct _WLAN_AVAILABLE_NETWORK {
WCHAR strProfileName[WLAN_MAX_NAME_LENGTH]; WCHAR strProfileName[WLAN_MAX_NAME_LENGTH];
DOT11_SSID dot11Ssid; DOT11_SSID dot11Ssid;
DOT11_BSS_TYPE dot11BssType; DOT11_BSS_TYPE dot11BssType;
ULONG uNumberOfBssids; ULONG uNumberOfBssids;
skipping to change at line 655 skipping to change at line 665
} WLAN_INTERFACE_INFO_LIST, *PWLAN_INTERFACE_INFO_LIST; } WLAN_INTERFACE_INFO_LIST, *PWLAN_INTERFACE_INFO_LIST;
// network list // network list
typedef struct _DOT11_NETWORK_LIST { typedef struct _DOT11_NETWORK_LIST {
DWORD dwNumberOfItems; DWORD dwNumberOfItems;
DWORD dwIndex; DWORD dwIndex;
#ifdef __midl #ifdef __midl
[unique, size_is(dwNumberOfItems)] DOT11_NETWORK Network[*]; [unique, size_is(dwNumberOfItems)] DOT11_NETWORK Network[*];
#else #else
__field_ecount(dwNumberOfItems) DOT11_NETWORK Network[1]; _Field_size_(dwNumberOfItems) DOT11_NETWORK Network[1];
#endif #endif
} DOT11_NETWORK_LIST, *PDOT11_NETWORK_LIST; } DOT11_NETWORK_LIST, *PDOT11_NETWORK_LIST;
// power settings // power settings
#ifdef __midl #ifdef __midl
// use the 4-byte enum // use the 4-byte enum
typedef [v1_enum] enum _WLAN_POWER_SETTING { typedef [v1_enum] enum _WLAN_POWER_SETTING {
#else #else
typedef enum _WLAN_POWER_SETTING { typedef enum _WLAN_POWER_SETTING {
#endif #endif
skipping to change at line 728 skipping to change at line 738
// whether an adhoc network is formed or joined // whether an adhoc network is formed or joined
#define WLAN_CONNECTION_NOTIFICATION_ADHOC_NETWORK_FORMED 0x00000001 // F ormed ad hoc network #define WLAN_CONNECTION_NOTIFICATION_ADHOC_NETWORK_FORMED 0x00000001 // F ormed ad hoc network
#define WLAN_CONNECTION_NOTIFICATION_CONSOLE_USER_PROFILE 0x00000004 // T he profile is the active console user's per user profile #define WLAN_CONNECTION_NOTIFICATION_CONSOLE_USER_PROFILE 0x00000004 // T he profile is the active console user's per user profile
typedef struct _WLAN_CONNECTION_NOTIFICATION_DATA { typedef struct _WLAN_CONNECTION_NOTIFICATION_DATA {
WLAN_CONNECTION_MODE wlanConnectionMode; WLAN_CONNECTION_MODE wlanConnectionMode;
WCHAR strProfileName[WLAN_MAX_NAME_LENGTH]; WCHAR strProfileName[WLAN_MAX_NAME_LENGTH];
DOT11_SSID dot11Ssid; DOT11_SSID dot11Ssid;
DOT11_BSS_TYPE dot11BssType; DOT11_BSS_TYPE dot11BssType;
BOOL bSecurityEnabled; BOOL bSecurityEnabled;
WLAN_REASON_CODE wlanReasonCode; WLAN_REASON_CODE wlanReasonCode;
DWORD dwFlags; DWORD dwFlags;
WCHAR strProfileXml[1]; WCHAR strProfileXml[1];
} WLAN_CONNECTION_NOTIFICATION_DATA, *PWLAN_CONNECTION_NOTIFICATION_DATA; } WLAN_CONNECTION_NOTIFICATION_DATA, *PWLAN_CONNECTION_NOTIFICATION_DATA;
// the types of notification // the types of notification
// compatible with L2_NOTIFICATION_SOURCE // compatible with L2_NOTIFICATION_SOURCE
#define WLAN_NOTIFICATION_SOURCE_NONE L2_NOTIFICATION_SOURCE_NONE #define WLAN_NOTIFICATION_SOURCE_NONE L2_NOTIFICATION_SOURCE_NONE
#define WLAN_NOTIFICATION_SOURCE_ALL L2_NOTIFICATION_SOURCE_ALL #define WLAN_NOTIFICATION_SOURCE_ALL L2_NOTIFICATION_SOURCE_ALL
#define WLAN_NOTIFICATION_SOURCE_ACM L2_NOTIFICATION_SOURCE_WLAN_ACM #define WLAN_NOTIFICATION_SOURCE_ACM L2_NOTIFICATION_SOURCE_WLAN_ACM
skipping to change at line 774 skipping to change at line 784
wlan_notification_acm_interface_arrival, wlan_notification_acm_interface_arrival,
wlan_notification_acm_interface_removal, wlan_notification_acm_interface_removal,
wlan_notification_acm_profile_change, wlan_notification_acm_profile_change,
wlan_notification_acm_profile_name_change, wlan_notification_acm_profile_name_change,
wlan_notification_acm_profiles_exhausted, wlan_notification_acm_profiles_exhausted,
wlan_notification_acm_network_not_available, wlan_notification_acm_network_not_available,
wlan_notification_acm_network_available, wlan_notification_acm_network_available,
wlan_notification_acm_disconnecting, wlan_notification_acm_disconnecting,
wlan_notification_acm_disconnected, wlan_notification_acm_disconnected,
wlan_notification_acm_adhoc_network_state_change, wlan_notification_acm_adhoc_network_state_change,
wlan_notification_acm_profile_unblocked,
wlan_notification_acm_screen_power_change,
wlan_notification_acm_profile_blocked,
wlan_notification_acm_scan_list_refresh,
wlan_notification_acm_end wlan_notification_acm_end
} WLAN_NOTIFICATION_ACM, *PWLAN_NOTIFICATION_ACM; } WLAN_NOTIFICATION_ACM, *PWLAN_NOTIFICATION_ACM;
#ifdef __midl #ifdef __midl
// use the 4-byte enum // use the 4-byte enum
typedef [v1_enum] enum _WLAN_NOTIFICATION_MSM { typedef [v1_enum] enum _WLAN_NOTIFICATION_MSM {
#else #else
typedef enum _WLAN_NOTIFICATION_MSM { typedef enum _WLAN_NOTIFICATION_MSM {
#endif #endif
wlan_notification_msm_start = L2_NOTIFICATION_CODE_PUBLIC_BEGIN, wlan_notification_msm_start = L2_NOTIFICATION_CODE_PUBLIC_BEGIN,
skipping to change at line 851 skipping to change at line 865
wlan_intf_opcode_interface_state, wlan_intf_opcode_interface_state,
wlan_intf_opcode_current_connection, wlan_intf_opcode_current_connection,
wlan_intf_opcode_channel_number, wlan_intf_opcode_channel_number,
wlan_intf_opcode_supported_infrastructure_auth_cipher_pairs, wlan_intf_opcode_supported_infrastructure_auth_cipher_pairs,
wlan_intf_opcode_supported_adhoc_auth_cipher_pairs, wlan_intf_opcode_supported_adhoc_auth_cipher_pairs,
wlan_intf_opcode_supported_country_or_region_string_list, wlan_intf_opcode_supported_country_or_region_string_list,
wlan_intf_opcode_current_operation_mode, wlan_intf_opcode_current_operation_mode,
wlan_intf_opcode_supported_safe_mode, wlan_intf_opcode_supported_safe_mode,
wlan_intf_opcode_certified_safe_mode, wlan_intf_opcode_certified_safe_mode,
wlan_intf_opcode_hosted_network_capable, wlan_intf_opcode_hosted_network_capable,
wlan_intf_opcode_management_frame_protection_capable,
wlan_intf_opcode_autoconf_end = 0x0fffffff, wlan_intf_opcode_autoconf_end = 0x0fffffff,
wlan_intf_opcode_msm_start = 0x10000100, wlan_intf_opcode_msm_start = 0x10000100,
wlan_intf_opcode_statistics, wlan_intf_opcode_statistics,
wlan_intf_opcode_rssi, wlan_intf_opcode_rssi,
wlan_intf_opcode_msm_end = 0x1fffffff, wlan_intf_opcode_msm_end = 0x1fffffff,
wlan_intf_opcode_security_start = 0x20010000, wlan_intf_opcode_security_start = 0x20010000,
wlan_intf_opcode_security_end = 0x2fffffff, wlan_intf_opcode_security_end = 0x2fffffff,
wlan_intf_opcode_ihv_start = 0x30000000, wlan_intf_opcode_ihv_start = 0x30000000,
wlan_intf_opcode_ihv_end = 0x3fffffff wlan_intf_opcode_ihv_end = 0x3fffffff
} WLAN_INTF_OPCODE, *PWLAN_INTF_OPCODE; } WLAN_INTF_OPCODE, *PWLAN_INTF_OPCODE;
skipping to change at line 983 skipping to change at line 998
wlan_secure_interface_properties, wlan_secure_interface_properties,
wlan_secure_ihv_control, wlan_secure_ihv_control,
wlan_secure_all_user_profiles_order, wlan_secure_all_user_profiles_order,
wlan_secure_add_new_all_user_profiles, wlan_secure_add_new_all_user_profiles,
wlan_secure_add_new_per_user_profiles, wlan_secure_add_new_per_user_profiles,
wlan_secure_media_streaming_mode_enabled, wlan_secure_media_streaming_mode_enabled,
wlan_secure_current_operation_mode, wlan_secure_current_operation_mode,
wlan_secure_get_plaintext_key, wlan_secure_get_plaintext_key,
wlan_secure_hosted_network_elevated_access, wlan_secure_hosted_network_elevated_access,
wlan_secure_virtual_station_extensibility, wlan_secure_virtual_station_extensibility,
wlan_secure_wfd_elevated_access,
WLAN_SECURABLE_OBJECT_COUNT WLAN_SECURABLE_OBJECT_COUNT
} }
WLAN_SECURABLE_OBJECT, *PWLAN_SECURABLE_OBJECT; WLAN_SECURABLE_OBJECT, *PWLAN_SECURABLE_OBJECT;
//
// WiFi Direct Definitions
//
#define WFD_API_VERSION_1_0 0x00000001
#if ( _WIN32_WINNT >= _WIN32_WINNT_WIN8 )
#define WFD_API_SUPPORTED
#define WFD_API_VERSION WFD_API_VERSION_1_0
#endif
#ifdef WFD_API_SUPPORTED
typedef enum _WFD_ROLE_TYPE {
WFD_ROLE_TYPE_NONE = 0x00,
WFD_ROLE_TYPE_DEVICE = 0x01,
WFD_ROLE_TYPE_GROUP_OWNER = 0x02,
WFD_ROLE_TYPE_CLIENT = 0x04,
WFD_ROLE_TYPE_MAX = 0x05
} WFD_ROLE_TYPE, *PWFD_ROLE_TYPE;
#endif //WFD_API_SUPPORTED
typedef struct _WFD_GROUP_ID
{
DOT11_MAC_ADDRESS DeviceAddress;
DOT11_SSID GroupSSID;
} WFD_GROUP_ID, *PWFD_GROUP_ID;
// public APIs // public APIs
DWORD WINAPI DWORD WINAPI
WlanOpenHandle( WlanOpenHandle(
__in DWORD dwClientVersion, _In_ DWORD dwClientVersion,
__reserved PVOID pReserved, _Reserved_ PVOID pReserved,
__out PDWORD pdwNegotiatedVersion, _Out_ PDWORD pdwNegotiatedVersion,
__out PHANDLE phClientHandle _Out_ PHANDLE phClientHandle
); );
DWORD WINAPI DWORD WINAPI
WlanCloseHandle( WlanCloseHandle(
__in HANDLE hClientHandle, _In_ HANDLE hClientHandle,
__reserved PVOID pReserved _Reserved_ PVOID pReserved
); );
DWORD WINAPI DWORD WINAPI
WlanEnumInterfaces( WlanEnumInterfaces(
__in HANDLE hClientHandle, _In_ HANDLE hClientHandle,
__reserved PVOID pReserved, _Reserved_ PVOID pReserved,
__deref_out PWLAN_INTERFACE_INFO_LIST *ppInterfaceList _Outptr_ PWLAN_INTERFACE_INFO_LIST *ppInterfaceList
); );
DWORD WINAPI DWORD WINAPI
WlanSetAutoConfigParameter( WlanSetAutoConfigParameter(
__in HANDLE hClientHandle, _In_ HANDLE hClientHandle,
__in WLAN_AUTOCONF_OPCODE OpCode, _In_ WLAN_AUTOCONF_OPCODE OpCode,
__in DWORD dwDataSize, _In_ DWORD dwDataSize,
__in_bcount(dwDataSize) CONST PVOID pData, _In_reads_bytes_(dwDataSize) CONST PVOID pData,
__reserved PVOID pReserved _Reserved_ PVOID pReserved
); );
DWORD WINAPI DWORD WINAPI
WlanQueryAutoConfigParameter( WlanQueryAutoConfigParameter(
__in HANDLE hClientHandle, _In_ HANDLE hClientHandle,
__in WLAN_AUTOCONF_OPCODE OpCode, _In_ WLAN_AUTOCONF_OPCODE OpCode,
__reserved PVOID pReserved, _Reserved_ PVOID pReserved,
__out PDWORD pdwDataSize, _Out_ PDWORD pdwDataSize,
__deref_out_bcount(*pdwDataSize) PVOID *ppData, _Outptr_result_bytebuffer_(*pdwDataSize) PVOID *ppData,
__out_opt PWLAN_OPCODE_VALUE_TYPE pWlanOpcodeValueType _Out_opt_ PWLAN_OPCODE_VALUE_TYPE pWlanOpcodeValueType
); );
DWORD WINAPI DWORD WINAPI
WlanGetInterfaceCapability( WlanGetInterfaceCapability(
__in HANDLE hClientHandle, _In_ HANDLE hClientHandle,
__in CONST GUID *pInterfaceGuid, _In_ CONST GUID *pInterfaceGuid,
__reserved PVOID pReserved, _Reserved_ PVOID pReserved,
__deref_out PWLAN_INTERFACE_CAPABILITY *ppCapability _Outptr_ PWLAN_INTERFACE_CAPABILITY *ppCapability
); );
DWORD WINAPI DWORD WINAPI
WlanSetInterface( WlanSetInterface(
__in HANDLE hClientHandle, _In_ HANDLE hClientHandle,
__in CONST GUID *pInterfaceGuid, _In_ CONST GUID *pInterfaceGuid,
__in WLAN_INTF_OPCODE OpCode, _In_ WLAN_INTF_OPCODE OpCode,
__in DWORD dwDataSize, _In_ DWORD dwDataSize,
__in_bcount(dwDataSize) CONST PVOID pData, _In_reads_bytes_(dwDataSize) CONST PVOID pData,
__reserved PVOID pReserved _Reserved_ PVOID pReserved
); );
DWORD WINAPI DWORD WINAPI
WlanQueryInterface( WlanQueryInterface(
__in HANDLE hClientHandle, _In_ HANDLE hClientHandle,
__in CONST GUID *pInterfaceGuid, _In_ CONST GUID *pInterfaceGuid,
__in WLAN_INTF_OPCODE OpCode, _In_ WLAN_INTF_OPCODE OpCode,
__reserved PVOID pReserved, _Reserved_ PVOID pReserved,
__out PDWORD pdwDataSize, _Out_ PDWORD pdwDataSize,
__deref_out_bcount(*pdwDataSize) PVOID *ppData, _Outptr_result_bytebuffer_(*pdwDataSize) PVOID *ppData,
__out_opt PWLAN_OPCODE_VALUE_TYPE pWlanOpcodeValueType _Out_opt_ PWLAN_OPCODE_VALUE_TYPE pWlanOpcodeValueType
); );
DWORD WINAPI DWORD WINAPI
WlanIhvControl( WlanIhvControl(
__in HANDLE hClientHandle, _In_ HANDLE hClientHandle,
__in CONST GUID *pInterfaceGuid, _In_ CONST GUID *pInterfaceGuid,
__in WLAN_IHV_CONTROL_TYPE Type, _In_ WLAN_IHV_CONTROL_TYPE Type,
__in DWORD dwInBufferSize, _In_ DWORD dwInBufferSize,
__in_bcount(dwInBufferSize) PVOID pInBuffer, _In_reads_bytes_(dwInBufferSize) PVOID pInBuffer,
__in DWORD dwOutBufferSize, _In_ DWORD dwOutBufferSize,
__inout_bcount_opt(dwOutBufferSize) PVOID pOutBuffer, _Inout_updates_bytes_opt_(dwOutBufferSize) PVOID pOutBuffer,
__out PDWORD pdwBytesReturned _Out_ PDWORD pdwBytesReturned
); );
DWORD WINAPI DWORD WINAPI
WlanScan( WlanScan(
__in HANDLE hClientHandle, _In_ HANDLE hClientHandle,
__in CONST GUID *pInterfaceGuid, _In_ CONST GUID *pInterfaceGuid,
__in_opt CONST PDOT11_SSID pDot11Ssid, _In_opt_ CONST PDOT11_SSID pDot11Ssid,
__in_opt CONST PWLAN_RAW_DATA pIeData, _In_opt_ CONST PWLAN_RAW_DATA pIeData,
__reserved PVOID pReserved _Reserved_ PVOID pReserved
); );
DWORD WINAPI DWORD WINAPI
WlanGetAvailableNetworkList( WlanGetAvailableNetworkList(
__in HANDLE hClientHandle, _In_ HANDLE hClientHandle,
__in CONST GUID *pInterfaceGuid, _In_ CONST GUID *pInterfaceGuid,
__in DWORD dwFlags, _In_ DWORD dwFlags,
__reserved PVOID pReserved, _Reserved_ PVOID pReserved,
__deref_out PWLAN_AVAILABLE_NETWORK_LIST *ppAvailableNetworkList _Outptr_ PWLAN_AVAILABLE_NETWORK_LIST *ppAvailableNetworkList
); );
DWORD WINAPI DWORD WINAPI
WlanGetNetworkBssList( WlanGetNetworkBssList(
__in HANDLE hClientHandle, _In_ HANDLE hClientHandle,
__in CONST GUID *pInterfaceGuid, _In_ CONST GUID *pInterfaceGuid,
__in_opt CONST PDOT11_SSID pDot11Ssid, _In_opt_ CONST PDOT11_SSID pDot11Ssid,
__in DOT11_BSS_TYPE dot11BssType, _In_ DOT11_BSS_TYPE dot11BssType,
__in BOOL bSecurityEnabled, _In_ BOOL bSecurityEnabled,
__reserved PVOID pReserved, _Reserved_ PVOID pReserved,
__deref_out PWLAN_BSS_LIST *ppWlanBssList _Outptr_ PWLAN_BSS_LIST *ppWlanBssList
); );
DWORD WINAPI DWORD WINAPI
WlanConnect( WlanConnect(
__in HANDLE hClientHandle, _In_ HANDLE hClientHandle,
__in CONST GUID *pInterfaceGuid, _In_ CONST GUID *pInterfaceGuid,
__in CONST PWLAN_CONNECTION_PARAMETERS pConnectionParameters, _In_ CONST PWLAN_CONNECTION_PARAMETERS pConnectionParameters,
__reserved PVOID pReserved _Reserved_ PVOID pReserved
); );
DWORD WINAPI DWORD WINAPI
WlanDisconnect( WlanDisconnect(
__in HANDLE hClientHandle, _In_ HANDLE hClientHandle,
__in CONST GUID *pInterfaceGuid, _In_ CONST GUID *pInterfaceGuid,
__reserved PVOID pReserved _Reserved_ PVOID pReserved
); );
DWORD WINAPI DWORD WINAPI
WlanRegisterNotification( WlanRegisterNotification(
__in HANDLE hClientHandle, _In_ HANDLE hClientHandle,
__in DWORD dwNotifSource, _In_ DWORD dwNotifSource,
__in BOOL bIgnoreDuplicate, _In_ BOOL bIgnoreDuplicate,
__in_opt WLAN_NOTIFICATION_CALLBACK funcCallback, _In_opt_ WLAN_NOTIFICATION_CALLBACK funcCallback,
__in_opt PVOID pCallbackContext, _In_opt_ PVOID pCallbackContext,
__reserved PVOID pReserved, _Reserved_ PVOID pReserved,
__out_opt PDWORD pdwPrevNotifSource _Out_opt_ PDWORD pdwPrevNotifSource
); );
DWORD WINAPI DWORD WINAPI
WlanGetProfile( WlanGetProfile(
__in HANDLE hClientHandle, _In_ HANDLE hClientHandle,
__in CONST GUID *pInterfaceGuid, _In_ CONST GUID *pInterfaceGuid,
__in LPCWSTR strProfileName, _In_ LPCWSTR strProfileName,
__reserved PVOID pReserved, _Reserved_ PVOID pReserved,
__deref_out LPWSTR *pstrProfileXml, _Outptr_ LPWSTR *pstrProfileXml,
__inout_opt DWORD *pdwFlags, _Inout_opt_ DWORD *pdwFlags,
__out_opt DWORD *pdwGrantedAccess _Out_opt_ DWORD *pdwGrantedAccess
); );
DWORD WINAPI DWORD WINAPI
WlanSetProfileEapUserData( WlanSetProfileEapUserData(
__in HANDLE hClientHandle, _In_ HANDLE hClientHandle,
__in const GUID *pInterfaceGuid, _In_ const GUID *pInterfaceGuid,
__in LPCWSTR strProfileName, _In_ LPCWSTR strProfileName,
__in EAP_METHOD_TYPE eapType, _In_ EAP_METHOD_TYPE eapType,
__in DWORD dwFlags, _In_ DWORD dwFlags,
__in DWORD dwEapUserDataSize, _In_ DWORD dwEapUserDataSize,
__in_bcount(dwEapUserDataSize) const LPBYTE pbEapUserData, _In_reads_bytes_opt_(dwEapUserDataSize) const LPBYTE pbEapUserData,
__reserved PVOID pReserved _Reserved_ PVOID pReserved
); );
DWORD WINAPI DWORD WINAPI
WlanSetProfileEapXmlUserData( WlanSetProfileEapXmlUserData(
__in HANDLE hClientHandle, _In_ HANDLE hClientHandle,
__in const GUID *pInterfaceGuid, _In_ const GUID *pInterfaceGuid,
__in LPCWSTR strProfileName, _In_ LPCWSTR strProfileName,
__in DWORD dwFlags, _In_ DWORD dwFlags,
__in LPCWSTR strEapXmlUserData, _In_ LPCWSTR strEapXmlUserData,
__reserved PVOID pReserved _Reserved_ PVOID pReserved
); );
DWORD WINAPI DWORD WINAPI
WlanSetProfile( WlanSetProfile(
__in HANDLE hClientHandle, _In_ HANDLE hClientHandle,
__in CONST GUID *pInterfaceGuid, _In_ CONST GUID *pInterfaceGuid,
__in DWORD dwFlags, _In_ DWORD dwFlags,
__in LPCWSTR strProfileXml, _In_ LPCWSTR strProfileXml,
__in_opt LPCWSTR strAllUserProfileSecurity, _In_opt_ LPCWSTR strAllUserProfileSecurity,
__in BOOL bOverwrite, _In_ BOOL bOverwrite,
__reserved PVOID pReserved, _Reserved_ PVOID pReserved,
__out DWORD *pdwReasonCode _Out_ DWORD *pdwReasonCode
); );
DWORD WINAPI DWORD WINAPI
WlanDeleteProfile( WlanDeleteProfile(
__in HANDLE hClientHandle, _In_ HANDLE hClientHandle,
__in CONST GUID *pInterfaceGuid, _In_ CONST GUID *pInterfaceGuid,
__in LPCWSTR strProfileName, _In_ LPCWSTR strProfileName,
__reserved PVOID pReserved _Reserved_ PVOID pReserved
); );
DWORD WINAPI DWORD WINAPI
WlanRenameProfile( WlanRenameProfile(
__in HANDLE hClientHandle, _In_ HANDLE hClientHandle,
__in CONST GUID *pInterfaceGuid, _In_ CONST GUID *pInterfaceGuid,
__in LPCWSTR strOldProfileName, _In_ LPCWSTR strOldProfileName,
__in LPCWSTR strNewProfileName, _In_ LPCWSTR strNewProfileName,
__reserved PVOID pReserved _Reserved_ PVOID pReserved
); );
DWORD WINAPI DWORD WINAPI
WlanGetProfileList( WlanGetProfileList(
__in HANDLE hClientHandle, _In_ HANDLE hClientHandle,
__in CONST GUID *pInterfaceGuid, _In_ CONST GUID *pInterfaceGuid,
__reserved PVOID pReserved, _Reserved_ PVOID pReserved,
__deref_out PWLAN_PROFILE_INFO_LIST *ppProfileList _Outptr_ PWLAN_PROFILE_INFO_LIST *ppProfileList
); );
DWORD WINAPI DWORD WINAPI
WlanSetProfileList( WlanSetProfileList(
__in HANDLE hClientHandle, _In_ HANDLE hClientHandle,
__in CONST GUID *pInterfaceGuid, _In_ CONST GUID *pInterfaceGuid,
__in DWORD dwItems, _In_ DWORD dwItems,
__in_ecount(dwItems) LPCWSTR *strProfileNames, _In_reads_(dwItems) LPCWSTR *strProfileNames,
__reserved PVOID pReserved _Reserved_ PVOID pReserved
); );
DWORD WINAPI DWORD WINAPI
WlanSetProfilePosition( WlanSetProfilePosition(
__in HANDLE hClientHandle, _In_ HANDLE hClientHandle,
__in CONST GUID *pInterfaceGuid, _In_ CONST GUID *pInterfaceGuid,
__in LPCWSTR strProfileName, _In_ LPCWSTR strProfileName,
__in DWORD dwPosition, _In_ DWORD dwPosition,
__reserved PVOID pReserved _Reserved_ PVOID pReserved
); );
DWORD WINAPI DWORD WINAPI
WlanSetProfileCustomUserData( WlanSetProfileCustomUserData(
__in HANDLE hClientHandle, _In_ HANDLE hClientHandle,
__in CONST GUID *pInterfaceGuid, _In_ CONST GUID *pInterfaceGuid,
__in LPCWSTR strProfileName, _In_ LPCWSTR strProfileName,
__in DWORD dwDataSize, _In_ DWORD dwDataSize,
__in_bcount(dwDataSize) CONST PBYTE pData, _In_reads_bytes_(dwDataSize) CONST PBYTE pData,
__reserved PVOID pReserved _Reserved_ PVOID pReserved
); );
DWORD WINAPI DWORD WINAPI
WlanGetProfileCustomUserData( WlanGetProfileCustomUserData(
__in HANDLE hClientHandle, _In_ HANDLE hClientHandle,
__in CONST GUID *pInterfaceGuid, _In_ CONST GUID *pInterfaceGuid,
__in LPCWSTR strProfileName, _In_ LPCWSTR strProfileName,
__reserved PVOID pReserved, _Reserved_ PVOID pReserved,
__out DWORD *pdwDataSize, _Out_ DWORD *pdwDataSize,
__deref_out_bcount(*pdwDataSize) PBYTE *ppData _Outptr_result_bytebuffer_(*pdwDataSize) PBYTE *ppData
); );
DWORD WINAPI DWORD WINAPI
WlanSetFilterList( WlanSetFilterList(
__in HANDLE hClientHandle, _In_ HANDLE hClientHandle,
__in WLAN_FILTER_LIST_TYPE wlanFilterListType, _In_ WLAN_FILTER_LIST_TYPE wlanFilterListType,
__in_opt CONST PDOT11_NETWORK_LIST pNetworkList, _In_opt_ CONST PDOT11_NETWORK_LIST pNetworkList,
__reserved PVOID pReserved _Reserved_ PVOID pReserved
); );
DWORD WINAPI DWORD WINAPI
WlanGetFilterList( WlanGetFilterList(
__in HANDLE hClientHandle, _In_ HANDLE hClientHandle,
__in WLAN_FILTER_LIST_TYPE wlanFilterListType, _In_ WLAN_FILTER_LIST_TYPE wlanFilterListType,
__reserved PVOID pReserved, _Reserved_ PVOID pReserved,
__deref_out PDOT11_NETWORK_LIST *ppNetworkList _Outptr_ PDOT11_NETWORK_LIST *ppNetworkList
); );
DWORD WINAPI DWORD WINAPI
WlanSetPsdIEDataList( WlanSetPsdIEDataList(
__in HANDLE hClientHandle, _In_ HANDLE hClientHandle,
__in_opt LPCWSTR strFormat, _In_opt_ LPCWSTR strFormat,
__in_opt CONST PWLAN_RAW_DATA_LIST pPsdIEDataList, _In_opt_ CONST PWLAN_RAW_DATA_LIST pPsdIEDataList,
__reserved PVOID pReserved _Reserved_ PVOID pReserved
); );
DWORD WINAPI DWORD WINAPI
WlanSaveTemporaryProfile( WlanSaveTemporaryProfile(
__in HANDLE hClientHandle, _In_ HANDLE hClientHandle,
__in CONST GUID* pInterfaceGuid, _In_ CONST GUID* pInterfaceGuid,
__in LPCWSTR strProfileName, _In_ LPCWSTR strProfileName,
__in_opt LPCWSTR strAllUserProfileSecurity, _In_opt_ LPCWSTR strAllUserProfileSecurity,
__in DWORD dwFlags, _In_ DWORD dwFlags,
__in BOOL bOverWrite, _In_ BOOL bOverWrite,
__reserved PVOID pReserved _Reserved_ PVOID pReserved
); );
#if !defined(__midl) #if !defined(__midl)
// client side APIs // client side APIs
DWORD WINAPI DWORD WINAPI
WlanExtractPsdIEDataList( WlanExtractPsdIEDataList(
__in HANDLE hClientHandle, _In_ HANDLE hClientHandle,
__in DWORD dwIeDataSize, _In_ DWORD dwIeDataSize,
__in_bcount(dwIeDataSize) CONST PBYTE pRawIeData, _In_reads_bytes_(dwIeDataSize) CONST PBYTE pRawIeData,
__in LPCWSTR strFormat, _In_ LPCWSTR strFormat,
__reserved PVOID pReserved, _Reserved_ PVOID pReserved,
__deref_out PWLAN_RAW_DATA_LIST *ppPsdIEDataList _Outptr_ PWLAN_RAW_DATA_LIST *ppPsdIEDataList
); );
DWORD WINAPI DWORD WINAPI
WlanReasonCodeToString( WlanReasonCodeToString(
__in DWORD dwReasonCode, _In_ DWORD dwReasonCode,
__in DWORD dwBufferSize, _In_ DWORD dwBufferSize,
__in_ecount(dwBufferSize) PWCHAR pStringBuffer, _In_reads_(dwBufferSize) PWCHAR pStringBuffer,
__reserved PVOID pReserved _Reserved_ PVOID pReserved
); );
PVOID WINAPI PVOID WINAPI
WlanAllocateMemory( WlanAllocateMemory(
__in DWORD dwMemorySize _In_ DWORD dwMemorySize
); );
VOID WINAPI VOID WINAPI
WlanFreeMemory( WlanFreeMemory(
__in PVOID pMemory _In_ PVOID pMemory
); );
DWORD WINAPI DWORD WINAPI
WlanSetSecuritySettings( WlanSetSecuritySettings(
__in HANDLE hClientHandle, _In_ HANDLE hClientHandle,
__in WLAN_SECURABLE_OBJECT SecurableObject, _In_ WLAN_SECURABLE_OBJECT SecurableObject,
__in LPCWSTR strModifiedSDDL _In_ LPCWSTR strModifiedSDDL
); );
DWORD WINAPI DWORD WINAPI
WlanGetSecuritySettings( WlanGetSecuritySettings(
__in HANDLE hClientHandle, _In_ HANDLE hClientHandle,
__in WLAN_SECURABLE_OBJECT SecurableObject, _In_ WLAN_SECURABLE_OBJECT SecurableObject,
__out_opt PWLAN_OPCODE_VALUE_TYPE pValueType, _Out_opt_ PWLAN_OPCODE_VALUE_TYPE pValueType,
__deref_out LPWSTR* pstrCurrentSDDL, _Outptr_ LPWSTR* pstrCurrentSDDL,
__out PDWORD pdwGrantedAccess _Out_ PDWORD pdwGrantedAccess
); );
#endif #endif
// the following structures and defs are // the following structures and defs are
// for the UI related functions // for the UI related functions
// current version // current version
#define WLAN_UI_API_VERSION 1 #define WLAN_UI_API_VERSION 1
// earliest version supported // earliest version supported
skipping to change at line 1335 skipping to change at line 1379
// The list of pages displayed by the wireless profile UI // The list of pages displayed by the wireless profile UI
typedef enum _WL_DISPLAY_PAGES typedef enum _WL_DISPLAY_PAGES
{ {
WLConnectionPage, WLConnectionPage,
WLSecurityPage, WLSecurityPage,
WLAdvPage WLAdvPage
} WL_DISPLAY_PAGES, *PWL_DISPLAY_PAGES; } WL_DISPLAY_PAGES, *PWL_DISPLAY_PAGES;
DWORD WINAPI DWORD WINAPI
WlanUIEditProfile( WlanUIEditProfile(
__in DWORD dwClientVersion, _In_ DWORD dwClientVersion,
__in LPCWSTR wstrProfileName, _In_ LPCWSTR wstrProfileName,
__in GUID *pInterfaceGuid, _In_ GUID *pInterfaceGuid,
__in HWND hWnd, _In_ HWND hWnd,
__in WL_DISPLAY_PAGES wlStartPage, _In_ WL_DISPLAY_PAGES wlStartPage,
__reserved PVOID pReserved, _Reserved_ PVOID pReserved,
__out_opt PWLAN_REASON_CODE pWlanReasonCode _Out_opt_ PWLAN_REASON_CODE pWlanReasonCode
); );
#if (_WIN32_WINNT >= _WIN32_WINNT_WIN7) #if (_WIN32_WINNT >= _WIN32_WINNT_WIN7)
// Hosted Network APIs // Hosted Network APIs
typedef typedef
#ifdef __midl #ifdef __midl
[v1_enum] [v1_enum]
#endif #endif
skipping to change at line 1416 skipping to change at line 1460
{ {
wlan_hosted_network_peer_state_invalid, wlan_hosted_network_peer_state_invalid,
wlan_hosted_network_peer_state_authenticated, wlan_hosted_network_peer_state_authenticated,
} }
WLAN_HOSTED_NETWORK_PEER_AUTH_STATE, *PWLAN_HOSTED_NETWORK_PEER_AUTH_STATE; WLAN_HOSTED_NETWORK_PEER_AUTH_STATE, *PWLAN_HOSTED_NETWORK_PEER_AUTH_STATE;
DWORD DWORD
WINAPI WINAPI
WlanHostedNetworkStartUsing WlanHostedNetworkStartUsing
( (
__in HANDLE hClientHandle, _In_ HANDLE hClientHandle,
__out_opt PWLAN_HOSTED_NETWORK_REASON pFailReason, _Out_opt_ PWLAN_HOSTED_NETWORK_REASON pFailReason,
__reserved PVOID pvReserved _Reserved_ PVOID pvReserved
); );
DWORD DWORD
WINAPI WINAPI
WlanHostedNetworkStopUsing WlanHostedNetworkStopUsing
( (
__in HANDLE hClientHandle, _In_ HANDLE hClientHandle,
__out_opt PWLAN_HOSTED_NETWORK_REASON pFailReason, _Out_opt_ PWLAN_HOSTED_NETWORK_REASON pFailReason,
__reserved PVOID pvReserved _Reserved_ PVOID pvReserved
); );
DWORD DWORD
WINAPI WINAPI
WlanHostedNetworkForceStart WlanHostedNetworkForceStart
( (
__in HANDLE hClientHandle, _In_ HANDLE hClientHandle,
__out_opt PWLAN_HOSTED_NETWORK_REASON pFailReason, _Out_opt_ PWLAN_HOSTED_NETWORK_REASON pFailReason,
__reserved PVOID pvReserved _Reserved_ PVOID pvReserved
); );
DWORD DWORD
WINAPI WINAPI
WlanHostedNetworkForceStop WlanHostedNetworkForceStop
( (
__in HANDLE hClientHandle, _In_ HANDLE hClientHandle,
__out_opt PWLAN_HOSTED_NETWORK_REASON pFailReason, _Out_opt_ PWLAN_HOSTED_NETWORK_REASON pFailReason,
__reserved PVOID pvReserved _Reserved_ PVOID pvReserved
); );
typedef typedef
struct _WLAN_HOSTED_NETWORK_PEER_STATE struct _WLAN_HOSTED_NETWORK_PEER_STATE
{ {
DOT11_MAC_ADDRESS PeerMacAddress; DOT11_MAC_ADDRESS PeerMacAddress;
WLAN_HOSTED_NETWORK_PEER_AUTH_STATE PeerAuthState; WLAN_HOSTED_NETWORK_PEER_AUTH_STATE PeerAuthState;
} }
WLAN_HOSTED_NETWORK_PEER_STATE, *PWLAN_HOSTED_NETWORK_PEER_STATE; WLAN_HOSTED_NETWORK_PEER_STATE, *PWLAN_HOSTED_NETWORK_PEER_STATE;
skipping to change at line 1554 skipping to change at line 1598
// can be used for query and set // can be used for query and set
// BOOL // BOOL
// //
// This function queries the static properties of the hosted network // This function queries the static properties of the hosted network
// //
DWORD DWORD
WINAPI WINAPI
WlanHostedNetworkQueryProperty WlanHostedNetworkQueryProperty
( (
__in HANDLE hClientHandl _In_ HANDLE hClientHandl
e, e,
__in WLAN_HOSTED_NETWORK_OPCODE OpCode, _In_ WLAN_HOSTED_NETWORK_OPCODE OpCode,
__out PDWORD pdwDataSize, _Out_ PDWORD pdwDataSize,
__deref_out_bcount(*pdwDataSize) PVOID* ppvData, _Outptr_result_bytebuffer_(*pdwDataSize) PVOID* ppvD
__out PWLAN_OPCODE_VALUE_TYPE pWlanOpcodeV ata,
alueType, _Out_ PWLAN_OPCODE_VALUE_TYPE pWlanOpcodeV
__reserved PVOID pvReserved alueType,
_Reserved_ PVOID pvReserved
); );
// //
// This function sets the static properties of the hosted network // This function sets the static properties of the hosted network
// //
DWORD DWORD
WINAPI WINAPI
WlanHostedNetworkSetProperty WlanHostedNetworkSetProperty
( (
__in HANDLE hClientHandle, _In_ HANDLE hClientHandle,
__in WLAN_HOSTED_NETWORK_OPCODE OpCode, _In_ WLAN_HOSTED_NETWORK_OPCODE OpCode,
__in DWORD dwDataSize, _In_ DWORD dwDataSize,
__in_bcount(dwDataSize) PVOID pvData, _In_reads_bytes_(dwDataSize) PVOID pvData,
__out_opt PWLAN_HOSTED_NETWORK_REASON pFailReason, _Out_opt_ PWLAN_HOSTED_NETWORK_REASON pFailReason,
__reserved PVOID pvReserved _Reserved_ PVOID pvReserved
); );
// //
// This function initializes hosted network configuration // This function initializes hosted network configuration
// on a machine. There are no effects if an initial // on a machine. There are no effects if an initial
// configuration has already been created. // configuration has already been created.
// //
DWORD DWORD
WINAPI WINAPI
WlanHostedNetworkInitSettings WlanHostedNetworkInitSettings
( (
__in HANDLE hClientHandle, _In_ HANDLE hClientHandle,
__out_opt PWLAN_HOSTED_NETWORK_REASON pFailReason, _Out_opt_ PWLAN_HOSTED_NETWORK_REASON pFailReason,
__reserved PVOID pvReserved _Reserved_ PVOID pvReserved
); );
DWORD DWORD
WINAPI WINAPI
WlanHostedNetworkRefreshSecuritySettings WlanHostedNetworkRefreshSecuritySettings
( (
__in HANDLE hClientHandle, _In_ HANDLE hClientHandle,
__out_opt PWLAN_HOSTED_NETWORK_REASON pFailReason, _Out_opt_ PWLAN_HOSTED_NETWORK_REASON pFailReason,
__reserved PVOID pvReserved _Reserved_ PVOID pvReserved
); );
typedef typedef
struct _WLAN_HOSTED_NETWORK_STATUS struct _WLAN_HOSTED_NETWORK_STATUS
{ {
WLAN_HOSTED_NETWORK_STATE HostedNetworkState; WLAN_HOSTED_NETWORK_STATE HostedNetworkState;
GUID IPDeviceID; GUID IPDeviceID;
DOT11_MAC_ADDRESS wlanHostedNetworkBSSID; DOT11_MAC_ADDRESS wlanHostedNetworkBSSID;
DOT11_PHY_TYPE dot11PhyType; DOT11_PHY_TYPE dot11PhyType;
ULONG ulChannelFrequency; ULONG ulChannelFrequency;
skipping to change at line 1625 skipping to change at line 1669
} }
WLAN_HOSTED_NETWORK_STATUS, *PWLAN_HOSTED_NETWORK_STATUS; WLAN_HOSTED_NETWORK_STATUS, *PWLAN_HOSTED_NETWORK_STATUS;
// //
// This function queries the runtime status of the hosted network // This function queries the runtime status of the hosted network
// //
DWORD DWORD
WINAPI WINAPI
WlanHostedNetworkQueryStatus WlanHostedNetworkQueryStatus
( (
__in HANDLE hClientHandle, _In_ HANDLE hClientHandle,
__deref_out PWLAN_HOSTED_NETWORK_STATUS* ppWlanHostedNetworkStatus, _Outptr_ PWLAN_HOSTED_NETWORK_STATUS* ppWlanHostedNetworkStatus,
__reserved PVOID pvReserved _Reserved_ PVOID pvReserved
); );
// //
// This function set the additional security key used by hosted network // This function set the additional security key used by hosted network
// if it is passphrase, key length includes the terminating '\0', // if it is passphrase, key length includes the terminating '\0',
// if not, key length is the number of bytes in the key data array. // if not, key length is the number of bytes in the key data array.
// //
DWORD DWORD
WINAPI WINAPI
WlanHostedNetworkSetSecondaryKey WlanHostedNetworkSetSecondaryKey
( (
__in HANDLE hClientHandle, _In_ HANDLE hClientHandle,
__in DWORD dwKeyLength, _In_ DWORD dwKeyLength,
__in_bcount(dwKeyLength) PUCHAR pucKeyData, _In_reads_bytes_(dwKeyLength) PUCHAR pucKeyData,
__in BOOL bIsPassPhrase, _In_ BOOL bIsPassPhrase,
__in BOOL bPersistent, _In_ BOOL bPersistent,
__out_opt PWLAN_HOSTED_NETWORK_REASON pFailReason, _Out_opt_ PWLAN_HOSTED_NETWORK_REASON pFailReason,
__reserved PVOID pvReserved _Reserved_ PVOID pvReserved
); );
// //
// This function query the additional security key used by hosted network // This function query the additional security key used by hosted network
// If it is passphrase, key length includes the terminating '\0', // If it is passphrase, key length includes the terminating '\0',
// if not, key length is the number of bytes in the key data array. // if not, key length is the number of bytes in the key data array.
// //
DWORD DWORD
WINAPI WINAPI
WlanHostedNetworkQuerySecondaryKey WlanHostedNetworkQuerySecondaryKey
( (
__in HANDLE hClientHandle, _In_ HANDLE hClientHandle,
__out PDWORD pdwKeyLength, _Out_ PDWORD pdwKeyLength,
__deref_out_ecount(*pdwKeyLength) PUCHAR *ppucKeyData, _Outptr_result_buffer_(*pdwKeyLength) PUCHAR *ppucKeyData,
__out PBOOL pbIsPassPhrase, _Out_ PBOOL pbIsPassPhrase,
__out PBOOL pbPersistent, _Out_ PBOOL pbPersistent,
__out_opt PWLAN_HOSTED_NETWORK_REASON pFailReason, _Out_opt_ PWLAN_HOSTED_NETWORK_REASON pFailReason,
__reserved PVOID pvReserved _Reserved_ PVOID pvReserved
); );
// //
// This function is used to register and unregister notifications on virtual sta tion. // This function is used to register and unregister notifications on virtual sta tion.
// //
DWORD DWORD
WINAPI WINAPI
WlanRegisterVirtualStationNotification WlanRegisterVirtualStationNotification
( (
__in HANDLE hClientHandle, _In_ HANDLE hClientHandle,
__in BOOL bRegister, _In_ BOOL bRegister,
__reserved PVOID pReserved _Reserved_ PVOID pReserved
); );
#ifdef WFD_API_SUPPORTED
//
// Wi-Fi Direct Device Interface GUID
//
// {439B20AF-8955-405B-99F0-A62AF0C68D43}
//
// Description: Wi-Fi Direct Device Nodes will expose a device
// interface identified by this GUID.
//
DEFINE_GUID(
GUID_DEVINTERFACE_WIFIDIRECT_DEVICE,
0x439b20af, 0x8955, 0x405b, 0x99, 0xf0, 0xa6, 0x2a, 0xf0, 0xc6, 0x8d, 0x43
);
// String identifying Miracast protocol support in Wi Fi Direct services propert
y
static const WCHAR c_szMiracast[] = L"Miracast";
// The constant for Wi Fi Direct services. Since there is just one right now, it
is simpler to define a constant as multi string value.
static const WCHAR c_szzWiFiDirectServices[] = L"Miracast\0";
//
// Wi-Fi Direct Property Key Definitions
// These properties are exposed through Wi-Fi Direct Device Nodes when
// created through the inbox Windows pairing experience.
//
//
// Property: DEVPKEY_WiFiDirect_DeviceAddress
// Description: Binary representation of WFD Device's Device Address.
// Type: DEVPROP_TYPE_BINARY
// Binary Data: DOT11_MAC_ADDRESS (UCHAR[6])
// Availability: Always.
//
DEFINE_DEVPROPKEY(
DEVPKEY_WiFiDirect_DeviceAddress,
0x1506935d, 0xe3e7, 0x450f, 0x86, 0x37, 0x82, 0x23, 0x3e, 0xbe, 0x5f, 0x6E,
0x01
);
//
// Property: DEVPKEY_WiFiDirect_InterfaceAddress
// Description: Binary representation of WFD Device's Interface Address.
// Type: DEVPROP_TYPE_BINARY
// Binary Data: DOT11_MAC_ADDRESS (UCHAR[6])
// Availability: When DEVPKEY_WiFiDirect_IsConnected == DEVPROP_TRUE.
//
DEFINE_DEVPROPKEY(
DEVPKEY_WiFiDirect_InterfaceAddress,
0x1506935d, 0xe3e7, 0x450f, 0x86, 0x37, 0x82, 0x23, 0x3e, 0xbe, 0x5f, 0x6E,
0x02
);
//
// Property: DEVPKEY_WiFiDirect_InterfaceGuid
// Description: Local Network Interface GUID which hosts WFD Device's
// current session.
// Type: DEVPROP_TYPE_GUID
// Availability: When DEVPKEY_WiFiDirect_IsConnected == DEVPROP_TRUE.
//
DEFINE_DEVPROPKEY(
DEVPKEY_WiFiDirect_InterfaceGuid,
0x1506935d, 0xe3e7, 0x450f, 0x86, 0x37, 0x82, 0x23, 0x3e, 0xbe, 0x5f, 0x6E,
0x03
);
//
// Property: DEVPKEY_WiFiDirect_GroupId
// Description: WFD Unique Group ID GUID. Each Wi-Fi Direct Group
// (SSID + GO Device Address) will correspond to a certain GroupID GUID.
// Type: DEVPROP_TYPE_GUID
// Availability: Always.
//
DEFINE_DEVPROPKEY(
DEVPKEY_WiFiDirect_GroupId,
0x1506935d, 0xe3e7, 0x450f, 0x86, 0x37, 0x82, 0x23, 0x3e, 0xbe, 0x5f, 0x6E,
0x04
);
//
// Property: DEVPKEY_WiFiDirect_IsConnected
// Description: A value indicating WFD Device's current connectivity state.
// Type: DEVPROP_TYPE_BOOLEAN
// Availability: If connected, always available and set to
// DEVPROP_TRUE, otherwise either available and set to
// DEVPROP_FALSE, or empty.
//
DEFINE_DEVPROPKEY(
DEVPKEY_WiFiDirect_IsConnected,
0x1506935d, 0xe3e7, 0x450f, 0x86, 0x37, 0x82, 0x23, 0x3e, 0xbe, 0x5f, 0x6E,
0x05
);
//
// Property: DEVPKEY_WiFiDirect_IsVisible
// Description: A value indicating WFD Device's current visibility.
// Type: DEVPROP_TYPE_BOOLEAN
// Availability: If visible, always available and set to DEVPROP_TRUE,
// otherwise either available and set to DEVPROP_FALSE,
// or empty.
//
DEFINE_DEVPROPKEY(
DEVPKEY_WiFiDirect_IsVisible,
0x1506935d, 0xe3e7, 0x450f, 0x86, 0x37, 0x82, 0x23, 0x3e, 0xbe, 0x5f, 0x6E,
0x06
);
//
// Property: DEVPKEY_WiFiDirect_IsLegacyDevice
// Description: Whether or not WFD Device is a legacy WPS device
// connecting to the local PC.
// Type: DEVPROP_TYPE_BOOLEAN
// Availability: If Legacy, always. Otherwise DEVPROP_FALSE or empty.
//
DEFINE_DEVPROPKEY(
DEVPKEY_WiFiDirect_IsLegacyDevice,
0x1506935d, 0xe3e7, 0x450f, 0x86, 0x37, 0x82, 0x23, 0x3e, 0xbe, 0x5f, 0x6E,
0x07
);
//
// Property: DEVPKEY_WiFiDirect_MiracastVersion
// Description: A value indicating version of Miracast protocol if WFD Device is
Miracast capable.
// Type: DEVPROP_TYPE_UINT32
// Availability: If Miracast capable, set to the highest version of protocol sup
ported or empty
//
DEFINE_DEVPROPKEY(
DEVPKEY_WiFiDirect_MiracastVersion,
0x1506935d, 0xe3e7, 0x450f, 0x86, 0x37, 0x82, 0x23, 0x3e, 0xbe, 0x5f, 0x6E,
0x08
);
//
// Property: DEVPKEY_WiFiDirect_IsMiracastLCPSupported
// Description: A value indicating if link content protection is supported by th
e device if WFD Device is Miracast capable.
// Type: DEVPROP_TYPE_BOOLEAN
// Availability: If link content protection is supported, set to DEVPROP_TRUE,
// otherwise set to DEVPROP_FALSE,
// or empty.
//
DEFINE_DEVPROPKEY(
DEVPKEY_WiFiDirect_IsMiracastLCPSupported,
0x1506935d, 0xe3e7, 0x450f, 0x86, 0x37, 0x82, 0x23, 0x3e, 0xbe, 0x5f, 0x6E,
0x09
);
//
// Property: DEVPKEY_WiFiDirect_Services
// Description: A value indicating services supported by the Wi Fi Direct device
.
// Type: DEVPROP_TYPE_STRING_LIST
// Availability: If Miracast capable, set to string indicating Miracast service
(c_Miracast) or empty
//
DEFINE_DEVPROPKEY(
DEVPKEY_WiFiDirect_Services,
0x1506935d, 0xe3e7, 0x450f, 0x86, 0x37, 0x82, 0x23, 0x3e, 0xbe, 0x5f, 0x6E,
0x0a
);
//
// Property: DEVPKEY_WiFiDirect_SupportedChannelList
// Description: Binary representation of WFD Device's channel list attribute.
// Type: DEVPROP_TYPE_BINARY
// Binary Data: WFA P2P Spec channel list attribute value
// Availability: Optional, whenever provided by the remote device.
//
DEFINE_DEVPROPKEY(
DEVPKEY_WiFiDirect_SupportedChannelList,
0x1506935d, 0xe3e7, 0x450f, 0x86, 0x37, 0x82, 0x23, 0x3e, 0xbe, 0x5f, 0x6E,
0x0b
);
DWORD
WINAPI
WFDOpenHandle(
_In_ DWORD dwClientVersion,
_Out_ PDWORD pdwNegotiatedVersion,
_Out_ PHANDLE phClientHandle
);
DWORD
WINAPI
WFDCloseHandle(
_In_ HANDLE hClientHandle
);
typedef VOID (WINAPI *WFD_OPEN_SESSION_COMPLETE_CALLBACK) (
_In_ HANDLE hSessionHandle,
_In_ PVOID pvContext,
_In_ GUID guidSessionInterface,
_In_ DWORD dwError,
_In_ DWORD dwReasonCode
);
DWORD
WINAPI
WFDStartOpenSession(
_In_ HANDLE hClientHandle,
_In_ PDOT11_MAC_ADDRESS pDeviceAddress,
_In_opt_ PVOID pvContext,
_In_ WFD_OPEN_SESSION_COMPLETE_CALLBACK pfnCallback,
_Out_ PHANDLE phSessionHandle
);
DWORD
WINAPI
WFDCancelOpenSession(
_In_ HANDLE hSessionHandle
);
DWORD
WINAPI
WFDOpenLegacySession(
_In_ HANDLE hClientHandle,
_In_ PDOT11_MAC_ADDRESS pLegacyMacAddress,
_Out_ HANDLE* phSessionHandle,
_Out_ GUID* pGuidSessionInterface
);
DWORD
WINAPI
WFDCloseSession(
_In_ HANDLE hSessionHandle
);
DWORD
WINAPI
WFDUpdateDeviceVisibility(
_In_ PDOT11_MAC_ADDRESS pDeviceAddress
);
#endif // WFD_API_SUPPORTED
#endif // (_WIN32_WINNT >= _WIN32_WINNT_WIN7) #endif // (_WIN32_WINNT >= _WIN32_WINNT_WIN7)
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
#pragma endregion
#endif // _WLAN_WLANAPI_H #endif // _WLAN_WLANAPI_H
 End of changes. 61 change blocks. 
241 lines changed or deleted 531 lines changed or added

This html diff was produced by rfcdiff 1.41.