/usr/x86_64-w64-mingw32/include/wlanapi.h is in mingw-w64-x86-64-dev 2.0.3-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 | /**
* This file has no copyright assigned and is placed in the Public Domain.
* This file is part of the w64 mingw-runtime package.
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
*/
#ifndef _INC_WLANAPI
#define _INC_WLANAPI
#include <windot11.h>
#include <eaptypes.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef DWORD WLAN_REASON_CODE, *PWLAN_REASON_CODE;
typedef ULONG WLAN_SIGNAL_QUALITY, *PWLAN_SIGNAL_QUALITY;
typedef struct _DOT11_NETWORK {
DOT11_SSID dot11Ssid;
DOT11_BSS_TYPE dot11BssType;
} DOT11_NETWORK, *PDOT11_NETWORK;
typedef enum _DOT11_RADIO_STATE {
dot11_radio_state_unknown,
dot11_radio_state_on,
dot11_radio_state_off
} DOT11_RADIO_STATE, *PDOT11_RADIO_STATE;
typedef enum _WLAN_NOTIFICATION_ACM {
wlan_notification_acm_start = 0,
wlan_notification_acm_autoconf_enabled,
wlan_notification_acm_autoconf_disabled,
wlan_notification_acm_background_scan_enabled,
wlan_notification_acm_background_scan_disabled,
wlan_notification_acm_bss_type_change,
wlan_notification_acm_power_setting_change,
wlan_notification_acm_scan_complete,
wlan_notification_acm_scan_fail,
wlan_notification_acm_connection_start,
wlan_notification_acm_connection_complete,
wlan_notification_acm_connection_attempt_fail,
wlan_notification_acm_filter_list_change,
wlan_notification_acm_interface_arrival,
wlan_notification_acm_interface_removal,
wlan_notification_acm_profile_change,
wlan_notification_acm_profile_name_change,
wlan_notification_acm_profiles_exhausted,
wlan_notification_acm_network_not_available,
wlan_notification_acm_network_available,
wlan_notification_acm_disconnecting,
wlan_notification_acm_disconnected,
wlan_notification_acm_adhoc_network_state_change,
wlan_notification_acm_end
} WLAN_NOTIFICATION_ACM, *PWLAN_NOTIFICATION_ACM;
typedef enum _WLAN_INTERFACE_STATE {
wlan_interface_state_not_ready = 0,
wlan_interface_state_connected = 1,
wlan_interface_state_ad_hoc_network_formed = 2,
wlan_interface_state_disconnecting = 3,
wlan_interface_state_disconnected = 4,
wlan_interface_state_associating = 5,
wlan_interface_state_discovering = 6,
wlan_interface_state_authenticating = 7
} WLAN_INTERFACE_STATE, *PWLAN_INTERFACE_STATE;
typedef enum _WLAN_CONNECTION_MODE {
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
} WLAN_CONNECTION_MODE, *PWLAN_CONNECTION_MODE;
typedef enum _WLAN_INTERFACE_TYPE {
wlan_interface_type_emulated_802_11 = 0,
wlan_interface_type_native_802_11,
wlan_interface_type_invalid
} WLAN_INTERFACE_TYPE, *PWLAN_INTERFACE_TYPE;
typedef enum _WLAN_INTF_OPCODE {
wlan_intf_opcode_autoconf_start = 0x000000000,
wlan_intf_opcode_autoconf_enabled,
wlan_intf_opcode_background_scan_enabled,
wlan_intf_opcode_media_streaming_mode,
wlan_intf_opcode_radio_state,
wlan_intf_opcode_bss_type,
wlan_intf_opcode_interface_state,
wlan_intf_opcode_current_connection,
wlan_intf_opcode_channel_number,
wlan_intf_opcode_supported_infrastructure_auth_cipher_pairs,
wlan_intf_opcode_supported_adhoc_auth_cipher_pairs,
wlan_intf_opcode_supported_country_or_region_string_list,
wlan_intf_opcode_current_operation_mode,
wlan_intf_opcode_supported_safe_mode,
wlan_intf_opcode_certified_safe_mode,
wlan_intf_opcode_hosted_network_capable,
wlan_intf_opcode_autoconf_end = 0x0fffffff,
wlan_intf_opcode_msm_start = 0x10000100,
wlan_intf_opcode_statistics,
wlan_intf_opcode_rssi,
wlan_intf_opcode_msm_end = 0x1fffffff,
wlan_intf_opcode_security_start = 0x20010000,
wlan_intf_opcode_security_end = 0x2fffffff,
wlan_intf_opcode_ihv_start = 0x30000000,
wlan_intf_opcode_ihv_end = 0x3fffffff
} WLAN_INTF_OPCODE, *PWLAN_INTF_OPCODE;
typedef enum _WLAN_OPCODE_VALUE_TYPE {
wlan_opcode_value_type_query_only = 0,
wlan_opcode_value_type_set_by_group_policy = 1,
wlan_opcode_value_type_set_by_user = 2,
wlan_opcode_value_type_invalid = 3
} WLAN_OPCODE_VALUE_TYPE, *PWLAN_OPCODE_VALUE_TYPE;
typedef enum _WLAN_POWER_SETTING {
wlan_power_setting_no_saving,
wlan_power_setting_low_saving,
wlan_power_setting_medium_saving,
wlan_power_setting_maximum_saving,
wlan_power_setting_invalid
} WLAN_POWER_SETTING, *PWLAN_POWER_SETTING;
typedef struct _WLAN_ASSOCIATION_ATTRIBUTES {
DOT11_SSID dot11Ssid;
DOT11_BSS_TYPE dot11BssType;
DOT11_MAC_ADDRESS dot11Bssid;
DOT11_PHY_TYPE dot11PhyType;
ULONG uDot11PhyIndex;
WLAN_SIGNAL_QUALITY wlanSignalQuality;
ULONG ulRxRate;
ULONG ulTxRate;
} WLAN_ASSOCIATION_ATTRIBUTES, *PWLAN_ASSOCIATION_ATTRIBUTES;
typedef struct _WLAN_AUTH_CIPHER_PAIR_LIST {
DWORD dwNumberOfItems;
DOT11_AUTH_CIPHER_PAIR pAuthCipherPairList;
} WLAN_AUTH_CIPHER_PAIR_LIST, *PWLAN_AUTH_CIPHER_PAIR_LIST;
typedef struct _WLAN_NOTIFICATION_DATA {
DWORD NotificationSource;
DWORD NotificationCode;
GUID InterfaceGuid;
DWORD dwDataSize;
PVOID pData;
} WLAN_NOTIFICATION_DATA, *PWLAN_NOTIFICATION_DATA;
#define WLAN_MAX_PHY_TYPE_NUMBER 8
typedef struct _WLAN_AVAILABLE_NETWORK {
WCHAR strProfileName[256];
DOT11_SSID dot11Ssid;
DOT11_BSS_TYPE dot11BssType;
ULONG uNumberOfBssids;
WINBOOL bNetworkConnectable;
WLAN_REASON_CODE wlanNotConnectableReason;
ULONG uNumberOfPhyTypes;
DOT11_PHY_TYPE dot11PhyTypes[WLAN_MAX_PHY_TYPE_NUMBER];
WINBOOL bMorePhyTypes;
WLAN_SIGNAL_QUALITY wlanSignalQuality;
WINBOOL bSecurityEnabled;
DOT11_AUTH_ALGORITHM dot11DefaultAuthAlgorithm;
DOT11_CIPHER_ALGORITHM dot11DefaultCipherAlgorithm;
DWORD dwFlags;
DWORD dwReserved;
} WLAN_AVAILABLE_NETWORK, *PWLAN_AVAILABLE_NETWORK;
typedef struct _WLAN_AVAILABLE_NETWORK_LIST {
DWORD dwNumberOfItems;
DWORD dwIndex;
WLAN_AVAILABLE_NETWORK Network[1];
} WLAN_AVAILABLE_NETWORK_LIST, *PWLAN_AVAILABLE_NETWORK_LIST;
typedef struct _WLAN_SECURITY_ATTRIBUTES {
WINBOOL bSecurityEnabled;
WINBOOL bOneXEnabled;
DOT11_AUTH_ALGORITHM dot11AuthAlgorithm;
DOT11_CIPHER_ALGORITHM dot11CipherAlgorithm;
} WLAN_SECURITY_ATTRIBUTES, *PWLAN_SECURITY_ATTRIBUTES;
typedef struct _WLAN_CONNECTION_ATTRIBUTES {
WLAN_INTERFACE_STATE isState;
WLAN_CONNECTION_MODE wlanConnectionMode;
WCHAR strProfileName[256];
WLAN_ASSOCIATION_ATTRIBUTES wlanAssociationAttributes;
WLAN_SECURITY_ATTRIBUTES wlanSecurityAttributes;
} WLAN_CONNECTION_ATTRIBUTES, *PWLAN_CONNECTION_ATTRIBUTES;
/* Assuming stdcall */
typedef VOID (CALLBACK *WLAN_NOTIFICATION_CALLBACK)(
PWLAN_NOTIFICATION_DATA ,
PVOID
);
#define WLAN_MAX_NAME_LENGTH 256
typedef struct _WLAN_CONNECTION_NOTIFICATION_DATA {
WLAN_CONNECTION_MODE wlanConnectionMode;
WCHAR strProfileName[WLAN_MAX_NAME_LENGTH];
DOT11_SSID dot11Ssid;
DOT11_BSS_TYPE dot11BssType;
BOOL bSecurityEnabled;
WLAN_REASON_CODE wlanReasonCode;
DWORD dwFlags;
WCHAR strProfileXml[1];
} WLAN_CONNECTION_NOTIFICATION_DATA, *PWLAN_CONNECTION_NOTIFICATION_DATA;
#define WLAN_CONNECTION_HIDDEN_NETWORK 0x00000001
#define WLAN_CONNECTION_ADHOC_JOIN_ONLY 0x00000002
#define WLAN_CONNECTION_IGNORE_PRIVACY_BIT 0x00000004
#define WLAN_CONNECTION_EAPOL_PASSTHROUGH 0x00000008
typedef struct _WLAN_CONNECTION_PARAMETERS {
WLAN_CONNECTION_MODE wlanConnectionMode;
LPCWSTR strProfile;
PDOT11_SSID pDot11Ssid;
PDOT11_BSSID_LIST pDesiredBssidList;
DOT11_BSS_TYPE dot11BssType;
DWORD dwFlags;
} WLAN_CONNECTION_PARAMETERS, *PWLAN_CONNECTION_PARAMETERS;
typedef struct _WLAN_INTERFACE_INFO {
GUID InterfaceGuid;
WCHAR strInterfaceDescription[256];
WLAN_INTERFACE_STATE isState;
} WLAN_INTERFACE_INFO, *PWLAN_INTERFACE_INFO;
typedef struct _WLAN_INTERFACE_INFO_LIST {
DWORD dwNumberOfItems;
DWORD dwIndex;
WLAN_INTERFACE_INFO InterfaceInfo[];
} WLAN_INTERFACE_INFO_LIST, *PWLAN_INTERFACE_INFO_LIST;
typedef struct _WLAN_PROFILE_INFO {
WCHAR strProfileName[256];
DWORD dwFlags;
} WLAN_PROFILE_INFO, *PWLAN_PROFILE_INFO;
typedef struct _WLAN_PROFILE_INFO_LIST {
DWORD dwNumberOfItems;
DWORD dwIndex;
WLAN_PROFILE_INFO ProfileInfo[1];
} WLAN_PROFILE_INFO_LIST, *PWLAN_PROFILE_INFO_LIST;
PVOID WINAPI WlanAllocateMemory(
DWORD dwMemorySize
);
DWORD WINAPI WlanCloseHandle(
HANDLE hClientHandle,
PVOID pReserved
);
DWORD WINAPI WlanConnect(
HANDLE hClientHandle,
const GUID *pInterfaceGuid,
const PWLAN_CONNECTION_PARAMETERS pConnectionParameters,
PVOID pReserved
);
DWORD WINAPI WlanDeleteProfile(
HANDLE hClientHandle,
const GUID *pInterfaceGuid,
LPCWSTR strProfileName,
PVOID pReserved
);
DWORD WINAPI WlanDisconnect(
HANDLE hClientHandle,
const GUID *pInterfaceGuid,
PVOID pReserved
);
DWORD WINAPI WlanEnumInterfaces(
HANDLE hClientHandle,
PVOID pReserved,
PWLAN_INTERFACE_INFO_LIST *ppInterfaceList
);
VOID WINAPI WlanFreeMemory(
PVOID pMemory
);
DWORD WINAPI WlanGetAvailableNetworkList(
HANDLE hClientHandle,
const GUID *pInterfaceGuid,
DWORD dwFlags,
PVOID pReserved,
PWLAN_AVAILABLE_NETWORK_LIST *ppAvailableNetworkList
);
DWORD WINAPI WlanGetProfile(
HANDLE hClientHandle,
const GUID *pInterfaceGuid,
LPCWSTR strProfileName,
PVOID pReserved,
LPWSTR *pstrProfileXml,
DWORD *pdwFlags,
PDWORD pdwGrantedAccess
);
DWORD WINAPI WlanGetProfileList(
HANDLE hClientHandle,
const GUID *pInterfaceGuid,
PVOID pReserved,
PWLAN_PROFILE_INFO_LIST *ppProfileList
);
DWORD WINAPI WlanOpenHandle(
DWORD dwClientVersion,
PVOID pReserved,
PDWORD pdwNegotiatedVersion,
PHANDLE phClientHandle
);
DWORD WINAPI WlanQueryInterface(
HANDLE hClientHandle,
const GUID *pInterfaceGuid,
WLAN_INTF_OPCODE OpCode,
PVOID pReserved,
PDWORD pdwDataSize,
PVOID *ppData,
PWLAN_OPCODE_VALUE_TYPE pWlanOpcodeValueType
);
DWORD WINAPI WlanReasonCodeToString(
DWORD dwReasonCode,
DWORD dwBufferSize,
PWCHAR pStringBuffer,
PVOID pReserved
);
DWORD WINAPI WlanRegisterNotification(
HANDLE hClientHandle,
DWORD dwNotifSource,
WINBOOL bIgnoreDuplicate,
WLAN_NOTIFICATION_CALLBACK funcCallback,
PVOID pCallbackContext,
PVOID pReserved,
PDWORD pdwPrevNotifSource
);
DWORD WINAPI WlanSetInterface(
HANDLE hClientHandle,
const GUID *pInterfaceGuid,
WLAN_INTF_OPCODE OpCode,
DWORD dwDataSize,
const PVOID pData,
PVOID pReserved
);
DWORD WINAPI WlanSetProfile(
HANDLE hClientHandle,
const GUID *pInterfaceGuid,
DWORD dwFlags,
LPCWSTR strProfileXml,
LPCWSTR strAllUserProfileSecurity,
WINBOOL bOverwrite,
PVOID pReserved,
DWORD *pdwReasonCode
);
DWORD WINAPI WlanSetProfileEapXmlUserData(
HANDLE hClientHandle,
const GUID *pInterfaceGuid,
LPCWSTR strProfileName,
DWORD dwFlags,
LPCWSTR strEapXmlUserData,
PVOID pReserved
);
DWORD WINAPI WlanSetProfileList(
HANDLE hClientHandle,
const GUID *pInterfaceGuid,
DWORD dwItems,
LPCWSTR *strProfileNames,
PVOID pReserved
);
DWORD WINAPI WlanSetProfilePosition(
HANDLE hClientHandle,
const GUID *pInterfaceGuid,
LPCWSTR strProfileName,
DWORD dwPosition,
PVOID pReserved
);
#if (_WIN32_WINNT >= 0x0600)
typedef char DOT11_COUNTRY_OR_REGION_STRING[3];
typedef enum _WLAN_AUTOCONF_OPCODE {
wlan_autoconf_opcode_start = 0,
wlan_autoconf_opcode_show_denied_networks = 1,
wlan_autoconf_opcode_power_setting = 2,
wlan_autoconf_opcode_only_use_gp_profiles_for_allowed_networks = 3,
wlan_autoconf_opcode_allow_explicit_creds = 4,
wlan_autoconf_opcode_block_period = 5,
wlan_autoconf_opcode_allow_virtual_station_extensibility = 6,
wlan_autoconf_opcode_end = 7
} WLAN_AUTOCONF_OPCODE, *PWLAN_AUTOCONF_OPCODE;
typedef enum _WL_DISPLAY_PAGES {
WLConnectionPage,
WLSecurityPage
} WL_DISPLAY_PAGES, *PWL_DISPLAY_PAGES;
typedef enum _WLAN_ADHOC_NETWORK_STATE {
wlan_adhoc_network_state_formed = 0,
wlan_adhoc_network_state_connected = 1
} WLAN_ADHOC_NETWORK_STATE;
typedef enum _WLAN_IHV_CONTROL_TYPE {
wlan_ihv_control_type_service,
wlan_ihv_control_type_driver
} WLAN_IHV_CONTROL_TYPE, *PWLAN_IHV_CONTROL_TYPE;
typedef enum _WLAN_FILTER_LIST_TYPE {
wlan_filter_list_type_gp_permit,
wlan_filter_list_type_gp_deny,
wlan_filter_list_type_user_permit,
wlan_filter_list_type_user_deny
} WLAN_FILTER_LIST_TYPE, *PWLAN_FILTER_LIST_TYPE;
typedef enum _WLAN_SECURABLE_OBJECT {
wlan_secure_permit_list = 0,
wlan_secure_deny_list = 1,
wlan_secure_ac_enabled = 2,
wlan_secure_bc_scan_enabled = 3,
wlan_secure_bss_type = 4,
wlan_secure_show_denied = 5,
wlan_secure_interface_properties = 6,
wlan_secure_ihv_control = 7,
wlan_secure_all_user_profiles_order = 8,
wlan_secure_add_new_all_user_profiles = 9,
wlan_secure_add_new_per_user_profiles = 10,
wlan_secure_media_streaming_mode_enabled = 11,
wlan_secure_current_operation_mode = 12,
wlan_secure_get_plaintext_key = 13,
wlan_secure_hosted_network_elevated_access = 14
} WLAN_SECURABLE_OBJECT, *PWLAN_SECURABLE_OBJECT;
typedef struct _DOT11_NETWORK_LIST {
DWORD dwNumberOfItems;
DWORD dwIndex;
DOT11_NETWORK Network[1];
} DOT11_NETWORK_LIST, *PDOT11_NETWORK_LIST;
#define DOT11_RATE_SET_MAX_LENGTH 126
typedef struct _WLAN_RATE_SET {
ULONG uRateSetLength;
USHORT usRateSet[DOT11_RATE_SET_MAX_LENGTH];
} WLAN_RATE_SET, *PWLAN_RATE_SET;
typedef struct _WLAN_BSS_ENTRY {
DOT11_SSID dot11Ssid;
ULONG uPhyId;
DOT11_MAC_ADDRESS dot11Bssid;
DOT11_BSS_TYPE dot11BssType;
DOT11_PHY_TYPE dot11BssPhyType;
LONG lRssi;
ULONG uLinkQuality;
BOOLEAN bInRegDomain;
USHORT usBeaconPeriod;
ULONGLONG ullTimestamp;
ULONGLONG ullHostTimestamp;
USHORT usCapabilityInformation;
ULONG ulChCenterFrequency;
WLAN_RATE_SET wlanRateSet;
ULONG ulIeOffset;
ULONG ulIeSize;
} WLAN_BSS_ENTRY, *PWLAN_BSS_ENTRY;
typedef struct _WLAN_BSS_LIST {
DWORD dwTotalSize;
DWORD dwNumberOfItems;
WLAN_BSS_ENTRY wlanBssEntries[1];
} WLAN_BSS_LIST, *PWLAN_BSS_LIST;
typedef struct _WLAN_COUNTRY_OR_REGION_STRING_LIST {
DWORD dwNumberOfItems;
DOT11_COUNTRY_OR_REGION_STRING pCountryOrRegionStringList[1];
} WLAN_COUNTRY_OR_REGION_STRING_LIST, *PWLAN_COUNTRY_OR_REGION_STRING_LIST;
#define WLAN_MAX_PHY_INDEX 64
typedef struct _WLAN_INTERFACE_CAPABILITY {
WLAN_INTERFACE_TYPE interfaceType;
WINBOOL bDot11DSupported;
DWORD dwMaxDesiredSsidListSize;
DWORD dwMaxDesiredBssidListSize;
DWORD dwNumberOfSupportedPhys;
DOT11_PHY_TYPE dot11PhyTypes[WLAN_MAX_PHY_INDEX];
} WLAN_INTERFACE_CAPABILITY, *PWLAN_INTERFACE_CAPABILITY;
typedef struct _WLAN_MAC_FRAME_STATISTICS {
ULONGLONG ullTransmittedFrameCount;
ULONGLONG ullReceivedFrameCount;
ULONGLONG ullWEPExcludedCount;
ULONGLONG ullTKIPLocalMICFailures;
ULONGLONG ullTKIPReplays;
ULONGLONG ullTKIPICVErrorCount;
ULONGLONG ullCCMPReplays;
ULONGLONG ullCCMPDecryptErrors;
ULONGLONG ullWEPUndecryptableCount;
ULONGLONG ullWEPICVErrorCount;
ULONGLONG ullDecryptSuccessCount;
ULONGLONG ullDecryptFailureCount;
} WLAN_MAC_FRAME_STATISTICS, *PWLAN_MAC_FRAME_STATISTICS;
typedef struct _WLAN_MSM_NOTIFICATION_DATA {
WLAN_CONNECTION_MODE wlanConnectionMode;
WCHAR strProfileName[WLAN_MAX_NAME_LENGTH];
DOT11_SSID dot11Ssid;
DOT11_BSS_TYPE dot11BssType;
DOT11_MAC_ADDRESS dot11MacAddr;
BOOL bSecurityEnabled;
BOOL bFirstPeer;
BOOL bLastPeer;
WLAN_REASON_CODE wlanReasonCode;
} WLAN_MSM_NOTIFICATION_DATA, *PWLAN_MSM_NOTIFICATION_DATA;
typedef struct _WLAN_PHY_FRAME_STATISTICS {
ULONGLONG ullTransmittedFrameCount;
ULONGLONG ullMulticastTransmittedFrameCount;
ULONGLONG ullFailedCount;
ULONGLONG ullRetryCount;
ULONGLONG ullMultipleRetryCount;
ULONGLONG ullMaxTXLifetimeExceededCount;
ULONGLONG ullTransmittedFragmentCount;
ULONGLONG ullRTSSuccessCount;
ULONGLONG ullRTSFailureCount;
ULONGLONG ullACKFailureCount;
ULONGLONG ullReceivedFrameCount;
ULONGLONG ullMulticastReceivedFrameCount;
ULONGLONG ullPromiscuousReceivedFrameCount;
ULONGLONG ullMaxRXLifetimeExceededCount;
ULONGLONG ullFrameDuplicateCount;
ULONGLONG ullReceivedFragmentCount;
ULONGLONG ullPromiscuousReceivedFragmentCount;
ULONGLONG ullFCSErrorCount;
} WLAN_PHY_FRAME_STATISTICS, *PWLAN_PHY_FRAME_STATISTICS;
typedef struct _WLAN_PHY_RADIO_STATE {
DWORD dwPhyIndex;
DOT11_RADIO_STATE dot11SoftwareRadioState;
DOT11_RADIO_STATE dot11HardwareRadioState;
} WLAN_PHY_RADIO_STATE, *PWLAN_PHY_RADIO_STATE;
typedef struct _WLAN_RADIO_STATE {
DWORD dwNumberOfPhys;
WLAN_PHY_RADIO_STATE PhyRadioState[64];
} WLAN_RADIO_STATE, *PWLAN_RADIO_STATE;
#define DOT11_PSD_IE_MAX_DATA_SIZE 240
#define DOT11_PSD_IE_MAX_ENTRY_NUMBER 5
typedef struct _WLAN_RAW_DATA {
DWORD dwDataSize;
BYTE DataBlob[1];
} WLAN_RAW_DATA, *PWLAN_RAW_DATA;
typedef struct _WLAN_RAW_DATA_LIST {
DWORD dwTotalSize;
DWORD dwNumberOfItems;
struct {
DWORD dwDataOffset;
DWORD dwDataSize;
} DataList[1];
} WLAN_RAW_DATA_LIST, *PWLAN_RAW_DATA_LIST;
typedef struct _WLAN_STATISTICS {
ULONGLONG ullFourWayHandshakeFailures;
ULONGLONG ullTKIPCounterMeasuresInvoked;
ULONGLONG ullReserved;
WLAN_MAC_FRAME_STATISTICS MacUcastCounters;
WLAN_MAC_FRAME_STATISTICS MacMcastCounters;
DWORD dwNumberOfPhys;
WLAN_PHY_FRAME_STATISTICS PhyCounters[1];
} WLAN_STATISTICS, *PWLAN_STATISTICS;
DWORD WINAPI WlanExtractPsdIEDataList(
HANDLE hClientHandle,
DWORD dwIeDataSize,
const PBYTE pRawIeData,
LPCWSTR strFormat,
PVOID pReserved,
PWLAN_RAW_DATA_LIST *ppPsdIEDataList
);
DWORD WINAPI WlanGetFilterList(
HANDLE hClientHandle,
WLAN_FILTER_LIST_TYPE wlanFilterListType,
PVOID pReserved,
PDOT11_NETWORK_LIST *ppNetworkList
);
DWORD WINAPI WlanGetInterfaceCapability(
HANDLE hClientHandle,
const GUID *pInterfaceGuid,
PVOID pReserved,
PWLAN_INTERFACE_CAPABILITY *ppCapability
);
DWORD WINAPI WlanGetNetworkBssList(
HANDLE hClientHandle,
const GUID *pInterfaceGuid,
const PDOT11_SSID pDot11Ssid,
DOT11_BSS_TYPE dot11BssType,
WINBOOL bSecurityEnabled,
PVOID pReserved,
PWLAN_BSS_LIST *ppWlanBssList
);
DWORD WINAPI WlanGetProfileCustomUserData(
HANDLE hClientHandle,
const GUID *pInterfaceGuid,
LPCWSTR strProfileName,
PVOID pReserved,
DWORD *pdwDataSize,
PBYTE *ppData
);
DWORD WINAPI WlanGetSecuritySettings(
HANDLE hClientHandle,
WLAN_SECURABLE_OBJECT SecurableObject,
PWLAN_OPCODE_VALUE_TYPE pValueType,
LPWSTR *pstrCurrentSDDL,
PDWORD pdwGrantedAccess
);
DWORD WINAPI WlanIhvControl(
HANDLE hClientHandle,
const GUID *pInterfaceGuid,
WLAN_IHV_CONTROL_TYPE Type,
DWORD dwInBufferSize,
PVOID pInBuffer,
DWORD dwOutBufferSize,
PVOID pOutBuffer,
PDWORD pdwBytesReturned
);
DWORD WINAPI WlanQueryAutoConfigParameter(
HANDLE hClientHandle,
WLAN_AUTOCONF_OPCODE OpCode,
PVOID pReserved,
PDWORD pdwDataSize,
PVOID ppData,
PWLAN_OPCODE_VALUE_TYPE pWlanOpcodeValueType
);
DWORD WINAPI WlanRenameProfile(
HANDLE hClientHandle,
const GUID *pInterfaceGuid,
LPCWSTR strOldProfileName,
LPCWSTR strNewProfileName,
PVOID pReserved
);
#define WLAN_PROFILE_USER 0x00000002
#define WLAN_PROFILE_CONNECTION_MODE_SET_BY_CLIENT 0x00010000
#define WLAN_PROFILE_CONNECTION_MODE_AUTO 0x00020000
DWORD WINAPI WlanSaveTemporaryProfile(
HANDLE hClientHandle,
const GUID *pInterfaceGuid,
LPCWSTR strProfileName,
LPCWSTR strAllUserProfileSecurity,
DWORD dwFlags,
WINBOOL bOverWrite,
PVOID pReserved
);
DWORD WINAPI WlanScan(
HANDLE hClientHandle,
const GUID *pInterfaceGuid,
const PDOT11_SSID pDot11Ssid,
const PWLAN_RAW_DATA pIeData,
PVOID pReserved
);
DWORD WINAPI WlanSetAutoConfigParameter(
HANDLE hClientHandle,
WLAN_AUTOCONF_OPCODE OpCode,
DWORD dwDataSize,
const PVOID pData,
PVOID pReserved
);
DWORD WINAPI WlanSetFilterList(
HANDLE hClientHandle,
WLAN_FILTER_LIST_TYPE wlanFilterListType,
const PDOT11_NETWORK_LIST pNetworkList,
PVOID pReserved
);
DWORD WINAPI WlanSetProfileCustomUserData(
HANDLE hClientHandle,
const GUID *pInterfaceGuid,
LPCWSTR strProfileName,
DWORD dwDataSize,
const PBYTE pData,
PVOID pReserved
);
DWORD WlanSetProfileEapUserData(
HANDLE hClientHandle,
const GUID *pInterfaceGuid,
LPCWSTR strProfileName,
EAP_METHOD_TYPE eapType,
DWORD dwFlags,
DWORD dwEapUserDataSize,
const LPBYTE pbEapUserData,
PVOID pReserved
);
DWORD WINAPI WlanSetPsdIEDataList(
HANDLE hClientHandle,
LPCWSTR strFormat,
const PWLAN_RAW_DATA_LIST pPsdIEDataList,
PVOID pReserved
);
DWORD WINAPI WlanSetSecuritySettings(
HANDLE hClientHandle,
WLAN_SECURABLE_OBJECT SecurableObject,
LPCWSTR strModifiedSDDL
);
DWORD WINAPI WlanUIEditProfile(
DWORD dwClientVersion,
LPCWSTR wstrProfileName,
GUID *pInterfaceGuid,
HWND hWnd,
WL_DISPLAY_PAGES wlStartPage,
PVOID pReserved,
PWLAN_REASON_CODE *pWlanReasonCode
);
#endif /*(_WIN32_WINNT >= 0x0600)*/
#ifdef __cplusplus
}
#endif
#endif /*_INC_WLANAPI*/
|