winapi_ui_automation/um/
wlclient.rs

1// Licensed under the Apache License, Version 2.0
2// <LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
3// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
4// All files in the project carrying such notice may not be copied, modified, or distributed
5// except according to those terms.
6use shared::guiddef::GUID;
7use shared::minwindef::{BOOL, PUCHAR, UCHAR, ULONG, USHORT};
8use shared::windot11::{DOT11_CURRENT_OPERATION_MODE, DOT11_MAC_ADDRESS};
9use um::winnt::LPWSTR;
10STRUCT!{struct DOT11_ADAPTER {
11    gAdapterId: GUID,
12    pszDescription: LPWSTR,
13    Dot11CurrentOpMode: DOT11_CURRENT_OPERATION_MODE,
14}}
15pub type PDOT11_ADAPTER = *mut DOT11_ADAPTER;
16STRUCT!{struct DOT11_BSS_LIST {
17    uNumOfBytes: ULONG,
18    pucBuffer: PUCHAR,
19}}
20pub type PDOT11_BSS_LIST = *mut DOT11_BSS_LIST;
21STRUCT!{struct DOT11_PORT_STATE {
22    PeerMacAddress: DOT11_MAC_ADDRESS,
23    uSessionId: ULONG,
24    bPortControlled: BOOL,
25    bPortAuthorized: BOOL,
26}}
27pub type PDOT11_PORT_STATE = *mut DOT11_PORT_STATE;
28STRUCT!{#[repr(packed)] struct DOT11_SECURITY_PACKET_HEADER {
29    PeerMac: DOT11_MAC_ADDRESS,
30    usEtherType: USHORT,
31    Data: [UCHAR; 1],
32}}
33pub type PDOT11_SECURITY_PACKET_HEADER = *mut DOT11_SECURITY_PACKET_HEADER;