winapi_ui_automation/um/
wlanihvtypes.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.
6//! Structures used to hold information for IHV.
7use shared::guiddef::GUID;
8use shared::minwindef::{BOOL, BYTE, DWORD, ULONG};
9use shared::wlantypes::{DOT11_AUTH_ALGORITHM, DOT11_BSS_TYPE, DOT11_CIPHER_ALGORITHM, DOT11_SSID};
10use um::eaptypes::EAP_METHOD_TYPE;
11use um::winnt::WCHAR;
12STRUCT!{struct DOT11_MSSECURITY_SETTINGS {
13    dot11AuthAlgorithm: DOT11_AUTH_ALGORITHM,
14    dot11CipherAlgorithm: DOT11_CIPHER_ALGORITHM,
15    fOneXEnabled: BOOL,
16    eapMethodType: EAP_METHOD_TYPE,
17    dwEapConnectionDataLen: DWORD,
18    pEapConnectionData: *mut BYTE,
19}}
20pub type PDOT11_MSSECURITY_SETTINGS = *mut DOT11_MSSECURITY_SETTINGS;
21STRUCT!{struct DOT11EXT_IHV_SSID_LIST {
22    ulCount: ULONG,
23    SSIDs: [DOT11_SSID; 1],
24}}
25pub type PDOT11EXT_IHV_SSID_LIST = *mut DOT11EXT_IHV_SSID_LIST;
26STRUCT!{struct DOT11EXT_IHV_PROFILE_PARAMS {
27    pSsidList: PDOT11EXT_IHV_SSID_LIST,
28    BssType: DOT11_BSS_TYPE,
29    pMSSecuritySettings: PDOT11_MSSECURITY_SETTINGS,
30}}
31pub type PDOT11EXT_IHV_PROFILE_PARAMS = *mut DOT11EXT_IHV_PROFILE_PARAMS;
32pub const MS_MAX_PROFILE_NAME_LENGTH: usize = 256;
33pub const MS_PROFILE_GROUP_POLICY: DWORD = 0x00000001;
34pub const MS_PROFILE_USER: DWORD = 0x00000002;
35STRUCT!{struct DOT11EXT_IHV_PARAMS {
36    dot11ExtIhvProfileParams: DOT11EXT_IHV_PROFILE_PARAMS,
37    wstrProfileName: [WCHAR; MS_MAX_PROFILE_NAME_LENGTH],
38    dwProfileTypeFlags: DWORD,
39    interfaceGuid: GUID,
40}}
41pub type PDOT11EXT_IHV_PARAMS = *mut DOT11EXT_IHV_PARAMS;