text stringlengths 8 4.13M |
|---|
// Copyright 2020-2021, The Tremor Team
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
use crate::errors::Result;
use crate::metrics::RampReporter;
use crate::pipeline;
use crate::repository::ServantId;
use crate::source::prelude::*;
use crate::source::{
amqp, blaster, cb, crononome, discord, env, file, gsub, kafka, metronome, nats, otel, postgres,
rest, sse, stdin, tcp, udp, ws,
};
use crate::url::TremorUrl;
use async_std::task::{self, JoinHandle};
use serde_yaml::Value;
use std::fmt;
use tremor_common::ids::OnrampIdGen;
use tremor_pipeline::EventId;
pub(crate) type Sender = async_channel::Sender<ManagerMsg>;
pub(crate) trait Impl {
fn from_config(id: &TremorUrl, config: &Option<Value>) -> Result<Box<dyn Onramp>>;
}
#[derive(Clone, Debug)]
pub enum Msg {
Connect(Cow<'static, str>, Vec<(TremorUrl, pipeline::Addr)>),
Disconnect {
id: TremorUrl,
tx: async_channel::Sender<bool>,
},
Cb(CbAction, EventId),
// TODO pick good naming here: LinkedEvent / Response / Result?
Response(tremor_pipeline::Event),
}
pub type Addr = async_channel::Sender<Msg>;
pub(crate) struct OnrampConfig<'cfg> {
pub onramp_uid: u64,
pub codec: &'cfg str,
pub codec_map: halfbrown::HashMap<String, String>,
pub processors: Processors<'cfg>,
pub metrics_reporter: RampReporter,
pub is_linked: bool,
pub err_required: bool,
}
#[async_trait::async_trait]
pub(crate) trait Onramp: Send {
async fn start(&mut self, config: OnrampConfig<'_>) -> Result<Addr>;
fn default_codec(&self) -> &str;
}
// just a lookup
#[cfg(not(tarpaulin_include))]
pub(crate) fn lookup(
name: &str,
id: &TremorUrl,
config: &Option<Value>,
) -> Result<Box<dyn Onramp>> {
match name {
"amqp" => amqp::Amqp::from_config(id, config),
"blaster" => blaster::Blaster::from_config(id, config),
"cb" => cb::Cb::from_config(id, config),
"env" => env::Env::from_config(id, config),
"file" => file::File::from_config(id, config),
"kafka" => kafka::Kafka::from_config(id, config),
"postgres" => postgres::Postgres::from_config(id, config),
"metronome" => metronome::Metronome::from_config(id, config),
"crononome" => crononome::Crononome::from_config(id, config),
"stdin" => stdin::Stdin::from_config(id, config),
"udp" => udp::Udp::from_config(id, config),
"tcp" => tcp::Tcp::from_config(id, config),
"rest" => rest::Rest::from_config(id, config),
"sse" => sse::Sse::from_config(id, config),
"ws" => ws::Ws::from_config(id, config),
"discord" => discord::Discord::from_config(id, config),
"otel" => otel::OpenTelemetry::from_config(id, config),
"nats" => nats::Nats::from_config(id, config),
"gsub" => gsub::GoogleCloudPubSub::from_config(id, config),
_ => Err(format!("[onramp:{}] Onramp type {} not known", id, name).into()),
}
}
pub(crate) struct Create {
pub id: ServantId,
pub stream: Box<dyn Onramp>,
pub codec: String,
pub codec_map: halfbrown::HashMap<String, String>,
pub preprocessors: Vec<String>,
pub postprocessors: Vec<String>,
pub metrics_reporter: RampReporter,
pub is_linked: bool,
pub err_required: bool,
}
impl fmt::Debug for Create {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "StartOnramp({})", self.id)
}
}
/// This is control plane
pub(crate) enum ManagerMsg {
Create(async_channel::Sender<Result<Addr>>, Box<Create>),
Stop,
}
#[derive(Debug, Default)]
pub(crate) struct Manager {
qsize: usize,
}
impl Manager {
pub fn new(qsize: usize) -> Self {
Self { qsize }
}
pub fn start(self) -> (JoinHandle<Result<()>>, Sender) {
let (tx, rx) = bounded(self.qsize);
let h = task::spawn::<_, Result<()>>(async move {
let mut onramp_id_gen = OnrampIdGen::new();
info!("Onramp manager started");
loop {
match rx.recv().await {
Ok(ManagerMsg::Stop) => {
info!("Stopping onramps...");
break;
}
Ok(ManagerMsg::Create(r, c)) => {
let Create {
codec,
codec_map,
mut stream,
preprocessors,
postprocessors,
metrics_reporter,
is_linked,
id,
err_required,
} = *c;
match stream
.start(OnrampConfig {
onramp_uid: onramp_id_gen.next_id(),
codec: &codec,
codec_map,
processors: Processors {
pre: &preprocessors,
post: &postprocessors,
},
metrics_reporter,
is_linked,
err_required,
})
.await
{
Ok(addr) => {
info!("Onramp {} started.", id);
r.send(Ok(addr)).await?;
}
Err(e) => error!("Creating an onramp failed: {}", e),
}
}
Err(e) => {
info!("Stopping onramps... {}", e);
break;
}
}
}
info!("Onramp manager stopped.");
Ok(())
});
(h, tx)
}
}
#[cfg(test)]
mod test {
use super::*;
use crate::config::Binding;
use crate::config::MappingMap;
use crate::repository::BindingArtefact;
use crate::system;
use crate::url::TremorUrl;
use simd_json::json;
use std::io::Write;
use std::net::TcpListener;
use std::net::TcpStream;
use std::net::UdpSocket;
use std::ops::Range;
fn port_is_free(port: u16) -> bool {
match TcpListener::bind(format!("127.0.0.1:{}", port)) {
Ok(_x) => true,
_otherwise => false,
}
}
fn find_free_port(mut range: Range<u16>) -> Option<u16> {
range.find(|port| port_is_free(*port))
}
struct TcpInjector {
stream: TcpStream,
}
impl TcpInjector {
fn with_port(port: u16) -> Self {
let hostport = format!("localhost:{}", port);
let stream = TcpStream::connect(hostport).expect("could not connect");
stream.set_nodelay(true).expect("could not disable nagle");
stream
.set_nonblocking(true)
.expect("could not set non-blocking");
TcpInjector { stream }
}
}
struct UdpInjector {
datagram: UdpSocket,
}
impl UdpInjector {
fn with_port(port: u16) -> Self {
let ephemeral_port = format!(
"localhost:{}",
find_free_port(30000..31000).expect("no free ports in range")
);
let hostport = format!("localhost:{}", port);
let datagram = UdpSocket::bind(ephemeral_port).expect("could not bind");
datagram.connect(hostport).expect("could not connect");
datagram
.set_nonblocking(true)
.expect("could not set non-blocking");
UdpInjector { datagram }
}
}
macro_rules! rampercize {
($onramp_config:expr, $offramp_config:expr, $test:tt) => {
let storage_directory = Some("./storage".to_string());
let (world, _handle) = system::World::start(50, storage_directory).await?;
let config = serde_yaml::to_value($onramp_config).expect("json to yaml not ok");
let onramp: crate::config::OnRamp = serde_yaml::from_value(config)?;
let onramp_url = TremorUrl::from_onramp_id("test").expect("bad url");
world
.repo
.publish_onramp(&onramp_url, false, onramp)
.await?;
let config2 = serde_yaml::to_value($offramp_config).expect("json to yaml not ok");
let offramp: crate::config::OffRamp = serde_yaml::from_value(config2)?;
let offramp_url = TremorUrl::from_offramp_id("test").expect("bad url");
world
.repo
.publish_offramp(&offramp_url, false, offramp)
.await?;
let id = TremorUrl::parse(&format!("/pipeline/{}", "test"))?;
let module_path = &tremor_script::path::ModulePath { mounts: Vec::new() };
let aggr_reg = tremor_script::aggr_registry();
let artefact = tremor_pipeline::query::Query::parse(
&module_path,
"select event from in into out;",
"<test>",
Vec::new(),
&*tremor_pipeline::FN_REGISTRY.lock()?,
&aggr_reg,
)?;
world.repo.publish_pipeline(&id, false, artefact).await?;
let binding: Binding = serde_yaml::from_str(
r#"
id: test
links:
'/onramp/test/{instance}/out': [ '/pipeline/test/{instance}/in' ]
'/pipeline/test/{instance}/out': [ '/offramp/test/{instance}/in' ]
"#,
)?;
world
.repo
.publish_binding(
&TremorUrl::parse(&format!("/binding/{}", "test"))?,
false,
BindingArtefact {
binding,
mapping: None,
},
)
.await?;
let mapping: MappingMap = serde_yaml::from_str(
r#"
/binding/test/01:
instance: "01"
"#,
)?;
let id = TremorUrl::parse(&format!("/binding/{}/01", "test"))?;
world.link_binding(&id, mapping[&id].clone()).await?;
std::thread::sleep(std::time::Duration::from_millis(1000));
$test;
std::thread::sleep(std::time::Duration::from_millis(1000));
world.stop().await?;
};
}
// macro_rules! rampercize_with_logs {
// ($onramp_config:expr, $offramp_config:expr, $test:tt) => {
// env_logger::init();
// rampercize!($onramp_config, $offramp_config, $test)
// };
// }
#[async_std::test]
async fn tcp_onramp() -> Result<()> {
let port = find_free_port(9000..9099).expect("no free port");
rampercize!(
// onramp config
json!({
"id": "test",
"type": "tcp",
"codec": "json",
"preprocessors": [ "lines" ],
"config": {
"host": "127.0.0.1",
"port": port,
"is_non_blocking": true,
"ttl": 32,
}
}),
// offramp config
json!({
"id": "test",
"type": "stdout",
"codec": "json",
}),
{
for _ in 0..3 {
let mut inject = TcpInjector::with_port(port);
inject
.stream
.write_all(r#"{"snot": "badger"}\n"#.as_bytes())
.expect("something bad happened in cli injector");
inject.stream.flush().expect("");
drop(inject);
}
}
);
Ok(())
}
#[async_std::test]
async fn udp_onramp() -> Result<()> {
let port = find_free_port(9100..9199).expect("no free port");
rampercize!(
// onramp config
json!({
"id": "test",
"type": "udp",
"codec": "json",
"preprocessors": [ "lines" ],
"config": {
"host": "127.0.0.1",
"port": port,
"is_non_blocking": true,
"ttl": 32,
}
}),
// offramp config
json!({
"id": "test",
"type": "stdout",
"codec": "json",
}),
{
for _ in 0..3 {
let inject = UdpInjector::with_port(port);
inject
.datagram
.send(r#"{"snot": "badger"}\n"#.as_bytes())
.expect("something bad happened in cli injector");
drop(inject);
}
}
);
Ok(())
}
#[ignore]
#[async_std::test]
async fn rest_onramp() -> Result<()> {
let port = find_free_port(9200..9299).expect("no free port");
rampercize!(
// onramp config
json!({
"id": "test",
"type": "rest",
"codec": "json",
"preprocessors": [ "lines" ],
"config": {
"host": "127.0.0.1",
"port": port,
"is_non_blocking": true,
"ttl": 32,
"resources": [
],
}
}),
// offramp config
json!({
"id": "test",
"type": "stdout",
"codec": "json",
}),
{
for _ in 0..3 {
let mut inject = TcpInjector::with_port(port);
inject
.stream
.write_all(
r#"{"HTTP/1.1\nContent-type: application\nContent-Length: 3\n\n{}\n"#
.as_bytes(),
)
.expect("something bad happened in cli injector");
inject.stream.flush().expect("");
drop(inject);
}
}
);
Ok(())
}
}
|
use std::io::Read;
fn read<T: std::str::FromStr>() -> T {
let token: String = std::io::stdin()
.bytes()
.map(|c| c.ok().unwrap() as char)
.skip_while(|c| c.is_whitespace())
.take_while(|c| !c.is_whitespace())
.collect();
token.parse().ok().unwrap()
}
fn main() {
let t: usize = read();
let mut xs = vec![0; t];
for i in 0..t {
xs[i] = read();
}
let ans = xs
.iter()
.scan(0, |prev, &x| {
let res = *prev - 1 == x || *prev + 1 == x;
*prev = x;
Some(res)
})
.all(|y| y);
println!("{}", if ans { 'T' } else { 'F' });
}
|
// Copyright 2021 Datafuse Labs.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
use std::sync::Arc;
use common_exception::ErrorCode;
use common_exception::Result;
use common_expression::infer_table_schema;
use common_expression::types::StringType;
use common_expression::DataBlock;
use common_expression::DataSchemaRef;
use common_expression::FromData;
use common_expression::Scalar;
use common_sql::plans::DescribeTablePlan;
use common_storages_view::view_table::QUERY;
use common_storages_view::view_table::VIEW_ENGINE;
use crate::interpreters::Interpreter;
use crate::pipelines::PipelineBuildResult;
use crate::sessions::QueryContext;
use crate::sessions::TableContext;
use crate::sql::Planner;
pub struct DescribeTableInterpreter {
ctx: Arc<QueryContext>,
plan: DescribeTablePlan,
}
impl DescribeTableInterpreter {
pub fn try_create(ctx: Arc<QueryContext>, plan: DescribeTablePlan) -> Result<Self> {
Ok(DescribeTableInterpreter { ctx, plan })
}
}
#[async_trait::async_trait]
impl Interpreter for DescribeTableInterpreter {
fn name(&self) -> &str {
"DescribeTableInterpreter"
}
fn schema(&self) -> DataSchemaRef {
self.plan.schema()
}
async fn execute2(&self) -> Result<PipelineBuildResult> {
let catalog = self.plan.catalog.as_str();
let database = self.plan.database.as_str();
let table = self.plan.table.as_str();
let table = self.ctx.get_table(catalog, database, table).await?;
let tbl_info = table.get_table_info();
let schema = if tbl_info.engine() == VIEW_ENGINE {
if let Some(query) = tbl_info.options().get(QUERY) {
let mut planner = Planner::new(self.ctx.clone());
let (plan, _) = planner.plan_sql(query).await?;
infer_table_schema(&plan.schema())
} else {
return Err(ErrorCode::Internal(
"Logical error, View Table must have a SelectQuery inside.",
));
}
} else {
Ok(table.schema())
}?;
let mut names: Vec<Vec<u8>> = vec![];
let mut types: Vec<Vec<u8>> = vec![];
let mut nulls: Vec<Vec<u8>> = vec![];
let mut default_exprs: Vec<Vec<u8>> = vec![];
let mut extras: Vec<Vec<u8>> = vec![];
for field in schema.fields().iter() {
names.push(field.name().to_string().as_bytes().to_vec());
let non_null_type = field.data_type().remove_recursive_nullable();
types.push(non_null_type.sql_name().as_bytes().to_vec());
nulls.push(if field.is_nullable() {
"YES".to_string().as_bytes().to_vec()
} else {
"NO".to_string().as_bytes().to_vec()
});
match field.default_expr() {
Some(expr) => {
default_exprs.push(expr.as_bytes().to_vec());
}
None => {
let value = Scalar::default_value(&field.data_type().into());
default_exprs.push(value.to_string().as_bytes().to_vec());
}
}
extras.push("".to_string().as_bytes().to_vec());
}
PipelineBuildResult::from_blocks(vec![DataBlock::new_from_columns(vec![
StringType::from_data(names),
StringType::from_data(types),
StringType::from_data(nulls),
StringType::from_data(default_exprs),
StringType::from_data(extras),
])])
}
}
|
///Name: Hangchen Qu
///ID: hq5na
use std::rand::random;
use std::os;
use std::io::File;
fn main() {
let args = os::args();
let fname1: &str = args[1];
let fname2: &str = args[2];
let path1 = Path::new(fname1.clone());
let msg_file1 = File::open(&path1);
let path2 = Path::new(fname2.clone());
let msg_file2 = File::open(&path2);
let output_file = File::create(&Path::new("output"));
match (msg_file1, msg_file2) {
(Some(mut msg1), Some(mut msg2)) => {
let share1_bytes: ~[u8] = msg1.read_to_end();
let share2_bytes: ~[u8] = msg2.read_to_end();
match (output_file) {
Some(output) => {
join(share1_bytes, share2_bytes, output);
} ,
None => fail!("Error opening output files!"),
}
} ,
(_, _) => fail!("Error opening message file")
}
}
fn xor(a: &[u8], b: &[u8]) -> ~[u8] {
let mut ret = ~[];
for i in range(0, a.len()) {
ret.push(a[i] ^ b[i]);
}
ret
}
fn join(share1_bytes: &[u8], share2_bytes: &[u8], mut output_file: File) {
let decrypted_bytes = xor(share1_bytes, share2_bytes);
output_file.write(decrypted_bytes);
}
|
/*!
A very simple application that show your name in a message box.
Unlike `basic_d`, this example use layout to position the controls in the window
*/
extern crate native_windows_gui as nwg;
extern crate native_windows_derive as nwd;
use nwd::NwgUi;
use nwg::NativeUi;
#[derive(Default, NwgUi)]
pub struct BasicApp {
#[nwg_control(size: (300, 115), position: (300, 300), title: "Basic example", flags: "WINDOW|VISIBLE")]
#[nwg_events( OnWindowClose: [BasicApp::say_goodbye] )]
window: nwg::Window,
#[nwg_layout(parent: window, spacing: 1)]
grid: nwg::GridLayout,
#[nwg_control(text: "Heisenberg", focus: true)]
#[nwg_layout_item(layout: grid, row: 0, col: 0)]
name_edit: nwg::TextInput,
#[nwg_control(text: "Say my name")]
#[nwg_layout_item(layout: grid, col: 0, row: 1, row_span: 2)]
#[nwg_events( OnButtonClick: [BasicApp::say_hello] )]
hello_button: nwg::Button
}
impl BasicApp {
fn say_hello(&self) {
nwg::modal_info_message(&self.window, "Hello", &format!("Hello {}", self.name_edit.text()));
}
fn say_goodbye(&self) {
nwg::modal_info_message(&self.window, "Goodbye", &format!("Goodbye {}", self.name_edit.text()));
nwg::stop_thread_dispatch();
}
}
fn main() {
nwg::init().expect("Failed to init Native Windows GUI");
nwg::Font::set_global_family("Segoe UI").expect("Failed to set default font");
let _app = BasicApp::build_ui(Default::default()).expect("Failed to build UI");
nwg::dispatch_thread_events();
}
|
extern crate rand;
use rand::Rng;
use std::fmt::Debug;
use crate::room::RoomType;
use crate::sound::{AudioEvent, Effect};
use crate::state::State;
use crate::timer::{Timer, TimerType};
use crate::{Action, GameEventType};
#[derive(Debug, Copy, Clone)]
pub enum EnemyType {
Rat,
Roomba,
}
pub trait Enemy: Debug {
fn get_enemy_type(&self) -> EnemyType;
fn get_health(&self) -> i32;
fn reduce_health(&mut self, amount: i32) -> bool;
fn get_attack_strength(&self) -> i32;
fn get_initial_attack_timers(&self) -> Vec<Timer>;
fn get_attack_timers(&self, delay: u64) -> Vec<Timer>;
fn get_attack_message(&self) -> String;
fn get_enemy_attack_message(&self) -> String;
fn get_death_message(&self) -> String;
}
#[derive(Debug)]
pub struct GenericEnemy {
enemy_type: EnemyType,
health: i32,
attack_strength: i32,
timer_length: u64,
attack_messages: Vec<String>,
enemy_attack_messages: Vec<String>,
death_message: Option<String>,
}
impl GenericEnemy {
pub fn new(
enemy_type: EnemyType,
health: i32,
attack_strength: i32,
timer_length: u64,
attack_messages: Vec<String>,
enemy_attack_messages: Vec<String>,
death_message: Option<String>,
) -> Self {
GenericEnemy {
enemy_type,
health,
attack_strength,
timer_length,
attack_messages,
enemy_attack_messages,
death_message
}
}
}
impl Enemy for GenericEnemy {
fn get_enemy_type(&self) -> EnemyType {
self.enemy_type
}
fn get_health(&self) -> i32 {
self.health
}
fn reduce_health(&mut self, amount: i32) -> bool {
self.health -= amount;
if self.health <= 0 {
return true;
}
false
}
fn get_attack_strength(&self) -> i32 {
self.attack_strength
}
fn get_attack_message(&self) -> String {
if let Some(message) = rand::thread_rng().choose(&self.attack_messages) {
message.to_string()
} else {
String::from(format!("You attack the {:?}.", self.enemy_type))
}
}
fn get_enemy_attack_message(&self) -> String {
if let Some(message) = rand::thread_rng().choose(&self.enemy_attack_messages) {
message.to_string()
} else {
String::from(format!("The {:?} attacks!", self.enemy_type))
}
}
fn get_initial_attack_timers(&self) -> Vec<Timer> {
self.get_attack_timers(2000)
}
fn get_attack_timers(&self, delay: u64) -> Vec<Timer> {
vec![
Timer::new(
TimerType::EnemyAttack,
&format!("The {:?} is preparing to attack you.", self.enemy_type),
0,
self.timer_length + delay,
Action::EnemyAttack,
true,
),
Timer::new(
TimerType::EnemyAttack,
// Unused, because invisible.
"",
0,
self.timer_length + delay,
Action::Audio(AudioEvent::Effect(Effect::EnemyAttack)),
// Should not be visible as a progressbar.
false,
),
]
}
fn get_death_message(&self) -> String {
if let Some(message) = &self.death_message {
message.clone()
} else {
format!("The {:?} has been slain.\n", self.enemy_type)
}
}
}
pub fn initialize_enemies(state: &mut State) {
let rat_attack_messages = vec!["You stomp on the rat.".into()];
let rat_enemy_attack_messages = vec![
"The rat gnaws on your leg.".into(),
"The rat runs around you in circles. You try to follow it, stumbling.".into(),
];
let rat = GenericEnemy::new(
EnemyType::Rat,
10,
5,
8 * 1000,
rat_attack_messages,
rat_enemy_attack_messages,
Some("The rat is dead. It drops its keycard.".into()),
);
state.enemies.insert(RoomType::Corridor, Box::new(rat));
let roomba_attack_messages = vec![
"You tackle the roomba. It topples over.".into(),
"You smash in one of the roombas many visual sensors.".into(),
"You kick the roomba, leaving a dent.".into(),
"You rip out one of the roombas appendages. It produces a high-pitched beeping wail."
.into(),
];
let roomba_enemy_attack_messages = vec![
"The roomba vacuums your arm. Some of the skin comes off.".into(),
"The roomba swings its broom and hits your head.".into(),
];
let roomba = GenericEnemy::new(
EnemyType::Roomba,
40,
20,
3 * 1000,
roomba_attack_messages,
roomba_enemy_attack_messages,
None,
);
state
.enemies
.insert(RoomType::Cryocontrol, Box::new(roomba));
}
|
pub use VkCompositeAlphaFlagsKHR::*;
#[repr(u32)]
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub enum VkCompositeAlphaFlagsKHR {
VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR = 0x00000001,
VK_COMPOSITE_ALPHA_PRE_MULTIPLIED_BIT_KHR = 0x00000002,
VK_COMPOSITE_ALPHA_POST_MULTIPLIED_BIT_KHR = 0x00000004,
VK_COMPOSITE_ALPHA_INHERIT_BIT_KHR = 0x00000008,
}
use crate::SetupVkFlags;
#[repr(C)]
#[derive(Clone, Copy, Eq, PartialEq, Hash)]
pub struct VkCompositeAlphaFlagBitsKHR(u32);
SetupVkFlags!(VkCompositeAlphaFlagsKHR, VkCompositeAlphaFlagBitsKHR);
impl Default for VkCompositeAlphaFlagBitsKHR {
fn default() -> Self {
VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR.into()
}
}
|
//<prefix>-<event-type>/<day>/<seconds>/<serialization>/<compression>-<capability>
use std::time::{
SystemTime,
UNIX_EPOCH,
};
pub trait KeyGenerator {
fn generate_key(&mut self, capability: u64) -> String;
}
pub struct S3KeyGenerator {
bucket: String,
serialization: String,
compression: String,
}
impl S3KeyGenerator {
pub fn new(
bucket: impl Into<String>,
serialization: impl Into<String>,
compression: impl Into<String>,
) -> Self {
Self {
bucket: bucket.into(),
serialization: serialization.into(),
compression: compression.into(),
}
}
}
impl KeyGenerator for S3KeyGenerator {
fn generate_key(&mut self, capability: u64) -> String {
let cur_secs = match SystemTime::now().duration_since(UNIX_EPOCH) {
Ok(n) => n.as_secs(),
Err(_) => panic!("SystemTime before UNIX EPOCH!"),
};
let cur_day = cur_secs - (cur_secs % 86400);
format!(
"{bucket}/{day}/{seconds}/{serialization}/{compression}-{capability}",
bucket = self.bucket,
day = cur_day,
seconds = cur_secs,
serialization = self.serialization,
compression = self.compression,
capability = capability,
)
}
}
pub struct ZstdProtoKeyGenerator(S3KeyGenerator);
impl ZstdProtoKeyGenerator {
pub fn new(bucket: impl Into<String>) -> Self {
Self(S3KeyGenerator::new(bucket, "proto_v0", "zstd_nodict"))
}
}
impl KeyGenerator for ZstdProtoKeyGenerator {
fn generate_key(&mut self, capability: u64) -> String {
self.0.generate_key(capability)
}
}
|
#![cfg_attr(feature = "cargo-clippy", allow(
cast_lossless, transmute_ptr_to_ref))]
//! A simple copy-free ELF parser.
//!
//! This parser is limited, and parses only the specific kind of ELF files we expect to run.
//!
//! `Elf32::parse` can be used to parse a byte array into structs that reference the original data.
//! Note that these structs also hold values in the original endianness.
use std::mem::{size_of, transmute};
use std::slice;
/// Expected ELF magic value.
pub const ELF_IDENT_MAGIC: u32 = 0x7f45_4c46;
/// Expected ELF identity version.
pub const ELF_IDENT_VERSION_CURRENT: u8 = 1;
/// 32-bit ELF class value.
pub const ELF_IDENT_CLASS_32: u8 = 1;
/// Little-endian ELF datatype value.
pub const ELF_IDENT_DATA_2LSB: u8 = 1;
/// System V ABI type value.
pub const ELF_IDENT_ABI_SYSV: u8 = 0;
/// Executable type value.
pub const ELF_TYPE_EXECUTABLE: u16 = 2;
/// RISC-V machine type value.
pub const ELF_MACHINE_RISCV: u16 = 243;
/// Expected ELF version.
pub const ELF_VERSION_CURRENT: u32 = 1;
/// Program header bit indicating a loadable entry.
pub const ELF_PROGRAM_TYPE_LOADABLE: u32 = 1;
/// Section header type indicating space with no data (bss).
pub const ELF_SECTION_TYPE_NOBITS: u32 = 8;
trait ElfFileAddressable {
fn get_range(&self) -> (u32, u32);
}
/// ELF identity header.
#[derive(Clone,Copy,Debug)]
#[repr(packed)]
pub struct ElfIdent {
/// ELF magic value, matches `ELF_IDENT_MAGIC`.
pub magic: u32,
/// ELF class, one of `ELF_IDENT_CLASS_*`.
pub class: u8,
/// Data type of the remainder of the file, one of `ELF_IDENT_DATA_*`.
pub data: u8,
/// Version of the header, matches `ELF_IDENT_VERSION_CURRENT`.
pub version: u8,
/// ABI type, one of `ELF_IDENT_ABI_*`.
pub abi: u8,
/// ABI version.
pub abi_version: u8,
/// Unused padding.
pub padding: [u8; 7],
}
/// ELF 32-bit header.
#[derive(Clone,Copy,Debug)]
#[repr(packed)]
pub struct ElfHeader32 {
/// File type, one of `ELF_TYPE_*`.
pub typ: u16,
/// Machine type, one of `ELF_MACHINE_*`.
pub machine: u16,
/// ELF version, matches `ELF_VERSION_CURRENT`.
pub version: u32,
/// Memory address of the entry point.
pub entry: u32,
/// Offset in the file of the program header table.
pub phoff: u32,
/// Offset in the file of the section header table.
pub shoff: u32,
/// Architecture-specific flags.
pub flags: u32,
/// Size of this header.
pub ehsize: u16,
/// Number of program header table enties.
pub phentsize: u16,
/// Size of a program header.
pub phnum: u16,
/// Number of section header table enties.
pub shentsize: u16,
/// Size of a section header.
pub shnum: u16,
/// Section header table index of the entry containing section names.
pub shstrndx: u16,
}
/// ELF 32-bit program header.
#[derive(Clone,Copy,Debug)]
#[repr(packed)]
pub struct ElfProgramHeader32 {
/// Type, a combination of `ELF_PROGRAM_TYPE_*`
pub typ: u32,
/// Offset in the file of the program image.
pub offset: u32,
/// Virtual address in memory.
pub vaddr: u32,
/// Optional physical address in memory.
pub paddr: u32,
/// Size of the image in the file.
pub filesz: u32,
/// Size of the image in memory.
pub memsz: u32,
/// Type-specific flags.
pub flags: u32,
/// Memory alignment in bytes.
pub align: u32,
}
impl ElfFileAddressable for ElfProgramHeader32 {
fn get_range(&self) -> (u32, u32) {
(self.offset, self.filesz)
}
}
/// ELF 32-bit section header.
#[derive(Clone,Copy,Debug)]
#[repr(packed)]
pub struct ElfSectionHeader32 {
/// Index in the string section containing the section name.
pub name: u32,
/// Section type, one of `ELF_SECTION_TYPE_*`.
pub typ: u32,
/// Flags, a combination of `ELF_SECTION_FLAG_*`.
pub flags: u32,
/// Virtual address in memory.
pub addr: u32,
/// Offset in the file of the setion image.
pub offset: u32,
/// Size of the image in the file.
pub size: u32,
/// Optional linked section index.
pub link: u32,
/// Type-specific info.
pub info: u32,
/// Memory alignment in bytes.
pub addralign: u32,
/// For sections with fixed-sized entries, the size of each entry.
pub entsize: u32,
}
impl ElfFileAddressable for ElfSectionHeader32 {
fn get_range(&self) -> (u32, u32) {
(self.offset, if self.typ == ELF_SECTION_TYPE_NOBITS { 0 } else { self.size })
}
}
/// ELF 32-bit file structure.
#[derive(Debug)]
pub struct Elf32<'a> {
/// The identity header.
pub ident: &'a ElfIdent,
/// The main header.
pub header: &'a ElfHeader32,
/// Program headers.
pub ph: Vec<&'a ElfProgramHeader32>,
/// Section headers.
pub sh: Vec<&'a ElfSectionHeader32>,
/// Program data.
pub p: Vec<&'a [u8]>,
/// Section data.
pub s: Vec<&'a [u8]>,
}
impl<'a> Elf32<'a> {
/// Parse an ELF file, and return structs referencing the data.
pub fn parse(data: &'a [u8]) -> Result<Elf32<'a>, String> {
if data.len() < size_of::<ElfIdent>() + size_of::<ElfHeader32>() {
return Err("file too short to contain headers".to_owned());
}
let ident: &'a ElfIdent = unsafe {
transmute(data.as_ptr())
};
if u32::from_be(ident.magic) != ELF_IDENT_MAGIC {
return Err("magic mismatch, likely not an ELF".to_owned());
}
if ident.version != ELF_IDENT_VERSION_CURRENT {
let ident_version = ident.version;
return Err(format!("unsupported version {}", ident_version));
}
if ident.class != ELF_IDENT_CLASS_32 {
return Err("only 32-bit class supported".to_owned());
}
let header: &'a ElfHeader32 = unsafe {
transmute(data.as_ptr().offset(size_of::<ElfIdent>() as isize))
};
if header.version != ELF_VERSION_CURRENT {
let header_version = header.version;
return Err(format!("unsupported version {}", header_version));
}
if header.typ != ELF_TYPE_EXECUTABLE {
let header_typ = header.typ;
return Err(format!("unsupported type {}", header_typ));
}
let (ph, p) = resolve_parts::<ElfProgramHeader32>(
data, header.phoff, header.phentsize, header.phnum)?;
let (sh, s) = resolve_parts::<ElfSectionHeader32>(
data, header.shoff, header.shentsize, header.shnum)?;
Ok(Elf32 { ident, header, ph, sh, p, s })
}
}
fn resolve_parts<'a, T>(data: &'a [u8], offset: u32, entsize16: u16, num16: u16)
-> Result<(Vec<&'a T>, Vec<&'a [u8]>), String>
where T: ElfFileAddressable {
let entsize = entsize16 as u32;
let num = num16 as u32;
let headers = if offset == 0 { Vec::new() } else {
if (entsize as usize) < size_of::<T>() {
return Err("headers smaller than defined in specification".to_owned());
}
if data.len() < (offset + entsize * num) as usize {
return Err("reference to data beyond end of file".to_owned());
}
(0..num).map(|i| unsafe {
transmute(data.as_ptr().offset((offset + i * entsize) as isize))
}).collect::<Vec<&'a T>>()
};
let blocks = headers.iter().map(|h| -> Result<&'a [u8], String> {
let (offset, size) = h.get_range();
if size == 0 {
Ok(&[])
} else if data.len() < (offset + size) as usize {
Err("reference to data beyond end of file".to_owned())
} else {
Ok(unsafe {
slice::from_raw_parts(
data.as_ptr().offset(offset as isize),
size as usize
)
})
}
}).collect::<Result<Vec<_>, _>>()?;
Ok((headers, blocks))
}
|
/*!
HyperLogLog相关的命令定义、解析
所有涉及到的命令参考[Redis Command Reference]
[Redis Command Reference]: https://redis.io/commands#hyperloglog
*/
use std::slice::Iter;
#[derive(Debug)]
pub struct PFADD<'a> {
pub key: &'a [u8],
pub elements: Vec<&'a [u8]>,
}
pub(crate) fn parse_pfadd(mut iter: Iter<Vec<u8>>) -> PFADD {
let key = iter.next().unwrap();
let mut elements = Vec::new();
while let Some(element) = iter.next() {
elements.push(element.as_slice());
}
PFADD { key, elements }
}
#[derive(Debug)]
pub struct PFCOUNT<'a> {
pub keys: Vec<&'a [u8]>,
}
pub(crate) fn parse_pfcount(mut iter: Iter<Vec<u8>>) -> PFCOUNT {
let mut keys = Vec::new();
while let Some(key) = iter.next() {
keys.push(key.as_slice());
}
PFCOUNT { keys }
}
#[derive(Debug)]
pub struct PFMERGE<'a> {
pub dest_key: &'a [u8],
pub source_keys: Vec<&'a [u8]>,
}
pub(crate) fn parse_pfmerge(mut iter: Iter<Vec<u8>>) -> PFMERGE {
let dest_key = iter.next().unwrap();
let mut source_keys = Vec::new();
while let Some(source) = iter.next() {
source_keys.push(source.as_slice());
}
PFMERGE { dest_key, source_keys }
}
|
use crate::mock_server::bare_server::BareMockServer;
use crate::MockServer;
use async_trait::async_trait;
use deadpool::managed::{Object, Pool};
use once_cell::sync::Lazy;
use std::convert::Infallible;
/// A pool of `BareMockServer`s.
///
/// ## Design constraints
///
/// `wiremock`'s pooling is designed to be an invisible optimisation: users of the crate, if
/// we are successful, should never have to reason about it.
///
/// ## Motivation
///
/// Why are we pooling `BareMockServer`s?
/// Mostly to reduce the number of `TcpListener`s that are being opened and closed, therefore
/// mitigating risk of our users having to fight/raise OS limits for the maximum number of open
/// connections (e.g. ulimit on Linux).
///
/// It is also marginally faster to get a pooled `BareMockServer` than to create a new one, but
/// the absolute time is so small (<1 ms) that it does not make a material difference in a real
/// world test suite.
static MOCK_SERVER_POOL: Lazy<Pool<BareMockServer, Infallible>> = Lazy::new(|| {
// We are choosing an arbitrarily high max_size because we never want a test to "wait" for
// a `BareMockServer` instance to become available.
//
// We might expose in the future a way for a crate user to tune this value.
Pool::new(MockServerPoolManager, 1000)
});
/// Retrieve a `BareMockServer` from the pool.
/// The operation should never fail.
pub(crate) async fn get_pooled_mock_server() -> Object<BareMockServer, Infallible> {
MOCK_SERVER_POOL
.get()
.await
.expect("Failed to get a MockServer from the pool")
}
/// The `BareMockServer` pool manager.
///
/// It:
/// - creates a new `BareMockServer` if there is none to borrow from the pool;
/// - "cleans up" used `BareMockServer`s before making them available again for other tests to use.
struct MockServerPoolManager;
#[async_trait]
impl deadpool::managed::Manager<BareMockServer, Infallible> for MockServerPoolManager {
async fn create(&self) -> Result<BareMockServer, Infallible> {
// All servers in the pool use the default configuration
Ok(MockServer::builder().build_bare().await)
}
async fn recycle(
&self,
mock_server: &mut BareMockServer,
) -> deadpool::managed::RecycleResult<Infallible> {
// Remove all existing settings - we want to start clean when the mock server
// is picked up again from the pool.
mock_server.reset().await;
Ok(())
}
}
|
impl From<&metrics::Label> for crate::metric_message::Label {
fn from(label: &metrics::Label) -> Self {
Self {
key: label.key().to_owned(),
value: label.value().to_owned(),
}
}
}
|
// This file is part of linux-epoll. It is subject to the license terms in the COPYRIGHT file found in the top-level directory of this distribution and at https://raw.githubusercontent.com/lemonrock/linux-epoll/master/COPYRIGHT. No part of linux-epoll, including this file, may be copied, modified, propagated, or distributed except according to the terms contained in the COPYRIGHT file.
// Copyright © 2019 The developers of linux-epoll. See the COPYRIGHT file in the top-level directory of this distribution and at https://raw.githubusercontent.com/lemonrock/linux-epoll/master/COPYRIGHT.
/// Represents a locator pointer along with its preference.
///
/// Used in a `LP` record.
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub struct LocatorPointer<'a>
{
/// Indicates the owner name's relative preference for record among other records associated with this owner name.
///
/// Lower preference values are preferred over higher preference values.
pub preference: u16,
/// `Name`.
///
/// Must not be the same as the `Name` of the resource record it is associated with (this is not validated before being passed to `ResourceRecordVisitor.LP()`).
pub domain_name: WithoutCompressionParsedName<'a>,
}
|
/// This module contains implementations of `ToLua` and `FromLua` traits for
/// Vector data types
pub mod event;
pub mod log;
pub mod metric;
pub mod util;
pub mod value;
|
use super::NEEDLESS_COLLECT;
use clippy_utils::diagnostics::{span_lint_and_sugg, span_lint_hir_and_then};
use clippy_utils::source::{snippet, snippet_with_applicability};
use clippy_utils::sugg::Sugg;
use clippy_utils::ty::is_type_diagnostic_item;
use clippy_utils::{can_move_expr_to_closure, is_trait_method, path_to_local, path_to_local_id, CaptureKind};
use if_chain::if_chain;
use rustc_data_structures::fx::FxHashMap;
use rustc_errors::Applicability;
use rustc_hir::intravisit::{walk_block, walk_expr, NestedVisitorMap, Visitor};
use rustc_hir::{Block, Expr, ExprKind, HirId, HirIdSet, Local, Mutability, Node, PatKind, Stmt, StmtKind};
use rustc_lint::LateContext;
use rustc_middle::hir::map::Map;
use rustc_middle::ty::subst::GenericArgKind;
use rustc_middle::ty::{self, TyS};
use rustc_span::sym;
use rustc_span::{MultiSpan, Span};
const NEEDLESS_COLLECT_MSG: &str = "avoid using `collect()` when not needed";
pub(super) fn check<'tcx>(expr: &'tcx Expr<'_>, cx: &LateContext<'tcx>) {
check_needless_collect_direct_usage(expr, cx);
check_needless_collect_indirect_usage(expr, cx);
}
fn check_needless_collect_direct_usage<'tcx>(expr: &'tcx Expr<'_>, cx: &LateContext<'tcx>) {
if_chain! {
if let ExprKind::MethodCall(method, _, args, _) = expr.kind;
if let ExprKind::MethodCall(chain_method, method0_span, _, _) = args[0].kind;
if chain_method.ident.name == sym!(collect) && is_trait_method(cx, &args[0], sym::Iterator);
then {
let ty = cx.typeck_results().expr_ty(&args[0]);
let mut applicability = Applicability::MaybeIncorrect;
let is_empty_sugg = "next().is_none()".to_string();
let method_name = &*method.ident.name.as_str();
let sugg = if is_type_diagnostic_item(cx, ty, sym::Vec) ||
is_type_diagnostic_item(cx, ty, sym::VecDeque) ||
is_type_diagnostic_item(cx, ty, sym::LinkedList) ||
is_type_diagnostic_item(cx, ty, sym::BinaryHeap) {
match method_name {
"len" => "count()".to_string(),
"is_empty" => is_empty_sugg,
"contains" => {
let contains_arg = snippet_with_applicability(cx, args[1].span, "??", &mut applicability);
let (arg, pred) = contains_arg
.strip_prefix('&')
.map_or(("&x", &*contains_arg), |s| ("x", s));
format!("any(|{}| x == {})", arg, pred)
}
_ => return,
}
}
else if is_type_diagnostic_item(cx, ty, sym::BTreeMap) ||
is_type_diagnostic_item(cx, ty, sym::HashMap) {
match method_name {
"is_empty" => is_empty_sugg,
_ => return,
}
}
else {
return;
};
span_lint_and_sugg(
cx,
NEEDLESS_COLLECT,
method0_span.with_hi(expr.span.hi()),
NEEDLESS_COLLECT_MSG,
"replace with",
sugg,
applicability,
);
}
}
}
fn check_needless_collect_indirect_usage<'tcx>(expr: &'tcx Expr<'_>, cx: &LateContext<'tcx>) {
if let ExprKind::Block(block, _) = expr.kind {
for stmt in block.stmts {
if_chain! {
if let StmtKind::Local(local) = stmt.kind;
if let PatKind::Binding(_, id, ..) = local.pat.kind;
if let Some(init_expr) = local.init;
if let ExprKind::MethodCall(method_name, collect_span, &[ref iter_source], ..) = init_expr.kind;
if method_name.ident.name == sym!(collect) && is_trait_method(cx, init_expr, sym::Iterator);
let ty = cx.typeck_results().expr_ty(init_expr);
if is_type_diagnostic_item(cx, ty, sym::Vec) ||
is_type_diagnostic_item(cx, ty, sym::VecDeque) ||
is_type_diagnostic_item(cx, ty, sym::BinaryHeap) ||
is_type_diagnostic_item(cx, ty, sym::LinkedList);
let iter_ty = cx.typeck_results().expr_ty(iter_source);
if let Some(iter_calls) = detect_iter_and_into_iters(block, id, cx, get_captured_ids(cx, iter_ty));
if let [iter_call] = &*iter_calls;
then {
let mut used_count_visitor = UsedCountVisitor {
cx,
id,
count: 0,
};
walk_block(&mut used_count_visitor, block);
if used_count_visitor.count > 1 {
return;
}
// Suggest replacing iter_call with iter_replacement, and removing stmt
let mut span = MultiSpan::from_span(collect_span);
span.push_span_label(iter_call.span, "the iterator could be used here instead".into());
span_lint_hir_and_then(
cx,
super::NEEDLESS_COLLECT,
init_expr.hir_id,
span,
NEEDLESS_COLLECT_MSG,
|diag| {
let iter_replacement = format!("{}{}", Sugg::hir(cx, iter_source, ".."), iter_call.get_iter_method(cx));
diag.multipart_suggestion(
iter_call.get_suggestion_text(),
vec![
(stmt.span, String::new()),
(iter_call.span, iter_replacement)
],
Applicability::MaybeIncorrect,
);
},
);
}
}
}
}
}
struct IterFunction {
func: IterFunctionKind,
span: Span,
}
impl IterFunction {
fn get_iter_method(&self, cx: &LateContext<'_>) -> String {
match &self.func {
IterFunctionKind::IntoIter => String::new(),
IterFunctionKind::Len => String::from(".count()"),
IterFunctionKind::IsEmpty => String::from(".next().is_none()"),
IterFunctionKind::Contains(span) => {
let s = snippet(cx, *span, "..");
if let Some(stripped) = s.strip_prefix('&') {
format!(".any(|x| x == {})", stripped)
} else {
format!(".any(|x| x == *{})", s)
}
},
}
}
fn get_suggestion_text(&self) -> &'static str {
match &self.func {
IterFunctionKind::IntoIter => {
"use the original Iterator instead of collecting it and then producing a new one"
},
IterFunctionKind::Len => {
"take the original Iterator's count instead of collecting it and finding the length"
},
IterFunctionKind::IsEmpty => {
"check if the original Iterator has anything instead of collecting it and seeing if it's empty"
},
IterFunctionKind::Contains(_) => {
"check if the original Iterator contains an element instead of collecting then checking"
},
}
}
}
enum IterFunctionKind {
IntoIter,
Len,
IsEmpty,
Contains(Span),
}
struct IterFunctionVisitor<'a, 'tcx> {
illegal_mutable_capture_ids: HirIdSet,
current_mutably_captured_ids: HirIdSet,
cx: &'a LateContext<'tcx>,
uses: Vec<Option<IterFunction>>,
hir_id_uses_map: FxHashMap<HirId, usize>,
current_statement_hir_id: Option<HirId>,
seen_other: bool,
target: HirId,
}
impl<'tcx> Visitor<'tcx> for IterFunctionVisitor<'_, 'tcx> {
fn visit_block(&mut self, block: &'tcx Block<'tcx>) {
for (expr, hir_id) in block.stmts.iter().filter_map(get_expr_and_hir_id_from_stmt) {
self.visit_block_expr(expr, hir_id);
}
if let Some(expr) = block.expr {
self.visit_block_expr(expr, None);
}
}
fn visit_expr(&mut self, expr: &'tcx Expr<'tcx>) {
// Check function calls on our collection
if let ExprKind::MethodCall(method_name, _, [recv, args @ ..], _) = &expr.kind {
if method_name.ident.name == sym!(collect) && is_trait_method(self.cx, expr, sym::Iterator) {
self.current_mutably_captured_ids = get_captured_ids(self.cx, self.cx.typeck_results().expr_ty(recv));
self.visit_expr(recv);
return;
}
if path_to_local_id(recv, self.target) {
if self
.illegal_mutable_capture_ids
.intersection(&self.current_mutably_captured_ids)
.next()
.is_none()
{
if let Some(hir_id) = self.current_statement_hir_id {
self.hir_id_uses_map.insert(hir_id, self.uses.len());
}
match &*method_name.ident.name.as_str() {
"into_iter" => self.uses.push(Some(IterFunction {
func: IterFunctionKind::IntoIter,
span: expr.span,
})),
"len" => self.uses.push(Some(IterFunction {
func: IterFunctionKind::Len,
span: expr.span,
})),
"is_empty" => self.uses.push(Some(IterFunction {
func: IterFunctionKind::IsEmpty,
span: expr.span,
})),
"contains" => self.uses.push(Some(IterFunction {
func: IterFunctionKind::Contains(args[0].span),
span: expr.span,
})),
_ => {
self.seen_other = true;
if let Some(hir_id) = self.current_statement_hir_id {
self.hir_id_uses_map.remove(&hir_id);
}
},
}
}
return;
}
if let Some(hir_id) = path_to_local(recv) {
if let Some(index) = self.hir_id_uses_map.remove(&hir_id) {
if self
.illegal_mutable_capture_ids
.intersection(&self.current_mutably_captured_ids)
.next()
.is_none()
{
if let Some(hir_id) = self.current_statement_hir_id {
self.hir_id_uses_map.insert(hir_id, index);
}
} else {
self.uses[index] = None;
}
}
}
}
// Check if the collection is used for anything else
if path_to_local_id(expr, self.target) {
self.seen_other = true;
} else {
walk_expr(self, expr);
}
}
type Map = Map<'tcx>;
fn nested_visit_map(&mut self) -> NestedVisitorMap<Self::Map> {
NestedVisitorMap::None
}
}
impl<'tcx> IterFunctionVisitor<'_, 'tcx> {
fn visit_block_expr(&mut self, expr: &'tcx Expr<'tcx>, hir_id: Option<HirId>) {
self.current_statement_hir_id = hir_id;
self.current_mutably_captured_ids = get_captured_ids(self.cx, self.cx.typeck_results().expr_ty(expr));
self.visit_expr(expr);
}
}
fn get_expr_and_hir_id_from_stmt<'v>(stmt: &'v Stmt<'v>) -> Option<(&'v Expr<'v>, Option<HirId>)> {
match stmt.kind {
StmtKind::Expr(expr) | StmtKind::Semi(expr) => Some((expr, None)),
StmtKind::Item(..) => None,
StmtKind::Local(Local { init, pat, .. }) => {
if let PatKind::Binding(_, hir_id, ..) = pat.kind {
init.map(|init_expr| (init_expr, Some(hir_id)))
} else {
init.map(|init_expr| (init_expr, None))
}
},
}
}
struct UsedCountVisitor<'a, 'tcx> {
cx: &'a LateContext<'tcx>,
id: HirId,
count: usize,
}
impl<'a, 'tcx> Visitor<'tcx> for UsedCountVisitor<'a, 'tcx> {
type Map = Map<'tcx>;
fn visit_expr(&mut self, expr: &'tcx Expr<'_>) {
if path_to_local_id(expr, self.id) {
self.count += 1;
} else {
walk_expr(self, expr);
}
}
fn nested_visit_map(&mut self) -> NestedVisitorMap<Self::Map> {
NestedVisitorMap::OnlyBodies(self.cx.tcx.hir())
}
}
/// Detect the occurrences of calls to `iter` or `into_iter` for the
/// given identifier
fn detect_iter_and_into_iters<'tcx: 'a, 'a>(
block: &'tcx Block<'tcx>,
id: HirId,
cx: &'a LateContext<'tcx>,
captured_ids: HirIdSet,
) -> Option<Vec<IterFunction>> {
let mut visitor = IterFunctionVisitor {
uses: Vec::new(),
target: id,
seen_other: false,
cx,
current_mutably_captured_ids: HirIdSet::default(),
illegal_mutable_capture_ids: captured_ids,
hir_id_uses_map: FxHashMap::default(),
current_statement_hir_id: None,
};
visitor.visit_block(block);
if visitor.seen_other {
None
} else {
Some(visitor.uses.into_iter().flatten().collect())
}
}
fn get_captured_ids(cx: &LateContext<'tcx>, ty: &'_ TyS<'_>) -> HirIdSet {
fn get_captured_ids_recursive(cx: &LateContext<'tcx>, ty: &'_ TyS<'_>, set: &mut HirIdSet) {
match ty.kind() {
ty::Adt(_, generics) => {
for generic in *generics {
if let GenericArgKind::Type(ty) = generic.unpack() {
get_captured_ids_recursive(cx, ty, set);
}
}
},
ty::Closure(def_id, _) => {
let closure_hir_node = cx.tcx.hir().get_if_local(*def_id).unwrap();
if let Node::Expr(closure_expr) = closure_hir_node {
can_move_expr_to_closure(cx, closure_expr)
.unwrap()
.into_iter()
.for_each(|(hir_id, capture_kind)| {
if matches!(capture_kind, CaptureKind::Ref(Mutability::Mut)) {
set.insert(hir_id);
}
});
}
},
_ => (),
}
}
let mut set = HirIdSet::default();
get_captured_ids_recursive(cx, ty, &mut set);
set
}
|
use crate::config::{CompressionType, TypeExtension};
use bzip2::{read::BzDecoder, write::BzEncoder};
use csv::{Writer as CsvWriter, WriterBuilder};
use flate2::{read::GzDecoder, write::GzEncoder};
use snafu::{ensure, ErrorCompat, ResultExt, Snafu};
use std::{
fs::File,
io::{Read, Result as IoResult, Seek, SeekFrom, Write},
path::{Path, PathBuf},
process::Command,
sync::mpsc,
thread,
};
pub enum Decoder<R: Read> {
Plain(R),
Gzipped(GzDecoder<R>),
Bzipped(BzDecoder<R>),
}
pub enum Encoder<W: Write> {
Plain(W),
Gzipped(GzEncoder<W>),
Bzipped(BzEncoder<W>),
}
#[derive(Debug)]
struct Trigger {
cmdstr: String,
cmd: Command,
}
impl Trigger {
const SHELL: &'static str = "sh";
fn file_name<P: AsRef<Path>>(file: P) -> String {
file.as_ref()
.file_name()
.unwrap_or(std::ffi::OsStr::new(""))
.to_string_lossy()
.into_owned()
}
fn full_path<P: AsRef<Path>>(path: P) -> String {
std::fs::canonicalize(&path)
.unwrap_or(path.as_ref().to_path_buf())
.to_string_lossy()
.into_owned()
}
fn new<P: AsRef<Path>>(cmd: &str, output_file: &P, num_rows: usize) -> Self {
// Do variable replacements
let cmdstr = cmd
.to_owned()
.replace("{}", &Self::full_path(output_file))
.replace("{/}", &Self::file_name(output_file))
.replace("{rows}", &num_rows.to_string());
// Set up command itself
let mut cmd = Command::new(Self::SHELL);
cmd.arg("-c").arg(&cmdstr);
Self { cmdstr, cmd }
}
fn exec(&mut self) -> Result<std::process::Output> {
self.cmd.output().context(Generic)
}
}
impl<R> Read for Decoder<R>
where
R: Read,
{
fn read(&mut self, buf: &mut [u8]) -> IoResult<usize> {
match self {
Self::Plain(rdr) => rdr.read(buf),
Self::Gzipped(rdr) => rdr.read(buf),
Self::Bzipped(rdr) => rdr.read(buf),
}
}
}
impl<W> Write for Encoder<W>
where
W: Write,
{
fn write(&mut self, buf: &[u8]) -> IoResult<usize> {
match self {
Self::Plain(w) => w.write(buf),
Self::Gzipped(w) => w.write(buf),
Self::Bzipped(w) => w.write(buf),
}
}
fn flush(&mut self) -> IoResult<()> {
match self {
Self::Plain(w) => w.flush(),
Self::Gzipped(w) => w.flush(),
Self::Bzipped(w) => w.flush(),
}
}
}
#[derive(Debug, Snafu)]
pub enum Error {
#[snafu(display("Can't open file {}: {}", filename.display(), source))]
Open {
filename: PathBuf,
source: std::io::Error,
},
#[snafu(display("Can't create file {}: {}", filename.display(), source))]
Create {
filename: PathBuf,
source: std::io::Error,
},
#[snafu(display("I/O '{}', error in file {} ({})", op, filename.display(), source))]
Io {
filename: PathBuf,
op: &'static str,
source: std::io::Error,
},
#[snafu(display("Generic I/O error: {}", source))]
Generic { source: std::io::Error },
#[snafu(display("CSV I/O error: {}", source))]
Csv { source: csv::Error },
#[snafu(display("Sync error"))]
Delivery,
}
type Result<T, E = Error> = std::result::Result<T, E>;
impl<R: Read> Decoder<R> {
fn gz(rdr: R) -> Self {
Decoder::Gzipped(GzDecoder::new(rdr))
}
fn bz(rdr: R) -> Self {
Decoder::Bzipped(BzDecoder::new(rdr))
}
fn plain(rdr: R) -> Self {
Decoder::Plain(rdr)
}
fn decoder(rdr: R, compression: CompressionType) -> Decoder<R> {
match compression {
CompressionType::Gzip => Self::gz(rdr),
CompressionType::Bzip => Self::bz(rdr),
CompressionType::None => Self::plain(rdr),
_ => panic!("Must specify a specific compression type"),
}
}
}
impl<R: Read + Seek> Decoder<R> {
const GZIP_MAGIC_BYTES: [u8; 2] = [0x1F_u8, 0x8B];
const BZIP_MAGIC_BYTES: [u8; 2] = [b'B', b'Z'];
fn detect_compression(rdr: &mut R) -> Result<CompressionType> {
let mut bytes = [0_u8; 2];
rdr.read_exact(&mut bytes).context(Generic)?;
rdr.seek(SeekFrom::Start(0)).context(Generic)?;
match bytes {
Self::GZIP_MAGIC_BYTES => Ok(CompressionType::Gzip),
Self::BZIP_MAGIC_BYTES => Ok(CompressionType::Bzip),
_ => Ok(CompressionType::None),
}
}
}
impl Decoder<File> {
pub fn open<P: AsRef<Path>>(filename: P, compression: CompressionType) -> Result<Self> {
let filename = filename.as_ref();
// Open our input file file
let mut file = File::open(&filename).context(Open { filename })?;
// Resolve the compression type depending on what was requested or what we detect.
let ctype = if let CompressionType::Detect = compression {
Self::detect_compression(&mut file)?
} else {
compression
};
Ok(Self::decoder(file, ctype))
}
}
impl Decoder<std::io::Stdin> {
pub fn stdin() -> Self {
Self::decoder(std::io::stdin(), CompressionType::None)
}
}
impl Encoder<File> {
pub fn create<P: AsRef<Path>>(filename: P, compression: CompressionType) -> Result<Self> {
let filename = filename.as_ref();
let file = File::create(&filename).context(Create { filename })?;
let wtr = match compression {
CompressionType::Gzip => {
let encoder = GzEncoder::new(file, flate2::Compression::default());
Self::Gzipped(encoder)
}
CompressionType::Bzip => {
let encoder = BzEncoder::new(file, bzip2::Compression::Default);
Self::Bzipped(encoder)
}
_ => Self::Plain(file),
};
Ok(wtr)
}
}
|
// > Database internal calls (try to separate CDRS from Rustler)
// Copyright 2020 Roland Metivier
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
extern crate cdrs;
extern crate rustler;
use cdrs::frame::IntoBytes;
use cdrs::query::*;
use cdrs::types::from_cdrs::FromCDRSByName;
use cdrs::types::prelude::*;
static PUT_TIMELINE_QUERY: &'static str = r#"
INSERT INTO eactivitypub.timeline (
recver_idx,
sender_idx,
post_time,
post_idx,
post_root,
post_reps,
content)
VALUES (?, ?, ?, ?, ?, ?, ?);
"#;
#[derive(Clone, Debug, IntoCDRSValue, TryFromRow, PartialEq)]
pub struct Row {
pub recver_idx: i64,
pub sender_idx: i64,
pub post_time: i64,
pub post_root: i64,
pub post_idx: i64,
pub post_reps: Vec<i64>,
pub content: String,
}
impl Row {
fn into_query_values(self) -> QueryValues {
// HACK
cdrs::query_values!(
"recver_idx" => self.recver_idx,
"sender_idx" => self.sender_idx,
"post_time" => self.post_time,
"post_root" => self.post_root,
"post_idx" => self.post_idx,
"post_reps" => self.post_reps,
"content" => self.content
)
}
}
|
use test_structs::Windows::Win32::{Foundation::HWND, UI::WindowsAndMessaging::CWPSTRUCT};
#[test]
fn test_struct_formatting_parameters_debug_trait() {
let mut cwp = CWPSTRUCT::default();
cwp.hwnd = HWND(5678);
assert_eq!("CWPSTRUCT { lParam: LPARAM(0), wParam: WPARAM(0), message: 0, hwnd: HWND(5678) }", format!("{:?}", cwp));
}
#[test]
fn test_struct_formatting_parameters_debug_trait_with_lhex() {
let mut cwp = CWPSTRUCT::default();
cwp.hwnd = HWND(1234);
assert_eq!("CWPSTRUCT { lParam: LPARAM(0), wParam: WPARAM(0), message: 0, hwnd: HWND(4d2) }", format!("{:x?}", cwp));
}
|
use ruduino::Pin;
use ruduino::cores::current::*;
use ruduino::modules::HardwareSpi;
pub fn setup() {
// Set up SPI pin directions
<Spi as HardwareSpi>::MasterInSlaveOut::set_input();
<Spi as HardwareSpi>::MasterOutSlaveIn::set_output();
<Spi as HardwareSpi>::Clock::set_output();
// Turn on SPI
<Spi as HardwareSpi>::set_master();
<Spi as HardwareSpi>::enable();
}
pub fn sync(out: u8) -> u8 {
<Spi as HardwareSpi>::send_byte(out);
<Spi as HardwareSpi>::receive_byte()
}
|
#[derive(Serialize, Deserialize, Debug,)]
pub struct NewBookDto {
pub title: String,
pub author: String,
#[serde(default)]
pub is_published: bool,
}
#[derive(Serialize, Deserialize, Debug,)]
pub struct IdDto {
id: i32
} |
#[doc = "Reader of register DR_10"]
pub type R = crate::R<u32, super::DR_10>;
#[doc = "Reader of field `DRNL1`"]
pub type DRNL1_R = crate::R<u16, u16>;
#[doc = "Reader of field `DRNL2`"]
pub type DRNL2_R = crate::R<u16, u16>;
impl R {
#[doc = "Bits 0:15 - Data value"]
#[inline(always)]
pub fn drnl1(&self) -> DRNL1_R {
DRNL1_R::new((self.bits & 0xffff) as u16)
}
#[doc = "Bits 16:31 - Data value"]
#[inline(always)]
pub fn drnl2(&self) -> DRNL2_R {
DRNL2_R::new(((self.bits >> 16) & 0xffff) as u16)
}
}
|
// Stamping The Sequence
// https://leetcode.com/explore/challenge/card/march-leetcoding-challenge-2021/592/week-5-march-29th-march-31st/3691/
pub struct Solution;
impl Solution {
pub fn moves_to_stamp(stamp: String, target: String) -> Vec<i32> {
let stamp = stamp.as_bytes();
let s_len = stamp.len();
let mut target = target.into_bytes();
let t_len = target.len();
let mut res = Vec::new();
let mut stamped_total = 0;
while stamped_total < t_len {
let mut was_stamped = false;
'mid: for i in 0..=t_len - s_len {
if res.contains(&(i as i32)) {
continue;
}
let mut stamped = 0;
for (&sb, &tb) in stamp.iter().zip(target[i..].iter()) {
if tb == sb {
stamped += 1;
} else if tb != b'?' {
continue 'mid;
}
}
if stamped != 0 {
// There is no `fill` method in Leetcode's version
target[i..i + s_len].iter_mut().for_each(|b| *b = b'?');
was_stamped = true;
stamped_total += stamped;
res.push(i as i32);
}
}
if !was_stamped {
return Vec::new();
}
}
res.reverse();
res
}
}
#[cfg(test)]
mod tests {
use super::*;
fn check(stamp: &str, target: &str) {
let result = Solution::moves_to_stamp(stamp.into(), target.into());
assert!(result.len() <= 10 * target.len());
let mut replay = vec![b'?'; target.len()];
for start in result {
let start = start as usize;
replay[start..start + stamp.len()]
.copy_from_slice(stamp.as_bytes());
}
assert_eq!(String::from_utf8(replay).unwrap(), target);
}
#[test]
fn example1() {
check("abc", "ababc");
}
#[test]
fn example2() {
check("abca", "aabcaca");
}
#[test]
fn test_bad_case() {
let stamp = "a".repeat(30) + "b";
let pattern = "a".repeat(30) + "b";
let target = stamp.clone() + &pattern.as_str().repeat(30);
check(&stamp, &target);
}
}
|
extern crate futures;
extern crate tokio_core;
extern crate telegram_bot;
use telegram_bot::prelude::*;
extern crate json;
extern crate afterparty_ng as afterparty;
use afterparty::{Delivery, Hub};
extern crate hyper;
use hyper::{Client, Server};
use hyper::net::HttpsConnector;
use hyper_native_tls::NativeTlsClient;
extern crate url;
use url::percent_encoding::{
percent_encode, percent_decode, QUERY_ENCODE_SET
};
extern crate htmlescape;
extern crate regex;
use regex::Regex;
use std::{
io::Read,
net::UdpSocket
};
extern crate scoped_threadpool;
use scoped_threadpool::Pool;
#[macro_use]
extern crate serde_derive;
extern crate serde;
extern crate serde_json;
extern crate serde_qs;
#[macro_use]
extern crate rouille;
const MEDIAWIKI_ENDPOINT: &'static str = "0.0.0.0:3000";
const GITHUB_ENDPOINT: &'static str = "0.0.0.0:4567";
const JIRA_ENDPOINT: &'static str = "0.0.0.0:9293";
const PAYPAL_ENDPOINT: &'static str = "0.0.0.0:9728";
const PW_API_URL_PREFIX: &'static str = "https://psychonautwiki.org/w/api.php";
// SANDBOX
//const PAYPAL_IPN_VERIFY_URL: &'static str = "https://ipnpb.sandbox.paypal.com/cgi-bin/webscr?cmd=_notify-validate&";
// LIVE
const PAYPAL_IPN_VERIFY_URL: &'static str = "https://ipnpb.paypal.com/cgi-bin/webscr?cmd=_notify-validate&";
fn verify_paypal_ipn (ipn_payload: impl Into<String>) -> bool {
let ssl = NativeTlsClient::new().unwrap();
let connector = HttpsConnector::new(ssl);
let client = Client::with_connector(connector);
let url = format!("{}{}", PAYPAL_IPN_VERIFY_URL, ipn_payload.into());
let res = client.get(
&url
).send();
if !res.is_ok() {
let _ = res.map_err(|err| println!("{:?}", err));
return false;
}
let mut res = res.unwrap();
let mut buf = Vec::new();
match res.read_to_end(&mut buf) {
Ok(_) => {},
_ => {
return false;
}
}
&buf == b"VERIFIED"
}
fn legacy_hyper_load_url (url: String) -> Option<json::JsonValue> {
let client = Client::new();
let res = client.get(&url).send();
if !res.is_ok() {
return None;
}
let mut res = res.unwrap();
let mut buf = String::new();
match res.read_to_string(&mut buf) {
Ok(_) => {},
_ => {
return None;
}
}
match json::parse(&buf) {
Ok(data) => Some(data),
Err(_) => None
}
}
#[derive(Debug)]
struct RevInfo (String, String, String);
fn get_revision_info(title: String, rev_id: String) -> Option<RevInfo> {
let title = title;
let rev_id = rev_id;
let url = format!(
"{}?action=query&prop=revisions&titles={}&rvprop=timestamp%7Cuser%7Ccomment%7Ccontent%7Cids&rvstartid={}&rvendid={}&format=json",
PW_API_URL_PREFIX,
title,
rev_id,
rev_id
);
let revision_data = legacy_hyper_load_url(url);
if !revision_data.is_some() {
return None;
}
let revision_data = revision_data.unwrap();
let pages = &revision_data["query"]["pages"];
// "-1" is used to denote "not found" in mediawiki
if pages.has_key("-1") || pages.len() != 1usize {
return None;
}
// Obtain page_id
let mut entry: &str = "";
for (key, _) in pages.entries() {
entry = key;
}
// try to obtain the target revision
let results = &pages[entry]["revisions"][0].clone();
if results.is_empty() {
return None;
}
Some(
RevInfo(
results["user"].to_string(),
results["comment"].to_string(),
results["parentid"].to_string()
)
)
}
struct EmitterRgx {
percent_rgx: regex::Regex,
plus_rgx: regex::Regex,
and_rgx: regex::Regex,
questionmark_rgx: regex::Regex,
}
impl EmitterRgx {
fn new() -> EmitterRgx {
let percent_rgx = Regex::new(r"%").unwrap();
let plus_rgx = Regex::new(r"\+").unwrap();
let and_rgx = Regex::new(r"\&").unwrap();
let questionmark_rgx = Regex::new(r"\?").unwrap();
EmitterRgx {
percent_rgx,
plus_rgx,
and_rgx,
questionmark_rgx,
}
}
fn percent_to_url(&self, orig: &str) -> String {
self.percent_rgx.replace_all(orig, "%25").to_string()
}
fn plusexclquest_to_url(&self, orig: &str) -> String {
let orig_pr = self.plus_rgx.replace_all(orig, "%2b").to_string();
let orig_ar = self.and_rgx.replace_all(&orig_pr, "%26").to_string();
self.questionmark_rgx.replace_all(&orig_ar, "%3f").to_string()
}
}
struct ConfiguredApi {
api: telegram_bot::Api,
core: std::cell::RefCell<tokio_core::reactor::Core>,
channel_id: i64,
name: String,
parse_mode: telegram_bot::types::ParseMode
}
fn htmlescape_str<T: Into<String>>(msg: T) -> String {
let msg = msg.into();
let mut writer = Vec::with_capacity((msg.len()/3 + 1) * 4);
match htmlescape::encode_minimal_w(&msg, &mut writer) {
Err(_) => {
println!("Could not html-encode string: {:?}", msg);
msg
},
Ok(_) =>
match String::from_utf8(writer) {
Ok(encoded_msg) => encoded_msg,
_ => msg
}
}
}
impl ConfiguredApi {
fn new(name: &str, parse_mode: telegram_bot::types::ParseMode) -> ConfiguredApi {
let core = tokio_core::reactor::Core::new().unwrap();
let token = std::env::var("TELEGRAM_TOKEN").unwrap();
let api = telegram_bot::Api::configure(token).build(core.handle()).unwrap();
ConfiguredApi {
api,
core: std::cell::RefCell::new(core),
channel_id: -1001050593583,
name: name.to_string(),
parse_mode
}
}
fn emit<T: Into<String>>(&self, msg: T, should_notify: bool) {
let msg = format!("⥂ {} ⟹ {}", self.name, msg.into());
let channel = telegram_bot::ChannelId::new(self.channel_id);
let mut chan_msg = channel.text(msg);
let msg_op = chan_msg
.parse_mode(self.parse_mode)
.disable_preview();
let msg_op_notif = match should_notify {
true => msg_op,
false => msg_op.disable_notification()
};
let tg_future = self.api.send(
msg_op_notif
);
let _ = self.core.borrow_mut().run(tg_future);
}
}
/*
* MEDIAWIKI UDP CHANGE EVENTS
*/
struct MediaWikiEmitter {
configured_api: ConfiguredApi,
emitter_rgx: EmitterRgx
}
impl MediaWikiEmitter {
fn new() -> MediaWikiEmitter {
let configured_api = ConfiguredApi::new(&"<b>MediaWiki</b>", telegram_bot::types::ParseMode::Html);
let emitter_rgx = EmitterRgx::new();
MediaWikiEmitter {
configured_api,
emitter_rgx
}
}
fn handle_evt(&self, evt: &json::JsonValue) {
let evt_type = evt["type"].to_string();
match &*evt_type {
"edit" => self.handle_evt_edit(evt),
"log" => self.handle_evt_log(evt),
"new" => self.handle_evt_new(evt),
_ => {
if evt_type == "null" {
return;
}
let msg = format!(
"[not_implemented] {}",
evt.dump()
);
self.configured_api.emit(msg, true);
}
}
}
fn urlencode(orig: &str) -> String {
percent_encode(orig.as_bytes(), QUERY_ENCODE_SET).collect::<String>()
}
fn urldecode(orig: &str) -> String {
String::from_utf8(
percent_decode(orig.as_bytes()).collect::<Vec<u8>>()
).unwrap_or("<string conversion failed>".to_string())
}
// do an additional encode on top of urlencode
// as the url crate doesn't allow for double-encode
// as per ISO specification
fn wrap_urlencode(&self, orig: &str) -> String {
self.emitter_rgx.percent_to_url(orig)
}
fn get_user_url(&self, user: &str) -> String {
let target = format!(
"User:{}",
user
);
self.get_url(&target)
}
fn get_url(&self, page: &str) -> String {
let url = format!(
"https://psychonautwiki.org/wiki/{}",
page
);
url
}
fn cond_string(cond: bool, protagonist: &str, antagonist: &str) -> String {
match cond {
true => protagonist.to_string(),
false => antagonist.to_string()
}
}
fn explain_comment(comment: &str) -> String {
if comment == "" {
return format!("without summary");
}
return format!("with summary: {}", comment);
}
fn handle_evt_edit(&self, evt: &json::JsonValue) {
let user = evt["user"].to_string();
let page = evt["title"].to_string();
let comment = evt["comment"].to_string();
let evt_curid = evt["revision"]["new"].as_u32().unwrap();
let evt_previd = evt["revision"]["old"].as_u32().unwrap();
let evt_is_minor = evt["minor"].as_bool().unwrap();
let evt_is_patrolled = evt["patrolled"].as_bool().unwrap();
let evt_is_bot = evt["bot"].as_bool().unwrap();
let url = format!(
"https://psychonautwiki.org/w/index.php?title={}&type=revision&diff={:?}&oldid={:?}",
self.wrap_urlencode(&MediaWikiEmitter::urlencode(&page)), evt_curid, evt_previd
);
let has_flags = evt_is_minor || evt_is_patrolled || evt_is_bot;
let flags = format!(
"{}{}{}",
MediaWikiEmitter::cond_string(evt_is_minor, "<b>minor</b> ", ""),
MediaWikiEmitter::cond_string(evt_is_patrolled, "<b>patrolled</b> ", ""),
MediaWikiEmitter::cond_string(evt_is_bot, "<b>bot</b> ", "")
);
let msg = format!(
r#"{}<a href="{}">{}</a> edited <a href="{}">{}</a> {}"#,
MediaWikiEmitter::cond_string(
has_flags,
&format!("| {}| ", flags),
""
),
self.get_user_url(&user),
user,
url,
page,
MediaWikiEmitter::explain_comment(&comment)
);
self.configured_api.emit(msg, true);
}
fn handle_evt_new(&self, evt: &json::JsonValue) {
let user = evt["user"].to_string();
let page = evt["title"].to_string();
let comment = evt["comment"].to_string();
let evt_curid = evt["revision"]["new"].as_u32().unwrap();
let evt_is_minor = evt["minor"].as_bool().unwrap();
let evt_is_patrolled = evt["patrolled"].as_bool().unwrap();
let evt_is_bot = evt["bot"].as_bool().unwrap();
let url = format!(
"https://psychonautwiki.org/w/index.php?title={}&oldid={:?}",
self.wrap_urlencode(&MediaWikiEmitter::urlencode(&page)), evt_curid
);
let has_flags = evt_is_minor || evt_is_patrolled || evt_is_bot;
let flags = format!(
"{}{}{}",
MediaWikiEmitter::cond_string(evt_is_minor, "<b>minor</b> ", ""),
MediaWikiEmitter::cond_string(evt_is_patrolled, "<b>patrolled</b> ", ""),
MediaWikiEmitter::cond_string(evt_is_bot, "<b>bot</b> ", "")
);
let msg = format!(
r#"[new] {}<a href="{}">{}</a> created page <a href="{}">{}</a> {}"#,
MediaWikiEmitter::cond_string(
has_flags,
&format!("| {}| ", flags),
""
),
self.get_user_url(&user),
user,
url,
page,
MediaWikiEmitter::explain_comment(&comment)
);
self.configured_api.emit(msg, true);
}
fn handle_evt_log(&self, evt: &json::JsonValue) {
let log_type = evt["log_type"].to_string();
match &*log_type {
"approval" => self.handle_evt_log_approval(evt),
"avatar" => self.handle_evt_log_avatar(evt),
"block" => self.handle_evt_log_block(evt),
"delete" => self.handle_evt_log_delete(evt),
"move" => self.handle_evt_log_move(evt),
"newusers" => self.handle_evt_log_newusers(evt),
"patrol" => self.handle_evt_log_patrol(evt),
"profile" => self.handle_evt_log_profile(evt),
"rights" => self.handle_evt_log_rights(evt),
"thanks" => self.handle_evt_log_thanks(evt),
"upload" => self.handle_evt_log_upload(evt),
"usermerge" => self.handle_evt_log_usermerge(evt),
_ => {
if log_type == "null" {
return;
}
let msg = format!(
"[log_not_implemented] {}",
self.emitter_rgx.plusexclquest_to_url(&evt.dump())
);
self.configured_api.emit(msg, true);
}
}
}
fn handle_evt_log_avatar(&self, evt: &json::JsonValue) {
let user = evt["user"].to_string();
let comment = evt["comment"].to_string();
let msg = format!(
r#"[log/avatar] <a href="{}">{}</a> {}"#,
self.get_user_url(&user),
user,
comment
);
self.configured_api.emit(msg, true);
}
fn handle_evt_log_block(&self, evt: &json::JsonValue) {
let user = evt["user"].to_string();
let comment = evt["log_action_comment"].to_string();
let msg = format!(
r#"[log/ban] <a href="{}">{}</a> {}"#,
self.get_user_url(&user),
user,
comment
);
self.configured_api.emit(msg, true);
}
fn handle_evt_log_delete(&self, evt: &json::JsonValue) {
let user = evt["user"].to_string();
let page = evt["title"].to_string();
let msg = format!(
r#"[log/delete] <a href="{}">{}</a> deleted page: <a href="{}">{}</a>"#,
self.get_user_url(&user),
user,
self.get_url(&page),
page
);
self.configured_api.emit(msg, true);
}
fn handle_evt_log_move(&self, evt: &json::JsonValue) {
let user = evt["user"].to_string();
let page = evt["title"].to_string();
let evt_target = evt["log_params"]["target"].to_string();
let msg = format!(
r#"[log/move] <a href="{}">{}</a> moved <a href="{}">{}</a> to <a href="{}">{}</a>"#,
self.get_user_url(&user),
user,
self.get_url(&page),
page,
self.get_url(&evt_target),
evt_target
);
self.configured_api.emit(msg, true);
}
fn handle_evt_log_newusers(&self, evt: &json::JsonValue) {
let comment = evt["log_action_comment"].to_string();
let user = evt["user"].to_string();
let msg = format!(
r#"[log/newusers] <a href="{}">{}</a> {}"#,
self.get_user_url(&user),
user,
comment
);
self.configured_api.emit(msg, true);
}
fn handle_evt_log_approval(&self, evt: &json::JsonValue) {
let log_type = evt["log_action"].to_string();
match &*log_type {
"approve" => self.handle_evt_log_approval_approve(evt),
"unapprove" => self.handle_evt_log_approval_unapprove(evt),
_ => {
if log_type == "null" {
return;
}
let msg = format!(
"[log/approval/not_implemented] {}",
self.emitter_rgx.plusexclquest_to_url(&evt.dump())
);
self.configured_api.emit(msg, true);
}
}
}
fn handle_evt_log_approval_approve(&self, evt: &json::JsonValue) {
let evt_revid = evt["log_params"]["rev_id"].as_u32().unwrap();
let evt_oldrevid = evt["log_params"]["old_rev_id"].as_u32().unwrap();
let user = evt["user"].to_string();
let page = evt["title"].to_string();
let rev_info: Option<RevInfo> = get_revision_info(page.clone(), evt_revid.to_string());
let has_rev_info = rev_info.is_some();
if !has_rev_info {
eprintln!(
"Failed to obtain revision information for page='{}', rev_id='{}'",
page, evt_revid
);
}
// extract user and comment from revision data
let (rev_by_user, rev_comment, rev_parentid) = {
if !has_rev_info {
(String::new(), String::new(), evt_oldrevid.to_string())
} else {
let rev_info = rev_info.unwrap();
(rev_info.0, rev_info.1, rev_info.2)
}
};
let rev_info_msg_user = {
if !has_rev_info {
String::new()
} else {
format!(
r#" by <a href="{}">{}</a> ("{}")"#,
self.get_user_url(&rev_by_user),
rev_by_user,
rev_comment
)
}
};
let url = format!(
"https://psychonautwiki.org/w/index.php?title={}&type=revision&diff={:?}&oldid={}",
self.wrap_urlencode(&MediaWikiEmitter::urlencode(&page)), evt_revid, rev_parentid
);
let msg = format!(
r#"[log/approval] <a href="{}">{}</a> approved <a href="{}">revision {}</a>{} of <a href="{}">{}</a>"#,
self.get_user_url(&user),
user,
url,
evt_revid,
rev_info_msg_user,
self.get_url(&page),
page
);
self.configured_api.emit(msg, true);
}
// Currently “unapprove" will unapprove all approved revisions of
// an article and effectively blank it. Therefore the old revision
// id will only be used to link to the previously approved revision.
fn handle_evt_log_approval_unapprove(&self, evt: &json::JsonValue) {
let evt_oldrevid = evt["log_params"]["old_rev_id"].as_u32().unwrap();
let user = evt["user"].to_string();
let page = evt["title"].to_string();
let rev_info: Option<RevInfo> = get_revision_info(page.clone(), evt_oldrevid.to_string());
let has_rev_info = rev_info.is_some();
if !has_rev_info {
eprintln!(
"Failed to obtain revision information for page='{}', rev_id='{}'",
page, evt_oldrevid
);
}
// extract user and comment from revision data
let (rev_by_user, rev_comment) = {
if !has_rev_info {
(String::new(), String::new())
} else {
let rev_info = rev_info.unwrap();
(rev_info.0, rev_info.1)
}
};
let rev_info_msg_user = {
if !has_rev_info {
String::new()
} else {
format!(
r#" by <a href="{}">{}</a> ("{}")"#,
self.get_user_url(&rev_by_user),
rev_by_user,
rev_comment
)
}
};
let url = format!(
"https://psychonautwiki.org/w/index.php?title={}&type=revision&oldid={}",
self.wrap_urlencode(&MediaWikiEmitter::urlencode(&page)), evt_oldrevid
);
let msg = format!(
r#"[log/approval] <a href="{}">{}</a> revoked the approval of <a href="{}">{}</a> (was <a href="{}">revision {}</a>{})"#,
self.get_user_url(&user),
user,
self.get_url(&page),
page,
url,
evt_oldrevid,
rev_info_msg_user
);
self.configured_api.emit(msg, true);
}
fn handle_evt_log_patrol(&self, evt: &json::JsonValue) {
if !evt["log_params"]["auto"].is_number() {
return;
}
let evt_auto = evt["log_params"]["auto"].as_u32().unwrap();
if evt_auto == 1u32 {
return;
}
let evt_curid = evt["log_params"]["curid"].as_u32().unwrap();
let evt_previd = evt["log_params"]["previd"].as_u32().unwrap();
let user = evt["user"].to_string();
let page = evt["title"].to_string();
let rev_info: Option<RevInfo> = get_revision_info(page.clone(), evt_curid.to_string());
let has_rev_info = rev_info.is_some();
if !has_rev_info {
eprintln!(
"Failed to obtain revision information for page='{}', rev_id='{}'",
page, evt_curid
);
}
// extract user and comment from revision data
let (rev_by_user, rev_comment) = {
if !has_rev_info {
(String::new(), String::new())
} else {
let rev_info = rev_info.unwrap();
(rev_info.0, rev_info.1)
}
};
let rev_info_msg_user = {
if !has_rev_info {
String::new()
} else {
format!(
r#" by <a href="{}">{}</a> ("{}")"#,
self.get_user_url(&rev_by_user),
rev_by_user,
rev_comment
)
}
};
let url = format!(
"https://psychonautwiki.org/w/index.php?title={}&type=revision&diff={:?}&oldid={:?}",
self.wrap_urlencode(&MediaWikiEmitter::urlencode(&page)), evt_curid, evt_previd
);
let msg = format!(
r#"[log/patrol] <a href="{}">{}</a> marked <a href="{}">revision {}</a>{} of <a href="{}">{}</a> patrolled"#,
self.get_user_url(&user),
user,
url,
evt_curid,
rev_info_msg_user,
self.get_url(&page),
page
);
self.configured_api.emit(msg, true);
}
fn handle_evt_log_profile(&self, evt: &json::JsonValue) {
let comment = evt["log_action_comment"].to_string();
let user = evt["user"].to_string();
let msg = format!(
r#"[log/profile] <a href="{}">{}</a> {}"#,
self.get_user_url(&user),
user,
comment
);
self.configured_api.emit(msg, true);
}
fn handle_evt_log_rights(&self, evt: &json::JsonValue) {
let user = evt["user"].to_string();
let comment = evt["log_action_comment"].to_string();
let msg = format!(
r#"[log/rights] <a href="{}">{}</a> {}"#,
self.get_user_url(&user),
user,
comment
);
self.configured_api.emit(msg, true);
}
fn handle_evt_log_thanks(&self, evt: &json::JsonValue) {
let comment = evt["log_action_comment"].to_string();
let msg = format!(
"[log/thanks] {}",
comment
);
self.configured_api.emit(msg, true);
}
fn handle_evt_log_upload(&self, evt: &json::JsonValue) {
let user = evt["user"].to_string();
let file = evt["title"].to_string();
let msg = format!(
r#"[log/upload] <a href="{}">{}</a> uploaded file: <a href="{}">{}</a>"#,
self.get_user_url(&user),
user,
self.get_url(&file),
file
);
self.configured_api.emit(msg, true);
}
fn handle_evt_log_usermerge(&self, evt: &json::JsonValue) {
let user = evt["user"].to_string();
let msg = format!(
r#"[log/usermerge] <a href="{}">{}</a> {}"#,
self.get_user_url(&user),
user,
MediaWikiEmitter::urldecode(&evt["log_action_comment"].to_string()),
);
self.configured_api.emit(msg, true);
}
}
/*
* GITHUB CHANGE EVENTS
*/
struct GithubEmitter {
configured_api: ConfiguredApi
}
impl GithubEmitter {
fn new() -> GithubEmitter {
let configured_api = ConfiguredApi::new(&"<b>GitHub</b>", telegram_bot::types::ParseMode::Html);
GithubEmitter {
configured_api
}
}
fn handle_evt (&self, delivery: &Delivery) {
match delivery.payload {
afterparty::Event::Watch { ref sender, ref repository, .. } => {
self.configured_api.emit(format!(
r#"<a href="{}">{}</a> starred <a href="{}">{}</a>"#,
&sender.html_url,
sender.login,
&repository.html_url,
repository.full_name,
), false);
},
afterparty::Event::CommitComment { ref sender, ref comment, ref repository, .. } => {
self.configured_api.emit(format!(
r#"<a href="{}">{}</a> commented on commit <a href="{}">{}</a>"#,
&sender.html_url,
sender.login,
&comment.html_url,
format!(
"{}:{}:L{}",
repository.full_name,
comment.path.clone().unwrap_or("".to_string()),
comment.line.clone().unwrap_or(0i64)
),
), true);
}
afterparty::Event::PullRequest { ref sender, ref action, ref repository, ref pull_request, .. } => {
// "synchronize" events are less than useless
if action == "synchronize" {
return;
}
self.configured_api.emit(format!(
r#"<a href="{}">{}</a> {} pull-request <a href="{}">"{}" (#{})</a> to <a href="{}">{}</a> [<a href="{}">{} commits</a>; <a href="{}">{} changed files (+{}/-{})]</a>; <a href="{}">raw diff</a>]"#,
&sender.html_url,
sender.login,
action,
&pull_request.html_url,
pull_request.title,
pull_request.number,
&repository.html_url,
repository.full_name,
&format!("{}/commits", &pull_request.html_url),
pull_request.commits,
&format!("{}/files", &pull_request.html_url),
pull_request.changed_files,
pull_request.additions,
pull_request.deletions,
&pull_request.diff_url,
), false);
},
afterparty::Event::PullRequestReview { ref sender, ref action, ref repository, ref pull_request, ref review, .. } => {
if review.state == "edited" {
return;
}
self.configured_api.emit(format!(
r#"<a href="{}">{}</a> {} <a href="{}">{}</a> pull-request <a href="{}">"{}" ({}/#{})</a> [<a href="{}">commits</a>; <a href="{}">changed files</a>; <a href="{}">raw diff</a>]"#,
&sender.html_url,
sender.login,
action,
&review.html_url,
match &*review.state {
// these happen either when an approval is
// created or dismissed
"approved" => "an approval to".to_string(),
"dismissed" => "an approval to".to_string(),
"commented" => "a comment to".to_string(),
"changes_requested" => "a request for changes to".to_string(),
_ => review.state.clone()
},
&pull_request.html_url,
pull_request.title,
repository.full_name,
pull_request.number,
&format!("{}/commits", &pull_request.html_url),
&format!("{}/files", &pull_request.html_url),
&pull_request.diff_url,
), false);
},
afterparty::Event::Delete { ref sender, ref _ref, ref ref_type, ref repository, .. } => {
self.configured_api.emit(format!(
r#"<a href="{}">{}</a> deleted {} "{}" of <a href="{}">{}</a>"#,
&sender.html_url,
sender.login,
ref_type,
_ref,
&repository.html_url,
repository.full_name,
), false);
},
afterparty::Event::Release { ref sender, ref action, ref release, ref repository, .. } => {
self.configured_api.emit(format!(
r#"<a href="{}">{}</a> {} release "{}" (tag {}, branch {}{}{}) of <a href="{}">{}</a>:
{}"#,
&sender.html_url,
sender.login,
action,
release.name.clone().unwrap_or("?".to_string()),
release.tag_name.clone().unwrap_or("?".to_string()),
release.target_commitish,
match release.draft {
true => ", draft",
false => "",
},
match release.prerelease {
true => ", prerelease",
false => "",
},
&repository.html_url,
repository.full_name,
htmlescape_str(release.body.clone().unwrap_or("?".to_string()))
), false);
},
afterparty::Event::Fork { ref sender, ref repository, ref forkee } => {
self.configured_api.emit(format!(
r#"<a href="{}">{}</a> forked <a href="{}">{}</a> as <a href="{}">{}</a>"#,
&sender.html_url,
sender.login,
&repository.html_url,
repository.full_name,
&forkee.html_url,
forkee.full_name,
), false);
},
afterparty::Event::IssueComment { ref sender, ref action, ref comment, ref issue, ref repository } => {
self.configured_api.emit(format!(
r#"<a href="{}">{}</a> {} a comment on issue <a href="{}">{}</a> ({:?})"#,
&sender.html_url,
sender.login,
action,
{
if action == "deleted" {
&issue.html_url
} else {
&comment.html_url
}
},
format!("{}#{}", repository.full_name, issue.number),
issue.title
), true);
},
afterparty::Event::Issues { ref sender, ref action, ref issue, ref repository, .. } => {
self.configured_api.emit(format!(
r#"<a href="{}">{}</a> {} issue <a href="{}">{}</a> ({:?})"#,
&sender.html_url,
sender.login,
action,
&issue.html_url,
format!("{}#{}", repository.full_name, issue.number),
issue.title
), true);
},
afterparty::Event::Member { ref sender, ref action, ref member, ref repository, .. } => {
let mut perm_verb = "";
let mut perm_suffix = "";
if action == "edited" {
perm_verb = "edited the permissions of";
perm_suffix = "in";
} else if action == "added" {
perm_verb = "added";
perm_suffix = "to";
} else if action == "deleted" {
perm_verb = "removed";
perm_suffix = "from";
}
self.configured_api.emit(format!(
r#"<a href="{}">{}</a> {} <a href="{}">{}</a> {} <a href="{}">{}</a>"#,
&sender.html_url,
sender.login,
perm_verb,
&member.html_url,
member.login,
perm_suffix,
&repository.html_url,
repository.full_name,
), false);
},
afterparty::Event::Membership { ref sender, ref action, ref member, ref team, ref organization, .. } => {
self.configured_api.emit(format!(
r#"<a href="{}">{}</a> was {} <a href="{}">{}/{}</a> by <a href="{}">{}</a>"#,
&member.html_url,
member.login,
{
if action == "added" {
"added to"
} else {
"removed from"
}
},
&team.members_url,
organization.login,
team.name,
&sender.html_url,
sender.login,
), false);
},
afterparty::Event::Push { ref forced, ref sender, ref commits, ref compare, ref repository, ref _ref, .. } => {
self.configured_api.emit(format!(
r#"<a href="{}">{}</a> {}pushed <a href="{}">{} commit{}</a> to <a href="{}">{}</a> ({}){}"#,
&sender.html_url,
sender.login,
{ if *forced { "force-" } else { "" } },
&compare,
commits.len(),
{ if commits.len() == 1 { "" } else { "s" } },
&repository.html_url,
repository.full_name,
_ref,
{
if commits.len() == 1 {
format!(
": {}",
// This can potentially trip up the Telegram
// HTML parser. That is, encode the string
// ensuring Git meta data is not incorrectly
// detected as html and thereforce marked
// as invalid markup. i.e. "<foo@bar.com>"
htmlescape_str(commits[0].message.clone())
)
} else {
"".to_string()
}
},
), true);
},
afterparty::Event::Repository { ref sender, ref action, ref repository, .. } => {
self.configured_api.emit(format!(
r#"<a href="{}">{}</a> {} repository <a href="{}">{}</a>"#,
&sender.html_url,
sender.login,
action,
&repository.html_url,
repository.full_name,
), false);
},
_ => (),
}
}
}
/*
* JIRA CHANGE EVENTS
*/
// Structs generated by https://transform.now.sh/json-to-rust-serde
#[derive(Serialize, Deserialize)]
struct JiraEventFields {
issuetype: JiraEventIssuetype,
project: JiraEventIssuetype,
priority: JiraEventIssuetype,
status: JiraEventStatus,
summary: String,
creator: JiraEventUser,
reporter: JiraEventUser,
}
#[derive(Serialize, Deserialize)]
struct JiraEventIssue {
#[serde(rename = "self")]
_self: String,
key: String,
fields: JiraEventFields,
}
#[derive(Serialize, Deserialize)]
struct JiraEventIssuetype {
name: String,
}
#[derive(Serialize, Deserialize)]
struct JiraEventStatus {
name: String,
#[serde(rename = "statusCategory")]
status_category: JiraEventIssuetype,
}
#[derive(Serialize, Deserialize)]
struct JiraEventUser {
#[serde(rename = "accountId")]
account_id: String,
#[serde(rename = "displayName")]
display_name: String,
}
#[derive(Serialize, Deserialize)]
struct JiraEvent<'a> {
user: JiraEventUser,
issue: JiraEventIssue,
#[serde(rename = "webhookEvent")]
webhook_event: &'a str,
}
enum JiraEventTypes {
IssueCreated,
IssueUpdated,
IssueDeleted
}
struct JiraEmitter {
configured_api: ConfiguredApi
}
impl JiraEmitter {
fn new() -> JiraEmitter {
let configured_api = ConfiguredApi::new(&"<b>Jira</b>", telegram_bot::types::ParseMode::Html);
JiraEmitter {
configured_api
}
}
fn handle_evt(&self, event: JiraEvent) {
let event_type = match event.webhook_event {
"jira:issue_created" => JiraEventTypes::IssueCreated,
"jira:issue_updated" => JiraEventTypes::IssueUpdated,
"jira:issue_deleted" => JiraEventTypes::IssueDeleted,
_ => { return; }
};
self._handle_marked_evt(
event,
event_type
)
}
fn _get_verb_from_type(&self, event_type: JiraEventTypes) -> &'static str {
match event_type {
JiraEventTypes::IssueUpdated => "updated",
JiraEventTypes::IssueCreated => "created",
JiraEventTypes::IssueDeleted => "deleted"
}
}
fn _get_formatted_event(&self, event: JiraEvent, event_type: JiraEventTypes) -> String {
format!(
r#"[<i>{}</i> | <i>{}</i>] <a href="https://psychonaut.atlassian.net/people/{}">{}</a> {} {} <a href="https://psychonaut.atlassian.net/browse/{}">{}</a> [{}]: <b>{}</b>"#,
event.issue.fields.priority.name.to_lowercase(),
event.issue.fields.status.name.to_lowercase(),
event.user.account_id,
event.user.display_name,
self._get_verb_from_type(event_type),
event.issue.fields.issuetype.name.to_lowercase(),
event.issue.key,
event.issue.key,
event.issue.fields.project.name,
event.issue.fields.summary
)
}
fn _handle_marked_evt(&self, event: JiraEvent, event_type: JiraEventTypes) {
self.configured_api.emit(
self._get_formatted_event(event, event_type),
true
);
}
}
#[derive(Serialize, Deserialize)]
struct PayPalIPN {
mc_gross: String,
protection_eligibility: String,
payer_id: String,
payment_date: String,
payment_status: String,
charset: String,
first_name: String,
mc_fee: String,
notify_version: String,
custom: String,
payer_status: String,
business: String,
quantity: String,
verify_sign: String,
payer_email: String,
txn_id: String,
payment_type: String,
last_name: String,
receiver_email: String,
payment_fee: String,
shipping_discount: String,
receiver_id: String,
insurance_amount: String,
txn_type: String,
item_name: String,
discount: String,
mc_currency: String,
item_number: String,
residence_country: String,
shipping_method: String,
transaction_subject: String,
payment_gross: String,
ipn_track_id: String,
}
struct PayPalEmitter {
configured_api: ConfiguredApi
}
impl PayPalEmitter {
fn new() -> PayPalEmitter {
let configured_api = ConfiguredApi::new(&"<b>PayPal</b>", telegram_bot::types::ParseMode::Html);
PayPalEmitter {
configured_api
}
}
fn handle_evt(&self, event: &PayPalIPN) {
self.configured_api.emit(
self._get_formatted_event(event),
true
);
}
fn _get_formatted_event(&self, event: &PayPalIPN) -> String {
format!(
r#"Received <b>{} {}</b> (fee <b>{} {}</b>, gr. <b>{} {}</b>) from <b>{} {}</b> [<b>{}, {}, {}</b>]"#,
event.mc_currency,
event.mc_gross.parse::<f64>().unwrap() - event.mc_fee.parse::<f64>().unwrap(),
event.mc_currency,
event.mc_fee.parse::<f64>().unwrap(),
event.mc_currency,
event.mc_gross.parse::<f64>().unwrap(),
event.first_name,
event.last_name,
if event.payer_status == "verified" { "✓" } else { "✘" },
event.residence_country,
event.payer_email
)
}
}
/*
* Main
*/
struct EoP {
thread_pool: scoped_threadpool::Pool
}
impl EoP {
fn new() -> EoP {
EoP {
thread_pool: Pool::new(4)
}
}
fn init (&mut self) {
self.thread_pool.scoped(|scoped| {
scoped.execute(|| {
EoP::init_mediawiki();
});
scoped.execute(|| {
EoP::init_github();
});
scoped.execute(|| {
EoP::init_jira();
});
scoped.execute(|| {
EoP::init_paypal();
});
});
}
fn init_mediawiki () {
let emitter = MediaWikiEmitter::new();
let socket = match UdpSocket::bind(MEDIAWIKI_ENDPOINT) {
Ok(socket) => {
println!("✔ MediaWikiEmitter online. ({})", MEDIAWIKI_ENDPOINT);
socket
},
Err(e) => panic!("✘ MediaWikiEmitter failed to create socket: {}", e)
};
let mut buf = [0; 2048];
loop {
match socket.recv_from(&mut buf) {
Ok((amt, _)) => {
let instr = std::str::from_utf8(&buf[0..amt]).unwrap_or("");
let evt = json::parse(instr);
if !evt.is_ok() {
continue;
}
let ref evt = evt.unwrap();
emitter.handle_evt(evt);
},
Err(e) => println!("couldn't recieve a datagram: {}", e)
}
}
}
fn init_github () {
let mut hub = Hub::new();
hub.handle("*", move |delivery: &Delivery| {
GithubEmitter::new().handle_evt(delivery);
});
let srvc = match Server::http(GITHUB_ENDPOINT) {
Ok(server) => {
println!("✔ GithubEmitter online. ({})", GITHUB_ENDPOINT);
server
},
Err(e) => panic!("✘ GithubEmitter failed to create socket: {}", e)
};
let _ = srvc.handle(hub);
}
fn init_jira () {
let server = rouille::Server::new(
JIRA_ENDPOINT,
move |request| {
rouille::log(&request, std::io::stdout(), || {
router!(request,
(POST) (/submit) => {
let mut res_data = request.data()
.expect("Oops, body already retrieved, problem in the server");
let mut buf = Vec::new();
match res_data.read_to_end(&mut buf) {
Ok(_) => (),
Err(_) => return rouille::Response::json(&r#"{"ok":false}"#)
};
let data: JiraEvent = match serde_json::from_slice(&buf) {
Ok(parsed_data) => parsed_data,
Err(err) => {
println!("{:?}", err);
return rouille::Response::json(&r#"{"ok":false}"#);
}
};
JiraEmitter::new().handle_evt(data);
rouille::Response::json(&r#"{"ok":true}"#)
},
_ => rouille::Response::json(&r#"{"ok":false}"#)
)
})
}
);
match server {
Ok(server) => {
println!("✔ JiraEmitter online. ({})", JIRA_ENDPOINT);
server.run();
},
Err(msg) => {
println!("✘ JiraEmitter failed to create socket: {:?}", msg);
}
}
}
fn init_paypal () {
let server = rouille::Server::new(
PAYPAL_ENDPOINT,
move |request| {
rouille::log(&request, std::io::stdout(), || {
router!(request,
(POST) (/) => {
let mut res_data = request.data()
.expect("?");
let mut buf = Vec::new();
match res_data.read_to_end(&mut buf) {
Ok(_) => (),
Err(_) => return rouille::Response::json(&r#"{"ok":false}"#)
};
verify_paypal_ipn(String::from_utf8(buf.clone()).unwrap());
let data: PayPalIPN = match serde_qs::from_str(&*String::from_utf8_lossy(&buf)) {
Ok(parsed_data) => parsed_data,
Err(_) => return rouille::Response::json(&r#"{"ok":false}"#)
};
PayPalEmitter::new().handle_evt(&data);
rouille::Response::json(&r#"{"ok":true}"#)
},
_ => rouille::Response::json(&r#"{"ok":false}"#)
)
})
}
);
match server {
Ok(server) => {
println!("✔ PayPalEmitter online. ({})", JIRA_ENDPOINT);
server.run();
},
Err(msg) => {
println!("✘ PayPalEmitter failed to create socket: {:?}", msg);
}
}
}
}
fn main() {
println!("~~~~~~ PsychonautWiki EoP ~~~~~~");
let mut eye = EoP::new();
eye.init();
}
|
use std::fs::File;
use std::io::prelude::*;
use std::fmt;
use crate::memory::Memory;
pub struct SnesCartridge {
memory: Vec<u8>,
title: String,
rom_makeup: u8,
chipset: u8,
rom_size: usize,
ram_size: usize,
country: u8,
developer_id: u8,
rom_version: u8,
checksum_complement: u16,
checksum: u16,
ram: Vec<u8>,
}
const WRAM_BANK: u8 = 0x7E;
const WRAM_BANK_END: u8 = 0x7F;
impl SnesCartridge {
pub fn new(filepath: &str) -> std::io::Result<SnesCartridge> {
let mut f = File::open(filepath)?;
let mut buffer = Vec::new();
f.read_to_end(&mut buffer)?;
if buffer.len() & 0x3FF == 0x200 {
buffer = buffer[0x200..].to_vec(); // (extra header from copiers)
}
let title_slice = &buffer[0xFFC0 .. 0xFFC0 + 21];
let title = std::str::from_utf8(title_slice).unwrap().to_string();
let rom_makeup = buffer[0xFFD5];
let chipset = buffer[0xFFD6];
let rom_size = 1024 * (1 << buffer[0xFFD7]);
let ram_size = 1024 * (1 << buffer[0xFFD8]);
let country = buffer[0xFFD9];
let developer_id = buffer[0xFFDA];
let rom_version = buffer[0xFFDB];
let checksum_complement =
(buffer[0xFFDD] as u16) << 8 | buffer[0xFFDC] as u16;
let checksum = (buffer[0xFFDF] as u16) << 8 | buffer[0xFFDE] as u16;
let ram = vec![0x0; ram_size];
Ok(SnesCartridge {
memory: buffer,
title: title,
rom_makeup: rom_makeup,
chipset: chipset,
rom_size: rom_size,
ram_size: ram_size,
country: country,
developer_id: developer_id,
rom_version: rom_version,
checksum_complement: checksum_complement,
checksum: checksum,
ram: ram,
})
}
pub fn rom_file_size(&self) -> usize {
return self.memory.len();
}
fn lorom_read8(&self, bank: u8, offset: u16) -> u8 {
let addr = ((bank as usize & 0x3f) << 16) | offset as usize;
let d = self.memory[addr];
debug!("lorom {:02X}:{:04X} -> {:02X}", bank, offset, d);
d
}
fn hirom_read8(&self, bank: u8, offset: u16) -> u8 {
let addr = (((bank as usize & 0x7f) - 0x40) << 16) | offset as usize;
let d = self.memory[addr];
debug!("rom {:02X}:{:04X}({:06X}) -> {:02X}", bank, offset, addr, d);
d
}
fn ws2_hirom_read8(&self, bank: u8, offset: u16) -> u8 {
let bank = bank as usize - 0xfe + 0x3e;
let addr = (bank << 16) | offset as usize;
let d = self.memory[addr];
debug!("ws2_hirom {:02X}:{:04X} -> {:02X}", bank, offset, d);
d
}
fn wram_read8(&self, offset: u16) -> u8 {
let offset = offset as usize;
let d = self.ram[offset];
debug!("ram {:04X} -> {:02X}", offset, d);
d
}
fn wram_write8(&mut self, bank: u8, offset: u16, data: u8) {
self.ram[((bank as usize - WRAM_BANK as usize) << 16) + offset as usize] = data
}
}
impl Memory for SnesCartridge {
fn read8(&self, bank: u8, offset: u16) -> u8 {
match (bank, offset) {
(0x00 ..= 0x3f, 0x8000 ..= 0xffff) => {
self.lorom_read8(bank, offset)
},
(0x80 ..= 0xbf, 0x8000 ..= 0xffff) => {
self.lorom_read8(bank, offset)
},
// hirom has some mirroring in ram
(0x20 ..= 0x3f, 0x6000 ..= 0x7fff) => {
self.wram_read8(offset & 0x1fff)
},
(0xa0 ..= 0xbf, 0x6000 ..= 0x7fff) => {
self.wram_read8(offset & 0x1fff)
},
(0x40 ..= 0x7d, _) => {
self.hirom_read8(bank, offset)
},
(0xc0 ..= 0xfd, _) => {
self.hirom_read8(bank, offset)
},
// normal ram read
(0x7e ..= 0x7f, _) => {
self.wram_read8(offset)
},
(0xfe ..= 0xff, _) => {
self.ws2_hirom_read8(bank, offset)
},
_ => panic!("Unmapped cartridge read {}:{}", bank, offset),
}
}
fn write8(&mut self, bank: u8, offset: u16, data: u8) {
match (bank, offset) {
(0x00 ..= 0x3f, 0x8000 ..= 0xffff) => panic!("Write to ROM {}:{}", bank, offset),
(0x40 ..= 0x7d, 0x0000 ..= 0xffff) => panic!("Write to ROM {}:{}", bank, offset),
(WRAM_BANK ..= WRAM_BANK_END, 0x0000 ..= 0xffff) => {
self.wram_write8(bank, offset, data)
},
(0x80 ..= 0xbf, 0x8000 ..= 0xffff) => panic!("Write to ROM {}:{}", bank, offset),
(0xc0 ..= 0xff, 0x0000 ..= 0xffff) => panic!("Write to ROM {}:{}", bank, offset),
_ => panic!("Unmapped cartridge write {}:{}", bank, offset),
}
}
fn read16(&self, bank: u8, offset: u16) -> u16 {
(self.read8(bank, offset + 1) << 8) as u16 | self.read8(bank, offset) as u16
}
fn write16(&mut self, bank: u8, offset: u16, data: u16) {
self.write8(bank, offset, (data & 0xFF) as u8);
self.write8(bank, offset + 1, (data >> 8) as u8);
}
}
impl fmt::Display for SnesCartridge {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f,
"
title: {}
rom_makeup: {:X}
chipset: {:X}
rom_size: {}
ram_size: {}
country: {:X}
: {:X}
rom_version: {}
checksum_complement: {:X}
checksum: {:X}",
self.title,
self.rom_makeup,
self.chipset,
self.rom_size,
self.ram_size,
self.country,
self.developer_id,
self.rom_version,
self.checksum_complement,
self.checksum)
}
}
|
use ggez::{
self,
graphics::{self, spritebatch::SpriteBatch, Rect},
};
use util;
pub struct SpriteDrawContext<'a> {
sprite: &'a mut Sprite,
comp: &'a (SpriteComponent + 'a),
}
impl<'a> graphics::Drawable for SpriteDrawContext<'a> {
fn draw_ex(&self, ctx: &mut ggez::Context, param: graphics::DrawParam) -> ggez::GameResult<()> {
let pos = self.comp.draw_sprite_at();
let mut param = param.clone();
param.dest.x += pos.x;
param.dest.y += pos.y;
self.sprite.sprite_batch.draw_ex(ctx, param)
}
fn set_blend_mode(&mut self, _mode: Option<graphics::BlendMode>) {}
fn get_blend_mode(&self) -> Option<graphics::BlendMode> {
None
}
}
#[derive(Debug)]
pub struct Sprite {
pub width: u32,
pub height: u32,
pub sprite_batch: SpriteBatch,
pub uvs: Vec<Rect>,
frame: usize,
}
impl Sprite {
pub fn new(image: graphics::Image, width: u32, height: u32) -> Self {
let uvs = util::generate_uvs(
image.width() as f32,
image.height() as f32,
width as f32,
height as f32,
);
Sprite {
width,
height,
sprite_batch: SpriteBatch::new(image),
uvs,
frame: 0,
}
}
pub fn frame(&self) -> usize {
self.frame
}
pub fn set_frame(&mut self, frame: usize) {
self.frame = frame;
self.sprite_batch.clear();
let mut param = graphics::DrawParam::default();
param.src = self.uvs[frame];
self.sprite_batch.add(param);
}
pub fn with_context<'a>(&'a mut self, comp: &'a SpriteComponent) -> SpriteDrawContext<'a> {
comp.setup_sprite(self);
SpriteDrawContext { sprite: self, comp }
}
}
impl graphics::Drawable for Sprite {
fn draw_ex(&self, ctx: &mut ggez::Context, param: graphics::DrawParam) -> ggez::GameResult<()> {
self.sprite_batch.draw_ex(ctx, param)
}
fn set_blend_mode(&mut self, _mode: Option<graphics::BlendMode>) {}
fn get_blend_mode(&self) -> Option<graphics::BlendMode> {
None
}
}
pub trait SpriteComponent {
fn setup_sprite(&self, sprite: &mut Sprite);
fn draw_sprite_at(&self) -> graphics::Point2;
}
|
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
use std::collections::HashMap;
use std::collections::HashSet;
use std::fs;
use std::io;
use std::os::unix::io::AsRawFd;
use std::path;
use std::sync::Arc;
use failure::{self, ResultExt};
use fuchsia_async::{self as fasync, DurationExt};
use fuchsia_component::client::connect_to_service;
use fuchsia_component::server::ServiceFs;
use fuchsia_syslog::{fx_log_err, fx_log_info};
use fuchsia_zircon::DurationNum;
use futures::lock::Mutex;
use futures::{future::try_join3, FutureExt, StreamExt, TryFutureExt, TryStreamExt};
use serde_derive::Deserialize;
mod dns_policy_service;
mod interface;
mod matchers;
mod observer_service;
#[derive(Debug, Deserialize)]
pub struct DnsConfig {
pub servers: Vec<std::net::IpAddr>,
}
#[derive(Debug, Deserialize)]
pub struct FilterConfig {
pub rules: Vec<String>,
pub nat_rules: Vec<String>,
pub rdr_rules: Vec<String>,
}
#[derive(Debug, PartialEq, Eq, Hash, Clone)]
enum InterfaceType {
UNKNOWN(String),
ETHERNET,
WLAN,
}
#[derive(Debug, Deserialize)]
struct Config {
pub dns_config: DnsConfig,
#[serde(deserialize_with = "matchers::InterfaceSpec::parse_as_tuples")]
pub rules: Vec<matchers::InterfaceSpec>,
pub filter_config: FilterConfig,
pub filter_enabled_interface_types: Vec<String>,
}
impl Config {
pub fn load<P: AsRef<path::Path>>(path: P) -> Result<Self, failure::Error> {
let path = path.as_ref();
let file = fs::File::open(path)
.with_context(|_| format!("could not open the config file {}", path.display()))?;
let config = serde_json::from_reader(io::BufReader::new(file)).with_context(|_| {
format!("could not deserialize the config file {}", path.display())
})?;
Ok(config)
}
}
// We use Compare-And-Swap (CAS) protocol to update filter rules. $get_rules returns the current
// generation number. $update_rules will send it with new rules to make sure we are updating the
// intended generation. If the generation number doesn't match, $update_rules will return a
// GenerationMismatch error, then we have to restart from $get_rules.
const FILTER_CAS_RETRY_MAX: i32 = 3;
const FILTER_CAS_RETRY_INTERVAL_MILLIS: i64 = 500;
macro_rules! cas_filter_rules {
($filter:ident, $get_rules:ident, $update_rules:ident, $rules:expr) => {
for retry in 0..FILTER_CAS_RETRY_MAX {
let (_, generation, status) = $filter.$get_rules().await?;
if status != fidl_fuchsia_net_filter::Status::Ok {
let () =
Err(failure::format_err!("{} failed: {:?}", stringify!($get_rules), status))?;
}
let status = $filter
.$update_rules(&mut $rules.iter_mut(), generation)
.await
.context("error getting response")?;
match status {
fidl_fuchsia_net_filter::Status::Ok => {
break;
}
fidl_fuchsia_net_filter::Status::ErrGenerationMismatch
if retry < FILTER_CAS_RETRY_MAX - 1 =>
{
fuchsia_async::Timer::new(
FILTER_CAS_RETRY_INTERVAL_MILLIS.millis().after_now(),
)
.await;
}
_ => {
let () = Err(failure::format_err!(
"{} failed: {:?}",
stringify!($update_rules),
status
))?;
}
}
}
};
}
impl From<String> for InterfaceType {
fn from(s: String) -> InterfaceType {
match s.as_ref() {
"ethernet" => InterfaceType::ETHERNET,
"wlan" => InterfaceType::WLAN,
_ => InterfaceType::UNKNOWN(s),
}
}
}
fn should_enable_filter(
filter_enabled_interface_types: &HashSet<InterfaceType>,
features: &fidl_fuchsia_hardware_ethernet_ext::EthernetFeatures,
) -> bool {
if features.contains(fidl_fuchsia_hardware_ethernet_ext::EthernetFeatures::LOOPBACK) {
false
} else if features.contains(fidl_fuchsia_hardware_ethernet_ext::EthernetFeatures::WLAN) {
filter_enabled_interface_types.contains(&InterfaceType::WLAN)
} else {
filter_enabled_interface_types.contains(&InterfaceType::ETHERNET)
}
}
fn main() -> Result<(), failure::Error> {
fuchsia_syslog::init_with_tags(&["netcfg"])?;
fx_log_info!("Started");
let Config {
dns_config: DnsConfig { servers },
rules: default_config_rules,
filter_config,
filter_enabled_interface_types,
} = Config::load("/config/data/default.json")?;
let parse_result: HashSet<InterfaceType> =
filter_enabled_interface_types.into_iter().map(Into::into).collect();
if parse_result.iter().any(|interface_type| match interface_type {
&InterfaceType::UNKNOWN(_) => true,
_ => false,
}) {
return Err(failure::format_err!(
"failed to parse filter_enabled_interface_types: {:?}",
parse_result
));
};
let filter_enabled_interface_types = parse_result;
let mut persisted_interface_config =
interface::FileBackedConfig::load(&"/data/net_interfaces.cfg.json")?;
let mut executor = fuchsia_async::Executor::new().context("could not create executor")?;
let stack = connect_to_service::<fidl_fuchsia_net_stack::StackMarker>()
.context("could not connect to stack")?;
let netstack = connect_to_service::<fidl_fuchsia_netstack::NetstackMarker>()
.context("could not connect to netstack")?;
let resolver_admin = connect_to_service::<fidl_fuchsia_netstack::ResolverAdminMarker>()
.context("could not connect to resolver admin")?;
let filter = connect_to_service::<fidl_fuchsia_net_filter::FilterMarker>()
.context("could not connect to filter")?;
let filter_setup = async {
if !filter_config.rules.is_empty() {
let mut rules = netfilter::parser::parse_str_to_rules(&filter_config.rules.join(""))
.map_err(|e| failure::format_err!("could not parse filter rules: {:?}", e))?;
cas_filter_rules!(filter, get_rules, update_rules, rules);
}
if !filter_config.nat_rules.is_empty() {
let mut nat_rules =
netfilter::parser::parse_str_to_nat_rules(&filter_config.nat_rules.join(""))
.map_err(|e| failure::format_err!("could not parse nat rules: {:?}", e))?;
cas_filter_rules!(filter, get_nat_rules, update_nat_rules, nat_rules);
}
if !filter_config.rdr_rules.is_empty() {
let mut rdr_rules =
netfilter::parser::parse_str_to_rdr_rules(&filter_config.rdr_rules.join(""))
.map_err(|e| failure::format_err!("could not parse nat rules: {:?}", e))?;
cas_filter_rules!(filter, get_rdr_rules, update_rdr_rules, rdr_rules);
}
Ok::<(), failure::Error>(())
};
let mut servers = servers
.into_iter()
.map(fidl_fuchsia_net_ext::IpAddress)
.map(Into::into)
.collect::<Vec<fidl_fuchsia_net::IpAddress>>();
let () = resolver_admin
.set_name_servers(&mut servers.iter_mut())
.context("could not set name servers")?;
// Interface metrics are used to sort the route table. An interface with a
// lower metric is favored over one with a higher metric.
// For now favor WLAN over Ethernet.
const INTF_METRIC_WLAN: u32 = 90;
const INTF_METRIC_ETH: u32 = 100;
const ETHDIR: &str = "/dev/class/ethernet";
let mut interface_ids = HashMap::new();
// TODO(chunyingw): Add the loopback interfaces through netcfg
// Remove the following hardcoded nic id 1.
interface_ids.insert("lo".to_owned(), 1);
let interface_ids = Arc::new(Mutex::new(interface_ids));
let ethdir = fs::File::open(ETHDIR).with_context(|_| format!("could not open {}", ETHDIR))?;
let ethernet_device = async {
let mut watcher = fuchsia_vfs_watcher::Watcher::new(ðdir)
.await
.with_context(|_| format!("could not watch {}", ETHDIR))?;
while let Some(fuchsia_vfs_watcher::WatchMessage { event, filename }) =
watcher.try_next().await.with_context(|_| format!("watching {}", ETHDIR))?
{
match event {
fuchsia_vfs_watcher::WatchEvent::ADD_FILE
| fuchsia_vfs_watcher::WatchEvent::EXISTING => {
let filepath = path::Path::new(ETHDIR).join(filename);
let device = fs::File::open(&filepath)
.with_context(|_| format!("could not open {}", filepath.display()))?;
let topological_path =
fdio::device_get_topo_path(&device).with_context(|_| {
format!("fdio::device_get_topo_path({})", filepath.display())
})?;
let device = device.as_raw_fd();
let mut client = 0;
// Safe because we're passing a valid fd.
let () = fuchsia_zircon::Status::ok(unsafe {
fdio::fdio_sys::fdio_get_service_handle(device, &mut client)
})
.with_context(|_| {
format!(
"fuchsia_zircon::sys::fdio_get_service_handle({})",
filepath.display()
)
})?;
// Safe because we checked the return status above.
let client = fuchsia_zircon::Channel::from(unsafe {
fuchsia_zircon::Handle::from_raw(client)
});
let device = fidl::endpoints::ClientEnd::<
fidl_fuchsia_hardware_ethernet::DeviceMarker,
>::new(client)
.into_proxy()?;
if let Ok(device_info) = device.get_info().await {
let device_info: fidl_fuchsia_hardware_ethernet_ext::EthernetInfo =
device_info.into();
if device_info.features.is_physical() {
let client = device
.into_channel()
.map_err(
|fidl_fuchsia_hardware_ethernet::DeviceProxy { .. }| {
failure::err_msg(
"failed to convert device proxy into channel",
)
},
)?
.into_zx_channel();
let name = persisted_interface_config.get_stable_name(
topological_path.clone(), /* TODO(tamird): we can probably do
* better with std::borrow::Cow. */
device_info.mac,
device_info.features.contains(
fidl_fuchsia_hardware_ethernet_ext::EthernetFeatures::WLAN,
),
)?;
// Hardcode the interface metric. Eventually this should
// be part of the config file.
let metric: u32 = match device_info.features.contains(
fidl_fuchsia_hardware_ethernet_ext::EthernetFeatures::WLAN,
) {
true => INTF_METRIC_WLAN,
false => INTF_METRIC_ETH,
};
let mut derived_interface_config = matchers::config_for_device(
&device_info,
name.to_string(),
&topological_path,
metric,
&default_config_rules,
&filepath,
);
let nic_id = netstack
.add_ethernet_device(
&topological_path,
&mut derived_interface_config,
fidl::endpoints::ClientEnd::<
fidl_fuchsia_hardware_ethernet::DeviceMarker,
>::new(client),
)
.await
.with_context(|_| {
format!(
"fidl_netstack::Netstack::add_ethernet_device({})",
filepath.display()
)
})?;
if should_enable_filter(
&filter_enabled_interface_types,
&device_info.features,
) {
fx_log_info!("enable filter for nic {}", nic_id);
let result = stack
.enable_packet_filter(nic_id as u64)
.await
.context("couldn't call enable_packet_filter")?;
let () = result.map_err(|e| {
failure::format_err!("failed to enable packet filter: {:?}", e)
})?;
} else {
fx_log_info!("disable filter for nic {}", nic_id);
let result = stack
.disable_packet_filter(nic_id as u64)
.await
.context("couldn't call disable_packet_filter")?;
let () = result.map_err(|e| {
failure::format_err!("failed to disable packet filter: {:?}", e)
})?;
};
match derived_interface_config.ip_address_config {
fidl_fuchsia_netstack::IpAddressConfig::Dhcp(_) => {
let (dhcp_client, server_end) =
fidl::endpoints::create_proxy::<
fidl_fuchsia_net_dhcp::ClientMarker,
>()
.context("dhcp client: failed to create fidl endpoints")?;
netstack
.get_dhcp_client(nic_id, server_end)
.await
.context("failed to call netstack.get_dhcp_client")?
.map_err(fuchsia_zircon::Status::from_raw)
.context("failed to get dhcp client")?;
dhcp_client
.start()
.map_ok(|result| match result {
Ok(()) => fidl_fuchsia_netstack::NetErr {
status: fidl_fuchsia_netstack::Status::Ok,
message: "".to_string(),
},
Err(status) => fidl_fuchsia_netstack::NetErr {
status: fidl_fuchsia_netstack::Status::UnknownError,
message: fuchsia_zircon::Status::from_raw(status)
.to_string(),
},
})
.await
.context("failed to start dhcp client")?
}
fidl_fuchsia_netstack::IpAddressConfig::StaticIp(
fidl_fuchsia_net::Subnet { addr: mut address, prefix_len },
) => {
netstack
.set_interface_address(
nic_id as u32,
&mut address,
prefix_len,
)
.await?
}
};
let () = netstack.set_interface_status(nic_id as u32, true)?;
// TODO(chunyingw): when netcfg switches to stack.add_ethernet_interface,
// remove casting nic_id to u64.
interface_ids
.lock()
.await
.insert(derived_interface_config.name, nic_id as u64);
}
}
}
fuchsia_vfs_watcher::WatchEvent::IDLE
| fuchsia_vfs_watcher::WatchEvent::REMOVE_FILE => {}
event => {
let () = Err(failure::format_err!("unknown WatchEvent {:?}", event))?;
}
}
}
Ok(())
};
let interface_ids = interface_ids.clone();
let mut fs = ServiceFs::new();
fs.dir("svc")
.add_fidl_service(move |stream| {
dns_policy_service::spawn_net_dns_fidl_server(resolver_admin.clone(), stream);
})
.add_fidl_service(|stream| {
fasync::spawn(
observer_service::serve_fidl_requests(stack.clone(), stream, interface_ids.clone())
.unwrap_or_else(|e| fx_log_err!("failed to serve_fidl_requests:{}", e)),
);
});
fs.take_and_serve_directory_handle()?;
let ((), (), ()) = executor.run_singlethreaded(try_join3(
filter_setup,
ethernet_device,
fs.collect().map(Ok),
))?;
Ok(())
}
#[cfg(test)]
mod tests {
use super::*;
use matchers::{ConfigOption, InterfaceMatcher, InterfaceSpec};
impl Config {
pub fn load_str(s: &str) -> Result<Self, failure::Error> {
let config = serde_json::from_str(s)
.with_context(|_| format!("could not deserialize the config data {}", s))?;
Ok(config)
}
}
#[test]
fn test_config() {
let config_str = r#"
{
"dns_config": {
"servers": ["8.8.8.8"]
},
"rules": [
[ ["all", "all"], ["ip_address", "dhcp"] ]
],
"filter_config": {
"rules": [],
"nat_rules": [],
"rdr_rules": []
},
"filter_enabled_interface_types": ["wlan"]
}
"#;
let Config {
dns_config: DnsConfig { servers },
rules: default_config_rules,
filter_config,
filter_enabled_interface_types,
} = Config::load_str(config_str).unwrap();
assert_eq!(vec!["8.8.8.8".parse::<std::net::IpAddr>().unwrap()], servers);
assert_eq!(
vec![InterfaceSpec {
matcher: InterfaceMatcher::All,
config: ConfigOption::IpConfig(fidl_fuchsia_netstack_ext::IpAddressConfig::Dhcp),
}],
default_config_rules
);
let FilterConfig { rules, nat_rules, rdr_rules } = filter_config;
assert_eq!(Vec::<String>::new(), rules);
assert_eq!(Vec::<String>::new(), nat_rules);
assert_eq!(Vec::<String>::new(), rdr_rules);
assert_eq!(vec!["wlan"], filter_enabled_interface_types);
}
#[test]
fn test_to_interface_type() {
assert_eq!(InterfaceType::ETHERNET, "ethernet".to_string().into());
assert_eq!(InterfaceType::WLAN, "wlan".to_string().into());
assert_eq!(InterfaceType::UNKNOWN("bluetooth".to_string()), "bluetooth".to_string().into());
assert_eq!(InterfaceType::UNKNOWN("Ethernet".to_string()), "Ethernet".to_string().into());
assert_eq!(InterfaceType::UNKNOWN("Wlan".to_string()), "Wlan".to_string().into());
}
#[test]
fn test_should_enable_filter() {
let types_empty: HashSet<InterfaceType> = [].iter().cloned().collect();
let types_ethernet: HashSet<InterfaceType> =
[InterfaceType::ETHERNET].iter().cloned().collect();
let types_wlan: HashSet<InterfaceType> = [InterfaceType::WLAN].iter().cloned().collect();
let types_ethernet_wlan: HashSet<InterfaceType> =
[InterfaceType::ETHERNET, InterfaceType::WLAN].iter().cloned().collect();
let features_wlan = fidl_fuchsia_hardware_ethernet_ext::EthernetFeatures::WLAN;
let features_loopback = fidl_fuchsia_hardware_ethernet_ext::EthernetFeatures::LOOPBACK;
let features_synthetic = fidl_fuchsia_hardware_ethernet_ext::EthernetFeatures::SYNTHETIC;
let features_empty = fidl_fuchsia_hardware_ethernet_ext::EthernetFeatures::empty();
assert_eq!(should_enable_filter(&types_empty, &features_empty), false);
assert_eq!(should_enable_filter(&types_empty, &features_wlan), false);
assert_eq!(should_enable_filter(&types_empty, &features_synthetic), false);
assert_eq!(should_enable_filter(&types_empty, &features_loopback), false);
assert_eq!(should_enable_filter(&types_ethernet, &features_empty), true);
assert_eq!(should_enable_filter(&types_ethernet, &features_wlan), false);
assert_eq!(should_enable_filter(&types_ethernet, &features_synthetic), true);
assert_eq!(should_enable_filter(&types_ethernet, &features_loopback), false);
assert_eq!(should_enable_filter(&types_wlan, &features_empty), false);
assert_eq!(should_enable_filter(&types_wlan, &features_wlan), true);
assert_eq!(should_enable_filter(&types_wlan, &features_synthetic), false);
assert_eq!(should_enable_filter(&types_wlan, &features_loopback), false);
assert_eq!(should_enable_filter(&types_ethernet_wlan, &features_empty), true);
assert_eq!(should_enable_filter(&types_ethernet_wlan, &features_wlan), true);
assert_eq!(should_enable_filter(&types_ethernet_wlan, &features_synthetic), true);
assert_eq!(should_enable_filter(&types_ethernet_wlan, &features_loopback), false);
}
}
|
//! The trait that should be implemented for every variant in the `Modes`
//! enum. These define what to do on each wlc callback.
//!
//! If any are left unspecified, they execute the `Default` operation.
use rustwlc::*;
use super::{Default};
/// Trait that defines callbacks that occur when in that mode.
///
/// NOTE That we copy out the current mode each time before these callbacks
/// are called, so that means it is *perfectly* safe to set the mode
/// from within these methods.
pub trait Mode {
fn output_created(&mut self, output: WlcOutput) -> bool {
Default.output_created(output)
}
fn output_destroyed(&mut self, output: WlcOutput) {
Default.output_destroyed(output)
}
fn output_focused(&mut self, output: WlcOutput, focused: bool) {
Default.output_focused(output, focused)
}
fn output_resolution(&mut self, output: WlcOutput,
old_size: Size, new_size: Size) {
Default.output_resolution(output, old_size, new_size)
}
fn output_render_post(&mut self, output: WlcOutput) {
Default.output_render_post(output)
}
fn view_moved_to_output(&mut self,
view: WlcView,
o1: WlcOutput,
o2: WlcOutput) {
Default.view_moved_to_output(view, o1, o2)
}
fn view_created(&mut self, view: WlcView) -> bool {
Default.view_created(view)
}
fn view_destroyed(&mut self, view: WlcView) {
Default.view_destroyed(view)
}
fn view_focused(&mut self, view: WlcView, focused: bool) {
Default.view_focused(view, focused)
}
fn view_props_changed(&mut self, view: WlcView, prop: ViewPropertyType) {
Default.view_props_changed(view, prop)
}
fn view_request_state(&mut self,
view: WlcView,
state: ViewState,
toggle: bool) {
Default.view_request_state(view, state, toggle)
}
fn view_request_geometry(&mut self, view: WlcView, geometry: Geometry) {
Default.view_request_geometry(view, geometry)
}
fn view_request_move(&mut self, view: WlcView, dest: Point) {
Default.view_request_move(view, dest)
}
fn view_request_resize(&mut self,
view: WlcView,
edge: ResizeEdge,
point: Point) {
Default.view_request_resize(view, edge, point)
}
fn view_pre_render(&mut self, view: WlcView) {
Default.view_pre_render(view)
}
fn on_keyboard_key(&mut self,
view: WlcView,
time: u32,
mods: KeyboardModifiers,
key: u32,
state: KeyState) -> bool {
Default.on_keyboard_key(view, time, mods, key, state)
}
fn on_pointer_button(&mut self,
view: WlcView,
time: u32,
mods: KeyboardModifiers,
button: u32,
state: ButtonState,
point: Point) -> bool {
Default.on_pointer_button(view, time, mods, button, state, point)
}
fn on_pointer_scroll(&mut self,
view: WlcView,
time: u32,
mods: KeyboardModifiers,
axis: ScrollAxis,
heights: [f64; 2]) -> bool {
Default.on_pointer_scroll(view, time, mods, axis, heights)
}
fn on_pointer_motion(&mut self,
view: WlcView,
time: u32,
x: f64,
y: f64) -> bool {
Default.on_pointer_motion(view, time, x, y)
}
}
|
// Exec
use num_derive::FromPrimitive;
#[derive(Encode, Decode, FromPrimitive, Debug, Clone, Copy)]
#[repr(u8)]
pub enum ExecMessageType {
CapsetReq = 0x00,
// TODO: ExecMessageType enum
}
|
extern crate surface;
extern crate netpbm;
use surface::{Surface, ColorRGBA};
use std::io::{self, Write};
static SAMPLE_IMAGE: &'static [u8] = include_bytes!("../sample_image2.ppm");
const IMAGE_WIDTH: usize = 896;
const IMAGE_HEIGHT: usize = 600;
const TAKE_PIXELS: usize = 1024 * 4 + 219;
fn write_out(
wr: &mut Write,
surf: &Surface,
) -> io::Result<()> {
try!(write!(wr, "P3 {} {} 255\n", surf.width(), surf.height()));
for y in 0..surf.height() {
for x in 0..surf.width() {
// println!("indexing x = {}, y = {}", x, y);
let pixel = surf[(x, y)];
try!(write!(wr, "{} {} {}\n", pixel.r, pixel.g, pixel.b));
}
}
Ok(())
}
fn main() {
let mut rdr = io::Cursor::new(SAMPLE_IMAGE);
let mut surf: Surface = netpbm::read_ppm(&mut rdr).unwrap();
write!(&mut io::stderr(), "{:?}, {:?}\n", surf.rect, surf.align_size);
for (idx, pixel) in surf.iter_pixels_mut().enumerate() {
if (idx / 1024) % 2 == 0 {
*pixel = ColorRGBA::new_rgb(0, 0, 0);
}
}
write_out(&mut io::stdout(), &surf).unwrap();
} |
pub trait Iterable<R> {
fn at(&self, uint) -> R;
fn at_sq(&self, uint, uint) -> R;
fn each(&self) -> ElemIterator<R>;
fn each_with_square(&self) -> ElemSquareIterator<R>;
fn each_with_row_col(&self) -> ElemRowColIterator<R>;
}
pub struct ElemIterator<'a, R> {
chess_board: &'a (Iterable<R> + 'a),
idx: uint
}
impl<'a, R> ElemIterator<'a, R> {
pub fn new(iterable: &Iterable<R>) -> ElemIterator<R> {
ElemIterator { idx:0u, chess_board:iterable }
}
}
impl<'a, R> Iterator<R> for ElemIterator<'a, R> {
fn next(&mut self) -> Option<R> {
if self.idx >= 64 {
None
} else {
let elem = self.chess_board.at(self.idx);
self.idx += 1;
Some(elem)
}
}
}
pub struct ElemSquareIterator<'a, R> {
chess_board: &'a (Iterable<R> + 'a),
idx: uint
}
impl<'a, R> ElemSquareIterator<'a, R> {
pub fn new(iterable: &Iterable<R>) -> ElemSquareIterator<R> {
ElemSquareIterator { idx:0u, chess_board:iterable }
}
}
impl<'a, R> Iterator<(uint, R)> for ElemSquareIterator<'a, R> {
fn next(&mut self) -> Option<(uint, R)> {
if self.idx >= 64 {
None
} else {
let elem = self.chess_board.at(self.idx);
let ret = (self.idx, elem);
self.idx += 1;
Some(ret)
}
}
}
pub struct ElemRowColIterator<'a, R> {
chess_board: &'a (Iterable<R> + 'a),
row: uint,
col: uint
}
impl<'a, R> ElemRowColIterator<'a, R> {
pub fn new(iterable: &Iterable<R>) -> ElemRowColIterator<R> {
ElemRowColIterator { row:7u, col:0u, chess_board:iterable }
}
}
impl<'a, R> Iterator<(uint, uint, R)> for ElemRowColIterator<'a, R> {
fn next(&mut self) -> Option<(uint, uint, R)> {
if self.col >= 8 {
None
} else {
let idx = (self.row << 3) | self.col;
let elem = self.chess_board.at(idx);
let ret = (self.row, self.col, elem);
self.col += 1;
if self.col >= 8 && self.row > 0 {
self.row -= 1;
self.col = 0;
}
Some(ret)
}
}
}
|
use crate::bounds::Bounds3;
use crate::interaction::Interaction;
use crate::interaction::SurfaceInteraction;
use crate::intersect::Intersect;
use crate::light::Light;
use crate::primitive::Primitive;
use crate::ray::Ray;
use crate::sampler::Sampler;
use crate::spectrum::Spectrum;
use crate::types::Float;
use std::rc::Rc;
pub struct Scene {
pub lights: Vec<Rc<Light>>,
pub infinite_lights: Vec<Rc<Light>>,
pub aggregate: Rc<Primitive>,
pub world_bound: Bounds3,
}
impl Scene {
pub fn intersect_tr<'ray, 'prim>(
&'prim self,
r: &mut Ray,
si: &'ray mut SurfaceInteraction<'prim>,
sampler: &Sampler,
transmittance: &mut Spectrum,
) -> bool {
transmittance.set_all(1.0);
loop {
let t_hit = self.intersect(r, si);
// TODO
// if let Some(medium) = r.medium {
// *transmittance *= medium.tr(r, sampler);
// }
if t_hit.is_none() {
return false;
}
if let Some(prim) = si.primitive {
if prim.get_material().is_none() {
return true;
}
}
*r = si.spawn_ray(r.direction);
}
}
}
impl Intersect for Scene {
fn intersect<'ray, 'prim>(
&'prim self,
r: &mut Ray,
si: &'ray mut SurfaceInteraction<'prim>,
) -> Option<Float> {
self.aggregate.intersect(r, si)
}
fn intersect_p(&self, r: &Ray) -> bool {
self.aggregate.intersect_p(r)
}
}
|
#[cfg(feature = "Win32_UI_Shell_Common")]
pub mod Common;
#[cfg(feature = "Win32_UI_Shell_PropertiesSystem")]
pub mod PropertiesSystem;
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn AssocCreate ( clsid : ::windows_sys::core::GUID , riid : *const ::windows_sys::core::GUID , ppv : *mut *mut ::core::ffi::c_void ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_System_Registry")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Registry\"`*"] fn AssocCreateForClasses ( rgclasses : *const ASSOCIATIONELEMENT , cclasses : u32 , riid : *const ::windows_sys::core::GUID , ppv : *mut *mut ::core::ffi::c_void ) -> ::windows_sys::core::HRESULT );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_Shell_PropertiesSystem"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_UI_Shell_Common\"`, `\"Win32_UI_Shell_PropertiesSystem\"`*"] fn AssocGetDetailsOfPropKey ( psf : IShellFolder , pidl : *const Common:: ITEMIDLIST , pkey : *const PropertiesSystem:: PROPERTYKEY , pv : *mut super::super::System::Com:: VARIANT , pffoundpropkey : *mut super::super::Foundation:: BOOL ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_UI_Shell_Common")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_Shell_Common\"`*"] fn AssocGetPerceivedType ( pszext : ::windows_sys::core::PCWSTR , ptype : *mut Common:: PERCEIVED , pflag : *mut u32 , ppsztype : *mut ::windows_sys::core::PWSTR ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn AssocIsDangerous ( pszassoc : ::windows_sys::core::PCWSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_System_Registry")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Registry\"`*"] fn AssocQueryKeyA ( flags : ASSOCF , key : ASSOCKEY , pszassoc : ::windows_sys::core::PCSTR , pszextra : ::windows_sys::core::PCSTR , phkeyout : *mut super::super::System::Registry:: HKEY ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_System_Registry")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Registry\"`*"] fn AssocQueryKeyW ( flags : ASSOCF , key : ASSOCKEY , pszassoc : ::windows_sys::core::PCWSTR , pszextra : ::windows_sys::core::PCWSTR , phkeyout : *mut super::super::System::Registry:: HKEY ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn AssocQueryStringA ( flags : ASSOCF , str : ASSOCSTR , pszassoc : ::windows_sys::core::PCSTR , pszextra : ::windows_sys::core::PCSTR , pszout : ::windows_sys::core::PSTR , pcchout : *mut u32 ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_System_Registry")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Registry\"`*"] fn AssocQueryStringByKeyA ( flags : ASSOCF , str : ASSOCSTR , hkassoc : super::super::System::Registry:: HKEY , pszextra : ::windows_sys::core::PCSTR , pszout : ::windows_sys::core::PSTR , pcchout : *mut u32 ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_System_Registry")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Registry\"`*"] fn AssocQueryStringByKeyW ( flags : ASSOCF , str : ASSOCSTR , hkassoc : super::super::System::Registry:: HKEY , pszextra : ::windows_sys::core::PCWSTR , pszout : ::windows_sys::core::PWSTR , pcchout : *mut u32 ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn AssocQueryStringW ( flags : ASSOCF , str : ASSOCSTR , pszassoc : ::windows_sys::core::PCWSTR , pszextra : ::windows_sys::core::PCWSTR , pszout : ::windows_sys::core::PWSTR , pcchout : *mut u32 ) -> ::windows_sys::core::HRESULT );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Registry", feature = "Win32_UI_Shell_Common"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Registry\"`, `\"Win32_UI_Shell_Common\"`*"] fn CDefFolderMenu_Create2 ( pidlfolder : *const Common:: ITEMIDLIST , hwnd : super::super::Foundation:: HWND , cidl : u32 , apidl : *const *const Common:: ITEMIDLIST , psf : IShellFolder , pfn : LPFNDFMCALLBACK , nkeys : u32 , ahkeys : *const super::super::System::Registry:: HKEY , ppcm : *mut IContextMenu ) -> ::windows_sys::core::HRESULT );
#[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`, `\"Win32_UI_Shell_Common\"`*"] fn CIDLData_CreateFromIDArray ( pidlfolder : *const Common:: ITEMIDLIST , cidl : u32 , apidl : *const *const Common:: ITEMIDLIST , ppdtobj : *mut super::super::System::Com:: IDataObject ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn ChrCmpIA ( w1 : u16 , w2 : u16 ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn ChrCmpIW ( w1 : u16 , w2 : u16 ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn ColorAdjustLuma ( clrrgb : super::super::Foundation:: COLORREF , n : i32 , fscale : super::super::Foundation:: BOOL ) -> super::super::Foundation:: COLORREF );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn ColorHLSToRGB ( whue : u16 , wluminance : u16 , wsaturation : u16 ) -> super::super::Foundation:: COLORREF );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn ColorRGBToHLS ( clrrgb : super::super::Foundation:: COLORREF , pwhue : *mut u16 , pwluminance : *mut u16 , pwsaturation : *mut u16 ) -> ( ) );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn CommandLineToArgvW ( lpcmdline : ::windows_sys::core::PCWSTR , pnumargs : *mut i32 ) -> *mut ::windows_sys::core::PWSTR );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] fn ConnectToConnectionPoint ( punk : ::windows_sys::core::IUnknown , riidevent : *const ::windows_sys::core::GUID , fconnect : super::super::Foundation:: BOOL , punktarget : ::windows_sys::core::IUnknown , pdwcookie : *mut u32 , ppcpout : *mut super::super::System::Com:: IConnectionPoint ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "userenv.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn CreateProfile ( pszusersid : ::windows_sys::core::PCWSTR , pszusername : ::windows_sys::core::PCWSTR , pszprofilepath : ::windows_sys::core::PWSTR , cchprofilepath : u32 ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn DAD_AutoScroll ( hwnd : super::super::Foundation:: HWND , pad : *mut AUTO_SCROLL_DATA , pptnow : *const super::super::Foundation:: POINT ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn DAD_DragEnterEx ( hwndtarget : super::super::Foundation:: HWND , ptstart : super::super::Foundation:: POINT ) -> super::super::Foundation:: BOOL );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] fn DAD_DragEnterEx2 ( hwndtarget : super::super::Foundation:: HWND , ptstart : super::super::Foundation:: POINT , pdtobject : super::super::System::Com:: IDataObject ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn DAD_DragLeave ( ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn DAD_DragMove ( pt : super::super::Foundation:: POINT ) -> super::super::Foundation:: BOOL );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_Controls\"`*"] fn DAD_SetDragImage ( him : super::Controls:: HIMAGELIST , pptoffset : *mut super::super::Foundation:: POINT ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn DAD_ShowDragImage ( fshow : super::super::Foundation:: BOOL ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "comctl32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn DefSubclassProc ( hwnd : super::super::Foundation:: HWND , umsg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "userenv.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn DeleteProfileA ( lpsidstring : ::windows_sys::core::PCSTR , lpprofilepath : ::windows_sys::core::PCSTR , lpcomputername : ::windows_sys::core::PCSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "userenv.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn DeleteProfileW ( lpsidstring : ::windows_sys::core::PCWSTR , lpprofilepath : ::windows_sys::core::PCWSTR , lpcomputername : ::windows_sys::core::PCWSTR ) -> super::super::Foundation:: BOOL );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn DoEnvironmentSubstA ( pszsrc : ::windows_sys::core::PSTR , cchsrc : u32 ) -> u32 );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn DoEnvironmentSubstW ( pszsrc : ::windows_sys::core::PWSTR , cchsrc : u32 ) -> u32 );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn DragAcceptFiles ( hwnd : super::super::Foundation:: HWND , faccept : super::super::Foundation:: BOOL ) -> ( ) );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn DragFinish ( hdrop : HDROP ) -> ( ) );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn DragQueryFileA ( hdrop : HDROP , ifile : u32 , lpszfile : ::windows_sys::core::PSTR , cch : u32 ) -> u32 );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn DragQueryFileW ( hdrop : HDROP , ifile : u32 , lpszfile : ::windows_sys::core::PWSTR , cch : u32 ) -> u32 );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn DragQueryPoint ( hdrop : HDROP , ppt : *mut super::super::Foundation:: POINT ) -> super::super::Foundation:: BOOL );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn DriveType ( idrive : i32 ) -> i32 );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] fn DuplicateIcon ( hinst : super::super::Foundation:: HMODULE , hicon : super::WindowsAndMessaging:: HICON ) -> super::WindowsAndMessaging:: HICON );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] fn ExtractAssociatedIconA ( hinst : super::super::Foundation:: HMODULE , psziconpath : ::windows_sys::core::PSTR , piicon : *mut u16 ) -> super::WindowsAndMessaging:: HICON );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] fn ExtractAssociatedIconExA ( hinst : super::super::Foundation:: HMODULE , psziconpath : ::windows_sys::core::PSTR , piiconindex : *mut u16 , piiconid : *mut u16 ) -> super::WindowsAndMessaging:: HICON );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] fn ExtractAssociatedIconExW ( hinst : super::super::Foundation:: HMODULE , psziconpath : ::windows_sys::core::PWSTR , piiconindex : *mut u16 , piiconid : *mut u16 ) -> super::WindowsAndMessaging:: HICON );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] fn ExtractAssociatedIconW ( hinst : super::super::Foundation:: HMODULE , psziconpath : ::windows_sys::core::PWSTR , piicon : *mut u16 ) -> super::WindowsAndMessaging:: HICON );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] fn ExtractIconA ( hinst : super::super::Foundation:: HMODULE , pszexefilename : ::windows_sys::core::PCSTR , niconindex : u32 ) -> super::WindowsAndMessaging:: HICON );
#[cfg(feature = "Win32_UI_WindowsAndMessaging")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] fn ExtractIconExA ( lpszfile : ::windows_sys::core::PCSTR , niconindex : i32 , phiconlarge : *mut super::WindowsAndMessaging:: HICON , phiconsmall : *mut super::WindowsAndMessaging:: HICON , nicons : u32 ) -> u32 );
#[cfg(feature = "Win32_UI_WindowsAndMessaging")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] fn ExtractIconExW ( lpszfile : ::windows_sys::core::PCWSTR , niconindex : i32 , phiconlarge : *mut super::WindowsAndMessaging:: HICON , phiconsmall : *mut super::WindowsAndMessaging:: HICON , nicons : u32 ) -> u32 );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] fn ExtractIconW ( hinst : super::super::Foundation:: HMODULE , pszexefilename : ::windows_sys::core::PCWSTR , niconindex : u32 ) -> super::WindowsAndMessaging:: HICON );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn FileIconInit ( frestorecache : super::super::Foundation:: BOOL ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn FindExecutableA ( lpfile : ::windows_sys::core::PCSTR , lpdirectory : ::windows_sys::core::PCSTR , lpresult : ::windows_sys::core::PSTR ) -> super::super::Foundation:: HMODULE );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn FindExecutableW ( lpfile : ::windows_sys::core::PCWSTR , lpdirectory : ::windows_sys::core::PCWSTR , lpresult : ::windows_sys::core::PWSTR ) -> super::super::Foundation:: HMODULE );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn GetAcceptLanguagesA ( pszlanguages : ::windows_sys::core::PSTR , pcchlanguages : *mut u32 ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn GetAcceptLanguagesW ( pszlanguages : ::windows_sys::core::PWSTR , pcchlanguages : *mut u32 ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "userenv.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn GetAllUsersProfileDirectoryA ( lpprofiledir : ::windows_sys::core::PSTR , lpcchsize : *mut u32 ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "userenv.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn GetAllUsersProfileDirectoryW ( lpprofiledir : ::windows_sys::core::PWSTR , lpcchsize : *mut u32 ) -> super::super::Foundation:: BOOL );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn GetCurrentProcessExplicitAppUserModelID ( appid : *mut ::windows_sys::core::PWSTR ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "userenv.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn GetDefaultUserProfileDirectoryA ( lpprofiledir : ::windows_sys::core::PSTR , lpcchsize : *mut u32 ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "userenv.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn GetDefaultUserProfileDirectoryW ( lpprofiledir : ::windows_sys::core::PWSTR , lpcchsize : *mut u32 ) -> super::super::Foundation:: BOOL );
::windows_targets::link ! ( "api-ms-win-shcore-scaling-l1-1-2.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn GetDpiForShellUIComponent ( param0 : SHELL_UI_COMPONENT ) -> u32 );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn GetFileNameFromBrowse ( hwnd : super::super::Foundation:: HWND , pszfilepath : ::windows_sys::core::PWSTR , cchfilepath : u32 , pszworkingdir : ::windows_sys::core::PCWSTR , pszdefext : ::windows_sys::core::PCWSTR , pszfilters : ::windows_sys::core::PCWSTR , psztitle : ::windows_sys::core::PCWSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_UI_WindowsAndMessaging")]
::windows_targets::link ! ( "user32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] fn GetMenuContextHelpId ( param0 : super::WindowsAndMessaging:: HMENU ) -> u32 );
#[cfg(feature = "Win32_UI_WindowsAndMessaging")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] fn GetMenuPosFromID ( hmenu : super::WindowsAndMessaging:: HMENU , id : u32 ) -> i32 );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "userenv.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn GetProfileType ( dwflags : *mut u32 ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "userenv.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn GetProfilesDirectoryA ( lpprofiledir : ::windows_sys::core::PSTR , lpcchsize : *mut u32 ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "userenv.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn GetProfilesDirectoryW ( lpprofiledir : ::windows_sys::core::PWSTR , lpcchsize : *mut u32 ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_UI_Shell_Common")]
::windows_targets::link ! ( "api-ms-win-shcore-scaling-l1-1-0.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_Shell_Common\"`*"] fn GetScaleFactorForDevice ( devicetype : DISPLAY_DEVICE_TYPE ) -> Common:: DEVICE_SCALE_FACTOR );
#[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_Shell_Common"))]
::windows_targets::link ! ( "api-ms-win-shcore-scaling-l1-1-1.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Graphics_Gdi\"`, `\"Win32_UI_Shell_Common\"`*"] fn GetScaleFactorForMonitor ( hmon : super::super::Graphics::Gdi:: HMONITOR , pscale : *mut Common:: DEVICE_SCALE_FACTOR ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "userenv.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn GetUserProfileDirectoryA ( htoken : super::super::Foundation:: HANDLE , lpprofiledir : ::windows_sys::core::PSTR , lpcchsize : *mut u32 ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "userenv.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn GetUserProfileDirectoryW ( htoken : super::super::Foundation:: HANDLE , lpprofiledir : ::windows_sys::core::PWSTR , lpcchsize : *mut u32 ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "user32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn GetWindowContextHelpId ( param0 : super::super::Foundation:: HWND ) -> u32 );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "comctl32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn GetWindowSubclass ( hwnd : super::super::Foundation:: HWND , pfnsubclass : SUBCLASSPROC , uidsubclass : usize , pdwrefdata : *mut usize ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Graphics_Gdi")]
::windows_targets::link ! ( "ole32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Graphics_Gdi\"`*"] fn HMONITOR_UserFree ( param0 : *const u32 , param1 : *const super::super::Graphics::Gdi:: HMONITOR ) -> ( ) );
#[cfg(feature = "Win32_Graphics_Gdi")]
::windows_targets::link ! ( "ole32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Graphics_Gdi\"`*"] fn HMONITOR_UserFree64 ( param0 : *const u32 , param1 : *const super::super::Graphics::Gdi:: HMONITOR ) -> ( ) );
#[cfg(feature = "Win32_Graphics_Gdi")]
::windows_targets::link ! ( "ole32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Graphics_Gdi\"`*"] fn HMONITOR_UserMarshal ( param0 : *const u32 , param1 : *mut u8 , param2 : *const super::super::Graphics::Gdi:: HMONITOR ) -> *mut u8 );
#[cfg(feature = "Win32_Graphics_Gdi")]
::windows_targets::link ! ( "ole32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Graphics_Gdi\"`*"] fn HMONITOR_UserMarshal64 ( param0 : *const u32 , param1 : *mut u8 , param2 : *const super::super::Graphics::Gdi:: HMONITOR ) -> *mut u8 );
#[cfg(feature = "Win32_Graphics_Gdi")]
::windows_targets::link ! ( "ole32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Graphics_Gdi\"`*"] fn HMONITOR_UserSize ( param0 : *const u32 , param1 : u32 , param2 : *const super::super::Graphics::Gdi:: HMONITOR ) -> u32 );
#[cfg(feature = "Win32_Graphics_Gdi")]
::windows_targets::link ! ( "ole32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Graphics_Gdi\"`*"] fn HMONITOR_UserSize64 ( param0 : *const u32 , param1 : u32 , param2 : *const super::super::Graphics::Gdi:: HMONITOR ) -> u32 );
#[cfg(feature = "Win32_Graphics_Gdi")]
::windows_targets::link ! ( "ole32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Graphics_Gdi\"`*"] fn HMONITOR_UserUnmarshal ( param0 : *const u32 , param1 : *const u8 , param2 : *mut super::super::Graphics::Gdi:: HMONITOR ) -> *mut u8 );
#[cfg(feature = "Win32_Graphics_Gdi")]
::windows_targets::link ! ( "ole32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Graphics_Gdi\"`*"] fn HMONITOR_UserUnmarshal64 ( param0 : *const u32 , param1 : *const u8 , param2 : *mut super::super::Graphics::Gdi:: HMONITOR ) -> *mut u8 );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn HashData ( pbdata : *const u8 , cbdata : u32 , pbhash : *mut u8 , cbhash : u32 ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "hlink.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn HlinkClone ( pihl : IHlink , riid : *const ::windows_sys::core::GUID , pihlsiteforclone : IHlinkSite , dwsitedata : u32 , ppvobj : *mut *mut ::core::ffi::c_void ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "hlink.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn HlinkCreateBrowseContext ( piunkouter : ::windows_sys::core::IUnknown , riid : *const ::windows_sys::core::GUID , ppvobj : *mut *mut ::core::ffi::c_void ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "hlink.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn HlinkCreateExtensionServices ( pwzadditionalheaders : ::windows_sys::core::PCWSTR , phwnd : super::super::Foundation:: HWND , pszusername : ::windows_sys::core::PCWSTR , pszpassword : ::windows_sys::core::PCWSTR , piunkouter : ::windows_sys::core::IUnknown , riid : *const ::windows_sys::core::GUID , ppvobj : *mut *mut ::core::ffi::c_void ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_System_Com")]
::windows_targets::link ! ( "hlink.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`*"] fn HlinkCreateFromData ( pidataobj : super::super::System::Com:: IDataObject , pihlsite : IHlinkSite , dwsitedata : u32 , piunkouter : ::windows_sys::core::IUnknown , riid : *const ::windows_sys::core::GUID , ppvobj : *mut *mut ::core::ffi::c_void ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_System_Com")]
::windows_targets::link ! ( "hlink.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`*"] fn HlinkCreateFromMoniker ( pimktrgt : super::super::System::Com:: IMoniker , pwzlocation : ::windows_sys::core::PCWSTR , pwzfriendlyname : ::windows_sys::core::PCWSTR , pihlsite : IHlinkSite , dwsitedata : u32 , piunkouter : ::windows_sys::core::IUnknown , riid : *const ::windows_sys::core::GUID , ppvobj : *mut *mut ::core::ffi::c_void ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "hlink.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn HlinkCreateFromString ( pwztarget : ::windows_sys::core::PCWSTR , pwzlocation : ::windows_sys::core::PCWSTR , pwzfriendlyname : ::windows_sys::core::PCWSTR , pihlsite : IHlinkSite , dwsitedata : u32 , piunkouter : ::windows_sys::core::IUnknown , riid : *const ::windows_sys::core::GUID , ppvobj : *mut *mut ::core::ffi::c_void ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "hlink.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn HlinkCreateShortcut ( grfhlshortcutf : u32 , pihl : IHlink , pwzdir : ::windows_sys::core::PCWSTR , pwzfilename : ::windows_sys::core::PCWSTR , ppwzshortcutfile : *mut ::windows_sys::core::PWSTR , dwreserved : u32 ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_System_Com")]
::windows_targets::link ! ( "hlink.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`*"] fn HlinkCreateShortcutFromMoniker ( grfhlshortcutf : u32 , pimktarget : super::super::System::Com:: IMoniker , pwzlocation : ::windows_sys::core::PCWSTR , pwzdir : ::windows_sys::core::PCWSTR , pwzfilename : ::windows_sys::core::PCWSTR , ppwzshortcutfile : *mut ::windows_sys::core::PWSTR , dwreserved : u32 ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "hlink.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn HlinkCreateShortcutFromString ( grfhlshortcutf : u32 , pwztarget : ::windows_sys::core::PCWSTR , pwzlocation : ::windows_sys::core::PCWSTR , pwzdir : ::windows_sys::core::PCWSTR , pwzfilename : ::windows_sys::core::PCWSTR , ppwzshortcutfile : *mut ::windows_sys::core::PWSTR , dwreserved : u32 ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "hlink.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn HlinkGetSpecialReference ( ureference : u32 , ppwzreference : *mut ::windows_sys::core::PWSTR ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "hlink.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn HlinkGetValueFromParams ( pwzparams : ::windows_sys::core::PCWSTR , pwzname : ::windows_sys::core::PCWSTR , ppwzvalue : *mut ::windows_sys::core::PWSTR ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "hlink.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn HlinkIsShortcut ( pwzfilename : ::windows_sys::core::PCWSTR ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_System_Com")]
::windows_targets::link ! ( "hlink.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`*"] fn HlinkNavigate ( pihl : IHlink , pihlframe : IHlinkFrame , grfhlnf : u32 , pbc : super::super::System::Com:: IBindCtx , pibsc : super::super::System::Com:: IBindStatusCallback , pihlbc : IHlinkBrowseContext ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_System_Com")]
::windows_targets::link ! ( "hlink.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`*"] fn HlinkNavigateToStringReference ( pwztarget : ::windows_sys::core::PCWSTR , pwzlocation : ::windows_sys::core::PCWSTR , pihlsite : IHlinkSite , dwsitedata : u32 , pihlframe : IHlinkFrame , grfhlnf : u32 , pibc : super::super::System::Com:: IBindCtx , pibsc : super::super::System::Com:: IBindStatusCallback , pihlbc : IHlinkBrowseContext ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_System_Com")]
::windows_targets::link ! ( "hlink.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`*"] fn HlinkOnNavigate ( pihlframe : IHlinkFrame , pihlbc : IHlinkBrowseContext , grfhlnf : u32 , pimktarget : super::super::System::Com:: IMoniker , pwzlocation : ::windows_sys::core::PCWSTR , pwzfriendlyname : ::windows_sys::core::PCWSTR , puhlid : *mut u32 ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_System_Com")]
::windows_targets::link ! ( "hlink.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`*"] fn HlinkOnRenameDocument ( dwreserved : u32 , pihlbc : IHlinkBrowseContext , pimkold : super::super::System::Com:: IMoniker , pimknew : super::super::System::Com:: IMoniker ) -> ::windows_sys::core::HRESULT );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))]
::windows_targets::link ! ( "hlink.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] fn HlinkParseDisplayName ( pibc : super::super::System::Com:: IBindCtx , pwzdisplayname : ::windows_sys::core::PCWSTR , fnoforceabs : super::super::Foundation:: BOOL , pccheaten : *mut u32 , ppimk : *mut super::super::System::Com:: IMoniker ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_System_Com")]
::windows_targets::link ! ( "hlink.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`*"] fn HlinkPreprocessMoniker ( pibc : super::super::System::Com:: IBindCtx , pimkin : super::super::System::Com:: IMoniker , ppimkout : *mut super::super::System::Com:: IMoniker ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_System_Com")]
::windows_targets::link ! ( "hlink.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`*"] fn HlinkQueryCreateFromData ( pidataobj : super::super::System::Com:: IDataObject ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_System_Com")]
::windows_targets::link ! ( "hlink.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`*"] fn HlinkResolveMonikerForData ( pimkreference : super::super::System::Com:: IMoniker , reserved : u32 , pibc : super::super::System::Com:: IBindCtx , cfmtetc : u32 , rgfmtetc : *mut super::super::System::Com:: FORMATETC , pibsc : super::super::System::Com:: IBindStatusCallback , pimkbase : super::super::System::Com:: IMoniker ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "hlink.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn HlinkResolveShortcut ( pwzshortcutfilename : ::windows_sys::core::PCWSTR , pihlsite : IHlinkSite , dwsitedata : u32 , piunkouter : ::windows_sys::core::IUnknown , riid : *const ::windows_sys::core::GUID , ppvobj : *mut *mut ::core::ffi::c_void ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_System_Com")]
::windows_targets::link ! ( "hlink.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`*"] fn HlinkResolveShortcutToMoniker ( pwzshortcutfilename : ::windows_sys::core::PCWSTR , ppimktarget : *mut super::super::System::Com:: IMoniker , ppwzlocation : *mut ::windows_sys::core::PWSTR ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "hlink.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn HlinkResolveShortcutToString ( pwzshortcutfilename : ::windows_sys::core::PCWSTR , ppwztarget : *mut ::windows_sys::core::PWSTR , ppwzlocation : *mut ::windows_sys::core::PWSTR ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_System_Com")]
::windows_targets::link ! ( "hlink.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`*"] fn HlinkResolveStringForData ( pwzreference : ::windows_sys::core::PCWSTR , reserved : u32 , pibc : super::super::System::Com:: IBindCtx , cfmtetc : u32 , rgfmtetc : *mut super::super::System::Com:: FORMATETC , pibsc : super::super::System::Com:: IBindStatusCallback , pimkbase : super::super::System::Com:: IMoniker ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "hlink.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn HlinkSetSpecialReference ( ureference : u32 , pwzreference : ::windows_sys::core::PCWSTR ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "hlink.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn HlinkTranslateURL ( pwzurl : ::windows_sys::core::PCWSTR , grfflags : u32 , ppwztranslatedurl : *mut ::windows_sys::core::PWSTR ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_System_Com")]
::windows_targets::link ! ( "hlink.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`*"] fn HlinkUpdateStackItem ( pihlframe : IHlinkFrame , pihlbc : IHlinkBrowseContext , uhlid : u32 , pimktrgt : super::super::System::Com:: IMoniker , pwzlocation : ::windows_sys::core::PCWSTR , pwzfriendlyname : ::windows_sys::core::PCWSTR ) -> ::windows_sys::core::HRESULT );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_Shell_Common\"`*"] fn ILAppendID ( pidl : *const Common:: ITEMIDLIST , pmkid : *const Common:: SHITEMID , fappend : super::super::Foundation:: BOOL ) -> *mut Common:: ITEMIDLIST );
#[cfg(feature = "Win32_UI_Shell_Common")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_Shell_Common\"`*"] fn ILClone ( pidl : *const Common:: ITEMIDLIST ) -> *mut Common:: ITEMIDLIST );
#[cfg(feature = "Win32_UI_Shell_Common")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_Shell_Common\"`*"] fn ILCloneFirst ( pidl : *const Common:: ITEMIDLIST ) -> *mut Common:: ITEMIDLIST );
#[cfg(feature = "Win32_UI_Shell_Common")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_Shell_Common\"`*"] fn ILCombine ( pidl1 : *const Common:: ITEMIDLIST , pidl2 : *const Common:: ITEMIDLIST ) -> *mut Common:: ITEMIDLIST );
#[cfg(feature = "Win32_UI_Shell_Common")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_Shell_Common\"`*"] fn ILCreateFromPathA ( pszpath : ::windows_sys::core::PCSTR ) -> *mut Common:: ITEMIDLIST );
#[cfg(feature = "Win32_UI_Shell_Common")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_Shell_Common\"`*"] fn ILCreateFromPathW ( pszpath : ::windows_sys::core::PCWSTR ) -> *mut Common:: ITEMIDLIST );
#[cfg(feature = "Win32_UI_Shell_Common")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_Shell_Common\"`*"] fn ILFindChild ( pidlparent : *const Common:: ITEMIDLIST , pidlchild : *const Common:: ITEMIDLIST ) -> *mut Common:: ITEMIDLIST );
#[cfg(feature = "Win32_UI_Shell_Common")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_Shell_Common\"`*"] fn ILFindLastID ( pidl : *const Common:: ITEMIDLIST ) -> *mut Common:: ITEMIDLIST );
#[cfg(feature = "Win32_UI_Shell_Common")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_Shell_Common\"`*"] fn ILFree ( pidl : *const Common:: ITEMIDLIST ) -> ( ) );
#[cfg(feature = "Win32_UI_Shell_Common")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_Shell_Common\"`*"] fn ILGetNext ( pidl : *const Common:: ITEMIDLIST ) -> *mut Common:: ITEMIDLIST );
#[cfg(feature = "Win32_UI_Shell_Common")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_Shell_Common\"`*"] fn ILGetSize ( pidl : *const Common:: ITEMIDLIST ) -> u32 );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_Shell_Common\"`*"] fn ILIsEqual ( pidl1 : *const Common:: ITEMIDLIST , pidl2 : *const Common:: ITEMIDLIST ) -> super::super::Foundation:: BOOL );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_Shell_Common\"`*"] fn ILIsParent ( pidl1 : *const Common:: ITEMIDLIST , pidl2 : *const Common:: ITEMIDLIST , fimmediate : super::super::Foundation:: BOOL ) -> super::super::Foundation:: BOOL );
#[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`, `\"Win32_UI_Shell_Common\"`*"] fn ILLoadFromStreamEx ( pstm : super::super::System::Com:: IStream , pidl : *mut *mut Common:: ITEMIDLIST ) -> ::windows_sys::core::HRESULT );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_Shell_Common\"`*"] fn ILRemoveLastID ( pidl : *mut Common:: ITEMIDLIST ) -> super::super::Foundation:: BOOL );
#[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`, `\"Win32_UI_Shell_Common\"`*"] fn ILSaveToStream ( pstm : super::super::System::Com:: IStream , pidl : *const Common:: ITEMIDLIST ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_System_Com")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`*"] fn IStream_Copy ( pstmfrom : super::super::System::Com:: IStream , pstmto : super::super::System::Com:: IStream , cb : u32 ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_System_Com")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`*"] fn IStream_Read ( pstm : super::super::System::Com:: IStream , pv : *mut ::core::ffi::c_void , cb : u32 ) -> ::windows_sys::core::HRESULT );
#[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`, `\"Win32_UI_Shell_Common\"`*"] fn IStream_ReadPidl ( pstm : super::super::System::Com:: IStream , ppidlout : *mut *mut Common:: ITEMIDLIST ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_System_Com")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`*"] fn IStream_ReadStr ( pstm : super::super::System::Com:: IStream , ppsz : *mut ::windows_sys::core::PWSTR ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_System_Com")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`*"] fn IStream_Reset ( pstm : super::super::System::Com:: IStream ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_System_Com")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`*"] fn IStream_Size ( pstm : super::super::System::Com:: IStream , pui : *mut u64 ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_System_Com")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`*"] fn IStream_Write ( pstm : super::super::System::Com:: IStream , pv : *const ::core::ffi::c_void , cb : u32 ) -> ::windows_sys::core::HRESULT );
#[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`, `\"Win32_UI_Shell_Common\"`*"] fn IStream_WritePidl ( pstm : super::super::System::Com:: IStream , pidlwrite : *const Common:: ITEMIDLIST ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_System_Com")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`*"] fn IStream_WriteStr ( pstm : super::super::System::Com:: IStream , psz : ::windows_sys::core::PCWSTR ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn IUnknown_AtomicRelease ( ppunk : *mut *mut ::core::ffi::c_void ) -> ( ) );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn IUnknown_GetSite ( punk : ::windows_sys::core::IUnknown , riid : *const ::windows_sys::core::GUID , ppv : *mut *mut ::core::ffi::c_void ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn IUnknown_GetWindow ( punk : ::windows_sys::core::IUnknown , phwnd : *mut super::super::Foundation:: HWND ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn IUnknown_QueryService ( punk : ::windows_sys::core::IUnknown , guidservice : *const ::windows_sys::core::GUID , riid : *const ::windows_sys::core::GUID , ppvout : *mut *mut ::core::ffi::c_void ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn IUnknown_Set ( ppunk : *mut ::windows_sys::core::IUnknown , punk : ::windows_sys::core::IUnknown ) -> ( ) );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn IUnknown_SetSite ( punk : ::windows_sys::core::IUnknown , punksite : ::windows_sys::core::IUnknown ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shdocvw.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn ImportPrivacySettings ( pszfilename : ::windows_sys::core::PCWSTR , pfparseprivacypreferences : *mut super::super::Foundation:: BOOL , pfparsepersiterules : *mut super::super::Foundation:: BOOL ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn InitNetworkAddressControl ( ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn IntlStrEqWorkerA ( fcasesens : super::super::Foundation:: BOOL , lpstring1 : ::windows_sys::core::PCSTR , lpstring2 : ::windows_sys::core::PCSTR , nchar : i32 ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn IntlStrEqWorkerW ( fcasesens : super::super::Foundation:: BOOL , lpstring1 : ::windows_sys::core::PCWSTR , lpstring2 : ::windows_sys::core::PCWSTR , nchar : i32 ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn IsCharSpaceA ( wch : u8 ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn IsCharSpaceW ( wch : u16 ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn IsInternetESCEnabled ( ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn IsLFNDriveA ( pszpath : ::windows_sys::core::PCSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn IsLFNDriveW ( pszpath : ::windows_sys::core::PCWSTR ) -> super::super::Foundation:: BOOL );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn IsNetDrive ( idrive : i32 ) -> i32 );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn IsOS ( dwos : OS ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn IsUserAnAdmin ( ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "userenv.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn LoadUserProfileA ( htoken : super::super::Foundation:: HANDLE , lpprofileinfo : *mut PROFILEINFOA ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "userenv.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn LoadUserProfileW ( htoken : super::super::Foundation:: HANDLE , lpprofileinfo : *mut PROFILEINFOW ) -> super::super::Foundation:: BOOL );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))]
::windows_targets::link ! ( "hlink.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] fn OleSaveToStreamEx ( piunk : ::windows_sys::core::IUnknown , pistm : super::super::System::Com:: IStream , fcleardirty : super::super::Foundation:: BOOL ) -> ::windows_sys::core::HRESULT );
#[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Registry"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`, `\"Win32_System_Registry\"`*"] fn OpenRegStream ( hkey : super::super::System::Registry:: HKEY , pszsubkey : ::windows_sys::core::PCWSTR , pszvalue : ::windows_sys::core::PCWSTR , grfmode : u32 ) -> super::super::System::Com:: IStream );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn ParseURLA ( pcszurl : ::windows_sys::core::PCSTR , ppu : *mut PARSEDURLA ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn ParseURLW ( pcszurl : ::windows_sys::core::PCWSTR , ppu : *mut PARSEDURLW ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathAddBackslashA ( pszpath : ::windows_sys::core::PSTR ) -> ::windows_sys::core::PSTR );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathAddBackslashW ( pszpath : ::windows_sys::core::PWSTR ) -> ::windows_sys::core::PWSTR );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathAddExtensionA ( pszpath : ::windows_sys::core::PSTR , pszext : ::windows_sys::core::PCSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathAddExtensionW ( pszpath : ::windows_sys::core::PWSTR , pszext : ::windows_sys::core::PCWSTR ) -> super::super::Foundation:: BOOL );
::windows_targets::link ! ( "api-ms-win-core-path-l1-1-0.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathAllocCanonicalize ( pszpathin : ::windows_sys::core::PCWSTR , dwflags : PATHCCH_OPTIONS , ppszpathout : *mut ::windows_sys::core::PWSTR ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "api-ms-win-core-path-l1-1-0.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathAllocCombine ( pszpathin : ::windows_sys::core::PCWSTR , pszmore : ::windows_sys::core::PCWSTR , dwflags : PATHCCH_OPTIONS , ppszpathout : *mut ::windows_sys::core::PWSTR ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathAppendA ( pszpath : ::windows_sys::core::PSTR , pszmore : ::windows_sys::core::PCSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathAppendW ( pszpath : ::windows_sys::core::PWSTR , pszmore : ::windows_sys::core::PCWSTR ) -> super::super::Foundation:: BOOL );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathBuildRootA ( pszroot : ::windows_sys::core::PSTR , idrive : i32 ) -> ::windows_sys::core::PSTR );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathBuildRootW ( pszroot : ::windows_sys::core::PWSTR , idrive : i32 ) -> ::windows_sys::core::PWSTR );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathCanonicalizeA ( pszbuf : ::windows_sys::core::PSTR , pszpath : ::windows_sys::core::PCSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathCanonicalizeW ( pszbuf : ::windows_sys::core::PWSTR , pszpath : ::windows_sys::core::PCWSTR ) -> super::super::Foundation:: BOOL );
::windows_targets::link ! ( "api-ms-win-core-path-l1-1-0.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathCchAddBackslash ( pszpath : ::windows_sys::core::PWSTR , cchpath : usize ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "api-ms-win-core-path-l1-1-0.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathCchAddBackslashEx ( pszpath : ::windows_sys::core::PWSTR , cchpath : usize , ppszend : *mut ::windows_sys::core::PWSTR , pcchremaining : *mut usize ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "api-ms-win-core-path-l1-1-0.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathCchAddExtension ( pszpath : ::windows_sys::core::PWSTR , cchpath : usize , pszext : ::windows_sys::core::PCWSTR ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "api-ms-win-core-path-l1-1-0.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathCchAppend ( pszpath : ::windows_sys::core::PWSTR , cchpath : usize , pszmore : ::windows_sys::core::PCWSTR ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "api-ms-win-core-path-l1-1-0.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathCchAppendEx ( pszpath : ::windows_sys::core::PWSTR , cchpath : usize , pszmore : ::windows_sys::core::PCWSTR , dwflags : PATHCCH_OPTIONS ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "api-ms-win-core-path-l1-1-0.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathCchCanonicalize ( pszpathout : ::windows_sys::core::PWSTR , cchpathout : usize , pszpathin : ::windows_sys::core::PCWSTR ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "api-ms-win-core-path-l1-1-0.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathCchCanonicalizeEx ( pszpathout : ::windows_sys::core::PWSTR , cchpathout : usize , pszpathin : ::windows_sys::core::PCWSTR , dwflags : PATHCCH_OPTIONS ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "api-ms-win-core-path-l1-1-0.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathCchCombine ( pszpathout : ::windows_sys::core::PWSTR , cchpathout : usize , pszpathin : ::windows_sys::core::PCWSTR , pszmore : ::windows_sys::core::PCWSTR ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "api-ms-win-core-path-l1-1-0.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathCchCombineEx ( pszpathout : ::windows_sys::core::PWSTR , cchpathout : usize , pszpathin : ::windows_sys::core::PCWSTR , pszmore : ::windows_sys::core::PCWSTR , dwflags : PATHCCH_OPTIONS ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "api-ms-win-core-path-l1-1-0.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathCchFindExtension ( pszpath : ::windows_sys::core::PCWSTR , cchpath : usize , ppszext : *mut ::windows_sys::core::PCWSTR ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "api-ms-win-core-path-l1-1-0.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathCchIsRoot ( pszpath : ::windows_sys::core::PCWSTR ) -> super::super::Foundation:: BOOL );
::windows_targets::link ! ( "api-ms-win-core-path-l1-1-0.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathCchRemoveBackslash ( pszpath : ::windows_sys::core::PWSTR , cchpath : usize ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "api-ms-win-core-path-l1-1-0.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathCchRemoveBackslashEx ( pszpath : ::windows_sys::core::PWSTR , cchpath : usize , ppszend : *mut ::windows_sys::core::PWSTR , pcchremaining : *mut usize ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "api-ms-win-core-path-l1-1-0.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathCchRemoveExtension ( pszpath : ::windows_sys::core::PWSTR , cchpath : usize ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "api-ms-win-core-path-l1-1-0.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathCchRemoveFileSpec ( pszpath : ::windows_sys::core::PWSTR , cchpath : usize ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "api-ms-win-core-path-l1-1-0.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathCchRenameExtension ( pszpath : ::windows_sys::core::PWSTR , cchpath : usize , pszext : ::windows_sys::core::PCWSTR ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "api-ms-win-core-path-l1-1-0.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathCchSkipRoot ( pszpath : ::windows_sys::core::PCWSTR , ppszrootend : *mut ::windows_sys::core::PCWSTR ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "api-ms-win-core-path-l1-1-0.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathCchStripPrefix ( pszpath : ::windows_sys::core::PWSTR , cchpath : usize ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "api-ms-win-core-path-l1-1-0.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathCchStripToRoot ( pszpath : ::windows_sys::core::PWSTR , cchpath : usize ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathCleanupSpec ( pszdir : ::windows_sys::core::PCWSTR , pszspec : ::windows_sys::core::PWSTR ) -> PCS_RET );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathCombineA ( pszdest : ::windows_sys::core::PSTR , pszdir : ::windows_sys::core::PCSTR , pszfile : ::windows_sys::core::PCSTR ) -> ::windows_sys::core::PSTR );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathCombineW ( pszdest : ::windows_sys::core::PWSTR , pszdir : ::windows_sys::core::PCWSTR , pszfile : ::windows_sys::core::PCWSTR ) -> ::windows_sys::core::PWSTR );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathCommonPrefixA ( pszfile1 : ::windows_sys::core::PCSTR , pszfile2 : ::windows_sys::core::PCSTR , achpath : ::windows_sys::core::PSTR ) -> i32 );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathCommonPrefixW ( pszfile1 : ::windows_sys::core::PCWSTR , pszfile2 : ::windows_sys::core::PCWSTR , achpath : ::windows_sys::core::PWSTR ) -> i32 );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] fn PathCompactPathA ( hdc : super::super::Graphics::Gdi:: HDC , pszpath : ::windows_sys::core::PSTR , dx : u32 ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathCompactPathExA ( pszout : ::windows_sys::core::PSTR , pszsrc : ::windows_sys::core::PCSTR , cchmax : u32 , dwflags : u32 ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathCompactPathExW ( pszout : ::windows_sys::core::PWSTR , pszsrc : ::windows_sys::core::PCWSTR , cchmax : u32 , dwflags : u32 ) -> super::super::Foundation:: BOOL );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] fn PathCompactPathW ( hdc : super::super::Graphics::Gdi:: HDC , pszpath : ::windows_sys::core::PWSTR , dx : u32 ) -> super::super::Foundation:: BOOL );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathCreateFromUrlA ( pszurl : ::windows_sys::core::PCSTR , pszpath : ::windows_sys::core::PSTR , pcchpath : *mut u32 , dwflags : u32 ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathCreateFromUrlAlloc ( pszin : ::windows_sys::core::PCWSTR , ppszout : *mut ::windows_sys::core::PWSTR , dwflags : u32 ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathCreateFromUrlW ( pszurl : ::windows_sys::core::PCWSTR , pszpath : ::windows_sys::core::PWSTR , pcchpath : *mut u32 , dwflags : u32 ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathFileExistsA ( pszpath : ::windows_sys::core::PCSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathFileExistsW ( pszpath : ::windows_sys::core::PCWSTR ) -> super::super::Foundation:: BOOL );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathFindExtensionA ( pszpath : ::windows_sys::core::PCSTR ) -> ::windows_sys::core::PSTR );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathFindExtensionW ( pszpath : ::windows_sys::core::PCWSTR ) -> ::windows_sys::core::PWSTR );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathFindFileNameA ( pszpath : ::windows_sys::core::PCSTR ) -> ::windows_sys::core::PSTR );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathFindFileNameW ( pszpath : ::windows_sys::core::PCWSTR ) -> ::windows_sys::core::PWSTR );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathFindNextComponentA ( pszpath : ::windows_sys::core::PCSTR ) -> ::windows_sys::core::PSTR );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathFindNextComponentW ( pszpath : ::windows_sys::core::PCWSTR ) -> ::windows_sys::core::PWSTR );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathFindOnPathA ( pszpath : ::windows_sys::core::PSTR , ppszotherdirs : *const *const i8 ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathFindOnPathW ( pszpath : ::windows_sys::core::PWSTR , ppszotherdirs : *const *const u16 ) -> super::super::Foundation:: BOOL );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathFindSuffixArrayA ( pszpath : ::windows_sys::core::PCSTR , apszsuffix : *const ::windows_sys::core::PCSTR , iarraysize : i32 ) -> ::windows_sys::core::PCSTR );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathFindSuffixArrayW ( pszpath : ::windows_sys::core::PCWSTR , apszsuffix : *const ::windows_sys::core::PCWSTR , iarraysize : i32 ) -> ::windows_sys::core::PCWSTR );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathGetArgsA ( pszpath : ::windows_sys::core::PCSTR ) -> ::windows_sys::core::PSTR );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathGetArgsW ( pszpath : ::windows_sys::core::PCWSTR ) -> ::windows_sys::core::PWSTR );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathGetCharTypeA ( ch : u8 ) -> u32 );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathGetCharTypeW ( ch : u16 ) -> u32 );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathGetDriveNumberA ( pszpath : ::windows_sys::core::PCSTR ) -> i32 );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathGetDriveNumberW ( pszpath : ::windows_sys::core::PCWSTR ) -> i32 );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathGetShortPath ( pszlongpath : ::windows_sys::core::PWSTR ) -> ( ) );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathIsContentTypeA ( pszpath : ::windows_sys::core::PCSTR , pszcontenttype : ::windows_sys::core::PCSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathIsContentTypeW ( pszpath : ::windows_sys::core::PCWSTR , pszcontenttype : ::windows_sys::core::PCWSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathIsDirectoryA ( pszpath : ::windows_sys::core::PCSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathIsDirectoryEmptyA ( pszpath : ::windows_sys::core::PCSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathIsDirectoryEmptyW ( pszpath : ::windows_sys::core::PCWSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathIsDirectoryW ( pszpath : ::windows_sys::core::PCWSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathIsExe ( pszpath : ::windows_sys::core::PCWSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathIsFileSpecA ( pszpath : ::windows_sys::core::PCSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathIsFileSpecW ( pszpath : ::windows_sys::core::PCWSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathIsLFNFileSpecA ( pszname : ::windows_sys::core::PCSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathIsLFNFileSpecW ( pszname : ::windows_sys::core::PCWSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathIsNetworkPathA ( pszpath : ::windows_sys::core::PCSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathIsNetworkPathW ( pszpath : ::windows_sys::core::PCWSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathIsPrefixA ( pszprefix : ::windows_sys::core::PCSTR , pszpath : ::windows_sys::core::PCSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathIsPrefixW ( pszprefix : ::windows_sys::core::PCWSTR , pszpath : ::windows_sys::core::PCWSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathIsRelativeA ( pszpath : ::windows_sys::core::PCSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathIsRelativeW ( pszpath : ::windows_sys::core::PCWSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathIsRootA ( pszpath : ::windows_sys::core::PCSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathIsRootW ( pszpath : ::windows_sys::core::PCWSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathIsSameRootA ( pszpath1 : ::windows_sys::core::PCSTR , pszpath2 : ::windows_sys::core::PCSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathIsSameRootW ( pszpath1 : ::windows_sys::core::PCWSTR , pszpath2 : ::windows_sys::core::PCWSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathIsSlowA ( pszfile : ::windows_sys::core::PCSTR , dwattr : u32 ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathIsSlowW ( pszfile : ::windows_sys::core::PCWSTR , dwattr : u32 ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathIsSystemFolderA ( pszpath : ::windows_sys::core::PCSTR , dwattrb : u32 ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathIsSystemFolderW ( pszpath : ::windows_sys::core::PCWSTR , dwattrb : u32 ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathIsUNCA ( pszpath : ::windows_sys::core::PCSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "api-ms-win-core-path-l1-1-0.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathIsUNCEx ( pszpath : ::windows_sys::core::PCWSTR , ppszserver : *mut ::windows_sys::core::PCWSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathIsUNCServerA ( pszpath : ::windows_sys::core::PCSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathIsUNCServerShareA ( pszpath : ::windows_sys::core::PCSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathIsUNCServerShareW ( pszpath : ::windows_sys::core::PCWSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathIsUNCServerW ( pszpath : ::windows_sys::core::PCWSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathIsUNCW ( pszpath : ::windows_sys::core::PCWSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathIsURLA ( pszpath : ::windows_sys::core::PCSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathIsURLW ( pszpath : ::windows_sys::core::PCWSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathMakePrettyA ( pszpath : ::windows_sys::core::PSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathMakePrettyW ( pszpath : ::windows_sys::core::PWSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathMakeSystemFolderA ( pszpath : ::windows_sys::core::PCSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathMakeSystemFolderW ( pszpath : ::windows_sys::core::PCWSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathMakeUniqueName ( pszuniquename : ::windows_sys::core::PWSTR , cchmax : u32 , psztemplate : ::windows_sys::core::PCWSTR , pszlongplate : ::windows_sys::core::PCWSTR , pszdir : ::windows_sys::core::PCWSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathMatchSpecA ( pszfile : ::windows_sys::core::PCSTR , pszspec : ::windows_sys::core::PCSTR ) -> super::super::Foundation:: BOOL );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathMatchSpecExA ( pszfile : ::windows_sys::core::PCSTR , pszspec : ::windows_sys::core::PCSTR , dwflags : u32 ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathMatchSpecExW ( pszfile : ::windows_sys::core::PCWSTR , pszspec : ::windows_sys::core::PCWSTR , dwflags : u32 ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathMatchSpecW ( pszfile : ::windows_sys::core::PCWSTR , pszspec : ::windows_sys::core::PCWSTR ) -> super::super::Foundation:: BOOL );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathParseIconLocationA ( psziconfile : ::windows_sys::core::PSTR ) -> i32 );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathParseIconLocationW ( psziconfile : ::windows_sys::core::PWSTR ) -> i32 );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathQualify ( psz : ::windows_sys::core::PWSTR ) -> ( ) );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathQuoteSpacesA ( lpsz : ::windows_sys::core::PSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathQuoteSpacesW ( lpsz : ::windows_sys::core::PWSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathRelativePathToA ( pszpath : ::windows_sys::core::PSTR , pszfrom : ::windows_sys::core::PCSTR , dwattrfrom : u32 , pszto : ::windows_sys::core::PCSTR , dwattrto : u32 ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathRelativePathToW ( pszpath : ::windows_sys::core::PWSTR , pszfrom : ::windows_sys::core::PCWSTR , dwattrfrom : u32 , pszto : ::windows_sys::core::PCWSTR , dwattrto : u32 ) -> super::super::Foundation:: BOOL );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathRemoveArgsA ( pszpath : ::windows_sys::core::PSTR ) -> ( ) );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathRemoveArgsW ( pszpath : ::windows_sys::core::PWSTR ) -> ( ) );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathRemoveBackslashA ( pszpath : ::windows_sys::core::PSTR ) -> ::windows_sys::core::PSTR );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathRemoveBackslashW ( pszpath : ::windows_sys::core::PWSTR ) -> ::windows_sys::core::PWSTR );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathRemoveBlanksA ( pszpath : ::windows_sys::core::PSTR ) -> ( ) );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathRemoveBlanksW ( pszpath : ::windows_sys::core::PWSTR ) -> ( ) );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathRemoveExtensionA ( pszpath : ::windows_sys::core::PSTR ) -> ( ) );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathRemoveExtensionW ( pszpath : ::windows_sys::core::PWSTR ) -> ( ) );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathRemoveFileSpecA ( pszpath : ::windows_sys::core::PSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathRemoveFileSpecW ( pszpath : ::windows_sys::core::PWSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathRenameExtensionA ( pszpath : ::windows_sys::core::PSTR , pszext : ::windows_sys::core::PCSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathRenameExtensionW ( pszpath : ::windows_sys::core::PWSTR , pszext : ::windows_sys::core::PCWSTR ) -> super::super::Foundation:: BOOL );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathResolve ( pszpath : ::windows_sys::core::PWSTR , dirs : *const *const u16 , fflags : PRF_FLAGS ) -> i32 );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathSearchAndQualifyA ( pszpath : ::windows_sys::core::PCSTR , pszbuf : ::windows_sys::core::PSTR , cchbuf : u32 ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathSearchAndQualifyW ( pszpath : ::windows_sys::core::PCWSTR , pszbuf : ::windows_sys::core::PWSTR , cchbuf : u32 ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathSetDlgItemPathA ( hdlg : super::super::Foundation:: HWND , id : i32 , pszpath : ::windows_sys::core::PCSTR ) -> ( ) );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathSetDlgItemPathW ( hdlg : super::super::Foundation:: HWND , id : i32 , pszpath : ::windows_sys::core::PCWSTR ) -> ( ) );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathSkipRootA ( pszpath : ::windows_sys::core::PCSTR ) -> ::windows_sys::core::PSTR );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathSkipRootW ( pszpath : ::windows_sys::core::PCWSTR ) -> ::windows_sys::core::PWSTR );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathStripPathA ( pszpath : ::windows_sys::core::PSTR ) -> ( ) );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathStripPathW ( pszpath : ::windows_sys::core::PWSTR ) -> ( ) );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathStripToRootA ( pszpath : ::windows_sys::core::PSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathStripToRootW ( pszpath : ::windows_sys::core::PWSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathUnExpandEnvStringsA ( pszpath : ::windows_sys::core::PCSTR , pszbuf : ::windows_sys::core::PSTR , cchbuf : u32 ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathUnExpandEnvStringsW ( pszpath : ::windows_sys::core::PCWSTR , pszbuf : ::windows_sys::core::PWSTR , cchbuf : u32 ) -> super::super::Foundation:: BOOL );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathUndecorateA ( pszpath : ::windows_sys::core::PSTR ) -> ( ) );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn PathUndecorateW ( pszpath : ::windows_sys::core::PWSTR ) -> ( ) );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathUnmakeSystemFolderA ( pszpath : ::windows_sys::core::PCSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathUnmakeSystemFolderW ( pszpath : ::windows_sys::core::PCWSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathUnquoteSpacesA ( lpsz : ::windows_sys::core::PSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathUnquoteSpacesW ( lpsz : ::windows_sys::core::PWSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PathYetAnotherMakeUniqueName ( pszuniquename : ::windows_sys::core::PWSTR , pszpath : ::windows_sys::core::PCWSTR , pszshort : ::windows_sys::core::PCWSTR , pszfilespec : ::windows_sys::core::PCWSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn PickIconDlg ( hwnd : super::super::Foundation:: HWND , psziconpath : ::windows_sys::core::PWSTR , cchiconpath : u32 , piiconindex : *mut i32 ) -> i32 );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn QISearch ( that : *mut ::core::ffi::c_void , pqit : *const QITAB , riid : *const ::windows_sys::core::GUID , ppv : *mut *mut ::core::ffi::c_void ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn ReadCabinetState ( pcs : *mut CABINETSTATE , clength : i32 ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn RealDriveType ( idrive : i32 , foktohitnet : super::super::Foundation:: BOOL ) -> i32 );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "api-ms-win-core-psm-appnotify-l1-1-1.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn RegisterAppConstrainedChangeNotification ( routine : PAPPCONSTRAIN_CHANGE_ROUTINE , context : *const ::core::ffi::c_void , registration : *mut *mut _APPCONSTRAIN_REGISTRATION ) -> u32 );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "api-ms-win-core-psm-appnotify-l1-1-0.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn RegisterAppStateChangeNotification ( routine : PAPPSTATE_CHANGE_ROUTINE , context : *const ::core::ffi::c_void , registration : *mut *mut _APPSTATE_REGISTRATION ) -> u32 );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "api-ms-win-shcore-scaling-l1-1-1.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn RegisterScaleChangeEvent ( hevent : super::super::Foundation:: HANDLE , pdwcookie : *mut usize ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "api-ms-win-shcore-scaling-l1-1-0.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn RegisterScaleChangeNotifications ( displaydevice : DISPLAY_DEVICE_TYPE , hwndnotify : super::super::Foundation:: HWND , umsgnotify : u32 , pdwcookie : *mut u32 ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "comctl32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn RemoveWindowSubclass ( hwnd : super::super::Foundation:: HWND , pfnsubclass : SUBCLASSPROC , uidsubclass : usize ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn RestartDialog ( hwnd : super::super::Foundation:: HWND , pszprompt : ::windows_sys::core::PCWSTR , dwreturn : u32 ) -> i32 );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn RestartDialogEx ( hwnd : super::super::Foundation:: HWND , pszprompt : ::windows_sys::core::PCWSTR , dwreturn : u32 , dwreasoncode : u32 ) -> i32 );
::windows_targets::link ! ( "api-ms-win-shcore-scaling-l1-1-0.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn RevokeScaleChangeNotifications ( displaydevice : DISPLAY_DEVICE_TYPE , dwcookie : u32 ) -> ::windows_sys::core::HRESULT );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_Controls\"`*"] fn SHAddFromPropSheetExtArray ( hpsxa : HPSXA , lpfnaddpage : super::Controls:: LPFNSVADDPROPSHEETPAGE , lparam : super::super::Foundation:: LPARAM ) -> u32 );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHAddToRecentDocs ( uflags : u32 , pv : *const ::core::ffi::c_void ) -> ( ) );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHAlloc ( cb : usize ) -> *mut ::core::ffi::c_void );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHAllocShared ( pvdata : *const ::core::ffi::c_void , dwsize : u32 , dwprocessid : u32 ) -> super::super::Foundation:: HANDLE );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHAnsiToAnsi ( pszsrc : ::windows_sys::core::PCSTR , pszdst : ::windows_sys::core::PSTR , cchbuf : i32 ) -> i32 );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHAnsiToUnicode ( pszsrc : ::windows_sys::core::PCSTR , pwszdst : ::windows_sys::core::PWSTR , cwchbuf : i32 ) -> i32 );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHAppBarMessage ( dwmessage : u32 , pdata : *mut APPBARDATA ) -> usize );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHAssocEnumHandlers ( pszextra : ::windows_sys::core::PCWSTR , affilter : ASSOC_FILTER , ppenumhandler : *mut IEnumAssocHandlers ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHAssocEnumHandlersForProtocolByApplication ( protocol : ::windows_sys::core::PCWSTR , riid : *const ::windows_sys::core::GUID , enumhandlers : *mut *mut ::core::ffi::c_void ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHAutoComplete ( hwndedit : super::super::Foundation:: HWND , dwflags : SHELL_AUTOCOMPLETE_FLAGS ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_UI_Shell_Common")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_Shell_Common\"`*"] fn SHBindToFolderIDListParent ( psfroot : IShellFolder , pidl : *const Common:: ITEMIDLIST , riid : *const ::windows_sys::core::GUID , ppv : *mut *mut ::core::ffi::c_void , ppidllast : *mut *mut Common:: ITEMIDLIST ) -> ::windows_sys::core::HRESULT );
#[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`, `\"Win32_UI_Shell_Common\"`*"] fn SHBindToFolderIDListParentEx ( psfroot : IShellFolder , pidl : *const Common:: ITEMIDLIST , ppbc : super::super::System::Com:: IBindCtx , riid : *const ::windows_sys::core::GUID , ppv : *mut *mut ::core::ffi::c_void , ppidllast : *mut *mut Common:: ITEMIDLIST ) -> ::windows_sys::core::HRESULT );
#[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`, `\"Win32_UI_Shell_Common\"`*"] fn SHBindToObject ( psf : IShellFolder , pidl : *const Common:: ITEMIDLIST , pbc : super::super::System::Com:: IBindCtx , riid : *const ::windows_sys::core::GUID , ppv : *mut *mut ::core::ffi::c_void ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_UI_Shell_Common")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_Shell_Common\"`*"] fn SHBindToParent ( pidl : *const Common:: ITEMIDLIST , riid : *const ::windows_sys::core::GUID , ppv : *mut *mut ::core::ffi::c_void , ppidllast : *mut *mut Common:: ITEMIDLIST ) -> ::windows_sys::core::HRESULT );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_Shell_Common\"`*"] fn SHBrowseForFolderA ( lpbi : *const BROWSEINFOA ) -> *mut Common:: ITEMIDLIST );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_Shell_Common\"`*"] fn SHBrowseForFolderW ( lpbi : *const BROWSEINFOW ) -> *mut Common:: ITEMIDLIST );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHCLSIDFromString ( psz : ::windows_sys::core::PCWSTR , pclsid : *mut ::windows_sys::core::GUID ) -> ::windows_sys::core::HRESULT );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_Shell_Common\"`*"] fn SHChangeNotification_Lock ( hchange : super::super::Foundation:: HANDLE , dwprocid : u32 , pppidl : *mut *mut *mut Common:: ITEMIDLIST , plevent : *mut i32 ) -> ShFindChangeNotificationHandle );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHChangeNotification_Unlock ( hlock : super::super::Foundation:: HANDLE ) -> super::super::Foundation:: BOOL );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHChangeNotify ( weventid : SHCNE_ID , uflags : SHCNF_FLAGS , dwitem1 : *const ::core::ffi::c_void , dwitem2 : *const ::core::ffi::c_void ) -> ( ) );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHChangeNotifyDeregister ( ulid : u32 ) -> super::super::Foundation:: BOOL );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_Shell_Common\"`*"] fn SHChangeNotifyRegister ( hwnd : super::super::Foundation:: HWND , fsources : SHCNRF_SOURCE , fevents : i32 , wmsg : u32 , centries : i32 , pshcne : *const SHChangeNotifyEntry ) -> u32 );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHChangeNotifyRegisterThread ( status : SCNRT_STATUS ) -> ( ) );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_Shell_Common\"`*"] fn SHCloneSpecialIDList ( hwnd : super::super::Foundation:: HWND , csidl : i32 , fcreate : super::super::Foundation:: BOOL ) -> *mut Common:: ITEMIDLIST );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHCoCreateInstance ( pszclsid : ::windows_sys::core::PCWSTR , pclsid : *const ::windows_sys::core::GUID , punkouter : ::windows_sys::core::IUnknown , riid : *const ::windows_sys::core::GUID , ppv : *mut *mut ::core::ffi::c_void ) -> ::windows_sys::core::HRESULT );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`*"] fn SHCopyKeyA ( hkeysrc : super::super::System::Registry:: HKEY , pszsrcsubkey : ::windows_sys::core::PCSTR , hkeydest : super::super::System::Registry:: HKEY , freserved : u32 ) -> super::super::Foundation:: WIN32_ERROR );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`*"] fn SHCopyKeyW ( hkeysrc : super::super::System::Registry:: HKEY , pszsrcsubkey : ::windows_sys::core::PCWSTR , hkeydest : super::super::System::Registry:: HKEY , freserved : u32 ) -> super::super::Foundation:: WIN32_ERROR );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHCreateAssociationRegistration ( riid : *const ::windows_sys::core::GUID , ppv : *mut *mut ::core::ffi::c_void ) -> ::windows_sys::core::HRESULT );
#[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`, `\"Win32_UI_Shell_Common\"`*"] fn SHCreateDataObject ( pidlfolder : *const Common:: ITEMIDLIST , cidl : u32 , apidl : *const *const Common:: ITEMIDLIST , pdtinner : super::super::System::Com:: IDataObject , riid : *const ::windows_sys::core::GUID , ppv : *mut *mut ::core::ffi::c_void ) -> ::windows_sys::core::HRESULT );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry", feature = "Win32_UI_Shell_Common"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`, `\"Win32_UI_Shell_Common\"`*"] fn SHCreateDefaultContextMenu ( pdcm : *const DEFCONTEXTMENU , riid : *const ::windows_sys::core::GUID , ppv : *mut *mut ::core::ffi::c_void ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHCreateDefaultExtractIcon ( riid : *const ::windows_sys::core::GUID , ppv : *mut *mut ::core::ffi::c_void ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHCreateDefaultPropertiesOp ( psi : IShellItem , ppfileop : *mut IFileOperation ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHCreateDirectory ( hwnd : super::super::Foundation:: HWND , pszpath : ::windows_sys::core::PCWSTR ) -> i32 );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn SHCreateDirectoryExA ( hwnd : super::super::Foundation:: HWND , pszpath : ::windows_sys::core::PCSTR , psa : *const super::super::Security:: SECURITY_ATTRIBUTES ) -> i32 );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn SHCreateDirectoryExW ( hwnd : super::super::Foundation:: HWND , pszpath : ::windows_sys::core::PCWSTR , psa : *const super::super::Security:: SECURITY_ATTRIBUTES ) -> i32 );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHCreateFileExtractIconW ( pszfile : ::windows_sys::core::PCWSTR , dwfileattributes : u32 , riid : *const ::windows_sys::core::GUID , ppv : *mut *mut ::core::ffi::c_void ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_UI_Shell_Common")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_Shell_Common\"`*"] fn SHCreateItemFromIDList ( pidl : *const Common:: ITEMIDLIST , riid : *const ::windows_sys::core::GUID , ppv : *mut *mut ::core::ffi::c_void ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_System_Com")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`*"] fn SHCreateItemFromParsingName ( pszpath : ::windows_sys::core::PCWSTR , pbc : super::super::System::Com:: IBindCtx , riid : *const ::windows_sys::core::GUID , ppv : *mut *mut ::core::ffi::c_void ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_System_Com")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`*"] fn SHCreateItemFromRelativeName ( psiparent : IShellItem , pszname : ::windows_sys::core::PCWSTR , pbc : super::super::System::Com:: IBindCtx , riid : *const ::windows_sys::core::GUID , ppv : *mut *mut ::core::ffi::c_void ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHCreateItemInKnownFolder ( kfid : *const ::windows_sys::core::GUID , dwkfflags : u32 , pszitem : ::windows_sys::core::PCWSTR , riid : *const ::windows_sys::core::GUID , ppv : *mut *mut ::core::ffi::c_void ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_UI_Shell_Common")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_Shell_Common\"`*"] fn SHCreateItemWithParent ( pidlparent : *const Common:: ITEMIDLIST , psfparent : IShellFolder , pidl : *const Common:: ITEMIDLIST , riid : *const ::windows_sys::core::GUID , ppvitem : *mut *mut ::core::ffi::c_void ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_System_Com")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`*"] fn SHCreateMemStream ( pinit : *const u8 , cbinit : u32 ) -> super::super::System::Com:: IStream );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security", feature = "Win32_System_Threading"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`, `\"Win32_System_Threading\"`*"] fn SHCreateProcessAsUserW ( pscpi : *mut SHCREATEPROCESSINFOW ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_System_Registry")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Registry\"`*"] fn SHCreatePropSheetExtArray ( hkey : super::super::System::Registry:: HKEY , pszsubkey : ::windows_sys::core::PCWSTR , max_iface : u32 ) -> HPSXA );
#[cfg(feature = "Win32_System_Com")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`*"] fn SHCreateQueryCancelAutoPlayMoniker ( ppmoniker : *mut super::super::System::Com:: IMoniker ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_System_Ole")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Ole\"`*"] fn SHCreateShellFolderView ( pcsfv : *const SFV_CREATE , ppsv : *mut IShellView ) -> ::windows_sys::core::HRESULT );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Ole\"`, `\"Win32_UI_Shell_Common\"`*"] fn SHCreateShellFolderViewEx ( pcsfv : *const CSFV , ppsv : *mut IShellView ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_UI_Shell_Common")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_Shell_Common\"`*"] fn SHCreateShellItem ( pidlparent : *const Common:: ITEMIDLIST , psfparent : IShellFolder , pidl : *const Common:: ITEMIDLIST , ppsi : *mut IShellItem ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_UI_Shell_Common")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_Shell_Common\"`*"] fn SHCreateShellItemArray ( pidlparent : *const Common:: ITEMIDLIST , psf : IShellFolder , cidl : u32 , ppidl : *const *const Common:: ITEMIDLIST , ppsiitemarray : *mut IShellItemArray ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_System_Com")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`*"] fn SHCreateShellItemArrayFromDataObject ( pdo : super::super::System::Com:: IDataObject , riid : *const ::windows_sys::core::GUID , ppv : *mut *mut ::core::ffi::c_void ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_UI_Shell_Common")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_Shell_Common\"`*"] fn SHCreateShellItemArrayFromIDLists ( cidl : u32 , rgpidl : *const *const Common:: ITEMIDLIST , ppsiitemarray : *mut IShellItemArray ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHCreateShellItemArrayFromShellItem ( psi : IShellItem , riid : *const ::windows_sys::core::GUID , ppv : *mut *mut ::core::ffi::c_void ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_Graphics_Gdi")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Graphics_Gdi\"`*"] fn SHCreateShellPalette ( hdc : super::super::Graphics::Gdi:: HDC ) -> super::super::Graphics::Gdi:: HPALETTE );
#[cfg(feature = "Win32_System_Com")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`*"] fn SHCreateStdEnumFmtEtc ( cfmt : u32 , afmt : *const super::super::System::Com:: FORMATETC , ppenumformatetc : *mut super::super::System::Com:: IEnumFORMATETC ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_System_Com")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`*"] fn SHCreateStreamOnFileA ( pszfile : ::windows_sys::core::PCSTR , grfmode : u32 , ppstm : *mut super::super::System::Com:: IStream ) -> ::windows_sys::core::HRESULT );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] fn SHCreateStreamOnFileEx ( pszfile : ::windows_sys::core::PCWSTR , grfmode : u32 , dwattributes : u32 , fcreate : super::super::Foundation:: BOOL , pstmtemplate : super::super::System::Com:: IStream , ppstm : *mut super::super::System::Com:: IStream ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_System_Com")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`*"] fn SHCreateStreamOnFileW ( pszfile : ::windows_sys::core::PCWSTR , grfmode : u32 , ppstm : *mut super::super::System::Com:: IStream ) -> ::windows_sys::core::HRESULT );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Threading"))]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Threading\"`*"] fn SHCreateThread ( pfnthreadproc : super::super::System::Threading:: LPTHREAD_START_ROUTINE , pdata : *const ::core::ffi::c_void , flags : u32 , pfncallback : super::super::System::Threading:: LPTHREAD_START_ROUTINE ) -> super::super::Foundation:: BOOL );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHCreateThreadRef ( pcref : *mut i32 , ppunk : *mut ::windows_sys::core::IUnknown ) -> ::windows_sys::core::HRESULT );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Threading"))]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Threading\"`*"] fn SHCreateThreadWithHandle ( pfnthreadproc : super::super::System::Threading:: LPTHREAD_START_ROUTINE , pdata : *const ::core::ffi::c_void , flags : u32 , pfncallback : super::super::System::Threading:: LPTHREAD_START_ROUTINE , phandle : *mut super::super::Foundation:: HANDLE ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_UI_WindowsAndMessaging")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] fn SHDefExtractIconA ( psziconfile : ::windows_sys::core::PCSTR , iindex : i32 , uflags : u32 , phiconlarge : *mut super::WindowsAndMessaging:: HICON , phiconsmall : *mut super::WindowsAndMessaging:: HICON , niconsize : u32 ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_UI_WindowsAndMessaging")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] fn SHDefExtractIconW ( psziconfile : ::windows_sys::core::PCWSTR , iindex : i32 , uflags : u32 , phiconlarge : *mut super::WindowsAndMessaging:: HICON , phiconsmall : *mut super::WindowsAndMessaging:: HICON , niconsize : u32 ) -> ::windows_sys::core::HRESULT );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`*"] fn SHDeleteEmptyKeyA ( hkey : super::super::System::Registry:: HKEY , pszsubkey : ::windows_sys::core::PCSTR ) -> super::super::Foundation:: WIN32_ERROR );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`*"] fn SHDeleteEmptyKeyW ( hkey : super::super::System::Registry:: HKEY , pszsubkey : ::windows_sys::core::PCWSTR ) -> super::super::Foundation:: WIN32_ERROR );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`*"] fn SHDeleteKeyA ( hkey : super::super::System::Registry:: HKEY , pszsubkey : ::windows_sys::core::PCSTR ) -> super::super::Foundation:: WIN32_ERROR );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`*"] fn SHDeleteKeyW ( hkey : super::super::System::Registry:: HKEY , pszsubkey : ::windows_sys::core::PCWSTR ) -> super::super::Foundation:: WIN32_ERROR );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`*"] fn SHDeleteValueA ( hkey : super::super::System::Registry:: HKEY , pszsubkey : ::windows_sys::core::PCSTR , pszvalue : ::windows_sys::core::PCSTR ) -> super::super::Foundation:: WIN32_ERROR );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`*"] fn SHDeleteValueW ( hkey : super::super::System::Registry:: HKEY , pszsubkey : ::windows_sys::core::PCWSTR , pszvalue : ::windows_sys::core::PCWSTR ) -> super::super::Foundation:: WIN32_ERROR );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHDestroyPropSheetExtArray ( hpsxa : HPSXA ) -> ( ) );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] fn SHDoDragDrop ( hwnd : super::super::Foundation:: HWND , pdata : super::super::System::Com:: IDataObject , pdsrc : super::super::System::Ole:: IDropSource , dweffect : super::super::System::Ole:: DROPEFFECT , pdweffect : *mut super::super::System::Ole:: DROPEFFECT ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHEmptyRecycleBinA ( hwnd : super::super::Foundation:: HWND , pszrootpath : ::windows_sys::core::PCSTR , dwflags : u32 ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHEmptyRecycleBinW ( hwnd : super::super::Foundation:: HWND , pszrootpath : ::windows_sys::core::PCWSTR , dwflags : u32 ) -> ::windows_sys::core::HRESULT );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`*"] fn SHEnumKeyExA ( hkey : super::super::System::Registry:: HKEY , dwindex : u32 , pszname : ::windows_sys::core::PSTR , pcchname : *mut u32 ) -> super::super::Foundation:: WIN32_ERROR );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`*"] fn SHEnumKeyExW ( hkey : super::super::System::Registry:: HKEY , dwindex : u32 , pszname : ::windows_sys::core::PWSTR , pcchname : *mut u32 ) -> super::super::Foundation:: WIN32_ERROR );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`*"] fn SHEnumValueA ( hkey : super::super::System::Registry:: HKEY , dwindex : u32 , pszvaluename : ::windows_sys::core::PSTR , pcchvaluename : *mut u32 , pdwtype : *mut u32 , pvdata : *mut ::core::ffi::c_void , pcbdata : *mut u32 ) -> super::super::Foundation:: WIN32_ERROR );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`*"] fn SHEnumValueW ( hkey : super::super::System::Registry:: HKEY , dwindex : u32 , pszvaluename : ::windows_sys::core::PWSTR , pcchvaluename : *mut u32 , pdwtype : *mut u32 , pvdata : *mut ::core::ffi::c_void , pcbdata : *mut u32 ) -> super::super::Foundation:: WIN32_ERROR );
#[cfg(feature = "Win32_System_Registry")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Registry\"`*"] fn SHEnumerateUnreadMailAccountsW ( hkeyuser : super::super::System::Registry:: HKEY , dwindex : u32 , pszmailaddress : ::windows_sys::core::PWSTR , cchmailaddress : i32 ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHEvaluateSystemCommandTemplate ( pszcmdtemplate : ::windows_sys::core::PCWSTR , ppszapplication : *mut ::windows_sys::core::PWSTR , ppszcommandline : *mut ::windows_sys::core::PWSTR , ppszparameters : *mut ::windows_sys::core::PWSTR ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHFileOperationA ( lpfileop : *mut SHFILEOPSTRUCTA ) -> i32 );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHFileOperationW ( lpfileop : *mut SHFILEOPSTRUCTW ) -> i32 );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_Shell_Common\"`*"] fn SHFindFiles ( pidlfolder : *const Common:: ITEMIDLIST , pidlsavefile : *const Common:: ITEMIDLIST ) -> super::super::Foundation:: BOOL );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] fn SHFind_InitMenuPopup ( hmenu : super::WindowsAndMessaging:: HMENU , hwndowner : super::super::Foundation:: HWND , idcmdfirst : u32 , idcmdlast : u32 ) -> IContextMenu );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHFlushSFCache ( ) -> ( ) );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHFormatDateTimeA ( pft : *const super::super::Foundation:: FILETIME , pdwflags : *mut u32 , pszbuf : ::windows_sys::core::PSTR , cchbuf : u32 ) -> i32 );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHFormatDateTimeW ( pft : *const super::super::Foundation:: FILETIME , pdwflags : *mut u32 , pszbuf : ::windows_sys::core::PWSTR , cchbuf : u32 ) -> i32 );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHFormatDrive ( hwnd : super::super::Foundation:: HWND , drive : u32 , fmtid : SHFMT_ID , options : SHFMT_OPT ) -> u32 );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHFree ( pv : *const ::core::ffi::c_void ) -> ( ) );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHFreeNameMappings ( hnamemappings : super::super::Foundation:: HANDLE ) -> ( ) );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHFreeShared ( hdata : super::super::Foundation:: HANDLE , dwprocessid : u32 ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_System_Com")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`*"] fn SHGetAttributesFromDataObject ( pdo : super::super::System::Com:: IDataObject , dwattributemask : u32 , pdwattributes : *mut u32 , pcitems : *mut u32 ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_UI_Shell_Common")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_Shell_Common\"`*"] fn SHGetDataFromIDListA ( psf : IShellFolder , pidl : *const Common:: ITEMIDLIST , nformat : SHGDFIL_FORMAT , pv : *mut ::core::ffi::c_void , cb : i32 ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_UI_Shell_Common")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_Shell_Common\"`*"] fn SHGetDataFromIDListW ( psf : IShellFolder , pidl : *const Common:: ITEMIDLIST , nformat : SHGDFIL_FORMAT , pv : *mut ::core::ffi::c_void , cb : i32 ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHGetDesktopFolder ( ppshf : *mut IShellFolder ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHGetDiskFreeSpaceExA ( pszdirectoryname : ::windows_sys::core::PCSTR , pulfreebytesavailabletocaller : *mut u64 , pultotalnumberofbytes : *mut u64 , pultotalnumberoffreebytes : *mut u64 ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHGetDiskFreeSpaceExW ( pszdirectoryname : ::windows_sys::core::PCWSTR , pulfreebytesavailabletocaller : *mut u64 , pultotalnumberofbytes : *mut u64 , pultotalnumberoffreebytes : *mut u64 ) -> super::super::Foundation:: BOOL );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHGetDriveMedia ( pszdrive : ::windows_sys::core::PCWSTR , pdwmediacontent : *mut u32 ) -> ::windows_sys::core::HRESULT );
#[cfg(all(feature = "Win32_Storage_FileSystem", feature = "Win32_UI_WindowsAndMessaging"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Storage_FileSystem\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] fn SHGetFileInfoA ( pszpath : ::windows_sys::core::PCSTR , dwfileattributes : super::super::Storage::FileSystem:: FILE_FLAGS_AND_ATTRIBUTES , psfi : *mut SHFILEINFOA , cbfileinfo : u32 , uflags : SHGFI_FLAGS ) -> usize );
#[cfg(all(feature = "Win32_Storage_FileSystem", feature = "Win32_UI_WindowsAndMessaging"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Storage_FileSystem\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] fn SHGetFileInfoW ( pszpath : ::windows_sys::core::PCWSTR , dwfileattributes : super::super::Storage::FileSystem:: FILE_FLAGS_AND_ATTRIBUTES , psfi : *mut SHFILEINFOW , cbfileinfo : u32 , uflags : SHGFI_FLAGS ) -> usize );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_Shell_Common\"`*"] fn SHGetFolderLocation ( hwnd : super::super::Foundation:: HWND , csidl : i32 , htoken : super::super::Foundation:: HANDLE , dwflags : u32 , ppidl : *mut *mut Common:: ITEMIDLIST ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHGetFolderPathA ( hwnd : super::super::Foundation:: HWND , csidl : i32 , htoken : super::super::Foundation:: HANDLE , dwflags : u32 , pszpath : ::windows_sys::core::PSTR ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHGetFolderPathAndSubDirA ( hwnd : super::super::Foundation:: HWND , csidl : i32 , htoken : super::super::Foundation:: HANDLE , dwflags : u32 , pszsubdir : ::windows_sys::core::PCSTR , pszpath : ::windows_sys::core::PSTR ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHGetFolderPathAndSubDirW ( hwnd : super::super::Foundation:: HWND , csidl : i32 , htoken : super::super::Foundation:: HANDLE , dwflags : u32 , pszsubdir : ::windows_sys::core::PCWSTR , pszpath : ::windows_sys::core::PWSTR ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHGetFolderPathW ( hwnd : super::super::Foundation:: HWND , csidl : i32 , htoken : super::super::Foundation:: HANDLE , dwflags : u32 , pszpath : ::windows_sys::core::PWSTR ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_UI_Shell_Common")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_Shell_Common\"`*"] fn SHGetIDListFromObject ( punk : ::windows_sys::core::IUnknown , ppidl : *mut *mut Common:: ITEMIDLIST ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHGetIconOverlayIndexA ( psziconpath : ::windows_sys::core::PCSTR , iiconindex : i32 ) -> i32 );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHGetIconOverlayIndexW ( psziconpath : ::windows_sys::core::PCWSTR , iiconindex : i32 ) -> i32 );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHGetImageList ( iimagelist : i32 , riid : *const ::windows_sys::core::GUID , ppvobj : *mut *mut ::core::ffi::c_void ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHGetInstanceExplorer ( ppunk : *mut ::windows_sys::core::IUnknown ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHGetInverseCMAP ( pbmap : *mut u8 , cbmap : u32 ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_System_Com")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`*"] fn SHGetItemFromDataObject ( pdtobj : super::super::System::Com:: IDataObject , dwflags : DATAOBJ_GET_ITEM_FLAGS , riid : *const ::windows_sys::core::GUID , ppv : *mut *mut ::core::ffi::c_void ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHGetItemFromObject ( punk : ::windows_sys::core::IUnknown , riid : *const ::windows_sys::core::GUID , ppv : *mut *mut ::core::ffi::c_void ) -> ::windows_sys::core::HRESULT );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_Shell_Common\"`*"] fn SHGetKnownFolderIDList ( rfid : *const ::windows_sys::core::GUID , dwflags : u32 , htoken : super::super::Foundation:: HANDLE , ppidl : *mut *mut Common:: ITEMIDLIST ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHGetKnownFolderItem ( rfid : *const ::windows_sys::core::GUID , flags : KNOWN_FOLDER_FLAG , htoken : super::super::Foundation:: HANDLE , riid : *const ::windows_sys::core::GUID , ppv : *mut *mut ::core::ffi::c_void ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHGetKnownFolderPath ( rfid : *const ::windows_sys::core::GUID , dwflags : KNOWN_FOLDER_FLAG , htoken : super::super::Foundation:: HANDLE , ppszpath : *mut ::windows_sys::core::PWSTR ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHGetLocalizedName ( pszpath : ::windows_sys::core::PCWSTR , pszresmodule : ::windows_sys::core::PWSTR , cch : u32 , pidsres : *mut i32 ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_System_Com")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`*"] fn SHGetMalloc ( ppmalloc : *mut super::super::System::Com:: IMalloc ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_UI_Shell_Common")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_Shell_Common\"`*"] fn SHGetNameFromIDList ( pidl : *const Common:: ITEMIDLIST , sigdnname : SIGDN , ppszname : *mut ::windows_sys::core::PWSTR ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHGetNewLinkInfoA ( pszlinkto : ::windows_sys::core::PCSTR , pszdir : ::windows_sys::core::PCSTR , pszname : ::windows_sys::core::PSTR , pfmustcopy : *mut super::super::Foundation:: BOOL , uflags : u32 ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHGetNewLinkInfoW ( pszlinkto : ::windows_sys::core::PCWSTR , pszdir : ::windows_sys::core::PCWSTR , pszname : ::windows_sys::core::PWSTR , pfmustcopy : *mut super::super::Foundation:: BOOL , uflags : u32 ) -> super::super::Foundation:: BOOL );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_Shell_Common\"`*"] fn SHGetPathFromIDListA ( pidl : *const Common:: ITEMIDLIST , pszpath : ::windows_sys::core::PSTR ) -> super::super::Foundation:: BOOL );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_Shell_Common\"`*"] fn SHGetPathFromIDListEx ( pidl : *const Common:: ITEMIDLIST , pszpath : ::windows_sys::core::PWSTR , cchpath : u32 , uopts : GPFIDL_FLAGS ) -> super::super::Foundation:: BOOL );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_Shell_Common\"`*"] fn SHGetPathFromIDListW ( pidl : *const Common:: ITEMIDLIST , pszpath : ::windows_sys::core::PWSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_UI_Shell_Common")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_Shell_Common\"`*"] fn SHGetRealIDL ( psf : IShellFolder , pidlsimple : *const Common:: ITEMIDLIST , ppidlreal : *mut *mut Common:: ITEMIDLIST ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHGetSetFolderCustomSettings ( pfcs : *mut SHFOLDERCUSTOMSETTINGS , pszpath : ::windows_sys::core::PCWSTR , dwreadwrite : u32 ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHGetSetSettings ( lpss : *mut SHELLSTATEA , dwmask : SSF_MASK , bset : super::super::Foundation:: BOOL ) -> ( ) );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHGetSettings ( psfs : *mut SHELLFLAGSTATE , dwmask : u32 ) -> ( ) );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_Shell_Common\"`*"] fn SHGetSpecialFolderLocation ( hwnd : super::super::Foundation:: HWND , csidl : i32 , ppidl : *mut *mut Common:: ITEMIDLIST ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHGetSpecialFolderPathA ( hwnd : super::super::Foundation:: HWND , pszpath : ::windows_sys::core::PSTR , csidl : i32 , fcreate : super::super::Foundation:: BOOL ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHGetSpecialFolderPathW ( hwnd : super::super::Foundation:: HWND , pszpath : ::windows_sys::core::PWSTR , csidl : i32 , fcreate : super::super::Foundation:: BOOL ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_UI_WindowsAndMessaging")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] fn SHGetStockIconInfo ( siid : SHSTOCKICONID , uflags : SHGSI_FLAGS , psii : *mut SHSTOCKICONINFO ) -> ::windows_sys::core::HRESULT );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage", feature = "Win32_UI_Shell_PropertiesSystem"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_UI_Shell_PropertiesSystem\"`*"] fn SHGetTemporaryPropertyForItem ( psi : IShellItem , propkey : *const PropertiesSystem:: PROPERTYKEY , ppropvar : *mut super::super::System::Com::StructuredStorage:: PROPVARIANT ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHGetThreadRef ( ppunk : *mut ::windows_sys::core::IUnknown ) -> ::windows_sys::core::HRESULT );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`*"] fn SHGetUnreadMailCountW ( hkeyuser : super::super::System::Registry:: HKEY , pszmailaddress : ::windows_sys::core::PCWSTR , pdwcount : *mut u32 , pfiletime : *mut super::super::Foundation:: FILETIME , pszshellexecutecommand : ::windows_sys::core::PWSTR , cchshellexecutecommand : i32 ) -> ::windows_sys::core::HRESULT );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`*"] fn SHGetValueA ( hkey : super::super::System::Registry:: HKEY , pszsubkey : ::windows_sys::core::PCSTR , pszvalue : ::windows_sys::core::PCSTR , pdwtype : *mut u32 , pvdata : *mut ::core::ffi::c_void , pcbdata : *mut u32 ) -> super::super::Foundation:: WIN32_ERROR );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`*"] fn SHGetValueW ( hkey : super::super::System::Registry:: HKEY , pszsubkey : ::windows_sys::core::PCWSTR , pszvalue : ::windows_sys::core::PCWSTR , pdwtype : *mut u32 , pvdata : *mut ::core::ffi::c_void , pcbdata : *mut u32 ) -> super::super::Foundation:: WIN32_ERROR );
#[cfg(feature = "Win32_UI_Shell_Common")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_Shell_Common\"`*"] fn SHGetViewStatePropertyBag ( pidl : *const Common:: ITEMIDLIST , pszbagname : ::windows_sys::core::PCWSTR , dwflags : u32 , riid : *const ::windows_sys::core::GUID , ppv : *mut *mut ::core::ffi::c_void ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHGlobalCounterDecrement ( id : SHGLOBALCOUNTER ) -> i32 );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHGlobalCounterGetValue ( id : SHGLOBALCOUNTER ) -> i32 );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHGlobalCounterIncrement ( id : SHGLOBALCOUNTER ) -> i32 );
#[cfg(feature = "Win32_UI_Shell_Common")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_Shell_Common\"`*"] fn SHHandleUpdateImage ( pidlextra : *const Common:: ITEMIDLIST ) -> i32 );
#[cfg(feature = "Win32_UI_Shell_Common")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_Shell_Common\"`*"] fn SHILCreateFromPath ( pszpath : ::windows_sys::core::PCWSTR , ppidl : *mut *mut Common:: ITEMIDLIST , rgfinout : *mut u32 ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHInvokePrinterCommandA ( hwnd : super::super::Foundation:: HWND , uaction : u32 , lpbuf1 : ::windows_sys::core::PCSTR , lpbuf2 : ::windows_sys::core::PCSTR , fmodal : super::super::Foundation:: BOOL ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHInvokePrinterCommandW ( hwnd : super::super::Foundation:: HWND , uaction : u32 , lpbuf1 : ::windows_sys::core::PCWSTR , lpbuf2 : ::windows_sys::core::PCWSTR , fmodal : super::super::Foundation:: BOOL ) -> super::super::Foundation:: BOOL );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHIsFileAvailableOffline ( pwszpath : ::windows_sys::core::PCWSTR , pdwstatus : *mut u32 ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHIsLowMemoryMachine ( dwtype : u32 ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHLimitInputEdit ( hwndedit : super::super::Foundation:: HWND , psf : IShellFolder ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHLoadInProc ( rclsid : *const ::windows_sys::core::GUID ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHLoadIndirectString ( pszsource : ::windows_sys::core::PCWSTR , pszoutbuf : ::windows_sys::core::PWSTR , cchoutbuf : u32 , ppvreserved : *const *const ::core::ffi::c_void ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHLoadNonloadedIconOverlayIdentifiers ( ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHLockShared ( hdata : super::super::Foundation:: HANDLE , dwprocessid : u32 ) -> *mut ::core::ffi::c_void );
#[cfg(feature = "Win32_UI_Shell_Common")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_Shell_Common\"`*"] fn SHMapPIDLToSystemImageListIndex ( pshf : IShellFolder , pidl : *const Common:: ITEMIDLIST , piindexsel : *mut i32 ) -> i32 );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHMessageBoxCheckA ( hwnd : super::super::Foundation:: HWND , psztext : ::windows_sys::core::PCSTR , pszcaption : ::windows_sys::core::PCSTR , utype : u32 , idefault : i32 , pszregval : ::windows_sys::core::PCSTR ) -> i32 );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHMessageBoxCheckW ( hwnd : super::super::Foundation:: HWND , psztext : ::windows_sys::core::PCWSTR , pszcaption : ::windows_sys::core::PCWSTR , utype : u32 , idefault : i32 , pszregval : ::windows_sys::core::PCWSTR ) -> i32 );
#[cfg(feature = "Win32_System_Com")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`*"] fn SHMultiFileProperties ( pdtobj : super::super::System::Com:: IDataObject , dwflags : u32 ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHObjectProperties ( hwnd : super::super::Foundation:: HWND , shopobjecttype : SHOP_TYPE , pszobjectname : ::windows_sys::core::PCWSTR , pszpropertypage : ::windows_sys::core::PCWSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_UI_Shell_Common")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_Shell_Common\"`*"] fn SHOpenFolderAndSelectItems ( pidlfolder : *const Common:: ITEMIDLIST , cidl : u32 , apidl : *const *const Common:: ITEMIDLIST , dwflags : u32 ) -> ::windows_sys::core::HRESULT );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_System_Registry"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_System_Registry\"`*"] fn SHOpenPropSheetW ( pszcaption : ::windows_sys::core::PCWSTR , ahkeys : *const super::super::System::Registry:: HKEY , ckeys : u32 , pclsiddefault : *const ::windows_sys::core::GUID , pdtobj : super::super::System::Com:: IDataObject , psb : IShellBrowser , pstartpage : ::windows_sys::core::PCWSTR ) -> super::super::Foundation:: BOOL );
#[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Registry"))]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`, `\"Win32_System_Registry\"`*"] fn SHOpenRegStream2A ( hkey : super::super::System::Registry:: HKEY , pszsubkey : ::windows_sys::core::PCSTR , pszvalue : ::windows_sys::core::PCSTR , grfmode : u32 ) -> super::super::System::Com:: IStream );
#[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Registry"))]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`, `\"Win32_System_Registry\"`*"] fn SHOpenRegStream2W ( hkey : super::super::System::Registry:: HKEY , pszsubkey : ::windows_sys::core::PCWSTR , pszvalue : ::windows_sys::core::PCWSTR , grfmode : u32 ) -> super::super::System::Com:: IStream );
#[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Registry"))]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`, `\"Win32_System_Registry\"`*"] fn SHOpenRegStreamA ( hkey : super::super::System::Registry:: HKEY , pszsubkey : ::windows_sys::core::PCSTR , pszvalue : ::windows_sys::core::PCSTR , grfmode : u32 ) -> super::super::System::Com:: IStream );
#[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Registry"))]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`, `\"Win32_System_Registry\"`*"] fn SHOpenRegStreamW ( hkey : super::super::System::Registry:: HKEY , pszsubkey : ::windows_sys::core::PCWSTR , pszvalue : ::windows_sys::core::PCWSTR , grfmode : u32 ) -> super::super::System::Com:: IStream );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHOpenWithDialog ( hwndparent : super::super::Foundation:: HWND , poainfo : *const OPENASINFO ) -> ::windows_sys::core::HRESULT );
#[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_Common"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`, `\"Win32_UI_Shell_Common\"`*"] fn SHParseDisplayName ( pszname : ::windows_sys::core::PCWSTR , pbc : super::super::System::Com:: IBindCtx , ppidl : *mut *mut Common:: ITEMIDLIST , sfgaoin : u32 , psfgaoout : *mut u32 ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHPathPrepareForWriteA ( hwnd : super::super::Foundation:: HWND , punkenablemodless : ::windows_sys::core::IUnknown , pszpath : ::windows_sys::core::PCSTR , dwflags : u32 ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHPathPrepareForWriteW ( hwnd : super::super::Foundation:: HWND , punkenablemodless : ::windows_sys::core::IUnknown , pszpath : ::windows_sys::core::PCWSTR , dwflags : u32 ) -> ::windows_sys::core::HRESULT );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`*"] fn SHQueryInfoKeyA ( hkey : super::super::System::Registry:: HKEY , pcsubkeys : *mut u32 , pcchmaxsubkeylen : *mut u32 , pcvalues : *mut u32 , pcchmaxvaluenamelen : *mut u32 ) -> super::super::Foundation:: WIN32_ERROR );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`*"] fn SHQueryInfoKeyW ( hkey : super::super::System::Registry:: HKEY , pcsubkeys : *mut u32 , pcchmaxsubkeylen : *mut u32 , pcvalues : *mut u32 , pcchmaxvaluenamelen : *mut u32 ) -> super::super::Foundation:: WIN32_ERROR );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHQueryRecycleBinA ( pszrootpath : ::windows_sys::core::PCSTR , pshqueryrbinfo : *mut SHQUERYRBINFO ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHQueryRecycleBinW ( pszrootpath : ::windows_sys::core::PCWSTR , pshqueryrbinfo : *mut SHQUERYRBINFO ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHQueryUserNotificationState ( pquns : *mut QUERY_USER_NOTIFICATION_STATE ) -> ::windows_sys::core::HRESULT );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`*"] fn SHQueryValueExA ( hkey : super::super::System::Registry:: HKEY , pszvalue : ::windows_sys::core::PCSTR , pdwreserved : *const u32 , pdwtype : *mut u32 , pvdata : *mut ::core::ffi::c_void , pcbdata : *mut u32 ) -> super::super::Foundation:: WIN32_ERROR );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`*"] fn SHQueryValueExW ( hkey : super::super::System::Registry:: HKEY , pszvalue : ::windows_sys::core::PCWSTR , pdwreserved : *const u32 , pdwtype : *mut u32 , pvdata : *mut ::core::ffi::c_void , pcbdata : *mut u32 ) -> super::super::Foundation:: WIN32_ERROR );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHRegCloseUSKey ( huskey : isize ) -> super::super::Foundation:: WIN32_ERROR );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHRegCreateUSKeyA ( pszpath : ::windows_sys::core::PCSTR , samdesired : u32 , hrelativeuskey : isize , phnewuskey : *mut isize , dwflags : u32 ) -> super::super::Foundation:: WIN32_ERROR );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHRegCreateUSKeyW ( pwzpath : ::windows_sys::core::PCWSTR , samdesired : u32 , hrelativeuskey : isize , phnewuskey : *mut isize , dwflags : u32 ) -> super::super::Foundation:: WIN32_ERROR );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHRegDeleteEmptyUSKeyA ( huskey : isize , pszsubkey : ::windows_sys::core::PCSTR , delregflags : SHREGDEL_FLAGS ) -> super::super::Foundation:: WIN32_ERROR );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHRegDeleteEmptyUSKeyW ( huskey : isize , pwzsubkey : ::windows_sys::core::PCWSTR , delregflags : SHREGDEL_FLAGS ) -> super::super::Foundation:: WIN32_ERROR );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHRegDeleteUSValueA ( huskey : isize , pszvalue : ::windows_sys::core::PCSTR , delregflags : SHREGDEL_FLAGS ) -> super::super::Foundation:: WIN32_ERROR );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHRegDeleteUSValueW ( huskey : isize , pwzvalue : ::windows_sys::core::PCWSTR , delregflags : SHREGDEL_FLAGS ) -> super::super::Foundation:: WIN32_ERROR );
#[cfg(feature = "Win32_System_Registry")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Registry\"`*"] fn SHRegDuplicateHKey ( hkey : super::super::System::Registry:: HKEY ) -> super::super::System::Registry:: HKEY );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHRegEnumUSKeyA ( huskey : isize , dwindex : u32 , pszname : ::windows_sys::core::PSTR , pcchname : *mut u32 , enumregflags : SHREGENUM_FLAGS ) -> super::super::Foundation:: WIN32_ERROR );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHRegEnumUSKeyW ( huskey : isize , dwindex : u32 , pwzname : ::windows_sys::core::PWSTR , pcchname : *mut u32 , enumregflags : SHREGENUM_FLAGS ) -> super::super::Foundation:: WIN32_ERROR );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHRegEnumUSValueA ( huskey : isize , dwindex : u32 , pszvaluename : ::windows_sys::core::PSTR , pcchvaluename : *mut u32 , pdwtype : *mut u32 , pvdata : *mut ::core::ffi::c_void , pcbdata : *mut u32 , enumregflags : SHREGENUM_FLAGS ) -> super::super::Foundation:: WIN32_ERROR );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHRegEnumUSValueW ( huskey : isize , dwindex : u32 , pszvaluename : ::windows_sys::core::PWSTR , pcchvaluename : *mut u32 , pdwtype : *mut u32 , pvdata : *mut ::core::ffi::c_void , pcbdata : *mut u32 , enumregflags : SHREGENUM_FLAGS ) -> super::super::Foundation:: WIN32_ERROR );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHRegGetBoolUSValueA ( pszsubkey : ::windows_sys::core::PCSTR , pszvalue : ::windows_sys::core::PCSTR , fignorehkcu : super::super::Foundation:: BOOL , fdefault : super::super::Foundation:: BOOL ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHRegGetBoolUSValueW ( pszsubkey : ::windows_sys::core::PCWSTR , pszvalue : ::windows_sys::core::PCWSTR , fignorehkcu : super::super::Foundation:: BOOL , fdefault : super::super::Foundation:: BOOL ) -> super::super::Foundation:: BOOL );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`*"] fn SHRegGetIntW ( hk : super::super::System::Registry:: HKEY , pwzkey : ::windows_sys::core::PCWSTR , idefault : i32 ) -> super::super::Foundation:: WIN32_ERROR );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`*"] fn SHRegGetPathA ( hkey : super::super::System::Registry:: HKEY , pcszsubkey : ::windows_sys::core::PCSTR , pcszvalue : ::windows_sys::core::PCSTR , pszpath : ::windows_sys::core::PSTR , dwflags : u32 ) -> super::super::Foundation:: WIN32_ERROR );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`*"] fn SHRegGetPathW ( hkey : super::super::System::Registry:: HKEY , pcszsubkey : ::windows_sys::core::PCWSTR , pcszvalue : ::windows_sys::core::PCWSTR , pszpath : ::windows_sys::core::PWSTR , dwflags : u32 ) -> super::super::Foundation:: WIN32_ERROR );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHRegGetUSValueA ( pszsubkey : ::windows_sys::core::PCSTR , pszvalue : ::windows_sys::core::PCSTR , pdwtype : *mut u32 , pvdata : *mut ::core::ffi::c_void , pcbdata : *mut u32 , fignorehkcu : super::super::Foundation:: BOOL , pvdefaultdata : *const ::core::ffi::c_void , dwdefaultdatasize : u32 ) -> super::super::Foundation:: WIN32_ERROR );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHRegGetUSValueW ( pszsubkey : ::windows_sys::core::PCWSTR , pszvalue : ::windows_sys::core::PCWSTR , pdwtype : *mut u32 , pvdata : *mut ::core::ffi::c_void , pcbdata : *mut u32 , fignorehkcu : super::super::Foundation:: BOOL , pvdefaultdata : *const ::core::ffi::c_void , dwdefaultdatasize : u32 ) -> super::super::Foundation:: WIN32_ERROR );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`*"] fn SHRegGetValueA ( hkey : super::super::System::Registry:: HKEY , pszsubkey : ::windows_sys::core::PCSTR , pszvalue : ::windows_sys::core::PCSTR , srrfflags : i32 , pdwtype : *mut u32 , pvdata : *mut ::core::ffi::c_void , pcbdata : *mut u32 ) -> super::super::Foundation:: WIN32_ERROR );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHRegGetValueFromHKCUHKLM ( pwszkey : ::windows_sys::core::PCWSTR , pwszvalue : ::windows_sys::core::PCWSTR , srrfflags : i32 , pdwtype : *mut u32 , pvdata : *mut ::core::ffi::c_void , pcbdata : *mut u32 ) -> super::super::Foundation:: WIN32_ERROR );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`*"] fn SHRegGetValueW ( hkey : super::super::System::Registry:: HKEY , pszsubkey : ::windows_sys::core::PCWSTR , pszvalue : ::windows_sys::core::PCWSTR , srrfflags : i32 , pdwtype : *mut u32 , pvdata : *mut ::core::ffi::c_void , pcbdata : *mut u32 ) -> super::super::Foundation:: WIN32_ERROR );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHRegOpenUSKeyA ( pszpath : ::windows_sys::core::PCSTR , samdesired : u32 , hrelativeuskey : isize , phnewuskey : *mut isize , fignorehkcu : super::super::Foundation:: BOOL ) -> super::super::Foundation:: WIN32_ERROR );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHRegOpenUSKeyW ( pwzpath : ::windows_sys::core::PCWSTR , samdesired : u32 , hrelativeuskey : isize , phnewuskey : *mut isize , fignorehkcu : super::super::Foundation:: BOOL ) -> super::super::Foundation:: WIN32_ERROR );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHRegQueryInfoUSKeyA ( huskey : isize , pcsubkeys : *mut u32 , pcchmaxsubkeylen : *mut u32 , pcvalues : *mut u32 , pcchmaxvaluenamelen : *mut u32 , enumregflags : SHREGENUM_FLAGS ) -> super::super::Foundation:: WIN32_ERROR );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHRegQueryInfoUSKeyW ( huskey : isize , pcsubkeys : *mut u32 , pcchmaxsubkeylen : *mut u32 , pcvalues : *mut u32 , pcchmaxvaluenamelen : *mut u32 , enumregflags : SHREGENUM_FLAGS ) -> super::super::Foundation:: WIN32_ERROR );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHRegQueryUSValueA ( huskey : isize , pszvalue : ::windows_sys::core::PCSTR , pdwtype : *mut u32 , pvdata : *mut ::core::ffi::c_void , pcbdata : *mut u32 , fignorehkcu : super::super::Foundation:: BOOL , pvdefaultdata : *const ::core::ffi::c_void , dwdefaultdatasize : u32 ) -> super::super::Foundation:: WIN32_ERROR );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHRegQueryUSValueW ( huskey : isize , pszvalue : ::windows_sys::core::PCWSTR , pdwtype : *mut u32 , pvdata : *mut ::core::ffi::c_void , pcbdata : *mut u32 , fignorehkcu : super::super::Foundation:: BOOL , pvdefaultdata : *const ::core::ffi::c_void , dwdefaultdatasize : u32 ) -> super::super::Foundation:: WIN32_ERROR );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`*"] fn SHRegSetPathA ( hkey : super::super::System::Registry:: HKEY , pcszsubkey : ::windows_sys::core::PCSTR , pcszvalue : ::windows_sys::core::PCSTR , pcszpath : ::windows_sys::core::PCSTR , dwflags : u32 ) -> super::super::Foundation:: WIN32_ERROR );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`*"] fn SHRegSetPathW ( hkey : super::super::System::Registry:: HKEY , pcszsubkey : ::windows_sys::core::PCWSTR , pcszvalue : ::windows_sys::core::PCWSTR , pcszpath : ::windows_sys::core::PCWSTR , dwflags : u32 ) -> super::super::Foundation:: WIN32_ERROR );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHRegSetUSValueA ( pszsubkey : ::windows_sys::core::PCSTR , pszvalue : ::windows_sys::core::PCSTR , dwtype : u32 , pvdata : *const ::core::ffi::c_void , cbdata : u32 , dwflags : u32 ) -> super::super::Foundation:: WIN32_ERROR );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHRegSetUSValueW ( pwzsubkey : ::windows_sys::core::PCWSTR , pwzvalue : ::windows_sys::core::PCWSTR , dwtype : u32 , pvdata : *const ::core::ffi::c_void , cbdata : u32 , dwflags : u32 ) -> super::super::Foundation:: WIN32_ERROR );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHRegWriteUSValueA ( huskey : isize , pszvalue : ::windows_sys::core::PCSTR , dwtype : u32 , pvdata : *const ::core::ffi::c_void , cbdata : u32 , dwflags : u32 ) -> super::super::Foundation:: WIN32_ERROR );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHRegWriteUSValueW ( huskey : isize , pwzvalue : ::windows_sys::core::PCWSTR , dwtype : u32 , pvdata : *const ::core::ffi::c_void , cbdata : u32 , dwflags : u32 ) -> super::super::Foundation:: WIN32_ERROR );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHReleaseThreadRef ( ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHRemoveLocalizedName ( pszpath : ::windows_sys::core::PCWSTR ) -> ::windows_sys::core::HRESULT );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_Controls\"`*"] fn SHReplaceFromPropSheetExtArray ( hpsxa : HPSXA , upageid : u32 , lpfnreplacewith : super::Controls:: LPFNSVADDPROPSHEETPAGE , lparam : super::super::Foundation:: LPARAM ) -> u32 );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHResolveLibrary ( psilibrary : IShellItem ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHRestricted ( rest : RESTRICTIONS ) -> u32 );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHSendMessageBroadcastA ( umsg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHSendMessageBroadcastW ( umsg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHSetDefaultProperties ( hwnd : super::super::Foundation:: HWND , psi : IShellItem , dwfileopflags : u32 , pfops : IFileOperationProgressSink ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHSetFolderPathA ( csidl : i32 , htoken : super::super::Foundation:: HANDLE , dwflags : u32 , pszpath : ::windows_sys::core::PCSTR ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHSetFolderPathW ( csidl : i32 , htoken : super::super::Foundation:: HANDLE , dwflags : u32 , pszpath : ::windows_sys::core::PCWSTR ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHSetInstanceExplorer ( punk : ::windows_sys::core::IUnknown ) -> ( ) );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHSetKnownFolderPath ( rfid : *const ::windows_sys::core::GUID , dwflags : u32 , htoken : super::super::Foundation:: HANDLE , pszpath : ::windows_sys::core::PCWSTR ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHSetLocalizedName ( pszpath : ::windows_sys::core::PCWSTR , pszresmodule : ::windows_sys::core::PCWSTR , idsres : i32 ) -> ::windows_sys::core::HRESULT );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage", feature = "Win32_UI_Shell_PropertiesSystem"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_UI_Shell_PropertiesSystem\"`*"] fn SHSetTemporaryPropertyForItem ( psi : IShellItem , propkey : *const PropertiesSystem:: PROPERTYKEY , propvar : *const super::super::System::Com::StructuredStorage:: PROPVARIANT ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHSetThreadRef ( punk : ::windows_sys::core::IUnknown ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHSetUnreadMailCountW ( pszmailaddress : ::windows_sys::core::PCWSTR , dwcount : u32 , pszshellexecutecommand : ::windows_sys::core::PCWSTR ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_System_Registry")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Registry\"`*"] fn SHSetValueA ( hkey : super::super::System::Registry:: HKEY , pszsubkey : ::windows_sys::core::PCSTR , pszvalue : ::windows_sys::core::PCSTR , dwtype : u32 , pvdata : *const ::core::ffi::c_void , cbdata : u32 ) -> i32 );
#[cfg(feature = "Win32_System_Registry")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Registry\"`*"] fn SHSetValueW ( hkey : super::super::System::Registry:: HKEY , pszsubkey : ::windows_sys::core::PCWSTR , pszvalue : ::windows_sys::core::PCWSTR , dwtype : u32 , pvdata : *const ::core::ffi::c_void , cbdata : u32 ) -> i32 );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHShellFolderView_Message ( hwndmain : super::super::Foundation:: HWND , umsg : u32 , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHShowManageLibraryUI ( psilibrary : IShellItem , hwndowner : super::super::Foundation:: HWND , psztitle : ::windows_sys::core::PCWSTR , pszinstruction : ::windows_sys::core::PCWSTR , lmdoptions : LIBRARYMANAGEDIALOGOPTIONS ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_UI_Shell_Common")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_Shell_Common\"`*"] fn SHSimpleIDListFromPath ( pszpath : ::windows_sys::core::PCWSTR ) -> *mut Common:: ITEMIDLIST );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] fn SHSkipJunction ( pbc : super::super::System::Com:: IBindCtx , pclsid : *const ::windows_sys::core::GUID ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHStartNetConnectionDialogW ( hwnd : super::super::Foundation:: HWND , pszremotename : ::windows_sys::core::PCWSTR , dwtype : u32 ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHStrDupA ( psz : ::windows_sys::core::PCSTR , ppwsz : *mut ::windows_sys::core::PWSTR ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHStrDupW ( psz : ::windows_sys::core::PCWSTR , ppwsz : *mut ::windows_sys::core::PWSTR ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHStripMneumonicA ( pszmenu : ::windows_sys::core::PSTR ) -> u8 );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHStripMneumonicW ( pszmenu : ::windows_sys::core::PWSTR ) -> u16 );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHTestTokenMembership ( htoken : super::super::Foundation:: HANDLE , ulrid : u32 ) -> super::super::Foundation:: BOOL );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHUnicodeToAnsi ( pwszsrc : ::windows_sys::core::PCWSTR , pszdst : ::windows_sys::core::PSTR , cchbuf : i32 ) -> i32 );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHUnicodeToUnicode ( pwzsrc : ::windows_sys::core::PCWSTR , pwzdst : ::windows_sys::core::PWSTR , cwchbuf : i32 ) -> i32 );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHUnlockShared ( pvdata : *const ::core::ffi::c_void ) -> super::super::Foundation:: BOOL );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHUpdateImageA ( pszhashitem : ::windows_sys::core::PCSTR , iindex : i32 , uflags : u32 , iimageindex : i32 ) -> ( ) );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SHUpdateImageW ( pszhashitem : ::windows_sys::core::PCWSTR , iindex : i32 , uflags : u32 , iimageindex : i32 ) -> ( ) );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SHValidateUNC ( hwndowner : super::super::Foundation:: HWND , pszfile : ::windows_sys::core::PWSTR , fconnect : VALIDATEUNC_OPTION ) -> super::super::Foundation:: BOOL );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn SetCurrentProcessExplicitAppUserModelID ( appid : ::windows_sys::core::PCWSTR ) -> ::windows_sys::core::HRESULT );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))]
::windows_targets::link ! ( "user32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] fn SetMenuContextHelpId ( param0 : super::WindowsAndMessaging:: HMENU , param1 : u32 ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "user32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SetWindowContextHelpId ( param0 : super::super::Foundation:: HWND , param1 : u32 ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "comctl32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn SetWindowSubclass ( hwnd : super::super::Foundation:: HWND , pfnsubclass : SUBCLASSPROC , uidsubclass : usize , dwrefdata : usize ) -> super::super::Foundation:: BOOL );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] fn ShellAboutA ( hwnd : super::super::Foundation:: HWND , szapp : ::windows_sys::core::PCSTR , szotherstuff : ::windows_sys::core::PCSTR , hicon : super::WindowsAndMessaging:: HICON ) -> i32 );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] fn ShellAboutW ( hwnd : super::super::Foundation:: HWND , szapp : ::windows_sys::core::PCWSTR , szotherstuff : ::windows_sys::core::PCWSTR , hicon : super::WindowsAndMessaging:: HICON ) -> i32 );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] fn ShellExecuteA ( hwnd : super::super::Foundation:: HWND , lpoperation : ::windows_sys::core::PCSTR , lpfile : ::windows_sys::core::PCSTR , lpparameters : ::windows_sys::core::PCSTR , lpdirectory : ::windows_sys::core::PCSTR , nshowcmd : super::WindowsAndMessaging:: SHOW_WINDOW_CMD ) -> super::super::Foundation:: HMODULE );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`*"] fn ShellExecuteExA ( pexecinfo : *mut SHELLEXECUTEINFOA ) -> super::super::Foundation:: BOOL );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`*"] fn ShellExecuteExW ( pexecinfo : *mut SHELLEXECUTEINFOW ) -> super::super::Foundation:: BOOL );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] fn ShellExecuteW ( hwnd : super::super::Foundation:: HWND , lpoperation : ::windows_sys::core::PCWSTR , lpfile : ::windows_sys::core::PCWSTR , lpparameters : ::windows_sys::core::PCWSTR , lpdirectory : ::windows_sys::core::PCWSTR , nshowcmd : super::WindowsAndMessaging:: SHOW_WINDOW_CMD ) -> super::super::Foundation:: HMODULE );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))]
::windows_targets::link ! ( "shlwapi.dll""cdecl" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] fn ShellMessageBoxA ( happinst : super::super::Foundation:: HMODULE , hwnd : super::super::Foundation:: HWND , lpctext : ::windows_sys::core::PCSTR , lpctitle : ::windows_sys::core::PCSTR , fustyle : super::WindowsAndMessaging:: MESSAGEBOX_STYLE ) -> i32 );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))]
::windows_targets::link ! ( "shlwapi.dll""cdecl" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] fn ShellMessageBoxW ( happinst : super::super::Foundation:: HMODULE , hwnd : super::super::Foundation:: HWND , lpctext : ::windows_sys::core::PCWSTR , lpctitle : ::windows_sys::core::PCWSTR , fustyle : super::WindowsAndMessaging:: MESSAGEBOX_STYLE ) -> i32 );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn Shell_GetCachedImageIndex ( pwsziconpath : ::windows_sys::core::PCWSTR , iiconindex : i32 , uiconflags : u32 ) -> i32 );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn Shell_GetCachedImageIndexA ( psziconpath : ::windows_sys::core::PCSTR , iiconindex : i32 , uiconflags : u32 ) -> i32 );
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn Shell_GetCachedImageIndexW ( psziconpath : ::windows_sys::core::PCWSTR , iiconindex : i32 , uiconflags : u32 ) -> i32 );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_Controls\"`*"] fn Shell_GetImageLists ( phiml : *mut super::Controls:: HIMAGELIST , phimlsmall : *mut super::Controls:: HIMAGELIST ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_UI_WindowsAndMessaging")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] fn Shell_MergeMenus ( hmdst : super::WindowsAndMessaging:: HMENU , hmsrc : super::WindowsAndMessaging:: HMENU , uinsert : u32 , uidadjust : u32 , uidadjustmax : u32 , uflags : MM_FLAGS ) -> u32 );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] fn Shell_NotifyIconA ( dwmessage : NOTIFY_ICON_MESSAGE , lpdata : *const NOTIFYICONDATAA ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn Shell_NotifyIconGetRect ( identifier : *const NOTIFYICONIDENTIFIER , iconlocation : *mut super::super::Foundation:: RECT ) -> ::windows_sys::core::HRESULT );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] fn Shell_NotifyIconW ( dwmessage : NOTIFY_ICON_MESSAGE , lpdata : *const NOTIFYICONDATAW ) -> super::super::Foundation:: BOOL );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_Shell_Common\"`*"] fn SignalFileOpen ( pidl : *const Common:: ITEMIDLIST ) -> super::super::Foundation:: BOOL );
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_Urlmon"))]
::windows_targets::link ! ( "shdocvw.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com_Urlmon\"`*"] fn SoftwareUpdateMessageBox ( hwnd : super::super::Foundation:: HWND , pszdistunit : ::windows_sys::core::PCWSTR , dwflags : u32 , psdi : *mut super::super::System::Com::Urlmon:: SOFTDISTINFO ) -> u32 );
#[cfg(feature = "Win32_System_Com_StructuredStorage")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com_StructuredStorage\"`*"] fn StgMakeUniqueName ( pstgparent : super::super::System::Com::StructuredStorage:: IStorage , pszfilespec : ::windows_sys::core::PCWSTR , grfmode : u32 , riid : *const ::windows_sys::core::GUID , ppv : *mut *mut ::core::ffi::c_void ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrCSpnA ( pszstr : ::windows_sys::core::PCSTR , pszset : ::windows_sys::core::PCSTR ) -> i32 );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrCSpnIA ( pszstr : ::windows_sys::core::PCSTR , pszset : ::windows_sys::core::PCSTR ) -> i32 );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrCSpnIW ( pszstr : ::windows_sys::core::PCWSTR , pszset : ::windows_sys::core::PCWSTR ) -> i32 );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrCSpnW ( pszstr : ::windows_sys::core::PCWSTR , pszset : ::windows_sys::core::PCWSTR ) -> i32 );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrCatBuffA ( pszdest : ::windows_sys::core::PSTR , pszsrc : ::windows_sys::core::PCSTR , cchdestbuffsize : i32 ) -> ::windows_sys::core::PSTR );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrCatBuffW ( pszdest : ::windows_sys::core::PWSTR , pszsrc : ::windows_sys::core::PCWSTR , cchdestbuffsize : i32 ) -> ::windows_sys::core::PWSTR );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrCatChainW ( pszdst : ::windows_sys::core::PWSTR , cchdst : u32 , ichat : u32 , pszsrc : ::windows_sys::core::PCWSTR ) -> u32 );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrCatW ( psz1 : ::windows_sys::core::PWSTR , psz2 : ::windows_sys::core::PCWSTR ) -> ::windows_sys::core::PWSTR );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrChrA ( pszstart : ::windows_sys::core::PCSTR , wmatch : u16 ) -> ::windows_sys::core::PSTR );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrChrIA ( pszstart : ::windows_sys::core::PCSTR , wmatch : u16 ) -> ::windows_sys::core::PSTR );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrChrIW ( pszstart : ::windows_sys::core::PCWSTR , wmatch : u16 ) -> ::windows_sys::core::PWSTR );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrChrNIW ( pszstart : ::windows_sys::core::PCWSTR , wmatch : u16 , cchmax : u32 ) -> ::windows_sys::core::PWSTR );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrChrNW ( pszstart : ::windows_sys::core::PCWSTR , wmatch : u16 , cchmax : u32 ) -> ::windows_sys::core::PWSTR );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrChrW ( pszstart : ::windows_sys::core::PCWSTR , wmatch : u16 ) -> ::windows_sys::core::PWSTR );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrCmpCA ( pszstr1 : ::windows_sys::core::PCSTR , pszstr2 : ::windows_sys::core::PCSTR ) -> i32 );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrCmpCW ( pszstr1 : ::windows_sys::core::PCWSTR , pszstr2 : ::windows_sys::core::PCWSTR ) -> i32 );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrCmpICA ( pszstr1 : ::windows_sys::core::PCSTR , pszstr2 : ::windows_sys::core::PCSTR ) -> i32 );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrCmpICW ( pszstr1 : ::windows_sys::core::PCWSTR , pszstr2 : ::windows_sys::core::PCWSTR ) -> i32 );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrCmpIW ( psz1 : ::windows_sys::core::PCWSTR , psz2 : ::windows_sys::core::PCWSTR ) -> i32 );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrCmpLogicalW ( psz1 : ::windows_sys::core::PCWSTR , psz2 : ::windows_sys::core::PCWSTR ) -> i32 );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrCmpNA ( psz1 : ::windows_sys::core::PCSTR , psz2 : ::windows_sys::core::PCSTR , nchar : i32 ) -> i32 );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrCmpNCA ( pszstr1 : ::windows_sys::core::PCSTR , pszstr2 : ::windows_sys::core::PCSTR , nchar : i32 ) -> i32 );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrCmpNCW ( pszstr1 : ::windows_sys::core::PCWSTR , pszstr2 : ::windows_sys::core::PCWSTR , nchar : i32 ) -> i32 );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrCmpNIA ( psz1 : ::windows_sys::core::PCSTR , psz2 : ::windows_sys::core::PCSTR , nchar : i32 ) -> i32 );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrCmpNICA ( pszstr1 : ::windows_sys::core::PCSTR , pszstr2 : ::windows_sys::core::PCSTR , nchar : i32 ) -> i32 );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrCmpNICW ( pszstr1 : ::windows_sys::core::PCWSTR , pszstr2 : ::windows_sys::core::PCWSTR , nchar : i32 ) -> i32 );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrCmpNIW ( psz1 : ::windows_sys::core::PCWSTR , psz2 : ::windows_sys::core::PCWSTR , nchar : i32 ) -> i32 );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrCmpNW ( psz1 : ::windows_sys::core::PCWSTR , psz2 : ::windows_sys::core::PCWSTR , nchar : i32 ) -> i32 );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrCmpW ( psz1 : ::windows_sys::core::PCWSTR , psz2 : ::windows_sys::core::PCWSTR ) -> i32 );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrCpyNW ( pszdst : ::windows_sys::core::PWSTR , pszsrc : ::windows_sys::core::PCWSTR , cchmax : i32 ) -> ::windows_sys::core::PWSTR );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrCpyW ( psz1 : ::windows_sys::core::PWSTR , psz2 : ::windows_sys::core::PCWSTR ) -> ::windows_sys::core::PWSTR );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrDupA ( pszsrch : ::windows_sys::core::PCSTR ) -> ::windows_sys::core::PSTR );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrDupW ( pszsrch : ::windows_sys::core::PCWSTR ) -> ::windows_sys::core::PWSTR );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrFormatByteSize64A ( qdw : i64 , pszbuf : ::windows_sys::core::PSTR , cchbuf : u32 ) -> ::windows_sys::core::PSTR );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrFormatByteSizeA ( dw : u32 , pszbuf : ::windows_sys::core::PSTR , cchbuf : u32 ) -> ::windows_sys::core::PSTR );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrFormatByteSizeEx ( ull : u64 , flags : SFBS_FLAGS , pszbuf : ::windows_sys::core::PWSTR , cchbuf : u32 ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrFormatByteSizeW ( qdw : i64 , pszbuf : ::windows_sys::core::PWSTR , cchbuf : u32 ) -> ::windows_sys::core::PWSTR );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrFormatKBSizeA ( qdw : i64 , pszbuf : ::windows_sys::core::PSTR , cchbuf : u32 ) -> ::windows_sys::core::PSTR );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrFormatKBSizeW ( qdw : i64 , pszbuf : ::windows_sys::core::PWSTR , cchbuf : u32 ) -> ::windows_sys::core::PWSTR );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrFromTimeIntervalA ( pszout : ::windows_sys::core::PSTR , cchmax : u32 , dwtimems : u32 , digits : i32 ) -> i32 );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrFromTimeIntervalW ( pszout : ::windows_sys::core::PWSTR , cchmax : u32 , dwtimems : u32 , digits : i32 ) -> i32 );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn StrIsIntlEqualA ( fcasesens : super::super::Foundation:: BOOL , pszstring1 : ::windows_sys::core::PCSTR , pszstring2 : ::windows_sys::core::PCSTR , nchar : i32 ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn StrIsIntlEqualW ( fcasesens : super::super::Foundation:: BOOL , pszstring1 : ::windows_sys::core::PCWSTR , pszstring2 : ::windows_sys::core::PCWSTR , nchar : i32 ) -> super::super::Foundation:: BOOL );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrNCatA ( psz1 : ::windows_sys::core::PSTR , psz2 : ::windows_sys::core::PCSTR , cchmax : i32 ) -> ::windows_sys::core::PSTR );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrNCatW ( psz1 : ::windows_sys::core::PWSTR , psz2 : ::windows_sys::core::PCWSTR , cchmax : i32 ) -> ::windows_sys::core::PWSTR );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrPBrkA ( psz : ::windows_sys::core::PCSTR , pszset : ::windows_sys::core::PCSTR ) -> ::windows_sys::core::PSTR );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrPBrkW ( psz : ::windows_sys::core::PCWSTR , pszset : ::windows_sys::core::PCWSTR ) -> ::windows_sys::core::PWSTR );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrRChrA ( pszstart : ::windows_sys::core::PCSTR , pszend : ::windows_sys::core::PCSTR , wmatch : u16 ) -> ::windows_sys::core::PSTR );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrRChrIA ( pszstart : ::windows_sys::core::PCSTR , pszend : ::windows_sys::core::PCSTR , wmatch : u16 ) -> ::windows_sys::core::PSTR );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrRChrIW ( pszstart : ::windows_sys::core::PCWSTR , pszend : ::windows_sys::core::PCWSTR , wmatch : u16 ) -> ::windows_sys::core::PWSTR );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrRChrW ( pszstart : ::windows_sys::core::PCWSTR , pszend : ::windows_sys::core::PCWSTR , wmatch : u16 ) -> ::windows_sys::core::PWSTR );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrRStrIA ( pszsource : ::windows_sys::core::PCSTR , pszlast : ::windows_sys::core::PCSTR , pszsrch : ::windows_sys::core::PCSTR ) -> ::windows_sys::core::PSTR );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrRStrIW ( pszsource : ::windows_sys::core::PCWSTR , pszlast : ::windows_sys::core::PCWSTR , pszsrch : ::windows_sys::core::PCWSTR ) -> ::windows_sys::core::PWSTR );
#[cfg(feature = "Win32_UI_Shell_Common")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_Shell_Common\"`*"] fn StrRetToBSTR ( pstr : *mut Common:: STRRET , pidl : *const Common:: ITEMIDLIST , pbstr : *mut ::windows_sys::core::BSTR ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_UI_Shell_Common")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_Shell_Common\"`*"] fn StrRetToBufA ( pstr : *mut Common:: STRRET , pidl : *const Common:: ITEMIDLIST , pszbuf : ::windows_sys::core::PSTR , cchbuf : u32 ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_UI_Shell_Common")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_Shell_Common\"`*"] fn StrRetToBufW ( pstr : *mut Common:: STRRET , pidl : *const Common:: ITEMIDLIST , pszbuf : ::windows_sys::core::PWSTR , cchbuf : u32 ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_UI_Shell_Common")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_Shell_Common\"`*"] fn StrRetToStrA ( pstr : *mut Common:: STRRET , pidl : *const Common:: ITEMIDLIST , ppsz : *mut ::windows_sys::core::PSTR ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_UI_Shell_Common")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_Shell_Common\"`*"] fn StrRetToStrW ( pstr : *mut Common:: STRRET , pidl : *const Common:: ITEMIDLIST , ppsz : *mut ::windows_sys::core::PWSTR ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrSpnA ( psz : ::windows_sys::core::PCSTR , pszset : ::windows_sys::core::PCSTR ) -> i32 );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrSpnW ( psz : ::windows_sys::core::PCWSTR , pszset : ::windows_sys::core::PCWSTR ) -> i32 );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrStrA ( pszfirst : ::windows_sys::core::PCSTR , pszsrch : ::windows_sys::core::PCSTR ) -> ::windows_sys::core::PSTR );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrStrIA ( pszfirst : ::windows_sys::core::PCSTR , pszsrch : ::windows_sys::core::PCSTR ) -> ::windows_sys::core::PSTR );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrStrIW ( pszfirst : ::windows_sys::core::PCWSTR , pszsrch : ::windows_sys::core::PCWSTR ) -> ::windows_sys::core::PWSTR );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrStrNIW ( pszfirst : ::windows_sys::core::PCWSTR , pszsrch : ::windows_sys::core::PCWSTR , cchmax : u32 ) -> ::windows_sys::core::PWSTR );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrStrNW ( pszfirst : ::windows_sys::core::PCWSTR , pszsrch : ::windows_sys::core::PCWSTR , cchmax : u32 ) -> ::windows_sys::core::PWSTR );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrStrW ( pszfirst : ::windows_sys::core::PCWSTR , pszsrch : ::windows_sys::core::PCWSTR ) -> ::windows_sys::core::PWSTR );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn StrToInt64ExA ( pszstring : ::windows_sys::core::PCSTR , dwflags : i32 , pllret : *mut i64 ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn StrToInt64ExW ( pszstring : ::windows_sys::core::PCWSTR , dwflags : i32 , pllret : *mut i64 ) -> super::super::Foundation:: BOOL );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrToIntA ( pszsrc : ::windows_sys::core::PCSTR ) -> i32 );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn StrToIntExA ( pszstring : ::windows_sys::core::PCSTR , dwflags : i32 , piret : *mut i32 ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn StrToIntExW ( pszstring : ::windows_sys::core::PCWSTR , dwflags : i32 , piret : *mut i32 ) -> super::super::Foundation:: BOOL );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn StrToIntW ( pszsrc : ::windows_sys::core::PCWSTR ) -> i32 );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn StrTrimA ( psz : ::windows_sys::core::PSTR , psztrimchars : ::windows_sys::core::PCSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn StrTrimW ( psz : ::windows_sys::core::PWSTR , psztrimchars : ::windows_sys::core::PCWSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "userenv.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn UnloadUserProfile ( htoken : super::super::Foundation:: HANDLE , hprofile : super::super::Foundation:: HANDLE ) -> super::super::Foundation:: BOOL );
::windows_targets::link ! ( "api-ms-win-core-psm-appnotify-l1-1-1.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn UnregisterAppConstrainedChangeNotification ( registration : *mut _APPCONSTRAIN_REGISTRATION ) -> ( ) );
::windows_targets::link ! ( "api-ms-win-core-psm-appnotify-l1-1-0.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn UnregisterAppStateChangeNotification ( registration : *mut _APPSTATE_REGISTRATION ) -> ( ) );
::windows_targets::link ! ( "api-ms-win-shcore-scaling-l1-1-1.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn UnregisterScaleChangeEvent ( dwcookie : usize ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn UrlApplySchemeA ( pszin : ::windows_sys::core::PCSTR , pszout : ::windows_sys::core::PSTR , pcchout : *mut u32 , dwflags : u32 ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn UrlApplySchemeW ( pszin : ::windows_sys::core::PCWSTR , pszout : ::windows_sys::core::PWSTR , pcchout : *mut u32 , dwflags : u32 ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn UrlCanonicalizeA ( pszurl : ::windows_sys::core::PCSTR , pszcanonicalized : ::windows_sys::core::PSTR , pcchcanonicalized : *mut u32 , dwflags : u32 ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn UrlCanonicalizeW ( pszurl : ::windows_sys::core::PCWSTR , pszcanonicalized : ::windows_sys::core::PWSTR , pcchcanonicalized : *mut u32 , dwflags : u32 ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn UrlCombineA ( pszbase : ::windows_sys::core::PCSTR , pszrelative : ::windows_sys::core::PCSTR , pszcombined : ::windows_sys::core::PSTR , pcchcombined : *mut u32 , dwflags : u32 ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn UrlCombineW ( pszbase : ::windows_sys::core::PCWSTR , pszrelative : ::windows_sys::core::PCWSTR , pszcombined : ::windows_sys::core::PWSTR , pcchcombined : *mut u32 , dwflags : u32 ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn UrlCompareA ( psz1 : ::windows_sys::core::PCSTR , psz2 : ::windows_sys::core::PCSTR , fignoreslash : super::super::Foundation:: BOOL ) -> i32 );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn UrlCompareW ( psz1 : ::windows_sys::core::PCWSTR , psz2 : ::windows_sys::core::PCWSTR , fignoreslash : super::super::Foundation:: BOOL ) -> i32 );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn UrlCreateFromPathA ( pszpath : ::windows_sys::core::PCSTR , pszurl : ::windows_sys::core::PSTR , pcchurl : *mut u32 , dwflags : u32 ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn UrlCreateFromPathW ( pszpath : ::windows_sys::core::PCWSTR , pszurl : ::windows_sys::core::PWSTR , pcchurl : *mut u32 , dwflags : u32 ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn UrlEscapeA ( pszurl : ::windows_sys::core::PCSTR , pszescaped : ::windows_sys::core::PSTR , pcchescaped : *mut u32 , dwflags : u32 ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn UrlEscapeW ( pszurl : ::windows_sys::core::PCWSTR , pszescaped : ::windows_sys::core::PWSTR , pcchescaped : *mut u32 , dwflags : u32 ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn UrlFixupW ( pcszurl : ::windows_sys::core::PCWSTR , psztranslatedurl : ::windows_sys::core::PWSTR , cchmax : u32 ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn UrlGetLocationA ( pszurl : ::windows_sys::core::PCSTR ) -> ::windows_sys::core::PCSTR );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn UrlGetLocationW ( pszurl : ::windows_sys::core::PCWSTR ) -> ::windows_sys::core::PCWSTR );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn UrlGetPartA ( pszin : ::windows_sys::core::PCSTR , pszout : ::windows_sys::core::PSTR , pcchout : *mut u32 , dwpart : u32 , dwflags : u32 ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn UrlGetPartW ( pszin : ::windows_sys::core::PCWSTR , pszout : ::windows_sys::core::PWSTR , pcchout : *mut u32 , dwpart : u32 , dwflags : u32 ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn UrlHashA ( pszurl : ::windows_sys::core::PCSTR , pbhash : *mut u8 , cbhash : u32 ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn UrlHashW ( pszurl : ::windows_sys::core::PCWSTR , pbhash : *mut u8 , cbhash : u32 ) -> ::windows_sys::core::HRESULT );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn UrlIsA ( pszurl : ::windows_sys::core::PCSTR , urlis : URLIS ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn UrlIsNoHistoryA ( pszurl : ::windows_sys::core::PCSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn UrlIsNoHistoryW ( pszurl : ::windows_sys::core::PCWSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn UrlIsOpaqueA ( pszurl : ::windows_sys::core::PCSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn UrlIsOpaqueW ( pszurl : ::windows_sys::core::PCWSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn UrlIsW ( pszurl : ::windows_sys::core::PCWSTR , urlis : URLIS ) -> super::super::Foundation:: BOOL );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn UrlUnescapeA ( pszurl : ::windows_sys::core::PSTR , pszunescaped : ::windows_sys::core::PSTR , pcchunescaped : *mut u32 , dwflags : u32 ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn UrlUnescapeW ( pszurl : ::windows_sys::core::PWSTR , pszunescaped : ::windows_sys::core::PWSTR , pcchunescaped : *mut u32 , dwflags : u32 ) -> ::windows_sys::core::HRESULT );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn WhichPlatform ( ) -> u32 );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn Win32DeleteFile ( pszpath : ::windows_sys::core::PCWSTR ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "user32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn WinHelpA ( hwndmain : super::super::Foundation:: HWND , lpszhelp : ::windows_sys::core::PCSTR , ucommand : u32 , dwdata : usize ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "user32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn WinHelpW ( hwndmain : super::super::Foundation:: HWND , lpszhelp : ::windows_sys::core::PCWSTR , ucommand : u32 , dwdata : usize ) -> super::super::Foundation:: BOOL );
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link ! ( "shell32.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"] fn WriteCabinetState ( pcs : *const CABINETSTATE ) -> super::super::Foundation:: BOOL );
::windows_targets::link ! ( "shlwapi.dll""cdecl" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn wnsprintfA ( pszdest : ::windows_sys::core::PSTR , cchdest : i32 , pszfmt : ::windows_sys::core::PCSTR ) -> i32 );
::windows_targets::link ! ( "shlwapi.dll""cdecl" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn wnsprintfW ( pszdest : ::windows_sys::core::PWSTR , cchdest : i32 , pszfmt : ::windows_sys::core::PCWSTR ) -> i32 );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn wvnsprintfA ( pszdest : ::windows_sys::core::PSTR , cchdest : i32 , pszfmt : ::windows_sys::core::PCSTR , arglist : *const i8 ) -> i32 );
::windows_targets::link ! ( "shlwapi.dll""system" #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] fn wvnsprintfW ( pszdest : ::windows_sys::core::PWSTR , cchdest : i32 , pszfmt : ::windows_sys::core::PCWSTR , arglist : *const i8 ) -> i32 );
pub type CIE4ConnectionPoint = *mut ::core::ffi::c_void;
pub type DFConstraint = *mut ::core::ffi::c_void;
pub type DShellFolderViewEvents = *mut ::core::ffi::c_void;
pub type DShellNameSpaceEvents = *mut ::core::ffi::c_void;
pub type DShellWindowsEvents = *mut ::core::ffi::c_void;
pub type DWebBrowserEvents = *mut ::core::ffi::c_void;
pub type DWebBrowserEvents2 = *mut ::core::ffi::c_void;
pub type Folder = *mut ::core::ffi::c_void;
pub type Folder2 = *mut ::core::ffi::c_void;
pub type Folder3 = *mut ::core::ffi::c_void;
pub type FolderItem = *mut ::core::ffi::c_void;
pub type FolderItem2 = *mut ::core::ffi::c_void;
pub type FolderItemVerb = *mut ::core::ffi::c_void;
pub type FolderItemVerbs = *mut ::core::ffi::c_void;
pub type FolderItems = *mut ::core::ffi::c_void;
pub type FolderItems2 = *mut ::core::ffi::c_void;
pub type FolderItems3 = *mut ::core::ffi::c_void;
pub type IACList = *mut ::core::ffi::c_void;
pub type IACList2 = *mut ::core::ffi::c_void;
pub type IAccessibilityDockingService = *mut ::core::ffi::c_void;
pub type IAccessibilityDockingServiceCallback = *mut ::core::ffi::c_void;
pub type IAccessibleObject = *mut ::core::ffi::c_void;
pub type IActionProgress = *mut ::core::ffi::c_void;
pub type IActionProgressDialog = *mut ::core::ffi::c_void;
pub type IAppActivationUIInfo = *mut ::core::ffi::c_void;
pub type IAppPublisher = *mut ::core::ffi::c_void;
pub type IAppVisibility = *mut ::core::ffi::c_void;
pub type IAppVisibilityEvents = *mut ::core::ffi::c_void;
pub type IApplicationActivationManager = *mut ::core::ffi::c_void;
pub type IApplicationAssociationRegistration = *mut ::core::ffi::c_void;
pub type IApplicationAssociationRegistrationUI = *mut ::core::ffi::c_void;
pub type IApplicationDesignModeSettings = *mut ::core::ffi::c_void;
pub type IApplicationDesignModeSettings2 = *mut ::core::ffi::c_void;
pub type IApplicationDestinations = *mut ::core::ffi::c_void;
pub type IApplicationDocumentLists = *mut ::core::ffi::c_void;
pub type IAssocHandler = *mut ::core::ffi::c_void;
pub type IAssocHandlerInvoker = *mut ::core::ffi::c_void;
pub type IAttachmentExecute = *mut ::core::ffi::c_void;
pub type IAutoComplete = *mut ::core::ffi::c_void;
pub type IAutoComplete2 = *mut ::core::ffi::c_void;
pub type IAutoCompleteDropDown = *mut ::core::ffi::c_void;
pub type IBandHost = *mut ::core::ffi::c_void;
pub type IBandSite = *mut ::core::ffi::c_void;
pub type IBannerNotificationHandler = *mut ::core::ffi::c_void;
pub type IBanneredBar = *mut ::core::ffi::c_void;
pub type IBrowserFrameOptions = *mut ::core::ffi::c_void;
pub type IBrowserService = *mut ::core::ffi::c_void;
pub type IBrowserService2 = *mut ::core::ffi::c_void;
pub type IBrowserService3 = *mut ::core::ffi::c_void;
pub type IBrowserService4 = *mut ::core::ffi::c_void;
pub type ICDBurn = *mut ::core::ffi::c_void;
pub type ICDBurnExt = *mut ::core::ffi::c_void;
pub type ICategorizer = *mut ::core::ffi::c_void;
pub type ICategoryProvider = *mut ::core::ffi::c_void;
pub type IColumnManager = *mut ::core::ffi::c_void;
pub type IColumnProvider = *mut ::core::ffi::c_void;
pub type ICommDlgBrowser = *mut ::core::ffi::c_void;
pub type ICommDlgBrowser2 = *mut ::core::ffi::c_void;
pub type ICommDlgBrowser3 = *mut ::core::ffi::c_void;
pub type IComputerInfoChangeNotify = *mut ::core::ffi::c_void;
pub type IConnectableCredentialProviderCredential = *mut ::core::ffi::c_void;
pub type IContactManagerInterop = *mut ::core::ffi::c_void;
pub type IContextMenu = *mut ::core::ffi::c_void;
pub type IContextMenu2 = *mut ::core::ffi::c_void;
pub type IContextMenu3 = *mut ::core::ffi::c_void;
pub type IContextMenuCB = *mut ::core::ffi::c_void;
pub type IContextMenuSite = *mut ::core::ffi::c_void;
pub type ICopyHookA = *mut ::core::ffi::c_void;
pub type ICopyHookW = *mut ::core::ffi::c_void;
pub type ICreateProcessInputs = *mut ::core::ffi::c_void;
pub type ICreatingProcess = *mut ::core::ffi::c_void;
pub type ICredentialProvider = *mut ::core::ffi::c_void;
pub type ICredentialProviderCredential = *mut ::core::ffi::c_void;
pub type ICredentialProviderCredential2 = *mut ::core::ffi::c_void;
pub type ICredentialProviderCredentialEvents = *mut ::core::ffi::c_void;
pub type ICredentialProviderCredentialEvents2 = *mut ::core::ffi::c_void;
pub type ICredentialProviderCredentialWithFieldOptions = *mut ::core::ffi::c_void;
pub type ICredentialProviderEvents = *mut ::core::ffi::c_void;
pub type ICredentialProviderFilter = *mut ::core::ffi::c_void;
pub type ICredentialProviderSetUserArray = *mut ::core::ffi::c_void;
pub type ICredentialProviderUser = *mut ::core::ffi::c_void;
pub type ICredentialProviderUserArray = *mut ::core::ffi::c_void;
pub type ICurrentItem = *mut ::core::ffi::c_void;
pub type ICurrentWorkingDirectory = *mut ::core::ffi::c_void;
pub type ICustomDestinationList = *mut ::core::ffi::c_void;
pub type IDataObjectAsyncCapability = *mut ::core::ffi::c_void;
pub type IDataObjectProvider = *mut ::core::ffi::c_void;
pub type IDataTransferManagerInterop = *mut ::core::ffi::c_void;
pub type IDefaultExtractIconInit = *mut ::core::ffi::c_void;
pub type IDefaultFolderMenuInitialize = *mut ::core::ffi::c_void;
pub type IDelegateFolder = *mut ::core::ffi::c_void;
pub type IDelegateItem = *mut ::core::ffi::c_void;
pub type IDeskBand = *mut ::core::ffi::c_void;
pub type IDeskBand2 = *mut ::core::ffi::c_void;
pub type IDeskBandInfo = *mut ::core::ffi::c_void;
pub type IDeskBar = *mut ::core::ffi::c_void;
pub type IDeskBarClient = *mut ::core::ffi::c_void;
pub type IDesktopGadget = *mut ::core::ffi::c_void;
pub type IDesktopWallpaper = *mut ::core::ffi::c_void;
pub type IDestinationStreamFactory = *mut ::core::ffi::c_void;
pub type IDisplayItem = *mut ::core::ffi::c_void;
pub type IDocViewSite = *mut ::core::ffi::c_void;
pub type IDockingWindow = *mut ::core::ffi::c_void;
pub type IDockingWindowFrame = *mut ::core::ffi::c_void;
pub type IDockingWindowSite = *mut ::core::ffi::c_void;
pub type IDragSourceHelper = *mut ::core::ffi::c_void;
pub type IDragSourceHelper2 = *mut ::core::ffi::c_void;
pub type IDropTargetHelper = *mut ::core::ffi::c_void;
pub type IDynamicHWHandler = *mut ::core::ffi::c_void;
pub type IEnumACString = *mut ::core::ffi::c_void;
pub type IEnumAssocHandlers = *mut ::core::ffi::c_void;
pub type IEnumExplorerCommand = *mut ::core::ffi::c_void;
pub type IEnumExtraSearch = *mut ::core::ffi::c_void;
pub type IEnumFullIDList = *mut ::core::ffi::c_void;
pub type IEnumHLITEM = *mut ::core::ffi::c_void;
pub type IEnumIDList = *mut ::core::ffi::c_void;
pub type IEnumObjects = *mut ::core::ffi::c_void;
pub type IEnumPublishedApps = *mut ::core::ffi::c_void;
pub type IEnumReadyCallback = *mut ::core::ffi::c_void;
pub type IEnumResources = *mut ::core::ffi::c_void;
pub type IEnumShellItems = *mut ::core::ffi::c_void;
pub type IEnumSyncMgrConflict = *mut ::core::ffi::c_void;
pub type IEnumSyncMgrEvents = *mut ::core::ffi::c_void;
pub type IEnumSyncMgrSyncItems = *mut ::core::ffi::c_void;
pub type IEnumTravelLogEntry = *mut ::core::ffi::c_void;
pub type IEnumerableView = *mut ::core::ffi::c_void;
pub type IExecuteCommand = *mut ::core::ffi::c_void;
pub type IExecuteCommandApplicationHostEnvironment = *mut ::core::ffi::c_void;
pub type IExecuteCommandHost = *mut ::core::ffi::c_void;
pub type IExpDispSupport = *mut ::core::ffi::c_void;
pub type IExpDispSupportXP = *mut ::core::ffi::c_void;
pub type IExplorerBrowser = *mut ::core::ffi::c_void;
pub type IExplorerBrowserEvents = *mut ::core::ffi::c_void;
pub type IExplorerCommand = *mut ::core::ffi::c_void;
pub type IExplorerCommandProvider = *mut ::core::ffi::c_void;
pub type IExplorerCommandState = *mut ::core::ffi::c_void;
pub type IExplorerPaneVisibility = *mut ::core::ffi::c_void;
pub type IExtensionServices = *mut ::core::ffi::c_void;
pub type IExtractIconA = *mut ::core::ffi::c_void;
pub type IExtractIconW = *mut ::core::ffi::c_void;
pub type IExtractImage = *mut ::core::ffi::c_void;
pub type IExtractImage2 = *mut ::core::ffi::c_void;
pub type IFileDialog = *mut ::core::ffi::c_void;
pub type IFileDialog2 = *mut ::core::ffi::c_void;
pub type IFileDialogControlEvents = *mut ::core::ffi::c_void;
pub type IFileDialogCustomize = *mut ::core::ffi::c_void;
pub type IFileDialogEvents = *mut ::core::ffi::c_void;
pub type IFileIsInUse = *mut ::core::ffi::c_void;
pub type IFileOpenDialog = *mut ::core::ffi::c_void;
pub type IFileOperation = *mut ::core::ffi::c_void;
pub type IFileOperation2 = *mut ::core::ffi::c_void;
pub type IFileOperationProgressSink = *mut ::core::ffi::c_void;
pub type IFileSaveDialog = *mut ::core::ffi::c_void;
pub type IFileSearchBand = *mut ::core::ffi::c_void;
pub type IFileSyncMergeHandler = *mut ::core::ffi::c_void;
pub type IFileSystemBindData = *mut ::core::ffi::c_void;
pub type IFileSystemBindData2 = *mut ::core::ffi::c_void;
pub type IFolderBandPriv = *mut ::core::ffi::c_void;
pub type IFolderFilter = *mut ::core::ffi::c_void;
pub type IFolderFilterSite = *mut ::core::ffi::c_void;
pub type IFolderView = *mut ::core::ffi::c_void;
pub type IFolderView2 = *mut ::core::ffi::c_void;
pub type IFolderViewHost = *mut ::core::ffi::c_void;
pub type IFolderViewOC = *mut ::core::ffi::c_void;
pub type IFolderViewOptions = *mut ::core::ffi::c_void;
pub type IFolderViewSettings = *mut ::core::ffi::c_void;
pub type IFrameworkInputPane = *mut ::core::ffi::c_void;
pub type IFrameworkInputPaneHandler = *mut ::core::ffi::c_void;
pub type IGetServiceIds = *mut ::core::ffi::c_void;
pub type IHWEventHandler = *mut ::core::ffi::c_void;
pub type IHWEventHandler2 = *mut ::core::ffi::c_void;
pub type IHandlerActivationHost = *mut ::core::ffi::c_void;
pub type IHandlerInfo = *mut ::core::ffi::c_void;
pub type IHandlerInfo2 = *mut ::core::ffi::c_void;
pub type IHlink = *mut ::core::ffi::c_void;
pub type IHlinkBrowseContext = *mut ::core::ffi::c_void;
pub type IHlinkFrame = *mut ::core::ffi::c_void;
pub type IHlinkSite = *mut ::core::ffi::c_void;
pub type IHlinkTarget = *mut ::core::ffi::c_void;
pub type IHomeGroup = *mut ::core::ffi::c_void;
pub type IIOCancelInformation = *mut ::core::ffi::c_void;
pub type IIdentityName = *mut ::core::ffi::c_void;
pub type IImageRecompress = *mut ::core::ffi::c_void;
pub type IInitializeCommand = *mut ::core::ffi::c_void;
pub type IInitializeNetworkFolder = *mut ::core::ffi::c_void;
pub type IInitializeObject = *mut ::core::ffi::c_void;
pub type IInitializeWithBindCtx = *mut ::core::ffi::c_void;
pub type IInitializeWithItem = *mut ::core::ffi::c_void;
pub type IInitializeWithPropertyStore = *mut ::core::ffi::c_void;
pub type IInitializeWithWindow = *mut ::core::ffi::c_void;
pub type IInputObject = *mut ::core::ffi::c_void;
pub type IInputObject2 = *mut ::core::ffi::c_void;
pub type IInputObjectSite = *mut ::core::ffi::c_void;
pub type IInputPaneAnimationCoordinator = *mut ::core::ffi::c_void;
pub type IInputPanelConfiguration = *mut ::core::ffi::c_void;
pub type IInputPanelInvocationConfiguration = *mut ::core::ffi::c_void;
pub type IInsertItem = *mut ::core::ffi::c_void;
pub type IItemNameLimits = *mut ::core::ffi::c_void;
pub type IKnownFolder = *mut ::core::ffi::c_void;
pub type IKnownFolderManager = *mut ::core::ffi::c_void;
pub type ILaunchSourceAppUserModelId = *mut ::core::ffi::c_void;
pub type ILaunchSourceViewSizePreference = *mut ::core::ffi::c_void;
pub type ILaunchTargetMonitor = *mut ::core::ffi::c_void;
pub type ILaunchTargetViewSizePreference = *mut ::core::ffi::c_void;
pub type ILaunchUIContext = *mut ::core::ffi::c_void;
pub type ILaunchUIContextProvider = *mut ::core::ffi::c_void;
pub type IMenuBand = *mut ::core::ffi::c_void;
pub type IMenuPopup = *mut ::core::ffi::c_void;
pub type IModalWindow = *mut ::core::ffi::c_void;
pub type INameSpaceTreeAccessible = *mut ::core::ffi::c_void;
pub type INameSpaceTreeControl = *mut ::core::ffi::c_void;
pub type INameSpaceTreeControl2 = *mut ::core::ffi::c_void;
pub type INameSpaceTreeControlCustomDraw = *mut ::core::ffi::c_void;
pub type INameSpaceTreeControlDropHandler = *mut ::core::ffi::c_void;
pub type INameSpaceTreeControlEvents = *mut ::core::ffi::c_void;
pub type INameSpaceTreeControlFolderCapabilities = *mut ::core::ffi::c_void;
pub type INamedPropertyBag = *mut ::core::ffi::c_void;
pub type INamespaceWalk = *mut ::core::ffi::c_void;
pub type INamespaceWalkCB = *mut ::core::ffi::c_void;
pub type INamespaceWalkCB2 = *mut ::core::ffi::c_void;
pub type INetworkFolderInternal = *mut ::core::ffi::c_void;
pub type INewMenuClient = *mut ::core::ffi::c_void;
pub type INewShortcutHookA = *mut ::core::ffi::c_void;
pub type INewShortcutHookW = *mut ::core::ffi::c_void;
pub type INewWDEvents = *mut ::core::ffi::c_void;
pub type INewWindowManager = *mut ::core::ffi::c_void;
pub type INotifyReplica = *mut ::core::ffi::c_void;
pub type IObjMgr = *mut ::core::ffi::c_void;
pub type IObjectProvider = *mut ::core::ffi::c_void;
pub type IObjectWithAppUserModelID = *mut ::core::ffi::c_void;
pub type IObjectWithBackReferences = *mut ::core::ffi::c_void;
pub type IObjectWithCancelEvent = *mut ::core::ffi::c_void;
pub type IObjectWithFolderEnumMode = *mut ::core::ffi::c_void;
pub type IObjectWithProgID = *mut ::core::ffi::c_void;
pub type IObjectWithSelection = *mut ::core::ffi::c_void;
pub type IOpenControlPanel = *mut ::core::ffi::c_void;
pub type IOpenSearchSource = *mut ::core::ffi::c_void;
pub type IOperationsProgressDialog = *mut ::core::ffi::c_void;
pub type IPackageDebugSettings = *mut ::core::ffi::c_void;
pub type IPackageDebugSettings2 = *mut ::core::ffi::c_void;
pub type IPackageExecutionStateChangeNotification = *mut ::core::ffi::c_void;
pub type IParentAndItem = *mut ::core::ffi::c_void;
pub type IParseAndCreateItem = *mut ::core::ffi::c_void;
pub type IPersistFolder = *mut ::core::ffi::c_void;
pub type IPersistFolder2 = *mut ::core::ffi::c_void;
pub type IPersistFolder3 = *mut ::core::ffi::c_void;
pub type IPersistIDList = *mut ::core::ffi::c_void;
pub type IPreviewHandler = *mut ::core::ffi::c_void;
pub type IPreviewHandlerFrame = *mut ::core::ffi::c_void;
pub type IPreviewHandlerVisuals = *mut ::core::ffi::c_void;
pub type IPreviewItem = *mut ::core::ffi::c_void;
pub type IPreviousVersionsInfo = *mut ::core::ffi::c_void;
pub type IProfferService = *mut ::core::ffi::c_void;
pub type IProgressDialog = *mut ::core::ffi::c_void;
pub type IPropertyKeyStore = *mut ::core::ffi::c_void;
pub type IPublishedApp = *mut ::core::ffi::c_void;
pub type IPublishedApp2 = *mut ::core::ffi::c_void;
pub type IPublishingWizard = *mut ::core::ffi::c_void;
pub type IQueryAssociations = *mut ::core::ffi::c_void;
pub type IQueryCancelAutoPlay = *mut ::core::ffi::c_void;
pub type IQueryCodePage = *mut ::core::ffi::c_void;
pub type IQueryContinue = *mut ::core::ffi::c_void;
pub type IQueryContinueWithStatus = *mut ::core::ffi::c_void;
pub type IQueryInfo = *mut ::core::ffi::c_void;
pub type IRegTreeItem = *mut ::core::ffi::c_void;
pub type IRelatedItem = *mut ::core::ffi::c_void;
pub type IRemoteComputer = *mut ::core::ffi::c_void;
pub type IResolveShellLink = *mut ::core::ffi::c_void;
pub type IResultsFolder = *mut ::core::ffi::c_void;
pub type IRunnableTask = *mut ::core::ffi::c_void;
pub type IScriptErrorList = *mut ::core::ffi::c_void;
pub type ISearchBoxInfo = *mut ::core::ffi::c_void;
pub type ISearchContext = *mut ::core::ffi::c_void;
pub type ISearchFolderItemFactory = *mut ::core::ffi::c_void;
pub type ISharedBitmap = *mut ::core::ffi::c_void;
pub type ISharingConfigurationManager = *mut ::core::ffi::c_void;
pub type IShellApp = *mut ::core::ffi::c_void;
pub type IShellBrowser = *mut ::core::ffi::c_void;
pub type IShellChangeNotify = *mut ::core::ffi::c_void;
pub type IShellDetails = *mut ::core::ffi::c_void;
pub type IShellDispatch = *mut ::core::ffi::c_void;
pub type IShellDispatch2 = *mut ::core::ffi::c_void;
pub type IShellDispatch3 = *mut ::core::ffi::c_void;
pub type IShellDispatch4 = *mut ::core::ffi::c_void;
pub type IShellDispatch5 = *mut ::core::ffi::c_void;
pub type IShellDispatch6 = *mut ::core::ffi::c_void;
pub type IShellExtInit = *mut ::core::ffi::c_void;
pub type IShellFavoritesNameSpace = *mut ::core::ffi::c_void;
pub type IShellFolder = *mut ::core::ffi::c_void;
pub type IShellFolder2 = *mut ::core::ffi::c_void;
pub type IShellFolderBand = *mut ::core::ffi::c_void;
pub type IShellFolderView = *mut ::core::ffi::c_void;
pub type IShellFolderViewCB = *mut ::core::ffi::c_void;
pub type IShellFolderViewDual = *mut ::core::ffi::c_void;
pub type IShellFolderViewDual2 = *mut ::core::ffi::c_void;
pub type IShellFolderViewDual3 = *mut ::core::ffi::c_void;
pub type IShellIcon = *mut ::core::ffi::c_void;
pub type IShellIconOverlay = *mut ::core::ffi::c_void;
pub type IShellIconOverlayIdentifier = *mut ::core::ffi::c_void;
pub type IShellIconOverlayManager = *mut ::core::ffi::c_void;
pub type IShellImageData = *mut ::core::ffi::c_void;
pub type IShellImageDataAbort = *mut ::core::ffi::c_void;
pub type IShellImageDataFactory = *mut ::core::ffi::c_void;
pub type IShellItem = *mut ::core::ffi::c_void;
pub type IShellItem2 = *mut ::core::ffi::c_void;
pub type IShellItemArray = *mut ::core::ffi::c_void;
pub type IShellItemFilter = *mut ::core::ffi::c_void;
pub type IShellItemImageFactory = *mut ::core::ffi::c_void;
pub type IShellItemResources = *mut ::core::ffi::c_void;
pub type IShellLibrary = *mut ::core::ffi::c_void;
pub type IShellLinkA = *mut ::core::ffi::c_void;
pub type IShellLinkDataList = *mut ::core::ffi::c_void;
pub type IShellLinkDual = *mut ::core::ffi::c_void;
pub type IShellLinkDual2 = *mut ::core::ffi::c_void;
pub type IShellLinkW = *mut ::core::ffi::c_void;
pub type IShellMenu = *mut ::core::ffi::c_void;
pub type IShellMenuCallback = *mut ::core::ffi::c_void;
pub type IShellNameSpace = *mut ::core::ffi::c_void;
pub type IShellPropSheetExt = *mut ::core::ffi::c_void;
pub type IShellRunDll = *mut ::core::ffi::c_void;
pub type IShellService = *mut ::core::ffi::c_void;
pub type IShellTaskScheduler = *mut ::core::ffi::c_void;
pub type IShellUIHelper = *mut ::core::ffi::c_void;
pub type IShellUIHelper2 = *mut ::core::ffi::c_void;
pub type IShellUIHelper3 = *mut ::core::ffi::c_void;
pub type IShellUIHelper4 = *mut ::core::ffi::c_void;
pub type IShellUIHelper5 = *mut ::core::ffi::c_void;
pub type IShellUIHelper6 = *mut ::core::ffi::c_void;
pub type IShellUIHelper7 = *mut ::core::ffi::c_void;
pub type IShellUIHelper8 = *mut ::core::ffi::c_void;
pub type IShellUIHelper9 = *mut ::core::ffi::c_void;
pub type IShellView = *mut ::core::ffi::c_void;
pub type IShellView2 = *mut ::core::ffi::c_void;
pub type IShellView3 = *mut ::core::ffi::c_void;
pub type IShellWindows = *mut ::core::ffi::c_void;
pub type ISortColumnArray = *mut ::core::ffi::c_void;
pub type IStartMenuPinnedList = *mut ::core::ffi::c_void;
pub type IStorageProviderBanners = *mut ::core::ffi::c_void;
pub type IStorageProviderCopyHook = *mut ::core::ffi::c_void;
pub type IStorageProviderHandler = *mut ::core::ffi::c_void;
pub type IStorageProviderPropertyHandler = *mut ::core::ffi::c_void;
pub type IStreamAsync = *mut ::core::ffi::c_void;
pub type IStreamUnbufferedInfo = *mut ::core::ffi::c_void;
pub type ISuspensionDependencyManager = *mut ::core::ffi::c_void;
pub type ISyncMgrConflict = *mut ::core::ffi::c_void;
pub type ISyncMgrConflictFolder = *mut ::core::ffi::c_void;
pub type ISyncMgrConflictItems = *mut ::core::ffi::c_void;
pub type ISyncMgrConflictPresenter = *mut ::core::ffi::c_void;
pub type ISyncMgrConflictResolutionItems = *mut ::core::ffi::c_void;
pub type ISyncMgrConflictResolveInfo = *mut ::core::ffi::c_void;
pub type ISyncMgrConflictStore = *mut ::core::ffi::c_void;
pub type ISyncMgrControl = *mut ::core::ffi::c_void;
pub type ISyncMgrEnumItems = *mut ::core::ffi::c_void;
pub type ISyncMgrEvent = *mut ::core::ffi::c_void;
pub type ISyncMgrEventLinkUIOperation = *mut ::core::ffi::c_void;
pub type ISyncMgrEventStore = *mut ::core::ffi::c_void;
pub type ISyncMgrHandler = *mut ::core::ffi::c_void;
pub type ISyncMgrHandlerCollection = *mut ::core::ffi::c_void;
pub type ISyncMgrHandlerInfo = *mut ::core::ffi::c_void;
pub type ISyncMgrRegister = *mut ::core::ffi::c_void;
pub type ISyncMgrResolutionHandler = *mut ::core::ffi::c_void;
pub type ISyncMgrScheduleWizardUIOperation = *mut ::core::ffi::c_void;
pub type ISyncMgrSessionCreator = *mut ::core::ffi::c_void;
pub type ISyncMgrSyncCallback = *mut ::core::ffi::c_void;
pub type ISyncMgrSyncItem = *mut ::core::ffi::c_void;
pub type ISyncMgrSyncItemContainer = *mut ::core::ffi::c_void;
pub type ISyncMgrSyncItemInfo = *mut ::core::ffi::c_void;
pub type ISyncMgrSyncResult = *mut ::core::ffi::c_void;
pub type ISyncMgrSynchronize = *mut ::core::ffi::c_void;
pub type ISyncMgrSynchronizeCallback = *mut ::core::ffi::c_void;
pub type ISyncMgrSynchronizeInvoke = *mut ::core::ffi::c_void;
pub type ISyncMgrUIOperation = *mut ::core::ffi::c_void;
pub type ITaskbarList = *mut ::core::ffi::c_void;
pub type ITaskbarList2 = *mut ::core::ffi::c_void;
pub type ITaskbarList3 = *mut ::core::ffi::c_void;
pub type ITaskbarList4 = *mut ::core::ffi::c_void;
pub type IThumbnailCache = *mut ::core::ffi::c_void;
pub type IThumbnailCachePrimer = *mut ::core::ffi::c_void;
pub type IThumbnailCapture = *mut ::core::ffi::c_void;
pub type IThumbnailHandlerFactory = *mut ::core::ffi::c_void;
pub type IThumbnailProvider = *mut ::core::ffi::c_void;
pub type IThumbnailSettings = *mut ::core::ffi::c_void;
pub type IThumbnailStreamCache = *mut ::core::ffi::c_void;
pub type ITrackShellMenu = *mut ::core::ffi::c_void;
pub type ITranscodeImage = *mut ::core::ffi::c_void;
pub type ITransferAdviseSink = *mut ::core::ffi::c_void;
pub type ITransferDestination = *mut ::core::ffi::c_void;
pub type ITransferMediumItem = *mut ::core::ffi::c_void;
pub type ITransferSource = *mut ::core::ffi::c_void;
pub type ITravelEntry = *mut ::core::ffi::c_void;
pub type ITravelLog = *mut ::core::ffi::c_void;
pub type ITravelLogClient = *mut ::core::ffi::c_void;
pub type ITravelLogEntry = *mut ::core::ffi::c_void;
pub type ITravelLogStg = *mut ::core::ffi::c_void;
pub type ITrayDeskBand = *mut ::core::ffi::c_void;
pub type IURLSearchHook = *mut ::core::ffi::c_void;
pub type IURLSearchHook2 = *mut ::core::ffi::c_void;
pub type IUniformResourceLocatorA = *mut ::core::ffi::c_void;
pub type IUniformResourceLocatorW = *mut ::core::ffi::c_void;
pub type IUpdateIDList = *mut ::core::ffi::c_void;
pub type IUseToBrowseItem = *mut ::core::ffi::c_void;
pub type IUserAccountChangeCallback = *mut ::core::ffi::c_void;
pub type IUserNotification = *mut ::core::ffi::c_void;
pub type IUserNotification2 = *mut ::core::ffi::c_void;
pub type IUserNotificationCallback = *mut ::core::ffi::c_void;
pub type IViewStateIdentityItem = *mut ::core::ffi::c_void;
pub type IVirtualDesktopManager = *mut ::core::ffi::c_void;
pub type IVisualProperties = *mut ::core::ffi::c_void;
pub type IWebBrowser = *mut ::core::ffi::c_void;
pub type IWebBrowser2 = *mut ::core::ffi::c_void;
pub type IWebBrowserApp = *mut ::core::ffi::c_void;
pub type IWebWizardExtension = *mut ::core::ffi::c_void;
pub type IWebWizardHost = *mut ::core::ffi::c_void;
pub type IWebWizardHost2 = *mut ::core::ffi::c_void;
pub type IWizardExtension = *mut ::core::ffi::c_void;
pub type IWizardSite = *mut ::core::ffi::c_void;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ABE_BOTTOM: u32 = 3u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ABE_LEFT: u32 = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ABE_RIGHT: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ABE_TOP: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ABM_ACTIVATE: u32 = 6u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ABM_GETAUTOHIDEBAR: u32 = 7u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ABM_GETAUTOHIDEBAREX: u32 = 11u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ABM_GETSTATE: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ABM_GETTASKBARPOS: u32 = 5u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ABM_NEW: u32 = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ABM_QUERYPOS: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ABM_REMOVE: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ABM_SETAUTOHIDEBAR: u32 = 8u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ABM_SETAUTOHIDEBAREX: u32 = 12u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ABM_SETPOS: u32 = 3u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ABM_SETSTATE: u32 = 10u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ABM_WINDOWPOSCHANGED: u32 = 9u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ABN_FULLSCREENAPP: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ABN_POSCHANGED: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ABN_STATECHANGE: u32 = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ABN_WINDOWARRANGE: u32 = 3u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ABS_ALWAYSONTOP: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ABS_AUTOHIDE: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ACDD_VISIBLE: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ADDURL_SILENT: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AD_APPLY_BUFFERED_REFRESH: u32 = 16u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AD_APPLY_DYNAMICREFRESH: u32 = 32u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AD_APPLY_FORCE: u32 = 8u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AD_APPLY_HTMLGEN: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AD_APPLY_REFRESH: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AD_APPLY_SAVE: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AD_GETWP_BMP: u32 = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AD_GETWP_IMAGE: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AD_GETWP_LAST_APPLIED: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const APPNAMEBUFFERLEN: u32 = 40u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ARCONTENT_AUDIOCD: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ARCONTENT_AUTOPLAYMUSIC: u32 = 256u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ARCONTENT_AUTOPLAYPIX: u32 = 128u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ARCONTENT_AUTOPLAYVIDEO: u32 = 512u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ARCONTENT_AUTORUNINF: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ARCONTENT_BLANKBD: u32 = 8192u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ARCONTENT_BLANKCD: u32 = 16u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ARCONTENT_BLANKDVD: u32 = 32u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ARCONTENT_BLURAY: u32 = 16384u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ARCONTENT_CAMERASTORAGE: u32 = 32768u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ARCONTENT_CUSTOMEVENT: u32 = 65536u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ARCONTENT_DVDAUDIO: u32 = 4096u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ARCONTENT_DVDMOVIE: u32 = 8u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ARCONTENT_MASK: u32 = 131070u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ARCONTENT_NONE: u32 = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ARCONTENT_PHASE_FINAL: u32 = 1073741824u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ARCONTENT_PHASE_MASK: u32 = 1879048192u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ARCONTENT_PHASE_PRESNIFF: u32 = 268435456u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ARCONTENT_PHASE_SNIFFING: u32 = 536870912u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ARCONTENT_PHASE_UNKNOWN: u32 = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ARCONTENT_SVCD: u32 = 2048u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ARCONTENT_UNKNOWNCONTENT: u32 = 64u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ARCONTENT_VCD: u32 = 1024u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AccessibilityDockingService: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x29ce1d46_b481_4aa0_a08a_d3ebc8aca402);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AlphabeticalCategorizer: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x3c2654c6_7372_4f6b_b310_55d6128f49d2);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AppShellVerbHandler: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x4ed3a719_cea8_4bd9_910d_e252f997afc2);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AppStartupLink: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x273eb5e7_88b0_4843_bfef_e2c81d43aae5);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AppVisibility: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x7e5fe3d9_985f_4908_91f9_ee19f9fd1514);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ApplicationActivationManager: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x45ba127d_10a8_46ea_8ab7_56ea9078943c);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ApplicationAssociationRegistration: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x591209c7_767b_42b2_9fba_44ee4615f2c7);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ApplicationAssociationRegistrationUI: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x1968106d_f3b5_44cf_890e_116fcb9ecef1);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ApplicationDesignModeSettings: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x958a6fb5_dcb2_4faf_aafd_7fb054ad1a3b);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ApplicationDestinations: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x86c14003_4d6b_4ef3_a7b4_0506663b2e68);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ApplicationDocumentLists: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x86bec222_30f2_47e0_9f25_60d11cd75c28);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AttachmentServices: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x4125dd96_e03a_4103_8f70_e0597d803b9c);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BFFM_ENABLEOK: u32 = 1125u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BFFM_INITIALIZED: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BFFM_IUNKNOWN: u32 = 5u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BFFM_SELCHANGED: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BFFM_SETEXPANDED: u32 = 1130u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BFFM_SETOKTEXT: u32 = 1129u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BFFM_SETSELECTION: u32 = 1127u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BFFM_SETSELECTIONA: u32 = 1126u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BFFM_SETSELECTIONW: u32 = 1127u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BFFM_SETSTATUSTEXT: u32 = 1128u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BFFM_SETSTATUSTEXTA: u32 = 1124u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BFFM_SETSTATUSTEXTW: u32 = 1128u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BFFM_VALIDATEFAILED: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BFFM_VALIDATEFAILEDA: u32 = 3u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BFFM_VALIDATEFAILEDW: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BHID_AssociationArray: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xbea9ef17_82f1_4f60_9284_4f8db75c3be9);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BHID_DataObject: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xb8c0bd9f_ed24_455c_83e6_d5390c4fe8c4);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BHID_EnumAssocHandlers: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xb8ab0b9c_c2ec_4f7a_918d_314900e6280a);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BHID_EnumItems: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x94f60519_2850_4924_aa5a_d15e84868039);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BHID_FilePlaceholder: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x8677dceb_aae0_4005_8d3d_547fa852f825);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BHID_Filter: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x38d08778_f557_4690_9ebf_ba54706ad8f7);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BHID_LinkTargetItem: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x3981e228_f559_11d3_8e3a_00c04f6837d5);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BHID_PropertyStore: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x0384e1a4_1523_439c_a4c8_ab911052f586);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BHID_RandomAccessStream: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xf16fc93b_77ae_4cfe_bda7_a866eea6878d);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BHID_SFObject: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x3981e224_f559_11d3_8e3a_00c04f6837d5);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BHID_SFUIObject: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x3981e225_f559_11d3_8e3a_00c04f6837d5);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BHID_SFViewObject: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x3981e226_f559_11d3_8e3a_00c04f6837d5);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BHID_Storage: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x3981e227_f559_11d3_8e3a_00c04f6837d5);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BHID_StorageEnum: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x4621a4e3_f0d6_4773_8a9c_46e77b174840);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BHID_StorageItem: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x404e2109_77d2_4699_a5a0_4fdf10db9837);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BHID_Stream: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x1cebb3ab_7c10_499a_a417_92ca16c4cb83);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BHID_ThumbnailHandler: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x7b2e650a_8e20_4f4a_b09e_6597afc72fb0);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BHID_Transfer: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xd5e346a1_f753_4932_b403_4574800e2498);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BIF_BROWSEFILEJUNCTIONS: u32 = 65536u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BIF_BROWSEFORCOMPUTER: u32 = 4096u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BIF_BROWSEFORPRINTER: u32 = 8192u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BIF_BROWSEINCLUDEFILES: u32 = 16384u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BIF_BROWSEINCLUDEURLS: u32 = 128u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BIF_DONTGOBELOWDOMAIN: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BIF_EDITBOX: u32 = 16u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BIF_NEWDIALOGSTYLE: u32 = 64u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BIF_NONEWFOLDERBUTTON: u32 = 512u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BIF_NOTRANSLATETARGETS: u32 = 1024u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BIF_RETURNFSANCESTORS: u32 = 8u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BIF_RETURNONLYFSDIRS: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BIF_SHAREABLE: u32 = 32768u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BIF_STATUSTEXT: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BIF_UAHINT: u32 = 256u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BIF_VALIDATE: u32 = 32u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BIND_INTERRUPTABLE: u32 = 4294967295u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BMICON_LARGE: i32 = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BMICON_SMALL: i32 = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BSF_CANMAXIMIZE: u32 = 1024u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BSF_DELEGATEDNAVIGATION: u32 = 65536u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BSF_DONTSHOWNAVCANCELPAGE: u32 = 16384u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BSF_FEEDNAVIGATION: u32 = 524288u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BSF_FEEDSUBSCRIBED: u32 = 1048576u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BSF_HTMLNAVCANCELED: u32 = 8192u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BSF_MERGEDMENUS: u32 = 262144u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BSF_NAVNOHISTORY: u32 = 4096u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BSF_NOLOCALFILEWARNING: u32 = 16u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BSF_REGISTERASDROPTARGET: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BSF_RESIZABLE: u32 = 512u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BSF_SETNAVIGATABLECODEPAGE: u32 = 32768u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BSF_THEATERMODE: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BSF_TOPBROWSER: u32 = 2048u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BSF_TRUSTEDFORACTIVEX: u32 = 131072u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BSF_UISETBYAUTOMATION: u32 = 256u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BSIM_STATE: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BSIM_STYLE: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BSIS_ALWAYSGRIPPER: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BSIS_AUTOGRIPPER: u32 = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BSIS_FIXEDORDER: u32 = 1024u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BSIS_LEFTALIGN: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BSIS_LOCKED: u32 = 256u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BSIS_NOCAPTION: u32 = 64u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BSIS_NOCONTEXTMENU: u32 = 16u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BSIS_NODROPTARGET: u32 = 32u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BSIS_NOGRIPPER: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BSIS_PREFERNOLINEBREAK: u32 = 128u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BSIS_PRESERVEORDERDURINGLAYOUT: u32 = 512u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BSIS_SINGLECLICK: u32 = 8u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BSSF_NOTITLE: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BSSF_UNDELETEABLE: u32 = 4096u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BSSF_VISIBLE: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BUFFLEN: u32 = 255u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CABINETSTATE_VERSION: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CAMERAROLL_E_NO_DOWNSAMPLING_REQUIRED: ::windows_sys::core::HRESULT = -2144927456i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CATID_BrowsableShellExt: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x00021490_0000_0000_c000_000000000046);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CATID_BrowseInPlace: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x00021491_0000_0000_c000_000000000046);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CATID_CommBand: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x00021494_0000_0000_c000_000000000046);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CATID_DeskBand: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x00021492_0000_0000_c000_000000000046);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CATID_FilePlaceholderMergeHandler: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x3e9c9a51_d4aa_4870_b47c_7424b491f1cc);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CATID_InfoBand: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x00021493_0000_0000_c000_000000000046);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CATID_LocationFactory: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x965c4d51_8b76_4e57_80b7_564d2ea4b55e);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CATID_LocationProvider: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x1b3ca474_2614_414b_b813_1aceca3e3dd8);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CATID_SearchableApplication: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x366c292a_d9b3_4dbf_bb70_e62ec3d0bbbf);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CDB2GVF_ADDSHIELD: u32 = 64u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CDB2GVF_ALLOWPREVIEWPANE: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CDB2GVF_ISFILESAVE: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CDB2GVF_ISFOLDERPICKER: u32 = 32u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CDB2GVF_NOINCLUDEITEM: u32 = 16u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CDB2GVF_NOSELECTVERB: u32 = 8u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CDB2GVF_SHOWALLFILES: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CDB2N_CONTEXTMENU_DONE: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CDB2N_CONTEXTMENU_START: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CDBOSC_KILLFOCUS: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CDBOSC_RENAME: u32 = 3u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CDBOSC_SELCHANGE: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CDBOSC_SETFOCUS: u32 = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CDBOSC_STATECHANGE: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CDBurn: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xfbeb8a05_beee_4442_804e_409d6c4515e9);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CFSTR_AUTOPLAY_SHELLIDLISTS: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("Autoplay Enumerated IDList Array");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CFSTR_DROPDESCRIPTION: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("DropDescription");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CFSTR_FILECONTENTS: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("FileContents");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CFSTR_FILEDESCRIPTOR: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("FileGroupDescriptorW");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CFSTR_FILEDESCRIPTORA: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("FileGroupDescriptor");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CFSTR_FILEDESCRIPTORW: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("FileGroupDescriptorW");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CFSTR_FILENAME: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("FileNameW");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CFSTR_FILENAMEA: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("FileName");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CFSTR_FILENAMEMAP: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("FileNameMapW");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CFSTR_FILENAMEMAPA: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("FileNameMap");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CFSTR_FILENAMEMAPW: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("FileNameMapW");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CFSTR_FILENAMEW: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("FileNameW");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CFSTR_FILE_ATTRIBUTES_ARRAY: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("File Attributes Array");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CFSTR_INDRAGLOOP: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("InShellDragLoop");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CFSTR_INETURL: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("UniformResourceLocatorW");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CFSTR_INETURLA: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("UniformResourceLocator");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CFSTR_INETURLW: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("UniformResourceLocatorW");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CFSTR_INVOKECOMMAND_DROPPARAM: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("InvokeCommand DropParam");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CFSTR_LOGICALPERFORMEDDROPEFFECT: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("Logical Performed DropEffect");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CFSTR_MOUNTEDVOLUME: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("MountedVolume");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CFSTR_NETRESOURCES: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("Net Resource");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CFSTR_PASTESUCCEEDED: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("Paste Succeeded");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CFSTR_PERFORMEDDROPEFFECT: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("Performed DropEffect");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CFSTR_PERSISTEDDATAOBJECT: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("PersistedDataObject");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CFSTR_PREFERREDDROPEFFECT: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("Preferred DropEffect");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CFSTR_PRINTERGROUP: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("PrinterFriendlyName");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CFSTR_SHELLDROPHANDLER: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("DropHandlerCLSID");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CFSTR_SHELLIDLIST: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("Shell IDList Array");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CFSTR_SHELLIDLISTOFFSET: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("Shell Object Offsets");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CFSTR_SHELLURL: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("UniformResourceLocator");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CFSTR_TARGETCLSID: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("TargetCLSID");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CFSTR_UNTRUSTEDDRAGDROP: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("UntrustedDragDrop");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CFSTR_ZONEIDENTIFIER: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("ZoneIdentifier");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CGID_DefView: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x4af07f10_d231_11d0_b942_00a0c90312e1);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CGID_Explorer: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x000214d0_0000_0000_c000_000000000046);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CGID_ExplorerBarDoc: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x000214d3_0000_0000_c000_000000000046);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CGID_MENUDESKBAR: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x5c9f0a12_959e_11d0_a3a4_00a0c9082636);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CGID_ShellDocView: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x000214d1_0000_0000_c000_000000000046);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CGID_ShellServiceObject: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x000214d2_0000_0000_c000_000000000046);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CGID_ShortCut: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x93a68750_951a_11d1_946f_000000000000);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CLOSEPROPS_DISCARD: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CLOSEPROPS_NONE: u32 = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CLSID_ACLCustomMRU: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x6935db93_21e8_4ccc_beb9_9fe3c77a297a);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CLSID_ACLHistory: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x00bb2764_6a77_11d0_a535_00c04fd7d062);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CLSID_ACLMRU: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x6756a641_de71_11d0_831b_00aa005b4383);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CLSID_ACLMulti: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x00bb2765_6a77_11d0_a535_00c04fd7d062);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CLSID_ACListISF: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x03c036f1_a186_11d0_824a_00aa005b4383);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CLSID_ActiveDesktop: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x75048700_ef1f_11d0_9888_006097deacf9);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CLSID_AutoComplete: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x00bb2763_6a77_11d0_a535_00c04fd7d062);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CLSID_CAnchorBrowsePropertyPage: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x3050f3bb_98b5_11cf_bb82_00aa00bdce0b);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CLSID_CDocBrowsePropertyPage: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x3050f3b4_98b5_11cf_bb82_00aa00bdce0b);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CLSID_CFSIconOverlayManager: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x63b51f81_c868_11d0_999c_00c04fd655e1);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CLSID_CImageBrowsePropertyPage: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x3050f3b3_98b5_11cf_bb82_00aa00bdce0b);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CLSID_CURLSearchHook: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xcfbfae00_17a6_11d0_99cb_00c04fd64497);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CLSID_CUrlHistory: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x3c374a40_bae4_11cf_bf7d_00aa006946ee);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CLSID_ControlPanel: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x21ec2020_3aea_1069_a2dd_08002b30309d);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CLSID_DarwinAppPublisher: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xcfccc7a0_a282_11d1_9082_006008059382);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CLSID_DocHostUIHandler: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x7057e952_bd1b_11d1_8919_00c04fc2c836);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CLSID_DragDropHelper: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x4657278a_411b_11d2_839a_00c04fd918d0);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CLSID_FileTypes: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xb091e540_83e3_11cf_a713_0020afd79762);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CLSID_FolderItemsMultiLevel: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x53c74826_ab99_4d33_aca4_3117f51d3788);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CLSID_FolderShortcut: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x0afaced1_e828_11d1_9187_b532f1e9575d);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CLSID_HWShellExecute: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xffb8655f_81b9_4fce_b89c_9a6ba76d13e7);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CLSID_ISFBand: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xd82be2b0_5764_11d0_a96e_00c04fd705a2);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CLSID_Internet: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x871c5380_42a0_1069_a2ea_08002b30309d);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CLSID_InternetButtons: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x1e796980_9cc5_11d1_a83f_00c04fc99d61);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CLSID_InternetShortcut: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xfbf23b40_e3f0_101b_8488_00aa003e56f8);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CLSID_LinkColumnProvider: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x24f14f02_7b1c_11d1_838f_0000f80461cf);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CLSID_MSOButtons: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x178f34b8_a282_11d2_86c5_00c04f8eea99);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CLSID_MenuBand: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x5b4dae26_b807_11d0_9815_00c04fd91972);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CLSID_MenuBandSite: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xe13ef4e4_d2f2_11d0_9816_00c04fd91972);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CLSID_MenuToolbarBase: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x40b96610_b522_11d1_b3b4_00aa006efde7);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CLSID_MyComputer: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x20d04fe0_3aea_1069_a2d8_08002b30309d);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CLSID_MyDocuments: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x450d8fba_ad25_11d0_98a8_0800361b1103);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CLSID_NetworkDomain: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x46e06680_4bf0_11d1_83ee_00a0c90dc849);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CLSID_NetworkServer: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xc0542a90_4bf0_11d1_83ee_00a0c90dc849);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CLSID_NetworkShare: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x54a754c0_4bf0_11d1_83ee_00a0c90dc849);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CLSID_NewMenu: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xd969a300_e7ff_11d0_a93b_00a0c90f2719);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CLSID_Printers: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x2227a280_3aea_1069_a2de_08002b30309d);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CLSID_ProgressDialog: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xf8383852_fcd3_11d1_a6b9_006097df5bd4);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CLSID_QueryAssociations: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xa07034fd_6caa_4954_ac3f_97a27216f98a);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CLSID_QuickLinks: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x0e5cbf21_d15f_11d0_8301_00aa005b4383);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CLSID_RecycleBin: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x645ff040_5081_101b_9f08_00aa002f954e);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CLSID_ShellFldSetExt: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x6d5313c0_8c62_11d1_b2cd_006097df8c11);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CLSID_ShellThumbnailDiskCache: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x1ebdcf80_a200_11d0_a3a4_00c04fd706ec);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CLSID_ToolbarExtButtons: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x2ce4b5d8_a28f_11d2_86c5_00c04f8eea99);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CMDID_INTSHORTCUTCREATE: i32 = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CMDSTR_NEWFOLDER: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("NewFolder");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CMDSTR_NEWFOLDERA: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("NewFolder");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CMDSTR_NEWFOLDERW: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("NewFolder");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CMDSTR_VIEWDETAILS: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("ViewDetails");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CMDSTR_VIEWDETAILSA: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("ViewDetails");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CMDSTR_VIEWDETAILSW: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("ViewDetails");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CMDSTR_VIEWLIST: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("ViewList");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CMDSTR_VIEWLISTA: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("ViewList");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CMDSTR_VIEWLISTW: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("ViewList");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CMF_ASYNCVERBSTATE: u32 = 1024u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CMF_CANRENAME: u32 = 16u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CMF_DEFAULTONLY: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CMF_DISABLEDVERBS: u32 = 512u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CMF_DONOTPICKDEFAULT: u32 = 8192u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CMF_EXPLORE: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CMF_EXTENDEDVERBS: u32 = 256u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CMF_INCLUDESTATIC: u32 = 64u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CMF_ITEMMENU: u32 = 128u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CMF_NODEFAULT: u32 = 32u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CMF_NORMAL: u32 = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CMF_NOVERBS: u32 = 8u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CMF_OPTIMIZEFORINVOKE: u32 = 2048u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CMF_RESERVED: u32 = 4294901760u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CMF_SYNCCASCADEMENU: u32 = 4096u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CMF_VERBSONLY: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CMIC_MASK_CONTROL_DOWN: u32 = 1073741824u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CMIC_MASK_PTINVOKE: u32 = 536870912u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CMIC_MASK_SHIFT_DOWN: u32 = 268435456u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COMPONENT_DEFAULT_LEFT: u32 = 65535u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COMPONENT_DEFAULT_TOP: u32 = 65535u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COMPONENT_TOP: u32 = 1073741823u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COMP_ELEM_CHECKED: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COMP_ELEM_CURITEMSTATE: u32 = 16384u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COMP_ELEM_DIRTY: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COMP_ELEM_FRIENDLYNAME: u32 = 1024u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COMP_ELEM_NOSCROLL: u32 = 8u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COMP_ELEM_ORIGINAL_CSI: u32 = 4096u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COMP_ELEM_POS_LEFT: u32 = 16u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COMP_ELEM_POS_TOP: u32 = 32u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COMP_ELEM_POS_ZINDEX: u32 = 256u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COMP_ELEM_RESTORED_CSI: u32 = 8192u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COMP_ELEM_SIZE_HEIGHT: u32 = 128u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COMP_ELEM_SIZE_WIDTH: u32 = 64u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COMP_ELEM_SOURCE: u32 = 512u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COMP_ELEM_SUBSCRIBEDURL: u32 = 2048u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COMP_ELEM_TYPE: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COMP_TYPE_CFHTML: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COMP_TYPE_CONTROL: u32 = 3u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COMP_TYPE_HTMLDOC: u32 = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COMP_TYPE_MAX: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COMP_TYPE_PICTURE: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COMP_TYPE_WEBSITE: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CONFLICT_RESOLUTION_CLSID_KEY: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("ConflictResolutionCLSID");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_ACCESSDENIED_READONLY: ::windows_sys::core::HRESULT = -2144927681i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_ACCESS_DENIED_DEST: ::windows_sys::core::HRESULT = -2144927710i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_ACCESS_DENIED_SRC: ::windows_sys::core::HRESULT = -2144927711i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_ALREADY_EXISTS_FOLDER: ::windows_sys::core::HRESULT = -2144927700i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_ALREADY_EXISTS_NORMAL: ::windows_sys::core::HRESULT = -2144927703i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_ALREADY_EXISTS_READONLY: ::windows_sys::core::HRESULT = -2144927702i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_ALREADY_EXISTS_SYSTEM: ::windows_sys::core::HRESULT = -2144927701i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_BLOCKED_BY_DLP_POLICY: ::windows_sys::core::HRESULT = -2144927666i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_BLOCKED_BY_EDP_FOR_REMOVABLE_DRIVE: ::windows_sys::core::HRESULT = -2144927670i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_BLOCKED_BY_EDP_POLICY: ::windows_sys::core::HRESULT = -2144927672i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_CANCELLED: ::windows_sys::core::HRESULT = -2144927743i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_CANNOT_MOVE_FROM_RECYCLE_BIN: ::windows_sys::core::HRESULT = -2144927677i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_CANNOT_MOVE_SHARED_FOLDER: ::windows_sys::core::HRESULT = -2144927676i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_CANT_REACH_SOURCE: ::windows_sys::core::HRESULT = -2144927691i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_DEST_IS_RO_CD: ::windows_sys::core::HRESULT = -2144927729i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_DEST_IS_RO_DVD: ::windows_sys::core::HRESULT = -2144927726i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_DEST_IS_RW_CD: ::windows_sys::core::HRESULT = -2144927728i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_DEST_IS_RW_DVD: ::windows_sys::core::HRESULT = -2144927725i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_DEST_IS_R_CD: ::windows_sys::core::HRESULT = -2144927727i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_DEST_IS_R_DVD: ::windows_sys::core::HRESULT = -2144927724i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_DEST_SAME_TREE: ::windows_sys::core::HRESULT = -2144927734i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_DEST_SUBTREE: ::windows_sys::core::HRESULT = -2144927735i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_DIFF_DIR: ::windows_sys::core::HRESULT = -2144927740i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_DIR_NOT_EMPTY: ::windows_sys::core::HRESULT = -2144927683i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_DISK_FULL: ::windows_sys::core::HRESULT = -2144927694i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_DISK_FULL_CLEAN: ::windows_sys::core::HRESULT = -2144927693i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_EA_LOSS: ::windows_sys::core::HRESULT = -2144927698i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_EA_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2144927692i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_ENCRYPTION_LOSS: ::windows_sys::core::HRESULT = -2144927695i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_FAT_MAX_IN_ROOT: ::windows_sys::core::HRESULT = -2144927682i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_FILE_IS_FLD_DEST: ::windows_sys::core::HRESULT = -2144927732i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_FILE_TOO_LARGE: ::windows_sys::core::HRESULT = -2144927731i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_FLD_IS_FILE_DEST: ::windows_sys::core::HRESULT = -2144927733i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_INTERNET_ITEM_STORAGE_PROVIDER_ERROR: ::windows_sys::core::HRESULT = -2144927675i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_INTERNET_ITEM_STORAGE_PROVIDER_PAUSED: ::windows_sys::core::HRESULT = -2144927674i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_INTERNET_ITEM_UNAVAILABLE: ::windows_sys::core::HRESULT = -2144927678i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_INVALID_FILES_DEST: ::windows_sys::core::HRESULT = -2144927716i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_INVALID_FILES_SRC: ::windows_sys::core::HRESULT = -2144927717i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_MANY_SRC_1_DEST: ::windows_sys::core::HRESULT = -2144927739i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_NET_DISCONNECT_DEST: ::windows_sys::core::HRESULT = -2144927706i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_NET_DISCONNECT_SRC: ::windows_sys::core::HRESULT = -2144927707i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_NEWFILE_NAME_TOO_LONG: ::windows_sys::core::HRESULT = -2144927685i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_NEWFOLDER_NAME_TOO_LONG: ::windows_sys::core::HRESULT = -2144927684i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_PATH_NOT_FOUND_DEST: ::windows_sys::core::HRESULT = -2144927708i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_PATH_NOT_FOUND_SRC: ::windows_sys::core::HRESULT = -2144927709i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_PATH_TOO_DEEP_DEST: ::windows_sys::core::HRESULT = -2144927714i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_PATH_TOO_DEEP_SRC: ::windows_sys::core::HRESULT = -2144927715i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_PROPERTIES_LOSS: ::windows_sys::core::HRESULT = -2144927696i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_PROPERTY_LOSS: ::windows_sys::core::HRESULT = -2144927697i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_RECYCLE_BIN_NOT_FOUND: ::windows_sys::core::HRESULT = -2144927686i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_RECYCLE_FORCE_NUKE: ::windows_sys::core::HRESULT = -2144927690i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_RECYCLE_PATH_TOO_LONG: ::windows_sys::core::HRESULT = -2144927688i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_RECYCLE_SIZE_TOO_BIG: ::windows_sys::core::HRESULT = -2144927689i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_RECYCLE_UNKNOWN_ERROR: ::windows_sys::core::HRESULT = -2144927691i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_REDIRECTED_TO_WEBPAGE: ::windows_sys::core::HRESULT = -2144927680i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_REMOVABLE_FULL: ::windows_sys::core::HRESULT = -2144927730i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_REQUIRES_EDP_CONSENT: ::windows_sys::core::HRESULT = -2144927673i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_REQUIRES_EDP_CONSENT_FOR_REMOVABLE_DRIVE: ::windows_sys::core::HRESULT = -2144927671i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_REQUIRES_ELEVATION: ::windows_sys::core::HRESULT = -2144927742i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_RMS_BLOCKED_BY_EDP_FOR_REMOVABLE_DRIVE: ::windows_sys::core::HRESULT = -2144927668i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_RMS_REQUIRES_EDP_CONSENT_FOR_REMOVABLE_DRIVE: ::windows_sys::core::HRESULT = -2144927669i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_ROOT_DIR_DEST: ::windows_sys::core::HRESULT = -2144927712i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_ROOT_DIR_SRC: ::windows_sys::core::HRESULT = -2144927713i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_SAME_FILE: ::windows_sys::core::HRESULT = -2144927741i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_SERVER_BAD_FILE_TYPE: ::windows_sys::core::HRESULT = -2144927679i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_SHARING_VIOLATION_DEST: ::windows_sys::core::HRESULT = -2144927704i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_SHARING_VIOLATION_SRC: ::windows_sys::core::HRESULT = -2144927705i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_SILENT_FAIL_BY_DLP_POLICY: ::windows_sys::core::HRESULT = -2144927665i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_SRC_IS_RO_CD: ::windows_sys::core::HRESULT = -2144927723i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_SRC_IS_RO_DVD: ::windows_sys::core::HRESULT = -2144927720i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_SRC_IS_RW_CD: ::windows_sys::core::HRESULT = -2144927722i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_SRC_IS_RW_DVD: ::windows_sys::core::HRESULT = -2144927719i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_SRC_IS_R_CD: ::windows_sys::core::HRESULT = -2144927721i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_SRC_IS_R_DVD: ::windows_sys::core::HRESULT = -2144927718i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_STREAM_LOSS: ::windows_sys::core::HRESULT = -2144927699i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_USER_CANCELLED: ::windows_sys::core::HRESULT = -2144927744i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_E_WARNED_BY_DLP_POLICY: ::windows_sys::core::HRESULT = -2144927667i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_S_ALREADY_DONE: ::windows_sys::core::HRESULT = 2555914i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_S_CLOSE_PROGRAM: ::windows_sys::core::HRESULT = 2555917i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_S_COLLISIONRESOLVED: ::windows_sys::core::HRESULT = 2555918i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_S_DONT_PROCESS_CHILDREN: ::windows_sys::core::HRESULT = 2555912i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_S_KEEP_BOTH: ::windows_sys::core::HRESULT = 2555916i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_S_MERGE: ::windows_sys::core::HRESULT = 2555910i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_S_NOT_HANDLED: ::windows_sys::core::HRESULT = 2555907i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_S_PENDING: ::windows_sys::core::HRESULT = 2555915i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_S_PROGRESS_PAUSE: ::windows_sys::core::HRESULT = 2555919i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_S_USER_IGNORED: ::windows_sys::core::HRESULT = 2555909i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_S_USER_RETRY: ::windows_sys::core::HRESULT = 2555908i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const COPYENGINE_S_YES: ::windows_sys::core::HRESULT = 2555905i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPFG_CREDENTIAL_PROVIDER_LABEL: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x286bbff3_bad4_438f_b007_79b7267c3d48);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPFG_CREDENTIAL_PROVIDER_LOGO: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x2d837775_f6cd_464e_a745_482fd0b47493);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPFG_LOGON_PASSWORD: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x60624cfa_a477_47b1_8a8e_3a4a19981827);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPFG_LOGON_USERNAME: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xda15bbe8_954d_4fd3_b0f4_1fb5b90b174b);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPFG_SMARTCARD_PIN: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x4fe5263b_9181_46c1_b0a4_9dedd4db7dea);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPFG_SMARTCARD_USERNAME: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x3e1ecf69_568c_4d96_9d59_46444174e2d6);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPFG_STANDALONE_SUBMIT_BUTTON: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x0b7b0ad8_cc36_4d59_802b_82f714fa7022);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPFG_STYLE_LINK_AS_BUTTON: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x088fa508_94a6_4430_a4cb_6fc6e3c0b9e2);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPLPAGE_DISPLAY_BACKGROUND: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPLPAGE_KEYBOARD_SPEED: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPLPAGE_MOUSE_BUTTONS: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPLPAGE_MOUSE_PTRMOTION: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPLPAGE_MOUSE_WHEEL: u32 = 3u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPL_DBLCLK: u32 = 5u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPL_DYNAMIC_RES: u32 = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPL_EXIT: u32 = 7u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPL_GETCOUNT: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPL_INIT: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPL_INQUIRE: u32 = 3u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPL_NEWINQUIRE: u32 = 8u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPL_SELECT: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPL_SETUP: u32 = 200u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPL_STARTWPARMS: u32 = 10u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPL_STARTWPARMSA: u32 = 9u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPL_STARTWPARMSW: u32 = 10u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPL_STOP: u32 = 6u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CREDENTIAL_PROVIDER_NO_DEFAULT: u32 = 4294967295u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_ADMINTOOLS: u32 = 48u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_ALTSTARTUP: u32 = 29u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_APPDATA: u32 = 26u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_BITBUCKET: u32 = 10u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_CDBURN_AREA: u32 = 59u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_COMMON_ADMINTOOLS: u32 = 47u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_COMMON_ALTSTARTUP: u32 = 30u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_COMMON_APPDATA: u32 = 35u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_COMMON_DESKTOPDIRECTORY: u32 = 25u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_COMMON_DOCUMENTS: u32 = 46u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_COMMON_FAVORITES: u32 = 31u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_COMMON_MUSIC: u32 = 53u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_COMMON_OEM_LINKS: u32 = 58u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_COMMON_PICTURES: u32 = 54u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_COMMON_PROGRAMS: u32 = 23u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_COMMON_STARTMENU: u32 = 22u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_COMMON_STARTUP: u32 = 24u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_COMMON_TEMPLATES: u32 = 45u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_COMMON_VIDEO: u32 = 55u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_COMPUTERSNEARME: u32 = 61u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_CONNECTIONS: u32 = 49u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_CONTROLS: u32 = 3u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_COOKIES: u32 = 33u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_DESKTOP: u32 = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_DESKTOPDIRECTORY: u32 = 16u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_DRIVES: u32 = 17u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_FAVORITES: u32 = 6u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_FLAG_CREATE: u32 = 32768u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_FLAG_DONT_UNEXPAND: u32 = 8192u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_FLAG_DONT_VERIFY: u32 = 16384u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_FLAG_MASK: u32 = 65280u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_FLAG_NO_ALIAS: u32 = 4096u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_FLAG_PER_USER_INIT: u32 = 2048u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_FLAG_PFTI_TRACKTARGET: u32 = 16384u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_FONTS: u32 = 20u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_HISTORY: u32 = 34u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_INTERNET: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_INTERNET_CACHE: u32 = 32u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_LOCAL_APPDATA: u32 = 28u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_MYDOCUMENTS: u32 = 5u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_MYMUSIC: u32 = 13u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_MYPICTURES: u32 = 39u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_MYVIDEO: u32 = 14u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_NETHOOD: u32 = 19u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_NETWORK: u32 = 18u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_PERSONAL: u32 = 5u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_PRINTERS: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_PRINTHOOD: u32 = 27u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_PROFILE: u32 = 40u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_PROGRAMS: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_PROGRAM_FILES: u32 = 38u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_PROGRAM_FILESX86: u32 = 42u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_PROGRAM_FILES_COMMON: u32 = 43u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_PROGRAM_FILES_COMMONX86: u32 = 44u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_RECENT: u32 = 8u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_RESOURCES: u32 = 56u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_RESOURCES_LOCALIZED: u32 = 57u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_SENDTO: u32 = 9u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_STARTMENU: u32 = 11u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_STARTUP: u32 = 7u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_SYSTEM: u32 = 37u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_SYSTEMX86: u32 = 41u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_TEMPLATES: u32 = 21u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSIDL_WINDOWS: u32 = 36u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CScriptErrorList: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xefd01300_160f_11d2_bb2e_00805ff7efca);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CTF_COINIT: i32 = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CTF_COINIT_MTA: i32 = 4096i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CTF_COINIT_STA: i32 = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CTF_FREELIBANDEXIT: i32 = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CTF_INHERITWOW64: i32 = 256i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CTF_INSIST: i32 = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CTF_KEYBOARD_LOCALE: i32 = 1024i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CTF_NOADDREFLIB: i32 = 8192i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CTF_OLEINITIALIZE: i32 = 2048i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CTF_PROCESS_REF: i32 = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CTF_REF_COUNTED: i32 = 32i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CTF_THREAD_REF: i32 = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CTF_UNUSED: i32 = 128i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CTF_WAIT_ALLOWCOM: i32 = 64i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CTF_WAIT_NO_REENTRANCY: i32 = 512i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ConflictFolder: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x289978ac_a101_4341_a817_21eba7fd046d);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DBCID_CLSIDOFBAR: i32 = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DBCID_EMPTY: i32 = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DBCID_GETBAR: i32 = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DBCID_ONDRAG: i32 = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DBCID_RESIZE: i32 = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DBCID_UPDATESIZE: i32 = 5i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DBC_GS_IDEAL: u32 = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DBC_GS_SIZEDOWN: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DBC_HIDE: u32 = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DBC_SHOW: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DBC_SHOWOBSCURE: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DBIF_VIEWMODE_FLOATING: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DBIF_VIEWMODE_NORMAL: u32 = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DBIF_VIEWMODE_TRANSPARENT: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DBIF_VIEWMODE_VERTICAL: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DBIMF_ADDTOFRONT: u32 = 512u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DBIMF_ALWAYSGRIPPER: u32 = 4096u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DBIMF_BKCOLOR: u32 = 64u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DBIMF_BREAK: u32 = 256u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DBIMF_DEBOSSED: u32 = 32u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DBIMF_FIXED: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DBIMF_FIXEDBMP: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DBIMF_NOGRIPPER: u32 = 2048u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DBIMF_NOMARGINS: u32 = 8192u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DBIMF_NORMAL: u32 = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DBIMF_TOPALIGN: u32 = 1024u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DBIMF_UNDELETEABLE: u32 = 16u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DBIMF_USECHEVRON: u32 = 128u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DBIMF_VARIABLEHEIGHT: u32 = 8u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DBIM_ACTUAL: u32 = 8u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DBIM_BKCOLOR: u32 = 64u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DBIM_INTEGRAL: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DBIM_MAXSIZE: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DBIM_MINSIZE: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DBIM_MODEFLAGS: u32 = 32u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DBIM_TITLE: u32 = 16u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DBPC_SELECTFIRST: u32 = 4294967295u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DISPID_BEGINDRAG: u32 = 204u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DISPID_CHECKSTATECHANGED: u32 = 209u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DISPID_COLUMNSCHANGED: u32 = 212u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DISPID_CONTENTSCHANGED: u32 = 207u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DISPID_CTRLMOUSEWHEEL: u32 = 213u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DISPID_DEFAULTVERBINVOKED: u32 = 203u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DISPID_ENTERPRESSED: u32 = 200u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DISPID_ENTERPRISEIDCHANGED: u32 = 224u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DISPID_EXPLORERWINDOWREADY: u32 = 221u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DISPID_FILELISTENUMDONE: u32 = 201u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DISPID_FILTERINVOKED: u32 = 218u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DISPID_FOCUSCHANGED: u32 = 208u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DISPID_FOLDERCHANGED: u32 = 217u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DISPID_IADCCTL_DEFAULTCAT: u32 = 262u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DISPID_IADCCTL_DIRTY: u32 = 256u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DISPID_IADCCTL_FORCEX86: u32 = 259u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DISPID_IADCCTL_ONDOMAIN: u32 = 261u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DISPID_IADCCTL_PUBCAT: u32 = 257u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DISPID_IADCCTL_SHOWPOSTSETUP: u32 = 260u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DISPID_IADCCTL_SORT: u32 = 258u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DISPID_ICONSIZECHANGED: u32 = 215u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DISPID_INITIALENUMERATIONDONE: u32 = 223u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DISPID_NOITEMSTATE_CHANGED: u32 = 206u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DISPID_ORDERCHANGED: u32 = 210u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DISPID_SEARCHCOMMAND_ABORT: u32 = 3u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DISPID_SEARCHCOMMAND_COMPLETE: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DISPID_SEARCHCOMMAND_ERROR: u32 = 6u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DISPID_SEARCHCOMMAND_PROGRESSTEXT: u32 = 5u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DISPID_SEARCHCOMMAND_RESTORE: u32 = 7u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DISPID_SEARCHCOMMAND_START: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DISPID_SEARCHCOMMAND_UPDATE: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DISPID_SELECTEDITEMCHANGED: u32 = 220u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DISPID_SELECTIONCHANGED: u32 = 200u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DISPID_SORTDONE: u32 = 214u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DISPID_UPDATEIMAGE: u32 = 222u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DISPID_VERBINVOKED: u32 = 202u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DISPID_VIEWMODECHANGED: u32 = 205u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DISPID_VIEWPAINTDONE: u32 = 211u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DISPID_WORDWHEELEDITED: u32 = 219u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DI_GETDRAGIMAGE: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("ShellGetDragImage");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DLG_SCRNSAVECONFIGURE: u32 = 2003u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DLLVER_BUILD_MASK: u64 = 4294901760u64;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DLLVER_MAJOR_MASK: u64 = 18446462598732840960u64;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DLLVER_MINOR_MASK: u64 = 281470681743360u64;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DLLVER_PLATFORM_NT: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DLLVER_PLATFORM_WINDOWS: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DLLVER_QFE_MASK: u64 = 65535u64;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DVASPECT_COPY: u32 = 3u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DVASPECT_LINK: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DVASPECT_SHORTNAME: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DWFAF_AUTOHIDE: u32 = 16u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DWFAF_GROUP1: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DWFAF_GROUP2: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DWFAF_HIDDEN: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DWFRF_DELETECONFIGDATA: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DWFRF_NORMAL: u32 = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DefFolderMenu: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xc63382be_7933_48d0_9ac8_85fb46be2fdd);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DesktopGadget: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x924ccc1b_6562_4c85_8657_d177925222b6);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DesktopWallpaper: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xc2cf3110_460e_4fc1_b9d0_8a1c0c9cc4bd);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DestinationList: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x77f10cf0_3db5_4966_b520_b7c54fd35ed6);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DocPropShellExtension: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x883373c3_bf89_11d1_be35_080036b11a03);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DriveSizeCategorizer: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x94357b53_ca29_4b78_83ae_e8fe7409134f);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DriveTypeCategorizer: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xb0a8f3cf_4333_4bab_8873_1ccb1cada48b);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const EP_AdvQueryPane: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xb4e9db8b_34ba_4c39_b5cc_16a1bd2c411c);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const EP_Commands: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xd9745868_ca5f_4a76_91cd_f5a129fbb076);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const EP_Commands_Organize: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x72e81700_e3ec_4660_bf24_3c3b7b648806);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const EP_Commands_View: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x21f7c32d_eeaa_439b_bb51_37b96fd6a943);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const EP_DetailsPane: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x43abf98b_89b8_472d_b9ce_e69b8229f019);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const EP_NavPane: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xcb316b22_25f7_42b8_8a09_540d23a43c2f);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const EP_PreviewPane: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x893c63d1_45c8_4d17_be19_223be71be365);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const EP_QueryPane: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x65bcde4f_4f07_4f27_83a7_1afca4df7ddd);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const EP_Ribbon: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xd27524a8_c9f2_4834_a106_df8889fd4f37);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const EP_StatusBar: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x65fe56ce_5cfe_4bc4_ad8a_7ae3fe7e8f7c);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const EXECUTE_E_LAUNCH_APPLICATION: ::windows_sys::core::HRESULT = -2144927487i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const EXP_DARWIN_ID_SIG: u32 = 2684354566u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const EXP_PROPERTYSTORAGE_SIG: u32 = 2684354569u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const EXP_SPECIAL_FOLDER_SIG: u32 = 2684354565u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const EXP_SZ_ICON_SIG: u32 = 2684354567u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const EXP_SZ_LINK_SIG: u32 = 2684354561u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const E_ACTIVATIONDENIED_SHELLERROR: ::windows_sys::core::HRESULT = -2144927439i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const E_ACTIVATIONDENIED_SHELLNOTREADY: ::windows_sys::core::HRESULT = -2144927436i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const E_ACTIVATIONDENIED_SHELLRESTART: ::windows_sys::core::HRESULT = -2144927438i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const E_ACTIVATIONDENIED_UNEXPECTED: ::windows_sys::core::HRESULT = -2144927437i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const E_ACTIVATIONDENIED_USERCLOSE: ::windows_sys::core::HRESULT = -2144927440i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const E_FILE_PLACEHOLDER_NOT_INITIALIZED: ::windows_sys::core::HRESULT = -2144927472i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const E_FILE_PLACEHOLDER_SERVER_TIMED_OUT: ::windows_sys::core::HRESULT = -2144927470i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const E_FILE_PLACEHOLDER_STORAGEPROVIDER_NOT_FOUND: ::windows_sys::core::HRESULT = -2144927469i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const E_FILE_PLACEHOLDER_VERSION_MISMATCH: ::windows_sys::core::HRESULT = -2144927471i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const E_FLAGS: ::windows_sys::core::HRESULT = -2147217408i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const E_IMAGEFEED_CHANGEDISABLED: ::windows_sys::core::HRESULT = -2144926960i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const E_NOTVALIDFORANIMATEDIMAGE: ::windows_sys::core::HRESULT = -2147221503i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const E_PREVIEWHANDLER_CORRUPT: ::windows_sys::core::HRESULT = -2042494972i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const E_PREVIEWHANDLER_DRM_FAIL: ::windows_sys::core::HRESULT = -2042494975i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const E_PREVIEWHANDLER_NOAUTH: ::windows_sys::core::HRESULT = -2042494974i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const E_PREVIEWHANDLER_NOTFOUND: ::windows_sys::core::HRESULT = -2042494973i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const E_SHELL_EXTENSION_BLOCKED: ::windows_sys::core::HRESULT = -2144926975i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const E_TILE_NOTIFICATIONS_PLATFORM_FAILURE: ::windows_sys::core::HRESULT = -2144927159i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const E_USERTILE_CHANGEDISABLED: ::windows_sys::core::HRESULT = -2144927215i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const E_USERTILE_FILESIZE: ::windows_sys::core::HRESULT = -2144927212i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const E_USERTILE_LARGEORDYNAMIC: ::windows_sys::core::HRESULT = -2144927214i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const E_USERTILE_UNSUPPORTEDFILETYPE: ::windows_sys::core::HRESULT = -2144927216i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const E_USERTILE_VIDEOFRAMESIZE: ::windows_sys::core::HRESULT = -2144927213i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const EnumerableObjectCollection: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x2d3468c1_36a7_43b6_ac24_d3f02fd9607a);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ExecuteFolder: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x11dbb47c_a525_400b_9e80_a54615a090c0);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ExecuteUnknown: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xe44e9428_bdbc_4987_a099_40dc8fd255e7);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ExplorerBrowser: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x71f96385_ddd6_48d3_a0c1_ae06e8b055fb);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FCIDM_BROWSERFIRST: u32 = 40960u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FCIDM_BROWSERLAST: u32 = 48896u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FCIDM_GLOBALFIRST: u32 = 32768u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FCIDM_GLOBALLAST: u32 = 40959u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FCIDM_MENU_EDIT: u32 = 32832u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FCIDM_MENU_EXPLORE: u32 = 33104u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FCIDM_MENU_FAVORITES: u32 = 33136u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FCIDM_MENU_FILE: u32 = 32768u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FCIDM_MENU_FIND: u32 = 33088u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FCIDM_MENU_HELP: u32 = 33024u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FCIDM_MENU_TOOLS: u32 = 32960u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FCIDM_MENU_TOOLS_SEP_GOTO: u32 = 32961u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FCIDM_MENU_VIEW: u32 = 32896u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FCIDM_MENU_VIEW_SEP_OPTIONS: u32 = 32897u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FCIDM_SHVIEWFIRST: u32 = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FCIDM_SHVIEWLAST: u32 = 32767u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FCIDM_STATUS: u32 = 40961u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FCIDM_TOOLBAR: u32 = 40960u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FCSM_CLSID: u32 = 8u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FCSM_FLAGS: u32 = 64u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FCSM_ICONFILE: u32 = 16u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FCSM_INFOTIP: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FCSM_LOGO: u32 = 32u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FCSM_VIEWID: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FCSM_WEBVIEWTEMPLATE: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FCS_FLAG_DRAGDROP: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FCS_FORCEWRITE: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FCS_READ: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FCT_ADDTOEND: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FCT_CONFIGABLE: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FCT_MERGE: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FCW_INTERNETBAR: u32 = 6u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FCW_PROGRESS: u32 = 8u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FCW_STATUS: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FCW_TOOLBAR: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FCW_TREE: u32 = 3u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FDTF_LONGDATE: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FDTF_LONGTIME: u32 = 8u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FDTF_LTRDATE: u32 = 256u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FDTF_NOAUTOREADINGORDER: u32 = 1024u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FDTF_RELATIVE: u32 = 16u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FDTF_RTLDATE: u32 = 512u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FDTF_SHORTDATE: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FDTF_SHORTTIME: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FMTID_Briefcase: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x328d8b21_7729_4bfc_954c_902b329d56b0);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FMTID_CustomImageProperties: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x7ecd8b0e_c136_4a9b_9411_4ebd6673ccc3);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FMTID_DRM: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xaeac19e4_89ae_4508_b9b7_bb867abee2ed);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FMTID_Displaced: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x9b174b33_40ff_11d2_a27e_00c04fc30871);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FMTID_ImageProperties: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x14b81da1_0135_4d31_96d9_6cbfc9671a99);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FMTID_InternetSite: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x000214a1_0000_0000_c000_000000000046);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FMTID_Intshcut: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x000214a0_0000_0000_c000_000000000046);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FMTID_LibraryProperties: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x5d76b67f_9b3d_44bb_b6ae_25da4f638a67);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FMTID_MUSIC: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x56a3372e_ce9c_11d2_9f0e_006097c686f6);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FMTID_Misc: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x9b174b34_40ff_11d2_a27e_00c04fc30871);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FMTID_Query: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x49691c90_7e17_101a_a91c_08002b2ecda9);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FMTID_ShellDetails: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x28636aa6_953d_11d2_b5d6_00c04fd918d0);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FMTID_Storage: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xb725f130_47ef_101a_a5f1_02608c9eebac);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FMTID_Volume: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x9b174b35_40ff_11d2_a27e_00c04fc30871);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FMTID_WebView: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xf2275480_f782_4291_bd94_f13693513aec);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOFX_ADDUNDORECORD: u32 = 536870912u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOFX_COPYASDOWNLOAD: u32 = 1073741824u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOFX_DONTDISPLAYDESTPATH: u32 = 134217728u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOFX_DONTDISPLAYLOCATIONS: u32 = 2147483648u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOFX_DONTDISPLAYSOURCEPATH: u32 = 67108864u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOFX_EARLYFAILURE: u32 = 1048576u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOFX_KEEPNEWERFILE: u32 = 4194304u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOFX_MOVEACLSACROSSVOLUMES: u32 = 33554432u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOFX_NOCOPYHOOKS: u32 = 8388608u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOFX_NOMINIMIZEBOX: u32 = 16777216u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOFX_NOSKIPJUNCTIONS: u32 = 65536u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOFX_PREFERHARDLINK: u32 = 131072u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOFX_PRESERVEFILEEXTENSIONS: u32 = 2097152u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOFX_RECYCLEONDELETE: u32 = 524288u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOFX_REQUIREELEVATION: u32 = 268435456u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOFX_SHOWELEVATIONPROMPT: u32 = 262144u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOF_ALLOWUNDO: u32 = 64u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOF_CONFIRMMOUSE: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOF_FILESONLY: u32 = 128u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOF_MULTIDESTFILES: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOF_NOCONFIRMATION: u32 = 16u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOF_NOCONFIRMMKDIR: u32 = 512u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOF_NOCOPYSECURITYATTRIBS: u32 = 2048u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOF_NOERRORUI: u32 = 1024u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOF_NORECURSEREPARSE: u32 = 32768u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOF_NORECURSION: u32 = 4096u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOF_NO_CONNECTED_ELEMENTS: u32 = 8192u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOF_RENAMEONCOLLISION: u32 = 8u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOF_SILENT: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOF_SIMPLEPROGRESS: u32 = 256u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOF_WANTMAPPINGHANDLE: u32 = 32u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOF_WANTNUKEWARNING: u32 = 16384u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_AccountPictures: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x008ca0b1_55b4_4c56_b8a8_4de4b299d3be);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_AddNewPrograms: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xde61d971_5ebc_4f02_a3a9_6c82895e5c04);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_AdminTools: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x724ef170_a42d_4fef_9f26_b60e846fba4f);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_AllAppMods: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x7ad67899_66af_43ba_9156_6aad42e6c596);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_AppCaptures: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xedc0fe71_98d8_4f4a_b920_c8dc133cb165);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_AppDataDesktop: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xb2c5e279_7add_439f_b28c_c41fe1bbf672);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_AppDataDocuments: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x7be16610_1f7f_44ac_bff0_83e15f2ffca1);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_AppDataFavorites: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x7cfbefbc_de1f_45aa_b843_a542ac536cc9);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_AppDataProgramData: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x559d40a3_a036_40fa_af61_84cb430a4d34);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_AppUpdates: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xa305ce99_f527_492b_8b1a_7e76fa98d6e4);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_ApplicationShortcuts: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xa3918781_e5f2_4890_b3d9_a7e54332328c);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_AppsFolder: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x1e87508d_89c2_42f0_8a7e_645a0f50ca58);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_CDBurning: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x9e52ab10_f80d_49df_acb8_4330f5687855);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_CameraRoll: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xab5fb87b_7ce2_4f83_915d_550846c9537b);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_CameraRollLibrary: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x2b20df75_1eda_4039_8097_38798227d5b7);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_ChangeRemovePrograms: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xdf7266ac_9274_4867_8d55_3bd661de872d);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_CommonAdminTools: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xd0384e7d_bac3_4797_8f14_cba229b392b5);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_CommonOEMLinks: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xc1bae2d0_10df_4334_bedd_7aa20b227a9d);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_CommonPrograms: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x0139d44e_6afe_49f2_8690_3dafcae6ffb8);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_CommonStartMenu: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xa4115719_d62e_491d_aa7c_e74b8be3b067);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_CommonStartMenuPlaces: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xa440879f_87a0_4f7d_b700_0207b966194a);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_CommonStartup: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x82a5ea35_d9cd_47c5_9629_e15d2f714e6e);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_CommonTemplates: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xb94237e7_57ac_4347_9151_b08c6c32d1f7);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_ComputerFolder: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x0ac0837c_bbf8_452a_850d_79d08e667ca7);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_ConflictFolder: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x4bfefb45_347d_4006_a5be_ac0cb0567192);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_ConnectionsFolder: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x6f0cd92b_2e97_45d1_88ff_b0d186b8dedd);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_Contacts: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x56784854_c6cb_462b_8169_88e350acb882);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_ControlPanelFolder: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x82a74aeb_aeb4_465c_a014_d097ee346d63);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_Cookies: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x2b0f765d_c0e9_4171_908e_08a611b84ff6);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_CurrentAppMods: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x3db40b20_2a30_4dbe_917e_771dd21dd099);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_Desktop: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xb4bfcc3a_db2c_424c_b029_7fe99a87c641);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_DevelopmentFiles: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xdbe8e08e_3053_4bbc_b183_2a7b2b191e59);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_Device: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x1c2ac1dc_4358_4b6c_9733_af21156576f0);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_DeviceMetadataStore: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x5ce4a5e9_e4eb_479d_b89f_130c02886155);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_Documents: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xfdd39ad0_238f_46af_adb4_6c85480369c7);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_DocumentsLibrary: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x7b0db17d_9cd2_4a93_9733_46cc89022e7c);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_Downloads: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x374de290_123f_4565_9164_39c4925e467b);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_Favorites: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x1777f761_68ad_4d8a_87bd_30b759fa33dd);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_Fonts: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xfd228cb7_ae11_4ae3_864c_16f3910ab8fe);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_GameTasks: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x054fae61_4dd8_4787_80b6_090220c4b700);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_Games: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xcac52c1a_b53d_4edc_92d7_6b2e8ac19434);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_History: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xd9dc8a3b_b784_432e_a781_5a1130a75963);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_HomeGroup: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x52528a6b_b9e3_4add_b60d_588c2dba842d);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_HomeGroupCurrentUser: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x9b74b6a3_0dfd_4f11_9e78_5f7800f2e772);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_ImplicitAppShortcuts: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xbcb5256f_79f6_4cee_b725_dc34e402fd46);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_InternetCache: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x352481e8_33be_4251_ba85_6007caedcf9d);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_InternetFolder: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x4d9f7874_4e0c_4904_967b_40b0d20c3e4b);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_Libraries: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x1b3ea5dc_b587_4786_b4ef_bd1dc332aeae);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_Links: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xbfb9d5e0_c6a9_404c_b2b2_ae6db6af4968);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_LocalAppData: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xf1b32785_6fba_4fcf_9d55_7b8e7f157091);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_LocalAppDataLow: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xa520a1a4_1780_4ff6_bd18_167343c5af16);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_LocalDocuments: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xf42ee2d3_909f_4907_8871_4c22fc0bf756);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_LocalDownloads: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x7d83ee9b_2244_4e70_b1f5_5393042af1e4);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_LocalMusic: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xa0c69a99_21c8_4671_8703_7934162fcf1d);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_LocalPictures: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x0ddd015d_b06c_45d5_8c4c_f59713854639);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_LocalStorage: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xb3eb08d3_a1f3_496b_865a_42b536cda0ec);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_LocalVideos: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x35286a68_3c57_41a1_bbb1_0eae73d76c95);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_LocalizedResourcesDir: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x2a00375e_224c_49de_b8d1_440df7ef3ddc);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_Music: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x4bd8d571_6d19_48d3_be97_422220080e43);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_MusicLibrary: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x2112ab0a_c86a_4ffe_a368_0de96e47012e);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_NetHood: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xc5abbf53_e17f_4121_8900_86626fc2c973);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_NetworkFolder: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xd20beec4_5ca8_4905_ae3b_bf251ea09b53);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_Objects3D: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x31c0dd25_9439_4f12_bf41_7ff4eda38722);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_OneDrive: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xa52bba46_e9e1_435f_b3d9_28daa648c0f6);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_OriginalImages: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x2c36c0aa_5812_4b87_bfd0_4cd0dfb19b39);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_PhotoAlbums: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x69d2cf90_fc33_4fb7_9a0c_ebb0f0fcb43c);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_Pictures: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x33e28130_4e1e_4676_835a_98395c3bc3bb);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_PicturesLibrary: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xa990ae9f_a03b_4e80_94bc_9912d7504104);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_Playlists: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xde92c1c7_837f_4f69_a3bb_86e631204a23);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_PrintHood: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x9274bd8d_cfd1_41c3_b35e_b13f55a758f4);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_PrintersFolder: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x76fc4e2d_d6ad_4519_a663_37bd56068185);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_Profile: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x5e6c858f_0e22_4760_9afe_ea3317b67173);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_ProgramData: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x62ab5d82_fdc1_4dc3_a9dd_070d1d495d97);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_ProgramFiles: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x905e63b6_c1bf_494e_b29c_65b732d3d21a);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_ProgramFilesCommon: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xf7f1ed05_9f6d_47a2_aaae_29d317c6f066);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_ProgramFilesCommonX64: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x6365d5a7_0f0d_45e5_87f6_0da56b6a4f7d);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_ProgramFilesCommonX86: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xde974d24_d9c6_4d3e_bf91_f4455120b917);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_ProgramFilesX64: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x6d809377_6af0_444b_8957_a3773f02200e);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_ProgramFilesX86: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x7c5a40ef_a0fb_4bfc_874a_c0f2e0b9fa8e);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_Programs: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xa77f5d77_2e2b_44c3_a6a2_aba601054a51);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_Public: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xdfdf76a2_c82a_4d63_906a_5644ac457385);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_PublicDesktop: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xc4aa340d_f20f_4863_afef_f87ef2e6ba25);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_PublicDocuments: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xed4824af_dce4_45a8_81e2_fc7965083634);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_PublicDownloads: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x3d644c9b_1fb8_4f30_9b45_f670235f79c0);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_PublicGameTasks: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xdebf2536_e1a8_4c59_b6a2_414586476aea);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_PublicLibraries: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x48daf80b_e6cf_4f4e_b800_0e69d84ee384);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_PublicMusic: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x3214fab5_9757_4298_bb61_92a9deaa44ff);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_PublicPictures: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xb6ebfb86_6907_413c_9af7_4fc2abf07cc5);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_PublicRingtones: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xe555ab60_153b_4d17_9f04_a5fe99fc15ec);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_PublicUserTiles: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x0482af6c_08f1_4c34_8c90_e17ec98b1e17);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_PublicVideos: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x2400183a_6185_49fb_a2d8_4a392a602ba3);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_QuickLaunch: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x52a4f021_7b75_48a9_9f6b_4b87a210bc8f);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_Recent: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xae50c081_ebd2_438a_8655_8a092e34987a);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_RecordedCalls: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x2f8b40c2_83ed_48ee_b383_a1f157ec6f9a);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_RecordedTVLibrary: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x1a6fdba2_f42d_4358_a798_b74d745926c5);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_RecycleBinFolder: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xb7534046_3ecb_4c18_be4e_64cd4cb7d6ac);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_ResourceDir: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x8ad10c31_2adb_4296_a8f7_e4701232c972);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_RetailDemo: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x12d4c69e_24ad_4923_be19_31321c43a767);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_Ringtones: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xc870044b_f49e_4126_a9c3_b52a1ff411e8);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_RoamedTileImages: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xaaa8d5a5_f1d6_4259_baa8_78e7ef60835e);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_RoamingAppData: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x3eb685db_65f9_4cf6_a03a_e3ef65729f3d);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_RoamingTiles: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x00bcfc5a_ed94_4e48_96a1_3f6217f21990);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_SEARCH_CSC: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xee32e446_31ca_4aba_814f_a5ebd2fd6d5e);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_SEARCH_MAPI: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x98ec0e18_2098_4d44_8644_66979315a281);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_SampleMusic: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xb250c668_f57d_4ee1_a63c_290ee7d1aa1f);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_SamplePictures: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xc4900540_2379_4c75_844b_64e6faf8716b);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_SamplePlaylists: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x15ca69b3_30ee_49c1_ace1_6b5ec372afb5);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_SampleVideos: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x859ead94_2e85_48ad_a71a_0969cb56a6cd);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_SavedGames: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x4c5c32ff_bb9d_43b0_b5b4_2d72e54eaaa4);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_SavedPictures: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x3b193882_d3ad_4eab_965a_69829d1fb59f);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_SavedPicturesLibrary: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xe25b5812_be88_4bd9_94b0_29233477b6c3);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_SavedSearches: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x7d1d3a04_debb_4115_95cf_2f29da2920da);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_Screenshots: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xb7bede81_df94_4682_a7d8_57a52620b86f);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_SearchHistory: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x0d4c3db6_03a3_462f_a0e6_08924c41b5d4);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_SearchHome: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x190337d1_b8ca_4121_a639_6d472d16972a);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_SearchTemplates: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x7e636bfe_dfa9_4d5e_b456_d7b39851d8a9);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_SendTo: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x8983036c_27c0_404b_8f08_102d10dcfd74);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_SidebarDefaultParts: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x7b396e54_9ec5_4300_be0a_2482ebae1a26);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_SidebarParts: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xa75d362e_50fc_4fb7_ac2c_a8beaa314493);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_SkyDrive: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xa52bba46_e9e1_435f_b3d9_28daa648c0f6);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_SkyDriveCameraRoll: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x767e6811_49cb_4273_87c2_20f355e1085b);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_SkyDriveDocuments: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x24d89e24_2f19_4534_9dde_6a6671fbb8fe);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_SkyDriveMusic: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xc3f2459e_80d6_45dc_bfef_1f769f2be730);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_SkyDrivePictures: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x339719b5_8c47_4894_94c2_d8f77add44a6);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_StartMenu: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x625b53c3_ab48_4ec1_ba1f_a1ef4146fc19);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_StartMenuAllPrograms: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xf26305ef_6948_40b9_b255_81453d09c785);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_Startup: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xb97d20bb_f46a_4c97_ba10_5e3608430854);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_SyncManagerFolder: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x43668bf8_c14e_49b2_97c9_747784d784b7);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_SyncResultsFolder: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x289a9a43_be44_4057_a41b_587a76d7e7f9);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_SyncSetupFolder: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x0f214138_b1d3_4a90_bba9_27cbc0c5389a);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_System: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x1ac14e77_02e7_4e5d_b744_2eb1ae5198b7);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_SystemX86: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xd65231b0_b2f1_4857_a4ce_a8e7c6ea7d27);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_Templates: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xa63293e8_664e_48db_a079_df759e0509f7);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_UserPinned: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x9e3995ab_1f9c_4f13_b827_48b24b6c7174);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_UserProfiles: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x0762d272_c50a_4bb0_a382_697dcd729b80);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_UserProgramFiles: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x5cd7aee2_2219_4a67_b85d_6c9ce15660cb);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_UserProgramFilesCommon: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xbcbd3057_ca5c_4622_b42d_bc56db0ae516);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_UsersFiles: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xf3ce0f7c_4901_4acc_8648_d5d44b04ef8f);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_UsersLibraries: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xa302545d_deff_464b_abe8_61c8648d939b);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_Videos: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x18989b1d_99b5_455b_841c_ab7c74e4ddfc);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_VideosLibrary: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x491e922f_5643_4af4_a7eb_4e7a138d8174);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERID_Windows: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xf38bf404_1d43_42f2_9305_67de0b28fc23);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERTYPEID_AccountPictures: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xdb2a5d8f_06e6_4007_aba6_af877d526ea6);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERTYPEID_Communications: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x91475fe5_586b_4eba_8d75_d17434b8cdf6);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERTYPEID_CompressedFolder: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x80213e82_bcfd_4c4f_8817_bb27601267a9);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERTYPEID_Contacts: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xde2b70ec_9bf7_4a93_bd3d_243f7881d492);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERTYPEID_ControlPanelCategory: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xde4f0660_fa10_4b8f_a494_068b20b22307);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERTYPEID_ControlPanelClassic: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x0c3794f3_b545_43aa_a329_c37430c58d2a);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERTYPEID_Documents: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x7d49d726_3c21_4f05_99aa_fdc2c9474656);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERTYPEID_Downloads: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x885a186e_a440_4ada_812b_db871b942259);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERTYPEID_Games: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xb689b0d0_76d3_4cbb_87f7_585d0e0ce070);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERTYPEID_Generic: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x5c4f28b5_f869_4e84_8e60_f11db97c5cc7);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERTYPEID_GenericLibrary: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x5f4eab9a_6833_4f61_899d_31cf46979d49);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERTYPEID_GenericSearchResults: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x7fde1a1e_8b31_49a5_93b8_6be14cfa4943);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERTYPEID_Invalid: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x57807898_8c4f_4462_bb63_71042380b109);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERTYPEID_Music: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x94d6ddcc_4a68_4175_a374_bd584a510b78);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERTYPEID_NetworkExplorer: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x25cc242b_9a7c_4f51_80e0_7a2928febe42);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERTYPEID_OpenSearch: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x8faf9629_1980_46ff_8023_9dceab9c3ee3);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERTYPEID_OtherUsers: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xb337fd00_9dd5_4635_a6d4_da33fd102b7a);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERTYPEID_Pictures: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xb3690e58_e961_423b_b687_386ebfd83239);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERTYPEID_Printers: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x2c7bbec6_c844_4a0a_91fa_cef6f59cfda1);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERTYPEID_PublishedItems: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x7f2f5b96_ff74_41da_afd8_1c78a5f3aea2);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERTYPEID_RecordedTV: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x5557a28f_5da6_4f83_8809_c2c98a11a6fa);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERTYPEID_RecycleBin: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xd6d9e004_cd87_442b_9d57_5e0aeb4f6f72);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERTYPEID_SavedGames: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xd0363307_28cb_4106_9f23_2956e3e5e0e7);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERTYPEID_SearchConnector: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x982725ee_6f47_479e_b447_812bfa7d2e8f);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERTYPEID_SearchHome: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x834d8a44_0974_4ed6_866e_f203d80b3810);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERTYPEID_Searches: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x0b0ba2e3_405f_415e_a6ee_cad625207853);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERTYPEID_SoftwareExplorer: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xd674391b_52d9_4e07_834e_67c98610f39d);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERTYPEID_StartMenu: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xef87b4cb_f2ce_4785_8658_4ca6c63e38c6);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERTYPEID_StorageProviderDocuments: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xdd61bd66_70e8_48dd_9655_65c5e1aac2d1);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERTYPEID_StorageProviderGeneric: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x4f01ebc5_2385_41f2_a28e_2c5c91fb56e0);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERTYPEID_StorageProviderMusic: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x672ecd7e_af04_4399_875c_0290845b6247);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERTYPEID_StorageProviderPictures: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x71d642a9_f2b1_42cd_ad92_eb9300c7cc0a);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERTYPEID_StorageProviderVideos: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x51294da1_d7b1_485b_9e9a_17cffe33e187);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERTYPEID_UserFiles: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xcd0fc69b_71e2_46e5_9690_5bcd9f57aab3);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERTYPEID_UsersLibraries: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xc4d98f09_6124_4fe0_9942_826416082da9);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOLDERTYPEID_Videos: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x5fa96407_7e77_483c_ac93_691d05850de8);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FO_COPY: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FO_DELETE: u32 = 3u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FO_MOVE: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FO_RENAME: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FSCopyHandler: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xd197380a_0a79_4dc8_a033_ed882c2fa14b);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FVSIF_CANVIEWIT: u32 = 1073741824u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FVSIF_NEWFAILED: u32 = 134217728u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FVSIF_NEWFILE: u32 = 2147483648u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FVSIF_PINNED: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FVSIF_RECT: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FileOpenDialog: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xdc1c5a9c_e88a_4dde_a5a1_60f82a20aef7);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FileOperation: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x3ad05575_8857_4850_9277_11b85bdb8e09);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FileSaveDialog: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xc0b4e2f3_ba21_4773_8dba_335ec946eb8b);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FileSearchBand: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xc4ee31f3_4768_11d2_be5c_00a0c9a83da1);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FolderViewHost: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x20b1cb23_6968_4eb9_b7d4_a66d00d07cee);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FrameworkInputPane: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xd5120aa3_46ba_44c5_822d_ca8092c1fc72);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FreeSpaceCategorizer: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xb5607793_24ac_44c7_82e2_831726aa6cb7);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GADOF_DIRTY: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GCS_HELPTEXT: u32 = 5u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GCS_HELPTEXTA: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GCS_HELPTEXTW: u32 = 5u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GCS_UNICODE: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GCS_VALIDATE: u32 = 6u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GCS_VALIDATEA: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GCS_VALIDATEW: u32 = 6u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GCS_VERB: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GCS_VERBA: u32 = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GCS_VERBICONW: u32 = 20u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GCS_VERBW: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GCT_INVALID: u32 = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GCT_LFNCHAR: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GCT_SEPARATOR: u32 = 8u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GCT_SHORTCHAR: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GCT_WILD: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GETPROPS_NONE: u32 = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GIL_ASYNC: u32 = 32u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GIL_CHECKSHIELD: u32 = 512u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GIL_DEFAULTICON: u32 = 64u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GIL_DONTCACHE: u32 = 16u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GIL_FORCENOSHIELD: u32 = 1024u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GIL_FORSHELL: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GIL_FORSHORTCUT: u32 = 128u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GIL_NOTFILENAME: u32 = 8u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GIL_OPENICON: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GIL_PERCLASS: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GIL_PERINSTANCE: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GIL_SHIELD: u32 = 512u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GIL_SIMULATEDOC: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GenericCredentialProvider: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x25cbb996_92ed_457e_b28c_4774084bd562);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLINK_E_FIRST: ::windows_sys::core::HRESULT = -2147221248i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLINK_S_DONTHIDE: i32 = 262400i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLINK_S_FIRST: ::windows_sys::core::HRESULT = 262400i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLNF_ALLOW_AUTONAVIGATE: u32 = 536870912u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLNF_CALLERUNTRUSTED: u32 = 2097152u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLNF_DISABLEWINDOWRESTRICTIONS: u32 = 8388608u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLNF_EXTERNALNAVIGATE: u32 = 268435456u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLNF_NEWWINDOWSMANAGED: u32 = 2147483648u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLNF_TRUSTEDFORACTIVEX: u32 = 4194304u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLNF_TRUSTFIRSTDOWNLOAD: u32 = 16777216u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLNF_UNTRUSTEDFORDOWNLOAD: u32 = 33554432u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HOMEGROUP_SECURITY_GROUP: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("HomeUsers");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HOMEGROUP_SECURITY_GROUP_MULTI: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("HUG");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HideInputPaneAnimationCoordinator: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x384742b1_2a77_4cb3_8cf8_1136f5e17e59);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HomeGroup: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xde77ba04_3c92_4d11_a1a5_42352a53e0e3);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const IDC_OFFLINE_HAND: u32 = 103u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const IDC_PANTOOL_HAND_CLOSED: u32 = 105u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const IDC_PANTOOL_HAND_OPEN: u32 = 104u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const IDD_WIZEXTN_FIRST: u32 = 20480u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const IDD_WIZEXTN_LAST: u32 = 20736u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const IDO_SHGIOI_DEFAULT: u64 = 4294967292u64;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const IDO_SHGIOI_LINK: u32 = 268435454u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const IDO_SHGIOI_SHARE: u32 = 268435455u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const IDO_SHGIOI_SLOWFILE: u64 = 4294967293u64;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const IDS_DESCRIPTION: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ID_APP: u32 = 100u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const IEIFLAG_ASPECT: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const IEIFLAG_ASYNC: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const IEIFLAG_CACHE: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const IEIFLAG_GLEAM: u32 = 16u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const IEIFLAG_NOBORDER: u32 = 256u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const IEIFLAG_NOSTAMP: u32 = 128u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const IEIFLAG_OFFLINE: u32 = 8u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const IEIFLAG_ORIGSIZE: u32 = 64u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const IEIFLAG_QUALITY: u32 = 512u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const IEIFLAG_REFRESH: u32 = 1024u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const IEIFLAG_SCREEN: u32 = 32u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const IEIT_PRIORITY_NORMAL: u32 = 268435456u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const IEI_PRIORITY_MAX: u32 = 2147483647u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const IEI_PRIORITY_MIN: u32 = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const IENamespaceTreeControl: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xace52d03_e5cd_4b20_82ff_e71b11beae1d);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ILMM_IE4: u32 = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const IMM_ACC_DOCKING_E_DOCKOCCUPIED: ::windows_sys::core::HRESULT = -2144927183i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const IMM_ACC_DOCKING_E_INSUFFICIENTHEIGHT: ::windows_sys::core::HRESULT = -2144927184i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const IMSC_E_SHELL_COMPONENT_STARTUP_FAILURE: ::windows_sys::core::HRESULT = -2144927181i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const INTERNET_MAX_PATH_LENGTH: u32 = 2048u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const INTERNET_MAX_SCHEME_LENGTH: u32 = 32u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const IRTIR_TASK_FINISHED: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const IRTIR_TASK_NOT_RUNNING: u32 = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const IRTIR_TASK_PENDING: u32 = 3u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const IRTIR_TASK_RUNNING: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const IRTIR_TASK_SUSPENDED: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ISFBVIEWMODE_LARGEICONS: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ISFBVIEWMODE_LOGOS: u32 = 3u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ISFBVIEWMODE_SMALLICONS: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ISFB_MASK_BKCOLOR: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ISFB_MASK_COLORS: u32 = 32u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ISFB_MASK_IDLIST: u32 = 16u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ISFB_MASK_SHELLFOLDER: u32 = 8u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ISFB_MASK_STATE: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ISFB_MASK_VIEWMODE: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ISFB_STATE_ALLOWRENAME: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ISFB_STATE_BTNMINSIZE: u32 = 256u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ISFB_STATE_CHANNELBAR: u32 = 16u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ISFB_STATE_DEBOSSED: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ISFB_STATE_DEFAULT: u32 = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ISFB_STATE_FULLOPEN: u32 = 64u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ISFB_STATE_NONAMESORT: u32 = 128u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ISFB_STATE_NOSHOWTEXT: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ISFB_STATE_QLINKSMODE: u32 = 32u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ISHCUTCMDID_COMMITHISTORY: i32 = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ISHCUTCMDID_DOWNLOADICON: i32 = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ISHCUTCMDID_INTSHORTCUTCREATE: i32 = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ISHCUTCMDID_SETUSERAWURL: i32 = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ISIOI_ICONFILE: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ISIOI_ICONINDEX: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const IS_E_EXEC_FAILED: ::windows_sys::core::HRESULT = -2147213310i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const IS_FULLSCREEN: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const IS_NORMAL: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const IS_SPLIT: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ITSAT_DEFAULT_PRIORITY: u32 = 268435456u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ITSAT_MAX_PRIORITY: u32 = 2147483647u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ITSAT_MIN_PRIORITY: u32 = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ITSSFLAG_COMPLETE_ON_DESTROY: u32 = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ITSSFLAG_FLAGS_MASK: u32 = 3u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ITSSFLAG_KILL_ON_DESTROY: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ITSS_THREAD_TIMEOUT_NO_CHANGE: u32 = 4294967294u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const Identity_LocalUserProvider: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xa198529b_730f_4089_b646_a12557f5665e);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ImageProperties: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x7ab770c7_0e23_4d7a_8aa2_19bfad479829);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ImageRecompress: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x6e33091c_d2f8_4740_b55e_2e11d1477a2c);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ImageTranscode: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x17b75166_928f_417d_9685_64aa135565c1);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const InputPanelConfiguration: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x2853add3_f096_4c63_a78f_7fa3ea837fb7);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const InternetExplorer: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x0002df01_0000_0000_c000_000000000046);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const InternetExplorerMedium: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xd5e8041d_920f_45e9_b8fb_b1deb82c6e5e);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const InternetPrintOrdering: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xadd36aa8_751a_4579_a266_d66f5202ccbb);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ItemCount_Property_GUID: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xabbf5c45_5ccc_47b7_bb4e_87cb87bbd162);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ItemIndex_Property_GUID: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x92a053da_2969_4021_bf27_514cfc2e4a69);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const KnownFolderManager: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x4df0c730_df9d_4ae3_9153_aa6b82e9795a);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const LIBRARY_E_NO_ACCESSIBLE_LOCATION: ::windows_sys::core::HRESULT = -2144927231i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const LIBRARY_E_NO_SAVE_LOCATION: ::windows_sys::core::HRESULT = -2144927232i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const LINK_E_DELETE: ::windows_sys::core::HRESULT = -2144927485i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const LocalThumbnailCache: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x50ef4544_ac9f_4a8e_b21b_8a26180db13f);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const MAXFILELEN: u32 = 13u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const MAX_COLUMN_DESC_LEN: u32 = 128u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const MAX_COLUMN_NAME_LEN: u32 = 80u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const MAX_SYNCMGRHANDLERNAME: u32 = 32u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const MAX_SYNCMGRITEMNAME: u32 = 128u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const MAX_SYNCMGR_ID: u32 = 64u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const MAX_SYNCMGR_NAME: u32 = 128u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const MAX_SYNCMGR_PROGRESSTEXT: u32 = 260u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const MailRecipient: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x9e56be60_c50f_11cf_9a2c_00a0c90a90ce);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const MergedCategorizer: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x8e827c11_33e7_4bc1_b242_8cd9a1c2b304);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NCM_DISPLAYERRORTIP: u32 = 1028u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NCM_GETADDRESS: u32 = 1025u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NCM_GETALLOWTYPE: u32 = 1027u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NCM_SETALLOWTYPE: u32 = 1026u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NETCACHE_E_NEGATIVE_CACHE: ::windows_sys::core::HRESULT = -2144927488i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NINF_KEY: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NIN_BALLOONHIDE: u32 = 1027u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NIN_BALLOONSHOW: u32 = 1026u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NIN_BALLOONTIMEOUT: u32 = 1028u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NIN_BALLOONUSERCLICK: u32 = 1029u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NIN_POPUPCLOSE: u32 = 1031u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NIN_POPUPOPEN: u32 = 1030u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NIN_SELECT: u32 = 1024u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NOTIFYICON_VERSION: u32 = 3u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NOTIFYICON_VERSION_4: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NPCredentialProvider: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x3dd6bec0_8193_4ffe_ae25_e08e39ea4063);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCDHPOS_ONTOP: i32 = -1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NT_CONSOLE_PROPS_SIG: u32 = 2684354562u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NT_FE_CONSOLE_PROPS_SIG: u32 = 2684354564u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NUM_POINTS: u32 = 3u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NamespaceTreeControl: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xae054212_3535_4430_83ed_d501aa6680e6);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NamespaceWalker: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x72eb61e0_8672_4303_9175_f2e4c68b2e7c);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NetworkConnections: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x7007acc7_3202_11d1_aad2_00805fc1270e);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NetworkExplorerFolder: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xf02c1a0d_be21_4350_88b0_7367fc96ef3c);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NetworkPlaces: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x208d2c60_3aea_1069_a2d7_08002b30309d);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OFASI_EDIT: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OFASI_OPENDESKTOP: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OFFLINE_STATUS_INCOMPLETE: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OFFLINE_STATUS_LOCAL: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OFFLINE_STATUS_REMOTE: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OF_CAP_CANCLOSE: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OF_CAP_CANSWITCHTO: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OI_ASYNC: u32 = 4294962926u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OI_DEFAULT: u32 = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OPENPROPS_INHIBITPIF: u32 = 32768u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OPENPROPS_NONE: u32 = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OnexCredentialProvider: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x07aa0886_cc8d_4e19_a410_1c75af686e62);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OnexPlapSmartcardCredentialProvider: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x33c86cd6_705f_4ba1_9adb_67070b837775);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OpenControlPanel: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x06622d85_6856_4460_8de1_a81921b41c4b);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PANE_NAVIGATION: u32 = 5u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PANE_NONE: u32 = 4294967295u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PANE_OFFLINE: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PANE_PRINTER: u32 = 3u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PANE_PRIVACY: u32 = 7u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PANE_PROGRESS: u32 = 6u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PANE_SSL: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PANE_ZONE: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PATHCCH_MAX_CCH: u32 = 32768u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PDTIMER_PAUSE: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PDTIMER_RESET: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PDTIMER_RESUME: u32 = 3u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PIDASI_AVG_DATA_RATE: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PIDASI_CHANNEL_COUNT: u32 = 7u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PIDASI_COMPRESSION: u32 = 10u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PIDASI_FORMAT: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PIDASI_SAMPLE_RATE: u32 = 5u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PIDASI_SAMPLE_SIZE: u32 = 6u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PIDASI_STREAM_NAME: u32 = 9u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PIDASI_STREAM_NUMBER: u32 = 8u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PIDASI_TIMELENGTH: u32 = 3u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PIDDRSI_DESCRIPTION: u32 = 3u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PIDDRSI_PLAYCOUNT: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PIDDRSI_PLAYEXPIRES: u32 = 6u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PIDDRSI_PLAYSTARTS: u32 = 5u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PIDDRSI_PROTECTED: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PIDSI_ALBUM: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PIDSI_ARTIST: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PIDSI_COMMENT: u32 = 6u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PIDSI_GENRE: u32 = 11u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PIDSI_LYRICS: u32 = 12u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PIDSI_SONGTITLE: u32 = 3u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PIDSI_TRACK: u32 = 7u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PIDSI_YEAR: u32 = 5u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PIDVSI_COMPRESSION: u32 = 10u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PIDVSI_DATA_RATE: u32 = 8u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PIDVSI_FRAME_COUNT: u32 = 5u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PIDVSI_FRAME_HEIGHT: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PIDVSI_FRAME_RATE: u32 = 6u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PIDVSI_FRAME_WIDTH: u32 = 3u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PIDVSI_SAMPLE_SIZE: u32 = 9u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PIDVSI_STREAM_NAME: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PIDVSI_STREAM_NUMBER: u32 = 11u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PIDVSI_TIMELENGTH: u32 = 7u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_COMPUTERNAME: u32 = 5u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_CONTROLPANEL_CATEGORY: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_DESCRIPTIONID: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_DISPLACED_DATE: u32 = 3u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_DISPLACED_FROM: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_DISPLAY_PROPERTIES: u32 = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_FINDDATA: u32 = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_HTMLINFOTIPFILE: u32 = 5u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_INTROTEXT: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_LINK_TARGET: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_LINK_TARGET_TYPE: u32 = 3u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_MISC_ACCESSCOUNT: u32 = 3u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_MISC_OWNER: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_MISC_PICS: u32 = 6u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_MISC_STATUS: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_NETRESOURCE: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_NETWORKLOCATION: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_QUERY_RANK: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_SHARE_CSC_STATUS: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_SYNC_COPY_IN: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_VOLUME_CAPACITY: u32 = 3u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_VOLUME_FILESYSTEM: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_VOLUME_FREE: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_WHICHFOLDER: u32 = 3u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PIFDEFFILESIZE: u32 = 80u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PIFDEFPATHSIZE: u32 = 64u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PIFMAXFILEPATH: u32 = 260u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PIFNAMESIZE: u32 = 30u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PIFPARAMSSIZE: u32 = 64u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PIFSHDATASIZE: u32 = 64u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PIFSHPROGSIZE: u32 = 64u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PIFSTARTLOCSIZE: u32 = 63u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PINLogonCredentialProvider: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xcb82ea12_9f71_446d_89e1_8d0924e1256e);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PLATFORM_BROWSERONLY: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PLATFORM_IE3: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PLATFORM_INTEGRATED: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PLATFORM_UNKNOWN: u32 = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PMSF_DONT_STRIP_SPACES: u32 = 65536u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PMSF_MULTIPLE: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PMSF_NORMAL: u32 = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PO_DELETE: u32 = 19u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PO_PORTCHANGE: u32 = 32u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PO_RENAME: u32 = 20u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PO_REN_PORT: u32 = 52u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PPCF_ADDARGUMENTS: u32 = 3u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PPCF_ADDQUOTES: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PPCF_FORCEQUALIFY: u32 = 64u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PPCF_LONGESTPOSSIBLE: u32 = 128u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PPCF_NODIRECTORIES: u32 = 16u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PRINTACTION_DOCUMENTDEFAULTS: u32 = 6u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PRINTACTION_NETINSTALL: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PRINTACTION_NETINSTALLLINK: u32 = 3u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PRINTACTION_OPEN: u32 = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PRINTACTION_OPENNETPRN: u32 = 5u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PRINTACTION_PROPERTIES: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PRINTACTION_SERVERPROPERTIES: u32 = 7u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PRINTACTION_TESTPAGE: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PRINT_PROP_FORCE_NAME: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PROGDLG_AUTOTIME: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PROGDLG_MARQUEEPROGRESS: u32 = 32u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PROGDLG_MODAL: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PROGDLG_NOCANCEL: u32 = 64u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PROGDLG_NOMINIMIZE: u32 = 8u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PROGDLG_NOPROGRESSBAR: u32 = 16u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PROGDLG_NORMAL: u32 = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PROGDLG_NOTIME: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PROPSTR_EXTENSIONCOMPLETIONSTATE: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("ExtensionCompletionState");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PROP_CONTRACT_DELEGATE: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("ContractDelegate");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PackageDebugSettings: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xb1aec16f_2383_4852_b0e9_8f0b1dc66b4d);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PasswordCredentialProvider: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x60b78e88_ead8_445c_9cfd_0b87f74ea6cd);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PreviousVersions: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x596ab062_b4d2_4215_9f74_e9109b0a8153);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PropertiesUI: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xd912f8cf_0396_4915_884e_fb425d32943b);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PublishDropTarget: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xcc6eeffb_43f6_46c5_9619_51d571967f7d);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PublishingWizard: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x6b33163c_76a5_4b6c_bf21_45de9cd503a1);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const QCMINFO_PLACE_AFTER: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const QCMINFO_PLACE_BEFORE: u32 = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const QueryCancelAutoPlay: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x331f1768_05a9_4ddd_b86e_dae34ddc998a);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const RASProvider: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x5537e283_b1e7_4ef8_9c6e_7ab0afe5056d);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SBSP_ABSOLUTE: u32 = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SBSP_ACTIVATE_NOFOCUS: u32 = 524288u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SBSP_ALLOW_AUTONAVIGATE: u32 = 65536u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SBSP_CALLERUNTRUSTED: u32 = 8388608u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SBSP_CREATENOHISTORY: u32 = 1048576u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SBSP_DEFBROWSER: u32 = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SBSP_DEFMODE: u32 = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SBSP_EXPLOREMODE: u32 = 32u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SBSP_FEEDNAVIGATION: u32 = 536870912u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SBSP_HELPMODE: u32 = 64u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SBSP_INITIATEDBYHLINKFRAME: u32 = 2147483648u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SBSP_KEEPSAMETEMPLATE: u32 = 131072u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SBSP_KEEPWORDWHEELTEXT: u32 = 262144u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SBSP_NAVIGATEBACK: u32 = 16384u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SBSP_NAVIGATEFORWARD: u32 = 32768u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SBSP_NEWBROWSER: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SBSP_NOAUTOSELECT: u32 = 67108864u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SBSP_NOTRANSFERHIST: u32 = 128u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SBSP_OPENMODE: u32 = 16u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SBSP_PARENT: u32 = 8192u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SBSP_PLAYNOSOUND: u32 = 2097152u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SBSP_REDIRECT: u32 = 1073741824u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SBSP_RELATIVE: u32 = 4096u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SBSP_SAMEBROWSER: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SBSP_TRUSTEDFORACTIVEX: u32 = 268435456u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SBSP_TRUSTFIRSTDOWNLOAD: u32 = 16777216u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SBSP_UNTRUSTEDFORDOWNLOAD: u32 = 33554432u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SBSP_WRITENOHISTORY: u32 = 134217728u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SCHEME_CREATE: u32 = 128u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SCHEME_DISPLAY: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SCHEME_DONOTUSE: u32 = 64u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SCHEME_EDIT: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SCHEME_GLOBAL: u32 = 8u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SCHEME_LOCAL: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SCHEME_REFRESH: u32 = 16u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SCHEME_UPDATE: u32 = 32u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SCRM_VERIFYPW: u32 = 32768u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SEE_MASK_ASYNCOK: u32 = 1048576u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SEE_MASK_CLASSKEY: u32 = 3u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SEE_MASK_CLASSNAME: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SEE_MASK_CONNECTNETDRV: u32 = 128u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SEE_MASK_DEFAULT: u32 = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SEE_MASK_DOENVSUBST: u32 = 512u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SEE_MASK_FLAG_DDEWAIT: u32 = 256u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SEE_MASK_FLAG_HINST_IS_SITE: u32 = 134217728u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SEE_MASK_FLAG_LOG_USAGE: u32 = 67108864u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SEE_MASK_FLAG_NO_UI: u32 = 1024u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SEE_MASK_HMONITOR: u32 = 2097152u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SEE_MASK_HOTKEY: u32 = 32u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SEE_MASK_ICON: u32 = 16u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SEE_MASK_IDLIST: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SEE_MASK_INVOKEIDLIST: u32 = 12u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SEE_MASK_NOASYNC: u32 = 256u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SEE_MASK_NOCLOSEPROCESS: u32 = 64u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SEE_MASK_NOQUERYCLASSSTORE: u32 = 16777216u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SEE_MASK_NOZONECHECKS: u32 = 8388608u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SEE_MASK_NO_CONSOLE: u32 = 32768u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SEE_MASK_UNICODE: u32 = 16384u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SEE_MASK_WAITFORINPUTIDLE: u32 = 33554432u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SETPROPS_NONE: u32 = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SE_ERR_ACCESSDENIED: u32 = 5u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SE_ERR_ASSOCINCOMPLETE: u32 = 27u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SE_ERR_DDEBUSY: u32 = 30u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SE_ERR_DDEFAIL: u32 = 29u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SE_ERR_DDETIMEOUT: u32 = 28u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SE_ERR_DLLNOTFOUND: u32 = 32u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SE_ERR_FNF: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SE_ERR_NOASSOC: u32 = 31u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SE_ERR_OOM: u32 = 8u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SE_ERR_PNF: u32 = 3u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SE_ERR_SHARE: u32 = 26u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SFBID_PIDLCHANGED: i32 = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SFVM_ADDOBJECT: u32 = 3u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SFVM_GETSELECTEDOBJECTS: u32 = 9u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SFVM_REARRANGE: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SFVM_REMOVEOBJECT: u32 = 6u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SFVM_SETCLIPBOARD: u32 = 16u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SFVM_SETITEMPOS: u32 = 14u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SFVM_SETPOINTS: u32 = 23u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SFVM_UPDATEOBJECT: u32 = 7u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SFVSOC_INVALIDATE_ALL: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SFVSOC_NOSCROLL: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCDF_UPDATEITEM: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCIDS_ALLFIELDS: i32 = -2147483648i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCIDS_BITMASK: i32 = -65536i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCIDS_CANONICALONLY: i32 = 268435456i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCIDS_COLUMNMASK: i32 = 65535i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCNEE_MSI_CHANGE: i32 = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCNEE_MSI_UNINSTALL: i32 = 5i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCNEE_ORDERCHANGED: i32 = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHC_E_SHELL_COMPONENT_STARTUP_FAILURE: ::windows_sys::core::HRESULT = -2144927180i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHELLSTATEVERSION_IE4: u32 = 9u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHELLSTATEVERSION_WIN2K: u32 = 10u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHELL_E_WRONG_BITDEPTH: ::windows_sys::core::HRESULT = -2144927486i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHERB_NOCONFIRMATION: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHERB_NOPROGRESSUI: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHERB_NOSOUND: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHGNLI_NOLNK: u64 = 8u64;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHGNLI_NOLOCNAME: u64 = 16u64;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHGNLI_NOUNIQUE: u64 = 4u64;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHGNLI_PIDL: u64 = 1u64;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHGNLI_PREFIXNAME: u64 = 2u64;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHGNLI_USEURLEXT: u64 = 32u64;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHGVSPB_ALLFOLDERS: u32 = 8u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHGVSPB_ALLUSERS: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHGVSPB_INHERIT: u32 = 16u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHGVSPB_NOAUTODEFAULTS: u32 = 2147483648u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHGVSPB_PERFOLDER: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHGVSPB_PERUSER: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHGVSPB_ROAM: u32 = 32u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHHLNF_NOAUTOSELECT: u32 = 67108864u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHHLNF_WRITENOHISTORY: u32 = 134217728u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHIL_EXTRALARGE: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHIL_JUMBO: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHIL_LARGE: u32 = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHIL_LAST: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHIL_SMALL: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHIL_SYSSMALL: u32 = 3u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHIMGDEC_DEFAULT: u32 = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHIMGDEC_LOADFULL: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHIMGDEC_THUMBNAIL: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHIMGKEY_QUALITY: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("Compression");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHIMGKEY_RAWFORMAT: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("RawDataFormat");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHIMSTCAPFLAG_LOCKABLE: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHIMSTCAPFLAG_PURGEABLE: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHPPFW_ASKDIRCREATE: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHPPFW_DIRCREATE: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHPPFW_IGNOREFILENAME: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHPPFW_MEDIACHECKONLY: u32 = 16u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHPPFW_NONE: u32 = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHPPFW_NOWRITECHECK: u32 = 8u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHPWHF_ANYLOCATION: u32 = 256u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHPWHF_NOFILESELECTOR: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHPWHF_NONETPLACECREATE: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHPWHF_NORECOMPRESS: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHPWHF_USEMRU: u32 = 8u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHPWHF_VALIDATEVIAWEBFOLDERS: u32 = 65536u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHREGSET_FORCE_HKCU: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHREGSET_FORCE_HKLM: u32 = 8u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHREGSET_HKCU: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHREGSET_HKLM: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SID_CommandsPropertyBag: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x6e043250_4416_485c_b143_e62a760d9fe5);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SID_CtxQueryAssociations: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xfaadfc40_b777_4b69_aa81_77035ef0e6e8);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SID_DefView: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x6d12fe80_7911_11cf_9534_0000c05bae0b);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SID_LaunchSourceAppUserModelId: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x2ce78010_74db_48bc_9c6a_10f372495723);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SID_LaunchSourceViewSizePreference: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x80605492_67d9_414f_af89_a1cdf1242bc1);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SID_LaunchTargetViewSizePreference: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x26db2472_b7b7_406b_9702_730a4e20d3bf);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SID_MenuShellFolder: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xa6c17eb4_2d65_11d2_838f_00c04fd918d0);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SID_SCommDlgBrowser: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x80f30233_b7df_11d2_a33b_006097df5bd4);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SID_SCommandBarState: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xb99eaa5c_3850_4400_bc33_2ce534048bf8);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SID_SGetViewFromViewDual: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x889a935d_971e_4b12_b90c_24dfc9e1e5e8);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SID_SInPlaceBrowser: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x1d2ae02b_3655_46cc_b63a_285988153bca);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SID_SMenuBandBKContextMenu: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x164bbd86_1d0d_4de0_9a3b_d9729647c2b8);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SID_SMenuBandBottom: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x743ca664_0deb_11d1_9825_00c04fd91972);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SID_SMenuBandBottomSelected: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x165ebaf4_6d51_11d2_83ad_00c04fd918d0);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SID_SMenuBandChild: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xed9cc020_08b9_11d1_9823_00c04fd91972);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SID_SMenuBandContextMenuModifier: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x39545874_7162_465e_b783_2aa1874fef81);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SID_SMenuBandParent: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x8c278eec_3eab_11d1_8cb0_00c04fd918d0);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SID_SMenuBandTop: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x9493a810_ec38_11d0_bc46_00aa006ce2f5);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SID_SMenuPopup: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xd1e7afeb_6a2e_11d0_8c78_00c04fd918b4);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SID_SSearchBoxInfo: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x142daa61_516b_4713_b49c_fb985ef82998);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SID_STopLevelBrowser: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x4c96be40_915c_11cf_99d3_00aa004ae837);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SID_STopWindow: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x49e1b500_4636_11d3_97f7_00c04f45d0b3);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SID_ShellExecuteNamedPropertyStore: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xeb84ada2_00ff_4992_8324_ed5ce061cb29);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SID_URLExecutionContext: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xfb5f8ebc_bbb6_4d10_a461_777291a09030);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIOM_ICONINDEX: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIOM_OVERLAYINDEX: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIOM_RESERVED_DEFAULT: u32 = 3u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIOM_RESERVED_LINK: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIOM_RESERVED_SHARED: u32 = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIOM_RESERVED_SLOWFILE: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMAE_CONTRACTED: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMAE_EXPANDED: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMAE_USER: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMAE_VALID: u32 = 7u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMC_AUTOEXPANDCHANGE: u32 = 66u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMC_CHEVRONEXPAND: u32 = 25u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMC_CHEVRONGETTIP: u32 = 47u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMC_CREATE: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMC_DEFAULTICON: u32 = 22u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMC_DEMOTE: u32 = 17u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMC_DISPLAYCHEVRONTIP: u32 = 42u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMC_EXITMENU: u32 = 3u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMC_GETAUTOEXPANDSTATE: u32 = 65u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMC_GETBKCONTEXTMENU: u32 = 68u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMC_GETCONTEXTMENUMODIFIER: u32 = 67u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMC_GETINFO: u32 = 5u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMC_GETOBJECT: u32 = 7u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMC_GETSFINFO: u32 = 6u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMC_GETSFOBJECT: u32 = 8u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMC_INITMENU: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMC_NEWITEM: u32 = 23u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMC_OPEN: u32 = 69u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMC_PROMOTE: u32 = 18u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMC_REFRESH: u32 = 16u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMC_SETSFOBJECT: u32 = 45u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMC_SFDDRESTRICTED: u32 = 48u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMC_SFEXEC: u32 = 9u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMC_SFEXEC_MIDDLE: u32 = 49u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMC_SFSELECTITEM: u32 = 10u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMC_SHCHANGENOTIFY: u32 = 46u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMDM_HMENU: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMDM_SHELLFOLDER: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMDM_TOOLBAR: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMINIT_AUTOEXPAND: u32 = 256u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMINIT_AUTOTOOLTIP: u32 = 512u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMINIT_CACHED: u32 = 16u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMINIT_DEFAULT: u32 = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMINIT_DROPONCONTAINER: u32 = 1024u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMINIT_HORIZONTAL: u32 = 536870912u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMINIT_RESTRICT_DRAGDROP: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMINIT_TOPLEVEL: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMINIT_VERTICAL: u32 = 268435456u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMINV_ID: u32 = 8u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMINV_REFRESH: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMSET_BOTTOM: u32 = 536870912u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMSET_DONTOWN: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMSET_TOP: u32 = 268435456u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SPMODE_BROWSER: u32 = 8u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SPMODE_DBMON: u32 = 8192u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SPMODE_DEBUGBREAK: u32 = 512u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SPMODE_DEBUGOUT: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SPMODE_EVENT: u32 = 32u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SPMODE_EVENTTRACE: u32 = 32768u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SPMODE_FLUSH: u32 = 16u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SPMODE_FORMATTEXT: u32 = 128u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SPMODE_MEMWATCH: u32 = 4096u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SPMODE_MSGTRACE: u32 = 1024u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SPMODE_MSVM: u32 = 64u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SPMODE_MULTISTOP: u32 = 16384u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SPMODE_PERFTAGS: u32 = 2048u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SPMODE_PROFILE: u32 = 256u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SPMODE_SHELL: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SPMODE_TEST: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SRRF_NOEXPAND: u32 = 268435456u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SRRF_NOVIRT: u32 = 1073741824u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SRRF_RM_ANY: u32 = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SRRF_RM_NORMAL: u32 = 65536u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SRRF_RM_SAFE: u32 = 131072u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SRRF_RM_SAFENETWORK: u32 = 262144u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SRRF_RT_ANY: u32 = 65535u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SRRF_RT_REG_BINARY: u32 = 8u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SRRF_RT_REG_DWORD: u32 = 16u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SRRF_RT_REG_EXPAND_SZ: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SRRF_RT_REG_MULTI_SZ: u32 = 32u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SRRF_RT_REG_NONE: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SRRF_RT_REG_QWORD: u32 = 64u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SRRF_RT_REG_SZ: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SRRF_ZEROONFAILURE: u32 = 536870912u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SSM_CLEAR: u32 = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SSM_REFRESH: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SSM_SET: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SSM_UPDATE: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STIF_DEFAULT: i32 = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STIF_SUPPORT_HEX: i32 = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STORE_E_NEWER_VERSION_AVAILABLE: ::windows_sys::core::HRESULT = -2144927484i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STR_AVOID_DRIVE_RESTRICTION_POLICY: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("Avoid Drive Restriction Policy");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STR_BIND_DELEGATE_CREATE_OBJECT: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("Delegate Object Creation");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STR_BIND_FOLDERS_READ_ONLY: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("Folders As Read Only");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STR_BIND_FOLDER_ENUM_MODE: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("Folder Enum Mode");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STR_BIND_FORCE_FOLDER_SHORTCUT_RESOLVE: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("Force Folder Shortcut Resolve");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STR_DONT_PARSE_RELATIVE: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("Don\'t Parse Relative");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STR_DONT_RESOLVE_LINK: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("Don\'t Resolve Link");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STR_ENUM_ITEMS_FLAGS: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("SHCONTF");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STR_FILE_SYS_BIND_DATA: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("File System Bind Data");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STR_FILE_SYS_BIND_DATA_WIN7_FORMAT: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("Win7FileSystemIdList");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STR_GET_ASYNC_HANDLER: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("GetAsyncHandler");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STR_GPS_BESTEFFORT: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("GPS_BESTEFFORT");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STR_GPS_DELAYCREATION: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("GPS_DELAYCREATION");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STR_GPS_FASTPROPERTIESONLY: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("GPS_FASTPROPERTIESONLY");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STR_GPS_HANDLERPROPERTIESONLY: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("GPS_HANDLERPROPERTIESONLY");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STR_GPS_NO_OPLOCK: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("GPS_NO_OPLOCK");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STR_GPS_OPENSLOWITEM: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("GPS_OPENSLOWITEM");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STR_INTERNAL_NAVIGATE: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("Internal Navigation");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STR_INTERNETFOLDER_PARSE_ONLY_URLMON_BINDABLE: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("Validate URL");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STR_ITEM_CACHE_CONTEXT: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("ItemCacheContext");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STR_MYDOCS_CLSID: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("{450D8FBA-AD25-11D0-98A8-0800361B1103}");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STR_NO_VALIDATE_FILENAME_CHARS: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("NoValidateFilenameChars");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STR_PARSE_ALLOW_INTERNET_SHELL_FOLDERS: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("Allow binding to Internet shell folder handlers and negate STR_PARSE_PREFER_WEB_BROWSING");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STR_PARSE_AND_CREATE_ITEM: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("ParseAndCreateItem");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STR_PARSE_DONT_REQUIRE_VALIDATED_URLS: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("Do not require validated URLs");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STR_PARSE_EXPLICIT_ASSOCIATION_SUCCESSFUL: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("ExplicitAssociationSuccessful");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STR_PARSE_PARTIAL_IDLIST: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("ParseOriginalItem");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STR_PARSE_PREFER_FOLDER_BROWSING: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("Parse Prefer Folder Browsing");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STR_PARSE_PREFER_WEB_BROWSING: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("Do not bind to Internet shell folder handlers");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STR_PARSE_PROPERTYSTORE: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("DelegateNamedProperties");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STR_PARSE_SHELL_PROTOCOL_TO_FILE_OBJECTS: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("Parse Shell Protocol To File Objects");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STR_PARSE_SHOW_NET_DIAGNOSTICS_UI: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("Show network diagnostics UI");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STR_PARSE_SKIP_NET_CACHE: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("Skip Net Resource Cache");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STR_PARSE_TRANSLATE_ALIASES: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("Parse Translate Aliases");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STR_PARSE_WITH_EXPLICIT_ASSOCAPP: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("ExplicitAssociationApp");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STR_PARSE_WITH_EXPLICIT_PROGID: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("ExplicitProgid");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STR_PARSE_WITH_PROPERTIES: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("ParseWithProperties");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STR_PROPERTYBAG_PARAM: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("SHBindCtxPropertyBag");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STR_REFERRER_IDENTIFIER: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("Referrer Identifier");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STR_SKIP_BINDING_CLSID: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("Skip Binding CLSID");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STR_STORAGEITEM_CREATION_FLAGS: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("SHGETSTORAGEITEM");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STR_TAB_REUSE_IDENTIFIER: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("Tab Reuse Identifier");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STR_TRACK_CLSID: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("Track the CLSID");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGRHANDLERFLAG_MASK: u32 = 15u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGRITEM_ITEMFLAGMASK: u32 = 127u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGRLOGERROR_ERRORFLAGS: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGRLOGERROR_ERRORID: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGRLOGERROR_ITEMID: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGRPROGRESSITEM_MAXVALUE: u32 = 8u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGRPROGRESSITEM_PROGVALUE: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGRPROGRESSITEM_STATUSTEXT: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGRPROGRESSITEM_STATUSTYPE: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGRREGISTERFLAGS_MASK: u32 = 7u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_OBJECTID_BrowseContent: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x57cbb584_e9b4_47ae_a120_c4df3335dee2);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_OBJECTID_ConflictStore: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xd78181f4_2389_47e4_a960_60bcc2ed930b);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_OBJECTID_EventLinkClick: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x2203bdc1_1af1_4082_8c30_28399f41384c);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_OBJECTID_EventStore: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x4bef34b9_a786_4075_ba88_0c2b9d89a98f);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_OBJECTID_Icon: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x6dbc85c3_5d07_4c72_a777_7fec78072c06);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_OBJECTID_QueryBeforeActivate: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xd882d80b_e7aa_49ed_86b7_e6e1f714cdfe);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_OBJECTID_QueryBeforeDeactivate: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xa0efc282_60e0_460e_9374_ea88513cfc80);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_OBJECTID_QueryBeforeDelete: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xf76c3397_afb3_45d7_a59f_5a49e905437e);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_OBJECTID_QueryBeforeDisable: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xbb5f64aa_f004_4eb5_8e4d_26751966344c);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_OBJECTID_QueryBeforeEnable: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x04cbf7f0_5beb_4de1_bc90_908345c480f6);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_OBJECTID_ShowSchedule: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xedc6f3e3_8441_4109_adf3_6c1ca0b7de47);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SZ_CONTENTTYPE_CDF: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("application/x-cdf");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SZ_CONTENTTYPE_CDFA: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("application/x-cdf");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SZ_CONTENTTYPE_CDFW: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("application/x-cdf");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SZ_CONTENTTYPE_HTML: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("text/html");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SZ_CONTENTTYPE_HTMLA: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("text/html");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SZ_CONTENTTYPE_HTMLW: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("text/html");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const S_SYNCMGR_CANCELALL: ::windows_sys::core::HRESULT = 262660i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const S_SYNCMGR_CANCELITEM: ::windows_sys::core::HRESULT = 262659i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const S_SYNCMGR_ENUMITEMS: ::windows_sys::core::HRESULT = 262673i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const S_SYNCMGR_ITEMDELETED: ::windows_sys::core::HRESULT = 262672i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const S_SYNCMGR_MISSINGITEMS: ::windows_sys::core::HRESULT = 262657i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const S_SYNCMGR_RETRYSYNC: ::windows_sys::core::HRESULT = 262658i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ScheduledTasks: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xd6277990_4c6a_11cf_8d87_00aa0060f5bf);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SearchFolderItemFactory: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x14010e02_bbbd_41f0_88e3_eda371216584);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SelectedItemCount_Property_GUID: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x8fe316d2_0e52_460a_9c1e_48f273d470a3);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SharedBitmap: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x4db26476_6787_4046_b836_e8412a9e8a27);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SharingConfigurationManager: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x49f371e1_8c5c_4d9c_9a3b_54a6827f513c);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const Shell: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x13709620_c279_11ce_a49e_444553540000);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ShellBrowserWindow: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xc08afd90_f2a1_11d1_8455_00a0c91f3880);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ShellDesktop: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x00021400_0000_0000_c000_000000000046);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ShellDispatchInproc: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x0a89a860_d7b1_11ce_8350_444553540000);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ShellFSFolder: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xf3364ba0_65b9_11ce_a9ba_00aa004ae837);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ShellFolderItem: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x2fe352ea_fd1f_11d2_b1f4_00c04f8eeb3e);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ShellFolderView: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x62112aa1_ebe4_11cf_a5fb_0020afe7292d);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ShellFolderViewOC: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x9ba05971_f6a8_11cf_a442_00a0c90a8f39);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ShellImageDataFactory: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x66e4e4fb_f385_4dd0_8d74_a2efd1bc6178);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ShellItem: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x9ac9fbe1_e0a2_4ad6_b4ee_e212013ea917);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ShellLibrary: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xd9b3211d_e57f_4426_aaef_30a806add397);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ShellLink: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x00021401_0000_0000_c000_000000000046);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ShellLinkObject: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x11219420_1768_11d1_95be_00609797ea4f);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ShellNameSpace: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x55136805_b2de_11d1_b9f2_00a0c98bc547);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ShellUIHelper: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x64ab4bb7_111e_11d1_8f79_00c04fc2fbe1);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ShellWindows: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x9ba05972_f6a8_11cf_a442_00a0c90a8f39);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ShowInputPaneAnimationCoordinator: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x1f046abf_3202_4dc1_8cb5_3c67617ce1fa);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SimpleConflictPresenter: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x7a0f6ab7_ed84_46b6_b47e_02aa159a152b);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SizeCategorizer: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x55d7b852_f6d1_42f2_aa75_8728a1b2d264);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SmartcardCredentialProvider: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x8fd7e19c_3bf7_489b_a72c_846ab3678c96);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SmartcardPinProvider: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x94596c7e_3744_41ce_893e_bbf09122f76a);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SmartcardReaderSelectionProvider: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x1b283861_754f_4022_ad47_a5eaaa618894);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SmartcardWinRTProvider: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x1ee7337f_85ac_45e2_a23c_37c753209769);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const StartMenuPin: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xa2a9545d_a0c2_42b4_9708_a0b2badd77c8);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const StorageProviderBanners: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x7ccdf9f4_e576_455a_8bc7_f6ec68d6f063);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SuspensionDependencyManager: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x6b273fc5_61fd_4918_95a2_c3b5e9d7f581);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SyncMgr: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x6295df27_35ee_11d1_8707_00c04fd93327);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SyncMgrClient: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x1202db60_1dac_42c5_aed5_1abdd432248e);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SyncMgrControl: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x1a1f4206_0688_4e7f_be03_d82ec69df9a5);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SyncMgrFolder: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x9c73f5e5_7ae7_4e32_a8e8_8d23b85255bf);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SyncMgrScheduleWizard: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x8d8b8e30_c451_421b_8553_d2976afa648c);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SyncResultsFolder: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x71d99464_3b6b_475c_b241_e15883207529);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SyncSetupFolder: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x2e9e59c0_b437_4981_a647_9c34b9b90891);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const TBIF_APPEND: u32 = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const TBIF_DEFAULT: u32 = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const TBIF_INTERNETBAR: u32 = 65536u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const TBIF_NOTOOLBAR: u32 = 196608u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const TBIF_PREPEND: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const TBIF_REPLACE: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const TBIF_STANDARDTOOLBAR: u32 = 131072u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const THBN_CLICKED: u32 = 6144u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const TITLEBARNAMELEN: u32 = 40u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const TLMENUF_BACK: u32 = 16u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const TLMENUF_FORE: u32 = 32u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const TLMENUF_INCLUDECURRENT: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const TLOG_BACK: i32 = -1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const TLOG_CURRENT: u32 = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const TLOG_FORE: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const TaskbarList: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x56fdf344_fd6d_11d0_958a_006097c9a090);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ThumbnailStreamCache: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xcbe0fed3_4b91_4e90_8354_8a8c84ec6872);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const TimeCategorizer: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x3bb4118f_ddfd_4d30_a348_9fb5d6bf1afe);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const TrackShellMenu: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x8278f931_2a3e_11d2_838f_00c04fd918d0);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const TrayBandSiteService: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xf60ad0a0_e5e1_45cb_b51a_e15b9f8b2934);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const TrayDeskBand: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xe6442437_6c68_4f52_94dd_2cfed267efb9);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_APPLY_DEFAULT: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_APPLY_FORCEAPPLY: u32 = 8u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_APPLY_GUESSFILE: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_APPLY_GUESSSCHEME: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_BROWSER_MODE: u32 = 33554432u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_CONVERT_IF_DOSPATH: u32 = 2097152u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_DONT_ESCAPE_EXTRA_INFO: u32 = 33554432u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_DONT_SIMPLIFY: u32 = 134217728u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_DONT_UNESCAPE: u32 = 131072u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_DONT_UNESCAPE_EXTRA_INFO: u32 = 33554432u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_ESCAPE_ASCII_URI_COMPONENT: u32 = 524288u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_ESCAPE_AS_UTF8: u32 = 262144u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_ESCAPE_PERCENT: u32 = 4096u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_ESCAPE_SEGMENT_ONLY: u32 = 8192u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_ESCAPE_SPACES_ONLY: u32 = 67108864u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_ESCAPE_UNSAFE: u32 = 536870912u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_E_INVALID_SYNTAX: ::windows_sys::core::HRESULT = -2147217407i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_E_UNREGISTERED_PROTOCOL: ::windows_sys::core::HRESULT = -2147217406i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_FILE_USE_PATHURL: u32 = 65536u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_INTERNAL_PATH: u32 = 8388608u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_NO_META: u32 = 134217728u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_PARTFLAG_KEEPSCHEME: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_PLUGGABLE_PROTOCOL: u32 = 1073741824u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_UNESCAPE: u32 = 268435456u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_UNESCAPE_AS_UTF8: u32 = 262144u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_UNESCAPE_HIGH_ANSI_ONLY: u32 = 4194304u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_UNESCAPE_INPLACE: u32 = 1048576u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_UNESCAPE_URI_COMPONENT: u32 = 262144u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_WININET_COMPATIBILITY: u32 = 2147483648u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const UserNotification: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x0010890e_8789_413c_adbc_48f5b511b3af);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const V1PasswordCredentialProvider: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x6f45dc1e_5384_457a_bc13_2cd81b0d28ed);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const V1SmartcardCredentialProvider: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x8bf9a910_a8ff_457f_999f_a5ca10b4a885);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const V1WinBioCredentialProvider: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xac3ac249_e820_4343_a65b_377ac634dc09);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const VID_Content: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x30c2c434_0889_4c8d_985d_a9f71830b0a9);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const VID_Details: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x137e7700_3573_11cf_ae69_08002b2e1262);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const VID_LargeIcons: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x0057d0e0_3573_11cf_ae69_08002b2e1262);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const VID_List: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x0e1fa5e0_3573_11cf_ae69_08002b2e1262);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const VID_SmallIcons: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x089000c0_3573_11cf_ae69_08002b2e1262);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const VID_ThumbStrip: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x8eefa624_d1e9_445b_94b7_74fbce2ea11a);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const VID_Thumbnails: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x8bebb290_52d0_11d0_b7f4_00c04fd706ec);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const VID_Tile: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x65f125e5_7be1_4810_ba9d_d271c8432ce3);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const VIEW_PRIORITY_CACHEHIT: u32 = 80u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const VIEW_PRIORITY_CACHEMISS: u32 = 48u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const VIEW_PRIORITY_DESPERATE: u32 = 16u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const VIEW_PRIORITY_INHERIT: u32 = 32u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const VIEW_PRIORITY_NONE: u32 = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const VIEW_PRIORITY_RESTRICTED: u32 = 112u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const VIEW_PRIORITY_SHELLEXT: u32 = 64u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const VIEW_PRIORITY_SHELLEXT_ASBACKUP: u32 = 21u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const VIEW_PRIORITY_STALECACHEHIT: u32 = 69u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const VIEW_PRIORITY_USEASDEFAULT: u32 = 67u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const VOLUME_PREFIX: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("\\\\?\\Volume");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const VaultProvider: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x503739d0_4c5e_4cfd_b3ba_d881334f0df2);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const VirtualDesktopManager: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xaa509086_5ca9_4c25_8f95_589d3c07b48a);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const WC_NETADDRESS: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("msctls_netaddress");
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const WM_CPL_LAUNCH: u32 = 2024u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const WM_CPL_LAUNCHED: u32 = 2025u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const WPSTYLE_CENTER: u32 = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const WPSTYLE_CROPTOFIT: u32 = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const WPSTYLE_KEEPASPECT: u32 = 3u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const WPSTYLE_MAX: u32 = 6u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const WPSTYLE_SPAN: u32 = 5u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const WPSTYLE_STRETCH: u32 = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const WPSTYLE_TILE: u32 = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const WTS_E_DATAFILEUNAVAILABLE: ::windows_sys::core::HRESULT = -2147175932i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const WTS_E_EXTRACTIONBLOCKED: ::windows_sys::core::HRESULT = -2147175930i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const WTS_E_EXTRACTIONPENDING: ::windows_sys::core::HRESULT = -2147175931i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const WTS_E_EXTRACTIONTIMEDOUT: ::windows_sys::core::HRESULT = -2147175935i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const WTS_E_FAILEDEXTRACTION: ::windows_sys::core::HRESULT = -2147175936i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const WTS_E_FASTEXTRACTIONNOTSUPPORTED: ::windows_sys::core::HRESULT = -2147175933i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const WTS_E_NOSTORAGEPROVIDERTHUMBNAILHANDLER: ::windows_sys::core::HRESULT = -2147175929i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const WTS_E_SURROGATEUNAVAILABLE: ::windows_sys::core::HRESULT = -2147175934i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const WebBrowser: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x8856f961_340a_11d0_a96b_00c04fd705a2);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const WebBrowser_V1: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xeab22ac3_30c1_11cf_a7eb_0000c05bae0b);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const WebWizardHost: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xc827f149_55c1_4d28_935e_57e47caed973);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const WinBioCredentialProvider: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xbec09223_b018_416d_a0ac_523971b639f5);
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const idsAppName: u32 = 1007u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const idsBadOldPW: u32 = 1006u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const idsChangePW: u32 = 1005u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const idsDefKeyword: u32 = 1010u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const idsDifferentPW: u32 = 1004u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const idsHelpFile: u32 = 1009u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const idsIniFile: u32 = 1001u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const idsIsPassword: u32 = 1000u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const idsNoHelpMemory: u32 = 1008u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const idsPassword: u32 = 1003u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const idsScreenSaver: u32 = 1002u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type ACENUMOPTION = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ACEO_NONE: ACENUMOPTION = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ACEO_MOSTRECENTFIRST: ACENUMOPTION = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ACEO_FIRSTUNUSED: ACENUMOPTION = 65536i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type ACTIVATEOPTIONS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AO_NONE: ACTIVATEOPTIONS = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AO_DESIGNMODE: ACTIVATEOPTIONS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AO_NOERRORUI: ACTIVATEOPTIONS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AO_NOSPLASHSCREEN: ACTIVATEOPTIONS = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AO_PRELAUNCH: ACTIVATEOPTIONS = 33554432i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type ADJACENT_DISPLAY_EDGES = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ADE_NONE: ADJACENT_DISPLAY_EDGES = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ADE_LEFT: ADJACENT_DISPLAY_EDGES = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ADE_RIGHT: ADJACENT_DISPLAY_EDGES = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type AHE_TYPE = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AHE_DESKTOP: AHE_TYPE = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AHE_IMMERSIVE: AHE_TYPE = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type AHTYPE = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AHTYPE_UNDEFINED: AHTYPE = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AHTYPE_USER_APPLICATION: AHTYPE = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AHTYPE_ANY_APPLICATION: AHTYPE = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AHTYPE_MACHINEDEFAULT: AHTYPE = 32i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AHTYPE_PROGID: AHTYPE = 64i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AHTYPE_APPLICATION: AHTYPE = 128i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AHTYPE_CLASS_APPLICATION: AHTYPE = 256i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AHTYPE_ANY_PROGID: AHTYPE = 512i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type APPACTIONFLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const APPACTION_INSTALL: APPACTIONFLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const APPACTION_UNINSTALL: APPACTIONFLAGS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const APPACTION_MODIFY: APPACTIONFLAGS = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const APPACTION_REPAIR: APPACTIONFLAGS = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const APPACTION_UPGRADE: APPACTIONFLAGS = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const APPACTION_CANGETSIZE: APPACTIONFLAGS = 32i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const APPACTION_MODIFYREMOVE: APPACTIONFLAGS = 128i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const APPACTION_ADDLATER: APPACTIONFLAGS = 256i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const APPACTION_UNSCHEDULE: APPACTIONFLAGS = 512i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type APPDOCLISTTYPE = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ADLT_RECENT: APPDOCLISTTYPE = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ADLT_FREQUENT: APPDOCLISTTYPE = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type APPINFODATAFLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AIM_DISPLAYNAME: APPINFODATAFLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AIM_VERSION: APPINFODATAFLAGS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AIM_PUBLISHER: APPINFODATAFLAGS = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AIM_PRODUCTID: APPINFODATAFLAGS = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AIM_REGISTEREDOWNER: APPINFODATAFLAGS = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AIM_REGISTEREDCOMPANY: APPINFODATAFLAGS = 32i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AIM_LANGUAGE: APPINFODATAFLAGS = 64i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AIM_SUPPORTURL: APPINFODATAFLAGS = 128i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AIM_SUPPORTTELEPHONE: APPINFODATAFLAGS = 256i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AIM_HELPLINK: APPINFODATAFLAGS = 512i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AIM_INSTALLLOCATION: APPINFODATAFLAGS = 1024i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AIM_INSTALLSOURCE: APPINFODATAFLAGS = 2048i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AIM_INSTALLDATE: APPINFODATAFLAGS = 4096i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AIM_CONTACT: APPINFODATAFLAGS = 16384i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AIM_COMMENTS: APPINFODATAFLAGS = 32768i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AIM_IMAGE: APPINFODATAFLAGS = 131072i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AIM_READMEURL: APPINFODATAFLAGS = 262144i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AIM_UPDATEINFOURL: APPINFODATAFLAGS = 524288i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type APPLICATION_VIEW_MIN_WIDTH = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AVMW_DEFAULT: APPLICATION_VIEW_MIN_WIDTH = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AVMW_320: APPLICATION_VIEW_MIN_WIDTH = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AVMW_500: APPLICATION_VIEW_MIN_WIDTH = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type APPLICATION_VIEW_ORIENTATION = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AVO_LANDSCAPE: APPLICATION_VIEW_ORIENTATION = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AVO_PORTRAIT: APPLICATION_VIEW_ORIENTATION = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type APPLICATION_VIEW_SIZE_PREFERENCE = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AVSP_DEFAULT: APPLICATION_VIEW_SIZE_PREFERENCE = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AVSP_USE_LESS: APPLICATION_VIEW_SIZE_PREFERENCE = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AVSP_USE_HALF: APPLICATION_VIEW_SIZE_PREFERENCE = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AVSP_USE_MORE: APPLICATION_VIEW_SIZE_PREFERENCE = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AVSP_USE_MINIMUM: APPLICATION_VIEW_SIZE_PREFERENCE = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AVSP_USE_NONE: APPLICATION_VIEW_SIZE_PREFERENCE = 5i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AVSP_CUSTOM: APPLICATION_VIEW_SIZE_PREFERENCE = 6i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type APPLICATION_VIEW_STATE = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AVS_FULLSCREEN_LANDSCAPE: APPLICATION_VIEW_STATE = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AVS_FILLED: APPLICATION_VIEW_STATE = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AVS_SNAPPED: APPLICATION_VIEW_STATE = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AVS_FULLSCREEN_PORTRAIT: APPLICATION_VIEW_STATE = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type ASSOCCLASS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCCLASS_SHELL_KEY: ASSOCCLASS = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCCLASS_PROGID_KEY: ASSOCCLASS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCCLASS_PROGID_STR: ASSOCCLASS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCCLASS_CLSID_KEY: ASSOCCLASS = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCCLASS_CLSID_STR: ASSOCCLASS = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCCLASS_APP_KEY: ASSOCCLASS = 5i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCCLASS_APP_STR: ASSOCCLASS = 6i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCCLASS_SYSTEM_STR: ASSOCCLASS = 7i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCCLASS_FOLDER: ASSOCCLASS = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCCLASS_STAR: ASSOCCLASS = 9i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCCLASS_FIXED_PROGID_STR: ASSOCCLASS = 10i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCCLASS_PROTOCOL_STR: ASSOCCLASS = 11i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type ASSOCDATA = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCDATA_MSIDESCRIPTOR: ASSOCDATA = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCDATA_NOACTIVATEHANDLER: ASSOCDATA = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCDATA_UNUSED1: ASSOCDATA = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCDATA_HASPERUSERASSOC: ASSOCDATA = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCDATA_EDITFLAGS: ASSOCDATA = 5i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCDATA_VALUE: ASSOCDATA = 6i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCDATA_MAX: ASSOCDATA = 7i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type ASSOCENUM = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCENUM_NONE: ASSOCENUM = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type ASSOCF = u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCF_NONE: ASSOCF = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCF_INIT_NOREMAPCLSID: ASSOCF = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCF_INIT_BYEXENAME: ASSOCF = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCF_OPEN_BYEXENAME: ASSOCF = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCF_INIT_DEFAULTTOSTAR: ASSOCF = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCF_INIT_DEFAULTTOFOLDER: ASSOCF = 8u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCF_NOUSERSETTINGS: ASSOCF = 16u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCF_NOTRUNCATE: ASSOCF = 32u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCF_VERIFY: ASSOCF = 64u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCF_REMAPRUNDLL: ASSOCF = 128u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCF_NOFIXUPS: ASSOCF = 256u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCF_IGNOREBASECLASS: ASSOCF = 512u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCF_INIT_IGNOREUNKNOWN: ASSOCF = 1024u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCF_INIT_FIXED_PROGID: ASSOCF = 2048u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCF_IS_PROTOCOL: ASSOCF = 4096u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCF_INIT_FOR_FILE: ASSOCF = 8192u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCF_IS_FULL_URI: ASSOCF = 16384u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCF_PER_MACHINE_ONLY: ASSOCF = 32768u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCF_APP_TO_APP: ASSOCF = 65536u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type ASSOCIATIONLEVEL = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AL_MACHINE: ASSOCIATIONLEVEL = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AL_EFFECTIVE: ASSOCIATIONLEVEL = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AL_USER: ASSOCIATIONLEVEL = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type ASSOCIATIONTYPE = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AT_FILEEXTENSION: ASSOCIATIONTYPE = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AT_URLPROTOCOL: ASSOCIATIONTYPE = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AT_STARTMENUCLIENT: ASSOCIATIONTYPE = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AT_MIMETYPE: ASSOCIATIONTYPE = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type ASSOCKEY = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCKEY_SHELLEXECCLASS: ASSOCKEY = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCKEY_APP: ASSOCKEY = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCKEY_CLASS: ASSOCKEY = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCKEY_BASECLASS: ASSOCKEY = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCKEY_MAX: ASSOCKEY = 5i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type ASSOCSTR = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCSTR_COMMAND: ASSOCSTR = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCSTR_EXECUTABLE: ASSOCSTR = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCSTR_FRIENDLYDOCNAME: ASSOCSTR = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCSTR_FRIENDLYAPPNAME: ASSOCSTR = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCSTR_NOOPEN: ASSOCSTR = 5i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCSTR_SHELLNEWVALUE: ASSOCSTR = 6i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCSTR_DDECOMMAND: ASSOCSTR = 7i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCSTR_DDEIFEXEC: ASSOCSTR = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCSTR_DDEAPPLICATION: ASSOCSTR = 9i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCSTR_DDETOPIC: ASSOCSTR = 10i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCSTR_INFOTIP: ASSOCSTR = 11i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCSTR_QUICKTIP: ASSOCSTR = 12i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCSTR_TILEINFO: ASSOCSTR = 13i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCSTR_CONTENTTYPE: ASSOCSTR = 14i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCSTR_DEFAULTICON: ASSOCSTR = 15i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCSTR_SHELLEXTENSION: ASSOCSTR = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCSTR_DROPTARGET: ASSOCSTR = 17i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCSTR_DELEGATEEXECUTE: ASSOCSTR = 18i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCSTR_SUPPORTED_URI_PROTOCOLS: ASSOCSTR = 19i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCSTR_PROGID: ASSOCSTR = 20i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCSTR_APPID: ASSOCSTR = 21i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCSTR_APPPUBLISHER: ASSOCSTR = 22i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCSTR_APPICONREFERENCE: ASSOCSTR = 23i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOCSTR_MAX: ASSOCSTR = 24i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type ASSOC_FILTER = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOC_FILTER_NONE: ASSOC_FILTER = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ASSOC_FILTER_RECOMMENDED: ASSOC_FILTER = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type ATTACHMENT_ACTION = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ATTACHMENT_ACTION_CANCEL: ATTACHMENT_ACTION = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ATTACHMENT_ACTION_SAVE: ATTACHMENT_ACTION = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ATTACHMENT_ACTION_EXEC: ATTACHMENT_ACTION = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type ATTACHMENT_PROMPT = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ATTACHMENT_PROMPT_NONE: ATTACHMENT_PROMPT = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ATTACHMENT_PROMPT_SAVE: ATTACHMENT_PROMPT = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ATTACHMENT_PROMPT_EXEC: ATTACHMENT_PROMPT = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ATTACHMENT_PROMPT_EXEC_OR_SAVE: ATTACHMENT_PROMPT = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type AUTOCOMPLETELISTOPTIONS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ACLO_NONE: AUTOCOMPLETELISTOPTIONS = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ACLO_CURRENTDIR: AUTOCOMPLETELISTOPTIONS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ACLO_MYCOMPUTER: AUTOCOMPLETELISTOPTIONS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ACLO_DESKTOP: AUTOCOMPLETELISTOPTIONS = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ACLO_FAVORITES: AUTOCOMPLETELISTOPTIONS = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ACLO_FILESYSONLY: AUTOCOMPLETELISTOPTIONS = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ACLO_FILESYSDIRS: AUTOCOMPLETELISTOPTIONS = 32i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ACLO_VIRTUALNAMESPACE: AUTOCOMPLETELISTOPTIONS = 64i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type AUTOCOMPLETEOPTIONS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ACO_NONE: AUTOCOMPLETEOPTIONS = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ACO_AUTOSUGGEST: AUTOCOMPLETEOPTIONS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ACO_AUTOAPPEND: AUTOCOMPLETEOPTIONS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ACO_SEARCH: AUTOCOMPLETEOPTIONS = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ACO_FILTERPREFIXES: AUTOCOMPLETEOPTIONS = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ACO_USETAB: AUTOCOMPLETEOPTIONS = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ACO_UPDOWNKEYDROPSLIST: AUTOCOMPLETEOPTIONS = 32i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ACO_RTLREADING: AUTOCOMPLETEOPTIONS = 64i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ACO_WORD_FILTER: AUTOCOMPLETEOPTIONS = 128i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ACO_NOPREFIXFILTERING: AUTOCOMPLETEOPTIONS = 256i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type BANDSITECID = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BSID_BANDADDED: BANDSITECID = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BSID_BANDREMOVED: BANDSITECID = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type BANNER_NOTIFICATION_EVENT = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BNE_Rendered: BANNER_NOTIFICATION_EVENT = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BNE_Hovered: BANNER_NOTIFICATION_EVENT = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BNE_Closed: BANNER_NOTIFICATION_EVENT = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BNE_Dismissed: BANNER_NOTIFICATION_EVENT = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BNE_Button1Clicked: BANNER_NOTIFICATION_EVENT = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BNE_Button2Clicked: BANNER_NOTIFICATION_EVENT = 5i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type BNSTATE = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BNS_NORMAL: BNSTATE = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BNS_BEGIN_NAVIGATE: BNSTATE = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BNS_NAVIGATE: BNSTATE = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type BrowserNavConstants = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const navOpenInNewWindow: BrowserNavConstants = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const navNoHistory: BrowserNavConstants = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const navNoReadFromCache: BrowserNavConstants = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const navNoWriteToCache: BrowserNavConstants = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const navAllowAutosearch: BrowserNavConstants = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const navBrowserBar: BrowserNavConstants = 32i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const navHyperlink: BrowserNavConstants = 64i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const navEnforceRestricted: BrowserNavConstants = 128i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const navNewWindowsManaged: BrowserNavConstants = 256i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const navUntrustedForDownload: BrowserNavConstants = 512i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const navTrustedForActiveX: BrowserNavConstants = 1024i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const navOpenInNewTab: BrowserNavConstants = 2048i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const navOpenInBackgroundTab: BrowserNavConstants = 4096i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const navKeepWordWheelText: BrowserNavConstants = 8192i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const navVirtualTab: BrowserNavConstants = 16384i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const navBlockRedirectsXDomain: BrowserNavConstants = 32768i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const navOpenNewForegroundTab: BrowserNavConstants = 65536i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const navTravelLogScreenshot: BrowserNavConstants = 131072i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const navDeferUnload: BrowserNavConstants = 262144i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const navSpeculative: BrowserNavConstants = 524288i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const navSuggestNewWindow: BrowserNavConstants = 1048576i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const navSuggestNewTab: BrowserNavConstants = 2097152i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const navReserved1: BrowserNavConstants = 4194304i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const navHomepageNavigate: BrowserNavConstants = 8388608i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const navRefresh: BrowserNavConstants = 16777216i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const navHostNavigation: BrowserNavConstants = 33554432i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const navReserved2: BrowserNavConstants = 67108864i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const navReserved3: BrowserNavConstants = 134217728i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const navReserved4: BrowserNavConstants = 268435456i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const navReserved5: BrowserNavConstants = 536870912i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const navReserved6: BrowserNavConstants = 1073741824i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const navReserved7: BrowserNavConstants = -2147483648i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type CATEGORYINFO_FLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CATINFO_NORMAL: CATEGORYINFO_FLAGS = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CATINFO_COLLAPSED: CATEGORYINFO_FLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CATINFO_HIDDEN: CATEGORYINFO_FLAGS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CATINFO_EXPANDED: CATEGORYINFO_FLAGS = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CATINFO_NOHEADER: CATEGORYINFO_FLAGS = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CATINFO_NOTCOLLAPSIBLE: CATEGORYINFO_FLAGS = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CATINFO_NOHEADERCOUNT: CATEGORYINFO_FLAGS = 32i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CATINFO_SUBSETTED: CATEGORYINFO_FLAGS = 64i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CATINFO_SEPARATE_IMAGES: CATEGORYINFO_FLAGS = 128i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CATINFO_SHOWEMPTY: CATEGORYINFO_FLAGS = 256i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type CATSORT_FLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CATSORT_DEFAULT: CATSORT_FLAGS = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CATSORT_NAME: CATSORT_FLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type CDBURNINGEXTENSIONRET = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CDBE_RET_DEFAULT: CDBURNINGEXTENSIONRET = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CDBE_RET_DONTRUNOTHEREXTS: CDBURNINGEXTENSIONRET = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CDBE_RET_STOPWIZARD: CDBURNINGEXTENSIONRET = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type CDCONTROLSTATEF = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CDCS_INACTIVE: CDCONTROLSTATEF = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CDCS_ENABLED: CDCONTROLSTATEF = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CDCS_VISIBLE: CDCONTROLSTATEF = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CDCS_ENABLEDVISIBLE: CDCONTROLSTATEF = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type CM_ENUM_FLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CM_ENUM_ALL: CM_ENUM_FLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CM_ENUM_VISIBLE: CM_ENUM_FLAGS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type CM_MASK = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CM_MASK_WIDTH: CM_MASK = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CM_MASK_DEFAULTWIDTH: CM_MASK = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CM_MASK_IDEALWIDTH: CM_MASK = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CM_MASK_NAME: CM_MASK = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CM_MASK_STATE: CM_MASK = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type CM_SET_WIDTH_VALUE = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CM_WIDTH_USEDEFAULT: CM_SET_WIDTH_VALUE = -1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CM_WIDTH_AUTOSIZE: CM_SET_WIDTH_VALUE = -2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type CM_STATE = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CM_STATE_NONE: CM_STATE = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CM_STATE_VISIBLE: CM_STATE = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CM_STATE_FIXEDWIDTH: CM_STATE = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CM_STATE_NOSORTBYFOLDERNESS: CM_STATE = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CM_STATE_ALWAYSVISIBLE: CM_STATE = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type CPVIEW = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPVIEW_CLASSIC: CPVIEW = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPVIEW_ALLITEMS: CPVIEW = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPVIEW_CATEGORY: CPVIEW = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPVIEW_HOME: CPVIEW = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type CREDENTIAL_PROVIDER_ACCOUNT_OPTIONS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPAO_NONE: CREDENTIAL_PROVIDER_ACCOUNT_OPTIONS = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPAO_EMPTY_LOCAL: CREDENTIAL_PROVIDER_ACCOUNT_OPTIONS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPAO_EMPTY_CONNECTED: CREDENTIAL_PROVIDER_ACCOUNT_OPTIONS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type CREDENTIAL_PROVIDER_CREDENTIAL_FIELD_OPTIONS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPCFO_NONE: CREDENTIAL_PROVIDER_CREDENTIAL_FIELD_OPTIONS = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPCFO_ENABLE_PASSWORD_REVEAL: CREDENTIAL_PROVIDER_CREDENTIAL_FIELD_OPTIONS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPCFO_IS_EMAIL_ADDRESS: CREDENTIAL_PROVIDER_CREDENTIAL_FIELD_OPTIONS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPCFO_ENABLE_TOUCH_KEYBOARD_AUTO_INVOKE: CREDENTIAL_PROVIDER_CREDENTIAL_FIELD_OPTIONS = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPCFO_NUMBERS_ONLY: CREDENTIAL_PROVIDER_CREDENTIAL_FIELD_OPTIONS = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPCFO_SHOW_ENGLISH_KEYBOARD: CREDENTIAL_PROVIDER_CREDENTIAL_FIELD_OPTIONS = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type CREDENTIAL_PROVIDER_FIELD_INTERACTIVE_STATE = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPFIS_NONE: CREDENTIAL_PROVIDER_FIELD_INTERACTIVE_STATE = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPFIS_READONLY: CREDENTIAL_PROVIDER_FIELD_INTERACTIVE_STATE = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPFIS_DISABLED: CREDENTIAL_PROVIDER_FIELD_INTERACTIVE_STATE = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPFIS_FOCUSED: CREDENTIAL_PROVIDER_FIELD_INTERACTIVE_STATE = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type CREDENTIAL_PROVIDER_FIELD_STATE = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPFS_HIDDEN: CREDENTIAL_PROVIDER_FIELD_STATE = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPFS_DISPLAY_IN_SELECTED_TILE: CREDENTIAL_PROVIDER_FIELD_STATE = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPFS_DISPLAY_IN_DESELECTED_TILE: CREDENTIAL_PROVIDER_FIELD_STATE = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPFS_DISPLAY_IN_BOTH: CREDENTIAL_PROVIDER_FIELD_STATE = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type CREDENTIAL_PROVIDER_FIELD_TYPE = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPFT_INVALID: CREDENTIAL_PROVIDER_FIELD_TYPE = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPFT_LARGE_TEXT: CREDENTIAL_PROVIDER_FIELD_TYPE = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPFT_SMALL_TEXT: CREDENTIAL_PROVIDER_FIELD_TYPE = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPFT_COMMAND_LINK: CREDENTIAL_PROVIDER_FIELD_TYPE = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPFT_EDIT_TEXT: CREDENTIAL_PROVIDER_FIELD_TYPE = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPFT_PASSWORD_TEXT: CREDENTIAL_PROVIDER_FIELD_TYPE = 5i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPFT_TILE_IMAGE: CREDENTIAL_PROVIDER_FIELD_TYPE = 6i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPFT_CHECKBOX: CREDENTIAL_PROVIDER_FIELD_TYPE = 7i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPFT_COMBOBOX: CREDENTIAL_PROVIDER_FIELD_TYPE = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPFT_SUBMIT_BUTTON: CREDENTIAL_PROVIDER_FIELD_TYPE = 9i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type CREDENTIAL_PROVIDER_GET_SERIALIZATION_RESPONSE = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPGSR_NO_CREDENTIAL_NOT_FINISHED: CREDENTIAL_PROVIDER_GET_SERIALIZATION_RESPONSE = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPGSR_NO_CREDENTIAL_FINISHED: CREDENTIAL_PROVIDER_GET_SERIALIZATION_RESPONSE = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPGSR_RETURN_CREDENTIAL_FINISHED: CREDENTIAL_PROVIDER_GET_SERIALIZATION_RESPONSE = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPGSR_RETURN_NO_CREDENTIAL_FINISHED: CREDENTIAL_PROVIDER_GET_SERIALIZATION_RESPONSE = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type CREDENTIAL_PROVIDER_STATUS_ICON = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPSI_NONE: CREDENTIAL_PROVIDER_STATUS_ICON = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPSI_ERROR: CREDENTIAL_PROVIDER_STATUS_ICON = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPSI_WARNING: CREDENTIAL_PROVIDER_STATUS_ICON = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPSI_SUCCESS: CREDENTIAL_PROVIDER_STATUS_ICON = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type CREDENTIAL_PROVIDER_USAGE_SCENARIO = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPUS_INVALID: CREDENTIAL_PROVIDER_USAGE_SCENARIO = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPUS_LOGON: CREDENTIAL_PROVIDER_USAGE_SCENARIO = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPUS_UNLOCK_WORKSTATION: CREDENTIAL_PROVIDER_USAGE_SCENARIO = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPUS_CHANGE_PASSWORD: CREDENTIAL_PROVIDER_USAGE_SCENARIO = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPUS_CREDUI: CREDENTIAL_PROVIDER_USAGE_SCENARIO = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CPUS_PLAP: CREDENTIAL_PROVIDER_USAGE_SCENARIO = 5i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type CommandStateChangeConstants = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSC_UPDATECOMMANDS: CommandStateChangeConstants = -1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSC_NAVIGATEFORWARD: CommandStateChangeConstants = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CSC_NAVIGATEBACK: CommandStateChangeConstants = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type DATAOBJ_GET_ITEM_FLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DOGIF_DEFAULT: DATAOBJ_GET_ITEM_FLAGS = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DOGIF_TRAVERSE_LINK: DATAOBJ_GET_ITEM_FLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DOGIF_NO_HDROP: DATAOBJ_GET_ITEM_FLAGS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DOGIF_NO_URL: DATAOBJ_GET_ITEM_FLAGS = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DOGIF_ONLY_IF_ONE: DATAOBJ_GET_ITEM_FLAGS = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type DEFAULTSAVEFOLDERTYPE = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DSFT_DETECT: DEFAULTSAVEFOLDERTYPE = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DSFT_PRIVATE: DEFAULTSAVEFOLDERTYPE = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DSFT_PUBLIC: DEFAULTSAVEFOLDERTYPE = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type DEFAULT_FOLDER_MENU_RESTRICTIONS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DFMR_DEFAULT: DEFAULT_FOLDER_MENU_RESTRICTIONS = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DFMR_NO_STATIC_VERBS: DEFAULT_FOLDER_MENU_RESTRICTIONS = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DFMR_STATIC_VERBS_ONLY: DEFAULT_FOLDER_MENU_RESTRICTIONS = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DFMR_NO_RESOURCE_VERBS: DEFAULT_FOLDER_MENU_RESTRICTIONS = 32i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DFMR_OPTIN_HANDLERS_ONLY: DEFAULT_FOLDER_MENU_RESTRICTIONS = 64i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DFMR_RESOURCE_AND_FOLDER_VERBS_ONLY: DEFAULT_FOLDER_MENU_RESTRICTIONS = 128i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DFMR_USE_SPECIFIED_HANDLERS: DEFAULT_FOLDER_MENU_RESTRICTIONS = 256i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DFMR_USE_SPECIFIED_VERBS: DEFAULT_FOLDER_MENU_RESTRICTIONS = 512i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DFMR_NO_ASYNC_VERBS: DEFAULT_FOLDER_MENU_RESTRICTIONS = 1024i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DFMR_NO_NATIVECPU_VERBS: DEFAULT_FOLDER_MENU_RESTRICTIONS = 2048i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DFMR_NO_NONWOW_VERBS: DEFAULT_FOLDER_MENU_RESTRICTIONS = 4096i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type DEF_SHARE_ID = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DEFSHAREID_USERS: DEF_SHARE_ID = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DEFSHAREID_PUBLIC: DEF_SHARE_ID = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type DESKBANDCID = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DBID_BANDINFOCHANGED: DESKBANDCID = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DBID_SHOWONLY: DESKBANDCID = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DBID_MAXIMIZEBAND: DESKBANDCID = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DBID_PUSHCHEVRON: DESKBANDCID = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DBID_DELAYINIT: DESKBANDCID = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DBID_FINISHINIT: DESKBANDCID = 5i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DBID_SETWINDOWTHEME: DESKBANDCID = 6i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DBID_PERMITAUTOHIDE: DESKBANDCID = 7i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type DESKTOP_SLIDESHOW_DIRECTION = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DSD_FORWARD: DESKTOP_SLIDESHOW_DIRECTION = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DSD_BACKWARD: DESKTOP_SLIDESHOW_DIRECTION = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type DESKTOP_SLIDESHOW_OPTIONS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DSO_SHUFFLEIMAGES: DESKTOP_SLIDESHOW_OPTIONS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type DESKTOP_SLIDESHOW_STATE = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DSS_ENABLED: DESKTOP_SLIDESHOW_STATE = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DSS_SLIDESHOW: DESKTOP_SLIDESHOW_STATE = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DSS_DISABLED_BY_REMOTE_SESSION: DESKTOP_SLIDESHOW_STATE = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type DESKTOP_WALLPAPER_POSITION = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DWPOS_CENTER: DESKTOP_WALLPAPER_POSITION = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DWPOS_TILE: DESKTOP_WALLPAPER_POSITION = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DWPOS_STRETCH: DESKTOP_WALLPAPER_POSITION = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DWPOS_FIT: DESKTOP_WALLPAPER_POSITION = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DWPOS_FILL: DESKTOP_WALLPAPER_POSITION = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DWPOS_SPAN: DESKTOP_WALLPAPER_POSITION = 5i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type DFM_CMD = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DFM_CMD_DELETE: DFM_CMD = -1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DFM_CMD_MOVE: DFM_CMD = -2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DFM_CMD_COPY: DFM_CMD = -3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DFM_CMD_LINK: DFM_CMD = -4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DFM_CMD_PROPERTIES: DFM_CMD = -5i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DFM_CMD_NEWFOLDER: DFM_CMD = -6i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DFM_CMD_PASTE: DFM_CMD = -7i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DFM_CMD_VIEWLIST: DFM_CMD = -8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DFM_CMD_VIEWDETAILS: DFM_CMD = -9i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DFM_CMD_PASTELINK: DFM_CMD = -10i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DFM_CMD_PASTESPECIAL: DFM_CMD = -11i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DFM_CMD_MODALPROP: DFM_CMD = -12i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DFM_CMD_RENAME: DFM_CMD = -13i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type DFM_MESSAGE_ID = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DFM_MERGECONTEXTMENU: DFM_MESSAGE_ID = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DFM_INVOKECOMMAND: DFM_MESSAGE_ID = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DFM_GETHELPTEXT: DFM_MESSAGE_ID = 5i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DFM_WM_MEASUREITEM: DFM_MESSAGE_ID = 6i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DFM_WM_DRAWITEM: DFM_MESSAGE_ID = 7i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DFM_WM_INITMENUPOPUP: DFM_MESSAGE_ID = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DFM_VALIDATECMD: DFM_MESSAGE_ID = 9i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DFM_MERGECONTEXTMENU_TOP: DFM_MESSAGE_ID = 10i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DFM_GETHELPTEXTW: DFM_MESSAGE_ID = 11i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DFM_INVOKECOMMANDEX: DFM_MESSAGE_ID = 12i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DFM_MAPCOMMANDNAME: DFM_MESSAGE_ID = 13i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DFM_GETDEFSTATICID: DFM_MESSAGE_ID = 14i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DFM_GETVERBW: DFM_MESSAGE_ID = 15i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DFM_GETVERBA: DFM_MESSAGE_ID = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DFM_MERGECONTEXTMENU_BOTTOM: DFM_MESSAGE_ID = 17i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DFM_MODIFYQCMFLAGS: DFM_MESSAGE_ID = 18i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type DISPLAY_DEVICE_TYPE = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DEVICE_PRIMARY: DISPLAY_DEVICE_TYPE = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DEVICE_IMMERSIVE: DISPLAY_DEVICE_TYPE = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type DROPIMAGETYPE = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DROPIMAGE_INVALID: DROPIMAGETYPE = -1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DROPIMAGE_NONE: DROPIMAGETYPE = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DROPIMAGE_COPY: DROPIMAGETYPE = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DROPIMAGE_MOVE: DROPIMAGETYPE = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DROPIMAGE_LINK: DROPIMAGETYPE = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DROPIMAGE_LABEL: DROPIMAGETYPE = 6i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DROPIMAGE_WARNING: DROPIMAGETYPE = 7i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DROPIMAGE_NOIMAGE: DROPIMAGETYPE = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type DSH_FLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const DSH_ALLOWDROPDESCRIPTIONTEXT: DSH_FLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type EC_HOST_UI_MODE = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ECHUIM_DESKTOP: EC_HOST_UI_MODE = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ECHUIM_IMMERSIVE: EC_HOST_UI_MODE = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ECHUIM_SYSTEM_LAUNCHER: EC_HOST_UI_MODE = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type EDGE_GESTURE_KIND = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const EGK_TOUCH: EDGE_GESTURE_KIND = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const EGK_KEYBOARD: EDGE_GESTURE_KIND = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const EGK_MOUSE: EDGE_GESTURE_KIND = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type EXPLORER_BROWSER_FILL_FLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const EBF_NONE: EXPLORER_BROWSER_FILL_FLAGS = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const EBF_SELECTFROMDATAOBJECT: EXPLORER_BROWSER_FILL_FLAGS = 256i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const EBF_NODROPTARGET: EXPLORER_BROWSER_FILL_FLAGS = 512i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type EXPLORER_BROWSER_OPTIONS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const EBO_NONE: EXPLORER_BROWSER_OPTIONS = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const EBO_NAVIGATEONCE: EXPLORER_BROWSER_OPTIONS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const EBO_SHOWFRAMES: EXPLORER_BROWSER_OPTIONS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const EBO_ALWAYSNAVIGATE: EXPLORER_BROWSER_OPTIONS = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const EBO_NOTRAVELLOG: EXPLORER_BROWSER_OPTIONS = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const EBO_NOWRAPPERWINDOW: EXPLORER_BROWSER_OPTIONS = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const EBO_HTMLSHAREPOINTVIEW: EXPLORER_BROWSER_OPTIONS = 32i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const EBO_NOBORDER: EXPLORER_BROWSER_OPTIONS = 64i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const EBO_NOPERSISTVIEWSTATE: EXPLORER_BROWSER_OPTIONS = 128i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type FDAP = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FDAP_BOTTOM: FDAP = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FDAP_TOP: FDAP = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type FDE_OVERWRITE_RESPONSE = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FDEOR_DEFAULT: FDE_OVERWRITE_RESPONSE = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FDEOR_ACCEPT: FDE_OVERWRITE_RESPONSE = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FDEOR_REFUSE: FDE_OVERWRITE_RESPONSE = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type FDE_SHAREVIOLATION_RESPONSE = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FDESVR_DEFAULT: FDE_SHAREVIOLATION_RESPONSE = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FDESVR_ACCEPT: FDE_SHAREVIOLATION_RESPONSE = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FDESVR_REFUSE: FDE_SHAREVIOLATION_RESPONSE = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type FD_FLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FD_CLSID: FD_FLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FD_SIZEPOINT: FD_FLAGS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FD_ATTRIBUTES: FD_FLAGS = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FD_CREATETIME: FD_FLAGS = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FD_ACCESSTIME: FD_FLAGS = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FD_WRITESTIME: FD_FLAGS = 32i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FD_FILESIZE: FD_FLAGS = 64i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FD_PROGRESSUI: FD_FLAGS = 16384i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FD_LINKUI: FD_FLAGS = 32768i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FD_UNICODE: FD_FLAGS = -2147483648i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type FFFP_MODE = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FFFP_EXACTMATCH: FFFP_MODE = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FFFP_NEARESTPARENTMATCH: FFFP_MODE = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type FILEOPENDIALOGOPTIONS = u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOS_OVERWRITEPROMPT: FILEOPENDIALOGOPTIONS = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOS_STRICTFILETYPES: FILEOPENDIALOGOPTIONS = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOS_NOCHANGEDIR: FILEOPENDIALOGOPTIONS = 8u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOS_PICKFOLDERS: FILEOPENDIALOGOPTIONS = 32u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOS_FORCEFILESYSTEM: FILEOPENDIALOGOPTIONS = 64u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOS_ALLNONSTORAGEITEMS: FILEOPENDIALOGOPTIONS = 128u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOS_NOVALIDATE: FILEOPENDIALOGOPTIONS = 256u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOS_ALLOWMULTISELECT: FILEOPENDIALOGOPTIONS = 512u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOS_PATHMUSTEXIST: FILEOPENDIALOGOPTIONS = 2048u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOS_FILEMUSTEXIST: FILEOPENDIALOGOPTIONS = 4096u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOS_CREATEPROMPT: FILEOPENDIALOGOPTIONS = 8192u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOS_SHAREAWARE: FILEOPENDIALOGOPTIONS = 16384u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOS_NOREADONLYRETURN: FILEOPENDIALOGOPTIONS = 32768u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOS_NOTESTFILECREATE: FILEOPENDIALOGOPTIONS = 65536u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOS_HIDEMRUPLACES: FILEOPENDIALOGOPTIONS = 131072u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOS_HIDEPINNEDPLACES: FILEOPENDIALOGOPTIONS = 262144u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOS_NODEREFERENCELINKS: FILEOPENDIALOGOPTIONS = 1048576u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOS_OKBUTTONNEEDSINTERACTION: FILEOPENDIALOGOPTIONS = 2097152u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOS_DONTADDTORECENT: FILEOPENDIALOGOPTIONS = 33554432u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOS_FORCESHOWHIDDEN: FILEOPENDIALOGOPTIONS = 268435456u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOS_DEFAULTNOMINIMODE: FILEOPENDIALOGOPTIONS = 536870912u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOS_FORCEPREVIEWPANEON: FILEOPENDIALOGOPTIONS = 1073741824u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOS_SUPPORTSTREAMABLEITEMS: FILEOPENDIALOGOPTIONS = 2147483648u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type FILETYPEATTRIBUTEFLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FTA_None: FILETYPEATTRIBUTEFLAGS = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FTA_Exclude: FILETYPEATTRIBUTEFLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FTA_Show: FILETYPEATTRIBUTEFLAGS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FTA_HasExtension: FILETYPEATTRIBUTEFLAGS = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FTA_NoEdit: FILETYPEATTRIBUTEFLAGS = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FTA_NoRemove: FILETYPEATTRIBUTEFLAGS = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FTA_NoNewVerb: FILETYPEATTRIBUTEFLAGS = 32i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FTA_NoEditVerb: FILETYPEATTRIBUTEFLAGS = 64i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FTA_NoRemoveVerb: FILETYPEATTRIBUTEFLAGS = 128i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FTA_NoEditDesc: FILETYPEATTRIBUTEFLAGS = 256i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FTA_NoEditIcon: FILETYPEATTRIBUTEFLAGS = 512i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FTA_NoEditDflt: FILETYPEATTRIBUTEFLAGS = 1024i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FTA_NoEditVerbCmd: FILETYPEATTRIBUTEFLAGS = 2048i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FTA_NoEditVerbExe: FILETYPEATTRIBUTEFLAGS = 4096i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FTA_NoDDE: FILETYPEATTRIBUTEFLAGS = 8192i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FTA_NoEditMIME: FILETYPEATTRIBUTEFLAGS = 32768i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FTA_OpenIsSafe: FILETYPEATTRIBUTEFLAGS = 65536i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FTA_AlwaysUnsafe: FILETYPEATTRIBUTEFLAGS = 131072i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FTA_NoRecentDocs: FILETYPEATTRIBUTEFLAGS = 1048576i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FTA_SafeForElevation: FILETYPEATTRIBUTEFLAGS = 2097152i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FTA_AlwaysUseDirectInvoke: FILETYPEATTRIBUTEFLAGS = 4194304i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type FILE_OPERATION_FLAGS2 = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOF2_NONE: FILE_OPERATION_FLAGS2 = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FOF2_MERGEFOLDERSONCOLLISION: FILE_OPERATION_FLAGS2 = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type FILE_USAGE_TYPE = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FUT_PLAYING: FILE_USAGE_TYPE = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FUT_EDITING: FILE_USAGE_TYPE = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FUT_GENERIC: FILE_USAGE_TYPE = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type FLYOUT_PLACEMENT = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FP_DEFAULT: FLYOUT_PLACEMENT = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FP_ABOVE: FLYOUT_PLACEMENT = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FP_BELOW: FLYOUT_PLACEMENT = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FP_LEFT: FLYOUT_PLACEMENT = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FP_RIGHT: FLYOUT_PLACEMENT = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type FOLDERFLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FWF_NONE: FOLDERFLAGS = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FWF_AUTOARRANGE: FOLDERFLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FWF_ABBREVIATEDNAMES: FOLDERFLAGS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FWF_SNAPTOGRID: FOLDERFLAGS = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FWF_OWNERDATA: FOLDERFLAGS = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FWF_BESTFITWINDOW: FOLDERFLAGS = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FWF_DESKTOP: FOLDERFLAGS = 32i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FWF_SINGLESEL: FOLDERFLAGS = 64i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FWF_NOSUBFOLDERS: FOLDERFLAGS = 128i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FWF_TRANSPARENT: FOLDERFLAGS = 256i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FWF_NOCLIENTEDGE: FOLDERFLAGS = 512i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FWF_NOSCROLL: FOLDERFLAGS = 1024i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FWF_ALIGNLEFT: FOLDERFLAGS = 2048i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FWF_NOICONS: FOLDERFLAGS = 4096i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FWF_SHOWSELALWAYS: FOLDERFLAGS = 8192i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FWF_NOVISIBLE: FOLDERFLAGS = 16384i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FWF_SINGLECLICKACTIVATE: FOLDERFLAGS = 32768i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FWF_NOWEBVIEW: FOLDERFLAGS = 65536i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FWF_HIDEFILENAMES: FOLDERFLAGS = 131072i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FWF_CHECKSELECT: FOLDERFLAGS = 262144i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FWF_NOENUMREFRESH: FOLDERFLAGS = 524288i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FWF_NOGROUPING: FOLDERFLAGS = 1048576i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FWF_FULLROWSELECT: FOLDERFLAGS = 2097152i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FWF_NOFILTERS: FOLDERFLAGS = 4194304i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FWF_NOCOLUMNHEADER: FOLDERFLAGS = 8388608i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FWF_NOHEADERINALLVIEWS: FOLDERFLAGS = 16777216i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FWF_EXTENDEDTILES: FOLDERFLAGS = 33554432i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FWF_TRICHECKSELECT: FOLDERFLAGS = 67108864i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FWF_AUTOCHECKSELECT: FOLDERFLAGS = 134217728i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FWF_NOBROWSERVIEWSTATE: FOLDERFLAGS = 268435456i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FWF_SUBSETGROUPS: FOLDERFLAGS = 536870912i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FWF_USESEARCHFOLDER: FOLDERFLAGS = 1073741824i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FWF_ALLOWRTLREADING: FOLDERFLAGS = -2147483648i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type FOLDERLOGICALVIEWMODE = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FLVM_UNSPECIFIED: FOLDERLOGICALVIEWMODE = -1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FLVM_FIRST: FOLDERLOGICALVIEWMODE = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FLVM_DETAILS: FOLDERLOGICALVIEWMODE = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FLVM_TILES: FOLDERLOGICALVIEWMODE = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FLVM_ICONS: FOLDERLOGICALVIEWMODE = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FLVM_LIST: FOLDERLOGICALVIEWMODE = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FLVM_CONTENT: FOLDERLOGICALVIEWMODE = 5i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FLVM_LAST: FOLDERLOGICALVIEWMODE = 5i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type FOLDERVIEWMODE = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FVM_AUTO: FOLDERVIEWMODE = -1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FVM_FIRST: FOLDERVIEWMODE = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FVM_ICON: FOLDERVIEWMODE = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FVM_SMALLICON: FOLDERVIEWMODE = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FVM_LIST: FOLDERVIEWMODE = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FVM_DETAILS: FOLDERVIEWMODE = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FVM_THUMBNAIL: FOLDERVIEWMODE = 5i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FVM_TILE: FOLDERVIEWMODE = 6i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FVM_THUMBSTRIP: FOLDERVIEWMODE = 7i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FVM_CONTENT: FOLDERVIEWMODE = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FVM_LAST: FOLDERVIEWMODE = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type FOLDERVIEWOPTIONS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FVO_DEFAULT: FOLDERVIEWOPTIONS = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FVO_VISTALAYOUT: FOLDERVIEWOPTIONS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FVO_CUSTOMPOSITION: FOLDERVIEWOPTIONS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FVO_CUSTOMORDERING: FOLDERVIEWOPTIONS = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FVO_SUPPORTHYPERLINKS: FOLDERVIEWOPTIONS = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FVO_NOANIMATIONS: FOLDERVIEWOPTIONS = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FVO_NOSCROLLTIPS: FOLDERVIEWOPTIONS = 32i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type FOLDER_ENUM_MODE = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FEM_VIEWRESULT: FOLDER_ENUM_MODE = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FEM_NAVIGATION: FOLDER_ENUM_MODE = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type FVTEXTTYPE = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const FVST_EMPTYTEXT: FVTEXTTYPE = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type GPFIDL_FLAGS = u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GPFIDL_DEFAULT: GPFIDL_FLAGS = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GPFIDL_ALTNAME: GPFIDL_FLAGS = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GPFIDL_UNCPRINTER: GPFIDL_FLAGS = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type HELP_INFO_TYPE = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HELPINFO_WINDOW: HELP_INFO_TYPE = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HELPINFO_MENUITEM: HELP_INFO_TYPE = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type HLBWIF_FLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLBWIF_HASFRAMEWNDINFO: HLBWIF_FLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLBWIF_HASDOCWNDINFO: HLBWIF_FLAGS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLBWIF_FRAMEWNDMAXIMIZED: HLBWIF_FLAGS = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLBWIF_DOCWNDMAXIMIZED: HLBWIF_FLAGS = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLBWIF_HASWEBTOOLBARINFO: HLBWIF_FLAGS = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLBWIF_WEBTOOLBARHIDDEN: HLBWIF_FLAGS = 32i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type HLFNAMEF = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLFNAMEF_DEFAULT: HLFNAMEF = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLFNAMEF_TRYCACHE: HLFNAMEF = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLFNAMEF_TRYPRETTYTARGET: HLFNAMEF = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLFNAMEF_TRYFULLTARGET: HLFNAMEF = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLFNAMEF_TRYWIN95SHORTCUT: HLFNAMEF = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type HLID_INFO = u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLID_INVALID: HLID_INFO = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLID_PREVIOUS: HLID_INFO = 4294967295u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLID_NEXT: HLID_INFO = 4294967294u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLID_CURRENT: HLID_INFO = 4294967293u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLID_STACKBOTTOM: HLID_INFO = 4294967292u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLID_STACKTOP: HLID_INFO = 4294967291u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type HLINKGETREF = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLINKGETREF_DEFAULT: HLINKGETREF = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLINKGETREF_ABSOLUTE: HLINKGETREF = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLINKGETREF_RELATIVE: HLINKGETREF = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type HLINKMISC = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLINKMISC_RELATIVE: HLINKMISC = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type HLINKSETF = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLINKSETF_TARGET: HLINKSETF = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLINKSETF_LOCATION: HLINKSETF = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type HLINKWHICHMK = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLINKWHICHMK_CONTAINER: HLINKWHICHMK = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLINKWHICHMK_BASE: HLINKWHICHMK = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type HLNF = u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLNF_INTERNALJUMP: HLNF = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLNF_OPENINNEWWINDOW: HLNF = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLNF_NAVIGATINGBACK: HLNF = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLNF_NAVIGATINGFORWARD: HLNF = 8u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLNF_NAVIGATINGTOSTACKITEM: HLNF = 16u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLNF_CREATENOHISTORY: HLNF = 32u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type HLQF_INFO = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLQF_ISVALID: HLQF_INFO = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLQF_ISCURRENT: HLQF_INFO = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type HLSHORTCUTF = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLSHORTCUTF_DEFAULT: HLSHORTCUTF = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLSHORTCUTF_DONTACTUALLYCREATE: HLSHORTCUTF = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLSHORTCUTF_USEFILENAMEFROMFRIENDLYNAME: HLSHORTCUTF = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLSHORTCUTF_USEUNIQUEFILENAME: HLSHORTCUTF = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLSHORTCUTF_MAYUSEEXISTINGSHORTCUT: HLSHORTCUTF = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type HLSR = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLSR_HOME: HLSR = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLSR_SEARCHPAGE: HLSR = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLSR_HISTORYFOLDER: HLSR = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type HLTB_INFO = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLTB_DOCKEDLEFT: HLTB_INFO = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLTB_DOCKEDTOP: HLTB_INFO = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLTB_DOCKEDRIGHT: HLTB_INFO = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLTB_DOCKEDBOTTOM: HLTB_INFO = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLTB_FLOATING: HLTB_INFO = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type HLTRANSLATEF = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLTRANSLATEF_DEFAULT: HLTRANSLATEF = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HLTRANSLATEF_DONTAPPLYDEFAULTPREFIX: HLTRANSLATEF = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type HOMEGROUPSHARINGCHOICES = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HGSC_NONE: HOMEGROUPSHARINGCHOICES = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HGSC_MUSICLIBRARY: HOMEGROUPSHARINGCHOICES = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HGSC_PICTURESLIBRARY: HOMEGROUPSHARINGCHOICES = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HGSC_VIDEOSLIBRARY: HOMEGROUPSHARINGCHOICES = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HGSC_DOCUMENTSLIBRARY: HOMEGROUPSHARINGCHOICES = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const HGSC_PRINTERS: HOMEGROUPSHARINGCHOICES = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type IEPDNFLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const IEPDN_BINDINGUI: IEPDNFLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type IESHORTCUTFLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const IESHORTCUT_NEWBROWSER: IESHORTCUTFLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const IESHORTCUT_OPENNEWTAB: IESHORTCUTFLAGS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const IESHORTCUT_FORCENAVIGATE: IESHORTCUTFLAGS = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const IESHORTCUT_BACKGROUNDTAB: IESHORTCUTFLAGS = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type IURL_INVOKECOMMAND_FLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const IURL_INVOKECOMMAND_FL_ALLOW_UI: IURL_INVOKECOMMAND_FLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const IURL_INVOKECOMMAND_FL_USE_DEFAULT_VERB: IURL_INVOKECOMMAND_FLAGS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const IURL_INVOKECOMMAND_FL_DDEWAIT: IURL_INVOKECOMMAND_FLAGS = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const IURL_INVOKECOMMAND_FL_ASYNCOK: IURL_INVOKECOMMAND_FLAGS = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const IURL_INVOKECOMMAND_FL_LOG_USAGE: IURL_INVOKECOMMAND_FLAGS = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type IURL_SETURL_FLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const IURL_SETURL_FL_GUESS_PROTOCOL: IURL_SETURL_FLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const IURL_SETURL_FL_USE_DEFAULT_PROTOCOL: IURL_SETURL_FLAGS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type KF_CATEGORY = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const KF_CATEGORY_VIRTUAL: KF_CATEGORY = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const KF_CATEGORY_FIXED: KF_CATEGORY = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const KF_CATEGORY_COMMON: KF_CATEGORY = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const KF_CATEGORY_PERUSER: KF_CATEGORY = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type KNOWNDESTCATEGORY = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const KDC_FREQUENT: KNOWNDESTCATEGORY = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const KDC_RECENT: KNOWNDESTCATEGORY = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type KNOWN_FOLDER_FLAG = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const KF_FLAG_DEFAULT: KNOWN_FOLDER_FLAG = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const KF_FLAG_FORCE_APP_DATA_REDIRECTION: KNOWN_FOLDER_FLAG = 524288i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const KF_FLAG_RETURN_FILTER_REDIRECTION_TARGET: KNOWN_FOLDER_FLAG = 262144i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const KF_FLAG_FORCE_PACKAGE_REDIRECTION: KNOWN_FOLDER_FLAG = 131072i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const KF_FLAG_NO_PACKAGE_REDIRECTION: KNOWN_FOLDER_FLAG = 65536i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const KF_FLAG_FORCE_APPCONTAINER_REDIRECTION: KNOWN_FOLDER_FLAG = 131072i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const KF_FLAG_NO_APPCONTAINER_REDIRECTION: KNOWN_FOLDER_FLAG = 65536i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const KF_FLAG_CREATE: KNOWN_FOLDER_FLAG = 32768i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const KF_FLAG_DONT_VERIFY: KNOWN_FOLDER_FLAG = 16384i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const KF_FLAG_DONT_UNEXPAND: KNOWN_FOLDER_FLAG = 8192i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const KF_FLAG_NO_ALIAS: KNOWN_FOLDER_FLAG = 4096i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const KF_FLAG_INIT: KNOWN_FOLDER_FLAG = 2048i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const KF_FLAG_DEFAULT_PATH: KNOWN_FOLDER_FLAG = 1024i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const KF_FLAG_NOT_PARENT_RELATIVE: KNOWN_FOLDER_FLAG = 512i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const KF_FLAG_SIMPLE_IDLIST: KNOWN_FOLDER_FLAG = 256i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const KF_FLAG_ALIAS_ONLY: KNOWN_FOLDER_FLAG = -2147483648i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type LIBRARYFOLDERFILTER = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const LFF_FORCEFILESYSTEM: LIBRARYFOLDERFILTER = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const LFF_STORAGEITEMS: LIBRARYFOLDERFILTER = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const LFF_ALLITEMS: LIBRARYFOLDERFILTER = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type LIBRARYMANAGEDIALOGOPTIONS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const LMD_DEFAULT: LIBRARYMANAGEDIALOGOPTIONS = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const LMD_ALLOWUNINDEXABLENETWORKLOCATIONS: LIBRARYMANAGEDIALOGOPTIONS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type LIBRARYOPTIONFLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const LOF_DEFAULT: LIBRARYOPTIONFLAGS = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const LOF_PINNEDTONAVPANE: LIBRARYOPTIONFLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const LOF_MASK_ALL: LIBRARYOPTIONFLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type LIBRARYSAVEFLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const LSF_FAILIFTHERE: LIBRARYSAVEFLAGS = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const LSF_OVERRIDEEXISTING: LIBRARYSAVEFLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const LSF_MAKEUNIQUENAME: LIBRARYSAVEFLAGS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type MENUBANDHANDLERCID = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const MBHANDCID_PIDLSELECT: MENUBANDHANDLERCID = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type MENUPOPUPPOPUPFLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const MPPF_SETFOCUS: MENUPOPUPPOPUPFLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const MPPF_INITIALSELECT: MENUPOPUPPOPUPFLAGS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const MPPF_NOANIMATE: MENUPOPUPPOPUPFLAGS = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const MPPF_KEYBOARD: MENUPOPUPPOPUPFLAGS = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const MPPF_REPOSITION: MENUPOPUPPOPUPFLAGS = 32i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const MPPF_FORCEZORDER: MENUPOPUPPOPUPFLAGS = 64i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const MPPF_FINALSELECT: MENUPOPUPPOPUPFLAGS = 128i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const MPPF_TOP: MENUPOPUPPOPUPFLAGS = 536870912i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const MPPF_LEFT: MENUPOPUPPOPUPFLAGS = 1073741824i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const MPPF_RIGHT: MENUPOPUPPOPUPFLAGS = 1610612736i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const MPPF_BOTTOM: MENUPOPUPPOPUPFLAGS = -2147483648i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const MPPF_POS_MASK: MENUPOPUPPOPUPFLAGS = -536870912i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const MPPF_ALIGN_LEFT: MENUPOPUPPOPUPFLAGS = 33554432i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const MPPF_ALIGN_RIGHT: MENUPOPUPPOPUPFLAGS = 67108864i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type MENUPOPUPSELECT = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const MPOS_EXECUTE: MENUPOPUPSELECT = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const MPOS_FULLCANCEL: MENUPOPUPSELECT = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const MPOS_CANCELLEVEL: MENUPOPUPSELECT = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const MPOS_SELECTLEFT: MENUPOPUPSELECT = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const MPOS_SELECTRIGHT: MENUPOPUPSELECT = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const MPOS_CHILDTRACKING: MENUPOPUPSELECT = 5i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type MERGE_UPDATE_STATUS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const MUS_COMPLETE: MERGE_UPDATE_STATUS = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const MUS_USERINPUTNEEDED: MERGE_UPDATE_STATUS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const MUS_FAILED: MERGE_UPDATE_STATUS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type MIMEASSOCIATIONDIALOG_IN_FLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const MIMEASSOCDLG_FL_REGISTER_ASSOC: MIMEASSOCIATIONDIALOG_IN_FLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type MM_FLAGS = u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const MM_ADDSEPARATOR: MM_FLAGS = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const MM_SUBMENUSHAVEIDS: MM_FLAGS = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const MM_DONTREMOVESEPS: MM_FLAGS = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type MONITOR_APP_VISIBILITY = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const MAV_UNKNOWN: MONITOR_APP_VISIBILITY = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const MAV_NO_APP_VISIBLE: MONITOR_APP_VISIBILITY = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const MAV_APP_VISIBLE: MONITOR_APP_VISIBILITY = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type NAMESPACEWALKFLAG = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSWF_DEFAULT: NAMESPACEWALKFLAG = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSWF_NONE_IMPLIES_ALL: NAMESPACEWALKFLAG = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSWF_ONE_IMPLIES_ALL: NAMESPACEWALKFLAG = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSWF_DONT_TRAVERSE_LINKS: NAMESPACEWALKFLAG = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSWF_DONT_ACCUMULATE_RESULT: NAMESPACEWALKFLAG = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSWF_TRAVERSE_STREAM_JUNCTIONS: NAMESPACEWALKFLAG = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSWF_FILESYSTEM_ONLY: NAMESPACEWALKFLAG = 32i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSWF_SHOW_PROGRESS: NAMESPACEWALKFLAG = 64i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSWF_FLAG_VIEWORDER: NAMESPACEWALKFLAG = 128i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSWF_IGNORE_AUTOPLAY_HIDA: NAMESPACEWALKFLAG = 256i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSWF_ASYNC: NAMESPACEWALKFLAG = 512i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSWF_DONT_RESOLVE_LINKS: NAMESPACEWALKFLAG = 1024i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSWF_ACCUMULATE_FOLDERS: NAMESPACEWALKFLAG = 2048i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSWF_DONT_SORT: NAMESPACEWALKFLAG = 4096i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSWF_USE_TRANSFER_MEDIUM: NAMESPACEWALKFLAG = 8192i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSWF_DONT_TRAVERSE_STREAM_JUNCTIONS: NAMESPACEWALKFLAG = 16384i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSWF_ANY_IMPLIES_ALL: NAMESPACEWALKFLAG = 32768i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type NATIVE_DISPLAY_ORIENTATION = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NDO_LANDSCAPE: NATIVE_DISPLAY_ORIENTATION = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NDO_PORTRAIT: NATIVE_DISPLAY_ORIENTATION = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type NOTIFY_ICON_DATA_FLAGS = u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NIF_MESSAGE: NOTIFY_ICON_DATA_FLAGS = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NIF_ICON: NOTIFY_ICON_DATA_FLAGS = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NIF_TIP: NOTIFY_ICON_DATA_FLAGS = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NIF_STATE: NOTIFY_ICON_DATA_FLAGS = 8u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NIF_INFO: NOTIFY_ICON_DATA_FLAGS = 16u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NIF_GUID: NOTIFY_ICON_DATA_FLAGS = 32u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NIF_REALTIME: NOTIFY_ICON_DATA_FLAGS = 64u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NIF_SHOWTIP: NOTIFY_ICON_DATA_FLAGS = 128u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type NOTIFY_ICON_INFOTIP_FLAGS = u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NIIF_NONE: NOTIFY_ICON_INFOTIP_FLAGS = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NIIF_INFO: NOTIFY_ICON_INFOTIP_FLAGS = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NIIF_WARNING: NOTIFY_ICON_INFOTIP_FLAGS = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NIIF_ERROR: NOTIFY_ICON_INFOTIP_FLAGS = 3u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NIIF_USER: NOTIFY_ICON_INFOTIP_FLAGS = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NIIF_ICON_MASK: NOTIFY_ICON_INFOTIP_FLAGS = 15u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NIIF_NOSOUND: NOTIFY_ICON_INFOTIP_FLAGS = 16u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NIIF_LARGE_ICON: NOTIFY_ICON_INFOTIP_FLAGS = 32u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NIIF_RESPECT_QUIET_TIME: NOTIFY_ICON_INFOTIP_FLAGS = 128u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type NOTIFY_ICON_MESSAGE = u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NIM_ADD: NOTIFY_ICON_MESSAGE = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NIM_MODIFY: NOTIFY_ICON_MESSAGE = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NIM_DELETE: NOTIFY_ICON_MESSAGE = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NIM_SETFOCUS: NOTIFY_ICON_MESSAGE = 3u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NIM_SETVERSION: NOTIFY_ICON_MESSAGE = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type NOTIFY_ICON_STATE = u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NIS_HIDDEN: NOTIFY_ICON_STATE = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NIS_SHAREDICON: NOTIFY_ICON_STATE = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type NSTCFOLDERCAPABILITIES = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCFC_NONE: NSTCFOLDERCAPABILITIES = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCFC_PINNEDITEMFILTERING: NSTCFOLDERCAPABILITIES = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCFC_DELAY_REGISTER_NOTIFY: NSTCFOLDERCAPABILITIES = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type NSTCGNI = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCGNI_NEXT: NSTCGNI = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCGNI_NEXTVISIBLE: NSTCGNI = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCGNI_PREV: NSTCGNI = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCGNI_PREVVISIBLE: NSTCGNI = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCGNI_PARENT: NSTCGNI = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCGNI_CHILD: NSTCGNI = 5i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCGNI_FIRSTVISIBLE: NSTCGNI = 6i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCGNI_LASTVISIBLE: NSTCGNI = 7i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type NSTCSTYLE2 = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCS2_DEFAULT: NSTCSTYLE2 = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCS2_INTERRUPTNOTIFICATIONS: NSTCSTYLE2 = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCS2_SHOWNULLSPACEMENU: NSTCSTYLE2 = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCS2_DISPLAYPADDING: NSTCSTYLE2 = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCS2_DISPLAYPINNEDONLY: NSTCSTYLE2 = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NTSCS2_NOSINGLETONAUTOEXPAND: NSTCSTYLE2 = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NTSCS2_NEVERINSERTNONENUMERATED: NSTCSTYLE2 = 32i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type NWMF = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NWMF_UNLOADING: NWMF = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NWMF_USERINITED: NWMF = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NWMF_FIRST: NWMF = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NWMF_OVERRIDEKEY: NWMF = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NWMF_SHOWHELP: NWMF = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NWMF_HTMLDIALOG: NWMF = 32i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NWMF_FROMDIALOGCHILD: NWMF = 64i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NWMF_USERREQUESTED: NWMF = 128i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NWMF_USERALLOWED: NWMF = 256i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NWMF_FORCEWINDOW: NWMF = 65536i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NWMF_FORCETAB: NWMF = 131072i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NWMF_SUGGESTWINDOW: NWMF = 262144i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NWMF_SUGGESTTAB: NWMF = 524288i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NWMF_INACTIVETAB: NWMF = 1048576i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type NewProcessCauseConstants = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ProtectedModeRedirect: NewProcessCauseConstants = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type OPEN_AS_INFO_FLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OAIF_ALLOW_REGISTRATION: OPEN_AS_INFO_FLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OAIF_REGISTER_EXT: OPEN_AS_INFO_FLAGS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OAIF_EXEC: OPEN_AS_INFO_FLAGS = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OAIF_FORCE_REGISTRATION: OPEN_AS_INFO_FLAGS = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OAIF_HIDE_REGISTRATION: OPEN_AS_INFO_FLAGS = 32i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OAIF_URL_PROTOCOL: OPEN_AS_INFO_FLAGS = 64i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OAIF_FILE_IS_URI: OPEN_AS_INFO_FLAGS = 128i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type OS = u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OS_WINDOWS: OS = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OS_NT: OS = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OS_WIN95ORGREATER: OS = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OS_NT4ORGREATER: OS = 3u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OS_WIN98ORGREATER: OS = 5u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OS_WIN98_GOLD: OS = 6u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OS_WIN2000ORGREATER: OS = 7u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OS_WIN2000PRO: OS = 8u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OS_WIN2000SERVER: OS = 9u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OS_WIN2000ADVSERVER: OS = 10u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OS_WIN2000DATACENTER: OS = 11u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OS_WIN2000TERMINAL: OS = 12u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OS_EMBEDDED: OS = 13u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OS_TERMINALCLIENT: OS = 14u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OS_TERMINALREMOTEADMIN: OS = 15u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OS_WIN95_GOLD: OS = 16u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OS_MEORGREATER: OS = 17u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OS_XPORGREATER: OS = 18u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OS_HOME: OS = 19u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OS_PROFESSIONAL: OS = 20u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OS_DATACENTER: OS = 21u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OS_ADVSERVER: OS = 22u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OS_SERVER: OS = 23u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OS_TERMINALSERVER: OS = 24u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OS_PERSONALTERMINALSERVER: OS = 25u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OS_FASTUSERSWITCHING: OS = 26u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OS_WELCOMELOGONUI: OS = 27u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OS_DOMAINMEMBER: OS = 28u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OS_ANYSERVER: OS = 29u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OS_WOW6432: OS = 30u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OS_WEBSERVER: OS = 31u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OS_SMALLBUSINESSSERVER: OS = 32u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OS_TABLETPC: OS = 33u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OS_SERVERADMINUI: OS = 34u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OS_MEDIACENTER: OS = 35u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OS_APPLIANCE: OS = 36u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type OfflineFolderStatus = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OFS_INACTIVE: OfflineFolderStatus = -1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OFS_ONLINE: OfflineFolderStatus = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OFS_OFFLINE: OfflineFolderStatus = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OFS_SERVERBACK: OfflineFolderStatus = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OFS_DIRTYCACHE: OfflineFolderStatus = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type PACKAGE_EXECUTION_STATE = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PES_UNKNOWN: PACKAGE_EXECUTION_STATE = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PES_RUNNING: PACKAGE_EXECUTION_STATE = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PES_SUSPENDING: PACKAGE_EXECUTION_STATE = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PES_SUSPENDED: PACKAGE_EXECUTION_STATE = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PES_TERMINATED: PACKAGE_EXECUTION_STATE = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type PATHCCH_OPTIONS = u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PATHCCH_NONE: PATHCCH_OPTIONS = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PATHCCH_ALLOW_LONG_PATHS: PATHCCH_OPTIONS = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PATHCCH_FORCE_ENABLE_LONG_NAME_PROCESS: PATHCCH_OPTIONS = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PATHCCH_FORCE_DISABLE_LONG_NAME_PROCESS: PATHCCH_OPTIONS = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PATHCCH_DO_NOT_NORMALIZE_SEGMENTS: PATHCCH_OPTIONS = 8u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PATHCCH_ENSURE_IS_EXTENDED_LENGTH_PATH: PATHCCH_OPTIONS = 16u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PATHCCH_ENSURE_TRAILING_SLASH: PATHCCH_OPTIONS = 32u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PATHCCH_CANONICALIZE_SLASHES: PATHCCH_OPTIONS = 64u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type PCS_RET = u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PCS_FATAL: PCS_RET = 2147483648u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PCS_REPLACEDCHAR: PCS_RET = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PCS_REMOVEDCHAR: PCS_RET = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PCS_TRUNCATED: PCS_RET = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PCS_PATHTOOLONG: PCS_RET = 8u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type PIDISF_FLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PIDISF_RECENTLYCHANGED: PIDISF_FLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PIDISF_CACHEDSTICKY: PIDISF_FLAGS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PIDISF_CACHEIMAGES: PIDISF_FLAGS = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PIDISF_FOLLOWALLLINKS: PIDISF_FLAGS = 32i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type PIDISM_OPTIONS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PIDISM_GLOBAL: PIDISM_OPTIONS = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PIDISM_WATCH: PIDISM_OPTIONS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PIDISM_DONTWATCH: PIDISM_OPTIONS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type PIDISR_INFO = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PIDISR_UP_TO_DATE: PIDISR_INFO = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PIDISR_NEEDS_ADD: PIDISR_INFO = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PIDISR_NEEDS_UPDATE: PIDISR_INFO = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PIDISR_NEEDS_DELETE: PIDISR_INFO = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type PID_INTSITE = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_INTSITE_WHATSNEW: PID_INTSITE = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_INTSITE_AUTHOR: PID_INTSITE = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_INTSITE_LASTVISIT: PID_INTSITE = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_INTSITE_LASTMOD: PID_INTSITE = 5i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_INTSITE_VISITCOUNT: PID_INTSITE = 6i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_INTSITE_DESCRIPTION: PID_INTSITE = 7i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_INTSITE_COMMENT: PID_INTSITE = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_INTSITE_FLAGS: PID_INTSITE = 9i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_INTSITE_CONTENTLEN: PID_INTSITE = 10i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_INTSITE_CONTENTCODE: PID_INTSITE = 11i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_INTSITE_RECURSE: PID_INTSITE = 12i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_INTSITE_WATCH: PID_INTSITE = 13i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_INTSITE_SUBSCRIPTION: PID_INTSITE = 14i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_INTSITE_URL: PID_INTSITE = 15i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_INTSITE_TITLE: PID_INTSITE = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_INTSITE_CODEPAGE: PID_INTSITE = 18i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_INTSITE_TRACKING: PID_INTSITE = 19i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_INTSITE_ICONINDEX: PID_INTSITE = 20i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_INTSITE_ICONFILE: PID_INTSITE = 21i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_INTSITE_ROAMED: PID_INTSITE = 34i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type PID_IS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_IS_URL: PID_IS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_IS_NAME: PID_IS = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_IS_WORKINGDIR: PID_IS = 5i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_IS_HOTKEY: PID_IS = 6i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_IS_SHOWCMD: PID_IS = 7i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_IS_ICONINDEX: PID_IS = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_IS_ICONFILE: PID_IS = 9i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_IS_WHATSNEW: PID_IS = 10i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_IS_AUTHOR: PID_IS = 11i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_IS_DESCRIPTION: PID_IS = 12i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_IS_COMMENT: PID_IS = 13i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PID_IS_ROAMED: PID_IS = 15i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type PRF_FLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PRF_VERIFYEXISTS: PRF_FLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PRF_TRYPROGRAMEXTENSIONS: PRF_FLAGS = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PRF_FIRSTDIRDEF: PRF_FLAGS = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PRF_DONTFINDLNK: PRF_FLAGS = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PRF_REQUIREABSOLUTE: PRF_FLAGS = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type PUBAPPINFOFLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PAI_SOURCE: PUBAPPINFOFLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PAI_ASSIGNEDTIME: PUBAPPINFOFLAGS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PAI_PUBLISHEDTIME: PUBAPPINFOFLAGS = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PAI_SCHEDULEDTIME: PUBAPPINFOFLAGS = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PAI_EXPIRETIME: PUBAPPINFOFLAGS = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type QITIPF_FLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const QITIPF_DEFAULT: QITIPF_FLAGS = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const QITIPF_USENAME: QITIPF_FLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const QITIPF_LINKNOTARGET: QITIPF_FLAGS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const QITIPF_LINKUSETARGET: QITIPF_FLAGS = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const QITIPF_USESLOWTIP: QITIPF_FLAGS = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const QITIPF_SINGLELINE: QITIPF_FLAGS = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const QIF_CACHED: QITIPF_FLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const QIF_DONTEXPANDFOLDER: QITIPF_FLAGS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type QUERY_USER_NOTIFICATION_STATE = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const QUNS_NOT_PRESENT: QUERY_USER_NOTIFICATION_STATE = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const QUNS_BUSY: QUERY_USER_NOTIFICATION_STATE = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const QUNS_RUNNING_D3D_FULL_SCREEN: QUERY_USER_NOTIFICATION_STATE = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const QUNS_PRESENTATION_MODE: QUERY_USER_NOTIFICATION_STATE = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const QUNS_ACCEPTS_NOTIFICATIONS: QUERY_USER_NOTIFICATION_STATE = 5i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const QUNS_QUIET_TIME: QUERY_USER_NOTIFICATION_STATE = 6i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const QUNS_APP: QUERY_USER_NOTIFICATION_STATE = 7i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type RESTRICTIONS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NONE: RESTRICTIONS = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NORUN: RESTRICTIONS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOCLOSE: RESTRICTIONS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOSAVESET: RESTRICTIONS = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOFILEMENU: RESTRICTIONS = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOSETFOLDERS: RESTRICTIONS = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOSETTASKBAR: RESTRICTIONS = 32i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NODESKTOP: RESTRICTIONS = 64i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOFIND: RESTRICTIONS = 128i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NODRIVES: RESTRICTIONS = 256i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NODRIVEAUTORUN: RESTRICTIONS = 512i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NODRIVETYPEAUTORUN: RESTRICTIONS = 1024i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NONETHOOD: RESTRICTIONS = 2048i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_STARTBANNER: RESTRICTIONS = 4096i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_RESTRICTRUN: RESTRICTIONS = 8192i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOPRINTERTABS: RESTRICTIONS = 16384i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOPRINTERDELETE: RESTRICTIONS = 32768i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOPRINTERADD: RESTRICTIONS = 65536i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOSTARTMENUSUBFOLDERS: RESTRICTIONS = 131072i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_MYDOCSONNET: RESTRICTIONS = 262144i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOEXITTODOS: RESTRICTIONS = 524288i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_ENFORCESHELLEXTSECURITY: RESTRICTIONS = 1048576i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_LINKRESOLVEIGNORELINKINFO: RESTRICTIONS = 2097152i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOCOMMONGROUPS: RESTRICTIONS = 4194304i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_SEPARATEDESKTOPPROCESS: RESTRICTIONS = 8388608i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOWEB: RESTRICTIONS = 16777216i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOTRAYCONTEXTMENU: RESTRICTIONS = 33554432i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOVIEWCONTEXTMENU: RESTRICTIONS = 67108864i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NONETCONNECTDISCONNECT: RESTRICTIONS = 134217728i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_STARTMENULOGOFF: RESTRICTIONS = 268435456i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOSETTINGSASSIST: RESTRICTIONS = 536870912i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOINTERNETICON: RESTRICTIONS = 1073741825i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NORECENTDOCSHISTORY: RESTRICTIONS = 1073741826i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NORECENTDOCSMENU: RESTRICTIONS = 1073741827i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOACTIVEDESKTOP: RESTRICTIONS = 1073741828i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOACTIVEDESKTOPCHANGES: RESTRICTIONS = 1073741829i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOFAVORITESMENU: RESTRICTIONS = 1073741830i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_CLEARRECENTDOCSONEXIT: RESTRICTIONS = 1073741831i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_CLASSICSHELL: RESTRICTIONS = 1073741832i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOCUSTOMIZEWEBVIEW: RESTRICTIONS = 1073741833i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOHTMLWALLPAPER: RESTRICTIONS = 1073741840i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOCHANGINGWALLPAPER: RESTRICTIONS = 1073741841i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NODESKCOMP: RESTRICTIONS = 1073741842i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOADDDESKCOMP: RESTRICTIONS = 1073741843i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NODELDESKCOMP: RESTRICTIONS = 1073741844i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOCLOSEDESKCOMP: RESTRICTIONS = 1073741845i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOCLOSE_DRAGDROPBAND: RESTRICTIONS = 1073741846i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOMOVINGBAND: RESTRICTIONS = 1073741847i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOEDITDESKCOMP: RESTRICTIONS = 1073741848i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NORESOLVESEARCH: RESTRICTIONS = 1073741849i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NORESOLVETRACK: RESTRICTIONS = 1073741850i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_FORCECOPYACLWITHFILE: RESTRICTIONS = 1073741851i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOFORGETSOFTWAREUPDATE: RESTRICTIONS = 1073741853i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOSETACTIVEDESKTOP: RESTRICTIONS = 1073741854i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOUPDATEWINDOWS: RESTRICTIONS = 1073741855i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOCHANGESTARMENU: RESTRICTIONS = 1073741856i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOFOLDEROPTIONS: RESTRICTIONS = 1073741857i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_HASFINDCOMPUTERS: RESTRICTIONS = 1073741858i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_INTELLIMENUS: RESTRICTIONS = 1073741859i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_RUNDLGMEMCHECKBOX: RESTRICTIONS = 1073741860i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_ARP_ShowPostSetup: RESTRICTIONS = 1073741861i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOCSC: RESTRICTIONS = 1073741862i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOCONTROLPANEL: RESTRICTIONS = 1073741863i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_ENUMWORKGROUP: RESTRICTIONS = 1073741864i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_ARP_NOARP: RESTRICTIONS = 1073741865i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_ARP_NOREMOVEPAGE: RESTRICTIONS = 1073741866i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_ARP_NOADDPAGE: RESTRICTIONS = 1073741867i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_ARP_NOWINSETUPPAGE: RESTRICTIONS = 1073741868i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_GREYMSIADS: RESTRICTIONS = 1073741869i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOCHANGEMAPPEDDRIVELABEL: RESTRICTIONS = 1073741870i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOCHANGEMAPPEDDRIVECOMMENT: RESTRICTIONS = 1073741871i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_MaxRecentDocs: RESTRICTIONS = 1073741872i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NONETWORKCONNECTIONS: RESTRICTIONS = 1073741873i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_FORCESTARTMENULOGOFF: RESTRICTIONS = 1073741874i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOWEBVIEW: RESTRICTIONS = 1073741875i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOCUSTOMIZETHISFOLDER: RESTRICTIONS = 1073741876i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOENCRYPTION: RESTRICTIONS = 1073741877i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_DONTSHOWSUPERHIDDEN: RESTRICTIONS = 1073741879i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOSHELLSEARCHBUTTON: RESTRICTIONS = 1073741880i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOHARDWARETAB: RESTRICTIONS = 1073741881i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NORUNASINSTALLPROMPT: RESTRICTIONS = 1073741882i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_PROMPTRUNASINSTALLNETPATH: RESTRICTIONS = 1073741883i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOMANAGEMYCOMPUTERVERB: RESTRICTIONS = 1073741884i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_DISALLOWRUN: RESTRICTIONS = 1073741886i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOWELCOMESCREEN: RESTRICTIONS = 1073741887i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_RESTRICTCPL: RESTRICTIONS = 1073741888i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_DISALLOWCPL: RESTRICTIONS = 1073741889i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOSMBALLOONTIP: RESTRICTIONS = 1073741890i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOSMHELP: RESTRICTIONS = 1073741891i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOWINKEYS: RESTRICTIONS = 1073741892i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOENCRYPTONMOVE: RESTRICTIONS = 1073741893i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOLOCALMACHINERUN: RESTRICTIONS = 1073741894i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOCURRENTUSERRUN: RESTRICTIONS = 1073741895i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOLOCALMACHINERUNONCE: RESTRICTIONS = 1073741896i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOCURRENTUSERRUNONCE: RESTRICTIONS = 1073741897i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_FORCEACTIVEDESKTOPON: RESTRICTIONS = 1073741898i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOVIEWONDRIVE: RESTRICTIONS = 1073741900i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NONETCRAWL: RESTRICTIONS = 1073741901i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOSHAREDDOCUMENTS: RESTRICTIONS = 1073741902i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOSMMYDOCS: RESTRICTIONS = 1073741903i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOSMMYPICS: RESTRICTIONS = 1073741904i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_ALLOWBITBUCKDRIVES: RESTRICTIONS = 1073741905i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NONLEGACYSHELLMODE: RESTRICTIONS = 1073741906i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOCONTROLPANELBARRICADE: RESTRICTIONS = 1073741907i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOSTARTPAGE: RESTRICTIONS = 1073741908i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOAUTOTRAYNOTIFY: RESTRICTIONS = 1073741909i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOTASKGROUPING: RESTRICTIONS = 1073741910i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOCDBURNING: RESTRICTIONS = 1073741911i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_MYCOMPNOPROP: RESTRICTIONS = 1073741912i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_MYDOCSNOPROP: RESTRICTIONS = 1073741913i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOSTARTPANEL: RESTRICTIONS = 1073741914i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NODISPLAYAPPEARANCEPAGE: RESTRICTIONS = 1073741915i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOTHEMESTAB: RESTRICTIONS = 1073741916i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOVISUALSTYLECHOICE: RESTRICTIONS = 1073741917i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOSIZECHOICE: RESTRICTIONS = 1073741918i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOCOLORCHOICE: RESTRICTIONS = 1073741919i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_SETVISUALSTYLE: RESTRICTIONS = 1073741920i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_STARTRUNNOHOMEPATH: RESTRICTIONS = 1073741921i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOUSERNAMEINSTARTPANEL: RESTRICTIONS = 1073741922i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOMYCOMPUTERICON: RESTRICTIONS = 1073741923i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOSMNETWORKPLACES: RESTRICTIONS = 1073741924i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOSMPINNEDLIST: RESTRICTIONS = 1073741925i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOSMMYMUSIC: RESTRICTIONS = 1073741926i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOSMEJECTPC: RESTRICTIONS = 1073741927i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOSMMOREPROGRAMS: RESTRICTIONS = 1073741928i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOSMMFUPROGRAMS: RESTRICTIONS = 1073741929i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOTRAYITEMSDISPLAY: RESTRICTIONS = 1073741930i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOTOOLBARSONTASKBAR: RESTRICTIONS = 1073741931i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOSMCONFIGUREPROGRAMS: RESTRICTIONS = 1073741935i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_HIDECLOCK: RESTRICTIONS = 1073741936i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOLOWDISKSPACECHECKS: RESTRICTIONS = 1073741937i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOENTIRENETWORK: RESTRICTIONS = 1073741938i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NODESKTOPCLEANUP: RESTRICTIONS = 1073741939i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_BITBUCKNUKEONDELETE: RESTRICTIONS = 1073741940i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_BITBUCKCONFIRMDELETE: RESTRICTIONS = 1073741941i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_BITBUCKNOPROP: RESTRICTIONS = 1073741942i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NODISPBACKGROUND: RESTRICTIONS = 1073741943i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NODISPSCREENSAVEPG: RESTRICTIONS = 1073741944i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NODISPSETTINGSPG: RESTRICTIONS = 1073741945i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NODISPSCREENSAVEPREVIEW: RESTRICTIONS = 1073741946i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NODISPLAYCPL: RESTRICTIONS = 1073741947i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_HIDERUNASVERB: RESTRICTIONS = 1073741948i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOTHUMBNAILCACHE: RESTRICTIONS = 1073741949i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOSTRCMPLOGICAL: RESTRICTIONS = 1073741950i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOPUBLISHWIZARD: RESTRICTIONS = 1073741951i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOONLINEPRINTSWIZARD: RESTRICTIONS = 1073741952i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOWEBSERVICES: RESTRICTIONS = 1073741953i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_ALLOWUNHASHEDWEBVIEW: RESTRICTIONS = 1073741954i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_ALLOWLEGACYWEBVIEW: RESTRICTIONS = 1073741955i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_REVERTWEBVIEWSECURITY: RESTRICTIONS = 1073741956i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_INHERITCONSOLEHANDLES: RESTRICTIONS = 1073741958i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOREMOTERECURSIVEEVENTS: RESTRICTIONS = 1073741961i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOREMOTECHANGENOTIFY: RESTRICTIONS = 1073741969i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOENUMENTIRENETWORK: RESTRICTIONS = 1073741971i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOINTERNETOPENWITH: RESTRICTIONS = 1073741973i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_DONTRETRYBADNETNAME: RESTRICTIONS = 1073741979i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_ALLOWFILECLSIDJUNCTIONS: RESTRICTIONS = 1073741980i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOUPNPINSTALL: RESTRICTIONS = 1073741981i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_ARP_DONTGROUPPATCHES: RESTRICTIONS = 1073741996i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_ARP_NOCHOOSEPROGRAMSPAGE: RESTRICTIONS = 1073741997i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NODISCONNECT: RESTRICTIONS = 1090519041i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOSECURITY: RESTRICTIONS = 1090519042i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_NOFILEASSOCIATE: RESTRICTIONS = 1090519043i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REST_ALLOWCOMMENTTOGGLE: RESTRICTIONS = 1090519044i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type RefreshConstants = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REFRESH_NORMAL: RefreshConstants = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REFRESH_IFEXPIRED: RefreshConstants = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const REFRESH_COMPLETELY: RefreshConstants = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SCALE_CHANGE_FLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SCF_VALUE_NONE: SCALE_CHANGE_FLAGS = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SCF_SCALE: SCALE_CHANGE_FLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SCF_PHYSICAL: SCALE_CHANGE_FLAGS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SCNRT_STATUS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SCNRT_ENABLE: SCNRT_STATUS = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SCNRT_DISABLE: SCNRT_STATUS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SECURELOCKCODE = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SECURELOCK_NOCHANGE: SECURELOCKCODE = -1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SECURELOCK_SET_UNSECURE: SECURELOCKCODE = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SECURELOCK_SET_MIXED: SECURELOCKCODE = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SECURELOCK_SET_SECUREUNKNOWNBIT: SECURELOCKCODE = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SECURELOCK_SET_SECURE40BIT: SECURELOCKCODE = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SECURELOCK_SET_SECURE56BIT: SECURELOCKCODE = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SECURELOCK_SET_FORTEZZA: SECURELOCKCODE = 5i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SECURELOCK_SET_SECURE128BIT: SECURELOCKCODE = 6i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SECURELOCK_FIRSTSUGGEST: SECURELOCKCODE = 7i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SECURELOCK_SUGGEST_UNSECURE: SECURELOCKCODE = 7i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SECURELOCK_SUGGEST_MIXED: SECURELOCKCODE = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SECURELOCK_SUGGEST_SECUREUNKNOWNBIT: SECURELOCKCODE = 9i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SECURELOCK_SUGGEST_SECURE40BIT: SECURELOCKCODE = 10i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SECURELOCK_SUGGEST_SECURE56BIT: SECURELOCKCODE = 11i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SECURELOCK_SUGGEST_FORTEZZA: SECURELOCKCODE = 12i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SECURELOCK_SUGGEST_SECURE128BIT: SECURELOCKCODE = 13i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SFBS_FLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SFBS_FLAGS_ROUND_TO_NEAREST_DISPLAYED_DIGIT: SFBS_FLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SFBS_FLAGS_TRUNCATE_UNDISPLAYED_DECIMAL_DIGITS: SFBS_FLAGS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SFVM_MESSAGE_ID = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SFVM_MERGEMENU: SFVM_MESSAGE_ID = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SFVM_INVOKECOMMAND: SFVM_MESSAGE_ID = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SFVM_GETHELPTEXT: SFVM_MESSAGE_ID = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SFVM_GETTOOLTIPTEXT: SFVM_MESSAGE_ID = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SFVM_GETBUTTONINFO: SFVM_MESSAGE_ID = 5i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SFVM_GETBUTTONS: SFVM_MESSAGE_ID = 6i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SFVM_INITMENUPOPUP: SFVM_MESSAGE_ID = 7i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SFVM_FSNOTIFY: SFVM_MESSAGE_ID = 14i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SFVM_WINDOWCREATED: SFVM_MESSAGE_ID = 15i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SFVM_GETDETAILSOF: SFVM_MESSAGE_ID = 23i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SFVM_COLUMNCLICK: SFVM_MESSAGE_ID = 24i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SFVM_QUERYFSNOTIFY: SFVM_MESSAGE_ID = 25i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SFVM_DEFITEMCOUNT: SFVM_MESSAGE_ID = 26i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SFVM_DEFVIEWMODE: SFVM_MESSAGE_ID = 27i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SFVM_UNMERGEMENU: SFVM_MESSAGE_ID = 28i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SFVM_UPDATESTATUSBAR: SFVM_MESSAGE_ID = 31i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SFVM_BACKGROUNDENUM: SFVM_MESSAGE_ID = 32i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SFVM_DIDDRAGDROP: SFVM_MESSAGE_ID = 36i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SFVM_SETISFV: SFVM_MESSAGE_ID = 39i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SFVM_THISIDLIST: SFVM_MESSAGE_ID = 41i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SFVM_ADDPROPERTYPAGES: SFVM_MESSAGE_ID = 47i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SFVM_BACKGROUNDENUMDONE: SFVM_MESSAGE_ID = 48i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SFVM_GETNOTIFY: SFVM_MESSAGE_ID = 49i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SFVM_GETSORTDEFAULTS: SFVM_MESSAGE_ID = 53i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SFVM_SIZE: SFVM_MESSAGE_ID = 57i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SFVM_GETZONE: SFVM_MESSAGE_ID = 58i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SFVM_GETPANE: SFVM_MESSAGE_ID = 59i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SFVM_GETHELPTOPIC: SFVM_MESSAGE_ID = 63i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SFVM_GETANIMATION: SFVM_MESSAGE_ID = 68i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SFVS_SELECT = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SFVS_SELECT_NONE: SFVS_SELECT = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SFVS_SELECT_ALLITEMS: SFVS_SELECT = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SFVS_SELECT_INVERT: SFVS_SELECT = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SHARD = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHARD_PIDL: SHARD = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHARD_PATHA: SHARD = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHARD_PATHW: SHARD = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHARD_APPIDINFO: SHARD = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHARD_APPIDINFOIDLIST: SHARD = 5i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHARD_LINK: SHARD = 6i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHARD_APPIDINFOLINK: SHARD = 7i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHARD_SHELLITEM: SHARD = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SHARE_ROLE = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHARE_ROLE_INVALID: SHARE_ROLE = -1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHARE_ROLE_READER: SHARE_ROLE = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHARE_ROLE_CONTRIBUTOR: SHARE_ROLE = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHARE_ROLE_CO_OWNER: SHARE_ROLE = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHARE_ROLE_OWNER: SHARE_ROLE = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHARE_ROLE_CUSTOM: SHARE_ROLE = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHARE_ROLE_MIXED: SHARE_ROLE = 5i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SHCNE_ID = u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCNE_RENAMEITEM: SHCNE_ID = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCNE_CREATE: SHCNE_ID = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCNE_DELETE: SHCNE_ID = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCNE_MKDIR: SHCNE_ID = 8u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCNE_RMDIR: SHCNE_ID = 16u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCNE_MEDIAINSERTED: SHCNE_ID = 32u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCNE_MEDIAREMOVED: SHCNE_ID = 64u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCNE_DRIVEREMOVED: SHCNE_ID = 128u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCNE_DRIVEADD: SHCNE_ID = 256u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCNE_NETSHARE: SHCNE_ID = 512u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCNE_NETUNSHARE: SHCNE_ID = 1024u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCNE_ATTRIBUTES: SHCNE_ID = 2048u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCNE_UPDATEDIR: SHCNE_ID = 4096u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCNE_UPDATEITEM: SHCNE_ID = 8192u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCNE_SERVERDISCONNECT: SHCNE_ID = 16384u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCNE_UPDATEIMAGE: SHCNE_ID = 32768u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCNE_DRIVEADDGUI: SHCNE_ID = 65536u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCNE_RENAMEFOLDER: SHCNE_ID = 131072u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCNE_FREESPACE: SHCNE_ID = 262144u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCNE_EXTENDED_EVENT: SHCNE_ID = 67108864u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCNE_ASSOCCHANGED: SHCNE_ID = 134217728u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCNE_DISKEVENTS: SHCNE_ID = 145439u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCNE_GLOBALEVENTS: SHCNE_ID = 201687520u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCNE_ALLEVENTS: SHCNE_ID = 2147483647u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCNE_INTERRUPT: SHCNE_ID = 2147483648u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SHCNF_FLAGS = u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCNF_IDLIST: SHCNF_FLAGS = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCNF_PATHA: SHCNF_FLAGS = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCNF_PRINTERA: SHCNF_FLAGS = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCNF_DWORD: SHCNF_FLAGS = 3u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCNF_PATHW: SHCNF_FLAGS = 5u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCNF_PRINTERW: SHCNF_FLAGS = 6u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCNF_TYPE: SHCNF_FLAGS = 255u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCNF_FLUSH: SHCNF_FLAGS = 4096u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCNF_FLUSHNOWAIT: SHCNF_FLAGS = 12288u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCNF_NOTIFYRECURSIVE: SHCNF_FLAGS = 65536u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCNF_PATH: SHCNF_FLAGS = 5u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCNF_PRINTER: SHCNF_FLAGS = 6u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SHCNRF_SOURCE = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCNRF_InterruptLevel: SHCNRF_SOURCE = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCNRF_ShellLevel: SHCNRF_SOURCE = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCNRF_RecursiveInterrupt: SHCNRF_SOURCE = 4096i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCNRF_NewDelivery: SHCNRF_SOURCE = 32768i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SHDID_ID = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHDID_ROOT_REGITEM: SHDID_ID = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHDID_FS_FILE: SHDID_ID = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHDID_FS_DIRECTORY: SHDID_ID = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHDID_FS_OTHER: SHDID_ID = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHDID_COMPUTER_DRIVE35: SHDID_ID = 5i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHDID_COMPUTER_DRIVE525: SHDID_ID = 6i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHDID_COMPUTER_REMOVABLE: SHDID_ID = 7i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHDID_COMPUTER_FIXED: SHDID_ID = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHDID_COMPUTER_NETDRIVE: SHDID_ID = 9i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHDID_COMPUTER_CDROM: SHDID_ID = 10i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHDID_COMPUTER_RAMDISK: SHDID_ID = 11i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHDID_COMPUTER_OTHER: SHDID_ID = 12i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHDID_NET_DOMAIN: SHDID_ID = 13i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHDID_NET_SERVER: SHDID_ID = 14i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHDID_NET_SHARE: SHDID_ID = 15i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHDID_NET_RESTOFNET: SHDID_ID = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHDID_NET_OTHER: SHDID_ID = 17i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHDID_COMPUTER_IMAGING: SHDID_ID = 18i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHDID_COMPUTER_AUDIO: SHDID_ID = 19i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHDID_COMPUTER_SHAREDDOCS: SHDID_ID = 20i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHDID_MOBILE_DEVICE: SHDID_ID = 21i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHDID_REMOTE_DESKTOP_DRIVE: SHDID_ID = 22i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SHELLBROWSERSHOWCONTROL = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SBSC_HIDE: SHELLBROWSERSHOWCONTROL = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SBSC_SHOW: SHELLBROWSERSHOWCONTROL = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SBSC_TOGGLE: SHELLBROWSERSHOWCONTROL = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SBSC_QUERY: SHELLBROWSERSHOWCONTROL = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SHELL_AUTOCOMPLETE_FLAGS = u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHACF_DEFAULT: SHELL_AUTOCOMPLETE_FLAGS = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHACF_FILESYSTEM: SHELL_AUTOCOMPLETE_FLAGS = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHACF_URLALL: SHELL_AUTOCOMPLETE_FLAGS = 6u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHACF_URLHISTORY: SHELL_AUTOCOMPLETE_FLAGS = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHACF_URLMRU: SHELL_AUTOCOMPLETE_FLAGS = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHACF_USETAB: SHELL_AUTOCOMPLETE_FLAGS = 8u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHACF_FILESYS_ONLY: SHELL_AUTOCOMPLETE_FLAGS = 16u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHACF_FILESYS_DIRS: SHELL_AUTOCOMPLETE_FLAGS = 32u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHACF_VIRTUAL_NAMESPACE: SHELL_AUTOCOMPLETE_FLAGS = 64u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHACF_AUTOSUGGEST_FORCE_ON: SHELL_AUTOCOMPLETE_FLAGS = 268435456u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHACF_AUTOSUGGEST_FORCE_OFF: SHELL_AUTOCOMPLETE_FLAGS = 536870912u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHACF_AUTOAPPEND_FORCE_ON: SHELL_AUTOCOMPLETE_FLAGS = 1073741824u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHACF_AUTOAPPEND_FORCE_OFF: SHELL_AUTOCOMPLETE_FLAGS = 2147483648u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SHELL_LINK_DATA_FLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SLDF_DEFAULT: SHELL_LINK_DATA_FLAGS = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SLDF_HAS_ID_LIST: SHELL_LINK_DATA_FLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SLDF_HAS_LINK_INFO: SHELL_LINK_DATA_FLAGS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SLDF_HAS_NAME: SHELL_LINK_DATA_FLAGS = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SLDF_HAS_RELPATH: SHELL_LINK_DATA_FLAGS = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SLDF_HAS_WORKINGDIR: SHELL_LINK_DATA_FLAGS = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SLDF_HAS_ARGS: SHELL_LINK_DATA_FLAGS = 32i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SLDF_HAS_ICONLOCATION: SHELL_LINK_DATA_FLAGS = 64i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SLDF_UNICODE: SHELL_LINK_DATA_FLAGS = 128i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SLDF_FORCE_NO_LINKINFO: SHELL_LINK_DATA_FLAGS = 256i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SLDF_HAS_EXP_SZ: SHELL_LINK_DATA_FLAGS = 512i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SLDF_RUN_IN_SEPARATE: SHELL_LINK_DATA_FLAGS = 1024i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SLDF_HAS_DARWINID: SHELL_LINK_DATA_FLAGS = 4096i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SLDF_RUNAS_USER: SHELL_LINK_DATA_FLAGS = 8192i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SLDF_HAS_EXP_ICON_SZ: SHELL_LINK_DATA_FLAGS = 16384i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SLDF_NO_PIDL_ALIAS: SHELL_LINK_DATA_FLAGS = 32768i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SLDF_FORCE_UNCNAME: SHELL_LINK_DATA_FLAGS = 65536i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SLDF_RUN_WITH_SHIMLAYER: SHELL_LINK_DATA_FLAGS = 131072i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SLDF_FORCE_NO_LINKTRACK: SHELL_LINK_DATA_FLAGS = 262144i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SLDF_ENABLE_TARGET_METADATA: SHELL_LINK_DATA_FLAGS = 524288i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SLDF_DISABLE_LINK_PATH_TRACKING: SHELL_LINK_DATA_FLAGS = 1048576i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SLDF_DISABLE_KNOWNFOLDER_RELATIVE_TRACKING: SHELL_LINK_DATA_FLAGS = 2097152i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SLDF_NO_KF_ALIAS: SHELL_LINK_DATA_FLAGS = 4194304i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SLDF_ALLOW_LINK_TO_LINK: SHELL_LINK_DATA_FLAGS = 8388608i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SLDF_UNALIAS_ON_SAVE: SHELL_LINK_DATA_FLAGS = 16777216i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SLDF_PREFER_ENVIRONMENT_PATH: SHELL_LINK_DATA_FLAGS = 33554432i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SLDF_KEEP_LOCAL_IDLIST_FOR_UNC_TARGET: SHELL_LINK_DATA_FLAGS = 67108864i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SLDF_PERSIST_VOLUME_ID_RELATIVE: SHELL_LINK_DATA_FLAGS = 134217728i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SLDF_VALID: SHELL_LINK_DATA_FLAGS = 268433407i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SLDF_RESERVED: SHELL_LINK_DATA_FLAGS = -2147483648i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SHELL_UI_COMPONENT = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHELL_UI_COMPONENT_TASKBARS: SHELL_UI_COMPONENT = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHELL_UI_COMPONENT_NOTIFICATIONAREA: SHELL_UI_COMPONENT = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHELL_UI_COMPONENT_DESKBAND: SHELL_UI_COMPONENT = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SHFMT_ID = u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHFMT_ID_DEFAULT: SHFMT_ID = 65535u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SHFMT_OPT = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHFMT_OPT_NONE: SHFMT_OPT = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHFMT_OPT_FULL: SHFMT_OPT = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHFMT_OPT_SYSONLY: SHFMT_OPT = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SHFMT_RET = u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHFMT_ERROR: SHFMT_RET = 4294967295u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHFMT_CANCEL: SHFMT_RET = 4294967294u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHFMT_NOFORMAT: SHFMT_RET = 4294967293u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SHGDFIL_FORMAT = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHGDFIL_FINDDATA: SHGDFIL_FORMAT = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHGDFIL_NETRESOURCE: SHGDFIL_FORMAT = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHGDFIL_DESCRIPTIONID: SHGDFIL_FORMAT = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SHGDNF = u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHGDN_NORMAL: SHGDNF = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHGDN_INFOLDER: SHGDNF = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHGDN_FOREDITING: SHGDNF = 4096u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHGDN_FORADDRESSBAR: SHGDNF = 16384u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHGDN_FORPARSING: SHGDNF = 32768u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SHGFI_FLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHGFI_ADDOVERLAYS: SHGFI_FLAGS = 32i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHGFI_ATTR_SPECIFIED: SHGFI_FLAGS = 131072i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHGFI_ATTRIBUTES: SHGFI_FLAGS = 2048i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHGFI_DISPLAYNAME: SHGFI_FLAGS = 512i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHGFI_EXETYPE: SHGFI_FLAGS = 8192i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHGFI_ICON: SHGFI_FLAGS = 256i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHGFI_ICONLOCATION: SHGFI_FLAGS = 4096i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHGFI_LARGEICON: SHGFI_FLAGS = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHGFI_LINKOVERLAY: SHGFI_FLAGS = 32768i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHGFI_OPENICON: SHGFI_FLAGS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHGFI_OVERLAYINDEX: SHGFI_FLAGS = 64i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHGFI_PIDL: SHGFI_FLAGS = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHGFI_SELECTED: SHGFI_FLAGS = 65536i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHGFI_SHELLICONSIZE: SHGFI_FLAGS = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHGFI_SMALLICON: SHGFI_FLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHGFI_SYSICONINDEX: SHGFI_FLAGS = 16384i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHGFI_TYPENAME: SHGFI_FLAGS = 1024i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHGFI_USEFILEATTRIBUTES: SHGFI_FLAGS = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SHGFP_TYPE = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHGFP_TYPE_CURRENT: SHGFP_TYPE = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHGFP_TYPE_DEFAULT: SHGFP_TYPE = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SHGLOBALCOUNTER = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_SEARCHMANAGER: SHGLOBALCOUNTER = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_SEARCHOPTIONS: SHGLOBALCOUNTER = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_FOLDERSETTINGSCHANGE: SHGLOBALCOUNTER = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_RATINGS: SHGLOBALCOUNTER = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_APPROVEDSITES: SHGLOBALCOUNTER = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_RESTRICTIONS: SHGLOBALCOUNTER = 5i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_SHELLSETTINGSCHANGED: SHGLOBALCOUNTER = 6i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_SYSTEMPIDLCHANGE: SHGLOBALCOUNTER = 7i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_OVERLAYMANAGER: SHGLOBALCOUNTER = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_QUERYASSOCIATIONS: SHGLOBALCOUNTER = 9i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_IESESSIONS: SHGLOBALCOUNTER = 10i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_IEONLY_SESSIONS: SHGLOBALCOUNTER = 11i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_APPLICATION_DESTINATIONS: SHGLOBALCOUNTER = 12i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const __UNUSED_RECYCLE_WAS_GLOBALCOUNTER_CSCSYNCINPROGRESS: SHGLOBALCOUNTER = 13i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_BITBUCKETNUMDELETERS: SHGLOBALCOUNTER = 14i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_RECYCLEDIRTYCOUNT_SHARES: SHGLOBALCOUNTER = 15i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_RECYCLEDIRTYCOUNT_DRIVE_A: SHGLOBALCOUNTER = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_RECYCLEDIRTYCOUNT_DRIVE_B: SHGLOBALCOUNTER = 17i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_RECYCLEDIRTYCOUNT_DRIVE_C: SHGLOBALCOUNTER = 18i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_RECYCLEDIRTYCOUNT_DRIVE_D: SHGLOBALCOUNTER = 19i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_RECYCLEDIRTYCOUNT_DRIVE_E: SHGLOBALCOUNTER = 20i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_RECYCLEDIRTYCOUNT_DRIVE_F: SHGLOBALCOUNTER = 21i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_RECYCLEDIRTYCOUNT_DRIVE_G: SHGLOBALCOUNTER = 22i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_RECYCLEDIRTYCOUNT_DRIVE_H: SHGLOBALCOUNTER = 23i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_RECYCLEDIRTYCOUNT_DRIVE_I: SHGLOBALCOUNTER = 24i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_RECYCLEDIRTYCOUNT_DRIVE_J: SHGLOBALCOUNTER = 25i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_RECYCLEDIRTYCOUNT_DRIVE_K: SHGLOBALCOUNTER = 26i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_RECYCLEDIRTYCOUNT_DRIVE_L: SHGLOBALCOUNTER = 27i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_RECYCLEDIRTYCOUNT_DRIVE_M: SHGLOBALCOUNTER = 28i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_RECYCLEDIRTYCOUNT_DRIVE_N: SHGLOBALCOUNTER = 29i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_RECYCLEDIRTYCOUNT_DRIVE_O: SHGLOBALCOUNTER = 30i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_RECYCLEDIRTYCOUNT_DRIVE_P: SHGLOBALCOUNTER = 31i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_RECYCLEDIRTYCOUNT_DRIVE_Q: SHGLOBALCOUNTER = 32i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_RECYCLEDIRTYCOUNT_DRIVE_R: SHGLOBALCOUNTER = 33i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_RECYCLEDIRTYCOUNT_DRIVE_S: SHGLOBALCOUNTER = 34i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_RECYCLEDIRTYCOUNT_DRIVE_T: SHGLOBALCOUNTER = 35i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_RECYCLEDIRTYCOUNT_DRIVE_U: SHGLOBALCOUNTER = 36i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_RECYCLEDIRTYCOUNT_DRIVE_V: SHGLOBALCOUNTER = 37i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_RECYCLEDIRTYCOUNT_DRIVE_W: SHGLOBALCOUNTER = 38i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_RECYCLEDIRTYCOUNT_DRIVE_X: SHGLOBALCOUNTER = 39i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_RECYCLEDIRTYCOUNT_DRIVE_Y: SHGLOBALCOUNTER = 40i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_RECYCLEDIRTYCOUNT_DRIVE_Z: SHGLOBALCOUNTER = 41i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const __UNUSED_RECYCLE_WAS_GLOBALCOUNTER_RECYCLEDIRTYCOUNT_SERVERDRIVE: SHGLOBALCOUNTER = 42i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const __UNUSED_RECYCLE_WAS_GLOBALCOUNTER_RECYCLEGLOBALDIRTYCOUNT: SHGLOBALCOUNTER = 43i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_RECYCLEBINENUM: SHGLOBALCOUNTER = 44i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_RECYCLEBINCORRUPTED: SHGLOBALCOUNTER = 45i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_RATINGS_STATECOUNTER: SHGLOBALCOUNTER = 46i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_PRIVATE_PROFILE_CACHE: SHGLOBALCOUNTER = 47i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_INTERNETTOOLBAR_LAYOUT: SHGLOBALCOUNTER = 48i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_FOLDERDEFINITION_CACHE: SHGLOBALCOUNTER = 49i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_COMMONPLACES_LIST_CACHE: SHGLOBALCOUNTER = 50i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_PRIVATE_PROFILE_CACHE_MACHINEWIDE: SHGLOBALCOUNTER = 51i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_ASSOCCHANGED: SHGLOBALCOUNTER = 52i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_APP_ITEMS_STATE_STORE_CACHE: SHGLOBALCOUNTER = 53i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_SETTINGSYNC_ENABLED: SHGLOBALCOUNTER = 54i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_APPSFOLDER_FILETYPEASSOCIATION_COUNTER: SHGLOBALCOUNTER = 55i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_USERINFOCHANGED: SHGLOBALCOUNTER = 56i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_SYNC_ENGINE_INFORMATION_CACHE_MACHINEWIDE: SHGLOBALCOUNTER = 57i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_BANNERS_DATAMODEL_CACHE_MACHINEWIDE: SHGLOBALCOUNTER = 58i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const GLOBALCOUNTER_MAXIMUMVALUE: SHGLOBALCOUNTER = 59i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SHGSI_FLAGS = u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHGSI_ICONLOCATION: SHGSI_FLAGS = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHGSI_ICON: SHGSI_FLAGS = 256u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHGSI_SYSICONINDEX: SHGSI_FLAGS = 16384u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHGSI_LINKOVERLAY: SHGSI_FLAGS = 32768u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHGSI_SELECTED: SHGSI_FLAGS = 65536u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHGSI_LARGEICON: SHGSI_FLAGS = 0u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHGSI_SMALLICON: SHGSI_FLAGS = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHGSI_SHELLICONSIZE: SHGSI_FLAGS = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SHOP_TYPE = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHOP_PRINTERNAME: SHOP_TYPE = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHOP_FILEPATH: SHOP_TYPE = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHOP_VOLUMEGUID: SHOP_TYPE = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SHREGDEL_FLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHREGDEL_DEFAULT: SHREGDEL_FLAGS = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHREGDEL_HKCU: SHREGDEL_FLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHREGDEL_HKLM: SHREGDEL_FLAGS = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHREGDEL_BOTH: SHREGDEL_FLAGS = 17i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SHREGENUM_FLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHREGENUM_DEFAULT: SHREGENUM_FLAGS = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHREGENUM_HKCU: SHREGENUM_FLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHREGENUM_HKLM: SHREGENUM_FLAGS = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHREGENUM_BOTH: SHREGENUM_FLAGS = 17i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SHSTOCKICONID = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_DOCNOASSOC: SHSTOCKICONID = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_DOCASSOC: SHSTOCKICONID = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_APPLICATION: SHSTOCKICONID = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_FOLDER: SHSTOCKICONID = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_FOLDEROPEN: SHSTOCKICONID = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_DRIVE525: SHSTOCKICONID = 5i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_DRIVE35: SHSTOCKICONID = 6i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_DRIVEREMOVE: SHSTOCKICONID = 7i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_DRIVEFIXED: SHSTOCKICONID = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_DRIVENET: SHSTOCKICONID = 9i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_DRIVENETDISABLED: SHSTOCKICONID = 10i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_DRIVECD: SHSTOCKICONID = 11i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_DRIVERAM: SHSTOCKICONID = 12i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_WORLD: SHSTOCKICONID = 13i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_SERVER: SHSTOCKICONID = 15i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_PRINTER: SHSTOCKICONID = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_MYNETWORK: SHSTOCKICONID = 17i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_FIND: SHSTOCKICONID = 22i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_HELP: SHSTOCKICONID = 23i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_SHARE: SHSTOCKICONID = 28i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_LINK: SHSTOCKICONID = 29i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_SLOWFILE: SHSTOCKICONID = 30i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_RECYCLER: SHSTOCKICONID = 31i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_RECYCLERFULL: SHSTOCKICONID = 32i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_MEDIACDAUDIO: SHSTOCKICONID = 40i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_LOCK: SHSTOCKICONID = 47i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_AUTOLIST: SHSTOCKICONID = 49i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_PRINTERNET: SHSTOCKICONID = 50i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_SERVERSHARE: SHSTOCKICONID = 51i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_PRINTERFAX: SHSTOCKICONID = 52i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_PRINTERFAXNET: SHSTOCKICONID = 53i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_PRINTERFILE: SHSTOCKICONID = 54i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_STACK: SHSTOCKICONID = 55i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_MEDIASVCD: SHSTOCKICONID = 56i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_STUFFEDFOLDER: SHSTOCKICONID = 57i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_DRIVEUNKNOWN: SHSTOCKICONID = 58i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_DRIVEDVD: SHSTOCKICONID = 59i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_MEDIADVD: SHSTOCKICONID = 60i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_MEDIADVDRAM: SHSTOCKICONID = 61i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_MEDIADVDRW: SHSTOCKICONID = 62i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_MEDIADVDR: SHSTOCKICONID = 63i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_MEDIADVDROM: SHSTOCKICONID = 64i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_MEDIACDAUDIOPLUS: SHSTOCKICONID = 65i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_MEDIACDRW: SHSTOCKICONID = 66i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_MEDIACDR: SHSTOCKICONID = 67i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_MEDIACDBURN: SHSTOCKICONID = 68i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_MEDIABLANKCD: SHSTOCKICONID = 69i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_MEDIACDROM: SHSTOCKICONID = 70i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_AUDIOFILES: SHSTOCKICONID = 71i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_IMAGEFILES: SHSTOCKICONID = 72i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_VIDEOFILES: SHSTOCKICONID = 73i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_MIXEDFILES: SHSTOCKICONID = 74i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_FOLDERBACK: SHSTOCKICONID = 75i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_FOLDERFRONT: SHSTOCKICONID = 76i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_SHIELD: SHSTOCKICONID = 77i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_WARNING: SHSTOCKICONID = 78i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_INFO: SHSTOCKICONID = 79i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_ERROR: SHSTOCKICONID = 80i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_KEY: SHSTOCKICONID = 81i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_SOFTWARE: SHSTOCKICONID = 82i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_RENAME: SHSTOCKICONID = 83i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_DELETE: SHSTOCKICONID = 84i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_MEDIAAUDIODVD: SHSTOCKICONID = 85i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_MEDIAMOVIEDVD: SHSTOCKICONID = 86i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_MEDIAENHANCEDCD: SHSTOCKICONID = 87i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_MEDIAENHANCEDDVD: SHSTOCKICONID = 88i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_MEDIAHDDVD: SHSTOCKICONID = 89i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_MEDIABLURAY: SHSTOCKICONID = 90i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_MEDIAVCD: SHSTOCKICONID = 91i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_MEDIADVDPLUSR: SHSTOCKICONID = 92i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_MEDIADVDPLUSRW: SHSTOCKICONID = 93i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_DESKTOPPC: SHSTOCKICONID = 94i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_MOBILEPC: SHSTOCKICONID = 95i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_USERS: SHSTOCKICONID = 96i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_MEDIASMARTMEDIA: SHSTOCKICONID = 97i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_MEDIACOMPACTFLASH: SHSTOCKICONID = 98i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_DEVICECELLPHONE: SHSTOCKICONID = 99i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_DEVICECAMERA: SHSTOCKICONID = 100i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_DEVICEVIDEOCAMERA: SHSTOCKICONID = 101i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_DEVICEAUDIOPLAYER: SHSTOCKICONID = 102i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_NETWORKCONNECT: SHSTOCKICONID = 103i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_INTERNET: SHSTOCKICONID = 104i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_ZIPFILE: SHSTOCKICONID = 105i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_SETTINGS: SHSTOCKICONID = 106i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_DRIVEHDDVD: SHSTOCKICONID = 132i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_DRIVEBD: SHSTOCKICONID = 133i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_MEDIAHDDVDROM: SHSTOCKICONID = 134i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_MEDIAHDDVDR: SHSTOCKICONID = 135i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_MEDIAHDDVDRAM: SHSTOCKICONID = 136i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_MEDIABDROM: SHSTOCKICONID = 137i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_MEDIABDR: SHSTOCKICONID = 138i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_MEDIABDRE: SHSTOCKICONID = 139i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_CLUSTEREDDRIVE: SHSTOCKICONID = 140i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIID_MAX_ICONS: SHSTOCKICONID = 181i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SIATTRIBFLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIATTRIBFLAGS_AND: SIATTRIBFLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIATTRIBFLAGS_OR: SIATTRIBFLAGS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIATTRIBFLAGS_APPCOMPAT: SIATTRIBFLAGS = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIATTRIBFLAGS_MASK: SIATTRIBFLAGS = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIATTRIBFLAGS_ALLITEMS: SIATTRIBFLAGS = 16384i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SIGDN = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIGDN_NORMALDISPLAY: SIGDN = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIGDN_PARENTRELATIVEPARSING: SIGDN = -2147385343i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIGDN_DESKTOPABSOLUTEPARSING: SIGDN = -2147319808i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIGDN_PARENTRELATIVEEDITING: SIGDN = -2147282943i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIGDN_DESKTOPABSOLUTEEDITING: SIGDN = -2147172352i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIGDN_FILESYSPATH: SIGDN = -2147123200i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIGDN_URL: SIGDN = -2147057664i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIGDN_PARENTRELATIVEFORADDRESSBAR: SIGDN = -2146975743i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIGDN_PARENTRELATIVE: SIGDN = -2146959359i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIGDN_PARENTRELATIVEFORUI: SIGDN = -2146877439i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SIIGBF = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIIGBF_RESIZETOFIT: SIIGBF = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIIGBF_BIGGERSIZEOK: SIIGBF = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIIGBF_MEMORYONLY: SIIGBF = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIIGBF_ICONONLY: SIIGBF = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIIGBF_THUMBNAILONLY: SIIGBF = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIIGBF_INCACHEONLY: SIIGBF = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIIGBF_CROPTOSQUARE: SIIGBF = 32i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIIGBF_WIDETHUMBNAILS: SIIGBF = 64i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIIGBF_ICONBACKGROUND: SIIGBF = 128i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SIIGBF_SCALEUP: SIIGBF = 256i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SLGP_FLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SLGP_SHORTPATH: SLGP_FLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SLGP_UNCPRIORITY: SLGP_FLAGS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SLGP_RAWPATH: SLGP_FLAGS = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SLGP_RELATIVEPRIORITY: SLGP_FLAGS = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SLR_FLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SLR_NONE: SLR_FLAGS = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SLR_NO_UI: SLR_FLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SLR_ANY_MATCH: SLR_FLAGS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SLR_UPDATE: SLR_FLAGS = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SLR_NOUPDATE: SLR_FLAGS = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SLR_NOSEARCH: SLR_FLAGS = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SLR_NOTRACK: SLR_FLAGS = 32i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SLR_NOLINKINFO: SLR_FLAGS = 64i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SLR_INVOKE_MSI: SLR_FLAGS = 128i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SLR_NO_UI_WITH_MSG_PUMP: SLR_FLAGS = 257i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SLR_OFFER_DELETE_WITHOUT_FILE: SLR_FLAGS = 512i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SLR_KNOWNFOLDER: SLR_FLAGS = 1024i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SLR_MACHINE_IN_LOCAL_TARGET: SLR_FLAGS = 2048i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SLR_UPDATE_MACHINE_AND_SID: SLR_FLAGS = 4096i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SLR_NO_OBJECT_ID: SLR_FLAGS = 8192i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SMINFOFLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMIF_ICON: SMINFOFLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMIF_ACCELERATOR: SMINFOFLAGS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMIF_DROPTARGET: SMINFOFLAGS = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMIF_SUBMENU: SMINFOFLAGS = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMIF_CHECKED: SMINFOFLAGS = 32i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMIF_DROPCASCADE: SMINFOFLAGS = 64i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMIF_HIDDEN: SMINFOFLAGS = 128i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMIF_DISABLED: SMINFOFLAGS = 256i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMIF_TRACKPOPUP: SMINFOFLAGS = 512i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMIF_DEMOTED: SMINFOFLAGS = 1024i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMIF_ALTSTATE: SMINFOFLAGS = 2048i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMIF_DRAGNDROP: SMINFOFLAGS = 4096i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMIF_NEW: SMINFOFLAGS = 8192i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SMINFOMASK = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMIM_TYPE: SMINFOMASK = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMIM_FLAGS: SMINFOMASK = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMIM_ICON: SMINFOMASK = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SMINFOTYPE = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMIT_SEPARATOR: SMINFOTYPE = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SMIT_STRING: SMINFOTYPE = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SORTDIRECTION = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SORT_DESCENDING: SORTDIRECTION = -1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SORT_ASCENDING: SORTDIRECTION = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SORT_ORDER_TYPE = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SOT_DEFAULT: SORT_ORDER_TYPE = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SOT_IGNORE_FOLDERNESS: SORT_ORDER_TYPE = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SPACTION = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SPACTION_NONE: SPACTION = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SPACTION_MOVING: SPACTION = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SPACTION_COPYING: SPACTION = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SPACTION_RECYCLING: SPACTION = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SPACTION_APPLYINGATTRIBS: SPACTION = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SPACTION_DOWNLOADING: SPACTION = 5i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SPACTION_SEARCHING_INTERNET: SPACTION = 6i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SPACTION_CALCULATING: SPACTION = 7i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SPACTION_UPLOADING: SPACTION = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SPACTION_SEARCHING_FILES: SPACTION = 9i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SPACTION_DELETING: SPACTION = 10i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SPACTION_RENAMING: SPACTION = 11i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SPACTION_FORMATTING: SPACTION = 12i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SPACTION_COPY_MOVING: SPACTION = 13i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SPTEXT = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SPTEXT_ACTIONDESCRIPTION: SPTEXT = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SPTEXT_ACTIONDETAIL: SPTEXT = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SSF_MASK = u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SSF_SHOWALLOBJECTS: SSF_MASK = 1u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SSF_SHOWEXTENSIONS: SSF_MASK = 2u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SSF_HIDDENFILEEXTS: SSF_MASK = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SSF_SERVERADMINUI: SSF_MASK = 4u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SSF_SHOWCOMPCOLOR: SSF_MASK = 8u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SSF_SORTCOLUMNS: SSF_MASK = 16u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SSF_SHOWSYSFILES: SSF_MASK = 32u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SSF_DOUBLECLICKINWEBVIEW: SSF_MASK = 128u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SSF_SHOWATTRIBCOL: SSF_MASK = 256u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SSF_DESKTOPHTML: SSF_MASK = 512u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SSF_WIN95CLASSIC: SSF_MASK = 1024u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SSF_DONTPRETTYPATH: SSF_MASK = 2048u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SSF_SHOWINFOTIP: SSF_MASK = 8192u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SSF_MAPNETDRVBUTTON: SSF_MASK = 4096u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SSF_NOCONFIRMRECYCLE: SSF_MASK = 32768u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SSF_HIDEICONS: SSF_MASK = 16384u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SSF_FILTER: SSF_MASK = 65536u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SSF_WEBVIEW: SSF_MASK = 131072u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SSF_SHOWSUPERHIDDEN: SSF_MASK = 262144u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SSF_SEPPROCESS: SSF_MASK = 524288u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SSF_NONETCRAWLING: SSF_MASK = 1048576u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SSF_STARTPANELON: SSF_MASK = 2097152u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SSF_SHOWSTARTPAGE: SSF_MASK = 4194304u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SSF_AUTOCHECKSELECT: SSF_MASK = 8388608u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SSF_ICONSONLY: SSF_MASK = 16777216u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SSF_SHOWTYPEOVERLAY: SSF_MASK = 33554432u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SSF_SHOWSTATUSBAR: SSF_MASK = 67108864u32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type STGOP = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STGOP_MOVE: STGOP = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STGOP_COPY: STGOP = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STGOP_SYNC: STGOP = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STGOP_REMOVE: STGOP = 5i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STGOP_RENAME: STGOP = 6i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STGOP_APPLYPROPERTIES: STGOP = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STGOP_NEW: STGOP = 10i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type STORAGE_PROVIDER_FILE_FLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SPFF_NONE: STORAGE_PROVIDER_FILE_FLAGS = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SPFF_DOWNLOAD_BY_DEFAULT: STORAGE_PROVIDER_FILE_FLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SPFF_CREATED_ON_THIS_DEVICE: STORAGE_PROVIDER_FILE_FLAGS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type STPFLAG = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STPF_NONE: STPFLAG = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STPF_USEAPPTHUMBNAILALWAYS: STPFLAG = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STPF_USEAPPTHUMBNAILWHENACTIVE: STPFLAG = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STPF_USEAPPPEEKALWAYS: STPFLAG = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const STPF_USEAPPPEEKWHENACTIVE: STPFLAG = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SVUIA_STATUS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SVUIA_DEACTIVATE: SVUIA_STATUS = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SVUIA_ACTIVATE_NOFOCUS: SVUIA_STATUS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SVUIA_ACTIVATE_FOCUS: SVUIA_STATUS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SVUIA_INPLACEACTIVATE: SVUIA_STATUS = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SYNCMGRERRORFLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGRERRORFLAG_ENABLEJUMPTEXT: SYNCMGRERRORFLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SYNCMGRFLAG = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGRFLAG_CONNECT: SYNCMGRFLAG = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGRFLAG_PENDINGDISCONNECT: SYNCMGRFLAG = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGRFLAG_MANUAL: SYNCMGRFLAG = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGRFLAG_IDLE: SYNCMGRFLAG = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGRFLAG_INVOKE: SYNCMGRFLAG = 5i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGRFLAG_SCHEDULED: SYNCMGRFLAG = 6i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGRFLAG_EVENTMASK: SYNCMGRFLAG = 255i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGRFLAG_SETTINGS: SYNCMGRFLAG = 256i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGRFLAG_MAYBOTHERUSER: SYNCMGRFLAG = 512i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SYNCMGRHANDLERFLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGRHANDLER_HASPROPERTIES: SYNCMGRHANDLERFLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGRHANDLER_MAYESTABLISHCONNECTION: SYNCMGRHANDLERFLAGS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGRHANDLER_ALWAYSLISTHANDLER: SYNCMGRHANDLERFLAGS = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGRHANDLER_HIDDEN: SYNCMGRHANDLERFLAGS = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SYNCMGRINVOKEFLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGRINVOKE_STARTSYNC: SYNCMGRINVOKEFLAGS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGRINVOKE_MINIMIZED: SYNCMGRINVOKEFLAGS = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SYNCMGRITEMFLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGRITEM_HASPROPERTIES: SYNCMGRITEMFLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGRITEM_TEMPORARY: SYNCMGRITEMFLAGS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGRITEM_ROAMINGUSER: SYNCMGRITEMFLAGS = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGRITEM_LASTUPDATETIME: SYNCMGRITEMFLAGS = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGRITEM_MAYDELETEITEM: SYNCMGRITEMFLAGS = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGRITEM_HIDDEN: SYNCMGRITEMFLAGS = 32i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SYNCMGRITEMSTATE = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGRITEMSTATE_UNCHECKED: SYNCMGRITEMSTATE = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGRITEMSTATE_CHECKED: SYNCMGRITEMSTATE = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SYNCMGRLOGLEVEL = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGRLOGLEVEL_INFORMATION: SYNCMGRLOGLEVEL = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGRLOGLEVEL_WARNING: SYNCMGRLOGLEVEL = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGRLOGLEVEL_ERROR: SYNCMGRLOGLEVEL = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGRLOGLEVEL_LOGLEVELMAX: SYNCMGRLOGLEVEL = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SYNCMGRREGISTERFLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGRREGISTERFLAG_CONNECT: SYNCMGRREGISTERFLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGRREGISTERFLAG_PENDINGDISCONNECT: SYNCMGRREGISTERFLAGS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGRREGISTERFLAG_IDLE: SYNCMGRREGISTERFLAGS = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SYNCMGRSTATUS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGRSTATUS_STOPPED: SYNCMGRSTATUS = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGRSTATUS_SKIPPED: SYNCMGRSTATUS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGRSTATUS_PENDING: SYNCMGRSTATUS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGRSTATUS_UPDATING: SYNCMGRSTATUS = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGRSTATUS_SUCCEEDED: SYNCMGRSTATUS = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGRSTATUS_FAILED: SYNCMGRSTATUS = 5i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGRSTATUS_PAUSED: SYNCMGRSTATUS = 6i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGRSTATUS_RESUMING: SYNCMGRSTATUS = 7i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGRSTATUS_UPDATING_INDETERMINATE: SYNCMGRSTATUS = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGRSTATUS_DELETED: SYNCMGRSTATUS = 256i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SYNCMGR_CANCEL_REQUEST = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_CR_NONE: SYNCMGR_CANCEL_REQUEST = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_CR_CANCEL_ITEM: SYNCMGR_CANCEL_REQUEST = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_CR_CANCEL_ALL: SYNCMGR_CANCEL_REQUEST = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_CR_MAX: SYNCMGR_CANCEL_REQUEST = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SYNCMGR_CONFLICT_ITEM_TYPE = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_CIT_UPDATED: SYNCMGR_CONFLICT_ITEM_TYPE = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_CIT_DELETED: SYNCMGR_CONFLICT_ITEM_TYPE = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SYNCMGR_CONTROL_FLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_CF_NONE: SYNCMGR_CONTROL_FLAGS = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_CF_NOWAIT: SYNCMGR_CONTROL_FLAGS = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_CF_WAIT: SYNCMGR_CONTROL_FLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_CF_NOUI: SYNCMGR_CONTROL_FLAGS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_CF_VALID: SYNCMGR_CONTROL_FLAGS = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SYNCMGR_EVENT_FLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_EF_NONE: SYNCMGR_EVENT_FLAGS = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_EF_VALID: SYNCMGR_EVENT_FLAGS = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SYNCMGR_EVENT_LEVEL = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_EL_INFORMATION: SYNCMGR_EVENT_LEVEL = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_EL_WARNING: SYNCMGR_EVENT_LEVEL = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_EL_ERROR: SYNCMGR_EVENT_LEVEL = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_EL_MAX: SYNCMGR_EVENT_LEVEL = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SYNCMGR_HANDLER_CAPABILITIES = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_HCM_NONE: SYNCMGR_HANDLER_CAPABILITIES = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_HCM_PROVIDES_ICON: SYNCMGR_HANDLER_CAPABILITIES = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_HCM_EVENT_STORE: SYNCMGR_HANDLER_CAPABILITIES = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_HCM_CONFLICT_STORE: SYNCMGR_HANDLER_CAPABILITIES = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_HCM_SUPPORTS_CONCURRENT_SESSIONS: SYNCMGR_HANDLER_CAPABILITIES = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_HCM_CAN_BROWSE_CONTENT: SYNCMGR_HANDLER_CAPABILITIES = 65536i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_HCM_CAN_SHOW_SCHEDULE: SYNCMGR_HANDLER_CAPABILITIES = 131072i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_HCM_QUERY_BEFORE_ACTIVATE: SYNCMGR_HANDLER_CAPABILITIES = 1048576i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_HCM_QUERY_BEFORE_DEACTIVATE: SYNCMGR_HANDLER_CAPABILITIES = 2097152i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_HCM_QUERY_BEFORE_ENABLE: SYNCMGR_HANDLER_CAPABILITIES = 4194304i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_HCM_QUERY_BEFORE_DISABLE: SYNCMGR_HANDLER_CAPABILITIES = 8388608i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_HCM_VALID_MASK: SYNCMGR_HANDLER_CAPABILITIES = 15925271i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SYNCMGR_HANDLER_POLICIES = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_HPM_NONE: SYNCMGR_HANDLER_POLICIES = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_HPM_PREVENT_ACTIVATE: SYNCMGR_HANDLER_POLICIES = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_HPM_PREVENT_DEACTIVATE: SYNCMGR_HANDLER_POLICIES = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_HPM_PREVENT_ENABLE: SYNCMGR_HANDLER_POLICIES = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_HPM_PREVENT_DISABLE: SYNCMGR_HANDLER_POLICIES = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_HPM_PREVENT_START_SYNC: SYNCMGR_HANDLER_POLICIES = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_HPM_PREVENT_STOP_SYNC: SYNCMGR_HANDLER_POLICIES = 32i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_HPM_DISABLE_ENABLE: SYNCMGR_HANDLER_POLICIES = 256i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_HPM_DISABLE_DISABLE: SYNCMGR_HANDLER_POLICIES = 512i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_HPM_DISABLE_START_SYNC: SYNCMGR_HANDLER_POLICIES = 1024i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_HPM_DISABLE_STOP_SYNC: SYNCMGR_HANDLER_POLICIES = 2048i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_HPM_DISABLE_BROWSE: SYNCMGR_HANDLER_POLICIES = 4096i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_HPM_DISABLE_SCHEDULE: SYNCMGR_HANDLER_POLICIES = 8192i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_HPM_HIDDEN_BY_DEFAULT: SYNCMGR_HANDLER_POLICIES = 65536i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_HPM_BACKGROUND_SYNC_ONLY: SYNCMGR_HANDLER_POLICIES = 48i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_HPM_VALID_MASK: SYNCMGR_HANDLER_POLICIES = 77631i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SYNCMGR_HANDLER_TYPE = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_HT_UNSPECIFIED: SYNCMGR_HANDLER_TYPE = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_HT_APPLICATION: SYNCMGR_HANDLER_TYPE = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_HT_DEVICE: SYNCMGR_HANDLER_TYPE = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_HT_FOLDER: SYNCMGR_HANDLER_TYPE = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_HT_SERVICE: SYNCMGR_HANDLER_TYPE = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_HT_COMPUTER: SYNCMGR_HANDLER_TYPE = 5i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_HT_MIN: SYNCMGR_HANDLER_TYPE = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_HT_MAX: SYNCMGR_HANDLER_TYPE = 5i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SYNCMGR_ITEM_CAPABILITIES = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_ICM_NONE: SYNCMGR_ITEM_CAPABILITIES = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_ICM_PROVIDES_ICON: SYNCMGR_ITEM_CAPABILITIES = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_ICM_EVENT_STORE: SYNCMGR_ITEM_CAPABILITIES = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_ICM_CONFLICT_STORE: SYNCMGR_ITEM_CAPABILITIES = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_ICM_CAN_DELETE: SYNCMGR_ITEM_CAPABILITIES = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_ICM_CAN_BROWSE_CONTENT: SYNCMGR_ITEM_CAPABILITIES = 65536i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_ICM_QUERY_BEFORE_ENABLE: SYNCMGR_ITEM_CAPABILITIES = 1048576i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_ICM_QUERY_BEFORE_DISABLE: SYNCMGR_ITEM_CAPABILITIES = 2097152i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_ICM_QUERY_BEFORE_DELETE: SYNCMGR_ITEM_CAPABILITIES = 4194304i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_ICM_VALID_MASK: SYNCMGR_ITEM_CAPABILITIES = 7405591i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SYNCMGR_ITEM_POLICIES = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_IPM_NONE: SYNCMGR_ITEM_POLICIES = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_IPM_PREVENT_ENABLE: SYNCMGR_ITEM_POLICIES = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_IPM_PREVENT_DISABLE: SYNCMGR_ITEM_POLICIES = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_IPM_PREVENT_START_SYNC: SYNCMGR_ITEM_POLICIES = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_IPM_PREVENT_STOP_SYNC: SYNCMGR_ITEM_POLICIES = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_IPM_DISABLE_ENABLE: SYNCMGR_ITEM_POLICIES = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_IPM_DISABLE_DISABLE: SYNCMGR_ITEM_POLICIES = 32i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_IPM_DISABLE_START_SYNC: SYNCMGR_ITEM_POLICIES = 64i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_IPM_DISABLE_STOP_SYNC: SYNCMGR_ITEM_POLICIES = 128i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_IPM_DISABLE_BROWSE: SYNCMGR_ITEM_POLICIES = 256i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_IPM_DISABLE_DELETE: SYNCMGR_ITEM_POLICIES = 512i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_IPM_HIDDEN_BY_DEFAULT: SYNCMGR_ITEM_POLICIES = 65536i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_IPM_VALID_MASK: SYNCMGR_ITEM_POLICIES = 66303i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SYNCMGR_PRESENTER_CHOICE = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_PC_NO_CHOICE: SYNCMGR_PRESENTER_CHOICE = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_PC_KEEP_ONE: SYNCMGR_PRESENTER_CHOICE = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_PC_KEEP_MULTIPLE: SYNCMGR_PRESENTER_CHOICE = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_PC_KEEP_RECENT: SYNCMGR_PRESENTER_CHOICE = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_PC_REMOVE_FROM_SYNC_SET: SYNCMGR_PRESENTER_CHOICE = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_PC_SKIP: SYNCMGR_PRESENTER_CHOICE = 5i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SYNCMGR_PRESENTER_NEXT_STEP = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_PNS_CONTINUE: SYNCMGR_PRESENTER_NEXT_STEP = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_PNS_DEFAULT: SYNCMGR_PRESENTER_NEXT_STEP = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_PNS_CANCEL: SYNCMGR_PRESENTER_NEXT_STEP = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SYNCMGR_PROGRESS_STATUS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_PS_UPDATING: SYNCMGR_PROGRESS_STATUS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_PS_UPDATING_INDETERMINATE: SYNCMGR_PROGRESS_STATUS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_PS_SUCCEEDED: SYNCMGR_PROGRESS_STATUS = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_PS_FAILED: SYNCMGR_PROGRESS_STATUS = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_PS_CANCELED: SYNCMGR_PROGRESS_STATUS = 5i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_PS_DISCONNECTED: SYNCMGR_PROGRESS_STATUS = 6i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_PS_MAX: SYNCMGR_PROGRESS_STATUS = 6i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SYNCMGR_RESOLUTION_ABILITIES = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_RA_KEEPOTHER: SYNCMGR_RESOLUTION_ABILITIES = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_RA_KEEPRECENT: SYNCMGR_RESOLUTION_ABILITIES = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_RA_REMOVEFROMSYNCSET: SYNCMGR_RESOLUTION_ABILITIES = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_RA_KEEP_SINGLE: SYNCMGR_RESOLUTION_ABILITIES = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_RA_KEEP_MULTIPLE: SYNCMGR_RESOLUTION_ABILITIES = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_RA_VALID: SYNCMGR_RESOLUTION_ABILITIES = 31i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SYNCMGR_RESOLUTION_FEEDBACK = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_RF_CONTINUE: SYNCMGR_RESOLUTION_FEEDBACK = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_RF_REFRESH: SYNCMGR_RESOLUTION_FEEDBACK = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_RF_CANCEL: SYNCMGR_RESOLUTION_FEEDBACK = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SYNCMGR_SYNC_CONTROL_FLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_SCF_NONE: SYNCMGR_SYNC_CONTROL_FLAGS = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_SCF_IGNORE_IF_ALREADY_SYNCING: SYNCMGR_SYNC_CONTROL_FLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_SCF_VALID: SYNCMGR_SYNC_CONTROL_FLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SYNCMGR_UPDATE_REASON = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_UR_ADDED: SYNCMGR_UPDATE_REASON = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_UR_CHANGED: SYNCMGR_UPDATE_REASON = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_UR_REMOVED: SYNCMGR_UPDATE_REASON = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SYNCMGR_UR_MAX: SYNCMGR_UPDATE_REASON = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type SecureLockIconConstants = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const secureLockIconUnsecure: SecureLockIconConstants = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const secureLockIconMixed: SecureLockIconConstants = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const secureLockIconSecureUnknownBits: SecureLockIconConstants = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const secureLockIconSecure40Bit: SecureLockIconConstants = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const secureLockIconSecure56Bit: SecureLockIconConstants = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const secureLockIconSecureFortezza: SecureLockIconConstants = 5i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const secureLockIconSecure128Bit: SecureLockIconConstants = 6i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type ShellFolderViewOptions = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SFVVO_SHOWALLOBJECTS: ShellFolderViewOptions = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SFVVO_SHOWEXTENSIONS: ShellFolderViewOptions = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SFVVO_SHOWCOMPCOLOR: ShellFolderViewOptions = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SFVVO_SHOWSYSFILES: ShellFolderViewOptions = 32i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SFVVO_WIN95CLASSIC: ShellFolderViewOptions = 64i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SFVVO_DOUBLECLICKINWEBVIEW: ShellFolderViewOptions = 128i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SFVVO_DESKTOPHTML: ShellFolderViewOptions = 512i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type ShellSpecialFolderConstants = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ssfDESKTOP: ShellSpecialFolderConstants = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ssfPROGRAMS: ShellSpecialFolderConstants = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ssfCONTROLS: ShellSpecialFolderConstants = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ssfPRINTERS: ShellSpecialFolderConstants = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ssfPERSONAL: ShellSpecialFolderConstants = 5i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ssfFAVORITES: ShellSpecialFolderConstants = 6i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ssfSTARTUP: ShellSpecialFolderConstants = 7i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ssfRECENT: ShellSpecialFolderConstants = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ssfSENDTO: ShellSpecialFolderConstants = 9i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ssfBITBUCKET: ShellSpecialFolderConstants = 10i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ssfSTARTMENU: ShellSpecialFolderConstants = 11i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ssfDESKTOPDIRECTORY: ShellSpecialFolderConstants = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ssfDRIVES: ShellSpecialFolderConstants = 17i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ssfNETWORK: ShellSpecialFolderConstants = 18i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ssfNETHOOD: ShellSpecialFolderConstants = 19i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ssfFONTS: ShellSpecialFolderConstants = 20i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ssfTEMPLATES: ShellSpecialFolderConstants = 21i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ssfCOMMONSTARTMENU: ShellSpecialFolderConstants = 22i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ssfCOMMONPROGRAMS: ShellSpecialFolderConstants = 23i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ssfCOMMONSTARTUP: ShellSpecialFolderConstants = 24i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ssfCOMMONDESKTOPDIR: ShellSpecialFolderConstants = 25i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ssfAPPDATA: ShellSpecialFolderConstants = 26i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ssfPRINTHOOD: ShellSpecialFolderConstants = 27i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ssfLOCALAPPDATA: ShellSpecialFolderConstants = 28i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ssfALTSTARTUP: ShellSpecialFolderConstants = 29i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ssfCOMMONALTSTARTUP: ShellSpecialFolderConstants = 30i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ssfCOMMONFAVORITES: ShellSpecialFolderConstants = 31i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ssfINTERNETCACHE: ShellSpecialFolderConstants = 32i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ssfCOOKIES: ShellSpecialFolderConstants = 33i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ssfHISTORY: ShellSpecialFolderConstants = 34i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ssfCOMMONAPPDATA: ShellSpecialFolderConstants = 35i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ssfWINDOWS: ShellSpecialFolderConstants = 36i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ssfSYSTEM: ShellSpecialFolderConstants = 37i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ssfPROGRAMFILES: ShellSpecialFolderConstants = 38i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ssfMYPICTURES: ShellSpecialFolderConstants = 39i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ssfPROFILE: ShellSpecialFolderConstants = 40i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ssfSYSTEMx86: ShellSpecialFolderConstants = 41i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ssfPROGRAMFILESx86: ShellSpecialFolderConstants = 48i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type ShellWindowFindWindowOptions = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SWFO_NEEDDISPATCH: ShellWindowFindWindowOptions = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SWFO_INCLUDEPENDING: ShellWindowFindWindowOptions = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SWFO_COOKIEPASSED: ShellWindowFindWindowOptions = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type ShellWindowTypeConstants = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SWC_EXPLORER: ShellWindowTypeConstants = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SWC_BROWSER: ShellWindowTypeConstants = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SWC_3RDPARTY: ShellWindowTypeConstants = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SWC_CALLBACK: ShellWindowTypeConstants = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SWC_DESKTOP: ShellWindowTypeConstants = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type TBPFLAG = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const TBPF_NOPROGRESS: TBPFLAG = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const TBPF_INDETERMINATE: TBPFLAG = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const TBPF_NORMAL: TBPFLAG = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const TBPF_ERROR: TBPFLAG = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const TBPF_PAUSED: TBPFLAG = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type THUMBBUTTONFLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const THBF_ENABLED: THUMBBUTTONFLAGS = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const THBF_DISABLED: THUMBBUTTONFLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const THBF_DISMISSONCLICK: THUMBBUTTONFLAGS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const THBF_NOBACKGROUND: THUMBBUTTONFLAGS = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const THBF_HIDDEN: THUMBBUTTONFLAGS = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const THBF_NONINTERACTIVE: THUMBBUTTONFLAGS = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type THUMBBUTTONMASK = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const THB_BITMAP: THUMBBUTTONMASK = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const THB_ICON: THUMBBUTTONMASK = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const THB_TOOLTIP: THUMBBUTTONMASK = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const THB_FLAGS: THUMBBUTTONMASK = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type TI_FLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const TI_BITMAP: TI_FLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const TI_JPEG: TI_FLAGS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type TLENUMF = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const TLEF_RELATIVE_INCLUDE_CURRENT: TLENUMF = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const TLEF_RELATIVE_BACK: TLENUMF = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const TLEF_RELATIVE_FORE: TLENUMF = 32i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const TLEF_INCLUDE_UNINVOKEABLE: TLENUMF = 64i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const TLEF_ABSOLUTE: TLENUMF = 49i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const TLEF_EXCLUDE_SUBFRAME_ENTRIES: TLENUMF = 128i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const TLEF_EXCLUDE_ABOUT_PAGES: TLENUMF = 256i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type TRANSLATEURL_IN_FLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const TRANSLATEURL_FL_GUESS_PROTOCOL: TRANSLATEURL_IN_FLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const TRANSLATEURL_FL_USE_DEFAULT_PROTOCOL: TRANSLATEURL_IN_FLAGS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type ThumbnailStreamCacheOptions = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ExtractIfNotCached: ThumbnailStreamCacheOptions = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ReturnOnlyIfCached: ThumbnailStreamCacheOptions = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ResizeThumbnail: ThumbnailStreamCacheOptions = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const AllowSmallerSize: ThumbnailStreamCacheOptions = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type UNDOCK_REASON = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const UR_RESOLUTION_CHANGE: UNDOCK_REASON = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const UR_MONITOR_DISCONNECT: UNDOCK_REASON = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type URLASSOCIATIONDIALOG_IN_FLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URLASSOCDLG_FL_USE_DEFAULT_NAME: URLASSOCIATIONDIALOG_IN_FLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URLASSOCDLG_FL_REGISTER_ASSOC: URLASSOCIATIONDIALOG_IN_FLAGS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type URLIS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URLIS_URL: URLIS = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URLIS_OPAQUE: URLIS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URLIS_NOHISTORY: URLIS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URLIS_FILEURL: URLIS = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URLIS_APPLIABLE: URLIS = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URLIS_DIRECTORY: URLIS = 5i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URLIS_HASQUERY: URLIS = 6i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type URL_PART = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_PART_NONE: URL_PART = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_PART_SCHEME: URL_PART = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_PART_HOSTNAME: URL_PART = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_PART_USERNAME: URL_PART = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_PART_PASSWORD: URL_PART = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_PART_PORT: URL_PART = 5i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_PART_QUERY: URL_PART = 6i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type URL_SCHEME = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_SCHEME_INVALID: URL_SCHEME = -1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_SCHEME_UNKNOWN: URL_SCHEME = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_SCHEME_FTP: URL_SCHEME = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_SCHEME_HTTP: URL_SCHEME = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_SCHEME_GOPHER: URL_SCHEME = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_SCHEME_MAILTO: URL_SCHEME = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_SCHEME_NEWS: URL_SCHEME = 5i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_SCHEME_NNTP: URL_SCHEME = 6i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_SCHEME_TELNET: URL_SCHEME = 7i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_SCHEME_WAIS: URL_SCHEME = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_SCHEME_FILE: URL_SCHEME = 9i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_SCHEME_MK: URL_SCHEME = 10i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_SCHEME_HTTPS: URL_SCHEME = 11i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_SCHEME_SHELL: URL_SCHEME = 12i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_SCHEME_SNEWS: URL_SCHEME = 13i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_SCHEME_LOCAL: URL_SCHEME = 14i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_SCHEME_JAVASCRIPT: URL_SCHEME = 15i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_SCHEME_VBSCRIPT: URL_SCHEME = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_SCHEME_ABOUT: URL_SCHEME = 17i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_SCHEME_RES: URL_SCHEME = 18i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_SCHEME_MSSHELLROOTED: URL_SCHEME = 19i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_SCHEME_MSSHELLIDLIST: URL_SCHEME = 20i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_SCHEME_MSHELP: URL_SCHEME = 21i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_SCHEME_MSSHELLDEVICE: URL_SCHEME = 22i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_SCHEME_WILDCARD: URL_SCHEME = 23i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_SCHEME_SEARCH_MS: URL_SCHEME = 24i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_SCHEME_SEARCH: URL_SCHEME = 25i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_SCHEME_KNOWNFOLDER: URL_SCHEME = 26i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const URL_SCHEME_MAXVALUE: URL_SCHEME = 27i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type VALIDATEUNC_OPTION = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const VALIDATEUNC_CONNECT: VALIDATEUNC_OPTION = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const VALIDATEUNC_NOUI: VALIDATEUNC_OPTION = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const VALIDATEUNC_PRINT: VALIDATEUNC_OPTION = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const VALIDATEUNC_PERSIST: VALIDATEUNC_OPTION = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const VALIDATEUNC_VALID: VALIDATEUNC_OPTION = 15i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type VPCOLORFLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const VPCF_TEXT: VPCOLORFLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const VPCF_BACKGROUND: VPCOLORFLAGS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const VPCF_SORTCOLUMN: VPCOLORFLAGS = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const VPCF_SUBTEXT: VPCOLORFLAGS = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const VPCF_TEXTBACKGROUND: VPCOLORFLAGS = 5i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type VPWATERMARKFLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const VPWF_DEFAULT: VPWATERMARKFLAGS = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const VPWF_ALPHABLEND: VPWATERMARKFLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type WTS_ALPHATYPE = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const WTSAT_UNKNOWN: WTS_ALPHATYPE = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const WTSAT_RGB: WTS_ALPHATYPE = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const WTSAT_ARGB: WTS_ALPHATYPE = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type WTS_CACHEFLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const WTS_DEFAULT: WTS_CACHEFLAGS = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const WTS_LOWQUALITY: WTS_CACHEFLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const WTS_CACHED: WTS_CACHEFLAGS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type WTS_CONTEXTFLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const WTSCF_DEFAULT: WTS_CONTEXTFLAGS = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const WTSCF_APPSTYLE: WTS_CONTEXTFLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const WTSCF_SQUARE: WTS_CONTEXTFLAGS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const WTSCF_WIDE: WTS_CONTEXTFLAGS = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const WTSCF_FAST: WTS_CONTEXTFLAGS = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type WTS_FLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const WTS_NONE: WTS_FLAGS = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const WTS_EXTRACT: WTS_FLAGS = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const WTS_INCACHEONLY: WTS_FLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const WTS_FASTEXTRACT: WTS_FLAGS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const WTS_FORCEEXTRACTION: WTS_FLAGS = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const WTS_SLOWRECLAIM: WTS_FLAGS = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const WTS_EXTRACTDONOTCACHE: WTS_FLAGS = 32i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const WTS_SCALETOREQUESTEDSIZE: WTS_FLAGS = 64i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const WTS_SKIPFASTEXTRACT: WTS_FLAGS = 128i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const WTS_EXTRACTINPROC: WTS_FLAGS = 256i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const WTS_CROPTOSQUARE: WTS_FLAGS = 512i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const WTS_INSTANCESURROGATE: WTS_FLAGS = 1024i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const WTS_REQUIRESURROGATE: WTS_FLAGS = 2048i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const WTS_APPSTYLE: WTS_FLAGS = 8192i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const WTS_WIDETHUMBNAILS: WTS_FLAGS = 16384i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const WTS_IDEALCACHESIZEONLY: WTS_FLAGS = 32768i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const WTS_SCALEUP: WTS_FLAGS = 65536i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type _BROWSERFRAMEOPTIONS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BFO_NONE: _BROWSERFRAMEOPTIONS = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BFO_BROWSER_PERSIST_SETTINGS: _BROWSERFRAMEOPTIONS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BFO_RENAME_FOLDER_OPTIONS_TOINTERNET: _BROWSERFRAMEOPTIONS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BFO_BOTH_OPTIONS: _BROWSERFRAMEOPTIONS = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BIF_PREFER_INTERNET_SHORTCUT: _BROWSERFRAMEOPTIONS = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BFO_BROWSE_NO_IN_NEW_PROCESS: _BROWSERFRAMEOPTIONS = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BFO_ENABLE_HYPERLINK_TRACKING: _BROWSERFRAMEOPTIONS = 32i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BFO_USE_IE_OFFLINE_SUPPORT: _BROWSERFRAMEOPTIONS = 64i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BFO_SUBSTITUE_INTERNET_START_PAGE: _BROWSERFRAMEOPTIONS = 128i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BFO_USE_IE_LOGOBANDING: _BROWSERFRAMEOPTIONS = 256i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BFO_ADD_IE_TOCAPTIONBAR: _BROWSERFRAMEOPTIONS = 512i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BFO_USE_DIALUP_REF: _BROWSERFRAMEOPTIONS = 1024i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BFO_USE_IE_TOOLBAR: _BROWSERFRAMEOPTIONS = 2048i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BFO_NO_PARENT_FOLDER_SUPPORT: _BROWSERFRAMEOPTIONS = 4096i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BFO_NO_REOPEN_NEXT_RESTART: _BROWSERFRAMEOPTIONS = 8192i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BFO_GO_HOME_PAGE: _BROWSERFRAMEOPTIONS = 16384i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BFO_PREFER_IEPROCESS: _BROWSERFRAMEOPTIONS = 32768i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BFO_SHOW_NAVIGATION_CANCELLED: _BROWSERFRAMEOPTIONS = 65536i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BFO_USE_IE_STATUSBAR: _BROWSERFRAMEOPTIONS = 131072i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const BFO_QUERY_ALL: _BROWSERFRAMEOPTIONS = -1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type _CDBE_ACTIONS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CDBE_TYPE_MUSIC: _CDBE_ACTIONS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CDBE_TYPE_DATA: _CDBE_ACTIONS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const CDBE_TYPE_ALL: _CDBE_ACTIONS = -1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type _EXPCMDFLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ECF_DEFAULT: _EXPCMDFLAGS = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ECF_HASSUBCOMMANDS: _EXPCMDFLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ECF_HASSPLITBUTTON: _EXPCMDFLAGS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ECF_HIDELABEL: _EXPCMDFLAGS = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ECF_ISSEPARATOR: _EXPCMDFLAGS = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ECF_HASLUASHIELD: _EXPCMDFLAGS = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ECF_SEPARATORBEFORE: _EXPCMDFLAGS = 32i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ECF_SEPARATORAFTER: _EXPCMDFLAGS = 64i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ECF_ISDROPDOWN: _EXPCMDFLAGS = 128i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ECF_TOGGLEABLE: _EXPCMDFLAGS = 256i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ECF_AUTOMENUICONS: _EXPCMDFLAGS = 512i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type _EXPCMDSTATE = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ECS_ENABLED: _EXPCMDSTATE = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ECS_DISABLED: _EXPCMDSTATE = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ECS_HIDDEN: _EXPCMDSTATE = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ECS_CHECKBOX: _EXPCMDSTATE = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ECS_CHECKED: _EXPCMDSTATE = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const ECS_RADIOCHECK: _EXPCMDSTATE = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type _EXPLORERPANESTATE = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const EPS_DONTCARE: _EXPLORERPANESTATE = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const EPS_DEFAULT_ON: _EXPLORERPANESTATE = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const EPS_DEFAULT_OFF: _EXPLORERPANESTATE = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const EPS_STATEMASK: _EXPLORERPANESTATE = 65535i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const EPS_INITIALSTATE: _EXPLORERPANESTATE = 65536i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const EPS_FORCE: _EXPLORERPANESTATE = 131072i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type _EXPPS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const EXPPS_FILETYPES: _EXPPS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type _KF_DEFINITION_FLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const KFDF_LOCAL_REDIRECT_ONLY: _KF_DEFINITION_FLAGS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const KFDF_ROAMABLE: _KF_DEFINITION_FLAGS = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const KFDF_PRECREATE: _KF_DEFINITION_FLAGS = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const KFDF_STREAM: _KF_DEFINITION_FLAGS = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const KFDF_PUBLISHEXPANDEDPATH: _KF_DEFINITION_FLAGS = 32i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const KFDF_NO_REDIRECT_UI: _KF_DEFINITION_FLAGS = 64i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type _KF_REDIRECTION_CAPABILITIES = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const KF_REDIRECTION_CAPABILITIES_ALLOW_ALL: _KF_REDIRECTION_CAPABILITIES = 255i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const KF_REDIRECTION_CAPABILITIES_REDIRECTABLE: _KF_REDIRECTION_CAPABILITIES = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const KF_REDIRECTION_CAPABILITIES_DENY_ALL: _KF_REDIRECTION_CAPABILITIES = 1048320i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const KF_REDIRECTION_CAPABILITIES_DENY_POLICY_REDIRECTED: _KF_REDIRECTION_CAPABILITIES = 256i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const KF_REDIRECTION_CAPABILITIES_DENY_POLICY: _KF_REDIRECTION_CAPABILITIES = 512i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const KF_REDIRECTION_CAPABILITIES_DENY_PERMISSIONS: _KF_REDIRECTION_CAPABILITIES = 1024i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type _KF_REDIRECT_FLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const KF_REDIRECT_USER_EXCLUSIVE: _KF_REDIRECT_FLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const KF_REDIRECT_COPY_SOURCE_DACL: _KF_REDIRECT_FLAGS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const KF_REDIRECT_OWNER_USER: _KF_REDIRECT_FLAGS = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const KF_REDIRECT_SET_OWNER_EXPLICIT: _KF_REDIRECT_FLAGS = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const KF_REDIRECT_CHECK_ONLY: _KF_REDIRECT_FLAGS = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const KF_REDIRECT_WITH_UI: _KF_REDIRECT_FLAGS = 32i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const KF_REDIRECT_UNPIN: _KF_REDIRECT_FLAGS = 64i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const KF_REDIRECT_PIN: _KF_REDIRECT_FLAGS = 128i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const KF_REDIRECT_COPY_CONTENTS: _KF_REDIRECT_FLAGS = 512i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const KF_REDIRECT_DEL_SOURCE_CONTENTS: _KF_REDIRECT_FLAGS = 1024i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const KF_REDIRECT_EXCLUDE_ALL_KNOWN_SUBFOLDERS: _KF_REDIRECT_FLAGS = 2048i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type _NMCII_FLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NMCII_NONE: _NMCII_FLAGS = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NMCII_ITEMS: _NMCII_FLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NMCII_FOLDERS: _NMCII_FLAGS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type _NMCSAEI_FLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NMCSAEI_SELECT: _NMCSAEI_FLAGS = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NMCSAEI_EDIT: _NMCSAEI_FLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type _NSTCECLICKTYPE = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCECT_LBUTTON: _NSTCECLICKTYPE = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCECT_MBUTTON: _NSTCECLICKTYPE = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCECT_RBUTTON: _NSTCECLICKTYPE = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCECT_BUTTON: _NSTCECLICKTYPE = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCECT_DBLCLICK: _NSTCECLICKTYPE = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type _NSTCEHITTEST = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCEHT_NOWHERE: _NSTCEHITTEST = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCEHT_ONITEMICON: _NSTCEHITTEST = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCEHT_ONITEMLABEL: _NSTCEHITTEST = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCEHT_ONITEMINDENT: _NSTCEHITTEST = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCEHT_ONITEMBUTTON: _NSTCEHITTEST = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCEHT_ONITEMRIGHT: _NSTCEHITTEST = 32i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCEHT_ONITEMSTATEICON: _NSTCEHITTEST = 64i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCEHT_ONITEM: _NSTCEHITTEST = 70i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCEHT_ONITEMTABBUTTON: _NSTCEHITTEST = 4096i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type _NSTCITEMSTATE = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCIS_NONE: _NSTCITEMSTATE = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCIS_SELECTED: _NSTCITEMSTATE = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCIS_EXPANDED: _NSTCITEMSTATE = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCIS_BOLD: _NSTCITEMSTATE = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCIS_DISABLED: _NSTCITEMSTATE = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCIS_SELECTEDNOEXPAND: _NSTCITEMSTATE = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type _NSTCROOTSTYLE = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCRS_VISIBLE: _NSTCROOTSTYLE = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCRS_HIDDEN: _NSTCROOTSTYLE = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCRS_EXPANDED: _NSTCROOTSTYLE = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type _NSTCSTYLE = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCS_HASEXPANDOS: _NSTCSTYLE = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCS_HASLINES: _NSTCSTYLE = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCS_SINGLECLICKEXPAND: _NSTCSTYLE = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCS_FULLROWSELECT: _NSTCSTYLE = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCS_SPRINGEXPAND: _NSTCSTYLE = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCS_HORIZONTALSCROLL: _NSTCSTYLE = 32i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCS_ROOTHASEXPANDO: _NSTCSTYLE = 64i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCS_SHOWSELECTIONALWAYS: _NSTCSTYLE = 128i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCS_NOINFOTIP: _NSTCSTYLE = 512i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCS_EVENHEIGHT: _NSTCSTYLE = 1024i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCS_NOREPLACEOPEN: _NSTCSTYLE = 2048i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCS_DISABLEDRAGDROP: _NSTCSTYLE = 4096i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCS_NOORDERSTREAM: _NSTCSTYLE = 8192i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCS_RICHTOOLTIP: _NSTCSTYLE = 16384i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCS_BORDER: _NSTCSTYLE = 32768i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCS_NOEDITLABELS: _NSTCSTYLE = 65536i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCS_TABSTOP: _NSTCSTYLE = 131072i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCS_FAVORITESMODE: _NSTCSTYLE = 524288i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCS_AUTOHSCROLL: _NSTCSTYLE = 1048576i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCS_FADEINOUTEXPANDOS: _NSTCSTYLE = 2097152i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCS_EMPTYTEXT: _NSTCSTYLE = 4194304i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCS_CHECKBOXES: _NSTCSTYLE = 8388608i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCS_PARTIALCHECKBOXES: _NSTCSTYLE = 16777216i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCS_EXCLUSIONCHECKBOXES: _NSTCSTYLE = 33554432i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCS_DIMMEDCHECKBOXES: _NSTCSTYLE = 67108864i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCS_NOINDENTCHECKS: _NSTCSTYLE = 134217728i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCS_ALLOWJUNCTIONS: _NSTCSTYLE = 268435456i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCS_SHOWTABSBUTTON: _NSTCSTYLE = 536870912i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCS_SHOWDELETEBUTTON: _NSTCSTYLE = 1073741824i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const NSTCS_SHOWREFRESHBUTTON: _NSTCSTYLE = -2147483648i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type _OPPROGDLGF = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OPPROGDLG_DEFAULT: _OPPROGDLGF = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OPPROGDLG_ENABLEPAUSE: _OPPROGDLGF = 128i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OPPROGDLG_ALLOWUNDO: _OPPROGDLGF = 256i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OPPROGDLG_DONTDISPLAYSOURCEPATH: _OPPROGDLGF = 512i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OPPROGDLG_DONTDISPLAYDESTPATH: _OPPROGDLGF = 1024i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OPPROGDLG_NOMULTIDAYESTIMATES: _OPPROGDLGF = 2048i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const OPPROGDLG_DONTDISPLAYLOCATIONS: _OPPROGDLGF = 4096i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type _PDMODE = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PDM_DEFAULT: _PDMODE = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PDM_RUN: _PDMODE = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PDM_PREFLIGHT: _PDMODE = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PDM_UNDOING: _PDMODE = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PDM_ERRORSBLOCKING: _PDMODE = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const PDM_INDETERMINATE: _PDMODE = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type _SHCONTF = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCONTF_CHECKING_FOR_CHILDREN: _SHCONTF = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCONTF_FOLDERS: _SHCONTF = 32i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCONTF_NONFOLDERS: _SHCONTF = 64i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCONTF_INCLUDEHIDDEN: _SHCONTF = 128i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCONTF_INIT_ON_FIRST_NEXT: _SHCONTF = 256i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCONTF_NETPRINTERSRCH: _SHCONTF = 512i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCONTF_SHAREABLE: _SHCONTF = 1024i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCONTF_STORAGE: _SHCONTF = 2048i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCONTF_NAVIGATION_ENUM: _SHCONTF = 4096i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCONTF_FASTITEMS: _SHCONTF = 8192i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCONTF_FLATLIST: _SHCONTF = 16384i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCONTF_ENABLE_ASYNC: _SHCONTF = 32768i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SHCONTF_INCLUDESUPERHIDDEN: _SHCONTF = 65536i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type _SICHINTF = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SICHINT_DISPLAY: _SICHINTF = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SICHINT_ALLFIELDS: _SICHINTF = -2147483648i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SICHINT_CANONICAL: _SICHINTF = 268435456i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SICHINT_TEST_FILESYSPATH_IF_NOT_EQUAL: _SICHINTF = 536870912i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type _SPBEGINF = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SPBEGINF_NORMAL: _SPBEGINF = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SPBEGINF_AUTOTIME: _SPBEGINF = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SPBEGINF_NOPROGRESSBAR: _SPBEGINF = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SPBEGINF_MARQUEEPROGRESS: _SPBEGINF = 32i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SPBEGINF_NOCANCELBUTTON: _SPBEGINF = 64i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type _SPINITF = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SPINITF_NORMAL: _SPINITF = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SPINITF_MODAL: _SPINITF = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SPINITF_NOMINIMIZE: _SPINITF = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type _SV3CVW3_FLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SV3CVW3_DEFAULT: _SV3CVW3_FLAGS = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SV3CVW3_NONINTERACTIVE: _SV3CVW3_FLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SV3CVW3_FORCEVIEWMODE: _SV3CVW3_FLAGS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SV3CVW3_FORCEFOLDERFLAGS: _SV3CVW3_FLAGS = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type _SVGIO = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SVGIO_BACKGROUND: _SVGIO = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SVGIO_SELECTION: _SVGIO = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SVGIO_ALLVIEW: _SVGIO = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SVGIO_CHECKED: _SVGIO = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SVGIO_TYPE_MASK: _SVGIO = 15i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SVGIO_FLAG_VIEWORDER: _SVGIO = -2147483648i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type _SVSIF = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SVSI_DESELECT: _SVSIF = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SVSI_SELECT: _SVSIF = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SVSI_EDIT: _SVSIF = 3i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SVSI_DESELECTOTHERS: _SVSIF = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SVSI_ENSUREVISIBLE: _SVSIF = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SVSI_FOCUSED: _SVSIF = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SVSI_TRANSLATEPT: _SVSIF = 32i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SVSI_SELECTIONMARK: _SVSIF = 64i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SVSI_POSITIONITEM: _SVSIF = 128i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SVSI_CHECK: _SVSIF = 256i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SVSI_CHECK2: _SVSIF = 512i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SVSI_KEYBOARDSELECT: _SVSIF = 1025i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const SVSI_NOTAKEFOCUS: _SVSIF = 1073741824i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type _TRANSFER_ADVISE_STATE = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const TS_NONE: _TRANSFER_ADVISE_STATE = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const TS_PERFORMING: _TRANSFER_ADVISE_STATE = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const TS_PREPARING: _TRANSFER_ADVISE_STATE = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const TS_INDETERMINATE: _TRANSFER_ADVISE_STATE = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type _TRANSFER_SOURCE_FLAGS = i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const TSF_NORMAL: _TRANSFER_SOURCE_FLAGS = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const TSF_FAIL_EXIST: _TRANSFER_SOURCE_FLAGS = 0i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const TSF_RENAME_EXIST: _TRANSFER_SOURCE_FLAGS = 1i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const TSF_OVERWRITE_EXIST: _TRANSFER_SOURCE_FLAGS = 2i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const TSF_ALLOW_DECRYPTION: _TRANSFER_SOURCE_FLAGS = 4i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const TSF_NO_SECURITY: _TRANSFER_SOURCE_FLAGS = 8i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const TSF_COPY_CREATION_TIME: _TRANSFER_SOURCE_FLAGS = 16i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const TSF_COPY_WRITE_TIME: _TRANSFER_SOURCE_FLAGS = 32i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const TSF_USE_FULL_ACCESS: _TRANSFER_SOURCE_FLAGS = 64i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const TSF_DELETE_RECYCLE_IF_POSSIBLE: _TRANSFER_SOURCE_FLAGS = 128i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const TSF_COPY_HARD_LINK: _TRANSFER_SOURCE_FLAGS = 256i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const TSF_COPY_LOCALIZED_NAME: _TRANSFER_SOURCE_FLAGS = 512i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const TSF_MOVE_AS_COPY_DELETE: _TRANSFER_SOURCE_FLAGS = 1024i32;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub const TSF_SUSPEND_SHELLEVENTS: _TRANSFER_SOURCE_FLAGS = 2048i32;
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct AASHELLMENUFILENAME {
pub cbTotal: i16,
pub rgbReserved: [u8; 12],
pub szFileName: [u16; 1],
}
impl ::core::marker::Copy for AASHELLMENUFILENAME {}
impl ::core::clone::Clone for AASHELLMENUFILENAME {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct AASHELLMENUITEM {
pub lpReserved1: *mut ::core::ffi::c_void,
pub iReserved: i32,
pub uiReserved: u32,
pub lpName: *mut AASHELLMENUFILENAME,
pub psz: ::windows_sys::core::PWSTR,
}
impl ::core::marker::Copy for AASHELLMENUITEM {}
impl ::core::clone::Clone for AASHELLMENUITEM {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"]
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(feature = "Win32_Foundation")]
pub struct APPBARDATA {
pub cbSize: u32,
pub hWnd: super::super::Foundation::HWND,
pub uCallbackMessage: u32,
pub uEdge: u32,
pub rc: super::super::Foundation::RECT,
pub lParam: super::super::Foundation::LPARAM,
}
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(feature = "Win32_Foundation")]
impl ::core::marker::Copy for APPBARDATA {}
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(feature = "Win32_Foundation")]
impl ::core::clone::Clone for APPBARDATA {
fn clone(&self) -> Self {
*self
}
}
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"]
#[cfg(target_arch = "x86")]
#[cfg(feature = "Win32_Foundation")]
pub struct APPBARDATA {
pub cbSize: u32,
pub hWnd: super::super::Foundation::HWND,
pub uCallbackMessage: u32,
pub uEdge: u32,
pub rc: super::super::Foundation::RECT,
pub lParam: super::super::Foundation::LPARAM,
}
#[cfg(target_arch = "x86")]
#[cfg(feature = "Win32_Foundation")]
impl ::core::marker::Copy for APPBARDATA {}
#[cfg(target_arch = "x86")]
#[cfg(feature = "Win32_Foundation")]
impl ::core::clone::Clone for APPBARDATA {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct APPCATEGORYINFO {
pub Locale: u32,
pub pszDescription: ::windows_sys::core::PWSTR,
pub AppCategoryId: ::windows_sys::core::GUID,
}
impl ::core::marker::Copy for APPCATEGORYINFO {}
impl ::core::clone::Clone for APPCATEGORYINFO {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct APPCATEGORYINFOLIST {
pub cCategory: u32,
pub pCategoryInfo: *mut APPCATEGORYINFO,
}
impl ::core::marker::Copy for APPCATEGORYINFOLIST {}
impl ::core::clone::Clone for APPCATEGORYINFOLIST {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct APPINFODATA {
pub cbSize: u32,
pub dwMask: u32,
pub pszDisplayName: ::windows_sys::core::PWSTR,
pub pszVersion: ::windows_sys::core::PWSTR,
pub pszPublisher: ::windows_sys::core::PWSTR,
pub pszProductID: ::windows_sys::core::PWSTR,
pub pszRegisteredOwner: ::windows_sys::core::PWSTR,
pub pszRegisteredCompany: ::windows_sys::core::PWSTR,
pub pszLanguage: ::windows_sys::core::PWSTR,
pub pszSupportUrl: ::windows_sys::core::PWSTR,
pub pszSupportTelephone: ::windows_sys::core::PWSTR,
pub pszHelpLink: ::windows_sys::core::PWSTR,
pub pszInstallLocation: ::windows_sys::core::PWSTR,
pub pszInstallSource: ::windows_sys::core::PWSTR,
pub pszInstallDate: ::windows_sys::core::PWSTR,
pub pszContact: ::windows_sys::core::PWSTR,
pub pszComments: ::windows_sys::core::PWSTR,
pub pszImage: ::windows_sys::core::PWSTR,
pub pszReadmeUrl: ::windows_sys::core::PWSTR,
pub pszUpdateInfoUrl: ::windows_sys::core::PWSTR,
}
impl ::core::marker::Copy for APPINFODATA {}
impl ::core::clone::Clone for APPINFODATA {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Registry\"`*"]
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(feature = "Win32_System_Registry")]
pub struct ASSOCIATIONELEMENT {
pub ac: ASSOCCLASS,
pub hkClass: super::super::System::Registry::HKEY,
pub pszClass: ::windows_sys::core::PCWSTR,
}
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(feature = "Win32_System_Registry")]
impl ::core::marker::Copy for ASSOCIATIONELEMENT {}
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(feature = "Win32_System_Registry")]
impl ::core::clone::Clone for ASSOCIATIONELEMENT {
fn clone(&self) -> Self {
*self
}
}
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Registry\"`*"]
#[cfg(target_arch = "x86")]
#[cfg(feature = "Win32_System_Registry")]
pub struct ASSOCIATIONELEMENT {
pub ac: ASSOCCLASS,
pub hkClass: super::super::System::Registry::HKEY,
pub pszClass: ::windows_sys::core::PCWSTR,
}
#[cfg(target_arch = "x86")]
#[cfg(feature = "Win32_System_Registry")]
impl ::core::marker::Copy for ASSOCIATIONELEMENT {}
#[cfg(target_arch = "x86")]
#[cfg(feature = "Win32_System_Registry")]
impl ::core::clone::Clone for ASSOCIATIONELEMENT {
fn clone(&self) -> Self {
*self
}
}
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"]
#[cfg(feature = "Win32_Foundation")]
pub struct AUTO_SCROLL_DATA {
pub iNextSample: i32,
pub dwLastScroll: u32,
pub bFull: super::super::Foundation::BOOL,
pub pts: [super::super::Foundation::POINT; 3],
pub dwTimes: [u32; 3],
}
#[cfg(feature = "Win32_Foundation")]
impl ::core::marker::Copy for AUTO_SCROLL_DATA {}
#[cfg(feature = "Win32_Foundation")]
impl ::core::clone::Clone for AUTO_SCROLL_DATA {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_Shell_Common\"`*"]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))]
pub struct BANDINFOSFB {
pub dwMask: u32,
pub dwStateMask: u32,
pub dwState: u32,
pub crBkgnd: super::super::Foundation::COLORREF,
pub crBtnLt: super::super::Foundation::COLORREF,
pub crBtnDk: super::super::Foundation::COLORREF,
pub wViewMode: u16,
pub wAlign: u16,
pub psf: IShellFolder,
pub pidl: *mut Common::ITEMIDLIST,
}
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))]
impl ::core::marker::Copy for BANDINFOSFB {}
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))]
impl ::core::clone::Clone for BANDINFOSFB {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct BANDSITEINFO {
pub dwMask: u32,
pub dwState: u32,
pub dwStyle: u32,
}
impl ::core::marker::Copy for BANDSITEINFO {}
impl ::core::clone::Clone for BANDSITEINFO {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct BANNER_NOTIFICATION {
pub event: BANNER_NOTIFICATION_EVENT,
pub providerIdentity: ::windows_sys::core::PCWSTR,
pub contentId: ::windows_sys::core::PCWSTR,
}
impl ::core::marker::Copy for BANNER_NOTIFICATION {}
impl ::core::clone::Clone for BANNER_NOTIFICATION {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_UI_Shell_Common\"`*"]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common"))]
pub struct BASEBROWSERDATALH {
pub _hwnd: super::super::Foundation::HWND,
pub _ptl: ITravelLog,
pub _phlf: IHlinkFrame,
pub _pautoWB2: IWebBrowser2,
pub _pautoEDS: IExpDispSupport,
pub _pautoSS: IShellService,
pub _eSecureLockIcon: i32,
pub _bitfield: u32,
pub _uActivateState: u32,
pub _pidlViewState: *mut Common::ITEMIDLIST,
pub _pctView: super::super::System::Ole::IOleCommandTarget,
pub _pidlCur: *mut Common::ITEMIDLIST,
pub _psv: IShellView,
pub _psf: IShellFolder,
pub _hwndView: super::super::Foundation::HWND,
pub _pszTitleCur: ::windows_sys::core::PWSTR,
pub _pidlPending: *mut Common::ITEMIDLIST,
pub _psvPending: IShellView,
pub _psfPending: IShellFolder,
pub _hwndViewPending: super::super::Foundation::HWND,
pub _pszTitlePending: ::windows_sys::core::PWSTR,
pub _fIsViewMSHTML: super::super::Foundation::BOOL,
pub _fPrivacyImpacted: super::super::Foundation::BOOL,
pub _clsidView: ::windows_sys::core::GUID,
pub _clsidViewPending: ::windows_sys::core::GUID,
pub _hwndFrame: super::super::Foundation::HWND,
pub _lPhishingFilterStatus: i32,
}
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common"))]
impl ::core::marker::Copy for BASEBROWSERDATALH {}
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common"))]
impl ::core::clone::Clone for BASEBROWSERDATALH {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_UI_Shell_Common\"`*"]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common"))]
pub struct BASEBROWSERDATAXP {
pub _hwnd: super::super::Foundation::HWND,
pub _ptl: ITravelLog,
pub _phlf: IHlinkFrame,
pub _pautoWB2: IWebBrowser2,
pub _pautoEDS: IExpDispSupportXP,
pub _pautoSS: IShellService,
pub _eSecureLockIcon: i32,
pub _bitfield: u32,
pub _uActivateState: u32,
pub _pidlViewState: *mut Common::ITEMIDLIST,
pub _pctView: super::super::System::Ole::IOleCommandTarget,
pub _pidlCur: *mut Common::ITEMIDLIST,
pub _psv: IShellView,
pub _psf: IShellFolder,
pub _hwndView: super::super::Foundation::HWND,
pub _pszTitleCur: ::windows_sys::core::PWSTR,
pub _pidlPending: *mut Common::ITEMIDLIST,
pub _psvPending: IShellView,
pub _psfPending: IShellFolder,
pub _hwndViewPending: super::super::Foundation::HWND,
pub _pszTitlePending: ::windows_sys::core::PWSTR,
pub _fIsViewMSHTML: super::super::Foundation::BOOL,
pub _fPrivacyImpacted: super::super::Foundation::BOOL,
pub _clsidView: ::windows_sys::core::GUID,
pub _clsidViewPending: ::windows_sys::core::GUID,
pub _hwndFrame: super::super::Foundation::HWND,
}
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common"))]
impl ::core::marker::Copy for BASEBROWSERDATAXP {}
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common"))]
impl ::core::clone::Clone for BASEBROWSERDATAXP {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_Shell_Common\"`*"]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))]
pub struct BROWSEINFOA {
pub hwndOwner: super::super::Foundation::HWND,
pub pidlRoot: *mut Common::ITEMIDLIST,
pub pszDisplayName: ::windows_sys::core::PSTR,
pub lpszTitle: ::windows_sys::core::PCSTR,
pub ulFlags: u32,
pub lpfn: BFFCALLBACK,
pub lParam: super::super::Foundation::LPARAM,
pub iImage: i32,
}
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))]
impl ::core::marker::Copy for BROWSEINFOA {}
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))]
impl ::core::clone::Clone for BROWSEINFOA {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_Shell_Common\"`*"]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))]
pub struct BROWSEINFOW {
pub hwndOwner: super::super::Foundation::HWND,
pub pidlRoot: *mut Common::ITEMIDLIST,
pub pszDisplayName: ::windows_sys::core::PWSTR,
pub lpszTitle: ::windows_sys::core::PCWSTR,
pub ulFlags: u32,
pub lpfn: BFFCALLBACK,
pub lParam: super::super::Foundation::LPARAM,
pub iImage: i32,
}
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))]
impl ::core::marker::Copy for BROWSEINFOW {}
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))]
impl ::core::clone::Clone for BROWSEINFOW {
fn clone(&self) -> Self {
*self
}
}
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct CABINETSTATE {
pub cLength: u16,
pub nVersion: u16,
pub _bitfield: i32,
pub fMenuEnumFilter: u32,
}
impl ::core::marker::Copy for CABINETSTATE {}
impl ::core::clone::Clone for CABINETSTATE {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct CATEGORY_INFO {
pub cif: CATEGORYINFO_FLAGS,
pub wszName: [u16; 260],
}
impl ::core::marker::Copy for CATEGORY_INFO {}
impl ::core::clone::Clone for CATEGORY_INFO {
fn clone(&self) -> Self {
*self
}
}
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct CIDA {
pub cidl: u32,
pub aoffset: [u32; 1],
}
impl ::core::marker::Copy for CIDA {}
impl ::core::clone::Clone for CIDA {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"]
#[cfg(feature = "Win32_Foundation")]
pub struct CMINVOKECOMMANDINFO {
pub cbSize: u32,
pub fMask: u32,
pub hwnd: super::super::Foundation::HWND,
pub lpVerb: ::windows_sys::core::PCSTR,
pub lpParameters: ::windows_sys::core::PCSTR,
pub lpDirectory: ::windows_sys::core::PCSTR,
pub nShow: i32,
pub dwHotKey: u32,
pub hIcon: super::super::Foundation::HANDLE,
}
#[cfg(feature = "Win32_Foundation")]
impl ::core::marker::Copy for CMINVOKECOMMANDINFO {}
#[cfg(feature = "Win32_Foundation")]
impl ::core::clone::Clone for CMINVOKECOMMANDINFO {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"]
#[cfg(feature = "Win32_Foundation")]
pub struct CMINVOKECOMMANDINFOEX {
pub cbSize: u32,
pub fMask: u32,
pub hwnd: super::super::Foundation::HWND,
pub lpVerb: ::windows_sys::core::PCSTR,
pub lpParameters: ::windows_sys::core::PCSTR,
pub lpDirectory: ::windows_sys::core::PCSTR,
pub nShow: i32,
pub dwHotKey: u32,
pub hIcon: super::super::Foundation::HANDLE,
pub lpTitle: ::windows_sys::core::PCSTR,
pub lpVerbW: ::windows_sys::core::PCWSTR,
pub lpParametersW: ::windows_sys::core::PCWSTR,
pub lpDirectoryW: ::windows_sys::core::PCWSTR,
pub lpTitleW: ::windows_sys::core::PCWSTR,
pub ptInvoke: super::super::Foundation::POINT,
}
#[cfg(feature = "Win32_Foundation")]
impl ::core::marker::Copy for CMINVOKECOMMANDINFOEX {}
#[cfg(feature = "Win32_Foundation")]
impl ::core::clone::Clone for CMINVOKECOMMANDINFOEX {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"]
#[cfg(feature = "Win32_Foundation")]
pub struct CMINVOKECOMMANDINFOEX_REMOTE {
pub cbSize: u32,
pub fMask: u32,
pub hwnd: super::super::Foundation::HWND,
pub lpVerbString: ::windows_sys::core::PCSTR,
pub lpParameters: ::windows_sys::core::PCSTR,
pub lpDirectory: ::windows_sys::core::PCSTR,
pub nShow: i32,
pub dwHotKey: u32,
pub lpTitle: ::windows_sys::core::PCSTR,
pub lpVerbWString: ::windows_sys::core::PCWSTR,
pub lpParametersW: ::windows_sys::core::PCWSTR,
pub lpDirectoryW: ::windows_sys::core::PCWSTR,
pub lpTitleW: ::windows_sys::core::PCWSTR,
pub ptInvoke: super::super::Foundation::POINT,
pub lpVerbInt: u32,
pub lpVerbWInt: u32,
}
#[cfg(feature = "Win32_Foundation")]
impl ::core::marker::Copy for CMINVOKECOMMANDINFOEX_REMOTE {}
#[cfg(feature = "Win32_Foundation")]
impl ::core::clone::Clone for CMINVOKECOMMANDINFOEX_REMOTE {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct CM_COLUMNINFO {
pub cbSize: u32,
pub dwMask: u32,
pub dwState: u32,
pub uWidth: u32,
pub uDefaultWidth: u32,
pub uIdealWidth: u32,
pub wszName: [u16; 80],
}
impl ::core::marker::Copy for CM_COLUMNINFO {}
impl ::core::clone::Clone for CM_COLUMNINFO {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct CONFIRM_CONFLICT_ITEM {
pub pShellItem: IShellItem2,
pub pszOriginalName: ::windows_sys::core::PWSTR,
pub pszAlternateName: ::windows_sys::core::PWSTR,
pub pszLocationShort: ::windows_sys::core::PWSTR,
pub pszLocationFull: ::windows_sys::core::PWSTR,
pub nType: SYNCMGR_CONFLICT_ITEM_TYPE,
}
impl ::core::marker::Copy for CONFIRM_CONFLICT_ITEM {}
impl ::core::clone::Clone for CONFIRM_CONFLICT_ITEM {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct CONFIRM_CONFLICT_RESULT_INFO {
pub pszNewName: ::windows_sys::core::PWSTR,
pub iItemIndex: u32,
}
impl ::core::marker::Copy for CONFIRM_CONFLICT_RESULT_INFO {}
impl ::core::clone::Clone for CONFIRM_CONFLICT_RESULT_INFO {
fn clone(&self) -> Self {
*self
}
}
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct CPLINFO {
pub idIcon: i32,
pub idName: i32,
pub idInfo: i32,
pub lData: isize,
}
impl ::core::marker::Copy for CPLINFO {}
impl ::core::clone::Clone for CPLINFO {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION {
pub ulAuthenticationPackage: u32,
pub clsidCredentialProvider: ::windows_sys::core::GUID,
pub cbSerialization: u32,
pub rgbSerialization: *mut u8,
}
impl ::core::marker::Copy for CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION {}
impl ::core::clone::Clone for CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct CREDENTIAL_PROVIDER_FIELD_DESCRIPTOR {
pub dwFieldID: u32,
pub cpft: CREDENTIAL_PROVIDER_FIELD_TYPE,
pub pszLabel: ::windows_sys::core::PWSTR,
pub guidFieldType: ::windows_sys::core::GUID,
}
impl ::core::marker::Copy for CREDENTIAL_PROVIDER_FIELD_DESCRIPTOR {}
impl ::core::clone::Clone for CREDENTIAL_PROVIDER_FIELD_DESCRIPTOR {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Ole\"`, `\"Win32_UI_Shell_Common\"`*"]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common"))]
pub struct CSFV {
pub cbSize: u32,
pub pshf: IShellFolder,
pub psvOuter: IShellView,
pub pidl: *mut Common::ITEMIDLIST,
pub lEvents: i32,
pub pfnCallback: LPFNVIEWCALLBACK,
pub fvm: FOLDERVIEWMODE,
}
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common"))]
impl ::core::marker::Copy for CSFV {}
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole", feature = "Win32_UI_Shell_Common"))]
impl ::core::clone::Clone for CSFV {
fn clone(&self) -> Self {
*self
}
}
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct DATABLOCK_HEADER {
pub cbSize: u32,
pub dwSignature: u32,
}
impl ::core::marker::Copy for DATABLOCK_HEADER {}
impl ::core::clone::Clone for DATABLOCK_HEADER {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`, `\"Win32_UI_Shell_Common\"`*"]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry", feature = "Win32_UI_Shell_Common"))]
pub struct DEFCONTEXTMENU {
pub hwnd: super::super::Foundation::HWND,
pub pcmcb: IContextMenuCB,
pub pidlFolder: *mut Common::ITEMIDLIST,
pub psf: IShellFolder,
pub cidl: u32,
pub apidl: *mut *mut Common::ITEMIDLIST,
pub punkAssociationInfo: ::windows_sys::core::IUnknown,
pub cKeys: u32,
pub aKeys: *const super::super::System::Registry::HKEY,
}
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry", feature = "Win32_UI_Shell_Common"))]
impl ::core::marker::Copy for DEFCONTEXTMENU {}
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry", feature = "Win32_UI_Shell_Common"))]
impl ::core::clone::Clone for DEFCONTEXTMENU {
fn clone(&self) -> Self {
*self
}
}
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct DELEGATEITEMID {
pub cbSize: u16,
pub wOuter: u16,
pub cbInner: u16,
pub rgb: [u8; 1],
}
impl ::core::marker::Copy for DELEGATEITEMID {}
impl ::core::clone::Clone for DELEGATEITEMID {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"]
#[cfg(feature = "Win32_Foundation")]
pub struct DESKBANDINFO {
pub dwMask: u32,
pub ptMinSize: super::super::Foundation::POINTL,
pub ptMaxSize: super::super::Foundation::POINTL,
pub ptIntegral: super::super::Foundation::POINTL,
pub ptActual: super::super::Foundation::POINTL,
pub wszTitle: [u16; 256],
pub dwModeFlags: u32,
pub crBkgnd: super::super::Foundation::COLORREF,
}
#[cfg(feature = "Win32_Foundation")]
impl ::core::marker::Copy for DESKBANDINFO {}
#[cfg(feature = "Win32_Foundation")]
impl ::core::clone::Clone for DESKBANDINFO {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_Shell_Common\"`*"]
#[cfg(feature = "Win32_UI_Shell_Common")]
pub struct DETAILSINFO {
pub pidl: *mut Common::ITEMIDLIST,
pub fmt: i32,
pub cxChar: i32,
pub str: Common::STRRET,
pub iImage: i32,
}
#[cfg(feature = "Win32_UI_Shell_Common")]
impl ::core::marker::Copy for DETAILSINFO {}
#[cfg(feature = "Win32_UI_Shell_Common")]
impl ::core::clone::Clone for DETAILSINFO {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"]
#[cfg(feature = "Win32_Foundation")]
pub struct DFMICS {
pub cbSize: u32,
pub fMask: u32,
pub lParam: super::super::Foundation::LPARAM,
pub idCmdFirst: u32,
pub idDefMax: u32,
pub pici: *mut CMINVOKECOMMANDINFO,
pub punkSite: ::windows_sys::core::IUnknown,
}
#[cfg(feature = "Win32_Foundation")]
impl ::core::marker::Copy for DFMICS {}
#[cfg(feature = "Win32_Foundation")]
impl ::core::clone::Clone for DFMICS {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct DLLVERSIONINFO {
pub cbSize: u32,
pub dwMajorVersion: u32,
pub dwMinorVersion: u32,
pub dwBuildNumber: u32,
pub dwPlatformID: u32,
}
impl ::core::marker::Copy for DLLVERSIONINFO {}
impl ::core::clone::Clone for DLLVERSIONINFO {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct DLLVERSIONINFO2 {
pub info1: DLLVERSIONINFO,
pub dwFlags: u32,
pub ullVersion: u64,
}
impl ::core::marker::Copy for DLLVERSIONINFO2 {}
impl ::core::clone::Clone for DLLVERSIONINFO2 {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"]
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(feature = "Win32_Foundation")]
pub struct DRAGINFOA {
pub uSize: u32,
pub pt: super::super::Foundation::POINT,
pub fNC: super::super::Foundation::BOOL,
pub lpFileList: ::windows_sys::core::PSTR,
pub grfKeyState: u32,
}
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(feature = "Win32_Foundation")]
impl ::core::marker::Copy for DRAGINFOA {}
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(feature = "Win32_Foundation")]
impl ::core::clone::Clone for DRAGINFOA {
fn clone(&self) -> Self {
*self
}
}
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"]
#[cfg(target_arch = "x86")]
#[cfg(feature = "Win32_Foundation")]
pub struct DRAGINFOA {
pub uSize: u32,
pub pt: super::super::Foundation::POINT,
pub fNC: super::super::Foundation::BOOL,
pub lpFileList: ::windows_sys::core::PSTR,
pub grfKeyState: u32,
}
#[cfg(target_arch = "x86")]
#[cfg(feature = "Win32_Foundation")]
impl ::core::marker::Copy for DRAGINFOA {}
#[cfg(target_arch = "x86")]
#[cfg(feature = "Win32_Foundation")]
impl ::core::clone::Clone for DRAGINFOA {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"]
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(feature = "Win32_Foundation")]
pub struct DRAGINFOW {
pub uSize: u32,
pub pt: super::super::Foundation::POINT,
pub fNC: super::super::Foundation::BOOL,
pub lpFileList: ::windows_sys::core::PWSTR,
pub grfKeyState: u32,
}
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(feature = "Win32_Foundation")]
impl ::core::marker::Copy for DRAGINFOW {}
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(feature = "Win32_Foundation")]
impl ::core::clone::Clone for DRAGINFOW {
fn clone(&self) -> Self {
*self
}
}
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"]
#[cfg(target_arch = "x86")]
#[cfg(feature = "Win32_Foundation")]
pub struct DRAGINFOW {
pub uSize: u32,
pub pt: super::super::Foundation::POINT,
pub fNC: super::super::Foundation::BOOL,
pub lpFileList: ::windows_sys::core::PWSTR,
pub grfKeyState: u32,
}
#[cfg(target_arch = "x86")]
#[cfg(feature = "Win32_Foundation")]
impl ::core::marker::Copy for DRAGINFOW {}
#[cfg(target_arch = "x86")]
#[cfg(feature = "Win32_Foundation")]
impl ::core::clone::Clone for DRAGINFOW {
fn clone(&self) -> Self {
*self
}
}
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct DROPDESCRIPTION {
pub r#type: DROPIMAGETYPE,
pub szMessage: [u16; 260],
pub szInsert: [u16; 260],
}
impl ::core::marker::Copy for DROPDESCRIPTION {}
impl ::core::clone::Clone for DROPDESCRIPTION {
fn clone(&self) -> Self {
*self
}
}
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"]
#[cfg(feature = "Win32_Foundation")]
pub struct DROPFILES {
pub pFiles: u32,
pub pt: super::super::Foundation::POINT,
pub fNC: super::super::Foundation::BOOL,
pub fWide: super::super::Foundation::BOOL,
}
#[cfg(feature = "Win32_Foundation")]
impl ::core::marker::Copy for DROPFILES {}
#[cfg(feature = "Win32_Foundation")]
impl ::core::clone::Clone for DROPFILES {
fn clone(&self) -> Self {
*self
}
}
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct EXP_DARWIN_LINK {
pub dbh: DATABLOCK_HEADER,
pub szDarwinID: [u8; 260],
pub szwDarwinID: [u16; 260],
}
impl ::core::marker::Copy for EXP_DARWIN_LINK {}
impl ::core::clone::Clone for EXP_DARWIN_LINK {
fn clone(&self) -> Self {
*self
}
}
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct EXP_PROPERTYSTORAGE {
pub cbSize: u32,
pub dwSignature: u32,
pub abPropertyStorage: [u8; 1],
}
impl ::core::marker::Copy for EXP_PROPERTYSTORAGE {}
impl ::core::clone::Clone for EXP_PROPERTYSTORAGE {
fn clone(&self) -> Self {
*self
}
}
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct EXP_SPECIAL_FOLDER {
pub cbSize: u32,
pub dwSignature: u32,
pub idSpecialFolder: u32,
pub cbOffset: u32,
}
impl ::core::marker::Copy for EXP_SPECIAL_FOLDER {}
impl ::core::clone::Clone for EXP_SPECIAL_FOLDER {
fn clone(&self) -> Self {
*self
}
}
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct EXP_SZ_LINK {
pub cbSize: u32,
pub dwSignature: u32,
pub szTarget: [u8; 260],
pub swzTarget: [u16; 260],
}
impl ::core::marker::Copy for EXP_SZ_LINK {}
impl ::core::clone::Clone for EXP_SZ_LINK {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct EXTRASEARCH {
pub guidSearch: ::windows_sys::core::GUID,
pub wszFriendlyName: [u16; 80],
pub wszUrl: [u16; 2084],
}
impl ::core::marker::Copy for EXTRASEARCH {}
impl ::core::clone::Clone for EXTRASEARCH {
fn clone(&self) -> Self {
*self
}
}
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"]
#[cfg(feature = "Win32_Foundation")]
pub struct FILEDESCRIPTORA {
pub dwFlags: u32,
pub clsid: ::windows_sys::core::GUID,
pub sizel: super::super::Foundation::SIZE,
pub pointl: super::super::Foundation::POINTL,
pub dwFileAttributes: u32,
pub ftCreationTime: super::super::Foundation::FILETIME,
pub ftLastAccessTime: super::super::Foundation::FILETIME,
pub ftLastWriteTime: super::super::Foundation::FILETIME,
pub nFileSizeHigh: u32,
pub nFileSizeLow: u32,
pub cFileName: [u8; 260],
}
#[cfg(feature = "Win32_Foundation")]
impl ::core::marker::Copy for FILEDESCRIPTORA {}
#[cfg(feature = "Win32_Foundation")]
impl ::core::clone::Clone for FILEDESCRIPTORA {
fn clone(&self) -> Self {
*self
}
}
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"]
#[cfg(feature = "Win32_Foundation")]
pub struct FILEDESCRIPTORW {
pub dwFlags: u32,
pub clsid: ::windows_sys::core::GUID,
pub sizel: super::super::Foundation::SIZE,
pub pointl: super::super::Foundation::POINTL,
pub dwFileAttributes: u32,
pub ftCreationTime: super::super::Foundation::FILETIME,
pub ftLastAccessTime: super::super::Foundation::FILETIME,
pub ftLastWriteTime: super::super::Foundation::FILETIME,
pub nFileSizeHigh: u32,
pub nFileSizeLow: u32,
pub cFileName: [u16; 260],
}
#[cfg(feature = "Win32_Foundation")]
impl ::core::marker::Copy for FILEDESCRIPTORW {}
#[cfg(feature = "Win32_Foundation")]
impl ::core::clone::Clone for FILEDESCRIPTORW {
fn clone(&self) -> Self {
*self
}
}
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"]
#[cfg(feature = "Win32_Foundation")]
pub struct FILEGROUPDESCRIPTORA {
pub cItems: u32,
pub fgd: [FILEDESCRIPTORA; 1],
}
#[cfg(feature = "Win32_Foundation")]
impl ::core::marker::Copy for FILEGROUPDESCRIPTORA {}
#[cfg(feature = "Win32_Foundation")]
impl ::core::clone::Clone for FILEGROUPDESCRIPTORA {
fn clone(&self) -> Self {
*self
}
}
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"]
#[cfg(feature = "Win32_Foundation")]
pub struct FILEGROUPDESCRIPTORW {
pub cItems: u32,
pub fgd: [FILEDESCRIPTORW; 1],
}
#[cfg(feature = "Win32_Foundation")]
impl ::core::marker::Copy for FILEGROUPDESCRIPTORW {}
#[cfg(feature = "Win32_Foundation")]
impl ::core::clone::Clone for FILEGROUPDESCRIPTORW {
fn clone(&self) -> Self {
*self
}
}
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct FILE_ATTRIBUTES_ARRAY {
pub cItems: u32,
pub dwSumFileAttributes: u32,
pub dwProductFileAttributes: u32,
pub rgdwFileAttributes: [u32; 1],
}
impl ::core::marker::Copy for FILE_ATTRIBUTES_ARRAY {}
impl ::core::clone::Clone for FILE_ATTRIBUTES_ARRAY {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct FOLDERSETDATA {
pub _fs: FOLDERSETTINGS,
pub _vidRestore: ::windows_sys::core::GUID,
pub _dwViewPriority: u32,
}
impl ::core::marker::Copy for FOLDERSETDATA {}
impl ::core::clone::Clone for FOLDERSETDATA {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct FOLDERSETTINGS {
pub ViewMode: u32,
pub fFlags: u32,
}
impl ::core::marker::Copy for FOLDERSETTINGS {}
impl ::core::clone::Clone for FOLDERSETTINGS {
fn clone(&self) -> Self {
*self
}
}
pub type HDROP = isize;
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"]
#[cfg(feature = "Win32_Foundation")]
pub struct HELPINFO {
pub cbSize: u32,
pub iContextType: HELP_INFO_TYPE,
pub iCtrlId: i32,
pub hItemHandle: super::super::Foundation::HANDLE,
pub dwContextId: usize,
pub MousePos: super::super::Foundation::POINT,
}
#[cfg(feature = "Win32_Foundation")]
impl ::core::marker::Copy for HELPINFO {}
#[cfg(feature = "Win32_Foundation")]
impl ::core::clone::Clone for HELPINFO {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct HELPWININFOA {
pub wStructSize: i32,
pub x: i32,
pub y: i32,
pub dx: i32,
pub dy: i32,
pub wMax: i32,
pub rgchMember: [u8; 2],
}
impl ::core::marker::Copy for HELPWININFOA {}
impl ::core::clone::Clone for HELPWININFOA {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct HELPWININFOW {
pub wStructSize: i32,
pub x: i32,
pub y: i32,
pub dx: i32,
pub dy: i32,
pub wMax: i32,
pub rgchMember: [u16; 2],
}
impl ::core::marker::Copy for HELPWININFOW {}
impl ::core::clone::Clone for HELPWININFOW {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"]
#[cfg(feature = "Win32_Foundation")]
pub struct HLBWINFO {
pub cbSize: u32,
pub grfHLBWIF: u32,
pub rcFramePos: super::super::Foundation::RECT,
pub rcDocPos: super::super::Foundation::RECT,
pub hltbinfo: HLTBINFO,
}
#[cfg(feature = "Win32_Foundation")]
impl ::core::marker::Copy for HLBWINFO {}
#[cfg(feature = "Win32_Foundation")]
impl ::core::clone::Clone for HLBWINFO {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct HLITEM {
pub uHLID: u32,
pub pwzFriendlyName: ::windows_sys::core::PWSTR,
}
impl ::core::marker::Copy for HLITEM {}
impl ::core::clone::Clone for HLITEM {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"]
#[cfg(feature = "Win32_Foundation")]
pub struct HLTBINFO {
pub uDockType: u32,
pub rcTbPos: super::super::Foundation::RECT,
}
#[cfg(feature = "Win32_Foundation")]
impl ::core::marker::Copy for HLTBINFO {}
#[cfg(feature = "Win32_Foundation")]
impl ::core::clone::Clone for HLTBINFO {
fn clone(&self) -> Self {
*self
}
}
pub type HPSXA = isize;
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct ITEMSPACING {
pub cxSmall: i32,
pub cySmall: i32,
pub cxLarge: i32,
pub cyLarge: i32,
}
impl ::core::marker::Copy for ITEMSPACING {}
impl ::core::clone::Clone for ITEMSPACING {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct KNOWNFOLDER_DEFINITION {
pub category: KF_CATEGORY,
pub pszName: ::windows_sys::core::PWSTR,
pub pszDescription: ::windows_sys::core::PWSTR,
pub fidParent: ::windows_sys::core::GUID,
pub pszRelativePath: ::windows_sys::core::PWSTR,
pub pszParsingName: ::windows_sys::core::PWSTR,
pub pszTooltip: ::windows_sys::core::PWSTR,
pub pszLocalizedName: ::windows_sys::core::PWSTR,
pub pszIcon: ::windows_sys::core::PWSTR,
pub pszSecurity: ::windows_sys::core::PWSTR,
pub dwAttributes: u32,
pub kfdFlags: u32,
pub ftidType: ::windows_sys::core::GUID,
}
impl ::core::marker::Copy for KNOWNFOLDER_DEFINITION {}
impl ::core::clone::Clone for KNOWNFOLDER_DEFINITION {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct MULTIKEYHELPA {
pub mkSize: u32,
pub mkKeylist: u8,
pub szKeyphrase: [u8; 1],
}
impl ::core::marker::Copy for MULTIKEYHELPA {}
impl ::core::clone::Clone for MULTIKEYHELPA {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct MULTIKEYHELPW {
pub mkSize: u32,
pub mkKeylist: u16,
pub szKeyphrase: [u16; 1],
}
impl ::core::marker::Copy for MULTIKEYHELPW {}
impl ::core::clone::Clone for MULTIKEYHELPW {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct NC_ADDRESS {
pub pAddrInfo: *mut NC_ADDRESS_0,
pub PortNumber: u16,
pub PrefixLength: u8,
}
impl ::core::marker::Copy for NC_ADDRESS {}
impl ::core::clone::Clone for NC_ADDRESS {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
pub struct NC_ADDRESS_0(pub u8);
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_WindowsAndMessaging\"`*"]
#[cfg(feature = "Win32_UI_WindowsAndMessaging")]
pub struct NEWCPLINFOA {
pub dwSize: u32,
pub dwFlags: u32,
pub dwHelpContext: u32,
pub lData: isize,
pub hIcon: super::WindowsAndMessaging::HICON,
pub szName: [u8; 32],
pub szInfo: [u8; 64],
pub szHelpFile: [u8; 128],
}
#[cfg(feature = "Win32_UI_WindowsAndMessaging")]
impl ::core::marker::Copy for NEWCPLINFOA {}
#[cfg(feature = "Win32_UI_WindowsAndMessaging")]
impl ::core::clone::Clone for NEWCPLINFOA {
fn clone(&self) -> Self {
*self
}
}
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_WindowsAndMessaging\"`*"]
#[cfg(feature = "Win32_UI_WindowsAndMessaging")]
pub struct NEWCPLINFOW {
pub dwSize: u32,
pub dwFlags: u32,
pub dwHelpContext: u32,
pub lData: isize,
pub hIcon: super::WindowsAndMessaging::HICON,
pub szName: [u16; 32],
pub szInfo: [u16; 64],
pub szHelpFile: [u16; 128],
}
#[cfg(feature = "Win32_UI_WindowsAndMessaging")]
impl ::core::marker::Copy for NEWCPLINFOW {}
#[cfg(feature = "Win32_UI_WindowsAndMessaging")]
impl ::core::clone::Clone for NEWCPLINFOW {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_WindowsAndMessaging\"`*"]
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))]
pub struct NOTIFYICONDATAA {
pub cbSize: u32,
pub hWnd: super::super::Foundation::HWND,
pub uID: u32,
pub uFlags: NOTIFY_ICON_DATA_FLAGS,
pub uCallbackMessage: u32,
pub hIcon: super::WindowsAndMessaging::HICON,
pub szTip: [u8; 128],
pub dwState: NOTIFY_ICON_STATE,
pub dwStateMask: u32,
pub szInfo: [u8; 256],
pub Anonymous: NOTIFYICONDATAA_0,
pub szInfoTitle: [u8; 64],
pub dwInfoFlags: NOTIFY_ICON_INFOTIP_FLAGS,
pub guidItem: ::windows_sys::core::GUID,
pub hBalloonIcon: super::WindowsAndMessaging::HICON,
}
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))]
impl ::core::marker::Copy for NOTIFYICONDATAA {}
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))]
impl ::core::clone::Clone for NOTIFYICONDATAA {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_WindowsAndMessaging\"`*"]
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))]
pub union NOTIFYICONDATAA_0 {
pub uTimeout: u32,
pub uVersion: u32,
}
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))]
impl ::core::marker::Copy for NOTIFYICONDATAA_0 {}
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))]
impl ::core::clone::Clone for NOTIFYICONDATAA_0 {
fn clone(&self) -> Self {
*self
}
}
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_WindowsAndMessaging\"`*"]
#[cfg(target_arch = "x86")]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))]
pub struct NOTIFYICONDATAA {
pub cbSize: u32,
pub hWnd: super::super::Foundation::HWND,
pub uID: u32,
pub uFlags: NOTIFY_ICON_DATA_FLAGS,
pub uCallbackMessage: u32,
pub hIcon: super::WindowsAndMessaging::HICON,
pub szTip: [u8; 128],
pub dwState: NOTIFY_ICON_STATE,
pub dwStateMask: u32,
pub szInfo: [u8; 256],
pub Anonymous: NOTIFYICONDATAA_0,
pub szInfoTitle: [u8; 64],
pub dwInfoFlags: NOTIFY_ICON_INFOTIP_FLAGS,
pub guidItem: ::windows_sys::core::GUID,
pub hBalloonIcon: super::WindowsAndMessaging::HICON,
}
#[cfg(target_arch = "x86")]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))]
impl ::core::marker::Copy for NOTIFYICONDATAA {}
#[cfg(target_arch = "x86")]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))]
impl ::core::clone::Clone for NOTIFYICONDATAA {
fn clone(&self) -> Self {
*self
}
}
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_WindowsAndMessaging\"`*"]
#[cfg(target_arch = "x86")]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))]
pub union NOTIFYICONDATAA_0 {
pub uTimeout: u32,
pub uVersion: u32,
}
#[cfg(target_arch = "x86")]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))]
impl ::core::marker::Copy for NOTIFYICONDATAA_0 {}
#[cfg(target_arch = "x86")]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))]
impl ::core::clone::Clone for NOTIFYICONDATAA_0 {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_WindowsAndMessaging\"`*"]
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))]
pub struct NOTIFYICONDATAW {
pub cbSize: u32,
pub hWnd: super::super::Foundation::HWND,
pub uID: u32,
pub uFlags: NOTIFY_ICON_DATA_FLAGS,
pub uCallbackMessage: u32,
pub hIcon: super::WindowsAndMessaging::HICON,
pub szTip: [u16; 128],
pub dwState: NOTIFY_ICON_STATE,
pub dwStateMask: u32,
pub szInfo: [u16; 256],
pub Anonymous: NOTIFYICONDATAW_0,
pub szInfoTitle: [u16; 64],
pub dwInfoFlags: NOTIFY_ICON_INFOTIP_FLAGS,
pub guidItem: ::windows_sys::core::GUID,
pub hBalloonIcon: super::WindowsAndMessaging::HICON,
}
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))]
impl ::core::marker::Copy for NOTIFYICONDATAW {}
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))]
impl ::core::clone::Clone for NOTIFYICONDATAW {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_WindowsAndMessaging\"`*"]
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))]
pub union NOTIFYICONDATAW_0 {
pub uTimeout: u32,
pub uVersion: u32,
}
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))]
impl ::core::marker::Copy for NOTIFYICONDATAW_0 {}
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))]
impl ::core::clone::Clone for NOTIFYICONDATAW_0 {
fn clone(&self) -> Self {
*self
}
}
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_WindowsAndMessaging\"`*"]
#[cfg(target_arch = "x86")]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))]
pub struct NOTIFYICONDATAW {
pub cbSize: u32,
pub hWnd: super::super::Foundation::HWND,
pub uID: u32,
pub uFlags: NOTIFY_ICON_DATA_FLAGS,
pub uCallbackMessage: u32,
pub hIcon: super::WindowsAndMessaging::HICON,
pub szTip: [u16; 128],
pub dwState: NOTIFY_ICON_STATE,
pub dwStateMask: u32,
pub szInfo: [u16; 256],
pub Anonymous: NOTIFYICONDATAW_0,
pub szInfoTitle: [u16; 64],
pub dwInfoFlags: NOTIFY_ICON_INFOTIP_FLAGS,
pub guidItem: ::windows_sys::core::GUID,
pub hBalloonIcon: super::WindowsAndMessaging::HICON,
}
#[cfg(target_arch = "x86")]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))]
impl ::core::marker::Copy for NOTIFYICONDATAW {}
#[cfg(target_arch = "x86")]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))]
impl ::core::clone::Clone for NOTIFYICONDATAW {
fn clone(&self) -> Self {
*self
}
}
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_WindowsAndMessaging\"`*"]
#[cfg(target_arch = "x86")]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))]
pub union NOTIFYICONDATAW_0 {
pub uTimeout: u32,
pub uVersion: u32,
}
#[cfg(target_arch = "x86")]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))]
impl ::core::marker::Copy for NOTIFYICONDATAW_0 {}
#[cfg(target_arch = "x86")]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))]
impl ::core::clone::Clone for NOTIFYICONDATAW_0 {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"]
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(feature = "Win32_Foundation")]
pub struct NOTIFYICONIDENTIFIER {
pub cbSize: u32,
pub hWnd: super::super::Foundation::HWND,
pub uID: u32,
pub guidItem: ::windows_sys::core::GUID,
}
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(feature = "Win32_Foundation")]
impl ::core::marker::Copy for NOTIFYICONIDENTIFIER {}
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(feature = "Win32_Foundation")]
impl ::core::clone::Clone for NOTIFYICONIDENTIFIER {
fn clone(&self) -> Self {
*self
}
}
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"]
#[cfg(target_arch = "x86")]
#[cfg(feature = "Win32_Foundation")]
pub struct NOTIFYICONIDENTIFIER {
pub cbSize: u32,
pub hWnd: super::super::Foundation::HWND,
pub uID: u32,
pub guidItem: ::windows_sys::core::GUID,
}
#[cfg(target_arch = "x86")]
#[cfg(feature = "Win32_Foundation")]
impl ::core::marker::Copy for NOTIFYICONIDENTIFIER {}
#[cfg(target_arch = "x86")]
#[cfg(feature = "Win32_Foundation")]
impl ::core::clone::Clone for NOTIFYICONIDENTIFIER {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_NetworkManagement_WNet\"`*"]
#[cfg(feature = "Win32_NetworkManagement_WNet")]
pub struct NRESARRAY {
pub cItems: u32,
pub nr: [super::super::NetworkManagement::WNet::NETRESOURCEA; 1],
}
#[cfg(feature = "Win32_NetworkManagement_WNet")]
impl ::core::marker::Copy for NRESARRAY {}
#[cfg(feature = "Win32_NetworkManagement_WNet")]
impl ::core::clone::Clone for NRESARRAY {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_Controls\"`*"]
#[cfg(feature = "Win32_UI_Controls")]
pub struct NSTCCUSTOMDRAW {
pub psi: IShellItem,
pub uItemState: u32,
pub nstcis: u32,
pub pszText: ::windows_sys::core::PCWSTR,
pub iImage: i32,
pub himl: super::Controls::HIMAGELIST,
pub iLevel: i32,
pub iIndent: i32,
}
#[cfg(feature = "Win32_UI_Controls")]
impl ::core::marker::Copy for NSTCCUSTOMDRAW {}
#[cfg(feature = "Win32_UI_Controls")]
impl ::core::clone::Clone for NSTCCUSTOMDRAW {
fn clone(&self) -> Self {
*self
}
}
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Console\"`*"]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Console"))]
pub struct NT_CONSOLE_PROPS {
pub dbh: DATABLOCK_HEADER,
pub wFillAttribute: u16,
pub wPopupFillAttribute: u16,
pub dwScreenBufferSize: super::super::System::Console::COORD,
pub dwWindowSize: super::super::System::Console::COORD,
pub dwWindowOrigin: super::super::System::Console::COORD,
pub nFont: u32,
pub nInputBufferSize: u32,
pub dwFontSize: super::super::System::Console::COORD,
pub uFontFamily: u32,
pub uFontWeight: u32,
pub FaceName: [u16; 32],
pub uCursorSize: u32,
pub bFullScreen: super::super::Foundation::BOOL,
pub bQuickEdit: super::super::Foundation::BOOL,
pub bInsertMode: super::super::Foundation::BOOL,
pub bAutoPosition: super::super::Foundation::BOOL,
pub uHistoryBufferSize: u32,
pub uNumberOfHistoryBuffers: u32,
pub bHistoryNoDup: super::super::Foundation::BOOL,
pub ColorTable: [super::super::Foundation::COLORREF; 16],
}
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Console"))]
impl ::core::marker::Copy for NT_CONSOLE_PROPS {}
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Console"))]
impl ::core::clone::Clone for NT_CONSOLE_PROPS {
fn clone(&self) -> Self {
*self
}
}
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct NT_FE_CONSOLE_PROPS {
pub dbh: DATABLOCK_HEADER,
pub uCodePage: u32,
}
impl ::core::marker::Copy for NT_FE_CONSOLE_PROPS {}
impl ::core::clone::Clone for NT_FE_CONSOLE_PROPS {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct OPENASINFO {
pub pcszFile: ::windows_sys::core::PCWSTR,
pub pcszClass: ::windows_sys::core::PCWSTR,
pub oaifInFlags: OPEN_AS_INFO_FLAGS,
}
impl ::core::marker::Copy for OPENASINFO {}
impl ::core::clone::Clone for OPENASINFO {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"]
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(feature = "Win32_Foundation")]
pub struct OPEN_PRINTER_PROPS_INFOA {
pub dwSize: u32,
pub pszSheetName: ::windows_sys::core::PSTR,
pub uSheetIndex: u32,
pub dwFlags: u32,
pub bModal: super::super::Foundation::BOOL,
}
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(feature = "Win32_Foundation")]
impl ::core::marker::Copy for OPEN_PRINTER_PROPS_INFOA {}
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(feature = "Win32_Foundation")]
impl ::core::clone::Clone for OPEN_PRINTER_PROPS_INFOA {
fn clone(&self) -> Self {
*self
}
}
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"]
#[cfg(target_arch = "x86")]
#[cfg(feature = "Win32_Foundation")]
pub struct OPEN_PRINTER_PROPS_INFOA {
pub dwSize: u32,
pub pszSheetName: ::windows_sys::core::PSTR,
pub uSheetIndex: u32,
pub dwFlags: u32,
pub bModal: super::super::Foundation::BOOL,
}
#[cfg(target_arch = "x86")]
#[cfg(feature = "Win32_Foundation")]
impl ::core::marker::Copy for OPEN_PRINTER_PROPS_INFOA {}
#[cfg(target_arch = "x86")]
#[cfg(feature = "Win32_Foundation")]
impl ::core::clone::Clone for OPEN_PRINTER_PROPS_INFOA {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"]
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(feature = "Win32_Foundation")]
pub struct OPEN_PRINTER_PROPS_INFOW {
pub dwSize: u32,
pub pszSheetName: ::windows_sys::core::PWSTR,
pub uSheetIndex: u32,
pub dwFlags: u32,
pub bModal: super::super::Foundation::BOOL,
}
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(feature = "Win32_Foundation")]
impl ::core::marker::Copy for OPEN_PRINTER_PROPS_INFOW {}
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(feature = "Win32_Foundation")]
impl ::core::clone::Clone for OPEN_PRINTER_PROPS_INFOW {
fn clone(&self) -> Self {
*self
}
}
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"]
#[cfg(target_arch = "x86")]
#[cfg(feature = "Win32_Foundation")]
pub struct OPEN_PRINTER_PROPS_INFOW {
pub dwSize: u32,
pub pszSheetName: ::windows_sys::core::PWSTR,
pub uSheetIndex: u32,
pub dwFlags: u32,
pub bModal: super::super::Foundation::BOOL,
}
#[cfg(target_arch = "x86")]
#[cfg(feature = "Win32_Foundation")]
impl ::core::marker::Copy for OPEN_PRINTER_PROPS_INFOW {}
#[cfg(target_arch = "x86")]
#[cfg(feature = "Win32_Foundation")]
impl ::core::clone::Clone for OPEN_PRINTER_PROPS_INFOW {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct PARSEDURLA {
pub cbSize: u32,
pub pszProtocol: ::windows_sys::core::PCSTR,
pub cchProtocol: u32,
pub pszSuffix: ::windows_sys::core::PCSTR,
pub cchSuffix: u32,
pub nScheme: u32,
}
impl ::core::marker::Copy for PARSEDURLA {}
impl ::core::clone::Clone for PARSEDURLA {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct PARSEDURLW {
pub cbSize: u32,
pub pszProtocol: ::windows_sys::core::PCWSTR,
pub cchProtocol: u32,
pub pszSuffix: ::windows_sys::core::PCWSTR,
pub cchSuffix: u32,
pub nScheme: u32,
}
impl ::core::marker::Copy for PARSEDURLW {}
impl ::core::clone::Clone for PARSEDURLW {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_Shell_Common\"`*"]
#[cfg(feature = "Win32_UI_Shell_Common")]
pub struct PERSIST_FOLDER_TARGET_INFO {
pub pidlTargetFolder: *mut Common::ITEMIDLIST,
pub szTargetParsingName: [u16; 260],
pub szNetworkProvider: [u16; 260],
pub dwAttributes: u32,
pub csidl: i32,
}
#[cfg(feature = "Win32_UI_Shell_Common")]
impl ::core::marker::Copy for PERSIST_FOLDER_TARGET_INFO {}
#[cfg(feature = "Win32_UI_Shell_Common")]
impl ::core::clone::Clone for PERSIST_FOLDER_TARGET_INFO {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_WindowsAndMessaging\"`*"]
#[cfg(feature = "Win32_UI_WindowsAndMessaging")]
pub struct PREVIEWHANDLERFRAMEINFO {
pub haccel: super::WindowsAndMessaging::HACCEL,
pub cAccelEntries: u32,
}
#[cfg(feature = "Win32_UI_WindowsAndMessaging")]
impl ::core::marker::Copy for PREVIEWHANDLERFRAMEINFO {}
#[cfg(feature = "Win32_UI_WindowsAndMessaging")]
impl ::core::clone::Clone for PREVIEWHANDLERFRAMEINFO {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"]
#[cfg(feature = "Win32_Foundation")]
pub struct PROFILEINFOA {
pub dwSize: u32,
pub dwFlags: u32,
pub lpUserName: ::windows_sys::core::PSTR,
pub lpProfilePath: ::windows_sys::core::PSTR,
pub lpDefaultPath: ::windows_sys::core::PSTR,
pub lpServerName: ::windows_sys::core::PSTR,
pub lpPolicyPath: ::windows_sys::core::PSTR,
pub hProfile: super::super::Foundation::HANDLE,
}
#[cfg(feature = "Win32_Foundation")]
impl ::core::marker::Copy for PROFILEINFOA {}
#[cfg(feature = "Win32_Foundation")]
impl ::core::clone::Clone for PROFILEINFOA {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"]
#[cfg(feature = "Win32_Foundation")]
pub struct PROFILEINFOW {
pub dwSize: u32,
pub dwFlags: u32,
pub lpUserName: ::windows_sys::core::PWSTR,
pub lpProfilePath: ::windows_sys::core::PWSTR,
pub lpDefaultPath: ::windows_sys::core::PWSTR,
pub lpServerName: ::windows_sys::core::PWSTR,
pub lpPolicyPath: ::windows_sys::core::PWSTR,
pub hProfile: super::super::Foundation::HANDLE,
}
#[cfg(feature = "Win32_Foundation")]
impl ::core::marker::Copy for PROFILEINFOW {}
#[cfg(feature = "Win32_Foundation")]
impl ::core::clone::Clone for PROFILEINFOW {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"]
#[cfg(feature = "Win32_Foundation")]
pub struct PUBAPPINFO {
pub cbSize: u32,
pub dwMask: u32,
pub pszSource: ::windows_sys::core::PWSTR,
pub stAssigned: super::super::Foundation::SYSTEMTIME,
pub stPublished: super::super::Foundation::SYSTEMTIME,
pub stScheduled: super::super::Foundation::SYSTEMTIME,
pub stExpire: super::super::Foundation::SYSTEMTIME,
}
#[cfg(feature = "Win32_Foundation")]
impl ::core::marker::Copy for PUBAPPINFO {}
#[cfg(feature = "Win32_Foundation")]
impl ::core::clone::Clone for PUBAPPINFO {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_WindowsAndMessaging\"`*"]
#[cfg(feature = "Win32_UI_WindowsAndMessaging")]
pub struct QCMINFO {
pub hmenu: super::WindowsAndMessaging::HMENU,
pub indexMenu: u32,
pub idCmdFirst: u32,
pub idCmdLast: u32,
pub pIdMap: *const QCMINFO_IDMAP,
}
#[cfg(feature = "Win32_UI_WindowsAndMessaging")]
impl ::core::marker::Copy for QCMINFO {}
#[cfg(feature = "Win32_UI_WindowsAndMessaging")]
impl ::core::clone::Clone for QCMINFO {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct QCMINFO_IDMAP {
pub nMaxIds: u32,
pub pIdList: [QCMINFO_IDMAP_PLACEMENT; 1],
}
impl ::core::marker::Copy for QCMINFO_IDMAP {}
impl ::core::clone::Clone for QCMINFO_IDMAP {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct QCMINFO_IDMAP_PLACEMENT {
pub id: u32,
pub fFlags: u32,
}
impl ::core::marker::Copy for QCMINFO_IDMAP_PLACEMENT {}
impl ::core::clone::Clone for QCMINFO_IDMAP_PLACEMENT {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct QITAB {
pub piid: *const ::windows_sys::core::GUID,
pub dwOffset: u32,
}
impl ::core::marker::Copy for QITAB {}
impl ::core::clone::Clone for QITAB {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct SFVM_HELPTOPIC_DATA {
pub wszHelpFile: [u16; 260],
pub wszHelpTopic: [u16; 260],
}
impl ::core::marker::Copy for SFVM_HELPTOPIC_DATA {}
impl ::core::clone::Clone for SFVM_HELPTOPIC_DATA {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_Controls\"`*"]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls"))]
pub struct SFVM_PROPPAGE_DATA {
pub dwReserved: u32,
pub pfn: super::Controls::LPFNSVADDPROPSHEETPAGE,
pub lParam: super::super::Foundation::LPARAM,
}
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls"))]
impl ::core::marker::Copy for SFVM_PROPPAGE_DATA {}
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls"))]
impl ::core::clone::Clone for SFVM_PROPPAGE_DATA {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Ole\"`*"]
#[cfg(feature = "Win32_System_Ole")]
pub struct SFV_CREATE {
pub cbSize: u32,
pub pshf: IShellFolder,
pub psvOuter: IShellView,
pub psfvcb: IShellFolderViewCB,
}
#[cfg(feature = "Win32_System_Ole")]
impl ::core::marker::Copy for SFV_CREATE {}
#[cfg(feature = "Win32_System_Ole")]
impl ::core::clone::Clone for SFV_CREATE {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_Shell_Common\"`*"]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))]
pub struct SFV_SETITEMPOS {
pub pidl: *mut Common::ITEMIDLIST,
pub pt: super::super::Foundation::POINT,
}
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))]
impl ::core::marker::Copy for SFV_SETITEMPOS {}
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))]
impl ::core::clone::Clone for SFV_SETITEMPOS {
fn clone(&self) -> Self {
*self
}
}
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct SHARDAPPIDINFO {
pub psi: IShellItem,
pub pszAppID: ::windows_sys::core::PCWSTR,
}
impl ::core::marker::Copy for SHARDAPPIDINFO {}
impl ::core::clone::Clone for SHARDAPPIDINFO {
fn clone(&self) -> Self {
*self
}
}
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_Shell_Common\"`*"]
#[cfg(feature = "Win32_UI_Shell_Common")]
pub struct SHARDAPPIDINFOIDLIST {
pub pidl: *mut Common::ITEMIDLIST,
pub pszAppID: ::windows_sys::core::PCWSTR,
}
#[cfg(feature = "Win32_UI_Shell_Common")]
impl ::core::marker::Copy for SHARDAPPIDINFOIDLIST {}
#[cfg(feature = "Win32_UI_Shell_Common")]
impl ::core::clone::Clone for SHARDAPPIDINFOIDLIST {
fn clone(&self) -> Self {
*self
}
}
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct SHARDAPPIDINFOLINK {
pub psl: IShellLinkA,
pub pszAppID: ::windows_sys::core::PCWSTR,
}
impl ::core::marker::Copy for SHARDAPPIDINFOLINK {}
impl ::core::clone::Clone for SHARDAPPIDINFOLINK {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct SHCOLUMNDATA {
pub dwFlags: u32,
pub dwFileAttributes: u32,
pub dwReserved: u32,
pub pwszExt: ::windows_sys::core::PWSTR,
pub wszFile: [u16; 260],
}
impl ::core::marker::Copy for SHCOLUMNDATA {}
impl ::core::clone::Clone for SHCOLUMNDATA {
fn clone(&self) -> Self {
*self
}
}
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`, `\"Win32_UI_Shell_PropertiesSystem\"`*"]
#[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_PropertiesSystem"))]
pub struct SHCOLUMNINFO {
pub scid: PropertiesSystem::PROPERTYKEY,
pub vt: super::super::System::Com::VARENUM,
pub fmt: u32,
pub cChars: u32,
pub csFlags: u32,
pub wszTitle: [u16; 80],
pub wszDescription: [u16; 128],
}
#[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_PropertiesSystem"))]
impl ::core::marker::Copy for SHCOLUMNINFO {}
#[cfg(all(feature = "Win32_System_Com", feature = "Win32_UI_Shell_PropertiesSystem"))]
impl ::core::clone::Clone for SHCOLUMNINFO {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct SHCOLUMNINIT {
pub dwFlags: u32,
pub dwReserved: u32,
pub wszFolder: [u16; 260],
}
impl ::core::marker::Copy for SHCOLUMNINIT {}
impl ::core::clone::Clone for SHCOLUMNINIT {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`, `\"Win32_System_Threading\"`*"]
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security", feature = "Win32_System_Threading"))]
pub struct SHCREATEPROCESSINFOW {
pub cbSize: u32,
pub fMask: u32,
pub hwnd: super::super::Foundation::HWND,
pub pszFile: ::windows_sys::core::PCWSTR,
pub pszParameters: ::windows_sys::core::PCWSTR,
pub pszCurrentDirectory: ::windows_sys::core::PCWSTR,
pub hUserToken: super::super::Foundation::HANDLE,
pub lpProcessAttributes: *mut super::super::Security::SECURITY_ATTRIBUTES,
pub lpThreadAttributes: *mut super::super::Security::SECURITY_ATTRIBUTES,
pub bInheritHandles: super::super::Foundation::BOOL,
pub dwCreationFlags: u32,
pub lpStartupInfo: *mut super::super::System::Threading::STARTUPINFOW,
pub lpProcessInformation: *mut super::super::System::Threading::PROCESS_INFORMATION,
}
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security", feature = "Win32_System_Threading"))]
impl ::core::marker::Copy for SHCREATEPROCESSINFOW {}
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security", feature = "Win32_System_Threading"))]
impl ::core::clone::Clone for SHCREATEPROCESSINFOW {
fn clone(&self) -> Self {
*self
}
}
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`, `\"Win32_System_Threading\"`*"]
#[cfg(target_arch = "x86")]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security", feature = "Win32_System_Threading"))]
pub struct SHCREATEPROCESSINFOW {
pub cbSize: u32,
pub fMask: u32,
pub hwnd: super::super::Foundation::HWND,
pub pszFile: ::windows_sys::core::PCWSTR,
pub pszParameters: ::windows_sys::core::PCWSTR,
pub pszCurrentDirectory: ::windows_sys::core::PCWSTR,
pub hUserToken: super::super::Foundation::HANDLE,
pub lpProcessAttributes: *mut super::super::Security::SECURITY_ATTRIBUTES,
pub lpThreadAttributes: *mut super::super::Security::SECURITY_ATTRIBUTES,
pub bInheritHandles: super::super::Foundation::BOOL,
pub dwCreationFlags: u32,
pub lpStartupInfo: *mut super::super::System::Threading::STARTUPINFOW,
pub lpProcessInformation: *mut super::super::System::Threading::PROCESS_INFORMATION,
}
#[cfg(target_arch = "x86")]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security", feature = "Win32_System_Threading"))]
impl ::core::marker::Copy for SHCREATEPROCESSINFOW {}
#[cfg(target_arch = "x86")]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security", feature = "Win32_System_Threading"))]
impl ::core::clone::Clone for SHCREATEPROCESSINFOW {
fn clone(&self) -> Self {
*self
}
}
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct SHChangeDWORDAsIDList {
pub cb: u16,
pub dwItem1: u32,
pub dwItem2: u32,
pub cbZero: u16,
}
impl ::core::marker::Copy for SHChangeDWORDAsIDList {}
impl ::core::clone::Clone for SHChangeDWORDAsIDList {
fn clone(&self) -> Self {
*self
}
}
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_Shell_Common\"`*"]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))]
pub struct SHChangeNotifyEntry {
pub pidl: *mut Common::ITEMIDLIST,
pub fRecursive: super::super::Foundation::BOOL,
}
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))]
impl ::core::marker::Copy for SHChangeNotifyEntry {}
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))]
impl ::core::clone::Clone for SHChangeNotifyEntry {
fn clone(&self) -> Self {
*self
}
}
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct SHChangeProductKeyAsIDList {
pub cb: u16,
pub wszProductKey: [u16; 39],
pub cbZero: u16,
}
impl ::core::marker::Copy for SHChangeProductKeyAsIDList {}
impl ::core::clone::Clone for SHChangeProductKeyAsIDList {
fn clone(&self) -> Self {
*self
}
}
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct SHChangeUpdateImageIDList {
pub cb: u16,
pub iIconIndex: i32,
pub iCurIndex: i32,
pub uFlags: u32,
pub dwProcessID: u32,
pub szName: [u16; 260],
pub cbZero: u16,
}
impl ::core::marker::Copy for SHChangeUpdateImageIDList {}
impl ::core::clone::Clone for SHChangeUpdateImageIDList {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct SHDESCRIPTIONID {
pub dwDescriptionId: SHDID_ID,
pub clsid: ::windows_sys::core::GUID,
}
impl ::core::marker::Copy for SHDESCRIPTIONID {}
impl ::core::clone::Clone for SHDESCRIPTIONID {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))]
pub struct SHDRAGIMAGE {
pub sizeDragImage: super::super::Foundation::SIZE,
pub ptOffset: super::super::Foundation::POINT,
pub hbmpDragImage: super::super::Graphics::Gdi::HBITMAP,
pub crColorKey: super::super::Foundation::COLORREF,
}
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))]
impl ::core::marker::Copy for SHDRAGIMAGE {}
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))]
impl ::core::clone::Clone for SHDRAGIMAGE {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`*"]
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
pub struct SHELLEXECUTEINFOA {
pub cbSize: u32,
pub fMask: u32,
pub hwnd: super::super::Foundation::HWND,
pub lpVerb: ::windows_sys::core::PCSTR,
pub lpFile: ::windows_sys::core::PCSTR,
pub lpParameters: ::windows_sys::core::PCSTR,
pub lpDirectory: ::windows_sys::core::PCSTR,
pub nShow: i32,
pub hInstApp: super::super::Foundation::HMODULE,
pub lpIDList: *mut ::core::ffi::c_void,
pub lpClass: ::windows_sys::core::PCSTR,
pub hkeyClass: super::super::System::Registry::HKEY,
pub dwHotKey: u32,
pub Anonymous: SHELLEXECUTEINFOA_0,
pub hProcess: super::super::Foundation::HANDLE,
}
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
impl ::core::marker::Copy for SHELLEXECUTEINFOA {}
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
impl ::core::clone::Clone for SHELLEXECUTEINFOA {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`*"]
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
pub union SHELLEXECUTEINFOA_0 {
pub hIcon: super::super::Foundation::HANDLE,
pub hMonitor: super::super::Foundation::HANDLE,
}
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
impl ::core::marker::Copy for SHELLEXECUTEINFOA_0 {}
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
impl ::core::clone::Clone for SHELLEXECUTEINFOA_0 {
fn clone(&self) -> Self {
*self
}
}
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`*"]
#[cfg(target_arch = "x86")]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
pub struct SHELLEXECUTEINFOA {
pub cbSize: u32,
pub fMask: u32,
pub hwnd: super::super::Foundation::HWND,
pub lpVerb: ::windows_sys::core::PCSTR,
pub lpFile: ::windows_sys::core::PCSTR,
pub lpParameters: ::windows_sys::core::PCSTR,
pub lpDirectory: ::windows_sys::core::PCSTR,
pub nShow: i32,
pub hInstApp: super::super::Foundation::HMODULE,
pub lpIDList: *mut ::core::ffi::c_void,
pub lpClass: ::windows_sys::core::PCSTR,
pub hkeyClass: super::super::System::Registry::HKEY,
pub dwHotKey: u32,
pub Anonymous: SHELLEXECUTEINFOA_0,
pub hProcess: super::super::Foundation::HANDLE,
}
#[cfg(target_arch = "x86")]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
impl ::core::marker::Copy for SHELLEXECUTEINFOA {}
#[cfg(target_arch = "x86")]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
impl ::core::clone::Clone for SHELLEXECUTEINFOA {
fn clone(&self) -> Self {
*self
}
}
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`*"]
#[cfg(target_arch = "x86")]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
pub union SHELLEXECUTEINFOA_0 {
pub hIcon: super::super::Foundation::HANDLE,
pub hMonitor: super::super::Foundation::HANDLE,
}
#[cfg(target_arch = "x86")]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
impl ::core::marker::Copy for SHELLEXECUTEINFOA_0 {}
#[cfg(target_arch = "x86")]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
impl ::core::clone::Clone for SHELLEXECUTEINFOA_0 {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`*"]
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
pub struct SHELLEXECUTEINFOW {
pub cbSize: u32,
pub fMask: u32,
pub hwnd: super::super::Foundation::HWND,
pub lpVerb: ::windows_sys::core::PCWSTR,
pub lpFile: ::windows_sys::core::PCWSTR,
pub lpParameters: ::windows_sys::core::PCWSTR,
pub lpDirectory: ::windows_sys::core::PCWSTR,
pub nShow: i32,
pub hInstApp: super::super::Foundation::HMODULE,
pub lpIDList: *mut ::core::ffi::c_void,
pub lpClass: ::windows_sys::core::PCWSTR,
pub hkeyClass: super::super::System::Registry::HKEY,
pub dwHotKey: u32,
pub Anonymous: SHELLEXECUTEINFOW_0,
pub hProcess: super::super::Foundation::HANDLE,
}
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
impl ::core::marker::Copy for SHELLEXECUTEINFOW {}
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
impl ::core::clone::Clone for SHELLEXECUTEINFOW {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`*"]
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
pub union SHELLEXECUTEINFOW_0 {
pub hIcon: super::super::Foundation::HANDLE,
pub hMonitor: super::super::Foundation::HANDLE,
}
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
impl ::core::marker::Copy for SHELLEXECUTEINFOW_0 {}
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
impl ::core::clone::Clone for SHELLEXECUTEINFOW_0 {
fn clone(&self) -> Self {
*self
}
}
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`*"]
#[cfg(target_arch = "x86")]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
pub struct SHELLEXECUTEINFOW {
pub cbSize: u32,
pub fMask: u32,
pub hwnd: super::super::Foundation::HWND,
pub lpVerb: ::windows_sys::core::PCWSTR,
pub lpFile: ::windows_sys::core::PCWSTR,
pub lpParameters: ::windows_sys::core::PCWSTR,
pub lpDirectory: ::windows_sys::core::PCWSTR,
pub nShow: i32,
pub hInstApp: super::super::Foundation::HMODULE,
pub lpIDList: *mut ::core::ffi::c_void,
pub lpClass: ::windows_sys::core::PCWSTR,
pub hkeyClass: super::super::System::Registry::HKEY,
pub dwHotKey: u32,
pub Anonymous: SHELLEXECUTEINFOW_0,
pub hProcess: super::super::Foundation::HANDLE,
}
#[cfg(target_arch = "x86")]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
impl ::core::marker::Copy for SHELLEXECUTEINFOW {}
#[cfg(target_arch = "x86")]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
impl ::core::clone::Clone for SHELLEXECUTEINFOW {
fn clone(&self) -> Self {
*self
}
}
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Registry\"`*"]
#[cfg(target_arch = "x86")]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
pub union SHELLEXECUTEINFOW_0 {
pub hIcon: super::super::Foundation::HANDLE,
pub hMonitor: super::super::Foundation::HANDLE,
}
#[cfg(target_arch = "x86")]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
impl ::core::marker::Copy for SHELLEXECUTEINFOW_0 {}
#[cfg(target_arch = "x86")]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry"))]
impl ::core::clone::Clone for SHELLEXECUTEINFOW_0 {
fn clone(&self) -> Self {
*self
}
}
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct SHELLFLAGSTATE {
pub _bitfield: i32,
}
impl ::core::marker::Copy for SHELLFLAGSTATE {}
impl ::core::clone::Clone for SHELLFLAGSTATE {
fn clone(&self) -> Self {
*self
}
}
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct SHELLSTATEA {
pub _bitfield1: i32,
pub dwWin95Unused: u32,
pub uWin95Unused: u32,
pub lParamSort: i32,
pub iSortDirection: i32,
pub version: u32,
pub uNotUsed: u32,
pub _bitfield2: i32,
}
impl ::core::marker::Copy for SHELLSTATEA {}
impl ::core::clone::Clone for SHELLSTATEA {
fn clone(&self) -> Self {
*self
}
}
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct SHELLSTATEW {
pub _bitfield1: i32,
pub dwWin95Unused: u32,
pub uWin95Unused: u32,
pub lParamSort: i32,
pub iSortDirection: i32,
pub version: u32,
pub uNotUsed: u32,
pub _bitfield2: i32,
}
impl ::core::marker::Copy for SHELLSTATEW {}
impl ::core::clone::Clone for SHELLSTATEW {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct SHELL_ITEM_RESOURCE {
pub guidType: ::windows_sys::core::GUID,
pub szName: [u16; 260],
}
impl ::core::marker::Copy for SHELL_ITEM_RESOURCE {}
impl ::core::clone::Clone for SHELL_ITEM_RESOURCE {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_WindowsAndMessaging\"`*"]
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(feature = "Win32_UI_WindowsAndMessaging")]
pub struct SHFILEINFOA {
pub hIcon: super::WindowsAndMessaging::HICON,
pub iIcon: i32,
pub dwAttributes: u32,
pub szDisplayName: [u8; 260],
pub szTypeName: [u8; 80],
}
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(feature = "Win32_UI_WindowsAndMessaging")]
impl ::core::marker::Copy for SHFILEINFOA {}
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(feature = "Win32_UI_WindowsAndMessaging")]
impl ::core::clone::Clone for SHFILEINFOA {
fn clone(&self) -> Self {
*self
}
}
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_WindowsAndMessaging\"`*"]
#[cfg(target_arch = "x86")]
#[cfg(feature = "Win32_UI_WindowsAndMessaging")]
pub struct SHFILEINFOA {
pub hIcon: super::WindowsAndMessaging::HICON,
pub iIcon: i32,
pub dwAttributes: u32,
pub szDisplayName: [u8; 260],
pub szTypeName: [u8; 80],
}
#[cfg(target_arch = "x86")]
#[cfg(feature = "Win32_UI_WindowsAndMessaging")]
impl ::core::marker::Copy for SHFILEINFOA {}
#[cfg(target_arch = "x86")]
#[cfg(feature = "Win32_UI_WindowsAndMessaging")]
impl ::core::clone::Clone for SHFILEINFOA {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_WindowsAndMessaging\"`*"]
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(feature = "Win32_UI_WindowsAndMessaging")]
pub struct SHFILEINFOW {
pub hIcon: super::WindowsAndMessaging::HICON,
pub iIcon: i32,
pub dwAttributes: u32,
pub szDisplayName: [u16; 260],
pub szTypeName: [u16; 80],
}
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(feature = "Win32_UI_WindowsAndMessaging")]
impl ::core::marker::Copy for SHFILEINFOW {}
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(feature = "Win32_UI_WindowsAndMessaging")]
impl ::core::clone::Clone for SHFILEINFOW {
fn clone(&self) -> Self {
*self
}
}
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_WindowsAndMessaging\"`*"]
#[cfg(target_arch = "x86")]
#[cfg(feature = "Win32_UI_WindowsAndMessaging")]
pub struct SHFILEINFOW {
pub hIcon: super::WindowsAndMessaging::HICON,
pub iIcon: i32,
pub dwAttributes: u32,
pub szDisplayName: [u16; 260],
pub szTypeName: [u16; 80],
}
#[cfg(target_arch = "x86")]
#[cfg(feature = "Win32_UI_WindowsAndMessaging")]
impl ::core::marker::Copy for SHFILEINFOW {}
#[cfg(target_arch = "x86")]
#[cfg(feature = "Win32_UI_WindowsAndMessaging")]
impl ::core::clone::Clone for SHFILEINFOW {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"]
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(feature = "Win32_Foundation")]
pub struct SHFILEOPSTRUCTA {
pub hwnd: super::super::Foundation::HWND,
pub wFunc: u32,
pub pFrom: *mut i8,
pub pTo: *mut i8,
pub fFlags: u16,
pub fAnyOperationsAborted: super::super::Foundation::BOOL,
pub hNameMappings: *mut ::core::ffi::c_void,
pub lpszProgressTitle: ::windows_sys::core::PCSTR,
}
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(feature = "Win32_Foundation")]
impl ::core::marker::Copy for SHFILEOPSTRUCTA {}
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(feature = "Win32_Foundation")]
impl ::core::clone::Clone for SHFILEOPSTRUCTA {
fn clone(&self) -> Self {
*self
}
}
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"]
#[cfg(target_arch = "x86")]
#[cfg(feature = "Win32_Foundation")]
pub struct SHFILEOPSTRUCTA {
pub hwnd: super::super::Foundation::HWND,
pub wFunc: u32,
pub pFrom: *mut i8,
pub pTo: *mut i8,
pub fFlags: u16,
pub fAnyOperationsAborted: super::super::Foundation::BOOL,
pub hNameMappings: *mut ::core::ffi::c_void,
pub lpszProgressTitle: ::windows_sys::core::PCSTR,
}
#[cfg(target_arch = "x86")]
#[cfg(feature = "Win32_Foundation")]
impl ::core::marker::Copy for SHFILEOPSTRUCTA {}
#[cfg(target_arch = "x86")]
#[cfg(feature = "Win32_Foundation")]
impl ::core::clone::Clone for SHFILEOPSTRUCTA {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"]
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(feature = "Win32_Foundation")]
pub struct SHFILEOPSTRUCTW {
pub hwnd: super::super::Foundation::HWND,
pub wFunc: u32,
pub pFrom: ::windows_sys::core::PCWSTR,
pub pTo: ::windows_sys::core::PCWSTR,
pub fFlags: u16,
pub fAnyOperationsAborted: super::super::Foundation::BOOL,
pub hNameMappings: *mut ::core::ffi::c_void,
pub lpszProgressTitle: ::windows_sys::core::PCWSTR,
}
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(feature = "Win32_Foundation")]
impl ::core::marker::Copy for SHFILEOPSTRUCTW {}
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(feature = "Win32_Foundation")]
impl ::core::clone::Clone for SHFILEOPSTRUCTW {
fn clone(&self) -> Self {
*self
}
}
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"]
#[cfg(target_arch = "x86")]
#[cfg(feature = "Win32_Foundation")]
pub struct SHFILEOPSTRUCTW {
pub hwnd: super::super::Foundation::HWND,
pub wFunc: u32,
pub pFrom: ::windows_sys::core::PCWSTR,
pub pTo: ::windows_sys::core::PCWSTR,
pub fFlags: u16,
pub fAnyOperationsAborted: super::super::Foundation::BOOL,
pub hNameMappings: *mut ::core::ffi::c_void,
pub lpszProgressTitle: ::windows_sys::core::PCWSTR,
}
#[cfg(target_arch = "x86")]
#[cfg(feature = "Win32_Foundation")]
impl ::core::marker::Copy for SHFILEOPSTRUCTW {}
#[cfg(target_arch = "x86")]
#[cfg(feature = "Win32_Foundation")]
impl ::core::clone::Clone for SHFILEOPSTRUCTW {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct SHFOLDERCUSTOMSETTINGS {
pub dwSize: u32,
pub dwMask: u32,
pub pvid: *mut ::windows_sys::core::GUID,
pub pszWebViewTemplate: ::windows_sys::core::PWSTR,
pub cchWebViewTemplate: u32,
pub pszWebViewTemplateVersion: ::windows_sys::core::PWSTR,
pub pszInfoTip: ::windows_sys::core::PWSTR,
pub cchInfoTip: u32,
pub pclsid: *mut ::windows_sys::core::GUID,
pub dwFlags: u32,
pub pszIconFile: ::windows_sys::core::PWSTR,
pub cchIconFile: u32,
pub iIconIndex: i32,
pub pszLogo: ::windows_sys::core::PWSTR,
pub cchLogo: u32,
}
impl ::core::marker::Copy for SHFOLDERCUSTOMSETTINGS {}
impl ::core::clone::Clone for SHFOLDERCUSTOMSETTINGS {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
pub struct SHNAMEMAPPINGA {
pub pszOldPath: ::windows_sys::core::PSTR,
pub pszNewPath: ::windows_sys::core::PSTR,
pub cchOldPath: i32,
pub cchNewPath: i32,
}
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
impl ::core::marker::Copy for SHNAMEMAPPINGA {}
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
impl ::core::clone::Clone for SHNAMEMAPPINGA {
fn clone(&self) -> Self {
*self
}
}
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
#[cfg(target_arch = "x86")]
pub struct SHNAMEMAPPINGA {
pub pszOldPath: ::windows_sys::core::PSTR,
pub pszNewPath: ::windows_sys::core::PSTR,
pub cchOldPath: i32,
pub cchNewPath: i32,
}
#[cfg(target_arch = "x86")]
impl ::core::marker::Copy for SHNAMEMAPPINGA {}
#[cfg(target_arch = "x86")]
impl ::core::clone::Clone for SHNAMEMAPPINGA {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
pub struct SHNAMEMAPPINGW {
pub pszOldPath: ::windows_sys::core::PWSTR,
pub pszNewPath: ::windows_sys::core::PWSTR,
pub cchOldPath: i32,
pub cchNewPath: i32,
}
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
impl ::core::marker::Copy for SHNAMEMAPPINGW {}
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
impl ::core::clone::Clone for SHNAMEMAPPINGW {
fn clone(&self) -> Self {
*self
}
}
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
#[cfg(target_arch = "x86")]
pub struct SHNAMEMAPPINGW {
pub pszOldPath: ::windows_sys::core::PWSTR,
pub pszNewPath: ::windows_sys::core::PWSTR,
pub cchOldPath: i32,
pub cchNewPath: i32,
}
#[cfg(target_arch = "x86")]
impl ::core::marker::Copy for SHNAMEMAPPINGW {}
#[cfg(target_arch = "x86")]
impl ::core::clone::Clone for SHNAMEMAPPINGW {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
pub struct SHQUERYRBINFO {
pub cbSize: u32,
pub i64Size: i64,
pub i64NumItems: i64,
}
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
impl ::core::marker::Copy for SHQUERYRBINFO {}
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
impl ::core::clone::Clone for SHQUERYRBINFO {
fn clone(&self) -> Self {
*self
}
}
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
#[cfg(target_arch = "x86")]
pub struct SHQUERYRBINFO {
pub cbSize: u32,
pub i64Size: i64,
pub i64NumItems: i64,
}
#[cfg(target_arch = "x86")]
impl ::core::marker::Copy for SHQUERYRBINFO {}
#[cfg(target_arch = "x86")]
impl ::core::clone::Clone for SHQUERYRBINFO {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_WindowsAndMessaging\"`*"]
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(feature = "Win32_UI_WindowsAndMessaging")]
pub struct SHSTOCKICONINFO {
pub cbSize: u32,
pub hIcon: super::WindowsAndMessaging::HICON,
pub iSysImageIndex: i32,
pub iIcon: i32,
pub szPath: [u16; 260],
}
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(feature = "Win32_UI_WindowsAndMessaging")]
impl ::core::marker::Copy for SHSTOCKICONINFO {}
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(feature = "Win32_UI_WindowsAndMessaging")]
impl ::core::clone::Clone for SHSTOCKICONINFO {
fn clone(&self) -> Self {
*self
}
}
#[repr(C, packed(1))]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_WindowsAndMessaging\"`*"]
#[cfg(target_arch = "x86")]
#[cfg(feature = "Win32_UI_WindowsAndMessaging")]
pub struct SHSTOCKICONINFO {
pub cbSize: u32,
pub hIcon: super::WindowsAndMessaging::HICON,
pub iSysImageIndex: i32,
pub iIcon: i32,
pub szPath: [u16; 260],
}
#[cfg(target_arch = "x86")]
#[cfg(feature = "Win32_UI_WindowsAndMessaging")]
impl ::core::marker::Copy for SHSTOCKICONINFO {}
#[cfg(target_arch = "x86")]
#[cfg(feature = "Win32_UI_WindowsAndMessaging")]
impl ::core::clone::Clone for SHSTOCKICONINFO {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"]
#[cfg(feature = "Win32_Foundation")]
pub struct SLOWAPPINFO {
pub ullSize: u64,
pub ftLastUsed: super::super::Foundation::FILETIME,
pub iTimesUsed: i32,
pub pszImage: ::windows_sys::core::PWSTR,
}
#[cfg(feature = "Win32_Foundation")]
impl ::core::marker::Copy for SLOWAPPINFO {}
#[cfg(feature = "Win32_Foundation")]
impl ::core::clone::Clone for SLOWAPPINFO {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_Shell_Common\"`*"]
#[cfg(feature = "Win32_UI_Shell_Common")]
pub struct SMCSHCHANGENOTIFYSTRUCT {
pub lEvent: i32,
pub pidl1: *mut Common::ITEMIDLIST,
pub pidl2: *mut Common::ITEMIDLIST,
}
#[cfg(feature = "Win32_UI_Shell_Common")]
impl ::core::marker::Copy for SMCSHCHANGENOTIFYSTRUCT {}
#[cfg(feature = "Win32_UI_Shell_Common")]
impl ::core::clone::Clone for SMCSHCHANGENOTIFYSTRUCT {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_Shell_Common\"`, `\"Win32_UI_WindowsAndMessaging\"`*"]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging"))]
pub struct SMDATA {
pub dwMask: u32,
pub dwFlags: u32,
pub hmenu: super::WindowsAndMessaging::HMENU,
pub hwnd: super::super::Foundation::HWND,
pub uId: u32,
pub uIdParent: u32,
pub uIdAncestor: u32,
pub punk: ::windows_sys::core::IUnknown,
pub pidlFolder: *mut Common::ITEMIDLIST,
pub pidlItem: *mut Common::ITEMIDLIST,
pub psf: IShellFolder,
pub pvUserData: *mut ::core::ffi::c_void,
}
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging"))]
impl ::core::marker::Copy for SMDATA {}
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common", feature = "Win32_UI_WindowsAndMessaging"))]
impl ::core::clone::Clone for SMDATA {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct SMINFO {
pub dwMask: u32,
pub dwType: u32,
pub dwFlags: u32,
pub iIcon: i32,
}
impl ::core::marker::Copy for SMINFO {}
impl ::core::clone::Clone for SMINFO {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_Shell_PropertiesSystem\"`*"]
#[cfg(feature = "Win32_UI_Shell_PropertiesSystem")]
pub struct SORTCOLUMN {
pub propkey: PropertiesSystem::PROPERTYKEY,
pub direction: SORTDIRECTION,
}
#[cfg(feature = "Win32_UI_Shell_PropertiesSystem")]
impl ::core::marker::Copy for SORTCOLUMN {}
#[cfg(feature = "Win32_UI_Shell_PropertiesSystem")]
impl ::core::clone::Clone for SORTCOLUMN {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Ole\"`*"]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))]
pub struct SV2CVW2_PARAMS {
pub cbSize: u32,
pub psvPrev: IShellView,
pub pfs: *mut FOLDERSETTINGS,
pub psbOwner: IShellBrowser,
pub prcView: *mut super::super::Foundation::RECT,
pub pvid: *const ::windows_sys::core::GUID,
pub hwndView: super::super::Foundation::HWND,
}
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))]
impl ::core::marker::Copy for SV2CVW2_PARAMS {}
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))]
impl ::core::clone::Clone for SV2CVW2_PARAMS {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_WindowsAndMessaging\"`*"]
#[cfg(feature = "Win32_UI_WindowsAndMessaging")]
pub struct SYNCMGRHANDLERINFO {
pub cbSize: u32,
pub hIcon: super::WindowsAndMessaging::HICON,
pub SyncMgrHandlerFlags: u32,
pub wszHandlerName: [u16; 32],
}
#[cfg(feature = "Win32_UI_WindowsAndMessaging")]
impl ::core::marker::Copy for SYNCMGRHANDLERINFO {}
#[cfg(feature = "Win32_UI_WindowsAndMessaging")]
impl ::core::clone::Clone for SYNCMGRHANDLERINFO {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_WindowsAndMessaging\"`*"]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))]
pub struct SYNCMGRITEM {
pub cbSize: u32,
pub dwFlags: u32,
pub ItemID: ::windows_sys::core::GUID,
pub dwItemState: u32,
pub hIcon: super::WindowsAndMessaging::HICON,
pub wszItemName: [u16; 128],
pub ftLastUpdate: super::super::Foundation::FILETIME,
}
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))]
impl ::core::marker::Copy for SYNCMGRITEM {}
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))]
impl ::core::clone::Clone for SYNCMGRITEM {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct SYNCMGRLOGERRORINFO {
pub cbSize: u32,
pub mask: u32,
pub dwSyncMgrErrorFlags: u32,
pub ErrorID: ::windows_sys::core::GUID,
pub ItemID: ::windows_sys::core::GUID,
}
impl ::core::marker::Copy for SYNCMGRLOGERRORINFO {}
impl ::core::clone::Clone for SYNCMGRLOGERRORINFO {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct SYNCMGRPROGRESSITEM {
pub cbSize: u32,
pub mask: u32,
pub lpcStatusText: ::windows_sys::core::PCWSTR,
pub dwStatusType: u32,
pub iProgValue: i32,
pub iMaxValue: i32,
}
impl ::core::marker::Copy for SYNCMGRPROGRESSITEM {}
impl ::core::clone::Clone for SYNCMGRPROGRESSITEM {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`*"]
#[cfg(feature = "Win32_System_Com")]
pub struct SYNCMGR_CONFLICT_ID_INFO {
pub pblobID: *mut super::super::System::Com::BYTE_BLOB,
pub pblobExtra: *mut super::super::System::Com::BYTE_BLOB,
}
#[cfg(feature = "Win32_System_Com")]
impl ::core::marker::Copy for SYNCMGR_CONFLICT_ID_INFO {}
#[cfg(feature = "Win32_System_Com")]
impl ::core::clone::Clone for SYNCMGR_CONFLICT_ID_INFO {
fn clone(&self) -> Self {
*self
}
}
pub type ShFindChangeNotificationHandle = isize;
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct TBINFO {
pub cbuttons: u32,
pub uFlags: u32,
}
impl ::core::marker::Copy for TBINFO {}
impl ::core::clone::Clone for TBINFO {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_WindowsAndMessaging\"`*"]
#[cfg(feature = "Win32_UI_WindowsAndMessaging")]
pub struct THUMBBUTTON {
pub dwMask: THUMBBUTTONMASK,
pub iId: u32,
pub iBitmap: u32,
pub hIcon: super::WindowsAndMessaging::HICON,
pub szTip: [u16; 260],
pub dwFlags: THUMBBUTTONFLAGS,
}
#[cfg(feature = "Win32_UI_WindowsAndMessaging")]
impl ::core::marker::Copy for THUMBBUTTON {}
#[cfg(feature = "Win32_UI_WindowsAndMessaging")]
impl ::core::clone::Clone for THUMBBUTTON {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Ole\"`*"]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_System_Ole"))]
pub struct TOOLBARITEM {
pub ptbar: IDockingWindow,
pub rcBorderTool: super::super::Foundation::RECT,
pub pwszItem: ::windows_sys::core::PWSTR,
pub fShow: super::super::Foundation::BOOL,
pub hMon: super::super::Graphics::Gdi::HMONITOR,
}
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_System_Ole"))]
impl ::core::marker::Copy for TOOLBARITEM {}
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_System_Ole"))]
impl ::core::clone::Clone for TOOLBARITEM {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"]
#[cfg(feature = "Win32_Foundation")]
pub struct URLINVOKECOMMANDINFOA {
pub dwcbSize: u32,
pub dwFlags: u32,
pub hwndParent: super::super::Foundation::HWND,
pub pcszVerb: ::windows_sys::core::PCSTR,
}
#[cfg(feature = "Win32_Foundation")]
impl ::core::marker::Copy for URLINVOKECOMMANDINFOA {}
#[cfg(feature = "Win32_Foundation")]
impl ::core::clone::Clone for URLINVOKECOMMANDINFOA {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"]
#[cfg(feature = "Win32_Foundation")]
pub struct URLINVOKECOMMANDINFOW {
pub dwcbSize: u32,
pub dwFlags: u32,
pub hwndParent: super::super::Foundation::HWND,
pub pcszVerb: ::windows_sys::core::PCWSTR,
}
#[cfg(feature = "Win32_Foundation")]
impl ::core::marker::Copy for URLINVOKECOMMANDINFOW {}
#[cfg(feature = "Win32_Foundation")]
impl ::core::clone::Clone for URLINVOKECOMMANDINFOW {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_Shell_Common\"`*"]
#[cfg(feature = "Win32_UI_Shell_Common")]
pub struct WINDOWDATA {
pub dwWindowID: u32,
pub uiCP: u32,
pub pidl: *mut Common::ITEMIDLIST,
pub lpszUrl: ::windows_sys::core::PWSTR,
pub lpszUrlLocation: ::windows_sys::core::PWSTR,
pub lpszTitle: ::windows_sys::core::PWSTR,
}
#[cfg(feature = "Win32_UI_Shell_Common")]
impl ::core::marker::Copy for WINDOWDATA {}
#[cfg(feature = "Win32_UI_Shell_Common")]
impl ::core::clone::Clone for WINDOWDATA {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub struct WTS_THUMBNAILID {
pub rgbKey: [u8; 16],
}
impl ::core::marker::Copy for WTS_THUMBNAILID {}
impl ::core::clone::Clone for WTS_THUMBNAILID {
fn clone(&self) -> Self {
*self
}
}
#[repr(C)]
pub struct _APPCONSTRAIN_REGISTRATION(pub u8);
#[repr(C)]
pub struct _APPSTATE_REGISTRATION(pub u8);
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"]
#[cfg(feature = "Win32_Foundation")]
pub type APPLET_PROC = ::core::option::Option<unsafe extern "system" fn(hwndcpl: super::super::Foundation::HWND, msg: u32, lparam1: super::super::Foundation::LPARAM, lparam2: super::super::Foundation::LPARAM) -> i32>;
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"]
#[cfg(feature = "Win32_Foundation")]
pub type BFFCALLBACK = ::core::option::Option<unsafe extern "system" fn(hwnd: super::super::Foundation::HWND, umsg: u32, lparam: super::super::Foundation::LPARAM, lpdata: super::super::Foundation::LPARAM) -> i32>;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type DLLGETVERSIONPROC = ::core::option::Option<unsafe extern "system" fn(param0: *mut DLLVERSIONINFO) -> ::windows_sys::core::HRESULT>;
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))]
pub type LPFNDFMCALLBACK = ::core::option::Option<unsafe extern "system" fn(psf: IShellFolder, hwnd: super::super::Foundation::HWND, pdtobj: super::super::System::Com::IDataObject, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> ::windows_sys::core::HRESULT>;
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_System_Ole\"`*"]
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))]
pub type LPFNVIEWCALLBACK = ::core::option::Option<unsafe extern "system" fn(psvouter: IShellView, psf: IShellFolder, hwndmain: super::super::Foundation::HWND, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM) -> ::windows_sys::core::HRESULT>;
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"]
#[cfg(feature = "Win32_Foundation")]
pub type PAPPCONSTRAIN_CHANGE_ROUTINE = ::core::option::Option<unsafe extern "system" fn(constrained: super::super::Foundation::BOOLEAN, context: *const ::core::ffi::c_void) -> ()>;
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"]
#[cfg(feature = "Win32_Foundation")]
pub type PAPPSTATE_CHANGE_ROUTINE = ::core::option::Option<unsafe extern "system" fn(quiesced: super::super::Foundation::BOOLEAN, context: *const ::core::ffi::c_void) -> ()>;
#[doc = "*Required features: `\"Win32_UI_Shell\"`*"]
pub type PFNCANSHAREFOLDERW = ::core::option::Option<unsafe extern "system" fn(pszpath: ::windows_sys::core::PCWSTR) -> ::windows_sys::core::HRESULT>;
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"]
#[cfg(feature = "Win32_Foundation")]
pub type PFNSHOWSHAREFOLDERUIW = ::core::option::Option<unsafe extern "system" fn(hwndparent: super::super::Foundation::HWND, pszpath: ::windows_sys::core::PCWSTR) -> ::windows_sys::core::HRESULT>;
#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`*"]
#[cfg(feature = "Win32_Foundation")]
pub type SUBCLASSPROC = ::core::option::Option<unsafe extern "system" fn(hwnd: super::super::Foundation::HWND, umsg: u32, wparam: super::super::Foundation::WPARAM, lparam: super::super::Foundation::LPARAM, uidsubclass: usize, dwrefdata: usize) -> super::super::Foundation::LRESULT>;
|
use core::ops::ControlFlow;
use std::collections::btree_map::Entry;
use firefly_diagnostics::*;
use firefly_intern::symbols;
use firefly_syntax_base::*;
use crate::ast::*;
use crate::visit::VisitMut;
pub fn analyze_function(reporter: &Reporter, module: &mut Module, mut function: Function) {
let resolved_name = FunctionName::new(module.name(), function.name.name, function.arity);
let local_resolved_name = resolved_name.to_local();
let warn_missing_specs = module
.compile
.as_ref()
.map(|c| c.warn_missing_spec)
.unwrap_or(false);
if let Some(spec) = module.specs.get(&resolved_name) {
function.spec.replace(spec.clone());
} else if warn_missing_specs {
reporter.show_warning(
"missing function spec",
&[(function.span, "expected type spec for this function")],
);
}
let nif_name = Span::new(function.name.span, local_resolved_name.clone());
if module.nifs.contains(&nif_name) {
function.is_nif = true;
} else {
// Determine if the body of the function implicitly defines this as a NIF
// Such a function will have a call to erlang:nif_error/1 or /2
let mut is_nif = IsNifVisitor;
if let ControlFlow::Break(true) = is_nif.visit_mut_function(&mut function) {
module.nifs.insert(nif_name);
function.is_nif = true;
}
}
// If we have a local with the same name as an imported function, the import is shadowed
if module.imports.contains_key(&local_resolved_name) {
module.imports.remove(&local_resolved_name);
}
match module.functions.entry(local_resolved_name) {
Entry::Vacant(f) => {
f.insert(function);
}
Entry::Occupied(initial_def) => {
let def = initial_def.into_mut();
reporter.show_error(
"clauses from the same function should be grouped together",
&[
(function.span, "found more clauses here"),
(def.span, "function is first defined here"),
],
);
def.clauses.append(&mut function.clauses);
}
}
}
struct IsNifVisitor;
impl VisitMut<bool> for IsNifVisitor {
fn visit_mut_apply(&mut self, apply: &mut Apply) -> ControlFlow<bool> {
match apply.callee.as_ref() {
Expr::Remote(Remote {
module, function, ..
}) => match (module.as_atom_symbol(), function.as_atom_symbol()) {
(Some(symbols::Erlang), Some(symbols::NifError)) => ControlFlow::Break(true),
_ => return ControlFlow::Continue(()),
},
Expr::FunctionVar(name)
if name.module() == Some(symbols::Erlang)
&& name.function() == Some(symbols::NifError) =>
{
ControlFlow::Break(true)
}
_ => ControlFlow::Continue(()),
}
}
// As an optimization we can skip over patterns, since the calls we're looking for will only occur in a non-pattern context
fn visit_mut_pattern(&mut self, _pattern: &mut Expr) -> ControlFlow<bool> {
ControlFlow::Continue(())
}
// Likewise, we can skip over the parts of clauses we don't need to check
fn visit_mut_clause(&mut self, clause: &mut Clause) -> ControlFlow<bool> {
for expr in clause.body.iter_mut() {
self.visit_mut_expr(expr)?;
}
ControlFlow::Continue(())
}
// The call to nif_error should exist near the entry of the function, so we can skip certain expression types
// which we know the call to nif_error/2 will not be in, or which are not going to be present in a nif stub
fn visit_mut_expr(&mut self, expr: &mut Expr) -> ControlFlow<bool> {
match expr {
Expr::Begin(ref mut begin) => self.visit_mut_begin(begin),
Expr::Apply(ref mut apply) => self.visit_mut_apply(apply),
Expr::Match(ref mut expr) => self.visit_mut_match(expr),
Expr::If(ref mut expr) => self.visit_mut_if(expr),
Expr::Catch(ref mut expr) => self.visit_mut_catch(expr),
Expr::Case(ref mut case) => self.visit_mut_case(case),
Expr::Try(ref mut expr) => self.visit_mut_try(expr),
Expr::Protect(ref mut protect) => self.visit_mut_protect(protect),
_ => ControlFlow::Continue(()),
}
}
}
|
pub mod passport_processing_part_1;
pub mod passport_processing_part_2;
|
use crate::algebra::{AssociativeMagma, InvertibleMagma, UnitalMagma};
/// A group.
///
/// This trait is an alias of [`AssociativeMagma`] + [`UnitalMagma`] + [`InvertibleMagma`].
///
/// [`AssociativeMagma`]: ./trait.AssociativeMagma.html
/// [`UnitalMagma`]: ./trait.UnitalMagma.html
/// [`InvertibleMagma`]: ./trait.InvertibleMagma.html
pub trait Group: AssociativeMagma + UnitalMagma + InvertibleMagma {}
impl<T: AssociativeMagma + UnitalMagma + InvertibleMagma> Group for T {}
|
/// ERROR packet can be the acknowledgment of any other type of packet.
/// The error code is an integer indicating the nature of the error. A
/// table of values and meanings is given in the appendix. (Note that
/// several error codes have been added to this version of this
/// document.) The error message is intended for human consumption, and
/// should be in netascii. Like all other strings, it is terminated with
/// a zero byte.
use std::io::Write;
use crate::tftp::shared::{Deserializable, OP_ERR, Serializable, TFTPPacket, TFTPParseError};
use super::byteorder::{ByteOrder, NetworkEndian, WriteBytesExt};
const ERR_LEN: usize = 4;
#[derive(Debug, Eq, PartialEq)]
pub struct ErrorPacket {
op: u16,
code: u16,
err: String,
}
#[derive(Debug, Eq, PartialEq)]
pub enum TFTPError {
UndefinedError,
FileNotFound,
AccessViolation,
DiskFull,
IllegalOperation,
UnknownTID,
FileExists,
}
fn get_err_by_code(code: u16) -> (TFTPError, String) {
match code {
0 => (
TFTPError::UndefinedError,
String::from("Not defined, see error message (if any)."),
),
1 => (TFTPError::FileNotFound, String::from("File not found.")),
2 => (
TFTPError::AccessViolation,
String::from("Access violation."),
),
3 => (
TFTPError::DiskFull,
String::from("Disk full or allocation exceeded."),
),
4 => (
TFTPError::IllegalOperation,
String::from("Illegal TFTP operation."),
),
5 => (
TFTPError::UnknownTID,
String::from("Unknown transfer ID."),
),
6 => (
TFTPError::FileExists,
String::from("File already exists."),
),
_ => (TFTPError::UndefinedError, String::new()),
}
}
fn get_err_details(err: TFTPError) -> (u16, String) {
match err {
TFTPError::UndefinedError => (
0,
String::from("Not defined, see error message (if any).\0"),
),
TFTPError::FileNotFound => (1, String::from("File not found.\0")),
TFTPError::AccessViolation => (2, String::from("Access violation.\0")),
TFTPError::DiskFull => (3, String::from("Disk full or allocation exceeded.\0")),
TFTPError::IllegalOperation => (4, String::from("Illegal TFTP operation.\0")),
TFTPError::UnknownTID => (5, String::from("Unknown transfer ID.\0")),
TFTPError::FileExists => (6, String::from("File already exists.\0")),
}
}
impl ErrorPacket {
pub fn new(err: TFTPError) -> Self {
let (code, msg) = get_err_details(err);
ErrorPacket {
op: OP_ERR,
code,
err: msg,
}
}
pub fn new_custom(err: String) -> Self {
let (code, _) = get_err_details(TFTPError::UndefinedError);
ErrorPacket {
op: OP_ERR,
code,
err,
}
}
pub fn code(&self) -> u16 {
self.code
}
pub fn err(&self) -> &str {
&self.err
}
}
impl Serializable for ErrorPacket {
fn box_serialize(self: Box<Self>) -> Vec<u8> {
self.serialize()
}
fn serialize(self) -> Vec<u8> {
let mut buf = Vec::with_capacity(ERR_LEN);
buf.write_u16::<NetworkEndian>(self.op).unwrap();
buf.write_u16::<NetworkEndian>(self.code).unwrap();
let terminated_err_msg: String = if !self.err.ends_with("\0") {
let mut err_msg = String::from(self.err);
err_msg.push('\0');
err_msg
} else {
self.err
};
buf.write_all(terminated_err_msg.as_bytes()).unwrap();
buf
}
}
impl Deserializable for ErrorPacket {
fn deserialize(buf: &[u8]) -> Result<TFTPPacket, TFTPParseError> {
let op = NetworkEndian::read_u16(buf);
if op != OP_ERR {
return Err(TFTPParseError::new(
format!("Bad OP code! [{}]", op).as_str(),
));
}
let code = NetworkEndian::read_u16(&buf[2..]);
let (err_type, _) = get_err_by_code(code);
if err_type == TFTPError::UndefinedError {
let buf = &buf[4..];
let len = buf.len();
let data = Vec::from(&buf[..len - 1]); // Skip the \0
let err = String::from_utf8(data).unwrap();
let p = ErrorPacket::new_custom(err);
return Ok(TFTPPacket::ERR(p));
}
let p = ErrorPacket::new(err_type);
Ok(TFTPPacket::ERR(p))
}
}
#[cfg(test)]
mod tests {
use std::io::Write;
use crate::tftp::shared::{Deserializable, OP_ERR, Serializable, TFTPPacket};
use crate::tftp::shared::err_packet::{ErrorPacket, get_err_details};
use crate::tftp::shared::err_packet::TFTPError::IllegalOperation;
use super::super::byteorder::{NetworkEndian, WriteBytesExt};
#[test]
fn serialize_ack_packet() {
let p = ErrorPacket::new(IllegalOperation);
let (code, err) = get_err_details(IllegalOperation);
let msg_bytes = &mut Vec::from(err.as_bytes());
let mut serialized = vec![0, 5, 0, code as u8];
serialized.append(msg_bytes);
assert_eq!(Box::new(p).serialize(), serialized);
}
#[test]
fn deserialize_ack_packet() {
let (err_code, err_msg) = get_err_details(IllegalOperation);
let mut buf = Vec::new();
let msg_bytes = &mut Vec::from(err_msg.as_bytes());
buf.write_u16::<NetworkEndian>(OP_ERR).unwrap();
buf.write_u16::<NetworkEndian>(err_code).unwrap();
buf.write_all(msg_bytes.as_slice()).unwrap();
if let TFTPPacket::ERR(p) = ErrorPacket::deserialize(&mut buf).unwrap() {
assert_eq!(p.op, OP_ERR);
assert_eq!(p.code, err_code);
assert_eq!(p.err, err_msg);
} else {
panic!("Invalid type")
}
}
#[test]
fn deserialize_error() {
let err_msg = "error message\0";
let err_code: u16 = 5;
let mut buf = Vec::new();
let msg_bytes = &mut Vec::from(err_msg.as_bytes());
let bad_op = OP_ERR + 1;
buf.write_u16::<NetworkEndian>(bad_op).unwrap();
buf.write_u16::<NetworkEndian>(err_code).unwrap();
buf.write_all(msg_bytes.as_slice()).unwrap();
let p = ErrorPacket::deserialize(&mut buf).unwrap_err();
assert_eq!(p.details, format!("Bad OP code! [{}]", bad_op).as_str())
}
}
|
extern crate bindgen;
extern crate pkg_config;
use std::env;
use std::path::PathBuf;
use cmake;
fn update_submodules(modules: &[&str], dir: &str) {
let mut args = vec![
"submodule",
"update",
"--init",
"--depth", "1",
"--recommend-shallow",
];
args.extend_from_slice(modules);
let output = std::process::Command::new("git")
.current_dir(dir)
.args(args.into_iter())
.output()
.expect("Failed to update submodules");
if !output.status.success() {
panic!("Update submodules failed with status {:?}", output);
}
}
fn main() {
// check for dependencies
pkg_config::probe_library("uuid").unwrap();
pkg_config::probe_library("openssl").unwrap();
pkg_config::probe_library("libcurl").unwrap();
let mut config = Config::new("azure-iot-sdk-c");
config
.define("use_edge_modules", "ON")
.define("skip_samples", "ON")
.define("CMAKE_C_FLAGS", "-Wno-array-parameter -Wno-deprecated-declarations -Wno-discarded-qualifiers");
let mut modules = vec![
"c-utility",
"deps/umock-c",
"deps/parson",
"deps/azure-macro-utils-c"
];
if env::var_os("CARGO_FEATURE_AMQP").is_some() {
modules.push("uamqp/");
config.define("use_amqp", "ON");
} else {
config.define("use_amqp", "OFF");
}
if env::var_os("CARGO_FEATURE_MQTT").is_some() {
modules.push("umqtt");
config.define("use_mqtt", "ON");
println!("cargo:rustc-link-lib=umqtt");
println!("cargo:rustc-link-lib=iothub_client_mqtt_transport");
} else {
config.define("use_mqtt", "OFF");
}
if env::var_os("CARGO_FEATURE_HTTP").is_some() {
config.define("use_http", "ON");
modules.push("deps/uhttp/");
println!("cargo:rustc-link-lib=uhttp");
} else {
config.define("use_http", "OFF");
}
if env::var_os("CARGO_FEATURE_PROV_CLIENT").is_some() {
config.define("use_prov_client", "ON");
modules.push("provisioning_client/deps/utpm/");
println!("cargo:rustc-link-lib=utpm");
} else {
config.define("use_prov_client", "OFF");
}
if env::var_os("UPDATE_SUBMODULES").is_some() {
update_submodules(&["azure-iot-sdk-c/"], ".");
update_submodules(&modules, "azure-iot-sdk-c");
}
// Builds the azure iot sdk, installing it
// into $OUT_DIR
use cmake::Config;
let dst = config.build();
println!("cargo:rustc-link-search=native={}/lib", dst.display());
// Tell cargo to tell rustc to link the azureiot libraries.
println!("cargo:rustc-link-lib=iothub_client");
println!("cargo:rustc-link-lib=parson");
println!("cargo:rustc-link-lib=prov_auth_client");
println!("cargo:rustc-link-lib=hsm_security_client");
println!("cargo:rustc-link-lib=aziotsharedutil");
println!("cargo:rustc-link-lib=curl");
println!("cargo:rustc-link-lib=ssl");
println!("cargo:rustc-link-lib=crypto");
println!("cargo:rustc-link-lib=uuid");
// Tell cargo to invalidate the built crate whenever the wrapper changes
println!("cargo:rerun-if-changed=wrapper.h");
// The bindgen::Builder is the main entry point
// to bindgen, and lets you build up options for
// the resulting bindings.
let bindings = bindgen::Builder::default()
// The input header we would like to generate
// bindings for.
.header("wrapper.h")
// additional clang arguments.
.clang_arg(format!("-I{}/include", dst.display()))
.clang_arg(format!("-I{}/include/azureiot", dst.display()))
.clang_arg("-DUSE_EDGE_MODULES")
// Tell cargo to invalidate the built crate whenever any of the
// included header files changed.
.parse_callbacks(Box::new(bindgen::CargoCallbacks))
// Finish the builder and generate the bindings.
.generate()
// Unwrap the Result and panic on failure.
.expect("Unable to generate bindings");
// Write the bindings to the $OUT_DIR/bindings.rs file.
let out_path = PathBuf::from(env::var("OUT_DIR").unwrap());
bindings
.write_to_file(out_path.join("bindings.rs"))
.expect("Couldn't write bindings!");
} |
use super::context::{
downcast_ctx, Context, ContextType, Ctx, PineRuntimeError, Runner, VarOperate,
};
// use super::ctxid_parser::CtxIdParser;
use super::output::{InputSrc, InputVal, SymbolInfo};
use super::{AnySeries, AnySeriesType};
use crate::ast::stat_expr_types::{Block, VarIndex};
use crate::types::{
DataType, Float, Int, PineFrom, PineRef, PineType, RefData, RuntimeErr, Series,
};
use std::mem;
use std::rc::Rc;
pub trait Callback {
fn print(&self, _str: String) {}
fn plot(&self, _floats: Vec<f64>) {}
}
pub struct NoneCallback();
impl Callback for NoneCallback {}
pub struct DataSrc<'a> {
lib_context: Box<dyn Ctx<'a> + 'a>,
context: Box<dyn Ctx<'a> + 'a>,
blk: &'a Block<'a>,
input_index: i32,
input_names: Vec<(&'a str, AnySeriesType)>,
pub callback: &'a dyn Callback,
inputs: Vec<Option<InputVal>>,
input_srcs: Option<InputSrc>,
has_run: bool,
}
pub fn parse_datalen<'a>(
data: &Vec<(&'static str, AnySeries)>,
names: &Vec<(&'a str, AnySeriesType)>,
) -> Result<usize, PineRuntimeError> {
let lens: Vec<usize> = data
.iter()
.filter_map(|(name, v)| match names.iter().find(|(n, _)| n == name) {
Some(_) => Some(v.len()),
None => None,
})
.collect();
if lens.len() == 0 {
return Ok(0);
// return Err(PineRuntimeError::new_no_range(RuntimeErr::NotValidParam));
}
for l in &lens[1..] {
if *l != lens[0] {
return Err(PineRuntimeError::new_no_range(RuntimeErr::NotValidParam));
}
}
Ok(lens[0])
}
impl<'a> DataSrc<'a> {
pub fn new(
blk: &'a Block<'a>,
lib_vars: Vec<(&'a str, PineRef<'a>)>,
input_names: Vec<(&'a str, AnySeriesType)>,
callback: &'a dyn Callback,
) -> DataSrc<'a> {
let input_index = lib_vars.len() as i32;
let mut context = Box::new(Context::new(None, ContextType::Library));
let libvar_count = input_index + input_names.len() as i32;
context.init(libvar_count, 1, 0);
for (i, (_k, v)) in lib_vars.into_iter().enumerate() {
context.create_var(i as i32, v);
context.set_varname_index(_k, i as i32);
}
// Create variable from the hash map
for (i, (name, input_type)) in input_names.iter().enumerate() {
match input_type {
AnySeriesType::Int => {
let s: Series<Int> = Series::new();
context.create_var(input_index + i as i32, PineRef::new_rc(s));
context.set_varname_index(*name, input_index + i as i32);
}
AnySeriesType::Float => {
let s: Series<Float> = Series::new();
context.create_var(input_index + i as i32, PineRef::new_rc(s));
context.set_varname_index(*name, input_index + i as i32);
}
}
}
let libctx_ptr = Box::into_raw(context);
let mut main_ctx = Box::new(Context::new(
Some(unsafe { libctx_ptr.as_mut().unwrap() }),
ContextType::Main,
));
main_ctx.init(blk.var_count, blk.subctx_count, blk.libfun_count);
DataSrc {
blk,
context: main_ctx,
lib_context: unsafe { Box::from_raw(libctx_ptr) },
input_names,
input_index,
callback,
inputs: vec![],
input_srcs: None,
has_run: false,
}
}
pub fn reset_vars(&mut self) {
if !self.has_run {
return;
}
println!("Will reset vars");
let parent = unsafe { mem::transmute::<_, &mut (dyn Ctx<'a>)>(self.lib_context.as_mut()) };
let mut main_ctx = Context::new(Some(parent), ContextType::Main);
// Set the inputs and input sources.
main_ctx.change_inputs(self.inputs.clone());
if let Some(input_src) = self.input_srcs.as_ref() {
main_ctx.add_input_src(input_src.clone());
}
// let libvar_count = self.input_index + self.input_names.len() as i32;
main_ctx.init(
self.blk.var_count,
self.blk.subctx_count,
self.blk.libfun_count,
);
self.context = Box::new(main_ctx);
}
pub fn change_inputs(&mut self, inputs: Vec<Option<InputVal>>) {
self.inputs = inputs;
downcast_ctx(self.context.as_mut()).change_inputs(self.inputs.clone());
}
pub fn set_input_srcs(&mut self, srcs: Vec<String>) {
self.input_srcs = Some(InputSrc::new(None, srcs));
downcast_ctx(self.context.as_mut())
.add_input_src(self.input_srcs.as_ref().unwrap().clone());
}
fn run_data(
&mut self,
data: &Vec<(&'static str, AnySeries)>,
start: i64,
len: usize,
) -> Result<(), PineRuntimeError> {
let bar_index = self.input_names.iter().position(|(s, _)| *s == "bar_index");
let name_indexs: Vec<Option<usize>> = data
.iter()
.map(|(k, _)| self.input_names.iter().position(|(s, _)| *s == *k))
.collect();
for iter_i in start..(start + len as i64) {
// Extract data into context
for (index, (_k, v)) in data.iter().enumerate() {
if let Some(name_index) = name_indexs[index] {
let var_index = VarIndex::new(self.input_index + name_index as i32, 0);
let series = self.lib_context.move_var(var_index).unwrap();
match series.get_type().0 {
DataType::Float => {
let mut float_s: RefData<Series<Float>> =
Series::implicity_from(series).unwrap();
float_s.update(v.index((iter_i - start) as isize));
self.lib_context.update_var(var_index, float_s.into_pf());
}
DataType::Int => {
let mut int_s: RefData<Series<Int>> =
Series::implicity_from(series).unwrap();
int_s.update(v.index((iter_i - start) as isize));
self.lib_context.update_var(var_index, int_s.into_pf());
}
_ => unreachable!(),
}
} else {
// TODO: Remove this data copy.
downcast_ctx(self.lib_context.as_mut())
.insert_input_data(String::from(*_k), v.clone());
}
}
if let Some(bar_index) = bar_index {
let var_index = VarIndex::new(self.input_index + bar_index as i32, 0);
let series = self.lib_context.move_var(var_index).unwrap();
let mut index_s: RefData<Series<Int>> = Series::implicity_from(series).unwrap();
index_s.update(Some(iter_i as i64));
self.lib_context.update_var(var_index, index_s.into_pf());
}
self.context.set_iterindex(iter_i as i32);
self.blk.run(self.context.as_mut())?;
let lib_ctx = downcast_ctx(self.lib_context.as_mut());
// main context is not children of Library context, so commit it alone.
lib_ctx.commit();
let main_ctx = downcast_ctx(self.context.as_mut());
main_ctx.commit();
main_ctx.clear_is_run();
// self.context.clear_declare();
main_ctx.reset_input_index();
main_ctx.let_input_info_ready();
}
let main_ctx = downcast_ctx(self.context.as_mut());
match downcast_ctx(main_ctx).run_callbacks() {
Err(err) => Err(PineRuntimeError::new_no_range(err)),
_ => {
main_ctx.let_output_info_ready();
Ok(())
}
}
}
pub fn run(
&mut self,
data: &Vec<(&'static str, AnySeries)>,
syminfo: Option<Rc<SymbolInfo>>,
) -> Result<(), PineRuntimeError> {
let len = parse_datalen(data, &self.input_names)?;
self.runl(data, len, syminfo)
}
pub fn runl(
&mut self,
data: &Vec<(&'static str, AnySeries)>,
len: usize,
syminfo: Option<Rc<SymbolInfo>>,
) -> Result<(), PineRuntimeError> {
// Update the range of data.
self.reset_vars();
let main_ctx = downcast_ctx(self.context.as_mut());
main_ctx.update_data_range((Some(0), Some(len as i32)));
if let Some(syminfo) = syminfo {
main_ctx.set_syminfo(syminfo);
}
self.has_run = true;
self.run_data(data, 0, len)
}
pub fn update(
&mut self,
data: &Vec<(&'static str, AnySeries)>,
) -> Result<(), PineRuntimeError> {
let len = parse_datalen(data, &self.input_names)?;
self.updatel(data, len)
}
pub fn updatel(
&mut self,
data: &Vec<(&'static str, AnySeries)>,
len: usize,
) -> Result<(), PineRuntimeError> {
let main_ctx = downcast_ctx(self.context.as_mut());
// Get the range of exist running data.
let range = main_ctx.get_data_range();
// The new data's start index.
let start = range.1.unwrap() - 1;
main_ctx.update_data_range((Some(start), Some(start + len as i32)));
main_ctx.roll_back()?;
self.run_data(data, start as i64, len)
}
pub fn update_from(
&mut self,
data: &Vec<(&'static str, AnySeries)>,
from: i32,
) -> Result<(), PineRuntimeError> {
let len = parse_datalen(data, &self.input_names)?;
self.update_froml(data, from, len)
}
pub fn update_froml(
&mut self,
data: &Vec<(&'static str, AnySeries)>,
from: i32,
len: usize,
) -> Result<(), PineRuntimeError> {
let main_ctx = downcast_ctx(self.context.as_mut());
let range = main_ctx.get_data_range();
// Calculate the count of roll_back invocation
let roll_count = range.1.unwrap() - from;
main_ctx.update_data_range((Some(from), Some(from + len as i32)));
for _ in 0..roll_count {
main_ctx.roll_back()?;
}
self.run_data(data, from as i64, len)
}
pub fn get_context(&mut self) -> &mut dyn Ctx<'a> {
unsafe { mem::transmute::<_, &mut dyn Ctx<'a>>(self.context.as_mut()) }
}
}
#[cfg(test)]
mod tests {
use super::*;
use crate::ast::input::{Position, StrRange};
use crate::ast::name::VarName;
use crate::ast::stat_expr_types::{Assignment, Exp, RVVarName, Statement};
use crate::ast::syntax_type::{SimpleSyntaxType, SyntaxType};
use crate::syntax::{ParseValue, SyntaxParser};
struct MyCallback;
impl Callback for MyCallback {}
#[test]
fn datasrc_test() {
let mut blk = Block::new(
vec![Statement::Assignment(Box::new(Assignment::new(
vec![VarName::new_with_start("hello", Position::new(0, 0))],
Exp::VarName(RVVarName::new_with_start("close", Position::new(0, 6))),
false,
None,
StrRange::from_start("hello=close", Position::new(0, 0)),
)))],
None,
StrRange::from_start("hello=close", Position::new(0, 0)),
);
let typemap = vec![("close", SyntaxType::Series(SimpleSyntaxType::Float))];
assert_eq!(
SyntaxParser::new_with_libvars(&typemap).parse_blk(&mut blk),
Ok(ParseValue::new_with_type(SyntaxType::Void))
);
assert_eq!(blk.var_count, 1);
assert_eq!(blk.subctx_count, 0);
let mut datasrc = DataSrc::new(
&blk,
vec![],
vec![("close", AnySeriesType::Float)],
&MyCallback,
);
assert_eq!(datasrc.context.var_len(), 1);
let data = vec![(
"close",
AnySeries::from_float_vec(vec![Some(10f64), Some(100f64)]),
)];
assert_eq!(datasrc.run(&data, None), Ok(()));
downcast_ctx(datasrc.context.as_mut()).map_var(VarIndex::new(0, 0), |hv| match hv {
None => None,
Some(v) => {
let ser: RefData<Series<Float>> = Series::implicity_from(v).unwrap();
let expect_ser = RefData::new_rc(Series::from_vec(vec![Some(10f64), Some(100f64)]));
assert_eq!(ser, expect_ser);
Some(ser.into_pf())
}
});
}
}
|
use input_i_scanner::{scan_with, InputIScanner};
fn dfs(i: usize, p: usize, g: &Vec<Vec<usize>>, size: &mut Vec<usize>, dp: &mut Vec<u64>) {
size[i] = 1;
for &j in &g[i] {
if j == p {
continue;
}
dfs(j, i, g, size, dp);
size[i] += size[j];
dp[i] += dp[j] + size[j] as u64;
}
}
fn main() {
let stdin = std::io::stdin();
let mut _i_i = InputIScanner::from(stdin.lock());
let n = scan_with!(_i_i, usize);
let mut g = vec![vec![]; n];
for _ in 0..(n - 1) {
let (u, v) = scan_with!(_i_i, (usize, usize));
g[u - 1].push(v - 1);
g[v - 1].push(u - 1);
}
let mut size = vec![0; n];
let mut dp = vec![0; n];
dfs(0, !0, &g, &mut size, &mut dp);
let mut ans = vec![0; n];
ans[0] = dp[0];
use std::collections::VecDeque;
let mut q = VecDeque::new();
q.push_back((0, !0));
while let Some((i, p)) = q.pop_front() {
for &j in &g[i] {
if j == p {
continue;
}
ans[j] = ans[i] - size[j] as u64 + (n - size[j]) as u64;
q.push_back((j, i));
}
}
for ans in ans {
println!("{}", ans);
}
}
|
//! [](https://github.com/nvzqz/static-assertions-rs)
//!
//! Compile-time assertions to ensure that invariants are met.
//!
//! _All_ assertions within this crate are performed at [compile-time]. This
//! allows for finding errors quickly and early when it comes to ensuring
//! certain features or aspects of a codebase. These macros are especially
//! important when exposing a public API that requires types to be the same size
//! or implement certain traits.
//!
//! # Usage
//!
//! This crate is available [on crates.io][crate] and can be used by adding the
//! following to your project's [`Cargo.toml`]:
//!
//! ```toml
//! [dependencies]
//! static_assertions = "0.3.1"
//! ```
//!
//! and this to your crate root (`main.rs` or `lib.rs`):
//!
//! ```
//! #[macro_use]
//! extern crate static_assertions;
//! # fn main() {}
//! ```
//!
//! # Examples
//!
//! Very thorough examples are provided in the docs for
//! [each individual macro](#macros). Failure case examples are also documented.
//!
//! # Limitations
//!
//! Due to implementation details, some macros can only be used normally from
//! within the context of a function. To use these macros in other contexts, a
//! unique label must be provided.
//!
//! ```compile_fail
//! # #[macro_use] extern crate static_assertions;
//! # fn main() {}
//! // error: expected item after attributes
//! const_assert!(true == true);
//! ```
//!
//! This can be fixed via:
//!
#![cfg_attr(feature = "nightly", doc = "```ignore")]
#![cfg_attr(not(feature = "nightly"), doc = "```")]
//! # #[macro_use] extern crate static_assertions;
//! # fn main() {}
//! const_assert!(label; true == true);
//! ```
//!
//! This can be followed at [issue #1][issue1].
//!
//! ## Labeling Limitation Fix
//!
//! The labeling workaround is **not
//! necessary** (and is <span style="color:red">r<strong>emoved</strong></span>)
//! when compiling on nightly Rust with the `nightly` feature flag enabled. This
//! can be done by having the following in your project's [`Cargo.toml`]:
//!
//! ```toml
//! [dependencies.static_assertions]
//! version = "0.3.1"
//! features = ["nightly"]
//! ```
//!
//! To compile with nightly Rust, run the following in your
//! [shell](https://en.wikipedia.org/wiki/Shell_(computing)) or
//! [command prompt](https://en.wikipedia.org/wiki/Command_Prompt) of choice:
//!
//! ```sh
//! rustup install nightly
//! cargo +nightly build
//! ```
//!
//! Notice that this also requires enabling the
//! [`underscore_const_names`](https://github.com/rust-lang/rust/issues/54912)
//! nightly Rust feature:
//!
#![cfg_attr(feature = "nightly", doc = "```")]
#![cfg_attr(not(feature = "nightly"), doc = "```ignore")]
//! #![feature(underscore_const_names)]
//! # #[macro_use] extern crate static_assertions;
//!
//! const_assert!(true != false);
//!
//! fn main() {
//! const_assert!(false != true);
//! }
//! ```
//!
//! # Changes
//!
//! See [`CHANGELOG.md`](https://github.com/nvzqz/static-assertions-rs/blob/master/CHANGELOG.md)
//! for a complete list of what has changed from one version to another.
//!
//! # Donate
//!
//! This project is made freely available (as in free beer), but unfortunately
//! not all beer is free! So, if you would like to buy me a beer (or coffee or
//! *more*), then consider supporting my work that's benefited your project
//! and thousands of others.
//!
//! <a href="https://www.patreon.com/nvzqz">
//! <img src="https://c5.patreon.com/external/logo/become_a_patron_button.png" alt="Become a Patron!" height="35">
//! </a>
//! <a href="https://www.paypal.me/nvzqz">
//! <img src="https://buymecoffee.intm.org/img/button-paypal-white.png" alt="Buy me a coffee" height="35">
//! </a>
//!
//! [issue1]: https://github.com/nvzqz/static-assertions-rs/issues/1
//! [crate]: https://crates.io/crates/static_assertions
//! [compile-time]: https://en.wikipedia.org/wiki/Compile_time
//! [`Cargo.toml`]: https://doc.rust-lang.org/cargo/reference/manifest.html
#![doc(html_root_url = "https://docs.rs/static_assertions/0.3.1")]
#![doc(html_logo_url = "https://raw.githubusercontent.com/nvzqz/static-assertions-rs/assets/Icon.png")]
#![no_std]
#![deny(unused_macros)]
#[doc(hidden)]
pub extern crate core as _core;
mod assert_cfg;
mod assert_eq_size;
mod assert_fields;
mod assert_impl;
mod assert_obj_safe;
mod const_assert;
|
use grapl_service::decoder::NdjsonDecoder;
use sqs_executor::event_decoder::PayloadDecoder;
use tokio::fs;
#[cfg(test)]
pub(crate) async fn read_osquery_test_data(path: &str) -> Vec<crate::parsers::OSQueryEvent> {
let file_data = fs::read(format!("sample_data/{}", path))
.await
.expect(&format!("Failed to read test data ({}).", path));
let mut decoder = NdjsonDecoder::default();
decoder.decode(file_data).unwrap()
}
|
use itertools::Itertools;
use std::env;
use std::io::{self, BufRead};
fn format_layer(layer: &str, width: usize) {
for line in &layer.chars().chunks(width) {
print!(" ");
for c in line {
if c == '1' {
print!("🎅")
} else {
print!(" ");
}
}
println!("");
}
}
fn count_digit(layer: &str, c: char) -> usize {
layer.chars().filter(|&d| d == c).count()
}
fn main() {
let args: Vec<String> = env::args().skip(1).collect();
let width: usize = args[0].parse().unwrap();
let height: usize = args[1].parse().unwrap();
let stdin = io::stdin();
let handle = stdin.lock();
let line = handle
.lines()
.map(|l| l.unwrap())
.collect::<Vec<String>>()
.join("");
let layers: Vec<String> = line
.chars()
.chunks(width * height)
.into_iter()
.map(|layer| layer.collect::<String>())
.collect();
let fewest_0_digits = layers
.iter()
.min_by_key(|layer| count_digit(layer, '0'))
.unwrap();
format_layer(fewest_0_digits, width);
println!(
"{}",
count_digit(fewest_0_digits, '1') * count_digit(fewest_0_digits, '2')
);
let zero: String = "2".repeat(width * height);
let composited = layers.iter().fold(zero, |upper, lower| {
upper
.chars()
.zip_eq(lower.chars())
.map(|(c, d)| if c == '2' { d } else { c })
.collect::<String>()
});
format_layer(&composited, width);
}
|
use ::smallvec::SmallVec;
use ::std::fmt;
use crate::util::{CoordType, Minimum, Point};
#[derive(Debug)]
struct BoundingBox {
min_x: CoordType,
length_x: CoordType,
min_y: CoordType,
length_y: CoordType,
min_z: CoordType,
length_z: CoordType,
}
#[derive(Debug, Clone)]
struct PointCubeXAssignment {
point: Point,
x_cube_nr: usize,
}
//TODO @mverleg: which fields are used?
struct Cubes {
bbox: BoundingBox,
rib_length: CoordType,
x_cnt: usize,
y_cnt: usize,
z_cnt: usize,
yz_cnt: usize,
total_cnt: usize,
data: Vec<Vec<PointCubeXAssignment>>
}
impl Cubes {
fn yz_to_index(&self, y: usize, z: usize) -> usize {
debug_assert!(y < self.y_cnt);
debug_assert!(z < self.z_cnt);
y + self.y_cnt * z
}
fn pos_to_index(&self, pos: CoordType, minimum: CoordType) -> usize {
((pos - minimum) / self.rib_length).floor() as usize
}
fn add_to_xrow(&mut self, y: usize, z: usize, point: Point) {
let yz_index = self.yz_to_index(y, z);
let x_cube_nr = 0;
let point_assignment = PointCubeXAssignment {
point,
x_cube_nr,
};
self.data[yz_index].push(point_assignment);
}
fn get_xpoints(&self, yz_index: usize) -> &[Point] {
debug_assert!(yz_index < self.yz_cnt);
&self.data[yz_index]
}
fn sort(&mut self) {
// TODO @mverleg: parallel?
for xrow in &mut self.data {
// TODO @mverleg: unstable sort?
xrow.sort_by(|p1, p2| p1.x_cube_nr.partial_cmp(&p2.x_cube_nr).unwrap());
}
}
}
impl fmt::Debug for Cubes {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> Result<(), fmt::Error> {
f.write_str("Cubes[")?;
f.write_str(&format!("{}", self.x_cnt))?;
f.write_str(" x ")?;
f.write_str(&format!("{}", self.y_cnt))?;
f.write_str(" x ")?;
f.write_str(&format!("{}", self.z_cnt))?;
f.write_str("]")
}
}
impl BoundingBox {
fn volume(&self) -> CoordType {
self.length_x * self.length_y * self.length_z
}
fn calc_cubes(self, rib_len: CoordType, point_cnt: usize) -> Cubes {
let x_cnt = (self.length_x / rib_len).ceil() as usize;
let y_cnt = (self.length_y / rib_len).ceil() as usize;
let z_cnt = (self.length_z / rib_len).ceil() as usize;
let yz_cnt = y_cnt * z_cnt;
let total_cnt = x_cnt * yz_cnt;
//TODO @mverleg: tune capacity
let yz_bin_expected_cnt = (1 + point_cnt / yz_cnt);
let data = vec![Vec::with_capacity(yz_bin_expected_cnt); yz_cnt];
Cubes {
bbox: self,
rib_length: rib_len,
x_cnt,
y_cnt,
z_cnt,
yz_cnt,
total_cnt,
data,
}
}
}
fn find_extrema(points: &[Point]) -> BoundingBox {
let mut min_x: CoordType = points[0].x;
let mut max_x: CoordType = points[0].x;
let mut min_y: CoordType = points[0].y;
let mut max_y: CoordType = points[0].y;
let mut min_z: CoordType = points[0].z;
let mut max_z: CoordType = points[0].z;
for point in points {
if point.x < min_x {
min_x = point.x;
}
if point.x > max_x {
max_x = point.x;
}
if point.y < min_y {
min_y = point.y;
}
if point.y > max_y {
max_y = point.y;
}
if point.z < min_z {
min_z = point.z;
}
if point.z > max_z {
max_z = point.z;
}
}
BoundingBox {
min_x,
length_x: max_x - min_x,
min_y,
length_y: max_y - min_y,
min_z,
length_z: max_z - min_z,
}
}
// Minimum cube rib length to still find the nearest pair even if totally homogeneous
fn min_cube_size(bounding_box: &BoundingBox, point_cnt: usize) -> CoordType {
(bounding_box.volume() / point_cnt as f64).cbrt()
}
fn assign_points_to_cubes(points: &[Point], grid: &mut Cubes) {
for point in points {
let y = grid.pos_to_index(point.y, grid.bbox.min_y);
let z = grid.pos_to_index(point.z, grid.bbox.min_z);
//TODO @mverleg: get rid of clone?
grid.add_to_xrow(y, z, point.clone());
}
grid.sort();
}
fn find_nearest_points(grid: &Cubes) -> (Point, Point) {
//TODO @mverleg: paralellize
for yz_ind in 0..grid.yz_cnt {
// For each x-row
let xbox_ind = 0;
let row = grid.get_xpoints(yx_ind);
for left_x_ind in 0..row.len() {
let left_xpoint = row[left_x_ind];
for right_x_ind in (left_x_ind + 1)..row.len() {
let mut right_xpoint = row[right_x_ind];
if right_xpoint.x_cube_nr > left_xpoint.x_cube_nr + 1 {
// More than one cube apart, go to the next left point
break;
}
//TODO @mverleg:
}
}
}
unimplemented!()
}
#[allow(dead_code)]
pub fn boxing_ser(points: &mut [Point]) -> (Point, Point) {
let bbox = find_extrema(points);
let min_len = min_cube_size(&bbox, points.len());
//TODO @mverleg: tune box_size
let box_size = 3.0 * min_len;
let mut cubes = bbox.calc_cubes(box_size, points.len());
println!("cubes: {:?}", &cubes);
assign_points_to_cubes(points, &mut cubes);
find_nearest_points(&cubes)
// let mut minimum = Minimum::new(
// points[0].clone(),
// points[1].clone(),
// );
// for i in 0..points.len() {
// let p1 = points[i];
// for j in (i + 1)..points.len() {
// let p2 = points[j];
// if p1.dist2(&p2) < minimum.dist2 {
// minimum = Minimum::new(
// p1.clone(),
// p2.clone(),
// );
// }
// }
// }
// (minimum.point1, minimum.point2)
//unimplemented!();
}
|
macro_rules! byte_array_to_rust {
($ptr:ident, $len:expr) => {
if $ptr.is_null() || $len == 0 {
Vec::new()
} else {
unsafe { std::slice::from_raw_parts($ptr, $len as usize).to_vec() }
}
}
}
macro_rules! buffer_to_vec {
($buffer:ident) => {
if $buffer.data.is_null() || $buffer.length == 0 {
Vec::new()
} else {
unsafe { std::slice::from_raw_parts($buffer.data, $buffer.length).to_vec() }
}
};
}
macro_rules! assign_out_string {
($input:expr, $string:expr) => {
*$input = ffi_support::rust_string_to_c($string);
}
}
|
use std::cell::RefCell;
use std::collections::HashMap;
use std::fs;
use crate::context::{Build, CloneSafe};
use crate::error::{Result, TensorNodeError};
use crate::nodes::NodeRoot;
pub struct NodeCache<T: Build> {
paths: RefCell<HashMap<String, String>>,
caches_source: RefCell<HashMap<String, String>>,
caches: RefCell<HashMap<String, T::Output>>,
}
impl<T: Build> NodeCache<T> {
pub fn new(caches: HashMap<String, String>) -> Self {
Self {
paths: RefCell::default(),
caches_source: RefCell::new(caches),
caches: RefCell::default(),
}
}
pub fn add_source(&self, name: String, source: String) {
self.caches_source.borrow_mut().insert(name, source);
}
pub fn add_path(&self, name: String, path: String) {
self.paths.borrow_mut().insert(name, path);
}
pub fn get(&self, name: &str, root: &NodeRoot) -> Result<T::Output> {
if let Some(cache) = self.caches.borrow().get(name) {
let mut variables = vec![];
return Ok(cache.clone_safe(&root.seed, &mut variables));
}
let path = self.paths.borrow_mut().remove(name);
if let Some(path) = path {
let source = fs::read_to_string(path)?;
return self.build_and_store(name, root, source);
}
let source = self.caches_source.borrow_mut().remove(name);
if let Some(source) = source {
return self.build_and_store(name, root, source);
}
TensorNodeError::NoSuchNode {
name: name.to_string(),
}
.into()
}
fn build_and_store(&self, name: &str, root: &NodeRoot, source: String) -> Result<T::Output> {
// TODO: detect cycling
let result = T::build(root, name, source)?;
let mut variables = vec![];
let cloned = result.clone_safe(&root.seed, &mut variables);
self.caches.borrow_mut().insert(name.to_string(), result);
Ok(cloned)
}
}
|
use std::sync::Mutex;
use std::time::{SystemTime, UNIX_EPOCH};
use actix_web::{web, App, HttpServer, HttpRequest, HttpResponse};
extern crate reqwest;
extern crate getopts;
use getopts::Options;
use std::env;
static URL: &str = "http://127.0.0.1:8080/"; // URL веб-сервера по умолчанию
static BIND: &str = "127.0.0.1:8000"; // хост:порт для подключений клиентов по умолчанию
static VALID_TIME: u64 = 20;
struct CacheObject
{
response:String,
timestamp:SystemTime,
url:String
}
fn fetch(co:&mut CacheObject)
{
let url = format!("{}", co.url);
match reqwest::get(&url)
{
Ok(mut x) => {
co.response = x.text().unwrap();
co.timestamp = SystemTime::now();
},
Err(_) => {
println!("Warning: returning old reponse due to request error!");
}
};
}
fn index(co: web::Data<Mutex<CacheObject>>, _req: HttpRequest) -> HttpResponse
{
{
let mut co = &mut *(co.lock().unwrap());
if SystemTime::now().duration_since(co.timestamp).unwrap().as_secs() >= VALID_TIME
{
fetch(&mut co);
}
}
let co = &*(co.lock().unwrap());
HttpResponse::Ok().header("Cache-Control", format!("only-if-cached,max-age={}", VALID_TIME - co.timestamp.elapsed().unwrap().as_secs())).body(co.response.clone())
}
fn print_usage(program: &str, opts: Options) {
let brief = format!("{} -U <url> -B <local address>", program);
print!("{}", opts.usage(&brief));
}
fn main()
{
let mut localbind: String = BIND.to_string();
let mut url: String = URL.to_string();
let args: Vec<String> = env::args().collect();
let program = args[0].clone();
let mut opts = Options::new();
opts.optopt("U", "url", "Forward URL (default http://127.0.0.1:8000)", "URL");
opts.optopt("B", "bind", "Bind address (default 127.0.0.1:8888)", "BIND");
opts.optflag("h", "help", "Help message");
let matches = match opts.parse(&args[1..])
{
Ok(m) => { m }
Err(_) => { print_usage(&program, opts); return (); }
};
if matches.opt_present("h")
{
print_usage(&program, opts);
return ();
}
if matches.opt_present("U")
{
url = matches.opt_str("U").unwrap().clone();
}
if matches.opt_present("B")
{
localbind = matches.opt_str("B").unwrap().clone();
}
println!("Bind address: {}", localbind);
println!("URL: {}", url);
let mut co = CacheObject {response:"".to_string(), timestamp:UNIX_EPOCH, url:url.clone()};
match reqwest::get(&url)
{
Ok(mut x) => {co.response = x.text().unwrap(); },
Err(e) => {println!("Invalid URL: {}", e); return ();}
}
let cache = web::Data::new(Mutex::new(co));
let srv = HttpServer::new(move || {
App::new()
.register_data(cache.clone())
.service(web::resource("/").to(index))
});
match srv.bind(localbind)
{
Ok(srv) => {srv.run().unwrap();},
Err(e) => {println!("Bind error: {}", e);}
}
}
|
extern crate psutil;
#[test]
fn uptime() {
assert!(psutil::system::uptime() > 0);
}
#[test]
fn virtual_memory() {
let vm = psutil::system::virtual_memory().unwrap();
// simple sanity checking
assert!(vm.total != 0);
assert!(vm.free <= vm.total);
assert!(vm.percent > 0.0);
}
#[test]
fn swap_memory() {
let sm = psutil::system::swap_memory().unwrap();
// simple sanity checking
if sm.total != 0 {
assert!(sm.free <= sm.total);
assert!(sm.percent >= 0.0);
}
}
#[test]
fn loadaverage() {
let load = psutil::system::loadavg().unwrap();
// shouldn't be negative
assert!(load.one >= 0.0);
assert!(load.five >= 0.0);
assert!(load.fifteen >= 0.0);
}
|
use serde::*;
use crate::util;
pub type UserId = i32;
#[derive(Debug, Serialize, Deserialize)]
pub struct User {
pub user_id: UserId,
user_secret: String,
}
impl User {
pub fn new(id: UserId) -> Self {
User {
user_id: id,
user_secret: util::generate_random_string(10),
}
}
}
|
//! Example program drawing some text on a page.
#[macro_use]
extern crate simple_pdf;
use simple_pdf::graphicsstate::Color;
use simple_pdf::units::{Millimeters, Points, UserSpace};
use simple_pdf::{BuiltinFont, Pdf};
use std::io;
/// Create a `text.pdf` file, with a single page containg some
/// text lines positioned in various ways on some helper lines.
fn main() -> io::Result<()> {
let mut document = Pdf::create("text.pdf").expect("Could not create file.");
document.set_title("Text example");
let h = pt!(mm!(297));
let w = pt!(mm!(210));
document.render_page(w, h, |c| {
c.set_stroke_color(Color::rgb(200, 200, 255))?;
c.set_dash(&[pt!(0), pt!(0), pt!(0)], pt!(-0.5))?;
c.rectangle(pt!(10), pt!(10), w - pt!(20), h - pt!(20))?;
c.line(pt!(10), h / 2, w - pt!(10), h / 2)?;
c.line(w / 2, pt!(10), w / 2, h - pt!(10))?;
c.stroke()?;
let helvetica = BuiltinFont::Helvetica;
c.left_text(pt!(10), h - pt!(20), &helvetica, pt!(12), "Top left")?;
c.left_text(pt!(10), pt!(10), &helvetica, pt!(12), "Bottom left")?;
c.right_text(
w - pt!(10),
h - pt!(20),
&helvetica,
pt!(12),
"Top right",
)?;
c.right_text(
w - pt!(10),
pt!(10),
&helvetica,
pt!(12),
"Bottom right",
)?;
c.center_text(
w / 2,
h - pt!(30),
&BuiltinFont::Times_Bold,
pt!(24),
"Centered",
)?;
let times = c.get_font(&BuiltinFont::Times_Roman);
c.text(|t| {
t.set_font(×, pt!(14))?;
t.set_leading(pt!(18))?;
t.pos(pt!(10), h - pt!(100))?;
t.show("Some lines of text in what might look like a")?;
t.show_line("paragraph of three lines. Lorem ipsum dolor")?;
t.show_line("sit amet. Blahonga. ")?;
t.show_adjusted(&[("W", 130), ("AN", -40), ("D", 0)])?;
t.pos(pt!(0), pt!(-30))?;
t.show_adjusted(
&(-19..21).map(|i| ("o", 16 * i)).collect::<Vec<_>>(),
)
})?;
//In Swedish, we use the letters å, ä, and ö
//in words like sloe liqueur. That is why rust-pdf
//uses /WinAnsiEncoding for text.
let times_italic = BuiltinFont::Times_Italic;
c.right_text(
w - pt!(10),
pt!(500),
×_italic,
pt!(14),
"På svenska använder vi bokstäverna å, ä & ö",
)?;
c.right_text(
w - pt!(10),
pt!(480),
×_italic,
pt!(14),
"i ord som slånbärslikör. Därför använder",
)?;
c.right_text(
w - pt!(10),
pt!(460),
×_italic,
pt!(14),
"rust-pdf /WinAnsiEncoding för text.",
)?;
c.center_text(
w / 2,
pt!(400),
&BuiltinFont::Symbol,
pt!(14),
"Hellas ΑΒΓΔαβγδ",
)?;
c.center_text(
w / 2,
pt!(380),
&BuiltinFont::Symbol,
pt!(14),
"∀ μ < δ : ∃ σ ∈ Σ",
)?;
c.center_text(
w / 2,
pt!(320),
&BuiltinFont::ZapfDingbats,
pt!(18),
"☎ ✌ ✖ ✤ ✰ ✴ ❐ ❝ ❤ ❞",
)?;
Ok(())
})?;
document.finish()
}
|
//! Same as guessing game from the book but over TCP rather than standard IO.
//!
//! https://doc.rust-lang.org/book/ch02-00-guessing-game-tutorial.html
//!
//! To communicate with this server do:
//! ```sh
//! $ nc localhost 8080
//! ```
use futures::prelude::*;
use rand::Rng;
use runtime::net::{TcpListener, TcpStream};
use std::cmp::Ordering;
use std::str;
async fn play(stream: TcpStream) -> Result<(), failure::Error> {
println!("Accepting from: {}", stream.peer_addr()?);
let (reader, writer) = &mut stream.split();
let mut buf = vec![0u8; 1024];
writer.write_all(b"Guess the number!\n").await?;
let secret_number = rand::thread_rng().gen_range(1, 101);
loop {
writer.write_all(b"Please input your guess.\n").await?;
let len = reader.read(&mut buf).await?;
if len == 0 {
return Ok(());
}
let guess = str::from_utf8(&buf[..len])?;
let guess: u32 = match guess.trim().parse() {
Ok(num) => num,
Err(_) => continue,
};
let msg = format!("You guessed: {}\n", guess);
writer.write_all(msg.as_bytes()).await?;
match guess.cmp(&secret_number) {
Ordering::Less => writer.write_all(b"Too small!\n").await?,
Ordering::Greater => writer.write_all(b"Too big!\n").await?,
Ordering::Equal => {
writer.write_all(b"You win!\n").await?;
break;
}
}
}
Ok(())
}
#[runtime::main]
async fn main() -> Result<(), failure::Error> {
let mut listener = TcpListener::bind("127.0.0.1:8080")?;
println!("Listening on {}", &listener.local_addr()?);
let incoming = listener.incoming().map_err(|e| e.into());
incoming
.try_for_each_concurrent(None, |stream| {
async move {
runtime::spawn(play(stream)).await?;
Ok::<(), failure::Error>(())
}
})
.await?;
Ok(())
}
|
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from ../gir-files
// DO NOT EDIT
use crate::Encoding;
use crate::Expectation;
use crate::MessageHeadersType;
use glib::translate::*;
#[cfg(any(feature = "v2_26", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2_26")))]
use std::mem;
glib::wrapper! {
#[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct MessageHeaders(Boxed<ffi::SoupMessageHeaders>);
match fn {
copy => |ptr| glib::gobject_ffi::g_boxed_copy(ffi::soup_message_headers_get_type(), ptr as *mut _) as *mut ffi::SoupMessageHeaders,
free => |ptr| glib::gobject_ffi::g_boxed_free(ffi::soup_message_headers_get_type(), ptr as *mut _),
type_ => || ffi::soup_message_headers_get_type(),
}
}
impl MessageHeaders {
#[doc(alias = "soup_message_headers_new")]
pub fn new(type_: MessageHeadersType) -> MessageHeaders {
assert_initialized_main_thread!();
unsafe {
from_glib_full(ffi::soup_message_headers_new(type_.into_glib()))
}
}
#[doc(alias = "soup_message_headers_append")]
pub fn append(&mut self, name: &str, value: &str) {
unsafe {
ffi::soup_message_headers_append(self.to_glib_none_mut().0, name.to_glib_none().0, value.to_glib_none().0);
}
}
#[cfg(any(feature = "v2_36", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2_36")))]
#[doc(alias = "soup_message_headers_clean_connection_headers")]
pub fn clean_connection_headers(&mut self) {
unsafe {
ffi::soup_message_headers_clean_connection_headers(self.to_glib_none_mut().0);
}
}
#[doc(alias = "soup_message_headers_clear")]
pub fn clear(&mut self) {
unsafe {
ffi::soup_message_headers_clear(self.to_glib_none_mut().0);
}
}
#[doc(alias = "soup_message_headers_foreach")]
pub fn foreach<P: FnMut(&str, &str)>(&mut self, func: P) {
let func_data: P = func;
unsafe extern "C" fn func_func<P: FnMut(&str, &str)>(name: *const libc::c_char, value: *const libc::c_char, user_data: glib::ffi::gpointer) {
let name: Borrowed<glib::GString> = from_glib_borrow(name);
let value: Borrowed<glib::GString> = from_glib_borrow(value);
let callback: *mut P = user_data as *const _ as usize as *mut P;
(*callback)(name.as_str(), value.as_str());
}
let func = Some(func_func::<P> as _);
let super_callback0: &P = &func_data;
unsafe {
ffi::soup_message_headers_foreach(self.to_glib_none_mut().0, func, super_callback0 as *const _ as usize as *mut _);
}
}
//#[cfg(any(feature = "v2_26", feature = "dox"))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v2_26")))]
//#[doc(alias = "soup_message_headers_free_ranges")]
//pub fn free_ranges(&mut self, ranges: /*Ignored*/&mut Range) {
// unsafe { TODO: call ffi:soup_message_headers_free_ranges() }
//}
#[doc(alias = "soup_message_headers_get")]
pub fn get(&mut self, name: &str) -> Option<glib::GString> {
unsafe {
from_glib_none(ffi::soup_message_headers_get(self.to_glib_none_mut().0, name.to_glib_none().0))
}
}
//#[cfg(any(feature = "v2_26", feature = "dox"))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v2_26")))]
//#[doc(alias = "soup_message_headers_get_content_disposition")]
//#[doc(alias = "get_content_disposition")]
//pub fn content_disposition(&mut self, params: /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 0, id: 28 }) -> Option<glib::GString> {
// unsafe { TODO: call ffi:soup_message_headers_get_content_disposition() }
//}
#[doc(alias = "soup_message_headers_get_content_length")]
#[doc(alias = "get_content_length")]
pub fn content_length(&mut self) -> i64 {
unsafe {
ffi::soup_message_headers_get_content_length(self.to_glib_none_mut().0)
}
}
#[cfg(any(feature = "v2_26", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2_26")))]
#[doc(alias = "soup_message_headers_get_content_range")]
#[doc(alias = "get_content_range")]
pub fn content_range(&mut self) -> Option<(i64, i64, i64)> {
unsafe {
let mut start = mem::MaybeUninit::uninit();
let mut end = mem::MaybeUninit::uninit();
let mut total_length = mem::MaybeUninit::uninit();
let ret = from_glib(ffi::soup_message_headers_get_content_range(self.to_glib_none_mut().0, start.as_mut_ptr(), end.as_mut_ptr(), total_length.as_mut_ptr()));
let start = start.assume_init();
let end = end.assume_init();
let total_length = total_length.assume_init();
if ret { Some((start, end, total_length)) } else { None }
}
}
//#[cfg(any(feature = "v2_26", feature = "dox"))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v2_26")))]
//#[doc(alias = "soup_message_headers_get_content_type")]
//#[doc(alias = "get_content_type")]
//pub fn content_type(&mut self, params: /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 0, id: 28 }) -> Option<glib::GString> {
// unsafe { TODO: call ffi:soup_message_headers_get_content_type() }
//}
#[doc(alias = "soup_message_headers_get_encoding")]
#[doc(alias = "get_encoding")]
pub fn encoding(&mut self) -> Encoding {
unsafe {
from_glib(ffi::soup_message_headers_get_encoding(self.to_glib_none_mut().0))
}
}
#[doc(alias = "soup_message_headers_get_expectations")]
#[doc(alias = "get_expectations")]
pub fn expectations(&mut self) -> Expectation {
unsafe {
from_glib(ffi::soup_message_headers_get_expectations(self.to_glib_none_mut().0))
}
}
#[cfg(any(feature = "v2_50", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2_50")))]
#[doc(alias = "soup_message_headers_get_headers_type")]
#[doc(alias = "get_headers_type")]
pub fn headers_type(&mut self) -> MessageHeadersType {
unsafe {
from_glib(ffi::soup_message_headers_get_headers_type(self.to_glib_none_mut().0))
}
}
#[cfg(any(feature = "v2_28", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2_28")))]
#[doc(alias = "soup_message_headers_get_list")]
#[doc(alias = "get_list")]
pub fn list(&mut self, name: &str) -> Option<glib::GString> {
unsafe {
from_glib_none(ffi::soup_message_headers_get_list(self.to_glib_none_mut().0, name.to_glib_none().0))
}
}
#[cfg(any(feature = "v2_28", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2_28")))]
#[doc(alias = "soup_message_headers_get_one")]
#[doc(alias = "get_one")]
pub fn one(&mut self, name: &str) -> Option<glib::GString> {
unsafe {
from_glib_none(ffi::soup_message_headers_get_one(self.to_glib_none_mut().0, name.to_glib_none().0))
}
}
//#[cfg(any(feature = "v2_26", feature = "dox"))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v2_26")))]
//#[doc(alias = "soup_message_headers_get_ranges")]
//#[doc(alias = "get_ranges")]
//pub fn ranges(&mut self, total_length: i64, ranges: /*Ignored*/Vec<Range>) -> Option<i32> {
// unsafe { TODO: call ffi:soup_message_headers_get_ranges() }
//}
#[cfg(any(feature = "v2_50", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2_50")))]
#[doc(alias = "soup_message_headers_header_contains")]
pub fn header_contains(&mut self, name: &str, token: &str) -> bool {
unsafe {
from_glib(ffi::soup_message_headers_header_contains(self.to_glib_none_mut().0, name.to_glib_none().0, token.to_glib_none().0))
}
}
#[cfg(any(feature = "v2_50", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2_50")))]
#[doc(alias = "soup_message_headers_header_equals")]
pub fn header_equals(&mut self, name: &str, value: &str) -> bool {
unsafe {
from_glib(ffi::soup_message_headers_header_equals(self.to_glib_none_mut().0, name.to_glib_none().0, value.to_glib_none().0))
}
}
#[doc(alias = "soup_message_headers_remove")]
pub fn remove(&mut self, name: &str) {
unsafe {
ffi::soup_message_headers_remove(self.to_glib_none_mut().0, name.to_glib_none().0);
}
}
#[doc(alias = "soup_message_headers_replace")]
pub fn replace(&mut self, name: &str, value: &str) {
unsafe {
ffi::soup_message_headers_replace(self.to_glib_none_mut().0, name.to_glib_none().0, value.to_glib_none().0);
}
}
//#[cfg(any(feature = "v2_26", feature = "dox"))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v2_26")))]
//#[doc(alias = "soup_message_headers_set_content_disposition")]
//pub fn set_content_disposition(&mut self, disposition: &str, params: /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 0, id: 28 }) {
// unsafe { TODO: call ffi:soup_message_headers_set_content_disposition() }
//}
#[doc(alias = "soup_message_headers_set_content_length")]
pub fn set_content_length(&mut self, content_length: i64) {
unsafe {
ffi::soup_message_headers_set_content_length(self.to_glib_none_mut().0, content_length);
}
}
#[cfg(any(feature = "v2_26", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2_26")))]
#[doc(alias = "soup_message_headers_set_content_range")]
pub fn set_content_range(&mut self, start: i64, end: i64, total_length: i64) {
unsafe {
ffi::soup_message_headers_set_content_range(self.to_glib_none_mut().0, start, end, total_length);
}
}
//#[cfg(any(feature = "v2_26", feature = "dox"))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v2_26")))]
//#[doc(alias = "soup_message_headers_set_content_type")]
//pub fn set_content_type(&mut self, content_type: &str, params: /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 0, id: 28 }) {
// unsafe { TODO: call ffi:soup_message_headers_set_content_type() }
//}
#[doc(alias = "soup_message_headers_set_encoding")]
pub fn set_encoding(&mut self, encoding: Encoding) {
unsafe {
ffi::soup_message_headers_set_encoding(self.to_glib_none_mut().0, encoding.into_glib());
}
}
#[doc(alias = "soup_message_headers_set_expectations")]
pub fn set_expectations(&mut self, expectations: Expectation) {
unsafe {
ffi::soup_message_headers_set_expectations(self.to_glib_none_mut().0, expectations.into_glib());
}
}
#[cfg(any(feature = "v2_26", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2_26")))]
#[doc(alias = "soup_message_headers_set_range")]
pub fn set_range(&mut self, start: i64, end: i64) {
unsafe {
ffi::soup_message_headers_set_range(self.to_glib_none_mut().0, start, end);
}
}
//#[cfg(any(feature = "v2_26", feature = "dox"))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v2_26")))]
//#[doc(alias = "soup_message_headers_set_ranges")]
//pub fn set_ranges(&mut self, ranges: /*Ignored*/&mut Range, length: i32) {
// unsafe { TODO: call ffi:soup_message_headers_set_ranges() }
//}
}
|
// Copyright (c) 2017 Martijn Rijkeboer <mrr@sru-systems.com>
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use crate::config::Config;
use crate::context::Context;
use crate::core;
use crate::encoding;
use crate::memory::Memory;
use crate::result::Result;
use crate::variant::Variant;
use crate::version::Version;
use constant_time_eq::constant_time_eq;
/// Returns the length of the encoded string.
///
/// # Remarks
///
/// The length is **one** less that the original C version, since no null
/// terminator is used.
///
/// # Examples
///
/// ```rust
/// use argon2::{self, Variant};
///
/// let variant = Variant::Argon2i;
/// let mem = 4096;
/// let time = 10;
/// let parallelism = 10;
/// let salt_len = 8;
/// let hash_len = 32;
/// let enc_len = argon2::encoded_len(variant, mem, time, parallelism, salt_len, hash_len);
/// assert_eq!(enc_len, 86);
/// ```
#[rustfmt::skip]
pub fn encoded_len(
variant: Variant,
mem_cost: u32,
time_cost: u32,
parallelism: u32,
salt_len: u32,
hash_len: u32
) -> u32 {
("$$v=$m=,t=,p=$$".len() as u32) +
(variant.as_lowercase_str().len() as u32) +
encoding::num_len(Version::default().as_u32()) +
encoding::num_len(mem_cost) +
encoding::num_len(time_cost) +
encoding::num_len(parallelism) +
encoding::base64_len(salt_len) +
encoding::base64_len(hash_len)
}
/// Hashes the password and returns the encoded hash.
///
/// # Examples
///
/// Create an encoded hash with the default configuration:
///
/// ```
/// use argon2::{self, Config};
///
/// let pwd = b"password";
/// let salt = b"somesalt";
/// let config = Config::default();
/// let encoded = argon2::hash_encoded(pwd, salt, &config).unwrap();
/// ```
///
///
/// Create an Argon2d encoded hash with 4 lanes:
///
/// ```
/// use argon2::{self, Config, Variant};
///
/// let pwd = b"password";
/// let salt = b"somesalt";
/// let mut config = Config::default();
/// config.variant = Variant::Argon2d;
/// config.lanes = 4;
/// let encoded = argon2::hash_encoded(pwd, salt, &config).unwrap();
/// ```
pub fn hash_encoded(pwd: &[u8], salt: &[u8], config: &Config) -> Result<String> {
let context = Context::new(config.clone(), pwd, salt)?;
let hash = run(&context);
let encoded = encoding::encode_string(&context, &hash);
Ok(encoded)
}
/// Hashes the password and returns the hash as a vector.
///
/// # Examples
///
/// Create a hash with the default configuration:
///
/// ```
/// use argon2::{self, Config};
///
/// let pwd = b"password";
/// let salt = b"somesalt";
/// let config = Config::default();
/// let vec = argon2::hash_raw(pwd, salt, &config).unwrap();
/// ```
///
///
/// Create an Argon2d hash with 4 lanes:
///
/// ```
/// use argon2::{self, Config, Variant};
///
/// let pwd = b"password";
/// let salt = b"somesalt";
/// let mut config = Config::default();
/// config.variant = Variant::Argon2d;
/// config.lanes = 4;
/// let vec = argon2::hash_raw(pwd, salt, &config).unwrap();
/// ```
pub fn hash_raw(pwd: &[u8], salt: &[u8], config: &Config) -> Result<Vec<u8>> {
let context = Context::new(config.clone(), pwd, salt)?;
let hash = run(&context);
Ok(hash)
}
/// Verifies the password with the encoded hash.
///
/// # Examples
///
/// ```
/// use argon2;
///
/// let enc = "$argon2i$v=19$m=4096,t=3,p=1$c29tZXNhbHQ\
/// $iWh06vD8Fy27wf9npn6FXWiCX4K6pW6Ue1Bnzz07Z8A";
/// let pwd = b"password";
/// let res = argon2::verify_encoded(enc, pwd).unwrap();
/// assert!(res);
/// ```
pub fn verify_encoded(encoded: &str, pwd: &[u8]) -> Result<bool> {
verify_encoded_ext(encoded, pwd, &[], &[])
}
/// Verifies the password with the encoded hash, secret and associated data.
///
/// # Examples
///
/// ```
/// use argon2;
///
/// let enc = "$argon2i$v=19$m=4096,t=3,p=1$c29tZXNhbHQ\
/// $OlcSvlN20Lz43sK3jhCJ9K04oejhiY0AmI+ck6nuETo";
/// let pwd = b"password";
/// let secret = b"secret";
/// let ad = b"ad";
/// let res = argon2::verify_encoded_ext(enc, pwd, secret, ad).unwrap();
/// assert!(res);
/// ```
pub fn verify_encoded_ext(encoded: &str, pwd: &[u8], secret: &[u8], ad: &[u8]) -> Result<bool> {
let decoded = encoding::decode_string(encoded)?;
let config = Config {
variant: decoded.variant,
version: decoded.version,
mem_cost: decoded.mem_cost,
time_cost: decoded.time_cost,
lanes: decoded.parallelism,
secret,
ad,
hash_length: decoded.hash.len() as u32,
};
verify_raw(pwd, &decoded.salt, &decoded.hash, &config)
}
/// Verifies the password with the supplied configuration.
///
/// # Examples
///
///
/// ```
/// use argon2::{self, Config};
///
/// let pwd = b"password";
/// let salt = b"somesalt";
/// let hash = &[158, 135, 137, 200, 180, 40, 52, 34, 10, 252, 0, 8, 90, 199,
/// 58, 204, 48, 134, 81, 33, 105, 148, 171, 191, 221, 214, 155,
/// 37, 146, 3, 46, 253];
/// let config = Config::rfc9106_low_mem();
/// let res = argon2::verify_raw(pwd, salt, hash, &config).unwrap();
/// assert!(res);
/// ```
pub fn verify_raw(pwd: &[u8], salt: &[u8], hash: &[u8], config: &Config) -> Result<bool> {
let config = Config {
hash_length: hash.len() as u32,
..config.clone()
};
let context = Context::new(config, pwd, salt)?;
let calculated_hash = run(&context);
Ok(constant_time_eq(hash, &calculated_hash))
}
fn run(context: &Context) -> Vec<u8> {
let mut memory = Memory::new(context.config.lanes, context.lane_length);
core::initialize(context, &mut memory);
core::fill_memory_blocks(context, &mut memory);
core::finalize(context, &memory)
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn single_thread_verification_multi_lane_hash() {
let hash = "$argon2i$v=19$m=4096,t=3,p=4$YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXo$BvBk2OaSofBHfbrUW61nHrWB/43xgfs/QJJ5DkMAd8I";
verify_encoded(hash, b"foo").unwrap();
}
}
|
#![feature(test)]
extern crate test;
use std::fs;
use std::path::Path;
use test::{black_box, Bencher};
use datasets::image::mnist;
#[bench]
fn mnist_load_from_scratch(b: &mut Bencher) {
let path = Path::new("./tmp/mnist");
match path.metadata() {
Ok(d) => {
if d.is_dir() {
fs::remove_dir_all(path).unwrap();
} else {
fs::remove_file(path).unwrap();
}
fs::create_dir_all(path).unwrap();
}
Err(_) => fs::create_dir_all(path).unwrap(),
}
b.iter(|| {
black_box(mnist::load(path).unwrap());
});
}
#[bench]
fn mnist_load_from_cache(b: &mut Bencher) {
let path = Path::new("./tmp/mnist");
let _ = mnist::load(path).unwrap();
b.iter(|| {
black_box(mnist::load(path).unwrap());
});
}
#[bench]
fn mnist_load_train_dataset_full(b: &mut Bencher) {
let path = Path::new("./tmp/mnist");
// make sure the dataset is downloaded
let _ = mnist::load(path).unwrap();
b.iter(|| {
let (train_dataset, _) = mnist::load(path).unwrap();
let v = train_dataset.collect::<Vec<(Vec<u8>, u8)>>();
v.len()
});
}
#[bench]
fn mnist_load_test_dataset_full(b: &mut Bencher) {
let path = Path::new("./tmp/mnist");
// make sure the dataset is downloaded
let _ = mnist::load(path).unwrap();
b.iter(|| {
let (_, test_dataset) = mnist::load(path).unwrap();
let v = test_dataset.collect::<Vec<(Vec<u8>, u8)>>();
v.len()
});
}
|
#![feature(attr_literals)]
#[macro_use] extern crate validator_derive;
extern crate validator;
use validator::Validate;
#[derive(Validate)]
#[validate(schema(function = "hey"))]
struct Test {
s: String,
}
fn hey(_: &Test) -> Option<(String, String)> {
None
}
#[derive(Validate)]
#[validate(schema(function = "hey2", skip_on_field_errors = false))]
struct Test2 {
s: String,
}
fn hey2(_: &Test2) -> Option<(String, String)> {
None
}
fn main() {}
|
//! CLI config for request authorization.
/// Env var providing authz address
pub const CONFIG_AUTHZ_ENV_NAME: &str = "INFLUXDB_IOX_AUTHZ_ADDR";
/// CLI flag for authz address
pub const CONFIG_AUTHZ_FLAG: &str = "authz-addr";
/// Env var for single tenancy deployments
pub const CONFIG_CST_ENV_NAME: &str = "INFLUXDB_IOX_SINGLE_TENANCY";
/// CLI flag for single tenancy deployments
pub const CONFIG_CST_FLAG: &str = "single-tenancy";
|
#![allow(unused_imports)]
#![allow(unused_must_use)]
#![allow(unused_macros)]
#![allow(non_snake_case)]
#![allow(clippy::too_many_arguments)]
#![allow(clippy::many_single_char_names)]
#![allow(clippy::needless_range_loop)]
#![allow(clippy::comparison_chain)]
use std::cmp::{max, min, Reverse};
use std::collections::{BinaryHeap, HashMap, HashSet, VecDeque};
use std::io::{self, prelude::*};
use std::str;
fn solve<R: BufRead, W: Write>(sc: &mut Scanner<R>, wr: &mut W) {
}
use std::marker::PhantomData;
macro_rules! recursive_function {
($name: ident, $trait: ident, ($($type: ident $arg: ident,)*)) => {
pub trait $trait<$($type, )*Output> {
fn call(&mut self, $($arg: $type,)*) -> Output;
}
pub struct $name<F, $($type, )*Output>
where
F: FnMut(&mut dyn $trait<$($type, )*Output>, $($type, )*) -> Output,
{
f: F,
$($arg: PhantomData<$type>,
)*
phantom_output: PhantomData<Output>,
}
impl<F, $($type, )*Output> $name<F, $($type, )*Output>
where
F: FnMut(&mut dyn $trait<$($type, )*Output>, $($type, )*) -> Output,
{
pub fn new(f: F) -> Self {
Self {
f,
$($arg: Default::default(),
)*
phantom_output: Default::default(),
}
}
}
impl<F, $($type, )*Output> $trait<$($type, )*Output> for $name<F, $($type, )*Output>
where
F: FnMut(&mut dyn $trait<$($type, )*Output>, $($type, )*) -> Output,
{
fn call(&mut self, $($arg: $type,)*) -> Output {
let const_ptr = &self.f as *const F;
let mut_ptr = const_ptr as *mut F;
unsafe { (&mut *mut_ptr)(self, $($arg, )*) }
}
}
}
}
recursive_function!(RecursiveFunction0, Callable0, ());
recursive_function!(RecursiveFunction, Callable, (Arg arg,));
recursive_function!(RecursiveFunction2, Callable2, (Arg1 arg1, Arg2 arg2,));
recursive_function!(RecursiveFunction3, Callable3, (Arg1 arg1, Arg2 arg2, Arg3 arg3,));
recursive_function!(RecursiveFunction4, Callable4, (Arg1 arg1, Arg2 arg2, Arg3 arg3, Arg4 arg4,));
recursive_function!(RecursiveFunction5, Callable5, (Arg1 arg1, Arg2 arg2, Arg3 arg3, Arg4 arg4, Arg5 arg5,));
recursive_function!(RecursiveFunction6, Callable6, (Arg1 arg1, Arg2 arg2, Arg3 arg3, Arg4 arg4, Arg5 arg5, Arg6 arg6,));
recursive_function!(RecursiveFunction7, Callable7, (Arg1 arg1, Arg2 arg2, Arg3 arg3, Arg4 arg4, Arg5 arg5, Arg6 arg6, Arg7 arg7,));
recursive_function!(RecursiveFunction8, Callable8, (Arg1 arg1, Arg2 arg2, Arg3 arg3, Arg4 arg4, Arg5 arg5, Arg6 arg6, Arg7 arg7, Arg8 arg8,));
recursive_function!(RecursiveFunction9, Callable9, (Arg1 arg1, Arg2 arg2, Arg3 arg3, Arg4 arg4, Arg5 arg5, Arg6 arg6, Arg7 arg7, Arg8 arg8, Arg9 arg9,));
#[macro_export]
macro_rules! dbg{
($($a:expr),*) => {
#[cfg(debug_assertions)]
eprintln!(
concat!("{}:{}:{}: ",$(stringify!($a), " = {:?}, "),*),
file!(), line!(), column!(), $($a),*
);
#[cfg(not(debug_assertions))]
{};
}
}
struct Scanner<R> {
reader: R,
buf_str: Vec<u8>,
buf_iter: str::SplitWhitespace<'static>,
}
impl<R: BufRead> Scanner<R> {
fn new(reader: R) -> Self {
Self { reader, buf_str: vec![], buf_iter: "".split_whitespace() }
}
fn tok<T: str::FromStr>(&mut self) -> T {
loop {
if let Some(token) = self.buf_iter.next() {
return token.parse().ok().expect("Failed parse");
}
self.buf_str.clear();
self.reader.read_until(b'\n', &mut self.buf_str).expect("Failed read");
self.buf_iter = unsafe {
let slice = str::from_utf8_unchecked(&self.buf_str);
std::mem::transmute(slice.split_whitespace())
}
}
}
}
fn main() {
let (stdin, stdout) = (io::stdin(), io::stdout());
let mut scan = Scanner::new(stdin.lock());
let mut out = io::BufWriter::new(stdout.lock());
solve(&mut scan, &mut out);
}
|
use serde::{Serialize, Deserialize};
#[derive(Serialize, Deserialize)]
pub struct CustomerCreatedEvent {
pub name : String,
pub credit_limit: i64
}
|
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
use {
byteorder::{LittleEndian, ReadBytesExt, WriteBytesExt},
std::io,
};
#[derive(Clone, Copy, Debug)]
pub enum EtherType {
Ipv4 = 0x0800,
}
// IEEE Std 802.3-2015, 3.1.1
#[derive(Clone, Copy, Debug)]
pub struct EthHeader {
pub dst: [u8; 6],
pub src: [u8; 6],
pub eth_type: u16,
}
impl EthHeader {
pub fn from_reader<R: io::Read>(reader: &mut R) -> io::Result<Self> {
let mut dst = [0u8; 6];
reader.read(&mut dst)?;
let mut src = [0u8; 6];
reader.read(&mut src)?;
let eth_type = reader.read_u16::<LittleEndian>()?;
Ok(Self { dst, src, eth_type })
}
}
pub fn write_eth_header<W: io::Write>(w: &mut W, header: &EthHeader) -> io::Result<()> {
w.write_all(&header.dst)?;
w.write_all(&header.src)?;
w.write_u16::<LittleEndian>(header.eth_type)?;
Ok(())
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn simple_eth_header() {
let mut buf = vec![];
write_eth_header(
&mut buf,
&EthHeader {
dst: [0x01, 0x02, 0x03, 0x04, 0x05, 0x06],
src: [0x11, 0x12, 0x13, 0x14, 0x15, 0x16],
eth_type: EtherType::Ipv4 as u16,
},
)
.expect("Error writing ethernet header");
#[rustfmt::skip]
let expected_frame: &[u8] = &[
// dst
0x01, 0x02, 0x03, 0x04, 0x05, 0x06,
// src
0x11, 0x12, 0x13, 0x14, 0x15, 0x16,
// ether type
0x00, 0x08,
];
assert_eq!(expected_frame, &buf[..]);
}
#[test]
fn parse_eth_header() {
let mut bytes = &[
0x01u8, 0x02, 0x03, 0x04, 0x05, 0x06, // dst
0x11, 0x12, 0x13, 0x14, 0x15, 0x16, // src
0x00, 0x08, // ether_type
] as &[u8];
let eth_header = EthHeader::from_reader(&mut bytes).expect("reading eth_header");
assert_eq!(eth_header.dst, [0x01, 0x02, 0x03, 0x04, 0x05, 0x06]);
assert_eq!(eth_header.src, [0x11, 0x12, 0x13, 0x14, 0x15, 0x16]);
assert_eq!(eth_header.eth_type, EtherType::Ipv4 as u16);
}
}
|
use crate::constants::*;
use cvar::{INode, IVisit};
use std::sync::{Arc, RwLock};
pub use orb::Config as OrbConfig;
pub fn set_cli_cvars(config: &mut dyn IVisit, cmd: &clap::ArgMatches) {
if let Some(values) = cmd.values_of("set") {
for chunk in values.collect::<Vec<_>>().chunks_exact(2) {
let cvar = chunk[0];
let value = chunk[1];
match cvar::console::set(config, cvar, value) {
Ok(set) => {
if !set {
log::error!(
"Cannot set cvar `{} = {}`: cvar not available.",
cvar,
value
);
}
}
Err(err) => {
log::error!("Cannot parse `{} = {}`: {}.", cvar, value, err);
}
}
}
}
}
pub fn dump_cvars(config: &mut dyn IVisit) {
log::info!("--- cvars:");
cvar::console::walk(config, |path, node| {
if let cvar::Node::Prop(prop) = node.as_node() {
log::info!("{} = `{}`", path, prop.get());
}
});
}
pub struct Physics {
pub scale: f32,
pub gravity: f32,
}
impl Default for Physics {
fn default() -> Self {
Self {
scale: PHYSICS_SCALE,
gravity: GRAV,
}
}
}
impl IVisit for Physics {
fn visit(&mut self, f: &mut dyn FnMut(&mut dyn INode)) {
f(&mut cvar::Property("scale", &mut self.scale, PHYSICS_SCALE));
f(&mut cvar::Property("gravity", &mut self.gravity, GRAV));
}
}
#[derive(Default)]
pub struct NetConfig {
pub orb: Arc<RwLock<OrbConfig>>,
pub send_keepalive: u32, // millis
pub keepalive_timeout: u32, // millis
}
impl IVisit for NetConfig {
fn visit(&mut self, f: &mut dyn FnMut(&mut dyn INode)) {
f(&mut cvar::Property(
"send_keepalive",
&mut self.send_keepalive,
0,
));
f(&mut cvar::Property(
"keepalive_timeout",
&mut self.keepalive_timeout,
0,
));
// self.orb.write().unwrap().visit(f);
}
}
// impl IVisit for OrbConfig {
// fn visit(&mut self, f: &mut dyn FnMut(&mut dyn INode)) {
// let default = Self::default();
// f(&mut cvar::Property(
// "lag_compensation_latency",
// &mut self.lag_compensation_latency,
// default.lag_compensation_latency,
// ));
// f(&mut cvar::Property(
// "blend_latency",
// &mut self.blend_latency,
// default.blend_latency,
// ));
// f(&mut cvar::Property(
// "timestep_seconds",
// &mut self.timestep_seconds,
// default.timestep_seconds,
// ));
// f(&mut cvar::Property(
// "clock_sync_needed_sample_count",
// &mut self.clock_sync_needed_sample_count,
// default.clock_sync_needed_sample_count,
// ));
// f(&mut cvar::Property(
// "clock_sync_assumed_outlier_rate",
// &mut self.clock_sync_assumed_outlier_rate,
// default.clock_sync_assumed_outlier_rate,
// ));
// f(&mut cvar::Property(
// "clock_sync_request_period",
// &mut self.clock_sync_request_period,
// default.clock_sync_request_period,
// ));
// f(&mut cvar::Property(
// "max_tolerable_clock_deviation",
// &mut self.max_tolerable_clock_deviation,
// default.max_tolerable_clock_deviation,
// ));
// f(&mut cvar::Property(
// "snapshot_send_period",
// &mut self.snapshot_send_period,
// default.snapshot_send_period,
// ));
// f(&mut cvar::Property(
// "update_delta_seconds_max",
// &mut self.update_delta_seconds_max,
// default.update_delta_seconds_max,
// ));
// f(&mut cvar::Property(
// "timestamp_skip_threshold_seconds",
// &mut self.timestamp_skip_threshold_seconds,
// default.timestamp_skip_threshold_seconds,
// ));
// f(&mut cvar::Property(
// "fastforward_max_per_step",
// &mut self.fastforward_max_per_step,
// default.fastforward_max_per_step,
// ));
// f(&mut cvar::Property(
// "tweening_method",
// &mut self.tweening_method,
// default.tweening_method,
// ));
// }
// }
// impl INode for orb::TweeningMethod {
// fn name(&self) -> &str {
// todo!()
// }
// fn as_node(&mut self) -> cvar::Node<'_> {
// todo!()
// }
// fn as_inode(&mut self) -> &mut dyn INode {
// todo!()
// }
// }
|
#[allow(non_snake_case)]
pub mod ProgramAssetSchema {
use crate::render::shader::ShaderStage;
use serde::{Deserialize};
#[derive(Deserialize)]
#[serde(rename = "Program")]
pub struct ProgramDef {
pub id: String,
#[serde(default = "ProgramDef::default_includes")]
pub includes: Vec<String>,
pub shaders: Vec<self::ShaderDef>,
}
impl ProgramDef {
pub fn default_includes() -> Vec<String> {
Vec::new()
}
}
#[derive(Deserialize)]
#[serde(rename = "Shader")]
pub struct ShaderDef {
pub stage: self::ShaderStageDef,
pub source: String,
}
#[derive(Deserialize, Copy, Clone)]
#[serde(rename = "Stage")]
#[allow(non_camel_case_types)]
pub enum ShaderStageDef {
Vertex,
Fragment,
TessControl,
TessEvaluation,
Geometry,
Compute,
}
impl ShaderStageDef {
pub fn as_engine_stage_enum(&self) -> ShaderStage {
use ShaderStageDef as D;
use ShaderStage as E;
match self {
D::Vertex => E::Vertex,
D::Fragment => E::Fragment,
D::TessControl => E::TessellationControl,
D::TessEvaluation => E::TessellationEval,
D::Geometry => E::Geometry,
D::Compute => E::Compute,
}
}
}
}
|
extern crate rustplot;
use rustplot::chart_builder;
use rustplot::chart_builder::Chart;
use rustplot::data_parser;
#[test]
fn window_size_tests() {
let data_1 = data_parser::get_str_col(0, 0, 5, "./resources/bar_chart_tests.csv");
let data_2 = data_parser::get_num_col(1, 0, 5, "./resources/bar_chart_tests.csv");
let mut bar = chart_builder::VerticalBarChart::new(
String::from("Test Window Size 1"),
data_1.clone(),
vec![data_2.clone()],
);
bar.draw();
bar.chart_prop.set_screen_size(900.0, 900.0);
bar.draw();
bar.chart_prop.set_screen_size(300.0, 300.0);
bar.draw();
bar.chart_prop.set_screen_size(500.0, 700.0);
bar.draw();
bar.chart_prop.set_screen_size(700.0, 500.0);
bar.draw();
bar.chart_prop.set_screen_size(500.0, 900.0);
bar.draw();
bar.chart_prop.set_screen_size(900.0, 500.0);
bar.draw();
let data_1 = data_parser::get_str_col(0, 0, 5, "./resources/pie_chart_tests.csv");
let data_2 = data_parser::get_num_col(1, 0, 5, "./resources/pie_chart_tests.csv");
let mut pie = chart_builder::PieChart::new(String::from("Test Window Size 2"), data_2.clone());
pie.chart_prop.set_legend_values(data_1.clone());
pie.chart_prop.set_show_legend(true);
pie.draw();
pie.chart_prop.set_screen_size(900.0, 900.0);
pie.draw();
pie.chart_prop.set_screen_size(300.0, 300.0);
pie.draw();
pie.chart_prop.set_screen_size(500.0, 700.0);
pie.draw();
pie.chart_prop.set_screen_size(700.0, 500.0);
pie.draw();
pie.chart_prop.set_screen_size(500.0, 900.0);
pie.draw();
pie.chart_prop.set_screen_size(900.0, 500.0);
pie.draw();
}
|
use std::fmt::Debug;
use std::marker::Unsize;
use std::mem::transmute;
use std::ops::CoerceUnsized;
use std::ops::Deref;
use futures::future::{self, BoxFuture};
use futures::prelude::*;
use inherit_methods_macro::inherit_methods;
use crate::event::{Events, Pollee, Poller};
use crate::file::{AccessMode, StatusFlags};
use crate::prelude::*;
/// An abstract for file APIs.
///
/// An implementation for this trait should make sure all read and write APIs
/// are non-blocking.
pub trait File: Debug + Sync + Send {
fn read(&self, _buf: &mut [u8]) -> Result<usize> {
return_errno!(EBADF, "not support read");
}
fn readv(&self, bufs: &mut [&mut [u8]]) -> Result<usize> {
for buf in bufs {
if buf.len() > 0 {
return self.read(buf);
}
}
Ok(0)
}
fn write(&self, _buf: &[u8]) -> Result<usize> {
return_errno!(EBADF, "not support write");
}
fn writev(&self, bufs: &[&[u8]]) -> Result<usize> {
for buf in bufs {
if buf.len() > 0 {
return self.write(buf);
}
}
Ok(0)
}
fn poll(&self, mask: Events, poller: Option<&mut Poller>) -> Events {
Events::empty()
}
/*
fn ioctl(&self, cmd: &mut IoctlCmd) -> Result<i32> {
return_op_unsupported_error!("ioctl")
}
*/
fn access_mode(&self) -> AccessMode {
AccessMode::O_RDWR
}
fn status_flags(&self) -> StatusFlags {
StatusFlags::empty()
}
fn set_status_flags(&self, new_status: StatusFlags) -> Result<()> {
return_errno!(ENOSYS, "not support setting status flags");
}
}
/// A wrapper type that makes a `T: File`'s I/O methods _async_.
#[repr(transparent)]
pub struct Async<F: ?Sized>(F);
impl<F> Async<F> {
pub fn new(file: F) -> Self {
Self(file)
}
#[inline]
pub fn info_file(self) -> F {
self.0
}
}
impl<F: File + ?Sized> Async<F> {
pub async fn read(&self, buf: &mut [u8]) -> Result<usize> {
let is_nonblocking = self.is_nonblocking();
// Fast path
let res = self.0.read(buf);
if Self::should_io_return(&res, is_nonblocking) {
return res;
}
// Slow path
let mask = Events::IN;
let mut poller = Poller::new();
loop {
let events = self.poll(mask, Some(&mut poller));
if events.contains(Events::IN) {
let res = self.0.read(buf);
if Self::should_io_return(&res, is_nonblocking) {
return res;
}
}
poller.wait().await;
}
}
pub async fn readv(&self, bufs: &mut [&mut [u8]]) -> Result<usize> {
let is_nonblocking = self.is_nonblocking();
// Fast path
let res = self.0.readv(bufs);
if Self::should_io_return(&res, is_nonblocking) {
return res;
}
// Slow path
let mask = Events::IN;
let mut poller = Poller::new();
loop {
let events = self.poll(mask, Some(&mut poller));
if events.contains(Events::IN) {
let res = self.0.readv(bufs);
if Self::should_io_return(&res, is_nonblocking) {
return res;
}
}
poller.wait().await;
}
}
pub async fn write(&self, buf: &[u8]) -> Result<usize> {
let is_nonblocking = self.is_nonblocking();
// Fast path
let res = self.0.write(buf);
if Self::should_io_return(&res, is_nonblocking) {
return res;
}
// Slow path
let mask = Events::OUT;
let mut poller = Poller::new();
loop {
let events = self.poll(mask, Some(&mut poller));
if events.contains(Events::OUT) {
let res = self.0.write(buf);
if Self::should_io_return(&res, is_nonblocking) {
return res;
}
}
poller.wait().await;
}
}
pub async fn writev(&self, bufs: &[&[u8]]) -> Result<usize> {
let is_nonblocking = self.is_nonblocking();
// Fast path
let res = self.0.writev(bufs);
if Self::should_io_return(&res, is_nonblocking) {
return res;
}
// Slow path
let mask = Events::OUT;
let mut poller = Poller::new();
loop {
let events = self.poll(mask, Some(&mut poller));
if events.contains(Events::OUT) {
let res = self.0.writev(bufs);
if Self::should_io_return(&res, is_nonblocking) {
return res;
}
}
poller.wait().await;
}
}
#[inline]
pub fn file(&self) -> &F {
&self.0
}
fn should_io_return(res: &Result<usize>, is_nonblocking: bool) -> bool {
is_nonblocking || !res.has_errno(EAGAIN)
}
fn is_nonblocking(&self) -> bool {
let flags = self.status_flags();
flags.contains(StatusFlags::O_NONBLOCK)
}
}
// Implement methods inherited from File
#[inherit_methods(from = "self.0")]
#[rustfmt::skip]
impl<F: File + ?Sized> Async<F> {
pub fn poll(&self, mask: Events, poller: Option<&mut Poller>) -> Events;
pub fn status_flags(&self) -> StatusFlags;
pub fn set_status_flags(&self, new_status: StatusFlags) -> Result<()>;
pub fn access_mode(&self) -> AccessMode;
}
impl<F: ?Sized + std::fmt::Debug> std::fmt::Debug for Async<F> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
self.0.fmt(f)
}
}
impl<F: Clone> Clone for Async<F> {
fn clone(&self) -> Self {
Self::new(self.0.clone())
}
}
// Enable converting Async<T> to Async<dyn S>, where type T implements trait S.
impl<T: CoerceUnsized<U> + ?Sized, U: ?Sized> CoerceUnsized<Async<U>> for Async<T> {}
/// Convert a file-like type `T` into an async version, e.g., `Box<F>` to `Box<Async<F>>`
/// or `Arc<F>` to `Arc<Async<F>>`, where `F: File`.
pub trait IntoAsync {
type AsyncFile;
fn into_async(self) -> Self::AsyncFile;
}
impl<F: File + ?Sized> IntoAsync for Box<F> {
type AsyncFile = Box<Async<F>>;
fn into_async(self) -> Box<Async<F>> {
// Safety. Async has a type wrapper with transparant memory representation.
unsafe { transmute(self) }
}
}
impl<F: File + ?Sized> IntoAsync for Arc<F> {
type AsyncFile = Arc<Async<F>>;
fn into_async(self) -> Arc<Async<F>> {
// Safety. Async has a type wrapper with transparant memory representation.
unsafe { transmute(self) }
}
}
#[cfg(test)]
mod tests {
use std::any::Any;
use std::fmt::Debug;
use std::sync::Arc;
use super::*;
#[test]
fn new_async() {
// Case 1
let async_file: Async<DummyFile> = Async::new(DummyFile);
let _ = async_file.access_mode();
println!("{:?}", async_file);
// Case 2
let async_file: Arc<Async<dyn File>> = Arc::new(Async::new(DummyFile)) as _;
let _ = async_file.access_mode();
println!("{:?}", async_file);
}
#[test]
fn into_async() {
// Case 1
let not_async: Arc<DummyFile> = Arc::new(DummyFile);
let async_file: Arc<Async<DummyFile>> = not_async.into_async();
let _ = async_file.access_mode();
println!("{:?}", async_file);
// Case 2
let not_async: Arc<dyn File> = Arc::new(DummyFile) as _;
let async_file: Arc<Async<dyn File>> = not_async.into_async();
let _ = async_file.access_mode();
println!("{:?}", async_file);
}
#[derive(Debug)]
pub struct DummyFile;
impl File for DummyFile {}
}
|
#[derive(Debug, Copy, Clone, Default, Ord, PartialOrd, Eq, PartialEq)]
pub struct Range {
pub start: usize,
pub end: usize,
}
impl std::ops::Add for Range {
type Output = Self;
/// will become the full range represented across self and other
fn add(self, other: Self) -> Self {
Self {
start: if self.start < other.start {
self.start
} else {
other.start
},
end: if self.end > other.end {
self.end
} else {
other.end
},
}
}
}
impl Range {
pub fn iter(&self) -> std::ops::Range<usize> {
std::ops::Range {
start: self.start,
end: self.end,
}
}
pub fn len(&self) -> usize {
self.end - self.start
}
}
impl From<std::ops::Range<usize>> for Range {
fn from(r: std::ops::Range<usize>) -> Self {
Self {
start: r.start,
end: r.end,
}
}
}
impl From<Range> for std::ops::Range<usize> {
fn from(r: Range) -> Self {
Self {
start: r.start,
end: r.end,
}
}
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn it_works() {
let s = Range { start: 10, end: 20 };
let o = Range { start: 20, end: 26 };
// let y: std::ops::Range<usize> = o.into();
// let z: Range = y.into();
let x = s + o;
for i in o.iter() {}
for i in o.iter() {}
// println!("{:?} {:?} {:?} {:?} {:?}", x , y , z , s , o);
}
}
|
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
use fdio::{fdio_sys, ioctl_raw, make_ioctl};
use std::fs::File;
use std::os::unix::io::AsRawFd;
use std::os::raw;
use fuchsia_zircon as zx;
pub fn connect_transport_device(device: &File) -> Result<zx::Channel, zx::Status> {
let mut handle: zx::sys::zx_handle_t = zx::sys::ZX_HANDLE_INVALID;
// This call is safe because the callee does not retain any data from the call, and the return
// value ensures that the handle is a valid handle to a zx::channel.
unsafe {
match ioctl_raw(
device.as_raw_fd(),
IOCTL_QMI_GET_CHANNEL,
::std::ptr::null(),
0,
&mut handle as *mut _ as *mut raw::c_void,
::std::mem::size_of::<zx::sys::zx_handle_t>(),
) as i32
{
e if e < 0 => Err(zx::Status::from_raw(e)),
e => Ok(e),
}?;
Ok(From::from(zx::Handle::from_raw(handle)))
}
}
const IOCTL_QMI_GET_CHANNEL: raw::c_int = make_ioctl(
fdio_sys::IOCTL_KIND_GET_HANDLE,
fdio_sys::IOCTL_FAMILY_QMI,
0
);
pub fn set_network_status(device: &File, state: bool) -> Result<(), zx::Status> {
// This call is safe because the callee does not retain any data from the call, and the return
// value ensures that the handle is a valid handle to a zx::channel.
unsafe {
match ioctl_raw(
device.as_raw_fd(),
IOCTL_QMI_SET_NETWORK,
&state as *const _ as *const raw::c_void,
::std::mem::size_of::<bool>(),
::std::ptr::null_mut(),
0,
) as i32
{
e if e < 0 => Err(zx::Status::from_raw(e)),
e => Ok(e),
}?;
Ok(())
}
}
const IOCTL_QMI_SET_NETWORK: raw::c_int = make_ioctl(
fdio_sys::IOCTL_KIND_DEFAULT,
fdio_sys::IOCTL_FAMILY_QMI,
1
);
|
//! An interface to the BED track format file as specified in
//! https://genome.ucsc.edu/FAQ/FAQformat.html#format1
use crate::util::{get_buf, Strand};
use math::{
partition::integer_interval_map::IntegerIntervalMap,
set::{
contiguous_integer_set::ContiguousIntegerSet,
ordered_integer_set::OrderedIntegerSet,
},
traits::ToIterator,
};
use num::Float;
use std::{
collections::HashMap,
fmt::Debug,
fs::File,
io::{BufRead, BufReader},
marker::PhantomData,
str::FromStr,
};
pub mod bed_writer;
pub mod paired_end_collator;
use crate::iter::{ChromIntervalValue, ToChromIntervalValueIter};
pub use bed_writer::BedWriter;
pub struct Bed {
filepath: String,
/// Every line in the BED file will contribute a unit score for the
/// corresponding interval.
binarize_score: bool,
}
impl Bed {
pub fn new(filepath: &str, use_binary_score: bool) -> Bed {
Bed {
filepath: filepath.to_string(),
binarize_score: use_binary_score,
}
}
#[inline]
pub fn get_filepath(&self) -> &str {
&self.filepath
}
pub fn get_chrom_to_intervals(
&self,
) -> HashMap<Chrom, OrderedIntegerSet<Coordinate>> {
let mut chrom_to_interval_map = HashMap::new();
for (chrom, start, end) in self.to_coord_iter() {
let interval_map = chrom_to_interval_map
.entry(chrom)
.or_insert_with(IntegerIntervalMap::new);
interval_map
.aggregate(ContiguousIntegerSet::new(start, end - 1), 1);
}
chrom_to_interval_map
.into_iter()
.map(|(chrom, interval_map)| {
let intervals: Vec<ContiguousIntegerSet<Coordinate>> =
interval_map
.into_map()
.into_iter()
.map(|(k, _)| k)
.collect();
(chrom, OrderedIntegerSet::from(intervals))
})
.collect()
}
pub fn to_coord_iter(&self) -> BedCoordinateIter {
BedCoordinateIter {
buf: get_buf(&self.filepath).unwrap(),
filename: self.filepath.clone(),
}
}
}
impl<D, E>
ToIterator<'_, BedDataLineIter<D>, <BedDataLineIter<D> as Iterator>::Item>
for Bed
where
D: Float + FromStr<Err = E>,
E: Debug,
{
fn to_iter(&self) -> BedDataLineIter<D> {
BedDataLineIter {
buf: get_buf(&self.filepath).unwrap(),
filename: self.filepath.clone(),
binarize_score: self.binarize_score,
phantom: PhantomData,
}
}
}
impl<V: Float + FromStr<Err = E>, E: Debug>
ToChromIntervalValueIter<BedDataLineIter<V>, BedDataLine<V>, Coordinate, V>
for Bed
{
fn to_chrom_interval_value_iter(&self) -> BedDataLineIter<V> {
self.to_iter()
}
}
impl<V: Copy + Float + FromStr<Err = E>, E: Debug>
ChromIntervalValue<Coordinate, V> for BedDataLine<V>
{
fn chrom_interval_value(
&self,
) -> (Chrom, ContiguousIntegerSet<Coordinate>, V) {
let score = self.score.expect("BED file is missing the score field");
(
self.chrom.clone(),
ContiguousIntegerSet::new(self.start, self.end - 1),
score,
)
}
}
/// Data type of the Bed coordinates
pub type Coordinate = i64;
/// Data type of the chromosome names
pub type Chrom = String;
/// `BedDataLine` corresponds to a line of data in the Bed
/// file, where each line is of the form
/// `chrom start end name score strand ...`,
/// where the first three fields are required, and the remaining 9 fields are
/// optional.
///
/// The [start, end) is a zero-based left-closed right-open coordinate range.
#[derive(Debug, Eq, PartialEq, Clone)]
pub struct BedDataLine<D> {
pub chrom: Chrom,
pub start: Coordinate,
pub end: Coordinate,
pub name: Option<String>,
pub score: Option<D>,
pub strand: Option<Strand>,
}
pub struct BedDataLineIter<D> {
buf: BufReader<File>,
filename: String,
/// Every line in the BED file will contribute a unit score for the
/// corresponding interval.
binarize_score: bool,
phantom: PhantomData<D>,
}
impl<D> BedDataLineIter<D> {
pub fn get_filename(&self) -> &str {
&self.filename
}
}
impl<D: Float + FromStr<Err = E>, E: Debug> Iterator for BedDataLineIter<D> {
type Item = BedDataLine<D>;
fn next(&mut self) -> Option<Self::Item> {
loop {
let mut line = String::new();
return if self.buf.read_line(&mut line).unwrap() == 0 {
None
} else {
let mut toks = line.split_whitespace();
let chrom = {
let chrom = toks.next().unwrap();
if chrom.starts_with('#') || chrom == "track" {
continue;
}
chrom.to_string()
};
let start = toks.next().unwrap().parse::<Coordinate>().unwrap();
let end = toks.next().unwrap().parse::<Coordinate>().unwrap();
// optional fields
let name = toks.next().map(|name| name.to_string());
let score = if self.binarize_score {
toks.next();
Some(D::one())
} else {
toks.next().map(|score| score.parse::<D>().unwrap())
};
let strand = toks.next().and_then(|strand| {
Strand::new(strand)
.expect("failed to parse the strand symbol")
});
Some(BedDataLine {
chrom,
start,
end,
name,
score,
strand,
})
};
}
}
}
pub struct BedCoordinateIter {
buf: BufReader<File>,
filename: String,
}
impl BedCoordinateIter {
pub fn get_filename(&self) -> &str {
&self.filename
}
}
impl Iterator for BedCoordinateIter {
type Item = (Chrom, Coordinate, Coordinate);
fn next(&mut self) -> Option<Self::Item> {
loop {
let mut line = String::new();
return if self.buf.read_line(&mut line).unwrap() == 0 {
None
} else {
let mut toks = line.split_whitespace();
let chrom = {
let chrom = toks.next().unwrap();
if chrom.starts_with('#') || chrom == "track" {
continue;
}
chrom.to_string()
};
let start = toks.next().unwrap().parse::<Coordinate>().unwrap();
let end = toks.next().unwrap().parse::<Coordinate>().unwrap();
Some((chrom, start, end))
};
}
}
}
#[cfg(test)]
mod tests {
use crate::{
bed::{Bed, Chrom, Coordinate},
iter::{ChromIntervalValue, ToChromIntervalValueIter},
};
use math::{
partition::integer_interval_map::IntegerIntervalMap,
set::{
contiguous_integer_set::ContiguousIntegerSet,
ordered_integer_set::OrderedIntegerSet,
},
};
use std::{
collections::HashMap,
io::{BufWriter, Write},
};
use tempfile::NamedTempFile;
#[test]
fn test_get_chrom_to_interval_to_val() {
let file = NamedTempFile::new().unwrap();
{
let mut writer = BufWriter::new(&file);
writer
.write_fmt(format_args!(
"chr1 100 200 name_1 3.5\n\
chr1 150 250 name_2 2\n\
chr1 200 350 name_3 4.0\n\
chr3 1000 3000 name_4 -0.3\n\
chr1 400 450 name_5 -0.9\n\
chr3 2500 3000 name_6 0.3\n"
))
.unwrap();
}
let bed = Bed::new(file.path().to_str().unwrap(), false);
{
let chrom_to_interval_to_val =
ToChromIntervalValueIter::get_chrom_to_interval_to_val(
&bed, None,
)
.unwrap();
{
let mut expected_chr1 = IntegerIntervalMap::<f64>::new();
expected_chr1
.aggregate(ContiguousIntegerSet::new(100, 149), 3.5);
expected_chr1
.aggregate(ContiguousIntegerSet::new(150, 199), 5.5);
expected_chr1
.aggregate(ContiguousIntegerSet::new(200, 249), 6.);
expected_chr1
.aggregate(ContiguousIntegerSet::new(250, 349), 4.);
expected_chr1
.aggregate(ContiguousIntegerSet::new(400, 449), -0.9);
assert_eq!(chrom_to_interval_to_val["chr1"], expected_chr1);
}
{
let mut expected_chr3 = IntegerIntervalMap::<f64>::new();
expected_chr3
.aggregate(ContiguousIntegerSet::new(1000, 2499), -0.3);
expected_chr3
.aggregate(ContiguousIntegerSet::new(2500, 2999), 0.);
assert_eq!(chrom_to_interval_to_val["chr3"], expected_chr3);
}
}
{
let exclude: HashMap<Chrom, OrderedIntegerSet<Coordinate>> = [
(
"chr1".into(),
OrderedIntegerSet::from_slice(&[[80, 100], [190, 220]]),
),
(
"chr3".into(),
OrderedIntegerSet::from_slice(&[[1010, 1020]]),
),
]
.iter()
.cloned()
.collect();
let chrom_to_interval_to_val =
ToChromIntervalValueIter::get_chrom_to_interval_to_val(
&bed,
Some(exclude).as_ref(),
)
.unwrap();
{
let mut expected_chr1 = IntegerIntervalMap::<f64>::new();
expected_chr1
.aggregate(ContiguousIntegerSet::new(400, 449), -0.9);
assert_eq!(chrom_to_interval_to_val["chr1"], expected_chr1);
}
{
let mut expected_chr3 = IntegerIntervalMap::<f64>::new();
expected_chr3
.aggregate(ContiguousIntegerSet::new(2500, 2999), 0.3);
assert_eq!(chrom_to_interval_to_val["chr3"], expected_chr3);
}
}
}
#[test]
fn test_get_chrom_to_intervals() {
let file = NamedTempFile::new().unwrap();
{
let mut writer = BufWriter::new(&file);
writer
.write_fmt(format_args!(
"chr1 100 200 name_1 3.5\n\
chr1 150 250 name_2 2\n\
chr1 200 350 name_3 4.0\n\
chr3 1000 3000 name_4 -0.3\n\
chr1 400 450 name_5 -0.9\n\
chr3 2500 3000 name_6 0.3\n"
))
.unwrap();
}
let bed = Bed::new(file.path().to_str().unwrap(), false);
let chrom_to_intervals = bed.get_chrom_to_intervals();
let expected: HashMap<Chrom, OrderedIntegerSet<Coordinate>> = [
(
"chr1".into(),
OrderedIntegerSet::from_slice(&[[100, 349], [400, 449]]),
),
(
"chr3".into(),
OrderedIntegerSet::from_slice(&[[1000, 2999]]),
),
]
.iter()
.cloned()
.collect();
assert_eq!(chrom_to_intervals, expected);
}
#[test]
fn test_bed_to_chrom_interval_value_iter() {
let file = NamedTempFile::new().unwrap();
{
let mut writer = BufWriter::new(&file);
writer
.write_fmt(format_args!(
"chr1 100 200 name_1 3.5\n\
chr1 150 250 name_2 2\n\
chr1 200 350 name_3 4.0\n\
chr3 1000 3000 name_4 -0.3\n\
chr1 400 450 name_5 -0.9\n\
chr3 2500 3000 name_6 0.3\n"
))
.unwrap();
}
let bed = Bed::new(file.path().to_str().unwrap(), false);
let mut iter = bed.to_chrom_interval_value_iter();
assert_eq!(
iter.next().unwrap().chrom_interval_value(),
("chr1".to_string(), ContiguousIntegerSet::new(100, 199), 3.5)
);
assert_eq!(
iter.next().unwrap().chrom_interval_value(),
("chr1".to_string(), ContiguousIntegerSet::new(150, 249), 2.)
);
assert_eq!(
iter.next().unwrap().chrom_interval_value(),
("chr1".to_string(), ContiguousIntegerSet::new(200, 349), 4.)
);
assert_eq!(
iter.next().unwrap().chrom_interval_value(),
(
"chr3".to_string(),
ContiguousIntegerSet::new(1000, 2999),
-0.3
)
);
assert_eq!(
iter.next().unwrap().chrom_interval_value(),
(
"chr1".to_string(),
ContiguousIntegerSet::new(400, 449),
-0.9
)
);
assert_eq!(
iter.next().unwrap().chrom_interval_value(),
(
"chr3".to_string(),
ContiguousIntegerSet::new(2500, 2999),
0.3
)
);
assert_eq!(iter.next(), None);
}
}
|
use log::warn;
use regex::Regex;
use serenity::model::channel::{Channel, Message};
use serenity::model::user::User;
use serenity::prelude::*;
use serenity::Result as SerenityResult;
pub struct Utils;
impl Utils {
pub fn check_msg(result: SerenityResult<Message>) {
if let Err(why) = result {
warn!("Error sending message: {:?}", why);
}
}
pub async fn fetch_user_forced(ctx: &Context, user_id: u64) -> Option<User> {
return match ctx.cache.user(user_id) {
Some(user) => Some(user),
None => match ctx.http.get_user(user_id).await {
Ok(user) => Some(user),
Err(_) => None,
},
};
}
pub async fn parse_channel(ctx: &Context, channel_name: String) -> Option<Channel> {
let channel: Channel;
if let Ok(id) = channel_name.parse::<u64>() {
let channel = match ctx.http.get_channel(id).await {
Ok(c) => c,
Err(_e) => return None,
};
Some(channel)
} else if channel_name.starts_with("<#") && channel_name.ends_with('>') {
let re = Regex::new("[<#>]").unwrap();
let channel_id = re.replace_all(&channel_name, "").into_owned();
channel = match ctx
.http
.get_channel(channel_id.parse::<u64>().unwrap())
.await
{
Ok(m) => m,
Err(_e) => return None,
};
Some(channel)
} else {
None
}
}
}
|
#![warn(missing_docs)]
#![warn(missing_doc_code_examples)]
//! Keep your files in sync!
//!
//! Synchronize your files in differents machines on the same network
use serde::{Deserialize, Serialize};
use std::{error::Error, fmt::Display};
pub mod config;
mod crypto;
mod deletion_tracker;
mod fs;
mod network;
pub mod sync;
/// Result<T, IronCarrierError> alias
pub type Result<T> = std::result::Result<T, Box<dyn std::error::Error + 'static + Send + Sync>>;
/// Error types
#[derive(Debug, Serialize, Deserialize)]
pub enum IronCarrierError {
/// Configuration file was not found
ConfigFileNotFound,
/// Configfuration file is not a valid yaml file
/// Or it contains invalid configuration
ConfigFileIsInvalid(String),
/// Peer Address is not correct
/// A valid ip:port string should be provided
InvalidPeerAddress,
/// Provided alias was not configurated for current peer
AliasNotAvailable(String),
/// It wasn't possible to read a file
IOReadingError,
/// It wasn't possible to write a file
IOWritingError,
/// It wasn't possible to start the server
ServerStartError(String),
/// The target peer is disconnected
PeerDisconectedError(String),
/// It wasn't possible to read from network socket
NetworkIOReadingError,
/// It wans't possible to write to network socket
NetworkIOWritingError,
/// It wasn't possible to parse command frame
ParseCommandError,
/// It wasn't possible to parse the log file
ParseLogError,
}
impl Display for IronCarrierError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
IronCarrierError::ConfigFileNotFound => {
write!(f, "Configuration file not found on provided path")
}
IronCarrierError::ConfigFileIsInvalid(reason) => {
write!(
f,
"Configuration file has invalid configuration, {}",
reason
)
}
IronCarrierError::InvalidPeerAddress => {
write!(f, "Invalid Peer Address")
}
IronCarrierError::AliasNotAvailable(alias) => {
write!(f, "Alias {} not available on this node", alias)
}
IronCarrierError::IOReadingError => {
write!(f, "There was an error reading information from disk")
}
IronCarrierError::IOWritingError => {
write!(f, "There was an error writing information to disk")
}
IronCarrierError::ServerStartError(reason) => {
write!(f, "There was an error starting the server: {}", reason)
}
IronCarrierError::NetworkIOReadingError => {
write!(
f,
"There was an error reading information from network stream"
)
}
IronCarrierError::NetworkIOWritingError => {
write!(
f,
"There was an error writing information to network stream"
)
}
IronCarrierError::ParseCommandError => {
write!(f, "There was an error parsing the provide command")
}
IronCarrierError::PeerDisconectedError(peer_address) => {
write!(f, "The target peer is not available: {}", peer_address)
}
IronCarrierError::ParseLogError => {
write!(f, "There was an error parsing the log")
}
}
}
}
impl Error for IronCarrierError {
fn source(&self) -> Option<&(dyn Error + 'static)> {
match *self {
_ => None,
}
}
}
impl From<bincode::Error> for IronCarrierError {
fn from(_: bincode::Error) -> Self {
IronCarrierError::ParseCommandError
}
}
|
// This file is part of linux-epoll. It is subject to the license terms in the COPYRIGHT file found in the top-level directory of this distribution and at https://raw.githubusercontent.com/lemonrock/linux-epoll/master/COPYRIGHT. No part of linux-epoll, including this file, may be copied, modified, propagated, or distributed except according to the terms contained in the COPYRIGHT file.
// Copyright © 2019 The developers of linux-epoll. See the COPYRIGHT file in the top-level directory of this distribution and at https://raw.githubusercontent.com/lemonrock/linux-epoll/master/COPYRIGHT.
struct StreamingSocketCommon<SF: StreamFactory<SD>, SU: StreamUser<SF::S, SF::ProxyOrTunnelInformation>, SD: SocketData>
{
started_coroutine: StartedStackAndTypeSafeTransfer<SimpleStack, Self>,
}
#[doc(hidden)]
impl<SF: StreamFactory<SD>, SU: StreamUser<SF::S, SF::ProxyOrTunnelInformation>, SD: SocketData> Debug for StreamingSocketCommon<SF, SU, SD>
{
#[inline(always)]
fn fmt(&self, f: &mut Formatter) -> fmt::Result
{
write!(f, "StreamingSocketCommon {{ started_coroutine: {:?} }}", self.started_coroutine)
}
}
#[doc(hidden)]
impl<SF: StreamFactory<SD>, SU: StreamUser<SF::S, SF::ProxyOrTunnelInformation>, SD: SocketData> Coroutine for StreamingSocketCommon<SF, SU, SD>
{
type StartArguments = (StreamingSocketFileDescriptor<SD>, Rc<SF>, SF::AdditionalArguments, Rc<SU>);
type ResumeArguments = ReactEdgeTriggeredStatus;
type Yields = ();
type Complete = Result<(), CompleteError>;
#[inline(always)]
fn coroutine<'yielder>(start_arguments: Self::StartArguments, yielder: Yielder<'yielder, Self::ResumeArguments, Self::Yields, Self::Complete>) -> Self::Complete
{
let (streaming_socket_file_descriptor, server_stream_factory, additional_arguments, stream_user) = start_arguments;
let (stream, proxy_or_tunnel_information) = server_stream_factory.new_stream_and_handshake(streaming_socket_file_descriptor, yielder, additional_arguments)?;
stream_user.use_stream(stream, proxy_or_tunnel_information)
}
}
#[doc(hidden)]
impl<SF: StreamFactory<SD>, SU: StreamUser<SF::S, SF::ProxyOrTunnelInformation>, SD: SocketData> StreamingSocketCommon<SF, SU, SD>
{
#[inline(always)]
fn do_initial_input_and_output_and_register_with_epoll_if_necesssary<A: Arena<SSR>, SSR: StreamingSocketReactor<SF, SU, SD>, EPR: EventPollRegister>(event_poll_register: &EPR, arena: &A, reactor_compressed_type_identifier: CompressedTypeIdentifier, (streaming_socket_file_descriptor, server_stream_factory, additional_arguments, stream_user): (SSR::FileDescriptor, Rc<SF>, SF::AdditionalArguments, Rc<SU>)) -> Result<(), EventPollRegistrationError>
{
let start_arguments =
(
unsafe { transmute_copy(&streaming_socket_file_descriptor) },
server_stream_factory,
additional_arguments,
stream_user,
);
use self::StartOutcome::*;
let started_coroutine = match StackAndTypeSafeTransfer::new(SimpleStack).start(start_arguments)
{
Complete(Ok(())) => return Ok(()),
Complete(Err(complete_error)) => return Err(EventPollRegistrationError::InitialInputOrOutputFailed(Box::new(complete_error))),
WouldLikeToResume((), started_coroutine) => started_coroutine,
};
event_poll_register.register::<A, SSR, _>(arena, reactor_compressed_type_identifier, streaming_socket_file_descriptor, EPollAddFlags::Streaming, |uninitialized_reactor, streaming_socket_file_descriptor|
{
forget(streaming_socket_file_descriptor);
uninitialized_reactor.initialize
(
Self
{
started_coroutine,
}
);
Ok(())
})
}
#[inline(always)]
fn react(&mut self, event_flags: EPollEventFlags, _terminate: &impl Terminate) -> Result<bool, String>
{
use self::ReactEdgeTriggeredStatus::*;
use self::ResumeOutcome::*;
if event_flags.intersects(EPollEventFlags::CloseWithError)
{
match self.started_coroutine.resume(ClosedWithError)
{
WouldLikeToResume(_yields @ ()) => if cfg!(debug_assertions)
{
panic!("Should have terminated")
}
else
{
unreachable!()
},
Complete(_complete) => Ok(true),
}
}
else if event_flags.intersects(EPollEventFlags::RemotePeerClosedCleanly)
{
match self.started_coroutine.resume(RemotePeerClosedCleanly)
{
WouldLikeToResume(_yields @ ()) => if cfg!(debug_assertions)
{
panic!("Should have terminated")
}
else
{
unreachable!()
},
Complete(_complete) => Ok(true),
}
}
else
{
let read_now_ready = event_flags.contains(EPollEventFlags::Input);
let write_now_ready = event_flags.contains(EPollEventFlags::Output);
debug_assert!(read_now_ready || write_now_ready, ("Spurious event with neither read nor write available; flags were `{:?}`", event_flags.bits()));
match self.started_coroutine.resume(InputOrOutputNowAvailable { read_now_ready, write_now_ready })
{
WouldLikeToResume(_yields @ ()) => Ok(false),
Complete(_complete) => Ok(true),
}
}
}
}
|
#![desc = "Constraint Satisfaction in Rust"]
#![license = "MIT"]
#![crate_id = "csar#0.2"]
#![crate_type = "lib"]
#![feature(struct_inherit)]
#![feature(globs)]
use std::fmt;
use std::cell::RefCell;
use std::collections::hashmap::HashMap;
use std::rc::{Rc, Weak};
pub use ltxy::{LtXY, LtXYC, LeXY, LeXYC, GtXY, GtXYC, GeXY, GeXYC, LtXC, GtXC, LeXC, GeXC};
pub use eqxy::{EqXY, EqXYC, EqXC, NeqXY, NeqXYC, NeqXC};
#[allow(dead_code)]
pub struct Mod {
vars: RefCell<Vec<Rc<FDVar>>>,
propagators: RefCell<Vec<Rc<Box<Propagator>>>>,
waiting: RefCell<HashMap<(uint, Event), Vec<uint>>>
}
/// wrapping Mod in an Rc
/// cannot use type Model = Rc<Mod> since that would forbid using impl Model
pub struct Model;
/// Generic Finite Domain trait
trait Domain : fmt::Show {
fn new(min: int, max: int) -> Self;
fn set_min(&self, min: int);
fn get_min(&self) -> int;
fn set_max(&self, max: int);
fn get_max(&self) -> int;
fn remove(&self, val: int);
}
/// Representation of finite domains as a list of intervals, maintaining
/// min and max for easy/quick access
#[deriving(Clone)]
struct IntervalDom {
min: int,
max: int,
intervals: Vec<(int, int)>
}
// Runtime checked mutability with borrowing
#[deriving(Clone)]
struct IntervalDomain {
dom: RefCell<IntervalDom>
}
/// Representation of finite domains as a bit vector, maintaining
/// min and max for easy/quick access
#[deriving(Clone)]
struct BitDom {
min: int,
max: int,
offset: int,
bitvector: u64
}
#[deriving(Clone)]
struct BitDomain {
dom: RefCell<BitDom>
}
trait Propagator {
fn id(&self) -> uint;
fn model(&self) -> Weak<Mod>;
fn events(&self) -> Vec<(uint, Event)>;
fn propagate(&self) -> Vec<uint>;
fn register(&self) {
for &(var, event) in self.events().iter() {
self.model().upgrade().unwrap().add_waiting(var, event, self.id());
}
}
fn unregister(&self) {
for &(var, event) in self.events().iter() {
self.model().upgrade().unwrap().del_waiting(var, event, self.id());
}
}
}
pub virtual struct Prop {
id: uint,
model: Weak<Mod>,
vars: Vec<Rc<FDVar>>
}
#[deriving(Clone)]
pub struct FDVar {
model: Weak<Mod>,
id: uint,
name: String,
dom: IntervalDomain
}
/// wrapping FDVar in an Rc
pub struct Var;
#[deriving(Show, Hash, Eq, PartialEq)]
pub enum Event {
Min,
Max,
Ins
}
#[allow(dead_code)]
impl Model {
fn new() -> Rc<Mod> {
Rc::new(Mod {
vars: RefCell::new(Vec::new()),
propagators: RefCell::new(Vec::new()),
waiting: RefCell::new(HashMap::new())
})
}
}
#[allow(dead_code)]
impl Mod {
fn add_var(&self, var: Rc<FDVar>) {
self.vars.borrow_mut().push(var);
}
fn add_prop(&self, prop: Rc<Box<Propagator>>) {
self.propagators.borrow_mut().push(prop.clone());
prop.register();
self.propagate(self.propagators.borrow().len() - 1);
}
fn add_waiting(&self, var: uint, event: Event, propagator: uint) {
let mut waiting = self.waiting.borrow_mut();
if waiting.contains_key(&(var, event)) {
waiting.get_mut(&(var, event)).push(propagator);
} else {
waiting.insert((var, event), vec![propagator]);
}
}
fn del_waiting(&self, var: uint, event: Event, propagator: uint) {
self.waiting.borrow_mut().get_mut(&(var, event)).remove(propagator);
}
fn get_waiting(&self, var: uint, event: Event) -> Vec<uint> {
let waiting = self.waiting.borrow();
match waiting.find_copy(&(var, event)) {
Some(vec) => vec,
None => Vec::new()
}
}
fn propagate(&self, id: uint) {
println!("propagating for {}", id.to_str());
let woken = self.propagators.borrow().get(id).propagate();
println!("waking {}", woken.to_str());
for &propid in woken.iter() {
self.propagate(propid);
}
}
fn propagate_vec(&self, ids: Vec<uint>) {
println!("propagating for {}", ids.to_str());
for &propid in ids.iter() {
self.propagate(propid);
}
}
}
#[allow(dead_code)]
impl Domain for IntervalDomain {
/// IntervalDomain created with initial bounds
fn new(min: int, max: int) -> IntervalDomain {
IntervalDomain {
dom: RefCell::new(IntervalDom {
min: min,
max: max,
intervals: vec![(min, max)]
})
}
}
fn set_min(&self, min: int) {
let mut dom = self.dom.borrow_mut();
if min < dom.min { return; }
if min > dom.max { return; } // TODO failure via conditions
loop {
match dom.intervals.get(0) {
// note that the breaks are for the loop, not the matching
&(x, _) if min < x => { dom.min = x; break; },
&(_, y) if min > y => { dom.intervals.shift(); },
&(_, y) => {
dom.min = min;
*dom.intervals.get_mut(0) = (min, y);
break;
}
}
}
}
fn get_min(&self) -> int {
self.dom.borrow().min
}
fn set_max(&self, max: int) {
let mut dom = self.dom.borrow_mut();
if max > dom.max { return; }
if max < dom.min { return; } // TODO failure via conditions
loop {
match dom.intervals.last().unwrap() {
&(_, y) if max > y => { dom.max = y; break; },
&(x, _) if max < x => { dom.intervals.pop(); },
&(x, _) => {
dom.max = max;
*dom.intervals.mut_last().unwrap() = (x, max);
break
}
}
}
}
fn get_max(&self) -> int {
self.dom.borrow().max
}
// TODO test for emptyness
fn remove(&self, val: int) {
let mut dom = self.dom.borrow_mut();
if val > dom.max || val < dom.min { return; }
let mut down = 0;
let mut up = dom.intervals.len();
let mut test;
loop {
test = down + (up - down) / 2;
match dom.intervals.get(test) {
&(x, _) if val < x => {
if test > down {
up = test;
} else {
break;
}
},
&(_, y) if val > y => {
if test < up - 1 {
down = test + 1;
} else {
break;
}
},
&(x, y) if val == x && val == y => {
dom.intervals.remove(test);
break;
},
&(x, y) if val == x => {
*dom.intervals.get_mut(test) = (x + 1, y);
break;
},
&(x, y) if val == y => {
*dom.intervals.get_mut(test) = (x, y - 1);
break;
},
&(x, y) => {
*dom.intervals.get_mut(test) = (x, val - 1);
dom.intervals.insert(test + 1, (val + 1, y));
break;
}
}
}
if test == 0 {
match dom.intervals.get(test) {
&(x, _) => dom.min = x
}
} else if test == dom.intervals.len() - 1 {
match dom.intervals.get(test) {
&(_, y) => dom.max = y
}
}
}
}
impl fmt::Show for IntervalDomain {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
let dom = self.dom.borrow();
let mut s = format!("({}, {}) [", dom.min, dom.max);
for &(min, max) in dom.intervals.iter() {
s = s + min.to_str() + ".." + max.to_str() + ", ";
}
return write!(f, "{}]", s);
}
}
impl Var {
pub fn new(model: Rc<Mod>, min: int, max: int, name: &str) -> Rc<FDVar> {
assert!(min <= max);
let id = model.vars.borrow().len();
let v = Rc::new(FDVar {
model: model.downgrade(),
id: id,
name: name.to_string(),
dom: Domain::new(min, max)
});
model.add_var(v.clone());
v
}
}
impl FDVar {
pub fn min(&self) -> int {
self.dom.get_min()
}
pub fn max(&self) -> int {
self.dom.get_max()
}
fn set_min(&self, v: int) -> Vec<uint> {
if v > self.min() {
self.dom.set_min(v);
let model = self.model.upgrade().unwrap();
if self.is_instanciated() {
model.get_waiting(self.id, Min).append(model.get_waiting(self.id, Ins).as_slice())
} else {
model.get_waiting(self.id, Min)
}
} else {
vec![]
}
}
fn set_max(&self, v: int) -> Vec<uint> {
if v < self.max() {
self.dom.set_max(v);
let model = self.model.upgrade().unwrap();
if self.is_instanciated() {
model.get_waiting(self.id, Max).append(model.get_waiting(self.id, Ins).as_slice())
} else {
model.get_waiting(self.id, Max)
}
} else {
vec![]
}
}
fn remove(&self, v: int) -> Vec<uint> {
let min = self.min();
let max = self.max();
match v {
vv if vv < min || vv > max => vec![],
vv if vv == min => self.set_min(vv + 1),
vv if vv == max => self.set_max(vv - 1),
_ => {
self.dom.remove(v);
vec![]
}
}
}
fn is_instanciated(&self) -> bool {
self.min() == self.max()
}
}
impl fmt::Show for FDVar {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{} ({})", self.name, self.dom)
}
}
impl Domain for BitDomain {
fn new(min: int, max: int) -> BitDomain {
assert!(max - min < 64, "cannot be represented as a 64 bit vector");
BitDomain {
dom: RefCell::new(BitDom {
min: min,
max: max,
offset: min,
bitvector: ! 0_u64 >> ((63 - max + min) as uint)
})
}
}
fn set_min(&self, min: int) {
let mut dom = self.dom.borrow_mut();
if min < dom.min { return; }
if min > dom.max { return; } // TODO failure via conditions
// FIXME improve
dom.min = min;
dom.bitvector &= (! 0_u64 >> (dom.min - dom.offset) as uint) << (dom.min - dom.offset) as uint
}
fn get_min(&self) -> int {
self.dom.borrow().min
}
fn set_max(&self, max: int) {
let mut dom = self.dom.borrow_mut();
if max > dom.max { return; }
if max < dom.min { return; } // TODO failure via conditions
// FIXME improve
dom.max = max;
dom.bitvector &= ! 0_u64 >> ((63 - max + dom.min) as uint);
while ((1 << (dom.max - dom.min) as uint) & dom.bitvector) == 0 {
dom.max -= 1;
}
}
fn get_max(&self) -> int {
self.dom.borrow().max
}
// TODO test for emptyness
fn remove(&self, val: int) {
let mut dom = self.dom.borrow_mut();
if val > dom.max || val < dom.min { return; }
if val == dom.max { self.set_max(val - 1); return; }
if val == dom.min { self.set_min(val + 1); return; }
dom.bitvector ^= 1 << ((val - dom.offset) as uint)
}
}
impl fmt::Show for BitDomain {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
let dom = self.dom.borrow();
return write!(f, "({}, {}) [{:t}]", dom.min, dom.max, dom.bitvector);
}
}
mod ltxy;
mod eqxy;
#[cfg(test)]
mod tests;
|
use std::ops;
#[derive(Copy, Clone)]
pub struct Point {
pub x: f64,
pub y: f64
}
impl Point {
pub fn new(x: f64, y: f64) -> Self {
Point { x, y }
}
}
impl ops::Add for Point {
type Output = Point;
fn add(self, other: Self) -> Self {
Point::new(self.x + other.x, self.y + other.y)
}
}
impl ops::Sub for Point {
type Output = Point;
fn sub(self, other: Self) -> Self {
Point::new(self.x - other.x, self.y - other.y)
}
}
pub const ORIGIN: Point = Point { x: 0.0, y: 0.0 };
#[derive(Copy, Clone)]
pub struct PlotSpace {
pub origin: Point,
pub width: f64,
pub height: f64
}
impl PlotSpace {
pub fn new (origin: Point, width: f64, height: f64) -> Self {
PlotSpace { origin, width, height }
}
pub fn with_centre(centre: Point, width: f64, height: f64) -> PlotSpace {
PlotSpace {
origin: Point {
x: centre.x - (width / 2.0),
y: centre.y - (height / 2.0)
},
width,
height
}
}
}
/// Returns a function which resolves an image pixel coordinate to a point on a bounded cartesian plane
pub fn point_resolver(img_width: u32, img_height: u32, plot_space: PlotSpace) -> Box<Fn(u32, u32) -> Point> {
Box::new(move |img_x: u32, img_y: u32| {
Point {
x: plot_space.origin.x + (plot_space.width * img_x as f64 / (img_width as f64)),
y: plot_space.origin.y + plot_space.height - (plot_space.height * img_y as f64 / (img_height as f64))
}
})
}
|
use std::cmp;
use std::io::Read;
fn main() {
let mut buf = String::new();
// 標準入力から全部bufに読み込む
std::io::stdin().read_to_string(&mut buf).unwrap();
// 行ごとのiterが取れる
let mut iter = buf.split_whitespace();
let days: usize = iter.next().unwrap().parse().unwrap();
let hapinesses: Vec<(u32, u32, u32)> = (0..days)
.map(|_| {
(
iter.next().unwrap().parse().unwrap(),
iter.next().unwrap().parse().unwrap(),
iter.next().unwrap().parse().unwrap(),
)
})
.collect();
let mut dp = vec![vec![0; 3]; days];
dp[0] = vec![hapinesses[0].0, hapinesses[0].1, hapinesses[0].2];
for i in 1..days {
dp[i][0] = hapinesses[i].0 + cmp::max(dp[i - 1][1], dp[i - 1][2]);
dp[i][1] = hapinesses[i].1 + cmp::max(dp[i - 1][0], dp[i - 1][2]);
dp[i][2] = hapinesses[i].2 + cmp::max(dp[i - 1][0], dp[i - 1][1]);
}
match dp[days - 1].iter().max() {
Some(n) => println!("{}", n),
None => println!("error"),
}
}
|
use itertools::Itertools;
use std::str::FromStr;
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct Grid<T> {
rows: usize,
cols: usize,
g: Vec<T>,
}
type GridPos = (usize, usize);
#[derive(Debug, Clone, Copy)]
pub enum Direction {
UpLeft,
Up,
UpRight,
Right,
DownRight,
Down,
DownLeft,
Left,
}
#[derive(Debug, PartialEq, Eq)]
pub enum TileNeighbourIterKind {
Adjacent,
InLineOfSight,
}
pub struct TileNeighboursIter<'a, T> {
tile_pos: GridPos,
grid: &'a Grid<T>,
next_direction: Option<Direction>,
kind: TileNeighbourIterKind,
}
pub struct GridPosIter<'a, T> {
grid: &'a Grid<T>,
next_index: Option<usize>,
}
pub trait GridTileIsVisible {
fn is_visible(&self) -> bool;
}
impl<T> std::ops::Index<GridPos> for Grid<T> {
type Output = T;
fn index(&self, index: GridPos) -> &Self::Output {
let i = self.cols * index.0 + index.1;
&self.g[i]
}
}
impl<T> std::ops::IndexMut<GridPos> for Grid<T> {
fn index_mut(&mut self, index: GridPos) -> &mut Self::Output {
let i = self.cols * index.0 + index.1;
&mut self.g[i]
}
}
impl<T> FromStr for Grid<T>
where
T: FromStr,
anyhow::Error: From<T::Err>,
{
type Err = anyhow::Error;
fn from_str(s: &str) -> Result<Self, Self::Err> {
let s = s.trim();
let g = s
.lines()
.flat_map(|l| l.chars().map(|c| c.to_string().parse::<T>()))
.try_collect()?;
let rows = s.lines().count();
let cols = s
.lines()
.next()
.map(|l| l.chars().count())
.ok_or_else(|| anyhow::anyhow!("Row has no tiles"))?;
Ok(Grid { rows, cols, g })
}
}
impl<T> std::fmt::Display for Grid<T>
where
T: std::fmt::Display,
{
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
for r in 0..self.rows {
for c in 0..self.cols {
write!(f, "{}", self[(r, c)])?;
}
if r != self.rows - 1 {
writeln!(f)?;
}
}
Ok(())
}
}
impl Direction {
fn update_to_next_direction(current: &mut Option<Direction>) {
*current = current.and_then(|d| match d {
Direction::UpLeft => Some(Direction::Up),
Direction::Up => Some(Direction::UpRight),
Direction::UpRight => Some(Direction::Right),
Direction::Right => Some(Direction::DownRight),
Direction::DownRight => Some(Direction::Down),
Direction::Down => Some(Direction::DownLeft),
Direction::DownLeft => Some(Direction::Left),
Direction::Left => None,
})
}
fn get_delta(&self) -> (isize, isize) {
match self {
Direction::UpLeft => (-1, -1),
Direction::Up => (-1, 0),
Direction::UpRight => (-1, 1),
Direction::Right => (0, 1),
Direction::DownRight => (1, 1),
Direction::Down => (1, 0),
Direction::DownLeft => (1, -1),
Direction::Left => (0, -1),
}
}
}
impl<'a, T: GridTileIsVisible> std::iter::Iterator for TileNeighboursIter<'a, T> {
type Item = &'a T;
fn next(&mut self) -> Option<Self::Item> {
let visibility_fn = match self.kind {
TileNeighbourIterKind::Adjacent => Grid::get_tile_in_direction,
TileNeighbourIterKind::InLineOfSight => Grid::get_visible_tile_in_direction,
};
while let Some(current_direction) = self.next_direction {
Direction::update_to_next_direction(&mut self.next_direction);
let maybe_tile = visibility_fn(self.grid, self.tile_pos, ¤t_direction);
if maybe_tile.is_some() {
return maybe_tile;
}
}
None
}
}
impl<'a, T> std::iter::Iterator for GridPosIter<'_, T> {
type Item = GridPos;
fn next(&mut self) -> Option<Self::Item> {
self.next_index
.and_then(|i| if i < self.grid.g.len() { Some(i) } else { None })
.map(|i| {
let current_index = i;
self.next_index = Some(i + 1);
let r = current_index / self.grid.cols;
let c = current_index % self.grid.cols;
(r, c)
})
}
}
impl<T> Grid<T> {
pub fn new(rows: usize, cols: usize, elements: Vec<T>) -> Self {
Self {
rows,
cols,
g: elements,
}
}
pub fn adjacent_tiles_iter(&self, pos: GridPos) -> TileNeighboursIter<T> {
TileNeighboursIter {
tile_pos: pos,
grid: self,
next_direction: Some(Direction::UpLeft),
kind: TileNeighbourIterKind::Adjacent,
}
}
pub fn visible_tiles_iter(&self, pos: GridPos) -> TileNeighboursIter<T> {
TileNeighboursIter {
tile_pos: pos,
grid: self,
next_direction: Some(Direction::UpLeft),
kind: TileNeighbourIterKind::InLineOfSight,
}
}
pub fn pos_iter(&self) -> GridPosIter<T> {
GridPosIter {
grid: self,
next_index: Some(0),
}
}
pub fn get_pos_in_direction(&self, pos: GridPos, direction: &Direction) -> GridPos {
let (r_delta, c_delta) = direction.get_delta();
(
pos.0.wrapping_add(r_delta as usize),
pos.1.wrapping_add(c_delta as usize),
)
}
pub fn get_tile_in_direction(&self, pos: GridPos, direction: &Direction) -> Option<&T> {
self.get(self.get_pos_in_direction(pos, direction))
}
pub fn get_visible_tile_in_direction(&self, pos: GridPos, direction: &Direction) -> Option<&T>
where
T: GridTileIsVisible,
{
let mut new_pos = pos;
loop {
new_pos = self.get_pos_in_direction(new_pos, direction);
let maybe_tile = self.get(new_pos);
match maybe_tile {
Some(tile) => {
if tile.is_visible() {
return maybe_tile;
} else {
}
}
None => return None,
}
}
}
pub fn get_tile_in_direction_mut(
&mut self,
pos: GridPos,
direction: &Direction,
) -> Option<&mut T> {
self.get_mut(self.get_pos_in_direction(pos, direction))
}
pub fn get(&self, pos: GridPos) -> Option<&T> {
let r = pos.0;
let c = pos.1;
if r >= self.rows || c >= self.cols {
return None;
};
Some(&self[pos])
}
pub fn get_mut(&mut self, pos: GridPos) -> Option<&mut T> {
let r = pos.0;
let c = pos.1;
if r >= self.rows || c >= self.cols {
return None;
};
Some(&mut self[pos])
}
pub fn len(&self) -> usize {
self.rows * self.cols
}
pub fn is_empty(&self) -> bool {
self.len() != 0
}
pub fn rows(&self) -> usize {
self.rows
}
pub fn cols(&self) -> usize {
self.cols
}
}
|
/*
* hurl (https://hurl.dev)
* Copyright (C) 2020 Orange
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
use super::super::core::ast::*;
pub trait Htmlable {
fn to_html(&self) -> String;
}
pub fn format_standalone(hurl_file: HurlFile) -> String {
let css = include_str!("hurl.css");
let mut buffer = String::from("");
buffer.push_str("<!DOCTYPE html>\n");
buffer.push_str("<html>");
buffer.push_str("<head>");
buffer.push_str("<title>Hurl File</title>");
buffer.push_str("<style>\n");
buffer.push_str(css);
buffer.push_str("</style>");
buffer.push_str("</head>");
buffer.push_str("<body>\n");
buffer.push_str(hurl_file.to_html().as_str());
buffer.push_str("\n</body>");
buffer.push_str("</html>");
buffer
}
pub fn format(hurl_file: HurlFile, standalone: bool) -> String {
if standalone { format_standalone(hurl_file) } else { hurl_file.to_html() }
}
impl Htmlable for HurlFile {
fn to_html(&self) -> String {
let mut buffer = String::from("");
buffer.push_str("<div class=\"hurl-file\">");
for entry in self.clone().entries {
buffer.push_str(entry.to_html().as_str());
}
for line_terminator in self.line_terminators.clone() {
buffer.push_str(line_terminator.to_html().as_str());
}
buffer.push_str("</div>");
buffer
}
}
impl Htmlable for Entry {
fn to_html(&self) -> String {
let mut buffer = String::from("");
buffer.push_str("<div class=\"hurl-entry\">");
buffer.push_str(self.request.to_html().as_str());
if let Some(response) = self.clone().response {
buffer.push_str(response.to_html().as_str());
}
buffer.push_str("</div>");
buffer
}
}
impl Htmlable for Request {
fn to_html(&self) -> String {
let mut buffer = String::from("");
buffer.push_str("<div class=\"request\">");
add_line_terminators(&mut buffer, self.line_terminators.clone());
buffer.push_str("<span class=\"line\">");
buffer.push_str(self.space0.to_html().as_str());
buffer.push_str(self.method.to_html().as_str());
buffer.push_str(self.space1.to_html().as_str());
buffer.push_str(self.url.to_html().as_str());
buffer.push_str(self.line_terminator0.to_html().as_str());
buffer.push_str("</span>");
buffer.push_str("</div>");
for header in self.headers.clone() {
buffer.push_str(header.to_html().as_str());
}
for section in self.sections.clone() {
buffer.push_str(section.to_html().as_str());
}
buffer
}
}
impl Htmlable for Response {
fn to_html(&self) -> String {
let mut buffer = String::from("");
buffer.push_str("<div class=\"response\">");
add_line_terminators(&mut buffer, self.line_terminators.clone());
buffer.push_str("<span class=\"line\">");
buffer.push_str(self.space0.to_html().as_str());
buffer.push_str(self.version.to_html().as_str());
buffer.push_str(self.space1.to_html().as_str());
buffer.push_str(self.status.to_html().as_str());
buffer.push_str("</span>");
for section in self.sections.clone() {
buffer.push_str(section.to_html().as_str());
}
buffer.push_str("</div>");
buffer
}
}
impl Htmlable for Method {
fn to_html(&self) -> String {
return format!("<span class=\"method\">{}</span>", self.as_str());
}
}
impl Htmlable for Version {
fn to_html(&self) -> String {
return format!(
"<span class=\"version\">HTTP/{}</span>",
self.value.as_str()
);
}
}
impl Htmlable for Status {
fn to_html(&self) -> String {
format!("<span class=\"status\">{}</span>", self.value.to_string())
}
}
impl Htmlable for Section {
fn to_html(&self) -> String {
let mut buffer = String::from("");
add_line_terminators(&mut buffer, self.line_terminators.clone());
buffer.push_str(self.space0.to_html().as_str());
buffer
.push_str(format!("<span class=\"section-header\">[{}]</span>", self.name()).as_str());
buffer.push_str("</span>");
buffer.push_str(self.value.to_html().as_str());
buffer
}
}
impl Htmlable for SectionValue {
fn to_html(&self) -> String {
let mut buffer = String::from("");
match self {
SectionValue::Asserts(items) => {
for item in items {
buffer.push_str(item.to_html().as_str())
}
}
SectionValue::QueryParams(items) => {
for item in items {
buffer.push_str(item.to_html().as_str())
}
}
SectionValue::FormParams(items) => {
for item in items {
buffer.push_str(item.to_html().as_str())
}
}
SectionValue::MultipartFormData(items) => {
for item in items {
buffer.push_str(item.to_html().as_str())
}
}
SectionValue::Cookies(items) => {
for item in items {
buffer.push_str(item.to_html().as_str())
}
}
SectionValue::Captures(items) => {
for item in items {
buffer.push_str(item.to_html().as_str())
}
}
}
buffer
}
}
impl Htmlable for KeyValue {
fn to_html(&self) -> String {
let mut buffer = String::from("");
add_line_terminators(&mut buffer, self.line_terminators.clone());
buffer.push_str("<span class=\"line\">");
buffer.push_str(self.space0.to_html().as_str());
buffer.push_str(self.key.to_html().as_str());
buffer.push_str(self.space1.to_html().as_str());
buffer.push_str("<span>:</span>");
buffer.push_str(self.space2.to_html().as_str());
buffer.push_str(self.value.to_html().as_str());
buffer.push_str(self.line_terminator0.to_html().as_str());
buffer.push_str("</span>");
buffer
}
}
impl Htmlable for MultipartParam {
fn to_html(&self) -> String {
match self {
MultipartParam::Param(keyvalue) => keyvalue.to_html(),
MultipartParam::FileParam(file_param) => file_param.to_html(),
}
}
}
impl Htmlable for FileParam {
fn to_html(&self) -> String {
let mut buffer = String::from("");
add_line_terminators(&mut buffer, self.line_terminators.clone());
buffer.push_str("<span class=\"line\">");
buffer.push_str(self.space0.to_html().as_str());
buffer.push_str(self.key.to_html().as_str());
buffer.push_str(self.space1.to_html().as_str());
buffer.push_str("<span>:</span>");
buffer.push_str(self.space2.to_html().as_str());
buffer.push_str(self.value.to_html().as_str());
buffer.push_str(self.line_terminator0.to_html().as_str());
buffer.push_str("</span>");
buffer
}
}
impl Htmlable for FileValue {
fn to_html(&self) -> String {
let mut buffer = String::from("");
buffer.push_str(self.space0.to_html().as_str());
buffer
}
}
impl Htmlable for Cookie {
fn to_html(&self) -> String {
let mut buffer = String::from("");
add_line_terminators(&mut buffer, self.line_terminators.clone());
buffer.push_str("<span class=\"line\">");
buffer.push_str(self.space0.to_html().as_str());
buffer.push_str(self.name.value.as_str());
buffer.push_str(self.space1.to_html().as_str());
buffer.push_str("<span>:</span>");
buffer.push_str(self.space2.to_html().as_str());
buffer.push_str(self.value.to_html().as_str());
buffer.push_str(self.line_terminator0.to_html().as_str());
buffer.push_str("</span>");
buffer
}
}
impl Htmlable for CookieValue {
fn to_html(&self) -> String {
let mut buffer = String::from("");
buffer.push_str(self.value.as_str());
buffer
}
}
impl Htmlable for Capture {
fn to_html(&self) -> String {
let mut buffer = String::from("");
add_line_terminators(&mut buffer, self.line_terminators.clone());
buffer.push_str("<span class=\"line\">");
buffer.push_str(self.space0.to_html().as_str());
buffer.push_str(self.name.value.as_str());
buffer.push_str(self.space1.to_html().as_str());
buffer.push_str("<span>:</span>");
buffer.push_str(self.space2.to_html().as_str());
buffer.push_str(self.query.to_html().as_str());
buffer.push_str(self.line_terminator0.to_html().as_str());
buffer.push_str("</span>");
buffer
}
}
impl Htmlable for Query {
fn to_html(&self) -> String {
self.value.to_html()
}
}
impl Htmlable for QueryValue {
fn to_html(&self) -> String {
let mut buffer = String::from("");
match self {
QueryValue::Status {} => {
buffer.push_str("<span class=\"query-type\">status</span>");
}
QueryValue::Header { space0, name } => {
buffer.push_str("<span class=\"query-type\">header</span>");
buffer.push_str(space0.to_html().as_str());
buffer.push_str(name.to_html().as_str());
}
QueryValue::Cookie { space0, expr } => {
buffer.push_str("<span class=\"query-type\">cookie</span>");
buffer.push_str(space0.to_html().as_str());
buffer.push_str(expr.to_html().as_str());
}
QueryValue::Body {} => {
buffer.push_str("<span class=\"query-type\">status</span>");
}
QueryValue::Xpath { space0, expr } => {
buffer.push_str("<span class=\"query-type\">xpath</span>");
buffer.push_str(space0.to_html().as_str());
buffer.push_str(expr.to_html().as_str());
}
QueryValue::Jsonpath { space0, expr } => {
buffer.push_str("<span class=\"query-type\">jsonpath</span>");
buffer.push_str(space0.to_html().as_str());
buffer.push_str(expr.to_html().as_str());
}
QueryValue::Regex { space0, expr } => {
buffer.push_str("<span class=\"query-type\">regex</span>");
buffer.push_str(space0.to_html().as_str());
buffer.push_str(expr.to_html().as_str());
}
QueryValue::Variable { space0, name } => {
buffer.push_str("<span class=\"query-type\">variable</span>");
buffer.push_str(space0.to_html().as_str());
buffer.push_str(name.to_html().as_str());
}
}
buffer
}
}
impl Htmlable for CookiePath {
fn to_html(&self) -> String {
let mut buffer = String::from("");
buffer.push_str(self.name.to_html().as_str());
if let Some(attribute) = self.attribute.clone() {
buffer.push_str(attribute.to_html().as_str());
}
buffer
}
}
impl Htmlable for CookieAttribute {
fn to_html(&self) -> String {
let mut buffer = String::from("");
buffer.push_str(self.space0.to_html().as_str());
buffer.push_str(self.name.value().as_str());
buffer.push_str(self.space1.to_html().as_str());
buffer
}
}
impl Htmlable for Assert {
fn to_html(&self) -> String {
let mut buffer = String::from("");
add_line_terminators(&mut buffer, self.line_terminators.clone());
buffer.push_str("<span class=\"line\">");
buffer.push_str(self.space0.to_html().as_str());
buffer.push_str(self.query.to_html().as_str());
buffer.push_str(self.space1.to_html().as_str());
buffer.push_str(self.predicate.to_html().as_str());
buffer.push_str("</span>");
buffer.push_str(self.line_terminator0.to_html().as_str());
buffer
}
}
impl Htmlable for Predicate {
fn to_html(&self) -> String {
let mut buffer = String::from("");
if self.not {
buffer.push_str("not");
buffer.push_str(self.space0.to_html().as_str());
}
buffer.push_str(self.predicate_func.to_html().as_str());
buffer
}
}
impl Htmlable for PredicateFunc {
fn to_html(&self) -> String {
self.value.to_html()
}
}
impl Htmlable for PredicateFuncValue {
fn to_html(&self) -> String {
let mut buffer = String::from("");
match self {
PredicateFuncValue::CountEqual { space0, value } => {
buffer.push_str("<span class=\"predicate-type\">equals</span>");
buffer.push_str(space0.to_html().as_str());
buffer.push_str(format!("<span class=\"number\">{}</span>", value).as_str());
}
PredicateFuncValue::EqualString { space0, value } => {
buffer.push_str("<span class=\"predicate-type\">equals</span>");
buffer.push_str(space0.to_html().as_str());
buffer.push_str(format!("<span class=\"number\">{}</span>", value.to_html()).as_str());
}
PredicateFuncValue::EqualInt { space0, value } => {
buffer.push_str("<span class=\"predicate-type\">equals</span>");
buffer.push_str(space0.to_html().as_str());
buffer.push_str(format!("<span class=\"number\">{}</span>", value).as_str());
}
PredicateFuncValue::EqualFloat { space0, value } => {
buffer.push_str("<span class=\"predicate-type\">equals</span>");
buffer.push_str(space0.to_html().as_str());
buffer.push_str(format!("<span class=\"number\">{}</span>", value.to_string()).as_str());
}
PredicateFuncValue::EqualExpression { space0, value } => {
buffer.push_str("<span class=\"predicate-type\">equals</span>");
buffer.push_str(space0.to_html().as_str());
buffer.push_str(value.to_html().as_str());
}
PredicateFuncValue::StartWith { space0, value } => {
buffer.push_str("<span class=\"predicate-type\">startsWith</span>");
buffer.push_str(space0.to_html().as_str());
buffer.push_str(format!("<span class=\"string\">{}</span>", value.to_html()).as_str());
}
PredicateFuncValue::Contain { space0, value } => {
buffer.push_str("<span class=\"predicate-type\">contains</span>");
buffer.push_str(space0.to_html().as_str());
buffer.push_str(format!("<span class=\"string\">{}</span>", value.to_html()).as_str());
}
PredicateFuncValue::IncludeString { space0, value } => {
buffer.push_str("<span class=\"predicate-type\">includes</span>");
buffer.push_str(space0.to_html().as_str());
buffer.push_str(format!("<span class=\"string\">{}</span>", value.to_html()).as_str());
}
PredicateFuncValue::IncludeInt { space0, value } => {
buffer.push_str("<span class=\"predicate-type\">includes</span>");
buffer.push_str(space0.to_html().as_str());
buffer.push_str(format!("<span class=\"number\">{}</span>", value).as_str());
}
PredicateFuncValue::IncludeNull { space0 } => {
buffer.push_str("<span class=\"predicate-type\">includes</span>");
buffer.push_str(space0.to_html().as_str());
buffer.push_str("<span class=\"null\">null</span>");
}
PredicateFuncValue::IncludeBool { space0, value } => {
buffer.push_str("<span class=\"predicate-type\">includes</span>");
buffer.push_str(space0.to_html().as_str());
buffer.push_str(format!("<span class=\"boolean\">{}</span>", value).as_str());
}
PredicateFuncValue::IncludeFloat { space0, value } => {
buffer.push_str("<span class=\"predicate-type\">includes</span>");
buffer.push_str(space0.to_html().as_str());
buffer.push_str(format!("<span class=\"number\">{}</span>", value.to_string()).as_str());
}
PredicateFuncValue::IncludeExpression { space0, value } => {
buffer.push_str("<span class=\"predicate-type\">includes</span>");
buffer.push_str(space0.to_html().as_str());
buffer.push_str(value.to_html().as_str());
}
PredicateFuncValue::Match { space0, value } => {
buffer.push_str("<span class=\"predicate-type\">matches</span>");
buffer.push_str(space0.to_html().as_str());
buffer.push_str(format!("<span class=\"string\">{}</span>", value.to_html()).as_str());
}
PredicateFuncValue::EqualNull { space0 } => {
buffer.push_str("<span class=\"predicate-type\">equals</span>");
buffer.push_str(space0.to_html().as_str());
buffer.push_str("<span class=\"null\">null</span>");
}
PredicateFuncValue::EqualBool { space0, value } => {
buffer.push_str("<span class=\"predicate-type\">equals</span>");
buffer.push_str(space0.to_html().as_str());
buffer.push_str(format!("<span class=\"boolean\">{}</span>", value).as_str());
}
PredicateFuncValue::Exist {} => {
buffer.push_str("<span class=\"predicate-type\">exists</span>");
}
}
buffer
}
}
impl Htmlable for Whitespace {
fn to_html(&self) -> String {
let mut buffer = String::from("");
let Whitespace { value, .. } = self;
if !value.is_empty() {
buffer.push_str(self.value.as_str());
};
buffer
}
}
impl Htmlable for LineTerminator {
fn to_html(&self) -> String {
let mut buffer = String::from("");
buffer.push_str(self.space0.to_html().as_str());
if let Some(v) = self.clone().comment {
buffer.push_str("<span class=\"comment\">");
buffer.push_str(format!("#{}", v.value.as_str()).as_str());
buffer.push_str("</span>");
}
buffer
}
}
impl Htmlable for EncodedString {
fn to_html(&self) -> String {
format!("<span class=\"string\">\"{}\"</span>", self.encoded)
}
}
impl Htmlable for Template {
fn to_html(&self) -> String {
let mut buffer = String::from("");
for element in self.elements.clone() {
buffer.push_str(element.to_html().as_str());
}
buffer
}
}
impl Htmlable for TemplateElement {
fn to_html(&self) -> String {
match self {
TemplateElement::String { encoded, .. } => {
format!("<span class=\"string\">{}</span>", encoded)
}
TemplateElement::Expression(value) => value.to_html(),
/* space0: _, variable: _, space1: _ } => {
let mut buffer = String::from("");
buffer.push_str("{{");
buffer.push_str("}}");
return buffer;
}*/
}
}
}
impl Htmlable for Expr {
fn to_html(&self) -> String {
format!("<span class=\"variable\">{}</span>", self.variable.name)
}
}
fn to_line(v: String) -> String {
format!("<span class=\"line\">{}</span>", v)
}
fn add_line_terminators(buffer: &mut String, line_terminators: Vec<LineTerminator>) {
for line_terminator in line_terminators.clone() {
buffer.push_str(to_line(line_terminator.to_html()).as_str());
}
}
|
#[derive(Debug, Serialize, Clone)]
pub struct GraphQlErrorLocation {
line: i32,
column: i32,
}
#[derive(Debug, Serialize, Clone)]
pub struct GraphQLError {
message: String,
locations: Vec<GraphQlErrorLocation>,
}
#[derive(Debug, Serialize, Clone)]
pub struct GraphQLErrors {
errors: Vec<GraphQLError>,
}
impl GraphQLErrors {
pub fn new(message: &str) -> GraphQLErrors {
GraphQLErrors { errors: vec![ GraphQLError { message: message.to_owned(), locations: Vec::new() } ] }
}
}
|
use crate::{
builtins::{PyBytes, PyBytesRef, PyStrRef},
convert::{IntoPyException, ToPyObject},
function::PyStr,
protocol::PyBuffer,
PyObjectRef, PyResult, TryFromObject, VirtualMachine,
};
use std::{ffi::OsStr, path::PathBuf};
#[derive(Clone)]
pub enum FsPath {
Str(PyStrRef),
Bytes(PyBytesRef),
}
impl FsPath {
// PyOS_FSPath in CPython
pub fn try_from(obj: PyObjectRef, check_for_nul: bool, vm: &VirtualMachine) -> PyResult<Self> {
let check_nul = |b: &[u8]| {
if !check_for_nul || memchr::memchr(b'\0', b).is_none() {
Ok(())
} else {
Err(crate::exceptions::cstring_error(vm))
}
};
let match1 = |obj: PyObjectRef| {
let pathlike = match_class!(match obj {
s @ PyStr => {
check_nul(s.as_str().as_bytes())?;
FsPath::Str(s)
}
b @ PyBytes => {
check_nul(&b)?;
FsPath::Bytes(b)
}
obj => return Ok(Err(obj)),
});
Ok(Ok(pathlike))
};
let obj = match match1(obj)? {
Ok(pathlike) => return Ok(pathlike),
Err(obj) => obj,
};
let method =
vm.get_method_or_type_error(obj.clone(), identifier!(vm, __fspath__), || {
format!(
"should be string, bytes, os.PathLike or integer, not {}",
obj.class().name()
)
})?;
let result = method.call((), vm)?;
match1(result)?.map_err(|result| {
vm.new_type_error(format!(
"expected {}.__fspath__() to return str or bytes, not {}",
obj.class().name(),
result.class().name(),
))
})
}
pub fn as_os_str(&self, vm: &VirtualMachine) -> PyResult<&OsStr> {
// TODO: FS encodings
match self {
FsPath::Str(s) => Ok(s.as_str().as_ref()),
FsPath::Bytes(b) => Self::bytes_as_osstr(b.as_bytes(), vm),
}
}
pub fn as_bytes(&self) -> &[u8] {
// TODO: FS encodings
match self {
FsPath::Str(s) => s.as_str().as_bytes(),
FsPath::Bytes(b) => b.as_bytes(),
}
}
pub fn as_str(&self) -> &str {
match self {
FsPath::Bytes(b) => std::str::from_utf8(b).unwrap(),
FsPath::Str(s) => s.as_str(),
}
}
pub fn to_path_buf(&self, vm: &VirtualMachine) -> PyResult<PathBuf> {
let path = match self {
FsPath::Str(s) => PathBuf::from(s.as_str()),
FsPath::Bytes(b) => PathBuf::from(Self::bytes_as_osstr(b, vm)?),
};
Ok(path)
}
pub fn to_cstring(&self, vm: &VirtualMachine) -> PyResult<std::ffi::CString> {
std::ffi::CString::new(self.as_bytes()).map_err(|e| e.into_pyexception(vm))
}
#[cfg(windows)]
pub fn to_widecstring(&self, vm: &VirtualMachine) -> PyResult<widestring::WideCString> {
widestring::WideCString::from_os_str(self.as_os_str(vm)?)
.map_err(|err| err.into_pyexception(vm))
}
pub fn bytes_as_osstr<'a>(b: &'a [u8], vm: &VirtualMachine) -> PyResult<&'a std::ffi::OsStr> {
rustpython_common::os::bytes_as_osstr(b)
.map_err(|_| vm.new_unicode_decode_error("can't decode path for utf-8".to_owned()))
}
}
impl ToPyObject for FsPath {
fn to_pyobject(self, _vm: &VirtualMachine) -> PyObjectRef {
match self {
Self::Str(s) => s.into(),
Self::Bytes(b) => b.into(),
}
}
}
impl TryFromObject for FsPath {
// PyUnicode_FSDecoder in CPython
fn try_from_object(vm: &VirtualMachine, obj: PyObjectRef) -> PyResult<Self> {
let obj = match obj.try_to_value::<PyBuffer>(vm) {
Ok(buffer) => {
let mut bytes = vec![];
buffer.append_to(&mut bytes);
vm.ctx.new_bytes(bytes).into()
}
Err(_) => obj,
};
Self::try_from(obj, true, vm)
}
}
|
extern crate regex;
pub mod irc;
|
use super::state_prelude::*;
const UI_TIMER_DISPLAY_RON_PATH: &str = "ui/timer_display.ron";
pub struct Ingame {
level: Level,
ui_data: UiData,
}
impl Ingame {
pub fn new(level: Level) -> Self {
Self {
level,
ui_data: Default::default(),
}
}
}
impl<'a, 'b> State<CustomGameData<'a, 'b, CustomData>, StateEvent> for Ingame {
fn on_start(&mut self, mut data: StateData<CustomGameData<CustomData>>) {
// Start timer
if let Some(timer) = data.world.write_resource::<TimerRes>().0.as_mut()
{
if timer.state.is_stopped() || timer.state.is_finished() {
timer.start().unwrap();
}
}
// Display timer
if data.world.read_resource::<ShouldDisplayTimer>().0 {
let _progress =
self.create_ui(&mut data, resource(UI_TIMER_DISPLAY_RON_PATH));
}
}
fn on_stop(&mut self, data: StateData<CustomGameData<CustomData>>) {
// Stop timer
if let Some(timer) = data.world.write_resource::<TimerRes>().0.as_mut()
{
if timer.state.is_running() || timer.state.is_paused() {
// Quit to main menu from pause menu
if data.world.read_resource::<ToMainMenu>().0 {
timer.stop().unwrap();
// Beat the level
} else {
timer.finish().unwrap();
println!("---\nLEVEL TIME: {}\n---", timer.time_output());
}
}
}
// NOTE: Don't delete on stop, so the time is still displayed in `Win` state.
// Delete timer display
// if data.world.read_resource::<ShouldDisplayTimer>().0 {
// self.delete_ui(&mut data);
// }
}
fn on_resume(&mut self, data: StateData<CustomGameData<CustomData>>) {
// Resume timer
if let Some(timer) = data.world.write_resource::<TimerRes>().0.as_mut()
{
if timer.state.is_paused() {
timer.resume().unwrap();
}
}
}
fn on_pause(&mut self, data: StateData<CustomGameData<CustomData>>) {
// Pause timer
if let Some(timer) = data.world.write_resource::<TimerRes>().0.as_mut()
{
if timer.state.is_running() {
timer.pause().unwrap();
}
}
}
fn update(
&mut self,
data: StateData<CustomGameData<CustomData>>,
) -> Trans<CustomGameData<'a, 'b, CustomData>, StateEvent> {
data.data.update(data.world, "ingame").unwrap();
// Handle input
if let Some(trans) = self.handle_keys(&data.world) {
return trans;
}
// Win game
if data.world.read_resource::<WinGame>().0 {
data.world.write_resource::<WinGame>().0 = false;
return Trans::Switch(Box::new(Win::new(self.level.clone())));
}
// To main menu (DifficultySelect)
if data.world.read_resource::<ToMainMenu>().0 {
return Trans::Pop;
}
Trans::None
}
fn fixed_update(
&mut self,
mut data: StateData<CustomGameData<'a, 'b, CustomData>>,
) -> Trans<CustomGameData<'a, 'b, CustomData>, StateEvent> {
if let Some(trans) = self.update_ui_events(&mut data) {
trans
} else {
Trans::None
}
}
}
impl Ingame {
fn handle_keys<'a, 'b>(
&self,
world: &World,
) -> Option<Trans<CustomGameData<'a, 'b, CustomData>, StateEvent>> {
let input = world.read_resource::<InputManager<IngameBindings>>();
if input.is_down(IngameActionBinding::Quit) {
Some(Trans::Quit)
} else if input.is_down(IngameActionBinding::TogglePause) {
Some(Trans::Push(Box::new(Paused::default())))
} else {
None
}
}
}
impl<'a, 'b> Menu<CustomGameData<'a, 'b, CustomData>, StateEvent> for Ingame {
fn event_triggered(
&mut self,
_data: &mut StateData<CustomGameData<'a, 'b, CustomData>>,
_event_name: String,
_event: UiEvent,
) -> Option<Trans<CustomGameData<'a, 'b, CustomData>, StateEvent>> {
None
}
fn ui_data(&self) -> &UiData {
&self.ui_data
}
fn ui_data_mut(&mut self) -> &mut UiData {
&mut self.ui_data
}
}
|
use bytes::{Buf, BytesMut};
use hex_literal::hex;
use serde::Deserialize;
use std::io::Read;
use zenith_utils::bin_ser::LeSer;
#[derive(Debug, PartialEq, Deserialize)]
pub struct HeaderData {
magic: u16,
info: u16,
tli: u32,
pageaddr: u64,
len: u32,
}
// A manual implementation using BytesMut, just so we can
// verify that we decode the same way.
pub fn decode_header_data(buf: &mut BytesMut) -> HeaderData {
HeaderData {
magic: buf.get_u16_le(),
info: buf.get_u16_le(),
tli: buf.get_u32_le(),
pageaddr: buf.get_u64_le(),
len: buf.get_u32_le(),
}
}
pub fn decode2<R: Read>(reader: &mut R) -> HeaderData {
HeaderData::des_from(reader).unwrap()
}
#[test]
fn test1() {
let raw1 = hex!("8940 7890 5534 7890 1289 5379 8378 7893 4207 8923 4712 3218");
let mut buf1 = BytesMut::from(&raw1[..]);
let mut buf2 = &raw1[..];
let dec1 = decode_header_data(&mut buf1);
let dec2 = decode2(&mut buf2);
assert_eq!(dec1, dec2);
assert_eq!(buf1, buf2);
}
|
extern crate rand;
extern crate piston_window;
extern crate find_folder;
mod draw;
mod snake;
mod game;
use piston_window::*;
use piston_window::types::Color;
use game::Game;
use draw::to_coord_u32;
const BACK_COLOR: Color = [0.8, 0.8, 0.8, 1.0];
fn main() {
let opengl = OpenGL::V3_2;
let (width, height) = (30, 30);
let mut window: PistonWindow =
WindowSettings::new("Walle-masken", [to_coord_u32(width), to_coord_u32(height)])
.exit_on_esc(true)
.opengl(opengl)
.build()
.unwrap();
let assets = find_folder::Search::ParentsThenKids(3, 3)
.for_folder("assets").unwrap();
let background = assets.join("background.png");
println!("{:?}", background);
let background: G2dTexture = Texture::from_path(
&mut window.factory,
&background,
Flip::None,
&TextureSettings::new()
).unwrap();
let mut game = Game:: new(width, height);
while let Some(event) = window.next() {
if let Some(Button::Keyboard(key)) = event.press_args() {
game.key_pressed(key);
}
window.draw_2d(&event, |c, g| {
clear(BACK_COLOR, g);
image(&background, c.transform, g);
game.draw(&c, g);
});
event.update(|arg| {
game.update(arg.dt);
});
}
}
|
use std::collections::HashMap;
fn main() {
const INPUT: &str = include_str!("../input.txt");
let checksum = compute_checksum(INPUT.lines().collect());
println!("{}", checksum);
println!("{}", day2_part2(INPUT.lines().collect()));
}
fn compute_checksum(ids: Vec<&str>) -> i64 {
let mut two_matches = 0;
let mut three_matches = 0;
for id in ids {
let mut occurences = HashMap::with_capacity(26);
for char in id.chars() {
*occurences.entry(char).or_insert(0) += 1;
}
if occurences.values().any(|&count| count == 2) {
two_matches += 1;
}
if occurences.values().any(|&count| count == 3) {
three_matches += 1;
}
}
two_matches * three_matches
}
pub fn day2_part2(input: Vec<&str>) -> String {
for (idx, id) in input.iter().enumerate() {
for id2 in input.iter().skip(idx + 1) {
if id.chars().zip(id2.chars()).filter(|(a, b)| a != b).count() == 1 {
return id
.chars()
.zip(id2.chars())
.filter(|(a, b)| a == b)
.map(|(a, _)| a)
.collect();
}
}
}
unreachable!()
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_compute_checksum_correct() {
let input = vec![
"abcdef", "bababc", "abbcde", "abcccd", "aabcdd", "abcdee", "ababab",
];
assert_eq!(12, compute_checksum(input));
}
}
|
use std::fs::File;
use std::io::{Read, Write};
use std::path::Path;
use super::apt::{apt_install, service_start};
use super::juju;
/// Write the samba configuration file out to disk
pub fn render_samba_configuration<T: Write>(f: &mut T,
volume_name: &str)
-> Result<usize, ::std::io::Error> {
let mut bytes_written = 0;
bytes_written += f.write(&format!("[{}]\n", volume_name).as_bytes())?;
bytes_written += f.write(b"path = /mnt/glusterfs\n")?;
bytes_written += f.write(b"read only = no\n")?;
bytes_written += f.write(b"guest ok = yes\n")?;
bytes_written += f.write(b"kernel share modes = no\n")?;
bytes_written += f.write(b"kernel oplocks = no\n")?;
bytes_written += f.write(b"map archive = no\n")?;
bytes_written += f.write(b"map hidden = no\n")?;
bytes_written += f.write(b"map read only = no\n")?;
bytes_written += f.write(b"map system = no\n")?;
bytes_written += f.write(b"store dos attributes = yes\n")?;
Ok(bytes_written)
}
fn samba_config_changed(volume_name: &str) -> Result<bool, ::std::io::Error> {
if Path::new("/etc/samba/smb.conf").exists() {
// Lets check if the smb.conf matches what we're going to write. If so then
// it was already setup and there's nothing to do
let mut f = File::open("/etc/samba/smb.conf")?;
let mut existing_config: Vec<u8> = Vec::new();
f.read_to_end(&mut existing_config)?;
let mut new_config: Vec<u8> = Vec::new();
let _ = render_samba_configuration(&mut new_config, volume_name)?;
if new_config == existing_config {
// configs are identical
return Ok(false);
} else {
return Ok(true);
}
}
// Config doesn't exist.
return Ok(true);
}
pub fn setup_samba(volume_name: &str) -> Result<(), String> {
let cifs_config = juju::config_get("cifs").map_err(|e| e.to_string())?;
if cifs_config.is_none() {
// Samba isn't enabled
log!("Samba option is not enabled");
return Ok(());
}
if !samba_config_changed(volume_name).map_err(|e| e.to_string())? {
log!("Samba is already setup. Not reinstalling");
return Ok(());
}
status_set!(Maintenance "Installing Samba");
apt_install(vec!["samba"])?;
status_set!(Maintenance "Configuring Samba");
log!("Setting up Samba");
let mut samba_conf = File::create("/etc/samba/smb.conf").map_err(|e| e.to_string())?;
let bytes_written =
render_samba_configuration(&mut samba_conf, volume_name).map_err(|e| e.to_string())?;
log!(format!("Wrote {} bytes to /etc/samba/smb.conf", bytes_written));
log!("Starting Samba service");
status_set!(Maintenance "Starting Samba");
service_start("smbd")?;
Ok(())
}
|
#[cfg(test)]
mod tests {
type ParseResult<'a, Output> = Result<(&'a str, Output), &'a str>;
trait Parser<'a, Output> {
fn parse(&self, input:&'a str) -> ParseResult<'a, Output>;
fn map<F, NewOutput>(self, map_fn: F) -> BoxedParser<'a, NewOutput>
where
Self: Sized + 'a,
F: Fn(Output) -> NewOutput + 'a,
Output: 'a,
NewOutput: 'a,
{
BoxedParser::new(map(self, map_fn))
}
fn pred<F>(self, pred_fn: F) -> BoxedParser<'a, Output>
where
Self: Sized + 'a,
Output: 'a,
F: Fn(&Output) -> bool + 'a,
{
BoxedParser::new(pred(self, pred_fn))
}
fn and_then<F, NextParser, NewOutput>(self, f: F) -> BoxedParser<'a, NewOutput>
where
Self: Sized + 'a,
Output: 'a,
NewOutput: 'a,
NextParser: Parser<'a, NewOutput> + 'a,
F: Fn(Output) -> NextParser + 'a,
{
BoxedParser::new(and_then(self, f))
}
}
impl<'a, F, Output> Parser<'a, Output> for F
where
F: Fn(&'a str) -> ParseResult<Output>,
{
fn parse(&self, input:&'a str) -> ParseResult<'a, Output> {
self(input)
}
}
struct BoxedParser<'a, Output> {
parser: Box<dyn Parser<'a, Output> + 'a >,
}
impl<'a, Output> BoxedParser<'a, Output> {
fn new<P>(parser: P) -> Self
where
P: Parser<'a, Output> + 'a
{
BoxedParser {
parser: Box::new(parser),
}
}
}
impl<'a, Output> Parser<'a, Output> for BoxedParser<'a, Output> {
fn parse(&self, input:&'a str) -> ParseResult<'a, Output> {
self.parser.parse(input)
}
}
#[test]
fn it_works() {
assert_eq!(2 + 2, 4);
}
#[derive(Clone, Debug, PartialEq, Eq)]
struct Element {
name: String,
attributes: Vec<(String, String)>,
children: Vec<Element>,
}
fn match_literal<'a>(expected: &'static str) -> impl Parser<'a, String>
{
move |input: &'a str| match input.get(0..expected.len()) {
Some(next) if next == expected =>
Ok((&input[expected.len()..], String::from(next))),
_ => Err(input),
}
}
#[test]
fn literal_parser() {
let parse_content = match_literal("Hello Joe!");
assert_eq!(
Ok(("", "Hello Joe!".to_string())),
parse_content.parse("Hello Joe!")
);
assert_eq!(
Ok((" Hello Robert!", "Hello Joe!".to_string())),
parse_content.parse("Hello Joe! Hello Robert!")
);
assert_eq!(
Err("Hello Mike!"),
parse_content.parse("Hello Mike!")
);
}
fn identifier(input: &str) -> ParseResult<String> {
let mut matched = String::new();
let mut chars = input.chars();
match chars.next() {
Some(next) if next.is_alphabetic() => {
matched.push(next);
},
_ => return Err(&input),
};
while let Some(next) = chars.next() {
if next.is_alphabetic() || next == '-' {
matched.push(next);
} else {
break;
}
}
let next_index = matched.len();
let last = matched.chars().last();
match last {
Some('-') => {
return Err(&input);
}
_ => Ok((&input[next_index..], matched))
}
}
#[test]
fn identifier_parser() {
assert_eq!(
Ok(("", "i-am-an-identifier".to_string())),
identifier("i-am-an-identifier")
);
assert_eq!(
Ok((" entirely an identifier", "not".to_string())),
identifier("not entirely an identifier")
);
assert_eq!(
Err("!not at all an identifier"),
identifier("!not at all an identifier")
);
assert_eq!(
Err("not-an-identifier-"),
identifier("not-an-identifier-")
);
}
fn map<'a, P, F, A, B>(parser: P, map_fn: F) -> impl Parser<'a, B>
where
P: Parser<'a, A>,
F: Fn(A) -> B
{
move |input| parser.parse(input).map(|(next_input, result)| (next_input, map_fn(result)))
}
fn pair<'a, P1, P2, R1, R2>(parser1: P1, parser2: P2) -> impl Parser<'a, (R1, R2)>
where
P1: Parser<'a, R1>,
P2: Parser<'a, R2>
{
move |input| parser1.parse(input).and_then(|(next_input, result1)| {
parser2.parse(next_input).map(|(last_input,result2)| (last_input, (result1, result2)))
})
}
fn left<'a, P1, P2, R1, R2>(parser1: P1, parser2: P2) -> impl Parser<'a, R1>
where
P1: Parser<'a, R1>,
P2: Parser<'a, R2>,
{
map(pair(parser1, parser2), |(left, _right)| left)
}
fn right<'a, P1, P2, R1, R2>(parser1: P1, parser2: P2) -> impl Parser<'a, R2>
where
P1: Parser<'a, R1>,
P2: Parser<'a, R2>,
{
map(pair(parser1, parser2), |(_left, right)| right)
}
#[test]
fn pair_combinator() {
let tag_opener = pair(match_literal("<"), identifier);
assert_eq!(Ok(("/>", ("<".to_string(), "hello-world".to_string()) )), tag_opener.parse("<hello-world/>"));
assert_eq!(Err("oops"), tag_opener.parse("oops"));
assert_eq!(Err("-oops"), tag_opener.parse("-oops"));
assert_eq!(Err("!oops"), tag_opener.parse("!oops"));
assert_eq!(Err("!oops"), tag_opener.parse("<!oops"));
}
#[test]
fn left_combinator() {
let tag_opener = left(match_literal("<"), identifier);
assert_eq!(Ok(("/>", "<".to_string())), tag_opener.parse("<hello-world/>"));
}
#[test]
fn right_combinator() {
let tag_opener = right(match_literal("<"), identifier);
assert_eq!(Ok(("/>", "hello-world".to_string())), tag_opener.parse("<hello-world/>"));
assert_eq!(Err("oops"), tag_opener.parse("oops"));
assert_eq!(Err("!oops"), tag_opener.parse("<!oops"));
}
fn zero_or_once<'a, P, A>(parser: P) -> impl Parser<'a, Vec<A>>
where
P: Parser<'a, A>,
{
move |mut input| {
let mut result = Vec::new();
if let Ok((next_input, first_item)) = parser.parse(input) {
input = next_input;
result.push(first_item);
}
Ok((input,result))
}
}
fn zero_or_more<'a, P, A>(parser: P) -> impl Parser<'a, Vec<A>>
where
P: Parser<'a, A>,
{
move |mut input| {
let mut result = Vec::new();
while let Ok((next_input, first_item)) = parser.parse(input) {
input = next_input;
result.push(first_item);
}
Ok((input,result))
}
}
/*
fn one_or_more<'a, P, A>(parser: P) -> impl Parser<'a, Vec<A>>
where
P: Parser<'a, A>,
{
map(pair(parser, zero_or_more(parser)), |(head, mut tail)| {
tail.insert(0, head);
tail
})
}
*/
fn one_or_more<'a, P, A>(parser: P) -> impl Parser<'a, Vec<A>> // +
where
P: Parser<'a, A>,
{
move |mut input| {
let mut result = Vec::new();
if let Ok((next_input, first_item)) = parser.parse(input) {
input = next_input;
result.push(first_item);
} else {
return Err(input);
}
while let Ok((next_input, first_item)) = parser.parse(input) {
input = next_input;
result.push(first_item);
}
Ok((input,result))
}
}
#[test]
fn one_or_more_combinator() {
let parser = one_or_more(match_literal("ha"));
assert_eq!(Ok(("", vec!["ha".to_string(), "ha".to_string(), "ha".to_string()])), parser.parse("hahaha"));
assert_eq!(Err("ahah"), parser.parse("ahah"));
assert_eq!(Err(""), parser.parse(""));
}
#[test]
fn zero_or_once_combinator() {
let parser = zero_or_once(match_literal("ha"));
assert_eq!(Ok(("haha", vec!["ha".to_string()])), parser.parse("hahaha"));
assert_eq!(Ok(("ahah", vec![])), parser.parse("ahah"));
assert_eq!(Ok(("", vec![])), parser.parse(""));
}
#[test]
fn zero_or_more_combinator() {
let parser = zero_or_more(match_literal("ha"));
assert_eq!(Ok(("", vec!["ha".to_string(), "ha".to_string(), "ha".to_string()])), parser.parse("hahaha"));
assert_eq!(Ok(("ahah", vec![])), parser.parse("ahah"));
assert_eq!(Ok(("", vec![])), parser.parse(""));
}
fn any_char(input: &str) -> ParseResult<char> {
match input.chars().next() {
Some(next) => Ok((&input[next.len_utf8()..], next)),
_ => Err(input),
}
}
fn pred<'a, P, F, A>(parser: P, predicate: F) -> impl Parser<'a, A>
where
P: Parser<'a, A>,
F: Fn(&A) -> bool,
{
move |input| {
if let Ok((next_input, value)) = parser.parse(input) {
if predicate(&value) {
return Ok((next_input, value));
}
}
Err(input)
}
}
#[test]
fn predicate_combinator() {
let parser = pred(any_char, |c| *c == 'o');
assert_eq!(Ok(("mg", 'o')), parser.parse("omg"));
assert_eq!(Err("lol"), parser.parse("lol"));
}
fn whitespace_char<'a>() -> impl Parser<'a, char> {
pred(any_char, |c| c.is_whitespace())
}
#[test]
fn whitespace_combinator() {
let parser = whitespace_char();
assert_eq!(Ok(("hah", ' ')), parser.parse(" hah"));
assert_eq!(Err("hah"), parser.parse("hah"));
}
fn space0<'a>() -> impl Parser<'a, Vec<char>> {
zero_or_more(whitespace_char())
}
fn space1<'a>() -> impl Parser<'a, Vec<char>> {
one_or_more(whitespace_char())
}
#[test]
fn space_combinator() {
let parser = space0();
assert_eq!(Ok(("hah", vec![])), parser.parse("hah"));
assert_eq!(Ok(("hah", vec![' '])), parser.parse(" hah"));
assert_eq!(Ok(("hah", vec![' ', ' '])), parser.parse(" hah"));
let parser = space1();
assert_eq!(Err("hah"), parser.parse("hah"));
assert_eq!(Ok(("hah", vec![' '])), parser.parse(" hah"));
assert_eq!(Ok(("hah", vec![' ', ' '])), parser.parse(" hah"));
}
fn quoted_string<'a>() -> impl Parser<'a, String> {
right(
match_literal("\""),
left(
zero_or_more(any_char.pred( |c| *c != '"')),
match_literal("\"")
)
)
.map(|chars| chars.into_iter().collect())
}
#[test]
fn quoted_string_combinator() {
let parser = quoted_string();
assert_eq!(Ok(("", "hah".to_string())), parser.parse("\"hah\""));
assert_eq!(Ok(("", " hah".to_string())), parser.parse("\" hah\""));
assert_eq!(Ok(("", "hah ".to_string())), parser.parse("\"hah \""));
assert_eq!(Ok(("", " hah ".to_string())), parser.parse("\" hah \""));
assert_eq!(Ok(("", " h ah ".to_string())), parser.parse("\" h ah \""));
assert_eq!(Err(""), parser.parse("\"hah"));
assert_eq!(Err("hah\""), parser.parse("hah\""));
}
fn attribute_pair<'a>() -> impl Parser<'a, (String, String)> {
pair(identifier, right(match_literal("="), quoted_string()))
}
fn attributes<'a>() -> impl Parser<'a, Vec<(String, String)>> {
zero_or_more(right(space1(), attribute_pair()))
}
#[test]
fn attribute_parser() {
assert_eq!(
Ok((
"",
vec![
("one".to_string(), "1".to_string()),
("two".to_string(), "2".to_string())
]
)),
attributes().parse(" one=\"1\" two=\"2\"")
);
}
fn ele_start<'a>() -> impl Parser<'a, (String, Vec<(String, String)>)> {
right(match_literal("<"), pair(identifier, attributes()))
}
fn single_ele<'a>() -> impl Parser<'a, Element> {
left(ele_start(), match_literal("/>")).map(
|(name, attributes)| Element {
name,
attributes,
children: vec![],
}
)
}
#[test]
fn single_element_parser() {
assert_eq!(
Ok((
"",
Element {
name: "div".to_string(),
attributes: vec![("class".to_string(), "float".to_string())],
children: vec![]
}
)),
single_ele().parse("<div class=\"float\"/>")
);
}
fn open_ele<'a>() -> impl Parser<'a, Element> {
left(ele_start(), match_literal(">")).map(|(name, attributes)| Element {
name,
attributes,
children: vec![],
})
}
fn either<'a, P1, P2, A>(parser1: P1, parser2: P2) -> impl Parser<'a, A>
where
P1: Parser<'a, A>,
P2: Parser<'a, A>,
{
move |input| match parser1.parse(input) {
ok @ Ok(_) => ok,
Err(_) => parser2.parse(input),
}
}
fn whiltespace_wrap<'a, P, A>(parser: P) -> impl Parser<'a, A>
where
P: Parser<'a, A>,
{
right(space0(), left(parser, space0()))
}
fn element<'a>() -> impl Parser<'a, Element> {
whiltespace_wrap(either(single_ele(), parent_ele()))
}
fn close_ele<'a>(expected_name: String) -> impl Parser<'a, String> {
right(
match_literal("</"),
left(
identifier,
match_literal(">")
)
)
.pred(move |name| name == &expected_name)
}
fn and_then<'a, P, F, A, B, NextP>(parser: P, f: F) -> impl Parser<'a, B>
where
P: Parser<'a, A>,
NextP: Parser<'a, B>,
F: Fn(A) -> NextP,
{
move |input| match parser.parse(input) {
Ok((next_input, result)) => f(result).parse(next_input),
Err(err) => Err(err),
}
}
fn parent_ele<'a>() -> impl Parser<'a, Element> {
open_ele().and_then(|el| {
left(zero_or_more(element()), close_ele(el.name.clone())).map(move |children| {
let mut el = el.clone();
el.children = children;
el
})
})
}
#[test]
fn xml_parser() {
let doc = r#"
<top label="Top">
<semi-bottom label="Bottom"/>
<middle>
<bottom label="Another bottom"/>
</middle>
</top>"#;
let parsed_doc = Element {
name: "top".to_string(),
attributes: vec![("label".to_string(), "Top".to_string())],
children: vec![
Element {
name: "semi-bottom".to_string(),
attributes: vec![("label".to_string(), "Bottom".to_string())],
children: vec![],
},
Element {
name: "middle".to_string(),
attributes: vec![],
children: vec![Element {
name: "bottom".to_string(),
attributes: vec![("label".to_string(), "Another bottom".to_string())],
children: vec![],
}],
},
],
};
assert_eq!(Ok(("", parsed_doc)), element().parse(doc));
}
#[test]
fn mismatched_closing_tag() {
let doc = r#"
<top>
<bottom/>
</middle>"#;
assert_eq!(Err("</middle>"), element().parse(doc));
}
}
|
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//! Utilities for filtering events.
use fidl::encoding::Decodable;
use fidl_fuchsia_media_sessions2::*;
/// A filter accepts or rejects filter applicants.
#[derive(Debug, PartialEq)]
pub struct Filter {
/// The options that govern which events should pass through this filter.
options: WatchOptions,
}
impl Default for Filter {
fn default() -> Self {
Self { options: Decodable::new_empty() }
}
}
/// A application to pass through a filter.
#[derive(Debug)]
pub struct FilterApplicant<T> {
/// The options this filter applicant is known to satisfy.
options: WatchOptions,
/// The value that wishes to pass through the filter.
pub applicant: T,
}
impl<T: Clone> Clone for FilterApplicant<T> {
fn clone(&self) -> Self {
Self {
options: WatchOptions { only_active: self.options.only_active },
applicant: self.applicant.clone(),
}
}
}
impl<T> FilterApplicant<T> {
pub fn new(options: WatchOptions, applicant: T) -> Self {
Self { options, applicant }
}
}
impl Filter {
pub fn new(options: WatchOptions) -> Self {
Self { options }
}
pub fn filter<T>(&self, applicant: &FilterApplicant<T>) -> bool {
self.satisfies_filter(&applicant.options)
}
fn satisfies_filter(&self, options: &WatchOptions) -> bool {
!self.options.only_active.unwrap_or(false) || options.only_active.unwrap_or(false)
}
}
#[cfg(test)]
mod test {
use super::*;
#[test]
fn it_works() {
let loose_filter = Filter::new(Decodable::new_empty());
assert_eq!(loose_filter, Filter::default());
assert_eq!(loose_filter.filter(&FilterApplicant::new(Decodable::new_empty(), 1u32)), true);
let active_filter = Filter::new(WatchOptions { only_active: Some(true) });
assert_eq!(
active_filter.filter(&FilterApplicant::new(Decodable::new_empty(), 1u32)),
false
);
assert_eq!(
active_filter
.filter(&FilterApplicant::new(WatchOptions { only_active: Some(true) }, 2u32)),
true
);
}
}
|
/*
* Integration tests for vsv.
*
* Author: Dave Eddy <dave@daveeddy.com>
* Date: February 19, 2022
* License: MIT
*/
use std::fs;
use std::fs::File;
use std::io::Write;
use std::path::{Path, PathBuf};
use std::str;
use anyhow::{anyhow, Result};
use assert_cmd::Command;
mod common;
struct Config {
proc_path: PathBuf,
service_path: PathBuf,
}
fn vsv(cfg: &Config) -> Result<Command> {
let mut cmd = common::vsv()?;
cmd.env("SVDIR", &cfg.service_path);
cmd.env("PROC_DIR", &cfg.proc_path);
Ok(cmd)
}
fn write_file(fname: &Path, contents: &str) -> Result<()> {
let mut f = File::create(fname)?;
write!(f, "{}", contents)?;
Ok(())
}
fn get_tmp_path() -> PathBuf {
PathBuf::from(env!("CARGO_TARGET_TMPDIR")).join("tests")
}
fn parse_status_line(line: &str) -> Result<Vec<&str>> {
let mut vec: Vec<&str> = vec![];
let mut chars = line.chars().map(|c| c.len_utf8());
let lengths = [1, 20, 7, 9, 8, 17];
// skip the first space char
let mut start = 0;
start += chars.next().ok_or(anyhow!("first char must be a space"))?;
assert_eq!(start, 1, "first char should always be 1 byte (space)");
for num in lengths {
let mut end = start;
for _ in 0..num {
end += chars.next().ok_or(anyhow!("not enough chars in line"))?;
}
vec.push(&line[start..end]);
let space = chars
.next()
.ok_or(anyhow!("next field should have a space char"))?;
assert_eq!(space, 1, "should be space character");
start = end + space;
}
vec.push(&line[start..]);
Ok(vec)
}
fn parse_status_output(s: &str) -> Result<Vec<Vec<&str>>> {
let mut lines: Vec<Vec<&str>> = vec![];
let spl: Vec<&str> = s.lines().collect();
let len = spl.len();
for (i, line) in spl.iter().enumerate() {
// remove first and last line of output (blank lines)
if i == 0 || i == (len - 1) {
assert!(line.is_empty(), "first and last line should be empty");
continue;
}
let items = parse_status_line(line)?;
lines.push(items);
}
assert!(
!lines.is_empty(),
"status must have at least one line (the header)"
);
// check header
let header = lines.remove(0);
let good_header =
&["", "SERVICE", "STATE", "ENABLED", "PID", "COMMAND", "TIME"];
for (i, good_item) in good_header.iter().enumerate() {
assert_eq!(&header[i].trim_end(), good_item, "check header field");
}
Ok(lines)
}
fn create_service(
cfg: &Config,
name: &str,
state: &str,
pid: Option<&str>,
log_pid: Option<&str>,
) -> Result<()> {
let svc_dir = cfg.service_path.join(name);
let dirs = [("cmd", &svc_dir, pid), ("log", &svc_dir.join("log"), log_pid)];
for (s, dir, pid) in dirs {
let supervise_dir = dir.join("supervise");
let stat_file = supervise_dir.join("stat");
fs::create_dir(&dir)?;
fs::create_dir(&supervise_dir)?;
fs::write(&stat_file, format!("{}\n", state))?;
// write pid and proc info if supplied
if let Some(pid) = pid {
let proc_pid_dir = cfg.proc_path.join(pid);
let pid_file = supervise_dir.join("pid");
let cmd_file = proc_pid_dir.join("cmdline");
fs::create_dir(&proc_pid_dir)?;
fs::write(&pid_file, format!("{}\n", pid))?;
fs::write(&cmd_file, format!("{}-{}\0", name, s))?;
}
}
Ok(())
}
fn remove_service(
cfg: &Config,
name: &str,
pid: Option<&str>,
log_pid: Option<&str>,
) -> Result<()> {
let svc_dir = cfg.service_path.join(name);
fs::remove_dir_all(&svc_dir)?;
for pid in [pid, log_pid].into_iter().flatten() {
let proc_pid_dir = cfg.proc_path.join(pid);
fs::remove_dir_all(&proc_pid_dir)?;
}
Ok(())
}
//fn compare_output(have: &Vec<Vec<&str>>, want: &Vec<Vec<&str>>) {
fn compare_output(have: &[Vec<&str>], want: &[&[&str; 6]]) {
println!("compare_output\nhave = '{:?}'\nwant = '{:?}'", have, want);
assert_eq!(have.len(), want.len(), "status lines not same length");
// loop each line of output
for (i, have_items) in have.iter().enumerate() {
let line_no = i + 1;
let want_items = want[i];
// loop each field in the line
for (j, want_item) in want_items.iter().enumerate() {
let field_no = j + 1;
let have_item = &have_items[j].trim_end();
println!(
"line {} field {}: checking '{}' == '{}'",
line_no, field_no, have_item, want_item
);
// compare the fields to each other
assert_eq!(
have_item, want_item,
"line {} field {} incorrect",
line_no, field_no
);
}
}
println!("output the same\n");
}
fn run_command_compare_output(
cmd: &mut Command,
want: &[&[&str; 6]],
) -> Result<()> {
let assert = cmd.assert().success();
let output = assert.get_output();
let stdout = str::from_utf8(&output.stdout)?;
let status = parse_status_output(stdout)?;
compare_output(&status, want);
Ok(())
}
#[test]
fn full_synthetic_test() -> Result<()> {
let tmp_path = get_tmp_path();
let cfg = Config {
proc_path: tmp_path.join("proc"),
service_path: tmp_path.join("service"),
};
// create the vsv command to use for all tests
let mut status_cmd = vsv(&cfg)?;
let mut status_cmd_l = vsv(&cfg)?;
status_cmd_l.arg("status").arg("-l");
// start fresh by removing the service and proc paths
let _ = fs::remove_dir_all(&tmp_path);
// vsv should fail when the service dir doesn't exist
status_cmd.assert().failure();
// create test dirs
for p in [&tmp_path, &cfg.proc_path, &cfg.service_path] {
fs::create_dir(p)?;
}
// test no services
let want: &[&[&str; 6]] = &[];
run_command_compare_output(&mut status_cmd, want)?;
// test service
create_service(&cfg, "foo", "run", Some("123"), None)?;
let want = &[&["✔", "foo", "run", "true", "123", "foo-cmd"]];
run_command_compare_output(&mut status_cmd, want)?;
// test another service
create_service(&cfg, "bar", "run", Some("234"), None)?;
let want = &[
&["✔", "bar", "run", "true", "234", "bar-cmd"],
&["✔", "foo", "run", "true", "123", "foo-cmd"],
];
run_command_compare_output(&mut status_cmd, want)?;
// test service no pid
create_service(&cfg, "baz", "run", None, None)?;
let want = &[
&["✔", "bar", "run", "true", "234", "bar-cmd"],
&["✔", "baz", "run", "true", "---", "---"],
&["✔", "foo", "run", "true", "123", "foo-cmd"],
];
run_command_compare_output(&mut status_cmd, want)?;
// test service bad pid
create_service(
&cfg,
"bat",
"run",
Some("uh oh this one won't parse"),
None,
)?;
let want = &[
&["✔", "bar", "run", "true", "234", "bar-cmd"],
&["✔", "bat", "run", "true", "---", "---"],
&["✔", "baz", "run", "true", "---", "---"],
&["✔", "foo", "run", "true", "123", "foo-cmd"],
];
run_command_compare_output(&mut status_cmd, want)?;
// remove services
remove_service(&cfg, "bar", Some("234"), None)?;
remove_service(&cfg, "bat", None, None)?;
remove_service(&cfg, "baz", None, None)?;
let want = &[&["✔", "foo", "run", "true", "123", "foo-cmd"]];
run_command_compare_output(&mut status_cmd, want)?;
// add down service
create_service(&cfg, "bar", "down", None, None)?;
let want = &[
&["X", "bar", "down", "true", "---", "---"],
&["✔", "foo", "run", "true", "123", "foo-cmd"],
];
run_command_compare_output(&mut status_cmd, want)?;
// add unknown state service
create_service(&cfg, "bat", "something-bad", None, None)?;
let want = &[
&["X", "bar", "down", "true", "---", "---"],
&["?", "bat", "n/a", "true", "---", "---"],
&["✔", "foo", "run", "true", "123", "foo-cmd"],
];
run_command_compare_output(&mut status_cmd, want)?;
// add long service name
create_service(
&cfg,
"some-really-long-service-name",
"run",
Some("1"),
None,
)?;
let want = &[
&["X", "bar", "down", "true", "---", "---"],
&["?", "bat", "n/a", "true", "---", "---"],
&["✔", "foo", "run", "true", "123", "foo-cmd"],
&["✔", "some-really-long-...", "run", "true", "1", "some-really-lo..."],
];
run_command_compare_output(&mut status_cmd, want)?;
// remove services
remove_service(&cfg, "some-really-long-service-name", Some("1"), None)?;
remove_service(&cfg, "bar", None, None)?;
remove_service(&cfg, "bat", None, None)?;
let want = &[&["✔", "foo", "run", "true", "123", "foo-cmd"]];
run_command_compare_output(&mut status_cmd, want)?;
// add some more services
create_service(&cfg, "bar", "run", Some("234"), None)?;
create_service(&cfg, "baz", "run", Some("345"), None)?;
create_service(&cfg, "bat", "run", Some("456"), None)?;
// test disable
let mut cmd = vsv(&cfg)?;
cmd.args(&["disable", "bar", "baz"]).assert().success();
let want = &[
&["✔", "bar", "run", "false", "234", "bar-cmd"],
&["✔", "bat", "run", "true", "456", "bat-cmd"],
&["✔", "baz", "run", "false", "345", "baz-cmd"],
&["✔", "foo", "run", "true", "123", "foo-cmd"],
];
run_command_compare_output(&mut status_cmd, want)?;
// test enable
let mut cmd = vsv(&cfg)?;
cmd.args(&["enable", "foo", "bar"]).assert().success();
let want = &[
&["✔", "bar", "run", "true", "234", "bar-cmd"],
&["✔", "bat", "run", "true", "456", "bat-cmd"],
&["✔", "baz", "run", "false", "345", "baz-cmd"],
&["✔", "foo", "run", "true", "123", "foo-cmd"],
];
run_command_compare_output(&mut status_cmd, want)?;
// test bad disable
let mut cmd = vsv(&cfg)?;
cmd.args(&["disable", "fake-service", "foo"]).assert().failure();
let want = &[
&["✔", "bar", "run", "true", "234", "bar-cmd"],
&["✔", "bat", "run", "true", "456", "bat-cmd"],
&["✔", "baz", "run", "false", "345", "baz-cmd"],
&["✔", "foo", "run", "false", "123", "foo-cmd"],
];
run_command_compare_output(&mut status_cmd, want)?;
// test bad enable
let mut cmd = vsv(&cfg)?;
cmd.args(&["enable", "fake-service", "foo"]).assert().failure();
let want = &[
&["✔", "bar", "run", "true", "234", "bar-cmd"],
&["✔", "bat", "run", "true", "456", "bat-cmd"],
&["✔", "baz", "run", "false", "345", "baz-cmd"],
&["✔", "foo", "run", "true", "123", "foo-cmd"],
];
run_command_compare_output(&mut status_cmd, want)?;
// remove all services
remove_service(&cfg, "foo", Some("123"), None)?;
remove_service(&cfg, "bar", Some("234"), None)?;
remove_service(&cfg, "baz", Some("345"), None)?;
remove_service(&cfg, "bat", Some("456"), None)?;
let want: &[&[&str; 6]] = &[];
run_command_compare_output(&mut status_cmd, want)?;
// create a service with a logger function
create_service(&cfg, "foo", "run", Some("100"), Some("150"))?;
let want = &[
&["✔", "foo", "run", "true", "100", "foo-cmd"],
&["✔", "- log", "run", "true", "150", "foo-log"],
];
run_command_compare_output(&mut status_cmd_l, want)?;
// disable logger only
let mut cmd = vsv(&cfg)?;
cmd.args(&["disable", "foo/log"]).assert().success();
let want = &[
&["✔", "foo", "run", "true", "100", "foo-cmd"],
&["✔", "- log", "run", "false", "150", "foo-log"],
];
run_command_compare_output(&mut status_cmd_l, want)?;
// manually create a bad service (just a file)
let dir = cfg.service_path.join("not-a-dir");
write_file(&dir, "whatever")?;
let want = &[&["✔", "foo", "run", "true", "100", "foo-cmd"]];
run_command_compare_output(&mut status_cmd, want)?;
// manually create an unknown service (just a dir)
let dir = cfg.service_path.join("just-a-dir");
fs::create_dir(dir)?;
let want = &[
&["✔", "foo", "run", "true", "100", "foo-cmd"],
&["?", "just-a-dir", "n/a", "true", "---", "---"],
];
run_command_compare_output(&mut status_cmd, want)?;
// create services and use a filter
create_service(&cfg, "test-1", "run", Some("1"), None)?;
create_service(&cfg, "test-2", "run", Some("2"), None)?;
create_service(&cfg, "test-3", "run", Some("3"), None)?;
let mut cmd = vsv(&cfg)?;
cmd.args(&["status", "test"]).assert().success();
let want = &[
&["✔", "test-1", "run", "true", "1", "test-1-cmd"],
&["✔", "test-2", "run", "true", "2", "test-2-cmd"],
&["✔", "test-3", "run", "true", "3", "test-3-cmd"],
];
run_command_compare_output(&mut cmd, want)?;
// status mode should work without "status" when -t or -l is supplied
let mut cmd = vsv(&cfg)?;
cmd.args(&["-l", "test"]).assert().success();
let want = &[
&["✔", "test-1", "run", "true", "1", "test-1-cmd"],
&["✔", "- log", "run", "true", "---", "---"],
&["✔", "test-2", "run", "true", "2", "test-2-cmd"],
&["✔", "- log", "run", "true", "---", "---"],
&["✔", "test-3", "run", "true", "3", "test-3-cmd"],
&["✔", "- log", "run", "true", "---", "---"],
];
run_command_compare_output(&mut cmd, want)?;
Ok(())
}
|
use async_std::net::{TcpListener, TcpStream, ToSocketAddrs};
use async_std::prelude::*;
use async_std::task;
use futures::{
future::FutureExt,
io::{AsyncRead, AsyncWrite},
};
use std::net::{IpAddr, SocketAddr};
async fn handshake<Reader, Writer>(
mut reader: Reader,
mut writer: Writer,
) -> anyhow::Result<TcpStream>
where
Reader: AsyncRead + Unpin,
Writer: AsyncWrite + Unpin,
{
match socksv5::read_version(&mut reader).await? {
socksv5::SocksVersion::V5 => {
let handshake = socksv5::v5::read_handshake_skip_version(&mut reader).await?;
if let None = handshake
.methods
.into_iter()
.find(|m| *m == socksv5::v5::SocksV5AuthMethod::Noauth)
{
return Err(anyhow::anyhow!("this proxy only supports NOAUTH"));
}
socksv5::v5::write_auth_method(&mut writer, socksv5::v5::SocksV5AuthMethod::Noauth)
.await?;
let request = socksv5::v5::read_request(&mut reader).await?;
match request.command {
socksv5::v5::SocksV5Command::Connect => {
let host = match request.host {
socksv5::v5::SocksV5Host::Ipv4(ip) => {
SocketAddr::new(IpAddr::V4(ip.into()), request.port)
}
socksv5::v5::SocksV5Host::Ipv6(ip) => {
SocketAddr::new(IpAddr::V6(ip.into()), request.port)
}
socksv5::v5::SocksV5Host::Domain(domain) => {
let domain = String::from_utf8(domain)?;
let mut addr = (&domain as &str, request.port)
.to_socket_addrs()
.await?
.next()
.ok_or_else(|| anyhow::anyhow!("failed to resolve domain"))?;
addr.set_port(request.port);
addr
}
};
let server_socket = TcpStream::connect(host).await;
match server_socket {
Ok(server_socket) => {
socksv5::v5::write_request_status(
&mut writer,
socksv5::v5::SocksV5RequestStatus::Success,
socksv5::v5::SocksV5Host::Ipv4([0, 0, 0, 0]),
0,
)
.await?;
return Ok(server_socket);
}
Err(e) => {
socksv5::v5::write_request_status(
&mut writer,
socksv5::v5::SocksV5RequestStatus::from_io_error(e),
socksv5::v5::SocksV5Host::Ipv4([0, 0, 0, 0]),
0,
)
.await?;
return Err(anyhow::anyhow!("failed to connect"));
}
}
}
cmd => {
socksv5::v5::write_request_status(
&mut writer,
socksv5::v5::SocksV5RequestStatus::CommandNotSupported,
socksv5::v5::SocksV5Host::Ipv4([0, 0, 0, 0]),
0,
)
.await?;
return Err(anyhow::anyhow!("unsupported command {:?}", cmd));
}
}
}
socksv5::SocksVersion::V4 => {
let request = socksv5::v4::read_request(reader).await?;
match request.command {
socksv5::v4::SocksV4Command::Connect => {
let host = match request.host {
socksv5::v4::SocksV4Host::Ip(ip) => {
SocketAddr::new(IpAddr::V4(ip.into()), request.port)
}
socksv5::v4::SocksV4Host::Domain(domain) => {
let domain = String::from_utf8(domain)?;
domain
.to_socket_addrs()
.await?
.next()
.ok_or_else(|| anyhow::anyhow!("failed to resolve domain"))?
}
};
let server_socket = TcpStream::connect(host).await;
match server_socket {
Ok(server_socket) => {
socksv5::v4::write_request_status(
&mut writer,
socksv5::v4::SocksV4RequestStatus::Granted,
[0, 0, 0, 0],
0,
)
.await?;
return Ok(server_socket);
}
Err(_) => {
socksv5::v4::write_request_status(
&mut writer,
socksv5::v4::SocksV4RequestStatus::Failed,
[0, 0, 0, 0],
0,
)
.await?;
return Err(anyhow::anyhow!("failed to connect"));
}
}
}
cmd => {
socksv5::v4::write_request_status(
&mut writer,
socksv5::v4::SocksV4RequestStatus::Failed,
[0, 0, 0, 0],
0,
)
.await?;
return Err(anyhow::anyhow!("unsupported command {:?}", cmd));
}
}
}
}
}
async fn pipe<Reader, Writer>(mut reader: Reader, mut writer: Writer) -> std::io::Result<()>
where
Reader: AsyncRead + Unpin,
Writer: AsyncWrite + Unpin,
{
let mut buf = vec![0u8; 1024 * 1024];
loop {
let n = reader.read(&mut buf).await?;
if n > 0 {
writer.write_all(&buf[..n]).await?;
} else {
break Ok(());
}
}
}
async fn pipe_multiple<Reader1, Writer1, Reader2, Writer2>(
reader1: Reader1,
writer1: Writer1,
reader2: Reader2,
writer2: Writer2,
) -> std::io::Result<()>
where
Reader1: AsyncRead + Unpin,
Writer1: AsyncWrite + Unpin,
Reader2: AsyncRead + Unpin,
Writer2: AsyncWrite + Unpin,
{
let pipe1 = pipe(reader1, writer2).fuse();
let pipe2 = pipe(reader2, writer1).fuse();
futures::pin_mut!(pipe1, pipe2);
futures::select! {
res = pipe1 => res,
res = pipe2 => res
}
}
async fn server() -> std::io::Result<()> {
let listener = TcpListener::bind("127.0.0.1:1987").await?;
let mut incoming = listener.incoming();
while let Some(client_stream) = incoming.next().await {
let client_stream = client_stream?;
log::debug!("incoming request from {}", client_stream.peer_addr().unwrap());
task::spawn(async move {
let (client_reader, client_writer) = &mut (&client_stream, &client_stream);
match handshake(client_reader, client_writer).await {
Err(err) => log::error!("handshake error: {}", err),
Ok(server_socket) => {
log::debug!("{} initiated connection with {}", client_stream.peer_addr().unwrap(), server_socket.peer_addr().unwrap());
let (client_reader, client_writer) = &mut (&client_stream, &client_stream);
let (server_reader, server_writer) = &mut (&server_socket, &server_socket);
match pipe_multiple(client_reader, client_writer, server_reader, server_writer)
.await
{
Err(err) => log::error!("pipe error: {}", err),
Ok(_) => log::debug!{"connection terminated between {} and {}", client_stream.peer_addr().unwrap(), server_socket.peer_addr().unwrap()}
}
}
}
});
}
Ok(())
}
fn main() -> std::io::Result<()> {
env_logger::init();
task::block_on(server())
}
|
#![feature(proc_macro_hygiene, decl_macro)]
#[macro_use]
extern crate diesel;
#[macro_use]
extern crate rocket;
extern crate rocket_contrib;
extern crate serde;
use rocket::response::NamedFile;
use rocket_contrib::serve::StaticFiles;
use std::io;
mod api;
mod init;
mod todos;
pub type Connection = std::sync::Mutex<diesel::MysqlConnection>;
#[get("/")]
fn index() -> io::Result<rocket::response::NamedFile> {
NamedFile::open("statics/index.html")
}
fn main() {
let conn = init::diesel_init();
let mut_conn = std::sync::Mutex::new(conn);
rocket::ignite()
.manage(mut_conn)
.mount("/", routes![index])
.mount("/", StaticFiles::from("statics"))
.mount("/api", api::get_api_routes())
.launch();
}
|
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn serialize_operation_activate_gateway(
input: &crate::input::ActivateGatewayInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_activate_gateway_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_add_cache(
input: &crate::input::AddCacheInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_add_cache_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_add_tags_to_resource(
input: &crate::input::AddTagsToResourceInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_add_tags_to_resource_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_add_upload_buffer(
input: &crate::input::AddUploadBufferInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_add_upload_buffer_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_add_working_storage(
input: &crate::input::AddWorkingStorageInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_add_working_storage_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_assign_tape_pool(
input: &crate::input::AssignTapePoolInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_assign_tape_pool_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_associate_file_system(
input: &crate::input::AssociateFileSystemInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_associate_file_system_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_attach_volume(
input: &crate::input::AttachVolumeInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_attach_volume_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_cancel_archival(
input: &crate::input::CancelArchivalInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_cancel_archival_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_cancel_retrieval(
input: &crate::input::CancelRetrievalInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_cancel_retrieval_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_create_cachedi_scsi_volume(
input: &crate::input::CreateCachediScsiVolumeInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_create_cachedi_scsi_volume_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_create_nfs_file_share(
input: &crate::input::CreateNfsFileShareInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_create_nfs_file_share_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_create_smb_file_share(
input: &crate::input::CreateSmbFileShareInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_create_smb_file_share_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_create_snapshot(
input: &crate::input::CreateSnapshotInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_create_snapshot_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_create_snapshot_from_volume_recovery_point(
input: &crate::input::CreateSnapshotFromVolumeRecoveryPointInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_create_snapshot_from_volume_recovery_point_input(
&mut object,
input,
);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_create_storedi_scsi_volume(
input: &crate::input::CreateStorediScsiVolumeInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_create_storedi_scsi_volume_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_create_tape_pool(
input: &crate::input::CreateTapePoolInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_create_tape_pool_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_create_tapes(
input: &crate::input::CreateTapesInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_create_tapes_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_create_tape_with_barcode(
input: &crate::input::CreateTapeWithBarcodeInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_create_tape_with_barcode_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_delete_automatic_tape_creation_policy(
input: &crate::input::DeleteAutomaticTapeCreationPolicyInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_delete_automatic_tape_creation_policy_input(
&mut object,
input,
);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_delete_bandwidth_rate_limit(
input: &crate::input::DeleteBandwidthRateLimitInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_delete_bandwidth_rate_limit_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_delete_chap_credentials(
input: &crate::input::DeleteChapCredentialsInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_delete_chap_credentials_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_delete_file_share(
input: &crate::input::DeleteFileShareInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_delete_file_share_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_delete_gateway(
input: &crate::input::DeleteGatewayInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_delete_gateway_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_delete_snapshot_schedule(
input: &crate::input::DeleteSnapshotScheduleInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_delete_snapshot_schedule_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_delete_tape(
input: &crate::input::DeleteTapeInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_delete_tape_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_delete_tape_archive(
input: &crate::input::DeleteTapeArchiveInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_delete_tape_archive_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_delete_tape_pool(
input: &crate::input::DeleteTapePoolInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_delete_tape_pool_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_delete_volume(
input: &crate::input::DeleteVolumeInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_delete_volume_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_describe_availability_monitor_test(
input: &crate::input::DescribeAvailabilityMonitorTestInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_describe_availability_monitor_test_input(
&mut object,
input,
);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_describe_bandwidth_rate_limit(
input: &crate::input::DescribeBandwidthRateLimitInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_describe_bandwidth_rate_limit_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_describe_bandwidth_rate_limit_schedule(
input: &crate::input::DescribeBandwidthRateLimitScheduleInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_describe_bandwidth_rate_limit_schedule_input(
&mut object,
input,
);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_describe_cache(
input: &crate::input::DescribeCacheInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_describe_cache_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_describe_cachedi_scsi_volumes(
input: &crate::input::DescribeCachediScsiVolumesInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_describe_cachedi_scsi_volumes_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_describe_chap_credentials(
input: &crate::input::DescribeChapCredentialsInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_describe_chap_credentials_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_describe_file_system_associations(
input: &crate::input::DescribeFileSystemAssociationsInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_describe_file_system_associations_input(
&mut object,
input,
);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_describe_gateway_information(
input: &crate::input::DescribeGatewayInformationInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_describe_gateway_information_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_describe_maintenance_start_time(
input: &crate::input::DescribeMaintenanceStartTimeInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_describe_maintenance_start_time_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_describe_nfs_file_shares(
input: &crate::input::DescribeNfsFileSharesInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_describe_nfs_file_shares_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_describe_smb_file_shares(
input: &crate::input::DescribeSmbFileSharesInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_describe_smb_file_shares_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_describe_smb_settings(
input: &crate::input::DescribeSmbSettingsInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_describe_smb_settings_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_describe_snapshot_schedule(
input: &crate::input::DescribeSnapshotScheduleInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_describe_snapshot_schedule_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_describe_storedi_scsi_volumes(
input: &crate::input::DescribeStorediScsiVolumesInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_describe_storedi_scsi_volumes_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_describe_tape_archives(
input: &crate::input::DescribeTapeArchivesInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_describe_tape_archives_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_describe_tape_recovery_points(
input: &crate::input::DescribeTapeRecoveryPointsInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_describe_tape_recovery_points_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_describe_tapes(
input: &crate::input::DescribeTapesInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_describe_tapes_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_describe_upload_buffer(
input: &crate::input::DescribeUploadBufferInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_describe_upload_buffer_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_describe_vtl_devices(
input: &crate::input::DescribeVtlDevicesInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_describe_vtl_devices_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_describe_working_storage(
input: &crate::input::DescribeWorkingStorageInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_describe_working_storage_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_detach_volume(
input: &crate::input::DetachVolumeInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_detach_volume_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_disable_gateway(
input: &crate::input::DisableGatewayInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_disable_gateway_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_disassociate_file_system(
input: &crate::input::DisassociateFileSystemInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_disassociate_file_system_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_join_domain(
input: &crate::input::JoinDomainInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_join_domain_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_list_automatic_tape_creation_policies(
input: &crate::input::ListAutomaticTapeCreationPoliciesInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_list_automatic_tape_creation_policies_input(
&mut object,
input,
);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_list_file_shares(
input: &crate::input::ListFileSharesInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_list_file_shares_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_list_file_system_associations(
input: &crate::input::ListFileSystemAssociationsInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_list_file_system_associations_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_list_gateways(
input: &crate::input::ListGatewaysInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_list_gateways_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_list_local_disks(
input: &crate::input::ListLocalDisksInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_list_local_disks_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_list_tags_for_resource(
input: &crate::input::ListTagsForResourceInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_list_tags_for_resource_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_list_tape_pools(
input: &crate::input::ListTapePoolsInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_list_tape_pools_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_list_tapes(
input: &crate::input::ListTapesInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_list_tapes_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_list_volume_initiators(
input: &crate::input::ListVolumeInitiatorsInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_list_volume_initiators_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_list_volume_recovery_points(
input: &crate::input::ListVolumeRecoveryPointsInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_list_volume_recovery_points_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_list_volumes(
input: &crate::input::ListVolumesInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_list_volumes_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_notify_when_uploaded(
input: &crate::input::NotifyWhenUploadedInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_notify_when_uploaded_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_refresh_cache(
input: &crate::input::RefreshCacheInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_refresh_cache_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_remove_tags_from_resource(
input: &crate::input::RemoveTagsFromResourceInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_remove_tags_from_resource_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_reset_cache(
input: &crate::input::ResetCacheInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_reset_cache_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_retrieve_tape_archive(
input: &crate::input::RetrieveTapeArchiveInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_retrieve_tape_archive_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_retrieve_tape_recovery_point(
input: &crate::input::RetrieveTapeRecoveryPointInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_retrieve_tape_recovery_point_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_set_local_console_password(
input: &crate::input::SetLocalConsolePasswordInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_set_local_console_password_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_set_smb_guest_password(
input: &crate::input::SetSmbGuestPasswordInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_set_smb_guest_password_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_shutdown_gateway(
input: &crate::input::ShutdownGatewayInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_shutdown_gateway_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_start_availability_monitor_test(
input: &crate::input::StartAvailabilityMonitorTestInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_start_availability_monitor_test_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_start_gateway(
input: &crate::input::StartGatewayInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_start_gateway_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_update_automatic_tape_creation_policy(
input: &crate::input::UpdateAutomaticTapeCreationPolicyInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_update_automatic_tape_creation_policy_input(
&mut object,
input,
);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_update_bandwidth_rate_limit(
input: &crate::input::UpdateBandwidthRateLimitInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_update_bandwidth_rate_limit_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_update_bandwidth_rate_limit_schedule(
input: &crate::input::UpdateBandwidthRateLimitScheduleInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_update_bandwidth_rate_limit_schedule_input(
&mut object,
input,
);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_update_chap_credentials(
input: &crate::input::UpdateChapCredentialsInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_update_chap_credentials_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_update_file_system_association(
input: &crate::input::UpdateFileSystemAssociationInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_update_file_system_association_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_update_gateway_information(
input: &crate::input::UpdateGatewayInformationInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_update_gateway_information_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_update_gateway_software_now(
input: &crate::input::UpdateGatewaySoftwareNowInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_update_gateway_software_now_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_update_maintenance_start_time(
input: &crate::input::UpdateMaintenanceStartTimeInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_update_maintenance_start_time_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_update_nfs_file_share(
input: &crate::input::UpdateNfsFileShareInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_update_nfs_file_share_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_update_smb_file_share(
input: &crate::input::UpdateSmbFileShareInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_update_smb_file_share_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_update_smb_file_share_visibility(
input: &crate::input::UpdateSmbFileShareVisibilityInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_update_smb_file_share_visibility_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_update_smb_security_strategy(
input: &crate::input::UpdateSmbSecurityStrategyInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_update_smb_security_strategy_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_update_snapshot_schedule(
input: &crate::input::UpdateSnapshotScheduleInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_update_snapshot_schedule_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
pub fn serialize_operation_update_vtl_device_type(
input: &crate::input::UpdateVtlDeviceTypeInput,
) -> Result<smithy_http::body::SdkBody, smithy_types::Error> {
let mut out = String::new();
let mut object = smithy_json::serialize::JsonObjectWriter::new(&mut out);
crate::json_ser::serialize_structure_update_vtl_device_type_input(&mut object, input);
object.finish();
Ok(smithy_http::body::SdkBody::from(out))
}
|
use clap::Parser;
use std::io::{self, BufRead};
#[derive(Parser)]
#[command(about = "Split input strings and extract certain columns", long_about = None)]
#[command(version = "1.0")]
struct Cli {
/// Keep empty split-elements, if delimiter is repeated. Ignored, if no Delimiter is given.
#[arg(short, long)]
keep_empty: bool,
/// Use the complement of the selected columns, meaning all columns except the specified ones.
#[arg(long)]
complement: bool,
/// With which new delimiter the resulted split should be joined (if multiple indices are picked).
#[arg(short, long, default_value = " ")]
join_delimiter: String,
/// Extract given columns. Separate by commas. Starts counting with 1. Negative values count from the back. For negative values at the beginning, use the notation equal-sign: -c=-1,1,-2
#[arg(short, long, value_parser=validate_columns, value_delimiter=',')]
column: Vec<i64>,
/// Which Delimiter should be used to split. If no delimiter is given, all whitespaces are used.
#[arg(value_name = "DELIMITER")]
delimiter: Option<String>,
}
impl Cli {
fn split_line<'b>(&self, line: &'b str) -> Vec<&'b str> {
let res: Vec<_> = match &self.delimiter {
Some(delim) => line.split(delim).collect(),
None => line.split_whitespace().collect(),
};
if !self.keep_empty {
res.iter()
.filter(|x| !x.is_empty())
.map(ToOwned::to_owned)
.collect()
} else {
res
}
}
fn pick_columns<'b>(&self, all_splits: &'b [&str]) -> Vec<&'b str> {
let mut res;
if self.column.is_empty() {
if self.complement {
// Complement of "all" is "nothing"
res = Vec::new();
} else {
res = all_splits.to_owned();
}
} else {
let mut filtered_columns: Vec<_> = self
.column
.iter()
.map(|i| {
if *i > 0 {
i - 1
} else {
all_splits.len() as i64 + i
}
}) // clap verified != 0
.filter(|i| i < &(all_splits.len() as i64) && i >= &0)
.collect();
if self.complement {
res = all_splits.to_owned();
filtered_columns.sort();
filtered_columns.dedup();
for i in filtered_columns.into_iter().rev() {
res.remove(i as usize);
}
} else {
res = filtered_columns
.into_iter()
.filter_map(|i| all_splits.get(i as usize))
.map(ToOwned::to_owned)
.collect();
}
}
res
}
}
fn validate_columns(v: &str) -> Result<i64, String> {
match v.parse::<i64>() {
Ok(val) if val != 0 => Ok(val),
_ => Err(format!("The value \"{}\" is not allowed", v)),
}
}
fn main() -> Result<(), std::io::Error> {
let cli = Cli::parse();
for line in io::stdin().lock().lines() {
let line = &line?;
let splits = cli.split_line(line);
let filtered = cli.pick_columns(&splits);
println!("{}", filtered.join(&cli.join_delimiter));
}
Ok(())
}
|
use rltk::RGB;
use specs::prelude::*;
#[derive(Copy, Clone, Debug, Hash, PartialEq, Eq, PartialOrd, Ord, Component)]
pub struct Position {
pub x: i32,
pub y: i32,
}
impl Position {
pub fn new(x: i32, y: i32) -> Position {
Self { x, y }
}
}
#[derive(Copy, Clone, Debug, Component)]
pub struct Renderable {
pub glyph: u8,
pub fg: RGB,
pub bg: RGB,
}
impl Renderable {
pub fn new(glyph: u8, fg: RGB, bg: RGB) -> Self {
Self { glyph, fg, bg }
}
pub fn from_char(c: char, fg: RGB, bg: RGB) -> Self {
Self::new(rltk::to_cp437(c), fg, bg)
}
}
#[derive(Component, Debug)]
pub struct Player {}
impl Player {
pub fn new() -> Self {
Self {}
}
}
impl Default for Player {
fn default() -> Self {
Self::new()
}
}
#[derive(Component)]
pub struct Viewshed {
pub visible_tiles: Vec<rltk::Point>,
pub range: i32,
pub dirty: bool,
}
impl Viewshed {
pub fn new(range: i32) -> Self {
Self {
visible_tiles: Vec::new(),
range,
dirty: true,
}
}
}
#[derive(Component, Debug)]
pub struct Monster {}
impl Monster {
pub fn new() -> Self {
Self {}
}
}
#[derive(Component, Debug)]
pub struct Name {
pub name: String,
}
impl Name {
pub fn new(name: String) -> Self {
Self { name }
}
}
|
#![allow(unused_variables, non_upper_case_globals, non_snake_case, unused_unsafe, non_camel_case_types, dead_code, clippy::all)]
#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)]
#[repr(transparent)]
pub struct AlternateNormalizationFormat(pub i32);
impl AlternateNormalizationFormat {
pub const NotNormalized: AlternateNormalizationFormat = AlternateNormalizationFormat(0i32);
pub const Number: AlternateNormalizationFormat = AlternateNormalizationFormat(1i32);
pub const Currency: AlternateNormalizationFormat = AlternateNormalizationFormat(3i32);
pub const Date: AlternateNormalizationFormat = AlternateNormalizationFormat(4i32);
pub const Time: AlternateNormalizationFormat = AlternateNormalizationFormat(5i32);
}
impl ::core::convert::From<i32> for AlternateNormalizationFormat {
fn from(value: i32) -> Self {
Self(value)
}
}
unsafe impl ::windows::core::Abi for AlternateNormalizationFormat {
type Abi = Self;
}
unsafe impl ::windows::core::RuntimeType for AlternateNormalizationFormat {
const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.Data.Text.AlternateNormalizationFormat;i4)");
}
impl ::windows::core::DefaultType for AlternateNormalizationFormat {
type DefaultType = Self;
}
#[repr(transparent)]
#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)]
pub struct AlternateWordForm(pub ::windows::core::IInspectable);
impl AlternateWordForm {
pub fn SourceTextSegment(&self) -> ::windows::core::Result<TextSegment> {
let this = self;
unsafe {
let mut result__: TextSegment = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<TextSegment>(result__)
}
}
pub fn AlternateText(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
let this = self;
unsafe {
let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__)
}
}
pub fn NormalizationFormat(&self) -> ::windows::core::Result<AlternateNormalizationFormat> {
let this = self;
unsafe {
let mut result__: AlternateNormalizationFormat = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<AlternateNormalizationFormat>(result__)
}
}
}
unsafe impl ::windows::core::RuntimeType for AlternateWordForm {
const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.Data.Text.AlternateWordForm;{47396c1e-51b9-4207-9146-248e636a1d1d})");
}
unsafe impl ::windows::core::Interface for AlternateWordForm {
type Vtable = IAlternateWordForm_abi;
const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x47396c1e_51b9_4207_9146_248e636a1d1d);
}
impl ::windows::core::RuntimeName for AlternateWordForm {
const NAME: &'static str = "Windows.Data.Text.AlternateWordForm";
}
impl ::core::convert::From<AlternateWordForm> for ::windows::core::IUnknown {
fn from(value: AlternateWordForm) -> Self {
value.0 .0
}
}
impl ::core::convert::From<&AlternateWordForm> for ::windows::core::IUnknown {
fn from(value: &AlternateWordForm) -> Self {
value.0 .0.clone()
}
}
impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for AlternateWordForm {
fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> {
::windows::core::Param::Owned(self.0 .0)
}
}
impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a AlternateWordForm {
fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> {
::windows::core::Param::Borrowed(&self.0 .0)
}
}
impl ::core::convert::From<AlternateWordForm> for ::windows::core::IInspectable {
fn from(value: AlternateWordForm) -> Self {
value.0
}
}
impl ::core::convert::From<&AlternateWordForm> for ::windows::core::IInspectable {
fn from(value: &AlternateWordForm) -> Self {
value.0.clone()
}
}
impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for AlternateWordForm {
fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> {
::windows::core::Param::Owned(self.0)
}
}
impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a AlternateWordForm {
fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> {
::windows::core::Param::Borrowed(&self.0)
}
}
unsafe impl ::core::marker::Send for AlternateWordForm {}
unsafe impl ::core::marker::Sync for AlternateWordForm {}
#[repr(transparent)]
#[doc(hidden)]
pub struct IAlternateWordForm(pub ::windows::core::IInspectable);
unsafe impl ::windows::core::Interface for IAlternateWordForm {
type Vtable = IAlternateWordForm_abi;
const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x47396c1e_51b9_4207_9146_248e636a1d1d);
}
#[repr(C)]
#[doc(hidden)]
pub struct IAlternateWordForm_abi(
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut TextSegment) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut AlternateNormalizationFormat) -> ::windows::core::HRESULT,
);
#[repr(transparent)]
#[doc(hidden)]
pub struct ISelectableWordSegment(pub ::windows::core::IInspectable);
unsafe impl ::windows::core::Interface for ISelectableWordSegment {
type Vtable = ISelectableWordSegment_abi;
const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x916a4cb7_8aa7_4c78_b374_5dedb752e60b);
}
#[repr(C)]
#[doc(hidden)]
pub struct ISelectableWordSegment_abi(
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut TextSegment) -> ::windows::core::HRESULT,
);
#[repr(transparent)]
#[doc(hidden)]
pub struct ISelectableWordsSegmenter(pub ::windows::core::IInspectable);
unsafe impl ::windows::core::Interface for ISelectableWordsSegmenter {
type Vtable = ISelectableWordsSegmenter_abi;
const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf6dc31e7_4b13_45c5_8897_7d71269e085d);
}
#[repr(C)]
#[doc(hidden)]
pub struct ISelectableWordsSegmenter_abi(
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, text: ::core::mem::ManuallyDrop<::windows::core::HSTRING>, startindex: u32, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
#[cfg(feature = "Foundation_Collections")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, text: ::core::mem::ManuallyDrop<::windows::core::HSTRING>, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
#[cfg(not(feature = "Foundation_Collections"))] usize,
#[cfg(feature = "Foundation_Collections")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, text: ::core::mem::ManuallyDrop<::windows::core::HSTRING>, startindex: u32, handler: ::windows::core::RawPtr) -> ::windows::core::HRESULT,
#[cfg(not(feature = "Foundation_Collections"))] usize,
);
#[repr(transparent)]
#[doc(hidden)]
pub struct ISelectableWordsSegmenterFactory(pub ::windows::core::IInspectable);
unsafe impl ::windows::core::Interface for ISelectableWordsSegmenterFactory {
type Vtable = ISelectableWordsSegmenterFactory_abi;
const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8c7a7648_6057_4339_bc70_f210010a4150);
}
#[repr(C)]
#[doc(hidden)]
pub struct ISelectableWordsSegmenterFactory_abi(
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, language: ::core::mem::ManuallyDrop<::windows::core::HSTRING>, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
);
#[repr(transparent)]
#[doc(hidden)]
pub struct ISemanticTextQuery(pub ::windows::core::IInspectable);
unsafe impl ::windows::core::Interface for ISemanticTextQuery {
type Vtable = ISemanticTextQuery_abi;
const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6a1cab51_1fb2_4909_80b8_35731a2b3e7f);
}
#[repr(C)]
#[doc(hidden)]
pub struct ISemanticTextQuery_abi(
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT,
#[cfg(feature = "Foundation_Collections")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, content: ::core::mem::ManuallyDrop<::windows::core::HSTRING>, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
#[cfg(not(feature = "Foundation_Collections"))] usize,
#[cfg(feature = "Foundation_Collections")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, propertycontent: ::core::mem::ManuallyDrop<::windows::core::HSTRING>, propertyname: ::core::mem::ManuallyDrop<::windows::core::HSTRING>, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
#[cfg(not(feature = "Foundation_Collections"))] usize,
);
#[repr(transparent)]
#[doc(hidden)]
pub struct ISemanticTextQueryFactory(pub ::windows::core::IInspectable);
unsafe impl ::windows::core::Interface for ISemanticTextQueryFactory {
type Vtable = ISemanticTextQueryFactory_abi;
const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x238c0503_f995_4587_8777_a2b7d80acfef);
}
#[repr(C)]
#[doc(hidden)]
pub struct ISemanticTextQueryFactory_abi(
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, aqsfilter: ::core::mem::ManuallyDrop<::windows::core::HSTRING>, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, aqsfilter: ::core::mem::ManuallyDrop<::windows::core::HSTRING>, filterlanguage: ::core::mem::ManuallyDrop<::windows::core::HSTRING>, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
);
#[repr(transparent)]
#[doc(hidden)]
pub struct ITextConversionGenerator(pub ::windows::core::IInspectable);
unsafe impl ::windows::core::Interface for ITextConversionGenerator {
type Vtable = ITextConversionGenerator_abi;
const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x03606a5e_2aa9_4ab6_af8b_a562b63a8992);
}
#[repr(C)]
#[doc(hidden)]
pub struct ITextConversionGenerator_abi(
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT,
#[cfg(all(feature = "Foundation", feature = "Foundation_Collections"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, input: ::core::mem::ManuallyDrop<::windows::core::HSTRING>, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
#[cfg(not(all(feature = "Foundation", feature = "Foundation_Collections")))] usize,
#[cfg(all(feature = "Foundation", feature = "Foundation_Collections"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, input: ::core::mem::ManuallyDrop<::windows::core::HSTRING>, maxcandidates: u32, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
#[cfg(not(all(feature = "Foundation", feature = "Foundation_Collections")))] usize,
);
#[repr(transparent)]
#[doc(hidden)]
pub struct ITextConversionGeneratorFactory(pub ::windows::core::IInspectable);
unsafe impl ::windows::core::Interface for ITextConversionGeneratorFactory {
type Vtable = ITextConversionGeneratorFactory_abi;
const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfcaa3781_3083_49ab_be15_56dfbbb74d6f);
}
#[repr(C)]
#[doc(hidden)]
pub struct ITextConversionGeneratorFactory_abi(
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, languagetag: ::core::mem::ManuallyDrop<::windows::core::HSTRING>, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
);
#[repr(transparent)]
#[doc(hidden)]
pub struct ITextPhoneme(pub ::windows::core::IInspectable);
unsafe impl ::windows::core::Interface for ITextPhoneme {
type Vtable = ITextPhoneme_abi;
const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9362a40a_9b7a_4569_94cf_d84f2f38cf9b);
}
#[repr(C)]
#[doc(hidden)]
pub struct ITextPhoneme_abi(
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
);
#[repr(transparent)]
#[doc(hidden)]
pub struct ITextPredictionGenerator(pub ::windows::core::IInspectable);
unsafe impl ::windows::core::Interface for ITextPredictionGenerator {
type Vtable = ITextPredictionGenerator_abi;
const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x5eacab07_abf1_4cb6_9d9e_326f2b468756);
}
#[repr(C)]
#[doc(hidden)]
pub struct ITextPredictionGenerator_abi(
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT,
#[cfg(all(feature = "Foundation", feature = "Foundation_Collections"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, input: ::core::mem::ManuallyDrop<::windows::core::HSTRING>, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
#[cfg(not(all(feature = "Foundation", feature = "Foundation_Collections")))] usize,
#[cfg(all(feature = "Foundation", feature = "Foundation_Collections"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, input: ::core::mem::ManuallyDrop<::windows::core::HSTRING>, maxcandidates: u32, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
#[cfg(not(all(feature = "Foundation", feature = "Foundation_Collections")))] usize,
);
#[repr(transparent)]
#[doc(hidden)]
pub struct ITextPredictionGenerator2(pub ::windows::core::IInspectable);
unsafe impl ::windows::core::Interface for ITextPredictionGenerator2 {
type Vtable = ITextPredictionGenerator2_abi;
const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb84723b8_2c77_486a_900a_a3453eedc15d);
}
#[repr(C)]
#[doc(hidden)]
pub struct ITextPredictionGenerator2_abi(
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT,
#[cfg(all(feature = "Foundation", feature = "Foundation_Collections"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, input: ::core::mem::ManuallyDrop<::windows::core::HSTRING>, maxcandidates: u32, predictionoptions: TextPredictionOptions, previousstrings: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
#[cfg(not(all(feature = "Foundation", feature = "Foundation_Collections")))] usize,
#[cfg(all(feature = "Foundation", feature = "Foundation_Collections"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, maxcandidates: u32, previousstrings: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
#[cfg(not(all(feature = "Foundation", feature = "Foundation_Collections")))] usize,
#[cfg(feature = "UI_Text_Core")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::UI::Text::Core::CoreTextInputScope) -> ::windows::core::HRESULT,
#[cfg(not(feature = "UI_Text_Core"))] usize,
#[cfg(feature = "UI_Text_Core")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: super::super::UI::Text::Core::CoreTextInputScope) -> ::windows::core::HRESULT,
#[cfg(not(feature = "UI_Text_Core"))] usize,
);
#[repr(transparent)]
#[doc(hidden)]
pub struct ITextPredictionGeneratorFactory(pub ::windows::core::IInspectable);
unsafe impl ::windows::core::Interface for ITextPredictionGeneratorFactory {
type Vtable = ITextPredictionGeneratorFactory_abi;
const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7257b416_8ba2_4751_9d30_9d85435653a2);
}
#[repr(C)]
#[doc(hidden)]
pub struct ITextPredictionGeneratorFactory_abi(
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, languagetag: ::core::mem::ManuallyDrop<::windows::core::HSTRING>, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
);
#[repr(transparent)]
#[doc(hidden)]
pub struct ITextReverseConversionGenerator(pub ::windows::core::IInspectable);
unsafe impl ::windows::core::Interface for ITextReverseConversionGenerator {
type Vtable = ITextReverseConversionGenerator_abi;
const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x51e7f514_9c51_4d86_ae1b_b498fbad8313);
}
#[repr(C)]
#[doc(hidden)]
pub struct ITextReverseConversionGenerator_abi(
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT,
#[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, input: ::core::mem::ManuallyDrop<::windows::core::HSTRING>, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
#[cfg(not(feature = "Foundation"))] usize,
);
#[repr(transparent)]
#[doc(hidden)]
pub struct ITextReverseConversionGenerator2(pub ::windows::core::IInspectable);
unsafe impl ::windows::core::Interface for ITextReverseConversionGenerator2 {
type Vtable = ITextReverseConversionGenerator2_abi;
const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1aafd2ec_85d6_46fd_828a_3a4830fa6e18);
}
#[repr(C)]
#[doc(hidden)]
pub struct ITextReverseConversionGenerator2_abi(
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT,
#[cfg(all(feature = "Foundation", feature = "Foundation_Collections"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, input: ::core::mem::ManuallyDrop<::windows::core::HSTRING>, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
#[cfg(not(all(feature = "Foundation", feature = "Foundation_Collections")))] usize,
);
#[repr(transparent)]
#[doc(hidden)]
pub struct ITextReverseConversionGeneratorFactory(pub ::windows::core::IInspectable);
unsafe impl ::windows::core::Interface for ITextReverseConversionGeneratorFactory {
type Vtable = ITextReverseConversionGeneratorFactory_abi;
const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x63bed326_1fda_41f6_89d5_23ddea3c729a);
}
#[repr(C)]
#[doc(hidden)]
pub struct ITextReverseConversionGeneratorFactory_abi(
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, languagetag: ::core::mem::ManuallyDrop<::windows::core::HSTRING>, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
);
#[repr(transparent)]
#[doc(hidden)]
pub struct IUnicodeCharactersStatics(pub ::windows::core::IInspectable);
unsafe impl ::windows::core::Interface for IUnicodeCharactersStatics {
type Vtable = IUnicodeCharactersStatics_abi;
const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x97909e87_9291_4f91_b6c8_b6e359d7a7fb);
}
#[repr(C)]
#[doc(hidden)]
pub struct IUnicodeCharactersStatics_abi(
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, highsurrogate: u32, lowsurrogate: u32, result__: *mut u32) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, codepoint: u32, highsurrogate: *mut u16, lowsurrogate: *mut u16) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, codepoint: u32, result__: *mut bool) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, codepoint: u32, result__: *mut bool) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, codepoint: u32, result__: *mut bool) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, codepoint: u32, result__: *mut bool) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, codepoint: u32, result__: *mut bool) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, codepoint: u32, result__: *mut bool) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, codepoint: u32, result__: *mut bool) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, codepoint: u32, result__: *mut bool) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, codepoint: u32, result__: *mut bool) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, codepoint: u32, result__: *mut bool) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, codepoint: u32, result__: *mut bool) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, codepoint: u32, result__: *mut bool) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, codepoint: u32, result__: *mut bool) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, codepoint: u32, result__: *mut UnicodeNumericType) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, codepoint: u32, result__: *mut UnicodeGeneralCategory) -> ::windows::core::HRESULT,
);
#[repr(transparent)]
#[doc(hidden)]
pub struct IWordSegment(pub ::windows::core::IInspectable);
unsafe impl ::windows::core::Interface for IWordSegment {
type Vtable = IWordSegment_abi;
const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd2d4ba6d_987c_4cc0_b6bd_d49a11b38f9a);
}
#[repr(C)]
#[doc(hidden)]
pub struct IWordSegment_abi(
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut TextSegment) -> ::windows::core::HRESULT,
#[cfg(feature = "Foundation_Collections")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
#[cfg(not(feature = "Foundation_Collections"))] usize,
);
#[repr(transparent)]
#[doc(hidden)]
pub struct IWordsSegmenter(pub ::windows::core::IInspectable);
unsafe impl ::windows::core::Interface for IWordsSegmenter {
type Vtable = IWordsSegmenter_abi;
const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x86b4d4d1_b2fe_4e34_a81d_66640300454f);
}
#[repr(C)]
#[doc(hidden)]
pub struct IWordsSegmenter_abi(
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, text: ::core::mem::ManuallyDrop<::windows::core::HSTRING>, startindex: u32, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
#[cfg(feature = "Foundation_Collections")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, text: ::core::mem::ManuallyDrop<::windows::core::HSTRING>, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
#[cfg(not(feature = "Foundation_Collections"))] usize,
#[cfg(feature = "Foundation_Collections")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, text: ::core::mem::ManuallyDrop<::windows::core::HSTRING>, startindex: u32, handler: ::windows::core::RawPtr) -> ::windows::core::HRESULT,
#[cfg(not(feature = "Foundation_Collections"))] usize,
);
#[repr(transparent)]
#[doc(hidden)]
pub struct IWordsSegmenterFactory(pub ::windows::core::IInspectable);
unsafe impl ::windows::core::Interface for IWordsSegmenterFactory {
type Vtable = IWordsSegmenterFactory_abi;
const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe6977274_fc35_455c_8bfb_6d7f4653ca97);
}
#[repr(C)]
#[doc(hidden)]
pub struct IWordsSegmenterFactory_abi(
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, language: ::core::mem::ManuallyDrop<::windows::core::HSTRING>, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
);
#[repr(transparent)]
#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)]
pub struct SelectableWordSegment(pub ::windows::core::IInspectable);
impl SelectableWordSegment {
pub fn Text(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
let this = self;
unsafe {
let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__)
}
}
pub fn SourceTextSegment(&self) -> ::windows::core::Result<TextSegment> {
let this = self;
unsafe {
let mut result__: TextSegment = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<TextSegment>(result__)
}
}
}
unsafe impl ::windows::core::RuntimeType for SelectableWordSegment {
const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.Data.Text.SelectableWordSegment;{916a4cb7-8aa7-4c78-b374-5dedb752e60b})");
}
unsafe impl ::windows::core::Interface for SelectableWordSegment {
type Vtable = ISelectableWordSegment_abi;
const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x916a4cb7_8aa7_4c78_b374_5dedb752e60b);
}
impl ::windows::core::RuntimeName for SelectableWordSegment {
const NAME: &'static str = "Windows.Data.Text.SelectableWordSegment";
}
impl ::core::convert::From<SelectableWordSegment> for ::windows::core::IUnknown {
fn from(value: SelectableWordSegment) -> Self {
value.0 .0
}
}
impl ::core::convert::From<&SelectableWordSegment> for ::windows::core::IUnknown {
fn from(value: &SelectableWordSegment) -> Self {
value.0 .0.clone()
}
}
impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for SelectableWordSegment {
fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> {
::windows::core::Param::Owned(self.0 .0)
}
}
impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a SelectableWordSegment {
fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> {
::windows::core::Param::Borrowed(&self.0 .0)
}
}
impl ::core::convert::From<SelectableWordSegment> for ::windows::core::IInspectable {
fn from(value: SelectableWordSegment) -> Self {
value.0
}
}
impl ::core::convert::From<&SelectableWordSegment> for ::windows::core::IInspectable {
fn from(value: &SelectableWordSegment) -> Self {
value.0.clone()
}
}
impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for SelectableWordSegment {
fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> {
::windows::core::Param::Owned(self.0)
}
}
impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a SelectableWordSegment {
fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> {
::windows::core::Param::Borrowed(&self.0)
}
}
unsafe impl ::core::marker::Send for SelectableWordSegment {}
unsafe impl ::core::marker::Sync for SelectableWordSegment {}
#[cfg(feature = "Foundation_Collections")]
#[repr(transparent)]
#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)]
pub struct SelectableWordSegmentsTokenizingHandler(::windows::core::IUnknown);
#[cfg(feature = "Foundation_Collections")]
impl SelectableWordSegmentsTokenizingHandler {
pub fn new<F: FnMut(&::core::option::Option<super::super::Foundation::Collections::IIterable<SelectableWordSegment>>, &::core::option::Option<super::super::Foundation::Collections::IIterable<SelectableWordSegment>>) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self {
let com = SelectableWordSegmentsTokenizingHandler_box::<F> {
vtable: &SelectableWordSegmentsTokenizingHandler_box::<F>::VTABLE,
count: ::windows::core::RefCount::new(1),
invoke,
};
unsafe { core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) }
}
#[cfg(feature = "Foundation_Collections")]
pub fn Invoke<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::Collections::IIterable<SelectableWordSegment>>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::Collections::IIterable<SelectableWordSegment>>>(&self, precedingwords: Param0, words: Param1) -> ::windows::core::Result<()> {
let this = self;
unsafe { (::windows::core::Interface::vtable(this).3)(::core::mem::transmute_copy(this), precedingwords.into_param().abi(), words.into_param().abi()).ok() }
}
}
#[cfg(feature = "Foundation_Collections")]
unsafe impl ::windows::core::RuntimeType for SelectableWordSegmentsTokenizingHandler {
const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"delegate({3a3dfc9c-aede-4dc7-9e6c-41c044bd3592})");
}
#[cfg(feature = "Foundation_Collections")]
unsafe impl ::windows::core::Interface for SelectableWordSegmentsTokenizingHandler {
type Vtable = SelectableWordSegmentsTokenizingHandler_abi;
const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3a3dfc9c_aede_4dc7_9e6c_41c044bd3592);
}
#[cfg(feature = "Foundation_Collections")]
#[repr(C)]
#[doc(hidden)]
pub struct SelectableWordSegmentsTokenizingHandler_abi(
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, precedingwords: ::windows::core::RawPtr, words: ::windows::core::RawPtr) -> ::windows::core::HRESULT,
);
#[cfg(feature = "Foundation_Collections")]
#[repr(C)]
struct SelectableWordSegmentsTokenizingHandler_box<F: FnMut(&::core::option::Option<super::super::Foundation::Collections::IIterable<SelectableWordSegment>>, &::core::option::Option<super::super::Foundation::Collections::IIterable<SelectableWordSegment>>) -> ::windows::core::Result<()> + 'static> {
vtable: *const SelectableWordSegmentsTokenizingHandler_abi,
invoke: F,
count: ::windows::core::RefCount,
}
#[cfg(feature = "Foundation_Collections")]
impl<F: FnMut(&::core::option::Option<super::super::Foundation::Collections::IIterable<SelectableWordSegment>>, &::core::option::Option<super::super::Foundation::Collections::IIterable<SelectableWordSegment>>) -> ::windows::core::Result<()> + 'static> SelectableWordSegmentsTokenizingHandler_box<F> {
const VTABLE: SelectableWordSegmentsTokenizingHandler_abi = SelectableWordSegmentsTokenizingHandler_abi(Self::QueryInterface, Self::AddRef, Self::Release, Self::Invoke);
unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT {
let this = this as *mut ::windows::core::RawPtr as *mut Self;
*interface = if iid == &<SelectableWordSegmentsTokenizingHandler as ::windows::core::Interface>::IID || iid == &<::windows::core::IUnknown as ::windows::core::Interface>::IID || iid == &<::windows::core::IAgileObject as ::windows::core::Interface>::IID {
&mut (*this).vtable as *mut _ as _
} else {
::core::ptr::null_mut()
};
if (*interface).is_null() {
::windows::core::HRESULT(0x8000_4002)
} else {
(*this).count.add_ref();
::windows::core::HRESULT(0)
}
}
unsafe extern "system" fn AddRef(this: ::windows::core::RawPtr) -> u32 {
let this = this as *mut ::windows::core::RawPtr as *mut Self;
(*this).count.add_ref()
}
unsafe extern "system" fn Release(this: ::windows::core::RawPtr) -> u32 {
let this = this as *mut ::windows::core::RawPtr as *mut Self;
let remaining = (*this).count.release();
if remaining == 0 {
::windows::core::alloc::boxed::Box::from_raw(this);
}
remaining
}
unsafe extern "system" fn Invoke(this: ::windows::core::RawPtr, precedingwords: ::windows::core::RawPtr, words: ::windows::core::RawPtr) -> ::windows::core::HRESULT {
let this = this as *mut ::windows::core::RawPtr as *mut Self;
((*this).invoke)(
&*(&precedingwords as *const <super::super::Foundation::Collections::IIterable<SelectableWordSegment> as ::windows::core::Abi>::Abi as *const <super::super::Foundation::Collections::IIterable<SelectableWordSegment> as ::windows::core::DefaultType>::DefaultType),
&*(&words as *const <super::super::Foundation::Collections::IIterable<SelectableWordSegment> as ::windows::core::Abi>::Abi as *const <super::super::Foundation::Collections::IIterable<SelectableWordSegment> as ::windows::core::DefaultType>::DefaultType),
)
.into()
}
}
#[repr(transparent)]
#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)]
pub struct SelectableWordsSegmenter(pub ::windows::core::IInspectable);
impl SelectableWordsSegmenter {
pub fn ResolvedLanguage(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
let this = self;
unsafe {
let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__)
}
}
pub fn GetTokenAt<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, text: Param0, startindex: u32) -> ::windows::core::Result<SelectableWordSegment> {
let this = self;
unsafe {
let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), text.into_param().abi(), startindex, &mut result__).from_abi::<SelectableWordSegment>(result__)
}
}
#[cfg(feature = "Foundation_Collections")]
pub fn GetTokens<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, text: Param0) -> ::windows::core::Result<super::super::Foundation::Collections::IVectorView<SelectableWordSegment>> {
let this = self;
unsafe {
let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), text.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::Collections::IVectorView<SelectableWordSegment>>(result__)
}
}
#[cfg(feature = "Foundation_Collections")]
pub fn Tokenize<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param2: ::windows::core::IntoParam<'a, SelectableWordSegmentsTokenizingHandler>>(&self, text: Param0, startindex: u32, handler: Param2) -> ::windows::core::Result<()> {
let this = self;
unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), text.into_param().abi(), startindex, handler.into_param().abi()).ok() }
}
pub fn CreateWithLanguage<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(language: Param0) -> ::windows::core::Result<SelectableWordsSegmenter> {
Self::ISelectableWordsSegmenterFactory(|this| unsafe {
let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), language.into_param().abi(), &mut result__).from_abi::<SelectableWordsSegmenter>(result__)
})
}
pub fn ISelectableWordsSegmenterFactory<R, F: FnOnce(&ISelectableWordsSegmenterFactory) -> ::windows::core::Result<R>>(callback: F) -> ::windows::core::Result<R> {
static mut SHARED: ::windows::core::FactoryCache<SelectableWordsSegmenter, ISelectableWordsSegmenterFactory> = ::windows::core::FactoryCache::new();
unsafe { SHARED.call(callback) }
}
}
unsafe impl ::windows::core::RuntimeType for SelectableWordsSegmenter {
const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.Data.Text.SelectableWordsSegmenter;{f6dc31e7-4b13-45c5-8897-7d71269e085d})");
}
unsafe impl ::windows::core::Interface for SelectableWordsSegmenter {
type Vtable = ISelectableWordsSegmenter_abi;
const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf6dc31e7_4b13_45c5_8897_7d71269e085d);
}
impl ::windows::core::RuntimeName for SelectableWordsSegmenter {
const NAME: &'static str = "Windows.Data.Text.SelectableWordsSegmenter";
}
impl ::core::convert::From<SelectableWordsSegmenter> for ::windows::core::IUnknown {
fn from(value: SelectableWordsSegmenter) -> Self {
value.0 .0
}
}
impl ::core::convert::From<&SelectableWordsSegmenter> for ::windows::core::IUnknown {
fn from(value: &SelectableWordsSegmenter) -> Self {
value.0 .0.clone()
}
}
impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for SelectableWordsSegmenter {
fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> {
::windows::core::Param::Owned(self.0 .0)
}
}
impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a SelectableWordsSegmenter {
fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> {
::windows::core::Param::Borrowed(&self.0 .0)
}
}
impl ::core::convert::From<SelectableWordsSegmenter> for ::windows::core::IInspectable {
fn from(value: SelectableWordsSegmenter) -> Self {
value.0
}
}
impl ::core::convert::From<&SelectableWordsSegmenter> for ::windows::core::IInspectable {
fn from(value: &SelectableWordsSegmenter) -> Self {
value.0.clone()
}
}
impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for SelectableWordsSegmenter {
fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> {
::windows::core::Param::Owned(self.0)
}
}
impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a SelectableWordsSegmenter {
fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> {
::windows::core::Param::Borrowed(&self.0)
}
}
unsafe impl ::core::marker::Send for SelectableWordsSegmenter {}
unsafe impl ::core::marker::Sync for SelectableWordsSegmenter {}
#[repr(transparent)]
#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)]
pub struct SemanticTextQuery(pub ::windows::core::IInspectable);
impl SemanticTextQuery {
#[cfg(feature = "Foundation_Collections")]
pub fn Find<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, content: Param0) -> ::windows::core::Result<super::super::Foundation::Collections::IVectorView<TextSegment>> {
let this = self;
unsafe {
let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), content.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::Collections::IVectorView<TextSegment>>(result__)
}
}
#[cfg(feature = "Foundation_Collections")]
pub fn FindInProperty<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param1: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, propertycontent: Param0, propertyname: Param1) -> ::windows::core::Result<super::super::Foundation::Collections::IVectorView<TextSegment>> {
let this = self;
unsafe {
let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), propertycontent.into_param().abi(), propertyname.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::Collections::IVectorView<TextSegment>>(result__)
}
}
pub fn Create<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(aqsfilter: Param0) -> ::windows::core::Result<SemanticTextQuery> {
Self::ISemanticTextQueryFactory(|this| unsafe {
let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), aqsfilter.into_param().abi(), &mut result__).from_abi::<SemanticTextQuery>(result__)
})
}
pub fn CreateWithLanguage<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param1: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(aqsfilter: Param0, filterlanguage: Param1) -> ::windows::core::Result<SemanticTextQuery> {
Self::ISemanticTextQueryFactory(|this| unsafe {
let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), aqsfilter.into_param().abi(), filterlanguage.into_param().abi(), &mut result__).from_abi::<SemanticTextQuery>(result__)
})
}
pub fn ISemanticTextQueryFactory<R, F: FnOnce(&ISemanticTextQueryFactory) -> ::windows::core::Result<R>>(callback: F) -> ::windows::core::Result<R> {
static mut SHARED: ::windows::core::FactoryCache<SemanticTextQuery, ISemanticTextQueryFactory> = ::windows::core::FactoryCache::new();
unsafe { SHARED.call(callback) }
}
}
unsafe impl ::windows::core::RuntimeType for SemanticTextQuery {
const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.Data.Text.SemanticTextQuery;{6a1cab51-1fb2-4909-80b8-35731a2b3e7f})");
}
unsafe impl ::windows::core::Interface for SemanticTextQuery {
type Vtable = ISemanticTextQuery_abi;
const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6a1cab51_1fb2_4909_80b8_35731a2b3e7f);
}
impl ::windows::core::RuntimeName for SemanticTextQuery {
const NAME: &'static str = "Windows.Data.Text.SemanticTextQuery";
}
impl ::core::convert::From<SemanticTextQuery> for ::windows::core::IUnknown {
fn from(value: SemanticTextQuery) -> Self {
value.0 .0
}
}
impl ::core::convert::From<&SemanticTextQuery> for ::windows::core::IUnknown {
fn from(value: &SemanticTextQuery) -> Self {
value.0 .0.clone()
}
}
impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for SemanticTextQuery {
fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> {
::windows::core::Param::Owned(self.0 .0)
}
}
impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a SemanticTextQuery {
fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> {
::windows::core::Param::Borrowed(&self.0 .0)
}
}
impl ::core::convert::From<SemanticTextQuery> for ::windows::core::IInspectable {
fn from(value: SemanticTextQuery) -> Self {
value.0
}
}
impl ::core::convert::From<&SemanticTextQuery> for ::windows::core::IInspectable {
fn from(value: &SemanticTextQuery) -> Self {
value.0.clone()
}
}
impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for SemanticTextQuery {
fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> {
::windows::core::Param::Owned(self.0)
}
}
impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a SemanticTextQuery {
fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> {
::windows::core::Param::Borrowed(&self.0)
}
}
unsafe impl ::core::marker::Send for SemanticTextQuery {}
unsafe impl ::core::marker::Sync for SemanticTextQuery {}
#[repr(transparent)]
#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)]
pub struct TextConversionGenerator(pub ::windows::core::IInspectable);
impl TextConversionGenerator {
pub fn ResolvedLanguage(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
let this = self;
unsafe {
let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__)
}
}
pub fn LanguageAvailableButNotInstalled(&self) -> ::windows::core::Result<bool> {
let this = self;
unsafe {
let mut result__: bool = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__)
}
}
#[cfg(all(feature = "Foundation", feature = "Foundation_Collections"))]
pub fn GetCandidatesAsync<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, input: Param0) -> ::windows::core::Result<super::super::Foundation::IAsyncOperation<super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>> {
let this = self;
unsafe {
let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), input.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(result__)
}
}
#[cfg(all(feature = "Foundation", feature = "Foundation_Collections"))]
pub fn GetCandidatesWithMaxCountAsync<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, input: Param0, maxcandidates: u32) -> ::windows::core::Result<super::super::Foundation::IAsyncOperation<super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>> {
let this = self;
unsafe {
let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), input.into_param().abi(), maxcandidates, &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(result__)
}
}
pub fn Create<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(languagetag: Param0) -> ::windows::core::Result<TextConversionGenerator> {
Self::ITextConversionGeneratorFactory(|this| unsafe {
let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), languagetag.into_param().abi(), &mut result__).from_abi::<TextConversionGenerator>(result__)
})
}
pub fn ITextConversionGeneratorFactory<R, F: FnOnce(&ITextConversionGeneratorFactory) -> ::windows::core::Result<R>>(callback: F) -> ::windows::core::Result<R> {
static mut SHARED: ::windows::core::FactoryCache<TextConversionGenerator, ITextConversionGeneratorFactory> = ::windows::core::FactoryCache::new();
unsafe { SHARED.call(callback) }
}
}
unsafe impl ::windows::core::RuntimeType for TextConversionGenerator {
const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.Data.Text.TextConversionGenerator;{03606a5e-2aa9-4ab6-af8b-a562b63a8992})");
}
unsafe impl ::windows::core::Interface for TextConversionGenerator {
type Vtable = ITextConversionGenerator_abi;
const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x03606a5e_2aa9_4ab6_af8b_a562b63a8992);
}
impl ::windows::core::RuntimeName for TextConversionGenerator {
const NAME: &'static str = "Windows.Data.Text.TextConversionGenerator";
}
impl ::core::convert::From<TextConversionGenerator> for ::windows::core::IUnknown {
fn from(value: TextConversionGenerator) -> Self {
value.0 .0
}
}
impl ::core::convert::From<&TextConversionGenerator> for ::windows::core::IUnknown {
fn from(value: &TextConversionGenerator) -> Self {
value.0 .0.clone()
}
}
impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for TextConversionGenerator {
fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> {
::windows::core::Param::Owned(self.0 .0)
}
}
impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a TextConversionGenerator {
fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> {
::windows::core::Param::Borrowed(&self.0 .0)
}
}
impl ::core::convert::From<TextConversionGenerator> for ::windows::core::IInspectable {
fn from(value: TextConversionGenerator) -> Self {
value.0
}
}
impl ::core::convert::From<&TextConversionGenerator> for ::windows::core::IInspectable {
fn from(value: &TextConversionGenerator) -> Self {
value.0.clone()
}
}
impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for TextConversionGenerator {
fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> {
::windows::core::Param::Owned(self.0)
}
}
impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a TextConversionGenerator {
fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> {
::windows::core::Param::Borrowed(&self.0)
}
}
unsafe impl ::core::marker::Send for TextConversionGenerator {}
unsafe impl ::core::marker::Sync for TextConversionGenerator {}
#[repr(transparent)]
#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)]
pub struct TextPhoneme(pub ::windows::core::IInspectable);
impl TextPhoneme {
pub fn DisplayText(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
let this = self;
unsafe {
let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__)
}
}
pub fn ReadingText(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
let this = self;
unsafe {
let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__)
}
}
}
unsafe impl ::windows::core::RuntimeType for TextPhoneme {
const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.Data.Text.TextPhoneme;{9362a40a-9b7a-4569-94cf-d84f2f38cf9b})");
}
unsafe impl ::windows::core::Interface for TextPhoneme {
type Vtable = ITextPhoneme_abi;
const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9362a40a_9b7a_4569_94cf_d84f2f38cf9b);
}
impl ::windows::core::RuntimeName for TextPhoneme {
const NAME: &'static str = "Windows.Data.Text.TextPhoneme";
}
impl ::core::convert::From<TextPhoneme> for ::windows::core::IUnknown {
fn from(value: TextPhoneme) -> Self {
value.0 .0
}
}
impl ::core::convert::From<&TextPhoneme> for ::windows::core::IUnknown {
fn from(value: &TextPhoneme) -> Self {
value.0 .0.clone()
}
}
impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for TextPhoneme {
fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> {
::windows::core::Param::Owned(self.0 .0)
}
}
impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a TextPhoneme {
fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> {
::windows::core::Param::Borrowed(&self.0 .0)
}
}
impl ::core::convert::From<TextPhoneme> for ::windows::core::IInspectable {
fn from(value: TextPhoneme) -> Self {
value.0
}
}
impl ::core::convert::From<&TextPhoneme> for ::windows::core::IInspectable {
fn from(value: &TextPhoneme) -> Self {
value.0.clone()
}
}
impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for TextPhoneme {
fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> {
::windows::core::Param::Owned(self.0)
}
}
impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a TextPhoneme {
fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> {
::windows::core::Param::Borrowed(&self.0)
}
}
unsafe impl ::core::marker::Send for TextPhoneme {}
unsafe impl ::core::marker::Sync for TextPhoneme {}
#[repr(transparent)]
#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)]
pub struct TextPredictionGenerator(pub ::windows::core::IInspectable);
impl TextPredictionGenerator {
pub fn ResolvedLanguage(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
let this = self;
unsafe {
let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__)
}
}
pub fn LanguageAvailableButNotInstalled(&self) -> ::windows::core::Result<bool> {
let this = self;
unsafe {
let mut result__: bool = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__)
}
}
#[cfg(all(feature = "Foundation", feature = "Foundation_Collections"))]
pub fn GetCandidatesAsync<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, input: Param0) -> ::windows::core::Result<super::super::Foundation::IAsyncOperation<super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>> {
let this = self;
unsafe {
let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), input.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(result__)
}
}
#[cfg(all(feature = "Foundation", feature = "Foundation_Collections"))]
pub fn GetCandidatesWithMaxCountAsync<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, input: Param0, maxcandidates: u32) -> ::windows::core::Result<super::super::Foundation::IAsyncOperation<super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>> {
let this = self;
unsafe {
let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), input.into_param().abi(), maxcandidates, &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(result__)
}
}
pub fn Create<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(languagetag: Param0) -> ::windows::core::Result<TextPredictionGenerator> {
Self::ITextPredictionGeneratorFactory(|this| unsafe {
let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), languagetag.into_param().abi(), &mut result__).from_abi::<TextPredictionGenerator>(result__)
})
}
#[cfg(all(feature = "Foundation", feature = "Foundation_Collections"))]
pub fn GetCandidatesWithParametersAsync<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, super::super::Foundation::Collections::IIterable<::windows::core::HSTRING>>>(&self, input: Param0, maxcandidates: u32, predictionoptions: TextPredictionOptions, previousstrings: Param3) -> ::windows::core::Result<super::super::Foundation::IAsyncOperation<super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>> {
let this = &::windows::core::Interface::cast::<ITextPredictionGenerator2>(self)?;
unsafe {
let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), input.into_param().abi(), maxcandidates, predictionoptions, previousstrings.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(result__)
}
}
#[cfg(all(feature = "Foundation", feature = "Foundation_Collections"))]
pub fn GetNextWordCandidatesAsync<'a, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::Collections::IIterable<::windows::core::HSTRING>>>(&self, maxcandidates: u32, previousstrings: Param1) -> ::windows::core::Result<super::super::Foundation::IAsyncOperation<super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>> {
let this = &::windows::core::Interface::cast::<ITextPredictionGenerator2>(self)?;
unsafe {
let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), maxcandidates, previousstrings.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(result__)
}
}
#[cfg(feature = "UI_Text_Core")]
pub fn InputScope(&self) -> ::windows::core::Result<super::super::UI::Text::Core::CoreTextInputScope> {
let this = &::windows::core::Interface::cast::<ITextPredictionGenerator2>(self)?;
unsafe {
let mut result__: super::super::UI::Text::Core::CoreTextInputScope = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<super::super::UI::Text::Core::CoreTextInputScope>(result__)
}
}
#[cfg(feature = "UI_Text_Core")]
pub fn SetInputScope(&self, value: super::super::UI::Text::Core::CoreTextInputScope) -> ::windows::core::Result<()> {
let this = &::windows::core::Interface::cast::<ITextPredictionGenerator2>(self)?;
unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() }
}
pub fn ITextPredictionGeneratorFactory<R, F: FnOnce(&ITextPredictionGeneratorFactory) -> ::windows::core::Result<R>>(callback: F) -> ::windows::core::Result<R> {
static mut SHARED: ::windows::core::FactoryCache<TextPredictionGenerator, ITextPredictionGeneratorFactory> = ::windows::core::FactoryCache::new();
unsafe { SHARED.call(callback) }
}
}
unsafe impl ::windows::core::RuntimeType for TextPredictionGenerator {
const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.Data.Text.TextPredictionGenerator;{5eacab07-abf1-4cb6-9d9e-326f2b468756})");
}
unsafe impl ::windows::core::Interface for TextPredictionGenerator {
type Vtable = ITextPredictionGenerator_abi;
const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x5eacab07_abf1_4cb6_9d9e_326f2b468756);
}
impl ::windows::core::RuntimeName for TextPredictionGenerator {
const NAME: &'static str = "Windows.Data.Text.TextPredictionGenerator";
}
impl ::core::convert::From<TextPredictionGenerator> for ::windows::core::IUnknown {
fn from(value: TextPredictionGenerator) -> Self {
value.0 .0
}
}
impl ::core::convert::From<&TextPredictionGenerator> for ::windows::core::IUnknown {
fn from(value: &TextPredictionGenerator) -> Self {
value.0 .0.clone()
}
}
impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for TextPredictionGenerator {
fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> {
::windows::core::Param::Owned(self.0 .0)
}
}
impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a TextPredictionGenerator {
fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> {
::windows::core::Param::Borrowed(&self.0 .0)
}
}
impl ::core::convert::From<TextPredictionGenerator> for ::windows::core::IInspectable {
fn from(value: TextPredictionGenerator) -> Self {
value.0
}
}
impl ::core::convert::From<&TextPredictionGenerator> for ::windows::core::IInspectable {
fn from(value: &TextPredictionGenerator) -> Self {
value.0.clone()
}
}
impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for TextPredictionGenerator {
fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> {
::windows::core::Param::Owned(self.0)
}
}
impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a TextPredictionGenerator {
fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> {
::windows::core::Param::Borrowed(&self.0)
}
}
unsafe impl ::core::marker::Send for TextPredictionGenerator {}
unsafe impl ::core::marker::Sync for TextPredictionGenerator {}
#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)]
#[repr(transparent)]
pub struct TextPredictionOptions(pub u32);
impl TextPredictionOptions {
pub const None: TextPredictionOptions = TextPredictionOptions(0u32);
pub const Predictions: TextPredictionOptions = TextPredictionOptions(1u32);
pub const Corrections: TextPredictionOptions = TextPredictionOptions(2u32);
}
impl ::core::convert::From<u32> for TextPredictionOptions {
fn from(value: u32) -> Self {
Self(value)
}
}
unsafe impl ::windows::core::Abi for TextPredictionOptions {
type Abi = Self;
}
unsafe impl ::windows::core::RuntimeType for TextPredictionOptions {
const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.Data.Text.TextPredictionOptions;u4)");
}
impl ::windows::core::DefaultType for TextPredictionOptions {
type DefaultType = Self;
}
impl ::core::ops::BitOr for TextPredictionOptions {
type Output = Self;
fn bitor(self, rhs: Self) -> Self {
Self(self.0 | rhs.0)
}
}
impl ::core::ops::BitAnd for TextPredictionOptions {
type Output = Self;
fn bitand(self, rhs: Self) -> Self {
Self(self.0 & rhs.0)
}
}
impl ::core::ops::BitOrAssign for TextPredictionOptions {
fn bitor_assign(&mut self, rhs: Self) {
self.0.bitor_assign(rhs.0)
}
}
impl ::core::ops::BitAndAssign for TextPredictionOptions {
fn bitand_assign(&mut self, rhs: Self) {
self.0.bitand_assign(rhs.0)
}
}
impl ::core::ops::Not for TextPredictionOptions {
type Output = Self;
fn not(self) -> Self {
Self(self.0.not())
}
}
#[repr(transparent)]
#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)]
pub struct TextReverseConversionGenerator(pub ::windows::core::IInspectable);
impl TextReverseConversionGenerator {
pub fn ResolvedLanguage(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
let this = self;
unsafe {
let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__)
}
}
pub fn LanguageAvailableButNotInstalled(&self) -> ::windows::core::Result<bool> {
let this = self;
unsafe {
let mut result__: bool = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__)
}
}
#[cfg(feature = "Foundation")]
pub fn ConvertBackAsync<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, input: Param0) -> ::windows::core::Result<super::super::Foundation::IAsyncOperation<::windows::core::HSTRING>> {
let this = self;
unsafe {
let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), input.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<::windows::core::HSTRING>>(result__)
}
}
pub fn Create<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(languagetag: Param0) -> ::windows::core::Result<TextReverseConversionGenerator> {
Self::ITextReverseConversionGeneratorFactory(|this| unsafe {
let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), languagetag.into_param().abi(), &mut result__).from_abi::<TextReverseConversionGenerator>(result__)
})
}
#[cfg(all(feature = "Foundation", feature = "Foundation_Collections"))]
pub fn GetPhonemesAsync<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, input: Param0) -> ::windows::core::Result<super::super::Foundation::IAsyncOperation<super::super::Foundation::Collections::IVectorView<TextPhoneme>>> {
let this = &::windows::core::Interface::cast::<ITextReverseConversionGenerator2>(self)?;
unsafe {
let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), input.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::IAsyncOperation<super::super::Foundation::Collections::IVectorView<TextPhoneme>>>(result__)
}
}
pub fn ITextReverseConversionGeneratorFactory<R, F: FnOnce(&ITextReverseConversionGeneratorFactory) -> ::windows::core::Result<R>>(callback: F) -> ::windows::core::Result<R> {
static mut SHARED: ::windows::core::FactoryCache<TextReverseConversionGenerator, ITextReverseConversionGeneratorFactory> = ::windows::core::FactoryCache::new();
unsafe { SHARED.call(callback) }
}
}
unsafe impl ::windows::core::RuntimeType for TextReverseConversionGenerator {
const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.Data.Text.TextReverseConversionGenerator;{51e7f514-9c51-4d86-ae1b-b498fbad8313})");
}
unsafe impl ::windows::core::Interface for TextReverseConversionGenerator {
type Vtable = ITextReverseConversionGenerator_abi;
const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x51e7f514_9c51_4d86_ae1b_b498fbad8313);
}
impl ::windows::core::RuntimeName for TextReverseConversionGenerator {
const NAME: &'static str = "Windows.Data.Text.TextReverseConversionGenerator";
}
impl ::core::convert::From<TextReverseConversionGenerator> for ::windows::core::IUnknown {
fn from(value: TextReverseConversionGenerator) -> Self {
value.0 .0
}
}
impl ::core::convert::From<&TextReverseConversionGenerator> for ::windows::core::IUnknown {
fn from(value: &TextReverseConversionGenerator) -> Self {
value.0 .0.clone()
}
}
impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for TextReverseConversionGenerator {
fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> {
::windows::core::Param::Owned(self.0 .0)
}
}
impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a TextReverseConversionGenerator {
fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> {
::windows::core::Param::Borrowed(&self.0 .0)
}
}
impl ::core::convert::From<TextReverseConversionGenerator> for ::windows::core::IInspectable {
fn from(value: TextReverseConversionGenerator) -> Self {
value.0
}
}
impl ::core::convert::From<&TextReverseConversionGenerator> for ::windows::core::IInspectable {
fn from(value: &TextReverseConversionGenerator) -> Self {
value.0.clone()
}
}
impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for TextReverseConversionGenerator {
fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> {
::windows::core::Param::Owned(self.0)
}
}
impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a TextReverseConversionGenerator {
fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> {
::windows::core::Param::Borrowed(&self.0)
}
}
unsafe impl ::core::marker::Send for TextReverseConversionGenerator {}
unsafe impl ::core::marker::Sync for TextReverseConversionGenerator {}
#[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)]
#[repr(C)]
pub struct TextSegment {
pub StartPosition: u32,
pub Length: u32,
}
impl TextSegment {}
impl ::core::default::Default for TextSegment {
fn default() -> Self {
unsafe { ::core::mem::zeroed() }
}
}
impl ::core::fmt::Debug for TextSegment {
fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
fmt.debug_struct("TextSegment").field("StartPosition", &self.StartPosition).field("Length", &self.Length).finish()
}
}
impl ::core::cmp::PartialEq for TextSegment {
fn eq(&self, other: &Self) -> bool {
self.StartPosition == other.StartPosition && self.Length == other.Length
}
}
impl ::core::cmp::Eq for TextSegment {}
unsafe impl ::windows::core::Abi for TextSegment {
type Abi = Self;
}
unsafe impl ::windows::core::RuntimeType for TextSegment {
const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"struct(Windows.Data.Text.TextSegment;u4;u4)");
}
impl ::windows::core::DefaultType for TextSegment {
type DefaultType = Self;
}
pub struct UnicodeCharacters {}
impl UnicodeCharacters {
pub fn GetCodepointFromSurrogatePair(highsurrogate: u32, lowsurrogate: u32) -> ::windows::core::Result<u32> {
Self::IUnicodeCharactersStatics(|this| unsafe {
let mut result__: u32 = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), highsurrogate, lowsurrogate, &mut result__).from_abi::<u32>(result__)
})
}
pub fn GetSurrogatePairFromCodepoint(codepoint: u32, highsurrogate: &mut u16, lowsurrogate: &mut u16) -> ::windows::core::Result<()> {
Self::IUnicodeCharactersStatics(|this| unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), codepoint, highsurrogate, lowsurrogate).ok() })
}
pub fn IsHighSurrogate(codepoint: u32) -> ::windows::core::Result<bool> {
Self::IUnicodeCharactersStatics(|this| unsafe {
let mut result__: bool = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), codepoint, &mut result__).from_abi::<bool>(result__)
})
}
pub fn IsLowSurrogate(codepoint: u32) -> ::windows::core::Result<bool> {
Self::IUnicodeCharactersStatics(|this| unsafe {
let mut result__: bool = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), codepoint, &mut result__).from_abi::<bool>(result__)
})
}
pub fn IsSupplementary(codepoint: u32) -> ::windows::core::Result<bool> {
Self::IUnicodeCharactersStatics(|this| unsafe {
let mut result__: bool = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), codepoint, &mut result__).from_abi::<bool>(result__)
})
}
pub fn IsNoncharacter(codepoint: u32) -> ::windows::core::Result<bool> {
Self::IUnicodeCharactersStatics(|this| unsafe {
let mut result__: bool = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), codepoint, &mut result__).from_abi::<bool>(result__)
})
}
pub fn IsWhitespace(codepoint: u32) -> ::windows::core::Result<bool> {
Self::IUnicodeCharactersStatics(|this| unsafe {
let mut result__: bool = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), codepoint, &mut result__).from_abi::<bool>(result__)
})
}
pub fn IsAlphabetic(codepoint: u32) -> ::windows::core::Result<bool> {
Self::IUnicodeCharactersStatics(|this| unsafe {
let mut result__: bool = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), codepoint, &mut result__).from_abi::<bool>(result__)
})
}
pub fn IsCased(codepoint: u32) -> ::windows::core::Result<bool> {
Self::IUnicodeCharactersStatics(|this| unsafe {
let mut result__: bool = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), codepoint, &mut result__).from_abi::<bool>(result__)
})
}
pub fn IsUppercase(codepoint: u32) -> ::windows::core::Result<bool> {
Self::IUnicodeCharactersStatics(|this| unsafe {
let mut result__: bool = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), codepoint, &mut result__).from_abi::<bool>(result__)
})
}
pub fn IsLowercase(codepoint: u32) -> ::windows::core::Result<bool> {
Self::IUnicodeCharactersStatics(|this| unsafe {
let mut result__: bool = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), codepoint, &mut result__).from_abi::<bool>(result__)
})
}
pub fn IsIdStart(codepoint: u32) -> ::windows::core::Result<bool> {
Self::IUnicodeCharactersStatics(|this| unsafe {
let mut result__: bool = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), codepoint, &mut result__).from_abi::<bool>(result__)
})
}
pub fn IsIdContinue(codepoint: u32) -> ::windows::core::Result<bool> {
Self::IUnicodeCharactersStatics(|this| unsafe {
let mut result__: bool = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), codepoint, &mut result__).from_abi::<bool>(result__)
})
}
pub fn IsGraphemeBase(codepoint: u32) -> ::windows::core::Result<bool> {
Self::IUnicodeCharactersStatics(|this| unsafe {
let mut result__: bool = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), codepoint, &mut result__).from_abi::<bool>(result__)
})
}
pub fn IsGraphemeExtend(codepoint: u32) -> ::windows::core::Result<bool> {
Self::IUnicodeCharactersStatics(|this| unsafe {
let mut result__: bool = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), codepoint, &mut result__).from_abi::<bool>(result__)
})
}
pub fn GetNumericType(codepoint: u32) -> ::windows::core::Result<UnicodeNumericType> {
Self::IUnicodeCharactersStatics(|this| unsafe {
let mut result__: UnicodeNumericType = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), codepoint, &mut result__).from_abi::<UnicodeNumericType>(result__)
})
}
pub fn GetGeneralCategory(codepoint: u32) -> ::windows::core::Result<UnicodeGeneralCategory> {
Self::IUnicodeCharactersStatics(|this| unsafe {
let mut result__: UnicodeGeneralCategory = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), codepoint, &mut result__).from_abi::<UnicodeGeneralCategory>(result__)
})
}
pub fn IUnicodeCharactersStatics<R, F: FnOnce(&IUnicodeCharactersStatics) -> ::windows::core::Result<R>>(callback: F) -> ::windows::core::Result<R> {
static mut SHARED: ::windows::core::FactoryCache<UnicodeCharacters, IUnicodeCharactersStatics> = ::windows::core::FactoryCache::new();
unsafe { SHARED.call(callback) }
}
}
impl ::windows::core::RuntimeName for UnicodeCharacters {
const NAME: &'static str = "Windows.Data.Text.UnicodeCharacters";
}
#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)]
#[repr(transparent)]
pub struct UnicodeGeneralCategory(pub i32);
impl UnicodeGeneralCategory {
pub const UppercaseLetter: UnicodeGeneralCategory = UnicodeGeneralCategory(0i32);
pub const LowercaseLetter: UnicodeGeneralCategory = UnicodeGeneralCategory(1i32);
pub const TitlecaseLetter: UnicodeGeneralCategory = UnicodeGeneralCategory(2i32);
pub const ModifierLetter: UnicodeGeneralCategory = UnicodeGeneralCategory(3i32);
pub const OtherLetter: UnicodeGeneralCategory = UnicodeGeneralCategory(4i32);
pub const NonspacingMark: UnicodeGeneralCategory = UnicodeGeneralCategory(5i32);
pub const SpacingCombiningMark: UnicodeGeneralCategory = UnicodeGeneralCategory(6i32);
pub const EnclosingMark: UnicodeGeneralCategory = UnicodeGeneralCategory(7i32);
pub const DecimalDigitNumber: UnicodeGeneralCategory = UnicodeGeneralCategory(8i32);
pub const LetterNumber: UnicodeGeneralCategory = UnicodeGeneralCategory(9i32);
pub const OtherNumber: UnicodeGeneralCategory = UnicodeGeneralCategory(10i32);
pub const SpaceSeparator: UnicodeGeneralCategory = UnicodeGeneralCategory(11i32);
pub const LineSeparator: UnicodeGeneralCategory = UnicodeGeneralCategory(12i32);
pub const ParagraphSeparator: UnicodeGeneralCategory = UnicodeGeneralCategory(13i32);
pub const Control: UnicodeGeneralCategory = UnicodeGeneralCategory(14i32);
pub const Format: UnicodeGeneralCategory = UnicodeGeneralCategory(15i32);
pub const Surrogate: UnicodeGeneralCategory = UnicodeGeneralCategory(16i32);
pub const PrivateUse: UnicodeGeneralCategory = UnicodeGeneralCategory(17i32);
pub const ConnectorPunctuation: UnicodeGeneralCategory = UnicodeGeneralCategory(18i32);
pub const DashPunctuation: UnicodeGeneralCategory = UnicodeGeneralCategory(19i32);
pub const OpenPunctuation: UnicodeGeneralCategory = UnicodeGeneralCategory(20i32);
pub const ClosePunctuation: UnicodeGeneralCategory = UnicodeGeneralCategory(21i32);
pub const InitialQuotePunctuation: UnicodeGeneralCategory = UnicodeGeneralCategory(22i32);
pub const FinalQuotePunctuation: UnicodeGeneralCategory = UnicodeGeneralCategory(23i32);
pub const OtherPunctuation: UnicodeGeneralCategory = UnicodeGeneralCategory(24i32);
pub const MathSymbol: UnicodeGeneralCategory = UnicodeGeneralCategory(25i32);
pub const CurrencySymbol: UnicodeGeneralCategory = UnicodeGeneralCategory(26i32);
pub const ModifierSymbol: UnicodeGeneralCategory = UnicodeGeneralCategory(27i32);
pub const OtherSymbol: UnicodeGeneralCategory = UnicodeGeneralCategory(28i32);
pub const NotAssigned: UnicodeGeneralCategory = UnicodeGeneralCategory(29i32);
}
impl ::core::convert::From<i32> for UnicodeGeneralCategory {
fn from(value: i32) -> Self {
Self(value)
}
}
unsafe impl ::windows::core::Abi for UnicodeGeneralCategory {
type Abi = Self;
}
unsafe impl ::windows::core::RuntimeType for UnicodeGeneralCategory {
const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.Data.Text.UnicodeGeneralCategory;i4)");
}
impl ::windows::core::DefaultType for UnicodeGeneralCategory {
type DefaultType = Self;
}
#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)]
#[repr(transparent)]
pub struct UnicodeNumericType(pub i32);
impl UnicodeNumericType {
pub const None: UnicodeNumericType = UnicodeNumericType(0i32);
pub const Decimal: UnicodeNumericType = UnicodeNumericType(1i32);
pub const Digit: UnicodeNumericType = UnicodeNumericType(2i32);
pub const Numeric: UnicodeNumericType = UnicodeNumericType(3i32);
}
impl ::core::convert::From<i32> for UnicodeNumericType {
fn from(value: i32) -> Self {
Self(value)
}
}
unsafe impl ::windows::core::Abi for UnicodeNumericType {
type Abi = Self;
}
unsafe impl ::windows::core::RuntimeType for UnicodeNumericType {
const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.Data.Text.UnicodeNumericType;i4)");
}
impl ::windows::core::DefaultType for UnicodeNumericType {
type DefaultType = Self;
}
#[repr(transparent)]
#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)]
pub struct WordSegment(pub ::windows::core::IInspectable);
impl WordSegment {
pub fn Text(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
let this = self;
unsafe {
let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__)
}
}
pub fn SourceTextSegment(&self) -> ::windows::core::Result<TextSegment> {
let this = self;
unsafe {
let mut result__: TextSegment = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<TextSegment>(result__)
}
}
#[cfg(feature = "Foundation_Collections")]
pub fn AlternateForms(&self) -> ::windows::core::Result<super::super::Foundation::Collections::IVectorView<AlternateWordForm>> {
let this = self;
unsafe {
let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Foundation::Collections::IVectorView<AlternateWordForm>>(result__)
}
}
}
unsafe impl ::windows::core::RuntimeType for WordSegment {
const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.Data.Text.WordSegment;{d2d4ba6d-987c-4cc0-b6bd-d49a11b38f9a})");
}
unsafe impl ::windows::core::Interface for WordSegment {
type Vtable = IWordSegment_abi;
const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd2d4ba6d_987c_4cc0_b6bd_d49a11b38f9a);
}
impl ::windows::core::RuntimeName for WordSegment {
const NAME: &'static str = "Windows.Data.Text.WordSegment";
}
impl ::core::convert::From<WordSegment> for ::windows::core::IUnknown {
fn from(value: WordSegment) -> Self {
value.0 .0
}
}
impl ::core::convert::From<&WordSegment> for ::windows::core::IUnknown {
fn from(value: &WordSegment) -> Self {
value.0 .0.clone()
}
}
impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for WordSegment {
fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> {
::windows::core::Param::Owned(self.0 .0)
}
}
impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a WordSegment {
fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> {
::windows::core::Param::Borrowed(&self.0 .0)
}
}
impl ::core::convert::From<WordSegment> for ::windows::core::IInspectable {
fn from(value: WordSegment) -> Self {
value.0
}
}
impl ::core::convert::From<&WordSegment> for ::windows::core::IInspectable {
fn from(value: &WordSegment) -> Self {
value.0.clone()
}
}
impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for WordSegment {
fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> {
::windows::core::Param::Owned(self.0)
}
}
impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a WordSegment {
fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> {
::windows::core::Param::Borrowed(&self.0)
}
}
unsafe impl ::core::marker::Send for WordSegment {}
unsafe impl ::core::marker::Sync for WordSegment {}
#[cfg(feature = "Foundation_Collections")]
#[repr(transparent)]
#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)]
pub struct WordSegmentsTokenizingHandler(::windows::core::IUnknown);
#[cfg(feature = "Foundation_Collections")]
impl WordSegmentsTokenizingHandler {
pub fn new<F: FnMut(&::core::option::Option<super::super::Foundation::Collections::IIterable<WordSegment>>, &::core::option::Option<super::super::Foundation::Collections::IIterable<WordSegment>>) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self {
let com = WordSegmentsTokenizingHandler_box::<F> {
vtable: &WordSegmentsTokenizingHandler_box::<F>::VTABLE,
count: ::windows::core::RefCount::new(1),
invoke,
};
unsafe { core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) }
}
#[cfg(feature = "Foundation_Collections")]
pub fn Invoke<'a, Param0: ::windows::core::IntoParam<'a, super::super::Foundation::Collections::IIterable<WordSegment>>, Param1: ::windows::core::IntoParam<'a, super::super::Foundation::Collections::IIterable<WordSegment>>>(&self, precedingwords: Param0, words: Param1) -> ::windows::core::Result<()> {
let this = self;
unsafe { (::windows::core::Interface::vtable(this).3)(::core::mem::transmute_copy(this), precedingwords.into_param().abi(), words.into_param().abi()).ok() }
}
}
#[cfg(feature = "Foundation_Collections")]
unsafe impl ::windows::core::RuntimeType for WordSegmentsTokenizingHandler {
const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"delegate({a5dd6357-bf2a-4c4f-a31f-29e71c6f8b35})");
}
#[cfg(feature = "Foundation_Collections")]
unsafe impl ::windows::core::Interface for WordSegmentsTokenizingHandler {
type Vtable = WordSegmentsTokenizingHandler_abi;
const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa5dd6357_bf2a_4c4f_a31f_29e71c6f8b35);
}
#[cfg(feature = "Foundation_Collections")]
#[repr(C)]
#[doc(hidden)]
pub struct WordSegmentsTokenizingHandler_abi(
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32,
pub unsafe extern "system" fn(this: ::windows::core::RawPtr, precedingwords: ::windows::core::RawPtr, words: ::windows::core::RawPtr) -> ::windows::core::HRESULT,
);
#[cfg(feature = "Foundation_Collections")]
#[repr(C)]
struct WordSegmentsTokenizingHandler_box<F: FnMut(&::core::option::Option<super::super::Foundation::Collections::IIterable<WordSegment>>, &::core::option::Option<super::super::Foundation::Collections::IIterable<WordSegment>>) -> ::windows::core::Result<()> + 'static> {
vtable: *const WordSegmentsTokenizingHandler_abi,
invoke: F,
count: ::windows::core::RefCount,
}
#[cfg(feature = "Foundation_Collections")]
impl<F: FnMut(&::core::option::Option<super::super::Foundation::Collections::IIterable<WordSegment>>, &::core::option::Option<super::super::Foundation::Collections::IIterable<WordSegment>>) -> ::windows::core::Result<()> + 'static> WordSegmentsTokenizingHandler_box<F> {
const VTABLE: WordSegmentsTokenizingHandler_abi = WordSegmentsTokenizingHandler_abi(Self::QueryInterface, Self::AddRef, Self::Release, Self::Invoke);
unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT {
let this = this as *mut ::windows::core::RawPtr as *mut Self;
*interface = if iid == &<WordSegmentsTokenizingHandler as ::windows::core::Interface>::IID || iid == &<::windows::core::IUnknown as ::windows::core::Interface>::IID || iid == &<::windows::core::IAgileObject as ::windows::core::Interface>::IID {
&mut (*this).vtable as *mut _ as _
} else {
::core::ptr::null_mut()
};
if (*interface).is_null() {
::windows::core::HRESULT(0x8000_4002)
} else {
(*this).count.add_ref();
::windows::core::HRESULT(0)
}
}
unsafe extern "system" fn AddRef(this: ::windows::core::RawPtr) -> u32 {
let this = this as *mut ::windows::core::RawPtr as *mut Self;
(*this).count.add_ref()
}
unsafe extern "system" fn Release(this: ::windows::core::RawPtr) -> u32 {
let this = this as *mut ::windows::core::RawPtr as *mut Self;
let remaining = (*this).count.release();
if remaining == 0 {
::windows::core::alloc::boxed::Box::from_raw(this);
}
remaining
}
unsafe extern "system" fn Invoke(this: ::windows::core::RawPtr, precedingwords: ::windows::core::RawPtr, words: ::windows::core::RawPtr) -> ::windows::core::HRESULT {
let this = this as *mut ::windows::core::RawPtr as *mut Self;
((*this).invoke)(
&*(&precedingwords as *const <super::super::Foundation::Collections::IIterable<WordSegment> as ::windows::core::Abi>::Abi as *const <super::super::Foundation::Collections::IIterable<WordSegment> as ::windows::core::DefaultType>::DefaultType),
&*(&words as *const <super::super::Foundation::Collections::IIterable<WordSegment> as ::windows::core::Abi>::Abi as *const <super::super::Foundation::Collections::IIterable<WordSegment> as ::windows::core::DefaultType>::DefaultType),
)
.into()
}
}
#[repr(transparent)]
#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)]
pub struct WordsSegmenter(pub ::windows::core::IInspectable);
impl WordsSegmenter {
pub fn ResolvedLanguage(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
let this = self;
unsafe {
let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__)
}
}
pub fn GetTokenAt<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, text: Param0, startindex: u32) -> ::windows::core::Result<WordSegment> {
let this = self;
unsafe {
let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), text.into_param().abi(), startindex, &mut result__).from_abi::<WordSegment>(result__)
}
}
#[cfg(feature = "Foundation_Collections")]
pub fn GetTokens<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, text: Param0) -> ::windows::core::Result<super::super::Foundation::Collections::IVectorView<WordSegment>> {
let this = self;
unsafe {
let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), text.into_param().abi(), &mut result__).from_abi::<super::super::Foundation::Collections::IVectorView<WordSegment>>(result__)
}
}
#[cfg(feature = "Foundation_Collections")]
pub fn Tokenize<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param2: ::windows::core::IntoParam<'a, WordSegmentsTokenizingHandler>>(&self, text: Param0, startindex: u32, handler: Param2) -> ::windows::core::Result<()> {
let this = self;
unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), text.into_param().abi(), startindex, handler.into_param().abi()).ok() }
}
pub fn CreateWithLanguage<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(language: Param0) -> ::windows::core::Result<WordsSegmenter> {
Self::IWordsSegmenterFactory(|this| unsafe {
let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed();
(::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), language.into_param().abi(), &mut result__).from_abi::<WordsSegmenter>(result__)
})
}
pub fn IWordsSegmenterFactory<R, F: FnOnce(&IWordsSegmenterFactory) -> ::windows::core::Result<R>>(callback: F) -> ::windows::core::Result<R> {
static mut SHARED: ::windows::core::FactoryCache<WordsSegmenter, IWordsSegmenterFactory> = ::windows::core::FactoryCache::new();
unsafe { SHARED.call(callback) }
}
}
unsafe impl ::windows::core::RuntimeType for WordsSegmenter {
const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.Data.Text.WordsSegmenter;{86b4d4d1-b2fe-4e34-a81d-66640300454f})");
}
unsafe impl ::windows::core::Interface for WordsSegmenter {
type Vtable = IWordsSegmenter_abi;
const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x86b4d4d1_b2fe_4e34_a81d_66640300454f);
}
impl ::windows::core::RuntimeName for WordsSegmenter {
const NAME: &'static str = "Windows.Data.Text.WordsSegmenter";
}
impl ::core::convert::From<WordsSegmenter> for ::windows::core::IUnknown {
fn from(value: WordsSegmenter) -> Self {
value.0 .0
}
}
impl ::core::convert::From<&WordsSegmenter> for ::windows::core::IUnknown {
fn from(value: &WordsSegmenter) -> Self {
value.0 .0.clone()
}
}
impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for WordsSegmenter {
fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> {
::windows::core::Param::Owned(self.0 .0)
}
}
impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a WordsSegmenter {
fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> {
::windows::core::Param::Borrowed(&self.0 .0)
}
}
impl ::core::convert::From<WordsSegmenter> for ::windows::core::IInspectable {
fn from(value: WordsSegmenter) -> Self {
value.0
}
}
impl ::core::convert::From<&WordsSegmenter> for ::windows::core::IInspectable {
fn from(value: &WordsSegmenter) -> Self {
value.0.clone()
}
}
impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for WordsSegmenter {
fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> {
::windows::core::Param::Owned(self.0)
}
}
impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a WordsSegmenter {
fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> {
::windows::core::Param::Borrowed(&self.0)
}
}
unsafe impl ::core::marker::Send for WordsSegmenter {}
unsafe impl ::core::marker::Sync for WordsSegmenter {}
|
mod message_receiver;
mod place_runner;
mod plugin;
mod place;
mod core;
use std::{
fs::{read_to_string},
path::Path,
process,
};
use log::error;
use clap::{App, Arg};
use colored::Colorize;
use crate::{
place_runner::PlaceRunnerOptions,
message_receiver::{RobloxMessage, OutputLevel},
core::{run_place, run_model, run_script, DEFAULT_PORT, DEFAULT_TIMEOUT},
};
fn print_message(message: &RobloxMessage) {
match message {
RobloxMessage::Output {level, body} => {
println!("{}", match level {
OutputLevel::Print => body.normal(),
OutputLevel::Info => body.cyan(),
OutputLevel::Warning => body.yellow(),
OutputLevel::Error => body.red(),
});
},
}
}
fn bad_path(path: &Path) -> ! {
error!("Type of path {} could not be detected.", path.display());
error!("Valid extensions are .lua, .rbxm, .rbxmx, .rbxl, and .rbxlx.");
process::exit(1);
}
fn main() {
{
let log_env = env_logger::Env::default()
.default_filter_or("warn");
env_logger::Builder::from_env(log_env)
.default_format_timestamp(false)
.init();
}
let default_port = DEFAULT_PORT.to_string();
let default_timeout = DEFAULT_TIMEOUT.to_string();
let app = App::new("run-in-roblox")
.author(env!("CARGO_PKG_AUTHORS"))
.version(env!("CARGO_PKG_VERSION"))
.about(env!("CARGO_PKG_DESCRIPTION"))
.arg(Arg::with_name("PATH")
.help("The place, model, or script file to run inside Roblox")
.takes_value(true)
.required(true))
.arg(Arg::with_name("script")
.short("s")
.help("The lua script file to be executed in the opened place")
.takes_value(true)
.required(false)
.conflicts_with("execute"))
.arg(Arg::with_name("execute")
.short("e")
.help("The lua string to execute")
.takes_value(true)
.required(false)
.conflicts_with("script"))
.arg(Arg::with_name("port")
.short("p")
.help("The port used by the local server")
.takes_value(true)
.default_value(&default_port))
.arg(Arg::with_name("timeout")
.short("t")
.help("The maximum time in seconds that the script can run")
.takes_value(true)
.default_value(&default_timeout));
let matches = app.get_matches();
let input = Path::new(matches.value_of("PATH").unwrap());
let port = match matches.value_of("port") {
Some(port) => port.parse::<u16>().expect("port must be an unsigned integer"),
None => DEFAULT_PORT,
};
let timeout = match matches.value_of("timeout") {
Some(timeout) => timeout.parse::<u16>().expect("timeout must be an unsigned integer"),
None => DEFAULT_TIMEOUT,
};
let extension = match input.extension() {
Some(e) => e.to_str().unwrap(),
None => bad_path(input),
};
let messages = match extension {
"lua" => {
if let Some(_) = matches.value_of("script") {
panic!("Cannot provide script argument when running a script file (remove `--script LUA_FILE_PATH`)")
};
if let Some(_) = matches.value_of("execute") {
panic!("Cannot provide execute argument when running a script file (remove `--execute LUA_CODE`)")
};
let lua_script = read_to_string(input)
.expect("Something went wrong reading the file");
run_script(PlaceRunnerOptions {
port,
timeout,
lua_script: lua_script.as_ref(),
})
},
"rbxm" | "rbxmx" => run_model(input, extension),
"rbxl" | "rbxlx" => {
let lua_script = if let Some(script_file_path) = matches.value_of("script") {
read_to_string(script_file_path)
.expect("Something went wrong reading the file")
} else if let Some(lua_string) = matches.value_of("execute") {
lua_string.to_owned()
} else {
panic!("Lua code not provided (use `--script LUA_FILE_PATH` or `--execute LUA_CODE`)")
};
run_place(input, extension, PlaceRunnerOptions {
port,
timeout,
lua_script: lua_script.as_ref(),
})
},
_ => bad_path(input),
};
while let Some(message) = messages.recv().expect("Problem receiving message") {
print_message(&message);
}
}
|
pub use VkPipelineInputAssemblyStateCreateFlags::*;
#[repr(u32)]
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub enum VkPipelineInputAssemblyStateCreateFlags {
VK_PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_NULL_BIT = 0,
}
use crate::SetupVkFlags;
#[repr(C)]
#[derive(Clone, Copy, Eq, PartialEq, Hash)]
pub struct VkPipelineInputAssemblyStateCreateFlagBits(u32);
SetupVkFlags!(
VkPipelineInputAssemblyStateCreateFlags,
VkPipelineInputAssemblyStateCreateFlagBits
);
|
pub mod allocationcallback;
pub mod applicationinfo;
pub mod attachmentdescription;
pub mod attachmentreference;
pub mod bindsparseinfo;
pub mod buffercopy;
pub mod buffercreateinfo;
pub mod bufferdeviceaddresscreateinfoext;
pub mod bufferimagecopy;
pub mod buffermemorybarrier;
pub mod bufferviewcreateinfo;
pub mod clearattachment;
pub mod clearcolorvalue;
pub mod cleardepthstencilvalue;
pub mod clearrect;
pub mod clearvalue;
pub mod commandbufferallocateinfo;
pub mod commandbufferbegininfo;
pub mod commandbufferinheritanceinfo;
pub mod commandpoolcreateinfo;
pub mod componentmapping;
pub mod computepipelinecreateinfo;
pub mod copydescriptorset;
pub mod debugreportcallbackcreateinfoext;
pub mod debugutilmessengercallbackdataext;
pub mod debugutilslabelext;
pub mod debugutilsmessengercreateinfoext;
pub mod debugutilsobjectnameinfoext;
pub mod descriptorbufferinfo;
pub mod descriptorimageinfo;
pub mod descriptorpoolcreateinfo;
pub mod descriptorpoolsize;
pub mod descriptorsetallocateinfo;
pub mod descriptorsetlayoutbinding;
pub mod descriptorsetlayoutcreateinfo;
pub mod descriptorsetlayoutsupport;
pub mod devicecreateinfo;
pub mod devicequeuecreateinfo;
pub mod dispatchindirectcommand;
pub mod displayplanecapabilities;
pub mod displayplaneproperties;
pub mod displayproperties;
pub mod drawindexedindirectcommand;
pub mod drawindirectcommand;
pub mod eventcreateinfo;
pub mod extensionproperties;
pub mod extent2d;
pub mod extent3d;
pub mod externalmemorybuffercreateinfo;
pub mod fencecreateinfo;
pub mod formatproperties;
pub mod framebuffercreateinfo;
pub mod graphicspipelinecreateinfo;
pub mod imageblit;
pub mod imagecopy;
pub mod imagecreateinfo;
pub mod imageformatproperties;
pub mod imagememorybarrier;
pub mod imageresolve;
pub mod imagesubresource;
pub mod imagesubresourcelayers;
pub mod imagesubresourcerange;
pub mod imageviewcreateinfo;
pub mod instancecreateinfo;
pub mod iossurfacecreateinfomvk;
pub mod layerproperties;
pub mod macossurfacecreateinfomvk;
pub mod mappedmemoryrange;
pub mod memoryallocateinfo;
pub mod memorybarrier;
pub mod memoryheap;
pub mod memoryrequirements;
pub mod memorytype;
pub mod mirsurfacecreateinfo;
pub mod mvkdisplayconfiguration;
pub mod mvkphysicaldevicemetalfeatures;
pub mod mvkswapchainperformance;
pub mod offset2d;
pub mod offset3d;
pub mod physicaldevicefeatures;
pub mod physicaldevicelimits;
pub mod physicaldevicemaintanence3properties;
pub mod physicaldevicememoryproperties;
pub mod physicaldeviceproperties;
pub mod physicaldevicesparseproperties;
pub mod pipelinecachecreateinfo;
pub mod pipelinecolorblendattachmentstate;
pub mod pipelinecolorblendstatecreateinfo;
pub mod pipelinedepthstencilstatecreateinfo;
pub mod pipelinedynamicstatecreateinfo;
pub mod pipelineinputassemblystatecreateinfo;
pub mod pipelinelayoutcreateinfo;
pub mod pipelinemultisamplestatecreateinfo;
pub mod pipelinerasterizationstatecreateinfo;
pub mod pipelineshaderstagecreateinfo;
pub mod pipelinetesselationstatecreateinfo;
pub mod pipelinevertexinputstatecreateinfo;
pub mod pipelineviewportstatecreateinfo;
pub mod pushconstantrange;
pub mod querypoolcreateinfo;
pub mod queuefamilyproperties;
pub mod rect2d;
pub mod renderpassbegininfo;
pub mod renderpasscreateinfo;
pub mod samplercreateinfo;
pub mod semaphorecreateinfo;
pub mod shadermodulecreateinfo;
pub mod sparsebuffermemorybindinfo;
pub mod sparseimageformatproperties;
pub mod sparseimagememorybind;
pub mod sparseimagememorybindinfo;
pub mod sparseimagememoryrequirements;
pub mod sparseimageopaquememorybindinfo;
pub mod sparsememorybind;
pub mod specializationinfo;
pub mod specializationmapentry;
pub mod stencilopstate;
pub mod submitinfo;
pub mod subpassdependency;
pub mod subpassdescription;
pub mod subresourcelayout;
pub mod vertexinputattributedescription;
pub mod vertexinputbindingdescription;
pub mod viewport;
pub mod writedescriptorset;
pub mod prelude;
|
use mixer::*;
use std::num::Wrapping;
const PBITS: u32 = 8; // Bits of fixed-point precision for phase.
pub struct Mixer<C> {
srate: u32,
samp_count: Wrapping<u32>, // sample count; used for ticking
next_tick: Wrapping<u32>, // will tick again when sample count reaches this
chan: Vec<Channel>,
ctrl: C,
input: MixerIn,
}
#[derive(Clone)]
pub struct Channel {
phase: u32,
phase_inc: u32,
}
impl Channel {
fn new() -> Self {
Channel {
phase: 0,
phase_inc: 0,
}
}
}
impl<C: Controller + Send> AudioCallback for Mixer<C> {
type Channel = i16;
fn callback(&mut self, out: &mut [i16]) {
for v in out.iter_mut() {
*v = self.get_point()
}
}
}
impl<C: Controller> Mixer<C> {
pub fn new(srate: i32, ctrl: C) -> Mixer<C> {
Mixer {
srate: srate as u32,
samp_count: Wrapping(0),
next_tick: Wrapping(0),
ctrl: ctrl,
chan: vec![],
input: MixerIn {
tick_rate: 0,
pcm: Arc::new(vec![]),
chan: vec![],
}
}
}
fn get_point(&mut self) -> i16 {
if self.samp_count == self.next_tick {
for (chan, inchan) in self.chan.iter_mut().zip(&mut self.input.chan) {
let pbitsf = (1<<PBITS) as f64;
let fnote = inchan.note as f64 / 2_f64.powi(8);
let pitch = (2_f64).powf((fnote - 60.0) / 12.0) * 440.0;
chan.phase_inc =
(pitch * pbitsf * inchan.pcm_rate as f64) as u32 / self.srate;
}
self.input = self.ctrl.next();
self.chan.resize(self.input.chan.len(), Channel::new());
let tick_len = self.srate * 60 / self.input.tick_rate as u32;
self.next_tick += Wrapping(tick_len);
}
let mut total = 0i16;
for (chan, inchan) in self.chan.iter_mut().zip(&mut self.input.chan) {
chan.phase = chan.phase % (inchan.pcm_len<<PBITS);
let pcm_off = inchan.pcm_off + (chan.phase>>PBITS) as usize;
let point = self.input.pcm[pcm_off];
chan.phase += chan.phase_inc;
total = total.saturating_add(point as i16 * inchan.vol)
}
self.samp_count += Wrapping(1);
total
}
}
|
use rocket::Route;
use super::db::Pool;
use juniper::RootNode;
use rocket::response::content;
use rocket::State;
use super::schema::{Database, MutationRoot, QueryRoot};
use super::db::DbConn;
use super::db::models::User;
use diesel::*;
use super::auth::AuthInfo;
pub type Schema = RootNode<'static, QueryRoot, MutationRoot>;
#[get("/gql")]
fn graphiql() -> content::Html<String> {
juniper_rocket::graphiql_source("/api/graphql")
}
#[get("/graphql?<request>")]
fn get_graphql_handler(
pool: State<Pool>,
request: juniper_rocket::GraphQLRequest,
schema: State<Schema>,
auth_info: AuthInfo,
) -> juniper_rocket::GraphQLResponse {
use super::db::schema::users::dsl;
let conn = DbConn(pool.clone().get().unwrap());
let user = match dsl::users.find(auth_info.user_id).first::<User>(&*conn) {
Ok(u) => Some(u),
_ => None,
};
let context = Database {
current_user: user,
pool: pool.clone(),
};
request.execute(&schema, &context)
}
#[post("/graphql", data = "<request>")]
fn post_graphql_handler(
pool: State<Pool>,
request: juniper_rocket::GraphQLRequest,
schema: State<Schema>,
auth_info: AuthInfo,
) -> juniper_rocket::GraphQLResponse {
use super::db::schema::users::dsl;
let conn = DbConn(pool.clone().get().unwrap());
let user = match dsl::users.find(auth_info.user_id).first::<User>(&*conn) {
Ok(u) => Some(u),
_ => None,
};
let context = Database {
current_user: user,
pool: pool.clone(),
};
request.execute(&schema, &context)
}
pub fn routes() -> Vec<Route> {
routes![graphiql, get_graphql_handler, post_graphql_handler]
}
|
extern crate syntax;
use self::syntax::ptr::{B};
use self::syntax::ast::*;
use self::syntax::parse::parser::{Parser};
use self::syntax::visit::*;
use self::syntax::visitor_impl::{TypeChecker};
//#[test]
//fn test_parse_and_typecheck_var_decl(){
// let mut p = Parser::new("let var a : int := 1 in end".to_string());
// let b = p.run().unwrap();
// let mut v = TypeChecker::new();
// v.visit_expr(&*b.expr.unwrap());
// assert_eq!(v.ty, TType::TInt32);
//}
|
use anyhow::Result;
use clap::Parser;
use qapi::qmp;
use super::{GlobalArgs, QmpStream};
#[derive(Parser, Debug)]
pub(crate) struct StopCommand {
}
impl StopCommand {
pub async fn run(self, qmp: QmpStream, _args: GlobalArgs) -> Result<i32> {
qmp.execute(qmp::stop { }).await?;
Ok(0)
}
}
#[derive(Parser, Debug)]
pub(crate) struct ContinueCommand {
}
impl ContinueCommand {
pub async fn run(self, qmp: QmpStream, _args: GlobalArgs) -> Result<i32> {
qmp.execute(qmp::cont { }).await?;
Ok(0)
}
}
#[derive(Parser, Debug)]
pub(crate) struct QuitCommand {
}
impl QuitCommand {
pub async fn run(self, qmp: QmpStream, _args: GlobalArgs) -> Result<i32> {
qmp.execute(qmp::quit { }).await?;
Ok(0)
}
}
|
extern crate clap;
extern crate env_logger;
extern crate piccolo;
extern crate rustyline;
use clap::{App, Arg};
use piccolo::prelude::*;
use rustyline::error::ReadlineError;
use rustyline::Editor;
use std::path::{Path, PathBuf};
fn main() {
#[cfg(feature = "pc-debug")]
env_logger::init();
let matches = App::new("Piccolo compiler/interpreter")
.version(env!("CARGO_PKG_VERSION"))
.author("Zack Hixon <zphixon@gmail.com>")
.about("Compiles or interprets Piccolo source files")
.arg(Arg::with_name("src").help("Piccolo source file").index(1))
.arg(
Arg::with_name("bin")
.help("Piccolo binary file")
.short("b")
.long("bin")
.conflicts_with("src")
.conflicts_with("compile")
.takes_value(true),
)
.arg(
Arg::with_name("compile")
.help("Compile <src> into <output>")
.short("c")
.long("compile")
.requires("src")
.value_name("output")
.takes_value(true),
)
.arg(
Arg::with_name("string")
.help("Run string argument")
.short("e")
.value_name("string")
.takes_value(true),
)
.get_matches();
if !matches.is_present("src") && !matches.is_present("bin") && !matches.is_present("string") {
repl();
} else {
if matches.is_present("compile") {
todo!();
//let src = PathBuf::from(matches.value_of("src").unwrap());
//let out = PathBuf::from(matches.value_of("compile").unwrap());
//if let Err(errors) = piccolo::compile(&src, &out) {
// print_errors(errors);
//}
} else if matches.is_present("bin") {
todo!();
//let src = PathBuf::from(matches.value_of("bin").unwrap());
//if let Err(errors) = piccolo::run_bin(&src) {
// print_errors(errors);
//}
} else if matches.is_present("string") {
let src = matches.value_of("string").unwrap();
if let Err(errors) = piccolo::interpret(&src) {
print_errors(errors);
}
} else {
let src = PathBuf::from(matches.value_of("src").unwrap());
file(&src);
}
}
}
fn print_errors(errors: Vec<PiccoloError>) {
if errors.len() == 1 {
println!("Error {}", errors[0])
} else {
println!("{} Errors:", errors.len());
for e in errors.iter() {
println!(" {}", e);
}
}
}
fn file(path: &Path) {
if let Err(errors) = piccolo::do_file(path) {
print_errors(errors);
}
}
fn repl() {
let mut rl = Editor::<()>::new();
rl.load_history(".piccolo_history")
.or_else(|_| std::fs::File::create(".piccolo_history").map(|_| ()))
.unwrap();
loop {
match rl.readline("-- ") {
Ok(line) => {
rl.add_history_entry(&line);
rl.save_history(".piccolo_history").unwrap();
match piccolo::interpret(&line) {
Ok(v) => {
if v != Constant::Nil {
println!("{:?}", v);
}
}
Err(errors) => print_errors(errors),
}
}
Err(ReadlineError::Interrupted) => {}
_ => break,
}
}
}
|
#[macro_use]
extern crate criterion;
extern crate rs_poker;
use criterion::Criterion;
use rs_poker::core::Hand;
use rs_poker::holdem::MonteCarloGame;
fn simulate_one_game(c: &mut Criterion) {
let hands = ["AdAh", "2c2s"]
.iter()
.map(|s| Hand::new_from_str(s).expect("Should be able to create a hand."))
.collect();
let mut g =
MonteCarloGame::new_with_hands(hands, vec![]).expect("Should be able to create a game.");
c.bench_function("Simulate AdAh vs 2c2s", move |b| {
b.iter(|| {
let r = g.simulate().expect("There should be one best rank.");
g.reset();
r
})
});
}
criterion_group!(benches, simulate_one_game);
criterion_main!(benches);
|
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#![feature(async_await, await_macro, futures_api)]
#![deny(warnings)]
use failure::{Error, ResultExt};
use fidl::endpoints::ServiceMarker;
use fidl_fuchsia_io::DirectoryProxy;
use fidl_fuchsia_pkg::PackageCacheMarker;
use fuchsia_app::server::ServicesServer;
use fuchsia_async as fasync;
use fuchsia_syslog::{self, fx_log_err, fx_log_info};
use futures::TryFutureExt;
use std::fs::File;
mod cache_service;
const SERVER_THREADS: usize = 2;
fn main() -> Result<(), Error> {
fuchsia_syslog::init_with_tags(&["pkg_cache"]).expect("can't init logger");
fx_log_info!("starting package cache service");
let mut executor = fasync::Executor::new().context("error creating executor")?;
let pkgfs = connect_to_pkgfs_versions().context("error connecting to pkgfs")?;
let server = ServicesServer::new()
.add_service((PackageCacheMarker::NAME, move |chan| {
fx_log_info!("spawning package cache service");
fasync::spawn(
cache_service::serve(Clone::clone(&pkgfs), chan)
.unwrap_or_else(|e| fx_log_err!("failed to spawn {:?}", e)),
)
}))
.start()
.context("Error starting package cache server")?;
executor
.run(server, SERVER_THREADS)
.context("failed to execute package cache future")?;
Ok(())
}
fn connect_to_pkgfs_versions() -> Result<DirectoryProxy, Error> {
let f = File::open("/pkgfs/versions")?;
let chan = fasync::Channel::from_channel(fdio::clone_channel(&f)?)?;
Ok(DirectoryProxy::new(chan))
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.