| wlanapi.h (6.0.6001.18000-Windows 6.0) | | wlanapi.h (6.1.7600.16385-Windows 7.0) |
| | |
| skipping to change at line 36 | | skipping to change at line 36 |
| #pragma once | | #pragma once |
| | |
| #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 |
| | #error _WIN32_WINNT must be defined to use WLAN API. It could be either _WIN32_W |
| | INNT_WIN7, _WIN32_WINNT_VISTA, or _WIN32_WINNT_WINXP, and so on. |
| | #endif |
| | |
| // major version is in low-order WORD, | | // major version is in low-order WORD, |
| // minor version is in high-order WORD | | // minor version is in high-order WORD |
|
| #define WLAN_API_VERSION_1_0 0x00000001 | | #define WLAN_API_VERSION_1_0 0x00000001 |
| #define WLAN_API_VERSION_2_0 0x00000002 | | #define WLAN_API_VERSION_2_0 0x00000002 |
| #define WLAN_API_VERSION_MAJOR(_v) ((_v) & 0xffff) | | #define WLAN_API_VERSION_MAJOR(_v) ((_v) & 0xffff) |
| #define WLAN_API_VERSION_MINOR(_v) (((DWORD)(_v)) >> 16) | | #define WLAN_API_VERSION_MINOR(_v) (((DWORD)(_v)) >> 16) |
| #define WLAN_API_MAKE_VERSION(_major, _minor) (((DWORD)(_minor)) << 16 | (_maj
or)) | | #define WLAN_API_MAKE_VERSION(_major, _minor) (((DWORD)(_minor)) << 16 | (_maj
or)) |
| | |
| // WLAN API is version 1 in all WinXP | | // WLAN API is version 1 in all WinXP |
|
| // and version 2 in Longhorn Vista | | // and version 2 in Vista |
| #if (_WIN32_WINNT >= 0x0600) | | #if (_WIN32_WINNT >= _WIN32_WINNT_VISTA) |
| #define WLAN_API_VERSION WLAN_API_VERSION_2_0 | | #define WLAN_API_VERSION WLAN_API_VERSION_2_0 |
| #else | | #else |
|
| #define WLAN_API_VERSION WLAN_API_VERSION_1_0 | | #if (_WIN32_WINNT >= _WIN32_WINNT_WINXP) |
| #endif // (_WIN32_WINNT <= 0x0600) | | #define WLAN_API_VERSION WLAN_API_VERSION_1_0 |
| | #else |
| | #error WLAN API is not supported on platform earlier than Windows XP. |
| | #endif // (_WIN32_WINNT >= _WIN32_WINNT_WINXP) |
| | #endif // (_WIN32_WINNT >= _WIN32_WINNT_VISTA) |
| | |
| // maximum length of name, in characters | | // maximum length of name, in characters |
| #define WLAN_MAX_NAME_LENGTH L2_PROFILE_MAX_NAME_LENGTH | | #define WLAN_MAX_NAME_LENGTH L2_PROFILE_MAX_NAME_LENGTH |
| | |
| // profile flags | | // profile flags |
| #define WLAN_PROFILE_GROUP_POLICY 0x00000001 | | #define WLAN_PROFILE_GROUP_POLICY 0x00000001 |
| #define WLAN_PROFILE_USER 0x00000002 | | #define WLAN_PROFILE_USER 0x00000002 |
|
| | #define WLAN_PROFILE_GET_PLAINTEXT_KEY 0x00000004 |
| // the following flags are only used for WlanSaveTemporaryProfile API | | // the following flags are only used for WlanSaveTemporaryProfile API |
| #define WLAN_PROFILE_CONNECTION_MODE_SET_BY_CLIENT 0x00010000 | | #define WLAN_PROFILE_CONNECTION_MODE_SET_BY_CLIENT 0x00010000 |
| #define WLAN_PROFILE_CONNECTION_MODE_AUTO 0x00020000 | | #define WLAN_PROFILE_CONNECTION_MODE_AUTO 0x00020000 |
| | |
| // EAPHost data storage flags | | // EAPHost data storage flags |
| #define WLAN_SET_EAPHOST_DATA_ALL_USERS 0x00000001 | | #define WLAN_SET_EAPHOST_DATA_ALL_USERS 0x00000001 |
| | |
| // struct WLAN_PROFILE_INFO defines the basic information of an 802.11 network p
rofile | | // struct WLAN_PROFILE_INFO defines the basic information of an 802.11 network p
rofile |
| typedef struct _WLAN_PROFILE_INFO { | | typedef struct _WLAN_PROFILE_INFO { |
| WCHAR strProfileName[WLAN_MAX_NAME_LENGTH]; | | WCHAR strProfileName[WLAN_MAX_NAME_LENGTH]; |
| | |
| skipping to change at line 181 | | skipping to change at line 190 |
| #define WLAN_REASON_CODE_IN_FAILED_LIST (WLAN_REASON_CODE_AC_CONNECT_BAS
E +6) | | #define WLAN_REASON_CODE_IN_FAILED_LIST (WLAN_REASON_CODE_AC_CONNECT_BAS
E +6) |
| #define WLAN_REASON_CODE_IN_BLOCKED_LIST (WLAN_REASON_CODE_AC_CONNECT_BAS
E +7) | | #define WLAN_REASON_CODE_IN_BLOCKED_LIST (WLAN_REASON_CODE_AC_CONNECT_BAS
E +7) |
| #define WLAN_REASON_CODE_SSID_LIST_TOO_LONG (WLAN_REASON_CODE_AC_CONNECT_BAS
E +8) | | #define WLAN_REASON_CODE_SSID_LIST_TOO_LONG (WLAN_REASON_CODE_AC_CONNECT_BAS
E +8) |
| #define WLAN_REASON_CODE_CONNECT_CALL_FAIL (WLAN_REASON_CODE_AC_CONNECT_BAS
E +9) | | #define WLAN_REASON_CODE_CONNECT_CALL_FAIL (WLAN_REASON_CODE_AC_CONNECT_BAS
E +9) |
| #define WLAN_REASON_CODE_SCAN_CALL_FAIL (WLAN_REASON_CODE_AC_CONNECT_BAS
E +10) | | #define WLAN_REASON_CODE_SCAN_CALL_FAIL (WLAN_REASON_CODE_AC_CONNECT_BAS
E +10) |
| #define WLAN_REASON_CODE_NETWORK_NOT_AVAILABLE (WLAN_REASON_CODE_AC_CONNECT_B
ASE +11) | | #define WLAN_REASON_CODE_NETWORK_NOT_AVAILABLE (WLAN_REASON_CODE_AC_CONNECT_B
ASE +11) |
| #define WLAN_REASON_CODE_PROFILE_CHANGED_OR_DELETED \ | | #define WLAN_REASON_CODE_PROFILE_CHANGED_OR_DELETED \ |
| (WLAN_REASON_CODE_AC_CONNECT_BAS
E +12) | | (WLAN_REASON_CODE_AC_CONNECT_BAS
E +12) |
| #define WLAN_REASON_CODE_KEY_MISMATCH (WLAN_REASON_CODE_AC_CONNECT_BAS
E + 13) | | #define WLAN_REASON_CODE_KEY_MISMATCH (WLAN_REASON_CODE_AC_CONNECT_BAS
E + 13) |
| #define WLAN_REASON_CODE_USER_NOT_RESPOND (WLAN_REASON_CODE_AC_CONNECT_BAS
E + 14) | | #define WLAN_REASON_CODE_USER_NOT_RESPOND (WLAN_REASON_CODE_AC_CONNECT_BAS
E + 14) |
|
| | #define WLAN_REASON_CODE_AP_PROFILE_NOT_ALLOWED_FOR_CLIENT \ |
| | (WLAN_REASON_CODE_AC_CONNECT_BAS |
| | E + 15) |
| | #define WLAN_REASON_CODE_AP_PROFILE_NOT_ALLOWED (WLAN_REASON_CODE_AC_CONNECT_BAS |
| | E + 16) |
| | |
| // Profile validation errors | | // Profile validation errors |
| // | | // |
| #define WLAN_REASON_CODE_INVALID_PROFILE_SCHEMA (WLAN_REASON_CODE_PROFILE_BASE +
1) | | #define WLAN_REASON_CODE_INVALID_PROFILE_SCHEMA (WLAN_REASON_CODE_PROFILE_BASE +
1) |
| #define WLAN_REASON_CODE_PROFILE_MISSING (WLAN_REASON_CODE_PROFILE_BASE +
2) | | #define WLAN_REASON_CODE_PROFILE_MISSING (WLAN_REASON_CODE_PROFILE_BASE +
2) |
| #define WLAN_REASON_CODE_INVALID_PROFILE_NAME (WLAN_REASON_CODE_PROFILE_BASE +
3) | | #define WLAN_REASON_CODE_INVALID_PROFILE_NAME (WLAN_REASON_CODE_PROFILE_BASE +
3) |
| #define WLAN_REASON_CODE_INVALID_PROFILE_TYPE (WLAN_REASON_CODE_PROFILE_BASE +
4) | | #define WLAN_REASON_CODE_INVALID_PROFILE_TYPE (WLAN_REASON_CODE_PROFILE_BASE +
4) |
| #define WLAN_REASON_CODE_INVALID_PHY_TYPE (WLAN_REASON_CODE_PROFILE_BASE +
5) | | #define WLAN_REASON_CODE_INVALID_PHY_TYPE (WLAN_REASON_CODE_PROFILE_BASE +
5) |
| #define WLAN_REASON_CODE_MSM_SECURITY_MISSING (WLAN_REASON_CODE_PROFILE_BASE +
6) | | #define WLAN_REASON_CODE_MSM_SECURITY_MISSING (WLAN_REASON_CODE_PROFILE_BASE +
6) |
| #define WLAN_REASON_CODE_IHV_SECURITY_NOT_SUPPORTED \ | | #define WLAN_REASON_CODE_IHV_SECURITY_NOT_SUPPORTED \ |
| | |
| skipping to change at line 214 | | skipping to change at line 226 |
| #define WLAN_REASON_CODE_NON_BROADCAST_SET_FOR_ADHOC \ | | #define WLAN_REASON_CODE_NON_BROADCAST_SET_FOR_ADHOC \ |
| (WLAN_REASON_CODE_PROFILE_BASE +
15) | | (WLAN_REASON_CODE_PROFILE_BASE +
15) |
| #define WLAN_REASON_CODE_AUTO_SWITCH_SET_FOR_ADHOC \ | | #define WLAN_REASON_CODE_AUTO_SWITCH_SET_FOR_ADHOC \ |
| (WLAN_REASON_CODE_PROFILE_BASE +
16) | | (WLAN_REASON_CODE_PROFILE_BASE +
16) |
| #define WLAN_REASON_CODE_AUTO_SWITCH_SET_FOR_MANUAL_CONNECTION \ | | #define WLAN_REASON_CODE_AUTO_SWITCH_SET_FOR_MANUAL_CONNECTION \ |
| (WLAN_REASON_CODE_PROFILE_BASE +
17) | | (WLAN_REASON_CODE_PROFILE_BASE +
17) |
| #define WLAN_REASON_CODE_IHV_SECURITY_ONEX_MISSING \ | | #define WLAN_REASON_CODE_IHV_SECURITY_ONEX_MISSING \ |
| (WLAN_REASON_CODE_PROFILE_BASE +
18) | | (WLAN_REASON_CODE_PROFILE_BASE +
18) |
| #define WLAN_REASON_CODE_PROFILE_SSID_INVALID (WLAN_REASON_CODE_PROFILE_BASE +
19) | | #define WLAN_REASON_CODE_PROFILE_SSID_INVALID (WLAN_REASON_CODE_PROFILE_BASE +
19) |
| #define WLAN_REASON_CODE_TOO_MANY_SSID (WLAN_REASON_CODE_PROFILE_BASE +
20) | | #define WLAN_REASON_CODE_TOO_MANY_SSID (WLAN_REASON_CODE_PROFILE_BASE +
20) |
|
| | #define WLAN_REASON_CODE_IHV_CONNECTIVITY_NOT_SUPPORTED \ |
| | (WLAN_REASON_CODE_PROFILE_BASE + |
| | 21) |
| | #define WLAN_REASON_CODE_BAD_MAX_NUMBER_OF_CLIENTS_FOR_AP \ |
| | (WLAN_REASON_CODE_PROFILE_BASE + |
| | 22) |
| | #define WLAN_REASON_CODE_INVALID_CHANNEL (WLAN_REASON_CODE_PROFILE_BASE + |
| | 23) |
| | #define WLAN_REASON_CODE_OPERATION_MODE_NOT_SUPPORTED \ |
| | (WLAN_REASON_CODE_PROFILE_BASE + |
| | 24) |
| | #define WLAN_REASON_CODE_AUTO_AP_PROFILE_NOT_ALLOWED \ |
| | (WLAN_REASON_CODE_PROFILE_BASE + |
| | 25) |
| | #define WLAN_REASON_CODE_AUTO_CONNECTION_NOT_ALLOWED \ |
| | (WLAN_REASON_CODE_PROFILE_BASE + |
| | 26) |
| | |
| // MSM network incompatible reasons | | // MSM network incompatible reasons |
| // | | // |
| #define WLAN_REASON_CODE_UNSUPPORTED_SECURITY_SET_BY_OS \ | | #define WLAN_REASON_CODE_UNSUPPORTED_SECURITY_SET_BY_OS \ |
| (WLAN_REASON_CODE_MSM_BASE +1) | | (WLAN_REASON_CODE_MSM_BASE +1) |
| #define WLAN_REASON_CODE_UNSUPPORTED_SECURITY_SET \ | | #define WLAN_REASON_CODE_UNSUPPORTED_SECURITY_SET \ |
| (WLAN_REASON_CODE_MSM_BASE +2) | | (WLAN_REASON_CODE_MSM_BASE +2) |
| #define WLAN_REASON_CODE_BSS_TYPE_UNMATCH (WLAN_REASON_CODE_MSM_BASE +3) | | #define WLAN_REASON_CODE_BSS_TYPE_UNMATCH (WLAN_REASON_CODE_MSM_BASE +3) |
| #define WLAN_REASON_CODE_PHY_TYPE_UNMATCH (WLAN_REASON_CODE_MSM_BASE +4) | | #define WLAN_REASON_CODE_PHY_TYPE_UNMATCH (WLAN_REASON_CODE_MSM_BASE +4) |
| #define WLAN_REASON_CODE_DATARATE_UNMATCH (WLAN_REASON_CODE_MSM_BASE +5) | | #define WLAN_REASON_CODE_DATARATE_UNMATCH (WLAN_REASON_CODE_MSM_BASE +5) |
| | |
| skipping to change at line 264 | | skipping to change at line 287 |
| // Response from ihv timed out | | // Response from ihv timed out |
| #define WLAN_REASON_CODE_IHV_NOT_RESPONDING (WLAN_REASON_CODE_MSM_CONNECT_BASE
+14) | | #define WLAN_REASON_CODE_IHV_NOT_RESPONDING (WLAN_REASON_CODE_MSM_CONNECT_BASE
+14) |
| // Timed out waiting for driver to disconnect | | // Timed out waiting for driver to disconnect |
| #define WLAN_REASON_CODE_DISCONNECT_TIMEOUT (WLAN_REASON_CODE_MSM_CONNECT_BASE
+15) | | #define WLAN_REASON_CODE_DISCONNECT_TIMEOUT (WLAN_REASON_CODE_MSM_CONNECT_BASE
+15) |
| // An internal error prevented the operation from being completed. | | // An internal error prevented the operation from being completed. |
| #define WLAN_REASON_CODE_INTERNAL_FAILURE (WLAN_REASON_CODE_MSM_CONNECT_BASE
+16) | | #define WLAN_REASON_CODE_INTERNAL_FAILURE (WLAN_REASON_CODE_MSM_CONNECT_BASE
+16) |
| // UI Request timed out. | | // UI Request timed out. |
| #define WLAN_REASON_CODE_UI_REQUEST_TIMEOUT (WLAN_REASON_CODE_MSM_CONNECT_BASE
+17) | | #define WLAN_REASON_CODE_UI_REQUEST_TIMEOUT (WLAN_REASON_CODE_MSM_CONNECT_BASE
+17) |
| // Roaming too often, post security is not completed after 5 times. | | // Roaming too often, post security is not completed after 5 times. |
| #define WLAN_REASON_CODE_TOO_MANY_SECURITY_ATTEMPTS (WLAN_REASON_CODE_MSM_CONNEC
T_BASE+18) | | #define WLAN_REASON_CODE_TOO_MANY_SECURITY_ATTEMPTS (WLAN_REASON_CODE_MSM_CONNEC
T_BASE+18) |
|
| | // Failed to start AP |
| | #define WLAN_REASON_CODE_AP_STARTING_FAILURE (WLAN_REASON_CODE_MSM_CONNECT_BA |
| | SE+19) |
| | |
| // MSMSEC reason codes | | // MSMSEC reason codes |
| // | | // |
| | |
| #define WLAN_REASON_CODE_MSMSEC_MIN WLAN_REASON_CODE_MSM
SEC_BASE | | #define WLAN_REASON_CODE_MSMSEC_MIN WLAN_REASON_CODE_MSM
SEC_BASE |
| | |
| // Key index specified is not valid | | // Key index specified is not valid |
| #define WLAN_REASON_CODE_MSMSEC_PROFILE_INVALID_KEY_INDEX (WLAN_REASON_CODE_MS
MSEC_BASE+1) | | #define WLAN_REASON_CODE_MSMSEC_PROFILE_INVALID_KEY_INDEX (WLAN_REASON_CODE_MS
MSEC_BASE+1) |
| // Key required, PSK present | | // Key required, PSK present |
| #define WLAN_REASON_CODE_MSMSEC_PROFILE_PSK_PRESENT (WLAN_REASON_CODE_MS
MSEC_BASE+2) | | #define WLAN_REASON_CODE_MSMSEC_PROFILE_PSK_PRESENT (WLAN_REASON_CODE_MS
MSEC_BASE+2) |
| | |
| skipping to change at line 327 | | skipping to change at line 352 |
| // Group key update interval in profile is incorrect | | // Group key update interval in profile is incorrect |
| #define WLAN_REASON_CODE_MSMSEC_PROFILE_INVALID_GKEY_INTV (WLAN_REASON_CODE_MS
MSEC_BASE+27) | | #define WLAN_REASON_CODE_MSMSEC_PROFILE_INVALID_GKEY_INTV (WLAN_REASON_CODE_MS
MSEC_BASE+27) |
| // "Transition network" suspected, trying legacy 802.11 security | | // "Transition network" suspected, trying legacy 802.11 security |
| #define WLAN_REASON_CODE_MSMSEC_TRANSITION_NETWORK (WLAN_REASON_CODE_MS
MSEC_BASE+28) | | #define WLAN_REASON_CODE_MSMSEC_TRANSITION_NETWORK (WLAN_REASON_CODE_MS
MSEC_BASE+28) |
| // Key contains characters which do not map to ASCII | | // Key contains characters which do not map to ASCII |
| #define WLAN_REASON_CODE_MSMSEC_PROFILE_KEY_UNMAPPED_CHAR (WLAN_REASON_CODE_MS
MSEC_BASE+29) | | #define WLAN_REASON_CODE_MSMSEC_PROFILE_KEY_UNMAPPED_CHAR (WLAN_REASON_CODE_MS
MSEC_BASE+29) |
| // Capability matching failed at profile (auth not found) | | // Capability matching failed at profile (auth not found) |
| #define WLAN_REASON_CODE_MSMSEC_CAPABILITY_PROFILE_AUTH (WLAN_REASON_CODE_MS
MSEC_BASE+30) | | #define WLAN_REASON_CODE_MSMSEC_CAPABILITY_PROFILE_AUTH (WLAN_REASON_CODE_MS
MSEC_BASE+30) |
| // Capability matching failed at profile (cipher not found) | | // Capability matching failed at profile (cipher not found) |
| #define WLAN_REASON_CODE_MSMSEC_CAPABILITY_PROFILE_CIPHER (WLAN_REASON_CODE_MS
MSEC_BASE+31) | | #define WLAN_REASON_CODE_MSMSEC_CAPABILITY_PROFILE_CIPHER (WLAN_REASON_CODE_MS
MSEC_BASE+31) |
|
| | // Safe mode value is invalid |
| | #define WLAN_REASON_CODE_MSMSEC_PROFILE_SAFE_MODE (WLAN_REASON_CODE_MS |
| | MSEC_BASE+32) |
| | // 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) |
| | // 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) |
| | // Profile has unsupported auth |
| | #define WLAN_REASON_CODE_MSMSEC_PROFILE_UNSUPPORTED_AUTH (WLAN_REASON_CODE_MS |
| | MSEC_BASE+35) |
| | // Profile has unsupported cipher |
| | #define WLAN_REASON_CODE_MSMSEC_PROFILE_UNSUPPORTED_CIPHER (WLAN_REASON_CODE_MS |
| | MSEC_BASE+36) |
| | |
| // 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 370 | | skipping to change at line 405 |
| // Operation was cancelled by caller | | // Operation was cancelled by caller |
| #define WLAN_REASON_CODE_MSMSEC_CANCELLED (WLAN_REASON_CODE_MS
MSEC_CONNECT_BASE+17) | | #define WLAN_REASON_CODE_MSMSEC_CANCELLED (WLAN_REASON_CODE_MS
MSEC_CONNECT_BASE+17) |
| // Key was in incorrect format | | // Key was in incorrect format |
| #define WLAN_REASON_CODE_MSMSEC_KEY_FORMAT (WLAN_REASON_CODE_MS
MSEC_CONNECT_BASE+18) | | #define WLAN_REASON_CODE_MSMSEC_KEY_FORMAT (WLAN_REASON_CODE_MS
MSEC_CONNECT_BASE+18) |
| // Security downgrade detected | | // Security downgrade detected |
| #define WLAN_REASON_CODE_MSMSEC_DOWNGRADE_DETECTED (WLAN_REASON_CODE_MS
MSEC_CONNECT_BASE+19) | | #define WLAN_REASON_CODE_MSMSEC_DOWNGRADE_DETECTED (WLAN_REASON_CODE_MS
MSEC_CONNECT_BASE+19) |
| // PSK mismatch suspected | | // PSK mismatch suspected |
| #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) |
|
| // ui request couldn't be queued or user pressed cancel | | // Message 3 of 4 way handshake contains too many RSN IE (RSN) |
| #define WLAN_REASON_CODE_MSMSEC_SECURITY_UI_FAILURE (WLAN_REASON_CODE_MS | | #define WLAN_REASON_CODE_MSMSEC_M3_TOO_MANY_RSNIE (WLAN_REASON_CODE_MS |
| MSEC_CONNECT_BASE+22) | | MSEC_CONNECT_BASE+22) |
| | // 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) |
| | // 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_AUTH_WCN_COMPLETED (WLAN_REASON_CODE_MS |
| | MSEC_CONNECT_BASE+25) |
| | |
| #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 |
| | |
| | |
| skipping to change at line 456 | | skipping to change at line 496 |
| WLAN_BSS_ENTRY wlanBssEntries[1]; | | WLAN_BSS_ENTRY wlanBssEntries[1]; |
| } WLAN_BSS_LIST, *PWLAN_BSS_LIST; | | } WLAN_BSS_LIST, *PWLAN_BSS_LIST; |
| | |
| // the states of the network (interface) | | // the states of the network (interface) |
| #ifdef __midl | | #ifdef __midl |
| // use the 4-byte enum | | // use the 4-byte enum |
| typedef [v1_enum] enum _WLAN_INTERFACE_STATE { | | typedef [v1_enum] enum _WLAN_INTERFACE_STATE { |
| #else | | #else |
| typedef enum _WLAN_INTERFACE_STATE { | | typedef enum _WLAN_INTERFACE_STATE { |
| #endif | | #endif |
|
| wlan_interface_state_not_ready = 0, | | wlan_interface_state_not_ready, |
| wlan_interface_state_connected, | | wlan_interface_state_connected, |
| wlan_interface_state_ad_hoc_network_formed, | | wlan_interface_state_ad_hoc_network_formed, |
| wlan_interface_state_disconnecting, | | wlan_interface_state_disconnecting, |
| wlan_interface_state_disconnected, | | wlan_interface_state_disconnected, |
| wlan_interface_state_associating, | | wlan_interface_state_associating, |
| wlan_interface_state_discovering, | | wlan_interface_state_discovering, |
| wlan_interface_state_authenticating | | wlan_interface_state_authenticating |
| } WLAN_INTERFACE_STATE, *PWLAN_INTERFACE_STATE; | | } WLAN_INTERFACE_STATE, *PWLAN_INTERFACE_STATE; |
| | |
| // Adhoc network states | | // Adhoc network states |
| | |
| skipping to change at line 702 | | skipping to change at line 742 |
| | |
| // 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 |
| #define WLAN_NOTIFICATION_SOURCE_MSM L2_NOTIFICATION_SOURCE_WLAN_MSM | | #define WLAN_NOTIFICATION_SOURCE_MSM L2_NOTIFICATION_SOURCE_WLAN_MSM |
| #define WLAN_NOTIFICATION_SOURCE_SECURITY L2_NOTIFICATION_SOURCE_WLAN_SECURI
TY | | #define WLAN_NOTIFICATION_SOURCE_SECURITY L2_NOTIFICATION_SOURCE_WLAN_SECURI
TY |
| #define WLAN_NOTIFICATION_SOURCE_IHV L2_NOTIFICATION_SOURCE_WLAN_IHV | | #define WLAN_NOTIFICATION_SOURCE_IHV L2_NOTIFICATION_SOURCE_WLAN_IHV |
|
| | #define WLAN_NOTIFICATION_SOURCE_HNWK L2_NOTIFICATION_SOURCE_WLAN_HNWK |
| | #define WLAN_NOTIFICATION_SOURCE_ONEX L2_NOTIFICATION_SOURCE_ONEX |
| | |
| #ifdef __midl | | #ifdef __midl |
| // use the 4-byte enum | | // use the 4-byte enum |
| typedef [v1_enum] enum _WLAN_NOTIFICATION_ACM { | | typedef [v1_enum] enum _WLAN_NOTIFICATION_ACM { |
| #else | | #else |
| typedef enum _WLAN_NOTIFICATION_ACM { | | typedef enum _WLAN_NOTIFICATION_ACM { |
| #endif | | #endif |
| wlan_notification_acm_start = L2_NOTIFICATION_CODE_PUBLIC_BEGIN, | | wlan_notification_acm_start = L2_NOTIFICATION_CODE_PUBLIC_BEGIN, |
| wlan_notification_acm_autoconf_enabled, | | wlan_notification_acm_autoconf_enabled, |
| wlan_notification_acm_autoconf_disabled, | | wlan_notification_acm_autoconf_disabled, |
| | |
| skipping to change at line 806 | | skipping to change at line 848 |
| wlan_intf_opcode_media_streaming_mode, | | wlan_intf_opcode_media_streaming_mode, |
| wlan_intf_opcode_radio_state, | | wlan_intf_opcode_radio_state, |
| wlan_intf_opcode_bss_type, | | wlan_intf_opcode_bss_type, |
| 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_certified_safe_mode, |
| | wlan_intf_opcode_hosted_network_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 827 | | skipping to change at line 872 |
| // OpCodes for set/query auto config parameters | | // OpCodes for set/query auto config parameters |
| #ifdef __midl | | #ifdef __midl |
| // use the 4-byte enum | | // use the 4-byte enum |
| typedef [v1_enum] enum _WLAN_AUTOCONF_OPCODE { | | typedef [v1_enum] enum _WLAN_AUTOCONF_OPCODE { |
| #else | | #else |
| typedef enum _WLAN_AUTOCONF_OPCODE { | | typedef enum _WLAN_AUTOCONF_OPCODE { |
| #endif | | #endif |
| wlan_autoconf_opcode_start = 0, | | wlan_autoconf_opcode_start = 0, |
| wlan_autoconf_opcode_show_denied_networks, | | wlan_autoconf_opcode_show_denied_networks, |
| wlan_autoconf_opcode_power_setting, | | wlan_autoconf_opcode_power_setting, |
|
| | wlan_autoconf_opcode_only_use_gp_profiles_for_allowed_networks, |
| | wlan_autoconf_opcode_allow_explicit_creds, |
| | wlan_autoconf_opcode_block_period, |
| | wlan_autoconf_opcode_allow_virtual_station_extensibility, |
| wlan_autoconf_opcode_end | | wlan_autoconf_opcode_end |
| } WLAN_AUTOCONF_OPCODE, *PWLAN_AUTOCONF_OPCODE; | | } WLAN_AUTOCONF_OPCODE, *PWLAN_AUTOCONF_OPCODE; |
| | |
| // IHV control types | | // IHV control types |
| #ifdef __midl | | #ifdef __midl |
| // use the 4-byte enum | | // use the 4-byte enum |
| typedef [v1_enum] enum _WLAN_IHV_CONTROL_TYPE { | | typedef [v1_enum] enum _WLAN_IHV_CONTROL_TYPE { |
| #else | | #else |
| typedef enum _WLAN_IHV_CONTROL_TYPE { | | typedef enum _WLAN_IHV_CONTROL_TYPE { |
| #endif | | #endif |
| | |
| skipping to change at line 931 | | skipping to change at line 980 |
| wlan_secure_bc_scan_enabled, | | wlan_secure_bc_scan_enabled, |
| wlan_secure_bss_type, | | wlan_secure_bss_type, |
| wlan_secure_show_denied, | | wlan_secure_show_denied, |
| 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_hosted_network_elevated_access, |
| | wlan_secure_virtual_station_extensibility, |
| | |
| WLAN_SECURABLE_OBJECT_COUNT | | WLAN_SECURABLE_OBJECT_COUNT |
| } | | } |
| WLAN_SECURABLE_OBJECT, *PWLAN_SECURABLE_OBJECT; | | WLAN_SECURABLE_OBJECT, *PWLAN_SECURABLE_OBJECT; |
| | |
| // public APIs | | // public APIs |
| DWORD WINAPI | | DWORD WINAPI |
| WlanOpenHandle( | | WlanOpenHandle( |
| __in DWORD dwClientVersion, | | __in DWORD dwClientVersion, |
| __reserved PVOID pReserved, | | __reserved PVOID pReserved, |
| | |
| skipping to change at line 1080 | | skipping to change at line 1132 |
| __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, | | __deref_out LPWSTR *pstrProfileXml, |
|
| __out_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, |
| | |
| skipping to change at line 1276 | | skipping to change at line 1328 |
| // 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 |
| #define WLAN_UI_API_INITIAL_VERSION 1 | | #define WLAN_UI_API_INITIAL_VERSION 1 |
| | |
| // 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 |
| } 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) |
| | |
| | // Hosted Network APIs |
| | |
| | typedef |
| | #ifdef __midl |
| | [v1_enum] |
| | #endif |
| | enum _WLAN_HOSTED_NETWORK_STATE |
| | { |
| | wlan_hosted_network_unavailable, |
| | wlan_hosted_network_idle, |
| | wlan_hosted_network_active, |
| | } |
| | WLAN_HOSTED_NETWORK_STATE, *PWLAN_HOSTED_NETWORK_STATE; |
| | |
| | typedef |
| | #ifdef __midl |
| | [v1_enum] |
| | #endif |
| | enum _WLAN_HOSTED_NETWORK_REASON |
| | { |
| | wlan_hosted_network_reason_success = 0, |
| | wlan_hosted_network_reason_unspecified, |
| | wlan_hosted_network_reason_bad_parameters, |
| | wlan_hosted_network_reason_service_shutting_down, |
| | wlan_hosted_network_reason_insufficient_resources, |
| | wlan_hosted_network_reason_elevation_required, |
| | wlan_hosted_network_reason_read_only, |
| | wlan_hosted_network_reason_persistence_failed, |
| | wlan_hosted_network_reason_crypt_error, |
| | wlan_hosted_network_reason_impersonation, |
| | wlan_hosted_network_reason_stop_before_start, |
| | |
| | wlan_hosted_network_reason_interface_available, |
| | wlan_hosted_network_reason_interface_unavailable, |
| | wlan_hosted_network_reason_miniport_stopped, |
| | wlan_hosted_network_reason_miniport_started, |
| | wlan_hosted_network_reason_incompatible_connection_started, |
| | wlan_hosted_network_reason_incompatible_connection_stopped, |
| | wlan_hosted_network_reason_user_action, |
| | wlan_hosted_network_reason_client_abort, |
| | wlan_hosted_network_reason_ap_start_failed, |
| | |
| | wlan_hosted_network_reason_peer_arrived, |
| | wlan_hosted_network_reason_peer_departed, |
| | wlan_hosted_network_reason_peer_timeout, |
| | wlan_hosted_network_reason_gp_denied, |
| | wlan_hosted_network_reason_service_unavailable, |
| | wlan_hosted_network_reason_device_change, |
| | wlan_hosted_network_reason_properties_change, |
| | wlan_hosted_network_reason_virtual_station_blocking_use, |
| | wlan_hosted_network_reason_service_available_on_virtual_station, |
| | |
| | } |
| | WLAN_HOSTED_NETWORK_REASON, *PWLAN_HOSTED_NETWORK_REASON; |
| | |
| | typedef |
| | #ifdef __midl |
| | [v1_enum] |
| | #endif |
| | enum _WLAN_HOSTED_NETWORK_PEER_AUTH_STATE |
| | { |
| | wlan_hosted_network_peer_state_invalid, |
| | wlan_hosted_network_peer_state_authenticated, |
| | } |
| | WLAN_HOSTED_NETWORK_PEER_AUTH_STATE, *PWLAN_HOSTED_NETWORK_PEER_AUTH_STATE; |
| | |
| | DWORD |
| | WINAPI |
| | WlanHostedNetworkStartUsing |
| | ( |
| | __in HANDLE hClientHandle, |
| | __out_opt PWLAN_HOSTED_NETWORK_REASON pFailReason, |
| | __reserved PVOID pvReserved |
| | ); |
| | |
| | DWORD |
| | WINAPI |
| | WlanHostedNetworkStopUsing |
| | ( |
| | __in HANDLE hClientHandle, |
| | __out_opt PWLAN_HOSTED_NETWORK_REASON pFailReason, |
| | __reserved PVOID pvReserved |
| | ); |
| | |
| | DWORD |
| | WINAPI |
| | WlanHostedNetworkForceStart |
| | ( |
| | __in HANDLE hClientHandle, |
| | __out_opt PWLAN_HOSTED_NETWORK_REASON pFailReason, |
| | __reserved PVOID pvReserved |
| | ); |
| | |
| | DWORD |
| | WINAPI |
| | WlanHostedNetworkForceStop |
| | ( |
| | __in HANDLE hClientHandle, |
| | __out_opt PWLAN_HOSTED_NETWORK_REASON pFailReason, |
| | __reserved PVOID pvReserved |
| | ); |
| | |
| | typedef |
| | struct _WLAN_HOSTED_NETWORK_PEER_STATE |
| | { |
| | DOT11_MAC_ADDRESS PeerMacAddress; |
| | WLAN_HOSTED_NETWORK_PEER_AUTH_STATE PeerAuthState; |
| | } |
| | WLAN_HOSTED_NETWORK_PEER_STATE, *PWLAN_HOSTED_NETWORK_PEER_STATE; |
| | |
| | typedef |
| | struct _WLAN_HOSTED_NETWORK_RADIO_STATE |
| | { |
| | DOT11_RADIO_STATE dot11SoftwareRadioState; |
| | DOT11_RADIO_STATE dot11HardwareRadioState; |
| | } |
| | WLAN_HOSTED_NETWORK_RADIO_STATE, *PWLAN_HOSTED_NETWORK_RADIO_STATE; |
| | |
| | // Definitions required for calling WlanRegisterNotification |
| | // Notification source - L2_NOTIFICATION_SOURCE_WLAN_HNWK |
| | |
| | // Notification code |
| | typedef |
| | #ifdef __midl |
| | [v1_enum] |
| | #endif |
| | enum _WLAN_HOSTED_NETWORK_NOTIFICATION_CODE |
| | { |
| | wlan_hosted_network_state_change = L2_NOTIFICATION_CODE_V2_BEGIN, |
| | wlan_hosted_network_peer_state_change, |
| | wlan_hosted_network_radio_state_change, |
| | } |
| | WLAN_HOSTED_NETWORK_NOTIFICATION_CODE, *PWLAN_HOSTED_NETWORK_NOTIFICATION_CODE; |
| | |
| | // Notification data associated with wlan_hosted_network_state_change |
| | typedef |
| | struct _WLAN_HOSTED_NETWORK_STATE_CHANGE |
| | { |
| | WLAN_HOSTED_NETWORK_STATE OldState; |
| | WLAN_HOSTED_NETWORK_STATE NewState; |
| | WLAN_HOSTED_NETWORK_REASON StateChangeReason; |
| | } |
| | WLAN_HOSTED_NETWORK_STATE_CHANGE, *PWLAN_HOSTED_NETWORK_STATE_CHANGE; |
| | |
| | // Notification data associated with wlan_hosted_network_peer_state_change |
| | typedef |
| | struct _WLAN_HOSTED_NETWORK_DATA_PEER_STATE_CHANGE |
| | { |
| | WLAN_HOSTED_NETWORK_PEER_STATE OldState; |
| | WLAN_HOSTED_NETWORK_PEER_STATE NewState; |
| | WLAN_HOSTED_NETWORK_REASON PeerStateChangeReason; |
| | } |
| | WLAN_HOSTED_NETWORK_DATA_PEER_STATE_CHANGE, *PWLAN_HOSTED_NETWORK_DATA_PEER_STAT |
| | E_CHANGE; |
| | |
| | // Notification data associated with wlan_hosted_network_radio_state_change |
| | // WLAN_HOSTED_NETWORK_RADIO_STATE |
| | |
| | // Definitions required for calling WlanHostedNetworkQueryProperty and WlanHoste |
| | dNetworkSetProperty |
| | |
| | typedef |
| | #ifdef __midl |
| | [v1_enum] |
| | #endif |
| | enum |
| | _WLAN_HOSTED_NETWORK_OPCODE |
| | { |
| | wlan_hosted_network_opcode_connection_settings, |
| | wlan_hosted_network_opcode_security_settings, |
| | wlan_hosted_network_opcode_station_profile, |
| | wlan_hosted_network_opcode_enable, |
| | } |
| | WLAN_HOSTED_NETWORK_OPCODE, *PWLAN_HOSTED_NETWORK_OPCODE; |
| | |
| | // Data structure associated with wlan_hosted_network_opcode_connection_settings |
| | // can be used for query and set |
| | typedef |
| | struct _WLAN_HOSTED_NETWORK_CONNECTION_SETTINGS |
| | { |
| | DOT11_SSID hostedNetworkSSID; |
| | DWORD dwMaxNumberOfPeers; |
| | } |
| | WLAN_HOSTED_NETWORK_CONNECTION_SETTINGS, *PWLAN_HOSTED_NETWORK_CONNECTION_SETTIN |
| | GS; |
| | |
| | // Data structure associated with wlan_hosted_network_opcode_security_settings |
| | // can be used for query only |
| | typedef |
| | struct _WLAN_HOSTED_NETWORK_SECURITY_SETTINGS |
| | { |
| | DOT11_AUTH_ALGORITHM dot11AuthAlgo; |
| | DOT11_CIPHER_ALGORITHM dot11CipherAlgo; |
| | } |
| | WLAN_HOSTED_NETWORK_SECURITY_SETTINGS, *PWLAN_HOSTED_NETWORK_SECURITY_SETTINGS; |
| | |
| | // Data structure associated with wlan_hosted_network_opcode_station_profile |
| | // can be used for query only |
| | // LPWSTR |
| | |
| | // Data structure associated with wlan_hosted_network_opcode_enable |
| | // can be used for query and set |
| | // BOOL |
| | |
| | // |
| | // This function queries the static properties of the hosted network |
| | // |
| | DWORD |
| | WINAPI |
| | WlanHostedNetworkQueryProperty |
| | ( |
| | __in HANDLE hClientHandl |
| | e, |
| | __in WLAN_HOSTED_NETWORK_OPCODE OpCode, |
| | __out PDWORD pdwDataSize, |
| | __deref_out_bcount(*pdwDataSize) PVOID* ppvData, |
| | __out PWLAN_OPCODE_VALUE_TYPE pWlanOpcodeV |
| | alueType, |
| | __reserved PVOID pvReserved |
| | ); |
| | |
| | // |
| | // This function sets the static properties of the hosted network |
| | // |
| | DWORD |
| | WINAPI |
| | WlanHostedNetworkSetProperty |
| | ( |
| | __in HANDLE hClientHandle, |
| | __in WLAN_HOSTED_NETWORK_OPCODE OpCode, |
| | __in DWORD dwDataSize, |
| | __in_bcount(dwDataSize) PVOID pvData, |
| | __out_opt PWLAN_HOSTED_NETWORK_REASON pFailReason, |
| | __reserved PVOID pvReserved |
| | ); |
| | |
| | // |
| | // This function initializes hosted network configuration |
| | // on a machine. There are no effects if an initial |
| | // configuration has already been created. |
| | // |
| | DWORD |
| | WINAPI |
| | WlanHostedNetworkInitSettings |
| | ( |
| | __in HANDLE hClientHandle, |
| | __out_opt PWLAN_HOSTED_NETWORK_REASON pFailReason, |
| | __reserved PVOID pvReserved |
| | ); |
| | |
| | DWORD |
| | WINAPI |
| | WlanHostedNetworkRefreshSecuritySettings |
| | ( |
| | __in HANDLE hClientHandle, |
| | __out_opt PWLAN_HOSTED_NETWORK_REASON pFailReason, |
| | __reserved PVOID pvReserved |
| | ); |
| | |
| | typedef |
| | struct _WLAN_HOSTED_NETWORK_STATUS |
| | { |
| | WLAN_HOSTED_NETWORK_STATE HostedNetworkState; |
| | GUID IPDeviceID; |
| | DOT11_MAC_ADDRESS wlanHostedNetworkBSSID; |
| | DOT11_PHY_TYPE dot11PhyType; |
| | ULONG ulChannelFrequency; |
| | |
| | DWORD dwNumberOfPeers; |
| | #ifdef __midl |
| | [unique, size_is(dwNumberOfPeers)] WLAN_HOSTED_NETWORK_PEER_STATE PeerList[* |
| | ]; |
| | #else |
| | WLAN_HOSTED_NETWORK_PEER_STATE PeerList[1]; |
| | #endif |
| | } |
| | WLAN_HOSTED_NETWORK_STATUS, *PWLAN_HOSTED_NETWORK_STATUS; |
| | |
| | // |
| | // This function queries the runtime status of the hosted network |
| | // |
| | DWORD |
| | WINAPI |
| | WlanHostedNetworkQueryStatus |
| | ( |
| | __in HANDLE hClientHandle, |
| | __deref_out PWLAN_HOSTED_NETWORK_STATUS* ppWlanHostedNetworkStatus, |
| | __reserved PVOID pvReserved |
| | ); |
| | |
| | // |
| | // This function set the additional security key used by hosted network |
| | // if it is passphrase, key length includes the terminating '\0', |
| | // if not, key length is the number of bytes in the key data array. |
| | // |
| | DWORD |
| | WINAPI |
| | WlanHostedNetworkSetSecondaryKey |
| | ( |
| | __in HANDLE hClientHandle, |
| | __in DWORD dwKeyLength, |
| | __in_bcount(dwKeyLength) PUCHAR pucKeyData, |
| | __in BOOL bIsPassPhrase, |
| | __in BOOL bPersistent, |
| | __out_opt PWLAN_HOSTED_NETWORK_REASON pFailReason, |
| | __reserved PVOID pvReserved |
| | ); |
| | |
| | // |
| | // This function query the additional security key used by hosted network |
| | // If it is passphrase, key length includes the terminating '\0', |
| | // if not, key length is the number of bytes in the key data array. |
| | // |
| | DWORD |
| | WINAPI |
| | WlanHostedNetworkQuerySecondaryKey |
| | ( |
| | __in HANDLE hClientHandle, |
| | __out PDWORD pdwKeyLength, |
| | __deref_out_ecount(*pdwKeyLength) PUCHAR *ppucKeyData, |
| | __out PBOOL pbIsPassPhrase, |
| | __out PBOOL pbPersistent, |
| | __out_opt PWLAN_HOSTED_NETWORK_REASON pFailReason, |
| | __reserved PVOID pvReserved |
| | ); |
| | |
| | // |
| | // This function is used to register and unregister notifications on virtual sta |
| | tion. |
| | // |
| | DWORD |
| | WINAPI |
| | WlanRegisterVirtualStationNotification |
| | ( |
| | __in HANDLE hClientHandle, |
| | __in BOOL bRegister, |
| | __reserved PVOID pReserved |
| | ); |
| | |
| | #endif // (_WIN32_WINNT >= _WIN32_WINNT_WIN7) |
| | |
| #ifdef __cplusplus | | #ifdef __cplusplus |
| } | | } |
| #endif | | #endif |
| | |
| #endif // _WLAN_WLANAPI_H | | #endif // _WLAN_WLANAPI_H |
| | |
| End of changes. 18 change blocks. |
| 14 lines changed or deleted | | 428 lines changed or added |
|